diff --git a/assets/astar-jps-small-maze-9a90ce2a.js b/assets/astar-jps-small-maze-9a90ce2a.js new file mode 100644 index 00000000..35361cfe --- /dev/null +++ b/assets/astar-jps-small-maze-9a90ce2a.js @@ -0,0 +1 @@ +const a=""+new URL("astar-jps-small-maze-eac6621a.workspace",import.meta.url).href;export{a as default}; diff --git a/assets/astar-jps-small-maze-eac6621a.workspace b/assets/astar-jps-small-maze-eac6621a.workspace new file mode 100644 index 00000000..ed940cb1 Binary files /dev/null and b/assets/astar-jps-small-maze-eac6621a.workspace differ diff --git a/assets/aurora-polyanya-8252df53.workspace b/assets/aurora-polyanya-8252df53.workspace new file mode 100644 index 00000000..d01fb4ac Binary files /dev/null and b/assets/aurora-polyanya-8252df53.workspace differ diff --git a/assets/aurora-polyanya-ceb55900.js b/assets/aurora-polyanya-ceb55900.js new file mode 100644 index 00000000..da3d5fd4 --- /dev/null +++ b/assets/aurora-polyanya-ceb55900.js @@ -0,0 +1 @@ +const a=""+new URL("aurora-polyanya-8252df53.workspace",import.meta.url).href;export{a as default}; diff --git a/assets/dynamic-starcraft-4ceed441.js b/assets/dynamic-starcraft-4ceed441.js new file mode 100644 index 00000000..b6e957d1 --- /dev/null +++ b/assets/dynamic-starcraft-4ceed441.js @@ -0,0 +1 @@ +const a=""+new URL("dynamic-starcraft-a4f2282b.workspace",import.meta.url).href;export{a as default}; diff --git a/assets/dynamic-starcraft-a4f2282b.workspace b/assets/dynamic-starcraft-a4f2282b.workspace new file mode 100644 index 00000000..ffd615f9 Binary files /dev/null and b/assets/dynamic-starcraft-a4f2282b.workspace differ diff --git a/assets/frozen-sea-astar-8ec9e16c.workspace b/assets/frozen-sea-astar-8ec9e16c.workspace new file mode 100644 index 00000000..359d685c Binary files /dev/null and b/assets/frozen-sea-astar-8ec9e16c.workspace differ diff --git a/assets/frozen-sea-astar-d8dfa04c.js b/assets/frozen-sea-astar-d8dfa04c.js new file mode 100644 index 00000000..15c307a6 --- /dev/null +++ b/assets/frozen-sea-astar-d8dfa04c.js @@ -0,0 +1 @@ +const e=""+new URL("frozen-sea-astar-8ec9e16c.workspace",import.meta.url).href;export{e as default}; diff --git a/assets/index-ed28d453.js b/assets/index-ed0f88ab.js similarity index 61% rename from assets/index-ed28d453.js rename to assets/index-ed0f88ab.js index ad206d30..6e950107 100644 --- a/assets/index-ed28d453.js +++ b/assets/index-ed0f88ab.js @@ -1,4 +1,4 @@ -var sie=Object.defineProperty;var aie=(e,t,n)=>t in e?sie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Hp=(e,t,n)=>(aie(e,typeof t!="symbol"?t+"":t,n),n),fD=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Ze=(e,t,n)=>(fD(e,t,"read from private field"),n?n.call(e):t.get(e)),Zn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},Vc=(e,t,n,r)=>(fD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Qj=(e,t,n,r)=>({set _(i){Vc(e,t,i,n)},get _(){return Ze(e,t,r)}}),Mi=(e,t,n)=>(fD(e,t,"access private method"),n);function lie(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Nt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ZV(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var eq={exports:{}},HC={},tq={exports:{}},un={};/** +var uie=Object.defineProperty;var die=(e,t,n)=>t in e?uie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Gp=(e,t,n)=>(die(e,typeof t!="symbol"?t+"":t,n),n),pD=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Ze=(e,t,n)=>(pD(e,t,"read from private field"),n?n.call(e):t.get(e)),Zn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},qc=(e,t,n,r)=>(pD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var t6=(e,t,n,r)=>({set _(i){qc(e,t,i,n)},get _(){return Ze(e,t,r)}}),Mi=(e,t,n)=>(pD(e,t,"access private method"),n);function fie(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function iq(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var oq={exports:{}},GC={},sq={exports:{}},un={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var sie=Object.defineProperty;var aie=(e,t,n)=>t in e?sie(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var M1=Symbol.for("react.element"),cie=Symbol.for("react.portal"),uie=Symbol.for("react.fragment"),die=Symbol.for("react.strict_mode"),fie=Symbol.for("react.profiler"),hie=Symbol.for("react.provider"),pie=Symbol.for("react.context"),mie=Symbol.for("react.forward_ref"),gie=Symbol.for("react.suspense"),vie=Symbol.for("react.memo"),yie=Symbol.for("react.lazy"),Jj=Symbol.iterator;function bie(e){return e===null||typeof e!="object"?null:(e=Jj&&e[Jj]||e["@@iterator"],typeof e=="function"?e:null)}var nq={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},rq=Object.assign,iq={};function zg(e,t,n){this.props=e,this.context=t,this.refs=iq,this.updater=n||nq}zg.prototype.isReactComponent={};zg.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};zg.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function oq(){}oq.prototype=zg.prototype;function f5(e,t,n){this.props=e,this.context=t,this.refs=iq,this.updater=n||nq}var h5=f5.prototype=new oq;h5.constructor=f5;rq(h5,zg.prototype);h5.isPureReactComponent=!0;var Zj=Array.isArray,sq=Object.prototype.hasOwnProperty,p5={current:null},aq={key:!0,ref:!0,__self:!0,__source:!0};function lq(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)sq.call(t,r)&&!aq.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1t in e?sie(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Eie=R,Cie=Symbol.for("react.element"),Tie=Symbol.for("react.fragment"),kie=Object.prototype.hasOwnProperty,Aie=Eie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Iie={key:!0,ref:!0,__self:!0,__source:!0};function cq(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)kie.call(t,r)&&!Iie.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Cie,type:e,key:o,ref:s,props:i,_owner:Aie.current}}HC.Fragment=Tie;HC.jsx=cq;HC.jsxs=cq;eq.exports=HC;var C=eq.exports;const Rie={black:"#000",white:"#fff"},sg=Rie,Pie={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"},ju=Pie,Oie={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},uq=Oie,Mie={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"},_h=Mie,Die={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"},dq=Die,Lie={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},Nie=Lie,Bie={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"},Uu=Bie,$ie={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"},Sh=$ie,Fie={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"},zie=Fie,jie={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},Uie=jie,Hie={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"},Hu=Hie,Wie={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"},Gie=Wie,Vie={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"},qie=Vie,Xie={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"},fq=Xie,Yie={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},Kie=Yie,Qie={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"},Lh=Qie,Jie={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},Zie=Jie,eoe={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"},toe=eoe,noe={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"},g5=noe,roe={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"},ioe=roe,hq=Object.freeze(Object.defineProperty({__proto__:null,amber:Kie,blue:Uu,blueGrey:ioe,brown:toe,common:sg,cyan:zie,deepOrange:Zie,deepPurple:dq,green:Hu,grey:g5,indigo:Nie,lightBlue:Sh,lightGreen:Gie,lime:qie,orange:Lh,pink:uq,purple:_h,red:ju,teal:Uie,yellow:fq},Symbol.toStringTag,{value:"Module"}));function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=pq(e[n])}),t}function zo(e,t,n={clone:!0}){const r=n.clone?$({},e):e;return Nh(e)&&Nh(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Nh(t[i])&&i in e&&Nh(e[i])?r[i]=zo(e[i],t[i],n):n.clone?r[i]=Nh(t[i])?pq(t[i]):t[i]:r[i]=t[i])}),r}var mq={exports:{}},ooe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",soe=ooe,aoe=soe;function gq(){}function vq(){}vq.resetWarningCache=gq;var loe=function(){function e(r,i,o,s,l,c){if(c!==aoe){var d=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 d.name="Invariant Violation",d}}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:vq,resetWarningCache:gq};return n.PropTypes=n,n};mq.exports=loe();var jg=mq.exports;const z0=zs(jg);function kd(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function WC(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function cS(e,t){var n,r;return R.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Ar(e){return e&&e.ownerDocument||document}function pu(e){return Ar(e).defaultView||window}function ZB(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const coe=typeof window<"u"?R.useLayoutEffect:R.useEffect,ko=coe;let n6=0;function uoe(e){const[t,n]=R.useState(e),r=e||t;return R.useEffect(()=>{t==null&&(n6+=1,n(`mui-${n6}`))},[t]),r}const r6=KS["useId".toString()];function v5(e){if(r6!==void 0){const t=r6();return e??t}return uoe(e)}function Ex({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=R.useRef(e!==void 0),[o,s]=R.useState(t),l=i?e:o,c=R.useCallback(d=>{i||s(d)},[]);return[l,c]}function Zi(e){const t=R.useRef(e);return ko(()=>{t.current=e}),R.useCallback((...n)=>(0,t.current)(...n),[])}function mr(...e){return R.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ZB(n,t)})},e)}let GC=!0,e$=!1,i6;const doe={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 foe(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&doe[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function hoe(e){e.metaKey||e.altKey||e.ctrlKey||(GC=!0)}function pD(){GC=!1}function poe(){this.visibilityState==="hidden"&&e$&&(GC=!0)}function moe(e){e.addEventListener("keydown",hoe,!0),e.addEventListener("mousedown",pD,!0),e.addEventListener("pointerdown",pD,!0),e.addEventListener("touchstart",pD,!0),e.addEventListener("visibilitychange",poe,!0)}function goe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return GC||foe(t)}function y5(){const e=R.useCallback(i=>{i!=null&&moe(i.ownerDocument)},[]),t=R.useRef(!1);function n(){return t.current?(e$=!0,window.clearTimeout(i6),i6=window.setTimeout(()=>{e$=!1},100),t.current=!1,!0):!1}function r(i){return goe(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function yq(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Wp;function bq(){if(Wp)return Wp;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Wp="reverse",e.scrollLeft>0?Wp="default":(e.scrollLeft=1,e.scrollLeft===0&&(Wp="negative")),document.body.removeChild(e),Wp}function voe(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(bq()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const yoe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},boe=yoe;function b5(e,t){const n=$({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=$({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=$({},o),Object.keys(i).forEach(s=>{n[r][s]=b5(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Tt(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const l=t(s);l!==""&&o.push(l),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const o6=e=>e,xoe=()=>{let e=o6;return{configure(t){e=t},generate(t){return e(t)},reset(){e=o6}}},woe=xoe(),xq=woe,_oe={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 St(e,t,n="Mui"){const r=_oe[t];return r?`${n}-${r}`:`${xq.generate(e)}-${t}`}function kt(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=St(e,i,n)}),r}const rp="$$material";function Le(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function wq(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Soe=/^((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)-.*))$/,Eoe=wq(function(e){return Soe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Coe(e){if(e.sheet)return e.sheet;for(var t=0;t0?$i(Ug,--Vo):0,ag--,Vr===10&&(ag=1,qC--),Vr}function ks(){return Vr=Vo2||Tx(Vr)>3?"":" "}function $oe(e,t){for(;--t&&ks()&&!(Vr<48||Vr>102||Vr>57&&Vr<65||Vr>70&&Vr<97););return D1(e,uS()+(t<6&&Ll()==32&&ks()==32))}function n$(e){for(;ks();)switch(Vr){case e:return Vo;case 34:case 39:e!==34&&e!==39&&n$(Vr);break;case 40:e===41&&n$(e);break;case 92:ks();break}return Vo}function Foe(e,t){for(;ks()&&e+Vr!==47+10;)if(e+Vr===42+42&&Ll()===47)break;return"/*"+D1(t,Vo-1)+"*"+VC(e===47?e:ks())}function zoe(e){for(;!Tx(Ll());)ks();return D1(e,Vo)}function joe(e){return kq(fS("",null,null,null,[""],e=Tq(e),0,[0],e))}function fS(e,t,n,r,i,o,s,l,c){for(var d=0,f=0,h=s,p=0,g=0,v=0,y=1,S=1,_=1,b=0,x="",E=i,A=o,I=r,k=x;S;)switch(v=b,b=ks()){case 40:if(v!=108&&$i(k,h-1)==58){t$(k+=An(dS(b),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:k+=dS(b);break;case 9:case 10:case 13:case 32:k+=Boe(v);break;case 92:k+=$oe(uS()-1,7);continue;case 47:switch(Ll()){case 42:case 47:Ew(Uoe(Foe(ks(),uS()),t,n),c);break;default:k+="/"}break;case 123*y:l[d++]=Tl(k)*_;case 125*y:case 59:case 0:switch(b){case 0:case 125:S=0;case 59+f:_==-1&&(k=An(k,/\f/g,"")),g>0&&Tl(k)-h&&Ew(g>32?a6(k+";",r,n,h-1):a6(An(k," ","")+";",r,n,h-2),c);break;case 59:k+=";";default:if(Ew(I=s6(k,t,n,d,f,i,l,x,E=[],A=[],h),o),b===123)if(f===0)fS(k,t,I,I,E,o,h,l,A);else switch(p===99&&$i(k,3)===110?100:p){case 100:case 108:case 109:case 115:fS(e,I,I,r&&Ew(s6(e,I,I,0,0,i,l,x,i,E=[],h),A),i,A,h,l,r?E:A);break;default:fS(k,I,I,I,[""],A,0,l,A)}}d=f=g=0,y=_=1,x=k="",h=s;break;case 58:h=1+Tl(k),g=v;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&Noe()==125)continue}switch(k+=VC(b),b*y){case 38:_=f>0?1:(k+="\f",-1);break;case 44:l[d++]=(Tl(k)-1)*_,_=1;break;case 64:Ll()===45&&(k+=dS(ks())),p=Ll(),f=h=Tl(x=k+=zoe(uS())),b++;break;case 45:v===45&&Tl(k)==2&&(y=0)}}return o}function s6(e,t,n,r,i,o,s,l,c,d,f){for(var h=i-1,p=i===0?o:[""],g=_5(p),v=0,y=0,S=0;v0?p[_]+" "+b:An(b,/&\f/g,p[_])))&&(c[S++]=x);return XC(e,t,n,i===0?x5:l,c,d,f)}function Uoe(e,t,n){return XC(e,t,n,_q,VC(Loe()),Cx(e,2,-2),0)}function a6(e,t,n,r){return XC(e,t,n,w5,Cx(e,0,r),Cx(e,r+1,-1),r)}function zm(e,t){for(var n="",r=_5(e),i=0;i6)switch($i(e,t+1)){case 109:if($i(e,t+4)!==45)break;case 102:return An(e,/(.+:)(.+)-([^]+)/,"$1"+kn+"$2-$3$1"+QS+($i(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~t$(e,"stretch")?Aq(An(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($i(e,t+1)!==115)break;case 6444:switch($i(e,Tl(e)-3-(~t$(e,"!important")&&10))){case 107:return An(e,":",":"+kn)+e;case 101:return An(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+kn+($i(e,14)===45?"inline-":"")+"box$3$1"+kn+"$2$3$1"+Xi+"$2box$3")+e}break;case 5936:switch($i(e,t+11)){case 114:return kn+e+Xi+An(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return kn+e+Xi+An(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return kn+e+Xi+An(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return kn+e+Xi+e+e}return e}var Qoe=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case w5:t.return=Aq(t.value,t.length);break;case Sq:return zm([j0(t,{value:An(t.value,"@","@"+kn)})],i);case x5:if(t.length)return Doe(t.props,function(o){switch(Moe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zm([j0(t,{props:[An(o,/:(read-\w+)/,":"+QS+"$1")]})],i);case"::placeholder":return zm([j0(t,{props:[An(o,/:(plac\w+)/,":"+kn+"input-$1")]}),j0(t,{props:[An(o,/:(plac\w+)/,":"+QS+"$1")]}),j0(t,{props:[An(o,/:(plac\w+)/,Xi+"input-$1")]})],i)}return""})}},Joe=[Qoe],Zoe=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var S=y.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||Joe,o={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var S=y.getAttribute("data-emotion").split(" "),_=1;_{t[n]=bq(e[n])}),t}function zo(e,t,n={clone:!0}){const r=n.clone?$({},e):e;return Bh(e)&&Bh(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Bh(t[i])&&i in e&&Bh(e[i])?r[i]=zo(e[i],t[i],n):n.clone?r[i]=Bh(t[i])?bq(t[i]):t[i]:r[i]=t[i])}),r}var xq={exports:{}},coe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",uoe=coe,doe=uoe;function wq(){}function _q(){}_q.resetWarningCache=wq;var foe=function(){function e(r,i,o,s,l,c){if(c!==doe){var d=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 d.name="Invariant Violation",d}}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:_q,resetWarningCache:wq};return n.PropTypes=n,n};xq.exports=foe();var Ug=xq.exports;const H0=zs(Ug);function Rd(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function VC(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function uS(e,t){var n,r;return I.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Ar(e){return e&&e.ownerDocument||document}function gu(e){return Ar(e).defaultView||window}function n$(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const hoe=typeof window<"u"?I.useLayoutEffect:I.useEffect,ko=hoe;let s6=0;function poe(e){const[t,n]=I.useState(e),r=e||t;return I.useEffect(()=>{t==null&&(s6+=1,n(`mui-${s6}`))},[t]),r}const a6=QS["useId".toString()];function b5(e){if(a6!==void 0){const t=a6();return e??t}return poe(e)}function kx({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=I.useRef(e!==void 0),[o,s]=I.useState(t),l=i?e:o,c=I.useCallback(d=>{i||s(d)},[]);return[l,c]}function Zi(e){const t=I.useRef(e);return ko(()=>{t.current=e}),I.useCallback((...n)=>(0,t.current)(...n),[])}function mr(...e){return I.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{n$(n,t)})},e)}let qC=!0,r$=!1,l6;const moe={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 goe(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&moe[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function voe(e){e.metaKey||e.altKey||e.ctrlKey||(qC=!0)}function gD(){qC=!1}function yoe(){this.visibilityState==="hidden"&&r$&&(qC=!0)}function boe(e){e.addEventListener("keydown",voe,!0),e.addEventListener("mousedown",gD,!0),e.addEventListener("pointerdown",gD,!0),e.addEventListener("touchstart",gD,!0),e.addEventListener("visibilitychange",yoe,!0)}function xoe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return qC||goe(t)}function x5(){const e=I.useCallback(i=>{i!=null&&boe(i.ownerDocument)},[]),t=I.useRef(!1);function n(){return t.current?(r$=!0,window.clearTimeout(l6),l6=window.setTimeout(()=>{r$=!1},100),t.current=!1,!0):!1}function r(i){return xoe(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Sq(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Vp;function Eq(){if(Vp)return Vp;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Vp="reverse",e.scrollLeft>0?Vp="default":(e.scrollLeft=1,e.scrollLeft===0&&(Vp="negative")),document.body.removeChild(e),Vp}function woe(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(Eq()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const _oe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Soe=_oe;function w5(e,t){const n=$({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=$({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=$({},o),Object.keys(i).forEach(s=>{n[r][s]=w5(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Tt(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const l=t(s);l!==""&&o.push(l),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const c6=e=>e,Eoe=()=>{let e=c6;return{configure(t){e=t},generate(t){return e(t)},reset(){e=c6}}},Coe=Eoe(),Cq=Coe,Toe={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 St(e,t,n="Mui"){const r=Toe[t];return r?`${n}-${r}`:`${Cq.generate(e)}-${t}`}function kt(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=St(e,i,n)}),r}const ip="$$material";function Le(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function Tq(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var koe=/^((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)-.*))$/,Aoe=Tq(function(e){return koe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Roe(e){if(e.sheet)return e.sheet;for(var t=0;t0?$i(Hg,--Vo):0,cg--,Vr===10&&(cg=1,YC--),Vr}function ks(){return Vr=Vo2||Rx(Vr)>3?"":" "}function Uoe(e,t){for(;--t&&ks()&&!(Vr<48||Vr>102||Vr>57&&Vr<65||Vr>70&&Vr<97););return B1(e,dS()+(t<6&&Bl()==32&&ks()==32))}function o$(e){for(;ks();)switch(Vr){case e:return Vo;case 34:case 39:e!==34&&e!==39&&o$(Vr);break;case 40:e===41&&o$(e);break;case 92:ks();break}return Vo}function Hoe(e,t){for(;ks()&&e+Vr!==47+10;)if(e+Vr===42+42&&Bl()===47)break;return"/*"+B1(t,Vo-1)+"*"+XC(e===47?e:ks())}function Woe(e){for(;!Rx(Bl());)ks();return B1(e,Vo)}function Goe(e){return Oq(hS("",null,null,null,[""],e=Pq(e),0,[0],e))}function hS(e,t,n,r,i,o,s,l,c){for(var d=0,f=0,h=s,p=0,g=0,v=0,y=1,S=1,_=1,b=0,x="",E=i,A=o,R=r,k=x;S;)switch(v=b,b=ks()){case 40:if(v!=108&&$i(k,h-1)==58){i$(k+=Rn(fS(b),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:k+=fS(b);break;case 9:case 10:case 13:case 32:k+=joe(v);break;case 92:k+=Uoe(dS()-1,7);continue;case 47:switch(Bl()){case 42:case 47:Cw(Voe(Hoe(ks(),dS()),t,n),c);break;default:k+="/"}break;case 123*y:l[d++]=Al(k)*_;case 125*y:case 59:case 0:switch(b){case 0:case 125:S=0;case 59+f:_==-1&&(k=Rn(k,/\f/g,"")),g>0&&Al(k)-h&&Cw(g>32?d6(k+";",r,n,h-1):d6(Rn(k," ","")+";",r,n,h-2),c);break;case 59:k+=";";default:if(Cw(R=u6(k,t,n,d,f,i,l,x,E=[],A=[],h),o),b===123)if(f===0)hS(k,t,R,R,E,o,h,l,A);else switch(p===99&&$i(k,3)===110?100:p){case 100:case 108:case 109:case 115:hS(e,R,R,r&&Cw(u6(e,R,R,0,0,i,l,x,i,E=[],h),A),i,A,h,l,r?E:A);break;default:hS(k,R,R,R,[""],A,0,l,A)}}d=f=g=0,y=_=1,x=k="",h=s;break;case 58:h=1+Al(k),g=v;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&zoe()==125)continue}switch(k+=XC(b),b*y){case 38:_=f>0?1:(k+="\f",-1);break;case 44:l[d++]=(Al(k)-1)*_,_=1;break;case 64:Bl()===45&&(k+=fS(ks())),p=Bl(),f=h=Al(x=k+=Woe(dS())),b++;break;case 45:v===45&&Al(k)==2&&(y=0)}}return o}function u6(e,t,n,r,i,o,s,l,c,d,f){for(var h=i-1,p=i===0?o:[""],g=E5(p),v=0,y=0,S=0;v0?p[_]+" "+b:Rn(b,/&\f/g,p[_])))&&(c[S++]=x);return KC(e,t,n,i===0?_5:l,c,d,f)}function Voe(e,t,n){return KC(e,t,n,kq,XC(Foe()),Ax(e,2,-2),0)}function d6(e,t,n,r){return KC(e,t,n,S5,Ax(e,0,r),Ax(e,r+1,-1),r)}function Um(e,t){for(var n="",r=E5(e),i=0;i6)switch($i(e,t+1)){case 109:if($i(e,t+4)!==45)break;case 102:return Rn(e,/(.+:)(.+)-([^]+)/,"$1"+An+"$2-$3$1"+JS+($i(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~i$(e,"stretch")?Mq(Rn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($i(e,t+1)!==115)break;case 6444:switch($i(e,Al(e)-3-(~i$(e,"!important")&&10))){case 107:return Rn(e,":",":"+An)+e;case 101:return Rn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+An+($i(e,14)===45?"inline-":"")+"box$3$1"+An+"$2$3$1"+Xi+"$2box$3")+e}break;case 5936:switch($i(e,t+11)){case 114:return An+e+Xi+Rn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return An+e+Xi+Rn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return An+e+Xi+Rn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return An+e+Xi+e+e}return e}var tse=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case S5:t.return=Mq(t.value,t.length);break;case Aq:return Um([W0(t,{value:Rn(t.value,"@","@"+An)})],i);case _5:if(t.length)return $oe(t.props,function(o){switch(Boe(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Um([W0(t,{props:[Rn(o,/:(read-\w+)/,":"+JS+"$1")]})],i);case"::placeholder":return Um([W0(t,{props:[Rn(o,/:(plac\w+)/,":"+An+"input-$1")]}),W0(t,{props:[Rn(o,/:(plac\w+)/,":"+JS+"$1")]}),W0(t,{props:[Rn(o,/:(plac\w+)/,Xi+"input-$1")]})],i)}return""})}},nse=[tse],rse=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var S=y.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||nse,o={},s,l=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var S=y.getAttribute("data-emotion").split(" "),_=1;_=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var vse={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},yse=/[A-Z]|^ms/g,bse=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Lq=function(t){return t.charCodeAt(1)===45},h6=function(t){return t!=null&&typeof t!="boolean"},mD=wq(function(e){return Lq(e)?e:e.replace(yse,"-$&").toLowerCase()}),p6=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(bse,function(r,i,o){return kl={name:i,styles:o,next:kl},i})}return vse[t]!==1&&!Lq(t)&&typeof n=="number"&&n!==0?n+"px":n};function kx(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return kl={name:n.name,styles:n.styles,next:kl},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)kl={name:r.name,styles:r.styles,next:kl},r=r.next;var i=n.styles+";";return i}return xse(e,t,n)}case"function":{if(e!==void 0){var o=kl,s=n(e);return kl=o,kx(e,t,s)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function xse(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?Ese:Cse},y6=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Tse=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Mq(n,r,i),_se(function(){return Dq(n,r,i)}),null},kse=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var l=y6(t,n,r),c=l||v6(i),d=!c("as");return function(){var f=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{h.push(f[0][0]);for(var p=f.length,g=1;gt(Ise(i)?n:i):t;return C.jsx(Sse,{styles:r})}/** + */var _i=typeof Symbol=="function"&&Symbol.for,C5=_i?Symbol.for("react.element"):60103,T5=_i?Symbol.for("react.portal"):60106,QC=_i?Symbol.for("react.fragment"):60107,JC=_i?Symbol.for("react.strict_mode"):60108,ZC=_i?Symbol.for("react.profiler"):60114,eT=_i?Symbol.for("react.provider"):60109,tT=_i?Symbol.for("react.context"):60110,k5=_i?Symbol.for("react.async_mode"):60111,nT=_i?Symbol.for("react.concurrent_mode"):60111,rT=_i?Symbol.for("react.forward_ref"):60112,iT=_i?Symbol.for("react.suspense"):60113,ise=_i?Symbol.for("react.suspense_list"):60120,oT=_i?Symbol.for("react.memo"):60115,sT=_i?Symbol.for("react.lazy"):60116,ose=_i?Symbol.for("react.block"):60121,sse=_i?Symbol.for("react.fundamental"):60117,ase=_i?Symbol.for("react.responder"):60118,lse=_i?Symbol.for("react.scope"):60119;function js(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case C5:switch(e=e.type,e){case k5:case nT:case QC:case ZC:case JC:case iT:return e;default:switch(e=e&&e.$$typeof,e){case tT:case rT:case sT:case oT:case eT:return e;default:return t}}case T5:return t}}}function Lq(e){return js(e)===nT}Bn.AsyncMode=k5;Bn.ConcurrentMode=nT;Bn.ContextConsumer=tT;Bn.ContextProvider=eT;Bn.Element=C5;Bn.ForwardRef=rT;Bn.Fragment=QC;Bn.Lazy=sT;Bn.Memo=oT;Bn.Portal=T5;Bn.Profiler=ZC;Bn.StrictMode=JC;Bn.Suspense=iT;Bn.isAsyncMode=function(e){return Lq(e)||js(e)===k5};Bn.isConcurrentMode=Lq;Bn.isContextConsumer=function(e){return js(e)===tT};Bn.isContextProvider=function(e){return js(e)===eT};Bn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===C5};Bn.isForwardRef=function(e){return js(e)===rT};Bn.isFragment=function(e){return js(e)===QC};Bn.isLazy=function(e){return js(e)===sT};Bn.isMemo=function(e){return js(e)===oT};Bn.isPortal=function(e){return js(e)===T5};Bn.isProfiler=function(e){return js(e)===ZC};Bn.isStrictMode=function(e){return js(e)===JC};Bn.isSuspense=function(e){return js(e)===iT};Bn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===QC||e===nT||e===ZC||e===JC||e===iT||e===ise||typeof e=="object"&&e!==null&&(e.$$typeof===sT||e.$$typeof===oT||e.$$typeof===eT||e.$$typeof===tT||e.$$typeof===rT||e.$$typeof===sse||e.$$typeof===ase||e.$$typeof===lse||e.$$typeof===ose)};Bn.typeOf=js;Dq.exports=Bn;var cse=Dq.exports,A5=cse,use={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},dse={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},fse={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Nq={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},R5={};R5[A5.ForwardRef]=fse;R5[A5.Memo]=Nq;function h6(e){return A5.isMemo(e)?Nq:R5[e.$$typeof]||use}var hse=Object.defineProperty,pse=Object.getOwnPropertyNames,p6=Object.getOwnPropertySymbols,mse=Object.getOwnPropertyDescriptor,gse=Object.getPrototypeOf,m6=Object.prototype;function Bq(e,t,n){if(typeof t!="string"){if(m6){var r=gse(t);r&&r!==m6&&Bq(e,r,n)}var i=pse(t);p6&&(i=i.concat(p6(t)));for(var o=h6(e),s=h6(t),l=0;l=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var wse={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},_se=/[A-Z]|^ms/g,Sse=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zq=function(t){return t.charCodeAt(1)===45},v6=function(t){return t!=null&&typeof t!="boolean"},vD=Tq(function(e){return zq(e)?e:e.replace(_se,"-$&").toLowerCase()}),y6=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Sse,function(r,i,o){return Rl={name:i,styles:o,next:Rl},i})}return wse[t]!==1&&!zq(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ix(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Rl={name:n.name,styles:n.styles,next:Rl},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Rl={name:r.name,styles:r.styles,next:Rl},r=r.next;var i=n.styles+";";return i}return Ese(e,t,n)}case"function":{if(e!==void 0){var o=Rl,s=n(e);return Rl=o,Ix(e,t,s)}break}}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function Ese(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?Ase:Rse},_6=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Ise=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return $q(n,r,i),Tse(function(){return Fq(n,r,i)}),null},Pse=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var l=_6(t,n,r),c=l||w6(i),d=!c("as");return function(){var f=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{h.push(f[0][0]);for(var p=f.length,g=1;gt(Mse(i)?n:i):t;return C.jsx(kse,{styles:r})}/** * @mui/styled-engine v5.14.11 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function Fq(e,t){return r$(e,t)}const Pse=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Ose=["values","unit","step"],Mse=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>$({},n,{[r.key]:r.val}),{})};function Dse(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Le(e,Ose),o=Mse(t),s=Object.keys(o);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function d(p,g){const v=s.indexOf(g);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:g)-r/100}${n})`}function f(p){return s.indexOf(p)+1`@media (min-width:${I5[e]}px)`};function cl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||b6;return t.reduce((s,l,c)=>(s[o.up(o.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const o=r.breakpoints||b6;return Object.keys(t).reduce((s,l)=>{if(Object.keys(o.values||I5).indexOf(l)!==-1){const c=o.up(l);s[c]=n(t[l],l)}else{const c=l;s[c]=t[c]}return s},{})}return n(t)}function zq(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function jq(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Bse(e,...t){const n=zq(e),r=[n,...t].reduce((i,o)=>zo(i,o),{});return jq(Object.keys(n),r)}function $se(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o{e[i]!=null&&(n[i]=!0)}),n}function gD({values:e,breakpoints:t,base:n}){const r=n||$se(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((s,l,c)=>(Array.isArray(e)?(s[l]=e[c]!=null?e[c]:e[o],o=c):typeof e=="object"?(s[l]=e[l]!=null?e[l]:e[o],o=l):s[l]=e,s),{})}function sT(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function JS(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=sT(e,n)||r,t&&(i=t(i,r,e)),i}function In(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const l=s[t],c=s.theme,d=sT(c,r)||{};return cl(s,l,h=>{let p=JS(d,i,h);return h===p&&typeof h=="string"&&(p=JS(d,i,`${t}${h==="default"?"":Me(h)}`,h)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function Fse(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const zse={m:"margin",p:"padding"},jse={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},x6={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Use=Fse(e=>{if(e.length>2)if(x6[e])e=x6[e];else return[e];const[t,n]=e.split(""),r=zse[t],i=jse[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),R5=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],P5=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...R5,...P5];function L1(e,t,n,r){var i;const o=(i=sT(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function O5(e){return L1(e,"spacing",8)}function ip(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Hse(e,t){return n=>e.reduce((r,i)=>(r[i]=ip(t,n),r),{})}function Wse(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=Use(n),o=Hse(i,r),s=e[n];return cl(e,s,o)}function Uq(e,t){const n=O5(e.theme);return Object.keys(e).map(r=>Wse(e,t,r,n)).reduce(Vb,{})}function Dr(e){return Uq(e,R5)}Dr.propTypes={};Dr.filterProps=R5;function Lr(e){return Uq(e,P5)}Lr.propTypes={};Lr.filterProps=P5;function Gse(e=8){if(e.mui)return e;const t=O5({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function aT(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Vb(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Rl(e){return typeof e!="number"?e:`${e}px solid`}const Vse=In({prop:"border",themeKey:"borders",transform:Rl}),qse=In({prop:"borderTop",themeKey:"borders",transform:Rl}),Xse=In({prop:"borderRight",themeKey:"borders",transform:Rl}),Yse=In({prop:"borderBottom",themeKey:"borders",transform:Rl}),Kse=In({prop:"borderLeft",themeKey:"borders",transform:Rl}),Qse=In({prop:"borderColor",themeKey:"palette"}),Jse=In({prop:"borderTopColor",themeKey:"palette"}),Zse=In({prop:"borderRightColor",themeKey:"palette"}),eae=In({prop:"borderBottomColor",themeKey:"palette"}),tae=In({prop:"borderLeftColor",themeKey:"palette"}),lT=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=L1(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:ip(t,r)});return cl(e,e.borderRadius,n)}return null};lT.propTypes={};lT.filterProps=["borderRadius"];aT(Vse,qse,Xse,Yse,Kse,Qse,Jse,Zse,eae,tae,lT);const cT=e=>{if(e.gap!==void 0&&e.gap!==null){const t=L1(e.theme,"spacing",8),n=r=>({gap:ip(t,r)});return cl(e,e.gap,n)}return null};cT.propTypes={};cT.filterProps=["gap"];const uT=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=L1(e.theme,"spacing",8),n=r=>({columnGap:ip(t,r)});return cl(e,e.columnGap,n)}return null};uT.propTypes={};uT.filterProps=["columnGap"];const dT=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=L1(e.theme,"spacing",8),n=r=>({rowGap:ip(t,r)});return cl(e,e.rowGap,n)}return null};dT.propTypes={};dT.filterProps=["rowGap"];const nae=In({prop:"gridColumn"}),rae=In({prop:"gridRow"}),iae=In({prop:"gridAutoFlow"}),oae=In({prop:"gridAutoColumns"}),sae=In({prop:"gridAutoRows"}),aae=In({prop:"gridTemplateColumns"}),lae=In({prop:"gridTemplateRows"}),cae=In({prop:"gridTemplateAreas"}),uae=In({prop:"gridArea"});aT(cT,uT,dT,nae,rae,iae,oae,sae,aae,lae,cae,uae);function jm(e,t){return t==="grey"?t:e}const dae=In({prop:"color",themeKey:"palette",transform:jm}),fae=In({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:jm}),hae=In({prop:"backgroundColor",themeKey:"palette",transform:jm});aT(dae,fae,hae);function xs(e){return e<=1&&e!==0?`${e*100}%`:e}const pae=In({prop:"width",transform:xs}),M5=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||I5[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:xs(n)}};return cl(e,e.maxWidth,t)}return null};M5.filterProps=["maxWidth"];const mae=In({prop:"minWidth",transform:xs}),gae=In({prop:"height",transform:xs}),vae=In({prop:"maxHeight",transform:xs}),yae=In({prop:"minHeight",transform:xs});In({prop:"size",cssProperty:"width",transform:xs});In({prop:"size",cssProperty:"height",transform:xs});const bae=In({prop:"boxSizing"});aT(pae,M5,mae,gae,vae,yae,bae);const xae={border:{themeKey:"borders",transform:Rl},borderTop:{themeKey:"borders",transform:Rl},borderRight:{themeKey:"borders",transform:Rl},borderBottom:{themeKey:"borders",transform:Rl},borderLeft:{themeKey:"borders",transform:Rl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:lT},color:{themeKey:"palette",transform:jm},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:jm},backgroundColor:{themeKey:"palette",transform:jm},p:{style:Lr},pt:{style:Lr},pr:{style:Lr},pb:{style:Lr},pl:{style:Lr},px:{style:Lr},py:{style:Lr},padding:{style:Lr},paddingTop:{style:Lr},paddingRight:{style:Lr},paddingBottom:{style:Lr},paddingLeft:{style:Lr},paddingX:{style:Lr},paddingY:{style:Lr},paddingInline:{style:Lr},paddingInlineStart:{style:Lr},paddingInlineEnd:{style:Lr},paddingBlock:{style:Lr},paddingBlockStart:{style:Lr},paddingBlockEnd:{style:Lr},m:{style:Dr},mt:{style:Dr},mr:{style:Dr},mb:{style:Dr},ml:{style:Dr},mx:{style:Dr},my:{style:Dr},margin:{style:Dr},marginTop:{style:Dr},marginRight:{style:Dr},marginBottom:{style:Dr},marginLeft:{style:Dr},marginX:{style:Dr},marginY:{style:Dr},marginInline:{style:Dr},marginInlineStart:{style:Dr},marginInlineEnd:{style:Dr},marginBlock:{style:Dr},marginBlockStart:{style:Dr},marginBlockEnd:{style:Dr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:cT},rowGap:{style:dT},columnGap:{style:uT},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:xs},maxWidth:{style:M5},minWidth:{transform:xs},height:{transform:xs},maxHeight:{transform:xs},minHeight:{transform:xs},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},fT=xae;function wae(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function _ae(e,t){return typeof e=="function"?e(t):e}function Sae(){function e(n,r,i,o){const s={[n]:r,theme:i},l=o[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:d,transform:f,style:h}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const p=sT(i,d)||{};return h?h(s):cl(s,r,v=>{let y=JS(p,f,v);return v===y&&typeof v=="string"&&(y=JS(p,f,`${n}${v==="default"?"":Me(v)}`,v)),c===!1?y:{[c]:y}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:fT;function l(c){let d=c;if(typeof c=="function")d=c(o);else if(typeof c!="object")return c;if(!d)return null;const f=zq(o.breakpoints),h=Object.keys(f);let p=f;return Object.keys(d).forEach(g=>{const v=_ae(d[g],o);if(v!=null)if(typeof v=="object")if(s[g])p=Vb(p,e(g,v,o,s));else{const y=cl({theme:o},v,S=>({[g]:S}));wae(y,v)?p[g]=t({sx:v,theme:o}):p=Vb(p,y)}else p=Vb(p,e(g,v,o,s))}),jq(h,p)}return Array.isArray(i)?i.map(l):l(i)}return t}const Hq=Sae();Hq.filterProps=["sx"];const hT=Hq,Eae=["breakpoints","palette","spacing","shape"];function pT(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=Le(e,Eae),l=Dse(n),c=Gse(i);let d=zo({breakpoints:l,direction:"ltr",components:{},palette:$({mode:"light"},r),spacing:c,shape:$({},Nse,o)},s);return d=t.reduce((f,h)=>zo(f,h),d),d.unstable_sxConfig=$({},fT,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return hT({sx:h,theme:this})},d}function Cae(e){return Object.keys(e).length===0}function mT(e=null){const t=R.useContext(oT);return!t||Cae(t)?e:t}const Tae=pT();function gT(e=Tae){return mT(e)}function kae({styles:e,themeId:t,defaultTheme:n={}}){const r=gT(n),i=typeof e=="function"?e(t&&r[t]||r):e;return C.jsx(Rse,{styles:i})}const Aae=["sx"],Iae=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:fT;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function D5(e){const{sx:t}=e,n=Le(e,Aae),{systemProps:r,otherProps:i}=Iae(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const l=t(...s);return Nh(l)?$({},r,l):r}:o=$({},r,t),$({},i,{sx:o})}function Wq(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;tl!=="theme"&&l!=="sx"&&l!=="as"})(hT);return R.forwardRef(function(c,d){const f=gT(n),h=D5(c),{className:p,component:g="div"}=h,v=Le(h,Rae);return C.jsx(o,$({as:g,ref:d,className:je(p,i?i(r):r),theme:t&&f[t]||f},v))})}const Oae=["variant"];function w6(e){return e.length===0}function Gq(e){const{variant:t}=e,n=Le(e,Oae);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=w6(r)?e[i]:Me(e[i]):r+=`${w6(r)?i:Me(i)}${Me(e[i].toString())}`}),r}const Mae=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Dae(e){return Object.keys(e).length===0}function Lae(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Nae=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Bae=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(i=>{const o=Gq(i.props);r[o]=i.style}),r},$ae=(e,t,n,r)=>{var i;const{ownerState:o={}}=e,s=[],l=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return l&&l.forEach(c=>{let d=!0;Object.keys(c.props).forEach(f=>{o[f]!==c.props[f]&&e[f]!==c.props[f]&&(d=!1)}),d&&s.push(t[Gq(c.props)])}),s};function qb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Fae=pT(),zae=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function U0({defaultTheme:e,theme:t,themeId:n}){return Dae(t)?e:t[n]||t}function jae(e){return e?(t,n)=>n[e]:null}function Vq(e={}){const{themeId:t,defaultTheme:n=Fae,rootShouldForwardProp:r=qb,slotShouldForwardProp:i=qb}=e,o=s=>hT($({},s,{theme:U0($({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,l={})=>{Pse(s,E=>E.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:c,slot:d,skipVariantsResolver:f,skipSx:h,overridesResolver:p=jae(zae(d))}=l,g=Le(l,Mae),v=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,y=h||!1;let S,_=qb;d==="Root"||d==="root"?_=r:d?_=i:Lae(s)&&(_=void 0);const b=Fq(s,$({shouldForwardProp:_,label:S},g)),x=(E,...A)=>{const I=A?A.map(N=>typeof N=="function"&&N.__emotion_real!==N?H=>N($({},H,{theme:U0($({},H,{defaultTheme:n,themeId:t}))})):N):[];let k=E;c&&p&&I.push(N=>{const H=U0($({},N,{defaultTheme:n,themeId:t})),W=Nae(c,H);if(W){const z={};return Object.entries(W).forEach(([D,F])=>{z[D]=typeof F=="function"?F($({},N,{theme:H})):F}),p(N,z)}return null}),c&&!v&&I.push(N=>{const H=U0($({},N,{defaultTheme:n,themeId:t}));return $ae(N,Bae(c,H),H,c)}),y||I.push(o);const O=I.length-A.length;if(Array.isArray(E)&&O>0){const N=new Array(O).fill("");k=[...E,...N],k.raw=[...E.raw,...N]}else typeof E=="function"&&E.__emotion_real!==E&&(k=N=>E($({},N,{theme:U0($({},N,{defaultTheme:n,themeId:t}))})));const L=b(k,...I);return s.muiName&&(L.muiName=s.muiName),L};return b.withConfig&&(x.withConfig=b.withConfig),x}}const Uae=Vq(),Hae=Uae;function qq(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:b5(t.components[n].defaultProps,r)}function Xq({props:e,name:t,defaultTheme:n,themeId:r}){let i=gT(n);return r&&(i=i[r]||i),qq({theme:i,name:t,props:e})}function L5(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Wae(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function op(e){if(e.type)return e;if(e.charAt(0)==="#")return op(Wae(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(kd(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(kd(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function vT(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Gae(e){e=op(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(d,f=(d+n/30)%12)=>i-o*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),vT({type:l,values:c})}function i$(e){e=op(e);let t=e.type==="hsl"||e.type==="hsla"?op(Gae(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function o$(e,t){const n=i$(e),r=i$(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function _n(e,t){return e=op(e),t=L5(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,vT(e)}function Wg(e,t){if(e=op(e),t=L5(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return vT(e)}function Gg(e,t){if(e=op(e),t=L5(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return vT(e)}function Vae(e,t=.15){return i$(e)>.5?Wg(e,t):Gg(e,t)}const qae=R.createContext(null),Yq=qae;function Kq(){return R.useContext(Yq)}const Xae=typeof Symbol=="function"&&Symbol.for,Yae=Xae?Symbol.for("mui.nested"):"__THEME_NESTED__";function Kae(e,t){return typeof t=="function"?t(e):$({},e,t)}function Qae(e){const{children:t,theme:n}=e,r=Kq(),i=R.useMemo(()=>{const o=r===null?n:Kae(r,n);return o!=null&&(o[Yae]=r!==null),o},[n,r]);return C.jsx(Yq.Provider,{value:i,children:t})}const _6={};function S6(e,t,n,r=!1){return R.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?$({},t,{[e]:o}):o;return r?()=>s:s}return e?$({},t,{[e]:n}):$({},t,n)},[e,t,n,r])}function Jae(e){const{children:t,theme:n,themeId:r}=e,i=mT(_6),o=Kq()||_6,s=S6(r,i,n),l=S6(r,o,n,!0);return C.jsx(Qae,{theme:l,children:C.jsx(oT.Provider,{value:s,children:t})})}const Zae=["component","direction","spacing","divider","children","className","useFlexGap"],ele=pT(),tle=Hae("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function nle(e){return Xq({props:e,name:"MuiStack",defaultTheme:ele})}function rle(e,t){const n=R.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],ole=({ownerState:e,theme:t})=>{let n=$({display:"flex",flexDirection:"column"},cl({theme:t},gD({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=O5(t),i=Object.keys(t.breakpoints.values).reduce((c,d)=>((typeof e.spacing=="object"&&e.spacing[d]!=null||typeof e.direction=="object"&&e.direction[d]!=null)&&(c[d]=!0),c),{}),o=gD({values:e.direction,base:i}),s=gD({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((c,d,f)=>{if(!o[c]){const p=d>0?o[f[d-1]]:"column";o[c]=p}}),n=zo(n,cl({theme:t},s,(c,d)=>e.useFlexGap?{gap:ip(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ile(d?o[d]:e.direction)}`]:ip(r,c)}}))}return n=Bse(t.breakpoints,n),n};function sle(e={}){const{createStyledComponent:t=tle,useThemeProps:n=nle,componentName:r="MuiStack"}=e,i=()=>Tt({root:["root"]},c=>St(r,c),{}),o=t(ole);return R.forwardRef(function(c,d){const f=n(c),h=D5(f),{component:p="div",direction:g="column",spacing:v=0,divider:y,children:S,className:_,useFlexGap:b=!1}=h,x=Le(h,Zae),E={direction:g,spacing:v,useFlexGap:b},A=i();return C.jsx(o,$({as:p,ownerState:E,ref:d,className:je(A.root,_)},x,{children:y?rle(S,y):S}))})}function ale(e,t){return $({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const lle=["mode","contrastThreshold","tonalOffset"],E6={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:sg.white,default:sg.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}},vD={text:{primary:sg.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:sg.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 C6(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Gg(e.main,i):t==="dark"&&(e.dark=Wg(e.main,o)))}function cle(e="light"){return e==="dark"?{main:Uu[200],light:Uu[50],dark:Uu[400]}:{main:Uu[700],light:Uu[400],dark:Uu[800]}}function ule(e="light"){return e==="dark"?{main:_h[200],light:_h[50],dark:_h[400]}:{main:_h[500],light:_h[300],dark:_h[700]}}function dle(e="light"){return e==="dark"?{main:ju[500],light:ju[300],dark:ju[700]}:{main:ju[700],light:ju[400],dark:ju[800]}}function fle(e="light"){return e==="dark"?{main:Sh[400],light:Sh[300],dark:Sh[700]}:{main:Sh[700],light:Sh[500],dark:Sh[900]}}function hle(e="light"){return e==="dark"?{main:Hu[400],light:Hu[300],dark:Hu[700]}:{main:Hu[800],light:Hu[500],dark:Hu[900]}}function ple(e="light"){return e==="dark"?{main:Lh[400],light:Lh[300],dark:Lh[700]}:{main:"#ed6c02",light:Lh[500],dark:Lh[900]}}function mle(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Le(e,lle),o=e.primary||cle(t),s=e.secondary||ule(t),l=e.error||dle(t),c=e.info||fle(t),d=e.success||hle(t),f=e.warning||ple(t);function h(y){return o$(y,vD.text.primary)>=n?vD.text.primary:E6.text.primary}const p=({color:y,name:S,mainShade:_=500,lightShade:b=300,darkShade:x=700})=>{if(y=$({},y),!y.main&&y[_]&&(y.main=y[_]),!y.hasOwnProperty("main"))throw new Error(kd(11,S?` (${S})`:"",_));if(typeof y.main!="string")throw new Error(kd(12,S?` (${S})`:"",JSON.stringify(y.main)));return C6(y,"light",b,r),C6(y,"dark",x,r),y.contrastText||(y.contrastText=h(y.main)),y},g={dark:vD,light:E6};return zo($({common:$({},sg),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:d,name:"success"}),grey:g5,contrastThreshold:n,getContrastText:h,augmentColor:p,tonalOffset:r},g[t]),i)}const gle=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function vle(e){return Math.round(e*1e5)/1e5}const T6={textTransform:"uppercase"},k6='"Roboto", "Helvetica", "Arial", sans-serif';function yle(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=k6,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:f,pxToRem:h}=n,p=Le(n,gle),g=i/14,v=h||(_=>`${_/d*g}rem`),y=(_,b,x,E,A)=>$({fontFamily:r,fontWeight:_,fontSize:v(b),lineHeight:x},r===k6?{letterSpacing:`${vle(E/b)}em`}:{},A,f),S={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(l,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(l,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(l,14,1.75,.4,T6),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,T6),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return zo($({htmlFontSize:d,pxToRem:v,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:c},S),p,{clone:!1})}const ble=.2,xle=.14,wle=.12;function dr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ble})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${xle})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${wle})`].join(",")}const _le=["none",dr(0,2,1,-1,0,1,1,0,0,1,3,0),dr(0,3,1,-2,0,2,2,0,0,1,5,0),dr(0,3,3,-2,0,3,4,0,0,1,8,0),dr(0,2,4,-1,0,4,5,0,0,1,10,0),dr(0,3,5,-1,0,5,8,0,0,1,14,0),dr(0,3,5,-1,0,6,10,0,0,1,18,0),dr(0,4,5,-2,0,7,10,1,0,2,16,1),dr(0,5,5,-3,0,8,10,1,0,3,14,2),dr(0,5,6,-3,0,9,12,1,0,3,16,2),dr(0,6,6,-3,0,10,14,1,0,4,18,3),dr(0,6,7,-4,0,11,15,1,0,4,20,3),dr(0,7,8,-4,0,12,17,2,0,5,22,4),dr(0,7,8,-4,0,13,19,2,0,5,24,4),dr(0,7,9,-4,0,14,21,2,0,5,26,4),dr(0,8,9,-5,0,15,22,2,0,6,28,5),dr(0,8,10,-5,0,16,24,2,0,6,30,5),dr(0,8,11,-5,0,17,26,2,0,6,32,5),dr(0,9,11,-5,0,18,28,2,0,7,34,6),dr(0,9,12,-6,0,19,29,2,0,7,36,6),dr(0,10,13,-6,0,20,31,3,0,8,38,7),dr(0,10,13,-6,0,21,33,3,0,8,40,7),dr(0,10,14,-6,0,22,35,3,0,8,42,7),dr(0,11,14,-7,0,23,36,3,0,9,44,8),dr(0,11,15,-7,0,24,38,3,0,9,46,8)],Sle=_le,Ele=["duration","easing","delay"],Cle={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)"},Qq={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function A6(e){return`${Math.round(e)}ms`}function Tle(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function kle(e){const t=$({},Cle,e.easing),n=$({},Qq,e.duration);return $({getAutoHeightDuration:Tle,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:c=0}=o;return Le(o,Ele),(Array.isArray(i)?i:[i]).map(d=>`${d} ${typeof s=="string"?s:A6(s)} ${l} ${typeof c=="string"?c:A6(c)}`).join(",")}},e,{easing:t,duration:n})}const Ale={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Ile=Ale,Rle=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function N5(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=Le(e,Rle);if(e.vars)throw new Error(kd(18));const l=mle(r),c=pT(e);let d=zo(c,{mixins:ale(c.breakpoints,n),palette:l,shadows:Sle.slice(),typography:yle(l,o),transitions:kle(i),zIndex:$({},Ile)});return d=zo(d,s),d=t.reduce((f,h)=>zo(f,h),d),d.unstable_sxConfig=$({},fT,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return hT({sx:h,theme:this})},d}const Ple=N5(),yT=Ple;function Rn(){const e=gT(yT);return e[rp]||e}function At({props:e,name:t}){return Xq({props:e,name:t,defaultTheme:yT,themeId:rp})}const ga=e=>qb(e)&&e!=="classes",B5=qb,Ole=Vq({themeId:rp,defaultTheme:yT,rootShouldForwardProp:ga}),Ee=Ole,Mle=["theme"];function Dle(e){let{theme:t}=e,n=Le(e,Mle);const r=t[rp];return C.jsx(Jae,$({},n,{themeId:r?rp:void 0,theme:r||t}))}const Lle=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},I6=Lle;function Nle(e){return St("MuiSvgIcon",e)}kt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ble=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],$le=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Me(t)}`,`fontSize${Me(n)}`]};return Tt(i,Nle,r)},Fle=Ee("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Me(n.color)}`],t[`fontSize${Me(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,l,c,d,f,h,p,g,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((d=e.typography)==null||(f=d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}[t.fontSize],color:(h=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?h:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),Jq=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:h,viewBox:p="0 0 24 24"}=r,g=Le(r,Ble),v=R.isValidElement(i)&&i.type==="svg",y=$({},r,{color:s,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p,hasSvgAsChild:v}),S={};f||(S.viewBox=p);const _=$le(y);return C.jsxs(Fle,$({as:l,className:je(_.root,o),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},S,g,v&&i.props,{ownerState:y,children:[v?i.props.children:i,h?C.jsx("title",{children:h}):null]}))});Jq.muiName="SvgIcon";const R6=Jq;function Bt(e,t){function n(r,i){return C.jsx(R6,$({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=R6.muiName,R.memo(R.forwardRef(n))}var Un={};/** + */function Wq(e,t){return s$(e,t)}const Lse=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Nse=["values","unit","step"],Bse=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>$({},n,{[r.key]:r.val}),{})};function $se(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Le(e,Nse),o=Bse(t),s=Object.keys(o);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function d(p,g){const v=s.indexOf(g);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:g)-r/100}${n})`}function f(p){return s.indexOf(p)+1`@media (min-width:${P5[e]}px)`};function dl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||S6;return t.reduce((s,l,c)=>(s[o.up(o.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const o=r.breakpoints||S6;return Object.keys(t).reduce((s,l)=>{if(Object.keys(o.values||P5).indexOf(l)!==-1){const c=o.up(l);s[c]=n(t[l],l)}else{const c=l;s[c]=t[c]}return s},{})}return n(t)}function Gq(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function Vq(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function jse(e,...t){const n=Gq(e),r=[n,...t].reduce((i,o)=>zo(i,o),{});return Vq(Object.keys(n),r)}function Use(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o{e[i]!=null&&(n[i]=!0)}),n}function yD({values:e,breakpoints:t,base:n}){const r=n||Use(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((s,l,c)=>(Array.isArray(e)?(s[l]=e[c]!=null?e[c]:e[o],o=c):typeof e=="object"?(s[l]=e[l]!=null?e[l]:e[o],o=l):s[l]=e,s),{})}function lT(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function ZS(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=lT(e,n)||r,t&&(i=t(i,r,e)),i}function In(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const l=s[t],c=s.theme,d=lT(c,r)||{};return dl(s,l,h=>{let p=ZS(d,i,h);return h===p&&typeof h=="string"&&(p=ZS(d,i,`${t}${h==="default"?"":Me(h)}`,h)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function Hse(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Wse={m:"margin",p:"padding"},Gse={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},E6={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Vse=Hse(e=>{if(e.length>2)if(E6[e])e=E6[e];else return[e];const[t,n]=e.split(""),r=Wse[t],i=Gse[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),O5=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],M5=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...O5,...M5];function $1(e,t,n,r){var i;const o=(i=lT(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function D5(e){return $1(e,"spacing",8)}function op(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function qse(e,t){return n=>e.reduce((r,i)=>(r[i]=op(t,n),r),{})}function Xse(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=Vse(n),o=qse(i,r),s=e[n];return dl(e,s,o)}function qq(e,t){const n=D5(e.theme);return Object.keys(e).map(r=>Xse(e,t,r,n)).reduce(Yb,{})}function Dr(e){return qq(e,O5)}Dr.propTypes={};Dr.filterProps=O5;function Lr(e){return qq(e,M5)}Lr.propTypes={};Lr.filterProps=M5;function Yse(e=8){if(e.mui)return e;const t=D5({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function cT(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Yb(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Ol(e){return typeof e!="number"?e:`${e}px solid`}const Kse=In({prop:"border",themeKey:"borders",transform:Ol}),Qse=In({prop:"borderTop",themeKey:"borders",transform:Ol}),Jse=In({prop:"borderRight",themeKey:"borders",transform:Ol}),Zse=In({prop:"borderBottom",themeKey:"borders",transform:Ol}),eae=In({prop:"borderLeft",themeKey:"borders",transform:Ol}),tae=In({prop:"borderColor",themeKey:"palette"}),nae=In({prop:"borderTopColor",themeKey:"palette"}),rae=In({prop:"borderRightColor",themeKey:"palette"}),iae=In({prop:"borderBottomColor",themeKey:"palette"}),oae=In({prop:"borderLeftColor",themeKey:"palette"}),uT=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=$1(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:op(t,r)});return dl(e,e.borderRadius,n)}return null};uT.propTypes={};uT.filterProps=["borderRadius"];cT(Kse,Qse,Jse,Zse,eae,tae,nae,rae,iae,oae,uT);const dT=e=>{if(e.gap!==void 0&&e.gap!==null){const t=$1(e.theme,"spacing",8),n=r=>({gap:op(t,r)});return dl(e,e.gap,n)}return null};dT.propTypes={};dT.filterProps=["gap"];const fT=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=$1(e.theme,"spacing",8),n=r=>({columnGap:op(t,r)});return dl(e,e.columnGap,n)}return null};fT.propTypes={};fT.filterProps=["columnGap"];const hT=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=$1(e.theme,"spacing",8),n=r=>({rowGap:op(t,r)});return dl(e,e.rowGap,n)}return null};hT.propTypes={};hT.filterProps=["rowGap"];const sae=In({prop:"gridColumn"}),aae=In({prop:"gridRow"}),lae=In({prop:"gridAutoFlow"}),cae=In({prop:"gridAutoColumns"}),uae=In({prop:"gridAutoRows"}),dae=In({prop:"gridTemplateColumns"}),fae=In({prop:"gridTemplateRows"}),hae=In({prop:"gridTemplateAreas"}),pae=In({prop:"gridArea"});cT(dT,fT,hT,sae,aae,lae,cae,uae,dae,fae,hae,pae);function Hm(e,t){return t==="grey"?t:e}const mae=In({prop:"color",themeKey:"palette",transform:Hm}),gae=In({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Hm}),vae=In({prop:"backgroundColor",themeKey:"palette",transform:Hm});cT(mae,gae,vae);function xs(e){return e<=1&&e!==0?`${e*100}%`:e}const yae=In({prop:"width",transform:xs}),L5=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||P5[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:xs(n)}};return dl(e,e.maxWidth,t)}return null};L5.filterProps=["maxWidth"];const bae=In({prop:"minWidth",transform:xs}),xae=In({prop:"height",transform:xs}),wae=In({prop:"maxHeight",transform:xs}),_ae=In({prop:"minHeight",transform:xs});In({prop:"size",cssProperty:"width",transform:xs});In({prop:"size",cssProperty:"height",transform:xs});const Sae=In({prop:"boxSizing"});cT(yae,L5,bae,xae,wae,_ae,Sae);const Eae={border:{themeKey:"borders",transform:Ol},borderTop:{themeKey:"borders",transform:Ol},borderRight:{themeKey:"borders",transform:Ol},borderBottom:{themeKey:"borders",transform:Ol},borderLeft:{themeKey:"borders",transform:Ol},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:uT},color:{themeKey:"palette",transform:Hm},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Hm},backgroundColor:{themeKey:"palette",transform:Hm},p:{style:Lr},pt:{style:Lr},pr:{style:Lr},pb:{style:Lr},pl:{style:Lr},px:{style:Lr},py:{style:Lr},padding:{style:Lr},paddingTop:{style:Lr},paddingRight:{style:Lr},paddingBottom:{style:Lr},paddingLeft:{style:Lr},paddingX:{style:Lr},paddingY:{style:Lr},paddingInline:{style:Lr},paddingInlineStart:{style:Lr},paddingInlineEnd:{style:Lr},paddingBlock:{style:Lr},paddingBlockStart:{style:Lr},paddingBlockEnd:{style:Lr},m:{style:Dr},mt:{style:Dr},mr:{style:Dr},mb:{style:Dr},ml:{style:Dr},mx:{style:Dr},my:{style:Dr},margin:{style:Dr},marginTop:{style:Dr},marginRight:{style:Dr},marginBottom:{style:Dr},marginLeft:{style:Dr},marginX:{style:Dr},marginY:{style:Dr},marginInline:{style:Dr},marginInlineStart:{style:Dr},marginInlineEnd:{style:Dr},marginBlock:{style:Dr},marginBlockStart:{style:Dr},marginBlockEnd:{style:Dr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:dT},rowGap:{style:hT},columnGap:{style:fT},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:xs},maxWidth:{style:L5},minWidth:{transform:xs},height:{transform:xs},maxHeight:{transform:xs},minHeight:{transform:xs},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},pT=Eae;function Cae(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Tae(e,t){return typeof e=="function"?e(t):e}function kae(){function e(n,r,i,o){const s={[n]:r,theme:i},l=o[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:d,transform:f,style:h}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const p=lT(i,d)||{};return h?h(s):dl(s,r,v=>{let y=ZS(p,f,v);return v===y&&typeof v=="string"&&(y=ZS(p,f,`${n}${v==="default"?"":Me(v)}`,v)),c===!1?y:{[c]:y}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:pT;function l(c){let d=c;if(typeof c=="function")d=c(o);else if(typeof c!="object")return c;if(!d)return null;const f=Gq(o.breakpoints),h=Object.keys(f);let p=f;return Object.keys(d).forEach(g=>{const v=Tae(d[g],o);if(v!=null)if(typeof v=="object")if(s[g])p=Yb(p,e(g,v,o,s));else{const y=dl({theme:o},v,S=>({[g]:S}));Cae(y,v)?p[g]=t({sx:v,theme:o}):p=Yb(p,y)}else p=Yb(p,e(g,v,o,s))}),Vq(h,p)}return Array.isArray(i)?i.map(l):l(i)}return t}const Xq=kae();Xq.filterProps=["sx"];const mT=Xq,Aae=["breakpoints","palette","spacing","shape"];function gT(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=Le(e,Aae),l=$se(n),c=Yse(i);let d=zo({breakpoints:l,direction:"ltr",components:{},palette:$({mode:"light"},r),spacing:c,shape:$({},zse,o)},s);return d=t.reduce((f,h)=>zo(f,h),d),d.unstable_sxConfig=$({},pT,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return mT({sx:h,theme:this})},d}function Rae(e){return Object.keys(e).length===0}function vT(e=null){const t=I.useContext(aT);return!t||Rae(t)?e:t}const Iae=gT();function yT(e=Iae){return vT(e)}function Pae({styles:e,themeId:t,defaultTheme:n={}}){const r=yT(n),i=typeof e=="function"?e(t&&r[t]||r):e;return C.jsx(Dse,{styles:i})}const Oae=["sx"],Mae=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:pT;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function N5(e){const{sx:t}=e,n=Le(e,Oae),{systemProps:r,otherProps:i}=Mae(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const l=t(...s);return Bh(l)?$({},r,l):r}:o=$({},r,t),$({},i,{sx:o})}function Yq(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;tl!=="theme"&&l!=="sx"&&l!=="as"})(mT);return I.forwardRef(function(c,d){const f=yT(n),h=N5(c),{className:p,component:g="div"}=h,v=Le(h,Dae);return C.jsx(o,$({as:g,ref:d,className:je(p,i?i(r):r),theme:t&&f[t]||f},v))})}const Nae=["variant"];function C6(e){return e.length===0}function Kq(e){const{variant:t}=e,n=Le(e,Nae);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=C6(r)?e[i]:Me(e[i]):r+=`${C6(r)?i:Me(i)}${Me(e[i].toString())}`}),r}const Bae=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $ae(e){return Object.keys(e).length===0}function Fae(e){return typeof e=="string"&&e.charCodeAt(0)>96}const zae=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,jae=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(i=>{const o=Kq(i.props);r[o]=i.style}),r},Uae=(e,t,n,r)=>{var i;const{ownerState:o={}}=e,s=[],l=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return l&&l.forEach(c=>{let d=!0;Object.keys(c.props).forEach(f=>{o[f]!==c.props[f]&&e[f]!==c.props[f]&&(d=!1)}),d&&s.push(t[Kq(c.props)])}),s};function Kb(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Hae=gT(),Wae=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function G0({defaultTheme:e,theme:t,themeId:n}){return $ae(t)?e:t[n]||t}function Gae(e){return e?(t,n)=>n[e]:null}function Qq(e={}){const{themeId:t,defaultTheme:n=Hae,rootShouldForwardProp:r=Kb,slotShouldForwardProp:i=Kb}=e,o=s=>mT($({},s,{theme:G0($({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,l={})=>{Lse(s,E=>E.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:c,slot:d,skipVariantsResolver:f,skipSx:h,overridesResolver:p=Gae(Wae(d))}=l,g=Le(l,Bae),v=f!==void 0?f:d&&d!=="Root"&&d!=="root"||!1,y=h||!1;let S,_=Kb;d==="Root"||d==="root"?_=r:d?_=i:Fae(s)&&(_=void 0);const b=Wq(s,$({shouldForwardProp:_,label:S},g)),x=(E,...A)=>{const R=A?A.map(N=>typeof N=="function"&&N.__emotion_real!==N?H=>N($({},H,{theme:G0($({},H,{defaultTheme:n,themeId:t}))})):N):[];let k=E;c&&p&&R.push(N=>{const H=G0($({},N,{defaultTheme:n,themeId:t})),W=zae(c,H);if(W){const z={};return Object.entries(W).forEach(([D,F])=>{z[D]=typeof F=="function"?F($({},N,{theme:H})):F}),p(N,z)}return null}),c&&!v&&R.push(N=>{const H=G0($({},N,{defaultTheme:n,themeId:t}));return Uae(N,jae(c,H),H,c)}),y||R.push(o);const O=R.length-A.length;if(Array.isArray(E)&&O>0){const N=new Array(O).fill("");k=[...E,...N],k.raw=[...E.raw,...N]}else typeof E=="function"&&E.__emotion_real!==E&&(k=N=>E($({},N,{theme:G0($({},N,{defaultTheme:n,themeId:t}))})));const L=b(k,...R);return s.muiName&&(L.muiName=s.muiName),L};return b.withConfig&&(x.withConfig=b.withConfig),x}}const Vae=Qq(),qae=Vae;function Jq(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:w5(t.components[n].defaultProps,r)}function Zq({props:e,name:t,defaultTheme:n,themeId:r}){let i=yT(n);return r&&(i=i[r]||i),Jq({theme:i,name:t,props:e})}function B5(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Xae(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function sp(e){if(e.type)return e;if(e.charAt(0)==="#")return sp(Xae(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Rd(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(Rd(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function bT(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Yae(e){e=sp(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(d,f=(d+n/30)%12)=>i-o*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(l+="a",c.push(t[3])),bT({type:l,values:c})}function a$(e){e=sp(e);let t=e.type==="hsl"||e.type==="hsla"?sp(Yae(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l$(e,t){const n=a$(e),r=a$(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function _n(e,t){return e=sp(e),t=B5(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,bT(e)}function Gg(e,t){if(e=sp(e),t=B5(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return bT(e)}function Vg(e,t){if(e=sp(e),t=B5(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return bT(e)}function Kae(e,t=.15){return a$(e)>.5?Gg(e,t):Vg(e,t)}const Qae=I.createContext(null),eX=Qae;function tX(){return I.useContext(eX)}const Jae=typeof Symbol=="function"&&Symbol.for,Zae=Jae?Symbol.for("mui.nested"):"__THEME_NESTED__";function ele(e,t){return typeof t=="function"?t(e):$({},e,t)}function tle(e){const{children:t,theme:n}=e,r=tX(),i=I.useMemo(()=>{const o=r===null?n:ele(r,n);return o!=null&&(o[Zae]=r!==null),o},[n,r]);return C.jsx(eX.Provider,{value:i,children:t})}const T6={};function k6(e,t,n,r=!1){return I.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?$({},t,{[e]:o}):o;return r?()=>s:s}return e?$({},t,{[e]:n}):$({},t,n)},[e,t,n,r])}function nle(e){const{children:t,theme:n,themeId:r}=e,i=vT(T6),o=tX()||T6,s=k6(r,i,n),l=k6(r,o,n,!0);return C.jsx(tle,{theme:l,children:C.jsx(aT.Provider,{value:s,children:t})})}const rle=["component","direction","spacing","divider","children","className","useFlexGap"],ile=gT(),ole=qae("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function sle(e){return Zq({props:e,name:"MuiStack",defaultTheme:ile})}function ale(e,t){const n=I.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],cle=({ownerState:e,theme:t})=>{let n=$({display:"flex",flexDirection:"column"},dl({theme:t},yD({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=D5(t),i=Object.keys(t.breakpoints.values).reduce((c,d)=>((typeof e.spacing=="object"&&e.spacing[d]!=null||typeof e.direction=="object"&&e.direction[d]!=null)&&(c[d]=!0),c),{}),o=yD({values:e.direction,base:i}),s=yD({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((c,d,f)=>{if(!o[c]){const p=d>0?o[f[d-1]]:"column";o[c]=p}}),n=zo(n,dl({theme:t},s,(c,d)=>e.useFlexGap?{gap:op(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${lle(d?o[d]:e.direction)}`]:op(r,c)}}))}return n=jse(t.breakpoints,n),n};function ule(e={}){const{createStyledComponent:t=ole,useThemeProps:n=sle,componentName:r="MuiStack"}=e,i=()=>Tt({root:["root"]},c=>St(r,c),{}),o=t(cle);return I.forwardRef(function(c,d){const f=n(c),h=N5(f),{component:p="div",direction:g="column",spacing:v=0,divider:y,children:S,className:_,useFlexGap:b=!1}=h,x=Le(h,rle),E={direction:g,spacing:v,useFlexGap:b},A=i();return C.jsx(o,$({as:p,ownerState:E,ref:d,className:je(A.root,_)},x,{children:y?ale(S,y):S}))})}function dle(e,t){return $({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const fle=["mode","contrastThreshold","tonalOffset"],A6={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:lg.white,default:lg.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}},bD={text:{primary:lg.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:lg.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 R6(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Vg(e.main,i):t==="dark"&&(e.dark=Gg(e.main,o)))}function hle(e="light"){return e==="dark"?{main:Gu[200],light:Gu[50],dark:Gu[400]}:{main:Gu[700],light:Gu[400],dark:Gu[800]}}function ple(e="light"){return e==="dark"?{main:Sh[200],light:Sh[50],dark:Sh[400]}:{main:Sh[500],light:Sh[300],dark:Sh[700]}}function mle(e="light"){return e==="dark"?{main:Wu[500],light:Wu[300],dark:Wu[700]}:{main:Wu[700],light:Wu[400],dark:Wu[800]}}function gle(e="light"){return e==="dark"?{main:Eh[400],light:Eh[300],dark:Eh[700]}:{main:Eh[700],light:Eh[500],dark:Eh[900]}}function vle(e="light"){return e==="dark"?{main:Vu[400],light:Vu[300],dark:Vu[700]}:{main:Vu[800],light:Vu[500],dark:Vu[900]}}function yle(e="light"){return e==="dark"?{main:Nh[400],light:Nh[300],dark:Nh[700]}:{main:"#ed6c02",light:Nh[500],dark:Nh[900]}}function ble(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Le(e,fle),o=e.primary||hle(t),s=e.secondary||ple(t),l=e.error||mle(t),c=e.info||gle(t),d=e.success||vle(t),f=e.warning||yle(t);function h(y){return l$(y,bD.text.primary)>=n?bD.text.primary:A6.text.primary}const p=({color:y,name:S,mainShade:_=500,lightShade:b=300,darkShade:x=700})=>{if(y=$({},y),!y.main&&y[_]&&(y.main=y[_]),!y.hasOwnProperty("main"))throw new Error(Rd(11,S?` (${S})`:"",_));if(typeof y.main!="string")throw new Error(Rd(12,S?` (${S})`:"",JSON.stringify(y.main)));return R6(y,"light",b,r),R6(y,"dark",x,r),y.contrastText||(y.contrastText=h(y.main)),y},g={dark:bD,light:A6};return zo($({common:$({},lg),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:d,name:"success"}),grey:y5,contrastThreshold:n,getContrastText:h,augmentColor:p,tonalOffset:r},g[t]),i)}const xle=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function wle(e){return Math.round(e*1e5)/1e5}const I6={textTransform:"uppercase"},P6='"Roboto", "Helvetica", "Arial", sans-serif';function _le(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=P6,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:f,pxToRem:h}=n,p=Le(n,xle),g=i/14,v=h||(_=>`${_/d*g}rem`),y=(_,b,x,E,A)=>$({fontFamily:r,fontWeight:_,fontSize:v(b),lineHeight:x},r===P6?{letterSpacing:`${wle(E/b)}em`}:{},A,f),S={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(l,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(l,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(l,14,1.75,.4,I6),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,I6),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return zo($({htmlFontSize:d,pxToRem:v,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:c},S),p,{clone:!1})}const Sle=.2,Ele=.14,Cle=.12;function dr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Sle})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ele})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Cle})`].join(",")}const Tle=["none",dr(0,2,1,-1,0,1,1,0,0,1,3,0),dr(0,3,1,-2,0,2,2,0,0,1,5,0),dr(0,3,3,-2,0,3,4,0,0,1,8,0),dr(0,2,4,-1,0,4,5,0,0,1,10,0),dr(0,3,5,-1,0,5,8,0,0,1,14,0),dr(0,3,5,-1,0,6,10,0,0,1,18,0),dr(0,4,5,-2,0,7,10,1,0,2,16,1),dr(0,5,5,-3,0,8,10,1,0,3,14,2),dr(0,5,6,-3,0,9,12,1,0,3,16,2),dr(0,6,6,-3,0,10,14,1,0,4,18,3),dr(0,6,7,-4,0,11,15,1,0,4,20,3),dr(0,7,8,-4,0,12,17,2,0,5,22,4),dr(0,7,8,-4,0,13,19,2,0,5,24,4),dr(0,7,9,-4,0,14,21,2,0,5,26,4),dr(0,8,9,-5,0,15,22,2,0,6,28,5),dr(0,8,10,-5,0,16,24,2,0,6,30,5),dr(0,8,11,-5,0,17,26,2,0,6,32,5),dr(0,9,11,-5,0,18,28,2,0,7,34,6),dr(0,9,12,-6,0,19,29,2,0,7,36,6),dr(0,10,13,-6,0,20,31,3,0,8,38,7),dr(0,10,13,-6,0,21,33,3,0,8,40,7),dr(0,10,14,-6,0,22,35,3,0,8,42,7),dr(0,11,14,-7,0,23,36,3,0,9,44,8),dr(0,11,15,-7,0,24,38,3,0,9,46,8)],kle=Tle,Ale=["duration","easing","delay"],Rle={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)"},nX={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function O6(e){return`${Math.round(e)}ms`}function Ile(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Ple(e){const t=$({},Rle,e.easing),n=$({},nX,e.duration);return $({getAutoHeightDuration:Ile,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:l=t.easeInOut,delay:c=0}=o;return Le(o,Ale),(Array.isArray(i)?i:[i]).map(d=>`${d} ${typeof s=="string"?s:O6(s)} ${l} ${typeof c=="string"?c:O6(c)}`).join(",")}},e,{easing:t,duration:n})}const Ole={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Mle=Ole,Dle=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function $5(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=Le(e,Dle);if(e.vars)throw new Error(Rd(18));const l=ble(r),c=gT(e);let d=zo(c,{mixins:dle(c.breakpoints,n),palette:l,shadows:kle.slice(),typography:_le(l,o),transitions:Ple(i),zIndex:$({},Mle)});return d=zo(d,s),d=t.reduce((f,h)=>zo(f,h),d),d.unstable_sxConfig=$({},pT,s==null?void 0:s.unstable_sxConfig),d.unstable_sx=function(h){return mT({sx:h,theme:this})},d}const Lle=$5(),xT=Lle;function Pn(){const e=yT(xT);return e[ip]||e}function At({props:e,name:t}){return Zq({props:e,name:t,defaultTheme:xT,themeId:ip})}const va=e=>Kb(e)&&e!=="classes",F5=Kb,Nle=Qq({themeId:ip,defaultTheme:xT,rootShouldForwardProp:va}),Ee=Nle,Ble=["theme"];function $le(e){let{theme:t}=e,n=Le(e,Ble);const r=t[ip];return C.jsx(nle,$({},n,{themeId:r?ip:void 0,theme:r||t}))}const Fle=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},M6=Fle;function zle(e){return St("MuiSvgIcon",e)}kt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const jle=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Ule=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Me(t)}`,`fontSize${Me(n)}`]};return Tt(i,zle,r)},Hle=Ee("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Me(n.color)}`],t[`fontSize${Me(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,l,c,d,f,h,p,g,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((l=e.typography)==null||(c=l.pxToRem)==null?void 0:c.call(l,24))||"1.5rem",large:((d=e.typography)==null||(f=d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}[t.fontSize],color:(h=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?h:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),rX=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:l="svg",fontSize:c="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:h,viewBox:p="0 0 24 24"}=r,g=Le(r,jle),v=I.isValidElement(i)&&i.type==="svg",y=$({},r,{color:s,component:l,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p,hasSvgAsChild:v}),S={};f||(S.viewBox=p);const _=Ule(y);return C.jsxs(Hle,$({as:l,className:je(_.root,o),focusable:"false",color:d,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},S,g,v&&i.props,{ownerState:y,children:[v?i.props.children:i,h?C.jsx("title",{children:h}):null]}))});rX.muiName="SvgIcon";const D6=rX;function $t(e,t){function n(r,i){return C.jsx(D6,$({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=D6.muiName,I.memo(I.forwardRef(n))}var Un={};/** * @license React * react-is.production.min.js * @@ -35,7 +35,7 @@ var sie=Object.defineProperty;var aie=(e,t,n)=>t in e?sie(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var $5=Symbol.for("react.element"),F5=Symbol.for("react.portal"),bT=Symbol.for("react.fragment"),xT=Symbol.for("react.strict_mode"),wT=Symbol.for("react.profiler"),_T=Symbol.for("react.provider"),ST=Symbol.for("react.context"),zle=Symbol.for("react.server_context"),ET=Symbol.for("react.forward_ref"),CT=Symbol.for("react.suspense"),TT=Symbol.for("react.suspense_list"),kT=Symbol.for("react.memo"),AT=Symbol.for("react.lazy"),jle=Symbol.for("react.offscreen"),Zq;Zq=Symbol.for("react.module.reference");function va(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case $5:switch(e=e.type,e){case bT:case wT:case xT:case CT:case TT:return e;default:switch(e=e&&e.$$typeof,e){case zle:case ST:case ET:case AT:case kT:case _T:return e;default:return t}}case F5:return t}}}Un.ContextConsumer=ST;Un.ContextProvider=_T;Un.Element=$5;Un.ForwardRef=ET;Un.Fragment=bT;Un.Lazy=AT;Un.Memo=kT;Un.Portal=F5;Un.Profiler=wT;Un.StrictMode=xT;Un.Suspense=CT;Un.SuspenseList=TT;Un.isAsyncMode=function(){return!1};Un.isConcurrentMode=function(){return!1};Un.isContextConsumer=function(e){return va(e)===ST};Un.isContextProvider=function(e){return va(e)===_T};Un.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===$5};Un.isForwardRef=function(e){return va(e)===ET};Un.isFragment=function(e){return va(e)===bT};Un.isLazy=function(e){return va(e)===AT};Un.isMemo=function(e){return va(e)===kT};Un.isPortal=function(e){return va(e)===F5};Un.isProfiler=function(e){return va(e)===wT};Un.isStrictMode=function(e){return va(e)===xT};Un.isSuspense=function(e){return va(e)===CT};Un.isSuspenseList=function(e){return va(e)===TT};Un.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===bT||e===wT||e===xT||e===CT||e===TT||e===jle||typeof e=="object"&&e!==null&&(e.$$typeof===AT||e.$$typeof===kT||e.$$typeof===_T||e.$$typeof===ST||e.$$typeof===ET||e.$$typeof===Zq||e.getModuleId!==void 0)};Un.typeOf=va;function s$(e,t){return s$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},s$(e,t)}function IT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,s$(e,t)}var eX={exports:{}},Us={},tX={exports:{}},nX={};/** + */var z5=Symbol.for("react.element"),j5=Symbol.for("react.portal"),wT=Symbol.for("react.fragment"),_T=Symbol.for("react.strict_mode"),ST=Symbol.for("react.profiler"),ET=Symbol.for("react.provider"),CT=Symbol.for("react.context"),Wle=Symbol.for("react.server_context"),TT=Symbol.for("react.forward_ref"),kT=Symbol.for("react.suspense"),AT=Symbol.for("react.suspense_list"),RT=Symbol.for("react.memo"),IT=Symbol.for("react.lazy"),Gle=Symbol.for("react.offscreen"),iX;iX=Symbol.for("react.module.reference");function ya(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case z5:switch(e=e.type,e){case wT:case ST:case _T:case kT:case AT:return e;default:switch(e=e&&e.$$typeof,e){case Wle:case CT:case TT:case IT:case RT:case ET:return e;default:return t}}case j5:return t}}}Un.ContextConsumer=CT;Un.ContextProvider=ET;Un.Element=z5;Un.ForwardRef=TT;Un.Fragment=wT;Un.Lazy=IT;Un.Memo=RT;Un.Portal=j5;Un.Profiler=ST;Un.StrictMode=_T;Un.Suspense=kT;Un.SuspenseList=AT;Un.isAsyncMode=function(){return!1};Un.isConcurrentMode=function(){return!1};Un.isContextConsumer=function(e){return ya(e)===CT};Un.isContextProvider=function(e){return ya(e)===ET};Un.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===z5};Un.isForwardRef=function(e){return ya(e)===TT};Un.isFragment=function(e){return ya(e)===wT};Un.isLazy=function(e){return ya(e)===IT};Un.isMemo=function(e){return ya(e)===RT};Un.isPortal=function(e){return ya(e)===j5};Un.isProfiler=function(e){return ya(e)===ST};Un.isStrictMode=function(e){return ya(e)===_T};Un.isSuspense=function(e){return ya(e)===kT};Un.isSuspenseList=function(e){return ya(e)===AT};Un.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===wT||e===ST||e===_T||e===kT||e===AT||e===Gle||typeof e=="object"&&e!==null&&(e.$$typeof===IT||e.$$typeof===RT||e.$$typeof===ET||e.$$typeof===CT||e.$$typeof===TT||e.$$typeof===iX||e.getModuleId!==void 0)};Un.typeOf=ya;function c$(e,t){return c$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},c$(e,t)}function PT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,c$(e,t)}var oX={exports:{}},Us={},sX={exports:{}},aX={};/** * @license React * scheduler.production.min.js * @@ -43,7 +43,7 @@ var sie=Object.defineProperty;var aie=(e,t,n)=>t in e?sie(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(G,K){var Y=G.length;G.push(K);e:for(;0>>1,ie=G[J];if(0>>1;Ji(se,Y))Qi(ae,se)?(G[J]=ae,G[Q]=Y,J=Q):(G[J]=se,G[ue]=Y,J=ue);else if(Qi(ae,Y))G[J]=ae,G[Q]=Y,J=Q;else break e}}return K}function i(G,K){var Y=G.sortIndex-K.sortIndex;return Y!==0?Y:G.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],d=[],f=1,h=null,p=3,g=!1,v=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(G){for(var K=n(d);K!==null;){if(K.callback===null)r(d);else if(K.startTime<=G)r(d),K.sortIndex=K.expirationTime,t(c,K);else break;K=n(d)}}function E(G){if(y=!1,x(G),!v)if(n(c)!==null)v=!0,j(A);else{var K=n(d);K!==null&&V(E,K.startTime-G)}}function A(G,K){v=!1,y&&(y=!1,_(O),O=-1),g=!0;var Y=p;try{for(x(K),h=n(c);h!==null&&(!(h.expirationTime>K)||G&&!H());){var J=h.callback;if(typeof J=="function"){h.callback=null,p=h.priorityLevel;var ie=J(h.expirationTime<=K);K=e.unstable_now(),typeof ie=="function"?h.callback=ie:h===n(c)&&r(c),x(K)}else r(c);h=n(c)}if(h!==null)var ce=!0;else{var ue=n(d);ue!==null&&V(E,ue.startTime-K),ce=!1}return ce}finally{h=null,p=Y,g=!1}}var I=!1,k=null,O=-1,L=5,N=-1;function H(){return!(e.unstable_now()-NG||125J?(G.sortIndex=Y,t(d,G),n(c)===null&&G===n(d)&&(y?(_(O),O=-1):y=!0,V(E,Y-J))):(G.sortIndex=ie,t(c,G),v||g||(v=!0,j(A))),G},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(G){var K=p;return function(){var Y=p;p=K;try{return G.apply(this,arguments)}finally{p=Y}}}})(nX);tX.exports=nX;var Ule=tX.exports;/** + */(function(e){function t(G,K){var Y=G.length;G.push(K);e:for(;0>>1,ie=G[J];if(0>>1;Ji(se,Y))Qi(ae,se)?(G[J]=ae,G[Q]=Y,J=Q):(G[J]=se,G[ue]=Y,J=ue);else if(Qi(ae,Y))G[J]=ae,G[Q]=Y,J=Q;else break e}}return K}function i(G,K){var Y=G.sortIndex-K.sortIndex;return Y!==0?Y:G.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],d=[],f=1,h=null,p=3,g=!1,v=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(G){for(var K=n(d);K!==null;){if(K.callback===null)r(d);else if(K.startTime<=G)r(d),K.sortIndex=K.expirationTime,t(c,K);else break;K=n(d)}}function E(G){if(y=!1,x(G),!v)if(n(c)!==null)v=!0,j(A);else{var K=n(d);K!==null&&V(E,K.startTime-G)}}function A(G,K){v=!1,y&&(y=!1,_(O),O=-1),g=!0;var Y=p;try{for(x(K),h=n(c);h!==null&&(!(h.expirationTime>K)||G&&!H());){var J=h.callback;if(typeof J=="function"){h.callback=null,p=h.priorityLevel;var ie=J(h.expirationTime<=K);K=e.unstable_now(),typeof ie=="function"?h.callback=ie:h===n(c)&&r(c),x(K)}else r(c);h=n(c)}if(h!==null)var ce=!0;else{var ue=n(d);ue!==null&&V(E,ue.startTime-K),ce=!1}return ce}finally{h=null,p=Y,g=!1}}var R=!1,k=null,O=-1,L=5,N=-1;function H(){return!(e.unstable_now()-NG||125J?(G.sortIndex=Y,t(d,G),n(c)===null&&G===n(d)&&(y?(_(O),O=-1):y=!0,V(E,Y-J))):(G.sortIndex=ie,t(c,G),v||g||(v=!0,j(A))),G},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(G){var K=p;return function(){var Y=p;p=K;try{return G.apply(this,arguments)}finally{p=Y}}}})(aX);sX.exports=aX;var Vle=sX.exports;/** * @license React * react-dom.production.min.js * @@ -51,14 +51,14 @@ var sie=Object.defineProperty;var aie=(e,t,n)=>t in e?sie(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var rX=R,Ls=Ule;function Oe(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),a$=Object.prototype.hasOwnProperty,Hle=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,P6={},O6={};function Wle(e){return a$.call(O6,e)?!0:a$.call(P6,e)?!1:Hle.test(e)?O6[e]=!0:(P6[e]=!0,!1)}function Gle(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Vle(e,t,n,r){if(t===null||typeof t>"u"||Gle(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Io(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Gi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Gi[e]=new Io(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Gi[t]=new Io(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Gi[e]=new Io(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Gi[e]=new Io(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Gi[e]=new Io(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Gi[e]=new Io(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Gi[e]=new Io(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Gi[e]=new Io(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Gi[e]=new Io(e,5,!1,e.toLowerCase(),null,!1,!1)});var z5=/[\-:]([a-z])/g;function j5(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(z5,j5);Gi[t]=new Io(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(z5,j5);Gi[t]=new Io(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(z5,j5);Gi[t]=new Io(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Gi[e]=new Io(e,1,!1,e.toLowerCase(),null,!1,!1)});Gi.xlinkHref=new Io("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Gi[e]=new Io(e,1,!1,e.toLowerCase(),null,!0,!0)});function U5(e,t,n,r){var i=Gi.hasOwnProperty(t)?Gi[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u$=Object.prototype.hasOwnProperty,qle=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,L6={},N6={};function Xle(e){return u$.call(N6,e)?!0:u$.call(L6,e)?!1:qle.test(e)?N6[e]=!0:(L6[e]=!0,!1)}function Yle(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Kle(e,t,n,r){if(t===null||typeof t>"u"||Yle(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ro(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Gi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Gi[e]=new Ro(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Gi[t]=new Ro(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Gi[e]=new Ro(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Gi[e]=new Ro(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Gi[e]=new Ro(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Gi[e]=new Ro(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Gi[e]=new Ro(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Gi[e]=new Ro(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Gi[e]=new Ro(e,5,!1,e.toLowerCase(),null,!1,!1)});var U5=/[\-:]([a-z])/g;function H5(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(U5,H5);Gi[t]=new Ro(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(U5,H5);Gi[t]=new Ro(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(U5,H5);Gi[t]=new Ro(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Gi[e]=new Ro(e,1,!1,e.toLowerCase(),null,!1,!1)});Gi.xlinkHref=new Ro("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Gi[e]=new Ro(e,1,!1,e.toLowerCase(),null,!0,!0)});function W5(e,t,n,r){var i=Gi.hasOwnProperty(t)?Gi[t]:null;(i!==null?i.type!==0:r||!(2l||i[s]!==o[l]){var c=` -`+i[s].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=l);break}}}finally{bD=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cb(e):""}function qle(e){switch(e.tag){case 5:return Cb(e.type);case 16:return Cb("Lazy");case 13:return Cb("Suspense");case 19:return Cb("SuspenseList");case 0:case 2:case 15:return e=xD(e.type,!1),e;case 11:return e=xD(e.type.render,!1),e;case 1:return e=xD(e.type,!0),e;default:return""}}function d$(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ym:return"Fragment";case vm:return"Portal";case l$:return"Profiler";case H5:return"StrictMode";case c$:return"Suspense";case u$:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case sX:return(e.displayName||"Context")+".Consumer";case oX:return(e._context.displayName||"Context")+".Provider";case W5:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case G5:return t=e.displayName||null,t!==null?t:d$(e.type)||"Memo";case Wu:t=e._payload,e=e._init;try{return d$(e(t))}catch{}}return null}function Xle(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return d$(t);case 8:return t===H5?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ad(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lX(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Yle(e){var t=lX(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Tw(e){e._valueTracker||(e._valueTracker=Yle(e))}function cX(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=lX(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ZS(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function f$(e,t){var n=t.checked;return Rr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function D6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ad(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function uX(e,t){t=t.checked,t!=null&&U5(e,"checked",t,!1)}function h$(e,t){uX(e,t);var n=Ad(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?p$(e,t.type,n):t.hasOwnProperty("defaultValue")&&p$(e,t.type,Ad(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function L6(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function p$(e,t,n){(t!=="number"||ZS(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Tb=Array.isArray;function Um(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=kw.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ix(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Xb={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},Kle=["Webkit","ms","Moz","O"];Object.keys(Xb).forEach(function(e){Kle.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xb[t]=Xb[e]})});function pX(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Xb.hasOwnProperty(e)&&Xb[e]?(""+t).trim():t+"px"}function mX(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=pX(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Qle=Rr({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 v$(e,t){if(t){if(Qle[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Oe(62))}}function y$(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 b$=null;function V5(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var x$=null,Hm=null,Wm=null;function $6(e){if(e=$1(e)){if(typeof x$!="function")throw Error(Oe(280));var t=e.stateNode;t&&(t=DT(t),x$(e.stateNode,e.type,t))}}function gX(e){Hm?Wm?Wm.push(e):Wm=[e]:Hm=e}function vX(){if(Hm){var e=Hm,t=Wm;if(Wm=Hm=null,$6(e),t)for(e=0;e>>=0,e===0?32:31-(lce(e)/cce|0)|0}var Aw=64,Iw=4194304;function kb(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 rE(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=kb(l):(o&=s,o!==0&&(r=kb(o)))}else s=n&~i,s!==0?r=kb(s):o!==0&&(r=kb(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function N1(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-nl(t),e[t]=n}function hce(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0=Kb),q6=String.fromCharCode(32),X6=!1;function BX(e,t){switch(e){case"keyup":return jce.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $X(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var bm=!1;function Hce(e,t){switch(e){case"compositionend":return $X(t);case"keypress":return t.which!==32?null:(X6=!0,q6);case"textInput":return e=t.data,e===q6&&X6?null:e;default:return null}}function Wce(e,t){if(bm)return e==="compositionend"||!e4&&BX(e,t)?(e=LX(),pS=Q5=rd=null,bm=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=J6(n)}}function UX(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?UX(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function HX(){for(var e=window,t=ZS();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ZS(e.document)}return t}function t4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Zce(e){var t=HX(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&UX(n.ownerDocument.documentElement,n)){if(r!==null&&t4(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Z6(n,o);var s=Z6(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,xm=null,T$=null,Jb=null,k$=!1;function eU(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;k$||xm==null||xm!==ZS(r)||(r=xm,"selectionStart"in r&&t4(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Jb&&Lx(Jb,r)||(Jb=r,r=sE(T$,"onSelect"),0Sm||(e.current=M$[Sm],M$[Sm]=null,Sm--)}function er(e,t){Sm++,M$[Sm]=e.current,e.current=t}var Id={},no=jd(Id),jo=jd(!1),sp=Id;function cg(e,t){var n=e.type.contextTypes;if(!n)return Id;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Uo(e){return e=e.childContextTypes,e!=null}function lE(){ur(jo),ur(no)}function aU(e,t,n){if(no.current!==Id)throw Error(Oe(168));er(no,t),er(jo,n)}function JX(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Oe(108,Xle(e)||"Unknown",i));return Rr({},n,r)}function cE(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Id,sp=no.current,er(no,e),er(jo,jo.current),!0}function lU(e,t,n){var r=e.stateNode;if(!r)throw Error(Oe(169));n?(e=JX(e,t,sp),r.__reactInternalMemoizedMergedChildContext=e,ur(jo),ur(no),er(no,e)):ur(jo),er(jo,n)}var tu=null,LT=!1,DD=!1;function ZX(e){tu===null?tu=[e]:tu.push(e)}function due(e){LT=!0,ZX(e)}function Ud(){if(!DD&&tu!==null){DD=!0;var e=0,t=Nn;try{var n=tu;for(Nn=1;e>=s,i-=s,ou=1<<32-nl(t)+i|n<O?(L=k,k=null):L=k.sibling;var N=p(_,k,x[O],E);if(N===null){k===null&&(k=L);break}e&&k&&N.alternate===null&&t(_,k),b=o(N,b,O),I===null?A=N:I.sibling=N,I=N,k=L}if(O===x.length)return n(_,k),fr&&Eh(_,O),A;if(k===null){for(;OO?(L=k,k=null):L=k.sibling;var H=p(_,k,N.value,E);if(H===null){k===null&&(k=L);break}e&&k&&H.alternate===null&&t(_,k),b=o(H,b,O),I===null?A=H:I.sibling=H,I=H,k=L}if(N.done)return n(_,k),fr&&Eh(_,O),A;if(k===null){for(;!N.done;O++,N=x.next())N=h(_,N.value,E),N!==null&&(b=o(N,b,O),I===null?A=N:I.sibling=N,I=N);return fr&&Eh(_,O),A}for(k=r(_,k);!N.done;O++,N=x.next())N=g(k,_,O,N.value,E),N!==null&&(e&&N.alternate!==null&&k.delete(N.key===null?O:N.key),b=o(N,b,O),I===null?A=N:I.sibling=N,I=N);return e&&k.forEach(function(W){return t(_,W)}),fr&&Eh(_,O),A}function S(_,b,x,E){if(typeof x=="object"&&x!==null&&x.type===ym&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Cw:e:{for(var A=x.key,I=b;I!==null;){if(I.key===A){if(A=x.type,A===ym){if(I.tag===7){n(_,I.sibling),b=i(I,x.props.children),b.return=_,_=b;break e}}else if(I.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===Wu&&mU(A)===I.type){n(_,I.sibling),b=i(I,x.props),b.ref=X0(_,I,x),b.return=_,_=b;break e}n(_,I);break}else t(_,I);I=I.sibling}x.type===ym?(b=Xh(x.props.children,_.mode,E,x.key),b.return=_,_=b):(E=_S(x.type,x.key,x.props,null,_.mode,E),E.ref=X0(_,b,x),E.return=_,_=E)}return s(_);case vm:e:{for(I=x.key;b!==null;){if(b.key===I)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(_,b.sibling),b=i(b,x.children||[]),b.return=_,_=b;break e}else{n(_,b);break}else t(_,b);b=b.sibling}b=UD(x,_.mode,E),b.return=_,_=b}return s(_);case Wu:return I=x._init,S(_,b,I(x._payload),E)}if(Tb(x))return v(_,b,x,E);if(H0(x))return y(_,b,x,E);Nw(_,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(n(_,b.sibling),b=i(b,x),b.return=_,_=b):(n(_,b),b=jD(x,_.mode,E),b.return=_,_=b),s(_)):n(_,b)}return S}var dg=aY(!0),lY=aY(!1),F1={},Bl=jd(F1),Fx=jd(F1),zx=jd(F1);function zh(e){if(e===F1)throw Error(Oe(174));return e}function u4(e,t){switch(er(zx,t),er(Fx,e),er(Bl,F1),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:g$(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=g$(t,e)}ur(Bl),er(Bl,t)}function fg(){ur(Bl),ur(Fx),ur(zx)}function cY(e){zh(zx.current);var t=zh(Bl.current),n=g$(t,e.type);t!==n&&(er(Fx,e),er(Bl,n))}function d4(e){Fx.current===e&&(ur(Bl),ur(Fx))}var Cr=jd(0);function mE(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))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 LD=[];function f4(){for(var e=0;en?n:4,e(!0);var r=ND.transition;ND.transition={};try{e(!1),t()}finally{Nn=n,ND.transition=r}}function CY(){return ha().memoizedState}function mue(e,t,n){var r=yd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},TY(e))kY(t,n);else if(n=rY(e,t,n,r),n!==null){var i=To();rl(n,e,r,i),AY(n,t,r)}}function gue(e,t,n){var r=yd(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(TY(e))kY(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,ul(l,s)){var c=t.interleaved;c===null?(i.next=i,l4(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=rY(e,t,i,r),n!==null&&(i=To(),rl(n,e,r,i),AY(n,t,r))}}function TY(e){var t=e.alternate;return e===Ir||t!==null&&t===Ir}function kY(e,t){Zb=gE=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function AY(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,X5(e,n)}}var vE={readContext:fa,useCallback:Vi,useContext:Vi,useEffect:Vi,useImperativeHandle:Vi,useInsertionEffect:Vi,useLayoutEffect:Vi,useMemo:Vi,useReducer:Vi,useRef:Vi,useState:Vi,useDebugValue:Vi,useDeferredValue:Vi,useTransition:Vi,useMutableSource:Vi,useSyncExternalStore:Vi,useId:Vi,unstable_isNewReconciler:!1},vue={readContext:fa,useCallback:function(e,t){return El().memoizedState=[e,t===void 0?null:t],e},useContext:fa,useEffect:vU,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yS(4194308,4,xY.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yS(4194308,4,e,t)},useInsertionEffect:function(e,t){return yS(4,2,e,t)},useMemo:function(e,t){var n=El();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=El();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=mue.bind(null,Ir,e),[r.memoizedState,e]},useRef:function(e){var t=El();return e={current:e},t.memoizedState=e},useState:gU,useDebugValue:v4,useDeferredValue:function(e){return El().memoizedState=e},useTransition:function(){var e=gU(!1),t=e[0];return e=pue.bind(null,e[1]),El().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ir,i=El();if(fr){if(n===void 0)throw Error(Oe(407));n=n()}else{if(n=t(),bi===null)throw Error(Oe(349));lp&30||fY(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,vU(pY.bind(null,r,o,e),[e]),r.flags|=2048,Hx(9,hY.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=El(),t=bi.identifierPrefix;if(fr){var n=su,r=ou;n=(r&~(1<<32-nl(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=jx++,0")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=l);break}}}finally{wD=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ab(e):""}function Qle(e){switch(e.tag){case 5:return Ab(e.type);case 16:return Ab("Lazy");case 13:return Ab("Suspense");case 19:return Ab("SuspenseList");case 0:case 2:case 15:return e=_D(e.type,!1),e;case 11:return e=_D(e.type.render,!1),e;case 1:return e=_D(e.type,!0),e;default:return""}}function p$(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case xm:return"Fragment";case bm:return"Portal";case d$:return"Profiler";case G5:return"StrictMode";case f$:return"Suspense";case h$:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case dX:return(e.displayName||"Context")+".Consumer";case uX:return(e._context.displayName||"Context")+".Provider";case V5:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q5:return t=e.displayName||null,t!==null?t:p$(e.type)||"Memo";case qu:t=e._payload,e=e._init;try{return p$(e(t))}catch{}}return null}function Jle(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return p$(t);case 8:return t===G5?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Id(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hX(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zle(e){var t=hX(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function kw(e){e._valueTracker||(e._valueTracker=Zle(e))}function pX(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hX(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function eE(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function m$(e,t){var n=t.checked;return Ir({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function $6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Id(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function mX(e,t){t=t.checked,t!=null&&W5(e,"checked",t,!1)}function g$(e,t){mX(e,t);var n=Id(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?v$(e,t.type,n):t.hasOwnProperty("defaultValue")&&v$(e,t.type,Id(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function F6(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function v$(e,t,n){(t!=="number"||eE(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Rb=Array.isArray;function Wm(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Aw.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ox(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qb={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},ece=["Webkit","ms","Moz","O"];Object.keys(Qb).forEach(function(e){ece.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Qb[t]=Qb[e]})});function bX(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Qb.hasOwnProperty(e)&&Qb[e]?(""+t).trim():t+"px"}function xX(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=bX(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var tce=Ir({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 x$(e,t){if(t){if(tce[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Oe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Oe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Oe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Oe(62))}}function w$(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 _$=null;function X5(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var S$=null,Gm=null,Vm=null;function U6(e){if(e=j1(e)){if(typeof S$!="function")throw Error(Oe(280));var t=e.stateNode;t&&(t=NT(t),S$(e.stateNode,e.type,t))}}function wX(e){Gm?Vm?Vm.push(e):Vm=[e]:Gm=e}function _X(){if(Gm){var e=Gm,t=Vm;if(Vm=Gm=null,U6(e),t)for(e=0;e>>=0,e===0?32:31-(fce(e)/hce|0)|0}var Rw=64,Iw=4194304;function Ib(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 iE(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Ib(l):(o&=s,o!==0&&(r=Ib(o)))}else s=n&~i,s!==0?r=Ib(s):o!==0&&(r=Ib(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function F1(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rl(t),e[t]=n}function vce(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0=Zb),Q6=String.fromCharCode(32),J6=!1;function UX(e,t){switch(e){case"keyup":return Gce.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function HX(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wm=!1;function qce(e,t){switch(e){case"compositionend":return HX(t);case"keypress":return t.which!==32?null:(J6=!0,Q6);case"textInput":return e=t.data,e===Q6&&J6?null:e;default:return null}}function Xce(e,t){if(wm)return e==="compositionend"||!n4&&UX(e,t)?(e=zX(),mS=Z5=sd=null,wm=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=nU(n)}}function qX(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qX(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function XX(){for(var e=window,t=eE();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=eE(e.document)}return t}function r4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function rue(e){var t=XX(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qX(n.ownerDocument.documentElement,n)){if(r!==null&&r4(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=rU(n,o);var s=rU(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,_m=null,R$=null,tx=null,I$=!1;function iU(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;I$||_m==null||_m!==eE(r)||(r=_m,"selectionStart"in r&&r4(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),tx&&$x(tx,r)||(tx=r,r=aE(R$,"onSelect"),0Cm||(e.current=N$[Cm],N$[Cm]=null,Cm--)}function er(e,t){Cm++,N$[Cm]=e.current,e.current=t}var Pd={},no=Hd(Pd),jo=Hd(!1),ap=Pd;function dg(e,t){var n=e.type.contextTypes;if(!n)return Pd;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Uo(e){return e=e.childContextTypes,e!=null}function cE(){ur(jo),ur(no)}function dU(e,t,n){if(no.current!==Pd)throw Error(Oe(168));er(no,t),er(jo,n)}function rY(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Oe(108,Jle(e)||"Unknown",i));return Ir({},n,r)}function uE(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pd,ap=no.current,er(no,e),er(jo,jo.current),!0}function fU(e,t,n){var r=e.stateNode;if(!r)throw Error(Oe(169));n?(e=rY(e,t,ap),r.__reactInternalMemoizedMergedChildContext=e,ur(jo),ur(no),er(no,e)):ur(jo),er(jo,n)}var nu=null,BT=!1,ND=!1;function iY(e){nu===null?nu=[e]:nu.push(e)}function mue(e){BT=!0,iY(e)}function Wd(){if(!ND&&nu!==null){ND=!0;var e=0,t=Nn;try{var n=nu;for(Nn=1;e>=s,i-=s,su=1<<32-rl(t)+i|n<O?(L=k,k=null):L=k.sibling;var N=p(_,k,x[O],E);if(N===null){k===null&&(k=L);break}e&&k&&N.alternate===null&&t(_,k),b=o(N,b,O),R===null?A=N:R.sibling=N,R=N,k=L}if(O===x.length)return n(_,k),fr&&Ch(_,O),A;if(k===null){for(;OO?(L=k,k=null):L=k.sibling;var H=p(_,k,N.value,E);if(H===null){k===null&&(k=L);break}e&&k&&H.alternate===null&&t(_,k),b=o(H,b,O),R===null?A=H:R.sibling=H,R=H,k=L}if(N.done)return n(_,k),fr&&Ch(_,O),A;if(k===null){for(;!N.done;O++,N=x.next())N=h(_,N.value,E),N!==null&&(b=o(N,b,O),R===null?A=N:R.sibling=N,R=N);return fr&&Ch(_,O),A}for(k=r(_,k);!N.done;O++,N=x.next())N=g(k,_,O,N.value,E),N!==null&&(e&&N.alternate!==null&&k.delete(N.key===null?O:N.key),b=o(N,b,O),R===null?A=N:R.sibling=N,R=N);return e&&k.forEach(function(W){return t(_,W)}),fr&&Ch(_,O),A}function S(_,b,x,E){if(typeof x=="object"&&x!==null&&x.type===xm&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Tw:e:{for(var A=x.key,R=b;R!==null;){if(R.key===A){if(A=x.type,A===xm){if(R.tag===7){n(_,R.sibling),b=i(R,x.props.children),b.return=_,_=b;break e}}else if(R.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===qu&&bU(A)===R.type){n(_,R.sibling),b=i(R,x.props),b.ref=Q0(_,R,x),b.return=_,_=b;break e}n(_,R);break}else t(_,R);R=R.sibling}x.type===xm?(b=Yh(x.props.children,_.mode,E,x.key),b.return=_,_=b):(E=SS(x.type,x.key,x.props,null,_.mode,E),E.ref=Q0(_,b,x),E.return=_,_=E)}return s(_);case bm:e:{for(R=x.key;b!==null;){if(b.key===R)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(_,b.sibling),b=i(b,x.children||[]),b.return=_,_=b;break e}else{n(_,b);break}else t(_,b);b=b.sibling}b=WD(x,_.mode,E),b.return=_,_=b}return s(_);case qu:return R=x._init,S(_,b,R(x._payload),E)}if(Rb(x))return v(_,b,x,E);if(V0(x))return y(_,b,x,E);Bw(_,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(n(_,b.sibling),b=i(b,x),b.return=_,_=b):(n(_,b),b=HD(x,_.mode,E),b.return=_,_=b),s(_)):n(_,b)}return S}var hg=fY(!0),hY=fY(!1),U1={},Fl=Hd(U1),Ux=Hd(U1),Hx=Hd(U1);function jh(e){if(e===U1)throw Error(Oe(174));return e}function f4(e,t){switch(er(Hx,t),er(Ux,e),er(Fl,U1),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:b$(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=b$(t,e)}ur(Fl),er(Fl,t)}function pg(){ur(Fl),ur(Ux),ur(Hx)}function pY(e){jh(Hx.current);var t=jh(Fl.current),n=b$(t,e.type);t!==n&&(er(Ux,e),er(Fl,n))}function h4(e){Ux.current===e&&(ur(Fl),ur(Ux))}var Cr=Hd(0);function gE(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))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 BD=[];function p4(){for(var e=0;en?n:4,e(!0);var r=$D.transition;$D.transition={};try{e(!1),t()}finally{Nn=n,$D.transition=r}}function IY(){return pa().memoizedState}function bue(e,t,n){var r=wd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},PY(e))OY(t,n);else if(n=lY(e,t,n,r),n!==null){var i=To();il(n,e,r,i),MY(n,t,r)}}function xue(e,t,n){var r=wd(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(PY(e))OY(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,fl(l,s)){var c=t.interleaved;c===null?(i.next=i,u4(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=lY(e,t,i,r),n!==null&&(i=To(),il(n,e,r,i),MY(n,t,r))}}function PY(e){var t=e.alternate;return e===Rr||t!==null&&t===Rr}function OY(e,t){nx=vE=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function MY(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,K5(e,n)}}var yE={readContext:ha,useCallback:Vi,useContext:Vi,useEffect:Vi,useImperativeHandle:Vi,useInsertionEffect:Vi,useLayoutEffect:Vi,useMemo:Vi,useReducer:Vi,useRef:Vi,useState:Vi,useDebugValue:Vi,useDeferredValue:Vi,useTransition:Vi,useMutableSource:Vi,useSyncExternalStore:Vi,useId:Vi,unstable_isNewReconciler:!1},wue={readContext:ha,useCallback:function(e,t){return Tl().memoizedState=[e,t===void 0?null:t],e},useContext:ha,useEffect:wU,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,bS(4194308,4,CY.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bS(4194308,4,e,t)},useInsertionEffect:function(e,t){return bS(4,2,e,t)},useMemo:function(e,t){var n=Tl();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tl();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=bue.bind(null,Rr,e),[r.memoizedState,e]},useRef:function(e){var t=Tl();return e={current:e},t.memoizedState=e},useState:xU,useDebugValue:b4,useDeferredValue:function(e){return Tl().memoizedState=e},useTransition:function(){var e=xU(!1),t=e[0];return e=yue.bind(null,e[1]),Tl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Rr,i=Tl();if(fr){if(n===void 0)throw Error(Oe(407));n=n()}else{if(n=t(),bi===null)throw Error(Oe(349));cp&30||vY(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,wU(bY.bind(null,r,o,e),[e]),r.flags|=2048,Vx(9,yY.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Tl(),t=bi.identifierPrefix;if(fr){var n=au,r=su;n=(r&~(1<<32-rl(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Wx++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Pl]=t,e[$x]=r,BY(e,t,!1,!1),t.stateNode=e;e:{switch(s=y$(n,r),n){case"dialog":cr("cancel",e),cr("close",e),i=r;break;case"iframe":case"object":case"embed":cr("load",e),i=r;break;case"video":case"audio":for(i=0;ipg&&(t.flags|=128,r=!0,Y0(o,!1),t.lanes=4194304)}else{if(!r)if(e=mE(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Y0(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!fr)return qi(t),null}else 2*Hr()-o.renderingStartTime>pg&&n!==1073741824&&(t.flags|=128,r=!0,Y0(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Hr(),t.sibling=null,n=Cr.current,er(Cr,r?n&1|2:n&1),t):(qi(t),null);case 22:case 23:return S4(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ys&1073741824&&(qi(t),t.subtreeFlags&6&&(t.flags|=8192)):qi(t),null;case 24:return null;case 25:return null}throw Error(Oe(156,t.tag))}function Cue(e,t){switch(r4(t),t.tag){case 1:return Uo(t.type)&&lE(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fg(),ur(jo),ur(no),f4(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return d4(t),null;case 13:if(ur(Cr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Oe(340));ug()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ur(Cr),null;case 4:return fg(),null;case 10:return a4(t.type._context),null;case 22:case 23:return S4(),null;case 24:return null;default:return null}}var $w=!1,Ki=!1,Tue=typeof WeakSet=="function"?WeakSet:Set,st=null;function km(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Br(e,t,r)}else n.current=null}function V$(e,t,n){try{n()}catch(r){Br(e,t,r)}}var TU=!1;function kue(e,t){if(A$=iE,e=HX(),t4(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,c=-1,d=0,f=0,h=e,p=null;t:for(;;){for(var g;h!==n||i!==0&&h.nodeType!==3||(l=s+i),h!==o||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(g=h.firstChild)!==null;)p=h,h=g;for(;;){if(h===e)break t;if(p===n&&++d===i&&(l=s),p===o&&++f===r&&(c=s),(g=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=g}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(I$={focusedElem:e,selectionRange:n},iE=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){t=st;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,S=v.memoizedState,_=t.stateNode,b=_.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ha(t.type,y),S);_.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Oe(163))}}catch(E){Br(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,st=e;break}st=t.return}return v=TU,TU=!1,v}function ex(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&V$(t,n,o)}i=i.next}while(i!==r)}}function $T(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function q$(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function zY(e){var t=e.alternate;t!==null&&(e.alternate=null,zY(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Pl],delete t[$x],delete t[O$],delete t[cue],delete t[uue])),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 jY(e){return e.tag===5||e.tag===3||e.tag===4}function kU(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jY(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 X$(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=aE));else if(r!==4&&(e=e.child,e!==null))for(X$(e,t,n),e=e.sibling;e!==null;)X$(e,t,n),e=e.sibling}function Y$(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Y$(e,t,n),e=e.sibling;e!==null;)Y$(e,t,n),e=e.sibling}var Ni=null,Ga=!1;function Du(e,t,n){for(n=n.child;n!==null;)UY(e,t,n),n=n.sibling}function UY(e,t,n){if(Nl&&typeof Nl.onCommitFiberUnmount=="function")try{Nl.onCommitFiberUnmount(RT,n)}catch{}switch(n.tag){case 5:Ki||km(n,t);case 6:var r=Ni,i=Ga;Ni=null,Du(e,t,n),Ni=r,Ga=i,Ni!==null&&(Ga?(e=Ni,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ni.removeChild(n.stateNode));break;case 18:Ni!==null&&(Ga?(e=Ni,n=n.stateNode,e.nodeType===8?MD(e.parentNode,n):e.nodeType===1&&MD(e,n),Mx(e)):MD(Ni,n.stateNode));break;case 4:r=Ni,i=Ga,Ni=n.stateNode.containerInfo,Ga=!0,Du(e,t,n),Ni=r,Ga=i;break;case 0:case 11:case 14:case 15:if(!Ki&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&V$(n,t,s),i=i.next}while(i!==r)}Du(e,t,n);break;case 1:if(!Ki&&(km(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Br(n,t,l)}Du(e,t,n);break;case 21:Du(e,t,n);break;case 22:n.mode&1?(Ki=(r=Ki)||n.memoizedState!==null,Du(e,t,n),Ki=r):Du(e,t,n);break;default:Du(e,t,n)}}function AU(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Tue),t.forEach(function(r){var i=Nue.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function La(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Hr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Iue(r/1960))-r,10e?16:e,id===null)var r=!1;else{if(e=id,id=null,xE=0,wn&6)throw Error(Oe(331));var i=wn;for(wn|=4,st=e.current;st!==null;){var o=st,s=o.child;if(st.flags&16){var l=o.deletions;if(l!==null){for(var c=0;cHr()-w4?qh(e,0):x4|=n),Ho(e,t)}function KY(e,t){t===0&&(e.mode&1?(t=Iw,Iw<<=1,!(Iw&130023424)&&(Iw=4194304)):t=1);var n=To();e=vu(e,t),e!==null&&(N1(e,t,n),Ho(e,n))}function Lue(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),KY(e,n)}function Nue(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Oe(314))}r!==null&&r.delete(t),KY(e,n)}var QY;QY=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||jo.current)$o=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $o=!1,Sue(e,t,n);$o=!!(e.flags&131072)}else $o=!1,fr&&t.flags&1048576&&eY(t,dE,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bS(e,t),e=t.pendingProps;var i=cg(t,no.current);Vm(t,n),i=p4(null,t,r,e,i,n);var o=m4();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Uo(r)?(o=!0,cE(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,c4(t),i.updater=NT,t.stateNode=i,i._reactInternals=t,F$(t,r,e,n),t=U$(null,t,r,!0,o,n)):(t.tag=0,fr&&o&&n4(t),wo(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bS(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=$ue(r),e=Ha(r,e),i){case 0:t=j$(null,t,r,e,n);break e;case 1:t=SU(null,t,r,e,n);break e;case 11:t=wU(null,t,r,e,n);break e;case 14:t=_U(null,t,r,Ha(r.type,e),n);break e}throw Error(Oe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ha(r,i),j$(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ha(r,i),SU(e,t,r,i,n);case 3:e:{if(DY(t),e===null)throw Error(Oe(387));r=t.pendingProps,o=t.memoizedState,i=o.element,iY(e,t),pE(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=hg(Error(Oe(423)),t),t=EU(e,t,r,n,i);break e}else if(r!==i){i=hg(Error(Oe(424)),t),t=EU(e,t,r,n,i);break e}else for(Es=md(t.stateNode.containerInfo.firstChild),As=t,fr=!0,qa=null,n=lY(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ug(),r===i){t=yu(e,t,n);break e}wo(e,t,r,n)}t=t.child}return t;case 5:return cY(t),e===null&&L$(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,R$(r,i)?s=null:o!==null&&R$(r,o)&&(t.flags|=32),MY(e,t),wo(e,t,s,n),t.child;case 6:return e===null&&L$(t),null;case 13:return LY(e,t,n);case 4:return u4(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=dg(t,null,r,n):wo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ha(r,i),wU(e,t,r,i,n);case 7:return wo(e,t,t.pendingProps,n),t.child;case 8:return wo(e,t,t.pendingProps.children,n),t.child;case 12:return wo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,er(fE,r._currentValue),r._currentValue=s,o!==null)if(ul(o.value,s)){if(o.children===i.children&&!jo.current){t=yu(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=uu(-1,n&-n),c.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var f=d.pending;f===null?c.next=c:(c.next=f.next,f.next=c),d.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),N$(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Oe(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),N$(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}wo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Vm(t,n),i=fa(i),r=r(i),t.flags|=1,wo(e,t,r,n),t.child;case 14:return r=t.type,i=Ha(r,t.pendingProps),i=Ha(r.type,i),_U(e,t,r,i,n);case 15:return PY(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ha(r,i),bS(e,t),t.tag=1,Uo(r)?(e=!0,cE(t)):e=!1,Vm(t,n),sY(t,r,i),F$(t,r,i,n),U$(null,t,r,!0,e,n);case 19:return NY(e,t,n);case 22:return OY(e,t,n)}throw Error(Oe(156,t.tag))};function JY(e,t){return EX(e,t)}function Bue(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ea(e,t,n,r){return new Bue(e,t,n,r)}function C4(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $ue(e){if(typeof e=="function")return C4(e)?1:0;if(e!=null){if(e=e.$$typeof,e===W5)return 11;if(e===G5)return 14}return 2}function bd(e,t){var n=e.alternate;return n===null?(n=ea(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _S(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")C4(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ym:return Xh(n.children,i,o,t);case H5:s=8,i|=8;break;case l$:return e=ea(12,n,t,i|2),e.elementType=l$,e.lanes=o,e;case c$:return e=ea(13,n,t,i),e.elementType=c$,e.lanes=o,e;case u$:return e=ea(19,n,t,i),e.elementType=u$,e.lanes=o,e;case aX:return zT(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case oX:s=10;break e;case sX:s=9;break e;case W5:s=11;break e;case G5:s=14;break e;case Wu:s=16,r=null;break e}throw Error(Oe(130,e==null?e:typeof e,""))}return t=ea(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Xh(e,t,n,r){return e=ea(7,e,r,t),e.lanes=n,e}function zT(e,t,n,r){return e=ea(22,e,r,t),e.elementType=aX,e.lanes=n,e.stateNode={isHidden:!1},e}function jD(e,t,n){return e=ea(6,e,null,t),e.lanes=n,e}function UD(e,t,n){return t=ea(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fue(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_D(0),this.expirationTimes=_D(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_D(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function T4(e,t,n,r,i,o,s,l,c){return e=new Fue(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ea(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},c4(o),e}function zue(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(nK)}catch(e){console.error(e)}}nK(),eX.exports=Us;var Xg=eX.exports;const Im=zs(Xg),NU={disabled:!1},SE=de.createContext(null);var Gue=function(t){return t.scrollTop},Ib="unmounted",Th="exited",kh="entering",im="entered",eF="exiting",Tu=function(e){IT(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,l=s&&!s.isMounting?r.enter:r.appear,c;return o.appearStatus=null,r.in?l?(c=Th,o.appearStatus=kh):c=im:r.unmountOnExit||r.mountOnEnter?c=Ib:c=Th,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===Ib?{status:Th}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==kh&&s!==im&&(o=kh):(s===kh||s===im)&&(o=eF)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,l;return o=s=l=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,l=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:l}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===kh){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Im.findDOMNode(this);s&&Gue(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Th&&this.setState({status:Ib})},n.performEnter=function(i){var o=this,s=this.props.enter,l=this.context?this.context.isMounting:i,c=this.props.nodeRef?[l]:[Im.findDOMNode(this),l],d=c[0],f=c[1],h=this.getTimeouts(),p=l?h.appear:h.enter;if(!i&&!s||NU.disabled){this.safeSetState({status:im},function(){o.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:kh},function(){o.props.onEntering(d,f),o.onTransitionEnd(p,function(){o.safeSetState({status:im},function(){o.props.onEntered(d,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Im.findDOMNode(this);if(!o||NU.disabled){this.safeSetState({status:Th},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:eF},function(){i.props.onExiting(l),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Th},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,o.nextCallback=null,i(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:Im.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Ib)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=Le(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return de.createElement(SE.Provider,{value:null},typeof s=="function"?s(i,l):de.cloneElement(de.Children.only(s),l))},t}(de.Component);Tu.contextType=SE;Tu.propTypes={};function Vp(){}Tu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vp,onEntering:Vp,onEntered:Vp,onExit:Vp,onExiting:Vp,onExited:Vp};Tu.UNMOUNTED=Ib;Tu.EXITED=Th;Tu.ENTERING=kh;Tu.ENTERED=im;Tu.EXITING=eF;const R4=Tu;function Vue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P4(e,t){var n=function(o){return t&&R.isValidElement(o)?t(o):o},r=Object.create(null);return e&&R.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function que(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,l={};for(var c in t){if(r[c])for(s=0;se.scrollTop;function mg(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function Zue(e){return St("MuiCollapse",e)}kt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const ede=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],tde=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Tt(r,Zue,n)},nde=Ee("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>$({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&$({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),rde=Ee("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>$({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),ide=Ee("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>$({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),iK=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:l="0px",component:c,easing:d,in:f,onEnter:h,onEntered:p,onEntering:g,onExit:v,onExited:y,onExiting:S,orientation:_="vertical",style:b,timeout:x=Qq.standard,TransitionComponent:E=R4}=r,A=Le(r,ede),I=$({},r,{orientation:_,collapsedSize:l}),k=tde(I),O=Rn(),L=R.useRef(),N=R.useRef(null),H=R.useRef(),W=typeof l=="number"?`${l}px`:l,z=_==="horizontal",D=z?"width":"height";R.useEffect(()=>()=>{clearTimeout(L.current)},[]);const F=R.useRef(null),j=mr(n,F),V=Q=>ae=>{if(Q){const le=F.current;ae===void 0?Q(le):Q(le,ae)}},G=()=>N.current?N.current[z?"clientWidth":"clientHeight"]:0,K=V((Q,ae)=>{N.current&&z&&(N.current.style.position="absolute"),Q.style[D]=W,h&&h(Q,ae)}),Y=V((Q,ae)=>{const le=G();N.current&&z&&(N.current.style.position="");const{duration:he,easing:pe}=mg({style:b,timeout:x,easing:d},{mode:"enter"});if(x==="auto"){const ve=O.transitions.getAutoHeightDuration(le);Q.style.transitionDuration=`${ve}ms`,H.current=ve}else Q.style.transitionDuration=typeof he=="string"?he:`${he}ms`;Q.style[D]=`${le}px`,Q.style.transitionTimingFunction=pe,g&&g(Q,ae)}),J=V((Q,ae)=>{Q.style[D]="auto",p&&p(Q,ae)}),ie=V(Q=>{Q.style[D]=`${G()}px`,v&&v(Q)}),ce=V(y),ue=V(Q=>{const ae=G(),{duration:le,easing:he}=mg({style:b,timeout:x,easing:d},{mode:"exit"});if(x==="auto"){const pe=O.transitions.getAutoHeightDuration(ae);Q.style.transitionDuration=`${pe}ms`,H.current=pe}else Q.style.transitionDuration=typeof le=="string"?le:`${le}ms`;Q.style[D]=W,Q.style.transitionTimingFunction=he,S&&S(Q)}),se=Q=>{x==="auto"&&(L.current=setTimeout(Q,H.current||0)),i&&i(F.current,Q)};return C.jsx(E,$({in:f,onEnter:K,onEntered:J,onEntering:Y,onExit:ie,onExited:ce,onExiting:ue,addEndListener:se,nodeRef:F,timeout:x==="auto"?null:x},A,{children:(Q,ae)=>C.jsx(nde,$({as:c,className:je(k.root,s,{entered:k.entered,exited:!f&&W==="0px"&&k.hidden}[Q]),style:$({[z?"minWidth":"minHeight"]:W},b),ownerState:$({},I,{state:Q}),ref:j},ae,{children:C.jsx(rde,{ownerState:$({},I,{state:Q}),className:k.wrapper,ref:N,children:C.jsx(ide,{ownerState:$({},I,{state:Q}),className:k.wrapperInner,children:o})})}))}))});iK.muiSupportAuto=!0;const HD=iK;function ode(e){return St("MuiPaper",e)}kt("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 sde=["className","component","elevation","square","variant"],ade=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Tt(o,ode,i)},lde=Ee("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 $({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"&&$({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${_n("#fff",I6(t.elevation))}, ${_n("#fff",I6(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),cde=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:s=1,square:l=!1,variant:c="elevation"}=r,d=Le(r,sde),f=$({},r,{component:o,elevation:s,square:l,variant:c}),h=ade(f);return C.jsx(lde,$({as:o,ownerState:f,className:je(h.root,i),ref:n},d))}),Yg=cde;function ude(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:l,onExited:c,timeout:d}=e,[f,h]=R.useState(!1),p=je(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},v=je(n.child,f&&n.childLeaving,r&&n.childPulsate);return!l&&!f&&h(!0),R.useEffect(()=>{if(!l&&c!=null){const y=setTimeout(c,d);return()=>{clearTimeout(y)}}},[c,l,d]),C.jsx("span",{className:p,style:g,children:C.jsx("span",{className:v})})}const dde=kt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Xs=dde,fde=["center","classes","className"];let GT=e=>e,BU,$U,FU,zU;const tF=550,hde=80,pde=Fd(BU||(BU=GT` +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function jD(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function H$(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Eue=typeof WeakMap=="function"?WeakMap:Map;function DY(e,t,n){n=du(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){xE||(xE=!0,Z$=r),H$(e,t)},n}function LY(e,t,n){n=du(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){H$(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){H$(e,t),typeof r!="function"&&(xd===null?xd=new Set([this]):xd.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function _U(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Eue;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=$ue.bind(null,e,t,n),t.then(e,e))}function SU(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function EU(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=du(-1,1),t.tag=2,bd(n,t,1))),n.lanes|=1),e)}var Cue=ku.ReactCurrentOwner,$o=!1;function wo(e,t,n,r){t.child=e===null?hY(t,null,n,r):hg(t,e.child,n,r)}function CU(e,t,n,r,i){n=n.render;var o=t.ref;return Xm(t,i),r=g4(e,t,n,r,o,i),n=v4(),e!==null&&!$o?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xu(e,t,i)):(fr&&n&&i4(t),t.flags|=1,wo(e,t,r,i),t.child)}function TU(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!k4(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,NY(e,t,o,r,i)):(e=SS(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:$x,n(s,r)&&e.ref===t.ref)return xu(e,t,i)}return t.flags|=1,e=_d(o,r),e.ref=t.ref,e.return=t,t.child=e}function NY(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if($x(o,r)&&e.ref===t.ref)if($o=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&($o=!0);else return t.lanes=e.lanes,xu(e,t,i)}return W$(e,t,n,r,i)}function BY(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},er(Im,ys),ys|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,er(Im,ys),ys|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,er(Im,ys),ys|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,er(Im,ys),ys|=r;return wo(e,t,i,n),t.child}function $Y(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function W$(e,t,n,r,i){var o=Uo(n)?ap:no.current;return o=dg(t,o),Xm(t,i),n=g4(e,t,n,r,o,i),r=v4(),e!==null&&!$o?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,xu(e,t,i)):(fr&&r&&i4(t),t.flags|=1,wo(e,t,n,i),t.child)}function kU(e,t,n,r,i){if(Uo(n)){var o=!0;uE(t)}else o=!1;if(Xm(t,i),t.stateNode===null)xS(e,t),dY(t,n,r),U$(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var c=s.context,d=n.contextType;typeof d=="object"&&d!==null?d=ha(d):(d=Uo(n)?ap:no.current,d=dg(t,d));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||c!==d)&&yU(t,s,r,d),Xu=!1;var p=t.memoizedState;s.state=p,mE(t,r,s,i),c=t.memoizedState,l!==r||p!==c||jo.current||Xu?(typeof f=="function"&&(j$(t,n,f,r),c=t.memoizedState),(l=Xu||vU(t,n,l,r,p,c,d))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=d,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,cY(e,t),l=t.memoizedProps,d=t.type===t.elementType?l:Wa(t.type,l),s.props=d,h=t.pendingProps,p=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=ha(c):(c=Uo(n)?ap:no.current,c=dg(t,c));var g=n.getDerivedStateFromProps;(f=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==h||p!==c)&&yU(t,s,r,c),Xu=!1,p=t.memoizedState,s.state=p,mE(t,r,s,i);var v=t.memoizedState;l!==h||p!==v||jo.current||Xu?(typeof g=="function"&&(j$(t,n,g,r),v=t.memoizedState),(d=Xu||vU(t,n,d,r,p,v,c)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=c,r=d):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return G$(e,t,n,r,o,i)}function G$(e,t,n,r,i,o){$Y(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&fU(t,n,!1),xu(e,t,o);r=t.stateNode,Cue.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=hg(t,e.child,null,o),t.child=hg(t,null,l,o)):wo(e,t,l,o),t.memoizedState=r.state,i&&fU(t,n,!0),t.child}function FY(e){var t=e.stateNode;t.pendingContext?dU(e,t.pendingContext,t.pendingContext!==t.context):t.context&&dU(e,t.context,!1),f4(e,t.containerInfo)}function AU(e,t,n,r,i){return fg(),s4(i),t.flags|=256,wo(e,t,n,r),t.child}var V$={dehydrated:null,treeContext:null,retryLane:0};function q$(e){return{baseLanes:e,cachePool:null,transitions:null}}function zY(e,t,n){var r=t.pendingProps,i=Cr.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),er(Cr,i&1),e===null)return F$(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=UT(s,r,0,null),e=Yh(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=q$(n),t.memoizedState=V$,e):x4(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Tue(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var c={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=_d(i,c),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=_d(l,o):(o=Yh(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?q$(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=V$,r}return o=e.child,e=o.sibling,r=_d(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function x4(e,t){return t=UT({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $w(e,t,n,r){return r!==null&&s4(r),hg(t,e.child,null,n),e=x4(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Tue(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=jD(Error(Oe(422))),$w(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=UT({mode:"visible",children:r.children},i,0,null),o=Yh(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&hg(t,e.child,null,s),t.child.memoizedState=q$(s),t.memoizedState=V$,o);if(!(t.mode&1))return $w(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(Oe(419)),r=jD(o,r,void 0),$w(e,t,s,r)}if(l=(s&e.childLanes)!==0,$o||l){if(r=bi,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,bu(e,i),il(r,e,i,-1))}return T4(),r=jD(Error(Oe(421))),$w(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Fue.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Es=yd(i.nextSibling),As=t,fr=!0,Xa=null,e!==null&&(Ks[Qs++]=su,Ks[Qs++]=au,Ks[Qs++]=lp,su=e.id,au=e.overflow,lp=t),t=x4(t,r.children),t.flags|=4096,t)}function RU(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),z$(e.return,t,n)}function UD(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function jY(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(wo(e,t,r.children,n),r=Cr.current,r&2)r=r&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&&RU(e,n,t);else if(e.tag===19)RU(e,n,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}r&=1}if(er(Cr,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&gE(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),UD(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&gE(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}UD(t,!0,n,null,o);break;case"together":UD(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function xS(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function xu(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),up|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Oe(153));if(t.child!==null){for(e=t.child,n=_d(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=_d(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function kue(e,t,n){switch(t.tag){case 3:FY(t),fg();break;case 5:pY(t);break;case 1:Uo(t.type)&&uE(t);break;case 4:f4(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;er(hE,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(er(Cr,Cr.current&1),t.flags|=128,null):n&t.child.childLanes?zY(e,t,n):(er(Cr,Cr.current&1),e=xu(e,t,n),e!==null?e.sibling:null);er(Cr,Cr.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return jY(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),er(Cr,Cr.current),r)break;return null;case 22:case 23:return t.lanes=0,BY(e,t,n)}return xu(e,t,n)}var UY,X$,HY,WY;UY=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};X$=function(){};HY=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,jh(Fl.current);var o=null;switch(n){case"input":i=m$(e,i),r=m$(e,r),o=[];break;case"select":i=Ir({},i,{value:void 0}),r=Ir({},r,{value:void 0}),o=[];break;case"textarea":i=y$(e,i),r=y$(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=lE)}x$(n,r);var s;n=null;for(d in i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&i[d]!=null)if(d==="style"){var l=i[d];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Px.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in r){var c=r[d];if(l=i!=null?i[d]:void 0,r.hasOwnProperty(d)&&c!==l&&(c!=null||l!=null))if(d==="style")if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(o||(o=[]),o.push(d,n)),n=c;else d==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(o=o||[]).push(d,c)):d==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(d,""+c):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Px.hasOwnProperty(d)?(c!=null&&d==="onScroll"&&cr("scroll",e),o||l===c||(o=[])):(o=o||[]).push(d,c))}n&&(o=o||[]).push("style",n);var d=o;(t.updateQueue=d)&&(t.flags|=4)}};WY=function(e,t,n,r){n!==r&&(t.flags|=4)};function J0(e,t){if(!fr)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qi(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Aue(e,t,n){var r=t.pendingProps;switch(o4(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qi(t),null;case 1:return Uo(t.type)&&cE(),qi(t),null;case 3:return r=t.stateNode,pg(),ur(jo),ur(no),p4(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Nw(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Xa!==null&&(nF(Xa),Xa=null))),X$(e,t),qi(t),null;case 5:h4(t);var i=jh(Hx.current);if(n=t.type,e!==null&&t.stateNode!=null)HY(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Oe(166));return qi(t),null}if(e=jh(Fl.current),Nw(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ml]=t,r[jx]=o,e=(t.mode&1)!==0,n){case"dialog":cr("cancel",r),cr("close",r);break;case"iframe":case"object":case"embed":cr("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ml]=t,e[jx]=r,UY(e,t,!1,!1),t.stateNode=e;e:{switch(s=w$(n,r),n){case"dialog":cr("cancel",e),cr("close",e),i=r;break;case"iframe":case"object":case"embed":cr("load",e),i=r;break;case"video":case"audio":for(i=0;igg&&(t.flags|=128,r=!0,J0(o,!1),t.lanes=4194304)}else{if(!r)if(e=gE(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),J0(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!fr)return qi(t),null}else 2*Hr()-o.renderingStartTime>gg&&n!==1073741824&&(t.flags|=128,r=!0,J0(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Hr(),t.sibling=null,n=Cr.current,er(Cr,r?n&1|2:n&1),t):(qi(t),null);case 22:case 23:return C4(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ys&1073741824&&(qi(t),t.subtreeFlags&6&&(t.flags|=8192)):qi(t),null;case 24:return null;case 25:return null}throw Error(Oe(156,t.tag))}function Rue(e,t){switch(o4(t),t.tag){case 1:return Uo(t.type)&&cE(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pg(),ur(jo),ur(no),p4(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return h4(t),null;case 13:if(ur(Cr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Oe(340));fg()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ur(Cr),null;case 4:return pg(),null;case 10:return c4(t.type._context),null;case 22:case 23:return C4(),null;case 24:return null;default:return null}}var Fw=!1,Ki=!1,Iue=typeof WeakSet=="function"?WeakSet:Set,st=null;function Rm(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Br(e,t,r)}else n.current=null}function Y$(e,t,n){try{n()}catch(r){Br(e,t,r)}}var IU=!1;function Pue(e,t){if(P$=oE,e=XX(),r4(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,c=-1,d=0,f=0,h=e,p=null;t:for(;;){for(var g;h!==n||i!==0&&h.nodeType!==3||(l=s+i),h!==o||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(g=h.firstChild)!==null;)p=h,h=g;for(;;){if(h===e)break t;if(p===n&&++d===i&&(l=s),p===o&&++f===r&&(c=s),(g=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=g}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(O$={focusedElem:e,selectionRange:n},oE=!1,st=t;st!==null;)if(t=st,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,st=e;else for(;st!==null;){t=st;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,S=v.memoizedState,_=t.stateNode,b=_.getSnapshotBeforeUpdate(t.elementType===t.type?y:Wa(t.type,y),S);_.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Oe(163))}}catch(E){Br(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,st=e;break}st=t.return}return v=IU,IU=!1,v}function rx(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Y$(t,n,o)}i=i.next}while(i!==r)}}function zT(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function K$(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function GY(e){var t=e.alternate;t!==null&&(e.alternate=null,GY(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ml],delete t[jx],delete t[L$],delete t[hue],delete t[pue])),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 VY(e){return e.tag===5||e.tag===3||e.tag===4}function PU(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||VY(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 Q$(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=lE));else if(r!==4&&(e=e.child,e!==null))for(Q$(e,t,n),e=e.sibling;e!==null;)Q$(e,t,n),e=e.sibling}function J$(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(J$(e,t,n),e=e.sibling;e!==null;)J$(e,t,n),e=e.sibling}var Ni=null,Va=!1;function Bu(e,t,n){for(n=n.child;n!==null;)qY(e,t,n),n=n.sibling}function qY(e,t,n){if($l&&typeof $l.onCommitFiberUnmount=="function")try{$l.onCommitFiberUnmount(OT,n)}catch{}switch(n.tag){case 5:Ki||Rm(n,t);case 6:var r=Ni,i=Va;Ni=null,Bu(e,t,n),Ni=r,Va=i,Ni!==null&&(Va?(e=Ni,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ni.removeChild(n.stateNode));break;case 18:Ni!==null&&(Va?(e=Ni,n=n.stateNode,e.nodeType===8?LD(e.parentNode,n):e.nodeType===1&&LD(e,n),Nx(e)):LD(Ni,n.stateNode));break;case 4:r=Ni,i=Va,Ni=n.stateNode.containerInfo,Va=!0,Bu(e,t,n),Ni=r,Va=i;break;case 0:case 11:case 14:case 15:if(!Ki&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Y$(n,t,s),i=i.next}while(i!==r)}Bu(e,t,n);break;case 1:if(!Ki&&(Rm(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Br(n,t,l)}Bu(e,t,n);break;case 21:Bu(e,t,n);break;case 22:n.mode&1?(Ki=(r=Ki)||n.memoizedState!==null,Bu(e,t,n),Ki=r):Bu(e,t,n);break;default:Bu(e,t,n)}}function OU(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Iue),t.forEach(function(r){var i=zue.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Na(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=Hr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Mue(r/1960))-r,10e?16:e,ad===null)var r=!1;else{if(e=ad,ad=null,wE=0,wn&6)throw Error(Oe(331));var i=wn;for(wn|=4,st=e.current;st!==null;){var o=st,s=o.child;if(st.flags&16){var l=o.deletions;if(l!==null){for(var c=0;cHr()-S4?Xh(e,0):_4|=n),Ho(e,t)}function tK(e,t){t===0&&(e.mode&1?(t=Iw,Iw<<=1,!(Iw&130023424)&&(Iw=4194304)):t=1);var n=To();e=bu(e,t),e!==null&&(F1(e,t,n),Ho(e,n))}function Fue(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tK(e,n)}function zue(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Oe(314))}r!==null&&r.delete(t),tK(e,n)}var nK;nK=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||jo.current)$o=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $o=!1,kue(e,t,n);$o=!!(e.flags&131072)}else $o=!1,fr&&t.flags&1048576&&oY(t,fE,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;xS(e,t),e=t.pendingProps;var i=dg(t,no.current);Xm(t,n),i=g4(null,t,r,e,i,n);var o=v4();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Uo(r)?(o=!0,uE(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,d4(t),i.updater=$T,t.stateNode=i,i._reactInternals=t,U$(t,r,e,n),t=G$(null,t,r,!0,o,n)):(t.tag=0,fr&&o&&i4(t),wo(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(xS(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Uue(r),e=Wa(r,e),i){case 0:t=W$(null,t,r,e,n);break e;case 1:t=kU(null,t,r,e,n);break e;case 11:t=CU(null,t,r,e,n);break e;case 14:t=TU(null,t,r,Wa(r.type,e),n);break e}throw Error(Oe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wa(r,i),W$(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wa(r,i),kU(e,t,r,i,n);case 3:e:{if(FY(t),e===null)throw Error(Oe(387));r=t.pendingProps,o=t.memoizedState,i=o.element,cY(e,t),mE(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=mg(Error(Oe(423)),t),t=AU(e,t,r,n,i);break e}else if(r!==i){i=mg(Error(Oe(424)),t),t=AU(e,t,r,n,i);break e}else for(Es=yd(t.stateNode.containerInfo.firstChild),As=t,fr=!0,Xa=null,n=hY(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(fg(),r===i){t=xu(e,t,n);break e}wo(e,t,r,n)}t=t.child}return t;case 5:return pY(t),e===null&&F$(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,M$(r,i)?s=null:o!==null&&M$(r,o)&&(t.flags|=32),$Y(e,t),wo(e,t,s,n),t.child;case 6:return e===null&&F$(t),null;case 13:return zY(e,t,n);case 4:return f4(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=hg(t,null,r,n):wo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wa(r,i),CU(e,t,r,i,n);case 7:return wo(e,t,t.pendingProps,n),t.child;case 8:return wo(e,t,t.pendingProps.children,n),t.child;case 12:return wo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,er(hE,r._currentValue),r._currentValue=s,o!==null)if(fl(o.value,s)){if(o.children===i.children&&!jo.current){t=xu(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=du(-1,n&-n),c.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var f=d.pending;f===null?c.next=c:(c.next=f.next,f.next=c),d.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),z$(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Oe(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),z$(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}wo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Xm(t,n),i=ha(i),r=r(i),t.flags|=1,wo(e,t,r,n),t.child;case 14:return r=t.type,i=Wa(r,t.pendingProps),i=Wa(r.type,i),TU(e,t,r,i,n);case 15:return NY(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wa(r,i),xS(e,t),t.tag=1,Uo(r)?(e=!0,uE(t)):e=!1,Xm(t,n),dY(t,r,i),U$(t,r,i,n),G$(null,t,r,!0,e,n);case 19:return jY(e,t,n);case 22:return BY(e,t,n)}throw Error(Oe(156,t.tag))};function rK(e,t){return RX(e,t)}function jue(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ta(e,t,n,r){return new jue(e,t,n,r)}function k4(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Uue(e){if(typeof e=="function")return k4(e)?1:0;if(e!=null){if(e=e.$$typeof,e===V5)return 11;if(e===q5)return 14}return 2}function _d(e,t){var n=e.alternate;return n===null?(n=ta(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function SS(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")k4(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case xm:return Yh(n.children,i,o,t);case G5:s=8,i|=8;break;case d$:return e=ta(12,n,t,i|2),e.elementType=d$,e.lanes=o,e;case f$:return e=ta(13,n,t,i),e.elementType=f$,e.lanes=o,e;case h$:return e=ta(19,n,t,i),e.elementType=h$,e.lanes=o,e;case fX:return UT(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case uX:s=10;break e;case dX:s=9;break e;case V5:s=11;break e;case q5:s=14;break e;case qu:s=16,r=null;break e}throw Error(Oe(130,e==null?e:typeof e,""))}return t=ta(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Yh(e,t,n,r){return e=ta(7,e,r,t),e.lanes=n,e}function UT(e,t,n,r){return e=ta(22,e,r,t),e.elementType=fX,e.lanes=n,e.stateNode={isHidden:!1},e}function HD(e,t,n){return e=ta(6,e,null,t),e.lanes=n,e}function WD(e,t,n){return t=ta(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hue(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ED(0),this.expirationTimes=ED(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ED(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function A4(e,t,n,r,i,o,s,l,c){return e=new Hue(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ta(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},d4(o),e}function Wue(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(aK)}catch(e){console.error(e)}}aK(),oX.exports=Us;var Yg=oX.exports;const Pm=zs(Yg),zU={disabled:!1},EE=de.createContext(null);var Yue=function(t){return t.scrollTop},Ob="unmounted",kh="exited",Ah="entering",sm="entered",rF="exiting",Au=function(e){PT(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,l=s&&!s.isMounting?r.enter:r.appear,c;return o.appearStatus=null,r.in?l?(c=kh,o.appearStatus=Ah):c=sm:r.unmountOnExit||r.mountOnEnter?c=Ob:c=kh,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===Ob?{status:kh}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Ah&&s!==sm&&(o=Ah):(s===Ah||s===sm)&&(o=rF)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,l;return o=s=l=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,l=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:l}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Ah){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Pm.findDOMNode(this);s&&Yue(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===kh&&this.setState({status:Ob})},n.performEnter=function(i){var o=this,s=this.props.enter,l=this.context?this.context.isMounting:i,c=this.props.nodeRef?[l]:[Pm.findDOMNode(this),l],d=c[0],f=c[1],h=this.getTimeouts(),p=l?h.appear:h.enter;if(!i&&!s||zU.disabled){this.safeSetState({status:sm},function(){o.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:Ah},function(){o.props.onEntering(d,f),o.onTransitionEnd(p,function(){o.safeSetState({status:sm},function(){o.props.onEntered(d,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),l=this.props.nodeRef?void 0:Pm.findDOMNode(this);if(!o||zU.disabled){this.safeSetState({status:kh},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:rF},function(){i.props.onExiting(l),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:kh},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(l){s&&(s=!1,o.nextCallback=null,i(l))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:Pm.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!s||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],d=c[0],f=c[1];this.props.addEndListener(d,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Ob)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=Le(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return de.createElement(EE.Provider,{value:null},typeof s=="function"?s(i,l):de.cloneElement(de.Children.only(s),l))},t}(de.Component);Au.contextType=EE;Au.propTypes={};function Xp(){}Au.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xp,onEntering:Xp,onEntered:Xp,onExit:Xp,onExiting:Xp,onExited:Xp};Au.UNMOUNTED=Ob;Au.EXITED=kh;Au.ENTERING=Ah;Au.ENTERED=sm;Au.EXITING=rF;const O4=Au;function Kue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M4(e,t){var n=function(o){return t&&I.isValidElement(o)?t(o):o},r=Object.create(null);return e&&I.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function Que(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,l={};for(var c in t){if(r[c])for(s=0;se.scrollTop;function vg(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function rde(e){return St("MuiCollapse",e)}kt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const ide=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],ode=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Tt(r,rde,n)},sde=Ee("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>$({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&$({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),ade=Ee("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>$({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),lde=Ee("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>$({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),cK=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:l="0px",component:c,easing:d,in:f,onEnter:h,onEntered:p,onEntering:g,onExit:v,onExited:y,onExiting:S,orientation:_="vertical",style:b,timeout:x=nX.standard,TransitionComponent:E=O4}=r,A=Le(r,ide),R=$({},r,{orientation:_,collapsedSize:l}),k=ode(R),O=Pn(),L=I.useRef(),N=I.useRef(null),H=I.useRef(),W=typeof l=="number"?`${l}px`:l,z=_==="horizontal",D=z?"width":"height";I.useEffect(()=>()=>{clearTimeout(L.current)},[]);const F=I.useRef(null),j=mr(n,F),V=Q=>ae=>{if(Q){const le=F.current;ae===void 0?Q(le):Q(le,ae)}},G=()=>N.current?N.current[z?"clientWidth":"clientHeight"]:0,K=V((Q,ae)=>{N.current&&z&&(N.current.style.position="absolute"),Q.style[D]=W,h&&h(Q,ae)}),Y=V((Q,ae)=>{const le=G();N.current&&z&&(N.current.style.position="");const{duration:he,easing:pe}=vg({style:b,timeout:x,easing:d},{mode:"enter"});if(x==="auto"){const ve=O.transitions.getAutoHeightDuration(le);Q.style.transitionDuration=`${ve}ms`,H.current=ve}else Q.style.transitionDuration=typeof he=="string"?he:`${he}ms`;Q.style[D]=`${le}px`,Q.style.transitionTimingFunction=pe,g&&g(Q,ae)}),J=V((Q,ae)=>{Q.style[D]="auto",p&&p(Q,ae)}),ie=V(Q=>{Q.style[D]=`${G()}px`,v&&v(Q)}),ce=V(y),ue=V(Q=>{const ae=G(),{duration:le,easing:he}=vg({style:b,timeout:x,easing:d},{mode:"exit"});if(x==="auto"){const pe=O.transitions.getAutoHeightDuration(ae);Q.style.transitionDuration=`${pe}ms`,H.current=pe}else Q.style.transitionDuration=typeof le=="string"?le:`${le}ms`;Q.style[D]=W,Q.style.transitionTimingFunction=he,S&&S(Q)}),se=Q=>{x==="auto"&&(L.current=setTimeout(Q,H.current||0)),i&&i(F.current,Q)};return C.jsx(E,$({in:f,onEnter:K,onEntered:J,onEntering:Y,onExit:ie,onExited:ce,onExiting:ue,addEndListener:se,nodeRef:F,timeout:x==="auto"?null:x},A,{children:(Q,ae)=>C.jsx(sde,$({as:c,className:je(k.root,s,{entered:k.entered,exited:!f&&W==="0px"&&k.hidden}[Q]),style:$({[z?"minWidth":"minHeight"]:W},b),ownerState:$({},R,{state:Q}),ref:j},ae,{children:C.jsx(ade,{ownerState:$({},R,{state:Q}),className:k.wrapper,ref:N,children:C.jsx(lde,{ownerState:$({},R,{state:Q}),className:k.wrapperInner,children:o})})}))}))});cK.muiSupportAuto=!0;const GD=cK;function cde(e){return St("MuiPaper",e)}kt("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 ude=["className","component","elevation","square","variant"],dde=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Tt(o,cde,i)},fde=Ee("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 $({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"&&$({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${_n("#fff",M6(t.elevation))}, ${_n("#fff",M6(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),hde=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:s=1,square:l=!1,variant:c="elevation"}=r,d=Le(r,ude),f=$({},r,{component:o,elevation:s,square:l,variant:c}),h=dde(f);return C.jsx(fde,$({as:o,ownerState:f,className:je(h.root,i),ref:n},d))}),Kg=hde;function pde(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:l,onExited:c,timeout:d}=e,[f,h]=I.useState(!1),p=je(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},v=je(n.child,f&&n.childLeaving,r&&n.childPulsate);return!l&&!f&&h(!0),I.useEffect(()=>{if(!l&&c!=null){const y=setTimeout(c,d);return()=>{clearTimeout(y)}}},[c,l,d]),C.jsx("span",{className:p,style:g,children:C.jsx("span",{className:v})})}const mde=kt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ys=mde,gde=["center","classes","className"];let qT=e=>e,jU,UU,HU,WU;const iF=550,vde=80,yde=jd(jU||(jU=qT` 0% { transform: scale(0); opacity: 0.1; @@ -68,7 +68,7 @@ Error generating stack: `+o.message+` transform: scale(1); opacity: 0.3; } -`)),mde=Fd($U||($U=GT` +`)),bde=jd(UU||(UU=qT` 0% { opacity: 1; } @@ -76,7 +76,7 @@ Error generating stack: `+o.message+` 100% { opacity: 0; } -`)),gde=Fd(FU||(FU=GT` +`)),xde=jd(HU||(HU=qT` 0% { transform: scale(1); } @@ -88,7 +88,7 @@ Error generating stack: `+o.message+` 100% { transform: scale(1); } -`)),vde=Ee("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),yde=Ee(ude,{name:"MuiTouchRipple",slot:"Ripple"})(zU||(zU=GT` +`)),wde=Ee("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),_de=Ee(pde,{name:"MuiTouchRipple",slot:"Ripple"})(WU||(WU=qT` opacity: 0; position: absolute; @@ -131,8 +131,8 @@ Error generating stack: `+o.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),Xs.rippleVisible,pde,tF,({theme:e})=>e.transitions.easing.easeInOut,Xs.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Xs.child,Xs.childLeaving,mde,tF,({theme:e})=>e.transitions.easing.easeInOut,Xs.childPulsate,gde,({theme:e})=>e.transitions.easing.easeInOut),bde=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,l=Le(r,fde),[c,d]=R.useState([]),f=R.useRef(0),h=R.useRef(null);R.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const p=R.useRef(!1),g=R.useRef(0),v=R.useRef(null),y=R.useRef(null);R.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]);const S=R.useCallback(E=>{const{pulsate:A,rippleX:I,rippleY:k,rippleSize:O,cb:L}=E;d(N=>[...N,C.jsx(yde,{classes:{ripple:je(o.ripple,Xs.ripple),rippleVisible:je(o.rippleVisible,Xs.rippleVisible),ripplePulsate:je(o.ripplePulsate,Xs.ripplePulsate),child:je(o.child,Xs.child),childLeaving:je(o.childLeaving,Xs.childLeaving),childPulsate:je(o.childPulsate,Xs.childPulsate)},timeout:tF,pulsate:A,rippleX:I,rippleY:k,rippleSize:O},f.current)]),f.current+=1,h.current=L},[o]),_=R.useCallback((E={},A={},I=()=>{})=>{const{pulsate:k=!1,center:O=i||A.pulsate,fakeElement:L=!1}=A;if((E==null?void 0:E.type)==="mousedown"&&p.current){p.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(p.current=!0);const N=L?null:y.current,H=N?N.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,z,D;if(O||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)W=Math.round(H.width/2),z=Math.round(H.height/2);else{const{clientX:F,clientY:j}=E.touches&&E.touches.length>0?E.touches[0]:E;W=Math.round(F-H.left),z=Math.round(j-H.top)}if(O)D=Math.sqrt((2*H.width**2+H.height**2)/3),D%2===0&&(D+=1);else{const F=Math.max(Math.abs((N?N.clientWidth:0)-W),W)*2+2,j=Math.max(Math.abs((N?N.clientHeight:0)-z),z)*2+2;D=Math.sqrt(F**2+j**2)}E!=null&&E.touches?v.current===null&&(v.current=()=>{S({pulsate:k,rippleX:W,rippleY:z,rippleSize:D,cb:I})},g.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},hde)):S({pulsate:k,rippleX:W,rippleY:z,rippleSize:D,cb:I})},[i,S]),b=R.useCallback(()=>{_({},{pulsate:!0})},[_]),x=R.useCallback((E,A)=>{if(clearTimeout(g.current),(E==null?void 0:E.type)==="touchend"&&v.current){v.current(),v.current=null,g.current=setTimeout(()=>{x(E,A)});return}v.current=null,d(I=>I.length>0?I.slice(1):I),h.current=A},[]);return R.useImperativeHandle(n,()=>({pulsate:b,start:_,stop:x}),[b,_,x]),C.jsx(vde,$({className:je(Xs.root,o.root,s),ref:y},l,{children:C.jsx(Jue,{component:null,exit:!0,children:c})}))}),xde=bde;function wde(e){return St("MuiButtonBase",e)}const _de=kt("MuiButtonBase",["root","disabled","focusVisible"]),Sde=_de,Ede=["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"],Cde=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=Tt({root:["root",t&&"disabled",n&&"focusVisible"]},wde,i);return n&&r&&(s.root+=` ${r}`),s},Tde=Ee("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${Sde.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),kde=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:l,component:c="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:h=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:v,onClick:y,onContextMenu:S,onDragLeave:_,onFocus:b,onFocusVisible:x,onKeyDown:E,onKeyUp:A,onMouseDown:I,onMouseLeave:k,onMouseUp:O,onTouchEnd:L,onTouchMove:N,onTouchStart:H,tabIndex:W=0,TouchRippleProps:z,touchRippleRef:D,type:F}=r,j=Le(r,Ede),V=R.useRef(null),G=R.useRef(null),K=mr(G,D),{isFocusVisibleRef:Y,onFocus:J,onBlur:ie,ref:ce}=y5(),[ue,se]=R.useState(!1);d&&ue&&se(!1),R.useImperativeHandle(i,()=>({focusVisible:()=>{se(!0),V.current.focus()}}),[]);const[Q,ae]=R.useState(!1);R.useEffect(()=>{ae(!0)},[]);const le=Q&&!f&&!d;R.useEffect(()=>{ue&&p&&!f&&Q&&G.current.pulsate()},[f,p,ue,Q]);function he(Ne,It,ct=h){return Zi(Ae=>(It&&It(Ae),!ct&&G.current&&G.current[Ne](Ae),!0))}const pe=he("start",I),ve=he("stop",S),ye=he("stop",_),xe=he("stop",O),me=he("stop",Ne=>{ue&&Ne.preventDefault(),k&&k(Ne)}),be=he("start",H),Qe=he("stop",L),qe=he("stop",N),at=he("stop",Ne=>{ie(Ne),Y.current===!1&&se(!1),v&&v(Ne)},!1),Lt=Zi(Ne=>{V.current||(V.current=Ne.currentTarget),J(Ne),Y.current===!0&&(se(!0),x&&x(Ne)),b&&b(Ne)}),Re=()=>{const Ne=V.current;return c&&c!=="button"&&!(Ne.tagName==="A"&&Ne.href)},Fe=R.useRef(!1),it=Zi(Ne=>{p&&!Fe.current&&ue&&G.current&&Ne.key===" "&&(Fe.current=!0,G.current.stop(Ne,()=>{G.current.start(Ne)})),Ne.target===Ne.currentTarget&&Re()&&Ne.key===" "&&Ne.preventDefault(),E&&E(Ne),Ne.target===Ne.currentTarget&&Re()&&Ne.key==="Enter"&&!d&&(Ne.preventDefault(),y&&y(Ne))}),pt=Zi(Ne=>{p&&Ne.key===" "&&G.current&&ue&&!Ne.defaultPrevented&&(Fe.current=!1,G.current.stop(Ne,()=>{G.current.pulsate(Ne)})),A&&A(Ne),y&&Ne.target===Ne.currentTarget&&Re()&&Ne.key===" "&&!Ne.defaultPrevented&&y(Ne)});let mt=c;mt==="button"&&(j.href||j.to)&&(mt=g);const _e={};mt==="button"?(_e.type=F===void 0?"button":F,_e.disabled=d):(!j.href&&!j.to&&(_e.role="button"),d&&(_e["aria-disabled"]=d));const ze=mr(n,ce,V),Ye=$({},r,{centerRipple:o,component:c,disabled:d,disableRipple:f,disableTouchRipple:h,focusRipple:p,tabIndex:W,focusVisible:ue}),$e=Cde(Ye);return C.jsxs(Tde,$({as:mt,className:je($e.root,l),ownerState:Ye,onBlur:at,onClick:y,onContextMenu:ve,onFocus:Lt,onKeyDown:it,onKeyUp:pt,onMouseDown:pe,onMouseLeave:me,onMouseUp:xe,onDragLeave:ye,onTouchEnd:Qe,onTouchMove:qe,onTouchStart:be,ref:ze,tabIndex:d?-1:W,type:F},_e,j,{children:[s,le?C.jsx(xde,$({ref:K,center:o},z)):null]}))}),ku=kde;function Ade(e){return St("MuiIconButton",e)}const Ide=kt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Rde=Ide,Pde=["edge","children","className","color","disabled","disableFocusRipple","size"],Ode=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Me(r)}`,i&&`edge${Me(i)}`,`size${Me(o)}`]};return Tt(s,Ade,t)},Mde=Ee(ku,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Me(n.color)}`],n.edge&&t[`edge${Me(n.edge)}`],t[`size${Me(n.size)}`]]}})(({theme:e,ownerState:t})=>$({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})`:_n(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 $({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&$({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":$({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_n(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)},{[`&.${Rde.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Dde=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:s,color:l="default",disabled:c=!1,disableFocusRipple:d=!1,size:f="medium"}=r,h=Le(r,Pde),p=$({},r,{edge:i,color:l,disabled:c,disableFocusRipple:d,size:f}),g=Ode(p);return C.jsx(Mde,$({className:je(g.root,s),centerRipple:!0,focusRipple:!d,disabled:c,ref:n,ownerState:p},h,{children:o}))}),dp=Dde;function Lde(e){return St("MuiTypography",e)}kt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Nde=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Bde=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,l={root:["root",o,e.align!=="inherit"&&`align${Me(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Tt(l,Lde,s)},$de=Ee("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Me(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>$({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.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})),jU={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Fde={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},zde=e=>Fde[e]||e,jde=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiTypography"}),i=zde(r.color),o=D5($({},r,{color:i})),{align:s="inherit",className:l,component:c,gutterBottom:d=!1,noWrap:f=!1,paragraph:h=!1,variant:p="body1",variantMapping:g=jU}=o,v=Le(o,Nde),y=$({},o,{align:s,color:i,className:l,component:c,gutterBottom:d,noWrap:f,paragraph:h,variant:p,variantMapping:g}),S=c||(h?"p":g[p]||jU[p])||"span",_=Bde(y);return C.jsx($de,$({as:S,ref:n,ownerState:y,className:je(_.root,l)},v))}),zt=jde;function Ude(e){return St("MuiAppBar",e)}kt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const Hde=["className","color","enableColorOnDark","position"],Wde=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${Me(t)}`,`position${Me(n)}`]};return Tt(i,Ude,r)},jw=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Gde=Ee(Yg,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Me(n.position)}`],t[`color${Me(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return $({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&$({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&$({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&$({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:jw(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:jw(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:jw(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:jw(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Vde=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:s=!1,position:l="fixed"}=r,c=Le(r,Hde),d=$({},r,{color:o,position:l,enableColorOnDark:s}),f=Wde(d);return C.jsx(Gde,$({square:!0,component:"header",ownerState:d,elevation:4,className:je(f.root,i,l==="fixed"&&"mui-fixed"),ref:n},c))}),qde=Vde;function $l(e){return typeof e=="string"}function Rb(e,t,n){return e===void 0||$l(e)?t:$({},t,{ownerState:$({},t.ownerState,n)})}function Xde(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const Yde={disableDefaultClasses:!1},Kde=R.createContext(Yde);function Qde(e){const{disableDefaultClasses:t}=R.useContext(Kde);return n=>t?"":e(n)}function EE(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 Jde(e,t,n){return typeof e=="function"?e(t,n):e}function UU(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Zde(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const g=je(i==null?void 0:i.className,r==null?void 0:r.className,o,n==null?void 0:n.className),v=$({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),y=$({},n,i,r);return g.length>0&&(y.className=g),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:void 0}}const s=EE($({},i,r)),l=UU(r),c=UU(i),d=t(s),f=je(d==null?void 0:d.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),h=$({},d==null?void 0:d.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=$({},d,n,c,l);return f.length>0&&(p.className=f),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:d.ref}}const efe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Wr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=Le(e,efe),l=o?{}:Jde(r,i),{props:c,internalRef:d}=Zde($({},s,{externalSlotProps:l})),f=mr(d,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Rb(n,$({},c,{ref:f}),i)}function HU(e){return e.substring(2).toLowerCase()}function tfe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const f=mr(t.ref,l),h=Zi(v=>{const y=d.current;d.current=!1;const S=Ar(l.current);if(!c.current||!l.current||"clientX"in v&&tfe(v,S))return;if(s.current){s.current=!1;return}let _;v.composedPath?_=v.composedPath().indexOf(l.current)>-1:_=!S.documentElement.contains(v.target)||l.current.contains(v.target),!_&&(n||!y)&&i(v)}),p=v=>y=>{d.current=!0;const S=t.props[v];S&&S(y)},g={ref:f};return o!==!1&&(g[o]=p(o)),R.useEffect(()=>{if(o!==!1){const v=HU(o),y=Ar(l.current),S=()=>{s.current=!0};return y.addEventListener(v,h),y.addEventListener("touchmove",S),()=>{y.removeEventListener(v,h),y.removeEventListener("touchmove",S)}}},[h,o]),r!==!1&&(g[r]=p(r)),R.useEffect(()=>{if(r!==!1){const v=HU(r),y=Ar(l.current);return y.addEventListener(v,h),()=>{y.removeEventListener(v,h)}}},[h,r]),C.jsx(R.Fragment,{children:R.cloneElement(t,g)})}const rfe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ife(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 ofe(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 sfe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||ofe(e))}function afe(e){const t=[],n=[];return Array.from(e.querySelectorAll(rfe)).forEach((r,i)=>{const o=ife(r);o===-1||!sfe(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function lfe(){return!0}function cfe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=afe,isEnabled:s=lfe,open:l}=e,c=R.useRef(!1),d=R.useRef(null),f=R.useRef(null),h=R.useRef(null),p=R.useRef(null),g=R.useRef(!1),v=R.useRef(null),y=mr(t.ref,v),S=R.useRef(null);R.useEffect(()=>{!l||!v.current||(g.current=!n)},[n,l]),R.useEffect(()=>{if(!l||!v.current)return;const x=Ar(v.current);return v.current.contains(x.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),g.current&&v.current.focus()),()=>{i||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[l]),R.useEffect(()=>{if(!l||!v.current)return;const x=Ar(v.current),E=k=>{S.current=k,!(r||!s()||k.key!=="Tab")&&x.activeElement===v.current&&k.shiftKey&&(c.current=!0,f.current&&f.current.focus())},A=()=>{const k=v.current;if(k===null)return;if(!x.hasFocus()||!s()||c.current){c.current=!1;return}if(k.contains(x.activeElement)||r&&x.activeElement!==d.current&&x.activeElement!==f.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let O=[];if((x.activeElement===d.current||x.activeElement===f.current)&&(O=o(v.current)),O.length>0){var L,N;const H=!!((L=S.current)!=null&&L.shiftKey&&((N=S.current)==null?void 0:N.key)==="Tab"),W=O[0],z=O[O.length-1];typeof W!="string"&&typeof z!="string"&&(H?z.focus():W.focus())}else k.focus()};x.addEventListener("focusin",A),x.addEventListener("keydown",E,!0);const I=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&A()},50);return()=>{clearInterval(I),x.removeEventListener("focusin",A),x.removeEventListener("keydown",E,!0)}},[n,r,i,s,l,o]);const _=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0,p.current=x.target;const E=t.props.onFocus;E&&E(x)},b=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0};return C.jsxs(R.Fragment,{children:[C.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:d,"data-testid":"sentinelStart"}),R.cloneElement(t,{ref:y,onFocus:_}),C.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:f,"data-testid":"sentinelEnd"})]})}var Wo="top",pa="bottom",ma="right",Go="left",M4="auto",z1=[Wo,pa,ma,Go],gg="start",Gx="end",ufe="clippingParents",oK="viewport",Q0="popper",dfe="reference",WU=z1.reduce(function(e,t){return e.concat([t+"-"+gg,t+"-"+Gx])},[]),sK=[].concat(z1,[M4]).reduce(function(e,t){return e.concat([t,t+"-"+gg,t+"-"+Gx])},[]),ffe="beforeRead",hfe="read",pfe="afterRead",mfe="beforeMain",gfe="main",vfe="afterMain",yfe="beforeWrite",bfe="write",xfe="afterWrite",wfe=[ffe,hfe,pfe,mfe,gfe,vfe,yfe,bfe,xfe];function Vl(e){return e?(e.nodeName||"").toLowerCase():null}function Ns(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function fp(e){var t=Ns(e).Element;return e instanceof t||e instanceof Element}function aa(e){var t=Ns(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function D4(e){if(typeof ShadowRoot>"u")return!1;var t=Ns(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function _fe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!aa(o)||!Vl(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var l=i[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function Sfe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(c,d){return c[d]="",c},{});!aa(i)||!Vl(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const Efe={name:"applyStyles",enabled:!0,phase:"write",fn:_fe,effect:Sfe,requires:["computeStyles"]};function Fl(e){return e.split("-")[0]}var Yh=Math.max,CE=Math.min,vg=Math.round;function nF(){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 aK(){return!/^((?!chrome|android).)*safari/i.test(nF())}function yg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&aa(e)&&(i=e.offsetWidth>0&&vg(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&vg(r.height)/e.offsetHeight||1);var s=fp(e)?Ns(e):window,l=s.visualViewport,c=!aK()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/i,f=(r.top+(c&&l?l.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:d+h,bottom:f+p,left:d,x:d,y:f}}function L4(e){var t=yg(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function lK(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&D4(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function bu(e){return Ns(e).getComputedStyle(e)}function Cfe(e){return["table","td","th"].indexOf(Vl(e))>=0}function Hd(e){return((fp(e)?e.ownerDocument:e.document)||window.document).documentElement}function VT(e){return Vl(e)==="html"?e:e.assignedSlot||e.parentNode||(D4(e)?e.host:null)||Hd(e)}function GU(e){return!aa(e)||bu(e).position==="fixed"?null:e.offsetParent}function Tfe(e){var t=/firefox/i.test(nF()),n=/Trident/i.test(nF());if(n&&aa(e)){var r=bu(e);if(r.position==="fixed")return null}var i=VT(e);for(D4(i)&&(i=i.host);aa(i)&&["html","body"].indexOf(Vl(i))<0;){var o=bu(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function j1(e){for(var t=Ns(e),n=GU(e);n&&Cfe(n)&&bu(n).position==="static";)n=GU(n);return n&&(Vl(n)==="html"||Vl(n)==="body"&&bu(n).position==="static")?t:n||Tfe(e)||t}function N4(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function rx(e,t,n){return Yh(e,CE(t,n))}function kfe(e,t,n){var r=rx(e,t,n);return r>n?n:r}function cK(){return{top:0,right:0,bottom:0,left:0}}function uK(e){return Object.assign({},cK(),e)}function dK(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Afe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,uK(typeof t!="number"?t:dK(t,z1))};function Ife(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,l=Fl(n.placement),c=N4(l),d=[Go,ma].indexOf(l)>=0,f=d?"height":"width";if(!(!o||!s)){var h=Afe(i.padding,n),p=L4(o),g=c==="y"?Wo:Go,v=c==="y"?pa:ma,y=n.rects.reference[f]+n.rects.reference[c]-s[c]-n.rects.popper[f],S=s[c]-n.rects.reference[c],_=j1(o),b=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,x=y/2-S/2,E=h[g],A=b-p[f]-h[v],I=b/2-p[f]/2+x,k=rx(E,I,A),O=c;n.modifiersData[r]=(t={},t[O]=k,t.centerOffset=k-I,t)}}function Rfe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||lK(t.elements.popper,i)&&(t.elements.arrow=i))}const Pfe={name:"arrow",enabled:!0,phase:"main",fn:Ife,effect:Rfe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bg(e){return e.split("-")[1]}var Ofe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mfe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:vg(n*i)/i||0,y:vg(r*i)/i||0}}function VU(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=s.x,g=p===void 0?0:p,v=s.y,y=v===void 0?0:v,S=typeof f=="function"?f({x:g,y}):{x:g,y};g=S.x,y=S.y;var _=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),x=Go,E=Wo,A=window;if(d){var I=j1(n),k="clientHeight",O="clientWidth";if(I===Ns(n)&&(I=Hd(n),bu(I).position!=="static"&&l==="absolute"&&(k="scrollHeight",O="scrollWidth")),I=I,i===Wo||(i===Go||i===ma)&&o===Gx){E=pa;var L=h&&I===A&&A.visualViewport?A.visualViewport.height:I[k];y-=L-r.height,y*=c?1:-1}if(i===Go||(i===Wo||i===pa)&&o===Gx){x=ma;var N=h&&I===A&&A.visualViewport?A.visualViewport.width:I[O];g-=N-r.width,g*=c?1:-1}}var H=Object.assign({position:l},d&&Ofe),W=f===!0?Mfe({x:g,y},Ns(n)):{x:g,y};if(g=W.x,y=W.y,c){var z;return Object.assign({},H,(z={},z[E]=b?"0":"",z[x]=_?"0":"",z.transform=(A.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",z))}return Object.assign({},H,(t={},t[E]=b?y+"px":"",t[x]=_?g+"px":"",t.transform="",t))}function Dfe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:Fl(t.placement),variation:bg(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,VU(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,VU(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Lfe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Dfe,data:{}};var Uw={passive:!0};function Nfe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,l=s===void 0?!0:s,c=Ns(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(f){f.addEventListener("scroll",n.update,Uw)}),l&&c.addEventListener("resize",n.update,Uw),function(){o&&d.forEach(function(f){f.removeEventListener("scroll",n.update,Uw)}),l&&c.removeEventListener("resize",n.update,Uw)}}const Bfe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Nfe,data:{}};var $fe={left:"right",right:"left",bottom:"top",top:"bottom"};function SS(e){return e.replace(/left|right|bottom|top/g,function(t){return $fe[t]})}var Ffe={start:"end",end:"start"};function qU(e){return e.replace(/start|end/g,function(t){return Ffe[t]})}function B4(e){var t=Ns(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function $4(e){return yg(Hd(e)).left+B4(e).scrollLeft}function zfe(e,t){var n=Ns(e),r=Hd(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,l=0,c=0;if(i){o=i.width,s=i.height;var d=aK();(d||!d&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:l+$4(e),y:c}}function jfe(e){var t,n=Hd(e),r=B4(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Yh(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Yh(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+$4(e),c=-r.scrollTop;return bu(i||n).direction==="rtl"&&(l+=Yh(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:c}}function F4(e){var t=bu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function fK(e){return["html","body","#document"].indexOf(Vl(e))>=0?e.ownerDocument.body:aa(e)&&F4(e)?e:fK(VT(e))}function ix(e,t){var n;t===void 0&&(t=[]);var r=fK(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Ns(r),s=i?[o].concat(o.visualViewport||[],F4(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(ix(VT(s)))}function rF(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ufe(e,t){var n=yg(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function XU(e,t,n){return t===oK?rF(zfe(e,n)):fp(t)?Ufe(t,n):rF(jfe(Hd(e)))}function Hfe(e){var t=ix(VT(e)),n=["absolute","fixed"].indexOf(bu(e).position)>=0,r=n&&aa(e)?j1(e):e;return fp(r)?t.filter(function(i){return fp(i)&&lK(i,r)&&Vl(i)!=="body"}):[]}function Wfe(e,t,n,r){var i=t==="clippingParents"?Hfe(e):[].concat(t),o=[].concat(i,[n]),s=o[0],l=o.reduce(function(c,d){var f=XU(e,d,r);return c.top=Yh(f.top,c.top),c.right=CE(f.right,c.right),c.bottom=CE(f.bottom,c.bottom),c.left=Yh(f.left,c.left),c},XU(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function hK(e){var t=e.reference,n=e.element,r=e.placement,i=r?Fl(r):null,o=r?bg(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case Wo:c={x:s,y:t.y-n.height};break;case pa:c={x:s,y:t.y+t.height};break;case ma:c={x:t.x+t.width,y:l};break;case Go:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=i?N4(i):null;if(d!=null){var f=d==="y"?"height":"width";switch(o){case gg:c[d]=c[d]-(t[f]/2-n[f]/2);break;case Gx:c[d]=c[d]+(t[f]/2-n[f]/2);break}}return c}function Vx(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,l=n.boundary,c=l===void 0?ufe:l,d=n.rootBoundary,f=d===void 0?oK:d,h=n.elementContext,p=h===void 0?Q0:h,g=n.altBoundary,v=g===void 0?!1:g,y=n.padding,S=y===void 0?0:y,_=uK(typeof S!="number"?S:dK(S,z1)),b=p===Q0?dfe:Q0,x=e.rects.popper,E=e.elements[v?b:p],A=Wfe(fp(E)?E:E.contextElement||Hd(e.elements.popper),c,f,s),I=yg(e.elements.reference),k=hK({reference:I,element:x,strategy:"absolute",placement:i}),O=rF(Object.assign({},x,k)),L=p===Q0?O:I,N={top:A.top-L.top+_.top,bottom:L.bottom-A.bottom+_.bottom,left:A.left-L.left+_.left,right:L.right-A.right+_.right},H=e.modifiersData.offset;if(p===Q0&&H){var W=H[i];Object.keys(N).forEach(function(z){var D=[ma,pa].indexOf(z)>=0?1:-1,F=[Wo,pa].indexOf(z)>=0?"y":"x";N[z]+=W[F]*D})}return N}function Gfe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?sK:c,f=bg(r),h=f?l?WU:WU.filter(function(v){return bg(v)===f}):z1,p=h.filter(function(v){return d.indexOf(v)>=0});p.length===0&&(p=h);var g=p.reduce(function(v,y){return v[y]=Vx(e,{placement:y,boundary:i,rootBoundary:o,padding:s})[Fl(y)],v},{});return Object.keys(g).sort(function(v,y){return g[v]-g[y]})}function Vfe(e){if(Fl(e)===M4)return[];var t=SS(e);return[qU(e),t,qU(t)]}function qfe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,d=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,v=g===void 0?!0:g,y=n.allowedAutoPlacements,S=t.options.placement,_=Fl(S),b=_===S,x=c||(b||!v?[SS(S)]:Vfe(S)),E=[S].concat(x).reduce(function(ue,se){return ue.concat(Fl(se)===M4?Gfe(t,{placement:se,boundary:f,rootBoundary:h,padding:d,flipVariations:v,allowedAutoPlacements:y}):se)},[]),A=t.rects.reference,I=t.rects.popper,k=new Map,O=!0,L=E[0],N=0;N=0,F=D?"width":"height",j=Vx(t,{placement:H,boundary:f,rootBoundary:h,altBoundary:p,padding:d}),V=D?z?ma:Go:z?pa:Wo;A[F]>I[F]&&(V=SS(V));var G=SS(V),K=[];if(o&&K.push(j[W]<=0),l&&K.push(j[V]<=0,j[G]<=0),K.every(function(ue){return ue})){L=H,O=!1;break}k.set(H,K)}if(O)for(var Y=v?3:1,J=function(se){var Q=E.find(function(ae){var le=k.get(ae);if(le)return le.slice(0,se).every(function(he){return he})});if(Q)return L=Q,"break"},ie=Y;ie>0;ie--){var ce=J(ie);if(ce==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}const Xfe={name:"flip",enabled:!0,phase:"main",fn:qfe,requiresIfExists:["offset"],data:{_skip:!1}};function YU(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function KU(e){return[Wo,ma,pa,Go].some(function(t){return e[t]>=0})}function Yfe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Vx(t,{elementContext:"reference"}),l=Vx(t,{altBoundary:!0}),c=YU(s,r),d=YU(l,i,o),f=KU(c),h=KU(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const Kfe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Yfe};function Qfe(e,t,n){var r=Fl(e),i=[Go,Wo].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],l=o[1];return s=s||0,l=(l||0)*i,[Go,ma].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function Jfe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=sK.reduce(function(f,h){return f[h]=Qfe(h,t.rects,o),f},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}const Zfe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Jfe};function ehe(e){var t=e.state,n=e.name;t.modifiersData[n]=hK({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const the={name:"popperOffsets",enabled:!0,phase:"read",fn:ehe,data:{}};function nhe(e){return e==="x"?"y":"x"}function rhe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,g=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,S=Vx(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:f}),_=Fl(t.placement),b=bg(t.placement),x=!b,E=N4(_),A=nhe(E),I=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,L=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,N=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(I){if(o){var z,D=E==="y"?Wo:Go,F=E==="y"?pa:ma,j=E==="y"?"height":"width",V=I[E],G=V+S[D],K=V-S[F],Y=g?-O[j]/2:0,J=b===gg?k[j]:O[j],ie=b===gg?-O[j]:-k[j],ce=t.elements.arrow,ue=g&&ce?L4(ce):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cK(),Q=se[D],ae=se[F],le=rx(0,k[j],ue[j]),he=x?k[j]/2-Y-le-Q-N.mainAxis:J-le-Q-N.mainAxis,pe=x?-k[j]/2+Y+le+ae+N.mainAxis:ie+le+ae+N.mainAxis,ve=t.elements.arrow&&j1(t.elements.arrow),ye=ve?E==="y"?ve.clientTop||0:ve.clientLeft||0:0,xe=(z=H==null?void 0:H[E])!=null?z:0,me=V+he-xe-ye,be=V+pe-xe,Qe=rx(g?CE(G,me):G,V,g?Yh(K,be):K);I[E]=Qe,W[E]=Qe-V}if(l){var qe,at=E==="x"?Wo:Go,Lt=E==="x"?pa:ma,Re=I[A],Fe=A==="y"?"height":"width",it=Re+S[at],pt=Re-S[Lt],mt=[Wo,Go].indexOf(_)!==-1,_e=(qe=H==null?void 0:H[A])!=null?qe:0,ze=mt?it:Re-k[Fe]-O[Fe]-_e+N.altAxis,Ye=mt?Re+k[Fe]+O[Fe]-_e-N.altAxis:pt,$e=g&&mt?kfe(ze,Re,Ye):rx(g?ze:it,Re,g?Ye:pt);I[A]=$e,W[A]=$e-Re}t.modifiersData[r]=W}}const ihe={name:"preventOverflow",enabled:!0,phase:"main",fn:rhe,requiresIfExists:["offset"]};function ohe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function she(e){return e===Ns(e)||!aa(e)?B4(e):ohe(e)}function ahe(e){var t=e.getBoundingClientRect(),n=vg(t.width)/e.offsetWidth||1,r=vg(t.height)/e.offsetHeight||1;return n!==1||r!==1}function lhe(e,t,n){n===void 0&&(n=!1);var r=aa(t),i=aa(t)&&ahe(t),o=Hd(t),s=yg(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Vl(t)!=="body"||F4(o))&&(l=she(t)),aa(t)?(c=yg(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=$4(o))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function che(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function uhe(e){var t=che(e);return wfe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function dhe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function fhe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var QU={placement:"bottom",modifiers:[],strategy:"absolute"};function JU(){for(var e=arguments.length,t=new Array(e),n=0;n{o||l(ghe(i)||document.body)},[i,o]),ko(()=>{if(s&&!o)return ZB(n,s),()=>{ZB(n,null)}},[n,s,o]),o){if(R.isValidElement(r)){const d={ref:c};return R.cloneElement(r,d)}return C.jsx(R.Fragment,{children:r})}return C.jsx(R.Fragment,{children:s&&Xg.createPortal(r,s)})});function vhe(e){return St("MuiPopper",e)}kt("MuiPopper",["root"]);const yhe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],bhe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function xhe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function iF(e){return typeof e=="function"?e():e}function whe(e){return e.nodeType!==void 0}const _he=()=>Tt({root:["root"]},Qde(vhe)),She={},Ehe=R.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:s,disablePortal:l,modifiers:c,open:d,placement:f,popperOptions:h,popperRef:p,slotProps:g={},slots:v={},TransitionProps:y}=t,S=Le(t,yhe),_=R.useRef(null),b=mr(_,n),x=R.useRef(null),E=mr(x,p),A=R.useRef(E);ko(()=>{A.current=E},[E]),R.useImperativeHandle(p,()=>x.current,[]);const I=xhe(f,s),[k,O]=R.useState(I),[L,N]=R.useState(iF(i));R.useEffect(()=>{x.current&&x.current.forceUpdate()}),R.useEffect(()=>{i&&N(iF(i))},[i]),ko(()=>{if(!L||!d)return;const F=G=>{O(G.placement)};let j=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:G})=>{F(G)}}];c!=null&&(j=j.concat(c)),h&&h.modifiers!=null&&(j=j.concat(h.modifiers));const V=mhe(L,_.current,$({placement:I},h,{modifiers:j}));return A.current(V),()=>{V.destroy(),A.current(null)}},[L,l,c,d,h,I]);const H={placement:k};y!==null&&(H.TransitionProps=y);const W=_he(),z=(r=v.root)!=null?r:"div",D=Wr({elementType:z,externalSlotProps:g.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:W.root});return C.jsx(z,$({},D,{children:typeof o=="function"?o(H):o}))}),Che=R.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:s="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:d,open:f,placement:h="bottom",popperOptions:p=She,popperRef:g,style:v,transition:y=!1,slotProps:S={},slots:_={}}=t,b=Le(t,bhe),[x,E]=R.useState(!0),A=()=>{E(!1)},I=()=>{E(!0)};if(!c&&!f&&(!y||x))return null;let k;if(o)k=o;else if(r){const N=iF(r);k=N&&whe(N)?Ar(N).body:Ar(null).body}const O=!f&&c&&(!y||x)?"none":void 0,L=y?{in:f,onEnter:A,onExited:I}:void 0;return C.jsx(pK,{disablePortal:l,container:k,children:C.jsx(Ehe,$({anchorEl:r,direction:s,disablePortal:l,modifiers:d,ref:n,open:y?!x:f,placement:h,popperOptions:p,popperRef:g,slotProps:S,slots:_},b,{style:$({position:"fixed",top:0,left:0,display:O},v),TransitionProps:L,children:i}))})});function The(e){const t=Ar(e);return t.body===e?pu(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ox(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ZU(e){return parseInt(pu(e).getComputedStyle(e).paddingRight,10)||0}function khe(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 e8(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,s=>{const l=o.indexOf(s)===-1,c=!khe(s);l&&c&&ox(s,i)})}function WD(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function Ahe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(The(r)){const s=yq(Ar(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ZU(r)+s}px`;const l=Ar(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${ZU(c)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Ar(r).body;else{const s=r.parentElement,l=pu(r);o=(s==null?void 0:s.nodeName)==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:r}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:s,property:l})=>{o?s.style.setProperty(l,o):s.style.removeProperty(l)})}}function Ihe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Rhe{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&&ox(t.modalRef,!1);const i=Ihe(n);e8(n,t.mount,t.modalRef,i,!0);const o=WD(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=WD(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=Ahe(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=WD(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&ox(t.modalRef,n),e8(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&ox(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Phe(e){return typeof e=="function"?e():e}function Ohe(e){return e?e.props.hasOwnProperty("in"):!1}const Mhe=new Rhe;function Dhe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=Mhe,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:d,open:f,rootRef:h}=e,p=R.useRef({}),g=R.useRef(null),v=R.useRef(null),y=mr(v,h),[S,_]=R.useState(!f),b=Ohe(c);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const E=()=>Ar(g.current),A=()=>(p.current.modalRef=v.current,p.current.mount=g.current,p.current),I=()=>{i.mount(A(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},k=Zi(()=>{const j=Phe(t)||E().body;i.add(A(),j),v.current&&I()}),O=R.useCallback(()=>i.isTopModal(A()),[i]),L=Zi(j=>{g.current=j,j&&(f&&O()?I():v.current&&ox(v.current,x))}),N=R.useCallback(()=>{i.remove(A(),x)},[x,i]);R.useEffect(()=>()=>{N()},[N]),R.useEffect(()=>{f?k():(!b||!o)&&N()},[f,N,b,o,k]);const H=j=>V=>{var G;(G=j.onKeyDown)==null||G.call(j,V),!(V.key!=="Escape"||!O())&&(n||(V.stopPropagation(),d&&d(V,"escapeKeyDown")))},W=j=>V=>{var G;(G=j.onClick)==null||G.call(j,V),V.target===V.currentTarget&&d&&d(V,"backdropClick")};return{getRootProps:(j={})=>{const V=EE(e);delete V.onTransitionEnter,delete V.onTransitionExited;const G=$({},V,j);return $({role:"presentation"},G,{onKeyDown:H(G),ref:y})},getBackdropProps:(j={})=>{const V=j;return $({"aria-hidden":!0},V,{onClick:W(V),open:f})},getTransitionProps:()=>{const j=()=>{_(!1),s&&s()},V=()=>{_(!0),l&&l(),o&&N()};return{onEnter:t6(j,c==null?void 0:c.props.onEnter),onExited:t6(V,c==null?void 0:c.props.onExited)}},rootRef:y,portalRef:L,isTopModal:O,exited:S,hasTransition:b}}const Lhe=2;function mK(e,t){return e-t}function J0(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function t8(e,t){var n;const{index:r}=(n=e.reduce((i,o,s)=>{const l=Math.abs(t-o);return i===null||l({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}%`})}},zhe=e=>e;let Vw;function GD(){return Vw===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Vw=CSS.supports("touch-action","none"):Vw=!0),Vw}function jhe(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:s=!1,max:l=100,min:c=0,name:d,onChange:f,onChangeCommitted:h,orientation:p="horizontal",rootRef:g,scale:v=zhe,step:y=1,tabIndex:S,value:_}=e,b=R.useRef(),[x,E]=R.useState(-1),[A,I]=R.useState(-1),[k,O]=R.useState(!1),L=R.useRef(0),[N,H]=Ex({controlled:_,default:n??c,name:"Slider"}),W=f&&((_e,ze,Ye)=>{const $e=_e.nativeEvent||_e,Ne=new $e.constructor($e.type,$e);Object.defineProperty(Ne,"target",{writable:!0,value:{value:ze,name:d}}),f(Ne,ze,Ye)}),z=Array.isArray(N);let D=z?N.slice().sort(mK):[N];D=D.map(_e=>J0(_e,c,l));const F=s===!0&&y!==null?[...Array(Math.floor((l-c)/y)+1)].map((_e,ze)=>({value:c+y*ze})):s||[],j=F.map(_e=>_e.value),{isFocusVisibleRef:V,onBlur:G,onFocus:K,ref:Y}=y5(),[J,ie]=R.useState(-1),ce=R.useRef(),ue=mr(Y,ce),se=mr(g,ue),Q=_e=>ze=>{var Ye;const $e=Number(ze.currentTarget.getAttribute("data-index"));K(ze),V.current===!0&&ie($e),I($e),_e==null||(Ye=_e.onFocus)==null||Ye.call(_e,ze)},ae=_e=>ze=>{var Ye;G(ze),V.current===!1&&ie(-1),I(-1),_e==null||(Ye=_e.onBlur)==null||Ye.call(_e,ze)};ko(()=>{if(r&&ce.current.contains(document.activeElement)){var _e;(_e=document.activeElement)==null||_e.blur()}},[r]),r&&x!==-1&&E(-1),r&&J!==-1&&ie(-1);const le=_e=>ze=>{var Ye;(Ye=_e.onChange)==null||Ye.call(_e,ze);const $e=Number(ze.currentTarget.getAttribute("data-index")),Ne=D[$e],It=j.indexOf(Ne);let ct=ze.target.valueAsNumber;if(F&&y==null){const Ae=j[j.length-1];ct>Ae?ct=Ae:ct{const{current:Ye}=ce,{width:$e,height:Ne,bottom:It,left:ct}=Ye.getBoundingClientRect();let Ae;pe.indexOf("vertical")===0?Ae=(It-_e.y)/Ne:Ae=(_e.x-ct)/$e,pe.indexOf("-reverse")!==-1&&(Ae=1-Ae);let ot;if(ot=Nhe(Ae,c,l),y)ot=$he(ot,y,c);else{const Ie=t8(j,ot);ot=j[Ie]}ot=J0(ot,c,l);let $t=0;if(z){ze?$t=he.current:$t=t8(D,ot),i&&(ot=J0(ot,D[$t-1]||-1/0,D[$t+1]||1/0));const Ie=ot;ot=n8({values:D,newValue:ot,index:$t}),i&&ze||($t=ot.indexOf(Ie),he.current=$t)}return{newValue:ot,activeIndex:$t}},ye=Zi(_e=>{const ze=Hw(_e,b);if(!ze)return;if(L.current+=1,_e.type==="mousemove"&&_e.buttons===0){xe(_e);return}const{newValue:Ye,activeIndex:$e}=ve({finger:ze,move:!0});Ww({sliderRef:ce,activeIndex:$e,setActive:E}),H(Ye),!k&&L.current>Lhe&&O(!0),W&&!Gw(Ye,N)&&W(_e,Ye,$e)}),xe=Zi(_e=>{const ze=Hw(_e,b);if(O(!1),!ze)return;const{newValue:Ye}=ve({finger:ze,move:!0});E(-1),_e.type==="touchend"&&I(-1),h&&h(_e,Ye),b.current=void 0,be()}),me=Zi(_e=>{if(r)return;GD()||_e.preventDefault();const ze=_e.changedTouches[0];ze!=null&&(b.current=ze.identifier);const Ye=Hw(_e,b);if(Ye!==!1){const{newValue:Ne,activeIndex:It}=ve({finger:Ye});Ww({sliderRef:ce,activeIndex:It,setActive:E}),H(Ne),W&&!Gw(Ne,N)&&W(_e,Ne,It)}L.current=0;const $e=Ar(ce.current);$e.addEventListener("touchmove",ye),$e.addEventListener("touchend",xe)}),be=R.useCallback(()=>{const _e=Ar(ce.current);_e.removeEventListener("mousemove",ye),_e.removeEventListener("mouseup",xe),_e.removeEventListener("touchmove",ye),_e.removeEventListener("touchend",xe)},[xe,ye]);R.useEffect(()=>{const{current:_e}=ce;return _e.addEventListener("touchstart",me,{passive:GD()}),()=>{_e.removeEventListener("touchstart",me,{passive:GD()}),be()}},[be,me]),R.useEffect(()=>{r&&be()},[r,be]);const Qe=_e=>ze=>{var Ye;if((Ye=_e.onMouseDown)==null||Ye.call(_e,ze),r||ze.defaultPrevented||ze.button!==0)return;ze.preventDefault();const $e=Hw(ze,b);if($e!==!1){const{newValue:It,activeIndex:ct}=ve({finger:$e});Ww({sliderRef:ce,activeIndex:ct,setActive:E}),H(It),W&&!Gw(It,N)&&W(ze,It,ct)}L.current=0;const Ne=Ar(ce.current);Ne.addEventListener("mousemove",ye),Ne.addEventListener("mouseup",xe)},qe=TE(z?D[0]:c,c,l),at=TE(D[D.length-1],c,l)-qe,Lt=(_e={})=>{const ze={onMouseDown:Qe(_e||{})},Ye=$({},_e,ze);return $({ref:se},Ye)},Re=_e=>ze=>{var Ye;(Ye=_e.onMouseOver)==null||Ye.call(_e,ze);const $e=Number(ze.currentTarget.getAttribute("data-index"));I($e)},Fe=_e=>ze=>{var Ye;(Ye=_e.onMouseLeave)==null||Ye.call(_e,ze),I(-1)};return{active:x,axis:pe,axisProps:Fhe,dragging:k,focusedThumbIndex:J,getHiddenInputProps:(_e={})=>{var ze;const Ye={onChange:le(_e||{}),onFocus:Q(_e||{}),onBlur:ae(_e||{})},$e=$({},_e,Ye);return $({tabIndex:S,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":v(l),"aria-valuemin":v(c),name:d,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(ze=e.step)!=null?ze:void 0,disabled:r},$e,{style:$({},boe,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Lt,getThumbProps:(_e={})=>{const ze={onMouseOver:Re(_e||{}),onMouseLeave:Fe(_e||{})};return $({},_e,ze)},marks:F,open:A,range:z,rootRef:se,trackLeap:at,trackOffset:qe,values:D,getThumbStyle:_e=>({pointerEvents:x!==-1&&x!==_e?"none":void 0})}}function Uhe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:o}=e,s=R.useRef();R.useEffect(()=>{if(!i)return;function _(b){b.defaultPrevented||(b.key==="Escape"||b.key==="Esc")&&(r==null||r(b,"escapeKeyDown"))}return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[i,r]);const l=Zi((_,b)=>{r==null||r(_,b)}),c=Zi(_=>{!r||_==null||(clearTimeout(s.current),s.current=setTimeout(()=>{l(null,"timeout")},_))});R.useEffect(()=>(i&&c(t),()=>{clearTimeout(s.current)}),[i,t,c]);const d=_=>{r==null||r(_,"clickaway")},f=()=>{clearTimeout(s.current)},h=R.useCallback(()=>{t!=null&&c(o??t*.5)},[t,o,c]),p=_=>b=>{const x=_.onBlur;x==null||x(b),h()},g=_=>b=>{const x=_.onFocus;x==null||x(b),f()},v=_=>b=>{const x=_.onMouseEnter;x==null||x(b),f()},y=_=>b=>{const x=_.onMouseLeave;x==null||x(b),h()};return R.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",h),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",f)}},[n,h,i]),{getRootProps:(_={})=>{const b=$({},EE(e),EE(_));return $({role:"presentation"},_,b,{onBlur:p(b),onFocus:g(b),onMouseEnter:v(b),onMouseLeave:y(b)})},onClickAway:d}}const Hhe=["onChange","maxRows","minRows","style","value"];function qw(e){return parseInt(e,10)||0}const Whe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function r8(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Ghe=R.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:s,value:l}=t,c=Le(t,Hhe),{current:d}=R.useRef(l!=null),f=R.useRef(null),h=mr(n,f),p=R.useRef(null),g=R.useRef(0),[v,y]=R.useState({outerHeightStyle:0}),S=R.useCallback(()=>{const E=f.current,I=pu(E).getComputedStyle(E);if(I.width==="0px")return{outerHeightStyle:0};const k=p.current;k.style.width=I.width,k.value=E.value||t.placeholder||"x",k.value.slice(-1)===` -`&&(k.value+=" ");const O=I.boxSizing,L=qw(I.paddingBottom)+qw(I.paddingTop),N=qw(I.borderBottomWidth)+qw(I.borderTopWidth),H=k.scrollHeight;k.value="x";const W=k.scrollHeight;let z=H;o&&(z=Math.max(Number(o)*W,z)),i&&(z=Math.min(Number(i)*W,z)),z=Math.max(z,W);const D=z+(O==="border-box"?L+N:0),F=Math.abs(z-H)<=1;return{outerHeightStyle:D,overflow:F}},[i,o,t.placeholder]),_=(E,A)=>{const{outerHeightStyle:I,overflow:k}=A;return g.current<20&&(I>0&&Math.abs((E.outerHeightStyle||0)-I)>1||E.overflow!==k)?(g.current+=1,{overflow:k,outerHeightStyle:I}):E},b=R.useCallback(()=>{const E=S();r8(E)||y(A=>_(A,E))},[S]);ko(()=>{const E=()=>{const H=S();r8(H)||Xg.flushSync(()=>{y(W=>_(W,H))})},A=()=>{g.current=0,E()};let I;const k=WC(A),O=f.current,L=pu(O);L.addEventListener("resize",k);let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(A),N.observe(O)),()=>{k.clear(),cancelAnimationFrame(I),L.removeEventListener("resize",k),N&&N.disconnect()}},[S]),ko(()=>{b()}),R.useEffect(()=>{g.current=0},[l]);const x=E=>{g.current=0,d||b(),r&&r(E)};return C.jsxs(R.Fragment,{children:[C.jsx("textarea",$({value:l,onChange:x,ref:h,rows:o,style:$({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},s)},c)),C.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:$({},Whe.shadow,s,{paddingTop:0,paddingBottom:0})})]})}),Vhe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],qhe=Ee(Che,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xhe=R.forwardRef(function(t,n){var r;const i=mT(),o=At({props:t,name:"MuiPopper"}),{anchorEl:s,component:l,components:c,componentsProps:d,container:f,disablePortal:h,keepMounted:p,modifiers:g,open:v,placement:y,popperOptions:S,popperRef:_,transition:b,slots:x,slotProps:E}=o,A=Le(o,Vhe),I=(r=x==null?void 0:x.root)!=null?r:c==null?void 0:c.Root,k=$({anchorEl:s,container:f,disablePortal:h,keepMounted:p,modifiers:g,open:v,placement:y,popperOptions:S,popperRef:_,transition:b},A);return C.jsx(qhe,$({as:l,direction:i==null?void 0:i.direction,slots:{root:I},slotProps:E??d},k,{ref:n}))}),gK=Xhe;function Yhe(e){return St("MuiListSubheader",e)}kt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Khe=["className","color","component","disableGutters","disableSticky","inset"],Qhe=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,s={root:["root",n!=="default"&&`color${Me(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return Tt(s,Yhe,t)},Jhe=Ee("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Me(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>$({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)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),vK=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:s="li",disableGutters:l=!1,disableSticky:c=!1,inset:d=!1}=r,f=Le(r,Khe),h=$({},r,{color:o,component:s,disableGutters:l,disableSticky:c,inset:d}),p=Qhe(h);return C.jsx(Jhe,$({as:s,className:je(p.root,i),ref:n,ownerState:h},f))});vK.muiSkipListHighlight=!0;const Zhe=vK;function Tp({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const epe=R.createContext(void 0),z4=epe;function Wd(){return R.useContext(z4)}function yK(e){return C.jsx(kae,$({},e,{defaultTheme:yT,themeId:rp}))}function i8(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function kE(e,t=!1){return e&&(i8(e.value)&&e.value!==""||t&&i8(e.defaultValue)&&e.defaultValue!=="")}function tpe(e){return e.startAdornment}function npe(e){return St("MuiInputBase",e)}const rpe=kt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),xg=rpe,ipe=["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"],qT=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Me(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},XT=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},ope=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:s,formControl:l,fullWidth:c,hiddenLabel:d,multiline:f,readOnly:h,size:p,startAdornment:g,type:v}=e,y={root:["root",`color${Me(n)}`,r&&"disabled",i&&"error",c&&"fullWidth",s&&"focused",l&&"formControl",p&&p!=="medium"&&`size${Me(p)}`,f&&"multiline",g&&"adornedStart",o&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",f&&"inputMultiline",p==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",g&&"inputAdornedStart",o&&"inputAdornedEnd",h&&"readOnly"]};return Tt(y,npe,t)},YT=Ee("div",{name:"MuiInputBase",slot:"Root",overridesResolver:qT})(({theme:e,ownerState:t})=>$({},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",[`&.${xg.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),KT=Ee("input",{name:"MuiInputBase",slot:"Input",overridesResolver:XT})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=$({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return $({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] + .${xg.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${xg.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),spe=C.jsx(yK,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ape=R.forwardRef(function(t,n){var r;const i=At({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:l,className:c,components:d={},componentsProps:f={},defaultValue:h,disabled:p,disableInjectingGlobalStyles:g,endAdornment:v,fullWidth:y=!1,id:S,inputComponent:_="input",inputProps:b={},inputRef:x,maxRows:E,minRows:A,multiline:I=!1,name:k,onBlur:O,onChange:L,onClick:N,onFocus:H,onKeyDown:W,onKeyUp:z,placeholder:D,readOnly:F,renderSuffix:j,rows:V,slotProps:G={},slots:K={},startAdornment:Y,type:J="text",value:ie}=i,ce=Le(i,ipe),ue=b.value!=null?b.value:ie,{current:se}=R.useRef(ue!=null),Q=R.useRef(),ae=R.useCallback($e=>{},[]),le=mr(Q,x,b.ref,ae),[he,pe]=R.useState(!1),ve=Wd(),ye=Tp({props:i,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ye.focused=ve?ve.focused:he,R.useEffect(()=>{!ve&&p&&he&&(pe(!1),O&&O())},[ve,p,he,O]);const xe=ve&&ve.onFilled,me=ve&&ve.onEmpty,be=R.useCallback($e=>{kE($e)?xe&&xe():me&&me()},[xe,me]);ko(()=>{se&&be({value:ue})},[ue,be,se]);const Qe=$e=>{if(ye.disabled){$e.stopPropagation();return}H&&H($e),b.onFocus&&b.onFocus($e),ve&&ve.onFocus?ve.onFocus($e):pe(!0)},qe=$e=>{O&&O($e),b.onBlur&&b.onBlur($e),ve&&ve.onBlur?ve.onBlur($e):pe(!1)},at=($e,...Ne)=>{if(!se){const It=$e.target||Q.current;if(It==null)throw new Error(kd(1));be({value:It.value})}b.onChange&&b.onChange($e,...Ne),L&&L($e,...Ne)};R.useEffect(()=>{be(Q.current)},[]);const Lt=$e=>{Q.current&&$e.currentTarget===$e.target&&Q.current.focus(),N&&N($e)};let Re=_,Fe=b;I&&Re==="input"&&(V?Fe=$({type:void 0,minRows:V,maxRows:V},Fe):Fe=$({type:void 0,maxRows:E,minRows:A},Fe),Re=Ghe);const it=$e=>{be($e.animationName==="mui-auto-fill-cancel"?Q.current:{value:"x"})};R.useEffect(()=>{ve&&ve.setAdornedStart(!!Y)},[ve,Y]);const pt=$({},i,{color:ye.color||"primary",disabled:ye.disabled,endAdornment:v,error:ye.error,focused:ye.focused,formControl:ve,fullWidth:y,hiddenLabel:ye.hiddenLabel,multiline:I,size:ye.size,startAdornment:Y,type:J}),mt=ope(pt),_e=K.root||d.Root||YT,ze=G.root||f.root||{},Ye=K.input||d.Input||KT;return Fe=$({},Fe,(r=G.input)!=null?r:f.input),C.jsxs(R.Fragment,{children:[!g&&spe,C.jsxs(_e,$({},ze,!$l(_e)&&{ownerState:$({},pt,ze.ownerState)},{ref:n,onClick:Lt},ce,{className:je(mt.root,ze.className,c,F&&"MuiInputBase-readOnly"),children:[Y,C.jsx(z4.Provider,{value:null,children:C.jsx(Ye,$({ownerState:pt,"aria-invalid":ye.error,"aria-describedby":o,autoComplete:s,autoFocus:l,defaultValue:h,disabled:ye.disabled,id:S,onAnimationStart:it,name:k,placeholder:D,readOnly:F,required:ye.required,rows:V,value:ue,onKeyDown:W,onKeyUp:z,type:J},Fe,!$l(Ye)&&{as:Re,ownerState:$({},pt,Fe.ownerState)},{ref:le,className:je(mt.input,Fe.className,F&&"MuiInputBase-readOnly"),onBlur:qe,onChange:at,onFocus:Qe}))}),v,j?j($({},ye,{startAdornment:Y})):null]}))]})}),QT=ape;function lpe(e){return St("MuiInput",e)}const cpe=$({},xg,kt("MuiInput",["root","underline","input"])),Z0=cpe;function upe(e){return St("MuiOutlinedInput",e)}const dpe=$({},xg,kt("MuiOutlinedInput",["root","notchedOutline","input"])),Lu=dpe;function fpe(e){return St("MuiFilledInput",e)}const hpe=$({},xg,kt("MuiFilledInput",["root","underline","input"])),ph=hpe,ppe=Bt(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),mpe=Bt(C.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function gpe(e){return St("MuiAvatar",e)}kt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const vpe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],ype=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Tt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},gpe,t)},bpe=Ee("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&$({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),xpe=Ee("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),wpe=Ee(mpe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function _pe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=R.useState(!1);return R.useEffect(()=>{if(!n&&!r)return;o(!1);let s=!0;const l=new Image;return l.onload=()=>{s&&o("loaded")},l.onerror=()=>{s&&o("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const Spe=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:s,component:l="div",imgProps:c,sizes:d,src:f,srcSet:h,variant:p="circular"}=r,g=Le(r,vpe);let v=null;const y=_pe($({},c,{src:f,srcSet:h})),S=f||h,_=S&&y!=="error",b=$({},r,{colorDefault:!_,component:l,variant:p}),x=ype(b);return _?v=C.jsx(xpe,$({alt:i,srcSet:h,src:f,sizes:d,ownerState:b,className:x.img},c)):o!=null?v=o:S&&i?v=i[0]:v=C.jsx(wpe,{ownerState:b,className:x.fallback}),C.jsx(bpe,$({as:l,ownerState:b,className:je(x.root,s),ref:n},g,{children:v}))}),Epe=Spe,Cpe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Tpe={entering:{opacity:1},entered:{opacity:1}},kpe=R.forwardRef(function(t,n){const r=Rn(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,easing:c,in:d,onEnter:f,onEntered:h,onEntering:p,onExit:g,onExited:v,onExiting:y,style:S,timeout:_=i,TransitionComponent:b=R4}=t,x=Le(t,Cpe),E=R.useRef(null),A=mr(E,l.ref,n),I=D=>F=>{if(D){const j=E.current;F===void 0?D(j):D(j,F)}},k=I(p),O=I((D,F)=>{rK(D);const j=mg({style:S,timeout:_,easing:c},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",j),D.style.transition=r.transitions.create("opacity",j),f&&f(D,F)}),L=I(h),N=I(y),H=I(D=>{const F=mg({style:S,timeout:_,easing:c},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",F),D.style.transition=r.transitions.create("opacity",F),g&&g(D)}),W=I(v),z=D=>{o&&o(E.current,D)};return C.jsx(b,$({appear:s,in:d,nodeRef:E,onEnter:O,onEntered:L,onEntering:k,onExit:H,onExited:W,onExiting:N,addEndListener:z,timeout:_},x,{children:(D,F)=>R.cloneElement(l,$({style:$({opacity:0,visibility:D==="exited"&&!d?"hidden":void 0},Tpe[D],S,l.props.style),ref:A},F))}))}),hp=kpe;function Ape(e){return St("MuiBackdrop",e)}kt("MuiBackdrop",["root","invisible"]);const Ipe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Rpe=e=>{const{classes:t,invisible:n}=e;return Tt({root:["root",n&&"invisible"]},Ape,t)},Ppe=Ee("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>$({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"})),Ope=R.forwardRef(function(t,n){var r,i,o;const s=At({props:t,name:"MuiBackdrop"}),{children:l,className:c,component:d="div",components:f={},componentsProps:h={},invisible:p=!1,open:g,slotProps:v={},slots:y={},TransitionComponent:S=hp,transitionDuration:_}=s,b=Le(s,Ipe),x=$({},s,{component:d,invisible:p}),E=Rpe(x),A=(r=v.root)!=null?r:h.root;return C.jsx(S,$({in:g,timeout:_},b,{children:C.jsx(Ppe,$({"aria-hidden":!0},A,{as:(i=(o=y.root)!=null?o:f.Root)!=null?i:d,className:je(E.root,c,A==null?void 0:A.className),ownerState:$({},x,A==null?void 0:A.ownerState),classes:E,ref:n,children:l}))}))}),JT=Ope,Mpe=N5(),Dpe=Pae({themeId:rp,defaultTheme:Mpe,defaultClassName:"MuiBox-root",generateClassName:xq.generate}),dt=Dpe;function Lpe(e){return St("MuiButton",e)}const Npe=kt("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"]),Xw=Npe,Bpe=R.createContext({}),$pe=Bpe,Fpe=R.createContext(void 0),zpe=Fpe,jpe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Upe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:s}=e,l={root:["root",o,`${o}${Me(t)}`,`size${Me(i)}`,`${o}Size${Me(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Me(i)}`],endIcon:["endIcon",`iconSize${Me(i)}`]},c=Tt(l,Lpe,s);return $({},s,c)},bK=e=>$({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),Hpe=Ee(ku,{shouldForwardProp:e=>ga(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Me(n.color)}`],t[`size${Me(n.size)}`],t[`${n.variant}Size${Me(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return $({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":$({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:_n(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_n(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_n(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Xw.focusVisible}`]:$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Xw.disabled}`]:$({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${_n(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Xw.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Xw.disabled}`]:{boxShadow:"none"}}),Wpe=Ee("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Me(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},bK(e))),Gpe=Ee("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Me(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},bK(e))),Vpe=R.forwardRef(function(t,n){const r=R.useContext($pe),i=R.useContext(zpe),o=b5(r,t),s=At({props:o,name:"MuiButton"}),{children:l,color:c="primary",component:d="button",className:f,disabled:h=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:v,focusVisibleClassName:y,fullWidth:S=!1,size:_="medium",startIcon:b,type:x,variant:E="text"}=s,A=Le(s,jpe),I=$({},s,{color:c,component:d,disabled:h,disableElevation:p,disableFocusRipple:g,fullWidth:S,size:_,type:x,variant:E}),k=Upe(I),O=b&&C.jsx(Wpe,{className:k.startIcon,ownerState:I,children:b}),L=v&&C.jsx(Gpe,{className:k.endIcon,ownerState:I,children:v}),N=i||"";return C.jsxs(Hpe,$({ownerState:I,className:je(r.className,k.root,f,N),component:d,disabled:h,focusRipple:!g,focusVisibleClassName:je(k.focusVisible,y),ref:n,type:x},A,{classes:k,children:[O,l,L]}))}),j4=Vpe;function qpe(e){return St("MuiCard",e)}kt("MuiCard",["root"]);const Xpe=["className","raised"],Ype=e=>{const{classes:t}=e;return Tt({root:["root"]},qpe,t)},Kpe=Ee(Yg,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Qpe=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,s=Le(r,Xpe),l=$({},r,{raised:o}),c=Ype(l);return C.jsx(Kpe,$({className:je(c.root,i),elevation:o?8:void 0,ref:n,ownerState:l},s))}),Jpe=Qpe;function Zpe(e){return St("PrivateSwitchBase",e)}kt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const eme=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],tme=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${Me(i)}`],input:["input"]};return Tt(o,Zpe,t)},nme=Ee(ku)(({ownerState:e})=>$({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),rme=Ee("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ime=R.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:s,defaultChecked:l,disabled:c,disableFocusRipple:d=!1,edge:f=!1,icon:h,id:p,inputProps:g,inputRef:v,name:y,onBlur:S,onChange:_,onFocus:b,readOnly:x,required:E=!1,tabIndex:A,type:I,value:k}=t,O=Le(t,eme),[L,N]=Ex({controlled:i,default:!!l,name:"SwitchBase",state:"checked"}),H=Wd(),W=K=>{b&&b(K),H&&H.onFocus&&H.onFocus(K)},z=K=>{S&&S(K),H&&H.onBlur&&H.onBlur(K)},D=K=>{if(K.nativeEvent.defaultPrevented)return;const Y=K.target.checked;N(Y),_&&_(K,Y)};let F=c;H&&typeof F>"u"&&(F=H.disabled);const j=I==="checkbox"||I==="radio",V=$({},t,{checked:L,disabled:F,disableFocusRipple:d,edge:f}),G=tme(V);return C.jsxs(nme,$({component:"span",className:je(G.root,s),centerRipple:!0,focusRipple:!d,disabled:F,tabIndex:null,role:void 0,onFocus:W,onBlur:z,ownerState:V,ref:n},O,{children:[C.jsx(rme,$({autoFocus:r,checked:i,defaultChecked:l,className:G.input,disabled:F,id:j?p:void 0,name:y,onChange:D,readOnly:x,ref:v,required:E,ownerState:V,tabIndex:A,type:I},I==="checkbox"&&k===void 0?{}:{value:k},g)),L?o:h]}))}),xK=ime,ome=Bt(C.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"),sme=Bt(C.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"),ame=Bt(C.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 lme(e){return St("MuiCheckbox",e)}const cme=kt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),VD=cme,ume=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],dme=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${Me(r)}`,`size${Me(i)}`]},s=Tt(o,lme,t);return $({},t,s)},fme=Ee(xK,{shouldForwardProp:e=>ga(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${Me(n.color)}`]]}})(({theme:e,ownerState:t})=>$({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.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_n(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${VD.checked}, &.${VD.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${VD.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),hme=C.jsx(sme,{}),pme=C.jsx(ome,{}),mme=C.jsx(ame,{}),gme=R.forwardRef(function(t,n){var r,i;const o=At({props:t,name:"MuiCheckbox"}),{checkedIcon:s=hme,color:l="primary",icon:c=pme,indeterminate:d=!1,indeterminateIcon:f=mme,inputProps:h,size:p="medium",className:g}=o,v=Le(o,ume),y=d?f:c,S=d?f:s,_=$({},o,{color:l,indeterminate:d,size:p}),b=dme(_);return C.jsx(fme,$({type:"checkbox",inputProps:$({"data-indeterminate":d},h),icon:R.cloneElement(y,{fontSize:(r=y.props.fontSize)!=null?r:p}),checkedIcon:R.cloneElement(S,{fontSize:(i=S.props.fontSize)!=null?i:p}),ownerState:_,ref:n,className:je(b.root,g)},v,{classes:b}))}),vme=gme;function yme(e){return St("MuiCircularProgress",e)}kt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const bme=["className","color","disableShrink","size","style","thickness","value","variant"];let ZT=e=>e,o8,s8,a8,l8;const Nu=44,xme=Fd(o8||(o8=ZT` +`),Ys.rippleVisible,yde,iF,({theme:e})=>e.transitions.easing.easeInOut,Ys.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Ys.child,Ys.childLeaving,bde,iF,({theme:e})=>e.transitions.easing.easeInOut,Ys.childPulsate,xde,({theme:e})=>e.transitions.easing.easeInOut),Sde=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,l=Le(r,gde),[c,d]=I.useState([]),f=I.useRef(0),h=I.useRef(null);I.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const p=I.useRef(!1),g=I.useRef(0),v=I.useRef(null),y=I.useRef(null);I.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]);const S=I.useCallback(E=>{const{pulsate:A,rippleX:R,rippleY:k,rippleSize:O,cb:L}=E;d(N=>[...N,C.jsx(_de,{classes:{ripple:je(o.ripple,Ys.ripple),rippleVisible:je(o.rippleVisible,Ys.rippleVisible),ripplePulsate:je(o.ripplePulsate,Ys.ripplePulsate),child:je(o.child,Ys.child),childLeaving:je(o.childLeaving,Ys.childLeaving),childPulsate:je(o.childPulsate,Ys.childPulsate)},timeout:iF,pulsate:A,rippleX:R,rippleY:k,rippleSize:O},f.current)]),f.current+=1,h.current=L},[o]),_=I.useCallback((E={},A={},R=()=>{})=>{const{pulsate:k=!1,center:O=i||A.pulsate,fakeElement:L=!1}=A;if((E==null?void 0:E.type)==="mousedown"&&p.current){p.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(p.current=!0);const N=L?null:y.current,H=N?N.getBoundingClientRect():{width:0,height:0,left:0,top:0};let W,z,D;if(O||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)W=Math.round(H.width/2),z=Math.round(H.height/2);else{const{clientX:F,clientY:j}=E.touches&&E.touches.length>0?E.touches[0]:E;W=Math.round(F-H.left),z=Math.round(j-H.top)}if(O)D=Math.sqrt((2*H.width**2+H.height**2)/3),D%2===0&&(D+=1);else{const F=Math.max(Math.abs((N?N.clientWidth:0)-W),W)*2+2,j=Math.max(Math.abs((N?N.clientHeight:0)-z),z)*2+2;D=Math.sqrt(F**2+j**2)}E!=null&&E.touches?v.current===null&&(v.current=()=>{S({pulsate:k,rippleX:W,rippleY:z,rippleSize:D,cb:R})},g.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},vde)):S({pulsate:k,rippleX:W,rippleY:z,rippleSize:D,cb:R})},[i,S]),b=I.useCallback(()=>{_({},{pulsate:!0})},[_]),x=I.useCallback((E,A)=>{if(clearTimeout(g.current),(E==null?void 0:E.type)==="touchend"&&v.current){v.current(),v.current=null,g.current=setTimeout(()=>{x(E,A)});return}v.current=null,d(R=>R.length>0?R.slice(1):R),h.current=A},[]);return I.useImperativeHandle(n,()=>({pulsate:b,start:_,stop:x}),[b,_,x]),C.jsx(wde,$({className:je(Ys.root,o.root,s),ref:y},l,{children:C.jsx(nde,{component:null,exit:!0,children:c})}))}),Ede=Sde;function Cde(e){return St("MuiButtonBase",e)}const Tde=kt("MuiButtonBase",["root","disabled","focusVisible"]),kde=Tde,Ade=["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"],Rde=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=Tt({root:["root",t&&"disabled",n&&"focusVisible"]},Cde,i);return n&&r&&(s.root+=` ${r}`),s},Ide=Ee("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${kde.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Pde=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:l,component:c="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:h=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:v,onClick:y,onContextMenu:S,onDragLeave:_,onFocus:b,onFocusVisible:x,onKeyDown:E,onKeyUp:A,onMouseDown:R,onMouseLeave:k,onMouseUp:O,onTouchEnd:L,onTouchMove:N,onTouchStart:H,tabIndex:W=0,TouchRippleProps:z,touchRippleRef:D,type:F}=r,j=Le(r,Ade),V=I.useRef(null),G=I.useRef(null),K=mr(G,D),{isFocusVisibleRef:Y,onFocus:J,onBlur:ie,ref:ce}=x5(),[ue,se]=I.useState(!1);d&&ue&&se(!1),I.useImperativeHandle(i,()=>({focusVisible:()=>{se(!0),V.current.focus()}}),[]);const[Q,ae]=I.useState(!1);I.useEffect(()=>{ae(!0)},[]);const le=Q&&!f&&!d;I.useEffect(()=>{ue&&p&&!f&&Q&&G.current.pulsate()},[f,p,ue,Q]);function he(Ne,Rt,ut=h){return Zi(Ae=>(Rt&&Rt(Ae),!ut&&G.current&&G.current[Ne](Ae),!0))}const pe=he("start",R),ve=he("stop",S),ye=he("stop",_),xe=he("stop",O),me=he("stop",Ne=>{ue&&Ne.preventDefault(),k&&k(Ne)}),be=he("start",H),Qe=he("stop",L),qe=he("stop",N),at=he("stop",Ne=>{ie(Ne),Y.current===!1&&se(!1),v&&v(Ne)},!1),Nt=Zi(Ne=>{V.current||(V.current=Ne.currentTarget),J(Ne),Y.current===!0&&(se(!0),x&&x(Ne)),b&&b(Ne)}),Ie=()=>{const Ne=V.current;return c&&c!=="button"&&!(Ne.tagName==="A"&&Ne.href)},Fe=I.useRef(!1),it=Zi(Ne=>{p&&!Fe.current&&ue&&G.current&&Ne.key===" "&&(Fe.current=!0,G.current.stop(Ne,()=>{G.current.start(Ne)})),Ne.target===Ne.currentTarget&&Ie()&&Ne.key===" "&&Ne.preventDefault(),E&&E(Ne),Ne.target===Ne.currentTarget&&Ie()&&Ne.key==="Enter"&&!d&&(Ne.preventDefault(),y&&y(Ne))}),pt=Zi(Ne=>{p&&Ne.key===" "&&G.current&&ue&&!Ne.defaultPrevented&&(Fe.current=!1,G.current.stop(Ne,()=>{G.current.pulsate(Ne)})),A&&A(Ne),y&&Ne.target===Ne.currentTarget&&Ie()&&Ne.key===" "&&!Ne.defaultPrevented&&y(Ne)});let mt=c;mt==="button"&&(j.href||j.to)&&(mt=g);const _e={};mt==="button"?(_e.type=F===void 0?"button":F,_e.disabled=d):(!j.href&&!j.to&&(_e.role="button"),d&&(_e["aria-disabled"]=d));const ze=mr(n,ce,V),Ye=$({},r,{centerRipple:o,component:c,disabled:d,disableRipple:f,disableTouchRipple:h,focusRipple:p,tabIndex:W,focusVisible:ue}),$e=Rde(Ye);return C.jsxs(Ide,$({as:mt,className:je($e.root,l),ownerState:Ye,onBlur:at,onClick:y,onContextMenu:ve,onFocus:Nt,onKeyDown:it,onKeyUp:pt,onMouseDown:pe,onMouseLeave:me,onMouseUp:xe,onDragLeave:ye,onTouchEnd:Qe,onTouchMove:qe,onTouchStart:be,ref:ze,tabIndex:d?-1:W,type:F},_e,j,{children:[s,le?C.jsx(Ede,$({ref:K,center:o},z)):null]}))}),Ru=Pde;function Ode(e){return St("MuiIconButton",e)}const Mde=kt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Dde=Mde,Lde=["edge","children","className","color","disabled","disableFocusRipple","size"],Nde=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Me(r)}`,i&&`edge${Me(i)}`,`size${Me(o)}`]};return Tt(s,Ode,t)},Bde=Ee(Ru,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Me(n.color)}`],n.edge&&t[`edge${Me(n.edge)}`],t[`size${Me(n.size)}`]]}})(({theme:e,ownerState:t})=>$({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})`:_n(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 $({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&$({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":$({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_n(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)},{[`&.${Dde.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),$de=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:s,color:l="default",disabled:c=!1,disableFocusRipple:d=!1,size:f="medium"}=r,h=Le(r,Lde),p=$({},r,{edge:i,color:l,disabled:c,disableFocusRipple:d,size:f}),g=Nde(p);return C.jsx(Bde,$({className:je(g.root,s),centerRipple:!0,focusRipple:!d,disabled:c,ref:n,ownerState:p},h,{children:o}))}),fp=$de;function Fde(e){return St("MuiTypography",e)}kt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const zde=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],jde=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,l={root:["root",o,e.align!=="inherit"&&`align${Me(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Tt(l,Fde,s)},Ude=Ee("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Me(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>$({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.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})),GU={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Hde={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Wde=e=>Hde[e]||e,Gde=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiTypography"}),i=Wde(r.color),o=N5($({},r,{color:i})),{align:s="inherit",className:l,component:c,gutterBottom:d=!1,noWrap:f=!1,paragraph:h=!1,variant:p="body1",variantMapping:g=GU}=o,v=Le(o,zde),y=$({},o,{align:s,color:i,className:l,component:c,gutterBottom:d,noWrap:f,paragraph:h,variant:p,variantMapping:g}),S=c||(h?"p":g[p]||GU[p])||"span",_=jde(y);return C.jsx(Ude,$({as:S,ref:n,ownerState:y,className:je(_.root,l)},v))}),Lt=Gde;function Vde(e){return St("MuiAppBar",e)}kt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const qde=["className","color","enableColorOnDark","position"],Xde=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${Me(t)}`,`position${Me(n)}`]};return Tt(i,Vde,r)},Uw=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Yde=Ee(Kg,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Me(n.position)}`],t[`color${Me(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return $({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&$({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&$({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&$({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Uw(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Uw(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Uw(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Uw(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Kde=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:s=!1,position:l="fixed"}=r,c=Le(r,qde),d=$({},r,{color:o,position:l,enableColorOnDark:s}),f=Xde(d);return C.jsx(Yde,$({square:!0,component:"header",ownerState:d,elevation:4,className:je(f.root,i,l==="fixed"&&"mui-fixed"),ref:n},c))}),Qde=Kde;function zl(e){return typeof e=="string"}function Mb(e,t,n){return e===void 0||zl(e)?t:$({},t,{ownerState:$({},t.ownerState,n)})}function Jde(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const Zde={disableDefaultClasses:!1},efe=I.createContext(Zde);function tfe(e){const{disableDefaultClasses:t}=I.useContext(efe);return n=>t?"":e(n)}function CE(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 nfe(e,t,n){return typeof e=="function"?e(t,n):e}function VU(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function rfe(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const g=je(i==null?void 0:i.className,r==null?void 0:r.className,o,n==null?void 0:n.className),v=$({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),y=$({},n,i,r);return g.length>0&&(y.className=g),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:void 0}}const s=CE($({},i,r)),l=VU(r),c=VU(i),d=t(s),f=je(d==null?void 0:d.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),h=$({},d==null?void 0:d.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=$({},d,n,c,l);return f.length>0&&(p.className=f),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:d.ref}}const ife=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Wr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=Le(e,ife),l=o?{}:nfe(r,i),{props:c,internalRef:d}=rfe($({},s,{externalSlotProps:l})),f=mr(d,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Mb(n,$({},c,{ref:f}),i)}function qU(e){return e.substring(2).toLowerCase()}function ofe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const f=mr(t.ref,l),h=Zi(v=>{const y=d.current;d.current=!1;const S=Ar(l.current);if(!c.current||!l.current||"clientX"in v&&ofe(v,S))return;if(s.current){s.current=!1;return}let _;v.composedPath?_=v.composedPath().indexOf(l.current)>-1:_=!S.documentElement.contains(v.target)||l.current.contains(v.target),!_&&(n||!y)&&i(v)}),p=v=>y=>{d.current=!0;const S=t.props[v];S&&S(y)},g={ref:f};return o!==!1&&(g[o]=p(o)),I.useEffect(()=>{if(o!==!1){const v=qU(o),y=Ar(l.current),S=()=>{s.current=!0};return y.addEventListener(v,h),y.addEventListener("touchmove",S),()=>{y.removeEventListener(v,h),y.removeEventListener("touchmove",S)}}},[h,o]),r!==!1&&(g[r]=p(r)),I.useEffect(()=>{if(r!==!1){const v=qU(r),y=Ar(l.current);return y.addEventListener(v,h),()=>{y.removeEventListener(v,h)}}},[h,r]),C.jsx(I.Fragment,{children:I.cloneElement(t,g)})}const afe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function lfe(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 cfe(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 ufe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||cfe(e))}function dfe(e){const t=[],n=[];return Array.from(e.querySelectorAll(afe)).forEach((r,i)=>{const o=lfe(r);o===-1||!ufe(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function ffe(){return!0}function hfe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=dfe,isEnabled:s=ffe,open:l}=e,c=I.useRef(!1),d=I.useRef(null),f=I.useRef(null),h=I.useRef(null),p=I.useRef(null),g=I.useRef(!1),v=I.useRef(null),y=mr(t.ref,v),S=I.useRef(null);I.useEffect(()=>{!l||!v.current||(g.current=!n)},[n,l]),I.useEffect(()=>{if(!l||!v.current)return;const x=Ar(v.current);return v.current.contains(x.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),g.current&&v.current.focus()),()=>{i||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[l]),I.useEffect(()=>{if(!l||!v.current)return;const x=Ar(v.current),E=k=>{S.current=k,!(r||!s()||k.key!=="Tab")&&x.activeElement===v.current&&k.shiftKey&&(c.current=!0,f.current&&f.current.focus())},A=()=>{const k=v.current;if(k===null)return;if(!x.hasFocus()||!s()||c.current){c.current=!1;return}if(k.contains(x.activeElement)||r&&x.activeElement!==d.current&&x.activeElement!==f.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let O=[];if((x.activeElement===d.current||x.activeElement===f.current)&&(O=o(v.current)),O.length>0){var L,N;const H=!!((L=S.current)!=null&&L.shiftKey&&((N=S.current)==null?void 0:N.key)==="Tab"),W=O[0],z=O[O.length-1];typeof W!="string"&&typeof z!="string"&&(H?z.focus():W.focus())}else k.focus()};x.addEventListener("focusin",A),x.addEventListener("keydown",E,!0);const R=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&A()},50);return()=>{clearInterval(R),x.removeEventListener("focusin",A),x.removeEventListener("keydown",E,!0)}},[n,r,i,s,l,o]);const _=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0,p.current=x.target;const E=t.props.onFocus;E&&E(x)},b=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0};return C.jsxs(I.Fragment,{children:[C.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:d,"data-testid":"sentinelStart"}),I.cloneElement(t,{ref:y,onFocus:_}),C.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:f,"data-testid":"sentinelEnd"})]})}var Wo="top",ma="bottom",ga="right",Go="left",L4="auto",H1=[Wo,ma,ga,Go],yg="start",Xx="end",pfe="clippingParents",uK="viewport",eb="popper",mfe="reference",XU=H1.reduce(function(e,t){return e.concat([t+"-"+yg,t+"-"+Xx])},[]),dK=[].concat(H1,[L4]).reduce(function(e,t){return e.concat([t,t+"-"+yg,t+"-"+Xx])},[]),gfe="beforeRead",vfe="read",yfe="afterRead",bfe="beforeMain",xfe="main",wfe="afterMain",_fe="beforeWrite",Sfe="write",Efe="afterWrite",Cfe=[gfe,vfe,yfe,bfe,xfe,wfe,_fe,Sfe,Efe];function ql(e){return e?(e.nodeName||"").toLowerCase():null}function Ns(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function hp(e){var t=Ns(e).Element;return e instanceof t||e instanceof Element}function la(e){var t=Ns(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function N4(e){if(typeof ShadowRoot>"u")return!1;var t=Ns(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Tfe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!la(o)||!ql(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var l=i[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function kfe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=s.reduce(function(c,d){return c[d]="",c},{});!la(i)||!ql(i)||(Object.assign(i.style,l),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const Afe={name:"applyStyles",enabled:!0,phase:"write",fn:Tfe,effect:kfe,requires:["computeStyles"]};function jl(e){return e.split("-")[0]}var Kh=Math.max,TE=Math.min,bg=Math.round;function oF(){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 fK(){return!/^((?!chrome|android).)*safari/i.test(oF())}function xg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&la(e)&&(i=e.offsetWidth>0&&bg(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&bg(r.height)/e.offsetHeight||1);var s=hp(e)?Ns(e):window,l=s.visualViewport,c=!fK()&&n,d=(r.left+(c&&l?l.offsetLeft:0))/i,f=(r.top+(c&&l?l.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:d+h,bottom:f+p,left:d,x:d,y:f}}function B4(e){var t=xg(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function hK(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&N4(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function wu(e){return Ns(e).getComputedStyle(e)}function Rfe(e){return["table","td","th"].indexOf(ql(e))>=0}function Gd(e){return((hp(e)?e.ownerDocument:e.document)||window.document).documentElement}function XT(e){return ql(e)==="html"?e:e.assignedSlot||e.parentNode||(N4(e)?e.host:null)||Gd(e)}function YU(e){return!la(e)||wu(e).position==="fixed"?null:e.offsetParent}function Ife(e){var t=/firefox/i.test(oF()),n=/Trident/i.test(oF());if(n&&la(e)){var r=wu(e);if(r.position==="fixed")return null}var i=XT(e);for(N4(i)&&(i=i.host);la(i)&&["html","body"].indexOf(ql(i))<0;){var o=wu(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function W1(e){for(var t=Ns(e),n=YU(e);n&&Rfe(n)&&wu(n).position==="static";)n=YU(n);return n&&(ql(n)==="html"||ql(n)==="body"&&wu(n).position==="static")?t:n||Ife(e)||t}function $4(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sx(e,t,n){return Kh(e,TE(t,n))}function Pfe(e,t,n){var r=sx(e,t,n);return r>n?n:r}function pK(){return{top:0,right:0,bottom:0,left:0}}function mK(e){return Object.assign({},pK(),e)}function gK(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ofe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,mK(typeof t!="number"?t:gK(t,H1))};function Mfe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,l=jl(n.placement),c=$4(l),d=[Go,ga].indexOf(l)>=0,f=d?"height":"width";if(!(!o||!s)){var h=Ofe(i.padding,n),p=B4(o),g=c==="y"?Wo:Go,v=c==="y"?ma:ga,y=n.rects.reference[f]+n.rects.reference[c]-s[c]-n.rects.popper[f],S=s[c]-n.rects.reference[c],_=W1(o),b=_?c==="y"?_.clientHeight||0:_.clientWidth||0:0,x=y/2-S/2,E=h[g],A=b-p[f]-h[v],R=b/2-p[f]/2+x,k=sx(E,R,A),O=c;n.modifiersData[r]=(t={},t[O]=k,t.centerOffset=k-R,t)}}function Dfe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||hK(t.elements.popper,i)&&(t.elements.arrow=i))}const Lfe={name:"arrow",enabled:!0,phase:"main",fn:Mfe,effect:Dfe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wg(e){return e.split("-")[1]}var Nfe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bfe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:bg(n*i)/i||0,y:bg(r*i)/i||0}}function KU(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=s.x,g=p===void 0?0:p,v=s.y,y=v===void 0?0:v,S=typeof f=="function"?f({x:g,y}):{x:g,y};g=S.x,y=S.y;var _=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),x=Go,E=Wo,A=window;if(d){var R=W1(n),k="clientHeight",O="clientWidth";if(R===Ns(n)&&(R=Gd(n),wu(R).position!=="static"&&l==="absolute"&&(k="scrollHeight",O="scrollWidth")),R=R,i===Wo||(i===Go||i===ga)&&o===Xx){E=ma;var L=h&&R===A&&A.visualViewport?A.visualViewport.height:R[k];y-=L-r.height,y*=c?1:-1}if(i===Go||(i===Wo||i===ma)&&o===Xx){x=ga;var N=h&&R===A&&A.visualViewport?A.visualViewport.width:R[O];g-=N-r.width,g*=c?1:-1}}var H=Object.assign({position:l},d&&Nfe),W=f===!0?Bfe({x:g,y},Ns(n)):{x:g,y};if(g=W.x,y=W.y,c){var z;return Object.assign({},H,(z={},z[E]=b?"0":"",z[x]=_?"0":"",z.transform=(A.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",z))}return Object.assign({},H,(t={},t[E]=b?y+"px":"",t[x]=_?g+"px":"",t.transform="",t))}function $fe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:jl(t.placement),variation:wg(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,KU(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,KU(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Ffe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$fe,data:{}};var Hw={passive:!0};function zfe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,l=s===void 0?!0:s,c=Ns(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(f){f.addEventListener("scroll",n.update,Hw)}),l&&c.addEventListener("resize",n.update,Hw),function(){o&&d.forEach(function(f){f.removeEventListener("scroll",n.update,Hw)}),l&&c.removeEventListener("resize",n.update,Hw)}}const jfe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zfe,data:{}};var Ufe={left:"right",right:"left",bottom:"top",top:"bottom"};function ES(e){return e.replace(/left|right|bottom|top/g,function(t){return Ufe[t]})}var Hfe={start:"end",end:"start"};function QU(e){return e.replace(/start|end/g,function(t){return Hfe[t]})}function F4(e){var t=Ns(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function z4(e){return xg(Gd(e)).left+F4(e).scrollLeft}function Wfe(e,t){var n=Ns(e),r=Gd(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,l=0,c=0;if(i){o=i.width,s=i.height;var d=fK();(d||!d&&t==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:l+z4(e),y:c}}function Gfe(e){var t,n=Gd(e),r=F4(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Kh(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Kh(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+z4(e),c=-r.scrollTop;return wu(i||n).direction==="rtl"&&(l+=Kh(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:l,y:c}}function j4(e){var t=wu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function vK(e){return["html","body","#document"].indexOf(ql(e))>=0?e.ownerDocument.body:la(e)&&j4(e)?e:vK(XT(e))}function ax(e,t){var n;t===void 0&&(t=[]);var r=vK(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Ns(r),s=i?[o].concat(o.visualViewport||[],j4(r)?r:[]):r,l=t.concat(s);return i?l:l.concat(ax(XT(s)))}function sF(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Vfe(e,t){var n=xg(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function JU(e,t,n){return t===uK?sF(Wfe(e,n)):hp(t)?Vfe(t,n):sF(Gfe(Gd(e)))}function qfe(e){var t=ax(XT(e)),n=["absolute","fixed"].indexOf(wu(e).position)>=0,r=n&&la(e)?W1(e):e;return hp(r)?t.filter(function(i){return hp(i)&&hK(i,r)&&ql(i)!=="body"}):[]}function Xfe(e,t,n,r){var i=t==="clippingParents"?qfe(e):[].concat(t),o=[].concat(i,[n]),s=o[0],l=o.reduce(function(c,d){var f=JU(e,d,r);return c.top=Kh(f.top,c.top),c.right=TE(f.right,c.right),c.bottom=TE(f.bottom,c.bottom),c.left=Kh(f.left,c.left),c},JU(e,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function yK(e){var t=e.reference,n=e.element,r=e.placement,i=r?jl(r):null,o=r?wg(r):null,s=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(i){case Wo:c={x:s,y:t.y-n.height};break;case ma:c={x:s,y:t.y+t.height};break;case ga:c={x:t.x+t.width,y:l};break;case Go:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=i?$4(i):null;if(d!=null){var f=d==="y"?"height":"width";switch(o){case yg:c[d]=c[d]-(t[f]/2-n[f]/2);break;case Xx:c[d]=c[d]+(t[f]/2-n[f]/2);break}}return c}function Yx(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,l=n.boundary,c=l===void 0?pfe:l,d=n.rootBoundary,f=d===void 0?uK:d,h=n.elementContext,p=h===void 0?eb:h,g=n.altBoundary,v=g===void 0?!1:g,y=n.padding,S=y===void 0?0:y,_=mK(typeof S!="number"?S:gK(S,H1)),b=p===eb?mfe:eb,x=e.rects.popper,E=e.elements[v?b:p],A=Xfe(hp(E)?E:E.contextElement||Gd(e.elements.popper),c,f,s),R=xg(e.elements.reference),k=yK({reference:R,element:x,strategy:"absolute",placement:i}),O=sF(Object.assign({},x,k)),L=p===eb?O:R,N={top:A.top-L.top+_.top,bottom:L.bottom-A.bottom+_.bottom,left:A.left-L.left+_.left,right:L.right-A.right+_.right},H=e.modifiersData.offset;if(p===eb&&H){var W=H[i];Object.keys(N).forEach(function(z){var D=[ga,ma].indexOf(z)>=0?1:-1,F=[Wo,ma].indexOf(z)>=0?"y":"x";N[z]+=W[F]*D})}return N}function Yfe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?dK:c,f=wg(r),h=f?l?XU:XU.filter(function(v){return wg(v)===f}):H1,p=h.filter(function(v){return d.indexOf(v)>=0});p.length===0&&(p=h);var g=p.reduce(function(v,y){return v[y]=Yx(e,{placement:y,boundary:i,rootBoundary:o,padding:s})[jl(y)],v},{});return Object.keys(g).sort(function(v,y){return g[v]-g[y]})}function Kfe(e){if(jl(e)===L4)return[];var t=ES(e);return[QU(e),t,QU(t)]}function Qfe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!0:s,c=n.fallbackPlacements,d=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,v=g===void 0?!0:g,y=n.allowedAutoPlacements,S=t.options.placement,_=jl(S),b=_===S,x=c||(b||!v?[ES(S)]:Kfe(S)),E=[S].concat(x).reduce(function(ue,se){return ue.concat(jl(se)===L4?Yfe(t,{placement:se,boundary:f,rootBoundary:h,padding:d,flipVariations:v,allowedAutoPlacements:y}):se)},[]),A=t.rects.reference,R=t.rects.popper,k=new Map,O=!0,L=E[0],N=0;N=0,F=D?"width":"height",j=Yx(t,{placement:H,boundary:f,rootBoundary:h,altBoundary:p,padding:d}),V=D?z?ga:Go:z?ma:Wo;A[F]>R[F]&&(V=ES(V));var G=ES(V),K=[];if(o&&K.push(j[W]<=0),l&&K.push(j[V]<=0,j[G]<=0),K.every(function(ue){return ue})){L=H,O=!1;break}k.set(H,K)}if(O)for(var Y=v?3:1,J=function(se){var Q=E.find(function(ae){var le=k.get(ae);if(le)return le.slice(0,se).every(function(he){return he})});if(Q)return L=Q,"break"},ie=Y;ie>0;ie--){var ce=J(ie);if(ce==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}const Jfe={name:"flip",enabled:!0,phase:"main",fn:Qfe,requiresIfExists:["offset"],data:{_skip:!1}};function ZU(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function e8(e){return[Wo,ga,ma,Go].some(function(t){return e[t]>=0})}function Zfe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=Yx(t,{elementContext:"reference"}),l=Yx(t,{altBoundary:!0}),c=ZU(s,r),d=ZU(l,i,o),f=e8(c),h=e8(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const ehe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zfe};function the(e,t,n){var r=jl(e),i=[Go,Wo].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],l=o[1];return s=s||0,l=(l||0)*i,[Go,ga].indexOf(r)>=0?{x:l,y:s}:{x:s,y:l}}function nhe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=dK.reduce(function(f,h){return f[h]=the(h,t.rects,o),f},{}),l=s[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=s}const rhe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:nhe};function ihe(e){var t=e.state,n=e.name;t.modifiersData[n]=yK({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ohe={name:"popperOffsets",enabled:!0,phase:"read",fn:ihe,data:{}};function she(e){return e==="x"?"y":"x"}function ahe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,l=s===void 0?!1:s,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,g=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,S=Yx(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:f}),_=jl(t.placement),b=wg(t.placement),x=!b,E=$4(_),A=she(E),R=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,L=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,N=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,W={x:0,y:0};if(R){if(o){var z,D=E==="y"?Wo:Go,F=E==="y"?ma:ga,j=E==="y"?"height":"width",V=R[E],G=V+S[D],K=V-S[F],Y=g?-O[j]/2:0,J=b===yg?k[j]:O[j],ie=b===yg?-O[j]:-k[j],ce=t.elements.arrow,ue=g&&ce?B4(ce):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:pK(),Q=se[D],ae=se[F],le=sx(0,k[j],ue[j]),he=x?k[j]/2-Y-le-Q-N.mainAxis:J-le-Q-N.mainAxis,pe=x?-k[j]/2+Y+le+ae+N.mainAxis:ie+le+ae+N.mainAxis,ve=t.elements.arrow&&W1(t.elements.arrow),ye=ve?E==="y"?ve.clientTop||0:ve.clientLeft||0:0,xe=(z=H==null?void 0:H[E])!=null?z:0,me=V+he-xe-ye,be=V+pe-xe,Qe=sx(g?TE(G,me):G,V,g?Kh(K,be):K);R[E]=Qe,W[E]=Qe-V}if(l){var qe,at=E==="x"?Wo:Go,Nt=E==="x"?ma:ga,Ie=R[A],Fe=A==="y"?"height":"width",it=Ie+S[at],pt=Ie-S[Nt],mt=[Wo,Go].indexOf(_)!==-1,_e=(qe=H==null?void 0:H[A])!=null?qe:0,ze=mt?it:Ie-k[Fe]-O[Fe]-_e+N.altAxis,Ye=mt?Ie+k[Fe]+O[Fe]-_e-N.altAxis:pt,$e=g&&mt?Pfe(ze,Ie,Ye):sx(g?ze:it,Ie,g?Ye:pt);R[A]=$e,W[A]=$e-Ie}t.modifiersData[r]=W}}const lhe={name:"preventOverflow",enabled:!0,phase:"main",fn:ahe,requiresIfExists:["offset"]};function che(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function uhe(e){return e===Ns(e)||!la(e)?F4(e):che(e)}function dhe(e){var t=e.getBoundingClientRect(),n=bg(t.width)/e.offsetWidth||1,r=bg(t.height)/e.offsetHeight||1;return n!==1||r!==1}function fhe(e,t,n){n===void 0&&(n=!1);var r=la(t),i=la(t)&&dhe(t),o=Gd(t),s=xg(e,i,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ql(t)!=="body"||j4(o))&&(l=uhe(t)),la(t)?(c=xg(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=z4(o))),{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function hhe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function phe(e){var t=hhe(e);return Cfe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function mhe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function ghe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var t8={placement:"bottom",modifiers:[],strategy:"absolute"};function n8(){for(var e=arguments.length,t=new Array(e),n=0;n{o||l(xhe(i)||document.body)},[i,o]),ko(()=>{if(s&&!o)return n$(n,s),()=>{n$(n,null)}},[n,s,o]),o){if(I.isValidElement(r)){const d={ref:c};return I.cloneElement(r,d)}return C.jsx(I.Fragment,{children:r})}return C.jsx(I.Fragment,{children:s&&Yg.createPortal(r,s)})});function whe(e){return St("MuiPopper",e)}kt("MuiPopper",["root"]);const _he=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],She=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Ehe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function aF(e){return typeof e=="function"?e():e}function Che(e){return e.nodeType!==void 0}const The=()=>Tt({root:["root"]},tfe(whe)),khe={},Ahe=I.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:s,disablePortal:l,modifiers:c,open:d,placement:f,popperOptions:h,popperRef:p,slotProps:g={},slots:v={},TransitionProps:y}=t,S=Le(t,_he),_=I.useRef(null),b=mr(_,n),x=I.useRef(null),E=mr(x,p),A=I.useRef(E);ko(()=>{A.current=E},[E]),I.useImperativeHandle(p,()=>x.current,[]);const R=Ehe(f,s),[k,O]=I.useState(R),[L,N]=I.useState(aF(i));I.useEffect(()=>{x.current&&x.current.forceUpdate()}),I.useEffect(()=>{i&&N(aF(i))},[i]),ko(()=>{if(!L||!d)return;const F=G=>{O(G.placement)};let j=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:G})=>{F(G)}}];c!=null&&(j=j.concat(c)),h&&h.modifiers!=null&&(j=j.concat(h.modifiers));const V=bhe(L,_.current,$({placement:R},h,{modifiers:j}));return A.current(V),()=>{V.destroy(),A.current(null)}},[L,l,c,d,h,R]);const H={placement:k};y!==null&&(H.TransitionProps=y);const W=The(),z=(r=v.root)!=null?r:"div",D=Wr({elementType:z,externalSlotProps:g.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:W.root});return C.jsx(z,$({},D,{children:typeof o=="function"?o(H):o}))}),Rhe=I.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:s="ltr",disablePortal:l=!1,keepMounted:c=!1,modifiers:d,open:f,placement:h="bottom",popperOptions:p=khe,popperRef:g,style:v,transition:y=!1,slotProps:S={},slots:_={}}=t,b=Le(t,She),[x,E]=I.useState(!0),A=()=>{E(!1)},R=()=>{E(!0)};if(!c&&!f&&(!y||x))return null;let k;if(o)k=o;else if(r){const N=aF(r);k=N&&Che(N)?Ar(N).body:Ar(null).body}const O=!f&&c&&(!y||x)?"none":void 0,L=y?{in:f,onEnter:A,onExited:R}:void 0;return C.jsx(bK,{disablePortal:l,container:k,children:C.jsx(Ahe,$({anchorEl:r,direction:s,disablePortal:l,modifiers:d,ref:n,open:y?!x:f,placement:h,popperOptions:p,popperRef:g,slotProps:S,slots:_},b,{style:$({position:"fixed",top:0,left:0,display:O},v),TransitionProps:L,children:i}))})});function Ihe(e){const t=Ar(e);return t.body===e?gu(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function lx(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function r8(e){return parseInt(gu(e).getComputedStyle(e).paddingRight,10)||0}function Phe(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 i8(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,s=>{const l=o.indexOf(s)===-1,c=!Phe(s);l&&c&&lx(s,i)})}function VD(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function Ohe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Ihe(r)){const s=Sq(Ar(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${r8(r)+s}px`;const l=Ar(r).querySelectorAll(".mui-fixed");[].forEach.call(l,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${r8(c)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Ar(r).body;else{const s=r.parentElement,l=gu(r);o=(s==null?void 0:s.nodeName)==="HTML"&&l.getComputedStyle(s).overflowY==="scroll"?s:r}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:s,property:l})=>{o?s.style.setProperty(l,o):s.style.removeProperty(l)})}}function Mhe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Dhe{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&&lx(t.modalRef,!1);const i=Mhe(n);i8(n,t.mount,t.modalRef,i,!0);const o=VD(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=VD(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=Ohe(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=VD(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&lx(t.modalRef,n),i8(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&lx(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Lhe(e){return typeof e=="function"?e():e}function Nhe(e){return e?e.props.hasOwnProperty("in"):!1}const Bhe=new Dhe;function $he(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=Bhe,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:d,open:f,rootRef:h}=e,p=I.useRef({}),g=I.useRef(null),v=I.useRef(null),y=mr(v,h),[S,_]=I.useState(!f),b=Nhe(c);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const E=()=>Ar(g.current),A=()=>(p.current.modalRef=v.current,p.current.mount=g.current,p.current),R=()=>{i.mount(A(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},k=Zi(()=>{const j=Lhe(t)||E().body;i.add(A(),j),v.current&&R()}),O=I.useCallback(()=>i.isTopModal(A()),[i]),L=Zi(j=>{g.current=j,j&&(f&&O()?R():v.current&&lx(v.current,x))}),N=I.useCallback(()=>{i.remove(A(),x)},[x,i]);I.useEffect(()=>()=>{N()},[N]),I.useEffect(()=>{f?k():(!b||!o)&&N()},[f,N,b,o,k]);const H=j=>V=>{var G;(G=j.onKeyDown)==null||G.call(j,V),!(V.key!=="Escape"||!O())&&(n||(V.stopPropagation(),d&&d(V,"escapeKeyDown")))},W=j=>V=>{var G;(G=j.onClick)==null||G.call(j,V),V.target===V.currentTarget&&d&&d(V,"backdropClick")};return{getRootProps:(j={})=>{const V=CE(e);delete V.onTransitionEnter,delete V.onTransitionExited;const G=$({},V,j);return $({role:"presentation"},G,{onKeyDown:H(G),ref:y})},getBackdropProps:(j={})=>{const V=j;return $({"aria-hidden":!0},V,{onClick:W(V),open:f})},getTransitionProps:()=>{const j=()=>{_(!1),s&&s()},V=()=>{_(!0),l&&l(),o&&N()};return{onEnter:o6(j,c==null?void 0:c.props.onEnter),onExited:o6(V,c==null?void 0:c.props.onExited)}},rootRef:y,portalRef:L,isTopModal:O,exited:S,hasTransition:b}}const Fhe=2;function xK(e,t){return e-t}function tb(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function o8(e,t){var n;const{index:r}=(n=e.reduce((i,o,s)=>{const l=Math.abs(t-o);return i===null||l({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}%`})}},Whe=e=>e;let qw;function qD(){return qw===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?qw=CSS.supports("touch-action","none"):qw=!0),qw}function Ghe(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:s=!1,max:l=100,min:c=0,name:d,onChange:f,onChangeCommitted:h,orientation:p="horizontal",rootRef:g,scale:v=Whe,step:y=1,tabIndex:S,value:_}=e,b=I.useRef(),[x,E]=I.useState(-1),[A,R]=I.useState(-1),[k,O]=I.useState(!1),L=I.useRef(0),[N,H]=kx({controlled:_,default:n??c,name:"Slider"}),W=f&&((_e,ze,Ye)=>{const $e=_e.nativeEvent||_e,Ne=new $e.constructor($e.type,$e);Object.defineProperty(Ne,"target",{writable:!0,value:{value:ze,name:d}}),f(Ne,ze,Ye)}),z=Array.isArray(N);let D=z?N.slice().sort(xK):[N];D=D.map(_e=>tb(_e,c,l));const F=s===!0&&y!==null?[...Array(Math.floor((l-c)/y)+1)].map((_e,ze)=>({value:c+y*ze})):s||[],j=F.map(_e=>_e.value),{isFocusVisibleRef:V,onBlur:G,onFocus:K,ref:Y}=x5(),[J,ie]=I.useState(-1),ce=I.useRef(),ue=mr(Y,ce),se=mr(g,ue),Q=_e=>ze=>{var Ye;const $e=Number(ze.currentTarget.getAttribute("data-index"));K(ze),V.current===!0&&ie($e),R($e),_e==null||(Ye=_e.onFocus)==null||Ye.call(_e,ze)},ae=_e=>ze=>{var Ye;G(ze),V.current===!1&&ie(-1),R(-1),_e==null||(Ye=_e.onBlur)==null||Ye.call(_e,ze)};ko(()=>{if(r&&ce.current.contains(document.activeElement)){var _e;(_e=document.activeElement)==null||_e.blur()}},[r]),r&&x!==-1&&E(-1),r&&J!==-1&&ie(-1);const le=_e=>ze=>{var Ye;(Ye=_e.onChange)==null||Ye.call(_e,ze);const $e=Number(ze.currentTarget.getAttribute("data-index")),Ne=D[$e],Rt=j.indexOf(Ne);let ut=ze.target.valueAsNumber;if(F&&y==null){const Ae=j[j.length-1];ut>Ae?ut=Ae:ut{const{current:Ye}=ce,{width:$e,height:Ne,bottom:Rt,left:ut}=Ye.getBoundingClientRect();let Ae;pe.indexOf("vertical")===0?Ae=(Rt-_e.y)/Ne:Ae=(_e.x-ut)/$e,pe.indexOf("-reverse")!==-1&&(Ae=1-Ae);let ot;if(ot=zhe(Ae,c,l),y)ot=Uhe(ot,y,c);else{const Re=o8(j,ot);ot=j[Re]}ot=tb(ot,c,l);let Ft=0;if(z){ze?Ft=he.current:Ft=o8(D,ot),i&&(ot=tb(ot,D[Ft-1]||-1/0,D[Ft+1]||1/0));const Re=ot;ot=s8({values:D,newValue:ot,index:Ft}),i&&ze||(Ft=ot.indexOf(Re),he.current=Ft)}return{newValue:ot,activeIndex:Ft}},ye=Zi(_e=>{const ze=Ww(_e,b);if(!ze)return;if(L.current+=1,_e.type==="mousemove"&&_e.buttons===0){xe(_e);return}const{newValue:Ye,activeIndex:$e}=ve({finger:ze,move:!0});Gw({sliderRef:ce,activeIndex:$e,setActive:E}),H(Ye),!k&&L.current>Fhe&&O(!0),W&&!Vw(Ye,N)&&W(_e,Ye,$e)}),xe=Zi(_e=>{const ze=Ww(_e,b);if(O(!1),!ze)return;const{newValue:Ye}=ve({finger:ze,move:!0});E(-1),_e.type==="touchend"&&R(-1),h&&h(_e,Ye),b.current=void 0,be()}),me=Zi(_e=>{if(r)return;qD()||_e.preventDefault();const ze=_e.changedTouches[0];ze!=null&&(b.current=ze.identifier);const Ye=Ww(_e,b);if(Ye!==!1){const{newValue:Ne,activeIndex:Rt}=ve({finger:Ye});Gw({sliderRef:ce,activeIndex:Rt,setActive:E}),H(Ne),W&&!Vw(Ne,N)&&W(_e,Ne,Rt)}L.current=0;const $e=Ar(ce.current);$e.addEventListener("touchmove",ye),$e.addEventListener("touchend",xe)}),be=I.useCallback(()=>{const _e=Ar(ce.current);_e.removeEventListener("mousemove",ye),_e.removeEventListener("mouseup",xe),_e.removeEventListener("touchmove",ye),_e.removeEventListener("touchend",xe)},[xe,ye]);I.useEffect(()=>{const{current:_e}=ce;return _e.addEventListener("touchstart",me,{passive:qD()}),()=>{_e.removeEventListener("touchstart",me,{passive:qD()}),be()}},[be,me]),I.useEffect(()=>{r&&be()},[r,be]);const Qe=_e=>ze=>{var Ye;if((Ye=_e.onMouseDown)==null||Ye.call(_e,ze),r||ze.defaultPrevented||ze.button!==0)return;ze.preventDefault();const $e=Ww(ze,b);if($e!==!1){const{newValue:Rt,activeIndex:ut}=ve({finger:$e});Gw({sliderRef:ce,activeIndex:ut,setActive:E}),H(Rt),W&&!Vw(Rt,N)&&W(ze,Rt,ut)}L.current=0;const Ne=Ar(ce.current);Ne.addEventListener("mousemove",ye),Ne.addEventListener("mouseup",xe)},qe=kE(z?D[0]:c,c,l),at=kE(D[D.length-1],c,l)-qe,Nt=(_e={})=>{const ze={onMouseDown:Qe(_e||{})},Ye=$({},_e,ze);return $({ref:se},Ye)},Ie=_e=>ze=>{var Ye;(Ye=_e.onMouseOver)==null||Ye.call(_e,ze);const $e=Number(ze.currentTarget.getAttribute("data-index"));R($e)},Fe=_e=>ze=>{var Ye;(Ye=_e.onMouseLeave)==null||Ye.call(_e,ze),R(-1)};return{active:x,axis:pe,axisProps:Hhe,dragging:k,focusedThumbIndex:J,getHiddenInputProps:(_e={})=>{var ze;const Ye={onChange:le(_e||{}),onFocus:Q(_e||{}),onBlur:ae(_e||{})},$e=$({},_e,Ye);return $({tabIndex:S,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":v(l),"aria-valuemin":v(c),name:d,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(ze=e.step)!=null?ze:void 0,disabled:r},$e,{style:$({},Soe,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Nt,getThumbProps:(_e={})=>{const ze={onMouseOver:Ie(_e||{}),onMouseLeave:Fe(_e||{})};return $({},_e,ze)},marks:F,open:A,range:z,rootRef:se,trackLeap:at,trackOffset:qe,values:D,getThumbStyle:_e=>({pointerEvents:x!==-1&&x!==_e?"none":void 0})}}function Vhe(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:o}=e,s=I.useRef();I.useEffect(()=>{if(!i)return;function _(b){b.defaultPrevented||(b.key==="Escape"||b.key==="Esc")&&(r==null||r(b,"escapeKeyDown"))}return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_)}},[i,r]);const l=Zi((_,b)=>{r==null||r(_,b)}),c=Zi(_=>{!r||_==null||(clearTimeout(s.current),s.current=setTimeout(()=>{l(null,"timeout")},_))});I.useEffect(()=>(i&&c(t),()=>{clearTimeout(s.current)}),[i,t,c]);const d=_=>{r==null||r(_,"clickaway")},f=()=>{clearTimeout(s.current)},h=I.useCallback(()=>{t!=null&&c(o??t*.5)},[t,o,c]),p=_=>b=>{const x=_.onBlur;x==null||x(b),h()},g=_=>b=>{const x=_.onFocus;x==null||x(b),f()},v=_=>b=>{const x=_.onMouseEnter;x==null||x(b),f()},y=_=>b=>{const x=_.onMouseLeave;x==null||x(b),h()};return I.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",h),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",f)}},[n,h,i]),{getRootProps:(_={})=>{const b=$({},CE(e),CE(_));return $({role:"presentation"},_,b,{onBlur:p(b),onFocus:g(b),onMouseEnter:v(b),onMouseLeave:y(b)})},onClickAway:d}}const qhe=["onChange","maxRows","minRows","style","value"];function Xw(e){return parseInt(e,10)||0}const Xhe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function a8(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Yhe=I.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:s,value:l}=t,c=Le(t,qhe),{current:d}=I.useRef(l!=null),f=I.useRef(null),h=mr(n,f),p=I.useRef(null),g=I.useRef(0),[v,y]=I.useState({outerHeightStyle:0}),S=I.useCallback(()=>{const E=f.current,R=gu(E).getComputedStyle(E);if(R.width==="0px")return{outerHeightStyle:0};const k=p.current;k.style.width=R.width,k.value=E.value||t.placeholder||"x",k.value.slice(-1)===` +`&&(k.value+=" ");const O=R.boxSizing,L=Xw(R.paddingBottom)+Xw(R.paddingTop),N=Xw(R.borderBottomWidth)+Xw(R.borderTopWidth),H=k.scrollHeight;k.value="x";const W=k.scrollHeight;let z=H;o&&(z=Math.max(Number(o)*W,z)),i&&(z=Math.min(Number(i)*W,z)),z=Math.max(z,W);const D=z+(O==="border-box"?L+N:0),F=Math.abs(z-H)<=1;return{outerHeightStyle:D,overflow:F}},[i,o,t.placeholder]),_=(E,A)=>{const{outerHeightStyle:R,overflow:k}=A;return g.current<20&&(R>0&&Math.abs((E.outerHeightStyle||0)-R)>1||E.overflow!==k)?(g.current+=1,{overflow:k,outerHeightStyle:R}):E},b=I.useCallback(()=>{const E=S();a8(E)||y(A=>_(A,E))},[S]);ko(()=>{const E=()=>{const H=S();a8(H)||Yg.flushSync(()=>{y(W=>_(W,H))})},A=()=>{g.current=0,E()};let R;const k=VC(A),O=f.current,L=gu(O);L.addEventListener("resize",k);let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(A),N.observe(O)),()=>{k.clear(),cancelAnimationFrame(R),L.removeEventListener("resize",k),N&&N.disconnect()}},[S]),ko(()=>{b()}),I.useEffect(()=>{g.current=0},[l]);const x=E=>{g.current=0,d||b(),r&&r(E)};return C.jsxs(I.Fragment,{children:[C.jsx("textarea",$({value:l,onChange:x,ref:h,rows:o,style:$({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},s)},c)),C.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:$({},Xhe.shadow,s,{paddingTop:0,paddingBottom:0})})]})}),Khe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Qhe=Ee(Rhe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jhe=I.forwardRef(function(t,n){var r;const i=vT(),o=At({props:t,name:"MuiPopper"}),{anchorEl:s,component:l,components:c,componentsProps:d,container:f,disablePortal:h,keepMounted:p,modifiers:g,open:v,placement:y,popperOptions:S,popperRef:_,transition:b,slots:x,slotProps:E}=o,A=Le(o,Khe),R=(r=x==null?void 0:x.root)!=null?r:c==null?void 0:c.Root,k=$({anchorEl:s,container:f,disablePortal:h,keepMounted:p,modifiers:g,open:v,placement:y,popperOptions:S,popperRef:_,transition:b},A);return C.jsx(Qhe,$({as:l,direction:i==null?void 0:i.direction,slots:{root:R},slotProps:E??d},k,{ref:n}))}),wK=Jhe;function Zhe(e){return St("MuiListSubheader",e)}kt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const epe=["className","color","component","disableGutters","disableSticky","inset"],tpe=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,s={root:["root",n!=="default"&&`color${Me(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return Tt(s,Zhe,t)},npe=Ee("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Me(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>$({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)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),_K=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:s="li",disableGutters:l=!1,disableSticky:c=!1,inset:d=!1}=r,f=Le(r,epe),h=$({},r,{color:o,component:s,disableGutters:l,disableSticky:c,inset:d}),p=tpe(h);return C.jsx(npe,$({as:s,className:je(p.root,i),ref:n,ownerState:h},f))});_K.muiSkipListHighlight=!0;const rpe=_K;function Ap({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const ipe=I.createContext(void 0),U4=ipe;function Vd(){return I.useContext(U4)}function SK(e){return C.jsx(Pae,$({},e,{defaultTheme:xT,themeId:ip}))}function l8(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function AE(e,t=!1){return e&&(l8(e.value)&&e.value!==""||t&&l8(e.defaultValue)&&e.defaultValue!=="")}function ope(e){return e.startAdornment}function spe(e){return St("MuiInputBase",e)}const ape=kt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),_g=ape,lpe=["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"],YT=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Me(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},KT=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},cpe=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:s,formControl:l,fullWidth:c,hiddenLabel:d,multiline:f,readOnly:h,size:p,startAdornment:g,type:v}=e,y={root:["root",`color${Me(n)}`,r&&"disabled",i&&"error",c&&"fullWidth",s&&"focused",l&&"formControl",p&&p!=="medium"&&`size${Me(p)}`,f&&"multiline",g&&"adornedStart",o&&"adornedEnd",d&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",f&&"inputMultiline",p==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",g&&"inputAdornedStart",o&&"inputAdornedEnd",h&&"readOnly"]};return Tt(y,spe,t)},QT=Ee("div",{name:"MuiInputBase",slot:"Root",overridesResolver:YT})(({theme:e,ownerState:t})=>$({},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",[`&.${_g.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),JT=Ee("input",{name:"MuiInputBase",slot:"Input",overridesResolver:KT})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=$({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return $({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] + .${_g.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${_g.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),upe=C.jsx(SK,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),dpe=I.forwardRef(function(t,n){var r;const i=At({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:l,className:c,components:d={},componentsProps:f={},defaultValue:h,disabled:p,disableInjectingGlobalStyles:g,endAdornment:v,fullWidth:y=!1,id:S,inputComponent:_="input",inputProps:b={},inputRef:x,maxRows:E,minRows:A,multiline:R=!1,name:k,onBlur:O,onChange:L,onClick:N,onFocus:H,onKeyDown:W,onKeyUp:z,placeholder:D,readOnly:F,renderSuffix:j,rows:V,slotProps:G={},slots:K={},startAdornment:Y,type:J="text",value:ie}=i,ce=Le(i,lpe),ue=b.value!=null?b.value:ie,{current:se}=I.useRef(ue!=null),Q=I.useRef(),ae=I.useCallback($e=>{},[]),le=mr(Q,x,b.ref,ae),[he,pe]=I.useState(!1),ve=Vd(),ye=Ap({props:i,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ye.focused=ve?ve.focused:he,I.useEffect(()=>{!ve&&p&&he&&(pe(!1),O&&O())},[ve,p,he,O]);const xe=ve&&ve.onFilled,me=ve&&ve.onEmpty,be=I.useCallback($e=>{AE($e)?xe&&xe():me&&me()},[xe,me]);ko(()=>{se&&be({value:ue})},[ue,be,se]);const Qe=$e=>{if(ye.disabled){$e.stopPropagation();return}H&&H($e),b.onFocus&&b.onFocus($e),ve&&ve.onFocus?ve.onFocus($e):pe(!0)},qe=$e=>{O&&O($e),b.onBlur&&b.onBlur($e),ve&&ve.onBlur?ve.onBlur($e):pe(!1)},at=($e,...Ne)=>{if(!se){const Rt=$e.target||Q.current;if(Rt==null)throw new Error(Rd(1));be({value:Rt.value})}b.onChange&&b.onChange($e,...Ne),L&&L($e,...Ne)};I.useEffect(()=>{be(Q.current)},[]);const Nt=$e=>{Q.current&&$e.currentTarget===$e.target&&Q.current.focus(),N&&N($e)};let Ie=_,Fe=b;R&&Ie==="input"&&(V?Fe=$({type:void 0,minRows:V,maxRows:V},Fe):Fe=$({type:void 0,maxRows:E,minRows:A},Fe),Ie=Yhe);const it=$e=>{be($e.animationName==="mui-auto-fill-cancel"?Q.current:{value:"x"})};I.useEffect(()=>{ve&&ve.setAdornedStart(!!Y)},[ve,Y]);const pt=$({},i,{color:ye.color||"primary",disabled:ye.disabled,endAdornment:v,error:ye.error,focused:ye.focused,formControl:ve,fullWidth:y,hiddenLabel:ye.hiddenLabel,multiline:R,size:ye.size,startAdornment:Y,type:J}),mt=cpe(pt),_e=K.root||d.Root||QT,ze=G.root||f.root||{},Ye=K.input||d.Input||JT;return Fe=$({},Fe,(r=G.input)!=null?r:f.input),C.jsxs(I.Fragment,{children:[!g&&upe,C.jsxs(_e,$({},ze,!zl(_e)&&{ownerState:$({},pt,ze.ownerState)},{ref:n,onClick:Nt},ce,{className:je(mt.root,ze.className,c,F&&"MuiInputBase-readOnly"),children:[Y,C.jsx(U4.Provider,{value:null,children:C.jsx(Ye,$({ownerState:pt,"aria-invalid":ye.error,"aria-describedby":o,autoComplete:s,autoFocus:l,defaultValue:h,disabled:ye.disabled,id:S,onAnimationStart:it,name:k,placeholder:D,readOnly:F,required:ye.required,rows:V,value:ue,onKeyDown:W,onKeyUp:z,type:J},Fe,!zl(Ye)&&{as:Ie,ownerState:$({},pt,Fe.ownerState)},{ref:le,className:je(mt.input,Fe.className,F&&"MuiInputBase-readOnly"),onBlur:qe,onChange:at,onFocus:Qe}))}),v,j?j($({},ye,{startAdornment:Y})):null]}))]})}),ZT=dpe;function fpe(e){return St("MuiInput",e)}const hpe=$({},_g,kt("MuiInput",["root","underline","input"])),nb=hpe;function ppe(e){return St("MuiOutlinedInput",e)}const mpe=$({},_g,kt("MuiOutlinedInput",["root","notchedOutline","input"])),$u=mpe;function gpe(e){return St("MuiFilledInput",e)}const vpe=$({},_g,kt("MuiFilledInput",["root","underline","input"])),mh=vpe,ype=$t(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),bpe=$t(C.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function xpe(e){return St("MuiAvatar",e)}kt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const wpe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],_pe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Tt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},xpe,t)},Spe=Ee("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&$({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),Epe=Ee("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Cpe=Ee(bpe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Tpe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=I.useState(!1);return I.useEffect(()=>{if(!n&&!r)return;o(!1);let s=!0;const l=new Image;return l.onload=()=>{s&&o("loaded")},l.onerror=()=>{s&&o("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const kpe=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:s,component:l="div",imgProps:c,sizes:d,src:f,srcSet:h,variant:p="circular"}=r,g=Le(r,wpe);let v=null;const y=Tpe($({},c,{src:f,srcSet:h})),S=f||h,_=S&&y!=="error",b=$({},r,{colorDefault:!_,component:l,variant:p}),x=_pe(b);return _?v=C.jsx(Epe,$({alt:i,srcSet:h,src:f,sizes:d,ownerState:b,className:x.img},c)):o!=null?v=o:S&&i?v=i[0]:v=C.jsx(Cpe,{ownerState:b,className:x.fallback}),C.jsx(Spe,$({as:l,ownerState:b,className:je(x.root,s),ref:n},g,{children:v}))}),Ape=kpe,Rpe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Ipe={entering:{opacity:1},entered:{opacity:1}},Ppe=I.forwardRef(function(t,n){const r=Pn(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,easing:c,in:d,onEnter:f,onEntered:h,onEntering:p,onExit:g,onExited:v,onExiting:y,style:S,timeout:_=i,TransitionComponent:b=O4}=t,x=Le(t,Rpe),E=I.useRef(null),A=mr(E,l.ref,n),R=D=>F=>{if(D){const j=E.current;F===void 0?D(j):D(j,F)}},k=R(p),O=R((D,F)=>{lK(D);const j=vg({style:S,timeout:_,easing:c},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",j),D.style.transition=r.transitions.create("opacity",j),f&&f(D,F)}),L=R(h),N=R(y),H=R(D=>{const F=vg({style:S,timeout:_,easing:c},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",F),D.style.transition=r.transitions.create("opacity",F),g&&g(D)}),W=R(v),z=D=>{o&&o(E.current,D)};return C.jsx(b,$({appear:s,in:d,nodeRef:E,onEnter:O,onEntered:L,onEntering:k,onExit:H,onExited:W,onExiting:N,addEndListener:z,timeout:_},x,{children:(D,F)=>I.cloneElement(l,$({style:$({opacity:0,visibility:D==="exited"&&!d?"hidden":void 0},Ipe[D],S,l.props.style),ref:A},F))}))}),pp=Ppe;function Ope(e){return St("MuiBackdrop",e)}kt("MuiBackdrop",["root","invisible"]);const Mpe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Dpe=e=>{const{classes:t,invisible:n}=e;return Tt({root:["root",n&&"invisible"]},Ope,t)},Lpe=Ee("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>$({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"})),Npe=I.forwardRef(function(t,n){var r,i,o;const s=At({props:t,name:"MuiBackdrop"}),{children:l,className:c,component:d="div",components:f={},componentsProps:h={},invisible:p=!1,open:g,slotProps:v={},slots:y={},TransitionComponent:S=pp,transitionDuration:_}=s,b=Le(s,Mpe),x=$({},s,{component:d,invisible:p}),E=Dpe(x),A=(r=v.root)!=null?r:h.root;return C.jsx(S,$({in:g,timeout:_},b,{children:C.jsx(Lpe,$({"aria-hidden":!0},A,{as:(i=(o=y.root)!=null?o:f.Root)!=null?i:d,className:je(E.root,c,A==null?void 0:A.className),ownerState:$({},x,A==null?void 0:A.ownerState),classes:E,ref:n,children:l}))}))}),ek=Npe,Bpe=$5(),$pe=Lae({themeId:ip,defaultTheme:Bpe,defaultClassName:"MuiBox-root",generateClassName:Cq.generate}),lt=$pe;function Fpe(e){return St("MuiButton",e)}const zpe=kt("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"]),Yw=zpe,jpe=I.createContext({}),Upe=jpe,Hpe=I.createContext(void 0),Wpe=Hpe,Gpe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Vpe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:s}=e,l={root:["root",o,`${o}${Me(t)}`,`size${Me(i)}`,`${o}Size${Me(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Me(i)}`],endIcon:["endIcon",`iconSize${Me(i)}`]},c=Tt(l,Fpe,s);return $({},s,c)},EK=e=>$({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),qpe=Ee(Ru,{shouldForwardProp:e=>va(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Me(n.color)}`],t[`size${Me(n.size)}`],t[`${n.variant}Size${Me(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return $({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":$({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:_n(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_n(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_n(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Yw.focusVisible}`]:$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Yw.disabled}`]:$({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${_n(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Yw.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Yw.disabled}`]:{boxShadow:"none"}}),Xpe=Ee("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Me(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},EK(e))),Ype=Ee("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Me(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},EK(e))),Kpe=I.forwardRef(function(t,n){const r=I.useContext(Upe),i=I.useContext(Wpe),o=w5(r,t),s=At({props:o,name:"MuiButton"}),{children:l,color:c="primary",component:d="button",className:f,disabled:h=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:v,focusVisibleClassName:y,fullWidth:S=!1,size:_="medium",startIcon:b,type:x,variant:E="text"}=s,A=Le(s,Gpe),R=$({},s,{color:c,component:d,disabled:h,disableElevation:p,disableFocusRipple:g,fullWidth:S,size:_,type:x,variant:E}),k=Vpe(R),O=b&&C.jsx(Xpe,{className:k.startIcon,ownerState:R,children:b}),L=v&&C.jsx(Ype,{className:k.endIcon,ownerState:R,children:v}),N=i||"";return C.jsxs(qpe,$({ownerState:R,className:je(r.className,k.root,f,N),component:d,disabled:h,focusRipple:!g,focusVisibleClassName:je(k.focusVisible,y),ref:n,type:x},A,{classes:k,children:[O,l,L]}))}),H4=Kpe;function Qpe(e){return St("MuiCard",e)}kt("MuiCard",["root"]);const Jpe=["className","raised"],Zpe=e=>{const{classes:t}=e;return Tt({root:["root"]},Qpe,t)},eme=Ee(Kg,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),tme=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,s=Le(r,Jpe),l=$({},r,{raised:o}),c=Zpe(l);return C.jsx(eme,$({className:je(c.root,i),elevation:o?8:void 0,ref:n,ownerState:l},s))}),nme=tme;function rme(e){return St("PrivateSwitchBase",e)}kt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ime=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],ome=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${Me(i)}`],input:["input"]};return Tt(o,rme,t)},sme=Ee(Ru)(({ownerState:e})=>$({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ame=Ee("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),lme=I.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:s,defaultChecked:l,disabled:c,disableFocusRipple:d=!1,edge:f=!1,icon:h,id:p,inputProps:g,inputRef:v,name:y,onBlur:S,onChange:_,onFocus:b,readOnly:x,required:E=!1,tabIndex:A,type:R,value:k}=t,O=Le(t,ime),[L,N]=kx({controlled:i,default:!!l,name:"SwitchBase",state:"checked"}),H=Vd(),W=K=>{b&&b(K),H&&H.onFocus&&H.onFocus(K)},z=K=>{S&&S(K),H&&H.onBlur&&H.onBlur(K)},D=K=>{if(K.nativeEvent.defaultPrevented)return;const Y=K.target.checked;N(Y),_&&_(K,Y)};let F=c;H&&typeof F>"u"&&(F=H.disabled);const j=R==="checkbox"||R==="radio",V=$({},t,{checked:L,disabled:F,disableFocusRipple:d,edge:f}),G=ome(V);return C.jsxs(sme,$({component:"span",className:je(G.root,s),centerRipple:!0,focusRipple:!d,disabled:F,tabIndex:null,role:void 0,onFocus:W,onBlur:z,ownerState:V,ref:n},O,{children:[C.jsx(ame,$({autoFocus:r,checked:i,defaultChecked:l,className:G.input,disabled:F,id:j?p:void 0,name:y,onChange:D,readOnly:x,ref:v,required:E,ownerState:V,tabIndex:A,type:R},R==="checkbox"&&k===void 0?{}:{value:k},g)),L?o:h]}))}),CK=lme,cme=$t(C.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"),ume=$t(C.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"),dme=$t(C.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 fme(e){return St("MuiCheckbox",e)}const hme=kt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),XD=hme,pme=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],mme=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${Me(r)}`,`size${Me(i)}`]},s=Tt(o,fme,t);return $({},t,s)},gme=Ee(CK,{shouldForwardProp:e=>va(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${Me(n.color)}`]]}})(({theme:e,ownerState:t})=>$({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.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_n(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${XD.checked}, &.${XD.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${XD.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),vme=C.jsx(ume,{}),yme=C.jsx(cme,{}),bme=C.jsx(dme,{}),xme=I.forwardRef(function(t,n){var r,i;const o=At({props:t,name:"MuiCheckbox"}),{checkedIcon:s=vme,color:l="primary",icon:c=yme,indeterminate:d=!1,indeterminateIcon:f=bme,inputProps:h,size:p="medium",className:g}=o,v=Le(o,pme),y=d?f:c,S=d?f:s,_=$({},o,{color:l,indeterminate:d,size:p}),b=mme(_);return C.jsx(gme,$({type:"checkbox",inputProps:$({"data-indeterminate":d},h),icon:I.cloneElement(y,{fontSize:(r=y.props.fontSize)!=null?r:p}),checkedIcon:I.cloneElement(S,{fontSize:(i=S.props.fontSize)!=null?i:p}),ownerState:_,ref:n,className:je(b.root,g)},v,{classes:b}))}),wme=xme;function _me(e){return St("MuiCircularProgress",e)}kt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Sme=["className","color","disableShrink","size","style","thickness","value","variant"];let tk=e=>e,c8,u8,d8,f8;const Fu=44,Eme=jd(c8||(c8=tk` 0% { transform: rotate(0deg); } @@ -140,7 +140,7 @@ Error generating stack: `+o.message+` 100% { transform: rotate(360deg); } -`)),wme=Fd(s8||(s8=ZT` +`)),Cme=jd(u8||(u8=tk` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -155,11 +155,11 @@ Error generating stack: `+o.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),_me=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${Me(r)}`],svg:["svg"],circle:["circle",`circle${Me(n)}`,i&&"circleDisableShrink"]};return Tt(o,yme,t)},Sme=Ee("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Me(n.color)}`]]}})(({ownerState:e,theme:t})=>$({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Hg(a8||(a8=ZT` +`)),Tme=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${Me(r)}`],svg:["svg"],circle:["circle",`circle${Me(n)}`,i&&"circleDisableShrink"]};return Tt(o,_me,t)},kme=Ee("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Me(n.color)}`]]}})(({ownerState:e,theme:t})=>$({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Wg(d8||(d8=tk` animation: ${0} 1.4s linear infinite; - `),xme)),Eme=Ee("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Cme=Ee("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Me(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>$({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Hg(l8||(l8=ZT` + `),Eme)),Ame=Ee("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Rme=Ee("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Me(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>$({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Wg(f8||(f8=tk` animation: ${0} 1.4s ease-in-out infinite; - `),wme)),Tme=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:l=40,style:c,thickness:d=3.6,value:f=0,variant:h="indeterminate"}=r,p=Le(r,bme),g=$({},r,{color:o,disableShrink:s,size:l,thickness:d,value:f,variant:h}),v=_me(g),y={},S={},_={};if(h==="determinate"){const b=2*Math.PI*((Nu-d)/2);y.strokeDasharray=b.toFixed(3),_["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,S.transform="rotate(-90deg)"}return C.jsx(Sme,$({className:je(v.root,i),style:$({width:l,height:l},S,c),ownerState:g,ref:n,role:"progressbar"},_,p,{children:C.jsx(Eme,{className:v.svg,ownerState:g,viewBox:`${Nu/2} ${Nu/2} ${Nu} ${Nu}`,children:C.jsx(Cme,{className:v.circle,style:y,ownerState:g,cx:Nu,cy:Nu,r:(Nu-d)/2,fill:"none",strokeWidth:d})})}))}),U1=Tme,kme=(e,t)=>$({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Ame=e=>$({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Ime=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var c;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(c=l.palette)==null?void 0:c.mode}});let i=$({html:kme(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:$({margin:0},Ame(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function Rme(e){const t=At({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return C.jsxs(R.Fragment,{children:[C.jsx(yK,{styles:i=>Ime(i,r)}),n]})}function Pme(e){return St("MuiModal",e)}kt("MuiModal",["root","hidden","backdrop"]);const Ome=["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"],Mme=e=>{const{open:t,exited:n,classes:r}=e;return Tt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Pme,r)},Dme=Ee("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})=>$({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Lme=Ee(JT,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Nme=R.forwardRef(function(t,n){var r,i,o,s,l,c;const d=At({name:"MuiModal",props:t}),{BackdropComponent:f=Lme,BackdropProps:h,className:p,closeAfterTransition:g=!1,children:v,container:y,component:S,components:_={},componentsProps:b={},disableAutoFocus:x=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:A=!1,disablePortal:I=!1,disableRestoreFocus:k=!1,disableScrollLock:O=!1,hideBackdrop:L=!1,keepMounted:N=!1,onBackdropClick:H,open:W,slotProps:z,slots:D}=d,F=Le(d,Ome),j=$({},d,{closeAfterTransition:g,disableAutoFocus:x,disableEnforceFocus:E,disableEscapeKeyDown:A,disablePortal:I,disableRestoreFocus:k,disableScrollLock:O,hideBackdrop:L,keepMounted:N}),{getRootProps:V,getBackdropProps:G,getTransitionProps:K,portalRef:Y,isTopModal:J,exited:ie,hasTransition:ce}=Dhe($({},j,{rootRef:n})),ue=$({},j,{exited:ie}),se=Mme(ue),Q={};if(v.props.tabIndex===void 0&&(Q.tabIndex="-1"),ce){const{onEnter:xe,onExited:me}=K();Q.onEnter=xe,Q.onExited=me}const ae=(r=(i=D==null?void 0:D.root)!=null?i:_.Root)!=null?r:Dme,le=(o=(s=D==null?void 0:D.backdrop)!=null?s:_.Backdrop)!=null?o:f,he=(l=z==null?void 0:z.root)!=null?l:b.root,pe=(c=z==null?void 0:z.backdrop)!=null?c:b.backdrop,ve=Wr({elementType:ae,externalSlotProps:he,externalForwardedProps:F,getSlotProps:V,additionalProps:{ref:n,as:S},ownerState:ue,className:je(p,he==null?void 0:he.className,se==null?void 0:se.root,!ue.open&&ue.exited&&(se==null?void 0:se.hidden))}),ye=Wr({elementType:le,externalSlotProps:pe,additionalProps:h,getSlotProps:xe=>G($({},xe,{onClick:me=>{H&&H(me),xe!=null&&xe.onClick&&xe.onClick(me)}})),className:je(pe==null?void 0:pe.className,h==null?void 0:h.className,se==null?void 0:se.backdrop),ownerState:ue});return!N&&!W&&(!ce||ie)?null:C.jsx(pK,{ref:Y,container:y,disablePortal:I,children:C.jsxs(ae,$({},ve,{children:[!L&&f?C.jsx(le,$({},ye)):null,C.jsx(cfe,{disableEnforceFocus:E,disableAutoFocus:x,disableRestoreFocus:k,isEnabled:J,open:W,children:R.cloneElement(v,Q)})]}))})}),wK=Nme;function Bme(e){return St("MuiDialog",e)}const $me=kt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),qD=$me,Fme=R.createContext({}),zme=Fme,jme=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Ume=Ee(JT,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Hme=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${Me(n)}`],paper:["paper",`paperScroll${Me(n)}`,`paperWidth${Me(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return Tt(s,Bme,t)},Wme=Ee(wK,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Gme=Ee("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Me(n.scroll)}`]]}})(({ownerState:e})=>$({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Vme=Ee(Yg,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Me(n.scroll)}`],t[`paperWidth${Me(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>$({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${qD.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${qD.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${qD.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),qme=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiDialog"}),i=Rn(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,BackdropComponent:c,BackdropProps:d,children:f,className:h,disableEscapeKeyDown:p=!1,fullScreen:g=!1,fullWidth:v=!1,maxWidth:y="sm",onBackdropClick:S,onClose:_,open:b,PaperComponent:x=Yg,PaperProps:E={},scroll:A="paper",TransitionComponent:I=hp,transitionDuration:k=o,TransitionProps:O}=r,L=Le(r,jme),N=$({},r,{disableEscapeKeyDown:p,fullScreen:g,fullWidth:v,maxWidth:y,scroll:A}),H=Hme(N),W=R.useRef(),z=V=>{W.current=V.target===V.currentTarget},D=V=>{W.current&&(W.current=null,S&&S(V),_&&_(V,"backdropClick"))},F=v5(l),j=R.useMemo(()=>({titleId:F}),[F]);return C.jsx(Wme,$({className:je(H.root,h),closeAfterTransition:!0,components:{Backdrop:Ume},componentsProps:{backdrop:$({transitionDuration:k,as:c},d)},disableEscapeKeyDown:p,onClose:_,open:b,ref:n,onClick:D,ownerState:N},L,{children:C.jsx(I,$({appear:!0,in:b,timeout:k,role:"presentation"},O,{children:C.jsx(Gme,{className:je(H.container),onMouseDown:z,ownerState:N,children:C.jsx(Vme,$({as:x,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":F},E,{className:je(H.paper,E.className),ownerState:N,children:C.jsx(zme.Provider,{value:j,children:f})}))})}))}))}),Xme=qme;function Yme(e){return St("MuiDivider",e)}const Kme=kt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),c8=Kme,Qme=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Jme=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:s,textAlign:l,variant:c}=e;return Tt({root:["root",t&&"absolute",c,o&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},Yme,r)},Zme=Ee("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>$({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:_n(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>$({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>$({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),ege=Ee("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>$({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),_K=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:s,component:l=o?"div":"hr",flexItem:c=!1,light:d=!1,orientation:f="horizontal",role:h=l!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=r,v=Le(r,Qme),y=$({},r,{absolute:i,component:l,flexItem:c,light:d,orientation:f,role:h,textAlign:p,variant:g}),S=Jme(y);return C.jsx(Zme,$({as:l,className:je(S.root,s),role:h,ref:n,ownerState:y},v,{children:o?C.jsx(ege,{className:S.wrapper,ownerState:y,children:o}):null}))});_K.muiSkipListHighlight=!0;const Au=_K,tge=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],nge=e=>{const{classes:t,disableUnderline:n}=e,i=Tt({root:["root",!n&&"underline"],input:["input"]},fpe,t);return $({},t,i)},rge=Ee(YT,{shouldForwardProp:e=>ga(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...qT(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${ph.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${ph.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.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"},[`&.${ph.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ph.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})`:i}`,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(.${ph.disabled}, .${ph.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ph.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),ige=Ee(KT,{name:"MuiFilledInput",slot:"Input",overridesResolver:XT})(({theme:e,ownerState:t})=>$({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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),SK=R.forwardRef(function(t,n){var r,i,o,s;const l=At({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:d,fullWidth:f=!1,inputComponent:h="input",multiline:p=!1,slotProps:g,slots:v={},type:y="text"}=l,S=Le(l,tge),_=$({},l,{fullWidth:f,inputComponent:h,multiline:p,type:y}),b=nge(l),x={root:{ownerState:_},input:{ownerState:_}},E=g??d?zo(g??d,x):x,A=(r=(i=v.root)!=null?i:c.Root)!=null?r:rge,I=(o=(s=v.input)!=null?s:c.Input)!=null?o:ige;return C.jsx(QT,$({slots:{root:A,input:I},componentsProps:E,fullWidth:f,inputComponent:h,multiline:p,ref:n,type:y},S,{classes:b}))});SK.muiName="Input";const EK=SK;function oge(e){return St("MuiFormControl",e)}kt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const sge=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],age=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${Me(n)}`,r&&"fullWidth"]};return Tt(i,oge,t)},lge=Ee("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,t[`margin${Me(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>$({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%"})),cge=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiFormControl"}),{children:i,className:o,color:s="primary",component:l="div",disabled:c=!1,error:d=!1,focused:f,fullWidth:h=!1,hiddenLabel:p=!1,margin:g="none",required:v=!1,size:y="medium",variant:S="outlined"}=r,_=Le(r,sge),b=$({},r,{color:s,component:l,disabled:c,error:d,fullWidth:h,hiddenLabel:p,margin:g,required:v,size:y,variant:S}),x=age(b),[E,A]=R.useState(()=>{let z=!1;return i&&R.Children.forEach(i,D=>{if(!cS(D,["Input","Select"]))return;const F=cS(D,["Select"])?D.props.input:D;F&&tpe(F.props)&&(z=!0)}),z}),[I,k]=R.useState(()=>{let z=!1;return i&&R.Children.forEach(i,D=>{cS(D,["Input","Select"])&&(kE(D.props,!0)||kE(D.props.inputProps,!0))&&(z=!0)}),z}),[O,L]=R.useState(!1);c&&O&&L(!1);const N=f!==void 0&&!c?f:O;let H;const W=R.useMemo(()=>({adornedStart:E,setAdornedStart:A,color:s,disabled:c,error:d,filled:I,focused:N,fullWidth:h,hiddenLabel:p,size:y,onBlur:()=>{L(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{L(!0)},registerEffect:H,required:v,variant:S}),[E,s,c,d,I,N,h,p,H,v,y,S]);return C.jsx(z4.Provider,{value:W,children:C.jsx(lge,$({as:l,ownerState:b,className:je(x.root,o),ref:n},_,{children:i}))})}),uge=cge,dge=sle({createStyledComponent:Ee("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>At({props:e,name:"MuiStack"})}),Rd=dge;function fge(e){return St("MuiFormControlLabel",e)}const hge=kt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Pb=hge,pge=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],mge=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,s={root:["root",n&&"disabled",`labelPlacement${Me(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Tt(s,fge,t)},gge=Ee("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Pb.label}`]:t.label},t.root,t[`labelPlacement${Me(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>$({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Pb.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Pb.label}`]:{[`&.${Pb.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),vge=Ee("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Pb.error}`]:{color:(e.vars||e).palette.error.main}})),yge=R.forwardRef(function(t,n){var r,i;const o=At({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:l={},control:c,disabled:d,disableTypography:f,label:h,labelPlacement:p="end",required:g,slotProps:v={}}=o,y=Le(o,pge),S=Wd(),_=(r=d??c.props.disabled)!=null?r:S==null?void 0:S.disabled,b=g??c.props.required,x={disabled:_,required:b};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof c.props[L]>"u"&&typeof o[L]<"u"&&(x[L]=o[L])});const E=Tp({props:o,muiFormControl:S,states:["error"]}),A=$({},o,{disabled:_,labelPlacement:p,required:b,error:E.error}),I=mge(A),k=(i=v.typography)!=null?i:l.typography;let O=h;return O!=null&&O.type!==zt&&!f&&(O=C.jsx(zt,$({component:"span"},k,{className:je(I.label,k==null?void 0:k.className),children:O}))),C.jsxs(gge,$({className:je(I.root,s),ownerState:A,ref:n},y,{children:[R.cloneElement(c,x),b?C.jsxs(Rd,{direction:"row",alignItems:"center",children:[O,C.jsxs(vge,{ownerState:A,"aria-hidden":!0,className:I.asterisk,children:[" ","*"]})]}):O]}))}),bge=yge;function xge(e){return St("MuiFormHelperText",e)}const wge=kt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),u8=wge;var d8;const _ge=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Sge=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:s,focused:l,required:c}=e,d={root:["root",i&&"disabled",o&&"error",r&&`size${Me(r)}`,n&&"contained",l&&"focused",s&&"filled",c&&"required"]};return Tt(d,xge,t)},Ege=Ee("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Me(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${u8.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${u8.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Cge=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:s="p"}=r,l=Le(r,_ge),c=Wd(),d=Tp({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),f=$({},r,{component:s,contained:d.variant==="filled"||d.variant==="outlined",variant:d.variant,size:d.size,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),h=Sge(f);return C.jsx(Ege,$({as:s,ownerState:f,className:je(h.root,o),ref:n},l,{children:i===" "?d8||(d8=C.jsx("span",{className:"notranslate",children:"​"})):i}))}),Tge=Cge;function kge(e){return St("MuiFormLabel",e)}const Age=kt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),sx=Age,Ige=["children","className","color","component","disabled","error","filled","focused","required"],Rge=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:s,required:l}=e,c={root:["root",`color${Me(n)}`,i&&"disabled",o&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",o&&"error"]};return Tt(c,kge,t)},Pge=Ee("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${sx.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${sx.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${sx.error}`]:{color:(e.vars||e).palette.error.main}})),Oge=Ee("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${sx.error}`]:{color:(e.vars||e).palette.error.main}})),Mge=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:s="label"}=r,l=Le(r,Ige),c=Wd(),d=Tp({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),f=$({},r,{color:d.color||"primary",component:s,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),h=Rge(f);return C.jsxs(Pge,$({as:s,ownerState:f,className:je(h.root,o),ref:n},l,{children:[i,d.required&&C.jsxs(Oge,{ownerState:f,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),Dge=Mge,Lge=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function oF(e){return`scale(${e}, ${e**2})`}const Nge={entering:{opacity:1,transform:oF(1)},entered:{opacity:1,transform:"none"}},XD=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),CK=R.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:s,in:l,onEnter:c,onEntered:d,onEntering:f,onExit:h,onExited:p,onExiting:g,style:v,timeout:y="auto",TransitionComponent:S=R4}=t,_=Le(t,Lge),b=R.useRef(),x=R.useRef(),E=Rn(),A=R.useRef(null),I=mr(A,o.ref,n),k=F=>j=>{if(F){const V=A.current;j===void 0?F(V):F(V,j)}},O=k(f),L=k((F,j)=>{rK(F);const{duration:V,delay:G,easing:K}=mg({style:v,timeout:y,easing:s},{mode:"enter"});let Y;y==="auto"?(Y=E.transitions.getAutoHeightDuration(F.clientHeight),x.current=Y):Y=V,F.style.transition=[E.transitions.create("opacity",{duration:Y,delay:G}),E.transitions.create("transform",{duration:XD?Y:Y*.666,delay:G,easing:K})].join(","),c&&c(F,j)}),N=k(d),H=k(g),W=k(F=>{const{duration:j,delay:V,easing:G}=mg({style:v,timeout:y,easing:s},{mode:"exit"});let K;y==="auto"?(K=E.transitions.getAutoHeightDuration(F.clientHeight),x.current=K):K=j,F.style.transition=[E.transitions.create("opacity",{duration:K,delay:V}),E.transitions.create("transform",{duration:XD?K:K*.666,delay:XD?V:V||K*.333,easing:G})].join(","),F.style.opacity=0,F.style.transform=oF(.75),h&&h(F)}),z=k(p),D=F=>{y==="auto"&&(b.current=setTimeout(F,x.current||0)),r&&r(A.current,F)};return R.useEffect(()=>()=>{clearTimeout(b.current)},[]),C.jsx(S,$({appear:i,in:l,nodeRef:A,onEnter:L,onEntered:N,onEntering:O,onExit:W,onExited:z,onExiting:H,addEndListener:D,timeout:y==="auto"?null:y},_,{children:(F,j)=>R.cloneElement(o,$({style:$({opacity:0,transform:oF(.75),visibility:F==="exited"&&!l?"hidden":void 0},Nge[F],v,o.props.style),ref:I},j))}))});CK.muiSupportAuto=!0;const AE=CK;function Bge(e,t,n,r,i){const[o,s]=R.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return ko(()=>{let l=!0;if(!n)return;const c=n(e),d=()=>{l&&s(c.matches)};return d(),c.addListener(d),()=>{l=!1,c.removeListener(d)}},[e,n]),o}const TK=KS["useSyncExternalStore"];function $ge(e,t,n,r,i){const o=R.useCallback(()=>t,[t]),s=R.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:f}=r(e);return()=>f}return o},[o,e,r,i,n]),[l,c]=R.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const f=n(e);return[()=>f.matches,h=>(f.addListener(h),()=>{f.removeListener(h)})]},[o,n,e]);return TK(c,l,s)}function Fge(e,t={}){const n=mT(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:l=!1}=qq({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(TK!==void 0?$ge:Bge)(c,i,o,s,l)}const zge=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],jge=e=>{const{classes:t,disableUnderline:n}=e,i=Tt({root:["root",!n&&"underline"],input:["input"]},lpe,t);return $({},t,i)},Uge=Ee(YT,{shouldForwardProp:e=>ga(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...qT(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{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})`),$({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.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"},[`&.${Z0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Z0.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(.${Z0.disabled}, .${Z0.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Z0.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Hge=Ee(KT,{name:"MuiInput",slot:"Input",overridesResolver:XT})({}),kK=R.forwardRef(function(t,n){var r,i,o,s;const l=At({props:t,name:"MuiInput"}),{disableUnderline:c,components:d={},componentsProps:f,fullWidth:h=!1,inputComponent:p="input",multiline:g=!1,slotProps:v,slots:y={},type:S="text"}=l,_=Le(l,zge),b=jge(l),E={root:{ownerState:{disableUnderline:c}}},A=v??f?zo(v??f,E):E,I=(r=(i=y.root)!=null?i:d.Root)!=null?r:Uge,k=(o=(s=y.input)!=null?s:d.Input)!=null?o:Hge;return C.jsx(QT,$({slots:{root:I,input:k},slotProps:A,fullWidth:h,inputComponent:p,multiline:g,ref:n,type:S},_,{classes:b}))});kK.muiName="Input";const AK=kK;function Wge(e){return St("MuiInputLabel",e)}kt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Gge=["disableAnimation","margin","shrink","variant","className"],Vge=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:s,required:l}=e,c={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="normal"&&`size${Me(r)}`,s],asterisk:[l&&"asterisk"]},d=Tt(c,Wge,t);return $({},t,d)},qge=Ee(Dge,{shouldForwardProp:e=>ga(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sx.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>$({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&$({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&$({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&$({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Xge=R.forwardRef(function(t,n){const r=At({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:s}=r,l=Le(r,Gge),c=Wd();let d=o;typeof d>"u"&&c&&(d=c.filled||c.focused||c.adornedStart);const f=Tp({props:r,muiFormControl:c,states:["size","variant","required"]}),h=$({},r,{disableAnimation:i,formControl:c,shrink:d,size:f.size,variant:f.variant,required:f.required}),p=Vge(h);return C.jsx(qge,$({"data-shrink":d,ownerState:h,ref:n,className:je(p.root,s)},l,{classes:p}))}),Yge=Xge;function Kge(e){return St("MuiLinearProgress",e)}kt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Qge=["className","color","value","valueBuffer","variant"];let Kg=e=>e,f8,h8,p8,m8,g8,v8;const sF=4,Jge=Fd(f8||(f8=Kg` + `),Cme)),Ime=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:l=40,style:c,thickness:d=3.6,value:f=0,variant:h="indeterminate"}=r,p=Le(r,Sme),g=$({},r,{color:o,disableShrink:s,size:l,thickness:d,value:f,variant:h}),v=Tme(g),y={},S={},_={};if(h==="determinate"){const b=2*Math.PI*((Fu-d)/2);y.strokeDasharray=b.toFixed(3),_["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,S.transform="rotate(-90deg)"}return C.jsx(kme,$({className:je(v.root,i),style:$({width:l,height:l},S,c),ownerState:g,ref:n,role:"progressbar"},_,p,{children:C.jsx(Ame,{className:v.svg,ownerState:g,viewBox:`${Fu/2} ${Fu/2} ${Fu} ${Fu}`,children:C.jsx(Rme,{className:v.circle,style:y,ownerState:g,cx:Fu,cy:Fu,r:(Fu-d)/2,fill:"none",strokeWidth:d})})}))}),G1=Ime,Pme=(e,t)=>$({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Ome=e=>$({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),Mme=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var c;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(c=l.palette)==null?void 0:c.mode}});let i=$({html:Pme(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:$({margin:0},Ome(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function Dme(e){const t=At({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return C.jsxs(I.Fragment,{children:[C.jsx(SK,{styles:i=>Mme(i,r)}),n]})}function Lme(e){return St("MuiModal",e)}kt("MuiModal",["root","hidden","backdrop"]);const Nme=["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"],Bme=e=>{const{open:t,exited:n,classes:r}=e;return Tt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Lme,r)},$me=Ee("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})=>$({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Fme=Ee(ek,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),zme=I.forwardRef(function(t,n){var r,i,o,s,l,c;const d=At({name:"MuiModal",props:t}),{BackdropComponent:f=Fme,BackdropProps:h,className:p,closeAfterTransition:g=!1,children:v,container:y,component:S,components:_={},componentsProps:b={},disableAutoFocus:x=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:A=!1,disablePortal:R=!1,disableRestoreFocus:k=!1,disableScrollLock:O=!1,hideBackdrop:L=!1,keepMounted:N=!1,onBackdropClick:H,open:W,slotProps:z,slots:D}=d,F=Le(d,Nme),j=$({},d,{closeAfterTransition:g,disableAutoFocus:x,disableEnforceFocus:E,disableEscapeKeyDown:A,disablePortal:R,disableRestoreFocus:k,disableScrollLock:O,hideBackdrop:L,keepMounted:N}),{getRootProps:V,getBackdropProps:G,getTransitionProps:K,portalRef:Y,isTopModal:J,exited:ie,hasTransition:ce}=$he($({},j,{rootRef:n})),ue=$({},j,{exited:ie}),se=Bme(ue),Q={};if(v.props.tabIndex===void 0&&(Q.tabIndex="-1"),ce){const{onEnter:xe,onExited:me}=K();Q.onEnter=xe,Q.onExited=me}const ae=(r=(i=D==null?void 0:D.root)!=null?i:_.Root)!=null?r:$me,le=(o=(s=D==null?void 0:D.backdrop)!=null?s:_.Backdrop)!=null?o:f,he=(l=z==null?void 0:z.root)!=null?l:b.root,pe=(c=z==null?void 0:z.backdrop)!=null?c:b.backdrop,ve=Wr({elementType:ae,externalSlotProps:he,externalForwardedProps:F,getSlotProps:V,additionalProps:{ref:n,as:S},ownerState:ue,className:je(p,he==null?void 0:he.className,se==null?void 0:se.root,!ue.open&&ue.exited&&(se==null?void 0:se.hidden))}),ye=Wr({elementType:le,externalSlotProps:pe,additionalProps:h,getSlotProps:xe=>G($({},xe,{onClick:me=>{H&&H(me),xe!=null&&xe.onClick&&xe.onClick(me)}})),className:je(pe==null?void 0:pe.className,h==null?void 0:h.className,se==null?void 0:se.backdrop),ownerState:ue});return!N&&!W&&(!ce||ie)?null:C.jsx(bK,{ref:Y,container:y,disablePortal:R,children:C.jsxs(ae,$({},ve,{children:[!L&&f?C.jsx(le,$({},ye)):null,C.jsx(hfe,{disableEnforceFocus:E,disableAutoFocus:x,disableRestoreFocus:k,isEnabled:J,open:W,children:I.cloneElement(v,Q)})]}))})}),TK=zme;function jme(e){return St("MuiDialog",e)}const Ume=kt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),YD=Ume,Hme=I.createContext({}),Wme=Hme,Gme=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Vme=Ee(ek,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),qme=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${Me(n)}`],paper:["paper",`paperScroll${Me(n)}`,`paperWidth${Me(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return Tt(s,jme,t)},Xme=Ee(TK,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Yme=Ee("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Me(n.scroll)}`]]}})(({ownerState:e})=>$({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Kme=Ee(Kg,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Me(n.scroll)}`],t[`paperWidth${Me(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>$({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${YD.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${YD.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${YD.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Qme=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiDialog"}),i=Pn(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":l,BackdropComponent:c,BackdropProps:d,children:f,className:h,disableEscapeKeyDown:p=!1,fullScreen:g=!1,fullWidth:v=!1,maxWidth:y="sm",onBackdropClick:S,onClose:_,open:b,PaperComponent:x=Kg,PaperProps:E={},scroll:A="paper",TransitionComponent:R=pp,transitionDuration:k=o,TransitionProps:O}=r,L=Le(r,Gme),N=$({},r,{disableEscapeKeyDown:p,fullScreen:g,fullWidth:v,maxWidth:y,scroll:A}),H=qme(N),W=I.useRef(),z=V=>{W.current=V.target===V.currentTarget},D=V=>{W.current&&(W.current=null,S&&S(V),_&&_(V,"backdropClick"))},F=b5(l),j=I.useMemo(()=>({titleId:F}),[F]);return C.jsx(Xme,$({className:je(H.root,h),closeAfterTransition:!0,components:{Backdrop:Vme},componentsProps:{backdrop:$({transitionDuration:k,as:c},d)},disableEscapeKeyDown:p,onClose:_,open:b,ref:n,onClick:D,ownerState:N},L,{children:C.jsx(R,$({appear:!0,in:b,timeout:k,role:"presentation"},O,{children:C.jsx(Yme,{className:je(H.container),onMouseDown:z,ownerState:N,children:C.jsx(Kme,$({as:x,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":F},E,{className:je(H.paper,E.className),ownerState:N,children:C.jsx(Wme.Provider,{value:j,children:f})}))})}))}))}),Jme=Qme;function Zme(e){return St("MuiDivider",e)}const ege=kt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),h8=ege,tge=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],nge=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:s,textAlign:l,variant:c}=e;return Tt({root:["root",t&&"absolute",c,o&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",l==="right"&&s!=="vertical"&&"textAlignRight",l==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},Zme,r)},rge=Ee("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>$({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:_n(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>$({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>$({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),ige=Ee("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>$({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),kK=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:s,component:l=o?"div":"hr",flexItem:c=!1,light:d=!1,orientation:f="horizontal",role:h=l!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=r,v=Le(r,tge),y=$({},r,{absolute:i,component:l,flexItem:c,light:d,orientation:f,role:h,textAlign:p,variant:g}),S=nge(y);return C.jsx(rge,$({as:l,className:je(S.root,s),role:h,ref:n,ownerState:y},v,{children:o?C.jsx(ige,{className:S.wrapper,ownerState:y,children:o}):null}))});kK.muiSkipListHighlight=!0;const Iu=kK,oge=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],sge=e=>{const{classes:t,disableUnderline:n}=e,i=Tt({root:["root",!n&&"underline"],input:["input"]},gpe,t);return $({},t,i)},age=Ee(QT,{shouldForwardProp:e=>va(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...YT(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${mh.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${mh.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.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"},[`&.${mh.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${mh.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})`:i}`,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(.${mh.disabled}, .${mh.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${mh.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),lge=Ee(JT,{name:"MuiFilledInput",slot:"Input",overridesResolver:KT})(({theme:e,ownerState:t})=>$({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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),AK=I.forwardRef(function(t,n){var r,i,o,s;const l=At({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:d,fullWidth:f=!1,inputComponent:h="input",multiline:p=!1,slotProps:g,slots:v={},type:y="text"}=l,S=Le(l,oge),_=$({},l,{fullWidth:f,inputComponent:h,multiline:p,type:y}),b=sge(l),x={root:{ownerState:_},input:{ownerState:_}},E=g??d?zo(g??d,x):x,A=(r=(i=v.root)!=null?i:c.Root)!=null?r:age,R=(o=(s=v.input)!=null?s:c.Input)!=null?o:lge;return C.jsx(ZT,$({slots:{root:A,input:R},componentsProps:E,fullWidth:f,inputComponent:h,multiline:p,ref:n,type:y},S,{classes:b}))});AK.muiName="Input";const RK=AK;function cge(e){return St("MuiFormControl",e)}kt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const uge=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],dge=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${Me(n)}`,r&&"fullWidth"]};return Tt(i,cge,t)},fge=Ee("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,t[`margin${Me(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>$({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%"})),hge=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiFormControl"}),{children:i,className:o,color:s="primary",component:l="div",disabled:c=!1,error:d=!1,focused:f,fullWidth:h=!1,hiddenLabel:p=!1,margin:g="none",required:v=!1,size:y="medium",variant:S="outlined"}=r,_=Le(r,uge),b=$({},r,{color:s,component:l,disabled:c,error:d,fullWidth:h,hiddenLabel:p,margin:g,required:v,size:y,variant:S}),x=dge(b),[E,A]=I.useState(()=>{let z=!1;return i&&I.Children.forEach(i,D=>{if(!uS(D,["Input","Select"]))return;const F=uS(D,["Select"])?D.props.input:D;F&&ope(F.props)&&(z=!0)}),z}),[R,k]=I.useState(()=>{let z=!1;return i&&I.Children.forEach(i,D=>{uS(D,["Input","Select"])&&(AE(D.props,!0)||AE(D.props.inputProps,!0))&&(z=!0)}),z}),[O,L]=I.useState(!1);c&&O&&L(!1);const N=f!==void 0&&!c?f:O;let H;const W=I.useMemo(()=>({adornedStart:E,setAdornedStart:A,color:s,disabled:c,error:d,filled:R,focused:N,fullWidth:h,hiddenLabel:p,size:y,onBlur:()=>{L(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{L(!0)},registerEffect:H,required:v,variant:S}),[E,s,c,d,R,N,h,p,H,v,y,S]);return C.jsx(U4.Provider,{value:W,children:C.jsx(fge,$({as:l,ownerState:b,className:je(x.root,o),ref:n},_,{children:i}))})}),pge=hge,mge=ule({createStyledComponent:Ee("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>At({props:e,name:"MuiStack"})}),Od=mge;function gge(e){return St("MuiFormControlLabel",e)}const vge=kt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Db=vge,yge=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],bge=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,s={root:["root",n&&"disabled",`labelPlacement${Me(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Tt(s,gge,t)},xge=Ee("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Db.label}`]:t.label},t.root,t[`labelPlacement${Me(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>$({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Db.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Db.label}`]:{[`&.${Db.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),wge=Ee("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Db.error}`]:{color:(e.vars||e).palette.error.main}})),_ge=I.forwardRef(function(t,n){var r,i;const o=At({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:l={},control:c,disabled:d,disableTypography:f,label:h,labelPlacement:p="end",required:g,slotProps:v={}}=o,y=Le(o,yge),S=Vd(),_=(r=d??c.props.disabled)!=null?r:S==null?void 0:S.disabled,b=g??c.props.required,x={disabled:_,required:b};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof c.props[L]>"u"&&typeof o[L]<"u"&&(x[L]=o[L])});const E=Ap({props:o,muiFormControl:S,states:["error"]}),A=$({},o,{disabled:_,labelPlacement:p,required:b,error:E.error}),R=bge(A),k=(i=v.typography)!=null?i:l.typography;let O=h;return O!=null&&O.type!==Lt&&!f&&(O=C.jsx(Lt,$({component:"span"},k,{className:je(R.label,k==null?void 0:k.className),children:O}))),C.jsxs(xge,$({className:je(R.root,s),ownerState:A,ref:n},y,{children:[I.cloneElement(c,x),b?C.jsxs(Od,{direction:"row",alignItems:"center",children:[O,C.jsxs(wge,{ownerState:A,"aria-hidden":!0,className:R.asterisk,children:[" ","*"]})]}):O]}))}),Sge=_ge;function Ege(e){return St("MuiFormHelperText",e)}const Cge=kt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),p8=Cge;var m8;const Tge=["children","className","component","disabled","error","filled","focused","margin","required","variant"],kge=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:s,focused:l,required:c}=e,d={root:["root",i&&"disabled",o&&"error",r&&`size${Me(r)}`,n&&"contained",l&&"focused",s&&"filled",c&&"required"]};return Tt(d,Ege,t)},Age=Ee("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Me(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${p8.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${p8.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Rge=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:s="p"}=r,l=Le(r,Tge),c=Vd(),d=Ap({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),f=$({},r,{component:s,contained:d.variant==="filled"||d.variant==="outlined",variant:d.variant,size:d.size,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),h=kge(f);return C.jsx(Age,$({as:s,ownerState:f,className:je(h.root,o),ref:n},l,{children:i===" "?m8||(m8=C.jsx("span",{className:"notranslate",children:"​"})):i}))}),Ige=Rge;function Pge(e){return St("MuiFormLabel",e)}const Oge=kt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),cx=Oge,Mge=["children","className","color","component","disabled","error","filled","focused","required"],Dge=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:s,required:l}=e,c={root:["root",`color${Me(n)}`,i&&"disabled",o&&"error",s&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",o&&"error"]};return Tt(c,Pge,t)},Lge=Ee("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${cx.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${cx.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${cx.error}`]:{color:(e.vars||e).palette.error.main}})),Nge=Ee("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${cx.error}`]:{color:(e.vars||e).palette.error.main}})),Bge=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:s="label"}=r,l=Le(r,Mge),c=Vd(),d=Ap({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),f=$({},r,{color:d.color||"primary",component:s,disabled:d.disabled,error:d.error,filled:d.filled,focused:d.focused,required:d.required}),h=Dge(f);return C.jsxs(Lge,$({as:s,ownerState:f,className:je(h.root,o),ref:n},l,{children:[i,d.required&&C.jsxs(Nge,{ownerState:f,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),$ge=Bge,Fge=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function lF(e){return`scale(${e}, ${e**2})`}const zge={entering:{opacity:1,transform:lF(1)},entered:{opacity:1,transform:"none"}},KD=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),IK=I.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:s,in:l,onEnter:c,onEntered:d,onEntering:f,onExit:h,onExited:p,onExiting:g,style:v,timeout:y="auto",TransitionComponent:S=O4}=t,_=Le(t,Fge),b=I.useRef(),x=I.useRef(),E=Pn(),A=I.useRef(null),R=mr(A,o.ref,n),k=F=>j=>{if(F){const V=A.current;j===void 0?F(V):F(V,j)}},O=k(f),L=k((F,j)=>{lK(F);const{duration:V,delay:G,easing:K}=vg({style:v,timeout:y,easing:s},{mode:"enter"});let Y;y==="auto"?(Y=E.transitions.getAutoHeightDuration(F.clientHeight),x.current=Y):Y=V,F.style.transition=[E.transitions.create("opacity",{duration:Y,delay:G}),E.transitions.create("transform",{duration:KD?Y:Y*.666,delay:G,easing:K})].join(","),c&&c(F,j)}),N=k(d),H=k(g),W=k(F=>{const{duration:j,delay:V,easing:G}=vg({style:v,timeout:y,easing:s},{mode:"exit"});let K;y==="auto"?(K=E.transitions.getAutoHeightDuration(F.clientHeight),x.current=K):K=j,F.style.transition=[E.transitions.create("opacity",{duration:K,delay:V}),E.transitions.create("transform",{duration:KD?K:K*.666,delay:KD?V:V||K*.333,easing:G})].join(","),F.style.opacity=0,F.style.transform=lF(.75),h&&h(F)}),z=k(p),D=F=>{y==="auto"&&(b.current=setTimeout(F,x.current||0)),r&&r(A.current,F)};return I.useEffect(()=>()=>{clearTimeout(b.current)},[]),C.jsx(S,$({appear:i,in:l,nodeRef:A,onEnter:L,onEntered:N,onEntering:O,onExit:W,onExited:z,onExiting:H,addEndListener:D,timeout:y==="auto"?null:y},_,{children:(F,j)=>I.cloneElement(o,$({style:$({opacity:0,transform:lF(.75),visibility:F==="exited"&&!l?"hidden":void 0},zge[F],v,o.props.style),ref:R},j))}))});IK.muiSupportAuto=!0;const RE=IK;function jge(e,t,n,r,i){const[o,s]=I.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return ko(()=>{let l=!0;if(!n)return;const c=n(e),d=()=>{l&&s(c.matches)};return d(),c.addListener(d),()=>{l=!1,c.removeListener(d)}},[e,n]),o}const PK=QS["useSyncExternalStore"];function Uge(e,t,n,r,i){const o=I.useCallback(()=>t,[t]),s=I.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:f}=r(e);return()=>f}return o},[o,e,r,i,n]),[l,c]=I.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const f=n(e);return[()=>f.matches,h=>(f.addListener(h),()=>{f.removeListener(h)})]},[o,n,e]);return PK(c,l,s)}function Hge(e,t={}){const n=vT(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:l=!1}=Jq({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(PK!==void 0?Uge:jge)(c,i,o,s,l)}const Wge=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Gge=e=>{const{classes:t,disableUnderline:n}=e,i=Tt({root:["root",!n&&"underline"],input:["input"]},fpe,t);return $({},t,i)},Vge=Ee(QT,{shouldForwardProp:e=>va(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...YT(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{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})`),$({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.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"},[`&.${nb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${nb.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(.${nb.disabled}, .${nb.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${nb.disabled}:before`]:{borderBottomStyle:"dotted"}})}),qge=Ee(JT,{name:"MuiInput",slot:"Input",overridesResolver:KT})({}),OK=I.forwardRef(function(t,n){var r,i,o,s;const l=At({props:t,name:"MuiInput"}),{disableUnderline:c,components:d={},componentsProps:f,fullWidth:h=!1,inputComponent:p="input",multiline:g=!1,slotProps:v,slots:y={},type:S="text"}=l,_=Le(l,Wge),b=Gge(l),E={root:{ownerState:{disableUnderline:c}}},A=v??f?zo(v??f,E):E,R=(r=(i=y.root)!=null?i:d.Root)!=null?r:Vge,k=(o=(s=y.input)!=null?s:d.Input)!=null?o:qge;return C.jsx(ZT,$({slots:{root:R,input:k},slotProps:A,fullWidth:h,inputComponent:p,multiline:g,ref:n,type:S},_,{classes:b}))});OK.muiName="Input";const MK=OK;function Xge(e){return St("MuiInputLabel",e)}kt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Yge=["disableAnimation","margin","shrink","variant","className"],Kge=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:s,required:l}=e,c={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="normal"&&`size${Me(r)}`,s],asterisk:[l&&"asterisk"]},d=Tt(c,Xge,t);return $({},t,d)},Qge=Ee($ge,{shouldForwardProp:e=>va(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${cx.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>$({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&$({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&$({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&$({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Jge=I.forwardRef(function(t,n){const r=At({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:s}=r,l=Le(r,Yge),c=Vd();let d=o;typeof d>"u"&&c&&(d=c.filled||c.focused||c.adornedStart);const f=Ap({props:r,muiFormControl:c,states:["size","variant","required"]}),h=$({},r,{disableAnimation:i,formControl:c,shrink:d,size:f.size,variant:f.variant,required:f.required}),p=Kge(h);return C.jsx(Qge,$({"data-shrink":d,ownerState:h,ref:n,className:je(p.root,s)},l,{classes:p}))}),Zge=Jge;function eve(e){return St("MuiLinearProgress",e)}kt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const tve=["className","color","value","valueBuffer","variant"];let Qg=e=>e,g8,v8,y8,b8,x8,w8;const cF=4,nve=jd(g8||(g8=Qg` 0% { left: -35%; right: 100%; @@ -174,7 +174,7 @@ Error generating stack: `+o.message+` left: 100%; right: -90%; } -`)),Zge=Fd(h8||(h8=Kg` +`)),rve=jd(v8||(v8=Qg` 0% { left: -200%; right: 100%; @@ -189,7 +189,7 @@ Error generating stack: `+o.message+` left: 107%; right: -8%; } -`)),eve=Fd(p8||(p8=Kg` +`)),ive=jd(y8||(y8=Qg` 0% { opacity: 1; background-position: 0 -23px; @@ -204,41 +204,41 @@ Error generating stack: `+o.message+` opacity: 1; background-position: -200px -23px; } -`)),tve=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${Me(r)}`,n],dashed:["dashed",`dashedColor${Me(r)}`],bar1:["bar",`barColor${Me(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${Me(r)}`,n==="buffer"&&`color${Me(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Tt(i,Kge,t)},U4=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Gg(e.palette[t].main,.62):Wg(e.palette[t].main,.5),nve=Ee("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Me(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>$({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:U4(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),rve=Ee("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Me(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=U4(t,e.color);return $({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},Hg(m8||(m8=Kg` +`)),ove=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${Me(r)}`,n],dashed:["dashed",`dashedColor${Me(r)}`],bar1:["bar",`barColor${Me(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${Me(r)}`,n==="buffer"&&`color${Me(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Tt(i,eve,t)},W4=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?Vg(e.palette[t].main,.62):Gg(e.palette[t].main,.5),sve=Ee("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Me(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>$({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:W4(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),ave=Ee("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Me(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=W4(t,e.color);return $({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},Wg(b8||(b8=Qg` animation: ${0} 3s infinite linear; - `),eve)),ive=Ee("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Me(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>$({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${sF}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${sF}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Hg(g8||(g8=Kg` + `),ive)),lve=Ee("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Me(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>$({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${cF}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${cF}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Wg(x8||(x8=Qg` width: auto; animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),Jge)),ove=Ee("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Me(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>$({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:U4(t,e.color),transition:`transform .${sF}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Hg(v8||(v8=Kg` + `),nve)),cve=Ee("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Me(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>$({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:W4(t,e.color),transition:`transform .${cF}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&Wg(w8||(w8=Qg` width: auto; animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),Zge)),sve=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiLinearProgress"}),{className:i,color:o="primary",value:s,valueBuffer:l,variant:c="indeterminate"}=r,d=Le(r,Qge),f=$({},r,{color:o,variant:c}),h=tve(f),p=Rn(),g={},v={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){g["aria-valuenow"]=Math.round(s),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let y=s-100;p.direction==="rtl"&&(y=-y),v.bar1.transform=`translateX(${y}%)`}if(c==="buffer"&&l!==void 0){let y=(l||0)-100;p.direction==="rtl"&&(y=-y),v.bar2.transform=`translateX(${y}%)`}return C.jsxs(nve,$({className:je(h.root,i),ownerState:f,role:"progressbar"},g,{ref:n},d,{children:[c==="buffer"?C.jsx(rve,{className:h.dashed,ownerState:f}):null,C.jsx(ive,{className:h.bar1,ownerState:f,style:v.bar1}),c==="determinate"?null:C.jsx(ove,{className:h.bar2,ownerState:f,style:v.bar2})]}))}),ave=sve,lve=R.createContext({}),la=lve;function cve(e){return St("MuiList",e)}kt("MuiList",["root","padding","dense","subheader"]);const uve=["children","className","component","dense","disablePadding","subheader"],dve=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Tt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},cve,t)},fve=Ee("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>$({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),hve=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiList"}),{children:i,className:o,component:s="ul",dense:l=!1,disablePadding:c=!1,subheader:d}=r,f=Le(r,uve),h=R.useMemo(()=>({dense:l}),[l]),p=$({},r,{component:s,dense:l,disablePadding:c}),g=dve(p);return C.jsx(la.Provider,{value:h,children:C.jsxs(fve,$({as:s,className:je(g.root,o),ref:n,ownerState:p},f,{children:[d,i]}))})}),wg=hve;function pve(e){return St("MuiListItem",e)}const mve=kt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),om=mve;function gve(e){return St("MuiListItemButton",e)}const vve=kt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),sm=vve,yve=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],bve=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},xve=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:s,selected:l}=e,d=Tt({root:["root",r&&"dense",!o&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},gve,n);return $({},n,d)},wve=Ee(ku,{shouldForwardProp:e=>ga(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:bve})(({theme:e,ownerState:t})=>$({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_n(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_n(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_n(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_n(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),_ve=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:s="div",children:l,dense:c=!1,disableGutters:d=!1,divider:f=!1,focusVisibleClassName:h,selected:p=!1,className:g}=r,v=Le(r,yve),y=R.useContext(la),S=R.useMemo(()=>({dense:c||y.dense||!1,alignItems:i,disableGutters:d}),[i,y.dense,c,d]),_=R.useRef(null);ko(()=>{o&&_.current&&_.current.focus()},[o]);const b=$({},r,{alignItems:i,dense:S.dense,disableGutters:d,divider:f,selected:p}),x=xve(b),E=mr(_,n);return C.jsx(la.Provider,{value:S,children:C.jsx(wve,$({ref:E,href:v.href||v.to,component:(v.href||v.to)&&s==="div"?"button":s,focusVisibleClassName:je(x.focusVisible,h),ownerState:b,className:je(x.root,g)},v,{classes:x,children:l}))})}),aF=_ve;function Sve(e){return St("MuiListItemSecondaryAction",e)}kt("MuiListItemSecondaryAction",["root","disableGutters"]);const Eve=["className"],Cve=e=>{const{disableGutters:t,classes:n}=e;return Tt({root:["root",t&&"disableGutters"]},Sve,n)},Tve=Ee("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>$({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),IK=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=Le(r,Eve),s=R.useContext(la),l=$({},r,{disableGutters:s.disableGutters}),c=Cve(l);return C.jsx(Tve,$({className:je(c.root,i),ownerState:l,ref:n},o))});IK.muiName="ListItemSecondaryAction";const kve=IK,Ave=["className"],Ive=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Rve=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},Pve=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:s,disablePadding:l,divider:c,hasSecondaryAction:d,selected:f}=e;return Tt({root:["root",i&&"dense",!s&&"gutters",!l&&"padding",c&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",d&&"secondaryAction",f&&"selected"],container:["container"]},pve,r)},Ove=Ee("div",{name:"MuiListItem",slot:"Root",overridesResolver:Rve})(({theme:e,ownerState:t})=>$({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&$({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${sm.root}`]:{paddingRight:48}},{[`&.${om.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${om.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_n(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${om.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_n(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${om.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${om.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_n(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_n(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Mve=Ee("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Dve=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:s=!1,children:l,className:c,component:d,components:f={},componentsProps:h={},ContainerComponent:p="li",ContainerProps:{className:g}={},dense:v=!1,disabled:y=!1,disableGutters:S=!1,disablePadding:_=!1,divider:b=!1,focusVisibleClassName:x,secondaryAction:E,selected:A=!1,slotProps:I={},slots:k={}}=r,O=Le(r.ContainerProps,Ave),L=Le(r,Ive),N=R.useContext(la),H=R.useMemo(()=>({dense:v||N.dense||!1,alignItems:i,disableGutters:S}),[i,N.dense,v,S]),W=R.useRef(null);ko(()=>{o&&W.current&&W.current.focus()},[o]);const z=R.Children.toArray(l),D=z.length&&cS(z[z.length-1],["ListItemSecondaryAction"]),F=$({},r,{alignItems:i,autoFocus:o,button:s,dense:H.dense,disabled:y,disableGutters:S,disablePadding:_,divider:b,hasSecondaryAction:D,selected:A}),j=Pve(F),V=mr(W,n),G=k.root||f.Root||Ove,K=I.root||h.root||{},Y=$({className:je(j.root,K.className,c),disabled:y},L);let J=d||"li";return s&&(Y.component=d||"div",Y.focusVisibleClassName=je(om.focusVisible,x),J=ku),D?(J=!Y.component&&!d?"div":J,p==="li"&&(J==="li"?J="div":Y.component==="li"&&(Y.component="div")),C.jsx(la.Provider,{value:H,children:C.jsxs(Mve,$({as:p,className:je(j.container,g),ref:V,ownerState:F},O,{children:[C.jsx(G,$({},K,!$l(G)&&{as:J,ownerState:$({},F,K.ownerState)},Y,{children:z})),z.pop()]}))})):C.jsx(la.Provider,{value:H,children:C.jsxs(G,$({},K,{as:J,ref:V},!$l(G)&&{ownerState:$({},F,K.ownerState)},Y,{children:[z,E&&C.jsx(kve,{children:E})]}))})}),ax=Dve;function Lve(e){return St("MuiListItemAvatar",e)}kt("MuiListItemAvatar",["root","alignItemsFlexStart"]);const Nve=["className"],Bve=e=>{const{alignItems:t,classes:n}=e;return Tt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Lve,n)},$ve=Ee("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>$({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),Fve=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiListItemAvatar"}),{className:i}=r,o=Le(r,Nve),s=R.useContext(la),l=$({},r,{alignItems:s.alignItems}),c=Bve(l);return C.jsx($ve,$({className:je(c.root,i),ownerState:l,ref:n},o))}),zve=Fve;function jve(e){return St("MuiListItemIcon",e)}const Uve=kt("MuiListItemIcon",["root","alignItemsFlexStart"]),y8=Uve,Hve=["className"],Wve=e=>{const{alignItems:t,classes:n}=e;return Tt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},jve,n)},Gve=Ee("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>$({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Vve=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=Le(r,Hve),s=R.useContext(la),l=$({},r,{alignItems:s.alignItems}),c=Wve(l);return C.jsx(Gve,$({className:je(c.root,i),ownerState:l,ref:n},o))}),xd=Vve;function qve(e){return St("MuiListItemText",e)}const Xve=kt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),IE=Xve,Yve=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Kve=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return Tt({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},qve,t)},Qve=Ee("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${IE.primary}`]:t.primary},{[`& .${IE.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>$({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Jve=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:s=!1,inset:l=!1,primary:c,primaryTypographyProps:d,secondary:f,secondaryTypographyProps:h}=r,p=Le(r,Yve),{dense:g}=R.useContext(la);let v=c??i,y=f;const S=$({},r,{disableTypography:s,inset:l,primary:!!v,secondary:!!y,dense:g}),_=Kve(S);return v!=null&&v.type!==zt&&!s&&(v=C.jsx(zt,$({variant:g?"body2":"body1",className:_.primary,component:d!=null&&d.variant?void 0:"span",display:"block"},d,{children:v}))),y!=null&&y.type!==zt&&!s&&(y=C.jsx(zt,$({variant:"body2",className:_.secondary,color:"text.secondary",display:"block"},h,{children:y}))),C.jsxs(Qve,$({className:je(_.root,o),ownerState:S,ref:n},p,{children:[v,y]}))}),zl=Jve,Zve=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function YD(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function b8(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function RK(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function eb(e,t,n,r,i,o){let s=!1,l=i(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!RK(l,o)||c)l=i(e,l,n);else return l.focus(),!0}return!1}const eye=R.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:s,className:l,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:f,variant:h="selectedMenu"}=t,p=Le(t,Zve),g=R.useRef(null),v=R.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ko(()=>{i&&g.current.focus()},[i]),R.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,E)=>{const A=!g.current.style.width;if(x.clientHeight{const E=g.current,A=x.key,I=Ar(E).activeElement;if(A==="ArrowDown")x.preventDefault(),eb(E,I,d,c,YD);else if(A==="ArrowUp")x.preventDefault(),eb(E,I,d,c,b8);else if(A==="Home")x.preventDefault(),eb(E,null,d,c,YD);else if(A==="End")x.preventDefault(),eb(E,null,d,c,b8);else if(A.length===1){const k=v.current,O=A.toLowerCase(),L=performance.now();k.keys.length>0&&(L-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&O!==k.keys[0]&&(k.repeating=!1)),k.lastTime=L,k.keys.push(O);const N=I&&!k.repeating&&RK(I,k);k.previousKeyMatched&&(N||eb(E,I,!1,c,YD,k))?x.preventDefault():k.previousKeyMatched=!1}f&&f(x)},S=mr(g,n);let _=-1;R.Children.forEach(s,(x,E)=>{if(!R.isValidElement(x)){_===E&&(_+=1,_>=s.length&&(_=-1));return}x.props.disabled||(h==="selectedMenu"&&x.props.selected||_===-1)&&(_=E),_===E&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(_+=1,_>=s.length&&(_=-1))});const b=R.Children.map(s,(x,E)=>{if(E===_){const A={};return o&&(A.autoFocus=!0),x.props.tabIndex===void 0&&h==="selectedMenu"&&(A.tabIndex=0),R.cloneElement(x,A)}return x});return C.jsx(wg,$({role:"menu",ref:S,className:l,onKeyDown:y,tabIndex:i?0:-1},p,{children:b}))}),ek=eye;function tye(e){return St("MuiPopover",e)}kt("MuiPopover",["root","paper"]);const nye=["onEntering"],rye=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],iye=["slotProps"];function x8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function w8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function _8(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function KD(e){return typeof e=="function"?e():e}const oye=e=>{const{classes:t}=e;return Tt({root:["root"],paper:["paper"]},tye,t)},sye=Ee(wK,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),PK=Ee(Yg,{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}),aye=R.forwardRef(function(t,n){var r,i,o;const s=At({props:t,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:h="anchorEl",children:p,className:g,container:v,elevation:y=8,marginThreshold:S=16,open:_,PaperProps:b={},slots:x,slotProps:E,transformOrigin:A={vertical:"top",horizontal:"left"},TransitionComponent:I=AE,transitionDuration:k="auto",TransitionProps:{onEntering:O}={},disableScrollLock:L=!1}=s,N=Le(s.TransitionProps,nye),H=Le(s,rye),W=(r=E==null?void 0:E.paper)!=null?r:b,z=R.useRef(),D=mr(z,W.ref),F=$({},s,{anchorOrigin:d,anchorReference:h,elevation:y,marginThreshold:S,externalPaperSlotProps:W,transformOrigin:A,TransitionComponent:I,transitionDuration:k,TransitionProps:N}),j=oye(F),V=R.useCallback(()=>{if(h==="anchorPosition")return f;const xe=KD(c),be=(xe&&xe.nodeType===1?xe:Ar(z.current).body).getBoundingClientRect();return{top:be.top+x8(be,d.vertical),left:be.left+w8(be,d.horizontal)}},[c,d.horizontal,d.vertical,f,h]),G=R.useCallback(xe=>({vertical:x8(xe,A.vertical),horizontal:w8(xe,A.horizontal)}),[A.horizontal,A.vertical]),K=R.useCallback(xe=>{const me={width:xe.offsetWidth,height:xe.offsetHeight},be=G(me);if(h==="none")return{top:null,left:null,transformOrigin:_8(be)};const Qe=V();let qe=Qe.top-be.vertical,at=Qe.left-be.horizontal;const Lt=qe+me.height,Re=at+me.width,Fe=pu(KD(c)),it=Fe.innerHeight-S,pt=Fe.innerWidth-S;if(S!==null&&qeit){const mt=Lt-it;qe-=mt,be.vertical+=mt}if(S!==null&&atpt){const mt=Re-pt;at-=mt,be.horizontal+=mt}return{top:`${Math.round(qe)}px`,left:`${Math.round(at)}px`,transformOrigin:_8(be)}},[c,h,V,G,S]),[Y,J]=R.useState(_),ie=R.useCallback(()=>{const xe=z.current;if(!xe)return;const me=K(xe);me.top!==null&&(xe.style.top=me.top),me.left!==null&&(xe.style.left=me.left),xe.style.transformOrigin=me.transformOrigin,J(!0)},[K]);R.useEffect(()=>(L&&window.addEventListener("scroll",ie),()=>window.removeEventListener("scroll",ie)),[c,L,ie]);const ce=(xe,me)=>{O&&O(xe,me),ie()},ue=()=>{J(!1)};R.useEffect(()=>{_&&ie()}),R.useImperativeHandle(l,()=>_?{updatePosition:()=>{ie()}}:null,[_,ie]),R.useEffect(()=>{if(!_)return;const xe=WC(()=>{ie()}),me=pu(c);return me.addEventListener("resize",xe),()=>{xe.clear(),me.removeEventListener("resize",xe)}},[c,_,ie]);let se=k;k==="auto"&&!I.muiSupportAuto&&(se=void 0);const Q=v||(c?Ar(KD(c)).body:void 0),ae=(i=x==null?void 0:x.root)!=null?i:sye,le=(o=x==null?void 0:x.paper)!=null?o:PK,he=Wr({elementType:le,externalSlotProps:$({},W,{style:Y?W.style:$({},W.style,{opacity:0})}),additionalProps:{elevation:y,ref:D},ownerState:F,className:je(j.paper,W==null?void 0:W.className)}),pe=Wr({elementType:ae,externalSlotProps:(E==null?void 0:E.root)||{},externalForwardedProps:H,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:Q,open:_},ownerState:F,className:je(j.root,g)}),{slotProps:ve}=pe,ye=Le(pe,iye);return C.jsx(ae,$({},ye,!$l(ae)&&{slotProps:ve,disableScrollLock:L},{children:C.jsx(I,$({appear:!0,in:_,onEntering:ce,onExited:ue,timeout:se},N,{children:C.jsx(le,$({},he,{children:p}))}))}))}),lye=aye;function cye(e){return St("MuiMenu",e)}kt("MuiMenu",["root","paper","list"]);const uye=["onEntering"],dye=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],fye={vertical:"top",horizontal:"right"},hye={vertical:"top",horizontal:"left"},pye=e=>{const{classes:t}=e;return Tt({root:["root"],paper:["paper"],list:["list"]},cye,t)},mye=Ee(lye,{shouldForwardProp:e=>ga(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gye=Ee(PK,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),vye=Ee(ek,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),yye=R.forwardRef(function(t,n){var r,i;const o=At({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:l,className:c,disableAutoFocusItem:d=!1,MenuListProps:f={},onClose:h,open:p,PaperProps:g={},PopoverClasses:v,transitionDuration:y="auto",TransitionProps:{onEntering:S}={},variant:_="selectedMenu",slots:b={},slotProps:x={}}=o,E=Le(o.TransitionProps,uye),A=Le(o,dye),I=Rn(),k=I.direction==="rtl",O=$({},o,{autoFocus:s,disableAutoFocusItem:d,MenuListProps:f,onEntering:S,PaperProps:g,transitionDuration:y,TransitionProps:E,variant:_}),L=pye(O),N=s&&!d&&p,H=R.useRef(null),W=(K,Y)=>{H.current&&H.current.adjustStyleForScrollbar(K,I),S&&S(K,Y)},z=K=>{K.key==="Tab"&&(K.preventDefault(),h&&h(K,"tabKeyDown"))};let D=-1;R.Children.map(l,(K,Y)=>{R.isValidElement(K)&&(K.props.disabled||(_==="selectedMenu"&&K.props.selected||D===-1)&&(D=Y))});const F=(r=b.paper)!=null?r:gye,j=(i=x.paper)!=null?i:g,V=Wr({elementType:b.root,externalSlotProps:x.root,ownerState:O,className:[L.root,c]}),G=Wr({elementType:F,externalSlotProps:j,ownerState:O,className:L.paper});return C.jsx(mye,$({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?fye:hye,slots:{paper:F,root:b.root},slotProps:{root:V,paper:G},open:p,ref:n,transitionDuration:y,TransitionProps:$({onEntering:W},E),ownerState:O},A,{classes:v,children:C.jsx(vye,$({onKeyDown:z,actions:H,autoFocus:s&&(D===-1||d),autoFocusItem:N,variant:_},f,{className:je(L.list,f.className),children:l}))}))}),kp=yye;function bye(e){return St("MuiMenuItem",e)}const xye=kt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),tb=xye,wye=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],_ye=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Sye=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:s}=e,c=Tt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},bye,s);return $({},s,c)},Eye=Ee(ku,{shouldForwardProp:e=>ga(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:_ye})(({theme:e,ownerState:t})=>$({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${tb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_n(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_n(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_n(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_n(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${tb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tb.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${c8.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${c8.inset}`]:{marginLeft:52},[`& .${IE.root}`]:{marginTop:0,marginBottom:0},[`& .${IE.inset}`]:{paddingLeft:36},[`& .${y8.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${y8.root} svg`]:{fontSize:"1.25rem"}}))),Cye=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:s=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:d,role:f="menuitem",tabIndex:h,className:p}=r,g=Le(r,wye),v=R.useContext(la),y=R.useMemo(()=>({dense:s||v.dense||!1,disableGutters:c}),[v.dense,s,c]),S=R.useRef(null);ko(()=>{i&&S.current&&S.current.focus()},[i]);const _=$({},r,{dense:y.dense,divider:l,disableGutters:c}),b=Sye(r),x=mr(S,n);let E;return r.disabled||(E=h!==void 0?h:-1),C.jsx(la.Provider,{value:y,children:C.jsx(Eye,$({ref:x,role:f,tabIndex:E,component:o,focusVisibleClassName:je(b.focusVisible,d),className:je(b.root,p)},g,{ownerState:_,classes:b}))})}),du=Cye;function Tye(e){return St("MuiNativeSelect",e)}const kye=kt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),H4=kye,Aye=["className","disabled","error","IconComponent","inputRef","variant"],Iye=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:s}=e,l={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Me(n)}`,o&&"iconOpen",r&&"disabled"]};return Tt(l,Tye,t)},OK=({ownerState:e,theme:t})=>$({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${H4.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Rye=Ee("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ga,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${H4.multiple}`]:t.multiple}]}})(OK),MK=({ownerState:e,theme:t})=>$({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${H4.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Pye=Ee("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Me(n.variant)}`],n.open&&t.iconOpen]}})(MK),Oye=R.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:s,inputRef:l,variant:c="standard"}=t,d=Le(t,Aye),f=$({},t,{disabled:i,variant:c,error:o}),h=Iye(f);return C.jsxs(R.Fragment,{children:[C.jsx(Rye,$({ownerState:f,className:je(h.select,r),disabled:i,ref:l||n},d)),t.multiple?null:C.jsx(Pye,{as:s,ownerState:f,className:h.icon})]})}),Mye=Oye;var S8;const Dye=["children","classes","className","label","notched"],Lye=Ee("fieldset")({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%"}),Nye=Ee("legend")(({ownerState:e,theme:t})=>$({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&$({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function Bye(e){const{className:t,label:n,notched:r}=e,i=Le(e,Dye),o=n!=null&&n!=="",s=$({},e,{notched:r,withLabel:o});return C.jsx(Lye,$({"aria-hidden":!0,className:t,ownerState:s},i,{children:C.jsx(Nye,{ownerState:s,children:o?C.jsx("span",{children:n}):S8||(S8=C.jsx("span",{className:"notranslate",children:"​"}))})}))}const $ye=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Fye=e=>{const{classes:t}=e,r=Tt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},upe,t);return $({},t,r)},zye=Ee(YT,{shouldForwardProp:e=>ga(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:qT})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Lu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Lu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Lu.focused} .${Lu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Lu.error} .${Lu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Lu.disabled} .${Lu.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),jye=Ee(Bye,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=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)`:t}}),Uye=Ee(KT,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:XT})(({theme:e,ownerState:t})=>$({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),DK=R.forwardRef(function(t,n){var r,i,o,s,l;const c=At({props:t,name:"MuiOutlinedInput"}),{components:d={},fullWidth:f=!1,inputComponent:h="input",label:p,multiline:g=!1,notched:v,slots:y={},type:S="text"}=c,_=Le(c,$ye),b=Fye(c),x=Wd(),E=Tp({props:c,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),A=$({},c,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:x,fullWidth:f,hiddenLabel:E.hiddenLabel,multiline:g,size:E.size,type:S}),I=(r=(i=y.root)!=null?i:d.Root)!=null?r:zye,k=(o=(s=y.input)!=null?s:d.Input)!=null?o:Uye;return C.jsx(QT,$({slots:{root:I,input:k},renderSuffix:O=>C.jsx(jye,{ownerState:A,className:b.notchedOutline,label:p!=null&&p!==""&&E.required?l||(l=C.jsxs(R.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:f,inputComponent:h,multiline:g,ref:n,type:S},_,{classes:$({},b,{notchedOutline:null})}))});DK.muiName="Input";const LK=DK;function Hye(e){return St("MuiSelect",e)}const Wye=kt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),nb=Wye;var E8;const Gye=["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"],Vye=Ee("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${nb.select}`]:t.select},{[`&.${nb.select}`]:t[n.variant]},{[`&.${nb.error}`]:t.error},{[`&.${nb.multiple}`]:t.multiple}]}})(OK,{[`&.${nb.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),qye=Ee("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Me(n.variant)}`],n.open&&t.iconOpen]}})(MK),Xye=Ee("input",{shouldForwardProp:e=>B5(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function C8(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Yye(e){return e==null||typeof e=="string"&&!e.trim()}const Kye=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:s}=e,l={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Me(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Tt(l,Hye,t)},Qye=R.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":o,autoFocus:s,autoWidth:l,children:c,className:d,defaultOpen:f,defaultValue:h,disabled:p,displayEmpty:g,error:v=!1,IconComponent:y,inputRef:S,labelId:_,MenuProps:b={},multiple:x,name:E,onBlur:A,onChange:I,onClose:k,onFocus:O,onOpen:L,open:N,readOnly:H,renderValue:W,SelectDisplayProps:z={},tabIndex:D,value:F,variant:j="standard"}=t,V=Le(t,Gye),[G,K]=Ex({controlled:F,default:h,name:"Select"}),[Y,J]=Ex({controlled:N,default:f,name:"Select"}),ie=R.useRef(null),ce=R.useRef(null),[ue,se]=R.useState(null),{current:Q}=R.useRef(N!=null),[ae,le]=R.useState(),he=mr(n,S),pe=R.useCallback(Ae=>{ce.current=Ae,Ae&&se(Ae)},[]),ve=ue==null?void 0:ue.parentNode;R.useImperativeHandle(he,()=>({focus:()=>{ce.current.focus()},node:ie.current,value:G}),[G]),R.useEffect(()=>{f&&Y&&ue&&!Q&&(le(l?null:ve.clientWidth),ce.current.focus())},[ue,l]),R.useEffect(()=>{s&&ce.current.focus()},[s]),R.useEffect(()=>{if(!_)return;const Ae=Ar(ce.current).getElementById(_);if(Ae){const ot=()=>{getSelection().isCollapsed&&ce.current.focus()};return Ae.addEventListener("click",ot),()=>{Ae.removeEventListener("click",ot)}}},[_]);const ye=(Ae,ot)=>{Ae?L&&L(ot):k&&k(ot),Q||(le(l?null:ve.clientWidth),J(Ae))},xe=Ae=>{Ae.button===0&&(Ae.preventDefault(),ce.current.focus(),ye(!0,Ae))},me=Ae=>{ye(!1,Ae)},be=R.Children.toArray(c),Qe=Ae=>{const ot=be.find($t=>$t.props.value===Ae.target.value);ot!==void 0&&(K(ot.props.value),I&&I(Ae,ot))},qe=Ae=>ot=>{let $t;if(ot.currentTarget.hasAttribute("tabindex")){if(x){$t=Array.isArray(G)?G.slice():[];const Ie=G.indexOf(Ae.props.value);Ie===-1?$t.push(Ae.props.value):$t.splice(Ie,1)}else $t=Ae.props.value;if(Ae.props.onClick&&Ae.props.onClick(ot),G!==$t&&(K($t),I)){const Ie=ot.nativeEvent||ot,Ue=new Ie.constructor(Ie.type,Ie);Object.defineProperty(Ue,"target",{writable:!0,value:{value:$t,name:E}}),I(Ue,Ae)}x||ye(!1,ot)}},at=Ae=>{H||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ae.key)!==-1&&(Ae.preventDefault(),ye(!0,Ae))},Lt=ue!==null&&Y,Re=Ae=>{!Lt&&A&&(Object.defineProperty(Ae,"target",{writable:!0,value:{value:G,name:E}}),A(Ae))};delete V["aria-invalid"];let Fe,it;const pt=[];let mt=!1;(kE({value:G})||g)&&(W?Fe=W(G):mt=!0);const _e=be.map(Ae=>{if(!R.isValidElement(Ae))return null;let ot;if(x){if(!Array.isArray(G))throw new Error(kd(2));ot=G.some($t=>C8($t,Ae.props.value)),ot&&mt&&pt.push(Ae.props.children)}else ot=C8(G,Ae.props.value),ot&&mt&&(it=Ae.props.children);return R.cloneElement(Ae,{"aria-selected":ot?"true":"false",onClick:qe(Ae),onKeyUp:$t=>{$t.key===" "&&$t.preventDefault(),Ae.props.onKeyUp&&Ae.props.onKeyUp($t)},role:"option",selected:ot,value:void 0,"data-value":Ae.props.value})});mt&&(x?pt.length===0?Fe=null:Fe=pt.reduce((Ae,ot,$t)=>(Ae.push(ot),$t{const{classes:t}=e;return t},W4={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ga(e)&&e!=="variant",slot:"Root"},n0e=Ee(AK,W4)(""),r0e=Ee(LK,W4)(""),i0e=Ee(EK,W4)(""),NK=R.forwardRef(function(t,n){const r=At({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:s={},className:l,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:f=ppe,id:h,input:p,inputProps:g,label:v,labelId:y,MenuProps:S,multiple:_=!1,native:b=!1,onClose:x,onOpen:E,open:A,renderValue:I,SelectDisplayProps:k,variant:O="outlined"}=r,L=Le(r,Zye),N=b?Mye:Jye,H=Wd(),W=Tp({props:r,muiFormControl:H,states:["variant","error"]}),z=W.variant||O,D=$({},r,{variant:z,classes:s}),F=t0e(D),j=Le(F,e0e),V=p||{standard:C.jsx(n0e,{ownerState:D}),outlined:C.jsx(r0e,{label:v,ownerState:D}),filled:C.jsx(i0e,{ownerState:D})}[z],G=mr(n,V.ref);return C.jsx(R.Fragment,{children:R.cloneElement(V,$({inputComponent:N,inputProps:$({children:o,error:W.error,IconComponent:f,variant:z,type:void 0,multiple:_},b?{id:h}:{autoWidth:i,defaultOpen:c,displayEmpty:d,labelId:y,MenuProps:S,onClose:x,onOpen:E,open:A,renderValue:I,SelectDisplayProps:$({id:h},k)},g,{classes:g?zo(j,g.classes):j},p?p.props.inputProps:{})},_&&b&&z==="outlined"?{notched:!0}:{},{ref:G,className:je(V.props.className,l,F.root)},!p&&{variant:z},L))})});NK.muiName="Select";const o0e=NK,s0e=e=>!e||!$l(e),a0e=s0e;function l0e(e){return St("MuiSlider",e)}const c0e=kt("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Za=c0e,u0e=e=>{const{open:t}=e;return{offset:je(t&&Za.valueLabelOpen),circle:Za.valueLabelCircle,label:Za.valueLabelLabel}};function d0e(e){const{children:t,className:n,value:r}=e,i=u0e(e);return t?R.cloneElement(t,{className:je(t.props.className)},C.jsxs(R.Fragment,{children:[t.props.children,C.jsx("span",{className:je(i.offset,n),"aria-hidden":!0,children:C.jsx("span",{className:i.circle,children:C.jsx("span",{className:i.label,children:r})})})]})):null}const f0e=["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 T8(e){return e}const h0e=Ee("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Me(n.color)}`],n.size!=="medium"&&t[`size${Me(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>$({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"&&$({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"&&$({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"},[`&.${Za.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Za.dragging}`]:{[`& .${Za.thumb}, & .${Za.track}`]:{transition:"none"}}})),p0e=Ee("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>$({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})),m0e=Ee("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Gg(e.palette[t.color].main,.62):Wg(e.palette[t.color].main,.5);return $({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),g0e=Ee("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Me(n.color)}`],n.size!=="medium"&&t[`thumbSize${Me(n.size)}`]]}})(({theme:e,ownerState:t})=>$({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":$({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, &.${Za.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:_n(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Za.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:_n(e.palette[t.color].main,.16)}`},[`&.${Za.disabled}`]:{"&:hover":{boxShadow:"none"}}})),v0e=Ee(d0e,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>$({[`&.${Za.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"})),y0e=Ee("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>B5(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>$({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),b0e=Ee("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>B5(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>$({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),x0e=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:s,color:l,size:c}=e,d={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",l&&`color${Me(l)}`,c&&`size${Me(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Me(c)}`,l&&`thumbColor${Me(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Tt(d,l0e,s)},w0e=({children:e})=>e,_0e=R.forwardRef(function(t,n){var r,i,o,s,l,c,d,f,h,p,g,v,y,S,_,b,x,E,A,I,k,O,L,N;const H=At({props:t,name:"MuiSlider"}),z=Rn().direction==="rtl",{"aria-label":D,"aria-valuetext":F,"aria-labelledby":j,component:V="span",components:G={},componentsProps:K={},color:Y="primary",classes:J,className:ie,disableSwap:ce=!1,disabled:ue=!1,getAriaLabel:se,getAriaValueText:Q,marks:ae=!1,max:le=100,min:he=0,orientation:pe="horizontal",size:ve="medium",step:ye=1,scale:xe=T8,slotProps:me,slots:be,track:Qe="normal",valueLabelDisplay:qe="off",valueLabelFormat:at=T8}=H,Lt=Le(H,f0e),Re=$({},H,{isRtl:z,max:le,min:he,classes:J,disabled:ue,disableSwap:ce,orientation:pe,marks:ae,color:Y,size:ve,step:ye,scale:xe,track:Qe,valueLabelDisplay:qe,valueLabelFormat:at}),{axisProps:Fe,getRootProps:it,getHiddenInputProps:pt,getThumbProps:mt,open:_e,active:ze,axis:Ye,focusedThumbIndex:$e,range:Ne,dragging:It,marks:ct,values:Ae,trackOffset:ot,trackLeap:$t,getThumbStyle:Ie}=jhe($({},Re,{rootRef:n}));Re.marked=ct.length>0&&ct.some(Hn=>Hn.label),Re.dragging=It,Re.focusedThumbIndex=$e;const Ue=x0e(Re),yt=(r=(i=be==null?void 0:be.root)!=null?i:G.Root)!=null?r:h0e,Wt=(o=(s=be==null?void 0:be.rail)!=null?s:G.Rail)!=null?o:p0e,pn=(l=(c=be==null?void 0:be.track)!=null?c:G.Track)!=null?l:m0e,$r=(d=(f=be==null?void 0:be.thumb)!=null?f:G.Thumb)!=null?d:g0e,Or=(h=(p=be==null?void 0:be.valueLabel)!=null?p:G.ValueLabel)!=null?h:v0e,Mr=(g=(v=be==null?void 0:be.mark)!=null?v:G.Mark)!=null?g:y0e,Fr=(y=(S=be==null?void 0:be.markLabel)!=null?S:G.MarkLabel)!=null?y:b0e,Jr=(_=(b=be==null?void 0:be.input)!=null?b:G.Input)!=null?_:"input",Ko=(x=me==null?void 0:me.root)!=null?x:K.root,Ou=(E=me==null?void 0:me.rail)!=null?E:K.rail,Ws=(A=me==null?void 0:me.track)!=null?A:K.track,nc=(I=me==null?void 0:me.thumb)!=null?I:K.thumb,rc=(k=me==null?void 0:me.valueLabel)!=null?k:K.valueLabel,ef=(O=me==null?void 0:me.mark)!=null?O:K.mark,Qo=(L=me==null?void 0:me.markLabel)!=null?L:K.markLabel,tf=(N=me==null?void 0:me.input)!=null?N:K.input,oo=Wr({elementType:yt,getSlotProps:it,externalSlotProps:Ko,externalForwardedProps:Lt,additionalProps:$({},a0e(yt)&&{as:V}),ownerState:$({},Re,Ko==null?void 0:Ko.ownerState),className:[Ue.root,ie]}),ic=Wr({elementType:Wt,externalSlotProps:Ou,ownerState:Re,className:Ue.rail}),Si=Wr({elementType:pn,externalSlotProps:Ws,additionalProps:{style:$({},Fe[Ye].offset(ot),Fe[Ye].leap($t))},ownerState:$({},Re,Ws==null?void 0:Ws.ownerState),className:Ue.track}),Jo=Wr({elementType:$r,getSlotProps:mt,externalSlotProps:nc,ownerState:$({},Re,nc==null?void 0:nc.ownerState),className:Ue.thumb}),nf=Wr({elementType:Or,externalSlotProps:rc,ownerState:$({},Re,rc==null?void 0:rc.ownerState),className:Ue.valueLabel}),Zo=Wr({elementType:Mr,externalSlotProps:ef,ownerState:Re,className:Ue.mark}),ba=Wr({elementType:Fr,externalSlotProps:Qo,ownerState:Re,className:Ue.markLabel}),Mu=Wr({elementType:Jr,getSlotProps:pt,externalSlotProps:tf,ownerState:Re});return C.jsxs(yt,$({},oo,{children:[C.jsx(Wt,$({},ic)),C.jsx(pn,$({},Si)),ct.filter(Hn=>Hn.value>=he&&Hn.value<=le).map((Hn,Jn)=>{const vl=TE(Hn.value,he,le),yl=Fe[Ye].offset(vl);let so;return Qe===!1?so=Ae.indexOf(Hn.value)!==-1:so=Qe==="normal"&&(Ne?Hn.value>=Ae[0]&&Hn.value<=Ae[Ae.length-1]:Hn.value<=Ae[0])||Qe==="inverted"&&(Ne?Hn.value<=Ae[0]||Hn.value>=Ae[Ae.length-1]:Hn.value>=Ae[0]),C.jsxs(R.Fragment,{children:[C.jsx(Mr,$({"data-index":Jn},Zo,!$l(Mr)&&{markActive:so},{style:$({},yl,Zo.style),className:je(Zo.className,so&&Ue.markActive)})),Hn.label!=null?C.jsx(Fr,$({"aria-hidden":!0,"data-index":Jn},ba,!$l(Fr)&&{markLabelActive:so},{style:$({},yl,ba.style),className:je(Ue.markLabel,ba.className,so&&Ue.markLabelActive),children:Hn.label})):null]},Jn)}),Ae.map((Hn,Jn)=>{const vl=TE(Hn,he,le),yl=Fe[Ye].offset(vl),so=qe==="off"?w0e:Or;return C.jsx(so,$({},!$l(so)&&{valueLabelFormat:at,valueLabelDisplay:qe,value:typeof at=="function"?at(xe(Hn),Jn):at,index:Jn,open:_e===Jn||ze===Jn||qe==="on",disabled:ue},nf,{children:C.jsx($r,$({"data-index":Jn},Jo,{className:je(Ue.thumb,Jo.className,ze===Jn&&Ue.active,$e===Jn&&Ue.focusVisible),style:$({},yl,Ie(Jn),Jo.style),children:C.jsx(Jr,$({"data-index":Jn,"aria-label":se?se(Jn):D,"aria-valuenow":xe(Hn),"aria-labelledby":j,"aria-valuetext":Q?Q(xe(Hn),Jn):F,value:Ae[Jn]},Mu))}))}),Jn)})]}))}),S0e=_0e;function E0e(e){return St("MuiSnackbarContent",e)}kt("MuiSnackbarContent",["root","message","action"]);const C0e=["action","className","message","role"],T0e=e=>{const{classes:t}=e;return Tt({root:["root"],action:["action"],message:["message"]},E0e,t)},k0e=Ee(Yg,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=Vae(e.palette.background.default,t);return $({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),A0e=Ee("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),I0e=Ee("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),R0e=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiSnackbarContent"}),{action:i,className:o,message:s,role:l="alert"}=r,c=Le(r,C0e),d=r,f=T0e(d);return C.jsxs(k0e,$({role:l,square:!0,elevation:6,className:je(f.root,o),ownerState:d,ref:n},c,{children:[C.jsx(A0e,{className:f.message,ownerState:d,children:s}),i?C.jsx(I0e,{className:f.action,ownerState:d,children:i}):null]}))}),P0e=R0e;function O0e(e){return St("MuiSnackbar",e)}kt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const M0e=["onEnter","onExited"],D0e=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],L0e=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Me(n.vertical)}${Me(n.horizontal)}`]};return Tt(r,O0e,t)},k8=Ee("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Me(n.anchorOrigin.vertical)}${Me(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return $({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:$({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),N0e=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiSnackbar"}),i=Rn(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:f,className:h,ClickAwayListenerProps:p,ContentProps:g,disableWindowBlurListener:v=!1,message:y,open:S,TransitionComponent:_=AE,transitionDuration:b=o,TransitionProps:{onEnter:x,onExited:E}={}}=r,A=Le(r.TransitionProps,M0e),I=Le(r,D0e),k=$({},r,{anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:d,disableWindowBlurListener:v,TransitionComponent:_,transitionDuration:b}),O=L0e(k),{getRootProps:L,onClickAway:N}=Uhe($({},k)),[H,W]=R.useState(!0),z=Wr({elementType:k8,getSlotProps:L,externalForwardedProps:I,ownerState:k,additionalProps:{ref:n},className:[O.root,h]}),D=j=>{W(!0),E&&E(j)},F=(j,V)=>{W(!1),x&&x(j,V)};return!S&&H?null:C.jsx(nfe,$({onClickAway:N},p,{children:C.jsx(k8,$({},z,{children:C.jsx(_,$({appear:!0,in:S,timeout:b,direction:l==="top"?"down":"up",onEnter:F,onExited:D},A,{children:f||C.jsx(P0e,$({message:y,action:s},g))}))}))}))}),B0e=N0e;function $0e(e){return St("MuiTooltip",e)}const F0e=kt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),od=F0e,z0e=["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 j0e(e){return Math.round(e*1e5)/1e5}const U0e=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Me(o.split("-")[0])}`],arrow:["arrow"]};return Tt(s,$0e,t)},H0e=Ee(gK,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>$({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${od.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${od.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${od.arrow}`]:$({},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"] .${od.arrow}`]:$({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),W0e=Ee("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Me(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>$({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:_n(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:`${j0e(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${od.popper}[data-popper-placement*="left"] &`]:$({transformOrigin:"right center"},t.isRtl?$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):$({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${od.popper}[data-popper-placement*="right"] &`]:$({transformOrigin:"left center"},t.isRtl?$({marginRight:"14px"},t.touch&&{marginRight:"24px"}):$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${od.popper}[data-popper-placement*="top"] &`]:$({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${od.popper}[data-popper-placement*="bottom"] &`]:$({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),G0e=Ee("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:_n(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Yw=!1,QD=null,rb={x:0,y:0};function Kw(e,t){return n=>{t&&t(n),e(n)}}const V0e=R.forwardRef(function(t,n){var r,i,o,s,l,c,d,f,h,p,g,v,y,S,_,b,x,E,A;const I=At({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:O,components:L={},componentsProps:N={},describeChild:H=!1,disableFocusListener:W=!1,disableHoverListener:z=!1,disableInteractive:D=!1,disableTouchListener:F=!1,enterDelay:j=100,enterNextDelay:V=0,enterTouchDelay:G=700,followCursor:K=!1,id:Y,leaveDelay:J=0,leaveTouchDelay:ie=1500,onClose:ce,onOpen:ue,open:se,placement:Q="bottom",PopperComponent:ae,PopperProps:le={},slotProps:he={},slots:pe={},title:ve,TransitionComponent:ye=AE,TransitionProps:xe}=I,me=Le(I,z0e),be=R.isValidElement(O)?O:C.jsx("span",{children:O}),Qe=Rn(),qe=Qe.direction==="rtl",[at,Lt]=R.useState(),[Re,Fe]=R.useState(null),it=R.useRef(!1),pt=D||K,mt=R.useRef(),_e=R.useRef(),ze=R.useRef(),Ye=R.useRef(),[$e,Ne]=Ex({controlled:se,default:!1,name:"Tooltip",state:"open"});let It=$e;const ct=v5(Y),Ae=R.useRef(),ot=R.useCallback(()=>{Ae.current!==void 0&&(document.body.style.WebkitUserSelect=Ae.current,Ae.current=void 0),clearTimeout(Ye.current)},[]);R.useEffect(()=>()=>{clearTimeout(mt.current),clearTimeout(_e.current),clearTimeout(ze.current),ot()},[ot]);const $t=Qt=>{clearTimeout(QD),Yw=!0,Ne(!0),ue&&!It&&ue(Qt)},Ie=Zi(Qt=>{clearTimeout(QD),QD=setTimeout(()=>{Yw=!1},800+J),Ne(!1),ce&&It&&ce(Qt),clearTimeout(mt.current),mt.current=setTimeout(()=>{it.current=!1},Qe.transitions.duration.shortest)}),Ue=Qt=>{it.current&&Qt.type!=="touchstart"||(at&&at.removeAttribute("title"),clearTimeout(_e.current),clearTimeout(ze.current),j||Yw&&V?_e.current=setTimeout(()=>{$t(Qt)},Yw?V:j):$t(Qt))},yt=Qt=>{clearTimeout(_e.current),clearTimeout(ze.current),ze.current=setTimeout(()=>{Ie(Qt)},J)},{isFocusVisibleRef:Wt,onBlur:pn,onFocus:$r,ref:Or}=y5(),[,Mr]=R.useState(!1),Fr=Qt=>{pn(Qt),Wt.current===!1&&(Mr(!1),yt(Qt))},Jr=Qt=>{at||Lt(Qt.currentTarget),$r(Qt),Wt.current===!0&&(Mr(!0),Ue(Qt))},Ko=Qt=>{it.current=!0;const vr=be.props;vr.onTouchStart&&vr.onTouchStart(Qt)},Ou=Ue,Ws=yt,nc=Qt=>{Ko(Qt),clearTimeout(ze.current),clearTimeout(mt.current),ot(),Ae.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ye.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ae.current,Ue(Qt)},G)},rc=Qt=>{be.props.onTouchEnd&&be.props.onTouchEnd(Qt),ot(),clearTimeout(ze.current),ze.current=setTimeout(()=>{Ie(Qt)},ie)};R.useEffect(()=>{if(!It)return;function Qt(vr){(vr.key==="Escape"||vr.key==="Esc")&&Ie(vr)}return document.addEventListener("keydown",Qt),()=>{document.removeEventListener("keydown",Qt)}},[Ie,It]);const ef=mr(be.ref,Or,Lt,n);!ve&&ve!==0&&(It=!1);const Qo=R.useRef(),tf=Qt=>{const vr=be.props;vr.onMouseMove&&vr.onMouseMove(Qt),rb={x:Qt.clientX,y:Qt.clientY},Qo.current&&Qo.current.update()},oo={},ic=typeof ve=="string";H?(oo.title=!It&&ic&&!z?ve:null,oo["aria-describedby"]=It?ct:null):(oo["aria-label"]=ic?ve:null,oo["aria-labelledby"]=It&&!ic?ct:null);const Si=$({},oo,me,be.props,{className:je(me.className,be.props.className),onTouchStart:Ko,ref:ef},K?{onMouseMove:tf}:{}),Jo={};F||(Si.onTouchStart=nc,Si.onTouchEnd=rc),z||(Si.onMouseOver=Kw(Ou,Si.onMouseOver),Si.onMouseLeave=Kw(Ws,Si.onMouseLeave),pt||(Jo.onMouseOver=Ou,Jo.onMouseLeave=Ws)),W||(Si.onFocus=Kw(Jr,Si.onFocus),Si.onBlur=Kw(Fr,Si.onBlur),pt||(Jo.onFocus=Jr,Jo.onBlur=Fr));const nf=R.useMemo(()=>{var Qt;let vr=[{name:"arrow",enabled:!!Re,options:{element:Re,padding:4}}];return(Qt=le.popperOptions)!=null&&Qt.modifiers&&(vr=vr.concat(le.popperOptions.modifiers)),$({},le.popperOptions,{modifiers:vr})},[Re,le]),Zo=$({},I,{isRtl:qe,arrow:k,disableInteractive:pt,placement:Q,PopperComponentProp:ae,touch:it.current}),ba=U0e(Zo),Mu=(r=(i=pe.popper)!=null?i:L.Popper)!=null?r:H0e,Hn=(o=(s=(l=pe.transition)!=null?l:L.Transition)!=null?s:ye)!=null?o:AE,Jn=(c=(d=pe.tooltip)!=null?d:L.Tooltip)!=null?c:W0e,vl=(f=(h=pe.arrow)!=null?h:L.Arrow)!=null?f:G0e,yl=Rb(Mu,$({},le,(p=he.popper)!=null?p:N.popper,{className:je(ba.popper,le==null?void 0:le.className,(g=(v=he.popper)!=null?v:N.popper)==null?void 0:g.className)}),Zo),so=Rb(Hn,$({},xe,(y=he.transition)!=null?y:N.transition),Zo),hv=Rb(Jn,$({},(S=he.tooltip)!=null?S:N.tooltip,{className:je(ba.tooltip,(_=(b=he.tooltip)!=null?b:N.tooltip)==null?void 0:_.className)}),Zo),pv=Rb(vl,$({},(x=he.arrow)!=null?x:N.arrow,{className:je(ba.arrow,(E=(A=he.arrow)!=null?A:N.arrow)==null?void 0:E.className)}),Zo);return C.jsxs(R.Fragment,{children:[R.cloneElement(be,Si),C.jsx(Mu,$({as:ae??gK,placement:Q,anchorEl:K?{getBoundingClientRect:()=>({top:rb.y,left:rb.x,right:rb.x,bottom:rb.y,width:0,height:0})}:at,popperRef:Qo,open:at?It:!1,id:ct,transition:!0},Jo,yl,{popperOptions:nf,children:({TransitionProps:Qt})=>C.jsx(Hn,$({timeout:Qe.transitions.duration.shorter},Qt,so,{children:C.jsxs(Jn,$({},hv,{children:[ve,k?C.jsx(vl,$({},pv,{ref:Fe})):null]}))}))}))]})}),Gd=V0e;function q0e(e){return St("MuiSwitch",e)}const X0e=kt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),xo=X0e,Y0e=["className","color","edge","size","sx"],K0e=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:s}=e,l={root:["root",n&&`edge${Me(n)}`,`size${Me(r)}`],switchBase:["switchBase",`color${Me(i)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Tt(l,q0e,t);return $({},t,c)},Q0e=Ee("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Me(n.edge)}`],t[`size${Me(n.size)}`]]}})(({ownerState:e})=>$({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"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${xo.thumb}`]:{width:16,height:16},[`& .${xo.switchBase}`]:{padding:4,[`&.${xo.checked}`]:{transform:"translateX(16px)"}}})),J0e=Ee(xK,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${xo.input}`]:t.input},n.color!=="default"&&t[`color${Me(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${xo.checked}`]:{transform:"translateX(20px)"},[`&.${xo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${xo.checked} + .${xo.track}`]:{opacity:.5},[`&.${xo.disabled} + .${xo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${xo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>$({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:_n(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${xo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_n(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Gg(e.palette[t.color].main,.62):Wg(e.palette[t.color].main,.55)}`}},[`&.${xo.checked} + .${xo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Z0e=Ee("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),ebe=Ee("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),tbe=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:s=!1,size:l="medium",sx:c}=r,d=Le(r,Y0e),f=$({},r,{color:o,edge:s,size:l}),h=K0e(f),p=C.jsx(ebe,{className:h.thumb,ownerState:f});return C.jsxs(Q0e,{className:je(h.root,i),sx:c,ownerState:f,children:[C.jsx(J0e,$({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:f},d,{classes:$({},h,{root:h.switchBase})})),C.jsx(Z0e,{className:h.track,ownerState:f})]})}),_g=tbe;function nbe(e){return St("MuiTab",e)}const rbe=kt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),mh=rbe,ibe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],obe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:s,selected:l,disabled:c}=e,d={root:["root",o&&s&&"labelIcon",`textColor${Me(n)}`,r&&"fullWidth",i&&"wrapped",l&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return Tt(d,nbe,t)},sbe=Ee(ku,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Me(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>$({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${mh.iconWrapper}`]:$({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${mh.selected}`]:{opacity:1},[`&.${mh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${mh.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${mh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${mh.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${mh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),abe=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:s=!1,fullWidth:l,icon:c,iconPosition:d="top",indicator:f,label:h,onChange:p,onClick:g,onFocus:v,selected:y,selectionFollowsFocus:S,textColor:_="inherit",value:b,wrapped:x=!1}=r,E=Le(r,ibe),A=$({},r,{disabled:o,disableFocusRipple:s,selected:y,icon:!!c,iconPosition:d,label:!!h,fullWidth:l,textColor:_,wrapped:x}),I=obe(A),k=c&&h&&R.isValidElement(c)?R.cloneElement(c,{className:je(I.iconWrapper,c.props.className)}):c,O=N=>{!y&&p&&p(N,b),g&&g(N)},L=N=>{S&&!y&&p&&p(N,b),v&&v(N)};return C.jsxs(sbe,$({focusRipple:!s,className:je(I.root,i),ref:n,role:"tab","aria-selected":y,disabled:o,onClick:O,onFocus:L,ownerState:A,tabIndex:y?0:-1},E,{children:[d==="top"||d==="start"?C.jsxs(R.Fragment,{children:[k,h]}):C.jsxs(R.Fragment,{children:[h,k]}),f]}))}),Rm=abe;function lbe(e){return St("MuiToolbar",e)}kt("MuiToolbar",["root","gutters","regular","dense"]);const cbe=["className","component","disableGutters","variant"],ube=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Tt({root:["root",!n&&"gutters",r]},lbe,t)},dbe=Ee("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),fbe=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:s=!1,variant:l="regular"}=r,c=Le(r,cbe),d=$({},r,{component:o,disableGutters:s,variant:l}),f=ube(d);return C.jsx(dbe,$({as:o,className:je(f.root,i),ref:n,ownerState:d},c))}),hbe=fbe,pbe=Bt(C.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),mbe=Bt(C.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function gbe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function vbe(e,t,n,r={},i=()=>{}){const{ease:o=gbe,duration:s=300}=r;let l=null;const c=t[e];let d=!1;const f=()=>{d=!0},h=p=>{if(d){i(new Error("Animation cancelled"));return}l===null&&(l=p);const g=Math.min(1,(p-l)/s);if(t[e]=o(g)*(n-c)+c,g>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(h)};return c===n?(i(new Error("Element already at target position")),f):(requestAnimationFrame(h),f)}const ybe=["onChange"],bbe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function xbe(e){const{onChange:t}=e,n=Le(e,ybe),r=R.useRef(),i=R.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return ko(()=>{const s=WC(()=>{const c=r.current;o(),c!==r.current&&t(r.current)}),l=pu(i.current);return l.addEventListener("resize",s),()=>{s.clear(),l.removeEventListener("resize",s)}},[t]),R.useEffect(()=>{o(),t(r.current)},[t]),C.jsx("div",$({style:bbe,ref:i},n))}function wbe(e){return St("MuiTabScrollButton",e)}const _be=kt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Sbe=_be,Ebe=["className","slots","slotProps","direction","orientation","disabled"],Cbe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Tt({root:["root",n,r&&"disabled"]},wbe,t)},Tbe=Ee(ku,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>$({width:40,flexShrink:0,opacity:.8,[`&.${Sbe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),kbe=R.forwardRef(function(t,n){var r,i;const o=At({props:t,name:"MuiTabScrollButton"}),{className:s,slots:l={},slotProps:c={},direction:d}=o,f=Le(o,Ebe),p=Rn().direction==="rtl",g=$({isRtl:p},o),v=Cbe(g),y=(r=l.StartScrollButtonIcon)!=null?r:pbe,S=(i=l.EndScrollButtonIcon)!=null?i:mbe,_=Wr({elementType:y,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),b=Wr({elementType:S,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return C.jsx(Tbe,$({component:"div",className:je(v.root,s),ref:n,role:null,ownerState:g,tabIndex:null},f,{children:d==="left"?C.jsx(y,$({},_)):C.jsx(S,$({},b))}))}),Abe=kbe;function Ibe(e){return St("MuiTabs",e)}const Rbe=kt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),JD=Rbe,Pbe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],A8=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,I8=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Qw=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=n(e,i);else{i.focus();return}}},Obe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:s,scrollButtonsHideMobile:l,classes:c}=e;return Tt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Ibe,c)},Mbe=Ee("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${JD.scrollButtons}`]:t.scrollButtons},{[`& .${JD.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>$({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${JD.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Dbe=Ee("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>$({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Lbe=Ee("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>$({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Nbe=Ee("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>$({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),Bbe=Ee(xbe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),R8={},$be=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiTabs"}),i=Rn(),o=i.direction==="rtl",{"aria-label":s,"aria-labelledby":l,action:c,centered:d=!1,children:f,className:h,component:p="div",allowScrollButtonsMobile:g=!1,indicatorColor:v="primary",onChange:y,orientation:S="horizontal",ScrollButtonComponent:_=Abe,scrollButtons:b="auto",selectionFollowsFocus:x,slots:E={},slotProps:A={},TabIndicatorProps:I={},TabScrollButtonProps:k={},textColor:O="primary",value:L,variant:N="standard",visibleScrollbar:H=!1}=r,W=Le(r,Pbe),z=N==="scrollable",D=S==="vertical",F=D?"scrollTop":"scrollLeft",j=D?"top":"left",V=D?"bottom":"right",G=D?"clientHeight":"clientWidth",K=D?"height":"width",Y=$({},r,{component:p,allowScrollButtonsMobile:g,indicatorColor:v,orientation:S,vertical:D,scrollButtons:b,textColor:O,variant:N,visibleScrollbar:H,fixed:!z,hideScrollbar:z&&!H,scrollableX:z&&!D,scrollableY:z&&D,centered:d&&!z,scrollButtonsHideMobile:!g}),J=Obe(Y),ie=Wr({elementType:E.StartScrollButtonIcon,externalSlotProps:A.startScrollButtonIcon,ownerState:Y}),ce=Wr({elementType:E.EndScrollButtonIcon,externalSlotProps:A.endScrollButtonIcon,ownerState:Y}),[ue,se]=R.useState(!1),[Q,ae]=R.useState(R8),[le,he]=R.useState(!1),[pe,ve]=R.useState(!1),[ye,xe]=R.useState(!1),[me,be]=R.useState({overflow:"hidden",scrollbarWidth:0}),Qe=new Map,qe=R.useRef(null),at=R.useRef(null),Lt=()=>{const Ie=qe.current;let Ue;if(Ie){const Wt=Ie.getBoundingClientRect();Ue={clientWidth:Ie.clientWidth,scrollLeft:Ie.scrollLeft,scrollTop:Ie.scrollTop,scrollLeftNormalized:voe(Ie,i.direction),scrollWidth:Ie.scrollWidth,top:Wt.top,bottom:Wt.bottom,left:Wt.left,right:Wt.right}}let yt;if(Ie&&L!==!1){const Wt=at.current.children;if(Wt.length>0){const pn=Wt[Qe.get(L)];yt=pn?pn.getBoundingClientRect():null}}return{tabsMeta:Ue,tabMeta:yt}},Re=Zi(()=>{const{tabsMeta:Ie,tabMeta:Ue}=Lt();let yt=0,Wt;if(D)Wt="top",Ue&&Ie&&(yt=Ue.top-Ie.top+Ie.scrollTop);else if(Wt=o?"right":"left",Ue&&Ie){const $r=o?Ie.scrollLeftNormalized+Ie.clientWidth-Ie.scrollWidth:Ie.scrollLeft;yt=(o?-1:1)*(Ue[Wt]-Ie[Wt]+$r)}const pn={[Wt]:yt,[K]:Ue?Ue[K]:0};if(isNaN(Q[Wt])||isNaN(Q[K]))ae(pn);else{const $r=Math.abs(Q[Wt]-pn[Wt]),Or=Math.abs(Q[K]-pn[K]);($r>=1||Or>=1)&&ae(pn)}}),Fe=(Ie,{animation:Ue=!0}={})=>{Ue?vbe(F,qe.current,Ie,{duration:i.transitions.duration.standard}):qe.current[F]=Ie},it=Ie=>{let Ue=qe.current[F];D?Ue+=Ie:(Ue+=Ie*(o?-1:1),Ue*=o&&bq()==="reverse"?-1:1),Fe(Ue)},pt=()=>{const Ie=qe.current[G];let Ue=0;const yt=Array.from(at.current.children);for(let Wt=0;WtIe){Wt===0&&(Ue=Ie);break}Ue+=pn[G]}return Ue},mt=()=>{it(-1*pt())},_e=()=>{it(pt())},ze=R.useCallback(Ie=>{be({overflow:null,scrollbarWidth:Ie})},[]),Ye=()=>{const Ie={};Ie.scrollbarSizeListener=z?C.jsx(Bbe,{onChange:ze,className:je(J.scrollableX,J.hideScrollbar)}):null;const yt=z&&(b==="auto"&&(le||pe)||b===!0);return Ie.scrollButtonStart=yt?C.jsx(_,$({slots:{StartScrollButtonIcon:E.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ie},orientation:S,direction:o?"right":"left",onClick:mt,disabled:!le},k,{className:je(J.scrollButtons,k.className)})):null,Ie.scrollButtonEnd=yt?C.jsx(_,$({slots:{EndScrollButtonIcon:E.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ce},orientation:S,direction:o?"left":"right",onClick:_e,disabled:!pe},k,{className:je(J.scrollButtons,k.className)})):null,Ie},$e=Zi(Ie=>{const{tabsMeta:Ue,tabMeta:yt}=Lt();if(!(!yt||!Ue)){if(yt[j]Ue[V]){const Wt=Ue[F]+(yt[V]-Ue[V]);Fe(Wt,{animation:Ie})}}}),Ne=Zi(()=>{z&&b!==!1&&xe(!ye)});R.useEffect(()=>{const Ie=WC(()=>{qe.current&&Re()}),Ue=pu(qe.current);Ue.addEventListener("resize",Ie);let yt;return typeof ResizeObserver<"u"&&(yt=new ResizeObserver(Ie),Array.from(at.current.children).forEach(Wt=>{yt.observe(Wt)})),()=>{Ie.clear(),Ue.removeEventListener("resize",Ie),yt&&yt.disconnect()}},[Re]),R.useEffect(()=>{const Ie=Array.from(at.current.children),Ue=Ie.length;if(typeof IntersectionObserver<"u"&&Ue>0&&z&&b!==!1){const yt=Ie[0],Wt=Ie[Ue-1],pn={root:qe.current,threshold:.99},$r=Jr=>{he(!Jr[0].isIntersecting)},Or=new IntersectionObserver($r,pn);Or.observe(yt);const Mr=Jr=>{ve(!Jr[0].isIntersecting)},Fr=new IntersectionObserver(Mr,pn);return Fr.observe(Wt),()=>{Or.disconnect(),Fr.disconnect()}}},[z,b,ye,f==null?void 0:f.length]),R.useEffect(()=>{se(!0)},[]),R.useEffect(()=>{Re()}),R.useEffect(()=>{$e(R8!==Q)},[$e,Q]),R.useImperativeHandle(c,()=>({updateIndicator:Re,updateScrollButtons:Ne}),[Re,Ne]);const It=C.jsx(Nbe,$({},I,{className:je(J.indicator,I.className),ownerState:Y,style:$({},Q,I.style)}));let ct=0;const Ae=R.Children.map(f,Ie=>{if(!R.isValidElement(Ie))return null;const Ue=Ie.props.value===void 0?ct:Ie.props.value;Qe.set(Ue,ct);const yt=Ue===L;return ct+=1,R.cloneElement(Ie,$({fullWidth:N==="fullWidth",indicator:yt&&!ue&&It,selected:yt,selectionFollowsFocus:x,onChange:y,textColor:O,value:Ue},ct===1&&L===!1&&!Ie.props.tabIndex?{tabIndex:0}:{}))}),ot=Ie=>{const Ue=at.current,yt=Ar(Ue).activeElement;if(yt.getAttribute("role")!=="tab")return;let pn=S==="horizontal"?"ArrowLeft":"ArrowUp",$r=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&o&&(pn="ArrowRight",$r="ArrowLeft"),Ie.key){case pn:Ie.preventDefault(),Qw(Ue,yt,I8);break;case $r:Ie.preventDefault(),Qw(Ue,yt,A8);break;case"Home":Ie.preventDefault(),Qw(Ue,null,A8);break;case"End":Ie.preventDefault(),Qw(Ue,null,I8);break}},$t=Ye();return C.jsxs(Mbe,$({className:je(J.root,h),ownerState:Y,ref:n,as:p},W,{children:[$t.scrollButtonStart,$t.scrollbarSizeListener,C.jsxs(Dbe,{className:J.scroller,ownerState:Y,style:{overflow:me.overflow,[D?`margin${o?"Left":"Right"}`:"marginBottom"]:H?void 0:-me.scrollbarWidth},ref:qe,children:[C.jsx(Lbe,{"aria-label":s,"aria-labelledby":l,"aria-orientation":S==="vertical"?"vertical":null,className:J.flexContainer,ownerState:Y,onKeyDown:ot,ref:at,role:"tablist",children:Ae}),ue&&It]}),$t.scrollButtonEnd]}))}),Fbe=$be;function zbe(e){return St("MuiTextField",e)}kt("MuiTextField",["root"]);const jbe=["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"],Ube={standard:AK,filled:EK,outlined:LK},Hbe=e=>{const{classes:t}=e;return Tt({root:["root"]},zbe,t)},Wbe=Ee(uge,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Gbe=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:s,className:l,color:c="primary",defaultValue:d,disabled:f=!1,error:h=!1,FormHelperTextProps:p,fullWidth:g=!1,helperText:v,id:y,InputLabelProps:S,inputProps:_,InputProps:b,inputRef:x,label:E,maxRows:A,minRows:I,multiline:k=!1,name:O,onBlur:L,onChange:N,onFocus:H,placeholder:W,required:z=!1,rows:D,select:F=!1,SelectProps:j,type:V,value:G,variant:K="outlined"}=r,Y=Le(r,jbe),J=$({},r,{autoFocus:o,color:c,disabled:f,error:h,fullWidth:g,multiline:k,required:z,select:F,variant:K}),ie=Hbe(J),ce={};K==="outlined"&&(S&&typeof S.shrink<"u"&&(ce.notched=S.shrink),ce.label=E),F&&((!j||!j.native)&&(ce.id=void 0),ce["aria-describedby"]=void 0);const ue=v5(y),se=v&&ue?`${ue}-helper-text`:void 0,Q=E&&ue?`${ue}-label`:void 0,ae=Ube[K],le=C.jsx(ae,$({"aria-describedby":se,autoComplete:i,autoFocus:o,defaultValue:d,fullWidth:g,multiline:k,name:O,rows:D,maxRows:A,minRows:I,type:V,value:G,id:ue,inputRef:x,onBlur:L,onChange:N,onFocus:H,placeholder:W,inputProps:_},ce,b));return C.jsxs(Wbe,$({className:je(ie.root,l),disabled:f,error:h,fullWidth:g,ref:n,required:z,color:c,variant:K,ownerState:J},Y,{children:[E!=null&&E!==""&&C.jsx(Yge,$({htmlFor:ue,id:Q},S,{children:E})),F?C.jsx(o0e,$({"aria-describedby":se,id:ue,labelId:Q,value:G,input:le},j,{children:s})):le,v&&C.jsx(Tge,$({id:se},p,{children:v}))]}))}),H1=Gbe;function bn({vertical:e,...t}){return C.jsx(dt,{position:"relative",height:"100%",width:"100%",display:"flex",flexDirection:e?"column":"row",...t})}const BK=Bt(C.jsx("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3h7zM7 9H4V5h3v4zm10 6h3v4h-3v-4zm0-10h3v4h-3V5z"}),"AccountTreeOutlined"),Vbe=Bt(C.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),qbe=Bt(C.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack"),Xbe=Bt(C.jsx("path",{d:"M6 7c0 .55.45 1 1 1h7.59l-8.88 8.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L16 9.41V17c0 .55.45 1 1 1s1-.45 1-1V7c0-.55-.45-1-1-1H7c-.55 0-1 .45-1 1z"}),"ArrowOutwardRounded"),Ybe=Bt(C.jsx("path",{d:"M10 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zM7 9.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm3 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm-3-3c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm3-6c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM14 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-1.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zm3 6c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-4c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm2-3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-3.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1z"}),"BlurCircularOutlined"),Kbe=Bt(C.jsx("path",{d:"M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-3 .5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM6 5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm15 5.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-3.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zm-11 10c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm7 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-17c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM10 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0 5.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm8 .5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm3 8.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM14 17c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm-4-12c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0 8.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm4-4.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-4c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"}),"BlurOnOutlined"),Qbe=Bt(C.jsx("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65C8.03 15.48 8 15.23 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18c.31-.08.63-.12.94-.12.32 0 .63.04.95.12l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"}),"BugReportOutlined"),Jbe=Bt(C.jsx("path",{d:"M17 12c0-2.76-2.24-5-5-5s-5 2.24-5 5 2.24 5 5 5 5-2.24 5-5zm-5 3c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3zm-7 0H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4z"}),"CenterFocusStrongOutlined"),Zbe=Bt(C.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}),"ChevronRightOutlined"),exe=Bt(C.jsx("path",{d:"M19 6.41 17.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 12 19 6.41z"}),"ClearOutlined"),$K=Bt(C.jsx("path",{d:"M19 6.41 17.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 12 19 6.41z"}),"CloseOutlined"),txe=Bt(C.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"CodeOutlined"),nxe=Bt(C.jsx("path",{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"}),"CropFreeOutlined"),rxe=Bt(C.jsx("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}),"DragHandleOutlined"),tk=Bt(C.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"}),"EditOutlined"),ixe=Bt(C.jsx("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord"),FK=Bt(C.jsx("path",{d:"M15 22H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h8l6 6v6h-2V9h-5V4H6v16h9v2zm4-.34v-2.24l2.95 2.95 1.41-1.41L20.41 18h2.24v-2H17v5.66h2z"}),"FileOpenOutlined"),oxe=Bt(C.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),sxe=Bt(C.jsx("path",{d:"M2.81 2.81 1.39 4.22l2.27 2.27C2.61 8.07 2 9.96 2 12c0 5.52 4.48 10 10 10 2.04 0 3.93-.61 5.51-1.66l2.27 2.27 1.41-1.41L2.81 2.81zM12 20c-4.41 0-8-3.59-8-8 0-1.48.41-2.86 1.12-4.06l10.94 10.94C14.86 19.59 13.48 20 12 20zM7.94 5.12 6.49 3.66C8.07 2.61 9.96 2 12 2c5.52 0 10 4.48 10 10 0 2.04-.61 3.93-1.66 5.51l-1.46-1.46C19.59 14.86 20 13.48 20 12c0-4.41-3.59-8-8-8-1.48 0-2.86.41-4.06 1.12z"}),"HideSourceOutlined"),axe=Bt(C.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined"),lxe=Bt(C.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDownOutlined"),cxe=Bt(C.jsx("path",{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l3.55 5L16 17z"}),"LabelOutlined"),W1=Bt(C.jsx("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"}),"LayersOutlined"),zK=Bt(C.jsx("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7zm-4 6h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"}),"ListOutlined"),uxe=Bt(C.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVertOutlined"),dxe=Bt(C.jsx("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}),"PauseOutlined"),fxe=Bt(C.jsx("path",{d:"M12 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm6-1.8C18 6.57 15.35 4 12 4s-6 2.57-6 6.2c0 2.34 1.95 5.44 6 9.14 4.05-3.7 6-6.8 6-9.14zM12 2c4.2 0 8 3.22 8 8.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 5.22 7.8 2 12 2z"}),"PlaceOutlined"),hxe=Bt(C.jsx("path",{d:"M10 8.64 15.27 12 10 15.36V8.64M8 5v14l11-7L8 5z"}),"PlayArrowOutlined"),jK=Bt(C.jsx("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"ReplayOutlined"),pxe=Bt(C.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"SearchOutlined"),mxe=Bt(C.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}),"SettingsOutlined"),gxe=Bt(C.jsx("path",{d:"m6 18 8.5-6L6 6v12zm2-8.14L11.03 12 8 14.14V9.86zM16 6h2v12h-2z"}),"SkipNextOutlined"),vxe=Bt(C.jsx("path",{d:"M6 6h2v12H6zm3.5 6 8.5 6V6l-8.5 6zm6.5 2.14L12.97 12 16 9.86v4.28z"}),"SkipPreviousOutlined"),ES=Bt(C.jsx("path",{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}),"SortOutlined"),yxe=Bt(C.jsx("path",{d:"M16 8v8H8V8h8m2-2H6v12h12V6z"}),"StopOutlined"),bxe=Bt(C.jsx("path",{d:"M2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm10 6c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6z"}),"TripOriginOutlined"),P8=Bt(C.jsx("path",{d:"M19 13H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm0 6H5v-4h14v4zm0-16H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 6H5V5h14v4z"}),"ViewAgendaOutlined"),UK=Bt(C.jsx("path",{d:"M3 4c0-.55.45-1 1-1h2V1H4C2.34 1 1 2.34 1 4v2h2V4zm0 16v-2H1v2c0 1.66 1.34 3 3 3h2v-2H4c-.55 0-1-.45-1-1zM20 1h-2v2h2c.55 0 1 .45 1 1v2h2V4c0-1.66-1.34-3-3-3zm1 19c0 .55-.45 1-1 1h-2v2h2c1.66 0 3-1.34 3-3v-2h-2v2zm-2-5.13V9.13c0-.72-.38-1.38-1-1.73l-5-2.88c-.31-.18-.65-.27-1-.27s-.69.09-1 .27L6 7.39c-.62.36-1 1.02-1 1.74v5.74c0 .72.38 1.38 1 1.73l5 2.88c.31.18.65.27 1 .27s.69-.09 1-.27l5-2.88c.62-.35 1-1.01 1-1.73zm-8 2.3-4-2.3v-4.63l4 2.33v4.6zm1-6.33L8.04 8.53 12 6.25l3.96 2.28L12 10.84zm5 4.03-4 2.3v-4.6l4-2.33v4.63z"}),"ViewInArOutlined"),xxe=Bt(C.jsx("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5c1.38 0 2.5 1.12 2.5 2.5S13.38 14 12 14s-2.5-1.12-2.5-2.5S10.62 9 12 9m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z"}),"VisibilityOutlined"),wxe=Bt(C.jsx("path",{d:"m16.66 4.52 2.83 2.83-2.83 2.83-2.83-2.83 2.83-2.83M9 5v4H5V5h4m10 10v4h-4v-4h4M9 15v4H5v-4h4m7.66-13.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65zM11 3H3v8h8V3zm10 10h-8v8h8v-8zm-10 0H3v8h8v-8z"}),"WidgetsOutlined"),_xe=Bt(C.jsx("path",{d:"M6 15c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0-2c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm6-8c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0-2C9.8 3 8 4.8 8 7s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm6 12c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0-2c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4z"}),"WorkspacesOutlined");var RE={exports:{}};/** + `),rve)),uve=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiLinearProgress"}),{className:i,color:o="primary",value:s,valueBuffer:l,variant:c="indeterminate"}=r,d=Le(r,tve),f=$({},r,{color:o,variant:c}),h=ove(f),p=Pn(),g={},v={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){g["aria-valuenow"]=Math.round(s),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let y=s-100;p.direction==="rtl"&&(y=-y),v.bar1.transform=`translateX(${y}%)`}if(c==="buffer"&&l!==void 0){let y=(l||0)-100;p.direction==="rtl"&&(y=-y),v.bar2.transform=`translateX(${y}%)`}return C.jsxs(sve,$({className:je(h.root,i),ownerState:f,role:"progressbar"},g,{ref:n},d,{children:[c==="buffer"?C.jsx(ave,{className:h.dashed,ownerState:f}):null,C.jsx(lve,{className:h.bar1,ownerState:f,style:v.bar1}),c==="determinate"?null:C.jsx(cve,{className:h.bar2,ownerState:f,style:v.bar2})]}))}),dve=uve,fve=I.createContext({}),ca=fve;function hve(e){return St("MuiList",e)}kt("MuiList",["root","padding","dense","subheader"]);const pve=["children","className","component","dense","disablePadding","subheader"],mve=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Tt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},hve,t)},gve=Ee("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>$({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),vve=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiList"}),{children:i,className:o,component:s="ul",dense:l=!1,disablePadding:c=!1,subheader:d}=r,f=Le(r,pve),h=I.useMemo(()=>({dense:l}),[l]),p=$({},r,{component:s,dense:l,disablePadding:c}),g=mve(p);return C.jsx(ca.Provider,{value:h,children:C.jsxs(gve,$({as:s,className:je(g.root,o),ref:n,ownerState:p},f,{children:[d,i]}))})}),mp=vve;function yve(e){return St("MuiListItem",e)}const bve=kt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),am=bve;function xve(e){return St("MuiListItemButton",e)}const wve=kt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),lm=wve,_ve=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Sve=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Eve=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:s,selected:l}=e,d=Tt({root:["root",r&&"dense",!o&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},xve,n);return $({},n,d)},Cve=Ee(Ru,{shouldForwardProp:e=>va(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Sve})(({theme:e,ownerState:t})=>$({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_n(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${lm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_n(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${lm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_n(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_n(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${lm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${lm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),Tve=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:s="div",children:l,dense:c=!1,disableGutters:d=!1,divider:f=!1,focusVisibleClassName:h,selected:p=!1,className:g}=r,v=Le(r,_ve),y=I.useContext(ca),S=I.useMemo(()=>({dense:c||y.dense||!1,alignItems:i,disableGutters:d}),[i,y.dense,c,d]),_=I.useRef(null);ko(()=>{o&&_.current&&_.current.focus()},[o]);const b=$({},r,{alignItems:i,dense:S.dense,disableGutters:d,divider:f,selected:p}),x=Eve(b),E=mr(_,n);return C.jsx(ca.Provider,{value:S,children:C.jsx(Cve,$({ref:E,href:v.href||v.to,component:(v.href||v.to)&&s==="div"?"button":s,focusVisibleClassName:je(x.focusVisible,h),ownerState:b,className:je(x.root,g)},v,{classes:x,children:l}))})}),IE=Tve;function kve(e){return St("MuiListItemSecondaryAction",e)}kt("MuiListItemSecondaryAction",["root","disableGutters"]);const Ave=["className"],Rve=e=>{const{disableGutters:t,classes:n}=e;return Tt({root:["root",t&&"disableGutters"]},kve,n)},Ive=Ee("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>$({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),DK=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=Le(r,Ave),s=I.useContext(ca),l=$({},r,{disableGutters:s.disableGutters}),c=Rve(l);return C.jsx(Ive,$({className:je(c.root,i),ownerState:l,ref:n},o))});DK.muiName="ListItemSecondaryAction";const Pve=DK,Ove=["className"],Mve=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Dve=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},Lve=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:s,disablePadding:l,divider:c,hasSecondaryAction:d,selected:f}=e;return Tt({root:["root",i&&"dense",!s&&"gutters",!l&&"padding",c&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",d&&"secondaryAction",f&&"selected"],container:["container"]},yve,r)},Nve=Ee("div",{name:"MuiListItem",slot:"Root",overridesResolver:Dve})(({theme:e,ownerState:t})=>$({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&$({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${lm.root}`]:{paddingRight:48}},{[`&.${am.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${am.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_n(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${am.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_n(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${am.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${am.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_n(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_n(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Bve=Ee("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),$ve=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:s=!1,children:l,className:c,component:d,components:f={},componentsProps:h={},ContainerComponent:p="li",ContainerProps:{className:g}={},dense:v=!1,disabled:y=!1,disableGutters:S=!1,disablePadding:_=!1,divider:b=!1,focusVisibleClassName:x,secondaryAction:E,selected:A=!1,slotProps:R={},slots:k={}}=r,O=Le(r.ContainerProps,Ove),L=Le(r,Mve),N=I.useContext(ca),H=I.useMemo(()=>({dense:v||N.dense||!1,alignItems:i,disableGutters:S}),[i,N.dense,v,S]),W=I.useRef(null);ko(()=>{o&&W.current&&W.current.focus()},[o]);const z=I.Children.toArray(l),D=z.length&&uS(z[z.length-1],["ListItemSecondaryAction"]),F=$({},r,{alignItems:i,autoFocus:o,button:s,dense:H.dense,disabled:y,disableGutters:S,disablePadding:_,divider:b,hasSecondaryAction:D,selected:A}),j=Lve(F),V=mr(W,n),G=k.root||f.Root||Nve,K=R.root||h.root||{},Y=$({className:je(j.root,K.className,c),disabled:y},L);let J=d||"li";return s&&(Y.component=d||"div",Y.focusVisibleClassName=je(am.focusVisible,x),J=Ru),D?(J=!Y.component&&!d?"div":J,p==="li"&&(J==="li"?J="div":Y.component==="li"&&(Y.component="div")),C.jsx(ca.Provider,{value:H,children:C.jsxs(Bve,$({as:p,className:je(j.container,g),ref:V,ownerState:F},O,{children:[C.jsx(G,$({},K,!zl(G)&&{as:J,ownerState:$({},F,K.ownerState)},Y,{children:z})),z.pop()]}))})):C.jsx(ca.Provider,{value:H,children:C.jsxs(G,$({},K,{as:J,ref:V},!zl(G)&&{ownerState:$({},F,K.ownerState)},Y,{children:[z,E&&C.jsx(Pve,{children:E})]}))})}),ux=$ve;function Fve(e){return St("MuiListItemAvatar",e)}kt("MuiListItemAvatar",["root","alignItemsFlexStart"]);const zve=["className"],jve=e=>{const{alignItems:t,classes:n}=e;return Tt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Fve,n)},Uve=Ee("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>$({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),Hve=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiListItemAvatar"}),{className:i}=r,o=Le(r,zve),s=I.useContext(ca),l=$({},r,{alignItems:s.alignItems}),c=jve(l);return C.jsx(Uve,$({className:je(c.root,i),ownerState:l,ref:n},o))}),Wve=Hve;function Gve(e){return St("MuiListItemIcon",e)}const Vve=kt("MuiListItemIcon",["root","alignItemsFlexStart"]),_8=Vve,qve=["className"],Xve=e=>{const{alignItems:t,classes:n}=e;return Tt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Gve,n)},Yve=Ee("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>$({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Kve=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=Le(r,qve),s=I.useContext(ca),l=$({},r,{alignItems:s.alignItems}),c=Xve(l);return C.jsx(Yve,$({className:je(c.root,i),ownerState:l,ref:n},o))}),fu=Kve;function Qve(e){return St("MuiListItemText",e)}const Jve=kt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),PE=Jve,Zve=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],eye=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return Tt({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},Qve,t)},tye=Ee("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${PE.primary}`]:t.primary},{[`& .${PE.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>$({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),nye=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:s=!1,inset:l=!1,primary:c,primaryTypographyProps:d,secondary:f,secondaryTypographyProps:h}=r,p=Le(r,Zve),{dense:g}=I.useContext(ca);let v=c??i,y=f;const S=$({},r,{disableTypography:s,inset:l,primary:!!v,secondary:!!y,dense:g}),_=eye(S);return v!=null&&v.type!==Lt&&!s&&(v=C.jsx(Lt,$({variant:g?"body2":"body1",className:_.primary,component:d!=null&&d.variant?void 0:"span",display:"block"},d,{children:v}))),y!=null&&y.type!==Lt&&!s&&(y=C.jsx(Lt,$({variant:"body2",className:_.secondary,color:"text.secondary",display:"block"},h,{children:y}))),C.jsxs(tye,$({className:je(_.root,o),ownerState:S,ref:n},p,{children:[v,y]}))}),ol=nye,rye=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function QD(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function S8(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function LK(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function rb(e,t,n,r,i,o){let s=!1,l=i(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(s)return!1;s=!0}const c=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!LK(l,o)||c)l=i(e,l,n);else return l.focus(),!0}return!1}const iye=I.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:s,className:l,disabledItemsFocusable:c=!1,disableListWrap:d=!1,onKeyDown:f,variant:h="selectedMenu"}=t,p=Le(t,rye),g=I.useRef(null),v=I.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ko(()=>{i&&g.current.focus()},[i]),I.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,E)=>{const A=!g.current.style.width;if(x.clientHeight{const E=g.current,A=x.key,R=Ar(E).activeElement;if(A==="ArrowDown")x.preventDefault(),rb(E,R,d,c,QD);else if(A==="ArrowUp")x.preventDefault(),rb(E,R,d,c,S8);else if(A==="Home")x.preventDefault(),rb(E,null,d,c,QD);else if(A==="End")x.preventDefault(),rb(E,null,d,c,S8);else if(A.length===1){const k=v.current,O=A.toLowerCase(),L=performance.now();k.keys.length>0&&(L-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&O!==k.keys[0]&&(k.repeating=!1)),k.lastTime=L,k.keys.push(O);const N=R&&!k.repeating&&LK(R,k);k.previousKeyMatched&&(N||rb(E,R,!1,c,QD,k))?x.preventDefault():k.previousKeyMatched=!1}f&&f(x)},S=mr(g,n);let _=-1;I.Children.forEach(s,(x,E)=>{if(!I.isValidElement(x)){_===E&&(_+=1,_>=s.length&&(_=-1));return}x.props.disabled||(h==="selectedMenu"&&x.props.selected||_===-1)&&(_=E),_===E&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(_+=1,_>=s.length&&(_=-1))});const b=I.Children.map(s,(x,E)=>{if(E===_){const A={};return o&&(A.autoFocus=!0),x.props.tabIndex===void 0&&h==="selectedMenu"&&(A.tabIndex=0),I.cloneElement(x,A)}return x});return C.jsx(mp,$({role:"menu",ref:S,className:l,onKeyDown:y,tabIndex:i?0:-1},p,{children:b}))}),nk=iye;function oye(e){return St("MuiPopover",e)}kt("MuiPopover",["root","paper"]);const sye=["onEntering"],aye=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],lye=["slotProps"];function E8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function C8(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function T8(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function JD(e){return typeof e=="function"?e():e}const cye=e=>{const{classes:t}=e;return Tt({root:["root"],paper:["paper"]},oye,t)},uye=Ee(TK,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),NK=Ee(Kg,{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}),dye=I.forwardRef(function(t,n){var r,i,o;const s=At({props:t,name:"MuiPopover"}),{action:l,anchorEl:c,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:h="anchorEl",children:p,className:g,container:v,elevation:y=8,marginThreshold:S=16,open:_,PaperProps:b={},slots:x,slotProps:E,transformOrigin:A={vertical:"top",horizontal:"left"},TransitionComponent:R=RE,transitionDuration:k="auto",TransitionProps:{onEntering:O}={},disableScrollLock:L=!1}=s,N=Le(s.TransitionProps,sye),H=Le(s,aye),W=(r=E==null?void 0:E.paper)!=null?r:b,z=I.useRef(),D=mr(z,W.ref),F=$({},s,{anchorOrigin:d,anchorReference:h,elevation:y,marginThreshold:S,externalPaperSlotProps:W,transformOrigin:A,TransitionComponent:R,transitionDuration:k,TransitionProps:N}),j=cye(F),V=I.useCallback(()=>{if(h==="anchorPosition")return f;const xe=JD(c),be=(xe&&xe.nodeType===1?xe:Ar(z.current).body).getBoundingClientRect();return{top:be.top+E8(be,d.vertical),left:be.left+C8(be,d.horizontal)}},[c,d.horizontal,d.vertical,f,h]),G=I.useCallback(xe=>({vertical:E8(xe,A.vertical),horizontal:C8(xe,A.horizontal)}),[A.horizontal,A.vertical]),K=I.useCallback(xe=>{const me={width:xe.offsetWidth,height:xe.offsetHeight},be=G(me);if(h==="none")return{top:null,left:null,transformOrigin:T8(be)};const Qe=V();let qe=Qe.top-be.vertical,at=Qe.left-be.horizontal;const Nt=qe+me.height,Ie=at+me.width,Fe=gu(JD(c)),it=Fe.innerHeight-S,pt=Fe.innerWidth-S;if(S!==null&&qeit){const mt=Nt-it;qe-=mt,be.vertical+=mt}if(S!==null&&atpt){const mt=Ie-pt;at-=mt,be.horizontal+=mt}return{top:`${Math.round(qe)}px`,left:`${Math.round(at)}px`,transformOrigin:T8(be)}},[c,h,V,G,S]),[Y,J]=I.useState(_),ie=I.useCallback(()=>{const xe=z.current;if(!xe)return;const me=K(xe);me.top!==null&&(xe.style.top=me.top),me.left!==null&&(xe.style.left=me.left),xe.style.transformOrigin=me.transformOrigin,J(!0)},[K]);I.useEffect(()=>(L&&window.addEventListener("scroll",ie),()=>window.removeEventListener("scroll",ie)),[c,L,ie]);const ce=(xe,me)=>{O&&O(xe,me),ie()},ue=()=>{J(!1)};I.useEffect(()=>{_&&ie()}),I.useImperativeHandle(l,()=>_?{updatePosition:()=>{ie()}}:null,[_,ie]),I.useEffect(()=>{if(!_)return;const xe=VC(()=>{ie()}),me=gu(c);return me.addEventListener("resize",xe),()=>{xe.clear(),me.removeEventListener("resize",xe)}},[c,_,ie]);let se=k;k==="auto"&&!R.muiSupportAuto&&(se=void 0);const Q=v||(c?Ar(JD(c)).body:void 0),ae=(i=x==null?void 0:x.root)!=null?i:uye,le=(o=x==null?void 0:x.paper)!=null?o:NK,he=Wr({elementType:le,externalSlotProps:$({},W,{style:Y?W.style:$({},W.style,{opacity:0})}),additionalProps:{elevation:y,ref:D},ownerState:F,className:je(j.paper,W==null?void 0:W.className)}),pe=Wr({elementType:ae,externalSlotProps:(E==null?void 0:E.root)||{},externalForwardedProps:H,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:Q,open:_},ownerState:F,className:je(j.root,g)}),{slotProps:ve}=pe,ye=Le(pe,lye);return C.jsx(ae,$({},ye,!zl(ae)&&{slotProps:ve,disableScrollLock:L},{children:C.jsx(R,$({appear:!0,in:_,onEntering:ce,onExited:ue,timeout:se},N,{children:C.jsx(le,$({},he,{children:p}))}))}))}),fye=dye;function hye(e){return St("MuiMenu",e)}kt("MuiMenu",["root","paper","list"]);const pye=["onEntering"],mye=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],gye={vertical:"top",horizontal:"right"},vye={vertical:"top",horizontal:"left"},yye=e=>{const{classes:t}=e;return Tt({root:["root"],paper:["paper"],list:["list"]},hye,t)},bye=Ee(fye,{shouldForwardProp:e=>va(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xye=Ee(NK,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),wye=Ee(nk,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),_ye=I.forwardRef(function(t,n){var r,i;const o=At({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:l,className:c,disableAutoFocusItem:d=!1,MenuListProps:f={},onClose:h,open:p,PaperProps:g={},PopoverClasses:v,transitionDuration:y="auto",TransitionProps:{onEntering:S}={},variant:_="selectedMenu",slots:b={},slotProps:x={}}=o,E=Le(o.TransitionProps,pye),A=Le(o,mye),R=Pn(),k=R.direction==="rtl",O=$({},o,{autoFocus:s,disableAutoFocusItem:d,MenuListProps:f,onEntering:S,PaperProps:g,transitionDuration:y,TransitionProps:E,variant:_}),L=yye(O),N=s&&!d&&p,H=I.useRef(null),W=(K,Y)=>{H.current&&H.current.adjustStyleForScrollbar(K,R),S&&S(K,Y)},z=K=>{K.key==="Tab"&&(K.preventDefault(),h&&h(K,"tabKeyDown"))};let D=-1;I.Children.map(l,(K,Y)=>{I.isValidElement(K)&&(K.props.disabled||(_==="selectedMenu"&&K.props.selected||D===-1)&&(D=Y))});const F=(r=b.paper)!=null?r:xye,j=(i=x.paper)!=null?i:g,V=Wr({elementType:b.root,externalSlotProps:x.root,ownerState:O,className:[L.root,c]}),G=Wr({elementType:F,externalSlotProps:j,ownerState:O,className:L.paper});return C.jsx(bye,$({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?gye:vye,slots:{paper:F,root:b.root},slotProps:{root:V,paper:G},open:p,ref:n,transitionDuration:y,TransitionProps:$({onEntering:W},E),ownerState:O},A,{classes:v,children:C.jsx(wye,$({onKeyDown:z,actions:H,autoFocus:s&&(D===-1||d),autoFocusItem:N,variant:_},f,{className:je(L.list,f.className),children:l}))}))}),Rp=_ye;function Sye(e){return St("MuiMenuItem",e)}const Eye=kt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ib=Eye,Cye=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Tye=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},kye=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:s}=e,c=Tt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},Sye,s);return $({},s,c)},Aye=Ee(Ru,{shouldForwardProp:e=>va(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Tye})(({theme:e,ownerState:t})=>$({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ib.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_n(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ib.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:_n(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ib.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:_n(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:_n(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ib.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ib.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${h8.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${h8.inset}`]:{marginLeft:52},[`& .${PE.root}`]:{marginTop:0,marginBottom:0},[`& .${PE.inset}`]:{paddingLeft:36},[`& .${_8.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${_8.root} svg`]:{fontSize:"1.25rem"}}))),Rye=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:s=!1,divider:l=!1,disableGutters:c=!1,focusVisibleClassName:d,role:f="menuitem",tabIndex:h,className:p}=r,g=Le(r,Cye),v=I.useContext(ca),y=I.useMemo(()=>({dense:s||v.dense||!1,disableGutters:c}),[v.dense,s,c]),S=I.useRef(null);ko(()=>{i&&S.current&&S.current.focus()},[i]);const _=$({},r,{dense:y.dense,divider:l,disableGutters:c}),b=kye(r),x=mr(S,n);let E;return r.disabled||(E=h!==void 0?h:-1),C.jsx(ca.Provider,{value:y,children:C.jsx(Aye,$({ref:x,role:f,tabIndex:E,component:o,focusVisibleClassName:je(b.focusVisible,d),className:je(b.root,p)},g,{ownerState:_,classes:b}))})}),hu=Rye;function Iye(e){return St("MuiNativeSelect",e)}const Pye=kt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),G4=Pye,Oye=["className","disabled","error","IconComponent","inputRef","variant"],Mye=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:s}=e,l={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Me(n)}`,o&&"iconOpen",r&&"disabled"]};return Tt(l,Iye,t)},BK=({ownerState:e,theme:t})=>$({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${G4.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Dye=Ee("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:va,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${G4.multiple}`]:t.multiple}]}})(BK),$K=({ownerState:e,theme:t})=>$({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${G4.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Lye=Ee("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Me(n.variant)}`],n.open&&t.iconOpen]}})($K),Nye=I.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:s,inputRef:l,variant:c="standard"}=t,d=Le(t,Oye),f=$({},t,{disabled:i,variant:c,error:o}),h=Mye(f);return C.jsxs(I.Fragment,{children:[C.jsx(Dye,$({ownerState:f,className:je(h.select,r),disabled:i,ref:l||n},d)),t.multiple?null:C.jsx(Lye,{as:s,ownerState:f,className:h.icon})]})}),Bye=Nye;var k8;const $ye=["children","classes","className","label","notched"],Fye=Ee("fieldset")({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%"}),zye=Ee("legend")(({ownerState:e,theme:t})=>$({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&$({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function jye(e){const{className:t,label:n,notched:r}=e,i=Le(e,$ye),o=n!=null&&n!=="",s=$({},e,{notched:r,withLabel:o});return C.jsx(Fye,$({"aria-hidden":!0,className:t,ownerState:s},i,{children:C.jsx(zye,{ownerState:s,children:o?C.jsx("span",{children:n}):k8||(k8=C.jsx("span",{className:"notranslate",children:"​"}))})}))}const Uye=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Hye=e=>{const{classes:t}=e,r=Tt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ppe,t);return $({},t,r)},Wye=Ee(QT,{shouldForwardProp:e=>va(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:YT})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$u.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$u.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${$u.focused} .${$u.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${$u.error} .${$u.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$u.disabled} .${$u.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Gye=Ee(jye,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=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)`:t}}),Vye=Ee(JT,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:KT})(({theme:e,ownerState:t})=>$({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),FK=I.forwardRef(function(t,n){var r,i,o,s,l;const c=At({props:t,name:"MuiOutlinedInput"}),{components:d={},fullWidth:f=!1,inputComponent:h="input",label:p,multiline:g=!1,notched:v,slots:y={},type:S="text"}=c,_=Le(c,Uye),b=Hye(c),x=Vd(),E=Ap({props:c,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),A=$({},c,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:x,fullWidth:f,hiddenLabel:E.hiddenLabel,multiline:g,size:E.size,type:S}),R=(r=(i=y.root)!=null?i:d.Root)!=null?r:Wye,k=(o=(s=y.input)!=null?s:d.Input)!=null?o:Vye;return C.jsx(ZT,$({slots:{root:R,input:k},renderSuffix:O=>C.jsx(Gye,{ownerState:A,className:b.notchedOutline,label:p!=null&&p!==""&&E.required?l||(l=C.jsxs(I.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:f,inputComponent:h,multiline:g,ref:n,type:S},_,{classes:$({},b,{notchedOutline:null})}))});FK.muiName="Input";const zK=FK;function qye(e){return St("MuiSelect",e)}const Xye=kt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ob=Xye;var A8;const Yye=["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"],Kye=Ee("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ob.select}`]:t.select},{[`&.${ob.select}`]:t[n.variant]},{[`&.${ob.error}`]:t.error},{[`&.${ob.multiple}`]:t.multiple}]}})(BK,{[`&.${ob.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Qye=Ee("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Me(n.variant)}`],n.open&&t.iconOpen]}})($K),Jye=Ee("input",{shouldForwardProp:e=>F5(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function R8(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Zye(e){return e==null||typeof e=="string"&&!e.trim()}const e0e=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:s}=e,l={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Me(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Tt(l,qye,t)},t0e=I.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":o,autoFocus:s,autoWidth:l,children:c,className:d,defaultOpen:f,defaultValue:h,disabled:p,displayEmpty:g,error:v=!1,IconComponent:y,inputRef:S,labelId:_,MenuProps:b={},multiple:x,name:E,onBlur:A,onChange:R,onClose:k,onFocus:O,onOpen:L,open:N,readOnly:H,renderValue:W,SelectDisplayProps:z={},tabIndex:D,value:F,variant:j="standard"}=t,V=Le(t,Yye),[G,K]=kx({controlled:F,default:h,name:"Select"}),[Y,J]=kx({controlled:N,default:f,name:"Select"}),ie=I.useRef(null),ce=I.useRef(null),[ue,se]=I.useState(null),{current:Q}=I.useRef(N!=null),[ae,le]=I.useState(),he=mr(n,S),pe=I.useCallback(Ae=>{ce.current=Ae,Ae&&se(Ae)},[]),ve=ue==null?void 0:ue.parentNode;I.useImperativeHandle(he,()=>({focus:()=>{ce.current.focus()},node:ie.current,value:G}),[G]),I.useEffect(()=>{f&&Y&&ue&&!Q&&(le(l?null:ve.clientWidth),ce.current.focus())},[ue,l]),I.useEffect(()=>{s&&ce.current.focus()},[s]),I.useEffect(()=>{if(!_)return;const Ae=Ar(ce.current).getElementById(_);if(Ae){const ot=()=>{getSelection().isCollapsed&&ce.current.focus()};return Ae.addEventListener("click",ot),()=>{Ae.removeEventListener("click",ot)}}},[_]);const ye=(Ae,ot)=>{Ae?L&&L(ot):k&&k(ot),Q||(le(l?null:ve.clientWidth),J(Ae))},xe=Ae=>{Ae.button===0&&(Ae.preventDefault(),ce.current.focus(),ye(!0,Ae))},me=Ae=>{ye(!1,Ae)},be=I.Children.toArray(c),Qe=Ae=>{const ot=be.find(Ft=>Ft.props.value===Ae.target.value);ot!==void 0&&(K(ot.props.value),R&&R(Ae,ot))},qe=Ae=>ot=>{let Ft;if(ot.currentTarget.hasAttribute("tabindex")){if(x){Ft=Array.isArray(G)?G.slice():[];const Re=G.indexOf(Ae.props.value);Re===-1?Ft.push(Ae.props.value):Ft.splice(Re,1)}else Ft=Ae.props.value;if(Ae.props.onClick&&Ae.props.onClick(ot),G!==Ft&&(K(Ft),R)){const Re=ot.nativeEvent||ot,Ue=new Re.constructor(Re.type,Re);Object.defineProperty(Ue,"target",{writable:!0,value:{value:Ft,name:E}}),R(Ue,Ae)}x||ye(!1,ot)}},at=Ae=>{H||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ae.key)!==-1&&(Ae.preventDefault(),ye(!0,Ae))},Nt=ue!==null&&Y,Ie=Ae=>{!Nt&&A&&(Object.defineProperty(Ae,"target",{writable:!0,value:{value:G,name:E}}),A(Ae))};delete V["aria-invalid"];let Fe,it;const pt=[];let mt=!1;(AE({value:G})||g)&&(W?Fe=W(G):mt=!0);const _e=be.map(Ae=>{if(!I.isValidElement(Ae))return null;let ot;if(x){if(!Array.isArray(G))throw new Error(Rd(2));ot=G.some(Ft=>R8(Ft,Ae.props.value)),ot&&mt&&pt.push(Ae.props.children)}else ot=R8(G,Ae.props.value),ot&&mt&&(it=Ae.props.children);return I.cloneElement(Ae,{"aria-selected":ot?"true":"false",onClick:qe(Ae),onKeyUp:Ft=>{Ft.key===" "&&Ft.preventDefault(),Ae.props.onKeyUp&&Ae.props.onKeyUp(Ft)},role:"option",selected:ot,value:void 0,"data-value":Ae.props.value})});mt&&(x?pt.length===0?Fe=null:Fe=pt.reduce((Ae,ot,Ft)=>(Ae.push(ot),Ft{const{classes:t}=e;return t},V4={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>va(e)&&e!=="variant",slot:"Root"},s0e=Ee(MK,V4)(""),a0e=Ee(zK,V4)(""),l0e=Ee(RK,V4)(""),jK=I.forwardRef(function(t,n){const r=At({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:s={},className:l,defaultOpen:c=!1,displayEmpty:d=!1,IconComponent:f=ype,id:h,input:p,inputProps:g,label:v,labelId:y,MenuProps:S,multiple:_=!1,native:b=!1,onClose:x,onOpen:E,open:A,renderValue:R,SelectDisplayProps:k,variant:O="outlined"}=r,L=Le(r,r0e),N=b?Bye:n0e,H=Vd(),W=Ap({props:r,muiFormControl:H,states:["variant","error"]}),z=W.variant||O,D=$({},r,{variant:z,classes:s}),F=o0e(D),j=Le(F,i0e),V=p||{standard:C.jsx(s0e,{ownerState:D}),outlined:C.jsx(a0e,{label:v,ownerState:D}),filled:C.jsx(l0e,{ownerState:D})}[z],G=mr(n,V.ref);return C.jsx(I.Fragment,{children:I.cloneElement(V,$({inputComponent:N,inputProps:$({children:o,error:W.error,IconComponent:f,variant:z,type:void 0,multiple:_},b?{id:h}:{autoWidth:i,defaultOpen:c,displayEmpty:d,labelId:y,MenuProps:S,onClose:x,onOpen:E,open:A,renderValue:R,SelectDisplayProps:$({id:h},k)},g,{classes:g?zo(j,g.classes):j},p?p.props.inputProps:{})},_&&b&&z==="outlined"?{notched:!0}:{},{ref:G,className:je(V.props.className,l,F.root)},!p&&{variant:z},L))})});jK.muiName="Select";const c0e=jK,u0e=e=>!e||!zl(e),d0e=u0e;function f0e(e){return St("MuiSlider",e)}const h0e=kt("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),el=h0e,p0e=e=>{const{open:t}=e;return{offset:je(t&&el.valueLabelOpen),circle:el.valueLabelCircle,label:el.valueLabelLabel}};function m0e(e){const{children:t,className:n,value:r}=e,i=p0e(e);return t?I.cloneElement(t,{className:je(t.props.className)},C.jsxs(I.Fragment,{children:[t.props.children,C.jsx("span",{className:je(i.offset,n),"aria-hidden":!0,children:C.jsx("span",{className:i.circle,children:C.jsx("span",{className:i.label,children:r})})})]})):null}const g0e=["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 I8(e){return e}const v0e=Ee("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Me(n.color)}`],n.size!=="medium"&&t[`size${Me(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>$({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"&&$({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"&&$({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"},[`&.${el.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${el.dragging}`]:{[`& .${el.thumb}, & .${el.track}`]:{transition:"none"}}})),y0e=Ee("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>$({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})),b0e=Ee("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Vg(e.palette[t.color].main,.62):Gg(e.palette[t.color].main,.5);return $({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),x0e=Ee("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Me(n.color)}`],n.size!=="medium"&&t[`thumbSize${Me(n.size)}`]]}})(({theme:e,ownerState:t})=>$({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":$({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, &.${el.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:_n(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${el.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:_n(e.palette[t.color].main,.16)}`},[`&.${el.disabled}`]:{"&:hover":{boxShadow:"none"}}})),w0e=Ee(m0e,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>$({[`&.${el.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"})),_0e=Ee("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>F5(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>$({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),S0e=Ee("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>F5(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>$({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),E0e=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:s,color:l,size:c}=e,d={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",l&&`color${Me(l)}`,c&&`size${Me(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Me(c)}`,l&&`thumbColor${Me(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Tt(d,f0e,s)},C0e=({children:e})=>e,T0e=I.forwardRef(function(t,n){var r,i,o,s,l,c,d,f,h,p,g,v,y,S,_,b,x,E,A,R,k,O,L,N;const H=At({props:t,name:"MuiSlider"}),z=Pn().direction==="rtl",{"aria-label":D,"aria-valuetext":F,"aria-labelledby":j,component:V="span",components:G={},componentsProps:K={},color:Y="primary",classes:J,className:ie,disableSwap:ce=!1,disabled:ue=!1,getAriaLabel:se,getAriaValueText:Q,marks:ae=!1,max:le=100,min:he=0,orientation:pe="horizontal",size:ve="medium",step:ye=1,scale:xe=I8,slotProps:me,slots:be,track:Qe="normal",valueLabelDisplay:qe="off",valueLabelFormat:at=I8}=H,Nt=Le(H,g0e),Ie=$({},H,{isRtl:z,max:le,min:he,classes:J,disabled:ue,disableSwap:ce,orientation:pe,marks:ae,color:Y,size:ve,step:ye,scale:xe,track:Qe,valueLabelDisplay:qe,valueLabelFormat:at}),{axisProps:Fe,getRootProps:it,getHiddenInputProps:pt,getThumbProps:mt,open:_e,active:ze,axis:Ye,focusedThumbIndex:$e,range:Ne,dragging:Rt,marks:ut,values:Ae,trackOffset:ot,trackLeap:Ft,getThumbStyle:Re}=Ghe($({},Ie,{rootRef:n}));Ie.marked=ut.length>0&&ut.some(Hn=>Hn.label),Ie.dragging=Rt,Ie.focusedThumbIndex=$e;const Ue=E0e(Ie),yt=(r=(i=be==null?void 0:be.root)!=null?i:G.Root)!=null?r:v0e,Wt=(o=(s=be==null?void 0:be.rail)!=null?s:G.Rail)!=null?o:y0e,pn=(l=(c=be==null?void 0:be.track)!=null?c:G.Track)!=null?l:b0e,$r=(d=(f=be==null?void 0:be.thumb)!=null?f:G.Thumb)!=null?d:x0e,Or=(h=(p=be==null?void 0:be.valueLabel)!=null?p:G.ValueLabel)!=null?h:w0e,Mr=(g=(v=be==null?void 0:be.mark)!=null?v:G.Mark)!=null?g:_0e,Fr=(y=(S=be==null?void 0:be.markLabel)!=null?S:G.MarkLabel)!=null?y:S0e,Jr=(_=(b=be==null?void 0:be.input)!=null?b:G.Input)!=null?_:"input",Ko=(x=me==null?void 0:me.root)!=null?x:K.root,Lu=(E=me==null?void 0:me.rail)!=null?E:K.rail,Ws=(A=me==null?void 0:me.track)!=null?A:K.track,rc=(R=me==null?void 0:me.thumb)!=null?R:K.thumb,ic=(k=me==null?void 0:me.valueLabel)!=null?k:K.valueLabel,tf=(O=me==null?void 0:me.mark)!=null?O:K.mark,Qo=(L=me==null?void 0:me.markLabel)!=null?L:K.markLabel,nf=(N=me==null?void 0:me.input)!=null?N:K.input,oo=Wr({elementType:yt,getSlotProps:it,externalSlotProps:Ko,externalForwardedProps:Nt,additionalProps:$({},d0e(yt)&&{as:V}),ownerState:$({},Ie,Ko==null?void 0:Ko.ownerState),className:[Ue.root,ie]}),oc=Wr({elementType:Wt,externalSlotProps:Lu,ownerState:Ie,className:Ue.rail}),Si=Wr({elementType:pn,externalSlotProps:Ws,additionalProps:{style:$({},Fe[Ye].offset(ot),Fe[Ye].leap(Ft))},ownerState:$({},Ie,Ws==null?void 0:Ws.ownerState),className:Ue.track}),Jo=Wr({elementType:$r,getSlotProps:mt,externalSlotProps:rc,ownerState:$({},Ie,rc==null?void 0:rc.ownerState),className:Ue.thumb}),rf=Wr({elementType:Or,externalSlotProps:ic,ownerState:$({},Ie,ic==null?void 0:ic.ownerState),className:Ue.valueLabel}),Zo=Wr({elementType:Mr,externalSlotProps:tf,ownerState:Ie,className:Ue.mark}),xa=Wr({elementType:Fr,externalSlotProps:Qo,ownerState:Ie,className:Ue.markLabel}),Nu=Wr({elementType:Jr,getSlotProps:pt,externalSlotProps:nf,ownerState:Ie});return C.jsxs(yt,$({},oo,{children:[C.jsx(Wt,$({},oc)),C.jsx(pn,$({},Si)),ut.filter(Hn=>Hn.value>=he&&Hn.value<=le).map((Hn,Jn)=>{const bl=kE(Hn.value,he,le),xl=Fe[Ye].offset(bl);let so;return Qe===!1?so=Ae.indexOf(Hn.value)!==-1:so=Qe==="normal"&&(Ne?Hn.value>=Ae[0]&&Hn.value<=Ae[Ae.length-1]:Hn.value<=Ae[0])||Qe==="inverted"&&(Ne?Hn.value<=Ae[0]||Hn.value>=Ae[Ae.length-1]:Hn.value>=Ae[0]),C.jsxs(I.Fragment,{children:[C.jsx(Mr,$({"data-index":Jn},Zo,!zl(Mr)&&{markActive:so},{style:$({},xl,Zo.style),className:je(Zo.className,so&&Ue.markActive)})),Hn.label!=null?C.jsx(Fr,$({"aria-hidden":!0,"data-index":Jn},xa,!zl(Fr)&&{markLabelActive:so},{style:$({},xl,xa.style),className:je(Ue.markLabel,xa.className,so&&Ue.markLabelActive),children:Hn.label})):null]},Jn)}),Ae.map((Hn,Jn)=>{const bl=kE(Hn,he,le),xl=Fe[Ye].offset(bl),so=qe==="off"?C0e:Or;return C.jsx(so,$({},!zl(so)&&{valueLabelFormat:at,valueLabelDisplay:qe,value:typeof at=="function"?at(xe(Hn),Jn):at,index:Jn,open:_e===Jn||ze===Jn||qe==="on",disabled:ue},rf,{children:C.jsx($r,$({"data-index":Jn},Jo,{className:je(Ue.thumb,Jo.className,ze===Jn&&Ue.active,$e===Jn&&Ue.focusVisible),style:$({},xl,Re(Jn),Jo.style),children:C.jsx(Jr,$({"data-index":Jn,"aria-label":se?se(Jn):D,"aria-valuenow":xe(Hn),"aria-labelledby":j,"aria-valuetext":Q?Q(xe(Hn),Jn):F,value:Ae[Jn]},Nu))}))}),Jn)})]}))}),k0e=T0e;function A0e(e){return St("MuiSnackbarContent",e)}kt("MuiSnackbarContent",["root","message","action"]);const R0e=["action","className","message","role"],I0e=e=>{const{classes:t}=e;return Tt({root:["root"],action:["action"],message:["message"]},A0e,t)},P0e=Ee(Kg,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=Kae(e.palette.background.default,t);return $({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),O0e=Ee("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),M0e=Ee("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),D0e=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiSnackbarContent"}),{action:i,className:o,message:s,role:l="alert"}=r,c=Le(r,R0e),d=r,f=I0e(d);return C.jsxs(P0e,$({role:l,square:!0,elevation:6,className:je(f.root,o),ownerState:d,ref:n},c,{children:[C.jsx(O0e,{className:f.message,ownerState:d,children:s}),i?C.jsx(M0e,{className:f.action,ownerState:d,children:i}):null]}))}),L0e=D0e;function N0e(e){return St("MuiSnackbar",e)}kt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const B0e=["onEnter","onExited"],$0e=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],F0e=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Me(n.vertical)}${Me(n.horizontal)}`]};return Tt(r,N0e,t)},P8=Ee("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Me(n.anchorOrigin.vertical)}${Me(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return $({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:$({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),z0e=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiSnackbar"}),i=Pn(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:l,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:f,className:h,ClickAwayListenerProps:p,ContentProps:g,disableWindowBlurListener:v=!1,message:y,open:S,TransitionComponent:_=RE,transitionDuration:b=o,TransitionProps:{onEnter:x,onExited:E}={}}=r,A=Le(r.TransitionProps,B0e),R=Le(r,$0e),k=$({},r,{anchorOrigin:{vertical:l,horizontal:c},autoHideDuration:d,disableWindowBlurListener:v,TransitionComponent:_,transitionDuration:b}),O=F0e(k),{getRootProps:L,onClickAway:N}=Vhe($({},k)),[H,W]=I.useState(!0),z=Wr({elementType:P8,getSlotProps:L,externalForwardedProps:R,ownerState:k,additionalProps:{ref:n},className:[O.root,h]}),D=j=>{W(!0),E&&E(j)},F=(j,V)=>{W(!1),x&&x(j,V)};return!S&&H?null:C.jsx(sfe,$({onClickAway:N},p,{children:C.jsx(P8,$({},z,{children:C.jsx(_,$({appear:!0,in:S,timeout:b,direction:l==="top"?"down":"up",onEnter:F,onExited:D},A,{children:f||C.jsx(L0e,$({message:y,action:s},g))}))}))}))}),j0e=z0e;function U0e(e){return St("MuiTooltip",e)}const H0e=kt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),ld=H0e,W0e=["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 G0e(e){return Math.round(e*1e5)/1e5}const V0e=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Me(o.split("-")[0])}`],arrow:["arrow"]};return Tt(s,U0e,t)},q0e=Ee(wK,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>$({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${ld.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ld.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ld.arrow}`]:$({},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"] .${ld.arrow}`]:$({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),X0e=Ee("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Me(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>$({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:_n(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:`${G0e(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${ld.popper}[data-popper-placement*="left"] &`]:$({transformOrigin:"right center"},t.isRtl?$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):$({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${ld.popper}[data-popper-placement*="right"] &`]:$({transformOrigin:"left center"},t.isRtl?$({marginRight:"14px"},t.touch&&{marginRight:"24px"}):$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${ld.popper}[data-popper-placement*="top"] &`]:$({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${ld.popper}[data-popper-placement*="bottom"] &`]:$({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Y0e=Ee("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:_n(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Kw=!1,ZD=null,sb={x:0,y:0};function Qw(e,t){return n=>{t&&t(n),e(n)}}const K0e=I.forwardRef(function(t,n){var r,i,o,s,l,c,d,f,h,p,g,v,y,S,_,b,x,E,A;const R=At({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:O,components:L={},componentsProps:N={},describeChild:H=!1,disableFocusListener:W=!1,disableHoverListener:z=!1,disableInteractive:D=!1,disableTouchListener:F=!1,enterDelay:j=100,enterNextDelay:V=0,enterTouchDelay:G=700,followCursor:K=!1,id:Y,leaveDelay:J=0,leaveTouchDelay:ie=1500,onClose:ce,onOpen:ue,open:se,placement:Q="bottom",PopperComponent:ae,PopperProps:le={},slotProps:he={},slots:pe={},title:ve,TransitionComponent:ye=RE,TransitionProps:xe}=R,me=Le(R,W0e),be=I.isValidElement(O)?O:C.jsx("span",{children:O}),Qe=Pn(),qe=Qe.direction==="rtl",[at,Nt]=I.useState(),[Ie,Fe]=I.useState(null),it=I.useRef(!1),pt=D||K,mt=I.useRef(),_e=I.useRef(),ze=I.useRef(),Ye=I.useRef(),[$e,Ne]=kx({controlled:se,default:!1,name:"Tooltip",state:"open"});let Rt=$e;const ut=b5(Y),Ae=I.useRef(),ot=I.useCallback(()=>{Ae.current!==void 0&&(document.body.style.WebkitUserSelect=Ae.current,Ae.current=void 0),clearTimeout(Ye.current)},[]);I.useEffect(()=>()=>{clearTimeout(mt.current),clearTimeout(_e.current),clearTimeout(ze.current),ot()},[ot]);const Ft=Qt=>{clearTimeout(ZD),Kw=!0,Ne(!0),ue&&!Rt&&ue(Qt)},Re=Zi(Qt=>{clearTimeout(ZD),ZD=setTimeout(()=>{Kw=!1},800+J),Ne(!1),ce&&Rt&&ce(Qt),clearTimeout(mt.current),mt.current=setTimeout(()=>{it.current=!1},Qe.transitions.duration.shortest)}),Ue=Qt=>{it.current&&Qt.type!=="touchstart"||(at&&at.removeAttribute("title"),clearTimeout(_e.current),clearTimeout(ze.current),j||Kw&&V?_e.current=setTimeout(()=>{Ft(Qt)},Kw?V:j):Ft(Qt))},yt=Qt=>{clearTimeout(_e.current),clearTimeout(ze.current),ze.current=setTimeout(()=>{Re(Qt)},J)},{isFocusVisibleRef:Wt,onBlur:pn,onFocus:$r,ref:Or}=x5(),[,Mr]=I.useState(!1),Fr=Qt=>{pn(Qt),Wt.current===!1&&(Mr(!1),yt(Qt))},Jr=Qt=>{at||Nt(Qt.currentTarget),$r(Qt),Wt.current===!0&&(Mr(!0),Ue(Qt))},Ko=Qt=>{it.current=!0;const vr=be.props;vr.onTouchStart&&vr.onTouchStart(Qt)},Lu=Ue,Ws=yt,rc=Qt=>{Ko(Qt),clearTimeout(ze.current),clearTimeout(mt.current),ot(),Ae.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ye.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ae.current,Ue(Qt)},G)},ic=Qt=>{be.props.onTouchEnd&&be.props.onTouchEnd(Qt),ot(),clearTimeout(ze.current),ze.current=setTimeout(()=>{Re(Qt)},ie)};I.useEffect(()=>{if(!Rt)return;function Qt(vr){(vr.key==="Escape"||vr.key==="Esc")&&Re(vr)}return document.addEventListener("keydown",Qt),()=>{document.removeEventListener("keydown",Qt)}},[Re,Rt]);const tf=mr(be.ref,Or,Nt,n);!ve&&ve!==0&&(Rt=!1);const Qo=I.useRef(),nf=Qt=>{const vr=be.props;vr.onMouseMove&&vr.onMouseMove(Qt),sb={x:Qt.clientX,y:Qt.clientY},Qo.current&&Qo.current.update()},oo={},oc=typeof ve=="string";H?(oo.title=!Rt&&oc&&!z?ve:null,oo["aria-describedby"]=Rt?ut:null):(oo["aria-label"]=oc?ve:null,oo["aria-labelledby"]=Rt&&!oc?ut:null);const Si=$({},oo,me,be.props,{className:je(me.className,be.props.className),onTouchStart:Ko,ref:tf},K?{onMouseMove:nf}:{}),Jo={};F||(Si.onTouchStart=rc,Si.onTouchEnd=ic),z||(Si.onMouseOver=Qw(Lu,Si.onMouseOver),Si.onMouseLeave=Qw(Ws,Si.onMouseLeave),pt||(Jo.onMouseOver=Lu,Jo.onMouseLeave=Ws)),W||(Si.onFocus=Qw(Jr,Si.onFocus),Si.onBlur=Qw(Fr,Si.onBlur),pt||(Jo.onFocus=Jr,Jo.onBlur=Fr));const rf=I.useMemo(()=>{var Qt;let vr=[{name:"arrow",enabled:!!Ie,options:{element:Ie,padding:4}}];return(Qt=le.popperOptions)!=null&&Qt.modifiers&&(vr=vr.concat(le.popperOptions.modifiers)),$({},le.popperOptions,{modifiers:vr})},[Ie,le]),Zo=$({},R,{isRtl:qe,arrow:k,disableInteractive:pt,placement:Q,PopperComponentProp:ae,touch:it.current}),xa=V0e(Zo),Nu=(r=(i=pe.popper)!=null?i:L.Popper)!=null?r:q0e,Hn=(o=(s=(l=pe.transition)!=null?l:L.Transition)!=null?s:ye)!=null?o:RE,Jn=(c=(d=pe.tooltip)!=null?d:L.Tooltip)!=null?c:X0e,bl=(f=(h=pe.arrow)!=null?h:L.Arrow)!=null?f:Y0e,xl=Mb(Nu,$({},le,(p=he.popper)!=null?p:N.popper,{className:je(xa.popper,le==null?void 0:le.className,(g=(v=he.popper)!=null?v:N.popper)==null?void 0:g.className)}),Zo),so=Mb(Hn,$({},xe,(y=he.transition)!=null?y:N.transition),Zo),gv=Mb(Jn,$({},(S=he.tooltip)!=null?S:N.tooltip,{className:je(xa.tooltip,(_=(b=he.tooltip)!=null?b:N.tooltip)==null?void 0:_.className)}),Zo),vv=Mb(bl,$({},(x=he.arrow)!=null?x:N.arrow,{className:je(xa.arrow,(E=(A=he.arrow)!=null?A:N.arrow)==null?void 0:E.className)}),Zo);return C.jsxs(I.Fragment,{children:[I.cloneElement(be,Si),C.jsx(Nu,$({as:ae??wK,placement:Q,anchorEl:K?{getBoundingClientRect:()=>({top:sb.y,left:sb.x,right:sb.x,bottom:sb.y,width:0,height:0})}:at,popperRef:Qo,open:at?Rt:!1,id:ut,transition:!0},Jo,xl,{popperOptions:rf,children:({TransitionProps:Qt})=>C.jsx(Hn,$({timeout:Qe.transitions.duration.shorter},Qt,so,{children:C.jsxs(Jn,$({},gv,{children:[ve,k?C.jsx(bl,$({},vv,{ref:Fe})):null]}))}))}))]})}),qd=K0e;function Q0e(e){return St("MuiSwitch",e)}const J0e=kt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),xo=J0e,Z0e=["className","color","edge","size","sx"],ebe=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:s}=e,l={root:["root",n&&`edge${Me(n)}`,`size${Me(r)}`],switchBase:["switchBase",`color${Me(i)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=Tt(l,Q0e,t);return $({},t,c)},tbe=Ee("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Me(n.edge)}`],t[`size${Me(n.size)}`]]}})(({ownerState:e})=>$({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"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${xo.thumb}`]:{width:16,height:16},[`& .${xo.switchBase}`]:{padding:4,[`&.${xo.checked}`]:{transform:"translateX(16px)"}}})),nbe=Ee(CK,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${xo.input}`]:t.input},n.color!=="default"&&t[`color${Me(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${xo.checked}`]:{transform:"translateX(20px)"},[`&.${xo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${xo.checked} + .${xo.track}`]:{opacity:.5},[`&.${xo.disabled} + .${xo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${xo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>$({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:_n(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${xo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:_n(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Vg(e.palette[t.color].main,.62):Gg(e.palette[t.color].main,.55)}`}},[`&.${xo.checked} + .${xo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),rbe=Ee("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),ibe=Ee("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),obe=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:s=!1,size:l="medium",sx:c}=r,d=Le(r,Z0e),f=$({},r,{color:o,edge:s,size:l}),h=ebe(f),p=C.jsx(ibe,{className:h.thumb,ownerState:f});return C.jsxs(tbe,{className:je(h.root,i),sx:c,ownerState:f,children:[C.jsx(nbe,$({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:f},d,{classes:$({},h,{root:h.switchBase})})),C.jsx(rbe,{className:h.track,ownerState:f})]})}),Sg=obe;function sbe(e){return St("MuiTab",e)}const abe=kt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),gh=abe,lbe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],cbe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:s,selected:l,disabled:c}=e,d={root:["root",o&&s&&"labelIcon",`textColor${Me(n)}`,r&&"fullWidth",i&&"wrapped",l&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return Tt(d,sbe,t)},ube=Ee(Ru,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Me(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>$({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${gh.iconWrapper}`]:$({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${gh.selected}`]:{opacity:1},[`&.${gh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${gh.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${gh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${gh.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${gh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),dbe=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:s=!1,fullWidth:l,icon:c,iconPosition:d="top",indicator:f,label:h,onChange:p,onClick:g,onFocus:v,selected:y,selectionFollowsFocus:S,textColor:_="inherit",value:b,wrapped:x=!1}=r,E=Le(r,lbe),A=$({},r,{disabled:o,disableFocusRipple:s,selected:y,icon:!!c,iconPosition:d,label:!!h,fullWidth:l,textColor:_,wrapped:x}),R=cbe(A),k=c&&h&&I.isValidElement(c)?I.cloneElement(c,{className:je(R.iconWrapper,c.props.className)}):c,O=N=>{!y&&p&&p(N,b),g&&g(N)},L=N=>{S&&!y&&p&&p(N,b),v&&v(N)};return C.jsxs(ube,$({focusRipple:!s,className:je(R.root,i),ref:n,role:"tab","aria-selected":y,disabled:o,onClick:O,onFocus:L,ownerState:A,tabIndex:y?0:-1},E,{children:[d==="top"||d==="start"?C.jsxs(I.Fragment,{children:[k,h]}):C.jsxs(I.Fragment,{children:[h,k]}),f]}))}),Om=dbe;function fbe(e){return St("MuiToolbar",e)}kt("MuiToolbar",["root","gutters","regular","dense"]);const hbe=["className","component","disableGutters","variant"],pbe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Tt({root:["root",!n&&"gutters",r]},fbe,t)},mbe=Ee("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),gbe=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:s=!1,variant:l="regular"}=r,c=Le(r,hbe),d=$({},r,{component:o,disableGutters:s,variant:l}),f=pbe(d);return C.jsx(mbe,$({as:o,className:je(f.root,i),ref:n,ownerState:d},c))}),vbe=gbe,ybe=$t(C.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),bbe=$t(C.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function xbe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function wbe(e,t,n,r={},i=()=>{}){const{ease:o=xbe,duration:s=300}=r;let l=null;const c=t[e];let d=!1;const f=()=>{d=!0},h=p=>{if(d){i(new Error("Animation cancelled"));return}l===null&&(l=p);const g=Math.min(1,(p-l)/s);if(t[e]=o(g)*(n-c)+c,g>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(h)};return c===n?(i(new Error("Element already at target position")),f):(requestAnimationFrame(h),f)}const _be=["onChange"],Sbe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Ebe(e){const{onChange:t}=e,n=Le(e,_be),r=I.useRef(),i=I.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return ko(()=>{const s=VC(()=>{const c=r.current;o(),c!==r.current&&t(r.current)}),l=gu(i.current);return l.addEventListener("resize",s),()=>{s.clear(),l.removeEventListener("resize",s)}},[t]),I.useEffect(()=>{o(),t(r.current)},[t]),C.jsx("div",$({style:Sbe,ref:i},n))}function Cbe(e){return St("MuiTabScrollButton",e)}const Tbe=kt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),kbe=Tbe,Abe=["className","slots","slotProps","direction","orientation","disabled"],Rbe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Tt({root:["root",n,r&&"disabled"]},Cbe,t)},Ibe=Ee(Ru,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>$({width:40,flexShrink:0,opacity:.8,[`&.${kbe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Pbe=I.forwardRef(function(t,n){var r,i;const o=At({props:t,name:"MuiTabScrollButton"}),{className:s,slots:l={},slotProps:c={},direction:d}=o,f=Le(o,Abe),p=Pn().direction==="rtl",g=$({isRtl:p},o),v=Rbe(g),y=(r=l.StartScrollButtonIcon)!=null?r:ybe,S=(i=l.EndScrollButtonIcon)!=null?i:bbe,_=Wr({elementType:y,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),b=Wr({elementType:S,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return C.jsx(Ibe,$({component:"div",className:je(v.root,s),ref:n,role:null,ownerState:g,tabIndex:null},f,{children:d==="left"?C.jsx(y,$({},_)):C.jsx(S,$({},b))}))}),Obe=Pbe;function Mbe(e){return St("MuiTabs",e)}const Dbe=kt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),eL=Dbe,Lbe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],O8=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,M8=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Jw=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=n(e,i);else{i.focus();return}}},Nbe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:s,scrollButtonsHideMobile:l,classes:c}=e;return Tt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Mbe,c)},Bbe=Ee("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${eL.scrollButtons}`]:t.scrollButtons},{[`& .${eL.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>$({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${eL.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),$be=Ee("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>$({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Fbe=Ee("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>$({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),zbe=Ee("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>$({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),jbe=Ee(Ebe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),D8={},Ube=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiTabs"}),i=Pn(),o=i.direction==="rtl",{"aria-label":s,"aria-labelledby":l,action:c,centered:d=!1,children:f,className:h,component:p="div",allowScrollButtonsMobile:g=!1,indicatorColor:v="primary",onChange:y,orientation:S="horizontal",ScrollButtonComponent:_=Obe,scrollButtons:b="auto",selectionFollowsFocus:x,slots:E={},slotProps:A={},TabIndicatorProps:R={},TabScrollButtonProps:k={},textColor:O="primary",value:L,variant:N="standard",visibleScrollbar:H=!1}=r,W=Le(r,Lbe),z=N==="scrollable",D=S==="vertical",F=D?"scrollTop":"scrollLeft",j=D?"top":"left",V=D?"bottom":"right",G=D?"clientHeight":"clientWidth",K=D?"height":"width",Y=$({},r,{component:p,allowScrollButtonsMobile:g,indicatorColor:v,orientation:S,vertical:D,scrollButtons:b,textColor:O,variant:N,visibleScrollbar:H,fixed:!z,hideScrollbar:z&&!H,scrollableX:z&&!D,scrollableY:z&&D,centered:d&&!z,scrollButtonsHideMobile:!g}),J=Nbe(Y),ie=Wr({elementType:E.StartScrollButtonIcon,externalSlotProps:A.startScrollButtonIcon,ownerState:Y}),ce=Wr({elementType:E.EndScrollButtonIcon,externalSlotProps:A.endScrollButtonIcon,ownerState:Y}),[ue,se]=I.useState(!1),[Q,ae]=I.useState(D8),[le,he]=I.useState(!1),[pe,ve]=I.useState(!1),[ye,xe]=I.useState(!1),[me,be]=I.useState({overflow:"hidden",scrollbarWidth:0}),Qe=new Map,qe=I.useRef(null),at=I.useRef(null),Nt=()=>{const Re=qe.current;let Ue;if(Re){const Wt=Re.getBoundingClientRect();Ue={clientWidth:Re.clientWidth,scrollLeft:Re.scrollLeft,scrollTop:Re.scrollTop,scrollLeftNormalized:woe(Re,i.direction),scrollWidth:Re.scrollWidth,top:Wt.top,bottom:Wt.bottom,left:Wt.left,right:Wt.right}}let yt;if(Re&&L!==!1){const Wt=at.current.children;if(Wt.length>0){const pn=Wt[Qe.get(L)];yt=pn?pn.getBoundingClientRect():null}}return{tabsMeta:Ue,tabMeta:yt}},Ie=Zi(()=>{const{tabsMeta:Re,tabMeta:Ue}=Nt();let yt=0,Wt;if(D)Wt="top",Ue&&Re&&(yt=Ue.top-Re.top+Re.scrollTop);else if(Wt=o?"right":"left",Ue&&Re){const $r=o?Re.scrollLeftNormalized+Re.clientWidth-Re.scrollWidth:Re.scrollLeft;yt=(o?-1:1)*(Ue[Wt]-Re[Wt]+$r)}const pn={[Wt]:yt,[K]:Ue?Ue[K]:0};if(isNaN(Q[Wt])||isNaN(Q[K]))ae(pn);else{const $r=Math.abs(Q[Wt]-pn[Wt]),Or=Math.abs(Q[K]-pn[K]);($r>=1||Or>=1)&&ae(pn)}}),Fe=(Re,{animation:Ue=!0}={})=>{Ue?wbe(F,qe.current,Re,{duration:i.transitions.duration.standard}):qe.current[F]=Re},it=Re=>{let Ue=qe.current[F];D?Ue+=Re:(Ue+=Re*(o?-1:1),Ue*=o&&Eq()==="reverse"?-1:1),Fe(Ue)},pt=()=>{const Re=qe.current[G];let Ue=0;const yt=Array.from(at.current.children);for(let Wt=0;WtRe){Wt===0&&(Ue=Re);break}Ue+=pn[G]}return Ue},mt=()=>{it(-1*pt())},_e=()=>{it(pt())},ze=I.useCallback(Re=>{be({overflow:null,scrollbarWidth:Re})},[]),Ye=()=>{const Re={};Re.scrollbarSizeListener=z?C.jsx(jbe,{onChange:ze,className:je(J.scrollableX,J.hideScrollbar)}):null;const yt=z&&(b==="auto"&&(le||pe)||b===!0);return Re.scrollButtonStart=yt?C.jsx(_,$({slots:{StartScrollButtonIcon:E.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ie},orientation:S,direction:o?"right":"left",onClick:mt,disabled:!le},k,{className:je(J.scrollButtons,k.className)})):null,Re.scrollButtonEnd=yt?C.jsx(_,$({slots:{EndScrollButtonIcon:E.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ce},orientation:S,direction:o?"left":"right",onClick:_e,disabled:!pe},k,{className:je(J.scrollButtons,k.className)})):null,Re},$e=Zi(Re=>{const{tabsMeta:Ue,tabMeta:yt}=Nt();if(!(!yt||!Ue)){if(yt[j]Ue[V]){const Wt=Ue[F]+(yt[V]-Ue[V]);Fe(Wt,{animation:Re})}}}),Ne=Zi(()=>{z&&b!==!1&&xe(!ye)});I.useEffect(()=>{const Re=VC(()=>{qe.current&&Ie()}),Ue=gu(qe.current);Ue.addEventListener("resize",Re);let yt;return typeof ResizeObserver<"u"&&(yt=new ResizeObserver(Re),Array.from(at.current.children).forEach(Wt=>{yt.observe(Wt)})),()=>{Re.clear(),Ue.removeEventListener("resize",Re),yt&&yt.disconnect()}},[Ie]),I.useEffect(()=>{const Re=Array.from(at.current.children),Ue=Re.length;if(typeof IntersectionObserver<"u"&&Ue>0&&z&&b!==!1){const yt=Re[0],Wt=Re[Ue-1],pn={root:qe.current,threshold:.99},$r=Jr=>{he(!Jr[0].isIntersecting)},Or=new IntersectionObserver($r,pn);Or.observe(yt);const Mr=Jr=>{ve(!Jr[0].isIntersecting)},Fr=new IntersectionObserver(Mr,pn);return Fr.observe(Wt),()=>{Or.disconnect(),Fr.disconnect()}}},[z,b,ye,f==null?void 0:f.length]),I.useEffect(()=>{se(!0)},[]),I.useEffect(()=>{Ie()}),I.useEffect(()=>{$e(D8!==Q)},[$e,Q]),I.useImperativeHandle(c,()=>({updateIndicator:Ie,updateScrollButtons:Ne}),[Ie,Ne]);const Rt=C.jsx(zbe,$({},R,{className:je(J.indicator,R.className),ownerState:Y,style:$({},Q,R.style)}));let ut=0;const Ae=I.Children.map(f,Re=>{if(!I.isValidElement(Re))return null;const Ue=Re.props.value===void 0?ut:Re.props.value;Qe.set(Ue,ut);const yt=Ue===L;return ut+=1,I.cloneElement(Re,$({fullWidth:N==="fullWidth",indicator:yt&&!ue&&Rt,selected:yt,selectionFollowsFocus:x,onChange:y,textColor:O,value:Ue},ut===1&&L===!1&&!Re.props.tabIndex?{tabIndex:0}:{}))}),ot=Re=>{const Ue=at.current,yt=Ar(Ue).activeElement;if(yt.getAttribute("role")!=="tab")return;let pn=S==="horizontal"?"ArrowLeft":"ArrowUp",$r=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&o&&(pn="ArrowRight",$r="ArrowLeft"),Re.key){case pn:Re.preventDefault(),Jw(Ue,yt,M8);break;case $r:Re.preventDefault(),Jw(Ue,yt,O8);break;case"Home":Re.preventDefault(),Jw(Ue,null,O8);break;case"End":Re.preventDefault(),Jw(Ue,null,M8);break}},Ft=Ye();return C.jsxs(Bbe,$({className:je(J.root,h),ownerState:Y,ref:n,as:p},W,{children:[Ft.scrollButtonStart,Ft.scrollbarSizeListener,C.jsxs($be,{className:J.scroller,ownerState:Y,style:{overflow:me.overflow,[D?`margin${o?"Left":"Right"}`:"marginBottom"]:H?void 0:-me.scrollbarWidth},ref:qe,children:[C.jsx(Fbe,{"aria-label":s,"aria-labelledby":l,"aria-orientation":S==="vertical"?"vertical":null,className:J.flexContainer,ownerState:Y,onKeyDown:ot,ref:at,role:"tablist",children:Ae}),ue&&Rt]}),Ft.scrollButtonEnd]}))}),Hbe=Ube;function Wbe(e){return St("MuiTextField",e)}kt("MuiTextField",["root"]);const Gbe=["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"],Vbe={standard:MK,filled:RK,outlined:zK},qbe=e=>{const{classes:t}=e;return Tt({root:["root"]},Wbe,t)},Xbe=Ee(pge,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Ybe=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:s,className:l,color:c="primary",defaultValue:d,disabled:f=!1,error:h=!1,FormHelperTextProps:p,fullWidth:g=!1,helperText:v,id:y,InputLabelProps:S,inputProps:_,InputProps:b,inputRef:x,label:E,maxRows:A,minRows:R,multiline:k=!1,name:O,onBlur:L,onChange:N,onFocus:H,placeholder:W,required:z=!1,rows:D,select:F=!1,SelectProps:j,type:V,value:G,variant:K="outlined"}=r,Y=Le(r,Gbe),J=$({},r,{autoFocus:o,color:c,disabled:f,error:h,fullWidth:g,multiline:k,required:z,select:F,variant:K}),ie=qbe(J),ce={};K==="outlined"&&(S&&typeof S.shrink<"u"&&(ce.notched=S.shrink),ce.label=E),F&&((!j||!j.native)&&(ce.id=void 0),ce["aria-describedby"]=void 0);const ue=b5(y),se=v&&ue?`${ue}-helper-text`:void 0,Q=E&&ue?`${ue}-label`:void 0,ae=Vbe[K],le=C.jsx(ae,$({"aria-describedby":se,autoComplete:i,autoFocus:o,defaultValue:d,fullWidth:g,multiline:k,name:O,rows:D,maxRows:A,minRows:R,type:V,value:G,id:ue,inputRef:x,onBlur:L,onChange:N,onFocus:H,placeholder:W,inputProps:_},ce,b));return C.jsxs(Xbe,$({className:je(ie.root,l),disabled:f,error:h,fullWidth:g,ref:n,required:z,color:c,variant:K,ownerState:J},Y,{children:[E!=null&&E!==""&&C.jsx(Zge,$({htmlFor:ue,id:Q},S,{children:E})),F?C.jsx(c0e,$({"aria-describedby":se,id:ue,labelId:Q,value:G,input:le},j,{children:s})):le,v&&C.jsx(Ige,$({id:se},p,{children:v}))]}))}),V1=Ybe;function gn({vertical:e,...t}){return C.jsx(lt,{position:"relative",height:"100%",width:"100%",display:"flex",flexDirection:e?"column":"row",...t})}const UK=$t(C.jsx("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3h7zM7 9H4V5h3v4zm10 6h3v4h-3v-4zm0-10h3v4h-3V5z"}),"AccountTreeOutlined"),Kbe=$t(C.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),Qbe=$t(C.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack"),Jbe=$t(C.jsx("path",{d:"M6 7c0 .55.45 1 1 1h7.59l-8.88 8.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L16 9.41V17c0 .55.45 1 1 1s1-.45 1-1V7c0-.55-.45-1-1-1H7c-.55 0-1 .45-1 1z"}),"ArrowOutwardRounded"),Zbe=$t(C.jsx("path",{d:"M10 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zM7 9.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm3 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm-3-3c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm3-6c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM14 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-1.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zm3 6c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-4c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm2-3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-3.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1z"}),"BlurCircularOutlined"),exe=$t(C.jsx("path",{d:"M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-3 .5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM6 5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm15 5.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-3.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zm-11 10c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm7 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-17c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM10 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0 5.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm8 .5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm3 8.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM14 17c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm-4-12c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0 8.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm4-4.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-4c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"}),"BlurOnOutlined"),txe=$t(C.jsx("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65C8.03 15.48 8 15.23 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18c.31-.08.63-.12.94-.12.32 0 .63.04.95.12l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"}),"BugReportOutlined"),nxe=$t(C.jsx("path",{d:"M17 12c0-2.76-2.24-5-5-5s-5 2.24-5 5 2.24 5 5 5 5-2.24 5-5zm-5 3c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3zm-7 0H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4z"}),"CenterFocusStrongOutlined"),rxe=$t(C.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}),"ChevronRightOutlined"),ixe=$t(C.jsx("path",{d:"M19 6.41 17.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 12 19 6.41z"}),"ClearOutlined"),HK=$t(C.jsx("path",{d:"M19 6.41 17.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 12 19 6.41z"}),"CloseOutlined"),oxe=$t(C.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"CodeOutlined"),sxe=$t(C.jsx("path",{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"}),"CropFreeOutlined"),axe=$t(C.jsx("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}),"DragHandleOutlined"),rk=$t(C.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"}),"EditOutlined"),lxe=$t(C.jsx("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord"),WK=$t(C.jsx("path",{d:"M15 22H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h8l6 6v6h-2V9h-5V4H6v16h9v2zm4-.34v-2.24l2.95 2.95 1.41-1.41L20.41 18h2.24v-2H17v5.66h2z"}),"FileOpenOutlined"),cxe=$t(C.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),uxe=$t(C.jsx("path",{d:"M2.81 2.81 1.39 4.22l2.27 2.27C2.61 8.07 2 9.96 2 12c0 5.52 4.48 10 10 10 2.04 0 3.93-.61 5.51-1.66l2.27 2.27 1.41-1.41L2.81 2.81zM12 20c-4.41 0-8-3.59-8-8 0-1.48.41-2.86 1.12-4.06l10.94 10.94C14.86 19.59 13.48 20 12 20zM7.94 5.12 6.49 3.66C8.07 2.61 9.96 2 12 2c5.52 0 10 4.48 10 10 0 2.04-.61 3.93-1.66 5.51l-1.46-1.46C19.59 14.86 20 13.48 20 12c0-4.41-3.59-8-8-8-1.48 0-2.86.41-4.06 1.12z"}),"HideSourceOutlined"),dxe=$t(C.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined"),fxe=$t(C.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDownOutlined"),hxe=$t(C.jsx("path",{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l3.55 5L16 17z"}),"LabelOutlined"),q1=$t(C.jsx("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"}),"LayersOutlined"),GK=$t(C.jsx("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7zm-4 6h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"}),"ListOutlined"),pxe=$t(C.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVertOutlined"),mxe=$t(C.jsx("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}),"PauseOutlined"),gxe=$t(C.jsx("path",{d:"M12 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm6-1.8C18 6.57 15.35 4 12 4s-6 2.57-6 6.2c0 2.34 1.95 5.44 6 9.14 4.05-3.7 6-6.8 6-9.14zM12 2c4.2 0 8 3.22 8 8.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 5.22 7.8 2 12 2z"}),"PlaceOutlined"),vxe=$t(C.jsx("path",{d:"M10 8.64 15.27 12 10 15.36V8.64M8 5v14l11-7L8 5z"}),"PlayArrowOutlined"),VK=$t(C.jsx("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"ReplayOutlined"),yxe=$t(C.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"SearchOutlined"),bxe=$t(C.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}),"SettingsOutlined"),xxe=$t(C.jsx("path",{d:"m6 18 8.5-6L6 6v12zm2-8.14L11.03 12 8 14.14V9.86zM16 6h2v12h-2z"}),"SkipNextOutlined"),wxe=$t(C.jsx("path",{d:"M6 6h2v12H6zm3.5 6 8.5 6V6l-8.5 6zm6.5 2.14L12.97 12 16 9.86v4.28z"}),"SkipPreviousOutlined"),CS=$t(C.jsx("path",{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}),"SortOutlined"),_xe=$t(C.jsx("path",{d:"M16 8v8H8V8h8m2-2H6v12h12V6z"}),"StopOutlined"),Sxe=$t(C.jsx("path",{d:"M2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm10 6c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6z"}),"TripOriginOutlined"),L8=$t(C.jsx("path",{d:"M19 13H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm0 6H5v-4h14v4zm0-16H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 6H5V5h14v4z"}),"ViewAgendaOutlined"),qK=$t(C.jsx("path",{d:"M3 4c0-.55.45-1 1-1h2V1H4C2.34 1 1 2.34 1 4v2h2V4zm0 16v-2H1v2c0 1.66 1.34 3 3 3h2v-2H4c-.55 0-1-.45-1-1zM20 1h-2v2h2c.55 0 1 .45 1 1v2h2V4c0-1.66-1.34-3-3-3zm1 19c0 .55-.45 1-1 1h-2v2h2c1.66 0 3-1.34 3-3v-2h-2v2zm-2-5.13V9.13c0-.72-.38-1.38-1-1.73l-5-2.88c-.31-.18-.65-.27-1-.27s-.69.09-1 .27L6 7.39c-.62.36-1 1.02-1 1.74v5.74c0 .72.38 1.38 1 1.73l5 2.88c.31.18.65.27 1 .27s.69-.09 1-.27l5-2.88c.62-.35 1-1.01 1-1.73zm-8 2.3-4-2.3v-4.63l4 2.33v4.6zm1-6.33L8.04 8.53 12 6.25l3.96 2.28L12 10.84zm5 4.03-4 2.3v-4.6l4-2.33v4.63z"}),"ViewInArOutlined"),Exe=$t(C.jsx("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5c1.38 0 2.5 1.12 2.5 2.5S13.38 14 12 14s-2.5-1.12-2.5-2.5S10.62 9 12 9m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z"}),"VisibilityOutlined"),Cxe=$t(C.jsx("path",{d:"m16.66 4.52 2.83 2.83-2.83 2.83-2.83-2.83 2.83-2.83M9 5v4H5V5h4m10 10v4h-4v-4h4M9 15v4H5v-4h4m7.66-13.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65zM11 3H3v8h8V3zm10 10h-8v8h8v-8zm-10 0H3v8h8v-8z"}),"WidgetsOutlined"),q4=$t(C.jsx("path",{d:"M6 15c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0-2c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm6-8c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0-2C9.8 3 8 4.8 8 7s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm6 12c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0-2c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4z"}),"WorkspacesOutlined");var OE={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 - */RE.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,p=2,g=4,v=1,y=2,S=1,_=2,b=4,x=8,E=16,A=32,I=64,k=128,O=256,L=512,N=30,H="...",W=800,z=16,D=1,F=2,j=3,V=1/0,G=9007199254740991,K=17976931348623157e292,Y=0/0,J=4294967295,ie=J-1,ce=J>>>1,ue=[["ary",k],["bind",S],["bindKey",_],["curry",x],["curryRight",E],["flip",L],["partial",A],["partialRight",I],["rearg",O]],se="[object Arguments]",Q="[object Array]",ae="[object AsyncFunction]",le="[object Boolean]",he="[object Date]",pe="[object DOMException]",ve="[object Error]",ye="[object Function]",xe="[object GeneratorFunction]",me="[object Map]",be="[object Number]",Qe="[object Null]",qe="[object Object]",at="[object Promise]",Lt="[object Proxy]",Re="[object RegExp]",Fe="[object Set]",it="[object String]",pt="[object Symbol]",mt="[object Undefined]",_e="[object WeakMap]",ze="[object WeakSet]",Ye="[object ArrayBuffer]",$e="[object DataView]",Ne="[object Float32Array]",It="[object Float64Array]",ct="[object Int8Array]",Ae="[object Int16Array]",ot="[object Int32Array]",$t="[object Uint8Array]",Ie="[object Uint8ClampedArray]",Ue="[object Uint16Array]",yt="[object Uint32Array]",Wt=/\b__p \+= '';/g,pn=/\b(__p \+=) '' \+/g,$r=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Or=/&(?:amp|lt|gt|quot|#39);/g,Mr=/[&<>"']/g,Fr=RegExp(Or.source),Jr=RegExp(Mr.source),Ko=/<%-([\s\S]+?)%>/g,Ou=/<%([\s\S]+?)%>/g,Ws=/<%=([\s\S]+?)%>/g,nc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rc=/^\w*$/,ef=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qo=/[\\^$.*+?()[\]{}|]/g,tf=RegExp(Qo.source),oo=/^\s+/,ic=/\s/,Si=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Jo=/\{\n\/\* \[wrapped with (.+)\] \*/,nf=/,? & /,Zo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ba=/[()=,{}\[\]\/\s]/,Mu=/\\(\\)?/g,Hn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Jn=/\w*$/,vl=/^[-+]0x[0-9a-f]+$/i,yl=/^0b[01]+$/i,so=/^\[object .+?Constructor\]$/,hv=/^0o[0-7]+$/i,pv=/^(?:0|[1-9]\d*)$/,Qt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vr=/($^)/,iA=/['\n\r\u2028\u2029\\]/g,oc="\\ud800-\\udfff",oA="\\u0300-\\u036f",sA="\\ufe20-\\ufe2f",aA="\\u20d0-\\u20ff",mv=oA+sA+aA,gv="\\u2700-\\u27bf",vv="a-z\\xdf-\\xf6\\xf8-\\xff",lA="\\xac\\xb1\\xd7\\xf7",cA="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",uA="\\u2000-\\u206f",dA=" \\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",yv="A-Z\\xc0-\\xd6\\xd8-\\xde",bv="\\ufe0e\\ufe0f",xv=lA+cA+uA+dA,rf="['’]",fA="["+oc+"]",wv="["+xv+"]",sc="["+mv+"]",_v="\\d+",hA="["+gv+"]",Sv="["+vv+"]",Ev="[^"+oc+xv+_v+gv+vv+yv+"]",of="\\ud83c[\\udffb-\\udfff]",pA="(?:"+sc+"|"+of+")",Cv="[^"+oc+"]",sf="(?:\\ud83c[\\udde6-\\uddff]){2}",af="[\\ud800-\\udbff][\\udc00-\\udfff]",es="["+yv+"]",Tv="\\u200d",kv="(?:"+Sv+"|"+Ev+")",mA="(?:"+es+"|"+Ev+")",Av="(?:"+rf+"(?:d|ll|m|re|s|t|ve))?",Iv="(?:"+rf+"(?:D|LL|M|RE|S|T|VE))?",Rv=pA+"?",Pv="["+bv+"]?",gA="(?:"+Tv+"(?:"+[Cv,sf,af].join("|")+")"+Pv+Rv+")*",vA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ov=Pv+Rv+gA,bA="(?:"+[hA,sf,af].join("|")+")"+Ov,xA="(?:"+[Cv+sc+"?",sc,sf,af,fA].join("|")+")",wA=RegExp(rf,"g"),_A=RegExp(sc,"g"),lf=RegExp(of+"(?="+of+")|"+xA+Ov,"g"),SA=RegExp([es+"?"+Sv+"+"+Av+"(?="+[wv,es,"$"].join("|")+")",mA+"+"+Iv+"(?="+[wv,es+kv,"$"].join("|")+")",es+"?"+kv+"+"+Av,es+"+"+Iv,yA,vA,_v,bA].join("|"),"g"),EA=RegExp("["+Tv+oc+mv+bv+"]"),CA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,TA=["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"],kA=-1,Pt={};Pt[Ne]=Pt[It]=Pt[ct]=Pt[Ae]=Pt[ot]=Pt[$t]=Pt[Ie]=Pt[Ue]=Pt[yt]=!0,Pt[se]=Pt[Q]=Pt[Ye]=Pt[le]=Pt[$e]=Pt[he]=Pt[ve]=Pt[ye]=Pt[me]=Pt[be]=Pt[qe]=Pt[Re]=Pt[Fe]=Pt[it]=Pt[_e]=!1;var Et={};Et[se]=Et[Q]=Et[Ye]=Et[$e]=Et[le]=Et[he]=Et[Ne]=Et[It]=Et[ct]=Et[Ae]=Et[ot]=Et[me]=Et[be]=Et[qe]=Et[Re]=Et[Fe]=Et[it]=Et[pt]=Et[$t]=Et[Ie]=Et[Ue]=Et[yt]=!0,Et[ve]=Et[ye]=Et[_e]=!1;var AA={À:"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"},IA={"&":"&","<":"<",">":">",'"':""","'":"'"},RA={"&":"&","<":"<",">":">",""":'"',"'":"'"},PA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},OA=parseFloat,MA=parseInt,Mv=typeof Nt=="object"&&Nt&&Nt.Object===Object&&Nt,DA=typeof self=="object"&&self&&self.Object===Object&&self,dn=Mv||DA||Function("return this")(),cf=t&&!t.nodeType&&t,ao=cf&&!0&&e&&!e.nodeType&&e,Dv=ao&&ao.exports===cf,uf=Dv&&Mv.process,tr=function(){try{var q=ao&&ao.require&&ao.require("util").types;return q||uf&&uf.binding&&uf.binding("util")}catch{}}(),Lv=tr&&tr.isArrayBuffer,Nv=tr&&tr.isDate,Bv=tr&&tr.isMap,$v=tr&&tr.isRegExp,Fv=tr&&tr.isSet,zv=tr&&tr.isTypedArray;function Wn(q,ee,Z){switch(Z.length){case 0:return q.call(ee);case 1:return q.call(ee,Z[0]);case 2:return q.call(ee,Z[0],Z[1]);case 3:return q.call(ee,Z[0],Z[1],Z[2])}return q.apply(ee,Z)}function LA(q,ee,Z,ge){for(var De=-1,ut=q==null?0:q.length;++De-1}function df(q,ee,Z){for(var ge=-1,De=q==null?0:q.length;++ge-1;);return Z}function Xv(q,ee){for(var Z=q.length;Z--&&ts(ee,q[Z],0)>-1;);return Z}function WA(q,ee){for(var Z=q.length,ge=0;Z--;)q[Z]===ee&&++ge;return ge}var GA=mf(AA),VA=mf(IA);function qA(q){return"\\"+PA[q]}function XA(q,ee){return q==null?n:q[ee]}function ns(q){return EA.test(q)}function YA(q){return CA.test(q)}function KA(q){for(var ee,Z=[];!(ee=q.next()).done;)Z.push(ee.value);return Z}function bf(q){var ee=-1,Z=Array(q.size);return q.forEach(function(ge,De){Z[++ee]=[De,ge]}),Z}function Yv(q,ee){return function(Z){return q(ee(Z))}}function Ti(q,ee){for(var Z=-1,ge=q.length,De=0,ut=[];++Z-1}function BI(a,u){var m=this.__data__,w=Ec(m,a);return w<0?(++this.size,m.push([a,u])):m[w][1]=u,this}Zr.prototype.clear=MI,Zr.prototype.delete=DI,Zr.prototype.get=LI,Zr.prototype.has=NI,Zr.prototype.set=BI;function ei(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u=u?a:u)),a}function or(a,u,m,w,T,M){var B,U=u&h,X=u&p,ne=u&g;if(m&&(B=T?m(a,w,T,M):m(a)),B!==n)return B;if(!Ft(a))return a;var re=Be(a);if(re){if(B=jR(a),!U)return Pn(a,B)}else{var oe=vn(a),fe=oe==ye||oe==xe;if(Oi(a))return Py(a,U);if(oe==qe||oe==se||fe&&!T){if(B=X||fe?{}:Ky(a),!U)return X?RR(a,ZI(B,a)):IR(a,ay(B,a))}else{if(!Et[oe])return T?a:{};B=UR(a,oe,U)}}M||(M=new br);var we=M.get(a);if(we)return we;M.set(a,B),C0(a)?a.forEach(function(ke){B.add(or(ke,u,m,ke,a,M))}):S0(a)&&a.forEach(function(ke,Ke){B.set(Ke,or(ke,u,m,Ke,a,M))});var Te=ne?X?Gf:Wf:X?Mn:nn,Ve=re?n:Te(a);return nr(Ve||a,function(ke,Ke){Ve&&(Ke=ke,ke=a[Ke]),Ta(B,Ke,or(ke,u,m,Ke,a,M))}),B}function eR(a){var u=nn(a);return function(m){return ly(m,a,u)}}function ly(a,u,m){var w=m.length;if(a==null)return!w;for(a=wt(a);w--;){var T=m[w],M=u[T],B=a[T];if(B===n&&!(T in a)||!M(B))return!1}return!0}function cy(a,u,m){if(typeof a!="function")throw new rr(s);return Ma(function(){a.apply(n,m)},u)}function ka(a,u,m,w){var T=-1,M=ac,B=!0,U=a.length,X=[],ne=u.length;if(!U)return X;m&&(u=Dt(u,Gn(m))),w?(M=df,B=!1):u.length>=i&&(M=xa,B=!1,u=new uo(u));e:for(;++TT?0:T+m),w=w===n||w>T?T:We(w),w<0&&(w+=T),w=m>w?0:k0(w);m0&&m(U)?u>1?fn(U,u-1,m,w,T):Ci(T,U):w||(T[T.length]=U)}return T}var Tf=By(),fy=By(!0);function zr(a,u){return a&&Tf(a,u,nn)}function kf(a,u){return a&&fy(a,u,nn)}function Tc(a,u){return Ei(u,function(m){return oi(a[m])})}function ho(a,u){u=Ri(u,a);for(var m=0,w=u.length;a!=null&&mu}function rR(a,u){return a!=null&&vt.call(a,u)}function iR(a,u){return a!=null&&u in wt(a)}function oR(a,u,m){return a>=gn(u,m)&&a=120&&re.length>=120)?new uo(B&&re):n}re=a[0];var oe=-1,fe=U[0];e:for(;++oe-1;)U!==a&&vc.call(U,X,1),vc.call(a,X,1);return a}function Sy(a,u){for(var m=a?u.length:0,w=m-1;m--;){var T=u[m];if(m==w||T!==M){var M=T;ii(T)?vc.call(a,T,1):Bf(a,T)}}return a}function Df(a,u){return a+xc(ry()*(u-a+1))}function yR(a,u,m,w){for(var T=-1,M=Zt(bc((u-a)/(m||1)),0),B=Z(M);M--;)B[w?M:++T]=a,a+=m;return B}function Lf(a,u){var m="";if(!a||u<1||u>G)return m;do u%2&&(m+=a),u=xc(u/2),u&&(a+=a);while(u);return m}function Xe(a,u){return Jf(Zy(a,u,Dn),a+"")}function bR(a){return sy(hs(a))}function xR(a,u){var m=hs(a);return Bc(m,fo(u,0,m.length))}function Ra(a,u,m,w){if(!Ft(a))return a;u=Ri(u,a);for(var T=-1,M=u.length,B=M-1,U=a;U!=null&&++TT?0:T+u),m=m>T?T:m,m<0&&(m+=T),T=u>m?0:m-u>>>0,u>>>=0;for(var M=Z(T);++w>>1,B=a[M];B!==null&&!qn(B)&&(m?B<=u:B=i){var ne=u?null:DR(a);if(ne)return cc(ne);B=!1,T=xa,X=new uo}else X=u?[]:U;e:for(;++w=w?a:sr(a,u,m)}var Ry=dI||function(a){return dn.clearTimeout(a)};function Py(a,u){if(u)return a.slice();var m=a.length,w=Jv?Jv(m):new a.constructor(m);return a.copy(w),w}function jf(a){var u=new a.constructor(a.byteLength);return new mc(u).set(new mc(a)),u}function CR(a,u){var m=u?jf(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.byteLength)}function TR(a){var u=new a.constructor(a.source,Jn.exec(a));return u.lastIndex=a.lastIndex,u}function kR(a){return Ca?wt(Ca.call(a)):{}}function Oy(a,u){var m=u?jf(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.length)}function My(a,u){if(a!==u){var m=a!==n,w=a===null,T=a===a,M=qn(a),B=u!==n,U=u===null,X=u===u,ne=qn(u);if(!U&&!ne&&!M&&a>u||M&&B&&X&&!U&&!ne||w&&B&&X||!m&&X||!T)return 1;if(!w&&!M&&!ne&&a=U)return X;var ne=m[w];return X*(ne=="desc"?-1:1)}}return a.index-u.index}function Dy(a,u,m,w){for(var T=-1,M=a.length,B=m.length,U=-1,X=u.length,ne=Zt(M-B,0),re=Z(X+ne),oe=!w;++U1?m[T-1]:n,B=T>2?m[2]:n;for(M=a.length>3&&typeof M=="function"?(T--,M):n,B&&Cn(m[0],m[1],B)&&(M=T<3?n:M,T=1),u=wt(u);++w-1?T[M?u[B]:B]:n}}function zy(a){return ri(function(u){var m=u.length,w=m,T=ir.prototype.thru;for(a&&u.reverse();w--;){var M=u[w];if(typeof M!="function")throw new rr(s);if(T&&!B&&Lc(M)=="wrapper")var B=new ir([],!0)}for(w=B?w:m;++w1&&nt.reverse(),re&&XU))return!1;var ne=M.get(a),re=M.get(u);if(ne&&re)return ne==u&&re==a;var oe=-1,fe=!0,we=m&y?new uo:n;for(M.set(a,u),M.set(u,a);++oe1?"& ":"")+u[w],u=u.join(m>2?", ":" "),a.replace(Si,`{ + */OE.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,p=2,g=4,v=1,y=2,S=1,_=2,b=4,x=8,E=16,A=32,R=64,k=128,O=256,L=512,N=30,H="...",W=800,z=16,D=1,F=2,j=3,V=1/0,G=9007199254740991,K=17976931348623157e292,Y=0/0,J=4294967295,ie=J-1,ce=J>>>1,ue=[["ary",k],["bind",S],["bindKey",_],["curry",x],["curryRight",E],["flip",L],["partial",A],["partialRight",R],["rearg",O]],se="[object Arguments]",Q="[object Array]",ae="[object AsyncFunction]",le="[object Boolean]",he="[object Date]",pe="[object DOMException]",ve="[object Error]",ye="[object Function]",xe="[object GeneratorFunction]",me="[object Map]",be="[object Number]",Qe="[object Null]",qe="[object Object]",at="[object Promise]",Nt="[object Proxy]",Ie="[object RegExp]",Fe="[object Set]",it="[object String]",pt="[object Symbol]",mt="[object Undefined]",_e="[object WeakMap]",ze="[object WeakSet]",Ye="[object ArrayBuffer]",$e="[object DataView]",Ne="[object Float32Array]",Rt="[object Float64Array]",ut="[object Int8Array]",Ae="[object Int16Array]",ot="[object Int32Array]",Ft="[object Uint8Array]",Re="[object Uint8ClampedArray]",Ue="[object Uint16Array]",yt="[object Uint32Array]",Wt=/\b__p \+= '';/g,pn=/\b(__p \+=) '' \+/g,$r=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Or=/&(?:amp|lt|gt|quot|#39);/g,Mr=/[&<>"']/g,Fr=RegExp(Or.source),Jr=RegExp(Mr.source),Ko=/<%-([\s\S]+?)%>/g,Lu=/<%([\s\S]+?)%>/g,Ws=/<%=([\s\S]+?)%>/g,rc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ic=/^\w*$/,tf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qo=/[\\^$.*+?()[\]{}|]/g,nf=RegExp(Qo.source),oo=/^\s+/,oc=/\s/,Si=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Jo=/\{\n\/\* \[wrapped with (.+)\] \*/,rf=/,? & /,Zo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xa=/[()=,{}\[\]\/\s]/,Nu=/\\(\\)?/g,Hn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Jn=/\w*$/,bl=/^[-+]0x[0-9a-f]+$/i,xl=/^0b[01]+$/i,so=/^\[object .+?Constructor\]$/,gv=/^0o[0-7]+$/i,vv=/^(?:0|[1-9]\d*)$/,Qt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vr=/($^)/,sA=/['\n\r\u2028\u2029\\]/g,sc="\\ud800-\\udfff",aA="\\u0300-\\u036f",lA="\\ufe20-\\ufe2f",cA="\\u20d0-\\u20ff",yv=aA+lA+cA,bv="\\u2700-\\u27bf",xv="a-z\\xdf-\\xf6\\xf8-\\xff",uA="\\xac\\xb1\\xd7\\xf7",dA="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fA="\\u2000-\\u206f",hA=" \\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",wv="A-Z\\xc0-\\xd6\\xd8-\\xde",_v="\\ufe0e\\ufe0f",Sv=uA+dA+fA+hA,of="['’]",pA="["+sc+"]",Ev="["+Sv+"]",ac="["+yv+"]",Cv="\\d+",mA="["+bv+"]",Tv="["+xv+"]",kv="[^"+sc+Sv+Cv+bv+xv+wv+"]",sf="\\ud83c[\\udffb-\\udfff]",gA="(?:"+ac+"|"+sf+")",Av="[^"+sc+"]",af="(?:\\ud83c[\\udde6-\\uddff]){2}",lf="[\\ud800-\\udbff][\\udc00-\\udfff]",es="["+wv+"]",Rv="\\u200d",Iv="(?:"+Tv+"|"+kv+")",vA="(?:"+es+"|"+kv+")",Pv="(?:"+of+"(?:d|ll|m|re|s|t|ve))?",Ov="(?:"+of+"(?:D|LL|M|RE|S|T|VE))?",Mv=gA+"?",Dv="["+_v+"]?",yA="(?:"+Rv+"(?:"+[Av,af,lf].join("|")+")"+Dv+Mv+")*",bA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Lv=Dv+Mv+yA,wA="(?:"+[mA,af,lf].join("|")+")"+Lv,_A="(?:"+[Av+ac+"?",ac,af,lf,pA].join("|")+")",SA=RegExp(of,"g"),EA=RegExp(ac,"g"),cf=RegExp(sf+"(?="+sf+")|"+_A+Lv,"g"),CA=RegExp([es+"?"+Tv+"+"+Pv+"(?="+[Ev,es,"$"].join("|")+")",vA+"+"+Ov+"(?="+[Ev,es+Iv,"$"].join("|")+")",es+"?"+Iv+"+"+Pv,es+"+"+Ov,xA,bA,Cv,wA].join("|"),"g"),TA=RegExp("["+Rv+sc+yv+_v+"]"),kA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,AA=["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"],RA=-1,Pt={};Pt[Ne]=Pt[Rt]=Pt[ut]=Pt[Ae]=Pt[ot]=Pt[Ft]=Pt[Re]=Pt[Ue]=Pt[yt]=!0,Pt[se]=Pt[Q]=Pt[Ye]=Pt[le]=Pt[$e]=Pt[he]=Pt[ve]=Pt[ye]=Pt[me]=Pt[be]=Pt[qe]=Pt[Ie]=Pt[Fe]=Pt[it]=Pt[_e]=!1;var Et={};Et[se]=Et[Q]=Et[Ye]=Et[$e]=Et[le]=Et[he]=Et[Ne]=Et[Rt]=Et[ut]=Et[Ae]=Et[ot]=Et[me]=Et[be]=Et[qe]=Et[Ie]=Et[Fe]=Et[it]=Et[pt]=Et[Ft]=Et[Re]=Et[Ue]=Et[yt]=!0,Et[ve]=Et[ye]=Et[_e]=!1;var IA={À:"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"},PA={"&":"&","<":"<",">":">",'"':""","'":"'"},OA={"&":"&","<":"<",">":">",""":'"',"'":"'"},MA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},DA=parseFloat,LA=parseInt,Nv=typeof Bt=="object"&&Bt&&Bt.Object===Object&&Bt,NA=typeof self=="object"&&self&&self.Object===Object&&self,dn=Nv||NA||Function("return this")(),uf=t&&!t.nodeType&&t,ao=uf&&!0&&e&&!e.nodeType&&e,Bv=ao&&ao.exports===uf,df=Bv&&Nv.process,tr=function(){try{var q=ao&&ao.require&&ao.require("util").types;return q||df&&df.binding&&df.binding("util")}catch{}}(),$v=tr&&tr.isArrayBuffer,Fv=tr&&tr.isDate,zv=tr&&tr.isMap,jv=tr&&tr.isRegExp,Uv=tr&&tr.isSet,Hv=tr&&tr.isTypedArray;function Wn(q,ee,Z){switch(Z.length){case 0:return q.call(ee);case 1:return q.call(ee,Z[0]);case 2:return q.call(ee,Z[0],Z[1]);case 3:return q.call(ee,Z[0],Z[1],Z[2])}return q.apply(ee,Z)}function BA(q,ee,Z,ge){for(var De=-1,dt=q==null?0:q.length;++De-1}function ff(q,ee,Z){for(var ge=-1,De=q==null?0:q.length;++ge-1;);return Z}function Qv(q,ee){for(var Z=q.length;Z--&&ts(ee,q[Z],0)>-1;);return Z}function VA(q,ee){for(var Z=q.length,ge=0;Z--;)q[Z]===ee&&++ge;return ge}var qA=gf(IA),XA=gf(PA);function YA(q){return"\\"+MA[q]}function KA(q,ee){return q==null?n:q[ee]}function ns(q){return TA.test(q)}function QA(q){return kA.test(q)}function JA(q){for(var ee,Z=[];!(ee=q.next()).done;)Z.push(ee.value);return Z}function xf(q){var ee=-1,Z=Array(q.size);return q.forEach(function(ge,De){Z[++ee]=[De,ge]}),Z}function Jv(q,ee){return function(Z){return q(ee(Z))}}function Ti(q,ee){for(var Z=-1,ge=q.length,De=0,dt=[];++Z-1}function FR(a,u){var m=this.__data__,w=Cc(m,a);return w<0?(++this.size,m.push([a,u])):m[w][1]=u,this}Zr.prototype.clear=LR,Zr.prototype.delete=NR,Zr.prototype.get=BR,Zr.prototype.has=$R,Zr.prototype.set=FR;function ei(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u=u?a:u)),a}function or(a,u,m,w,T,M){var B,U=u&h,X=u&p,ne=u&g;if(m&&(B=T?m(a,w,T,M):m(a)),B!==n)return B;if(!zt(a))return a;var re=Be(a);if(re){if(B=HI(a),!U)return On(a,B)}else{var oe=yn(a),fe=oe==ye||oe==xe;if(Oi(a))return Dy(a,U);if(oe==qe||oe==se||fe&&!T){if(B=X||fe?{}:Zy(a),!U)return X?OI(a,tI(B,a)):PI(a,uy(B,a))}else{if(!Et[oe])return T?a:{};B=WI(a,oe,U)}}M||(M=new br);var we=M.get(a);if(we)return we;M.set(a,B),A0(a)?a.forEach(function(ke){B.add(or(ke,u,m,ke,a,M))}):T0(a)&&a.forEach(function(ke,Ke){B.set(Ke,or(ke,u,m,Ke,a,M))});var Te=ne?X?Vf:Gf:X?Dn:nn,Ve=re?n:Te(a);return nr(Ve||a,function(ke,Ke){Ve&&(Ke=ke,ke=a[Ke]),ka(B,Ke,or(ke,u,m,Ke,a,M))}),B}function nI(a){var u=nn(a);return function(m){return dy(m,a,u)}}function dy(a,u,m){var w=m.length;if(a==null)return!w;for(a=wt(a);w--;){var T=m[w],M=u[T],B=a[T];if(B===n&&!(T in a)||!M(B))return!1}return!0}function fy(a,u,m){if(typeof a!="function")throw new rr(s);return Da(function(){a.apply(n,m)},u)}function Aa(a,u,m,w){var T=-1,M=lc,B=!0,U=a.length,X=[],ne=u.length;if(!U)return X;m&&(u=Dt(u,Gn(m))),w?(M=ff,B=!1):u.length>=i&&(M=wa,B=!1,u=new uo(u));e:for(;++TT?0:T+m),w=w===n||w>T?T:We(w),w<0&&(w+=T),w=m>w?0:I0(w);m0&&m(U)?u>1?fn(U,u-1,m,w,T):Ci(T,U):w||(T[T.length]=U)}return T}var kf=zy(),my=zy(!0);function zr(a,u){return a&&kf(a,u,nn)}function Af(a,u){return a&&my(a,u,nn)}function kc(a,u){return Ei(u,function(m){return oi(a[m])})}function ho(a,u){u=Ii(u,a);for(var m=0,w=u.length;a!=null&&mu}function oI(a,u){return a!=null&&vt.call(a,u)}function sI(a,u){return a!=null&&u in wt(a)}function aI(a,u,m){return a>=vn(u,m)&&a=120&&re.length>=120)?new uo(B&&re):n}re=a[0];var oe=-1,fe=U[0];e:for(;++oe-1;)U!==a&&yc.call(U,X,1),yc.call(a,X,1);return a}function Ty(a,u){for(var m=a?u.length:0,w=m-1;m--;){var T=u[m];if(m==w||T!==M){var M=T;ii(T)?yc.call(a,T,1):$f(a,T)}}return a}function Lf(a,u){return a+wc(sy()*(u-a+1))}function xI(a,u,m,w){for(var T=-1,M=Zt(xc((u-a)/(m||1)),0),B=Z(M);M--;)B[w?M:++T]=a,a+=m;return B}function Nf(a,u){var m="";if(!a||u<1||u>G)return m;do u%2&&(m+=a),u=wc(u/2),u&&(a+=a);while(u);return m}function Xe(a,u){return Zf(n0(a,u,Ln),a+"")}function wI(a){return cy(hs(a))}function _I(a,u){var m=hs(a);return $c(m,fo(u,0,m.length))}function Pa(a,u,m,w){if(!zt(a))return a;u=Ii(u,a);for(var T=-1,M=u.length,B=M-1,U=a;U!=null&&++TT?0:T+u),m=m>T?T:m,m<0&&(m+=T),T=u>m?0:m-u>>>0,u>>>=0;for(var M=Z(T);++w>>1,B=a[M];B!==null&&!qn(B)&&(m?B<=u:B=i){var ne=u?null:NI(a);if(ne)return uc(ne);B=!1,T=wa,X=new uo}else X=u?[]:U;e:for(;++w=w?a:sr(a,u,m)}var My=hR||function(a){return dn.clearTimeout(a)};function Dy(a,u){if(u)return a.slice();var m=a.length,w=ty?ty(m):new a.constructor(m);return a.copy(w),w}function Uf(a){var u=new a.constructor(a.byteLength);return new gc(u).set(new gc(a)),u}function kI(a,u){var m=u?Uf(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.byteLength)}function AI(a){var u=new a.constructor(a.source,Jn.exec(a));return u.lastIndex=a.lastIndex,u}function RI(a){return Ta?wt(Ta.call(a)):{}}function Ly(a,u){var m=u?Uf(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.length)}function Ny(a,u){if(a!==u){var m=a!==n,w=a===null,T=a===a,M=qn(a),B=u!==n,U=u===null,X=u===u,ne=qn(u);if(!U&&!ne&&!M&&a>u||M&&B&&X&&!U&&!ne||w&&B&&X||!m&&X||!T)return 1;if(!w&&!M&&!ne&&a=U)return X;var ne=m[w];return X*(ne=="desc"?-1:1)}}return a.index-u.index}function By(a,u,m,w){for(var T=-1,M=a.length,B=m.length,U=-1,X=u.length,ne=Zt(M-B,0),re=Z(X+ne),oe=!w;++U1?m[T-1]:n,B=T>2?m[2]:n;for(M=a.length>3&&typeof M=="function"?(T--,M):n,B&&Tn(m[0],m[1],B)&&(M=T<3?n:M,T=1),u=wt(u);++w-1?T[M?u[B]:B]:n}}function Hy(a){return ri(function(u){var m=u.length,w=m,T=ir.prototype.thru;for(a&&u.reverse();w--;){var M=u[w];if(typeof M!="function")throw new rr(s);if(T&&!B&&Nc(M)=="wrapper")var B=new ir([],!0)}for(w=B?w:m;++w1&&nt.reverse(),re&&XU))return!1;var ne=M.get(a),re=M.get(u);if(ne&&re)return ne==u&&re==a;var oe=-1,fe=!0,we=m&y?new uo:n;for(M.set(a,u),M.set(u,a);++oe1?"& ":"")+u[w],u=u.join(m>2?", ":" "),a.replace(Si,`{ /* [wrapped with `+u+`] */ -`)}function WR(a){return Be(a)||go(a)||!!(ty&&a&&a[ty])}function ii(a,u){var m=typeof a;return u=u??G,!!u&&(m=="number"||m!="symbol"&&pv.test(a))&&a>-1&&a%1==0&&a0){if(++u>=W)return arguments[0]}else u=0;return a.apply(n,arguments)}}function Bc(a,u){var m=-1,w=a.length,T=w-1;for(u=u===n?w:u;++m1?a[u-1]:n;return m=typeof m=="function"?(a.pop(),m):n,d0(a,m)});function f0(a){var u=P(a);return u.__chain__=!0,u}function t2(a,u){return u(a),a}function $c(a,u){return u(a)}var n2=ri(function(a){var u=a.length,m=u?a[0]:0,w=this.__wrapped__,T=function(M){return Cf(M,a)};return u>1||this.__actions__.length||!(w instanceof Je)||!ii(m)?this.thru(T):(w=w.slice(m,+m+(u?1:0)),w.__actions__.push({func:$c,args:[T],thisArg:n}),new ir(w,this.__chain__).thru(function(M){return u&&!M.length&&M.push(n),M}))});function r2(){return f0(this)}function i2(){return new ir(this.value(),this.__chain__)}function o2(){this.__values__===n&&(this.__values__=T0(this.value()));var a=this.__index__>=this.__values__.length,u=a?n:this.__values__[this.__index__++];return{done:a,value:u}}function s2(){return this}function a2(a){for(var u,m=this;m instanceof Sc;){var w=o0(m);w.__index__=0,w.__values__=n,u?T.__wrapped__=w:u=w;var T=w;m=m.__wrapped__}return T.__wrapped__=a,u}function l2(){var a=this.__wrapped__;if(a instanceof Je){var u=a;return this.__actions__.length&&(u=new Je(this)),u=u.reverse(),u.__actions__.push({func:$c,args:[Zf],thisArg:n}),new ir(u,this.__chain__)}return this.thru(Zf)}function c2(){return Ay(this.__wrapped__,this.__actions__)}var u2=Rc(function(a,u,m){vt.call(a,m)?++a[m]:ti(a,m,1)});function d2(a,u,m){var w=Be(a)?jv:tR;return m&&Cn(a,u,m)&&(u=n),w(a,Ce(u,3))}function f2(a,u){var m=Be(a)?Ei:dy;return m(a,Ce(u,3))}var h2=Fy(s0),p2=Fy(a0);function m2(a,u){return fn(Fc(a,u),1)}function g2(a,u){return fn(Fc(a,u),V)}function v2(a,u,m){return m=m===n?1:We(m),fn(Fc(a,u),m)}function h0(a,u){var m=Be(a)?nr:Ai;return m(a,Ce(u,3))}function p0(a,u){var m=Be(a)?NA:uy;return m(a,Ce(u,3))}var y2=Rc(function(a,u,m){vt.call(a,m)?a[m].push(u):ti(a,m,[u])});function b2(a,u,m,w){a=On(a)?a:hs(a),m=m&&!w?We(m):0;var T=a.length;return m<0&&(m=Zt(T+m,0)),Wc(a)?m<=T&&a.indexOf(u,m)>-1:!!T&&ts(a,u,m)>-1}var x2=Xe(function(a,u,m){var w=-1,T=typeof u=="function",M=On(a)?Z(a.length):[];return Ai(a,function(B){M[++w]=T?Wn(u,B,m):Aa(B,u,m)}),M}),w2=Rc(function(a,u,m){ti(a,m,u)});function Fc(a,u){var m=Be(a)?Dt:vy;return m(a,Ce(u,3))}function _2(a,u,m,w){return a==null?[]:(Be(u)||(u=u==null?[]:[u]),m=w?n:m,Be(m)||(m=m==null?[]:[m]),wy(a,u,m))}var S2=Rc(function(a,u,m){a[m?0:1].push(u)},function(){return[[],[]]});function E2(a,u,m){var w=Be(a)?ff:Gv,T=arguments.length<3;return w(a,Ce(u,4),m,T,Ai)}function C2(a,u,m){var w=Be(a)?BA:Gv,T=arguments.length<3;return w(a,Ce(u,4),m,T,uy)}function T2(a,u){var m=Be(a)?Ei:dy;return m(a,Uc(Ce(u,3)))}function k2(a){var u=Be(a)?sy:bR;return u(a)}function A2(a,u,m){(m?Cn(a,u,m):u===n)?u=1:u=We(u);var w=Be(a)?KI:xR;return w(a,u)}function I2(a){var u=Be(a)?QI:_R;return u(a)}function R2(a){if(a==null)return 0;if(On(a))return Wc(a)?rs(a):a.length;var u=vn(a);return u==me||u==Fe?a.size:Pf(a).length}function P2(a,u,m){var w=Be(a)?hf:SR;return m&&Cn(a,u,m)&&(u=n),w(a,Ce(u,3))}var O2=Xe(function(a,u){if(a==null)return[];var m=u.length;return m>1&&Cn(a,u[0],u[1])?u=[]:m>2&&Cn(u[0],u[1],u[2])&&(u=[u[0]]),wy(a,fn(u,1),[])}),zc=fI||function(){return dn.Date.now()};function M2(a,u){if(typeof u!="function")throw new rr(s);return a=We(a),function(){if(--a<1)return u.apply(this,arguments)}}function m0(a,u,m){return u=m?n:u,u=a&&u==null?a.length:u,ni(a,k,n,n,n,n,u)}function g0(a,u){var m;if(typeof u!="function")throw new rr(s);return a=We(a),function(){return--a>0&&(m=u.apply(this,arguments)),a<=1&&(u=n),m}}var th=Xe(function(a,u,m){var w=S;if(m.length){var T=Ti(m,ds(th));w|=A}return ni(a,w,u,m,T)}),v0=Xe(function(a,u,m){var w=S|_;if(m.length){var T=Ti(m,ds(v0));w|=A}return ni(u,w,a,m,T)});function y0(a,u,m){u=m?n:u;var w=ni(a,x,n,n,n,n,n,u);return w.placeholder=y0.placeholder,w}function b0(a,u,m){u=m?n:u;var w=ni(a,E,n,n,n,n,n,u);return w.placeholder=b0.placeholder,w}function x0(a,u,m){var w,T,M,B,U,X,ne=0,re=!1,oe=!1,fe=!0;if(typeof a!="function")throw new rr(s);u=lr(u)||0,Ft(m)&&(re=!!m.leading,oe="maxWait"in m,M=oe?Zt(lr(m.maxWait)||0,u):M,fe="trailing"in m?!!m.trailing:fe);function we(Yt){var wr=w,ai=T;return w=T=n,ne=Yt,B=a.apply(ai,wr),B}function Te(Yt){return ne=Yt,U=Ma(Ke,u),re?we(Yt):B}function Ve(Yt){var wr=Yt-X,ai=Yt-ne,F0=u-wr;return oe?gn(F0,M-ai):F0}function ke(Yt){var wr=Yt-X,ai=Yt-ne;return X===n||wr>=u||wr<0||oe&&ai>=M}function Ke(){var Yt=zc();if(ke(Yt))return nt(Yt);U=Ma(Ke,Ve(Yt))}function nt(Yt){return U=n,fe&&w?we(Yt):(w=T=n,B)}function Xn(){U!==n&&Ry(U),ne=0,w=X=T=U=n}function Tn(){return U===n?B:nt(zc())}function Yn(){var Yt=zc(),wr=ke(Yt);if(w=arguments,T=this,X=Yt,wr){if(U===n)return Te(X);if(oe)return Ry(U),U=Ma(Ke,u),we(X)}return U===n&&(U=Ma(Ke,u)),B}return Yn.cancel=Xn,Yn.flush=Tn,Yn}var D2=Xe(function(a,u){return cy(a,1,u)}),L2=Xe(function(a,u,m){return cy(a,lr(u)||0,m)});function N2(a){return ni(a,L)}function jc(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new rr(s);var m=function(){var w=arguments,T=u?u.apply(this,w):w[0],M=m.cache;if(M.has(T))return M.get(T);var B=a.apply(this,w);return m.cache=M.set(T,B)||M,B};return m.cache=new(jc.Cache||ei),m}jc.Cache=ei;function Uc(a){if(typeof a!="function")throw new rr(s);return function(){var u=arguments;switch(u.length){case 0:return!a.call(this);case 1:return!a.call(this,u[0]);case 2:return!a.call(this,u[0],u[1]);case 3:return!a.call(this,u[0],u[1],u[2])}return!a.apply(this,u)}}function B2(a){return g0(2,a)}var $2=ER(function(a,u){u=u.length==1&&Be(u[0])?Dt(u[0],Gn(Ce())):Dt(fn(u,1),Gn(Ce()));var m=u.length;return Xe(function(w){for(var T=-1,M=gn(w.length,m);++T=u}),go=py(function(){return arguments}())?py:function(a){return jt(a)&&vt.call(a,"callee")&&!ey.call(a,"callee")},Be=Z.isArray,Z2=Lv?Gn(Lv):aR;function On(a){return a!=null&&Hc(a.length)&&!oi(a)}function Xt(a){return jt(a)&&On(a)}function eO(a){return a===!0||a===!1||jt(a)&&En(a)==le}var Oi=pI||hh,tO=Nv?Gn(Nv):lR;function nO(a){return jt(a)&&a.nodeType===1&&!Da(a)}function rO(a){if(a==null)return!0;if(On(a)&&(Be(a)||typeof a=="string"||typeof a.splice=="function"||Oi(a)||fs(a)||go(a)))return!a.length;var u=vn(a);if(u==me||u==Fe)return!a.size;if(Oa(a))return!Pf(a).length;for(var m in a)if(vt.call(a,m))return!1;return!0}function iO(a,u){return Ia(a,u)}function oO(a,u,m){m=typeof m=="function"?m:n;var w=m?m(a,u):n;return w===n?Ia(a,u,n,m):!!w}function rh(a){if(!jt(a))return!1;var u=En(a);return u==ve||u==pe||typeof a.message=="string"&&typeof a.name=="string"&&!Da(a)}function sO(a){return typeof a=="number"&&ny(a)}function oi(a){if(!Ft(a))return!1;var u=En(a);return u==ye||u==xe||u==ae||u==Lt}function _0(a){return typeof a=="number"&&a==We(a)}function Hc(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=G}function Ft(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function jt(a){return a!=null&&typeof a=="object"}var S0=Bv?Gn(Bv):uR;function aO(a,u){return a===u||Rf(a,u,qf(u))}function lO(a,u,m){return m=typeof m=="function"?m:n,Rf(a,u,qf(u),m)}function cO(a){return E0(a)&&a!=+a}function uO(a){if(qR(a))throw new De(o);return my(a)}function dO(a){return a===null}function fO(a){return a==null}function E0(a){return typeof a=="number"||jt(a)&&En(a)==be}function Da(a){if(!jt(a)||En(a)!=qe)return!1;var u=gc(a);if(u===null)return!0;var m=vt.call(u,"constructor")&&u.constructor;return typeof m=="function"&&m instanceof m&&fc.call(m)==lI}var ih=$v?Gn($v):dR;function hO(a){return _0(a)&&a>=-G&&a<=G}var C0=Fv?Gn(Fv):fR;function Wc(a){return typeof a=="string"||!Be(a)&&jt(a)&&En(a)==it}function qn(a){return typeof a=="symbol"||jt(a)&&En(a)==pt}var fs=zv?Gn(zv):hR;function pO(a){return a===n}function mO(a){return jt(a)&&vn(a)==_e}function gO(a){return jt(a)&&En(a)==ze}var vO=Dc(Of),yO=Dc(function(a,u){return a<=u});function T0(a){if(!a)return[];if(On(a))return Wc(a)?yr(a):Pn(a);if(wa&&a[wa])return KA(a[wa]());var u=vn(a),m=u==me?bf:u==Fe?cc:hs;return m(a)}function si(a){if(!a)return a===0?a:0;if(a=lr(a),a===V||a===-V){var u=a<0?-1:1;return u*K}return a===a?a:0}function We(a){var u=si(a),m=u%1;return u===u?m?u-m:u:0}function k0(a){return a?fo(We(a),0,J):0}function lr(a){if(typeof a=="number")return a;if(qn(a))return Y;if(Ft(a)){var u=typeof a.valueOf=="function"?a.valueOf():a;a=Ft(u)?u+"":u}if(typeof a!="string")return a===0?a:+a;a=Vv(a);var m=yl.test(a);return m||hv.test(a)?MA(a.slice(2),m?2:8):vl.test(a)?Y:+a}function A0(a){return jr(a,Mn(a))}function bO(a){return a?fo(We(a),-G,G):a===0?a:0}function ft(a){return a==null?"":Vn(a)}var xO=cs(function(a,u){if(Oa(u)||On(u)){jr(u,nn(u),a);return}for(var m in u)vt.call(u,m)&&Ta(a,m,u[m])}),I0=cs(function(a,u){jr(u,Mn(u),a)}),Gc=cs(function(a,u,m,w){jr(u,Mn(u),a,w)}),wO=cs(function(a,u,m,w){jr(u,nn(u),a,w)}),_O=ri(Cf);function SO(a,u){var m=ls(a);return u==null?m:ay(m,u)}var EO=Xe(function(a,u){a=wt(a);var m=-1,w=u.length,T=w>2?u[2]:n;for(T&&Cn(u[0],u[1],T)&&(w=1);++m1),M}),jr(a,Gf(a),m),w&&(m=or(m,h|p|g,LR));for(var T=u.length;T--;)Bf(m,u[T]);return m});function UO(a,u){return P0(a,Uc(Ce(u)))}var HO=ri(function(a,u){return a==null?{}:gR(a,u)});function P0(a,u){if(a==null)return{};var m=Dt(Gf(a),function(w){return[w]});return u=Ce(u),_y(a,m,function(w,T){return u(w,T[0])})}function WO(a,u,m){u=Ri(u,a);var w=-1,T=u.length;for(T||(T=1,a=n);++wu){var w=a;a=u,u=w}if(m||a%1||u%1){var T=ry();return gn(a+T*(u-a+OA("1e-"+((T+"").length-1))),u)}return Df(a,u)}var tM=us(function(a,u,m){return u=u.toLowerCase(),a+(m?D0(u):u)});function D0(a){return ah(ft(a).toLowerCase())}function L0(a){return a=ft(a),a&&a.replace(Qt,GA).replace(_A,"")}function nM(a,u,m){a=ft(a),u=Vn(u);var w=a.length;m=m===n?w:fo(We(m),0,w);var T=m;return m-=u.length,m>=0&&a.slice(m,T)==u}function rM(a){return a=ft(a),a&&Jr.test(a)?a.replace(Mr,VA):a}function iM(a){return a=ft(a),a&&tf.test(a)?a.replace(Qo,"\\$&"):a}var oM=us(function(a,u,m){return a+(m?"-":"")+u.toLowerCase()}),sM=us(function(a,u,m){return a+(m?" ":"")+u.toLowerCase()}),aM=$y("toLowerCase");function lM(a,u,m){a=ft(a),u=We(u);var w=u?rs(a):0;if(!u||w>=u)return a;var T=(u-w)/2;return Mc(xc(T),m)+a+Mc(bc(T),m)}function cM(a,u,m){a=ft(a),u=We(u);var w=u?rs(a):0;return u&&w>>0,m?(a=ft(a),a&&(typeof u=="string"||u!=null&&!ih(u))&&(u=Vn(u),!u&&ns(a))?Pi(yr(a),0,m):a.split(u,m)):[]}var gM=us(function(a,u,m){return a+(m?" ":"")+ah(u)});function vM(a,u,m){return a=ft(a),m=m==null?0:fo(We(m),0,a.length),u=Vn(u),a.slice(m,m+u.length)==u}function yM(a,u,m){var w=P.templateSettings;m&&Cn(a,u,m)&&(u=n),a=ft(a),u=Gc({},u,w,Gy);var T=Gc({},u.imports,w.imports,Gy),M=nn(T),B=yf(T,M),U,X,ne=0,re=u.interpolate||vr,oe="__p += '",fe=xf((u.escape||vr).source+"|"+re.source+"|"+(re===Ws?Hn:vr).source+"|"+(u.evaluate||vr).source+"|$","g"),we="//# sourceURL="+(vt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++kA+"]")+` -`;a.replace(fe,function(ke,Ke,nt,Xn,Tn,Yn){return nt||(nt=Xn),oe+=a.slice(ne,Yn).replace(iA,qA),Ke&&(U=!0,oe+=`' + +`)}function VI(a){return Be(a)||go(a)||!!(iy&&a&&a[iy])}function ii(a,u){var m=typeof a;return u=u??G,!!u&&(m=="number"||m!="symbol"&&vv.test(a))&&a>-1&&a%1==0&&a0){if(++u>=W)return arguments[0]}else u=0;return a.apply(n,arguments)}}function $c(a,u){var m=-1,w=a.length,T=w-1;for(u=u===n?w:u;++m1?a[u-1]:n;return m=typeof m=="function"?(a.pop(),m):n,p0(a,m)});function m0(a){var u=P(a);return u.__chain__=!0,u}function r2(a,u){return u(a),a}function Fc(a,u){return u(a)}var i2=ri(function(a){var u=a.length,m=u?a[0]:0,w=this.__wrapped__,T=function(M){return Tf(M,a)};return u>1||this.__actions__.length||!(w instanceof Je)||!ii(m)?this.thru(T):(w=w.slice(m,+m+(u?1:0)),w.__actions__.push({func:Fc,args:[T],thisArg:n}),new ir(w,this.__chain__).thru(function(M){return u&&!M.length&&M.push(n),M}))});function o2(){return m0(this)}function s2(){return new ir(this.value(),this.__chain__)}function a2(){this.__values__===n&&(this.__values__=R0(this.value()));var a=this.__index__>=this.__values__.length,u=a?n:this.__values__[this.__index__++];return{done:a,value:u}}function l2(){return this}function c2(a){for(var u,m=this;m instanceof Ec;){var w=l0(m);w.__index__=0,w.__values__=n,u?T.__wrapped__=w:u=w;var T=w;m=m.__wrapped__}return T.__wrapped__=a,u}function u2(){var a=this.__wrapped__;if(a instanceof Je){var u=a;return this.__actions__.length&&(u=new Je(this)),u=u.reverse(),u.__actions__.push({func:Fc,args:[eh],thisArg:n}),new ir(u,this.__chain__)}return this.thru(eh)}function d2(){return Py(this.__wrapped__,this.__actions__)}var f2=Pc(function(a,u,m){vt.call(a,m)?++a[m]:ti(a,m,1)});function h2(a,u,m){var w=Be(a)?Wv:rI;return m&&Tn(a,u,m)&&(u=n),w(a,Ce(u,3))}function p2(a,u){var m=Be(a)?Ei:py;return m(a,Ce(u,3))}var m2=Uy(c0),g2=Uy(u0);function v2(a,u){return fn(zc(a,u),1)}function y2(a,u){return fn(zc(a,u),V)}function b2(a,u,m){return m=m===n?1:We(m),fn(zc(a,u),m)}function g0(a,u){var m=Be(a)?nr:Ai;return m(a,Ce(u,3))}function v0(a,u){var m=Be(a)?$A:hy;return m(a,Ce(u,3))}var x2=Pc(function(a,u,m){vt.call(a,m)?a[m].push(u):ti(a,m,[u])});function w2(a,u,m,w){a=Mn(a)?a:hs(a),m=m&&!w?We(m):0;var T=a.length;return m<0&&(m=Zt(T+m,0)),Gc(a)?m<=T&&a.indexOf(u,m)>-1:!!T&&ts(a,u,m)>-1}var _2=Xe(function(a,u,m){var w=-1,T=typeof u=="function",M=Mn(a)?Z(a.length):[];return Ai(a,function(B){M[++w]=T?Wn(u,B,m):Ra(B,u,m)}),M}),S2=Pc(function(a,u,m){ti(a,m,u)});function zc(a,u){var m=Be(a)?Dt:xy;return m(a,Ce(u,3))}function E2(a,u,m,w){return a==null?[]:(Be(u)||(u=u==null?[]:[u]),m=w?n:m,Be(m)||(m=m==null?[]:[m]),Ey(a,u,m))}var C2=Pc(function(a,u,m){a[m?0:1].push(u)},function(){return[[],[]]});function T2(a,u,m){var w=Be(a)?hf:Xv,T=arguments.length<3;return w(a,Ce(u,4),m,T,Ai)}function k2(a,u,m){var w=Be(a)?FA:Xv,T=arguments.length<3;return w(a,Ce(u,4),m,T,hy)}function A2(a,u){var m=Be(a)?Ei:py;return m(a,Hc(Ce(u,3)))}function R2(a){var u=Be(a)?cy:wI;return u(a)}function I2(a,u,m){(m?Tn(a,u,m):u===n)?u=1:u=We(u);var w=Be(a)?JR:_I;return w(a,u)}function P2(a){var u=Be(a)?ZR:EI;return u(a)}function O2(a){if(a==null)return 0;if(Mn(a))return Gc(a)?rs(a):a.length;var u=yn(a);return u==me||u==Fe?a.size:Of(a).length}function M2(a,u,m){var w=Be(a)?pf:CI;return m&&Tn(a,u,m)&&(u=n),w(a,Ce(u,3))}var D2=Xe(function(a,u){if(a==null)return[];var m=u.length;return m>1&&Tn(a,u[0],u[1])?u=[]:m>2&&Tn(u[0],u[1],u[2])&&(u=[u[0]]),Ey(a,fn(u,1),[])}),jc=pR||function(){return dn.Date.now()};function L2(a,u){if(typeof u!="function")throw new rr(s);return a=We(a),function(){if(--a<1)return u.apply(this,arguments)}}function y0(a,u,m){return u=m?n:u,u=a&&u==null?a.length:u,ni(a,k,n,n,n,n,u)}function b0(a,u){var m;if(typeof u!="function")throw new rr(s);return a=We(a),function(){return--a>0&&(m=u.apply(this,arguments)),a<=1&&(u=n),m}}var nh=Xe(function(a,u,m){var w=S;if(m.length){var T=Ti(m,ds(nh));w|=A}return ni(a,w,u,m,T)}),x0=Xe(function(a,u,m){var w=S|_;if(m.length){var T=Ti(m,ds(x0));w|=A}return ni(u,w,a,m,T)});function w0(a,u,m){u=m?n:u;var w=ni(a,x,n,n,n,n,n,u);return w.placeholder=w0.placeholder,w}function _0(a,u,m){u=m?n:u;var w=ni(a,E,n,n,n,n,n,u);return w.placeholder=_0.placeholder,w}function S0(a,u,m){var w,T,M,B,U,X,ne=0,re=!1,oe=!1,fe=!0;if(typeof a!="function")throw new rr(s);u=lr(u)||0,zt(m)&&(re=!!m.leading,oe="maxWait"in m,M=oe?Zt(lr(m.maxWait)||0,u):M,fe="trailing"in m?!!m.trailing:fe);function we(Yt){var wr=w,ai=T;return w=T=n,ne=Yt,B=a.apply(ai,wr),B}function Te(Yt){return ne=Yt,U=Da(Ke,u),re?we(Yt):B}function Ve(Yt){var wr=Yt-X,ai=Yt-ne,U0=u-wr;return oe?vn(U0,M-ai):U0}function ke(Yt){var wr=Yt-X,ai=Yt-ne;return X===n||wr>=u||wr<0||oe&&ai>=M}function Ke(){var Yt=jc();if(ke(Yt))return nt(Yt);U=Da(Ke,Ve(Yt))}function nt(Yt){return U=n,fe&&w?we(Yt):(w=T=n,B)}function Xn(){U!==n&&My(U),ne=0,w=X=T=U=n}function kn(){return U===n?B:nt(jc())}function Yn(){var Yt=jc(),wr=ke(Yt);if(w=arguments,T=this,X=Yt,wr){if(U===n)return Te(X);if(oe)return My(U),U=Da(Ke,u),we(X)}return U===n&&(U=Da(Ke,u)),B}return Yn.cancel=Xn,Yn.flush=kn,Yn}var N2=Xe(function(a,u){return fy(a,1,u)}),B2=Xe(function(a,u,m){return fy(a,lr(u)||0,m)});function $2(a){return ni(a,L)}function Uc(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new rr(s);var m=function(){var w=arguments,T=u?u.apply(this,w):w[0],M=m.cache;if(M.has(T))return M.get(T);var B=a.apply(this,w);return m.cache=M.set(T,B)||M,B};return m.cache=new(Uc.Cache||ei),m}Uc.Cache=ei;function Hc(a){if(typeof a!="function")throw new rr(s);return function(){var u=arguments;switch(u.length){case 0:return!a.call(this);case 1:return!a.call(this,u[0]);case 2:return!a.call(this,u[0],u[1]);case 3:return!a.call(this,u[0],u[1],u[2])}return!a.apply(this,u)}}function F2(a){return b0(2,a)}var z2=TI(function(a,u){u=u.length==1&&Be(u[0])?Dt(u[0],Gn(Ce())):Dt(fn(u,1),Gn(Ce()));var m=u.length;return Xe(function(w){for(var T=-1,M=vn(w.length,m);++T=u}),go=vy(function(){return arguments}())?vy:function(a){return jt(a)&&vt.call(a,"callee")&&!ry.call(a,"callee")},Be=Z.isArray,tO=$v?Gn($v):cI;function Mn(a){return a!=null&&Wc(a.length)&&!oi(a)}function Xt(a){return jt(a)&&Mn(a)}function nO(a){return a===!0||a===!1||jt(a)&&Cn(a)==le}var Oi=gR||ph,rO=Fv?Gn(Fv):uI;function iO(a){return jt(a)&&a.nodeType===1&&!La(a)}function oO(a){if(a==null)return!0;if(Mn(a)&&(Be(a)||typeof a=="string"||typeof a.splice=="function"||Oi(a)||fs(a)||go(a)))return!a.length;var u=yn(a);if(u==me||u==Fe)return!a.size;if(Ma(a))return!Of(a).length;for(var m in a)if(vt.call(a,m))return!1;return!0}function sO(a,u){return Ia(a,u)}function aO(a,u,m){m=typeof m=="function"?m:n;var w=m?m(a,u):n;return w===n?Ia(a,u,n,m):!!w}function ih(a){if(!jt(a))return!1;var u=Cn(a);return u==ve||u==pe||typeof a.message=="string"&&typeof a.name=="string"&&!La(a)}function lO(a){return typeof a=="number"&&oy(a)}function oi(a){if(!zt(a))return!1;var u=Cn(a);return u==ye||u==xe||u==ae||u==Nt}function C0(a){return typeof a=="number"&&a==We(a)}function Wc(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=G}function zt(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function jt(a){return a!=null&&typeof a=="object"}var T0=zv?Gn(zv):fI;function cO(a,u){return a===u||Pf(a,u,Xf(u))}function uO(a,u,m){return m=typeof m=="function"?m:n,Pf(a,u,Xf(u),m)}function dO(a){return k0(a)&&a!=+a}function fO(a){if(YI(a))throw new De(o);return yy(a)}function hO(a){return a===null}function pO(a){return a==null}function k0(a){return typeof a=="number"||jt(a)&&Cn(a)==be}function La(a){if(!jt(a)||Cn(a)!=qe)return!1;var u=vc(a);if(u===null)return!0;var m=vt.call(u,"constructor")&&u.constructor;return typeof m=="function"&&m instanceof m&&hc.call(m)==uR}var oh=jv?Gn(jv):hI;function mO(a){return C0(a)&&a>=-G&&a<=G}var A0=Uv?Gn(Uv):pI;function Gc(a){return typeof a=="string"||!Be(a)&&jt(a)&&Cn(a)==it}function qn(a){return typeof a=="symbol"||jt(a)&&Cn(a)==pt}var fs=Hv?Gn(Hv):mI;function gO(a){return a===n}function vO(a){return jt(a)&&yn(a)==_e}function yO(a){return jt(a)&&Cn(a)==ze}var bO=Lc(Mf),xO=Lc(function(a,u){return a<=u});function R0(a){if(!a)return[];if(Mn(a))return Gc(a)?yr(a):On(a);if(_a&&a[_a])return JA(a[_a]());var u=yn(a),m=u==me?xf:u==Fe?uc:hs;return m(a)}function si(a){if(!a)return a===0?a:0;if(a=lr(a),a===V||a===-V){var u=a<0?-1:1;return u*K}return a===a?a:0}function We(a){var u=si(a),m=u%1;return u===u?m?u-m:u:0}function I0(a){return a?fo(We(a),0,J):0}function lr(a){if(typeof a=="number")return a;if(qn(a))return Y;if(zt(a)){var u=typeof a.valueOf=="function"?a.valueOf():a;a=zt(u)?u+"":u}if(typeof a!="string")return a===0?a:+a;a=Yv(a);var m=xl.test(a);return m||gv.test(a)?LA(a.slice(2),m?2:8):bl.test(a)?Y:+a}function P0(a){return jr(a,Dn(a))}function wO(a){return a?fo(We(a),-G,G):a===0?a:0}function ft(a){return a==null?"":Vn(a)}var _O=cs(function(a,u){if(Ma(u)||Mn(u)){jr(u,nn(u),a);return}for(var m in u)vt.call(u,m)&&ka(a,m,u[m])}),O0=cs(function(a,u){jr(u,Dn(u),a)}),Vc=cs(function(a,u,m,w){jr(u,Dn(u),a,w)}),SO=cs(function(a,u,m,w){jr(u,nn(u),a,w)}),EO=ri(Tf);function CO(a,u){var m=ls(a);return u==null?m:uy(m,u)}var TO=Xe(function(a,u){a=wt(a);var m=-1,w=u.length,T=w>2?u[2]:n;for(T&&Tn(u[0],u[1],T)&&(w=1);++m1),M}),jr(a,Vf(a),m),w&&(m=or(m,h|p|g,BI));for(var T=u.length;T--;)$f(m,u[T]);return m});function WO(a,u){return D0(a,Hc(Ce(u)))}var GO=ri(function(a,u){return a==null?{}:yI(a,u)});function D0(a,u){if(a==null)return{};var m=Dt(Vf(a),function(w){return[w]});return u=Ce(u),Cy(a,m,function(w,T){return u(w,T[0])})}function VO(a,u,m){u=Ii(u,a);var w=-1,T=u.length;for(T||(T=1,a=n);++wu){var w=a;a=u,u=w}if(m||a%1||u%1){var T=sy();return vn(a+T*(u-a+DA("1e-"+((T+"").length-1))),u)}return Lf(a,u)}var rM=us(function(a,u,m){return u=u.toLowerCase(),a+(m?B0(u):u)});function B0(a){return lh(ft(a).toLowerCase())}function $0(a){return a=ft(a),a&&a.replace(Qt,qA).replace(EA,"")}function iM(a,u,m){a=ft(a),u=Vn(u);var w=a.length;m=m===n?w:fo(We(m),0,w);var T=m;return m-=u.length,m>=0&&a.slice(m,T)==u}function oM(a){return a=ft(a),a&&Jr.test(a)?a.replace(Mr,XA):a}function sM(a){return a=ft(a),a&&nf.test(a)?a.replace(Qo,"\\$&"):a}var aM=us(function(a,u,m){return a+(m?"-":"")+u.toLowerCase()}),lM=us(function(a,u,m){return a+(m?" ":"")+u.toLowerCase()}),cM=jy("toLowerCase");function uM(a,u,m){a=ft(a),u=We(u);var w=u?rs(a):0;if(!u||w>=u)return a;var T=(u-w)/2;return Dc(wc(T),m)+a+Dc(xc(T),m)}function dM(a,u,m){a=ft(a),u=We(u);var w=u?rs(a):0;return u&&w>>0,m?(a=ft(a),a&&(typeof u=="string"||u!=null&&!oh(u))&&(u=Vn(u),!u&&ns(a))?Pi(yr(a),0,m):a.split(u,m)):[]}var yM=us(function(a,u,m){return a+(m?" ":"")+lh(u)});function bM(a,u,m){return a=ft(a),m=m==null?0:fo(We(m),0,a.length),u=Vn(u),a.slice(m,m+u.length)==u}function xM(a,u,m){var w=P.templateSettings;m&&Tn(a,u,m)&&(u=n),a=ft(a),u=Vc({},u,w,Xy);var T=Vc({},u.imports,w.imports,Xy),M=nn(T),B=bf(T,M),U,X,ne=0,re=u.interpolate||vr,oe="__p += '",fe=wf((u.escape||vr).source+"|"+re.source+"|"+(re===Ws?Hn:vr).source+"|"+(u.evaluate||vr).source+"|$","g"),we="//# sourceURL="+(vt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++RA+"]")+` +`;a.replace(fe,function(ke,Ke,nt,Xn,kn,Yn){return nt||(nt=Xn),oe+=a.slice(ne,Yn).replace(sA,YA),Ke&&(U=!0,oe+=`' + __e(`+Ke+`) + -'`),Tn&&(X=!0,oe+=`'; -`+Tn+`; +'`),kn&&(X=!0,oe+=`'; +`+kn+`; __p += '`),nt&&(oe+=`' + ((__t = (`+nt+`)) == null ? '' : __t) + '`),ne=Yn+ke.length,ke}),oe+=`'; `;var Te=vt.call(u,"variable")&&u.variable;if(!Te)oe=`with (obj) { `+oe+` } -`;else if(ba.test(Te))throw new De(l);oe=(X?oe.replace(Wt,""):oe).replace(pn,"$1").replace($r,"$1;"),oe="function("+(Te||"obj")+`) { +`;else if(xa.test(Te))throw new De(l);oe=(X?oe.replace(Wt,""):oe).replace(pn,"$1").replace($r,"$1;"),oe="function("+(Te||"obj")+`) { `+(Te?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(X?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+oe+`return __p -}`;var Ve=B0(function(){return ut(M,we+"return "+oe).apply(n,B)});if(Ve.source=oe,rh(Ve))throw Ve;return Ve}function bM(a){return ft(a).toLowerCase()}function xM(a){return ft(a).toUpperCase()}function wM(a,u,m){if(a=ft(a),a&&(m||u===n))return Vv(a);if(!a||!(u=Vn(u)))return a;var w=yr(a),T=yr(u),M=qv(w,T),B=Xv(w,T)+1;return Pi(w,M,B).join("")}function _M(a,u,m){if(a=ft(a),a&&(m||u===n))return a.slice(0,Kv(a)+1);if(!a||!(u=Vn(u)))return a;var w=yr(a),T=Xv(w,yr(u))+1;return Pi(w,0,T).join("")}function SM(a,u,m){if(a=ft(a),a&&(m||u===n))return a.replace(oo,"");if(!a||!(u=Vn(u)))return a;var w=yr(a),T=qv(w,yr(u));return Pi(w,T).join("")}function EM(a,u){var m=N,w=H;if(Ft(u)){var T="separator"in u?u.separator:T;m="length"in u?We(u.length):m,w="omission"in u?Vn(u.omission):w}a=ft(a);var M=a.length;if(ns(a)){var B=yr(a);M=B.length}if(m>=M)return a;var U=m-rs(w);if(U<1)return w;var X=B?Pi(B,0,U).join(""):a.slice(0,U);if(T===n)return X+w;if(B&&(U+=X.length-U),ih(T)){if(a.slice(U).search(T)){var ne,re=X;for(T.global||(T=xf(T.source,ft(Jn.exec(T))+"g")),T.lastIndex=0;ne=T.exec(re);)var oe=ne.index;X=X.slice(0,oe===n?U:oe)}}else if(a.indexOf(Vn(T),U)!=U){var fe=X.lastIndexOf(T);fe>-1&&(X=X.slice(0,fe))}return X+w}function CM(a){return a=ft(a),a&&Fr.test(a)?a.replace(Or,eI):a}var TM=us(function(a,u,m){return a+(m?" ":"")+u.toUpperCase()}),ah=$y("toUpperCase");function N0(a,u,m){return a=ft(a),u=m?n:u,u===n?YA(a)?rI(a):zA(a):a.match(u)||[]}var B0=Xe(function(a,u){try{return Wn(a,n,u)}catch(m){return rh(m)?m:new De(m)}}),kM=ri(function(a,u){return nr(u,function(m){m=Ur(m),ti(a,m,th(a[m],a))}),a});function AM(a){var u=a==null?0:a.length,m=Ce();return a=u?Dt(a,function(w){if(typeof w[1]!="function")throw new rr(s);return[m(w[0]),w[1]]}):[],Xe(function(w){for(var T=-1;++TG)return[];var m=J,w=gn(a,J);u=Ce(u),a-=J;for(var T=vf(w,u);++m0||u<0)?new Je(m):(a<0?m=m.takeRight(-a):a&&(m=m.drop(a)),u!==n&&(u=We(u),m=u<0?m.dropRight(-u):m.take(u-a)),m)},Je.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Je.prototype.toArray=function(){return this.take(J)},zr(Je.prototype,function(a,u){var m=/^(?:filter|find|map|reject)|While$/.test(u),w=/^(?:head|last)$/.test(u),T=P[w?"take"+(u=="last"?"Right":""):u],M=w||/^find/.test(u);T&&(P.prototype[u]=function(){var B=this.__wrapped__,U=w?[1]:arguments,X=B instanceof Je,ne=U[0],re=X||Be(B),oe=function(Ke){var nt=T.apply(P,Ci([Ke],U));return w&&fe?nt[0]:nt};re&&m&&typeof ne=="function"&&ne.length!=1&&(X=re=!1);var fe=this.__chain__,we=!!this.__actions__.length,Te=M&&!fe,Ve=X&&!we;if(!M&&re){B=Ve?B:new Je(this);var ke=a.apply(B,U);return ke.__actions__.push({func:$c,args:[oe],thisArg:n}),new ir(ke,fe)}return Te&&Ve?a.apply(this,U):(ke=this.thru(oe),Te?w?ke.value()[0]:ke.value():ke)})}),nr(["pop","push","shift","sort","splice","unshift"],function(a){var u=uc[a],m=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",w=/^(?:pop|shift)$/.test(a);P.prototype[a]=function(){var T=arguments;if(w&&!this.__chain__){var M=this.value();return u.apply(Be(M)?M:[],T)}return this[m](function(B){return u.apply(Be(B)?B:[],T)})}}),zr(Je.prototype,function(a,u){var m=P[u];if(m){var w=m.name+"";vt.call(as,w)||(as[w]=[]),as[w].push({name:u,func:m})}}),as[Pc(n,_).name]=[{name:"wrapper",func:n}],Je.prototype.clone=CI,Je.prototype.reverse=TI,Je.prototype.value=kI,P.prototype.at=n2,P.prototype.chain=r2,P.prototype.commit=i2,P.prototype.next=o2,P.prototype.plant=a2,P.prototype.reverse=l2,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=c2,P.prototype.first=P.prototype.head,wa&&(P.prototype[wa]=s2),P},is=iI();ao?((ao.exports=is)._=is,cf._=is):dn._=is}).call(Nt)})(RE,RE.exports);var te=RE.exports;function Kr(e){return C.jsx(dt,{px:.5,display:"inline-block",...e})}function G4({primary:e,secondary:t}){return C.jsxs(bn,{children:[C.jsx(dt,{children:e}),C.jsx(Kr,{}),C.jsx(dt,{sx:{opacity:.56},children:t})]})}/*! ***************************************************************************** +}`;var Ve=z0(function(){return dt(M,we+"return "+oe).apply(n,B)});if(Ve.source=oe,ih(Ve))throw Ve;return Ve}function wM(a){return ft(a).toLowerCase()}function _M(a){return ft(a).toUpperCase()}function SM(a,u,m){if(a=ft(a),a&&(m||u===n))return Yv(a);if(!a||!(u=Vn(u)))return a;var w=yr(a),T=yr(u),M=Kv(w,T),B=Qv(w,T)+1;return Pi(w,M,B).join("")}function EM(a,u,m){if(a=ft(a),a&&(m||u===n))return a.slice(0,Zv(a)+1);if(!a||!(u=Vn(u)))return a;var w=yr(a),T=Qv(w,yr(u))+1;return Pi(w,0,T).join("")}function CM(a,u,m){if(a=ft(a),a&&(m||u===n))return a.replace(oo,"");if(!a||!(u=Vn(u)))return a;var w=yr(a),T=Kv(w,yr(u));return Pi(w,T).join("")}function TM(a,u){var m=N,w=H;if(zt(u)){var T="separator"in u?u.separator:T;m="length"in u?We(u.length):m,w="omission"in u?Vn(u.omission):w}a=ft(a);var M=a.length;if(ns(a)){var B=yr(a);M=B.length}if(m>=M)return a;var U=m-rs(w);if(U<1)return w;var X=B?Pi(B,0,U).join(""):a.slice(0,U);if(T===n)return X+w;if(B&&(U+=X.length-U),oh(T)){if(a.slice(U).search(T)){var ne,re=X;for(T.global||(T=wf(T.source,ft(Jn.exec(T))+"g")),T.lastIndex=0;ne=T.exec(re);)var oe=ne.index;X=X.slice(0,oe===n?U:oe)}}else if(a.indexOf(Vn(T),U)!=U){var fe=X.lastIndexOf(T);fe>-1&&(X=X.slice(0,fe))}return X+w}function kM(a){return a=ft(a),a&&Fr.test(a)?a.replace(Or,nR):a}var AM=us(function(a,u,m){return a+(m?" ":"")+u.toUpperCase()}),lh=jy("toUpperCase");function F0(a,u,m){return a=ft(a),u=m?n:u,u===n?QA(a)?oR(a):UA(a):a.match(u)||[]}var z0=Xe(function(a,u){try{return Wn(a,n,u)}catch(m){return ih(m)?m:new De(m)}}),RM=ri(function(a,u){return nr(u,function(m){m=Ur(m),ti(a,m,nh(a[m],a))}),a});function IM(a){var u=a==null?0:a.length,m=Ce();return a=u?Dt(a,function(w){if(typeof w[1]!="function")throw new rr(s);return[m(w[0]),w[1]]}):[],Xe(function(w){for(var T=-1;++TG)return[];var m=J,w=vn(a,J);u=Ce(u),a-=J;for(var T=yf(w,u);++m0||u<0)?new Je(m):(a<0?m=m.takeRight(-a):a&&(m=m.drop(a)),u!==n&&(u=We(u),m=u<0?m.dropRight(-u):m.take(u-a)),m)},Je.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Je.prototype.toArray=function(){return this.take(J)},zr(Je.prototype,function(a,u){var m=/^(?:filter|find|map|reject)|While$/.test(u),w=/^(?:head|last)$/.test(u),T=P[w?"take"+(u=="last"?"Right":""):u],M=w||/^find/.test(u);T&&(P.prototype[u]=function(){var B=this.__wrapped__,U=w?[1]:arguments,X=B instanceof Je,ne=U[0],re=X||Be(B),oe=function(Ke){var nt=T.apply(P,Ci([Ke],U));return w&&fe?nt[0]:nt};re&&m&&typeof ne=="function"&&ne.length!=1&&(X=re=!1);var fe=this.__chain__,we=!!this.__actions__.length,Te=M&&!fe,Ve=X&&!we;if(!M&&re){B=Ve?B:new Je(this);var ke=a.apply(B,U);return ke.__actions__.push({func:Fc,args:[oe],thisArg:n}),new ir(ke,fe)}return Te&&Ve?a.apply(this,U):(ke=this.thru(oe),Te?w?ke.value()[0]:ke.value():ke)})}),nr(["pop","push","shift","sort","splice","unshift"],function(a){var u=dc[a],m=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",w=/^(?:pop|shift)$/.test(a);P.prototype[a]=function(){var T=arguments;if(w&&!this.__chain__){var M=this.value();return u.apply(Be(M)?M:[],T)}return this[m](function(B){return u.apply(Be(B)?B:[],T)})}}),zr(Je.prototype,function(a,u){var m=P[u];if(m){var w=m.name+"";vt.call(as,w)||(as[w]=[]),as[w].push({name:u,func:m})}}),as[Oc(n,_).name]=[{name:"wrapper",func:n}],Je.prototype.clone=kR,Je.prototype.reverse=AR,Je.prototype.value=RR,P.prototype.at=i2,P.prototype.chain=o2,P.prototype.commit=s2,P.prototype.next=a2,P.prototype.plant=c2,P.prototype.reverse=u2,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=d2,P.prototype.first=P.prototype.head,_a&&(P.prototype[_a]=l2),P},is=sR();ao?((ao.exports=is)._=is,uf._=is):dn._=is}).call(Bt)})(OE,OE.exports);var te=OE.exports;function Kr(e){return C.jsx(lt,{px:.5,display:"inline-block",...e})}function X4({primary:e,secondary:t}){return C.jsxs(gn,{children:[C.jsx(lt,{children:e}),C.jsx(Kr,{}),C.jsx(lt,{sx:{opacity:.56},children:t})]})}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -251,7 +251,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var PE=function(){return PE=Object.assign||function(t){for(var n,r=1,i=arguments.length;r>>0).toString(36)},Oxe=function(e){e=e||{};var t=e.assign||Object.assign,n=typeof window=="object",r=t({raw:"",pfx:"_",client:n,assign:t,stringify:JSON.stringify,kebab:function(i){return i.replace(Rxe,"-$&").toLowerCase()},decl:function(i,o){return i=r.kebab(i),i+":"+o+";"},hash:function(i){return Pxe(r.stringify(i))},selector:function(i,o){return i+(o[0]===":"?"":" ")+o},putRaw:function(i){r.raw+=i}},e);return r.client&&(r.sh||document.head.appendChild(r.sh=document.createElement("style")),r.putRaw=function(i){{var o=r.sh.sheet;try{o.insertRule(i,o.cssRules.length)}catch{}}}),r.put=function(i,o,s){var l="",c,d,f=[];for(c in o)d=o[c],d instanceof Object&&!(d instanceof Array)?f.push(c):l+=r.decl(c,d,i,s);l&&(l=i+"{"+l+"}",r.putRaw(s?s+"{"+l+"}":l));for(var h=0;h=0;){if(r[t]===e){n.deleteRule(t);break}t--}}HK.removeRule=Dxe;var Lxe=HK.removeRule,Nxe=function(e){if(!e.client)return;var t=e.kebab;function n(i,o){this.rule=e.createRule(i,o),this.decl={}}n.prototype.diff=function(i){var o=this.decl,s=this.rule.style,l;for(l in o)i[l]===void 0&&s.removeProperty(l);for(l in i)i[l]!==o[l]&&s.setProperty(t(l),i[l]);this.decl=i},n.prototype.del=function(){Lxe(this.rule)};function r(){this.tree={}}r.prototype.diff=function(i){var o=this.tree;for(var s in o)if(i[s]===void 0){var l=o[s];for(var c in l)l[c].del()}for(var s in i)if(o[s]===void 0)for(var c in i[s]){var d=new n(c,s);d.diff(i[s][c]),i[s][c]=d}else{var f=o[s],h=i[s];for(var c in f)h[c]||f[c].del();for(var c in h){var d=f[c];d?(d.diff(h[c]),h[c]=d):(d=new n(c,s),d.diff(h[c]),h[c]=d)}}this.tree=i},e.VRule=n,e.VSheet=r};function lF(e,t,n,r){var i={},o=!1,s,l;for(s in t)l=t[s],typeof l!="object"&&(o=!0,i[s]=l);o&&(e[r]||(e[r]={}),e[r][n]=i);for(s in t)if(l=t[s],typeof l=="object")if(s[0]==="@")lF(e,l,n,s);else{var c=s.indexOf("&")>-1,d=n.split(",");if(c)for(var f=0;ft,nk=(e,t)=>({...e,...t});function Ql(e,{init:t,effect:n,reduce:r=nk}={}){const i=R.createContext([e,te.noop]);return[()=>R.useContext(i),({children:o})=>{const[s,l]=Ixe(e),c=R.useCallback(f=>{const h=r(s(),f(s()));n==null||n({prev:s(),next:h}),l(h)},[s]),d=R.useMemo(()=>[s(),c],[s(),c]);return Cxe(async()=>{const f=await(t==null?void 0:t());f&&c(()=>f)}),C.jsx(i.Provider,{value:d,children:o})}]}function Yxe(e,t){return{init:()=>{const n=localStorage.getItem(e);return n?JSON.parse(n):t},effect:({next:n})=>localStorage.setItem(e,JSON.stringify(n))}}const[VK,Kxe]=Ql([],{reduce:(e,t)=>[t,...e]}),qK=R.createContext(()=>te.noop);function hl(){return R.useContext(qK)}function Qxe({children:e}){const[t,n]=R.useState([]),[r,i]=R.useState(!1),[o,s]=R.useState(void 0),[,l]=VK();R.useEffect(()=>{t.length&&!o?(s({...t[0]}),n(h=>h.slice(1)),i(!0)):t.length&&o&&r&&i(!1)},[t,o,r]);const c=R.useCallback((h,p)=>(n(g=>[...g,{message:C.jsx(G4,{primary:h,secondary:p}),key:new Date().getTime()}]),l(()=>({content:te.filter([h,p]).join(", "),timestamp:`${new Date().toLocaleDateString()} ${new Date().toLocaleTimeString()}`})),()=>d()),[n]),d=(h,p)=>{p!=="clickaway"&&i(!1)},f=()=>s(void 0);return C.jsxs(C.Fragment,{children:[C.jsx(qK.Provider,{value:c,children:e}),C.jsx(B0e,{anchorOrigin:{horizontal:"right",vertical:"bottom"},open:r,autoHideDuration:6e3,onClose:d,TransitionProps:{onExited:f},message:o==null?void 0:o.message,action:C.jsx(C.Fragment,{children:C.jsx(dp,{"aria-label":"close",color:"inherit",sx:{p:.5},onClick:d,children:C.jsx($K,{})})})},o==null?void 0:o.key)]})}/*! +***************************************************************************** */var ME=function(){return ME=Object.assign||function(t){for(var n,r=1,i=arguments.length;r>>0).toString(36)},Lxe=function(e){e=e||{};var t=e.assign||Object.assign,n=typeof window=="object",r=t({raw:"",pfx:"_",client:n,assign:t,stringify:JSON.stringify,kebab:function(i){return i.replace(Mxe,"-$&").toLowerCase()},decl:function(i,o){return i=r.kebab(i),i+":"+o+";"},hash:function(i){return Dxe(r.stringify(i))},selector:function(i,o){return i+(o[0]===":"?"":" ")+o},putRaw:function(i){r.raw+=i}},e);return r.client&&(r.sh||document.head.appendChild(r.sh=document.createElement("style")),r.putRaw=function(i){{var o=r.sh.sheet;try{o.insertRule(i,o.cssRules.length)}catch{}}}),r.put=function(i,o,s){var l="",c,d,f=[];for(c in o)d=o[c],d instanceof Object&&!(d instanceof Array)?f.push(c):l+=r.decl(c,d,i,s);l&&(l=i+"{"+l+"}",r.putRaw(s?s+"{"+l+"}":l));for(var h=0;h=0;){if(r[t]===e){n.deleteRule(t);break}t--}}XK.removeRule=Bxe;var $xe=XK.removeRule,Fxe=function(e){if(!e.client)return;var t=e.kebab;function n(i,o){this.rule=e.createRule(i,o),this.decl={}}n.prototype.diff=function(i){var o=this.decl,s=this.rule.style,l;for(l in o)i[l]===void 0&&s.removeProperty(l);for(l in i)i[l]!==o[l]&&s.setProperty(t(l),i[l]);this.decl=i},n.prototype.del=function(){$xe(this.rule)};function r(){this.tree={}}r.prototype.diff=function(i){var o=this.tree;for(var s in o)if(i[s]===void 0){var l=o[s];for(var c in l)l[c].del()}for(var s in i)if(o[s]===void 0)for(var c in i[s]){var d=new n(c,s);d.diff(i[s][c]),i[s][c]=d}else{var f=o[s],h=i[s];for(var c in f)h[c]||f[c].del();for(var c in h){var d=f[c];d?(d.diff(h[c]),h[c]=d):(d=new n(c,s),d.diff(h[c]),h[c]=d)}}this.tree=i},e.VRule=n,e.VSheet=r};function uF(e,t,n,r){var i={},o=!1,s,l;for(s in t)l=t[s],typeof l!="object"&&(o=!0,i[s]=l);o&&(e[r]||(e[r]={}),e[r][n]=i);for(s in t)if(l=t[s],typeof l=="object")if(s[0]==="@")uF(e,l,n,s);else{var c=s.indexOf("&")>-1,d=n.split(",");if(c)for(var f=0;ft,ik=(e,t)=>({...e,...t});function Jl(e,{init:t,effect:n,reduce:r=ik}={}){const i=I.createContext([e,te.noop]);return[()=>I.useContext(i),({children:o})=>{const[s,l]=Oxe(e),c=I.useCallback(f=>{const h=r(s(),f(s()));n==null||n({prev:s(),next:h}),l(h)},[s]),d=I.useMemo(()=>[s(),c],[s(),c]);return Axe(async()=>{const f=await(t==null?void 0:t());f&&c(()=>f)}),C.jsx(i.Provider,{value:d,children:o})}]}function Jxe(e,t){return{init:()=>{const n=localStorage.getItem(e);return n?JSON.parse(n):t},effect:({next:n})=>localStorage.setItem(e,JSON.stringify(n))}}const[QK,Zxe]=Jl([],{reduce:(e,t)=>[t,...e]}),JK=I.createContext(()=>te.noop);function ml(){return I.useContext(JK)}function e1e({children:e}){const[t,n]=I.useState([]),[r,i]=I.useState(!1),[o,s]=I.useState(void 0),[,l]=QK();I.useEffect(()=>{t.length&&!o?(s({...t[0]}),n(h=>h.slice(1)),i(!0)):t.length&&o&&r&&i(!1)},[t,o,r]);const c=I.useCallback((h,p)=>(n(g=>[...g,{message:C.jsx(X4,{primary:h,secondary:p}),key:new Date().getTime()}]),l(()=>({content:te.filter([h,p]).join(", "),timestamp:`${new Date().toLocaleDateString()} ${new Date().toLocaleTimeString()}`})),()=>d()),[n]),d=(h,p)=>{p!=="clickaway"&&i(!1)},f=()=>s(void 0);return C.jsxs(C.Fragment,{children:[C.jsx(JK.Provider,{value:c,children:e}),C.jsx(j0e,{anchorOrigin:{horizontal:"right",vertical:"bottom"},open:r,autoHideDuration:6e3,onClose:d,TransitionProps:{onExited:f},message:o==null?void 0:o.message,action:C.jsx(C.Fragment,{children:C.jsx(fp,{"aria-label":"close",color:"inherit",sx:{p:.5},onClick:d,children:C.jsx(HK,{})})})},o==null?void 0:o.key)]})}/*! * OverlayScrollbars * Version: 2.3.2 * @@ -259,14 +259,14 @@ PERFORMANCE OF THIS SOFTWARE. * https://github.com/KingSora * * Released under the MIT license. - */function Sn(e,t){if(ik(e))for(let n=0;nt(e[n],n,e));return e}function Qi(e,t){const n=Vd(t);if(Bs(t)||n){let i=n?"":{};if(e){const o=window.getComputedStyle(e,null);i=n?N8(e,o,t):t.reduce((s,l)=>(s[l]=N8(e,o,l),s),i)}return i}e&&Sn($s(t),i=>h1e(e,i,t[i]))}const Ka=(e,t)=>{const{o:n,u:r,_:i}=e;let o=n,s;const l=(f,h)=>{const p=o,g=f,v=h||(r?!r(p,g):p!==g);return(v||i)&&(o=g,s=p),[o,v,s]};return[t?f=>l(t(o,s),f):l,f=>[o,!!f,s]]},G1=()=>typeof window<"u",XK=G1()&&Node.ELEMENT_NODE,{toString:Jxe,hasOwnProperty:ZD}=Object.prototype,Iu=e=>e===void 0,rk=e=>e===null,Zxe=e=>Iu(e)||rk(e)?`${e}`:Jxe.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),wd=e=>typeof e=="number",Vd=e=>typeof e=="string",q4=e=>typeof e=="boolean",dl=e=>typeof e=="function",Bs=e=>Array.isArray(e),Xx=e=>typeof e=="object"&&!Bs(e)&&!rk(e),ik=e=>{const t=!!e&&e.length,n=wd(t)&&t>-1&&t%1==0;return Bs(e)||!dl(e)&&n?t>0&&Xx(e)?t-1 in e:!0:!1},cF=e=>{if(!e||!Xx(e)||Zxe(e)!=="object")return!1;let t;const n="constructor",r=e[n],i=r&&r.prototype,o=ZD.call(e,n),s=i&&ZD.call(i,"isPrototypeOf");if(r&&!o&&!s)return!1;for(t in e);return Iu(t)||ZD.call(e,t)},lx=e=>{const t=HTMLElement;return e?t?e instanceof t:e.nodeType===XK:!1},ok=e=>{const t=Element;return e?t?e instanceof t:e.nodeType===XK:!1},sk=(e,t,n)=>e.indexOf(t,n),Fn=(e,t,n)=>(!n&&!Vd(t)&&ik(t)?Array.prototype.push.apply(e,t):e.push(t),e),pp=e=>{const t=Array.from,n=[];return t&&e?t(e):(e instanceof Set?e.forEach(r=>{Fn(n,r)}):Sn(e,r=>{Fn(n,r)}),n)},X4=e=>!!e&&e.length===0,Jl=(e,t,n)=>{Sn(e,i=>i&&i.apply(void 0,t||[])),!n&&(e.length=0)},ak=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),$s=e=>e?Object.keys(e):[],Tr=(e,t,n,r,i,o,s)=>{const l=[t,n,r,i,o,s];return(typeof e!="object"||rk(e))&&!dl(e)&&(e={}),Sn(l,c=>{Sn($s(c),d=>{const f=c[d];if(e===f)return!0;const h=Bs(f);if(f&&cF(f)){const p=e[d];let g=p;h&&!Bs(p)?g=[]:!h&&!cF(p)&&(g={}),e[d]=Tr(g,f)}else e[d]=h?f.slice():f})}),e},Y4=e=>{for(const t in e)return!1;return!0},YK=(e,t,n,r)=>{if(Iu(r))return n?n[e]:t;n&&(Vd(r)||wd(r))&&(n[e]=r)},_o=(e,t,n)=>{if(Iu(n))return e?e.getAttribute(t):null;e&&e.setAttribute(t,n)},KK=(e,t)=>new Set((_o(e,t)||"").split(" ")),Po=(e,t)=>{e&&e.removeAttribute(t)},Kh=(e,t,n,r)=>{if(n){const i=KK(e,t);i[r?"add":"delete"](n);const o=pp(i).join(" ").trim();_o(e,t,o)}},e1e=(e,t,n)=>KK(e,t).has(n),il=(e,t)=>YK("scrollLeft",0,e,t),fu=(e,t)=>YK("scrollTop",0,e,t),uF=G1()&&Element.prototype,QK=(e,t)=>{const n=[],r=t?ok(t)&&t:document;return r?Fn(n,r.querySelectorAll(e)):n},t1e=(e,t)=>{const n=t?ok(t)&&t:document;return n?n.querySelector(e):null},OE=(e,t)=>ok(e)?(uF.matches||uF.msMatchesSelector).call(e,t):!1,K4=e=>e?pp(e.childNodes):[],xu=e=>e&&e.parentElement,Pm=(e,t)=>{if(ok(e)){const n=uF.closest;if(n)return n.call(e,t);do{if(OE(e,t))return e;e=xu(e)}while(e)}},n1e=(e,t,n)=>{const r=Pm(e,t),i=e&&t1e(n,r),o=Pm(i,t)===r;return r&&i?r===e||i===e||o&&Pm(Pm(e,n),t)!==r:!1},Q4=(e,t,n)=>{if(n&&e){let r=t,i;ik(n)?(i=document.createDocumentFragment(),Sn(n,o=>{o===r&&(r=o.previousSibling),i.appendChild(o)})):i=n,t&&(r?r!==t&&(r=r.nextSibling):r=e.firstChild),e.insertBefore(i,r||null)}},ta=(e,t)=>{Q4(e,null,t)},r1e=(e,t)=>{Q4(xu(e),e,t)},M8=(e,t)=>{Q4(xu(e),e&&e.nextSibling,t)},ql=e=>{if(ik(e))Sn(pp(e),t=>ql(t));else if(e){const t=xu(e);t&&t.removeChild(e)}},Qh=e=>{const t=document.createElement("div");return e&&_o(t,"class",e),t},JK=e=>{const t=Qh();return t.innerHTML=e.trim(),Sn(K4(t),n=>ql(n))},dF=e=>e.charAt(0).toUpperCase()+e.slice(1),i1e=()=>Qh().style,o1e=["-webkit-","-moz-","-o-","-ms-"],s1e=["WebKit","Moz","O","MS","webkit","moz","o","ms"],eL={},tL={},a1e=e=>{let t=tL[e];if(ak(tL,e))return t;const n=dF(e),r=i1e();return Sn(o1e,i=>{const o=i.replace(/-/g,"");return!(t=[e,i+e,o+n,dF(o)+n].find(l=>r[l]!==void 0))}),tL[e]=t||""},Qg=e=>{if(G1()){let t=eL[e]||window[e];return ak(eL,e)||(Sn(s1e,n=>(t=t||window[n+dF(e)],!t)),eL[e]=t),t}},l1e=Qg("MutationObserver"),D8=Qg("IntersectionObserver"),Om=Qg("ResizeObserver"),ZK=Qg("cancelAnimationFrame"),eQ=Qg("requestAnimationFrame"),fF=Qg("ScrollTimeline"),ME=G1()&&window.setTimeout,hF=G1()&&window.clearTimeout,c1e=/[^\x20\t\r\n\f]+/g,tQ=(e,t,n)=>{const r=e&&e.classList;let i,o=0,s=!1;if(r&&t&&Vd(t)){const l=t.match(c1e)||[];for(s=l.length>0;i=l[o++];)s=!!n(r,i)&&s}return s},J4=(e,t)=>{tQ(e,t,(n,r)=>n.remove(r))},Pd=(e,t)=>(tQ(e,t,(n,r)=>n.add(r)),J4.bind(0,e,t)),lk=(e,t,n,r)=>{if(e&&t){let i=!0;return Sn(n,o=>{const s=r?r(e[o]):e[o],l=r?r(t[o]):t[o];s!==l&&(i=!1)}),i}return!1},nQ=(e,t)=>lk(e,t,["w","h"]),rQ=(e,t)=>lk(e,t,["x","y"]),u1e=(e,t)=>lk(e,t,["t","r","b","l"]),L8=(e,t,n)=>lk(e,t,["width","height"],n&&(r=>Math.round(r))),ws=()=>{},Ah=e=>{let t;const n=e?ME:eQ,r=e?hF:ZK;return[i=>{r(t),t=n(i,dl(e)?e():e)},()=>r(t)]},Z4=(e,t)=>{let n,r,i,o=ws;const{g:s,v:l,p:c}=t||{},d=function(v){o(),hF(n),n=r=void 0,o=ws,e.apply(this,v)},f=g=>c&&r?c(r,g):g,h=()=>{o!==ws&&d(f(i)||i)},p=function(){const v=pp(arguments),y=dl(s)?s():s;if(wd(y)&&y>=0){const _=dl(l)?l():l,b=wd(_)&&_>=0,x=y>0?ME:eQ,E=y>0?hF:ZK,I=f(v)||v,k=d.bind(0,I);o();const O=x(k,y);o=()=>E(O),b&&!n&&(n=ME(h,_)),r=i=I}else d(v)};return p.m=h,p},d1e={opacity:1,zIndex:1},Jw=(e,t)=>{const n=e||"",r=t?parseFloat(n):parseInt(n,10);return r===r?r:0},f1e=(e,t)=>!d1e[e]&&wd(t)?`${t}px`:t,N8=(e,t,n)=>String((t!=null?t[n]||t.getPropertyValue(n):e.style[n])||""),h1e=(e,t,n)=>{try{const{style:r}=e;Iu(r[t])?r.setProperty(t,n):r[t]=f1e(t,n)}catch{}},Sg=e=>Qi(e,"direction")==="rtl",B8=(e,t,n)=>{const r=t?`${t}-`:"",i=n?`-${n}`:"",o=`${r}top${i}`,s=`${r}right${i}`,l=`${r}bottom${i}`,c=`${r}left${i}`,d=Qi(e,[o,s,l,c]);return{t:Jw(d[o],!0),r:Jw(d[s],!0),b:Jw(d[l],!0),l:Jw(d[c],!0)}},Eg=(e,t)=>`translate${Bs(e)?`(${e[0]},${e[1]})`:`${t?"X":"Y"}(${e})`}`,{round:$8}=Math,ez={w:0,h:0},Yx=e=>e?{w:e.offsetWidth,h:e.offsetHeight}:ez,CS=e=>e?{w:e.clientWidth,h:e.clientHeight}:ez,DE=e=>e?{w:e.scrollWidth,h:e.scrollHeight}:ez,LE=e=>{const t=parseFloat(Qi(e,"height"))||0,n=parseFloat(Qi(e,"width"))||0;return{w:n-$8(n),h:t-$8(t)}},Ol=e=>e.getBoundingClientRect(),Mm=e=>!!(e&&(e.height||e.width));let Zw;const p1e=()=>{if(Iu(Zw)){Zw=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get(){Zw=!0}}))}catch{}}return Zw},iQ=e=>e.split(" "),m1e=(e,t,n,r)=>{Sn(iQ(t),i=>{e.removeEventListener(i,n,r)})},qr=(e,t,n,r)=>{var i;const o=p1e(),s=(i=o&&r&&r.S)!=null?i:o,l=r&&r.$||!1,c=r&&r.C||!1,d=[],f=o?{passive:s,capture:l}:l;return Sn(iQ(t),h=>{const p=c?g=>{e.removeEventListener(h,p,l),n&&n(g)}:n;Fn(d,m1e.bind(null,e,h,p,l)),e.addEventListener(h,p,f)}),Jl.bind(0,d)},oQ=e=>e.stopPropagation(),sQ=e=>e.preventDefault(),g1e={x:0,y:0},nL=e=>{const t=e?Ol(e):0;return t?{x:t.left+window.pageYOffset,y:t.top+window.pageXOffset}:g1e},F8=(e,t)=>{Sn(Bs(t)?t:[t],e)},tz=e=>{const t=new Map,n=(o,s)=>{if(o){const l=t.get(o);F8(c=>{l&&l[c?"delete":"clear"](c)},s)}else t.forEach(l=>{l.clear()}),t.clear()},r=(o,s)=>{if(Vd(o)){const d=t.get(o)||new Set;return t.set(o,d),F8(f=>{dl(f)&&d.add(f)},s),n.bind(0,o,s)}q4(s)&&s&&n();const l=$s(o),c=[];return Sn(l,d=>{const f=o[d];f&&Fn(c,r(d,f))}),Jl.bind(0,c)},i=(o,s)=>{const l=t.get(o);Sn(pp(l),c=>{s&&!X4(s)?c.apply(0,s):c()})};return r(e||{}),[r,n,i]},z8=e=>JSON.stringify(e,(t,n)=>{if(dl(n))throw new Error;return n}),v1e={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},aQ=(e,t)=>{const n={},r=$s(t).concat($s(e));return Sn(r,i=>{const o=e[i],s=t[i];if(Xx(o)&&Xx(s))Tr(n[i]={},aQ(o,s)),Y4(n[i])&&delete n[i];else if(ak(t,i)&&s!==o){let l=!0;if(Bs(o)||Bs(s))try{z8(o)===z8(s)&&(l=!1)}catch{}l&&(n[i]=s)}}),n},V1="data-overlayscrollbars",lQ="os-environment",cQ=`${lQ}-flexbox-glue`,y1e=`${cQ}-max`,uQ="os-scrollbar-hidden",rL=`${V1}-initialize`,Qa=V1,dQ=`${Qa}-overflow-x`,fQ=`${Qa}-overflow-y`,Xm="overflowVisible",b1e="scrollbarHidden",j8="scrollbarPressed",NE="updating",Vu=`${V1}-viewport`,iL="arrange",hQ="scrollbarHidden",Ym=Xm,pF=`${V1}-padding`,x1e=Ym,U8=`${V1}-content`,nz="os-size-observer",w1e=`${nz}-appear`,_1e=`${nz}-listener`,S1e="os-trinsic-observer",E1e="os-no-css-vars",C1e="os-theme-none",Xo="os-scrollbar",T1e=`${Xo}-rtl`,k1e=`${Xo}-horizontal`,A1e=`${Xo}-vertical`,pQ=`${Xo}-track`,rz=`${Xo}-handle`,I1e=`${Xo}-visible`,R1e=`${Xo}-cornerless`,H8=`${Xo}-transitionless`,W8=`${Xo}-interaction`,G8=`${Xo}-unusable`,mF=`${Xo}-auto-hide`,V8=`${mF}-hidden`,q8=`${Xo}-wheel`,P1e=`${pQ}-interactive`,O1e=`${rz}-interactive`,mQ={},mp=()=>mQ,M1e=e=>{const t=[];return Sn(Bs(e)?e:[e],n=>{const r=$s(n);Sn(r,i=>{Fn(t,mQ[i]=n[i])})}),t},D1e="__osOptionsValidationPlugin",L1e="__osSizeObserverPlugin",iz="__osScrollbarsHidingPlugin",N1e="__osClickScrollPlugin";let oL;const X8=(e,t,n,r)=>{ta(e,t);const i=CS(t),o=Yx(t),s=LE(n);return r&&ql(t),{x:o.h-i.h+s.h,y:o.w-i.w+s.w}},B1e=e=>{let t=!1;const n=Pd(e,uQ);try{t=Qi(e,a1e("scrollbar-width"))==="none"||window.getComputedStyle(e,"::-webkit-scrollbar").getPropertyValue("display")==="none"}catch{}return n(),t},$1e=(e,t)=>{const n="hidden";Qi(e,{overflowX:n,overflowY:n,direction:"rtl"}),il(e,0);const r=nL(e),i=nL(t);il(e,-999);const o=nL(t);return{i:r.x===i.x,n:i.x!==o.x}},F1e=(e,t)=>{const n=Pd(e,cQ),r=Ol(e),i=Ol(t),o=L8(i,r,!0),s=Pd(e,y1e),l=Ol(e),c=Ol(t),d=L8(c,l,!0);return n(),s(),o&&d},z1e=()=>{const{body:e}=document,n=JK(`
`)[0],r=n.firstChild,[i,,o]=tz(),[s,l]=Ka({o:X8(e,n,r),u:rQ},X8.bind(0,e,n,r,!0)),[c]=l(),d=B1e(n),f={x:c.x===0,y:c.y===0},h={elements:{host:null,padding:!d,viewport:b=>d&&b===b.ownerDocument.body&&b,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=Tr({},v1e),g=Tr.bind(0,{},p),v=Tr.bind(0,{},h),y={k:c,I:f,A:d,H:Qi(n,"zIndex")==="-1",B:!!fF,V:$1e(n,r),Y:F1e(n,r),j:i.bind(0,"z"),N:i.bind(0,"r"),q:v,F:b=>Tr(h,b)&&v(),G:g,X:b=>Tr(p,b)&&g(),U:Tr({},h),W:Tr({},p)},S=window.addEventListener,_=Z4(b=>o(b?"z":"r"),{g:33,v:99});if(Po(n,"style"),ql(n),S("resize",_.bind(0,!1)),!d&&(!f.x||!f.y)){let b;S("resize",()=>{const x=mp()[iz];b=b||x&&x.R(),b&&b(y,s,_.bind(0,!0))})}return y},Yo=()=>(oL||(oL=z1e()),oL),oz=(e,t)=>dl(t)?t.apply(0,e):t,j1e=(e,t,n,r)=>{const i=Iu(r)?n:r;return oz(e,i)||t.apply(0,e)},gQ=(e,t,n,r)=>{const i=Iu(r)?n:r,o=oz(e,i);return!!o&&(lx(o)?o:t.apply(0,e))},U1e=(e,t,n)=>{const{nativeScrollbarsOverlaid:r,body:i}=n||{},{I:o,A:s}=Yo(),{nativeScrollbarsOverlaid:l,body:c}=t,d=r??l,f=Iu(i)?c:i,h=(o.x||o.y)&&d,p=e&&(rk(f)?!s:f);return!!h||!!p},sz=new WeakMap,H1e=(e,t)=>{sz.set(e,t)},W1e=e=>{sz.delete(e)},vQ=e=>sz.get(e),Y8=(e,t)=>e?t.split(".").reduce((n,r)=>n&&ak(n,r)?n[r]:void 0,e):void 0,gF=(e,t,n)=>r=>[Y8(e,r),n||Y8(t,r)!==void 0],yQ=e=>{let t=e;return[()=>t,n=>{t=Tr({},t,n)}]},e_="tabindex",t_=Qh.bind(0,""),sL=e=>{ta(xu(e),K4(e)),ql(e)},G1e=e=>{const t=Yo(),{q:n,A:r}=t,i=mp()[iz],o=i&&i.T,{elements:s}=n(),{host:l,padding:c,viewport:d,content:f}=s,h=lx(e),p=h?{}:e,{elements:g}=p,{host:v,padding:y,viewport:S,content:_}=g||{},b=h?e:p.target,x=OE(b,"textarea"),E=b.ownerDocument,A=E.documentElement,I=b===E.body,k=E.defaultView,O=j1e.bind(0,[b]),L=gQ.bind(0,[b]),N=oz.bind(0,[b]),H=O.bind(0,t_,d),W=L.bind(0,t_,f),z=H(S),D=z===b,F=D&&I,j=!D&&W(_),V=!D&&lx(z)&&z===j,G=V&&!!N(f),K=G?H():z,Y=G?j:W(),ie=F?A:V?K:z,ce=x?O(t_,l,v):b,ue=F?ie:ce,se=V?Y:j,Q=E.activeElement,ae=!D&&k.top===k&&Q===b,le={Z:b,J:ue,K:ie,tt:!D&&L(t_,c,y),nt:se,ot:!D&&!r&&o&&o(t),st:F?A:ie,et:F?E:ie,ct:k,rt:E,lt:x,it:I,ut:h,ft:D,dt:V,_t:(it,pt)=>e1e(ie,D?Qa:Vu,D?pt:it),ht:(it,pt,mt)=>Kh(ie,D?Qa:Vu,D?pt:it,mt)},he=$s(le).reduce((it,pt)=>{const mt=le[pt];return Fn(it,mt&&lx(mt)&&!xu(mt)?mt:!1)},[]),pe=it=>it?sk(he,it)>-1:null,{Z:ve,J:ye,tt:xe,K:me,nt:be,ot:Qe}=le,qe=[()=>{Po(ye,Qa),Po(ye,rL),Po(ve,rL),I&&(Po(A,Qa),Po(A,rL))}],at=x&&pe(ye);let Lt=x?ve:K4([be,me,xe,ye,ve].find(it=>pe(it)===!1));const Re=F?ve:be||me;return[le,()=>{_o(ye,Qa,D?"viewport":"host"),_o(xe,pF,""),_o(be,U8,""),D||_o(me,Vu,"");const it=I&&!D?Pd(xu(b),uQ):ws;if(at&&(M8(ve,ye),Fn(qe,()=>{M8(ye,ve),ql(ye)})),ta(Re,Lt),ta(ye,xe),ta(xe||ye,!D&&me),ta(me,be),Fn(qe,()=>{it(),Po(xe,pF),Po(be,U8),Po(me,dQ),Po(me,fQ),Po(me,Vu),pe(be)&&sL(be),pe(me)&&sL(me),pe(xe)&&sL(xe)}),r&&!D&&(Kh(me,Vu,hQ,!0),Fn(qe,Po.bind(0,me,Vu))),Qe&&(r1e(me,Qe),Fn(qe,ql.bind(0,Qe))),ae){const pt=_o(me,e_);_o(me,e_,"-1"),me.focus();const mt=()=>pt?_o(me,e_,pt):Po(me,e_),_e=qr(E,"pointerdown keydown",()=>{mt(),_e()});Fn(qe,[mt,_e])}else Q&&Q.focus&&Q.focus();Lt=0},Jl.bind(0,qe)]},V1e=(e,t)=>{const{nt:n}=e,[r]=t;return i=>{const{Y:o}=Yo(),{gt:s}=r(),{vt:l}=i,c=(n||!o)&&l;return c&&Qi(n,{height:s?"":"100%"}),{wt:c,bt:c}}},q1e=(e,t)=>{const[n,r]=t,{J:i,tt:o,K:s,ft:l}=e,[c,d]=Ka({u:u1e,o:B8()},B8.bind(0,i,"padding",""));return(f,h,p)=>{let[g,v]=d(p);const{A:y,Y:S}=Yo(),{yt:_}=n(),{wt:b,bt:x,St:E}=f,[A,I]=h("paddingAbsolute");(b||v||!S&&x)&&([g,v]=c(p));const O=!l&&(I||E||v);if(O){const L=!A||!o&&!y,N=g.r+g.l,H=g.t+g.b,W={marginRight:L&&!_?-N:0,marginBottom:L?-H:0,marginLeft:L&&_?-N:0,top:L?-g.t:0,right:L?_?-g.r:"auto":0,left:L?_?"auto":-g.l:0,width:L?`calc(100% + ${N}px)`:""},z={paddingTop:L?g.t:0,paddingRight:L?g.r:0,paddingBottom:L?g.b:0,paddingLeft:L?g.l:0};Qi(o||s,W),Qi(s,z),r({tt:g,$t:!L,P:o?z:Tr({},W,z)})}return{xt:O}}},{max:vF}=Math,qu=vF.bind(0,0),bQ="visible",K8="hidden",X1e=42,n_={u:nQ,o:{w:0,h:0}},Y1e={u:rQ,o:{x:K8,y:K8}},K1e=(e,t)=>{const n=window.devicePixelRatio%1!==0?1:0,r={w:qu(e.w-t.w),h:qu(e.h-t.h)};return{w:r.w>n?r.w:0,h:r.h>n?r.h:0}},r_=e=>e.indexOf(bQ)===0,Q1e=(e,t)=>{const[n,r]=t,{J:i,tt:o,K:s,ot:l,ft:c,ht:d,it:f,ct:h}=e,{k:p,Y:g,A:v,I:y}=Yo(),S=mp()[iz],_=!c&&!v&&(y.x||y.y),b=f&&c,[x,E]=Ka(n_,LE.bind(0,s)),[A,I]=Ka(n_,DE.bind(0,s)),[k,O]=Ka(n_),[L,N]=Ka(n_),[H]=Ka(Y1e),W=(G,K)=>{if(Qi(s,{height:""}),K){const{$t:Y,tt:J}=n(),{Ct:ie,M:ce}=G,ue=LE(i),se=CS(i),Q=Qi(s,"boxSizing")==="content-box",ae=Y||Q?J.b+J.t:0,le=!(y.x&&Q);Qi(s,{height:se.h+ue.h+(ie.x&&le?ce.x:0)-ae})}},z=(G,K)=>{const Y=!v&&!G?X1e:0,J=(pe,ve,ye)=>{const xe=Qi(s,pe),be=(K?K[pe]:xe)==="scroll";return[xe,be,be&&!v?ve?Y:ye:0,ve&&!!Y]},[ie,ce,ue,se]=J("overflowX",y.x,p.x),[Q,ae,le,he]=J("overflowY",y.y,p.y);return{Ot:{x:ie,y:Q},Ct:{x:ce,y:ae},M:{x:ue,y:le},D:{x:se,y:he}}},D=(G,K,Y,J)=>{const ie=(ae,le)=>{const he=r_(ae),pe=le&&he&&ae.replace(`${bQ}-`,"")||"";return[le&&!he?ae:"",r_(pe)?"hidden":pe]},[ce,ue]=ie(Y.x,K.x),[se,Q]=ie(Y.y,K.y);return J.overflowX=ue&&se?ue:ce,J.overflowY=Q&&ce?Q:se,z(G,J)},F=(G,K,Y,J)=>{const{M:ie,D:ce}=G,{x:ue,y:se}=ce,{x:Q,y:ae}=ie,{P:le}=n(),he=K?"marginLeft":"marginRight",pe=K?"paddingLeft":"paddingRight",ve=le[he],ye=le.marginBottom,xe=le[pe],me=le.paddingBottom;J.width=`calc(100% + ${ae+ve*-1}px)`,J[he]=-ae+ve,J.marginBottom=-Q+ye,Y&&(J[pe]=xe+(se?ae:0),J.paddingBottom=me+(ue?Q:0))},[j,V]=S?S.L(_,g,s,l,n,z,F):[()=>_,()=>[ws]];return(G,K,Y)=>{const{wt:J,Tt:ie,bt:ce,xt:ue,vt:se,St:Q}=G,{gt:ae,yt:le}=n(),[he,pe]=K("showNativeOverlaidScrollbars"),[ve,ye]=K("overflow"),xe=he&&y.x&&y.y,me=!c&&!g&&(J||ce||ie||pe||se),be=r_(ve.x),Qe=r_(ve.y),qe=be||Qe;let at=E(Y),Lt=I(Y),Re=O(Y),Fe=N(Y),it;if(pe&&v&&d(hQ,b1e,!xe),me&&(it=z(xe),W(it,ae)),J||ue||ce||Q||pe){qe&&d(Ym,Xm,!1);const[Ie,Ue]=V(xe,le,it),[yt,Wt]=at=x(Y),[pn,$r]=Lt=A(Y),Or=CS(s);let Mr=pn,Fr=Or;Ie(),($r||Wt||pe)&&Ue&&!xe&&j(Ue,pn,yt,le)&&(Fr=CS(s),Mr=DE(s));const Jr={w:qu(vF(pn.w,Mr.w)+yt.w),h:qu(vF(pn.h,Mr.h)+yt.h)},Ko={w:qu((b?h.innerWidth:Fr.w+qu(Or.w-pn.w))+yt.w),h:qu((b?h.innerHeight+yt.h:Fr.h+qu(Or.h-pn.h))+yt.h)};Fe=L(Ko),Re=k(K1e(Jr,Ko),Y)}const[pt,mt]=Fe,[_e,ze]=Re,[Ye,$e]=Lt,[Ne,It]=at,ct={x:_e.w>0,y:_e.h>0},Ae=be&&Qe&&(ct.x||ct.y)||be&&ct.x&&!ct.y||Qe&&ct.y&&!ct.x;if(ue||Q||It||$e||mt||ze||ye||pe||me){const Ie={marginRight:0,marginBottom:0,marginLeft:0,width:"",overflowY:"",overflowX:""},Ue=D(xe,ct,ve,Ie),yt=j(Ue,Ye,Ne,le);c||F(Ue,le,yt,Ie),me&&W(Ue,ae),c?(_o(i,dQ,Ie.overflowX),_o(i,fQ,Ie.overflowY)):Qi(s,Ie)}Kh(i,Qa,Xm,Ae),Kh(o,pF,x1e,Ae),c||Kh(s,Vu,Ym,qe);const[ot,$t]=H(z(xe).Ot);return r({Ot:ot,zt:{x:pt.w,y:pt.h},Et:{x:_e.w,y:_e.h},At:ct}),{It:$t,Ht:mt,Lt:ze}}},Q8=(e,t,n)=>{const r={},i=t||{},o=$s(e).concat($s(i));return Sn(o,s=>{const l=e[s],c=i[s];r[s]=!!(n||l||c)}),r},J1e=(e,t)=>{const{Z:n,K:r,ht:i,ft:o}=e,{A:s,I:l,Y:c}=Yo(),d=!s&&(l.x||l.y),f=[V1e(e,t),q1e(e,t),Q1e(e,t)];return(h,p,g)=>{const v=Q8(Tr({wt:!1,xt:!1,St:!1,vt:!1,Ht:!1,Lt:!1,It:!1,Tt:!1,bt:!1,Pt:!1},p),{},g),y=d||!c,S=y&&il(r),_=y&&fu(r);i("",NE,!0);let b=v;return Sn(f,x=>{b=Q8(b,x(b,h,!!g)||{},g)}),il(r,S),fu(r,_),i("",NE),o||(il(n,0),fu(n,0)),b}},Z1e=(e,t,n)=>{let r,i=!1;const o=()=>{i=!0},s=l=>{if(n){const c=n.reduce((d,f)=>{if(f){const[h,p]=f,g=p&&h&&(l?l(h):QK(h,e));g&&g.length&&p&&Vd(p)&&Fn(d,[g,p.trim()],!0)}return d},[]);Sn(c,d=>Sn(d[0],f=>{const h=d[1],p=r.get(f)||[];if(e.contains(f)){const v=qr(f,h,y=>{i?(v(),r.delete(f)):t(y)});r.set(f,Fn(p,v))}else Jl(p),r.delete(f)}))}};return n&&(r=new WeakMap,s()),[o,s]},J8=(e,t,n,r)=>{let i=!1;const{Mt:o,Dt:s,Rt:l,kt:c,Bt:d,Vt:f}=r||{},h=Z4(()=>i&&n(!0),{g:33,v:99}),[p,g]=Z1e(e,h,l),v=o||[],y=s||[],S=v.concat(y),_=(x,E)=>{const A=d||ws,I=f||ws,k=new Set,O=new Set;let L=!1,N=!1;if(Sn(x,H=>{const{attributeName:W,target:z,type:D,oldValue:F,addedNodes:j,removedNodes:V}=H,G=D==="attributes",K=D==="childList",Y=e===z,J=G&&Vd(W)?_o(z,W):0,ie=J!==0&&F!==J,ce=sk(y,W)>-1&&ie;if(t&&(K||!Y)){const ue=!G,se=G&&ie,Q=se&&c&&OE(z,c),le=(Q?!A(z,W,F,J):ue||se)&&!I(H,!!Q,e,r);Sn(j,he=>k.add(he)),Sn(V,he=>k.add(he)),N=N||le}!t&&Y&&ie&&!A(z,W,F,J)&&(O.add(W),L=L||ce)}),k.size>0&&g(H=>pp(k).reduce((W,z)=>(Fn(W,QK(H,z)),OE(z,H)?Fn(W,z):W),[])),t)return!E&&N&&n(!1),[!1];if(O.size>0||L){const H=[pp(O),L];return!E&&n.apply(0,H),H}},b=new l1e(x=>_(x));return b.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:S,subtree:t,childList:t,characterData:t}),i=!0,[()=>{i&&(p(),b.disconnect(),i=!1)},()=>{if(i){h.m();const x=b.takeRecords();return!X4(x)&&_(x,!0)}}]},i_=3333333,xQ=(e,t,n)=>{const{Yt:r,Pt:i}=n||{},o=mp()[L1e],{V:s}=Yo(),c=JK(`
`)[0],d=c.firstChild,f=Sg.bind(0,e),[h]=Ka({o:!1,_:!0,u:(v,y)=>!(!v||!Mm(v)&&Mm(y))}),p=v=>{const y=Bs(v)&&v.length>0&&Xx(v[0]),S=!y&&q4(v[0]);let _=!1,b=!1,x=!0;if(y){const[E,,A]=h(v.pop().contentRect),I=Mm(E),k=Mm(A);_=!A&&!!k||!I,b=!k&&I,x=!_}else S?[,x]=v:b=v===!0;if(r&&x){const E=S?v[0]:Sg(c);il(c,E?s.n?-i_:s.i?0:i_:i_),fu(c,i_)}_||t({wt:!S,jt:S?v:void 0,Pt:!!b})},g=[];return[()=>{Jl(g),ql(c)},()=>{let v=i&&p;if(Om){const y=new Om(p);y.observe(d),Fn(g,()=>{y.disconnect()})}else if(o){const[y,S]=o.O(d,p,i);v=y,Fn(g,S)}if(r){const[y]=Ka({o:void 0},f);Fn(g,qr(c,"scroll",S=>{const _=y(),[b,x,E]=_;x&&(J4(d,"ltr rtl"),Pd(d,b?"rtl":"ltr"),p([!!b,x,E])),oQ(S)}))}v&&(Pd(c,w1e),Fn(g,qr(c,"animationstart",v,{C:!!Om}))),(Om||o)&&ta(e,c)}]},ewe=e=>e.h===0||e.isIntersecting||e.intersectionRatio>0,twe=(e,t)=>{let n;const r=Qh(S1e),i=[],[o]=Ka({o:!1}),s=(c,d)=>{if(c){const f=o(ewe(c)),[,h]=f;return h&&!d&&t(f)&&[f]}},l=(c,d)=>c&&c.length>0&&s(c.pop(),d);return[()=>{Jl(i),ql(r)},()=>{if(D8)n=new D8(c=>l(c),{root:e}),n.observe(r),Fn(i,()=>{n.disconnect()});else{const c=()=>{const h=Yx(r);s(h)},[d,f]=xQ(r,c);Fn(i,d),f(),c()}ta(e,r)},()=>n&&l(n.takeRecords(),!0)]},Z8=`[${Qa}]`,nwe=`[${Vu}]`,aL=["tabindex"],eH=["wrap","cols","rows"],lL=["id","class","style","open"],rwe=(e,t,n)=>{let r,i,o;const{J:s,K:l,nt:c,lt:d,ft:f,_t:h,ht:p}=e,{Y:g}=Yo(),[v]=Ka({u:nQ,o:{w:0,h:0}},()=>{const F=h(Ym,Xm),j=h(iL,""),V=j&&il(l),G=j&&fu(l);p(Ym,Xm),p(iL,""),p("",NE,!0);const K=DE(c),Y=DE(l),J=LE(l);return p(Ym,Xm,F),p(iL,"",j),p("",NE),il(l,V),fu(l,G),{w:Y.w+K.w+J.w,h:Y.h+K.h+J.h}}),y=d?eH:lL.concat(eH),S=Z4(n,{g:()=>r,v:()=>i,p(F,j){const[V]=F,[G]=j;return[$s(V).concat($s(G)).reduce((K,Y)=>(K[Y]=V[Y]||G[Y],K),{})]}}),_=F=>{Sn(F||aL,j=>{if(sk(aL,j)>-1){const V=_o(s,j);Vd(V)?_o(l,j,V):Po(l,j)}})},b=(F,j)=>{const[V,G]=F,K={vt:G};return t({gt:V}),!j&&n(K),K},x=({wt:F,jt:j,Pt:V})=>{const G=!F||V?n:S;let K=!1;if(j){const[Y,J]=j;K=J,t({yt:Y})}G({wt:F,Pt:V,St:K})},E=(F,j)=>{const[,V]=v(),G={bt:V};return V&&!j&&(F?n:S)(G),G},A=(F,j,V)=>{const G={Tt:j};return j?!V&&S(G):f||_(F),G},[I,k,O]=c||!g?twe(s,b):[ws,ws,ws],[L,N]=f?[ws,ws]:xQ(s,x,{Pt:!0,Yt:!0}),[H,W]=J8(s,!1,A,{Dt:lL,Mt:lL.concat(aL)});let z;const D=f&&Om&&new Om(F=>{const j=F[F.length-1].contentRect,V=Mm(j),K=!Mm(z)&&V;x({wt:!0,Pt:K}),z=j});return[()=>{I(),L(),o&&o[0](),D&&D.disconnect(),H()},()=>{D&&D.observe(s),_(),N(),k()},()=>{const F={},j=W(),V=O(),G=o&&o[1]();return j&&Tr(F,A.apply(0,Fn(j,!0))),V&&Tr(F,b.apply(0,Fn(V,!0))),G&&Tr(F,E.apply(0,Fn(G,!0))),F},F=>{const[j]=F("update.ignoreMutation"),[V,G]=F("update.attributes"),[K,Y]=F("update.elementEvents"),[J,ie]=F("update.debounce"),ce=Y||G,ue=se=>dl(j)&&j(se);if(ce&&(o&&(o[1](),o[0]()),o=J8(c||l,!0,E,{Mt:y.concat(V||[]),Rt:K,kt:Z8,Vt:(se,Q)=>{const{target:ae,attributeName:le}=se;return(!Q&&le&&!f?n1e(ae,Z8,nwe):!1)||!!Pm(ae,`.${Xo}`)||!!ue(se)}})),ie)if(S.m(),Bs(J)){const se=J[0],Q=J[1];r=wd(se)&&se,i=wd(Q)&&Q}else wd(J)?(r=J,i=!1):(r=!1,i=!1)}]},tH={x:0,y:0},iwe=e=>({tt:{t:0,r:0,b:0,l:0},$t:!1,P:{marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},zt:tH,Et:tH,Ot:{x:"hidden",y:"hidden"},At:{x:!1,y:!1},gt:!1,yt:Sg(e.J)}),owe=(e,t)=>{const n=gF(t,{}),[r,i,o]=tz(),[s,l,c]=G1e(e),d=yQ(iwe(s)),[f,h]=d,p=J1e(s,d),g=(x,E,A)=>{const k=$s(x).some(O=>!!x[O])||!Y4(E)||A;return k&&o("u",[x,E,A]),k},[v,y,S,_]=rwe(s,h,x=>g(p(n,x),{},!1)),b=f.bind(0);return b.Nt=x=>r("u",x),b.qt=()=>{const{Z:x,K:E,rt:A,it:I}=s,k=I?A.documentElement:x,O=il(k),L=fu(k);y(),l(),il(E,O),fu(E,L)},b.Ft=s,[(x,E)=>{const A=gF(t,x,E);return _(A),g(p(A,S(),E),x,!!E)},b,()=>{i(),v(),c()}]},{round:nH}=Math,swe=e=>{const{width:t,height:n}=Ol(e),{w:r,h:i}=Yx(e);return{x:nH(t)/r||1,y:nH(n)/i||1}},awe=(e,t,n)=>{const r=t.scrollbars,{button:i,isPrimary:o,pointerType:s}=e,{pointers:l}=r;return i===0&&o&&r[n?"dragScroll":"clickScroll"]&&(l||[]).includes(s)},rH="pointerup pointerleave pointercancel lostpointercapture",lwe=(e,t)=>qr(e,"mousedown",qr.bind(0,t,"click",oQ,{C:!0,$:!0}),{$:!0}),cwe=(e,t,n,r,i,o,s)=>{const{V:l}=Yo(),{Gt:c,Xt:d,Ut:f}=r,h=`scroll${s?"Left":"Top"}`,p=`client${s?"X":"Y"}`,g=s?"width":"height",v=s?"left":"top",y=s?"w":"h",S=s?"x":"y",_=(b,x)=>E=>{const{Et:A}=o(),I=Yx(d)[y]-Yx(c)[y],O=x*E/I*A[S],N=Sg(f)&&s?l.n||l.i?1:-1:1;i[h]=b+O*N};return qr(d,"pointerdown",b=>{const x=Pm(b.target,`.${rz}`)===c,E=x?c:d;if(Kh(t,Qa,j8,!0),awe(b,e,x)){const A=!x&&b.shiftKey,I=()=>Ol(c),k=()=>Ol(d),O=(K,Y)=>(K||I())[v]-(Y||k())[v],L=_(i[h]||0,1/swe(i)[S]),N=b[p],H=I(),W=k(),z=H[g],D=O(H,W)+z/2,F=N-W[v],j=x?0:F-D,V=K=>{Jl(G),E.releasePointerCapture(K.pointerId)},G=[Kh.bind(0,t,Qa,j8),qr(n,rH,V),qr(n,"selectstart",K=>sQ(K),{S:!1}),qr(d,rH,V),qr(d,"pointermove",K=>{const Y=K[p]-N;(x||A)&&L(j+Y)})];if(A)L(j);else if(!x){const K=mp()[N1e];K&&Fn(G,K.O(L,O,j,z,F))}E.setPointerCapture(b.pointerId)}})},uwe=(e,t)=>(n,r,i,o,s,l,c)=>{const{Ut:d}=n,[f,h]=Ah(333),p=!!s.scrollBy;let g=!0;return Jl.bind(0,[qr(d,"pointerenter",()=>{r(W8,!0)}),qr(d,"pointerleave pointercancel",()=>{r(W8)}),qr(d,"wheel",v=>{const{deltaX:y,deltaY:S,deltaMode:_}=v;p&&g&&_===0&&xu(d)===o&&s.scrollBy({left:y,top:S,behavior:"smooth"}),g=!1,r(q8,!0),f(()=>{g=!0,r(q8)}),sQ(v)},{S:!1,$:!0}),lwe(d,i),cwe(e,o,i,n,s,t,c),h])},{min:BE,max:yF,round:dwe}=Math,wQ=(e,t,n,r)=>{if(r){const l=n?"x":"y",{Et:c,zt:d}=r,f=d[l],h=c[l];return yF(0,BE(1,f/(f+h)))}const i=n?"width":"height",o=Ol(e)[i],s=Ol(t)[i];return yF(0,BE(1,o/s))},fwe=(e,t,n,r,i,o)=>{const{V:s}=Yo(),l=o?"x":"y",c=o?"Left":"Top",{Et:d}=r,f=dwe(d[l]),h=BE(f,yF(0,n[`scroll${c}`])),p=o&&i,g=s.i?h:f-h,y=BE(1,(p?g:h)/f),S=wQ(e,t,o);return 1/S*(1-S)*y},_Q=(e,t,n,r)=>t&&e.animate(n,{timeline:t,composite:r}),hwe=(e,t)=>({transform:[Eg("0%",t),Eg(t&&e?"100%":"-100%",t)],[t?e?"right":"left":"top"]:["0%","100%"]}),pwe=e=>`${Math.max(0,e-.5)}px`,iH=(e,t,n,r)=>_Q(e,t,{transform:[Eg("0px",r),Eg(pwe(n),r)]},"add"),oH=(e,t)=>fF?new fF({source:e,axis:t}):null,mwe=(e,t,n)=>{const{q:r,H:i}=Yo(),{scrollbars:o}=r(),{slot:s}=o,{rt:l,Z:c,J:d,K:f,ut:h,st:p,it:g,ft:v}=t,{scrollbars:y}=h?{}:e,{slot:S}=y||{},_=new Map,b=oH(p,"x"),x=oH(p,"y"),E=gQ([c,d,f],()=>v&&g?c:d,s,S),A=se=>v&&!g&&xu(se)===f,I=se=>{_.forEach((Q,ae)=>{(se?sk(Bs(se)?se:[se],ae)>-1:!0)&&((Q||[]).forEach(he=>{he&&he.cancel()}),_.delete(ae))})},k=(se,Q,ae)=>{const le=ae?Pd:J4;Sn(se,he=>{le(he.Ut,Q)})},O=(se,Q)=>{Sn(se,ae=>{const[le,he]=Q(ae);Qi(le,he)})},L=(se,Q,ae)=>{O(se,le=>{const{Gt:he,Xt:pe}=le;return[he,{[ae?"width":"height"]:`${(wQ(he,pe,ae,Q)*100).toFixed(3)}%`}]})},N=(se,Q,ae)=>{!x&&!x&&O(se,le=>{const{Gt:he,Xt:pe,Ut:ve}=le,ye=fwe(he,pe,p,Q,Sg(ve),ae);return[he,{transform:ye===ye?Eg(`${(ye*100).toFixed(3)}%`,ae):""}]})},H=se=>{const{Ut:Q}=se,ae=A(Q)&&Q;return[ae,{transform:ae?Eg([`${il(p)}px`,`${fu(p)}px`]):""}]},W=[],z=[],D=[],F=(se,Q,ae)=>{const le=q4(ae),he=le?ae:!0,pe=le?!ae:!0;he&&k(z,se,Q),pe&&k(D,se,Q)},j=se=>{L(z,se,!0),L(D,se)},V=se=>{N(z,se,!0),N(D,se)},G=()=>{const se=(Q,{Ut:ae,Gt:le})=>{I(le),_.set(le,[_Q(le,Q?b:x,hwe(Q&&Sg(ae),Q))])};z.forEach(se.bind(0,!0)),D.forEach(se.bind(0,!1))},K=()=>{!x&&!x&&(v&&O(z,H),v&&O(D,H))},Y=({Et:se})=>{D.concat(z).forEach(({Ut:Q})=>{I(Q),A(Q)&&_.set(Q,[iH(Q,b,se.x,!0),iH(Q,x,se.y)])})},J=se=>{const Q=se?k1e:A1e,ae=se?z:D,le=X4(ae)?H8:"",he=Qh(`${Xo} ${Q} ${le}`),pe=Qh(pQ),ve=Qh(rz),ye={Ut:he,Xt:pe,Gt:ve};return i||Pd(he,E1e),ta(he,pe),ta(pe,ve),Fn(ae,ye),Fn(W,[ql.bind(0,he),I,n(ye,F,l,d,p,se?b:x,se)]),ye},ie=J.bind(0,!0),ce=J.bind(0,!1),ue=()=>{ta(E,z[0].Ut),ta(E,D[0].Ut),ME(()=>{F(H8)},300)};return ie(),ce(),[{Wt:j,Zt:V,Jt:G,Kt:Y,Qt:K,tn:F,nn:{B:b,sn:z,en:ie,cn:O.bind(0,z)},rn:{B:x,sn:D,en:ce,cn:O.bind(0,D)}},ue,Jl.bind(0,W)]},cL=e=>e.pointerType==="mouse",gwe=(e,t,n,r)=>{let i,o,s,l,c,d=ws,f=0;const h=yQ({}),[p]=h,[g,v]=Ah(),[y,S]=Ah(),[_,b]=Ah(100),[x,E]=Ah(100),[A,I]=Ah(100),[k,O]=Ah(()=>f),[L,N,H]=mwe(e,n.Ft,uwe(t,n)),{J:W,et:z,it:D}=n.Ft,{tn:F,Wt:j,Zt:V,Jt:G,Kt:K,Qt:Y}=L,J=Q=>{F(mF,Q,!0),F(mF,Q,!1)},ie=(Q,ae)=>{if(O(),Q)F(V8);else{const le=()=>F(V8,!0);f>0&&!ae?k(le):le()}},ce=Q=>{cL(Q)&&(l=o,l&&ie(!0))},ue=[b,O,E,I,S,v,H,qr(W,"pointerover",ce,{C:!0}),qr(W,"pointerenter",ce),qr(W,"pointerleave",Q=>{cL(Q)&&(l=!1,o&&ie(!1))}),qr(W,"pointermove",Q=>{cL(Q)&&i&&g(()=>{b(),ie(!0),x(()=>{i&&ie(!1)})})}),qr(z,"scroll",Q=>{y(()=>{V(n()),s&&ie(!0),_(()=>{s&&!l&&ie(!1)})}),r(Q),Y()})],se=p.bind(0);return se.Ft=L,se.qt=N,[(Q,ae,le)=>{const{Ht:he,Lt:pe,It:ve,St:ye,Pt:xe}=le,{I:me}=Yo(),be=gF(t,Q,ae),Qe=n(),{Et:qe,Ot:at,yt:Lt,At:Re}=Qe,[Fe,it]=be("showNativeOverlaidScrollbars"),[pt,mt]=be("scrollbars.theme"),[_e,ze]=be("scrollbars.visibility"),[Ye,$e]=be("scrollbars.autoHide"),[Ne,It]=be("scrollbars.autoHideSuspend"),[ct]=be("scrollbars.autoHideDelay"),[Ae,ot]=be("scrollbars.dragScroll"),[$t,Ie]=be("scrollbars.clickScroll"),Ue=xe&&!ae,yt=Re.x||Re.y,Wt=he||pe||ye,pn=ve||ze,$r=Fe&&me.x&&me.y,Or=(Mr,Fr)=>{const Jr=_e==="visible"||_e==="auto"&&Mr==="scroll";return F(I1e,Jr,Fr),Jr};if(f=ct,Ue&&(Ne&&yt?(J(!1),d(),A(()=>{d=qr(z,"scroll",J.bind(0,!0),{C:!0})})):J(!0)),it&&F(C1e,$r),mt&&(F(c),F(pt,!0),c=pt),It&&!Ne&&J(!0),$e&&(i=Ye==="move",o=Ye==="leave",s=Ye!=="never",ie(!s,!0)),ot&&F(O1e,Ae),Ie&&F(P1e,$t),pn){const Mr=Or(at.x,!0),Fr=Or(at.y,!1);F(R1e,!(Mr&&Fr))}Wt&&(j(Qe),V(Qe),G(Qe),K(Qe),Y(),F(G8,!qe.x,!0),F(G8,!qe.y,!1),F(T1e,Lt&&!D))},se,()=>{Jl(ue),d()}]},SQ=(e,t,n)=>{dl(e)&&e(t||void 0,n||void 0)},sd=(e,t,n)=>{const{G:r,q:i,j:o,N:s}=Yo(),l=mp(),c=lx(e),d=c?e:e.target,f=vQ(d);if(t&&!f){let h=!1;const p=z=>{const D=mp()[D1e],F=D&&D.O;return F?F(z,!0):z},g=Tr({},r(),p(t)),[v,y,S]=tz(n),[_,b,x]=owe(e,g),[E,A,I]=gwe(e,g,b,z=>S("scroll",[W,z])),k=(z,D)=>_(z,!!D),O=k.bind(0,{},!0),L=o(O),N=s(O),H=z=>{W1e(d),L(),N(),I(),x(),h=!0,S("destroyed",[W,!!z]),y()},W={options(z,D){if(z){const F=D?r():{},j=aQ(g,Tr(F,p(z)));Y4(j)||(Tr(g,j),k(j))}return Tr({},g)},on:v,off:(z,D)=>{z&&D&&y(z,D)},state(){const{zt:z,Et:D,Ot:F,At:j,tt:V,$t:G,yt:K}=b();return Tr({},{overflowEdge:z,overflowAmount:D,overflowStyle:F,hasOverflow:j,padding:V,paddingAbsolute:G,directionRTL:K,destroyed:h})},elements(){const{Z:z,J:D,tt:F,K:j,nt:V,st:G,et:K}=b.Ft,{nn:Y,rn:J}=A.Ft,ie=ue=>{const{Gt:se,Xt:Q,Ut:ae}=ue;return{scrollbar:ae,track:Q,handle:se}},ce=ue=>{const{sn:se,en:Q}=ue,ae=ie(se[0]);return Tr({},ae,{clone:()=>{const le=ie(Q());return E({},!0,{}),le}})};return Tr({},{target:z,host:D,padding:F||j,viewport:j,content:V||j,scrollOffsetElement:G,scrollEventElement:K,scrollbarHorizontal:ce(Y),scrollbarVertical:ce(J)})},update:z=>k({},z),destroy:H.bind(0)};return b.Nt((z,D,F)=>{E(D,F,z)}),H1e(d,W),Sn($s(l),z=>SQ(l[z],0,W)),U1e(b.Ft.it,i().cancel,!c&&e.cancel)?(H(!0),W):(b.qt(),A.qt(),S("initialized",[W]),b.Nt((z,D,F)=>{const{wt:j,St:V,vt:G,Ht:K,Lt:Y,It:J,bt:ie,Tt:ce}=z;S("updated",[W,{updateHints:{sizeChanged:j,directionChanged:V,heightIntrinsicChanged:G,overflowEdgeChanged:K,overflowAmountChanged:Y,overflowStyleChanged:J,contentMutation:ie,hostMutation:ce},changedOptions:D,force:F}])}),W.update(!0),W)}return f};sd.plugin=e=>{Sn(M1e(e),t=>SQ(t,sd))};sd.valid=e=>{const t=e&&e.elements,n=dl(t)&&t();return cF(n)&&!!vQ(n.target)};sd.env=()=>{const{k:e,I:t,A:n,V:r,Y:i,H:o,B:s,U:l,W:c,q:d,F:f,G:h,X:p}=Yo();return Tr({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:n,rtlScrollBehavior:r,flexboxGlue:i,cssCustomProperties:o,scrollTimeline:s,staticDefaultInitialization:l,staticDefaultOptions:c,getDefaultInitialization:d,setDefaultInitialization:f,getDefaultOptions:h,setDefaultOptions:p})};const vwe=()=>{if(typeof window>"u"){const d=()=>{};return[d,d]}let e,t;const n=window,r=typeof n.requestIdleCallback=="function",i=n.requestAnimationFrame,o=n.cancelAnimationFrame,s=r?n.requestIdleCallback:i,l=r?n.cancelIdleCallback:o,c=()=>{l(e),o(t)};return[(d,f)=>{c(),e=s(r?()=>{c(),t=i(d)}:d,typeof f=="object"?f:{timeout:2233})},c]},EQ=e=>{const{options:t,events:n,defer:r}=e||{},[i,o]=R.useMemo(vwe,[]),s=R.useRef(null),l=R.useRef(r),c=R.useRef(t),d=R.useRef(n);return R.useEffect(()=>{l.current=r},[r]),R.useEffect(()=>{const{current:f}=s;c.current=t,sd.valid(f)&&f.options(t||{},!0)},[t]),R.useEffect(()=>{const{current:f}=s;d.current=n,sd.valid(f)&&f.on(n||{},!0)},[n]),R.useEffect(()=>()=>{var f;o(),(f=s.current)==null||f.destroy()},[]),R.useMemo(()=>[f=>{const h=s.current;if(sd.valid(h))return;const p=l.current,g=c.current||{},v=d.current||{},y=()=>s.current=sd(f,g,v);p?i(y,p):y()},()=>s.current],[])},ywe=(e,t)=>{const{element:n="div",options:r,events:i,defer:o,children:s,...l}=e,c=n,d=R.useRef(null),f=R.useRef(null),[h,p]=R.useState(!1),[g,v]=EQ({options:r,events:i,defer:o});return R.useEffect(()=>{p(!0)},[]),R.useEffect(()=>{const{current:y}=d,{current:S}=f;return h&&y&&S&&g({target:y,elements:{viewport:S,content:S}}),()=>{var _;return(_=v())==null?void 0:_.destroy()}},[h,g,n]),R.useImperativeHandle(t,()=>({osInstance:v,getElement:()=>d.current}),[]),de.createElement(c,{"data-overlayscrollbars-initialize":"",ref:d,...l},h?de.createElement("div",{ref:f,"data-overlayscrollbars-contents":!0},s):s)},bwe=R.forwardRef(ywe),q1=R.forwardRef(({children:e,x:t,y:n,px:r=6,...i},o)=>{const{palette:s,spacing:l}=Rn(),c=qx({"div.os-scrollbar-vertical > div.os-scrollbar-track":{height:`calc(100% - ${l(r)})`,marginTop:l(r)}}),d=R.useCallback(f=>{if(o&&f){const h=f.elements().viewport;h&&(typeof o=="function"?o(h):o.current=h)}},[o]);return C.jsx(bwe,{options:{overflow:{x:t?"scroll":"hidden",y:n?"scroll":"hidden"},scrollbars:{autoHide:"move",theme:s.mode==="dark"?"os-theme-light":"os-theme-dark"}},...i,className:`${c} ${i.className}`,events:{initialized:d},children:e})});var CQ={exports:{}},Qn={};/** @license React v17.0.2 + */function En(e,t){if(sk(e))for(let n=0;nt(e[n],n,e));return e}function Qi(e,t){const n=Xd(t);if(Bs(t)||n){let i=n?"":{};if(e){const o=window.getComputedStyle(e,null);i=n?z8(e,o,t):t.reduce((s,l)=>(s[l]=z8(e,o,l),s),i)}return i}e&&En($s(t),i=>g1e(e,i,t[i]))}const Qa=(e,t)=>{const{o:n,u:r,_:i}=e;let o=n,s;const l=(f,h)=>{const p=o,g=f,v=h||(r?!r(p,g):p!==g);return(v||i)&&(o=g,s=p),[o,v,s]};return[t?f=>l(t(o,s),f):l,f=>[o,!!f,s]]},X1=()=>typeof window<"u",ZK=X1()&&Node.ELEMENT_NODE,{toString:t1e,hasOwnProperty:tL}=Object.prototype,Pu=e=>e===void 0,ok=e=>e===null,n1e=e=>Pu(e)||ok(e)?`${e}`:t1e.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),Sd=e=>typeof e=="number",Xd=e=>typeof e=="string",K4=e=>typeof e=="boolean",hl=e=>typeof e=="function",Bs=e=>Array.isArray(e),Qx=e=>typeof e=="object"&&!Bs(e)&&!ok(e),sk=e=>{const t=!!e&&e.length,n=Sd(t)&&t>-1&&t%1==0;return Bs(e)||!hl(e)&&n?t>0&&Qx(e)?t-1 in e:!0:!1},dF=e=>{if(!e||!Qx(e)||n1e(e)!=="object")return!1;let t;const n="constructor",r=e[n],i=r&&r.prototype,o=tL.call(e,n),s=i&&tL.call(i,"isPrototypeOf");if(r&&!o&&!s)return!1;for(t in e);return Pu(t)||tL.call(e,t)},dx=e=>{const t=HTMLElement;return e?t?e instanceof t:e.nodeType===ZK:!1},ak=e=>{const t=Element;return e?t?e instanceof t:e.nodeType===ZK:!1},lk=(e,t,n)=>e.indexOf(t,n),Fn=(e,t,n)=>(!n&&!Xd(t)&&sk(t)?Array.prototype.push.apply(e,t):e.push(t),e),gp=e=>{const t=Array.from,n=[];return t&&e?t(e):(e instanceof Set?e.forEach(r=>{Fn(n,r)}):En(e,r=>{Fn(n,r)}),n)},Q4=e=>!!e&&e.length===0,Zl=(e,t,n)=>{En(e,i=>i&&i.apply(void 0,t||[])),!n&&(e.length=0)},ck=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),$s=e=>e?Object.keys(e):[],Tr=(e,t,n,r,i,o,s)=>{const l=[t,n,r,i,o,s];return(typeof e!="object"||ok(e))&&!hl(e)&&(e={}),En(l,c=>{En($s(c),d=>{const f=c[d];if(e===f)return!0;const h=Bs(f);if(f&&dF(f)){const p=e[d];let g=p;h&&!Bs(p)?g=[]:!h&&!dF(p)&&(g={}),e[d]=Tr(g,f)}else e[d]=h?f.slice():f})}),e},J4=e=>{for(const t in e)return!1;return!0},eQ=(e,t,n,r)=>{if(Pu(r))return n?n[e]:t;n&&(Xd(r)||Sd(r))&&(n[e]=r)},_o=(e,t,n)=>{if(Pu(n))return e?e.getAttribute(t):null;e&&e.setAttribute(t,n)},tQ=(e,t)=>new Set((_o(e,t)||"").split(" ")),Po=(e,t)=>{e&&e.removeAttribute(t)},Qh=(e,t,n,r)=>{if(n){const i=tQ(e,t);i[r?"add":"delete"](n);const o=gp(i).join(" ").trim();_o(e,t,o)}},r1e=(e,t,n)=>tQ(e,t).has(n),sl=(e,t)=>eQ("scrollLeft",0,e,t),pu=(e,t)=>eQ("scrollTop",0,e,t),fF=X1()&&Element.prototype,nQ=(e,t)=>{const n=[],r=t?ak(t)&&t:document;return r?Fn(n,r.querySelectorAll(e)):n},i1e=(e,t)=>{const n=t?ak(t)&&t:document;return n?n.querySelector(e):null},DE=(e,t)=>ak(e)?(fF.matches||fF.msMatchesSelector).call(e,t):!1,Z4=e=>e?gp(e.childNodes):[],_u=e=>e&&e.parentElement,Mm=(e,t)=>{if(ak(e)){const n=fF.closest;if(n)return n.call(e,t);do{if(DE(e,t))return e;e=_u(e)}while(e)}},o1e=(e,t,n)=>{const r=Mm(e,t),i=e&&i1e(n,r),o=Mm(i,t)===r;return r&&i?r===e||i===e||o&&Mm(Mm(e,n),t)!==r:!1},ez=(e,t,n)=>{if(n&&e){let r=t,i;sk(n)?(i=document.createDocumentFragment(),En(n,o=>{o===r&&(r=o.previousSibling),i.appendChild(o)})):i=n,t&&(r?r!==t&&(r=r.nextSibling):r=e.firstChild),e.insertBefore(i,r||null)}},na=(e,t)=>{ez(e,null,t)},s1e=(e,t)=>{ez(_u(e),e,t)},B8=(e,t)=>{ez(_u(e),e&&e.nextSibling,t)},Xl=e=>{if(sk(e))En(gp(e),t=>Xl(t));else if(e){const t=_u(e);t&&t.removeChild(e)}},Jh=e=>{const t=document.createElement("div");return e&&_o(t,"class",e),t},rQ=e=>{const t=Jh();return t.innerHTML=e.trim(),En(Z4(t),n=>Xl(n))},hF=e=>e.charAt(0).toUpperCase()+e.slice(1),a1e=()=>Jh().style,l1e=["-webkit-","-moz-","-o-","-ms-"],c1e=["WebKit","Moz","O","MS","webkit","moz","o","ms"],nL={},rL={},u1e=e=>{let t=rL[e];if(ck(rL,e))return t;const n=hF(e),r=a1e();return En(l1e,i=>{const o=i.replace(/-/g,"");return!(t=[e,i+e,o+n,hF(o)+n].find(l=>r[l]!==void 0))}),rL[e]=t||""},Jg=e=>{if(X1()){let t=nL[e]||window[e];return ck(nL,e)||(En(c1e,n=>(t=t||window[n+hF(e)],!t)),nL[e]=t),t}},d1e=Jg("MutationObserver"),$8=Jg("IntersectionObserver"),Dm=Jg("ResizeObserver"),iQ=Jg("cancelAnimationFrame"),oQ=Jg("requestAnimationFrame"),pF=Jg("ScrollTimeline"),LE=X1()&&window.setTimeout,mF=X1()&&window.clearTimeout,f1e=/[^\x20\t\r\n\f]+/g,sQ=(e,t,n)=>{const r=e&&e.classList;let i,o=0,s=!1;if(r&&t&&Xd(t)){const l=t.match(f1e)||[];for(s=l.length>0;i=l[o++];)s=!!n(r,i)&&s}return s},tz=(e,t)=>{sQ(e,t,(n,r)=>n.remove(r))},Md=(e,t)=>(sQ(e,t,(n,r)=>n.add(r)),tz.bind(0,e,t)),uk=(e,t,n,r)=>{if(e&&t){let i=!0;return En(n,o=>{const s=r?r(e[o]):e[o],l=r?r(t[o]):t[o];s!==l&&(i=!1)}),i}return!1},aQ=(e,t)=>uk(e,t,["w","h"]),lQ=(e,t)=>uk(e,t,["x","y"]),h1e=(e,t)=>uk(e,t,["t","r","b","l"]),F8=(e,t,n)=>uk(e,t,["width","height"],n&&(r=>Math.round(r))),ws=()=>{},Rh=e=>{let t;const n=e?LE:oQ,r=e?mF:iQ;return[i=>{r(t),t=n(i,hl(e)?e():e)},()=>r(t)]},nz=(e,t)=>{let n,r,i,o=ws;const{g:s,v:l,p:c}=t||{},d=function(v){o(),mF(n),n=r=void 0,o=ws,e.apply(this,v)},f=g=>c&&r?c(r,g):g,h=()=>{o!==ws&&d(f(i)||i)},p=function(){const v=gp(arguments),y=hl(s)?s():s;if(Sd(y)&&y>=0){const _=hl(l)?l():l,b=Sd(_)&&_>=0,x=y>0?LE:oQ,E=y>0?mF:iQ,R=f(v)||v,k=d.bind(0,R);o();const O=x(k,y);o=()=>E(O),b&&!n&&(n=LE(h,_)),r=i=R}else d(v)};return p.m=h,p},p1e={opacity:1,zIndex:1},Zw=(e,t)=>{const n=e||"",r=t?parseFloat(n):parseInt(n,10);return r===r?r:0},m1e=(e,t)=>!p1e[e]&&Sd(t)?`${t}px`:t,z8=(e,t,n)=>String((t!=null?t[n]||t.getPropertyValue(n):e.style[n])||""),g1e=(e,t,n)=>{try{const{style:r}=e;Pu(r[t])?r.setProperty(t,n):r[t]=m1e(t,n)}catch{}},Eg=e=>Qi(e,"direction")==="rtl",j8=(e,t,n)=>{const r=t?`${t}-`:"",i=n?`-${n}`:"",o=`${r}top${i}`,s=`${r}right${i}`,l=`${r}bottom${i}`,c=`${r}left${i}`,d=Qi(e,[o,s,l,c]);return{t:Zw(d[o],!0),r:Zw(d[s],!0),b:Zw(d[l],!0),l:Zw(d[c],!0)}},Cg=(e,t)=>`translate${Bs(e)?`(${e[0]},${e[1]})`:`${t?"X":"Y"}(${e})`}`,{round:U8}=Math,rz={w:0,h:0},Jx=e=>e?{w:e.offsetWidth,h:e.offsetHeight}:rz,TS=e=>e?{w:e.clientWidth,h:e.clientHeight}:rz,NE=e=>e?{w:e.scrollWidth,h:e.scrollHeight}:rz,BE=e=>{const t=parseFloat(Qi(e,"height"))||0,n=parseFloat(Qi(e,"width"))||0;return{w:n-U8(n),h:t-U8(t)}},Dl=e=>e.getBoundingClientRect(),Lm=e=>!!(e&&(e.height||e.width));let e_;const v1e=()=>{if(Pu(e_)){e_=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get(){e_=!0}}))}catch{}}return e_},cQ=e=>e.split(" "),y1e=(e,t,n,r)=>{En(cQ(t),i=>{e.removeEventListener(i,n,r)})},qr=(e,t,n,r)=>{var i;const o=v1e(),s=(i=o&&r&&r.S)!=null?i:o,l=r&&r.$||!1,c=r&&r.C||!1,d=[],f=o?{passive:s,capture:l}:l;return En(cQ(t),h=>{const p=c?g=>{e.removeEventListener(h,p,l),n&&n(g)}:n;Fn(d,y1e.bind(null,e,h,p,l)),e.addEventListener(h,p,f)}),Zl.bind(0,d)},uQ=e=>e.stopPropagation(),dQ=e=>e.preventDefault(),b1e={x:0,y:0},iL=e=>{const t=e?Dl(e):0;return t?{x:t.left+window.pageYOffset,y:t.top+window.pageXOffset}:b1e},H8=(e,t)=>{En(Bs(t)?t:[t],e)},iz=e=>{const t=new Map,n=(o,s)=>{if(o){const l=t.get(o);H8(c=>{l&&l[c?"delete":"clear"](c)},s)}else t.forEach(l=>{l.clear()}),t.clear()},r=(o,s)=>{if(Xd(o)){const d=t.get(o)||new Set;return t.set(o,d),H8(f=>{hl(f)&&d.add(f)},s),n.bind(0,o,s)}K4(s)&&s&&n();const l=$s(o),c=[];return En(l,d=>{const f=o[d];f&&Fn(c,r(d,f))}),Zl.bind(0,c)},i=(o,s)=>{const l=t.get(o);En(gp(l),c=>{s&&!Q4(s)?c.apply(0,s):c()})};return r(e||{}),[r,n,i]},W8=e=>JSON.stringify(e,(t,n)=>{if(hl(n))throw new Error;return n}),x1e={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},fQ=(e,t)=>{const n={},r=$s(t).concat($s(e));return En(r,i=>{const o=e[i],s=t[i];if(Qx(o)&&Qx(s))Tr(n[i]={},fQ(o,s)),J4(n[i])&&delete n[i];else if(ck(t,i)&&s!==o){let l=!0;if(Bs(o)||Bs(s))try{W8(o)===W8(s)&&(l=!1)}catch{}l&&(n[i]=s)}}),n},Y1="data-overlayscrollbars",hQ="os-environment",pQ=`${hQ}-flexbox-glue`,w1e=`${pQ}-max`,mQ="os-scrollbar-hidden",oL=`${Y1}-initialize`,Ja=Y1,gQ=`${Ja}-overflow-x`,vQ=`${Ja}-overflow-y`,Km="overflowVisible",_1e="scrollbarHidden",G8="scrollbarPressed",$E="updating",Yu=`${Y1}-viewport`,sL="arrange",yQ="scrollbarHidden",Qm=Km,gF=`${Y1}-padding`,S1e=Qm,V8=`${Y1}-content`,oz="os-size-observer",E1e=`${oz}-appear`,C1e=`${oz}-listener`,T1e="os-trinsic-observer",k1e="os-no-css-vars",A1e="os-theme-none",Xo="os-scrollbar",R1e=`${Xo}-rtl`,I1e=`${Xo}-horizontal`,P1e=`${Xo}-vertical`,bQ=`${Xo}-track`,sz=`${Xo}-handle`,O1e=`${Xo}-visible`,M1e=`${Xo}-cornerless`,q8=`${Xo}-transitionless`,X8=`${Xo}-interaction`,Y8=`${Xo}-unusable`,vF=`${Xo}-auto-hide`,K8=`${vF}-hidden`,Q8=`${Xo}-wheel`,D1e=`${bQ}-interactive`,L1e=`${sz}-interactive`,xQ={},vp=()=>xQ,N1e=e=>{const t=[];return En(Bs(e)?e:[e],n=>{const r=$s(n);En(r,i=>{Fn(t,xQ[i]=n[i])})}),t},B1e="__osOptionsValidationPlugin",$1e="__osSizeObserverPlugin",az="__osScrollbarsHidingPlugin",F1e="__osClickScrollPlugin";let aL;const J8=(e,t,n,r)=>{na(e,t);const i=TS(t),o=Jx(t),s=BE(n);return r&&Xl(t),{x:o.h-i.h+s.h,y:o.w-i.w+s.w}},z1e=e=>{let t=!1;const n=Md(e,mQ);try{t=Qi(e,u1e("scrollbar-width"))==="none"||window.getComputedStyle(e,"::-webkit-scrollbar").getPropertyValue("display")==="none"}catch{}return n(),t},j1e=(e,t)=>{const n="hidden";Qi(e,{overflowX:n,overflowY:n,direction:"rtl"}),sl(e,0);const r=iL(e),i=iL(t);sl(e,-999);const o=iL(t);return{i:r.x===i.x,n:i.x!==o.x}},U1e=(e,t)=>{const n=Md(e,pQ),r=Dl(e),i=Dl(t),o=F8(i,r,!0),s=Md(e,w1e),l=Dl(e),c=Dl(t),d=F8(c,l,!0);return n(),s(),o&&d},H1e=()=>{const{body:e}=document,n=rQ(`
`)[0],r=n.firstChild,[i,,o]=iz(),[s,l]=Qa({o:J8(e,n,r),u:lQ},J8.bind(0,e,n,r,!0)),[c]=l(),d=z1e(n),f={x:c.x===0,y:c.y===0},h={elements:{host:null,padding:!d,viewport:b=>d&&b===b.ownerDocument.body&&b,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=Tr({},x1e),g=Tr.bind(0,{},p),v=Tr.bind(0,{},h),y={k:c,I:f,A:d,H:Qi(n,"zIndex")==="-1",B:!!pF,V:j1e(n,r),Y:U1e(n,r),j:i.bind(0,"z"),N:i.bind(0,"r"),q:v,F:b=>Tr(h,b)&&v(),G:g,X:b=>Tr(p,b)&&g(),U:Tr({},h),W:Tr({},p)},S=window.addEventListener,_=nz(b=>o(b?"z":"r"),{g:33,v:99});if(Po(n,"style"),Xl(n),S("resize",_.bind(0,!1)),!d&&(!f.x||!f.y)){let b;S("resize",()=>{const x=vp()[az];b=b||x&&x.R(),b&&b(y,s,_.bind(0,!0))})}return y},Yo=()=>(aL||(aL=H1e()),aL),lz=(e,t)=>hl(t)?t.apply(0,e):t,W1e=(e,t,n,r)=>{const i=Pu(r)?n:r;return lz(e,i)||t.apply(0,e)},wQ=(e,t,n,r)=>{const i=Pu(r)?n:r,o=lz(e,i);return!!o&&(dx(o)?o:t.apply(0,e))},G1e=(e,t,n)=>{const{nativeScrollbarsOverlaid:r,body:i}=n||{},{I:o,A:s}=Yo(),{nativeScrollbarsOverlaid:l,body:c}=t,d=r??l,f=Pu(i)?c:i,h=(o.x||o.y)&&d,p=e&&(ok(f)?!s:f);return!!h||!!p},cz=new WeakMap,V1e=(e,t)=>{cz.set(e,t)},q1e=e=>{cz.delete(e)},_Q=e=>cz.get(e),Z8=(e,t)=>e?t.split(".").reduce((n,r)=>n&&ck(n,r)?n[r]:void 0,e):void 0,yF=(e,t,n)=>r=>[Z8(e,r),n||Z8(t,r)!==void 0],SQ=e=>{let t=e;return[()=>t,n=>{t=Tr({},t,n)}]},t_="tabindex",n_=Jh.bind(0,""),lL=e=>{na(_u(e),Z4(e)),Xl(e)},X1e=e=>{const t=Yo(),{q:n,A:r}=t,i=vp()[az],o=i&&i.T,{elements:s}=n(),{host:l,padding:c,viewport:d,content:f}=s,h=dx(e),p=h?{}:e,{elements:g}=p,{host:v,padding:y,viewport:S,content:_}=g||{},b=h?e:p.target,x=DE(b,"textarea"),E=b.ownerDocument,A=E.documentElement,R=b===E.body,k=E.defaultView,O=W1e.bind(0,[b]),L=wQ.bind(0,[b]),N=lz.bind(0,[b]),H=O.bind(0,n_,d),W=L.bind(0,n_,f),z=H(S),D=z===b,F=D&&R,j=!D&&W(_),V=!D&&dx(z)&&z===j,G=V&&!!N(f),K=G?H():z,Y=G?j:W(),ie=F?A:V?K:z,ce=x?O(n_,l,v):b,ue=F?ie:ce,se=V?Y:j,Q=E.activeElement,ae=!D&&k.top===k&&Q===b,le={Z:b,J:ue,K:ie,tt:!D&&L(n_,c,y),nt:se,ot:!D&&!r&&o&&o(t),st:F?A:ie,et:F?E:ie,ct:k,rt:E,lt:x,it:R,ut:h,ft:D,dt:V,_t:(it,pt)=>r1e(ie,D?Ja:Yu,D?pt:it),ht:(it,pt,mt)=>Qh(ie,D?Ja:Yu,D?pt:it,mt)},he=$s(le).reduce((it,pt)=>{const mt=le[pt];return Fn(it,mt&&dx(mt)&&!_u(mt)?mt:!1)},[]),pe=it=>it?lk(he,it)>-1:null,{Z:ve,J:ye,tt:xe,K:me,nt:be,ot:Qe}=le,qe=[()=>{Po(ye,Ja),Po(ye,oL),Po(ve,oL),R&&(Po(A,Ja),Po(A,oL))}],at=x&&pe(ye);let Nt=x?ve:Z4([be,me,xe,ye,ve].find(it=>pe(it)===!1));const Ie=F?ve:be||me;return[le,()=>{_o(ye,Ja,D?"viewport":"host"),_o(xe,gF,""),_o(be,V8,""),D||_o(me,Yu,"");const it=R&&!D?Md(_u(b),mQ):ws;if(at&&(B8(ve,ye),Fn(qe,()=>{B8(ye,ve),Xl(ye)})),na(Ie,Nt),na(ye,xe),na(xe||ye,!D&&me),na(me,be),Fn(qe,()=>{it(),Po(xe,gF),Po(be,V8),Po(me,gQ),Po(me,vQ),Po(me,Yu),pe(be)&&lL(be),pe(me)&&lL(me),pe(xe)&&lL(xe)}),r&&!D&&(Qh(me,Yu,yQ,!0),Fn(qe,Po.bind(0,me,Yu))),Qe&&(s1e(me,Qe),Fn(qe,Xl.bind(0,Qe))),ae){const pt=_o(me,t_);_o(me,t_,"-1"),me.focus();const mt=()=>pt?_o(me,t_,pt):Po(me,t_),_e=qr(E,"pointerdown keydown",()=>{mt(),_e()});Fn(qe,[mt,_e])}else Q&&Q.focus&&Q.focus();Nt=0},Zl.bind(0,qe)]},Y1e=(e,t)=>{const{nt:n}=e,[r]=t;return i=>{const{Y:o}=Yo(),{gt:s}=r(),{vt:l}=i,c=(n||!o)&&l;return c&&Qi(n,{height:s?"":"100%"}),{wt:c,bt:c}}},K1e=(e,t)=>{const[n,r]=t,{J:i,tt:o,K:s,ft:l}=e,[c,d]=Qa({u:h1e,o:j8()},j8.bind(0,i,"padding",""));return(f,h,p)=>{let[g,v]=d(p);const{A:y,Y:S}=Yo(),{yt:_}=n(),{wt:b,bt:x,St:E}=f,[A,R]=h("paddingAbsolute");(b||v||!S&&x)&&([g,v]=c(p));const O=!l&&(R||E||v);if(O){const L=!A||!o&&!y,N=g.r+g.l,H=g.t+g.b,W={marginRight:L&&!_?-N:0,marginBottom:L?-H:0,marginLeft:L&&_?-N:0,top:L?-g.t:0,right:L?_?-g.r:"auto":0,left:L?_?"auto":-g.l:0,width:L?`calc(100% + ${N}px)`:""},z={paddingTop:L?g.t:0,paddingRight:L?g.r:0,paddingBottom:L?g.b:0,paddingLeft:L?g.l:0};Qi(o||s,W),Qi(s,z),r({tt:g,$t:!L,P:o?z:Tr({},W,z)})}return{xt:O}}},{max:bF}=Math,Ku=bF.bind(0,0),EQ="visible",eH="hidden",Q1e=42,r_={u:aQ,o:{w:0,h:0}},J1e={u:lQ,o:{x:eH,y:eH}},Z1e=(e,t)=>{const n=window.devicePixelRatio%1!==0?1:0,r={w:Ku(e.w-t.w),h:Ku(e.h-t.h)};return{w:r.w>n?r.w:0,h:r.h>n?r.h:0}},i_=e=>e.indexOf(EQ)===0,ewe=(e,t)=>{const[n,r]=t,{J:i,tt:o,K:s,ot:l,ft:c,ht:d,it:f,ct:h}=e,{k:p,Y:g,A:v,I:y}=Yo(),S=vp()[az],_=!c&&!v&&(y.x||y.y),b=f&&c,[x,E]=Qa(r_,BE.bind(0,s)),[A,R]=Qa(r_,NE.bind(0,s)),[k,O]=Qa(r_),[L,N]=Qa(r_),[H]=Qa(J1e),W=(G,K)=>{if(Qi(s,{height:""}),K){const{$t:Y,tt:J}=n(),{Ct:ie,M:ce}=G,ue=BE(i),se=TS(i),Q=Qi(s,"boxSizing")==="content-box",ae=Y||Q?J.b+J.t:0,le=!(y.x&&Q);Qi(s,{height:se.h+ue.h+(ie.x&&le?ce.x:0)-ae})}},z=(G,K)=>{const Y=!v&&!G?Q1e:0,J=(pe,ve,ye)=>{const xe=Qi(s,pe),be=(K?K[pe]:xe)==="scroll";return[xe,be,be&&!v?ve?Y:ye:0,ve&&!!Y]},[ie,ce,ue,se]=J("overflowX",y.x,p.x),[Q,ae,le,he]=J("overflowY",y.y,p.y);return{Ot:{x:ie,y:Q},Ct:{x:ce,y:ae},M:{x:ue,y:le},D:{x:se,y:he}}},D=(G,K,Y,J)=>{const ie=(ae,le)=>{const he=i_(ae),pe=le&&he&&ae.replace(`${EQ}-`,"")||"";return[le&&!he?ae:"",i_(pe)?"hidden":pe]},[ce,ue]=ie(Y.x,K.x),[se,Q]=ie(Y.y,K.y);return J.overflowX=ue&&se?ue:ce,J.overflowY=Q&&ce?Q:se,z(G,J)},F=(G,K,Y,J)=>{const{M:ie,D:ce}=G,{x:ue,y:se}=ce,{x:Q,y:ae}=ie,{P:le}=n(),he=K?"marginLeft":"marginRight",pe=K?"paddingLeft":"paddingRight",ve=le[he],ye=le.marginBottom,xe=le[pe],me=le.paddingBottom;J.width=`calc(100% + ${ae+ve*-1}px)`,J[he]=-ae+ve,J.marginBottom=-Q+ye,Y&&(J[pe]=xe+(se?ae:0),J.paddingBottom=me+(ue?Q:0))},[j,V]=S?S.L(_,g,s,l,n,z,F):[()=>_,()=>[ws]];return(G,K,Y)=>{const{wt:J,Tt:ie,bt:ce,xt:ue,vt:se,St:Q}=G,{gt:ae,yt:le}=n(),[he,pe]=K("showNativeOverlaidScrollbars"),[ve,ye]=K("overflow"),xe=he&&y.x&&y.y,me=!c&&!g&&(J||ce||ie||pe||se),be=i_(ve.x),Qe=i_(ve.y),qe=be||Qe;let at=E(Y),Nt=R(Y),Ie=O(Y),Fe=N(Y),it;if(pe&&v&&d(yQ,_1e,!xe),me&&(it=z(xe),W(it,ae)),J||ue||ce||Q||pe){qe&&d(Qm,Km,!1);const[Re,Ue]=V(xe,le,it),[yt,Wt]=at=x(Y),[pn,$r]=Nt=A(Y),Or=TS(s);let Mr=pn,Fr=Or;Re(),($r||Wt||pe)&&Ue&&!xe&&j(Ue,pn,yt,le)&&(Fr=TS(s),Mr=NE(s));const Jr={w:Ku(bF(pn.w,Mr.w)+yt.w),h:Ku(bF(pn.h,Mr.h)+yt.h)},Ko={w:Ku((b?h.innerWidth:Fr.w+Ku(Or.w-pn.w))+yt.w),h:Ku((b?h.innerHeight+yt.h:Fr.h+Ku(Or.h-pn.h))+yt.h)};Fe=L(Ko),Ie=k(Z1e(Jr,Ko),Y)}const[pt,mt]=Fe,[_e,ze]=Ie,[Ye,$e]=Nt,[Ne,Rt]=at,ut={x:_e.w>0,y:_e.h>0},Ae=be&&Qe&&(ut.x||ut.y)||be&&ut.x&&!ut.y||Qe&&ut.y&&!ut.x;if(ue||Q||Rt||$e||mt||ze||ye||pe||me){const Re={marginRight:0,marginBottom:0,marginLeft:0,width:"",overflowY:"",overflowX:""},Ue=D(xe,ut,ve,Re),yt=j(Ue,Ye,Ne,le);c||F(Ue,le,yt,Re),me&&W(Ue,ae),c?(_o(i,gQ,Re.overflowX),_o(i,vQ,Re.overflowY)):Qi(s,Re)}Qh(i,Ja,Km,Ae),Qh(o,gF,S1e,Ae),c||Qh(s,Yu,Qm,qe);const[ot,Ft]=H(z(xe).Ot);return r({Ot:ot,zt:{x:pt.w,y:pt.h},Et:{x:_e.w,y:_e.h},At:ut}),{It:Ft,Ht:mt,Lt:ze}}},tH=(e,t,n)=>{const r={},i=t||{},o=$s(e).concat($s(i));return En(o,s=>{const l=e[s],c=i[s];r[s]=!!(n||l||c)}),r},twe=(e,t)=>{const{Z:n,K:r,ht:i,ft:o}=e,{A:s,I:l,Y:c}=Yo(),d=!s&&(l.x||l.y),f=[Y1e(e,t),K1e(e,t),ewe(e,t)];return(h,p,g)=>{const v=tH(Tr({wt:!1,xt:!1,St:!1,vt:!1,Ht:!1,Lt:!1,It:!1,Tt:!1,bt:!1,Pt:!1},p),{},g),y=d||!c,S=y&&sl(r),_=y&&pu(r);i("",$E,!0);let b=v;return En(f,x=>{b=tH(b,x(b,h,!!g)||{},g)}),sl(r,S),pu(r,_),i("",$E),o||(sl(n,0),pu(n,0)),b}},nwe=(e,t,n)=>{let r,i=!1;const o=()=>{i=!0},s=l=>{if(n){const c=n.reduce((d,f)=>{if(f){const[h,p]=f,g=p&&h&&(l?l(h):nQ(h,e));g&&g.length&&p&&Xd(p)&&Fn(d,[g,p.trim()],!0)}return d},[]);En(c,d=>En(d[0],f=>{const h=d[1],p=r.get(f)||[];if(e.contains(f)){const v=qr(f,h,y=>{i?(v(),r.delete(f)):t(y)});r.set(f,Fn(p,v))}else Zl(p),r.delete(f)}))}};return n&&(r=new WeakMap,s()),[o,s]},nH=(e,t,n,r)=>{let i=!1;const{Mt:o,Dt:s,Rt:l,kt:c,Bt:d,Vt:f}=r||{},h=nz(()=>i&&n(!0),{g:33,v:99}),[p,g]=nwe(e,h,l),v=o||[],y=s||[],S=v.concat(y),_=(x,E)=>{const A=d||ws,R=f||ws,k=new Set,O=new Set;let L=!1,N=!1;if(En(x,H=>{const{attributeName:W,target:z,type:D,oldValue:F,addedNodes:j,removedNodes:V}=H,G=D==="attributes",K=D==="childList",Y=e===z,J=G&&Xd(W)?_o(z,W):0,ie=J!==0&&F!==J,ce=lk(y,W)>-1&&ie;if(t&&(K||!Y)){const ue=!G,se=G&&ie,Q=se&&c&&DE(z,c),le=(Q?!A(z,W,F,J):ue||se)&&!R(H,!!Q,e,r);En(j,he=>k.add(he)),En(V,he=>k.add(he)),N=N||le}!t&&Y&&ie&&!A(z,W,F,J)&&(O.add(W),L=L||ce)}),k.size>0&&g(H=>gp(k).reduce((W,z)=>(Fn(W,nQ(H,z)),DE(z,H)?Fn(W,z):W),[])),t)return!E&&N&&n(!1),[!1];if(O.size>0||L){const H=[gp(O),L];return!E&&n.apply(0,H),H}},b=new d1e(x=>_(x));return b.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:S,subtree:t,childList:t,characterData:t}),i=!0,[()=>{i&&(p(),b.disconnect(),i=!1)},()=>{if(i){h.m();const x=b.takeRecords();return!Q4(x)&&_(x,!0)}}]},o_=3333333,CQ=(e,t,n)=>{const{Yt:r,Pt:i}=n||{},o=vp()[$1e],{V:s}=Yo(),c=rQ(`
`)[0],d=c.firstChild,f=Eg.bind(0,e),[h]=Qa({o:!1,_:!0,u:(v,y)=>!(!v||!Lm(v)&&Lm(y))}),p=v=>{const y=Bs(v)&&v.length>0&&Qx(v[0]),S=!y&&K4(v[0]);let _=!1,b=!1,x=!0;if(y){const[E,,A]=h(v.pop().contentRect),R=Lm(E),k=Lm(A);_=!A&&!!k||!R,b=!k&&R,x=!_}else S?[,x]=v:b=v===!0;if(r&&x){const E=S?v[0]:Eg(c);sl(c,E?s.n?-o_:s.i?0:o_:o_),pu(c,o_)}_||t({wt:!S,jt:S?v:void 0,Pt:!!b})},g=[];return[()=>{Zl(g),Xl(c)},()=>{let v=i&&p;if(Dm){const y=new Dm(p);y.observe(d),Fn(g,()=>{y.disconnect()})}else if(o){const[y,S]=o.O(d,p,i);v=y,Fn(g,S)}if(r){const[y]=Qa({o:void 0},f);Fn(g,qr(c,"scroll",S=>{const _=y(),[b,x,E]=_;x&&(tz(d,"ltr rtl"),Md(d,b?"rtl":"ltr"),p([!!b,x,E])),uQ(S)}))}v&&(Md(c,E1e),Fn(g,qr(c,"animationstart",v,{C:!!Dm}))),(Dm||o)&&na(e,c)}]},rwe=e=>e.h===0||e.isIntersecting||e.intersectionRatio>0,iwe=(e,t)=>{let n;const r=Jh(T1e),i=[],[o]=Qa({o:!1}),s=(c,d)=>{if(c){const f=o(rwe(c)),[,h]=f;return h&&!d&&t(f)&&[f]}},l=(c,d)=>c&&c.length>0&&s(c.pop(),d);return[()=>{Zl(i),Xl(r)},()=>{if($8)n=new $8(c=>l(c),{root:e}),n.observe(r),Fn(i,()=>{n.disconnect()});else{const c=()=>{const h=Jx(r);s(h)},[d,f]=CQ(r,c);Fn(i,d),f(),c()}na(e,r)},()=>n&&l(n.takeRecords(),!0)]},rH=`[${Ja}]`,owe=`[${Yu}]`,cL=["tabindex"],iH=["wrap","cols","rows"],uL=["id","class","style","open"],swe=(e,t,n)=>{let r,i,o;const{J:s,K:l,nt:c,lt:d,ft:f,_t:h,ht:p}=e,{Y:g}=Yo(),[v]=Qa({u:aQ,o:{w:0,h:0}},()=>{const F=h(Qm,Km),j=h(sL,""),V=j&&sl(l),G=j&&pu(l);p(Qm,Km),p(sL,""),p("",$E,!0);const K=NE(c),Y=NE(l),J=BE(l);return p(Qm,Km,F),p(sL,"",j),p("",$E),sl(l,V),pu(l,G),{w:Y.w+K.w+J.w,h:Y.h+K.h+J.h}}),y=d?iH:uL.concat(iH),S=nz(n,{g:()=>r,v:()=>i,p(F,j){const[V]=F,[G]=j;return[$s(V).concat($s(G)).reduce((K,Y)=>(K[Y]=V[Y]||G[Y],K),{})]}}),_=F=>{En(F||cL,j=>{if(lk(cL,j)>-1){const V=_o(s,j);Xd(V)?_o(l,j,V):Po(l,j)}})},b=(F,j)=>{const[V,G]=F,K={vt:G};return t({gt:V}),!j&&n(K),K},x=({wt:F,jt:j,Pt:V})=>{const G=!F||V?n:S;let K=!1;if(j){const[Y,J]=j;K=J,t({yt:Y})}G({wt:F,Pt:V,St:K})},E=(F,j)=>{const[,V]=v(),G={bt:V};return V&&!j&&(F?n:S)(G),G},A=(F,j,V)=>{const G={Tt:j};return j?!V&&S(G):f||_(F),G},[R,k,O]=c||!g?iwe(s,b):[ws,ws,ws],[L,N]=f?[ws,ws]:CQ(s,x,{Pt:!0,Yt:!0}),[H,W]=nH(s,!1,A,{Dt:uL,Mt:uL.concat(cL)});let z;const D=f&&Dm&&new Dm(F=>{const j=F[F.length-1].contentRect,V=Lm(j),K=!Lm(z)&&V;x({wt:!0,Pt:K}),z=j});return[()=>{R(),L(),o&&o[0](),D&&D.disconnect(),H()},()=>{D&&D.observe(s),_(),N(),k()},()=>{const F={},j=W(),V=O(),G=o&&o[1]();return j&&Tr(F,A.apply(0,Fn(j,!0))),V&&Tr(F,b.apply(0,Fn(V,!0))),G&&Tr(F,E.apply(0,Fn(G,!0))),F},F=>{const[j]=F("update.ignoreMutation"),[V,G]=F("update.attributes"),[K,Y]=F("update.elementEvents"),[J,ie]=F("update.debounce"),ce=Y||G,ue=se=>hl(j)&&j(se);if(ce&&(o&&(o[1](),o[0]()),o=nH(c||l,!0,E,{Mt:y.concat(V||[]),Rt:K,kt:rH,Vt:(se,Q)=>{const{target:ae,attributeName:le}=se;return(!Q&&le&&!f?o1e(ae,rH,owe):!1)||!!Mm(ae,`.${Xo}`)||!!ue(se)}})),ie)if(S.m(),Bs(J)){const se=J[0],Q=J[1];r=Sd(se)&&se,i=Sd(Q)&&Q}else Sd(J)?(r=J,i=!1):(r=!1,i=!1)}]},oH={x:0,y:0},awe=e=>({tt:{t:0,r:0,b:0,l:0},$t:!1,P:{marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},zt:oH,Et:oH,Ot:{x:"hidden",y:"hidden"},At:{x:!1,y:!1},gt:!1,yt:Eg(e.J)}),lwe=(e,t)=>{const n=yF(t,{}),[r,i,o]=iz(),[s,l,c]=X1e(e),d=SQ(awe(s)),[f,h]=d,p=twe(s,d),g=(x,E,A)=>{const k=$s(x).some(O=>!!x[O])||!J4(E)||A;return k&&o("u",[x,E,A]),k},[v,y,S,_]=swe(s,h,x=>g(p(n,x),{},!1)),b=f.bind(0);return b.Nt=x=>r("u",x),b.qt=()=>{const{Z:x,K:E,rt:A,it:R}=s,k=R?A.documentElement:x,O=sl(k),L=pu(k);y(),l(),sl(E,O),pu(E,L)},b.Ft=s,[(x,E)=>{const A=yF(t,x,E);return _(A),g(p(A,S(),E),x,!!E)},b,()=>{i(),v(),c()}]},{round:sH}=Math,cwe=e=>{const{width:t,height:n}=Dl(e),{w:r,h:i}=Jx(e);return{x:sH(t)/r||1,y:sH(n)/i||1}},uwe=(e,t,n)=>{const r=t.scrollbars,{button:i,isPrimary:o,pointerType:s}=e,{pointers:l}=r;return i===0&&o&&r[n?"dragScroll":"clickScroll"]&&(l||[]).includes(s)},aH="pointerup pointerleave pointercancel lostpointercapture",dwe=(e,t)=>qr(e,"mousedown",qr.bind(0,t,"click",uQ,{C:!0,$:!0}),{$:!0}),fwe=(e,t,n,r,i,o,s)=>{const{V:l}=Yo(),{Gt:c,Xt:d,Ut:f}=r,h=`scroll${s?"Left":"Top"}`,p=`client${s?"X":"Y"}`,g=s?"width":"height",v=s?"left":"top",y=s?"w":"h",S=s?"x":"y",_=(b,x)=>E=>{const{Et:A}=o(),R=Jx(d)[y]-Jx(c)[y],O=x*E/R*A[S],N=Eg(f)&&s?l.n||l.i?1:-1:1;i[h]=b+O*N};return qr(d,"pointerdown",b=>{const x=Mm(b.target,`.${sz}`)===c,E=x?c:d;if(Qh(t,Ja,G8,!0),uwe(b,e,x)){const A=!x&&b.shiftKey,R=()=>Dl(c),k=()=>Dl(d),O=(K,Y)=>(K||R())[v]-(Y||k())[v],L=_(i[h]||0,1/cwe(i)[S]),N=b[p],H=R(),W=k(),z=H[g],D=O(H,W)+z/2,F=N-W[v],j=x?0:F-D,V=K=>{Zl(G),E.releasePointerCapture(K.pointerId)},G=[Qh.bind(0,t,Ja,G8),qr(n,aH,V),qr(n,"selectstart",K=>dQ(K),{S:!1}),qr(d,aH,V),qr(d,"pointermove",K=>{const Y=K[p]-N;(x||A)&&L(j+Y)})];if(A)L(j);else if(!x){const K=vp()[F1e];K&&Fn(G,K.O(L,O,j,z,F))}E.setPointerCapture(b.pointerId)}})},hwe=(e,t)=>(n,r,i,o,s,l,c)=>{const{Ut:d}=n,[f,h]=Rh(333),p=!!s.scrollBy;let g=!0;return Zl.bind(0,[qr(d,"pointerenter",()=>{r(X8,!0)}),qr(d,"pointerleave pointercancel",()=>{r(X8)}),qr(d,"wheel",v=>{const{deltaX:y,deltaY:S,deltaMode:_}=v;p&&g&&_===0&&_u(d)===o&&s.scrollBy({left:y,top:S,behavior:"smooth"}),g=!1,r(Q8,!0),f(()=>{g=!0,r(Q8)}),dQ(v)},{S:!1,$:!0}),dwe(d,i),fwe(e,o,i,n,s,t,c),h])},{min:FE,max:xF,round:pwe}=Math,TQ=(e,t,n,r)=>{if(r){const l=n?"x":"y",{Et:c,zt:d}=r,f=d[l],h=c[l];return xF(0,FE(1,f/(f+h)))}const i=n?"width":"height",o=Dl(e)[i],s=Dl(t)[i];return xF(0,FE(1,o/s))},mwe=(e,t,n,r,i,o)=>{const{V:s}=Yo(),l=o?"x":"y",c=o?"Left":"Top",{Et:d}=r,f=pwe(d[l]),h=FE(f,xF(0,n[`scroll${c}`])),p=o&&i,g=s.i?h:f-h,y=FE(1,(p?g:h)/f),S=TQ(e,t,o);return 1/S*(1-S)*y},kQ=(e,t,n,r)=>t&&e.animate(n,{timeline:t,composite:r}),gwe=(e,t)=>({transform:[Cg("0%",t),Cg(t&&e?"100%":"-100%",t)],[t?e?"right":"left":"top"]:["0%","100%"]}),vwe=e=>`${Math.max(0,e-.5)}px`,lH=(e,t,n,r)=>kQ(e,t,{transform:[Cg("0px",r),Cg(vwe(n),r)]},"add"),cH=(e,t)=>pF?new pF({source:e,axis:t}):null,ywe=(e,t,n)=>{const{q:r,H:i}=Yo(),{scrollbars:o}=r(),{slot:s}=o,{rt:l,Z:c,J:d,K:f,ut:h,st:p,it:g,ft:v}=t,{scrollbars:y}=h?{}:e,{slot:S}=y||{},_=new Map,b=cH(p,"x"),x=cH(p,"y"),E=wQ([c,d,f],()=>v&&g?c:d,s,S),A=se=>v&&!g&&_u(se)===f,R=se=>{_.forEach((Q,ae)=>{(se?lk(Bs(se)?se:[se],ae)>-1:!0)&&((Q||[]).forEach(he=>{he&&he.cancel()}),_.delete(ae))})},k=(se,Q,ae)=>{const le=ae?Md:tz;En(se,he=>{le(he.Ut,Q)})},O=(se,Q)=>{En(se,ae=>{const[le,he]=Q(ae);Qi(le,he)})},L=(se,Q,ae)=>{O(se,le=>{const{Gt:he,Xt:pe}=le;return[he,{[ae?"width":"height"]:`${(TQ(he,pe,ae,Q)*100).toFixed(3)}%`}]})},N=(se,Q,ae)=>{!x&&!x&&O(se,le=>{const{Gt:he,Xt:pe,Ut:ve}=le,ye=mwe(he,pe,p,Q,Eg(ve),ae);return[he,{transform:ye===ye?Cg(`${(ye*100).toFixed(3)}%`,ae):""}]})},H=se=>{const{Ut:Q}=se,ae=A(Q)&&Q;return[ae,{transform:ae?Cg([`${sl(p)}px`,`${pu(p)}px`]):""}]},W=[],z=[],D=[],F=(se,Q,ae)=>{const le=K4(ae),he=le?ae:!0,pe=le?!ae:!0;he&&k(z,se,Q),pe&&k(D,se,Q)},j=se=>{L(z,se,!0),L(D,se)},V=se=>{N(z,se,!0),N(D,se)},G=()=>{const se=(Q,{Ut:ae,Gt:le})=>{R(le),_.set(le,[kQ(le,Q?b:x,gwe(Q&&Eg(ae),Q))])};z.forEach(se.bind(0,!0)),D.forEach(se.bind(0,!1))},K=()=>{!x&&!x&&(v&&O(z,H),v&&O(D,H))},Y=({Et:se})=>{D.concat(z).forEach(({Ut:Q})=>{R(Q),A(Q)&&_.set(Q,[lH(Q,b,se.x,!0),lH(Q,x,se.y)])})},J=se=>{const Q=se?I1e:P1e,ae=se?z:D,le=Q4(ae)?q8:"",he=Jh(`${Xo} ${Q} ${le}`),pe=Jh(bQ),ve=Jh(sz),ye={Ut:he,Xt:pe,Gt:ve};return i||Md(he,k1e),na(he,pe),na(pe,ve),Fn(ae,ye),Fn(W,[Xl.bind(0,he),R,n(ye,F,l,d,p,se?b:x,se)]),ye},ie=J.bind(0,!0),ce=J.bind(0,!1),ue=()=>{na(E,z[0].Ut),na(E,D[0].Ut),LE(()=>{F(q8)},300)};return ie(),ce(),[{Wt:j,Zt:V,Jt:G,Kt:Y,Qt:K,tn:F,nn:{B:b,sn:z,en:ie,cn:O.bind(0,z)},rn:{B:x,sn:D,en:ce,cn:O.bind(0,D)}},ue,Zl.bind(0,W)]},dL=e=>e.pointerType==="mouse",bwe=(e,t,n,r)=>{let i,o,s,l,c,d=ws,f=0;const h=SQ({}),[p]=h,[g,v]=Rh(),[y,S]=Rh(),[_,b]=Rh(100),[x,E]=Rh(100),[A,R]=Rh(100),[k,O]=Rh(()=>f),[L,N,H]=ywe(e,n.Ft,hwe(t,n)),{J:W,et:z,it:D}=n.Ft,{tn:F,Wt:j,Zt:V,Jt:G,Kt:K,Qt:Y}=L,J=Q=>{F(vF,Q,!0),F(vF,Q,!1)},ie=(Q,ae)=>{if(O(),Q)F(K8);else{const le=()=>F(K8,!0);f>0&&!ae?k(le):le()}},ce=Q=>{dL(Q)&&(l=o,l&&ie(!0))},ue=[b,O,E,R,S,v,H,qr(W,"pointerover",ce,{C:!0}),qr(W,"pointerenter",ce),qr(W,"pointerleave",Q=>{dL(Q)&&(l=!1,o&&ie(!1))}),qr(W,"pointermove",Q=>{dL(Q)&&i&&g(()=>{b(),ie(!0),x(()=>{i&&ie(!1)})})}),qr(z,"scroll",Q=>{y(()=>{V(n()),s&&ie(!0),_(()=>{s&&!l&&ie(!1)})}),r(Q),Y()})],se=p.bind(0);return se.Ft=L,se.qt=N,[(Q,ae,le)=>{const{Ht:he,Lt:pe,It:ve,St:ye,Pt:xe}=le,{I:me}=Yo(),be=yF(t,Q,ae),Qe=n(),{Et:qe,Ot:at,yt:Nt,At:Ie}=Qe,[Fe,it]=be("showNativeOverlaidScrollbars"),[pt,mt]=be("scrollbars.theme"),[_e,ze]=be("scrollbars.visibility"),[Ye,$e]=be("scrollbars.autoHide"),[Ne,Rt]=be("scrollbars.autoHideSuspend"),[ut]=be("scrollbars.autoHideDelay"),[Ae,ot]=be("scrollbars.dragScroll"),[Ft,Re]=be("scrollbars.clickScroll"),Ue=xe&&!ae,yt=Ie.x||Ie.y,Wt=he||pe||ye,pn=ve||ze,$r=Fe&&me.x&&me.y,Or=(Mr,Fr)=>{const Jr=_e==="visible"||_e==="auto"&&Mr==="scroll";return F(O1e,Jr,Fr),Jr};if(f=ut,Ue&&(Ne&&yt?(J(!1),d(),A(()=>{d=qr(z,"scroll",J.bind(0,!0),{C:!0})})):J(!0)),it&&F(A1e,$r),mt&&(F(c),F(pt,!0),c=pt),Rt&&!Ne&&J(!0),$e&&(i=Ye==="move",o=Ye==="leave",s=Ye!=="never",ie(!s,!0)),ot&&F(L1e,Ae),Re&&F(D1e,Ft),pn){const Mr=Or(at.x,!0),Fr=Or(at.y,!1);F(M1e,!(Mr&&Fr))}Wt&&(j(Qe),V(Qe),G(Qe),K(Qe),Y(),F(Y8,!qe.x,!0),F(Y8,!qe.y,!1),F(R1e,Nt&&!D))},se,()=>{Zl(ue),d()}]},AQ=(e,t,n)=>{hl(e)&&e(t||void 0,n||void 0)},cd=(e,t,n)=>{const{G:r,q:i,j:o,N:s}=Yo(),l=vp(),c=dx(e),d=c?e:e.target,f=_Q(d);if(t&&!f){let h=!1;const p=z=>{const D=vp()[B1e],F=D&&D.O;return F?F(z,!0):z},g=Tr({},r(),p(t)),[v,y,S]=iz(n),[_,b,x]=lwe(e,g),[E,A,R]=bwe(e,g,b,z=>S("scroll",[W,z])),k=(z,D)=>_(z,!!D),O=k.bind(0,{},!0),L=o(O),N=s(O),H=z=>{q1e(d),L(),N(),R(),x(),h=!0,S("destroyed",[W,!!z]),y()},W={options(z,D){if(z){const F=D?r():{},j=fQ(g,Tr(F,p(z)));J4(j)||(Tr(g,j),k(j))}return Tr({},g)},on:v,off:(z,D)=>{z&&D&&y(z,D)},state(){const{zt:z,Et:D,Ot:F,At:j,tt:V,$t:G,yt:K}=b();return Tr({},{overflowEdge:z,overflowAmount:D,overflowStyle:F,hasOverflow:j,padding:V,paddingAbsolute:G,directionRTL:K,destroyed:h})},elements(){const{Z:z,J:D,tt:F,K:j,nt:V,st:G,et:K}=b.Ft,{nn:Y,rn:J}=A.Ft,ie=ue=>{const{Gt:se,Xt:Q,Ut:ae}=ue;return{scrollbar:ae,track:Q,handle:se}},ce=ue=>{const{sn:se,en:Q}=ue,ae=ie(se[0]);return Tr({},ae,{clone:()=>{const le=ie(Q());return E({},!0,{}),le}})};return Tr({},{target:z,host:D,padding:F||j,viewport:j,content:V||j,scrollOffsetElement:G,scrollEventElement:K,scrollbarHorizontal:ce(Y),scrollbarVertical:ce(J)})},update:z=>k({},z),destroy:H.bind(0)};return b.Nt((z,D,F)=>{E(D,F,z)}),V1e(d,W),En($s(l),z=>AQ(l[z],0,W)),G1e(b.Ft.it,i().cancel,!c&&e.cancel)?(H(!0),W):(b.qt(),A.qt(),S("initialized",[W]),b.Nt((z,D,F)=>{const{wt:j,St:V,vt:G,Ht:K,Lt:Y,It:J,bt:ie,Tt:ce}=z;S("updated",[W,{updateHints:{sizeChanged:j,directionChanged:V,heightIntrinsicChanged:G,overflowEdgeChanged:K,overflowAmountChanged:Y,overflowStyleChanged:J,contentMutation:ie,hostMutation:ce},changedOptions:D,force:F}])}),W.update(!0),W)}return f};cd.plugin=e=>{En(N1e(e),t=>AQ(t,cd))};cd.valid=e=>{const t=e&&e.elements,n=hl(t)&&t();return dF(n)&&!!_Q(n.target)};cd.env=()=>{const{k:e,I:t,A:n,V:r,Y:i,H:o,B:s,U:l,W:c,q:d,F:f,G:h,X:p}=Yo();return Tr({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:n,rtlScrollBehavior:r,flexboxGlue:i,cssCustomProperties:o,scrollTimeline:s,staticDefaultInitialization:l,staticDefaultOptions:c,getDefaultInitialization:d,setDefaultInitialization:f,getDefaultOptions:h,setDefaultOptions:p})};const xwe=()=>{if(typeof window>"u"){const d=()=>{};return[d,d]}let e,t;const n=window,r=typeof n.requestIdleCallback=="function",i=n.requestAnimationFrame,o=n.cancelAnimationFrame,s=r?n.requestIdleCallback:i,l=r?n.cancelIdleCallback:o,c=()=>{l(e),o(t)};return[(d,f)=>{c(),e=s(r?()=>{c(),t=i(d)}:d,typeof f=="object"?f:{timeout:2233})},c]},RQ=e=>{const{options:t,events:n,defer:r}=e||{},[i,o]=I.useMemo(xwe,[]),s=I.useRef(null),l=I.useRef(r),c=I.useRef(t),d=I.useRef(n);return I.useEffect(()=>{l.current=r},[r]),I.useEffect(()=>{const{current:f}=s;c.current=t,cd.valid(f)&&f.options(t||{},!0)},[t]),I.useEffect(()=>{const{current:f}=s;d.current=n,cd.valid(f)&&f.on(n||{},!0)},[n]),I.useEffect(()=>()=>{var f;o(),(f=s.current)==null||f.destroy()},[]),I.useMemo(()=>[f=>{const h=s.current;if(cd.valid(h))return;const p=l.current,g=c.current||{},v=d.current||{},y=()=>s.current=cd(f,g,v);p?i(y,p):y()},()=>s.current],[])},wwe=(e,t)=>{const{element:n="div",options:r,events:i,defer:o,children:s,...l}=e,c=n,d=I.useRef(null),f=I.useRef(null),[h,p]=I.useState(!1),[g,v]=RQ({options:r,events:i,defer:o});return I.useEffect(()=>{p(!0)},[]),I.useEffect(()=>{const{current:y}=d,{current:S}=f;return h&&y&&S&&g({target:y,elements:{viewport:S,content:S}}),()=>{var _;return(_=v())==null?void 0:_.destroy()}},[h,g,n]),I.useImperativeHandle(t,()=>({osInstance:v,getElement:()=>d.current}),[]),de.createElement(c,{"data-overlayscrollbars-initialize":"",ref:d,...l},h?de.createElement("div",{ref:f,"data-overlayscrollbars-contents":!0},s):s)},_we=I.forwardRef(wwe),Zg=I.forwardRef(({children:e,x:t,y:n,px:r=6,...i},o)=>{const{palette:s,spacing:l}=Pn(),c=Kx({"div.os-scrollbar-vertical > div.os-scrollbar-track":{height:`calc(100% - ${l(r)})`,marginTop:l(r)}}),d=I.useCallback(f=>{if(o&&f){const h=f.elements().viewport;h&&(typeof o=="function"?o(h):o.current=h)}},[o]);return C.jsx(_we,{options:{overflow:{x:t?"scroll":"hidden",y:n?"scroll":"hidden"},scrollbars:{autoHide:"move",theme:s.mode==="dark"?"os-theme-light":"os-theme-dark"}},...i,className:`${c} ${i.className}`,events:{initialized:d},children:e})});var IQ={exports:{}},Qn={};/** @license React v17.0.2 * react-is.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 ck=60103,uk=60106,X1=60107,Y1=60108,K1=60114,Q1=60109,J1=60110,Z1=60112,ew=60113,az=60120,tw=60115,nw=60116,TQ=60121,kQ=60122,AQ=60117,IQ=60129,RQ=60131;if(typeof Symbol=="function"&&Symbol.for){var Di=Symbol.for;ck=Di("react.element"),uk=Di("react.portal"),X1=Di("react.fragment"),Y1=Di("react.strict_mode"),K1=Di("react.profiler"),Q1=Di("react.provider"),J1=Di("react.context"),Z1=Di("react.forward_ref"),ew=Di("react.suspense"),az=Di("react.suspense_list"),tw=Di("react.memo"),nw=Di("react.lazy"),TQ=Di("react.block"),kQ=Di("react.server.block"),AQ=Di("react.fundamental"),IQ=Di("react.debug_trace_mode"),RQ=Di("react.legacy_hidden")}function pl(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case ck:switch(e=e.type,e){case X1:case K1:case Y1:case ew:case az:return e;default:switch(e=e&&e.$$typeof,e){case J1:case Z1:case nw:case tw:case Q1:return e;default:return t}}case uk:return t}}}var xwe=Q1,wwe=ck,_we=Z1,Swe=X1,Ewe=nw,Cwe=tw,Twe=uk,kwe=K1,Awe=Y1,Iwe=ew;Qn.ContextConsumer=J1;Qn.ContextProvider=xwe;Qn.Element=wwe;Qn.ForwardRef=_we;Qn.Fragment=Swe;Qn.Lazy=Ewe;Qn.Memo=Cwe;Qn.Portal=Twe;Qn.Profiler=kwe;Qn.StrictMode=Awe;Qn.Suspense=Iwe;Qn.isAsyncMode=function(){return!1};Qn.isConcurrentMode=function(){return!1};Qn.isContextConsumer=function(e){return pl(e)===J1};Qn.isContextProvider=function(e){return pl(e)===Q1};Qn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===ck};Qn.isForwardRef=function(e){return pl(e)===Z1};Qn.isFragment=function(e){return pl(e)===X1};Qn.isLazy=function(e){return pl(e)===nw};Qn.isMemo=function(e){return pl(e)===tw};Qn.isPortal=function(e){return pl(e)===uk};Qn.isProfiler=function(e){return pl(e)===K1};Qn.isStrictMode=function(e){return pl(e)===Y1};Qn.isSuspense=function(e){return pl(e)===ew};Qn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===X1||e===K1||e===IQ||e===Y1||e===ew||e===az||e===RQ||typeof e=="object"&&e!==null&&(e.$$typeof===nw||e.$$typeof===tw||e.$$typeof===Q1||e.$$typeof===J1||e.$$typeof===Z1||e.$$typeof===AQ||e.$$typeof===TQ||e[0]===kQ)};Qn.typeOf=pl;CQ.exports=Qn;var PQ=CQ.exports;function $E(e,t){const n=getComputedStyle(t);if(!n)return;let r=e===Er.Horizontal?t.clientWidth:t.clientHeight;return r!==0?(e===Er.Horizontal?r-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight):r-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom),r):void 0}/*! ***************************************************************************** + */var dk=60103,fk=60106,K1=60107,Q1=60108,J1=60114,Z1=60109,ew=60110,tw=60112,nw=60113,uz=60120,rw=60115,iw=60116,PQ=60121,OQ=60122,MQ=60117,DQ=60129,LQ=60131;if(typeof Symbol=="function"&&Symbol.for){var Di=Symbol.for;dk=Di("react.element"),fk=Di("react.portal"),K1=Di("react.fragment"),Q1=Di("react.strict_mode"),J1=Di("react.profiler"),Z1=Di("react.provider"),ew=Di("react.context"),tw=Di("react.forward_ref"),nw=Di("react.suspense"),uz=Di("react.suspense_list"),rw=Di("react.memo"),iw=Di("react.lazy"),PQ=Di("react.block"),OQ=Di("react.server.block"),MQ=Di("react.fundamental"),DQ=Di("react.debug_trace_mode"),LQ=Di("react.legacy_hidden")}function gl(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case dk:switch(e=e.type,e){case K1:case J1:case Q1:case nw:case uz:return e;default:switch(e=e&&e.$$typeof,e){case ew:case tw:case iw:case rw:case Z1:return e;default:return t}}case fk:return t}}}var Swe=Z1,Ewe=dk,Cwe=tw,Twe=K1,kwe=iw,Awe=rw,Rwe=fk,Iwe=J1,Pwe=Q1,Owe=nw;Qn.ContextConsumer=ew;Qn.ContextProvider=Swe;Qn.Element=Ewe;Qn.ForwardRef=Cwe;Qn.Fragment=Twe;Qn.Lazy=kwe;Qn.Memo=Awe;Qn.Portal=Rwe;Qn.Profiler=Iwe;Qn.StrictMode=Pwe;Qn.Suspense=Owe;Qn.isAsyncMode=function(){return!1};Qn.isConcurrentMode=function(){return!1};Qn.isContextConsumer=function(e){return gl(e)===ew};Qn.isContextProvider=function(e){return gl(e)===Z1};Qn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===dk};Qn.isForwardRef=function(e){return gl(e)===tw};Qn.isFragment=function(e){return gl(e)===K1};Qn.isLazy=function(e){return gl(e)===iw};Qn.isMemo=function(e){return gl(e)===rw};Qn.isPortal=function(e){return gl(e)===fk};Qn.isProfiler=function(e){return gl(e)===J1};Qn.isStrictMode=function(e){return gl(e)===Q1};Qn.isSuspense=function(e){return gl(e)===nw};Qn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===K1||e===J1||e===DQ||e===Q1||e===nw||e===uz||e===LQ||typeof e=="object"&&e!==null&&(e.$$typeof===iw||e.$$typeof===rw||e.$$typeof===Z1||e.$$typeof===ew||e.$$typeof===tw||e.$$typeof===MQ||e.$$typeof===PQ||e[0]===OQ)};Qn.typeOf=gl;IQ.exports=Qn;var NQ=IQ.exports;function zE(e,t){const n=getComputedStyle(t);if(!n)return;let r=e===Er.Horizontal?t.clientWidth:t.clientHeight;return r!==0?(e===Er.Horizontal?r-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight):r-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom),r):void 0}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -279,7 +279,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function o_(e,t,n=[],r={condition:!0}){const{condition:i}=r,o=function(s,l){var c={};for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&l.indexOf(d)<0&&(c[d]=s[d]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var f=0;for(d=Object.getOwnPropertySymbols(s);f(i&&window.addEventListener(e,t,o),()=>{i&&window.removeEventListener(e,t)}),[e,t,i,...n])}(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}})(`/* === Main Container === */ +***************************************************************************** */function s_(e,t,n=[],r={condition:!0}){const{condition:i}=r,o=function(s,l){var c={};for(var d in s)Object.prototype.hasOwnProperty.call(s,d)&&l.indexOf(d)<0&&(c[d]=s[d]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var f=0;for(d=Object.getOwnPropertySymbols(s);f(i&&window.addEventListener(e,t,o),()=>{i&&window.removeEventListener(e,t)}),[e,t,i,...n])}(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}})(`/* === Main Container === */ .__dbk__container { height: 100%; width: 100%; @@ -368,13 +368,13 @@ PERFORMANCE OF THIS SOFTWARE. .__dbk__dragger.Dark { background: #434252; } -/* ====== */`);const Rwe=de.forwardRef(({className:e,theme:t,draggerClassName:n,direction:r=Er.Vertical,onDragging:i},o)=>{const s=`__dbk__gutter ${r} ${e||t}`,l=`__dbk__dragger ${r} ${n||t}`;return C.jsx("div",Object.assign({className:s,ref:o,dir:r,onMouseDown:i,onTouchStart:TS?i:void 0},{children:C.jsx("div",{className:l},void 0)}),void 0)});var Js;function bF(e,t,n){let r,i;return t?(r=e/2,i=e):n?(r=e,i=e/2):(r=e,i=e),{aGutterSize:r,bGutterSize:i}}function Pwe(e,t){switch(t.type){case Js.SetIsReadyToCompute:return Object.assign(Object.assign({},e),{isReady:t.payload.isReady});case Js.CreatePairs:{const{direction:n,children:r,gutters:i}=t.payload,o=r[0].parentNode;if(!o)throw new Error("Cannot create pairs - parent is undefined.");const s=$E(n,o);if(s===void 0)throw new Error(`Cannot create pairs - parent has undefined or zero size: ${s}.`);const l=[];return r.forEach((c,d)=>{if(d>0){const f=r[d-1],h=r[d],p=i[d-1],g=n===Er.Horizontal?f.getBoundingClientRect().left:f.getBoundingClientRect().top,v=n===Er.Horizontal?h.getBoundingClientRect().right:h.getBoundingClientRect().bottom,y=n===Er.Horizontal?f.getBoundingClientRect().width+p.getBoundingClientRect().width+h.getBoundingClientRect().width:f.getBoundingClientRect().height+p.getBoundingClientRect().height+h.getBoundingClientRect().height,S=n===Er.Horizontal?p.getBoundingClientRect().width:p.getBoundingClientRect().height,_={idx:d-1,a:f,b:h,gutter:p,parent:o,start:g,end:v,size:y,gutterSize:S,aSizePct:100/r.length,bSizePct:100/r.length};l.push(_)}}),Object.assign(Object.assign({},e),{pairs:l})}case Js.StartDragging:{const{gutterIdx:n}=t.payload;return Object.assign(Object.assign({},e),{isDragging:!0,draggingIdx:n})}case Js.StopDragging:return Object.assign(Object.assign({},e),{isDragging:!1});case Js.CalculateSizes:{const{direction:n,gutterIdx:r}=t.payload,i=e.pairs[r],o=$E(n,i.parent);if(!o)throw new Error("Cannot calculate sizes - 'pair.parent' has undefined or zero size.");const s=i.gutter[n===Er.Horizontal?"clientWidth":"clientHeight"],l=r===0,c=r===e.pairs.length-1,{aGutterSize:d,bGutterSize:f}=bF(s,l,c);let h,p,g,v,y;return n===Er.Horizontal?(h=i.a.getBoundingClientRect().left,p=i.b.getBoundingClientRect().right,v=(i.a.getBoundingClientRect().width+d)/o*100,y=(i.b.getBoundingClientRect().width+f)/o*100,g=i.a.getBoundingClientRect().width+d+f+i.b.getBoundingClientRect().width):(h=i.a.getBoundingClientRect().top,p=i.b.getBoundingClientRect().bottom,v=(i.a.getBoundingClientRect().height+d)/o*100,y=(i.b.getBoundingClientRect().height+f)/o*100,g=i.a.getBoundingClientRect().height+d+f+i.b.getBoundingClientRect().height),e.pairs[r]=Object.assign(Object.assign({},i),{start:h,end:p,size:g,aSizePct:v,bSizePct:y,gutterSize:s}),Object.assign({},e)}default:return e}}function OQ(e,t=0,n=[]){return R.Children.toArray(e).reduce((r,i,o)=>(PQ.isFragment(i)?r.push.apply(r,OQ(i.props.children,t+1,n.concat(i.key||o))):R.isValidElement(i)?r.push(R.cloneElement(i,{key:n.concat(String(i.key)).join(".")})):typeof i!="string"&&typeof i!="number"||r.push(i),r),[])}(function(e){e[e.SetIsReadyToCompute=0]="SetIsReadyToCompute",e[e.CreatePairs=1]="CreatePairs",e[e.CalculateSizes=2]="CalculateSizes",e[e.StartDragging=3]="StartDragging",e[e.StopDragging=4]="StopDragging"})(Js||(Js={}));const sH=e=>"changedTouches"in e;var Er,xF;(function(e){e.Horizontal="Horizontal",e.Vertical="Vertical"})(Er||(Er={})),function(e){e.Light="Light",e.Dark="Dark"}(xF||(xF={}));const TS=typeof window<"u"&&"ontouchstart"in window;function uL(e){return e===Er.Horizontal?"col-resize":"row-resize"}const Owe={isReady:!1,isDragging:!1,pairs:[]};function Mwe({direction:e=Er.Horizontal,minWidths:t=[],minHeights:n=[],initialSizes:r,gutterTheme:i=xF.Dark,gutterClassName:o,draggerClassName:s,children:l,onResizeStarted:c,onResizeFinished:d,classes:f=[]}){const h=OQ(l),[p,g]=R.useReducer(Pwe,Owe),v=R.useRef(null),y=R.useRef([]),S=R.useRef([]);y.current=[],S.current=[];const _=de.useCallback(W=>{g({type:Js.SetIsReadyToCompute,payload:{isReady:W}})},[]),b=de.useCallback((W,z)=>{g({type:Js.StartDragging,payload:{gutterIdx:z}});const D=p.pairs[z];c==null||c(D.idx),D.a.style.userSelect="none",D.b.style.userSelect="none",D.gutter.style.cursor=uL(W),D.parent.style.cursor=uL(W),document.body.style.cursor=uL(W)},[p.pairs]),x=de.useCallback(()=>{g({type:Js.StopDragging});const W=[];for(let D=0;D{g({type:Js.CalculateSizes,payload:{direction:W,gutterIdx:z}})},[]),A=de.useCallback((W,z,D)=>{g({type:Js.CreatePairs,payload:{direction:W,children:z,gutters:D}})},[]),I=de.useCallback((W,z,D,F)=>{const j=z[0].parentNode;if(!j)throw new Error("Cannot set initial sizes - parent is undefined");if($E(W,j)===void 0)throw new Error("Cannot set initial sizes - parent has undefined size");z.forEach((V,G)=>{const K=G===0,Y=G===z.length-1;let J,ie=0;z.length>1&&(ie=D[Y?G-1:G].getBoundingClientRect()[W===Er.Horizontal?"width":"height"],ie=K||Y?ie/2:ie),J=F&&G{if(p.draggingIdx===void 0)throw new Error("Cannot adjust size - 'draggingIdx' is undefined");const D=p.pairs[p.draggingIdx];if(D.size===void 0)throw new Error("Cannot adjust size - 'pair.size' is undefined");if(D.gutterSize===void 0)throw new Error("Cannot adjust size - 'pair.gutterSize' is undefined");const F=D.aSizePct+D.bSizePct,j=z/D.size*F,V=F-z/D.size*F,G=p.draggingIdx===0,K=p.draggingIdx===p.pairs.length-1,{aGutterSize:Y,bGutterSize:J}=bF(D.gutterSize,G,K),ie=`calc(${j}% - ${Y}px)`,ce=`calc(${V}% - ${J}px)`;W===Er.Horizontal?(D.a.style.width=ie,D.b.style.width=ce):(D.a.style.height=ie,D.b.style.height=ce)},[p.draggingIdx,p.pairs,e]),O=de.useCallback((W,z,D)=>{if(!p.isDragging)return;if(p.draggingIdx===void 0)throw new Error("Cannot drag - 'draggingIdx' is undefined");const F=p.pairs[p.draggingIdx];if(F.start===void 0)throw new Error("Cannot drag - 'pair.start' is undefined");if(F.size===void 0)throw new Error("Cannot drag - 'pair.size' is undefined");if(F.gutterSize===void 0)throw new Error("Cannot drag - 'pair.gutterSize' is undefined");let j=function(K,Y){const J=sH(Y)?Y.changedTouches[0]:Y;return K===Er.Horizontal?J.clientX:J.clientY}(z,W)-F.start,V=16,G=16;D.length>p.draggingIdx&&(V=D[p.draggingIdx]),D.length>=p.draggingIdx+1&&(G=D[p.draggingIdx+1]),j=F.size-(F.gutterSize+G)&&(j=F.size-(F.gutterSize+G)),k(z,j)},[p.isDragging,p.draggingIdx,p.pairs,k]),L=()=>{if(p.isDragging){if(p.draggingIdx===void 0)throw new Error("Cannot calculate sizes after dragging = 'state.draggingIdx' is undefined");E(e,p.draggingIdx),x()}},N=W=>{p.isDragging&&(sH(W)&&W.preventDefault(),O(W,e,e===Er.Horizontal?t:n))};function H(W,z){if(!W.current)throw new Error("Can't add element to ref object - ref isn't initialized");z&&!W.current.includes(z)&&W.current.push(z)}return o_("mouseup",L,[p.isDragging,x]),o_("mousemove",N,[e,p.isDragging,O,t,n]),o_("touchend",L,[p.isDragging,x],{condition:TS}),o_("touchmove",N,[e,p.isDragging,O,t,n],{condition:TS,passive:!TS}),R.useEffect(function(){if(!v.current)return;const W=v.current.parentElement;if(!W)return;const z=new ResizeObserver(()=>{const D=getComputedStyle(W),F=e===Er.Horizontal?W.clientWidth:W.clientHeight;_(!!D&&!!F)});return z.observe(W),()=>{z.disconnect()}},[v.current,e]),R.useEffect(function(){if(p.isReady&&(!y.current||y.current[0].offsetParent)){if(!y.current||!S.current)throw new Error("Cannot create pairs - either variable 'childRefs' or 'gutterRefs' is undefined");h.length<=1?I(e,y.current,S.current,r):(I(e,y.current,S.current,r),A(e,y.current,S.current))}},[l,p.isReady,e,I,A,r]),C.jsx("div",Object.assign({className:`__dbk__container ${e}`,ref:v},{children:p.isReady&&h.map((W,z)=>C.jsxs(de.Fragment,{children:[C.jsx("div",Object.assign({ref:D=>H(y,D),className:"__dbk__child-wrapper "+(zH(S,D),className:o,theme:i,draggerClassName:s,direction:e,onDragging:()=>{return E(e,D=z),void b(e,D);var D}},void 0)]},z))}),void 0)}let Mo=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");function ib(e){if(typeof window>"u")return e;const t=R.useRef(null);return R.useLayoutEffect(()=>{t.current=e}),R.useCallback((...n)=>{var r;(r=t.current)===null||r===void 0||r.call(t,...n)},[])}const aH={};function Dwe(e,t){aH[e]||(aH[e]=!0,console.error("[material-ui-popup-state] WARNING",t))}const Lwe={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function Nwe({parentPopupState:e,popupId:t,variant:n,disableAutoFocus:r}){const i=R.useRef(!0);R.useEffect(()=>(i.current=!0,()=>{i.current=!1}),[]);const[o,s]=R.useState(Lwe),l=R.useCallback(b=>{i.current&&s(b)},[]),c=R.useCallback(b=>l(x=>({...x,setAnchorElUsed:!0,anchorEl:b??void 0})),[]),d=ib(b=>(o.isOpen?p(b):f(b),o)),f=ib(b=>{const x=b instanceof Element?void 0:b,E=b instanceof Element?b:(b==null?void 0:b.currentTarget)instanceof Element?b.currentTarget:void 0;if((x==null?void 0:x.type)==="touchstart"){l(L=>({...L,_deferNextOpen:!0}));return}const A=x==null?void 0:x.clientX,I=x==null?void 0:x.clientY,k=typeof A=="number"&&typeof I=="number"?{left:A,top:I}:void 0,O=L=>{if(!b&&!L.setAnchorElUsed&&n!=="dialog"&&Dwe("missingEventOrAnchorEl","eventOrAnchorEl should be defined if setAnchorEl is not used"),e){if(!e.isOpen)return L;setTimeout(()=>e._setChildPopupState(_))}const N={...L,isOpen:!0,anchorPosition:k,hovered:(x==null?void 0:x.type)==="mouseover"||L.hovered,focused:(x==null?void 0:x.type)==="focus"||L.focused,_openEventType:x==null?void 0:x.type};return x!=null&&x.currentTarget?L.setAnchorElUsed||(N.anchorEl=x==null?void 0:x.currentTarget):E&&(N.anchorEl=E),N};l(L=>L._deferNextOpen?(setTimeout(()=>l(O),0),{...L,_deferNextOpen:!1}):O(L))}),h=b=>{const{_childPopupState:x}=b;return setTimeout(()=>{x==null||x.close(),e==null||e._setChildPopupState(null)}),{...b,isOpen:!1,hovered:!1,focused:!1}},p=ib(b=>{const x=b instanceof Element?void 0:b;if((x==null?void 0:x.type)==="touchstart"){l(E=>({...E,_deferNextClose:!0}));return}l(E=>E._deferNextClose?(setTimeout(()=>l(h),0),{...E,_deferNextClose:!1}):h(E))}),g=R.useCallback((b,x)=>{b?f(x):p(x)},[]),v=ib(b=>{const{relatedTarget:x}=b;l(E=>E.hovered&&!(x instanceof Element&&wF(x,_))?E.focused?{...E,hovered:!1}:h(E):E)}),y=ib(b=>{if(!b)return;const{relatedTarget:x}=b;l(E=>E.focused&&!(x instanceof Element&&wF(x,_))?E.hovered?{...E,focused:!1}:h(E):E)}),S=R.useCallback(b=>l(x=>({...x,_childPopupState:b})),[]),_={...o,setAnchorEl:c,popupId:t,variant:n,open:f,close:p,toggle:d,setOpen:g,onBlur:y,onMouseLeave:v,disableAutoFocus:r??!!(o.hovered||o.focused),_setChildPopupState:S};return _}function Bwe({isOpen:e,popupId:t,variant:n}){return{...n==="popover"?{"aria-haspopup":!0,"aria-controls":e&&t!=null?t:void 0}:n==="popper"?{"aria-describedby":e&&t!=null?t:void 0}:void 0}}function dk(e){return{...Bwe(e),onClick:e.open,onTouchStart:e.open}}function rw({isOpen:e,anchorEl:t,anchorPosition:n,close:r,popupId:i,onMouseLeave:o,disableAutoFocus:s,_openEventType:l}){return{id:i,anchorEl:t,anchorPosition:n,anchorReference:l==="contextmenu"?"anchorPosition":"anchorEl",open:e,onClose:r,onMouseLeave:o,...s&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function $we(e,{popupId:t}){if(!t)return null;const n=typeof e.getRootNode=="function"?e.getRootNode():document;return typeof n.getElementById=="function"?n.getElementById(t):null}function wF(e,t){const{anchorEl:n,_childPopupState:r}=t;return lH(n,e)||lH($we(e,t),e)||r!=null&&wF(e,r)}function lH(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}function Ap({children:e,popupId:t,variant:n,parentPopupState:r,disableAutoFocus:i}){const o=Nwe({popupId:t,variant:n,parentPopupState:r,disableAutoFocus:i}),s=e(o);return s??null}Ap.propTypes={children:z0.func.isRequired,popupId:z0.string,variant:z0.oneOf(["popover","popper"]).isRequired,parentPopupState:z0.object,disableAutoFocus:z0.bool};function Fwe({onSplitHorizontal:e,onClose:t,onSplitVertical:n,closeDisabled:r,splitHorizontalDisabled:i,splitVerticalDisabled:o}){return C.jsx(Ap,{variant:"popover",children:s=>C.jsxs(C.Fragment,{children:[C.jsx(Rd,{sx:{m:1},children:C.jsx(Gd,{title:"Panel Options",children:C.jsx(dp,{size:"small",...dk(s),children:C.jsx(uxe,{fontSize:"small"})})})}),C.jsxs(kp,{...rw(s),transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},children:[C.jsxs(du,{onClick:n,disabled:o,children:[C.jsx(xd,{children:C.jsx(P8,{fontSize:"small"})}),C.jsx(zl,{children:"Split Vertical"})]}),C.jsxs(du,{onClick:e,disabled:i,children:[C.jsx(xd,{children:C.jsx(P8,{fontSize:"small",sx:{transform:"rotate(90deg)"}})}),C.jsx(zl,{children:"Split Horizontal"})]}),C.jsx(Au,{}),C.jsxs(du,{onClick:t,disabled:r,children:[C.jsx(xd,{children:C.jsx($K,{fontSize:"small"})}),C.jsx(zl,{children:"Close Panel"})]})]})]})})}function ca(e,t){const n=te.clone(e);return t(n),n}function cH(e,t){return t(te.clone(e))}function Cg(e){return t=>R.createElement(e,{...t,produce:n=>{var r;return(r=t==null?void 0:t.onChange)==null?void 0:r.call(t,i=>ca(i,n))}})}const MQ=R.createContext({});function qd(){return R.useContext(MQ)}function DQ({root:e={type:"leaf",key:""},renderLeaf:t,onChange:n,onClose:r,depth:i=0}){const{palette:o,spacing:s,transitions:l}=Rn(),c=qx({"div&":{background:o.text.secondary,opacity:1-o.action.activatedOpacity,transition:l.create("opacity"),"&.Horizontal":{width:"3px"},"&.Vertical":{height:"3px"}}}),d=qx({"div&":{background:o.background.default,[`&:hover .${c}`]:{opacity:1},"&.Horizontal":{padding:0},"&.Vertical":{padding:0}}}),f=g=>Number(s(g).slice(0,-2));function h(g){const v=100-te.sumBy(g,"size"),y=te.filter(g,S=>!S.size).length;return y?v/y:0}const p=R.useMemo(()=>{const g=v=>n==null?void 0:n(cH(e,y=>({key:Mo(),type:"branch",orientation:v,children:[{...structuredClone(y),size:50,key:Mo()},{...structuredClone(y),size:50,key:Mo()}]})));return e.type==="leaf"?{state:e.content,controls:C.jsx(Fwe,{onClose:r,closeDisabled:!i,onSplitHorizontal:()=>g("horizontal"),onSplitVertical:()=>g("vertical")}),onChange:v=>n==null?void 0:n(ca(e,y=>{y.content={...y.content,...v}}))}:{}},[n,r,i,e]);return C.jsx(C.Fragment,{children:e.type==="leaf"?C.jsx(bn,{children:C.jsx(bn,{sx:{borderRadius:g=>g.spacing(1),overflow:"hidden"},children:C.jsx(MQ.Provider,{value:p,children:t==null?void 0:t(e)})})}):C.jsx(Mwe,{gutterClassName:d,draggerClassName:c,onResizeFinished:(g,v)=>n==null?void 0:n(ca(e,y=>{te.forEach(v,(S,_)=>{y.children[_].size=S})})),minHeights:te.map(e.children,()=>f(6)-8),minWidths:te.map(e.children,()=>f(32)),initialSizes:te.map(e.children,(g,v,y)=>g.size??h(y)),direction:{vertical:Er.Vertical,horizontal:Er.Horizontal}[e.orientation],children:te.map(e.children,(g,v)=>C.jsx(DQ,{depth:i+1,renderLeaf:t,root:g,onChange:y=>n==null?void 0:n(ca(e,S=>S.children[v]=y)),onClose:()=>n==null?void 0:n(cH(e,y=>(y.children.splice(v,1),y.children.length===1?y.children[0].type==="leaf"?{type:"leaf",key:Mo(),content:y.children[0].content}:y.children[0]:(te.forEach(y.children,(S,_,b)=>S.size=100/b.length),y))))},g.key))})})}function Kx(){return Kx=Object.assign||function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}var jwe=["PropTypes"],Uwe=function(t,n){return R.Children.toArray(t).reduce(function(r,i){if(R.isValidElement(i)){var o=i.type.displayName;n!=null&&n.includes(o)&&(r[o]=i.props)}return r},{})},Hwe=function(t,n){var r=R.Children.toArray(t).filter(function(i){if(R.isValidElement(i)){var o=i.type.displayName;return!(n!=null&&n.includes(o))}return!0});return r.length>0?r:void 0},Wwe=function(t){return typeof t=="string"&&!jwe.includes(t)&&t.match(/^[A-Z0-9]/)},Gwe=function(t){var n=R.memo(function(r){var i=r.children,o=r.propagateSlotProps,s=r.slotKeys,l=s===void 0?[]:s,c=zwe(r,["children","propagateSlotProps","slotKeys"]),d=R.useMemo(function(){return Uwe(i,l)},[l,i]),f=R.useMemo(function(){return Hwe(i,l)},[l,i]),h=R.useMemo(function(){return Kx({},c,{slotProps:Kx({},o,d)})},[c,d,o]);return R.createElement(t,h,f)});return n},Vwe=function(t){var n=R.memo(Gwe(t));n.displayName="WithSlots("+(t.displayName||t.name)+")";var r=new Proxy(n,{get:function(o,s,l){var c;if(s in o||typeof s=="symbol"||!Wwe(s))return Reflect.get(o,s,l);var d=((c=Reflect.get(o,"defaultProps"))==null?void 0:c.slotKeys)||[],f=Reflect.get(o,s);if(!f){var h=function(){return null};h.displayName=s,Reflect.set(o,s,h)}return Reflect.set(o,"defaultProps",Kx({},o.defaultProps,{slotKeys:[].concat(d,[s])})),Reflect.get(o,s,l)}});return r};function lz(){const e=Rn();return Fge(e.breakpoints.down("sm"))}const qwe=e=>e?48:36,Xwe=8;function Ywe({trigger:e,items:t,value:n,onChange:r,placeholder:i="Select Option"}){const o=lz(),s=te.max([te.findIndex(t,{value:n}),0])??0;return C.jsx(Ap,{variant:"popover",children:l=>C.jsxs(C.Fragment,{children:[C.jsx(Gd,{title:i,children:C.jsx("span",{children:e==null?void 0:e(dk(l))})}),C.jsx(kp,{...rw(l),anchorOrigin:{horizontal:"center",vertical:-qwe(o)*s-Xwe},transformOrigin:{vertical:"top",horizontal:"center"},children:te.map(t,({value:c,label:d,disabled:f})=>C.jsx(du,{disabled:f,value:c,selected:c===n,onClick:()=>{l.close(),r==null||r(c)},children:d},c))})]})})}function cx(e){const{placeholder:t,value:n,items:r=[],onChange:i}=e;return C.jsx(H1,{sx:{minWidth:120},select:!0,label:t,value:n,variant:"filled",...e,onChange:o=>i==null?void 0:i(o.target.value),children:te.map(r,o=>C.jsx(du,{value:o.value,children:o.label},o.value))})}function Od({children:e,icon:t,showArrow:n,...r}){return C.jsx(j4,{...r,startIcon:t,endIcon:n&&C.jsx(lxe,{sx:{ml:-.5,color:"text.primary",opacity:i=>r.disabled?i.palette.action.disabledOpacity:1}}),children:C.jsx(dt,{sx:{color:"text.primary",opacity:i=>r.disabled?i.palette.action.disabledOpacity:1},children:e})})}function Is({label:e,value:t,onChange:n,items:r,icon:i,showArrow:o,disabled:s,ButtonProps:l}){const c=te.find(r,{id:t});return C.jsx(Ywe,{placeholder:te.startCase(e),trigger:d=>C.jsx(Od,{...d,...l,disabled:!(r!=null&&r.length)||s,icon:i,showArrow:o,children:(c==null?void 0:c.name)??e}),items:te.map(r,({id:d,name:f,description:h,hidden:p})=>({value:d,label:C.jsxs(C.Fragment,{children:[C.jsx(zt,{children:f}),C.jsx(Kr,{}),C.jsx(zt,{variant:"body2",color:"text.secondary",children:h})]}),disabled:p})),value:c==null?void 0:c.id,onChange:n})}const LQ=[{url:"https://cdn.jsdelivr.net/gh/path-visualiser/app@adapter-warthog-wasm-dist/warthog-wasm.mjs",transport:"ipc",key:"default-ipc"}],NQ=[{url:"internal://d2-renderer/",key:"d2-renderer",transport:"native"}],am=1,Kwe={renderer:NQ,remote:LQ,playbackRate:am,theme:"dark",acrylic:!0,accentColor:"blue"},[Ru,Qwe]=Ql({},Yxe("settings",Kwe)),{common:D7e,...Jwe}=hq,Zwe=` +/* ====== */`);const Mwe=de.forwardRef(({className:e,theme:t,draggerClassName:n,direction:r=Er.Vertical,onDragging:i},o)=>{const s=`__dbk__gutter ${r} ${e||t}`,l=`__dbk__dragger ${r} ${n||t}`;return C.jsx("div",Object.assign({className:s,ref:o,dir:r,onMouseDown:i,onTouchStart:kS?i:void 0},{children:C.jsx("div",{className:l},void 0)}),void 0)});var Zs;function wF(e,t,n){let r,i;return t?(r=e/2,i=e):n?(r=e,i=e/2):(r=e,i=e),{aGutterSize:r,bGutterSize:i}}function Dwe(e,t){switch(t.type){case Zs.SetIsReadyToCompute:return Object.assign(Object.assign({},e),{isReady:t.payload.isReady});case Zs.CreatePairs:{const{direction:n,children:r,gutters:i}=t.payload,o=r[0].parentNode;if(!o)throw new Error("Cannot create pairs - parent is undefined.");const s=zE(n,o);if(s===void 0)throw new Error(`Cannot create pairs - parent has undefined or zero size: ${s}.`);const l=[];return r.forEach((c,d)=>{if(d>0){const f=r[d-1],h=r[d],p=i[d-1],g=n===Er.Horizontal?f.getBoundingClientRect().left:f.getBoundingClientRect().top,v=n===Er.Horizontal?h.getBoundingClientRect().right:h.getBoundingClientRect().bottom,y=n===Er.Horizontal?f.getBoundingClientRect().width+p.getBoundingClientRect().width+h.getBoundingClientRect().width:f.getBoundingClientRect().height+p.getBoundingClientRect().height+h.getBoundingClientRect().height,S=n===Er.Horizontal?p.getBoundingClientRect().width:p.getBoundingClientRect().height,_={idx:d-1,a:f,b:h,gutter:p,parent:o,start:g,end:v,size:y,gutterSize:S,aSizePct:100/r.length,bSizePct:100/r.length};l.push(_)}}),Object.assign(Object.assign({},e),{pairs:l})}case Zs.StartDragging:{const{gutterIdx:n}=t.payload;return Object.assign(Object.assign({},e),{isDragging:!0,draggingIdx:n})}case Zs.StopDragging:return Object.assign(Object.assign({},e),{isDragging:!1});case Zs.CalculateSizes:{const{direction:n,gutterIdx:r}=t.payload,i=e.pairs[r],o=zE(n,i.parent);if(!o)throw new Error("Cannot calculate sizes - 'pair.parent' has undefined or zero size.");const s=i.gutter[n===Er.Horizontal?"clientWidth":"clientHeight"],l=r===0,c=r===e.pairs.length-1,{aGutterSize:d,bGutterSize:f}=wF(s,l,c);let h,p,g,v,y;return n===Er.Horizontal?(h=i.a.getBoundingClientRect().left,p=i.b.getBoundingClientRect().right,v=(i.a.getBoundingClientRect().width+d)/o*100,y=(i.b.getBoundingClientRect().width+f)/o*100,g=i.a.getBoundingClientRect().width+d+f+i.b.getBoundingClientRect().width):(h=i.a.getBoundingClientRect().top,p=i.b.getBoundingClientRect().bottom,v=(i.a.getBoundingClientRect().height+d)/o*100,y=(i.b.getBoundingClientRect().height+f)/o*100,g=i.a.getBoundingClientRect().height+d+f+i.b.getBoundingClientRect().height),e.pairs[r]=Object.assign(Object.assign({},i),{start:h,end:p,size:g,aSizePct:v,bSizePct:y,gutterSize:s}),Object.assign({},e)}default:return e}}function BQ(e,t=0,n=[]){return I.Children.toArray(e).reduce((r,i,o)=>(NQ.isFragment(i)?r.push.apply(r,BQ(i.props.children,t+1,n.concat(i.key||o))):I.isValidElement(i)?r.push(I.cloneElement(i,{key:n.concat(String(i.key)).join(".")})):typeof i!="string"&&typeof i!="number"||r.push(i),r),[])}(function(e){e[e.SetIsReadyToCompute=0]="SetIsReadyToCompute",e[e.CreatePairs=1]="CreatePairs",e[e.CalculateSizes=2]="CalculateSizes",e[e.StartDragging=3]="StartDragging",e[e.StopDragging=4]="StopDragging"})(Zs||(Zs={}));const uH=e=>"changedTouches"in e;var Er,_F;(function(e){e.Horizontal="Horizontal",e.Vertical="Vertical"})(Er||(Er={})),function(e){e.Light="Light",e.Dark="Dark"}(_F||(_F={}));const kS=typeof window<"u"&&"ontouchstart"in window;function fL(e){return e===Er.Horizontal?"col-resize":"row-resize"}const Lwe={isReady:!1,isDragging:!1,pairs:[]};function Nwe({direction:e=Er.Horizontal,minWidths:t=[],minHeights:n=[],initialSizes:r,gutterTheme:i=_F.Dark,gutterClassName:o,draggerClassName:s,children:l,onResizeStarted:c,onResizeFinished:d,classes:f=[]}){const h=BQ(l),[p,g]=I.useReducer(Dwe,Lwe),v=I.useRef(null),y=I.useRef([]),S=I.useRef([]);y.current=[],S.current=[];const _=de.useCallback(W=>{g({type:Zs.SetIsReadyToCompute,payload:{isReady:W}})},[]),b=de.useCallback((W,z)=>{g({type:Zs.StartDragging,payload:{gutterIdx:z}});const D=p.pairs[z];c==null||c(D.idx),D.a.style.userSelect="none",D.b.style.userSelect="none",D.gutter.style.cursor=fL(W),D.parent.style.cursor=fL(W),document.body.style.cursor=fL(W)},[p.pairs]),x=de.useCallback(()=>{g({type:Zs.StopDragging});const W=[];for(let D=0;D{g({type:Zs.CalculateSizes,payload:{direction:W,gutterIdx:z}})},[]),A=de.useCallback((W,z,D)=>{g({type:Zs.CreatePairs,payload:{direction:W,children:z,gutters:D}})},[]),R=de.useCallback((W,z,D,F)=>{const j=z[0].parentNode;if(!j)throw new Error("Cannot set initial sizes - parent is undefined");if(zE(W,j)===void 0)throw new Error("Cannot set initial sizes - parent has undefined size");z.forEach((V,G)=>{const K=G===0,Y=G===z.length-1;let J,ie=0;z.length>1&&(ie=D[Y?G-1:G].getBoundingClientRect()[W===Er.Horizontal?"width":"height"],ie=K||Y?ie/2:ie),J=F&&G{if(p.draggingIdx===void 0)throw new Error("Cannot adjust size - 'draggingIdx' is undefined");const D=p.pairs[p.draggingIdx];if(D.size===void 0)throw new Error("Cannot adjust size - 'pair.size' is undefined");if(D.gutterSize===void 0)throw new Error("Cannot adjust size - 'pair.gutterSize' is undefined");const F=D.aSizePct+D.bSizePct,j=z/D.size*F,V=F-z/D.size*F,G=p.draggingIdx===0,K=p.draggingIdx===p.pairs.length-1,{aGutterSize:Y,bGutterSize:J}=wF(D.gutterSize,G,K),ie=`calc(${j}% - ${Y}px)`,ce=`calc(${V}% - ${J}px)`;W===Er.Horizontal?(D.a.style.width=ie,D.b.style.width=ce):(D.a.style.height=ie,D.b.style.height=ce)},[p.draggingIdx,p.pairs,e]),O=de.useCallback((W,z,D)=>{if(!p.isDragging)return;if(p.draggingIdx===void 0)throw new Error("Cannot drag - 'draggingIdx' is undefined");const F=p.pairs[p.draggingIdx];if(F.start===void 0)throw new Error("Cannot drag - 'pair.start' is undefined");if(F.size===void 0)throw new Error("Cannot drag - 'pair.size' is undefined");if(F.gutterSize===void 0)throw new Error("Cannot drag - 'pair.gutterSize' is undefined");let j=function(K,Y){const J=uH(Y)?Y.changedTouches[0]:Y;return K===Er.Horizontal?J.clientX:J.clientY}(z,W)-F.start,V=16,G=16;D.length>p.draggingIdx&&(V=D[p.draggingIdx]),D.length>=p.draggingIdx+1&&(G=D[p.draggingIdx+1]),j=F.size-(F.gutterSize+G)&&(j=F.size-(F.gutterSize+G)),k(z,j)},[p.isDragging,p.draggingIdx,p.pairs,k]),L=()=>{if(p.isDragging){if(p.draggingIdx===void 0)throw new Error("Cannot calculate sizes after dragging = 'state.draggingIdx' is undefined");E(e,p.draggingIdx),x()}},N=W=>{p.isDragging&&(uH(W)&&W.preventDefault(),O(W,e,e===Er.Horizontal?t:n))};function H(W,z){if(!W.current)throw new Error("Can't add element to ref object - ref isn't initialized");z&&!W.current.includes(z)&&W.current.push(z)}return s_("mouseup",L,[p.isDragging,x]),s_("mousemove",N,[e,p.isDragging,O,t,n]),s_("touchend",L,[p.isDragging,x],{condition:kS}),s_("touchmove",N,[e,p.isDragging,O,t,n],{condition:kS,passive:!kS}),I.useEffect(function(){if(!v.current)return;const W=v.current.parentElement;if(!W)return;const z=new ResizeObserver(()=>{const D=getComputedStyle(W),F=e===Er.Horizontal?W.clientWidth:W.clientHeight;_(!!D&&!!F)});return z.observe(W),()=>{z.disconnect()}},[v.current,e]),I.useEffect(function(){if(p.isReady&&(!y.current||y.current[0].offsetParent)){if(!y.current||!S.current)throw new Error("Cannot create pairs - either variable 'childRefs' or 'gutterRefs' is undefined");h.length<=1?R(e,y.current,S.current,r):(R(e,y.current,S.current,r),A(e,y.current,S.current))}},[l,p.isReady,e,R,A,r]),C.jsx("div",Object.assign({className:`__dbk__container ${e}`,ref:v},{children:p.isReady&&h.map((W,z)=>C.jsxs(de.Fragment,{children:[C.jsx("div",Object.assign({ref:D=>H(y,D),className:"__dbk__child-wrapper "+(zH(S,D),className:o,theme:i,draggerClassName:s,direction:e,onDragging:()=>{return E(e,D=z),void b(e,D);var D}},void 0)]},z))}),void 0)}let Mo=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");function ab(e){if(typeof window>"u")return e;const t=I.useRef(null);return I.useLayoutEffect(()=>{t.current=e}),I.useCallback((...n)=>{var r;(r=t.current)===null||r===void 0||r.call(t,...n)},[])}const dH={};function Bwe(e,t){dH[e]||(dH[e]=!0,console.error("[material-ui-popup-state] WARNING",t))}const $we={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function Fwe({parentPopupState:e,popupId:t,variant:n,disableAutoFocus:r}){const i=I.useRef(!0);I.useEffect(()=>(i.current=!0,()=>{i.current=!1}),[]);const[o,s]=I.useState($we),l=I.useCallback(b=>{i.current&&s(b)},[]),c=I.useCallback(b=>l(x=>({...x,setAnchorElUsed:!0,anchorEl:b??void 0})),[]),d=ab(b=>(o.isOpen?p(b):f(b),o)),f=ab(b=>{const x=b instanceof Element?void 0:b,E=b instanceof Element?b:(b==null?void 0:b.currentTarget)instanceof Element?b.currentTarget:void 0;if((x==null?void 0:x.type)==="touchstart"){l(L=>({...L,_deferNextOpen:!0}));return}const A=x==null?void 0:x.clientX,R=x==null?void 0:x.clientY,k=typeof A=="number"&&typeof R=="number"?{left:A,top:R}:void 0,O=L=>{if(!b&&!L.setAnchorElUsed&&n!=="dialog"&&Bwe("missingEventOrAnchorEl","eventOrAnchorEl should be defined if setAnchorEl is not used"),e){if(!e.isOpen)return L;setTimeout(()=>e._setChildPopupState(_))}const N={...L,isOpen:!0,anchorPosition:k,hovered:(x==null?void 0:x.type)==="mouseover"||L.hovered,focused:(x==null?void 0:x.type)==="focus"||L.focused,_openEventType:x==null?void 0:x.type};return x!=null&&x.currentTarget?L.setAnchorElUsed||(N.anchorEl=x==null?void 0:x.currentTarget):E&&(N.anchorEl=E),N};l(L=>L._deferNextOpen?(setTimeout(()=>l(O),0),{...L,_deferNextOpen:!1}):O(L))}),h=b=>{const{_childPopupState:x}=b;return setTimeout(()=>{x==null||x.close(),e==null||e._setChildPopupState(null)}),{...b,isOpen:!1,hovered:!1,focused:!1}},p=ab(b=>{const x=b instanceof Element?void 0:b;if((x==null?void 0:x.type)==="touchstart"){l(E=>({...E,_deferNextClose:!0}));return}l(E=>E._deferNextClose?(setTimeout(()=>l(h),0),{...E,_deferNextClose:!1}):h(E))}),g=I.useCallback((b,x)=>{b?f(x):p(x)},[]),v=ab(b=>{const{relatedTarget:x}=b;l(E=>E.hovered&&!(x instanceof Element&&SF(x,_))?E.focused?{...E,hovered:!1}:h(E):E)}),y=ab(b=>{if(!b)return;const{relatedTarget:x}=b;l(E=>E.focused&&!(x instanceof Element&&SF(x,_))?E.hovered?{...E,focused:!1}:h(E):E)}),S=I.useCallback(b=>l(x=>({...x,_childPopupState:b})),[]),_={...o,setAnchorEl:c,popupId:t,variant:n,open:f,close:p,toggle:d,setOpen:g,onBlur:y,onMouseLeave:v,disableAutoFocus:r??!!(o.hovered||o.focused),_setChildPopupState:S};return _}function zwe({isOpen:e,popupId:t,variant:n}){return{...n==="popover"?{"aria-haspopup":!0,"aria-controls":e&&t!=null?t:void 0}:n==="popper"?{"aria-describedby":e&&t!=null?t:void 0}:void 0}}function hk(e){return{...zwe(e),onClick:e.open,onTouchStart:e.open}}function ow({isOpen:e,anchorEl:t,anchorPosition:n,close:r,popupId:i,onMouseLeave:o,disableAutoFocus:s,_openEventType:l}){return{id:i,anchorEl:t,anchorPosition:n,anchorReference:l==="contextmenu"?"anchorPosition":"anchorEl",open:e,onClose:r,onMouseLeave:o,...s&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function jwe(e,{popupId:t}){if(!t)return null;const n=typeof e.getRootNode=="function"?e.getRootNode():document;return typeof n.getElementById=="function"?n.getElementById(t):null}function SF(e,t){const{anchorEl:n,_childPopupState:r}=t;return fH(n,e)||fH(jwe(e,t),e)||r!=null&&SF(e,r)}function fH(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}function Ip({children:e,popupId:t,variant:n,parentPopupState:r,disableAutoFocus:i}){const o=Fwe({popupId:t,variant:n,parentPopupState:r,disableAutoFocus:i}),s=e(o);return s??null}Ip.propTypes={children:H0.func.isRequired,popupId:H0.string,variant:H0.oneOf(["popover","popper"]).isRequired,parentPopupState:H0.object,disableAutoFocus:H0.bool};function Uwe({onSplitHorizontal:e,onClose:t,onSplitVertical:n,closeDisabled:r,splitHorizontalDisabled:i,splitVerticalDisabled:o}){return C.jsx(Ip,{variant:"popover",children:s=>C.jsxs(C.Fragment,{children:[C.jsx(Od,{sx:{m:1},children:C.jsx(qd,{title:"Panel Options",children:C.jsx(fp,{size:"small",...hk(s),children:C.jsx(pxe,{fontSize:"small"})})})}),C.jsxs(Rp,{...ow(s),transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},children:[C.jsxs(hu,{onClick:n,disabled:o,children:[C.jsx(fu,{children:C.jsx(L8,{fontSize:"small"})}),C.jsx(ol,{children:"Split Vertical"})]}),C.jsxs(hu,{onClick:e,disabled:i,children:[C.jsx(fu,{children:C.jsx(L8,{fontSize:"small",sx:{transform:"rotate(90deg)"}})}),C.jsx(ol,{children:"Split Horizontal"})]}),C.jsx(Iu,{}),C.jsxs(hu,{onClick:t,disabled:r,children:[C.jsx(fu,{children:C.jsx(HK,{fontSize:"small"})}),C.jsx(ol,{children:"Close Panel"})]})]})]})})}function ua(e,t){const n=te.clone(e);return t(n),n}function hH(e,t){return t(te.clone(e))}function Tg(e){return t=>I.createElement(e,{...t,produce:n=>{var r;return(r=t==null?void 0:t.onChange)==null?void 0:r.call(t,i=>ua(i,n))}})}const $Q=I.createContext({});function Ou(){return I.useContext($Q)}function FQ({root:e={type:"leaf",key:""},renderLeaf:t,onChange:n,onClose:r,depth:i=0}){const{palette:o,spacing:s,transitions:l}=Pn(),c=Kx({"div&":{background:o.text.secondary,opacity:1-o.action.activatedOpacity,transition:l.create("opacity"),"&.Horizontal":{width:"3px"},"&.Vertical":{height:"3px"}}}),d=Kx({"div&":{background:o.background.default,[`&:hover .${c}`]:{opacity:1},"&.Horizontal":{padding:0},"&.Vertical":{padding:0}}}),f=g=>Number(s(g).slice(0,-2));function h(g){const v=100-te.sumBy(g,"size"),y=te.filter(g,S=>!S.size).length;return y?v/y:0}const p=I.useMemo(()=>{const g=v=>n==null?void 0:n(hH(e,y=>({key:Mo(),type:"branch",orientation:v,children:[{...structuredClone(y),size:50,key:Mo()},{...structuredClone(y),size:50,key:Mo()}]})));return e.type==="leaf"?{state:e.content,controls:C.jsx(Uwe,{onClose:r,closeDisabled:!i,onSplitHorizontal:()=>g("horizontal"),onSplitVertical:()=>g("vertical")}),onChange:v=>n==null?void 0:n(ua(e,y=>{y.content={...y.content,...v}}))}:{}},[n,r,i,e]);return C.jsx(C.Fragment,{children:e.type==="leaf"?C.jsx(gn,{children:C.jsx(gn,{sx:{borderRadius:g=>g.spacing(1),overflow:"hidden"},children:C.jsx($Q.Provider,{value:p,children:t==null?void 0:t(e)})})}):C.jsx(Nwe,{gutterClassName:d,draggerClassName:c,onResizeFinished:(g,v)=>n==null?void 0:n(ua(e,y=>{te.forEach(v,(S,_)=>{y.children[_].size=S})})),minHeights:te.map(e.children,()=>f(6)-8),minWidths:te.map(e.children,()=>f(32)),initialSizes:te.map(e.children,(g,v,y)=>g.size??h(y)),direction:{vertical:Er.Vertical,horizontal:Er.Horizontal}[e.orientation],children:te.map(e.children,(g,v)=>C.jsx(FQ,{depth:i+1,renderLeaf:t,root:g,onChange:y=>n==null?void 0:n(ua(e,S=>S.children[v]=y)),onClose:()=>n==null?void 0:n(hH(e,y=>(y.children.splice(v,1),y.children.length===1?y.children[0].type==="leaf"?{type:"leaf",key:Mo(),content:y.children[0].content}:y.children[0]:(te.forEach(y.children,(S,_,b)=>S.size=100/b.length),y))))},g.key))})})}function Zx(){return Zx=Object.assign||function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}var Wwe=["PropTypes"],Gwe=function(t,n){return I.Children.toArray(t).reduce(function(r,i){if(I.isValidElement(i)){var o=i.type.displayName;n!=null&&n.includes(o)&&(r[o]=i.props)}return r},{})},Vwe=function(t,n){var r=I.Children.toArray(t).filter(function(i){if(I.isValidElement(i)){var o=i.type.displayName;return!(n!=null&&n.includes(o))}return!0});return r.length>0?r:void 0},qwe=function(t){return typeof t=="string"&&!Wwe.includes(t)&&t.match(/^[A-Z0-9]/)},Xwe=function(t){var n=I.memo(function(r){var i=r.children,o=r.propagateSlotProps,s=r.slotKeys,l=s===void 0?[]:s,c=Hwe(r,["children","propagateSlotProps","slotKeys"]),d=I.useMemo(function(){return Gwe(i,l)},[l,i]),f=I.useMemo(function(){return Vwe(i,l)},[l,i]),h=I.useMemo(function(){return Zx({},c,{slotProps:Zx({},o,d)})},[c,d,o]);return I.createElement(t,h,f)});return n},Ywe=function(t){var n=I.memo(Xwe(t));n.displayName="WithSlots("+(t.displayName||t.name)+")";var r=new Proxy(n,{get:function(o,s,l){var c;if(s in o||typeof s=="symbol"||!qwe(s))return Reflect.get(o,s,l);var d=((c=Reflect.get(o,"defaultProps"))==null?void 0:c.slotKeys)||[],f=Reflect.get(o,s);if(!f){var h=function(){return null};h.displayName=s,Reflect.set(o,s,h)}return Reflect.set(o,"defaultProps",Zx({},o.defaultProps,{slotKeys:[].concat(d,[s])})),Reflect.get(o,s,l)}});return r};function dz(){const e=Pn();return Hge(e.breakpoints.down("sm"))}const Kwe=e=>e?48:36,Qwe=8;function Jwe({trigger:e,items:t,value:n,onChange:r,placeholder:i="Select Option"}){const o=dz(),s=te.max([te.findIndex(t,{value:n}),0])??0;return C.jsx(Ip,{variant:"popover",children:l=>C.jsxs(C.Fragment,{children:[C.jsx(qd,{title:i,children:C.jsx("span",{children:e==null?void 0:e(hk(l))})}),C.jsx(Rp,{...ow(l),anchorOrigin:{horizontal:"center",vertical:-Kwe(o)*s-Qwe},transformOrigin:{vertical:"top",horizontal:"center"},children:te.map(t,({value:c,label:d,disabled:f})=>C.jsx(hu,{disabled:f,value:c,selected:c===n,onClick:()=>{l.close(),r==null||r(c)},children:d},c))})]})})}function fx(e){const{placeholder:t,value:n,items:r=[],onChange:i}=e;return C.jsx(V1,{sx:{minWidth:120},select:!0,label:t,value:n,variant:"filled",...e,onChange:o=>i==null?void 0:i(o.target.value),children:te.map(r,o=>C.jsx(hu,{value:o.value,children:o.label},o.value))})}function Dd({children:e,icon:t,showArrow:n,...r}){return C.jsx(H4,{...r,startIcon:t,endIcon:n&&C.jsx(fxe,{sx:{ml:-.5,color:"text.primary",opacity:i=>r.disabled?i.palette.action.disabledOpacity:1}}),children:C.jsx(lt,{sx:{color:"text.primary",opacity:i=>r.disabled?i.palette.action.disabledOpacity:1},children:e})})}function Rs({label:e,value:t,onChange:n,items:r,icon:i,showArrow:o,disabled:s,ButtonProps:l}){const c=te.find(r,{id:t});return C.jsx(Jwe,{placeholder:te.startCase(e),trigger:d=>C.jsx(Dd,{...d,...l,disabled:!(r!=null&&r.length)||s,icon:i,showArrow:o,children:(c==null?void 0:c.name)??e}),items:te.map(r,({id:d,name:f,description:h,hidden:p})=>({value:d,label:C.jsxs(C.Fragment,{children:[C.jsx(Lt,{children:f}),C.jsx(Kr,{}),C.jsx(Lt,{variant:"body2",color:"text.secondary",children:h})]}),disabled:p})),value:c==null?void 0:c.id,onChange:n})}const zQ=[{url:"https://cdn.jsdelivr.net/gh/path-visualiser/app@adapter-warthog-wasm-dist/warthog-wasm.mjs",transport:"ipc",key:"default-ipc"}],jQ=[{url:"internal://d2-renderer/",key:"d2-renderer",transport:"native"}],cm=1,Zwe={renderer:jQ,remote:zQ,playbackRate:cm,theme:"dark",acrylic:!0,accentColor:"blue"},[Mu,e_e]=Jl({},Jxe("settings",Zwe)),{common:j7e,...t_e}=yq,n_e=` 0px 8px 18px -1px rgb(0 0 0 / 8%), 0px 10px 48px 0px rgb(0 0 0 / 1%), 0px 20px 96px 0px rgb(0 0 0 / 0.5%) -`,uH=`"Inter", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", - "Droid Sans", "Helvetica Neue", "Arial", sans-serif`,e_e=(e,t)=>N5({palette:{primary:{main:hq[t][e==="dark"?"A100":"A700"]},mode:e,background:e==="dark"?{default:"#1c2128",paper:"#22272e"}:{default:"#f6f8fa",paper:"#ffffff"}},typography:{allVariants:{fontFamily:uH},button:{textTransform:"none",fontWeight:400,letterSpacing:0,backgroundColor:"background.paper"}},components:{MuiPopover:{styleOverrides:{paper:{backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06))"}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundImage:"linear-gradient(#1c2128, #1c2128)",fontFamily:uH}}},MuiTypography:{styleOverrides:{body1:{fontWeight:400,fontSize:"0.875rem"},overline:{fontWeight:400,textTransform:"none",letterSpacing:0,fontSize:"0.875rem"},h6:{fontWeight:500,letterSpacing:-.4}}}},shadows:["",...te.times(24,te.constant(Zwe))]});function cz(){const[{acrylic:e}]=Ru();return e?{backdropFilter:"blur(10px)",background:({palette:t})=>_n(t.background.paper,.75)}:{backdropFilter:"blur(0px)",background:({palette:t})=>t.background.paper}}const t_e=C.jsx(Au,{orientation:"vertical",flexItem:!0,sx:{m:1,height:e=>e.spacing(3),alignSelf:"auto"}}),Ln=Vwe(({slotProps:e,onChange:t,stack:n})=>{var i,o,s,l;const r=cz();return C.jsxs(bn,{vertical:!0,children:[C.jsx(bn,{sx:{position:"absolute",top:0,left:0,width:"100%"},children:C.jsx(hp,{in:!0,children:C.jsx(dt,{sx:{width:"100%",height:"100%",bgcolor:"background.paper"},children:(i=e.Content)==null?void 0:i.children})})}),C.jsxs(bn,{sx:{height:c=>c.spacing(6)},children:[C.jsx(bn,{sx:{p:0,position:"absolute",top:0,left:0,width:"100%",borderBottom:1,borderColor:"divider",alignItems:"center",pr:6,...r},children:C.jsx(q1,{x:!0,children:C.jsxs(bn,{sx:{width:"max-content",height:c=>c.spacing(6),alignItems:"center",p:1},children:[C.jsx(Is,{showArrow:!0,label:"Page",onChange:c=>t==null?void 0:t({...n,type:c}),icon:(o=u5[n.type])==null?void 0:o.icon,value:n==null?void 0:n.type,items:te.values(u5)}),((s=e.Options)==null?void 0:s.children)&&C.jsxs(C.Fragment,{children:[t_e,e.Options.children]})]})})}),C.jsx(Kr,{sx:{mx:"auto"}}),(l=e.Extras)==null?void 0:l.children]})]})}),BQ=""+new URL("logo512-23eace97.png",import.meta.url).href,_F="Visualiser",n_e="1.1.0",r_e="1.1.0; mid November 2023",i_e="https://github.com/path-visualiser/app",o_e="https://github.com/path-visualiser/app/blob/master/docs",s_e=[{name:"Dr Daniel Harabor",email:"daniel.harabor@monash.edu"},{name:"Dr Michael Wybrow",email:"michael.wybrow@monash.edu"},{name:"Karan Batta",email:"krnbatta@gmail.com"},{name:"Jay Wingate",email:"jaypeterwingate@gmail.com"},{name:"Kevin Zheng",email:"kzhe0012@student.monash.edu"},{name:"Leo Whitehead",email:"leo@whiteheadsoftware.dev"},{name:"Can Wang",email:"camwang@outlook.com"},{name:"Rory Tobin-Underwood",email:"rorytu@gmail.com"}];function a_e(){const{controls:e,onChange:t,state:n}=qd();function r(i,o){return C.jsxs(dt,{sx:{pt:2},children:[C.jsx(zt,{variant:"overline",color:"text.secondary",children:i}),C.jsx(zt,{variant:"body2",children:o})]})}return C.jsxs(Ln,{onChange:t,stack:n,children:[C.jsx(Ln.Content,{children:C.jsxs(bn,{children:[" ",C.jsx(q1,{y:!0,children:C.jsxs(dt,{sx:{p:2},children:[C.jsx(dt,{sx:{pt:6,pb:2},children:C.jsx("img",{src:BQ,height:"64"})}),C.jsx(zt,{variant:"h6",children:_F}),r("Build Info",C.jsx(C.Fragment,{children:r_e})),r("About this App",C.jsxs(C.Fragment,{children:[_F," is a visualising debugging tool for pathfinding search. It can be used to visualise progression of search and debug pathfinding algorithms. It can handle range of different types of algorithms (demos are provided in the home page). This tool is highly customizable and provide flexibility to visualise any algorithm trace that you can augment using our docs."]})),r("Team",C.jsxs(C.Fragment,{children:["Our team is made up of present/past Monash students and Professors Dr Daniel Harabor:",C.jsx(wg,{sx:{mx:-2},children:s_e.map(({name:i,email:o},s)=>C.jsxs(aF,{href:`mailto:${o}`,children:[C.jsx(zve,{children:C.jsx(Epe,{children:te.head(i)})}),C.jsx(zl,{primary:i,secondary:o})]},s))})]})),r("Resources",C.jsx(C.Fragment,{children:C.jsx(wg,{sx:{mx:-2},children:C.jsxs(aF,{target:"_blank",href:"https://github.com/path-visualiser",children:[C.jsx(xd,{children:C.jsx(oxe,{})}),C.jsx(zl,{primary:"Repository",secondary:"https://github.com/path-visualiser"})]})})}))]})})]})}),C.jsx(Ln.Extras,{children:e})]})}const $Q=R.createContext(null);function l_e(){const[e,t]=R.useState(null);return R.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function FQ(e){const{children:t,value:n}=e,r=l_e(),i=R.useMemo(()=>({idPrefix:r,value:n}),[r,n]);return C.jsx($Q.Provider,{value:i,children:t})}function zQ(){return R.useContext($Q)}function jQ(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function UQ(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}const c_e=["children"],u_e=R.forwardRef(function(t,n){const{children:r}=t,i=Le(t,c_e),o=zQ();if(o===null)throw new TypeError("No TabContext provided");const s=R.Children.map(r,l=>R.isValidElement(l)?R.cloneElement(l,{"aria-controls":jQ(o,l.props.value),id:UQ(o,l.props.value)}):null);return C.jsx(Fbe,$({},i,{ref:n,value:o.value,children:s}))}),HQ=u_e;function d_e(e){return St("MuiTabPanel",e)}kt("MuiTabPanel",["root"]);const f_e=["children","className","value"],h_e=e=>{const{classes:t}=e;return Tt({root:["root"]},d_e,t)},p_e=Ee("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),m_e=R.forwardRef(function(t,n){const r=At({props:t,name:"MuiTabPanel"}),{children:i,className:o,value:s}=r,l=Le(r,f_e),c=$({},r),d=h_e(c),f=zQ();if(f===null)throw new TypeError("No TabContext provided");const h=jQ(f,s),p=UQ(f,s);return C.jsx(p_e,$({"aria-labelledby":p,className:je(d.root,o),hidden:s!==f.value,id:h,ref:n,role:"tabpanel",ownerState:c},l,{children:s===f.value&&i}))}),Dm=m_e;var WQ={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(WQ);var uz=WQ.exports;function SF({label:e=C.jsx(C.Fragment,{}),...t}){return C.jsx(bge,{control:C.jsx(_g,{defaultChecked:!0,...t}),label:e})}function g_e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fH(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function y_e(e,t){if(e==null)return{};var n=v_e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function b_e(e,t){return x_e(e)||w_e(e,t)||__e(e,t)||S_e()}function x_e(e){if(Array.isArray(e))return e}function w_e(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),l;!(r=(l=s.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,o=c}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function __e(e,t){if(e){if(typeof e=="string")return hH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hH(e,t)}}function hH(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?e.apply(this,i):function(){for(var s=arguments.length,l=new Array(s),c=0;c1&&arguments[1]!==void 0?arguments[1]:{};s_.initial(e),s_.handler(t);var n={current:e},r=Ob(B_e)(n,t),i=Ob(N_e)(n),o=Ob(s_.changes)(e),s=Ob(L_e)(n);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return s_.selector(d),d(n.current)}function c(d){C_e(r,i,o,s)(d)}return[l,c]}function L_e(e,t){return Qx(t)?t(e.current):t}function N_e(e,t){return e.current=mH(mH({},e.current),t),t}function B_e(e,t,n){return Qx(t)?t(e.current):Object.keys(n).forEach(function(r){var i;return(i=t[r])===null||i===void 0?void 0:i.call(t,e.current[r])}),n}var $_e={create:D_e},F_e={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs"}};function z_e(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o=e.length?e.apply(this,i):function(){for(var s=arguments.length,l=new Array(s),c=0;c$5({palette:{primary:{main:yq[t][e==="dark"?"A100":"A700"]},mode:e,background:e==="dark"?{default:"#1c2128",paper:"#22272e"}:{default:"#f6f8fa",paper:"#ffffff"}},typography:{allVariants:{fontFamily:pH},button:{textTransform:"none",fontWeight:400,letterSpacing:0,backgroundColor:"background.paper"}},components:{MuiPopover:{styleOverrides:{paper:{backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06))"}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundImage:"linear-gradient(#1c2128, #1c2128)",fontFamily:pH}}},MuiTypography:{styleOverrides:{body1:{fontWeight:400,fontSize:"0.875rem"},overline:{fontWeight:400,textTransform:"none",letterSpacing:0,fontSize:"0.875rem"},h6:{fontWeight:500,letterSpacing:-.4}}}},shadows:["",...te.times(24,te.constant(n_e))]});function fz(){const[{acrylic:e}]=Mu();return e?{backdropFilter:"blur(10px)",background:({palette:t})=>_n(t.background.paper,.75)}:{backdropFilter:"blur(0px)",background:({palette:t})=>t.background.paper}}const i_e=C.jsx(Iu,{orientation:"vertical",flexItem:!0,sx:{m:1,height:e=>e.spacing(3),alignSelf:"auto"}}),Sn=Ywe(({slotProps:e,onChange:t,stack:n})=>{var i,o,s,l;const r=fz();return C.jsxs(gn,{vertical:!0,children:[C.jsx(gn,{sx:{position:"absolute",top:0,left:0,width:"100%"},children:C.jsx(pp,{in:!0,children:C.jsx(lt,{sx:{width:"100%",height:"100%",bgcolor:"background.paper"},children:(i=e.Content)==null?void 0:i.children})})}),C.jsxs(gn,{sx:{height:c=>c.spacing(6)},children:[C.jsx(gn,{sx:{p:0,position:"absolute",top:0,left:0,width:"100%",borderBottom:1,borderColor:"divider",alignItems:"center",pr:6,...r},children:C.jsx(Zg,{x:!0,children:C.jsxs(gn,{sx:{width:"max-content",height:c=>c.spacing(6),alignItems:"center",p:1},children:[C.jsx(Rs,{showArrow:!0,label:"Page",onChange:c=>t==null?void 0:t({...n,type:c}),icon:(o=h5[n.type])==null?void 0:o.icon,value:n==null?void 0:n.type,items:te.values(h5)}),((s=e.Options)==null?void 0:s.children)&&C.jsxs(C.Fragment,{children:[i_e,e.Options.children]})]})})}),C.jsx(Kr,{sx:{mx:"auto"}}),(l=e.Extras)==null?void 0:l.children]})]})}),UQ=""+new URL("logo512-23eace97.png",import.meta.url).href,EF="Visualiser",o_e="1.1.0",s_e="1.1.0; mid November 2023",a_e="https://github.com/path-visualiser/app",l_e="https://github.com/path-visualiser/app/blob/master/docs",c_e=[{name:"Dr Daniel Harabor",email:"daniel.harabor@monash.edu"},{name:"Dr Michael Wybrow",email:"michael.wybrow@monash.edu"},{name:"Karan Batta",email:"krnbatta@gmail.com"},{name:"Jay Wingate",email:"jaypeterwingate@gmail.com"},{name:"Kevin Zheng",email:"kzhe0012@student.monash.edu"},{name:"Leo Whitehead",email:"leo@whiteheadsoftware.dev"},{name:"Can Wang",email:"camwang@outlook.com"},{name:"Rory Tobin-Underwood",email:"rorytu@gmail.com"}];function u_e(){const{controls:e,onChange:t,state:n}=Ou();function r(i,o){return C.jsxs(lt,{sx:{pt:2},children:[C.jsx(Lt,{variant:"overline",color:"text.secondary",children:i}),C.jsx(Lt,{variant:"body2",children:o})]})}return C.jsxs(Sn,{onChange:t,stack:n,children:[C.jsx(Sn.Content,{children:C.jsxs(gn,{children:[" ",C.jsx(Zg,{y:!0,children:C.jsxs(lt,{sx:{p:2},children:[C.jsx(lt,{sx:{pt:6,pb:2},children:C.jsx("img",{src:UQ,height:"64"})}),C.jsx(Lt,{variant:"h6",children:EF}),r("Build Info",C.jsx(C.Fragment,{children:s_e})),r("About this App",C.jsxs(C.Fragment,{children:[EF," is a visualising debugging tool for pathfinding search. It can be used to visualise progression of search and debug pathfinding algorithms. It can handle range of different types of algorithms (demos are provided in the home page). This tool is highly customizable and provide flexibility to visualise any algorithm trace that you can augment using our docs."]})),r("Team",C.jsxs(C.Fragment,{children:["Our team is made up of present/past Monash students and Professors Dr Daniel Harabor:",C.jsx(mp,{sx:{mx:-2},children:c_e.map(({name:i,email:o},s)=>C.jsxs(IE,{href:`mailto:${o}`,children:[C.jsx(Wve,{children:C.jsx(Ape,{children:te.head(i)})}),C.jsx(ol,{primary:i,secondary:o})]},s))})]})),r("Resources",C.jsx(C.Fragment,{children:C.jsx(mp,{sx:{mx:-2},children:C.jsxs(IE,{target:"_blank",href:"https://github.com/path-visualiser",children:[C.jsx(fu,{children:C.jsx(cxe,{})}),C.jsx(ol,{primary:"Repository",secondary:"https://github.com/path-visualiser"})]})})}))]})})]})}),C.jsx(Sn.Extras,{children:e})]})}const HQ=I.createContext(null);function d_e(){const[e,t]=I.useState(null);return I.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function WQ(e){const{children:t,value:n}=e,r=d_e(),i=I.useMemo(()=>({idPrefix:r,value:n}),[r,n]);return C.jsx(HQ.Provider,{value:i,children:t})}function GQ(){return I.useContext(HQ)}function VQ(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function qQ(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}const f_e=["children"],h_e=I.forwardRef(function(t,n){const{children:r}=t,i=Le(t,f_e),o=GQ();if(o===null)throw new TypeError("No TabContext provided");const s=I.Children.map(r,l=>I.isValidElement(l)?I.cloneElement(l,{"aria-controls":VQ(o,l.props.value),id:qQ(o,l.props.value)}):null);return C.jsx(Hbe,$({},i,{ref:n,value:o.value,children:s}))}),XQ=h_e;function p_e(e){return St("MuiTabPanel",e)}kt("MuiTabPanel",["root"]);const m_e=["children","className","value"],g_e=e=>{const{classes:t}=e;return Tt({root:["root"]},p_e,t)},v_e=Ee("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),y_e=I.forwardRef(function(t,n){const r=At({props:t,name:"MuiTabPanel"}),{children:i,className:o,value:s}=r,l=Le(r,m_e),c=$({},r),d=g_e(c),f=GQ();if(f===null)throw new TypeError("No TabContext provided");const h=VQ(f,s),p=qQ(f,s);return C.jsx(v_e,$({"aria-labelledby":p,className:je(d.root,o),hidden:s!==f.value,id:h,ref:n,role:"tabpanel",ownerState:c},l,{children:s===f.value&&i}))}),Nm=y_e;var YQ={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(YQ);var hz=YQ.exports;function CF({label:e=C.jsx(C.Fragment,{}),...t}){return C.jsx(Sge,{control:C.jsx(Sg,{defaultChecked:!0,...t}),label:e})}function b_e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gH(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function w_e(e,t){if(e==null)return{};var n=x_e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function __e(e,t){return S_e(e)||E_e(e,t)||C_e(e,t)||T_e()}function S_e(e){if(Array.isArray(e))return e}function E_e(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),l;!(r=(l=s.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,o=c}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function C_e(e,t){if(e){if(typeof e=="string")return vH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vH(e,t)}}function vH(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?e.apply(this,i):function(){for(var s=arguments.length,l=new Array(s),c=0;c1&&arguments[1]!==void 0?arguments[1]:{};a_.initial(e),a_.handler(t);var n={current:e},r=Lb(z_e)(n,t),i=Lb(F_e)(n),o=Lb(a_.changes)(e),s=Lb($_e)(n);function l(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return a_.selector(d),d(n.current)}function c(d){A_e(r,i,o,s)(d)}return[l,c]}function $_e(e,t){return e1(t)?t(e.current):t}function F_e(e,t){return e.current=bH(bH({},e.current),t),t}function z_e(e,t,n){return e1(t)?t(e.current):Object.keys(n).forEach(function(r){var i;return(i=t[r])===null||i===void 0?void 0:i.call(t,e.current[r])}),n}var j_e={create:B_e},U_e={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs"}};function H_e(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o=e.length?e.apply(this,i):function(){for(var s=arguments.length,l=new Array(s),c=0;c{r.current=!1}:e,t)}var bs=dSe;function ux(){}function Lm(e,t,n,r){return fSe(e,r)||hSe(e,t,n,r)}function fSe(e,t){return e.editor.getModel(JQ(e,t))}function hSe(e,t,n,r){return e.editor.createModel(t,n,r?JQ(e,r):void 0)}function JQ(e,t){return e.Uri.parse(t)}function pSe({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:s,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:c=!1,theme:d="light",loading:f="Loading...",options:h={},height:p="100%",width:g="100%",className:v,wrapperProps:y={},beforeMount:S=ux,onMount:_=ux}){let[b,x]=R.useState(!1),[E,A]=R.useState(!0),I=R.useRef(null),k=R.useRef(null),O=R.useRef(null),L=R.useRef(_),N=R.useRef(S),H=R.useRef(!1);QQ(()=>{let F=YQ.init();return F.then(j=>(k.current=j)&&A(!1)).catch(j=>(j==null?void 0:j.type)!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>I.current?D():F.cancel()}),bs(()=>{if(I.current&&k.current){let F=I.current.getOriginalEditor(),j=Lm(k.current,e||"",r||n||"text",o||"");j!==F.getModel()&&F.setModel(j)}},[o],b),bs(()=>{if(I.current&&k.current){let F=I.current.getModifiedEditor(),j=Lm(k.current,t||"",i||n||"text",s||"");j!==F.getModel()&&F.setModel(j)}},[s],b),bs(()=>{let F=I.current.getModifiedEditor();F.getOption(k.current.editor.EditorOption.readOnly)?F.setValue(t||""):t!==F.getValue()&&(F.executeEdits("",[{range:F.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),F.pushUndoStop())},[t],b),bs(()=>{var F,j;(j=(F=I.current)==null?void 0:F.getModel())==null||j.original.setValue(e||"")},[e],b),bs(()=>{let{original:F,modified:j}=I.current.getModel();k.current.editor.setModelLanguage(F,r||n||"text"),k.current.editor.setModelLanguage(j,i||n||"text")},[n,r,i],b),bs(()=>{var F;(F=k.current)==null||F.editor.setTheme(d)},[d],b),bs(()=>{var F;(F=I.current)==null||F.updateOptions(h)},[h],b);let W=R.useCallback(()=>{var V;if(!k.current)return;N.current(k.current);let F=Lm(k.current,e||"",r||n||"text",o||""),j=Lm(k.current,t||"",i||n||"text",s||"");(V=I.current)==null||V.setModel({original:F,modified:j})},[n,t,i,e,r,o,s]),z=R.useCallback(()=>{var F;!H.current&&O.current&&(I.current=k.current.editor.createDiffEditor(O.current,{automaticLayout:!0,...h}),W(),(F=k.current)==null||F.editor.setTheme(d),x(!0),H.current=!0)},[h,d,W]);R.useEffect(()=>{b&&L.current(I.current,k.current)},[b]),R.useEffect(()=>{!E&&!b&&z()},[E,b,z]);function D(){var j,V,G,K;let F=(j=I.current)==null?void 0:j.getModel();l||((V=F==null?void 0:F.original)==null||V.dispose()),c||((G=F==null?void 0:F.modified)==null||G.dispose()),(K=I.current)==null||K.dispose()}return de.createElement(KQ,{width:g,height:p,isEditorReady:b,loading:f,_ref:O,className:v,wrapperProps:y})}var mSe=pSe;R.memo(mSe);function gSe(e){let t=R.useRef();return R.useEffect(()=>{t.current=e},[e]),t.current}var vSe=gSe,a_=new Map;function ySe({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:o,theme:s="light",line:l,loading:c="Loading...",options:d={},overrideServices:f={},saveViewState:h=!0,keepCurrentModel:p=!1,width:g="100%",height:v="100%",className:y,wrapperProps:S={},beforeMount:_=ux,onMount:b=ux,onChange:x,onValidate:E=ux}){let[A,I]=R.useState(!1),[k,O]=R.useState(!0),L=R.useRef(null),N=R.useRef(null),H=R.useRef(null),W=R.useRef(b),z=R.useRef(_),D=R.useRef(),F=R.useRef(r),j=vSe(o),V=R.useRef(!1),G=R.useRef(!1);QQ(()=>{let J=YQ.init();return J.then(ie=>(L.current=ie)&&O(!1)).catch(ie=>(ie==null?void 0:ie.type)!=="cancelation"&&console.error("Monaco initialization: error:",ie)),()=>N.current?Y():J.cancel()}),bs(()=>{var ie,ce,ue,se;let J=Lm(L.current,e||r||"",t||i||"",o||n||"");J!==((ie=N.current)==null?void 0:ie.getModel())&&(h&&a_.set(j,(ce=N.current)==null?void 0:ce.saveViewState()),(ue=N.current)==null||ue.setModel(J),h&&((se=N.current)==null||se.restoreViewState(a_.get(o))))},[o],A),bs(()=>{var J;(J=N.current)==null||J.updateOptions(d)},[d],A),bs(()=>{!N.current||r===void 0||(N.current.getOption(L.current.editor.EditorOption.readOnly)?N.current.setValue(r):r!==N.current.getValue()&&(G.current=!0,N.current.executeEdits("",[{range:N.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),N.current.pushUndoStop(),G.current=!1))},[r],A),bs(()=>{var ie,ce;let J=(ie=N.current)==null?void 0:ie.getModel();J&&i&&((ce=L.current)==null||ce.editor.setModelLanguage(J,i))},[i],A),bs(()=>{var J;l!==void 0&&((J=N.current)==null||J.revealLine(l))},[l],A),bs(()=>{var J;(J=L.current)==null||J.editor.setTheme(s)},[s],A);let K=R.useCallback(()=>{var J;if(!(!H.current||!L.current)&&!V.current){z.current(L.current);let ie=o||n,ce=Lm(L.current,r||e||"",t||i||"",ie||"");N.current=(J=L.current)==null?void 0:J.editor.create(H.current,{model:ce,automaticLayout:!0,...d},f),h&&N.current.restoreViewState(a_.get(ie)),L.current.editor.setTheme(s),I(!0),V.current=!0}},[e,t,n,r,i,o,d,f,h,s]);R.useEffect(()=>{A&&W.current(N.current,L.current)},[A]),R.useEffect(()=>{!k&&!A&&K()},[k,A,K]),F.current=r,R.useEffect(()=>{var J,ie;A&&x&&((J=D.current)==null||J.dispose(),D.current=(ie=N.current)==null?void 0:ie.onDidChangeModelContent(ce=>{G.current||x(N.current.getValue(),ce)}))},[A,x]),R.useEffect(()=>{if(A){let J=L.current.editor.onDidChangeMarkers(ie=>{var ue;let ce=(ue=N.current.getModel())==null?void 0:ue.uri;if(ce&&ie.find(se=>se.path===ce.path)){let se=L.current.editor.getModelMarkers({resource:ce});E==null||E(se)}});return()=>{J==null||J.dispose()}}return()=>{}},[A,E]);function Y(){var J,ie;(J=D.current)==null||J.dispose(),p?h&&a_.set(o,N.current.saveViewState()):(ie=N.current.getModel())==null||ie.dispose(),N.current.dispose()}return de.createElement(KQ,{width:g,height:v,isEditorReady:A,loading:c,_ref:H,className:y,wrapperProps:S})}var bSe=ySe,xSe=R.memo(bSe),ZQ=xSe;let ua;typeof window<"u"?ua=window:typeof self<"u"?ua=self:ua=global;let EF=null,CF=null;const vH=20,pL=ua.clearTimeout,yH=ua.setTimeout,mL=ua.cancelAnimationFrame||ua.mozCancelAnimationFrame||ua.webkitCancelAnimationFrame,bH=ua.requestAnimationFrame||ua.mozRequestAnimationFrame||ua.webkitRequestAnimationFrame;mL==null||bH==null?(EF=pL,CF=function(t){return yH(t,vH)}):(EF=function([t,n]){mL(t),pL(n)},CF=function(t){const n=bH(function(){pL(r),t()}),r=yH(function(){mL(n),t()},vH);return[n,r]});function wSe(e){let t,n,r,i,o,s,l;const c=typeof document<"u"&&document.attachEvent;if(!c){s=function(_){const b=_.__resizeTriggers__,x=b.firstElementChild,E=b.lastElementChild,A=x.firstElementChild;E.scrollLeft=E.scrollWidth,E.scrollTop=E.scrollHeight,A.style.width=x.offsetWidth+1+"px",A.style.height=x.offsetHeight+1+"px",x.scrollLeft=x.scrollWidth,x.scrollTop=x.scrollHeight},o=function(_){return _.offsetWidth!==_.__resizeLast__.width||_.offsetHeight!==_.__resizeLast__.height},l=function(_){if(_.target.className&&typeof _.target.className.indexOf=="function"&&_.target.className.indexOf("contract-trigger")<0&&_.target.className.indexOf("expand-trigger")<0)return;const b=this;s(this),this.__resizeRAF__&&EF(this.__resizeRAF__),this.__resizeRAF__=CF(function(){o(b)&&(b.__resizeLast__.width=b.offsetWidth,b.__resizeLast__.height=b.offsetHeight,b.__resizeListeners__.forEach(function(A){A.call(b,_)}))})};let p=!1,g="";r="animationstart";const v="Webkit Moz O ms".split(" ");let y="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),S="";{const _=document.createElement("fakeelement");if(_.style.animationName!==void 0&&(p=!0),p===!1){for(let b=0;b div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',v=p.head||p.getElementsByTagName("head")[0],y=p.createElement("style");y.id="detectElementResize",y.type="text/css",e!=null&&y.setAttribute("nonce",e),y.styleSheet?y.styleSheet.cssText=g:y.appendChild(p.createTextNode(g)),v.appendChild(y)}};return{addResizeListener:function(p,g){if(c)p.attachEvent("onresize",g);else{if(!p.__resizeTriggers__){const v=p.ownerDocument,y=ua.getComputedStyle(p);y&&y.position==="static"&&(p.style.position="relative"),d(v),p.__resizeLast__={},p.__resizeListeners__=[],(p.__resizeTriggers__=v.createElement("div")).className="resize-triggers";const S=v.createElement("div");S.className="expand-trigger",S.appendChild(v.createElement("div"));const _=v.createElement("div");_.className="contract-trigger",p.__resizeTriggers__.appendChild(S),p.__resizeTriggers__.appendChild(_),p.appendChild(p.__resizeTriggers__),s(p),p.addEventListener("scroll",l,!0),r&&(p.__resizeTriggers__.__animationListener__=function(x){x.animationName===n&&s(p)},p.__resizeTriggers__.addEventListener(r,p.__resizeTriggers__.__animationListener__))}p.__resizeListeners__.push(g)}},removeResizeListener:function(p,g){if(c)p.detachEvent("onresize",g);else if(p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(g),1),!p.__resizeListeners__.length){p.removeEventListener("scroll",l,!0),p.__resizeTriggers__.__animationListener__&&(p.__resizeTriggers__.removeEventListener(r,p.__resizeTriggers__.__animationListener__),p.__resizeTriggers__.__animationListener__=null);try{p.__resizeTriggers__=!p.removeChild(p.__resizeTriggers__)}catch{}}}}}class hk extends R.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){var o,s,l,c;const d=window.getComputedStyle(this._parentNode)||{},f=parseFloat((o=d.paddingLeft)!==null&&o!==void 0?o:"0"),h=parseFloat((s=d.paddingRight)!==null&&s!==void 0?s:"0"),p=parseFloat((l=d.paddingTop)!==null&&l!==void 0?l:"0"),g=parseFloat((c=d.paddingBottom)!==null&&c!==void 0?c:"0"),v=this._parentNode.getBoundingClientRect(),y=v.height-p-g,S=v.width-f-h,_=this._parentNode.offsetHeight-p-g,b=this._parentNode.offsetWidth-f-h;(!n&&(this.state.height!==_||this.state.scaledHeight!==y)||!r&&(this.state.width!==b||this.state.scaledWidth!==S))&&(this.setState({height:_,width:b,scaledHeight:y,scaledWidth:S}),typeof i=="function"&&i({height:_,scaledHeight:y,scaledWidth:S,width:b}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._parentNode!=null&&(typeof ResizeObserver<"u"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=wSe(t),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:o=!1,nonce:s,onResize:l,style:c={},tagName:d="div",...f}=this.props,{height:h,scaledHeight:p,scaledWidth:g,width:v}=this.state,y={overflow:"visible"},S={};let _=!1;return i||(h===0&&(_=!0),y.height=0,S.height=h,S.scaledHeight=p),o||(v===0&&(_=!0),y.width=0,S.width=v,S.scaledWidth=g),R.createElement(d,{ref:this._setRef,style:{...y,...c},...f},!_&&t(S))}}function _Se({returnType:e,params:t}){return`@type {(${te.join(te.map(t,n=>`${n.name}: ${n.type}`),", ")}) => ${e}}`}function SSe(e){const[t,n,r]=["/**"," * "," */"],i=te.map(te.chunk(te.split(e.description," "),9),o=>te.join(o," "));return te.join([t,...te.map(i,o=>`${n}${o}`),`${n}${_Se(e)}`,r],` -`)}function ESe({name:e,params:t,defaultReturnValue:n}){return te.join([`function ${e}(${te.join(te.map(t,"name"),", ")}) {`,` return ${JSON.stringify(n)};`,"}"],` -`)}function CSe(e){return te.join(te.map(e,t=>te.join([SSe(t),ESe(t)],` + `},xH=H_e(q_e)(KQ),X_e={config:G_e},Y_e=function(){for(var t=arguments.length,n=new Array(t),r=0;r{r.current=!1}:e,t)}var bs=pSe;function hx(){}function Bm(e,t,n,r){return mSe(e,r)||gSe(e,t,n,r)}function mSe(e,t){return e.editor.getModel(rJ(e,t))}function gSe(e,t,n,r){return e.editor.createModel(t,n,r?rJ(e,r):void 0)}function rJ(e,t){return e.Uri.parse(t)}function vSe({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:s,keepCurrentOriginalModel:l=!1,keepCurrentModifiedModel:c=!1,theme:d="light",loading:f="Loading...",options:h={},height:p="100%",width:g="100%",className:v,wrapperProps:y={},beforeMount:S=hx,onMount:_=hx}){let[b,x]=I.useState(!1),[E,A]=I.useState(!0),R=I.useRef(null),k=I.useRef(null),O=I.useRef(null),L=I.useRef(_),N=I.useRef(S),H=I.useRef(!1);nJ(()=>{let F=eJ.init();return F.then(j=>(k.current=j)&&A(!1)).catch(j=>(j==null?void 0:j.type)!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>R.current?D():F.cancel()}),bs(()=>{if(R.current&&k.current){let F=R.current.getOriginalEditor(),j=Bm(k.current,e||"",r||n||"text",o||"");j!==F.getModel()&&F.setModel(j)}},[o],b),bs(()=>{if(R.current&&k.current){let F=R.current.getModifiedEditor(),j=Bm(k.current,t||"",i||n||"text",s||"");j!==F.getModel()&&F.setModel(j)}},[s],b),bs(()=>{let F=R.current.getModifiedEditor();F.getOption(k.current.editor.EditorOption.readOnly)?F.setValue(t||""):t!==F.getValue()&&(F.executeEdits("",[{range:F.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),F.pushUndoStop())},[t],b),bs(()=>{var F,j;(j=(F=R.current)==null?void 0:F.getModel())==null||j.original.setValue(e||"")},[e],b),bs(()=>{let{original:F,modified:j}=R.current.getModel();k.current.editor.setModelLanguage(F,r||n||"text"),k.current.editor.setModelLanguage(j,i||n||"text")},[n,r,i],b),bs(()=>{var F;(F=k.current)==null||F.editor.setTheme(d)},[d],b),bs(()=>{var F;(F=R.current)==null||F.updateOptions(h)},[h],b);let W=I.useCallback(()=>{var V;if(!k.current)return;N.current(k.current);let F=Bm(k.current,e||"",r||n||"text",o||""),j=Bm(k.current,t||"",i||n||"text",s||"");(V=R.current)==null||V.setModel({original:F,modified:j})},[n,t,i,e,r,o,s]),z=I.useCallback(()=>{var F;!H.current&&O.current&&(R.current=k.current.editor.createDiffEditor(O.current,{automaticLayout:!0,...h}),W(),(F=k.current)==null||F.editor.setTheme(d),x(!0),H.current=!0)},[h,d,W]);I.useEffect(()=>{b&&L.current(R.current,k.current)},[b]),I.useEffect(()=>{!E&&!b&&z()},[E,b,z]);function D(){var j,V,G,K;let F=(j=R.current)==null?void 0:j.getModel();l||((V=F==null?void 0:F.original)==null||V.dispose()),c||((G=F==null?void 0:F.modified)==null||G.dispose()),(K=R.current)==null||K.dispose()}return de.createElement(tJ,{width:g,height:p,isEditorReady:b,loading:f,_ref:O,className:v,wrapperProps:y})}var ySe=vSe;I.memo(ySe);function bSe(e){let t=I.useRef();return I.useEffect(()=>{t.current=e},[e]),t.current}var xSe=bSe,l_=new Map;function wSe({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:o,theme:s="light",line:l,loading:c="Loading...",options:d={},overrideServices:f={},saveViewState:h=!0,keepCurrentModel:p=!1,width:g="100%",height:v="100%",className:y,wrapperProps:S={},beforeMount:_=hx,onMount:b=hx,onChange:x,onValidate:E=hx}){let[A,R]=I.useState(!1),[k,O]=I.useState(!0),L=I.useRef(null),N=I.useRef(null),H=I.useRef(null),W=I.useRef(b),z=I.useRef(_),D=I.useRef(),F=I.useRef(r),j=xSe(o),V=I.useRef(!1),G=I.useRef(!1);nJ(()=>{let J=eJ.init();return J.then(ie=>(L.current=ie)&&O(!1)).catch(ie=>(ie==null?void 0:ie.type)!=="cancelation"&&console.error("Monaco initialization: error:",ie)),()=>N.current?Y():J.cancel()}),bs(()=>{var ie,ce,ue,se;let J=Bm(L.current,e||r||"",t||i||"",o||n||"");J!==((ie=N.current)==null?void 0:ie.getModel())&&(h&&l_.set(j,(ce=N.current)==null?void 0:ce.saveViewState()),(ue=N.current)==null||ue.setModel(J),h&&((se=N.current)==null||se.restoreViewState(l_.get(o))))},[o],A),bs(()=>{var J;(J=N.current)==null||J.updateOptions(d)},[d],A),bs(()=>{!N.current||r===void 0||(N.current.getOption(L.current.editor.EditorOption.readOnly)?N.current.setValue(r):r!==N.current.getValue()&&(G.current=!0,N.current.executeEdits("",[{range:N.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),N.current.pushUndoStop(),G.current=!1))},[r],A),bs(()=>{var ie,ce;let J=(ie=N.current)==null?void 0:ie.getModel();J&&i&&((ce=L.current)==null||ce.editor.setModelLanguage(J,i))},[i],A),bs(()=>{var J;l!==void 0&&((J=N.current)==null||J.revealLine(l))},[l],A),bs(()=>{var J;(J=L.current)==null||J.editor.setTheme(s)},[s],A);let K=I.useCallback(()=>{var J;if(!(!H.current||!L.current)&&!V.current){z.current(L.current);let ie=o||n,ce=Bm(L.current,r||e||"",t||i||"",ie||"");N.current=(J=L.current)==null?void 0:J.editor.create(H.current,{model:ce,automaticLayout:!0,...d},f),h&&N.current.restoreViewState(l_.get(ie)),L.current.editor.setTheme(s),R(!0),V.current=!0}},[e,t,n,r,i,o,d,f,h,s]);I.useEffect(()=>{A&&W.current(N.current,L.current)},[A]),I.useEffect(()=>{!k&&!A&&K()},[k,A,K]),F.current=r,I.useEffect(()=>{var J,ie;A&&x&&((J=D.current)==null||J.dispose(),D.current=(ie=N.current)==null?void 0:ie.onDidChangeModelContent(ce=>{G.current||x(N.current.getValue(),ce)}))},[A,x]),I.useEffect(()=>{if(A){let J=L.current.editor.onDidChangeMarkers(ie=>{var ue;let ce=(ue=N.current.getModel())==null?void 0:ue.uri;if(ce&&ie.find(se=>se.path===ce.path)){let se=L.current.editor.getModelMarkers({resource:ce});E==null||E(se)}});return()=>{J==null||J.dispose()}}return()=>{}},[A,E]);function Y(){var J,ie;(J=D.current)==null||J.dispose(),p?h&&l_.set(o,N.current.saveViewState()):(ie=N.current.getModel())==null||ie.dispose(),N.current.dispose()}return de.createElement(tJ,{width:g,height:v,isEditorReady:A,loading:c,_ref:H,className:y,wrapperProps:S})}var _Se=wSe,SSe=I.memo(_Se),iJ=SSe;let da;typeof window<"u"?da=window:typeof self<"u"?da=self:da=global;let TF=null,kF=null;const wH=20,gL=da.clearTimeout,_H=da.setTimeout,vL=da.cancelAnimationFrame||da.mozCancelAnimationFrame||da.webkitCancelAnimationFrame,SH=da.requestAnimationFrame||da.mozRequestAnimationFrame||da.webkitRequestAnimationFrame;vL==null||SH==null?(TF=gL,kF=function(t){return _H(t,wH)}):(TF=function([t,n]){vL(t),gL(n)},kF=function(t){const n=SH(function(){gL(r),t()}),r=_H(function(){vL(n),t()},wH);return[n,r]});function ESe(e){let t,n,r,i,o,s,l;const c=typeof document<"u"&&document.attachEvent;if(!c){s=function(_){const b=_.__resizeTriggers__,x=b.firstElementChild,E=b.lastElementChild,A=x.firstElementChild;E.scrollLeft=E.scrollWidth,E.scrollTop=E.scrollHeight,A.style.width=x.offsetWidth+1+"px",A.style.height=x.offsetHeight+1+"px",x.scrollLeft=x.scrollWidth,x.scrollTop=x.scrollHeight},o=function(_){return _.offsetWidth!==_.__resizeLast__.width||_.offsetHeight!==_.__resizeLast__.height},l=function(_){if(_.target.className&&typeof _.target.className.indexOf=="function"&&_.target.className.indexOf("contract-trigger")<0&&_.target.className.indexOf("expand-trigger")<0)return;const b=this;s(this),this.__resizeRAF__&&TF(this.__resizeRAF__),this.__resizeRAF__=kF(function(){o(b)&&(b.__resizeLast__.width=b.offsetWidth,b.__resizeLast__.height=b.offsetHeight,b.__resizeListeners__.forEach(function(A){A.call(b,_)}))})};let p=!1,g="";r="animationstart";const v="Webkit Moz O ms".split(" ");let y="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),S="";{const _=document.createElement("fakeelement");if(_.style.animationName!==void 0&&(p=!0),p===!1){for(let b=0;b div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',v=p.head||p.getElementsByTagName("head")[0],y=p.createElement("style");y.id="detectElementResize",y.type="text/css",e!=null&&y.setAttribute("nonce",e),y.styleSheet?y.styleSheet.cssText=g:y.appendChild(p.createTextNode(g)),v.appendChild(y)}};return{addResizeListener:function(p,g){if(c)p.attachEvent("onresize",g);else{if(!p.__resizeTriggers__){const v=p.ownerDocument,y=da.getComputedStyle(p);y&&y.position==="static"&&(p.style.position="relative"),d(v),p.__resizeLast__={},p.__resizeListeners__=[],(p.__resizeTriggers__=v.createElement("div")).className="resize-triggers";const S=v.createElement("div");S.className="expand-trigger",S.appendChild(v.createElement("div"));const _=v.createElement("div");_.className="contract-trigger",p.__resizeTriggers__.appendChild(S),p.__resizeTriggers__.appendChild(_),p.appendChild(p.__resizeTriggers__),s(p),p.addEventListener("scroll",l,!0),r&&(p.__resizeTriggers__.__animationListener__=function(x){x.animationName===n&&s(p)},p.__resizeTriggers__.addEventListener(r,p.__resizeTriggers__.__animationListener__))}p.__resizeListeners__.push(g)}},removeResizeListener:function(p,g){if(c)p.detachEvent("onresize",g);else if(p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(g),1),!p.__resizeListeners__.length){p.removeEventListener("scroll",l,!0),p.__resizeTriggers__.__animationListener__&&(p.__resizeTriggers__.removeEventListener(r,p.__resizeTriggers__.__animationListener__),p.__resizeTriggers__.__animationListener__=null);try{p.__resizeTriggers__=!p.removeChild(p.__resizeTriggers__)}catch{}}}}}class mk extends I.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){var o,s,l,c;const d=window.getComputedStyle(this._parentNode)||{},f=parseFloat((o=d.paddingLeft)!==null&&o!==void 0?o:"0"),h=parseFloat((s=d.paddingRight)!==null&&s!==void 0?s:"0"),p=parseFloat((l=d.paddingTop)!==null&&l!==void 0?l:"0"),g=parseFloat((c=d.paddingBottom)!==null&&c!==void 0?c:"0"),v=this._parentNode.getBoundingClientRect(),y=v.height-p-g,S=v.width-f-h,_=this._parentNode.offsetHeight-p-g,b=this._parentNode.offsetWidth-f-h;(!n&&(this.state.height!==_||this.state.scaledHeight!==y)||!r&&(this.state.width!==b||this.state.scaledWidth!==S))&&(this.setState({height:_,width:b,scaledHeight:y,scaledWidth:S}),typeof i=="function"&&i({height:_,scaledHeight:y,scaledWidth:S,width:b}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._parentNode!=null&&(typeof ResizeObserver<"u"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=ESe(t),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:o=!1,nonce:s,onResize:l,style:c={},tagName:d="div",...f}=this.props,{height:h,scaledHeight:p,scaledWidth:g,width:v}=this.state,y={overflow:"visible"},S={};let _=!1;return i||(h===0&&(_=!0),y.height=0,S.height=h,S.scaledHeight=p),o||(v===0&&(_=!0),y.width=0,S.width=v,S.scaledWidth=g),I.createElement(d,{ref:this._setRef,style:{...y,...c},...f},!_&&t(S))}}function CSe({returnType:e,params:t}){return`@type {(${te.join(te.map(t,n=>`${n.name}: ${n.type}`),", ")}) => ${e}}`}function TSe(e){const[t,n,r]=["/**"," * "," */"],i=te.map(te.chunk(te.split(e.description," "),9),o=>te.join(o," "));return te.join([t,...te.map(i,o=>`${n}${o}`),`${n}${CSe(e)}`,r],` +`)}function kSe({name:e,params:t,defaultReturnValue:n}){return te.join([`function ${e}(${te.join(te.map(t,"name"),", ")}) {`,` return ${JSON.stringify(n)};`,"}"],` +`)}function ASe(e){return te.join(te.map(e,t=>te.join([TSe(t),kSe(t)],` `)),` -`)}const TSe={name:"shouldBreak",description:"Define in what situations the debugger should break, in addition to the conditions defined in the standard options.",params:[{name:"step",type:"number"},{name:"event",type:"any"},{name:"events",type:"any"}],defaultReturnValue:!1,returnType:"boolean"},kSe={name:"shouldRender",description:"Define which objects the renderer should display.",params:[{name:"step",type:"number"},{name:"event",type:"any"},{name:"events",type:"any"}],defaultReturnValue:!0,returnType:"boolean"},ASe={shouldRender:kSe,shouldBreak:TSe},[pk,ISe]=Ql({code:CSe(te.values(ASe)),busy:{}}),RSe=2500;function PSe(){const[{code:e},t]=pk(),n=Rn();return C.jsx(bn,{height:"100%",overflow:"hidden",children:C.jsx(hk,{children:({width:r,height:i})=>C.jsx(ZQ,{theme:n.palette.mode==="dark"?"vs-dark":"light",width:r,loading:C.jsx(U1,{variant:"indeterminate"}),height:i,language:"javascript",defaultValue:e,onChange:te.debounce(o=>t(()=>({code:o})),RSe),options:{minimap:{enabled:!1}}})})})}function OSe(e){const t=Rn();return C.jsx(bn,{height:"100%",overflow:"hidden",children:C.jsx(hk,{children:({width:n,height:r})=>C.jsx(ZQ,{theme:t.palette.mode==="dark"?"vs-dark":"light",width:n,loading:C.jsx(U1,{variant:"indeterminate"}),height:r,language:"javascript",...e,options:{minimap:{enabled:!1},...e.options}})})})}function Jx(e){"@babel/helpers - typeof";return Jx=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},Jx(e)}function MSe(e,t){if(Jx(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Jx(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function DSe(e){var t=MSe(e,"string");return Jx(t)==="symbol"?t:String(t)}function LSe(e,t,n){return t=DSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wH(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Oo(1));return n(eJ)(e,t)}if(typeof e!="function")throw new Error(Oo(2));var i=e,o=t,s=[],l=s,c=!1;function d(){l===s&&(l=s.slice())}function f(){if(c)throw new Error(Oo(3));return o}function h(y){if(typeof y!="function")throw new Error(Oo(4));if(c)throw new Error(Oo(5));var S=!0;return d(),l.push(y),function(){if(S){if(c)throw new Error(Oo(6));S=!1,d();var b=l.indexOf(y);l.splice(b,1),s=null}}}function p(y){if(!NSe(y))throw new Error(Oo(7));if(typeof y.type>"u")throw new Error(Oo(8));if(c)throw new Error(Oo(9));try{c=!0,o=i(o,y)}finally{c=!1}for(var S=s=l,_=0;_=0;r--){var i=t[r](e);if(i)return i}return function(o,s){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+s.wrappedComponentName+".")}}function gEe(e,t){return e===t}function vEe(e){var t=e===void 0?{}:e,n=t.connectHOC,r=n===void 0?QSe:n,i=t.mapStateToPropsFactories,o=i===void 0?oEe:i,s=t.mapDispatchToPropsFactories,l=s===void 0?nEe:s,c=t.mergePropsFactories,d=c===void 0?uEe:c,f=t.selectorFactory,h=f===void 0?pEe:f;return function(g,v,y,S){S===void 0&&(S={});var _=S,b=_.pure,x=b===void 0?!0:b,E=_.areStatesEqual,A=E===void 0?gEe:E,I=_.areOwnPropsEqual,k=I===void 0?vL:I,O=_.areStatePropsEqual,L=O===void 0?vL:O,N=_.areMergedPropsEqual,H=N===void 0?vL:N,W=Le(_,mEe),z=yL(g,o,"mapStateToProps"),D=yL(v,l,"mapDispatchToProps"),F=yL(y,d,"mergeProps");return r(h,$({methodName:"connect",getDisplayName:function(V){return"Connect("+V+")"},shouldHandleStateChanges:!!g,initMapStateToProps:z,initMapDispatchToProps:D,initMergeProps:F,pure:x,areStatesEqual:A,areOwnPropsEqual:k,areStatePropsEqual:L,areMergedPropsEqual:H},W))}}const aJ=vEe();FSe(Xg.unstable_batchedUpdates);function yEe(e,t){if(e.length!==t.length)return!1;for(var n=0;n");return r.callbacks},r.setCallbacks=function(l){r.callbacks=l},r}var n=t.prototype;return n.componentDidMount=function(){this.unbind=na(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(i){if(i instanceof UE){this.setState({});return}throw i},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(de.Component),REe=` +`)}const RSe={name:"shouldBreak",description:"Define in what situations the debugger should break, in addition to the conditions defined in the standard options.",params:[{name:"step",type:"number"},{name:"event",type:"any"},{name:"events",type:"any"}],defaultReturnValue:!1,returnType:"boolean"},ISe={name:"shouldRender",description:"Define which objects the renderer should display.",params:[{name:"step",type:"number"},{name:"event",type:"any"},{name:"events",type:"any"}],defaultReturnValue:!0,returnType:"boolean"},PSe={shouldRender:ISe,shouldBreak:RSe},[gk,OSe]=Jl({code:ASe(te.values(PSe)),busy:{}}),MSe=2500;function DSe(){const[{code:e},t]=gk(),n=Pn();return C.jsx(gn,{height:"100%",overflow:"hidden",children:C.jsx(mk,{children:({width:r,height:i})=>C.jsx(iJ,{theme:n.palette.mode==="dark"?"vs-dark":"light",width:r,loading:C.jsx(G1,{variant:"indeterminate"}),height:i,language:"javascript",defaultValue:e,onChange:te.debounce(o=>t(()=>({code:o})),MSe),options:{minimap:{enabled:!1}}})})})}function LSe(e){const t=Pn();return C.jsx(gn,{height:"100%",overflow:"hidden",children:C.jsx(mk,{children:({width:n,height:r})=>C.jsx(iJ,{theme:t.palette.mode==="dark"?"vs-dark":"light",width:n,loading:C.jsx(G1,{variant:"indeterminate"}),height:r,language:"javascript",...e,options:{minimap:{enabled:!1},...e.options}})})})}function t1(e){"@babel/helpers - typeof";return t1=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},t1(e)}function NSe(e,t){if(t1(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(t1(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function BSe(e){var t=NSe(e,"string");return t1(t)==="symbol"?t:String(t)}function $Se(e,t,n){return t=BSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function CH(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Oo(1));return n(oJ)(e,t)}if(typeof e!="function")throw new Error(Oo(2));var i=e,o=t,s=[],l=s,c=!1;function d(){l===s&&(l=s.slice())}function f(){if(c)throw new Error(Oo(3));return o}function h(y){if(typeof y!="function")throw new Error(Oo(4));if(c)throw new Error(Oo(5));var S=!0;return d(),l.push(y),function(){if(S){if(c)throw new Error(Oo(6));S=!1,d();var b=l.indexOf(y);l.splice(b,1),s=null}}}function p(y){if(!FSe(y))throw new Error(Oo(7));if(typeof y.type>"u")throw new Error(Oo(8));if(c)throw new Error(Oo(9));try{c=!0,o=i(o,y)}finally{c=!1}for(var S=s=l,_=0;_=0;r--){var i=t[r](e);if(i)return i}return function(o,s){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+s.wrappedComponentName+".")}}function bEe(e,t){return e===t}function xEe(e){var t=e===void 0?{}:e,n=t.connectHOC,r=n===void 0?eEe:n,i=t.mapStateToPropsFactories,o=i===void 0?lEe:i,s=t.mapDispatchToPropsFactories,l=s===void 0?oEe:s,c=t.mergePropsFactories,d=c===void 0?hEe:c,f=t.selectorFactory,h=f===void 0?vEe:f;return function(g,v,y,S){S===void 0&&(S={});var _=S,b=_.pure,x=b===void 0?!0:b,E=_.areStatesEqual,A=E===void 0?bEe:E,R=_.areOwnPropsEqual,k=R===void 0?bL:R,O=_.areStatePropsEqual,L=O===void 0?bL:O,N=_.areMergedPropsEqual,H=N===void 0?bL:N,W=Le(_,yEe),z=xL(g,o,"mapStateToProps"),D=xL(v,l,"mapDispatchToProps"),F=xL(y,d,"mergeProps");return r(h,$({methodName:"connect",getDisplayName:function(V){return"Connect("+V+")"},shouldHandleStateChanges:!!g,initMapStateToProps:z,initMapDispatchToProps:D,initMergeProps:F,pure:x,areStatesEqual:A,areOwnPropsEqual:k,areStatePropsEqual:L,areMergedPropsEqual:H},W))}}const fJ=xEe();USe(Yg.unstable_batchedUpdates);function wEe(e,t){if(e.length!==t.length)return!1;for(var n=0;n");return r.callbacks},r.setCallbacks=function(l){r.callbacks=l},r}var n=t.prototype;return n.componentDidMount=function(){this.unbind=ra(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(i){if(i instanceof WE){this.setState({});return}throw i},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(de.Component),MEe=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key -`,HE=function(t){return t+1},PEe=function(t){return` - You have lifted an item in position `+HE(t.source.index)+` -`},fJ=function(t,n){var r=t.droppableId===n.droppableId,i=HE(t.index),o=HE(n.index);return r?` +`,GE=function(t){return t+1},DEe=function(t){return` + You have lifted an item in position `+GE(t.source.index)+` +`},vJ=function(t,n){var r=t.droppableId===n.droppableId,i=GE(t.index),o=GE(n.index);return r?` You have moved the item from position `+i+` to position `+o+` `:` @@ -402,38 +402,38 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho in list `+t.droppableId+` to list `+n.droppableId+` in position `+o+` - `},hJ=function(t,n,r){var i=n.droppableId===r.droppableId;return i?` + `},yJ=function(t,n,r){var i=n.droppableId===r.droppableId;return i?` The item `+t+` has been combined with `+r.draggableId:` The item `+t+` in list `+n.droppableId+` has been combined with `+r.draggableId+` in list `+r.droppableId+` - `},OEe=function(t){var n=t.destination;if(n)return fJ(t.source,n);var r=t.combine;return r?hJ(t.draggableId,t.source,r):"You are over an area that cannot be dropped on"},OH=function(t){return` + `},LEe=function(t){var n=t.destination;if(n)return vJ(t.source,n);var r=t.combine;return r?yJ(t.draggableId,t.source,r):"You are over an area that cannot be dropped on"},NH=function(t){return` The item has returned to its starting position - of `+HE(t.index)+` -`},MEe=function(t){if(t.reason==="CANCEL")return` + of `+GE(t.index)+` +`},NEe=function(t){if(t.reason==="CANCEL")return` Movement cancelled. - `+OH(t.source)+` + `+NH(t.source)+` `;var n=t.destination,r=t.combine;return n?` You have dropped the item. - `+fJ(t.source,n)+` + `+vJ(t.source,n)+` `:r?` You have dropped the item. - `+hJ(t.draggableId,t.source,r)+` + `+yJ(t.draggableId,t.source,r)+` `:` The item has been dropped while not over a drop area. - `+OH(t.source)+` - `},kS={dragHandleUsageInstructions:REe,onDragStart:PEe,onDragUpdate:OEe,onDragEnd:MEe},wi={x:0,y:0},Ui=function(t,n){return{x:t.x+n.x,y:t.y+n.y}},Cs=function(t,n){return{x:t.x-n.x,y:t.y-n.y}},Ed=function(t,n){return t.x===n.x&&t.y===n.y},Jg=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},gp=function(t,n,r){var i;return r===void 0&&(r=0),i={},i[t]=n,i[t==="x"?"y":"x"]=r,i},e1=function(t,n){return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))},MH=function(t,n){return Math.min.apply(Math,n.map(function(r){return e1(t,r)}))},pJ=function(t){return function(n){return{x:t(n.x),y:t(n.y)}}},DEe=function(e,t){var n=el({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n},ow=function(t,n){return{top:t.top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x}},DH=function(t){return[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}]},LEe={top:0,right:0,bottom:0,left:0},NEe=function(t,n){return n?ow(t,n.scroll.diff.displacement):t},BEe=function(t,n,r){if(r&&r.increasedBy){var i;return $({},t,(i={},i[n.end]=t[n.end]+r.increasedBy[n.line],i))}return t},$Ee=function(t,n){return n&&n.shouldClipSubject?DEe(n.pageMarginBox,t):el(t)},Tg=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,i=e.frame,o=NEe(t.marginBox,i),s=BEe(o,r,n),l=$Ee(s,i);return{page:t,withPlaceholder:n,active:l}},pz=function(e,t){e.frame||He(!1);var n=e.frame,r=Cs(t,n.scroll.initial),i=Jg(r),o=$({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}}),s=Tg({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o}),l=$({},e,{frame:o,subject:s});return l};function WE(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function mz(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;ne.bottom,d=r.lefte.right,f=c&&d;if(f)return!0;var h=c&&s||d&&o;return h}},UEe=function(e){var t=da(e.top,e.bottom),n=da(e.left,e.right);return function(r){var i=t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right);return i}},vz={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},xJ={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},HEe=function(e){return function(t){var n=da(t.top,t.bottom),r=da(t.left,t.right);return function(i){return e===vz?n(i.top)&&n(i.bottom):r(i.left)&&r(i.right)}}},WEe=function(t,n){var r=n.frame?n.frame.scroll.diff.displacement:wi;return ow(t,r)},GEe=function(t,n,r){return n.subject.active?r(n.subject.active)(t):!1},VEe=function(t,n,r){return r(n)(t)},yz=function(t){var n=t.target,r=t.destination,i=t.viewport,o=t.withDroppableDisplacement,s=t.isVisibleThroughFrameFn,l=o?WEe(n,r):n;return GEe(l,r,s)&&VEe(l,i,s)},qEe=function(t){return yz($({},t,{isVisibleThroughFrameFn:bJ}))},wJ=function(t){return yz($({},t,{isVisibleThroughFrameFn:UEe}))},XEe=function(t){return yz($({},t,{isVisibleThroughFrameFn:HEe(t.destination.axis)}))},YEe=function(t,n,r){if(typeof r=="boolean")return r;if(!n)return!0;var i=n.invisible,o=n.visible;if(i[t])return!1;var s=o[t];return s?s.shouldAnimate:!0};function KEe(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return el(fz(n,r))}function n1(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,s=e.last;return t.reduce(function(c,d){var f=KEe(d,r),h=d.descriptor.id;c.all.push(h);var p=qEe({target:f,destination:n,viewport:i,withDroppableDisplacement:!0});if(!p)return c.invisible[d.descriptor.id]=!0,c;var g=YEe(h,s,o),v={draggableId:h,shouldAnimate:g};return c.visible[h]=v,c},{all:[],visible:{},invisible:{}})}function QEe(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function LH(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,i=e.destination,o=QEe(t,{inHomeList:n});return{displaced:t1,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function GE(e){var t=e.draggable,n=e.insideDestination,r=e.destination,i=e.viewport,o=e.displacedBy,s=e.last,l=e.index,c=e.forceShouldAnimate,d=ev(t,r);if(l==null)return LH({insideDestination:n,inHomeList:d,displacedBy:o,destination:r});var f=Xd(n,function(y){return y.descriptor.index===l});if(!f)return LH({insideDestination:n,inHomeList:d,displacedBy:o,destination:r});var h=vk(t,n),p=n.indexOf(f),g=h.slice(p),v=n1({afterDragging:g,destination:r,displacedBy:o,last:s,viewport:i.frame,forceShouldAnimate:c});return{displaced:v,displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function Md(e,t){return!!t.effected[e]}var JEe=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,i=e.combine,o=e.afterCritical;if(!n.isCombineEnabled)return null;var s=i.draggableId,l=r[s],c=l.descriptor.index,d=Md(s,o);return d?t?c:c-1:t?c+1:c},ZEe=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,i=e.location;if(!r.length)return null;var o=i.index,s=t?o+1:o-1,l=r[0].descriptor.index,c=r[r.length-1].descriptor.index,d=n?c:c+1;return sd?null:s},eCe=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,o=e.destination,s=e.insideDestination,l=e.previousImpact,c=e.viewport,d=e.afterCritical,f=l.at;if(f||He(!1),f.type==="REORDER"){var h=ZEe({isMovingForward:t,isInHomeList:n,location:f.destination,insideDestination:s});return h==null?null:GE({draggable:r,insideDestination:s,destination:o,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:h})}var p=JEe({isMovingForward:t,destination:o,displaced:l.displaced,draggables:i,combine:f.combine,afterCritical:d});return p==null?null:GE({draggable:r,insideDestination:s,destination:o,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:p})},tCe=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,i=e.displacedBy,o=!!(t.visible[r]||t.invisible[r]);return Md(r,n)?o?wi:Jg(i.point):o?i.point:wi},nCe=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,i=gk(n);i||He(!1);var o=i.draggableId,s=r[o].page.borderBox.center,l=tCe({displaced:n.displaced,afterCritical:t,combineWith:o,displacedBy:n.displacedBy});return Ui(s,l)},_J=function(t,n){return n.margin[t.start]+n.borderBox[t.size]/2},rCe=function(t,n){return n.margin[t.end]+n.borderBox[t.size]/2},bz=function(t,n,r){return n[t.crossAxisStart]+r.margin[t.crossAxisStart]+r.borderBox[t.crossAxisSize]/2},NH=function(t){var n=t.axis,r=t.moveRelativeTo,i=t.isMoving;return gp(n.line,r.marginBox[n.end]+_J(n,i),bz(n,r.marginBox,i))},BH=function(t){var n=t.axis,r=t.moveRelativeTo,i=t.isMoving;return gp(n.line,r.marginBox[n.start]-rCe(n,i),bz(n,r.marginBox,i))},iCe=function(t){var n=t.axis,r=t.moveInto,i=t.isMoving;return gp(n.line,r.contentBox[n.start]+_J(n,i),bz(n,r.contentBox,i))},oCe=function(e){var t=e.impact,n=e.draggable,r=e.draggables,i=e.droppable,o=e.afterCritical,s=Zg(i.descriptor.id,r),l=n.page,c=i.axis;if(!s.length)return iCe({axis:c,moveInto:i.page,isMoving:l});var d=t.displaced,f=t.displacedBy,h=d.all[0];if(h){var p=r[h];if(Md(h,o))return BH({axis:c,moveRelativeTo:p.page,isMoving:l});var g=zE(p.page,f.point);return BH({axis:c,moveRelativeTo:g,isMoving:l})}var v=s[s.length-1];if(v.descriptor.id===n.descriptor.id)return l.borderBox.center;if(Md(v.descriptor.id,o)){var y=zE(v.page,Jg(o.displacedBy.point));return NH({axis:c,moveRelativeTo:y,isMoving:l})}return NH({axis:c,moveRelativeTo:v.page,isMoving:l})},TF=function(e,t){var n=e.frame;return n?Ui(t,n.scroll.diff.displacement):t},sCe=function(t){var n=t.impact,r=t.draggable,i=t.droppable,o=t.draggables,s=t.afterCritical,l=r.page.borderBox.center,c=n.at;return!i||!c?l:c.type==="REORDER"?oCe({impact:n,draggable:r,draggables:o,droppable:i,afterCritical:s}):nCe({impact:n,draggables:o,afterCritical:s})},yk=function(e){var t=sCe(e),n=e.droppable,r=n?TF(n,t):t;return r},SJ=function(e,t){var n=Cs(t,e.scroll.initial),r=Jg(n),i=el({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),o={frame:i,scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}};return o};function $H(e,t){return e.map(function(n){return t[n]})}function aCe(e,t){for(var n=0;n1?f.sort(function(h,p){return vo(h)[l.start]-vo(p)[l.start]})[0]:d.sort(function(h,p){var g=MH(n,DH(vo(h))),v=MH(n,DH(vo(p)));return g!==v?g-v:vo(h)[l.start]-vo(p)[l.start]})[0]},FH=function(t,n){var r=t.page.borderBox.center;return Md(t.descriptor.id,n)?Cs(r,n.displacedBy.point):r},fCe=function(t,n){var r=t.page.borderBox;return Md(t.descriptor.id,n)?ow(r,Jg(n.displacedBy.point)):r},hCe=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,i=e.insideDestination,o=e.afterCritical,s=i.filter(function(l){return wJ({target:fCe(l,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})}).sort(function(l,c){var d=e1(t,TF(r,FH(l,o))),f=e1(t,TF(r,FH(c,o)));return dt.left&&e.topt.top}function wCe(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,i=n.page.borderBox.center,o=r.map(function(s){var l=s.axis,c=gp(s.axis.line,t.center[l.line],s.page.borderBox.center[l.crossAxisLine]);return{id:s.descriptor.id,distance:e1(i,c)}}).sort(function(s,l){return l.distance-s.distance});return o[0]?o[0].id:null}function _Ce(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,i=mk(r).filter(function(o){if(!o.isEnabled)return!1;var s=o.subject.active;if(!s||!xCe(t,s))return!1;if(kJ(s)(t.center))return!0;var l=o.axis,c=s.center[l.crossAxisLine],d=t[l.crossAxisStart],f=t[l.crossAxisEnd],h=da(s[l.crossAxisStart],s[l.crossAxisEnd]),p=h(d),g=h(f);return!p&&!g?!0:p?dc});return i.length?i.length===1?i[0].descriptor.id:wCe({pageBorderBox:t,draggable:n,candidates:i}):null}var AJ=function(t,n){return el(ow(t,n))},SCe=function(e,t){var n=e.frame;return n?AJ(t,n.scroll.diff.value):t};function IJ(e){var t=e.displaced,n=e.id;return!!(t.visible[n]||t.invisible[n])}function ECe(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var CCe=function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.last,s=e.viewport,l=e.afterCritical,c=r.axis,d=sw(r.axis,n.displaceBy),f=d.value,h=t[c.start],p=t[c.end],g=vk(n,i),v=Xd(g,function(S){var _=S.descriptor.id,b=S.page.borderBox.center[c.line],x=Md(_,l),E=IJ({displaced:o,id:_});return x?E?p<=b:h_[l.start]+x&&h<_[l.end]-x:f>_[l.start]-d+x&&f<_[l.end]-d-x:A?h>_[l.start]+d+x&&h<_[l.end]+d-x:f>_[l.start]+x&&f<_[l.end]-x});if(!g)return null;var v={displacedBy:c,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:g.descriptor.id,droppableId:i.descriptor.id}}};return v},RJ=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,i=e.droppables,o=e.previousImpact,s=e.viewport,l=e.afterCritical,c=AJ(n.page.borderBox,t),d=_Ce({pageBorderBox:c,draggable:n,droppables:i});if(!d)return jEe;var f=i[d],h=Zg(f.descriptor.id,r),p=SCe(f,c);return kCe({pageBorderBoxWithDroppableScroll:p,draggable:n,previousImpact:o,destination:f,insideDestination:h,afterCritical:l})||CCe({pageBorderBoxWithDroppableScroll:p,draggable:n,destination:f,insideDestination:h,last:o.displaced,viewport:s,afterCritical:l})},wz=function(e,t){var n;return $({},e,(n={},n[t.descriptor.id]=t,n))},ACe=function(t){var n=t.previousImpact,r=t.impact,i=t.droppables,o=Rs(n),s=Rs(r);if(!o||o===s)return i;var l=i[o];if(!l.subject.withPlaceholder)return i;var c=mCe(l);return wz(i,c)},ICe=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,i=e.previousImpact,o=e.impact,s=ACe({previousImpact:i,impact:o,droppables:r}),l=Rs(o);if(!l)return s;var c=r[l];if(ev(t,c)||c.subject.withPlaceholder)return s;var d=TJ(c,t,n);return wz(s,d)},dx=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,i=e.viewport,o=e.impact,s=e.scrollJumpRequest,l=i||t.viewport,c=r||t.dimensions,d=n||t.current.client.selection,f=Cs(d,t.initial.client.selection),h={offset:f,selection:d,borderBoxCenter:Ui(t.initial.client.borderBoxCenter,f)},p={selection:Ui(h.selection,l.scroll.current),borderBoxCenter:Ui(h.borderBoxCenter,l.scroll.current),offset:Ui(h.offset,l.scroll.diff.value)},g={client:h,page:p};if(t.phase==="COLLECTING")return $({phase:"COLLECTING"},t,{dimensions:c,viewport:l,current:g});var v=c.draggables[t.critical.draggable.id],y=o||RJ({pageOffset:p.offset,draggable:v,draggables:c.draggables,droppables:c.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),S=ICe({draggable:v,impact:y,previousImpact:t.impact,draggables:c.draggables,droppables:c.droppables}),_=$({},t,{current:g,dimensions:{draggables:c.draggables,droppables:S},impact:y,viewport:l,scrollJumpRequest:s||null,forceShouldAnimate:s?!1:null});return _};function RCe(e,t){return e.map(function(n){return t[n]})}var PJ=function(e){var t=e.impact,n=e.viewport,r=e.draggables,i=e.destination,o=e.forceShouldAnimate,s=t.displaced,l=RCe(s.all,r),c=n1({afterDragging:l,destination:i,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:o,last:s});return $({},t,{displaced:c})},OJ=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.viewport,s=e.afterCritical,l=yk({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:s});return xz({pageBorderBoxCenter:l,draggable:n,viewport:o})},MJ=function(e){var t=e.state,n=e.dimensions,r=e.viewport;t.movementMode!=="SNAP"&&He(!1);var i=t.impact,o=r||t.viewport,s=n||t.dimensions,l=s.draggables,c=s.droppables,d=l[t.critical.draggable.id],f=Rs(i);f||He(!1);var h=c[f],p=PJ({impact:i,viewport:o,destination:h,draggables:l}),g=OJ({impact:p,draggable:d,droppable:h,draggables:l,viewport:o,afterCritical:t.afterCritical});return dx({impact:p,clientSelection:g,state:t,dimensions:s,viewport:o})},PCe=function(e){return{index:e.index,droppableId:e.droppableId}},DJ=function(e){var t=e.draggable,n=e.home,r=e.draggables,i=e.viewport,o=sw(n.axis,t.displaceBy),s=Zg(n.descriptor.id,r),l=s.indexOf(t);l===-1&&He(!1);var c=s.slice(l+1),d=c.reduce(function(g,v){return g[v.descriptor.id]=!0,g},{}),f={inVirtualList:n.descriptor.mode==="virtual",displacedBy:o,effected:d},h=n1({afterDragging:c,destination:n,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),p={displaced:h,displacedBy:o,at:{type:"REORDER",destination:PCe(t.descriptor)}};return{impact:p,afterCritical:f}},OCe=function(e,t){return{draggables:e.draggables,droppables:wz(e.droppables,t)}},MCe=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,i=zE(t.client,n),o=jE(i,r),s=$({},t,{placeholder:$({},t.placeholder,{client:i}),client:i,page:o});return s},DCe=function(e){var t=e.frame;return t||He(!1),t},LCe=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,i=r.scroll.diff.value;return t.map(function(o){var s=o.descriptor.droppableId,l=n[s],c=DCe(l),d=c.scroll.diff.value,f=Ui(i,d),h=MCe({draggable:o,offset:f,initialWindowScroll:r.scroll.initial});return h})},NCe=function(e){var t=e.state,n=e.published,r=n.modified.map(function(x){var E=t.dimensions.droppables[x.droppableId],A=pz(E,x.scroll);return A}),i=$({},t.dimensions.droppables,{},gJ(r)),o=vJ(LCe({additions:n.additions,updatedDroppables:i,viewport:t.viewport})),s=$({},t.dimensions.draggables,{},o);n.removals.forEach(function(x){delete s[x]});var l={droppables:i,draggables:s},c=Rs(t.impact),d=c?l.droppables[c]:null,f=l.draggables[t.critical.draggable.id],h=l.droppables[t.critical.droppable.id],p=DJ({draggable:f,home:h,draggables:s,viewport:t.viewport}),g=p.impact,v=p.afterCritical,y=d&&d.isCombineEnabled?t.impact:g,S=RJ({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:y,viewport:t.viewport,afterCritical:v}),_=$({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:S,onLiftImpact:g,dimensions:l,afterCritical:v,forceShouldAnimate:!1});if(t.phase==="COLLECTING")return _;var b=$({phase:"DROP_PENDING"},_,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1});return b},kF=function(t){return t.movementMode==="SNAP"},wL=function(t,n,r){var i=OCe(t.dimensions,n);return!kF(t)||r?dx({state:t,dimensions:i}):MJ({state:t,dimensions:i})};function _L(e){return e.isDragging&&e.movementMode==="SNAP"?$({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var zH={phase:"IDLE",completed:null,shouldFlush:!1},BCe=function(e,t){if(e===void 0&&(e=zH),t.type==="FLUSH")return $({},zH,{shouldFlush:!0});if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&He(!1);var n=t.payload,r=n.critical,i=n.clientSelection,o=n.viewport,s=n.dimensions,l=n.movementMode,c=s.draggables[r.draggable.id],d=s.droppables[r.droppable.id],f={selection:i,borderBoxCenter:c.client.borderBox.center,offset:wi},h={client:f,page:{selection:Ui(f.selection,o.scroll.initial),borderBoxCenter:Ui(f.selection,o.scroll.initial),offset:Ui(f.selection,o.scroll.diff.value)}},p=mk(s.droppables).every(function(ve){return!ve.isFixedOnPage}),g=DJ({draggable:c,home:d,draggables:s.draggables,viewport:o}),v=g.impact,y=g.afterCritical,S={phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:s,initial:h,current:h,isWindowScrollAllowed:p,impact:v,afterCritical:y,onLiftImpact:v,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null};return S}if(t.type==="COLLECTION_STARTING"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&He(!1);var _=$({phase:"COLLECTING"},e,{phase:"COLLECTING"});return _}if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||He(!1),NCe({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Ih(e)||He(!1);var b=t.payload.client;return Ed(b,e.current.client.selection)?e:dx({state:e,clientSelection:b,impact:kF(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return _L(e);Ih(e)||He(!1);var x=t.payload,E=x.id,A=x.newScroll,I=e.dimensions.droppables[E];if(!I)return e;var k=pz(I,A);return wL(e,k,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ih(e)||He(!1);var O=t.payload,L=O.id,N=O.isEnabled,H=e.dimensions.droppables[L];H||He(!1),H.isEnabled===N&&He(!1);var W=$({},H,{isEnabled:N});return wL(e,W,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ih(e)||He(!1);var z=t.payload,D=z.id,F=z.isCombineEnabled,j=e.dimensions.droppables[D];j||He(!1),j.isCombineEnabled===F&&He(!1);var V=$({},j,{isCombineEnabled:F});return wL(e,V,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Ih(e)||He(!1),e.isWindowScrollAllowed||He(!1);var G=t.payload.newScroll;if(Ed(e.viewport.scroll.current,G))return _L(e);var K=SJ(e.viewport,G);return kF(e)?MJ({state:e,viewport:K}):dx({state:e,viewport:K})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Ih(e))return e;var Y=t.payload.maxScroll;if(Ed(Y,e.viewport.scroll.max))return e;var J=$({},e.viewport,{scroll:$({},e.viewport.scroll,{max:Y})});return $({phase:"DRAGGING"},e,{viewport:J})}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&He(!1);var ie=bCe({state:e,type:t.type});return ie?dx({state:e,impact:ie.impact,clientSelection:ie.clientSelection,scrollJumpRequest:ie.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){var ce=t.payload.reason;e.phase!=="COLLECTING"&&He(!1);var ue=$({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:ce});return ue}if(t.type==="DROP_ANIMATE"){var se=t.payload,Q=se.completed,ae=se.dropDuration,le=se.newHomeClientOffset;e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||He(!1);var he={phase:"DROP_ANIMATING",completed:Q,dropDuration:ae,newHomeClientOffset:le,dimensions:e.dimensions};return he}if(t.type==="DROP_COMPLETE"){var pe=t.payload.completed;return{phase:"IDLE",completed:pe,shouldFlush:!1}}return e},$Ce=function(t){return{type:"BEFORE_INITIAL_CAPTURE",payload:t}},FCe=function(t){return{type:"LIFT",payload:t}},zCe=function(t){return{type:"INITIAL_PUBLISH",payload:t}},jCe=function(t){return{type:"PUBLISH_WHILE_DRAGGING",payload:t}},UCe=function(){return{type:"COLLECTION_STARTING",payload:null}},HCe=function(t){return{type:"UPDATE_DROPPABLE_SCROLL",payload:t}},WCe=function(t){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:t}},GCe=function(t){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:t}},LJ=function(t){return{type:"MOVE",payload:t}},VCe=function(t){return{type:"MOVE_BY_WINDOW_SCROLL",payload:t}},qCe=function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}},XCe=function(){return{type:"MOVE_UP",payload:null}},YCe=function(){return{type:"MOVE_DOWN",payload:null}},KCe=function(){return{type:"MOVE_RIGHT",payload:null}},QCe=function(){return{type:"MOVE_LEFT",payload:null}},_z=function(){return{type:"FLUSH",payload:null}},JCe=function(t){return{type:"DROP_ANIMATE",payload:t}},Sz=function(t){return{type:"DROP_COMPLETE",payload:t}},NJ=function(t){return{type:"DROP",payload:t}},ZCe=function(t){return{type:"DROP_PENDING",payload:t}},BJ=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},eTe=function(e){return function(t){var n=t.getState,r=t.dispatch;return function(i){return function(o){if(o.type!=="LIFT"){i(o);return}var s=o.payload,l=s.id,c=s.clientSelection,d=s.movementMode,f=n();f.phase==="DROP_ANIMATING"&&r(Sz({completed:f.completed})),n().phase!=="IDLE"&&He(!1),r(_z()),r($Ce({draggableId:l,movementMode:d}));var h={shouldPublishImmediately:d==="SNAP"},p={draggableId:l,scrollOptions:h},g=e.startPublishing(p),v=g.critical,y=g.dimensions,S=g.viewport;r(zCe({critical:v,dimensions:y,clientSelection:c,movementMode:d,viewport:S}))}}}},tTe=function(e){return function(){return function(t){return function(n){n.type==="INITIAL_PUBLISH"&&e.dragging(),n.type==="DROP_ANIMATE"&&e.dropping(n.payload.completed.result.reason),(n.type==="FLUSH"||n.type==="DROP_COMPLETE")&&e.resting(),t(n)}}}},Ez={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},r1={opacity:{drop:0,combining:.7},scale:{drop:.75}},Cz={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},gh=Cz.outOfTheWay+"s "+Ez.outOfTheWay,fx={fluid:"opacity "+gh,snap:"transform "+gh+", opacity "+gh,drop:function(t){var n=t+"s "+Ez.drop;return"transform "+n+", opacity "+n},outOfTheWay:"transform "+gh,placeholder:"height "+gh+", width "+gh+", margin "+gh},jH=function(t){return Ed(t,wi)?null:"translate("+t.x+"px, "+t.y+"px)"},AF={moveTo:jH,drop:function(t,n){var r=jH(t);return r?n?r+" scale("+r1.scale.drop+")":r:null}},IF=Cz.minDropTime,$J=Cz.maxDropTime,nTe=$J-IF,UH=1500,rTe=.6,iTe=function(e){var t=e.current,n=e.destination,r=e.reason,i=e1(t,n);if(i<=0)return IF;if(i>=UH)return $J;var o=i/UH,s=IF+nTe*o,l=r==="CANCEL"?s*rTe:s;return Number(l.toFixed(2))},oTe=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,o=e.afterCritical,s=r.draggables,l=r.droppables,c=Rs(t),d=c?l[c]:null,f=l[n.descriptor.droppableId],h=OJ({impact:t,draggable:n,draggables:s,afterCritical:o,droppable:d||f,viewport:i}),p=Cs(h,n.client.borderBox.center);return p},sTe=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,o=e.viewport,s=e.onLiftImpact;if(!r.at||n!=="DROP"){var l=PJ({draggables:t,impact:s,destination:i,viewport:o,forceShouldAnimate:!0});return{impact:l,didDropInsideDroppable:!1}}if(r.at.type==="REORDER")return{impact:r,didDropInsideDroppable:!0};var c=$({},r,{displaced:t1});return{impact:c,didDropInsideDroppable:!0}},aTe=function(e){var t=e.getState,n=e.dispatch;return function(r){return function(i){if(i.type!=="DROP"){r(i);return}var o=t(),s=i.payload.reason;if(o.phase==="COLLECTING"){n(ZCe({reason:s}));return}if(o.phase!=="IDLE"){var l=o.phase==="DROP_PENDING"&&o.isWaiting;l&&He(!1),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||He(!1);var c=o.critical,d=o.dimensions,f=d.draggables[o.critical.draggable.id],h=sTe({reason:s,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),p=h.impact,g=h.didDropInsideDroppable,v=g?gz(p):null,y=g?gk(p):null,S={index:c.draggable.index,droppableId:c.droppable.id},_={draggableId:f.descriptor.id,type:f.descriptor.type,source:S,reason:s,mode:o.movementMode,destination:v,combine:y},b=oTe({impact:p,draggable:f,dimensions:d,viewport:o.viewport,afterCritical:o.afterCritical}),x={critical:o.critical,afterCritical:o.afterCritical,result:_,impact:p},E=!Ed(o.current.client.offset,b)||!!_.combine;if(!E){n(Sz({completed:x}));return}var A=iTe({current:o.current.client.offset,destination:b,reason:s}),I={newHomeClientOffset:b,dropDuration:A,completed:x};n(JCe(I))}}}},FJ=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function lTe(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(n){n.target!==window&&n.target!==window.document||e()}}}function cTe(e){var t=e.onWindowScroll;function n(){t(FJ())}var r=Zx(n),i=lTe(r),o=Sd;function s(){return o!==Sd}function l(){s()&&He(!1),o=na(window,[i])}function c(){s()||He(!1),r.cancel(),o(),o=Sd}return{start:l,stop:c,isActive:s}}var uTe=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},dTe=function(e){var t=cTe({onWindowScroll:function(r){e.dispatch(VCe({newScroll:r}))}});return function(n){return function(r){!t.isActive()&&r.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&uTe(r)&&t.stop(),n(r)}}},fTe=function(e){var t=!1,n=!1,r=setTimeout(function(){n=!0}),i=function(s){t||n||(t=!0,e(s),clearTimeout(r))};return i.wasCalled=function(){return t},i},hTe=function(){var e=[],t=function(o){var s=mz(e,function(d){return d.timerId===o});s===-1&&He(!1);var l=e.splice(s,1),c=l[0];c.callback()},n=function(o){var s=setTimeout(function(){return t(s)}),l={timerId:s,callback:o};e.push(l)},r=function(){if(e.length){var o=[].concat(e);e.length=0,o.forEach(function(s){clearTimeout(s.timerId),s.callback()})}};return{add:n,flush:r}},pTe=function(t,n){return t==null&&n==null?!0:t==null||n==null?!1:t.droppableId===n.droppableId&&t.index===n.index},mTe=function(t,n){return t==null&&n==null?!0:t==null||n==null?!1:t.draggableId===n.draggableId&&t.droppableId===n.droppableId},gTe=function(t,n){if(t===n)return!0;var r=t.draggable.id===n.draggable.id&&t.draggable.droppableId===n.draggable.droppableId&&t.draggable.type===n.draggable.type&&t.draggable.index===n.draggable.index,i=t.droppable.id===n.droppable.id&&t.droppable.type===n.droppable.type;return r&&i},ob=function(t,n){n()},l_=function(t,n){return{draggableId:t.draggable.id,type:t.droppable.type,source:{droppableId:t.droppable.id,index:t.draggable.index},mode:n}},SL=function(t,n,r,i){if(!t){r(i(n));return}var o=fTe(r),s={announce:o};t(n,s),o.wasCalled()||r(i(n))},vTe=function(e,t){var n=hTe(),r=null,i=function(p,g){r&&He(!1),ob("onBeforeCapture",function(){var v=e().onBeforeCapture;if(v){var y={draggableId:p,mode:g};v(y)}})},o=function(p,g){r&&He(!1),ob("onBeforeDragStart",function(){var v=e().onBeforeDragStart;v&&v(l_(p,g))})},s=function(p,g){r&&He(!1);var v=l_(p,g);r={mode:g,lastCritical:p,lastLocation:v.source,lastCombine:null},n.add(function(){ob("onDragStart",function(){return SL(e().onDragStart,v,t,kS.onDragStart)})})},l=function(p,g){var v=gz(g),y=gk(g);r||He(!1);var S=!gTe(p,r.lastCritical);S&&(r.lastCritical=p);var _=!pTe(r.lastLocation,v);_&&(r.lastLocation=v);var b=!mTe(r.lastCombine,y);if(b&&(r.lastCombine=y),!(!S&&!_&&!b)){var x=$({},l_(p,r.mode),{combine:y,destination:v});n.add(function(){ob("onDragUpdate",function(){return SL(e().onDragUpdate,x,t,kS.onDragUpdate)})})}},c=function(){r||He(!1),n.flush()},d=function(p){r||He(!1),r=null,ob("onDragEnd",function(){return SL(e().onDragEnd,p,t,kS.onDragEnd)})},f=function(){if(r){var p=$({},l_(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});d(p)}};return{beforeCapture:i,beforeStart:o,start:s,update:l,flush:c,drop:d,abort:f}},yTe=function(e,t){var n=vTe(e,t);return function(r){return function(i){return function(o){if(o.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){var s=o.payload.critical;n.beforeStart(s,o.payload.movementMode),i(o),n.start(s,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){var l=o.payload.completed.result;n.flush(),i(o),n.drop(l);return}if(i(o),o.type==="FLUSH"){n.abort();return}var c=r.getState();c.phase==="DRAGGING"&&n.update(c.critical,c.impact)}}}},bTe=function(e){return function(t){return function(n){if(n.type!=="DROP_ANIMATION_FINISHED"){t(n);return}var r=e.getState();r.phase!=="DROP_ANIMATING"&&He(!1),e.dispatch(Sz({completed:r.completed}))}}},xTe=function(e){var t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return function(i){return function(o){if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&r(),i(o),o.type==="DROP_ANIMATE"){var s={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var c=e.getState();c.phase==="DROP_ANIMATING"&&e.dispatch(BJ())}};n=requestAnimationFrame(function(){n=null,t=na(window,[s])})}}}},wTe=function(e){return function(){return function(t){return function(n){(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),t(n)}}}},_Te=function(e){var t=!1;return function(){return function(n){return function(r){if(r.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(r.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(r.type==="DROP_COMPLETE"){t=!1;var i=r.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}},STe=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},ETe=function(e){return function(t){return function(n){return function(r){if(STe(r)){e.stop(),n(r);return}if(r.type==="INITIAL_PUBLISH"){n(r);var i=t.getState();i.phase!=="DRAGGING"&&He(!1),e.start(i);return}n(r),e.scroll(t.getState())}}}},CTe=function(e){return function(t){return function(n){if(t(n),n.type==="PUBLISH_WHILE_DRAGGING"){var r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(NJ({reason:r.reason})))}}}},TTe=tJ,kTe=function(e){var t=e.dimensionMarshal,n=e.focusMarshal,r=e.styleMarshal,i=e.getResponders,o=e.announce,s=e.autoScroller;return eJ(BCe,TTe(BSe(tTe(r),wTe(t),eTe(t),aTe,bTe,xTe,CTe,ETe(s),dTe,_Te(n),yTe(i,o))))},EL=function(){return{additions:{},removals:{},modified:{}}};function ATe(e){var t=e.registry,n=e.callbacks,r=EL(),i=null,o=function(){i||(n.collectionStarting(),i=requestAnimationFrame(function(){i=null;var f=r,h=f.additions,p=f.removals,g=f.modified,v=Object.keys(h).map(function(_){return t.draggable.getById(_).getDimension(wi)}).sort(function(_,b){return _.descriptor.index-b.descriptor.index}),y=Object.keys(g).map(function(_){var b=t.droppable.getById(_),x=b.callbacks.getScrollWhileDragging();return{droppableId:_,scroll:x}}),S={additions:v,removals:Object.keys(p),modified:y};r=EL(),n.publish(S)}))},s=function(f){var h=f.descriptor.id;r.additions[h]=f,r.modified[f.descriptor.droppableId]=!0,r.removals[h]&&delete r.removals[h],o()},l=function(f){var h=f.descriptor;r.removals[h.id]=!0,r.modified[h.droppableId]=!0,r.additions[h.id]&&delete r.additions[h.id],o()},c=function(){i&&(cancelAnimationFrame(i),i=null,r=EL())};return{add:s,remove:l,stop:c}}var zJ=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,i=e.width,o=Cs({x:n,y:t},{x:i,y:r}),s={x:Math.max(0,o.x),y:Math.max(0,o.y)};return s},jJ=function(){var e=document.documentElement;return e||He(!1),e},UJ=function(){var e=jJ(),t=zJ({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t},ITe=function(){var e=FJ(),t=UJ(),n=e.y,r=e.x,i=jJ(),o=i.clientWidth,s=i.clientHeight,l=r+o,c=n+s,d=el({top:n,left:r,right:l,bottom:c}),f={frame:d,scroll:{initial:e,current:e,max:t,diff:{value:wi,displacement:wi}}};return f},RTe=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry,i=ITe(),o=i.scroll.current,s=t.droppable,l=r.droppable.getAllByType(s.type).map(function(h){return h.callbacks.getDimensionAndWatchScroll(o,n)}),c=r.draggable.getAllByType(t.draggable.type).map(function(h){return h.getDimension(o)}),d={draggables:vJ(c),droppables:gJ(l)},f={dimensions:d,critical:t,viewport:i};return f};function HH(e,t,n){if(n.descriptor.id===t.id||n.descriptor.type!==t.type)return!1;var r=e.droppable.getById(n.descriptor.droppableId);return r.descriptor.mode==="virtual"}var PTe=function(e,t){var n=null,r=ATe({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(g,v){e.droppable.exists(g)||He(!1),n&&t.updateDroppableIsEnabled({id:g,isEnabled:v})},o=function(g,v){n&&(e.droppable.exists(g)||He(!1),t.updateDroppableIsCombineEnabled({id:g,isCombineEnabled:v}))},s=function(g,v){n&&(e.droppable.exists(g)||He(!1),t.updateDroppableScroll({id:g,newScroll:v}))},l=function(g,v){n&&e.droppable.getById(g).callbacks.scroll(v)},c=function(){if(n){r.stop();var g=n.critical.droppable;e.droppable.getAllByType(g.type).forEach(function(v){return v.callbacks.dragStopped()}),n.unsubscribe(),n=null}},d=function(g){n||He(!1);var v=n.critical.draggable;g.type==="ADDITION"&&HH(e,v,g.value)&&r.add(g.value),g.type==="REMOVAL"&&HH(e,v,g.value)&&r.remove(g.value)},f=function(g){n&&He(!1);var v=e.draggable.getById(g.draggableId),y=e.droppable.getById(v.descriptor.droppableId),S={draggable:v.descriptor,droppable:y.descriptor},_=e.subscribe(d);return n={critical:S,unsubscribe:_},RTe({critical:S,registry:e,scrollOptions:g.scrollOptions})},h={updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:o,scrollDroppable:l,updateDroppableScroll:s,startPublishing:f,stopPublishing:c};return h},HJ=function(e,t){return e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP"},OTe=function(e){window.scrollBy(e.x,e.y)},MTe=xi(function(e){return mk(e).filter(function(t){return!(!t.isEnabled||!t.frame)})}),DTe=function(t,n){var r=Xd(MTe(n),function(i){return i.frame||He(!1),kJ(i.frame.pageMarginBox)(t)});return r},LTe=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var i=r[n];return i.frame?i:null}var o=DTe(t,r);return o},Cd={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(t){return Math.pow(t,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},NTe=function(e,t){var n=e[t.size]*Cd.startFromPercentage,r=e[t.size]*Cd.maxScrollAtPercentage,i={startScrollingFrom:n,maxScrollValueAt:r};return i},WJ=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,i=n-t;if(i===0)return 0;var o=r-t,s=o/i;return s},Tz=1,BTe=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Cd.maxPixelScroll;if(e===t.startScrollingFrom)return Tz;var n=WJ({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=1-n,i=Cd.maxPixelScroll*Cd.ease(r);return Math.ceil(i)},WH=Cd.durationDampening.accelerateAt,GH=Cd.durationDampening.stopDampeningAt,$Te=function(e,t){var n=t,r=GH,i=Date.now(),o=i-n;if(o>=GH)return e;if(ot.height,o=n.width>t.width;return!o&&!i?r:o&&i?null:{x:o?0:r.x,y:i?0:r.y}},zTe=pJ(function(e){return e===0?0:e}),GJ=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,o=e.shouldUseTimeDampening,s={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},l=qH({container:n,distanceToEdges:s,dragStartTime:t,axis:vz,shouldUseTimeDampening:o}),c=qH({container:n,distanceToEdges:s,dragStartTime:t,axis:xJ,shouldUseTimeDampening:o}),d=zTe({x:c,y:l});if(Ed(d,wi))return null;var f=FTe({container:n,subject:r,proposedScroll:d});return f?Ed(f,wi)?null:f:null},jTe=pJ(function(e){return e===0?0:e>0?1:-1}),kz=function(){var e=function(n,r){return n<0?n:n>r?n-r:0};return function(t){var n=t.current,r=t.max,i=t.change,o=Ui(n,i),s={x:e(o.x,r.x),y:e(o.y,r.y)};return Ed(s,wi)?null:s}}(),VJ=function(t){var n=t.max,r=t.current,i=t.change,o={x:Math.max(r.x,n.x),y:Math.max(r.y,n.y)},s=jTe(i),l=kz({max:o,current:r,change:s});return!l||s.x!==0&&l.x===0||s.y!==0&&l.y===0},Az=function(t,n){return VJ({current:t.scroll.current,max:t.scroll.max,change:n})},UTe=function(t,n){if(!Az(t,n))return null;var r=t.scroll.max,i=t.scroll.current;return kz({current:i,max:r,change:n})},Iz=function(t,n){var r=t.frame;return r?VJ({current:r.scroll.current,max:r.scroll.max,change:n}):!1},HTe=function(t,n){var r=t.frame;return!r||!Iz(t,n)?null:kz({current:r.scroll.current,max:r.scroll.max,change:n})},WTe=function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,s=GJ({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return s&&Az(t,s)?s:null},GTe=function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,s=t.frame;if(!s)return null;var l=GJ({dragStartTime:i,container:s.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:o});return l&&Iz(t,l)?l:null},XH=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,s=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id],c=l.page.marginBox;if(t.isWindowScrollAllowed){var d=t.viewport,f=WTe({dragStartTime:n,viewport:d,subject:c,center:s,shouldUseTimeDampening:r});if(f){i(f);return}}var h=LTe({center:s,destination:Rs(t.impact),droppables:t.dimensions.droppables});if(h){var p=GTe({dragStartTime:n,droppable:h,subject:c,center:s,shouldUseTimeDampening:r});p&&o(h.descriptor.id,p)}},VTe=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=Zx(t),i=Zx(n),o=null,s=function(f){o||He(!1);var h=o,p=h.shouldUseTimeDampening,g=h.dragStartTime;XH({state:f,scrollWindow:r,scrollDroppable:i,dragStartTime:g,shouldUseTimeDampening:p})},l=function(f){o&&He(!1);var h=Date.now(),p=!1,g=function(){p=!0};XH({state:f,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:g,scrollDroppable:g}),o={dragStartTime:h,shouldUseTimeDampening:p},p&&s(f)},c=function(){o&&(r.cancel(),i.cancel(),o=null)};return{start:l,stop:c,scroll:s}},qTe=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,i=function(d,f){var h=Ui(d.current.client.selection,f);t({client:h})},o=function(d,f){if(!Iz(d,f))return f;var h=HTe(d,f);if(!h)return n(d.descriptor.id,f),null;var p=Cs(f,h);n(d.descriptor.id,p);var g=Cs(f,p);return g},s=function(d,f,h){if(!d||!Az(f,h))return h;var p=UTe(f,h);if(!p)return r(h),null;var g=Cs(h,p);r(g);var v=Cs(h,g);return v},l=function(d){var f=d.scrollJumpRequest;if(f){var h=Rs(d.impact);h||He(!1);var p=o(d.dimensions.droppables[h],f);if(p){var g=d.viewport,v=s(d.isWindowScrollAllowed,g,p);v&&i(d,v)}}};return l},XTe=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,i=VTe({scrollWindow:n,scrollDroppable:t}),o=qTe({move:r,scrollWindow:n,scrollDroppable:t}),s=function(d){if(d.phase==="DRAGGING"){if(d.movementMode==="FLUID"){i.scroll(d);return}d.scrollJumpRequest&&o(d)}},l={scroll:s,start:i.start,stop:i.stop};return l},kg="data-rbd",Ag=function(){var e=kg+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),RF=function(){var e=kg+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),YTe=function(){var e=kg+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),YH={contextId:kg+"-scroll-container-context-id"},KTe=function(t){return function(n){return"["+n+'="'+t+'"]'}},sb=function(t,n){return t.map(function(r){var i=r.styles[n];return i?r.selector+" { "+i+" }":""}).join(" ")},QTe="pointer-events: none;",JTe=function(e){var t=KTe(e),n=function(){var l=` + `+NH(t.source)+` + `},AS={dragHandleUsageInstructions:MEe,onDragStart:DEe,onDragUpdate:LEe,onDragEnd:NEe},wi={x:0,y:0},Ui=function(t,n){return{x:t.x+n.x,y:t.y+n.y}},Cs=function(t,n){return{x:t.x-n.x,y:t.y-n.y}},Td=function(t,n){return t.x===n.x&&t.y===n.y},ev=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},yp=function(t,n,r){var i;return r===void 0&&(r=0),i={},i[t]=n,i[t==="x"?"y":"x"]=r,i},r1=function(t,n){return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))},BH=function(t,n){return Math.min.apply(Math,n.map(function(r){return r1(t,r)}))},bJ=function(t){return function(n){return{x:t(n.x),y:t(n.y)}}},BEe=function(e,t){var n=tl({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n},aw=function(t,n){return{top:t.top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x}},$H=function(t){return[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}]},$Ee={top:0,right:0,bottom:0,left:0},FEe=function(t,n){return n?aw(t,n.scroll.diff.displacement):t},zEe=function(t,n,r){if(r&&r.increasedBy){var i;return $({},t,(i={},i[n.end]=t[n.end]+r.increasedBy[n.line],i))}return t},jEe=function(t,n){return n&&n.shouldClipSubject?BEe(n.pageMarginBox,t):tl(t)},kg=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,i=e.frame,o=FEe(t.marginBox,i),s=zEe(o,r,n),l=jEe(s,i);return{page:t,withPlaceholder:n,active:l}},vz=function(e,t){e.frame||He(!1);var n=e.frame,r=Cs(t,n.scroll.initial),i=ev(r),o=$({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}}),s=kg({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o}),l=$({},e,{frame:o,subject:s});return l};function VE(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function yz(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;ne.bottom,d=r.lefte.right,f=c&&d;if(f)return!0;var h=c&&s||d&&o;return h}},GEe=function(e){var t=fa(e.top,e.bottom),n=fa(e.left,e.right);return function(r){var i=t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right);return i}},xz={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},CJ={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},VEe=function(e){return function(t){var n=fa(t.top,t.bottom),r=fa(t.left,t.right);return function(i){return e===xz?n(i.top)&&n(i.bottom):r(i.left)&&r(i.right)}}},qEe=function(t,n){var r=n.frame?n.frame.scroll.diff.displacement:wi;return aw(t,r)},XEe=function(t,n,r){return n.subject.active?r(n.subject.active)(t):!1},YEe=function(t,n,r){return r(n)(t)},wz=function(t){var n=t.target,r=t.destination,i=t.viewport,o=t.withDroppableDisplacement,s=t.isVisibleThroughFrameFn,l=o?qEe(n,r):n;return XEe(l,r,s)&&YEe(l,i,s)},KEe=function(t){return wz($({},t,{isVisibleThroughFrameFn:EJ}))},TJ=function(t){return wz($({},t,{isVisibleThroughFrameFn:GEe}))},QEe=function(t){return wz($({},t,{isVisibleThroughFrameFn:VEe(t.destination.axis)}))},JEe=function(t,n,r){if(typeof r=="boolean")return r;if(!n)return!0;var i=n.invisible,o=n.visible;if(i[t])return!1;var s=o[t];return s?s.shouldAnimate:!0};function ZEe(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return tl(mz(n,r))}function o1(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,s=e.last;return t.reduce(function(c,d){var f=ZEe(d,r),h=d.descriptor.id;c.all.push(h);var p=KEe({target:f,destination:n,viewport:i,withDroppableDisplacement:!0});if(!p)return c.invisible[d.descriptor.id]=!0,c;var g=JEe(h,s,o),v={draggableId:h,shouldAnimate:g};return c.visible[h]=v,c},{all:[],visible:{},invisible:{}})}function eCe(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function FH(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,i=e.destination,o=eCe(t,{inHomeList:n});return{displaced:i1,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function qE(e){var t=e.draggable,n=e.insideDestination,r=e.destination,i=e.viewport,o=e.displacedBy,s=e.last,l=e.index,c=e.forceShouldAnimate,d=nv(t,r);if(l==null)return FH({insideDestination:n,inHomeList:d,displacedBy:o,destination:r});var f=Yd(n,function(y){return y.descriptor.index===l});if(!f)return FH({insideDestination:n,inHomeList:d,displacedBy:o,destination:r});var h=bk(t,n),p=n.indexOf(f),g=h.slice(p),v=o1({afterDragging:g,destination:r,displacedBy:o,last:s,viewport:i.frame,forceShouldAnimate:c});return{displaced:v,displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function Ld(e,t){return!!t.effected[e]}var tCe=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,i=e.combine,o=e.afterCritical;if(!n.isCombineEnabled)return null;var s=i.draggableId,l=r[s],c=l.descriptor.index,d=Ld(s,o);return d?t?c:c-1:t?c+1:c},nCe=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,i=e.location;if(!r.length)return null;var o=i.index,s=t?o+1:o-1,l=r[0].descriptor.index,c=r[r.length-1].descriptor.index,d=n?c:c+1;return sd?null:s},rCe=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,o=e.destination,s=e.insideDestination,l=e.previousImpact,c=e.viewport,d=e.afterCritical,f=l.at;if(f||He(!1),f.type==="REORDER"){var h=nCe({isMovingForward:t,isInHomeList:n,location:f.destination,insideDestination:s});return h==null?null:qE({draggable:r,insideDestination:s,destination:o,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:h})}var p=tCe({isMovingForward:t,destination:o,displaced:l.displaced,draggables:i,combine:f.combine,afterCritical:d});return p==null?null:qE({draggable:r,insideDestination:s,destination:o,viewport:c,last:l.displaced,displacedBy:l.displacedBy,index:p})},iCe=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,i=e.displacedBy,o=!!(t.visible[r]||t.invisible[r]);return Ld(r,n)?o?wi:ev(i.point):o?i.point:wi},oCe=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,i=yk(n);i||He(!1);var o=i.draggableId,s=r[o].page.borderBox.center,l=iCe({displaced:n.displaced,afterCritical:t,combineWith:o,displacedBy:n.displacedBy});return Ui(s,l)},kJ=function(t,n){return n.margin[t.start]+n.borderBox[t.size]/2},sCe=function(t,n){return n.margin[t.end]+n.borderBox[t.size]/2},_z=function(t,n,r){return n[t.crossAxisStart]+r.margin[t.crossAxisStart]+r.borderBox[t.crossAxisSize]/2},zH=function(t){var n=t.axis,r=t.moveRelativeTo,i=t.isMoving;return yp(n.line,r.marginBox[n.end]+kJ(n,i),_z(n,r.marginBox,i))},jH=function(t){var n=t.axis,r=t.moveRelativeTo,i=t.isMoving;return yp(n.line,r.marginBox[n.start]-sCe(n,i),_z(n,r.marginBox,i))},aCe=function(t){var n=t.axis,r=t.moveInto,i=t.isMoving;return yp(n.line,r.contentBox[n.start]+kJ(n,i),_z(n,r.contentBox,i))},lCe=function(e){var t=e.impact,n=e.draggable,r=e.draggables,i=e.droppable,o=e.afterCritical,s=tv(i.descriptor.id,r),l=n.page,c=i.axis;if(!s.length)return aCe({axis:c,moveInto:i.page,isMoving:l});var d=t.displaced,f=t.displacedBy,h=d.all[0];if(h){var p=r[h];if(Ld(h,o))return jH({axis:c,moveRelativeTo:p.page,isMoving:l});var g=UE(p.page,f.point);return jH({axis:c,moveRelativeTo:g,isMoving:l})}var v=s[s.length-1];if(v.descriptor.id===n.descriptor.id)return l.borderBox.center;if(Ld(v.descriptor.id,o)){var y=UE(v.page,ev(o.displacedBy.point));return zH({axis:c,moveRelativeTo:y,isMoving:l})}return zH({axis:c,moveRelativeTo:v.page,isMoving:l})},AF=function(e,t){var n=e.frame;return n?Ui(t,n.scroll.diff.displacement):t},cCe=function(t){var n=t.impact,r=t.draggable,i=t.droppable,o=t.draggables,s=t.afterCritical,l=r.page.borderBox.center,c=n.at;return!i||!c?l:c.type==="REORDER"?lCe({impact:n,draggable:r,draggables:o,droppable:i,afterCritical:s}):oCe({impact:n,draggables:o,afterCritical:s})},xk=function(e){var t=cCe(e),n=e.droppable,r=n?AF(n,t):t;return r},AJ=function(e,t){var n=Cs(t,e.scroll.initial),r=ev(n),i=tl({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),o={frame:i,scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}};return o};function UH(e,t){return e.map(function(n){return t[n]})}function uCe(e,t){for(var n=0;n1?f.sort(function(h,p){return vo(h)[l.start]-vo(p)[l.start]})[0]:d.sort(function(h,p){var g=BH(n,$H(vo(h))),v=BH(n,$H(vo(p)));return g!==v?g-v:vo(h)[l.start]-vo(p)[l.start]})[0]},HH=function(t,n){var r=t.page.borderBox.center;return Ld(t.descriptor.id,n)?Cs(r,n.displacedBy.point):r},mCe=function(t,n){var r=t.page.borderBox;return Ld(t.descriptor.id,n)?aw(r,ev(n.displacedBy.point)):r},gCe=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,i=e.insideDestination,o=e.afterCritical,s=i.filter(function(l){return TJ({target:mCe(l,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})}).sort(function(l,c){var d=r1(t,AF(r,HH(l,o))),f=r1(t,AF(r,HH(c,o)));return dt.left&&e.topt.top}function ECe(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,i=n.page.borderBox.center,o=r.map(function(s){var l=s.axis,c=yp(s.axis.line,t.center[l.line],s.page.borderBox.center[l.crossAxisLine]);return{id:s.descriptor.id,distance:r1(i,c)}}).sort(function(s,l){return l.distance-s.distance});return o[0]?o[0].id:null}function CCe(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,i=vk(r).filter(function(o){if(!o.isEnabled)return!1;var s=o.subject.active;if(!s||!SCe(t,s))return!1;if(OJ(s)(t.center))return!0;var l=o.axis,c=s.center[l.crossAxisLine],d=t[l.crossAxisStart],f=t[l.crossAxisEnd],h=fa(s[l.crossAxisStart],s[l.crossAxisEnd]),p=h(d),g=h(f);return!p&&!g?!0:p?dc});return i.length?i.length===1?i[0].descriptor.id:ECe({pageBorderBox:t,draggable:n,candidates:i}):null}var MJ=function(t,n){return tl(aw(t,n))},TCe=function(e,t){var n=e.frame;return n?MJ(t,n.scroll.diff.value):t};function DJ(e){var t=e.displaced,n=e.id;return!!(t.visible[n]||t.invisible[n])}function kCe(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var ACe=function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.last,s=e.viewport,l=e.afterCritical,c=r.axis,d=lw(r.axis,n.displaceBy),f=d.value,h=t[c.start],p=t[c.end],g=bk(n,i),v=Yd(g,function(S){var _=S.descriptor.id,b=S.page.borderBox.center[c.line],x=Ld(_,l),E=DJ({displaced:o,id:_});return x?E?p<=b:h_[l.start]+x&&h<_[l.end]-x:f>_[l.start]-d+x&&f<_[l.end]-d-x:A?h>_[l.start]+d+x&&h<_[l.end]+d-x:f>_[l.start]+x&&f<_[l.end]-x});if(!g)return null;var v={displacedBy:c,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:g.descriptor.id,droppableId:i.descriptor.id}}};return v},LJ=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,i=e.droppables,o=e.previousImpact,s=e.viewport,l=e.afterCritical,c=MJ(n.page.borderBox,t),d=CCe({pageBorderBox:c,draggable:n,droppables:i});if(!d)return WEe;var f=i[d],h=tv(f.descriptor.id,r),p=TCe(f,c);return ICe({pageBorderBoxWithDroppableScroll:p,draggable:n,previousImpact:o,destination:f,insideDestination:h,afterCritical:l})||ACe({pageBorderBoxWithDroppableScroll:p,draggable:n,destination:f,insideDestination:h,last:o.displaced,viewport:s,afterCritical:l})},Ez=function(e,t){var n;return $({},e,(n={},n[t.descriptor.id]=t,n))},PCe=function(t){var n=t.previousImpact,r=t.impact,i=t.droppables,o=Is(n),s=Is(r);if(!o||o===s)return i;var l=i[o];if(!l.subject.withPlaceholder)return i;var c=yCe(l);return Ez(i,c)},OCe=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,i=e.previousImpact,o=e.impact,s=PCe({previousImpact:i,impact:o,droppables:r}),l=Is(o);if(!l)return s;var c=r[l];if(nv(t,c)||c.subject.withPlaceholder)return s;var d=PJ(c,t,n);return Ez(s,d)},px=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,i=e.viewport,o=e.impact,s=e.scrollJumpRequest,l=i||t.viewport,c=r||t.dimensions,d=n||t.current.client.selection,f=Cs(d,t.initial.client.selection),h={offset:f,selection:d,borderBoxCenter:Ui(t.initial.client.borderBoxCenter,f)},p={selection:Ui(h.selection,l.scroll.current),borderBoxCenter:Ui(h.borderBoxCenter,l.scroll.current),offset:Ui(h.offset,l.scroll.diff.value)},g={client:h,page:p};if(t.phase==="COLLECTING")return $({phase:"COLLECTING"},t,{dimensions:c,viewport:l,current:g});var v=c.draggables[t.critical.draggable.id],y=o||LJ({pageOffset:p.offset,draggable:v,draggables:c.draggables,droppables:c.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),S=OCe({draggable:v,impact:y,previousImpact:t.impact,draggables:c.draggables,droppables:c.droppables}),_=$({},t,{current:g,dimensions:{draggables:c.draggables,droppables:S},impact:y,viewport:l,scrollJumpRequest:s||null,forceShouldAnimate:s?!1:null});return _};function MCe(e,t){return e.map(function(n){return t[n]})}var NJ=function(e){var t=e.impact,n=e.viewport,r=e.draggables,i=e.destination,o=e.forceShouldAnimate,s=t.displaced,l=MCe(s.all,r),c=o1({afterDragging:l,destination:i,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:o,last:s});return $({},t,{displaced:c})},BJ=function(e){var t=e.impact,n=e.draggable,r=e.droppable,i=e.draggables,o=e.viewport,s=e.afterCritical,l=xk({impact:t,draggable:n,draggables:i,droppable:r,afterCritical:s});return Sz({pageBorderBoxCenter:l,draggable:n,viewport:o})},$J=function(e){var t=e.state,n=e.dimensions,r=e.viewport;t.movementMode!=="SNAP"&&He(!1);var i=t.impact,o=r||t.viewport,s=n||t.dimensions,l=s.draggables,c=s.droppables,d=l[t.critical.draggable.id],f=Is(i);f||He(!1);var h=c[f],p=NJ({impact:i,viewport:o,destination:h,draggables:l}),g=BJ({impact:p,draggable:d,droppable:h,draggables:l,viewport:o,afterCritical:t.afterCritical});return px({impact:p,clientSelection:g,state:t,dimensions:s,viewport:o})},DCe=function(e){return{index:e.index,droppableId:e.droppableId}},FJ=function(e){var t=e.draggable,n=e.home,r=e.draggables,i=e.viewport,o=lw(n.axis,t.displaceBy),s=tv(n.descriptor.id,r),l=s.indexOf(t);l===-1&&He(!1);var c=s.slice(l+1),d=c.reduce(function(g,v){return g[v.descriptor.id]=!0,g},{}),f={inVirtualList:n.descriptor.mode==="virtual",displacedBy:o,effected:d},h=o1({afterDragging:c,destination:n,displacedBy:o,last:null,viewport:i.frame,forceShouldAnimate:!1}),p={displaced:h,displacedBy:o,at:{type:"REORDER",destination:DCe(t.descriptor)}};return{impact:p,afterCritical:f}},LCe=function(e,t){return{draggables:e.draggables,droppables:Ez(e.droppables,t)}},NCe=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,i=UE(t.client,n),o=HE(i,r),s=$({},t,{placeholder:$({},t.placeholder,{client:i}),client:i,page:o});return s},BCe=function(e){var t=e.frame;return t||He(!1),t},$Ce=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,i=r.scroll.diff.value;return t.map(function(o){var s=o.descriptor.droppableId,l=n[s],c=BCe(l),d=c.scroll.diff.value,f=Ui(i,d),h=NCe({draggable:o,offset:f,initialWindowScroll:r.scroll.initial});return h})},FCe=function(e){var t=e.state,n=e.published,r=n.modified.map(function(x){var E=t.dimensions.droppables[x.droppableId],A=vz(E,x.scroll);return A}),i=$({},t.dimensions.droppables,{},wJ(r)),o=_J($Ce({additions:n.additions,updatedDroppables:i,viewport:t.viewport})),s=$({},t.dimensions.draggables,{},o);n.removals.forEach(function(x){delete s[x]});var l={droppables:i,draggables:s},c=Is(t.impact),d=c?l.droppables[c]:null,f=l.draggables[t.critical.draggable.id],h=l.droppables[t.critical.droppable.id],p=FJ({draggable:f,home:h,draggables:s,viewport:t.viewport}),g=p.impact,v=p.afterCritical,y=d&&d.isCombineEnabled?t.impact:g,S=LJ({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:y,viewport:t.viewport,afterCritical:v}),_=$({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:S,onLiftImpact:g,dimensions:l,afterCritical:v,forceShouldAnimate:!1});if(t.phase==="COLLECTING")return _;var b=$({phase:"DROP_PENDING"},_,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1});return b},RF=function(t){return t.movementMode==="SNAP"},SL=function(t,n,r){var i=LCe(t.dimensions,n);return!RF(t)||r?px({state:t,dimensions:i}):$J({state:t,dimensions:i})};function EL(e){return e.isDragging&&e.movementMode==="SNAP"?$({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var WH={phase:"IDLE",completed:null,shouldFlush:!1},zCe=function(e,t){if(e===void 0&&(e=WH),t.type==="FLUSH")return $({},WH,{shouldFlush:!0});if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&He(!1);var n=t.payload,r=n.critical,i=n.clientSelection,o=n.viewport,s=n.dimensions,l=n.movementMode,c=s.draggables[r.draggable.id],d=s.droppables[r.droppable.id],f={selection:i,borderBoxCenter:c.client.borderBox.center,offset:wi},h={client:f,page:{selection:Ui(f.selection,o.scroll.initial),borderBoxCenter:Ui(f.selection,o.scroll.initial),offset:Ui(f.selection,o.scroll.diff.value)}},p=vk(s.droppables).every(function(ve){return!ve.isFixedOnPage}),g=FJ({draggable:c,home:d,draggables:s.draggables,viewport:o}),v=g.impact,y=g.afterCritical,S={phase:"DRAGGING",isDragging:!0,critical:r,movementMode:l,dimensions:s,initial:h,current:h,isWindowScrollAllowed:p,impact:v,afterCritical:y,onLiftImpact:v,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null};return S}if(t.type==="COLLECTION_STARTING"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&He(!1);var _=$({phase:"COLLECTING"},e,{phase:"COLLECTING"});return _}if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||He(!1),FCe({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;Ih(e)||He(!1);var b=t.payload.client;return Td(b,e.current.client.selection)?e:px({state:e,clientSelection:b,impact:RF(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return EL(e);Ih(e)||He(!1);var x=t.payload,E=x.id,A=x.newScroll,R=e.dimensions.droppables[E];if(!R)return e;var k=vz(R,A);return SL(e,k,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ih(e)||He(!1);var O=t.payload,L=O.id,N=O.isEnabled,H=e.dimensions.droppables[L];H||He(!1),H.isEnabled===N&&He(!1);var W=$({},H,{isEnabled:N});return SL(e,W,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;Ih(e)||He(!1);var z=t.payload,D=z.id,F=z.isCombineEnabled,j=e.dimensions.droppables[D];j||He(!1),j.isCombineEnabled===F&&He(!1);var V=$({},j,{isCombineEnabled:F});return SL(e,V,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;Ih(e)||He(!1),e.isWindowScrollAllowed||He(!1);var G=t.payload.newScroll;if(Td(e.viewport.scroll.current,G))return EL(e);var K=AJ(e.viewport,G);return RF(e)?$J({state:e,viewport:K}):px({state:e,viewport:K})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Ih(e))return e;var Y=t.payload.maxScroll;if(Td(Y,e.viewport.scroll.max))return e;var J=$({},e.viewport,{scroll:$({},e.viewport.scroll,{max:Y})});return $({phase:"DRAGGING"},e,{viewport:J})}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&He(!1);var ie=_Ce({state:e,type:t.type});return ie?px({state:e,impact:ie.impact,clientSelection:ie.clientSelection,scrollJumpRequest:ie.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){var ce=t.payload.reason;e.phase!=="COLLECTING"&&He(!1);var ue=$({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:ce});return ue}if(t.type==="DROP_ANIMATE"){var se=t.payload,Q=se.completed,ae=se.dropDuration,le=se.newHomeClientOffset;e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||He(!1);var he={phase:"DROP_ANIMATING",completed:Q,dropDuration:ae,newHomeClientOffset:le,dimensions:e.dimensions};return he}if(t.type==="DROP_COMPLETE"){var pe=t.payload.completed;return{phase:"IDLE",completed:pe,shouldFlush:!1}}return e},jCe=function(t){return{type:"BEFORE_INITIAL_CAPTURE",payload:t}},UCe=function(t){return{type:"LIFT",payload:t}},HCe=function(t){return{type:"INITIAL_PUBLISH",payload:t}},WCe=function(t){return{type:"PUBLISH_WHILE_DRAGGING",payload:t}},GCe=function(){return{type:"COLLECTION_STARTING",payload:null}},VCe=function(t){return{type:"UPDATE_DROPPABLE_SCROLL",payload:t}},qCe=function(t){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:t}},XCe=function(t){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:t}},zJ=function(t){return{type:"MOVE",payload:t}},YCe=function(t){return{type:"MOVE_BY_WINDOW_SCROLL",payload:t}},KCe=function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}},QCe=function(){return{type:"MOVE_UP",payload:null}},JCe=function(){return{type:"MOVE_DOWN",payload:null}},ZCe=function(){return{type:"MOVE_RIGHT",payload:null}},eTe=function(){return{type:"MOVE_LEFT",payload:null}},Cz=function(){return{type:"FLUSH",payload:null}},tTe=function(t){return{type:"DROP_ANIMATE",payload:t}},Tz=function(t){return{type:"DROP_COMPLETE",payload:t}},jJ=function(t){return{type:"DROP",payload:t}},nTe=function(t){return{type:"DROP_PENDING",payload:t}},UJ=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},rTe=function(e){return function(t){var n=t.getState,r=t.dispatch;return function(i){return function(o){if(o.type!=="LIFT"){i(o);return}var s=o.payload,l=s.id,c=s.clientSelection,d=s.movementMode,f=n();f.phase==="DROP_ANIMATING"&&r(Tz({completed:f.completed})),n().phase!=="IDLE"&&He(!1),r(Cz()),r(jCe({draggableId:l,movementMode:d}));var h={shouldPublishImmediately:d==="SNAP"},p={draggableId:l,scrollOptions:h},g=e.startPublishing(p),v=g.critical,y=g.dimensions,S=g.viewport;r(HCe({critical:v,dimensions:y,clientSelection:c,movementMode:d,viewport:S}))}}}},iTe=function(e){return function(){return function(t){return function(n){n.type==="INITIAL_PUBLISH"&&e.dragging(),n.type==="DROP_ANIMATE"&&e.dropping(n.payload.completed.result.reason),(n.type==="FLUSH"||n.type==="DROP_COMPLETE")&&e.resting(),t(n)}}}},kz={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},s1={opacity:{drop:0,combining:.7},scale:{drop:.75}},Az={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},vh=Az.outOfTheWay+"s "+kz.outOfTheWay,mx={fluid:"opacity "+vh,snap:"transform "+vh+", opacity "+vh,drop:function(t){var n=t+"s "+kz.drop;return"transform "+n+", opacity "+n},outOfTheWay:"transform "+vh,placeholder:"height "+vh+", width "+vh+", margin "+vh},GH=function(t){return Td(t,wi)?null:"translate("+t.x+"px, "+t.y+"px)"},IF={moveTo:GH,drop:function(t,n){var r=GH(t);return r?n?r+" scale("+s1.scale.drop+")":r:null}},PF=Az.minDropTime,HJ=Az.maxDropTime,oTe=HJ-PF,VH=1500,sTe=.6,aTe=function(e){var t=e.current,n=e.destination,r=e.reason,i=r1(t,n);if(i<=0)return PF;if(i>=VH)return HJ;var o=i/VH,s=PF+oTe*o,l=r==="CANCEL"?s*sTe:s;return Number(l.toFixed(2))},lTe=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,o=e.afterCritical,s=r.draggables,l=r.droppables,c=Is(t),d=c?l[c]:null,f=l[n.descriptor.droppableId],h=BJ({impact:t,draggable:n,draggables:s,afterCritical:o,droppable:d||f,viewport:i}),p=Cs(h,n.client.borderBox.center);return p},cTe=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,o=e.viewport,s=e.onLiftImpact;if(!r.at||n!=="DROP"){var l=NJ({draggables:t,impact:s,destination:i,viewport:o,forceShouldAnimate:!0});return{impact:l,didDropInsideDroppable:!1}}if(r.at.type==="REORDER")return{impact:r,didDropInsideDroppable:!0};var c=$({},r,{displaced:i1});return{impact:c,didDropInsideDroppable:!0}},uTe=function(e){var t=e.getState,n=e.dispatch;return function(r){return function(i){if(i.type!=="DROP"){r(i);return}var o=t(),s=i.payload.reason;if(o.phase==="COLLECTING"){n(nTe({reason:s}));return}if(o.phase!=="IDLE"){var l=o.phase==="DROP_PENDING"&&o.isWaiting;l&&He(!1),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||He(!1);var c=o.critical,d=o.dimensions,f=d.draggables[o.critical.draggable.id],h=cTe({reason:s,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),p=h.impact,g=h.didDropInsideDroppable,v=g?bz(p):null,y=g?yk(p):null,S={index:c.draggable.index,droppableId:c.droppable.id},_={draggableId:f.descriptor.id,type:f.descriptor.type,source:S,reason:s,mode:o.movementMode,destination:v,combine:y},b=lTe({impact:p,draggable:f,dimensions:d,viewport:o.viewport,afterCritical:o.afterCritical}),x={critical:o.critical,afterCritical:o.afterCritical,result:_,impact:p},E=!Td(o.current.client.offset,b)||!!_.combine;if(!E){n(Tz({completed:x}));return}var A=aTe({current:o.current.client.offset,destination:b,reason:s}),R={newHomeClientOffset:b,dropDuration:A,completed:x};n(tTe(R))}}}},WJ=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function dTe(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(n){n.target!==window&&n.target!==window.document||e()}}}function fTe(e){var t=e.onWindowScroll;function n(){t(WJ())}var r=n1(n),i=dTe(r),o=Cd;function s(){return o!==Cd}function l(){s()&&He(!1),o=ra(window,[i])}function c(){s()||He(!1),r.cancel(),o(),o=Cd}return{start:l,stop:c,isActive:s}}var hTe=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},pTe=function(e){var t=fTe({onWindowScroll:function(r){e.dispatch(YCe({newScroll:r}))}});return function(n){return function(r){!t.isActive()&&r.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&hTe(r)&&t.stop(),n(r)}}},mTe=function(e){var t=!1,n=!1,r=setTimeout(function(){n=!0}),i=function(s){t||n||(t=!0,e(s),clearTimeout(r))};return i.wasCalled=function(){return t},i},gTe=function(){var e=[],t=function(o){var s=yz(e,function(d){return d.timerId===o});s===-1&&He(!1);var l=e.splice(s,1),c=l[0];c.callback()},n=function(o){var s=setTimeout(function(){return t(s)}),l={timerId:s,callback:o};e.push(l)},r=function(){if(e.length){var o=[].concat(e);e.length=0,o.forEach(function(s){clearTimeout(s.timerId),s.callback()})}};return{add:n,flush:r}},vTe=function(t,n){return t==null&&n==null?!0:t==null||n==null?!1:t.droppableId===n.droppableId&&t.index===n.index},yTe=function(t,n){return t==null&&n==null?!0:t==null||n==null?!1:t.draggableId===n.draggableId&&t.droppableId===n.droppableId},bTe=function(t,n){if(t===n)return!0;var r=t.draggable.id===n.draggable.id&&t.draggable.droppableId===n.draggable.droppableId&&t.draggable.type===n.draggable.type&&t.draggable.index===n.draggable.index,i=t.droppable.id===n.droppable.id&&t.droppable.type===n.droppable.type;return r&&i},lb=function(t,n){n()},c_=function(t,n){return{draggableId:t.draggable.id,type:t.droppable.type,source:{droppableId:t.droppable.id,index:t.draggable.index},mode:n}},CL=function(t,n,r,i){if(!t){r(i(n));return}var o=mTe(r),s={announce:o};t(n,s),o.wasCalled()||r(i(n))},xTe=function(e,t){var n=gTe(),r=null,i=function(p,g){r&&He(!1),lb("onBeforeCapture",function(){var v=e().onBeforeCapture;if(v){var y={draggableId:p,mode:g};v(y)}})},o=function(p,g){r&&He(!1),lb("onBeforeDragStart",function(){var v=e().onBeforeDragStart;v&&v(c_(p,g))})},s=function(p,g){r&&He(!1);var v=c_(p,g);r={mode:g,lastCritical:p,lastLocation:v.source,lastCombine:null},n.add(function(){lb("onDragStart",function(){return CL(e().onDragStart,v,t,AS.onDragStart)})})},l=function(p,g){var v=bz(g),y=yk(g);r||He(!1);var S=!bTe(p,r.lastCritical);S&&(r.lastCritical=p);var _=!vTe(r.lastLocation,v);_&&(r.lastLocation=v);var b=!yTe(r.lastCombine,y);if(b&&(r.lastCombine=y),!(!S&&!_&&!b)){var x=$({},c_(p,r.mode),{combine:y,destination:v});n.add(function(){lb("onDragUpdate",function(){return CL(e().onDragUpdate,x,t,AS.onDragUpdate)})})}},c=function(){r||He(!1),n.flush()},d=function(p){r||He(!1),r=null,lb("onDragEnd",function(){return CL(e().onDragEnd,p,t,AS.onDragEnd)})},f=function(){if(r){var p=$({},c_(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});d(p)}};return{beforeCapture:i,beforeStart:o,start:s,update:l,flush:c,drop:d,abort:f}},wTe=function(e,t){var n=xTe(e,t);return function(r){return function(i){return function(o){if(o.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){var s=o.payload.critical;n.beforeStart(s,o.payload.movementMode),i(o),n.start(s,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){var l=o.payload.completed.result;n.flush(),i(o),n.drop(l);return}if(i(o),o.type==="FLUSH"){n.abort();return}var c=r.getState();c.phase==="DRAGGING"&&n.update(c.critical,c.impact)}}}},_Te=function(e){return function(t){return function(n){if(n.type!=="DROP_ANIMATION_FINISHED"){t(n);return}var r=e.getState();r.phase!=="DROP_ANIMATING"&&He(!1),e.dispatch(Tz({completed:r.completed}))}}},STe=function(e){var t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return function(i){return function(o){if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&r(),i(o),o.type==="DROP_ANIMATE"){var s={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var c=e.getState();c.phase==="DROP_ANIMATING"&&e.dispatch(UJ())}};n=requestAnimationFrame(function(){n=null,t=ra(window,[s])})}}}},ETe=function(e){return function(){return function(t){return function(n){(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),t(n)}}}},CTe=function(e){var t=!1;return function(){return function(n){return function(r){if(r.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(r.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(r.type==="DROP_COMPLETE"){t=!1;var i=r.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}},TTe=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},kTe=function(e){return function(t){return function(n){return function(r){if(TTe(r)){e.stop(),n(r);return}if(r.type==="INITIAL_PUBLISH"){n(r);var i=t.getState();i.phase!=="DRAGGING"&&He(!1),e.start(i);return}n(r),e.scroll(t.getState())}}}},ATe=function(e){return function(t){return function(n){if(t(n),n.type==="PUBLISH_WHILE_DRAGGING"){var r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(jJ({reason:r.reason})))}}}},RTe=sJ,ITe=function(e){var t=e.dimensionMarshal,n=e.focusMarshal,r=e.styleMarshal,i=e.getResponders,o=e.announce,s=e.autoScroller;return oJ(zCe,RTe(zSe(iTe(r),ETe(t),rTe(t),uTe,_Te,STe,ATe,kTe(s),pTe,CTe(n),wTe(i,o))))},TL=function(){return{additions:{},removals:{},modified:{}}};function PTe(e){var t=e.registry,n=e.callbacks,r=TL(),i=null,o=function(){i||(n.collectionStarting(),i=requestAnimationFrame(function(){i=null;var f=r,h=f.additions,p=f.removals,g=f.modified,v=Object.keys(h).map(function(_){return t.draggable.getById(_).getDimension(wi)}).sort(function(_,b){return _.descriptor.index-b.descriptor.index}),y=Object.keys(g).map(function(_){var b=t.droppable.getById(_),x=b.callbacks.getScrollWhileDragging();return{droppableId:_,scroll:x}}),S={additions:v,removals:Object.keys(p),modified:y};r=TL(),n.publish(S)}))},s=function(f){var h=f.descriptor.id;r.additions[h]=f,r.modified[f.descriptor.droppableId]=!0,r.removals[h]&&delete r.removals[h],o()},l=function(f){var h=f.descriptor;r.removals[h.id]=!0,r.modified[h.droppableId]=!0,r.additions[h.id]&&delete r.additions[h.id],o()},c=function(){i&&(cancelAnimationFrame(i),i=null,r=TL())};return{add:s,remove:l,stop:c}}var GJ=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,i=e.width,o=Cs({x:n,y:t},{x:i,y:r}),s={x:Math.max(0,o.x),y:Math.max(0,o.y)};return s},VJ=function(){var e=document.documentElement;return e||He(!1),e},qJ=function(){var e=VJ(),t=GJ({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t},OTe=function(){var e=WJ(),t=qJ(),n=e.y,r=e.x,i=VJ(),o=i.clientWidth,s=i.clientHeight,l=r+o,c=n+s,d=tl({top:n,left:r,right:l,bottom:c}),f={frame:d,scroll:{initial:e,current:e,max:t,diff:{value:wi,displacement:wi}}};return f},MTe=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry,i=OTe(),o=i.scroll.current,s=t.droppable,l=r.droppable.getAllByType(s.type).map(function(h){return h.callbacks.getDimensionAndWatchScroll(o,n)}),c=r.draggable.getAllByType(t.draggable.type).map(function(h){return h.getDimension(o)}),d={draggables:_J(c),droppables:wJ(l)},f={dimensions:d,critical:t,viewport:i};return f};function qH(e,t,n){if(n.descriptor.id===t.id||n.descriptor.type!==t.type)return!1;var r=e.droppable.getById(n.descriptor.droppableId);return r.descriptor.mode==="virtual"}var DTe=function(e,t){var n=null,r=PTe({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(g,v){e.droppable.exists(g)||He(!1),n&&t.updateDroppableIsEnabled({id:g,isEnabled:v})},o=function(g,v){n&&(e.droppable.exists(g)||He(!1),t.updateDroppableIsCombineEnabled({id:g,isCombineEnabled:v}))},s=function(g,v){n&&(e.droppable.exists(g)||He(!1),t.updateDroppableScroll({id:g,newScroll:v}))},l=function(g,v){n&&e.droppable.getById(g).callbacks.scroll(v)},c=function(){if(n){r.stop();var g=n.critical.droppable;e.droppable.getAllByType(g.type).forEach(function(v){return v.callbacks.dragStopped()}),n.unsubscribe(),n=null}},d=function(g){n||He(!1);var v=n.critical.draggable;g.type==="ADDITION"&&qH(e,v,g.value)&&r.add(g.value),g.type==="REMOVAL"&&qH(e,v,g.value)&&r.remove(g.value)},f=function(g){n&&He(!1);var v=e.draggable.getById(g.draggableId),y=e.droppable.getById(v.descriptor.droppableId),S={draggable:v.descriptor,droppable:y.descriptor},_=e.subscribe(d);return n={critical:S,unsubscribe:_},MTe({critical:S,registry:e,scrollOptions:g.scrollOptions})},h={updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:o,scrollDroppable:l,updateDroppableScroll:s,startPublishing:f,stopPublishing:c};return h},XJ=function(e,t){return e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP"},LTe=function(e){window.scrollBy(e.x,e.y)},NTe=xi(function(e){return vk(e).filter(function(t){return!(!t.isEnabled||!t.frame)})}),BTe=function(t,n){var r=Yd(NTe(n),function(i){return i.frame||He(!1),OJ(i.frame.pageMarginBox)(t)});return r},$Te=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var i=r[n];return i.frame?i:null}var o=BTe(t,r);return o},kd={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(t){return Math.pow(t,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},FTe=function(e,t){var n=e[t.size]*kd.startFromPercentage,r=e[t.size]*kd.maxScrollAtPercentage,i={startScrollingFrom:n,maxScrollValueAt:r};return i},YJ=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,i=n-t;if(i===0)return 0;var o=r-t,s=o/i;return s},Rz=1,zTe=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return kd.maxPixelScroll;if(e===t.startScrollingFrom)return Rz;var n=YJ({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=1-n,i=kd.maxPixelScroll*kd.ease(r);return Math.ceil(i)},XH=kd.durationDampening.accelerateAt,YH=kd.durationDampening.stopDampeningAt,jTe=function(e,t){var n=t,r=YH,i=Date.now(),o=i-n;if(o>=YH)return e;if(ot.height,o=n.width>t.width;return!o&&!i?r:o&&i?null:{x:o?0:r.x,y:i?0:r.y}},HTe=bJ(function(e){return e===0?0:e}),KJ=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,o=e.shouldUseTimeDampening,s={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},l=QH({container:n,distanceToEdges:s,dragStartTime:t,axis:xz,shouldUseTimeDampening:o}),c=QH({container:n,distanceToEdges:s,dragStartTime:t,axis:CJ,shouldUseTimeDampening:o}),d=HTe({x:c,y:l});if(Td(d,wi))return null;var f=UTe({container:n,subject:r,proposedScroll:d});return f?Td(f,wi)?null:f:null},WTe=bJ(function(e){return e===0?0:e>0?1:-1}),Iz=function(){var e=function(n,r){return n<0?n:n>r?n-r:0};return function(t){var n=t.current,r=t.max,i=t.change,o=Ui(n,i),s={x:e(o.x,r.x),y:e(o.y,r.y)};return Td(s,wi)?null:s}}(),QJ=function(t){var n=t.max,r=t.current,i=t.change,o={x:Math.max(r.x,n.x),y:Math.max(r.y,n.y)},s=WTe(i),l=Iz({max:o,current:r,change:s});return!l||s.x!==0&&l.x===0||s.y!==0&&l.y===0},Pz=function(t,n){return QJ({current:t.scroll.current,max:t.scroll.max,change:n})},GTe=function(t,n){if(!Pz(t,n))return null;var r=t.scroll.max,i=t.scroll.current;return Iz({current:i,max:r,change:n})},Oz=function(t,n){var r=t.frame;return r?QJ({current:r.scroll.current,max:r.scroll.max,change:n}):!1},VTe=function(t,n){var r=t.frame;return!r||!Oz(t,n)?null:Iz({current:r.scroll.current,max:r.scroll.max,change:n})},qTe=function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,s=KJ({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return s&&Pz(t,s)?s:null},XTe=function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,s=t.frame;if(!s)return null;var l=KJ({dragStartTime:i,container:s.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:o});return l&&Oz(t,l)?l:null},JH=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,s=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id],c=l.page.marginBox;if(t.isWindowScrollAllowed){var d=t.viewport,f=qTe({dragStartTime:n,viewport:d,subject:c,center:s,shouldUseTimeDampening:r});if(f){i(f);return}}var h=$Te({center:s,destination:Is(t.impact),droppables:t.dimensions.droppables});if(h){var p=XTe({dragStartTime:n,droppable:h,subject:c,center:s,shouldUseTimeDampening:r});p&&o(h.descriptor.id,p)}},YTe=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=n1(t),i=n1(n),o=null,s=function(f){o||He(!1);var h=o,p=h.shouldUseTimeDampening,g=h.dragStartTime;JH({state:f,scrollWindow:r,scrollDroppable:i,dragStartTime:g,shouldUseTimeDampening:p})},l=function(f){o&&He(!1);var h=Date.now(),p=!1,g=function(){p=!0};JH({state:f,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:g,scrollDroppable:g}),o={dragStartTime:h,shouldUseTimeDampening:p},p&&s(f)},c=function(){o&&(r.cancel(),i.cancel(),o=null)};return{start:l,stop:c,scroll:s}},KTe=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,i=function(d,f){var h=Ui(d.current.client.selection,f);t({client:h})},o=function(d,f){if(!Oz(d,f))return f;var h=VTe(d,f);if(!h)return n(d.descriptor.id,f),null;var p=Cs(f,h);n(d.descriptor.id,p);var g=Cs(f,p);return g},s=function(d,f,h){if(!d||!Pz(f,h))return h;var p=GTe(f,h);if(!p)return r(h),null;var g=Cs(h,p);r(g);var v=Cs(h,g);return v},l=function(d){var f=d.scrollJumpRequest;if(f){var h=Is(d.impact);h||He(!1);var p=o(d.dimensions.droppables[h],f);if(p){var g=d.viewport,v=s(d.isWindowScrollAllowed,g,p);v&&i(d,v)}}};return l},QTe=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,i=YTe({scrollWindow:n,scrollDroppable:t}),o=KTe({move:r,scrollWindow:n,scrollDroppable:t}),s=function(d){if(d.phase==="DRAGGING"){if(d.movementMode==="FLUID"){i.scroll(d);return}d.scrollJumpRequest&&o(d)}},l={scroll:s,start:i.start,stop:i.stop};return l},Ag="data-rbd",Rg=function(){var e=Ag+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),OF=function(){var e=Ag+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),JTe=function(){var e=Ag+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),ZH={contextId:Ag+"-scroll-container-context-id"},ZTe=function(t){return function(n){return"["+n+'="'+t+'"]'}},cb=function(t,n){return t.map(function(r){var i=r.styles[n];return i?r.selector+" { "+i+" }":""}).join(" ")},eke="pointer-events: none;",tke=function(e){var t=ZTe(e),n=function(){var l=` cursor: -webkit-grab; cursor: grab; - `;return{selector:t(Ag.contextId),styles:{always:` + `;return{selector:t(Rg.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; - `,resting:l,dragging:QTe,dropAnimating:l}}}(),r=function(){var l=` - transition: `+fx.outOfTheWay+`; - `;return{selector:t(RF.contextId),styles:{dragging:l,dropAnimating:l,userCancel:l}}}(),i={selector:t(YTe.contextId),styles:{always:"overflow-anchor: none;"}},o={selector:"body",styles:{dragging:` + `,resting:l,dragging:eke,dropAnimating:l}}}(),r=function(){var l=` + transition: `+mx.outOfTheWay+`; + `;return{selector:t(OF.contextId),styles:{dragging:l,dropAnimating:l,userCancel:l}}}(),i={selector:t(JTe.contextId),styles:{always:"overflow-anchor: none;"}},o={selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; @@ -441,11 +441,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; - `}},s=[r,n,i,o];return{always:sb(s,"always"),resting:sb(s,"resting"),dragging:sb(s,"dragging"),dropAnimating:sb(s,"dropAnimating"),userCancel:sb(s,"userCancel")}},Ps=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?R.useLayoutEffect:R.useEffect,CL=function(){var t=document.querySelector("head");return t||He(!1),t},KH=function(t){var n=document.createElement("style");return t&&n.setAttribute("nonce",t),n.type="text/css",n};function ZTe(e,t){var n=xn(function(){return JTe(e)},[e]),r=R.useRef(null),i=R.useRef(null),o=xt(xi(function(h){var p=i.current;p||He(!1),p.textContent=h}),[]),s=xt(function(h){var p=r.current;p||He(!1),p.textContent=h},[]);Ps(function(){!r.current&&!i.current||He(!1);var h=KH(t),p=KH(t);return r.current=h,i.current=p,h.setAttribute(kg+"-always",e),p.setAttribute(kg+"-dynamic",e),CL().appendChild(h),CL().appendChild(p),s(n.always),o(n.resting),function(){var g=function(y){var S=y.current;S||He(!1),CL().removeChild(S),y.current=null};g(r),g(i)}},[t,s,o,n.always,n.resting,e]);var l=xt(function(){return o(n.dragging)},[o,n.dragging]),c=xt(function(h){if(h==="DROP"){o(n.dropAnimating);return}o(n.userCancel)},[o,n.dropAnimating,n.userCancel]),d=xt(function(){i.current&&o(n.resting)},[o,n.resting]),f=xn(function(){return{dragging:l,dropping:c,resting:d}},[l,c,d]);return f}var qJ=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function bk(e){return e instanceof qJ(e).HTMLElement}function eke(e,t){var n="["+Ag.contextId+'="'+e+'"]',r=mJ(document.querySelectorAll(n));if(!r.length)return null;var i=Xd(r,function(o){return o.getAttribute(Ag.draggableId)===t});return!i||!bk(i)?null:i}function tke(e){var t=R.useRef({}),n=R.useRef(null),r=R.useRef(null),i=R.useRef(!1),o=xt(function(p,g){var v={id:p,focus:g};return t.current[p]=v,function(){var S=t.current,_=S[p];_!==v&&delete S[p]}},[]),s=xt(function(p){var g=eke(e,p);g&&g!==document.activeElement&&g.focus()},[e]),l=xt(function(p,g){n.current===p&&(n.current=g)},[]),c=xt(function(){r.current||i.current&&(r.current=requestAnimationFrame(function(){r.current=null;var p=n.current;p&&s(p)}))},[s]),d=xt(function(p){n.current=null;var g=document.activeElement;g&&g.getAttribute(Ag.draggableId)===p&&(n.current=p)},[]);Ps(function(){return i.current=!0,function(){i.current=!1;var p=r.current;p&&cancelAnimationFrame(p)}},[]);var f=xn(function(){return{register:o,tryRecordFocus:d,tryRestoreFocusRecorded:c,tryShiftRecord:l}},[o,d,c,l]);return f}function nke(){var e={draggables:{},droppables:{}},t=[];function n(h){return t.push(h),function(){var g=t.indexOf(h);g!==-1&&t.splice(g,1)}}function r(h){t.length&&t.forEach(function(p){return p(h)})}function i(h){return e.draggables[h]||null}function o(h){var p=i(h);return p||He(!1),p}var s={register:function(p){e.draggables[p.descriptor.id]=p,r({type:"ADDITION",value:p})},update:function(p,g){var v=e.draggables[g.descriptor.id];v&&v.uniqueId===p.uniqueId&&(delete e.draggables[g.descriptor.id],e.draggables[p.descriptor.id]=p)},unregister:function(p){var g=p.descriptor.id,v=i(g);v&&p.uniqueId===v.uniqueId&&(delete e.draggables[g],r({type:"REMOVAL",value:p}))},getById:o,findById:i,exists:function(p){return!!i(p)},getAllByType:function(p){return WE(e.draggables).filter(function(g){return g.descriptor.type===p})}};function l(h){return e.droppables[h]||null}function c(h){var p=l(h);return p||He(!1),p}var d={register:function(p){e.droppables[p.descriptor.id]=p},unregister:function(p){var g=l(p.descriptor.id);g&&p.uniqueId===g.uniqueId&&delete e.droppables[p.descriptor.id]},getById:c,findById:l,exists:function(p){return!!l(p)},getAllByType:function(p){return WE(e.droppables).filter(function(g){return g.descriptor.type===p})}};function f(){e.draggables={},e.droppables={},t.length=0}return{draggable:s,droppable:d,subscribe:n,clean:f}}function rke(){var e=xn(nke,[]);return R.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var Rz=de.createContext(null),VE=function(){var e=document.body;return e||He(!1),e},ike={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},oke=function(t){return"rbd-announcement-"+t};function ske(e){var t=xn(function(){return oke(e)},[e]),n=R.useRef(null);R.useEffect(function(){var o=document.createElement("div");return n.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),$(o.style,ike),VE().appendChild(o),function(){setTimeout(function(){var c=VE();c.contains(o)&&c.removeChild(o),o===n.current&&(n.current=null)})}},[t]);var r=xt(function(i){var o=n.current;if(o){o.textContent=i;return}},[]);return r}var ake=0,lke={separator:"::"};function Pz(e,t){return t===void 0&&(t=lke),xn(function(){return""+e+t.separator+ake++},[t.separator,e])}function cke(e){var t=e.contextId,n=e.uniqueId;return"rbd-hidden-text-"+t+"-"+n}function uke(e){var t=e.contextId,n=e.text,r=Pz("hidden-text",{separator:"-"}),i=xn(function(){return cke({contextId:t,uniqueId:r})},[r,t]);return R.useEffect(function(){var s=document.createElement("div");return s.id=i,s.textContent=n,s.style.display="none",VE().appendChild(s),function(){var c=VE();c.contains(s)&&c.removeChild(s)}},[i,n]),i}var xk=de.createContext(null);function XJ(e){var t=R.useRef(e);return R.useEffect(function(){t.current=e}),t}function dke(){var e=null;function t(){return!!e}function n(s){return s===e}function r(s){e&&He(!1);var l={abandon:s};return e=l,l}function i(){e||He(!1),e=null}function o(){e&&(e.abandon(),i())}return{isClaimed:t,isActive:n,claim:r,release:i,tryAbandon:o}}var fke=9,hke=13,Oz=27,YJ=32,pke=33,mke=34,gke=35,vke=36,yke=37,bke=38,xke=39,wke=40,c_,_ke=(c_={},c_[hke]=!0,c_[fke]=!0,c_),KJ=function(e){_ke[e.keyCode]&&e.preventDefault()},wk=function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],n=Xd(t,function(r){return"on"+r in document});return n||e}(),QJ=0,QH=5;function Ske(e,t){return Math.abs(t.x-e.x)>=QH||Math.abs(t.y-e.y)>=QH}var JH={type:"IDLE"};function Eke(e){var t=e.cancel,n=e.completed,r=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(s){var l=s.button,c=s.clientX,d=s.clientY;if(l===QJ){var f={x:c,y:d},h=r();if(h.type==="DRAGGING"){s.preventDefault(),h.actions.move(f);return}h.type!=="PENDING"&&He(!1);var p=h.point;if(Ske(p,f)){s.preventDefault();var g=h.actions.fluidLift(f);i({type:"DRAGGING",actions:g})}}}},{eventName:"mouseup",fn:function(s){var l=r();if(l.type!=="DRAGGING"){t();return}s.preventDefault(),l.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:function(s){r().type==="DRAGGING"&&s.preventDefault(),t()}},{eventName:"keydown",fn:function(s){var l=r();if(l.type==="PENDING"){t();return}if(s.keyCode===Oz){s.preventDefault(),t();return}KJ(s)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:function(s){var l=r();if(l.type==="IDLE"&&He(!1),l.actions.shouldRespectForcePress()){t();return}s.preventDefault()}},{eventName:wk,fn:t}]}function Cke(e){var t=R.useRef(JH),n=R.useRef(Sd),r=xn(function(){return{eventName:"mousedown",fn:function(h){if(!h.defaultPrevented&&h.button===QJ&&!(h.ctrlKey||h.metaKey||h.shiftKey||h.altKey)){var p=e.findClosestDraggableId(h);if(p){var g=e.tryGetLock(p,s,{sourceEvent:h});if(g){h.preventDefault();var v={x:h.clientX,y:h.clientY};n.current(),d(g,v)}}}}}},[e]),i=xn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(h){if(!h.defaultPrevented){var p=e.findClosestDraggableId(h);if(p){var g=e.findOptionsForDraggable(p);g&&(g.shouldRespectForcePress||e.canGetLock(p)&&h.preventDefault())}}}}},[e]),o=xt(function(){var h={passive:!1,capture:!0};n.current=na(window,[i,r],h)},[i,r]),s=xt(function(){var f=t.current;f.type!=="IDLE"&&(t.current=JH,n.current(),o())},[o]),l=xt(function(){var f=t.current;s(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[s]),c=xt(function(){var h={capture:!0,passive:!1},p=Eke({cancel:l,completed:s,getPhase:function(){return t.current},setPhase:function(v){t.current=v}});n.current=na(window,p,h)},[l,s]),d=xt(function(h,p){t.current.type!=="IDLE"&&He(!1),t.current={type:"PENDING",point:p,actions:h},c()},[c]);Ps(function(){return o(),function(){n.current()}},[o])}var qp;function Tke(){}var kke=(qp={},qp[mke]=!0,qp[pke]=!0,qp[vke]=!0,qp[gke]=!0,qp);function Ake(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:function(o){if(o.keyCode===Oz){o.preventDefault(),n();return}if(o.keyCode===YJ){o.preventDefault(),r();return}if(o.keyCode===wke){o.preventDefault(),e.moveDown();return}if(o.keyCode===bke){o.preventDefault(),e.moveUp();return}if(o.keyCode===xke){o.preventDefault(),e.moveRight();return}if(o.keyCode===yke){o.preventDefault(),e.moveLeft();return}if(kke[o.keyCode]){o.preventDefault();return}KJ(o)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:wk,fn:n}]}function Ike(e){var t=R.useRef(Tke),n=xn(function(){return{eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==YJ)return;var s=e.findClosestDraggableId(o);if(!s)return;var l=e.tryGetLock(s,f,{sourceEvent:o});if(!l)return;o.preventDefault();var c=!0,d=l.snapLift();t.current();function f(){c||He(!1),c=!1,t.current(),r()}t.current=na(window,Ake(d,f),{capture:!0,passive:!1})}}},[e]),r=xt(function(){var o={passive:!1,capture:!0};t.current=na(window,[n],o)},[n]);Ps(function(){return r(),function(){t.current()}},[r])}var TL={type:"IDLE"},Rke=120,Pke=.15;function Oke(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(i){i.preventDefault()}},{eventName:"keydown",fn:function(i){if(n().type!=="DRAGGING"){t();return}i.keyCode===Oz&&i.preventDefault(),t()}},{eventName:wk,fn:t}]}function Mke(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(o){var s=r();if(s.type!=="DRAGGING"){t();return}s.hasMoved=!0;var l=o.touches[0],c=l.clientX,d=l.clientY,f={x:c,y:d};o.preventDefault(),s.actions.move(f)}},{eventName:"touchend",fn:function(o){var s=r();if(s.type!=="DRAGGING"){t();return}o.preventDefault(),s.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:function(o){if(r().type!=="DRAGGING"){t();return}o.preventDefault(),t()}},{eventName:"touchforcechange",fn:function(o){var s=r();s.type==="IDLE"&&He(!1);var l=o.touches[0];if(l){var c=l.force>=Pke;if(c){var d=s.actions.shouldRespectForcePress();if(s.type==="PENDING"){d&&t();return}if(d){if(s.hasMoved){o.preventDefault();return}t();return}o.preventDefault()}}}},{eventName:wk,fn:t}]}function Dke(e){var t=R.useRef(TL),n=R.useRef(Sd),r=xt(function(){return t.current},[]),i=xt(function(g){t.current=g},[]),o=xn(function(){return{eventName:"touchstart",fn:function(g){if(!g.defaultPrevented){var v=e.findClosestDraggableId(g);if(v){var y=e.tryGetLock(v,l,{sourceEvent:g});if(y){var S=g.touches[0],_=S.clientX,b=S.clientY,x={x:_,y:b};n.current(),h(y,x)}}}}}},[e]),s=xt(function(){var g={capture:!0,passive:!1};n.current=na(window,[o],g)},[o]),l=xt(function(){var p=t.current;p.type!=="IDLE"&&(p.type==="PENDING"&&clearTimeout(p.longPressTimerId),i(TL),n.current(),s())},[s,i]),c=xt(function(){var p=t.current;l(),p.type==="DRAGGING"&&p.actions.cancel({shouldBlockNextClick:!0}),p.type==="PENDING"&&p.actions.abort()},[l]),d=xt(function(){var g={capture:!0,passive:!1},v={cancel:c,completed:l,getPhase:r},y=na(window,Mke(v),g),S=na(window,Oke(v),g);n.current=function(){y(),S()}},[c,r,l]),f=xt(function(){var g=r();g.type!=="PENDING"&&He(!1);var v=g.actions.fluidLift(g.point);i({type:"DRAGGING",actions:v,hasMoved:!1})},[r,i]),h=xt(function(g,v){r().type!=="IDLE"&&He(!1);var y=setTimeout(f,Rke);i({type:"PENDING",point:v,actions:g,longPressTimerId:y}),d()},[d,r,i,f]);Ps(function(){return s(),function(){n.current();var v=r();v.type==="PENDING"&&(clearTimeout(v.longPressTimerId),i(TL))}},[r,s,i]),Ps(function(){var g=na(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return g},[])}var Lke={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function JJ(e,t){if(t==null)return!1;var n=!!Lke[t.tagName.toLowerCase()];if(n)return!0;var r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:JJ(e,t.parentElement)}function Nke(e,t){var n=t.target;return bk(n)?JJ(e,n):!1}var Bke=function(e){return el(e.getBoundingClientRect()).center};function $ke(e){return e instanceof qJ(e).Element}var Fke=function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],n=Xd(t,function(r){return r in Element.prototype});return n||e}();function ZJ(e,t){return e==null?null:e[Fke](t)?e:ZJ(e.parentElement,t)}function zke(e,t){return e.closest?e.closest(t):ZJ(e,t)}function jke(e){return"["+Ag.contextId+'="'+e+'"]'}function Uke(e,t){var n=t.target;if(!$ke(n))return null;var r=jke(e),i=zke(n,r);return!i||!bk(i)?null:i}function Hke(e,t){var n=Uke(e,t);return n?n.getAttribute(Ag.draggableId):null}function Wke(e,t){var n="["+RF.contextId+'="'+e+'"]',r=mJ(document.querySelectorAll(n)),i=Xd(r,function(o){return o.getAttribute(RF.id)===t});return!i||!bk(i)?null:i}function Gke(e){e.preventDefault()}function u_(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!(!r()||t!==n)}function eZ(e){var t=e.lockAPI,n=e.store,r=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=r.draggable.findById(i);return!(!o||!o.options.isEnabled||!HJ(n.getState(),i))}function Vke(e){var t=e.lockAPI,n=e.contextId,r=e.store,i=e.registry,o=e.draggableId,s=e.forceSensorStop,l=e.sourceEvent,c=eZ({lockAPI:t,store:r,registry:i,draggableId:o});if(!c)return null;var d=i.draggable.getById(o),f=Wke(n,d.descriptor.id);if(!f||l&&!d.options.canDragInteractiveElements&&Nke(f,l))return null;var h=t.claim(s||Sd),p="PRE_DRAG";function g(){return d.options.shouldRespectForcePress}function v(){return t.isActive(h)}function y(I,k){u_({expected:I,phase:p,isLockActive:v,shouldWarn:!0})&&r.dispatch(k())}var S=y.bind(null,"DRAGGING");function _(I){function k(){t.release(),p="COMPLETED"}p!=="PRE_DRAG"&&(k(),p!=="PRE_DRAG"&&He(!1)),r.dispatch(FCe(I.liftActionArgs)),p="DRAGGING";function O(L,N){if(N===void 0&&(N={shouldBlockNextClick:!1}),I.cleanup(),N.shouldBlockNextClick){var H=na(window,[{eventName:"click",fn:Gke,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(H)}k(),r.dispatch(NJ({reason:L}))}return $({isActive:function(){return u_({expected:"DRAGGING",phase:p,isLockActive:v,shouldWarn:!1})},shouldRespectForcePress:g,drop:function(N){return O("DROP",N)},cancel:function(N){return O("CANCEL",N)}},I.actions)}function b(I){var k=Zx(function(L){S(function(){return LJ({client:L})})}),O=_({liftActionArgs:{id:o,clientSelection:I,movementMode:"FLUID"},cleanup:function(){return k.cancel()},actions:{move:k}});return $({},O,{move:k})}function x(){var I={moveUp:function(){return S(XCe)},moveRight:function(){return S(KCe)},moveDown:function(){return S(YCe)},moveLeft:function(){return S(QCe)}};return _({liftActionArgs:{id:o,clientSelection:Bke(f),movementMode:"SNAP"},cleanup:Sd,actions:I})}function E(){var I=u_({expected:"PRE_DRAG",phase:p,isLockActive:v,shouldWarn:!0});I&&t.release()}var A={isActive:function(){return u_({expected:"PRE_DRAG",phase:p,isLockActive:v,shouldWarn:!1})},shouldRespectForcePress:g,fluidLift:b,snapLift:x,abort:E};return A}var qke=[Cke,Ike,Dke];function Xke(e){var t=e.contextId,n=e.store,r=e.registry,i=e.customSensors,o=e.enableDefaultSensors,s=[].concat(o?qke:[],i||[]),l=R.useState(function(){return dke()})[0],c=xt(function(b,x){b.isDragging&&!x.isDragging&&l.tryAbandon()},[l]);Ps(function(){var b=n.getState(),x=n.subscribe(function(){var E=n.getState();c(b,E),b=E});return x},[l,n,c]),Ps(function(){return l.tryAbandon},[l.tryAbandon]);for(var d=xt(function(_){return eZ({lockAPI:l,registry:r,store:n,draggableId:_})},[l,r,n]),f=xt(function(_,b,x){return Vke({lockAPI:l,registry:r,contextId:t,store:n,draggableId:_,forceSensorStop:b,sourceEvent:x&&x.sourceEvent?x.sourceEvent:null})},[t,l,r,n]),h=xt(function(_){return Hke(t,_)},[t]),p=xt(function(_){var b=r.draggable.findById(_);return b?b.options:null},[r.draggable]),g=xt(function(){l.isClaimed()&&(l.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(_z()))},[l,n]),v=xt(l.isClaimed,[l]),y=xn(function(){return{canGetLock:d,tryGetLock:f,findClosestDraggableId:h,findOptionsForDraggable:p,tryReleaseLock:g,isLockClaimed:v}},[d,f,h,p,g,v]),S=0;S{},onDeleteItem:o=()=>{},enabled:s=!1,element:l=C.jsx(UAe,{}),value:c,id:d,i:f=0,variant:h="default",extrasPlacement:p="center",autoFocus:g,cardStyle:v,sortable:y}){const[S,_]=R.useState(null),b=Rn(),x=E=>C.jsxs(dt,{display:"flex",alignItems:p,children:[y&&C.jsx("div",{...E,children:C.jsx(dt,{color:"text.secondary",sx:{pr:2},children:C.jsx(rxe,{})})}),e!==null&&R.cloneElement(e,{style:{marginRight:b.spacing(1),marginTop:b.spacing(.5),marginBottom:b.spacing(.5)},color:"action"}),C.jsx(dt,{flexGrow:1,sx:{ml:e===null?2:0},children:R.cloneElement(l,{onDelete:()=>o(d??f),autoFocus:g,value:c,key:d??f,onValueChange:A=>i(d??f,A,s),onChange:A=>i(d??f,A.target.value,s),ref:A=>_(A)})}),C.jsxs(dt,{display:"flex",alignItems:"center",children:[t&&C.jsx(_g,{color:"primary",edge:"end",onChange:(A,I)=>i(d??f,c,I),checked:s}),r&&C.jsx(dp,{edge:"end",onClick:()=>{S!=null&&S.focus&&S.focus()},children:C.jsx(tk,{})}),n&&C.jsx(dp,{onClick:()=>o(d??f),children:C.jsx(exe,{})})]})]});return C.jsx(NAe,{index:f,draggableId:`${d}`,children:E=>C.jsx("div",{ref:E.innerRef,...E.draggableProps,children:C.jsx(dt,{sx:{pb:1,ml:2},children:h==="outlined"?C.jsx(Jpe,{variant:"outlined",style:{borderColor:"transparent",paddingRight:b.spacing(2),transition:b.transitions.create(["box-shadow","border-color"]),...v},children:x(E.dragHandleProps)}):x(E.dragHandleProps)})})})}function GAe(e,t,n){const r=Array.from(e),[i]=r.splice(t,1);return r.splice(n,0,i),r}function VAe(e){const{addItemLabel:t="Add Item",label:n,text:r,onAddItem:i=()=>{},onDeleteItem:o=()=>{},items:s=[],placeholderText:l,autoFocus:c,getCategory:d,getOrder:f,onChange:h,extras:p}=e,g=HAe(),v=Rn(),[y,S]=R.useState(s),[_,b]=R.useState(-1);R.useEffect(()=>{const I=setTimeout(()=>{S(s)},v.transitions.duration.standard);return()=>{clearTimeout(I)}},[s,S,v.transitions.duration.standard]);const x=te.uniqBy([...y,...s],I=>I.id).map(I=>s.find(k=>I.id===k.id)??I).map((I,k)=>{const{enabled:O,element:L,value:N,id:H}=I??{};return{value:N,render:W=>C.jsx(HD,{in:!!s.find(z=>z.id===I.id),unmountOnExit:!0,appear:!g,mountOnEnter:!0,children:C.jsx(WAe,{...e,onDeleteItem:z=>{o(z),b(-1)},enabled:O,element:L,value:N,id:H,i:k,autoFocus:c||k===_,...W})}),key:H,in:!!s.find(W=>W.id===I.id)}}),E=te.sortBy(x,I=>d==null?void 0:d(I.value),I=>f==null?void 0:f(I.value)).map(I=>({...I,render:k=>C.jsx(dt,{children:I.render(k)},I.key)}));return C.jsx(Zke,{onDragEnd:I=>{if(!I.destination)return;const k=GAe(s,I.source.index,I.destination.index);h==null||h(k),S(k)},children:C.jsxs(wg,{subheader:n||r?C.jsx(C.Fragment,{children:C.jsxs(Zhe,{disableSticky:!0,children:[n&&C.jsx(zt,{variant:"body1",gutterBottom:!0,color:"textPrimary",children:n}),r&&C.jsx(zt,{variant:"body2",color:"text.secondary",gutterBottom:!0,style:{marginBottom:v.spacing(3)},children:r})]})}):void 0,children:[C.jsx(dt,{mt:d?-1:0,children:C.jsx(sZ,{droppableId:"list",children:I=>C.jsxs("div",{...I.droppableProps,ref:I.innerRef,children:[(()=>{const k=[];return E.forEach((O,L)=>{d&&A(E,L,O)&&k.push(C.jsx(HD,{in:s.some(N=>d(N.value)===d(O.value)),appear:!0,children:C.jsx(dt,{pl:2,pb:2,pt:1,children:C.jsx(zt,{variant:"overline",color:"text.secondary",children:d(O.value)})})},d(O.value))),k.push(O.render())}),k})(),I.placeholder]})})}),C.jsx(HD,{in:!(s!=null&&s.length),children:C.jsx(dt,{ml:2,mb:1,pt:d?1:0,children:C.jsx(zt,{component:"div",color:"text.secondary",children:l??"No items"})})}),C.jsxs(dt,{p:2,pt:1,mb:-3,children:[C.jsx(j4,{disableElevation:!0,variant:"outlined",startIcon:C.jsx(Vbe,{}),color:"primary",onClick:()=>{i(),b(s.length)},sx:{borderColor:I=>_n(I.palette.text.primary,I.palette.action.activatedOpacity)},children:C.jsx(dt,{sx:{color:"text.primary"},children:t})}),p]})]})});function A(I,k,O){return!!(d&&(I[k-1]===void 0||d(I[k-1].value)!==d(O.value)))}}function _k({onChange:e,value:t=[],editor:n,create:r,...i}){const[o,s]=R.useState(t??[]);function l(c){s(c),e==null||e(c)}return R.useEffect(()=>{s(t)},[t]),C.jsx(dt,{sx:{ml:-2},children:C.jsx(VAe,{...i,items:o.map(c=>({id:c.key,value:c,element:n==null?void 0:n(c)})),useDelete:!0,useEdit:!1,onAddItem:()=>l==null?void 0:l([...o,{key:Mo(),...r==null?void 0:r()}]),onDeleteItem:c=>l==null?void 0:l(te.filter(o,d=>d.key!==c)),onChangeItem:(c,d)=>l==null?void 0:l(te.map(o,f=>f.key===c?d:f)),onChange:c=>l==null?void 0:l(te.map(c,d=>d.value))})})}const Ju=[{key:"equal",apply:(e,t)=>e===t},{key:"less-than",apply:(e,t)=>ee>t}],qAe=["any","source","destination","expanding","generating","closing"];function XAe({value:e,onValueChange:t,properties:n}){var i,o;function r(s){t==null||t({...e,...s})}return C.jsxs(bn,{children:[C.jsx(cx,{placeholder:"Event",sx:{minWidth:160},items:te.map(qAe,s=>({value:s,label:te.startCase(s)})),onChange:s=>r({type:s==="any"?void 0:s}),value:e.type??"any"}),C.jsx(Au,{flexItem:!0,orientation:"vertical",sx:{mx:2}}),C.jsx(cx,{placeholder:"Property",sx:{minWidth:140,textOverflow:"ellipsis",whiteSpace:"nowrap"},items:te.map(n,s=>({value:s,label:C.jsxs(C.Fragment,{children:[te.last(s.split(".")),C.jsx(Kr,{}),C.jsx(zt,{color:"text.secondary",variant:"body2",component:"span",children:`event.${s}`})]})})),onChange:s=>r({property:s}),value:e.property}),C.jsx(Kr,{}),C.jsx(cx,{placeholder:"Condition",items:Ju.map(s=>({value:s.key,label:te.startCase(s.key)})),value:((i=e==null?void 0:e.condition)==null?void 0:i.key)??((o=Ju==null?void 0:Ju[0])==null?void 0:o.key),onChange:s=>r({condition:te.find(Ju,{key:s})})}),C.jsx(Kr,{}),C.jsx(H1,{label:"Reference",fullWidth:!0,value:`${e.reference??0}`,variant:"filled",inputProps:{inputMode:"numeric",pattern:"[0-9]*"},onChange:s=>r({reference:+s.target.value}),type:"number"}),C.jsx(Kr,{sx:{px:2}}),C.jsx(SF,{checked:!!e.active,onChange:(s,l)=>r({active:l})})]})}const YAe=["f","g"],KAe=["variables"];function QAe(){const[{breakpoints:e=[]},t]=pk(),n=te.uniq([...YAe,...te.flatMap(KAe,r=>te.flatMap([],i=>te.map(te.keys(te.get(i,r)),o=>`${r}.${o}`)))]);return C.jsx(dt,{sx:{overflow:"auto hidden",width:"100%"},children:C.jsx(dt,{sx:{minWidth:720,mb:2},children:C.jsx(_k,{icon:null,value:e,useDelete:!0,useEdit:!1,editor:r=>C.jsx(XAe,{value:r,properties:n}),create:()=>({active:!0,property:n==null?void 0:n[0],condition:Ju==null?void 0:Ju[0],type:void 0,reference:0}),onChange:te.debounce(r=>t(()=>({breakpoints:r})),1e3),addItemLabel:"Breakpoint",placeholderText:"Click the button below to add a breakpoint."})})})}function JAe(){const{controls:e,onChange:t,state:n}=qd(),[{monotonicF:r,monotonicG:i},o]=pk(),[s,l]=R.useState("standard");function c(d){return C.jsx(zt,{variant:"overline",color:"text.secondary",children:d})}return C.jsx(FQ,{value:s,children:C.jsxs(Ln,{onChange:t,stack:n,children:[C.jsx(Ln.Options,{children:C.jsxs(HQ,{onChange:(d,f)=>l(f),children:[C.jsx(Rm,{label:"Standard",value:"standard"}),C.jsx(Rm,{label:"Advanced",value:"advanced"})]})}),C.jsxs(Ln.Content,{children:[C.jsx(dt,{overflow:"auto",height:"100%",children:C.jsxs(dt,{pt:6,height:"100%",children:[C.jsxs(Dm,{value:"standard",children:[C.jsxs(dt,{children:[c("General"),C.jsxs(bn,{children:[C.jsx(SF,{label:"Monotonic f value",checked:!!r,onChange:(d,f)=>o(()=>({monotonicF:f}))}),C.jsx(Kr,{}),C.jsx(SF,{label:"Monotonic g value",checked:!!i,onChange:(d,f)=>o(()=>({monotonicG:f}))})]})]}),C.jsx(Kr,{}),C.jsxs(dt,{children:[c("Breakpoints"),C.jsx(QAe,{})]}),C.jsxs(dt,{children:[c("Export"),C.jsx(bn,{mt:1})]})]}),C.jsx(Dm,{value:"advanced",sx:{p:0,height:"100%"},children:C.jsx(PSe,{})})]})})," "]}),C.jsx(Ln.Extras,{children:e})]})})}function Uh({label:e,icon:t=C.jsx(wxe,{}),...n}){return C.jsxs(bn,{justifyContent:"center",alignItems:"center",color:"text.secondary",bgcolor:"background.paper",textAlign:"center",vertical:!0,pt:6,...n,children:[R.cloneElement(t,{sx:{mb:2},fontSize:"large"}),C.jsx(zt,{children:e})]})}function ZAe(){const{controls:e,onChange:t,state:n}=qd(),[r]=VK();return C.jsxs(Ln,{onChange:t,stack:n,children:[C.jsx(Ln.Content,{children:C.jsx(bn,{vertical:!0,children:r.length?C.jsx(q1,{y:!0,children:C.jsx(wg,{sx:{pt:6},children:te.map(r,(i,o)=>C.jsxs("div",{children:[C.jsx(ax,{children:C.jsx(zl,{primary:i.content,secondary:i.timestamp})}),C.jsx(Au,{})]},o))})}):C.jsx(Uh,{pt:6,label:"Logs",icon:C.jsx(zK,{})})})}),C.jsx(Ln.Extras,{children:e})]})}const eIe=te.constant(!0),[Ip,tIe]=Ql({layers:[]});function vp(e,t=eIe){const[n,r]=R.useState(e),[{layers:i},o]=Ip(),s=te.filter(i,t),l=n?te.find(s,{key:n}):te.head(s);return R.useEffect(()=>{r(e)},[e]),R.useEffect(()=>{l&&l.key!==n&&r(l.key)},[l,n,r]),R.useMemo(()=>({key:l==null?void 0:l.key,setKey:r,layer:l,setLayer:c=>{const d={...l,...c};o(({layers:f})=>({layers:te.map(f,h=>h.key===d.key?d:h)}))},layers:s}),[l,o,s])}var aZ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(typeof window<"u"?window:Nt,function(){if(typeof window>"u")return null;var n=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")(),r=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(f){return n.setTimeout(f,20)},i=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||function(f){n.clearTimeout(f)};function o(f,h){var p=Object.prototype.toString.call(f),g=p==="[object Array]"||p==="[object NodeList]"||p==="[object HTMLCollection]"||p==="[object Object]"||typeof jQuery<"u"&&f instanceof jQuery||typeof Elements<"u"&&f instanceof Elements,v=0,y=f.length;if(g)for(;v=W&&(F+=N.value),N.mode==="max"&&z<=W&&(F+=N.value),D[j]||(D[j]=""),F&&(" "+D[j]+" ").indexOf(" "+F+" ")===-1&&(D[j]+=" "+F));for(var G in V)V.hasOwnProperty(G)&&(D[V[G]]?this.element.setAttribute(V[G],D[V[G]].substr(1)):this.element.removeAttribute(V[G]))}}function p(k,O){k.elementQueriesSetupInformation||(k.elementQueriesSetupInformation=new h(k,O)),k.elementQueriesSensor||(k.elementQueriesSensor=new n(k,function(){k.elementQueriesSetupInformation.call()}))}function g(k,O,L,N){if(typeof s[k]>"u"){s[k]=[];var H=l.length;o.innerHTML+=` + `}},s=[r,n,i,o];return{always:cb(s,"always"),resting:cb(s,"resting"),dragging:cb(s,"dragging"),dropAnimating:cb(s,"dropAnimating"),userCancel:cb(s,"userCancel")}},Ps=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?I.useLayoutEffect:I.useEffect,kL=function(){var t=document.querySelector("head");return t||He(!1),t},eW=function(t){var n=document.createElement("style");return t&&n.setAttribute("nonce",t),n.type="text/css",n};function nke(e,t){var n=xn(function(){return tke(e)},[e]),r=I.useRef(null),i=I.useRef(null),o=xt(xi(function(h){var p=i.current;p||He(!1),p.textContent=h}),[]),s=xt(function(h){var p=r.current;p||He(!1),p.textContent=h},[]);Ps(function(){!r.current&&!i.current||He(!1);var h=eW(t),p=eW(t);return r.current=h,i.current=p,h.setAttribute(Ag+"-always",e),p.setAttribute(Ag+"-dynamic",e),kL().appendChild(h),kL().appendChild(p),s(n.always),o(n.resting),function(){var g=function(y){var S=y.current;S||He(!1),kL().removeChild(S),y.current=null};g(r),g(i)}},[t,s,o,n.always,n.resting,e]);var l=xt(function(){return o(n.dragging)},[o,n.dragging]),c=xt(function(h){if(h==="DROP"){o(n.dropAnimating);return}o(n.userCancel)},[o,n.dropAnimating,n.userCancel]),d=xt(function(){i.current&&o(n.resting)},[o,n.resting]),f=xn(function(){return{dragging:l,dropping:c,resting:d}},[l,c,d]);return f}var JJ=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function wk(e){return e instanceof JJ(e).HTMLElement}function rke(e,t){var n="["+Rg.contextId+'="'+e+'"]',r=xJ(document.querySelectorAll(n));if(!r.length)return null;var i=Yd(r,function(o){return o.getAttribute(Rg.draggableId)===t});return!i||!wk(i)?null:i}function ike(e){var t=I.useRef({}),n=I.useRef(null),r=I.useRef(null),i=I.useRef(!1),o=xt(function(p,g){var v={id:p,focus:g};return t.current[p]=v,function(){var S=t.current,_=S[p];_!==v&&delete S[p]}},[]),s=xt(function(p){var g=rke(e,p);g&&g!==document.activeElement&&g.focus()},[e]),l=xt(function(p,g){n.current===p&&(n.current=g)},[]),c=xt(function(){r.current||i.current&&(r.current=requestAnimationFrame(function(){r.current=null;var p=n.current;p&&s(p)}))},[s]),d=xt(function(p){n.current=null;var g=document.activeElement;g&&g.getAttribute(Rg.draggableId)===p&&(n.current=p)},[]);Ps(function(){return i.current=!0,function(){i.current=!1;var p=r.current;p&&cancelAnimationFrame(p)}},[]);var f=xn(function(){return{register:o,tryRecordFocus:d,tryRestoreFocusRecorded:c,tryShiftRecord:l}},[o,d,c,l]);return f}function oke(){var e={draggables:{},droppables:{}},t=[];function n(h){return t.push(h),function(){var g=t.indexOf(h);g!==-1&&t.splice(g,1)}}function r(h){t.length&&t.forEach(function(p){return p(h)})}function i(h){return e.draggables[h]||null}function o(h){var p=i(h);return p||He(!1),p}var s={register:function(p){e.draggables[p.descriptor.id]=p,r({type:"ADDITION",value:p})},update:function(p,g){var v=e.draggables[g.descriptor.id];v&&v.uniqueId===p.uniqueId&&(delete e.draggables[g.descriptor.id],e.draggables[p.descriptor.id]=p)},unregister:function(p){var g=p.descriptor.id,v=i(g);v&&p.uniqueId===v.uniqueId&&(delete e.draggables[g],r({type:"REMOVAL",value:p}))},getById:o,findById:i,exists:function(p){return!!i(p)},getAllByType:function(p){return VE(e.draggables).filter(function(g){return g.descriptor.type===p})}};function l(h){return e.droppables[h]||null}function c(h){var p=l(h);return p||He(!1),p}var d={register:function(p){e.droppables[p.descriptor.id]=p},unregister:function(p){var g=l(p.descriptor.id);g&&p.uniqueId===g.uniqueId&&delete e.droppables[p.descriptor.id]},getById:c,findById:l,exists:function(p){return!!l(p)},getAllByType:function(p){return VE(e.droppables).filter(function(g){return g.descriptor.type===p})}};function f(){e.draggables={},e.droppables={},t.length=0}return{draggable:s,droppable:d,subscribe:n,clean:f}}function ske(){var e=xn(oke,[]);return I.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var Mz=de.createContext(null),XE=function(){var e=document.body;return e||He(!1),e},ake={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},lke=function(t){return"rbd-announcement-"+t};function cke(e){var t=xn(function(){return lke(e)},[e]),n=I.useRef(null);I.useEffect(function(){var o=document.createElement("div");return n.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),$(o.style,ake),XE().appendChild(o),function(){setTimeout(function(){var c=XE();c.contains(o)&&c.removeChild(o),o===n.current&&(n.current=null)})}},[t]);var r=xt(function(i){var o=n.current;if(o){o.textContent=i;return}},[]);return r}var uke=0,dke={separator:"::"};function Dz(e,t){return t===void 0&&(t=dke),xn(function(){return""+e+t.separator+uke++},[t.separator,e])}function fke(e){var t=e.contextId,n=e.uniqueId;return"rbd-hidden-text-"+t+"-"+n}function hke(e){var t=e.contextId,n=e.text,r=Dz("hidden-text",{separator:"-"}),i=xn(function(){return fke({contextId:t,uniqueId:r})},[r,t]);return I.useEffect(function(){var s=document.createElement("div");return s.id=i,s.textContent=n,s.style.display="none",XE().appendChild(s),function(){var c=XE();c.contains(s)&&c.removeChild(s)}},[i,n]),i}var _k=de.createContext(null);function ZJ(e){var t=I.useRef(e);return I.useEffect(function(){t.current=e}),t}function pke(){var e=null;function t(){return!!e}function n(s){return s===e}function r(s){e&&He(!1);var l={abandon:s};return e=l,l}function i(){e||He(!1),e=null}function o(){e&&(e.abandon(),i())}return{isClaimed:t,isActive:n,claim:r,release:i,tryAbandon:o}}var mke=9,gke=13,Lz=27,eZ=32,vke=33,yke=34,bke=35,xke=36,wke=37,_ke=38,Ske=39,Eke=40,u_,Cke=(u_={},u_[gke]=!0,u_[mke]=!0,u_),tZ=function(e){Cke[e.keyCode]&&e.preventDefault()},Sk=function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],n=Yd(t,function(r){return"on"+r in document});return n||e}(),nZ=0,tW=5;function Tke(e,t){return Math.abs(t.x-e.x)>=tW||Math.abs(t.y-e.y)>=tW}var nW={type:"IDLE"};function kke(e){var t=e.cancel,n=e.completed,r=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(s){var l=s.button,c=s.clientX,d=s.clientY;if(l===nZ){var f={x:c,y:d},h=r();if(h.type==="DRAGGING"){s.preventDefault(),h.actions.move(f);return}h.type!=="PENDING"&&He(!1);var p=h.point;if(Tke(p,f)){s.preventDefault();var g=h.actions.fluidLift(f);i({type:"DRAGGING",actions:g})}}}},{eventName:"mouseup",fn:function(s){var l=r();if(l.type!=="DRAGGING"){t();return}s.preventDefault(),l.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:function(s){r().type==="DRAGGING"&&s.preventDefault(),t()}},{eventName:"keydown",fn:function(s){var l=r();if(l.type==="PENDING"){t();return}if(s.keyCode===Lz){s.preventDefault(),t();return}tZ(s)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:function(s){var l=r();if(l.type==="IDLE"&&He(!1),l.actions.shouldRespectForcePress()){t();return}s.preventDefault()}},{eventName:Sk,fn:t}]}function Ake(e){var t=I.useRef(nW),n=I.useRef(Cd),r=xn(function(){return{eventName:"mousedown",fn:function(h){if(!h.defaultPrevented&&h.button===nZ&&!(h.ctrlKey||h.metaKey||h.shiftKey||h.altKey)){var p=e.findClosestDraggableId(h);if(p){var g=e.tryGetLock(p,s,{sourceEvent:h});if(g){h.preventDefault();var v={x:h.clientX,y:h.clientY};n.current(),d(g,v)}}}}}},[e]),i=xn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(h){if(!h.defaultPrevented){var p=e.findClosestDraggableId(h);if(p){var g=e.findOptionsForDraggable(p);g&&(g.shouldRespectForcePress||e.canGetLock(p)&&h.preventDefault())}}}}},[e]),o=xt(function(){var h={passive:!1,capture:!0};n.current=ra(window,[i,r],h)},[i,r]),s=xt(function(){var f=t.current;f.type!=="IDLE"&&(t.current=nW,n.current(),o())},[o]),l=xt(function(){var f=t.current;s(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[s]),c=xt(function(){var h={capture:!0,passive:!1},p=kke({cancel:l,completed:s,getPhase:function(){return t.current},setPhase:function(v){t.current=v}});n.current=ra(window,p,h)},[l,s]),d=xt(function(h,p){t.current.type!=="IDLE"&&He(!1),t.current={type:"PENDING",point:p,actions:h},c()},[c]);Ps(function(){return o(),function(){n.current()}},[o])}var Yp;function Rke(){}var Ike=(Yp={},Yp[yke]=!0,Yp[vke]=!0,Yp[xke]=!0,Yp[bke]=!0,Yp);function Pke(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:function(o){if(o.keyCode===Lz){o.preventDefault(),n();return}if(o.keyCode===eZ){o.preventDefault(),r();return}if(o.keyCode===Eke){o.preventDefault(),e.moveDown();return}if(o.keyCode===_ke){o.preventDefault(),e.moveUp();return}if(o.keyCode===Ske){o.preventDefault(),e.moveRight();return}if(o.keyCode===wke){o.preventDefault(),e.moveLeft();return}if(Ike[o.keyCode]){o.preventDefault();return}tZ(o)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:Sk,fn:n}]}function Oke(e){var t=I.useRef(Rke),n=xn(function(){return{eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==eZ)return;var s=e.findClosestDraggableId(o);if(!s)return;var l=e.tryGetLock(s,f,{sourceEvent:o});if(!l)return;o.preventDefault();var c=!0,d=l.snapLift();t.current();function f(){c||He(!1),c=!1,t.current(),r()}t.current=ra(window,Pke(d,f),{capture:!0,passive:!1})}}},[e]),r=xt(function(){var o={passive:!1,capture:!0};t.current=ra(window,[n],o)},[n]);Ps(function(){return r(),function(){t.current()}},[r])}var AL={type:"IDLE"},Mke=120,Dke=.15;function Lke(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(i){i.preventDefault()}},{eventName:"keydown",fn:function(i){if(n().type!=="DRAGGING"){t();return}i.keyCode===Lz&&i.preventDefault(),t()}},{eventName:Sk,fn:t}]}function Nke(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(o){var s=r();if(s.type!=="DRAGGING"){t();return}s.hasMoved=!0;var l=o.touches[0],c=l.clientX,d=l.clientY,f={x:c,y:d};o.preventDefault(),s.actions.move(f)}},{eventName:"touchend",fn:function(o){var s=r();if(s.type!=="DRAGGING"){t();return}o.preventDefault(),s.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:function(o){if(r().type!=="DRAGGING"){t();return}o.preventDefault(),t()}},{eventName:"touchforcechange",fn:function(o){var s=r();s.type==="IDLE"&&He(!1);var l=o.touches[0];if(l){var c=l.force>=Dke;if(c){var d=s.actions.shouldRespectForcePress();if(s.type==="PENDING"){d&&t();return}if(d){if(s.hasMoved){o.preventDefault();return}t();return}o.preventDefault()}}}},{eventName:Sk,fn:t}]}function Bke(e){var t=I.useRef(AL),n=I.useRef(Cd),r=xt(function(){return t.current},[]),i=xt(function(g){t.current=g},[]),o=xn(function(){return{eventName:"touchstart",fn:function(g){if(!g.defaultPrevented){var v=e.findClosestDraggableId(g);if(v){var y=e.tryGetLock(v,l,{sourceEvent:g});if(y){var S=g.touches[0],_=S.clientX,b=S.clientY,x={x:_,y:b};n.current(),h(y,x)}}}}}},[e]),s=xt(function(){var g={capture:!0,passive:!1};n.current=ra(window,[o],g)},[o]),l=xt(function(){var p=t.current;p.type!=="IDLE"&&(p.type==="PENDING"&&clearTimeout(p.longPressTimerId),i(AL),n.current(),s())},[s,i]),c=xt(function(){var p=t.current;l(),p.type==="DRAGGING"&&p.actions.cancel({shouldBlockNextClick:!0}),p.type==="PENDING"&&p.actions.abort()},[l]),d=xt(function(){var g={capture:!0,passive:!1},v={cancel:c,completed:l,getPhase:r},y=ra(window,Nke(v),g),S=ra(window,Lke(v),g);n.current=function(){y(),S()}},[c,r,l]),f=xt(function(){var g=r();g.type!=="PENDING"&&He(!1);var v=g.actions.fluidLift(g.point);i({type:"DRAGGING",actions:v,hasMoved:!1})},[r,i]),h=xt(function(g,v){r().type!=="IDLE"&&He(!1);var y=setTimeout(f,Mke);i({type:"PENDING",point:v,actions:g,longPressTimerId:y}),d()},[d,r,i,f]);Ps(function(){return s(),function(){n.current();var v=r();v.type==="PENDING"&&(clearTimeout(v.longPressTimerId),i(AL))}},[r,s,i]),Ps(function(){var g=ra(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return g},[])}var $ke={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function rZ(e,t){if(t==null)return!1;var n=!!$ke[t.tagName.toLowerCase()];if(n)return!0;var r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:rZ(e,t.parentElement)}function Fke(e,t){var n=t.target;return wk(n)?rZ(e,n):!1}var zke=function(e){return tl(e.getBoundingClientRect()).center};function jke(e){return e instanceof JJ(e).Element}var Uke=function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],n=Yd(t,function(r){return r in Element.prototype});return n||e}();function iZ(e,t){return e==null?null:e[Uke](t)?e:iZ(e.parentElement,t)}function Hke(e,t){return e.closest?e.closest(t):iZ(e,t)}function Wke(e){return"["+Rg.contextId+'="'+e+'"]'}function Gke(e,t){var n=t.target;if(!jke(n))return null;var r=Wke(e),i=Hke(n,r);return!i||!wk(i)?null:i}function Vke(e,t){var n=Gke(e,t);return n?n.getAttribute(Rg.draggableId):null}function qke(e,t){var n="["+OF.contextId+'="'+e+'"]',r=xJ(document.querySelectorAll(n)),i=Yd(r,function(o){return o.getAttribute(OF.id)===t});return!i||!wk(i)?null:i}function Xke(e){e.preventDefault()}function d_(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!(!r()||t!==n)}function oZ(e){var t=e.lockAPI,n=e.store,r=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=r.draggable.findById(i);return!(!o||!o.options.isEnabled||!XJ(n.getState(),i))}function Yke(e){var t=e.lockAPI,n=e.contextId,r=e.store,i=e.registry,o=e.draggableId,s=e.forceSensorStop,l=e.sourceEvent,c=oZ({lockAPI:t,store:r,registry:i,draggableId:o});if(!c)return null;var d=i.draggable.getById(o),f=qke(n,d.descriptor.id);if(!f||l&&!d.options.canDragInteractiveElements&&Fke(f,l))return null;var h=t.claim(s||Cd),p="PRE_DRAG";function g(){return d.options.shouldRespectForcePress}function v(){return t.isActive(h)}function y(R,k){d_({expected:R,phase:p,isLockActive:v,shouldWarn:!0})&&r.dispatch(k())}var S=y.bind(null,"DRAGGING");function _(R){function k(){t.release(),p="COMPLETED"}p!=="PRE_DRAG"&&(k(),p!=="PRE_DRAG"&&He(!1)),r.dispatch(UCe(R.liftActionArgs)),p="DRAGGING";function O(L,N){if(N===void 0&&(N={shouldBlockNextClick:!1}),R.cleanup(),N.shouldBlockNextClick){var H=ra(window,[{eventName:"click",fn:Xke,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(H)}k(),r.dispatch(jJ({reason:L}))}return $({isActive:function(){return d_({expected:"DRAGGING",phase:p,isLockActive:v,shouldWarn:!1})},shouldRespectForcePress:g,drop:function(N){return O("DROP",N)},cancel:function(N){return O("CANCEL",N)}},R.actions)}function b(R){var k=n1(function(L){S(function(){return zJ({client:L})})}),O=_({liftActionArgs:{id:o,clientSelection:R,movementMode:"FLUID"},cleanup:function(){return k.cancel()},actions:{move:k}});return $({},O,{move:k})}function x(){var R={moveUp:function(){return S(QCe)},moveRight:function(){return S(ZCe)},moveDown:function(){return S(JCe)},moveLeft:function(){return S(eTe)}};return _({liftActionArgs:{id:o,clientSelection:zke(f),movementMode:"SNAP"},cleanup:Cd,actions:R})}function E(){var R=d_({expected:"PRE_DRAG",phase:p,isLockActive:v,shouldWarn:!0});R&&t.release()}var A={isActive:function(){return d_({expected:"PRE_DRAG",phase:p,isLockActive:v,shouldWarn:!1})},shouldRespectForcePress:g,fluidLift:b,snapLift:x,abort:E};return A}var Kke=[Ake,Oke,Bke];function Qke(e){var t=e.contextId,n=e.store,r=e.registry,i=e.customSensors,o=e.enableDefaultSensors,s=[].concat(o?Kke:[],i||[]),l=I.useState(function(){return pke()})[0],c=xt(function(b,x){b.isDragging&&!x.isDragging&&l.tryAbandon()},[l]);Ps(function(){var b=n.getState(),x=n.subscribe(function(){var E=n.getState();c(b,E),b=E});return x},[l,n,c]),Ps(function(){return l.tryAbandon},[l.tryAbandon]);for(var d=xt(function(_){return oZ({lockAPI:l,registry:r,store:n,draggableId:_})},[l,r,n]),f=xt(function(_,b,x){return Yke({lockAPI:l,registry:r,contextId:t,store:n,draggableId:_,forceSensorStop:b,sourceEvent:x&&x.sourceEvent?x.sourceEvent:null})},[t,l,r,n]),h=xt(function(_){return Vke(t,_)},[t]),p=xt(function(_){var b=r.draggable.findById(_);return b?b.options:null},[r.draggable]),g=xt(function(){l.isClaimed()&&(l.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(Cz()))},[l,n]),v=xt(l.isClaimed,[l]),y=xn(function(){return{canGetLock:d,tryGetLock:f,findClosestDraggableId:h,findOptionsForDraggable:p,tryReleaseLock:g,isLockClaimed:v}},[d,f,h,p,g,v]),S=0;S{},onDeleteItem:o=()=>{},enabled:s=!1,element:l=C.jsx(GAe,{}),value:c,id:d,i:f=0,variant:h="default",extrasPlacement:p="center",autoFocus:g,cardStyle:v,sortable:y}){const[S,_]=I.useState(null),b=Pn(),x=E=>C.jsxs(lt,{display:"flex",alignItems:p,children:[y&&C.jsx("div",{...E,children:C.jsx(lt,{color:"text.secondary",sx:{pr:2},children:C.jsx(axe,{})})}),e!==null&&I.cloneElement(e,{style:{marginRight:b.spacing(1),marginTop:b.spacing(.5),marginBottom:b.spacing(.5)},color:"action"}),C.jsx(lt,{flexGrow:1,sx:{ml:e===null?2:0},children:I.cloneElement(l,{onDelete:()=>o(d??f),autoFocus:g,value:c,key:d??f,onValueChange:A=>i(d??f,A,s),onChange:A=>i(d??f,A.target.value,s),ref:A=>_(A)})}),C.jsxs(lt,{display:"flex",alignItems:"center",children:[t&&C.jsx(Sg,{color:"primary",edge:"end",onChange:(A,R)=>i(d??f,c,R),checked:s}),r&&C.jsx(fp,{edge:"end",onClick:()=>{S!=null&&S.focus&&S.focus()},children:C.jsx(rk,{})}),n&&C.jsx(fp,{onClick:()=>o(d??f),children:C.jsx(ixe,{})})]})]});return C.jsx(FAe,{index:f,draggableId:`${d}`,children:E=>C.jsx("div",{ref:E.innerRef,...E.draggableProps,children:C.jsx(lt,{sx:{pb:1,ml:2},children:h==="outlined"?C.jsx(nme,{variant:"outlined",style:{borderColor:"transparent",paddingRight:b.spacing(2),transition:b.transitions.create(["box-shadow","border-color"]),...v},children:x(E.dragHandleProps)}):x(E.dragHandleProps)})})})}function XAe(e,t,n){const r=Array.from(e),[i]=r.splice(t,1);return r.splice(n,0,i),r}function YAe(e){const{addItemLabel:t="Add Item",label:n,text:r,onAddItem:i=()=>{},onDeleteItem:o=()=>{},items:s=[],placeholderText:l,autoFocus:c,getCategory:d,getOrder:f,onChange:h,extras:p}=e,g=VAe(),v=Pn(),[y,S]=I.useState(s),[_,b]=I.useState(-1);I.useEffect(()=>{const R=setTimeout(()=>{S(s)},v.transitions.duration.standard);return()=>{clearTimeout(R)}},[s,S,v.transitions.duration.standard]);const x=te.uniqBy([...y,...s],R=>R.id).map(R=>s.find(k=>R.id===k.id)??R).map((R,k)=>{const{enabled:O,element:L,value:N,id:H}=R??{};return{value:N,render:W=>C.jsx(GD,{in:!!s.find(z=>z.id===R.id),unmountOnExit:!0,appear:!g,mountOnEnter:!0,children:C.jsx(qAe,{...e,onDeleteItem:z=>{o(z),b(-1)},enabled:O,element:L,value:N,id:H,i:k,autoFocus:c||k===_,...W})}),key:H,in:!!s.find(W=>W.id===R.id)}}),E=te.sortBy(x,R=>d==null?void 0:d(R.value),R=>f==null?void 0:f(R.value)).map(R=>({...R,render:k=>C.jsx(lt,{children:R.render(k)},R.key)}));return C.jsx(nAe,{onDragEnd:R=>{if(!R.destination)return;const k=XAe(s,R.source.index,R.destination.index);h==null||h(k),S(k)},children:C.jsxs(mp,{subheader:n||r?C.jsx(C.Fragment,{children:C.jsxs(rpe,{disableSticky:!0,children:[n&&C.jsx(Lt,{variant:"body1",gutterBottom:!0,color:"textPrimary",children:n}),r&&C.jsx(Lt,{variant:"body2",color:"text.secondary",gutterBottom:!0,style:{marginBottom:v.spacing(3)},children:r})]})}):void 0,children:[C.jsx(lt,{mt:d?-1:0,children:C.jsx(dZ,{droppableId:"list",children:R=>C.jsxs("div",{...R.droppableProps,ref:R.innerRef,children:[(()=>{const k=[];return E.forEach((O,L)=>{d&&A(E,L,O)&&k.push(C.jsx(GD,{in:s.some(N=>d(N.value)===d(O.value)),appear:!0,children:C.jsx(lt,{pl:2,pb:2,pt:1,children:C.jsx(Lt,{variant:"overline",color:"text.secondary",children:d(O.value)})})},d(O.value))),k.push(O.render())}),k})(),R.placeholder]})})}),C.jsx(GD,{in:!(s!=null&&s.length),children:C.jsx(lt,{ml:2,mb:1,pt:d?1:0,children:C.jsx(Lt,{component:"div",color:"text.secondary",children:l??"No items"})})}),C.jsxs(lt,{p:2,pt:1,mb:-3,children:[C.jsx(H4,{disableElevation:!0,variant:"outlined",startIcon:C.jsx(Kbe,{}),color:"primary",onClick:()=>{i(),b(s.length)},sx:{borderColor:R=>_n(R.palette.text.primary,R.palette.action.activatedOpacity)},children:C.jsx(lt,{sx:{color:"text.primary"},children:t})}),p]})]})});function A(R,k,O){return!!(d&&(R[k-1]===void 0||d(R[k-1].value)!==d(O.value)))}}function Ek({onChange:e,value:t=[],editor:n,create:r,...i}){const[o,s]=I.useState(t??[]);function l(c){s(c),e==null||e(c)}return I.useEffect(()=>{s(t)},[t]),C.jsx(lt,{sx:{ml:-2},children:C.jsx(YAe,{...i,items:o.map(c=>({id:c.key,value:c,element:n==null?void 0:n(c)})),useDelete:!0,useEdit:!1,onAddItem:()=>l==null?void 0:l([...o,{key:Mo(),...r==null?void 0:r()}]),onDeleteItem:c=>l==null?void 0:l(te.filter(o,d=>d.key!==c)),onChangeItem:(c,d)=>l==null?void 0:l(te.map(o,f=>f.key===c?d:f)),onChange:c=>l==null?void 0:l(te.map(c,d=>d.value))})})}const td=[{key:"equal",apply:(e,t)=>e===t},{key:"less-than",apply:(e,t)=>ee>t}],KAe=["any","source","destination","expanding","generating","closing"];function QAe({value:e,onValueChange:t,properties:n}){var i,o;function r(s){t==null||t({...e,...s})}return C.jsxs(gn,{children:[C.jsx(fx,{placeholder:"Event",sx:{minWidth:160},items:te.map(KAe,s=>({value:s,label:te.startCase(s)})),onChange:s=>r({type:s==="any"?void 0:s}),value:e.type??"any"}),C.jsx(Iu,{flexItem:!0,orientation:"vertical",sx:{mx:2}}),C.jsx(fx,{placeholder:"Property",sx:{minWidth:140,textOverflow:"ellipsis",whiteSpace:"nowrap"},items:te.map(n,s=>({value:s,label:C.jsxs(C.Fragment,{children:[te.last(s.split(".")),C.jsx(Kr,{}),C.jsx(Lt,{color:"text.secondary",variant:"body2",component:"span",children:`event.${s}`})]})})),onChange:s=>r({property:s}),value:e.property}),C.jsx(Kr,{}),C.jsx(fx,{placeholder:"Condition",items:td.map(s=>({value:s.key,label:te.startCase(s.key)})),value:((i=e==null?void 0:e.condition)==null?void 0:i.key)??((o=td==null?void 0:td[0])==null?void 0:o.key),onChange:s=>r({condition:te.find(td,{key:s})})}),C.jsx(Kr,{}),C.jsx(V1,{label:"Reference",fullWidth:!0,value:`${e.reference??0}`,variant:"filled",inputProps:{inputMode:"numeric",pattern:"[0-9]*"},onChange:s=>r({reference:+s.target.value}),type:"number"}),C.jsx(Kr,{sx:{px:2}}),C.jsx(CF,{checked:!!e.active,onChange:(s,l)=>r({active:l})})]})}const JAe=["f","g"],ZAe=["variables"];function eRe(){const[{breakpoints:e=[]},t]=gk(),n=te.uniq([...JAe,...te.flatMap(ZAe,r=>te.flatMap([],i=>te.map(te.keys(te.get(i,r)),o=>`${r}.${o}`)))]);return C.jsx(lt,{sx:{overflow:"auto hidden",width:"100%"},children:C.jsx(lt,{sx:{minWidth:720,mb:2},children:C.jsx(Ek,{icon:null,value:e,useDelete:!0,useEdit:!1,editor:r=>C.jsx(QAe,{value:r,properties:n}),create:()=>({active:!0,property:n==null?void 0:n[0],condition:td==null?void 0:td[0],type:void 0,reference:0}),onChange:te.debounce(r=>t(()=>({breakpoints:r})),1e3),addItemLabel:"Breakpoint",placeholderText:"Click the button below to add a breakpoint."})})})}function tRe(){const{controls:e,onChange:t,state:n}=Ou(),[{monotonicF:r,monotonicG:i},o]=gk(),[s,l]=I.useState("standard");function c(d){return C.jsx(Lt,{variant:"overline",color:"text.secondary",children:d})}return C.jsx(WQ,{value:s,children:C.jsxs(Sn,{onChange:t,stack:n,children:[C.jsx(Sn.Options,{children:C.jsxs(XQ,{onChange:(d,f)=>l(f),children:[C.jsx(Om,{label:"Standard",value:"standard"}),C.jsx(Om,{label:"Advanced",value:"advanced"})]})}),C.jsxs(Sn.Content,{children:[C.jsx(lt,{overflow:"auto",height:"100%",children:C.jsxs(lt,{pt:6,height:"100%",children:[C.jsxs(Nm,{value:"standard",children:[C.jsxs(lt,{children:[c("General"),C.jsxs(gn,{children:[C.jsx(CF,{label:"Monotonic f value",checked:!!r,onChange:(d,f)=>o(()=>({monotonicF:f}))}),C.jsx(Kr,{}),C.jsx(CF,{label:"Monotonic g value",checked:!!i,onChange:(d,f)=>o(()=>({monotonicG:f}))})]})]}),C.jsx(Kr,{}),C.jsxs(lt,{children:[c("Breakpoints"),C.jsx(eRe,{})]}),C.jsxs(lt,{children:[c("Export"),C.jsx(gn,{mt:1})]})]}),C.jsx(Nm,{value:"advanced",sx:{p:0,height:"100%"},children:C.jsx(DSe,{})})]})})," "]}),C.jsx(Sn.Extras,{children:e})]})})}function Hh({label:e,icon:t=C.jsx(Cxe,{}),...n}){return C.jsxs(gn,{justifyContent:"center",alignItems:"center",color:"text.secondary",bgcolor:"background.paper",textAlign:"center",vertical:!0,pt:6,...n,children:[I.cloneElement(t,{sx:{mb:2},fontSize:"large"}),C.jsx(Lt,{children:e})]})}function nRe(){const{controls:e,onChange:t,state:n}=Ou(),[r]=QK();return C.jsxs(Sn,{onChange:t,stack:n,children:[C.jsx(Sn.Content,{children:C.jsx(gn,{vertical:!0,children:r.length?C.jsx(Zg,{y:!0,children:C.jsx(mp,{sx:{pt:6},children:te.map(r,(i,o)=>C.jsxs("div",{children:[C.jsx(ux,{children:C.jsx(ol,{primary:i.content,secondary:i.timestamp})}),C.jsx(Iu,{})]},o))})}):C.jsx(Hh,{pt:6,label:"Logs",icon:C.jsx(GK,{})})})}),C.jsx(Sn.Extras,{children:e})]})}const rRe=te.constant(!0),[Pp,iRe]=Jl({layers:[]});function bp(e,t=rRe){const[n,r]=I.useState(e),[{layers:i},o]=Pp(),s=te.filter(i,t),l=n?te.find(s,{key:n}):te.head(s);return I.useEffect(()=>{r(e)},[e]),I.useEffect(()=>{l&&l.key!==n&&r(l.key)},[l,n,r]),I.useMemo(()=>({key:l==null?void 0:l.key,setKey:r,layer:l,setLayer:c=>{const d={...l,...c};o(({layers:f})=>({layers:te.map(f,h=>h.key===d.key?d:h)}))},layers:s}),[l,o,s])}var fZ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(typeof window<"u"?window:Bt,function(){if(typeof window>"u")return null;var n=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")(),r=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(f){return n.setTimeout(f,20)},i=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||function(f){n.clearTimeout(f)};function o(f,h){var p=Object.prototype.toString.call(f),g=p==="[object Array]"||p==="[object NodeList]"||p==="[object HTMLCollection]"||p==="[object Object]"||typeof jQuery<"u"&&f instanceof jQuery||typeof Elements<"u"&&f instanceof Elements,v=0,y=f.length;if(g)for(;v=W&&(F+=N.value),N.mode==="max"&&z<=W&&(F+=N.value),D[j]||(D[j]=""),F&&(" "+D[j]+" ").indexOf(" "+F+" ")===-1&&(D[j]+=" "+F));for(var G in V)V.hasOwnProperty(G)&&(D[V[G]]?this.element.setAttribute(V[G],D[V[G]].substr(1)):this.element.removeAttribute(V[G]))}}function p(k,O){k.elementQueriesSetupInformation||(k.elementQueriesSetupInformation=new h(k,O)),k.elementQueriesSensor||(k.elementQueriesSensor=new n(k,function(){k.elementQueriesSetupInformation.call()}))}function g(k,O,L,N){if(typeof s[k]>"u"){s[k]=[];var H=l.length;o.innerHTML+=` `+k+" {animation: 0.1s element-queries;}",o.innerHTML+=` -`+k+" > .resize-sensor {min-width: "+H+"px;}",l.push(k)}s[k].push({mode:O,property:L,value:N})}function v(k){var O;if(document.querySelectorAll&&(O=k?k.querySelectorAll.bind(k):document.querySelectorAll.bind(document)),!O&&typeof $$<"u"&&(O=$$),!O&&typeof jQuery<"u"&&(O=jQuery),!O)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return O}function y(k){var O=v(k);for(var L in s)if(s.hasOwnProperty(L))for(var N=O(L,k),H=0,W=N.length;HL[Y].minWidth&&(K=Y);if(K||(K=H),W!==K)if(z[K])O[W].style.display="none",O[K].style.display="block",W=K;else{var J=new Image;J.onload=function(){O[K].src=N[K],O[W].style.display="none",O[K].style.display="block",z[K]=!0,W=K},J.src=N[K]}else O[K].src=N[K]}k.resizeSensorInstance=new n(k,G),G()}function _(){for(var k=v(),O=k("[data-responsive-image],[responsive-image]"),L=0,N=O.length;L img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",o.innerHTML+=` -@keyframes element-queries { 0% { visibility: inherit; } }`,document.getElementsByTagName("head")[0].appendChild(o),I=!0);for(var O=0,L=document.styleSheets.length;O{if(r&&t)return r.addEventListener("scroll",t,{passive:!0}),()=>r.removeEventListener("scroll",t)},[r,t]),C.jsx("div",{...n,style:{height:"100%",width:"100%",overflow:"hidden scroll",...n.style},ref:o=>{i(o),e==null||e(o)},children:C.jsx(uZ.Provider,{value:r,children:C.jsx("div",{style:{width:"100%"},children:n.children})})})}const uZ=R.createContext(null);function oIe(){return R.useContext(uZ)}function sIe(e=128){const[t,n]=R.useState(!0),[r,i]=R.useState(!0),[o,s]=R.useState(!0),[l,c]=R.useState(null),d=R.useRef(0);return R.useEffect(()=>{if(l){const f=()=>{{const h=l.scrollTop<=e;h!==o&&s(h)}{const h=l.scrollTop<=1;h!==r&&i(h)}d.current-l.scrollTop&&(Math.abs(d.current-l.scrollTop)>2&&d.current>=0&&n(d.current>l.scrollTop),d.current=l.scrollTop)};return l.addEventListener("scroll",f,{passive:!0}),()=>{l.removeEventListener("scroll",f)}}},[l,o,r,d,e]),[t||o,o,r,l,c]}function Dz({children:e}){return C.jsx(zt,{variant:"h6",children:e})}function aIe({onClose:e=()=>{},style:t,elevatedStyle:n,children:r,transitionProperties:i=["box-shadow","background","border-bottom"],elevatedChildren:o,simple:s,position:l="sticky"}){const c=oIe(),d=Rn(),[,,f,,h]=sIe();R.useEffect(()=>{h(c)},[c,h]);const p=f?{background:d.palette.background.paper,...!s&&{boxShadow:d.shadows[0]},...t}:{background:d.palette.background.paper,...!s&&{boxShadow:d.shadows[4]},...n};return C.jsx(qde,{elevation:0,position:l,style:{color:d.palette.text.primary,transition:d.transitions.create(i),...p},children:C.jsxs(hbe,{children:[C.jsx(dp,{style:{marginRight:d.spacing(1)},"aria-label":"open drawer",edge:"start",onClick:()=>e(),children:C.jsx(qbe,{})}),r&&C.jsx("div",{style:{gridColumn:1,gridRow:1,flex:1,overflow:"auto"},children:C.jsx(hp,{in:!!(!o||f),mountOnEnter:!0,unmountOnExit:!0,children:C.jsx(dt,{style:{width:"100%"},children:r})})}),o&&C.jsx("div",{style:{gridColumn:1,gridRow:1,flex:1,overflow:"auto"},children:C.jsx(hp,{in:!!(o&&!f),mountOnEnter:!0,unmountOnExit:!0,children:C.jsx(dt,{style:{width:"100%"},children:o})})})]})})}function lIe({children:e,actions:t,width:n=480,height:r,onTarget:i,variant:o="default",scrollable:s=!0,...l}){var A;const[c,d]=R.useState(void 0);R.useEffect(()=>{e&&d(e)},[e]);const f=Rn(),h=lz(),[p,g]=R.useState(null),[v,y]=R.useState(null),[S,_]=R.useState(!1),[b,x]=R.useState(0);R.useEffect(()=>{if(p&&v&&!h&&!r){const I=()=>{const O=window.innerHeight-64{window.removeEventListener("resize",I),k.detach()}}},[p,v,h,r]);const E=o==="submodal"&&h;return C.jsxs(Xme,{fullScreen:h,...l,style:{...E&&{paddingTop:f.spacing(8)},...l.style},PaperProps:{ref:I=>g(I),style:{...E&&{borderRadius:`${f.shape.borderRadius}px ${f.shape.borderRadius}px 0 0`},background:f.palette.background.paper,overflow:"hidden",height:r&&!h?r:S||h?"100%":b||"fit-content",position:"relative",maxWidth:"none",...(A=l.PaperProps)==null?void 0:A.style},...l.PaperProps},children:[C.jsx(iIe,{style:{height:"100%",width:h?void 0:n,maxWidth:"100%",overflow:s?void 0:"hidden"},onTarget:i,children:C.jsx("div",{ref:I=>y(I),style:{width:"100%",height:"100%"},children:c})}),t]})}function Lz({options:e,appBar:t,trigger:n=()=>C.jsx(C.Fragment,{}),children:r}){return C.jsx(Ap,{variant:"popover",children:({open:i,close:o,isOpen:s})=>C.jsxs(C.Fragment,{children:[R.cloneElement(n(i)),C.jsxs(lIe,{open:s,onClose:o,...e,children:[C.jsx(aIe,{onClose:o,...t}),r??(e==null?void 0:e.children)]})]})})}const[Ig,cIe]=Ql([],{reduce:GK}),[XE,uIe]=Ql({algorithms:[],maps:[],formats:[]}),[Sk,dIe]=Ql({specimen:0,connections:0,features:0,map:0},{reduce:(e,{action:t,key:n})=>ca(e,r=>{switch(t){case"start":r[n]+=1;break;case"end":r[n]-=1}return r})});function fIe(){const[e]=Sk();return te.some(te.values(e))}function Rp(e){const[,t]=Sk();return R.useCallback(async n=>{t(()=>({action:"start",key:e}));const r=await n();return t(()=>({action:"end",key:e})),r},[e,t])}let dZ=class extends Error{},hIe=class extends dZ{},pIe=class extends dZ{};const mIe=(e,t=",")=>e.join(t),gIe={accept:"*",multiple:!1,strict:!1},Nz=e=>{const{accept:t,multiple:n,strict:r}={...gIe,...e},i=bIe({multiple:n,accept:Array.isArray(t)?mIe(t):t});return new Promise(o=>{i.onchange=()=>{o(vIe(i.files,n,r)),i.remove()},i.click()})},vIe=(e,t,n)=>new Promise((r,i)=>{if(!e)return i(new hIe);const o=yIe(e,t,n);if(!o)return i(new pIe);r(o)}),yIe=(e,t,n)=>!t&&n?e.length===1?e[0]:null:e.length?e:null,bIe=({accept:e,multiple:t})=>{const n=document.createElement("input");return n.type="file",n.multiple=t,n.accept=e,n},xIe=""+new URL("hash.worker-76266fd6.js",import.meta.url).href,wIe=""+new URL("ipc.worker-78007631.js",import.meta.url).href,_Ie=""+new URL("compress.worker-5a39bbab.js",import.meta.url).href,SIe=""+new URL("compressBinary.worker-0e5dbf65.js",import.meta.url).href,EIe=""+new URL("decompressBinary.worker-e2ab768a.js",import.meta.url).href,CIe=""+new URL("parseYaml.worker-858dc2e2.js",import.meta.url).href;class TIe extends Worker{constructor(){super(xIe,{type:"module"})}}class kIe extends Worker{constructor(){super(_Ie,{type:"module"})}}class AIe extends Worker{constructor(){super(SIe,{type:"module"})}}class IIe extends Worker{constructor(){super(EIe,{type:"module"})}}class RIe extends Worker{constructor(){super(wIe,{type:"module"})}}class PIe extends Worker{constructor(){super(CIe,{type:"module"})}}var OIe=function(){},MIe=OIe(),Pp=function(e){return e!==MIe&&e!==null},DIe=Pp,LIe=Array.prototype.forEach,NIe=Object.create,BIe=function(e,t){var n;for(n in e)t[n]=e[n]},fZ=function(e){var t=NIe(null);return LIe.call(arguments,function(n){DIe(n)&&BIe(Object(n),t)}),t},$Ie=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},IL,iW;function FIe(){return iW||(iW=1,IL=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),IL}var zIe=$Ie()?Math.sign:FIe(),jIe=zIe,UIe=Math.abs,HIe=Math.floor,WIe=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:jIe(e)*HIe(UIe(e)))},GIe=WIe,VIe=Math.max,Op=function(e){return VIe(0,GIe(e))},qIe=Op,hZ=function(e,t,n){var r;return isNaN(e)?(r=t,r>=0?n&&r?r-1:r:1):e===!1?!1:qIe(e)},Yd=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},XIe=Pp,tv=function(e){if(!XIe(e))throw new TypeError("Cannot use null or undefined");return e},YIe=Yd,KIe=tv,QIe=Function.prototype.bind,oW=Function.prototype.call,JIe=Object.keys,ZIe=Object.prototype.propertyIsEnumerable,eRe=function(e,t){return function(n,r){var i,o=arguments[2],s=arguments[3];return n=Object(KIe(n)),YIe(r),i=JIe(n),s&&i.sort(typeof s=="function"?QIe.call(s,n):void 0),typeof e!="function"&&(e=i[e]),oW.call(e,i,function(l,c){return ZIe.call(n,l)?oW.call(r,o,n[l],l,n,c):t})}},Ek=eRe("forEach"),Mp={},pZ={exports:{}},tRe=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},RL,sW;function nRe(){return sW||(sW=1,RL=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),RL}var PL,aW;function rRe(){if(aW)return PL;aW=1;var e=Pp,t=Object.keys;return PL=function(n){return t(e(n)?Object(n):n)},PL}var OL,lW;function iRe(){return lW||(lW=1,OL=nRe()()?Object.keys:rRe()),OL}var ML,cW;function oRe(){if(cW)return ML;cW=1;var e=iRe(),t=tv,n=Math.max;return ML=function(r,i){var o,s,l=n(arguments.length,2),c;for(r=Object(t(r)),c=function(d){try{r[d]=i[d]}catch(f){o||(o=f)}},s=1;s-1},BL}var ERe=_Re()?String.prototype.contains:SRe(),AS=xZ,gW=wRe,wZ=mZ,_Z=fZ,hx=ERe,CRe=bZ.exports=function(e,t){var n,r,i,o,s;return arguments.length<2||typeof e!="string"?(o=t,t=e,e=null):o=arguments[2],AS(e)?(n=hx.call(e,"c"),r=hx.call(e,"e"),i=hx.call(e,"w")):(n=i=!0,r=!1),s={value:t,configurable:n,enumerable:r,writable:i},o?wZ(_Z(o),s):s};CRe.gs=function(e,t,n){var r,i,o,s;return typeof e!="string"?(o=n,n=t,t=e,e=null):o=arguments[3],AS(t)?gW(t)?AS(n)?gW(n)||(o=n,n=void 0):n=void 0:(o=t,t=n=void 0):t=void 0,AS(e)?(r=hx.call(e,"c"),i=hx.call(e,"e")):(r=!0,i=!1),s={get:t,set:n,configurable:r,enumerable:i},o?wZ(_Z(o),s):s};var Dp=bZ.exports,MF={exports:{}};(function(e,t){var n=Dp,r=Yd,i=Function.prototype.apply,o=Function.prototype.call,s=Object.create,l=Object.defineProperty,c=Object.defineProperties,d=Object.prototype.hasOwnProperty,f={configurable:!0,enumerable:!1,writable:!0},h,p,g,v,y,S,_;h=function(b,x){var E;return r(x),d.call(this,"__ee__")?E=this.__ee__:(E=f.value=s(null),l(this,"__ee__",f),f.value=null),E[b]?typeof E[b]=="object"?E[b].push(x):E[b]=[E[b],x]:E[b]=x,this},p=function(b,x){var E,A;return r(x),A=this,h.call(this,b,E=function(){g.call(A,b,E),i.call(x,this,arguments)}),E.__eeOnceListener__=x,this},g=function(b,x){var E,A,I,k;if(r(x),!d.call(this,"__ee__"))return this;if(E=this.__ee__,!E[b])return this;if(A=E[b],typeof A=="object")for(k=0;I=A[k];++k)(I===x||I.__eeOnceListener__===x)&&(A.length===2?E[b]=A[k?0:1]:A.splice(k,1));else(A===x||A.__eeOnceListener__===x)&&delete E[b];return this},v=function(b){var x,E,A,I,k;if(d.call(this,"__ee__")&&(I=this.__ee__[b],!!I))if(typeof I=="object"){for(E=arguments.length,k=new Array(E-1),x=1;x=55296&&E<=56319&&(O+=p[++S])),O=g?d.call(g,v,O,_):O,y?(f.value=O,h(b,_,f)):b[_]=O,++_;x=_}}if(x===void 0)for(x=r(p.length),y&&(b=new y(x)),S=0;S=0?f=s(f):f=t(this.length)-s(o(f)),c=f;c"}},yN}var bN,tG;function xPe(){if(tG)return bN;tG=1;var e=bPe(),t=/[\n\r\u2028\u2029]/g;return bN=function(n){var r=e(n);return r.length>100&&(r=r.slice(0,99)+"…"),r=r.replace(t,function(i){return JSON.stringify(i).slice(1,-1)}),r},bN}var m_={exports:{}},nG;function AZ(){if(nG)return m_.exports;nG=1,m_.exports=e,m_.exports.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return m_.exports}var rG;function wPe(){if(rG)return YW;rG=1;var e=TZ(),t=gPe(),n=yPe(),r=xPe(),i=AZ(),o=Fz(),s=Object.create,l=t("then","then:finally","done","done:finally");return Mp.promise=function(c,d){var f=s(null),h=s(null),p=s(null);if(c===!0)c=null;else if(c=n(c),!l[c])throw new TypeError("'"+r(c)+"' is not valid promise mode");d.on("set",function(g,v,y){var S=!1;if(!i(y)){h[g]=y,d.emit("setasync",g,1);return}f[g]=1,p[g]=y;var _=function(A){var I=f[g];if(S)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode) -Consider to rely on 'then' or 'done' mode instead.`);I&&(delete f[g],h[g]=A,d.emit("setasync",g,I))},b=function(){S=!0,f[g]&&(delete f[g],delete p[g],d.delete(g))},x=c;if(x||(x="then"),x==="then"){var E=function(){o(b)};y=y.then(function(A){o(_.bind(this,A))},E),typeof y.finally=="function"&&y.finally(E)}else if(x==="done"){if(typeof y.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");y.done(_,b)}else if(x==="done:finally"){if(typeof y.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof y.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");y.done(_),y.finally(b)}}),d.on("get",function(g,v,y){var S;if(f[g]){++f[g];return}S=p[g];var _=function(){d.emit("getasync",g,v,y)};i(S)?typeof S.done=="function"?S.done(_):S.then(function(){o(_)}):_()}),d.on("delete",function(g){if(delete p[g],f[g]){delete f[g];return}if(hasOwnProperty.call(h,g)){var v=h[g];delete h[g],d.emit("deleteasync",g,[v])}}),d.on("clear",function(){var g=h;h=s(null),f=s(null),p=s(null),d.emit("clearasync",e(g,function(v){return[v]}))})},YW}var iG={},oG;function _Pe(){if(oG)return iG;oG=1;var e=Yd,t=Ek,n=Mp,r=Function.prototype.apply;return n.dispose=function(i,o,s){var l;if(e(i),s.async&&n.async||s.promise&&n.promise){o.on("deleteasync",l=function(c,d){r.call(i,null,d)}),o.on("clearasync",function(c){t(c,function(d,f){l(f,d)})});return}o.on("delete",l=function(c,d){i(d)}),o.on("clear",function(c){t(c,function(d,f){l(f,d)})})},iG}var sG={},xN,aG;function SPe(){return aG||(aG=1,xN=2147483647),xN}var wN,lG;function EPe(){if(lG)return wN;lG=1;var e=Op,t=SPe();return wN=function(n){if(n=e(n),n>t)throw new TypeError(n+" exceeds maximum possible timeout");return n},wN}var cG;function CPe(){if(cG)return sG;cG=1;var e=Bz(),t=Ek,n=Fz(),r=AZ(),i=EPe(),o=Mp,s=Function.prototype,l=Math.max,c=Math.min,d=Object.create;return o.maxAge=function(f,h,p){var g,v,y,S;f=i(f),f&&(g=d(null),v=p.async&&o.async||p.promise&&o.promise?"async":"",h.on("set"+v,function(_){g[_]=setTimeout(function(){h.delete(_)},f),typeof g[_].unref=="function"&&g[_].unref(),S&&(S[_]&&S[_]!=="nextTick"&&clearTimeout(S[_]),S[_]=setTimeout(function(){delete S[_]},y),typeof S[_].unref=="function"&&S[_].unref())}),h.on("delete"+v,function(_){clearTimeout(g[_]),delete g[_],S&&(S[_]!=="nextTick"&&clearTimeout(S[_]),delete S[_])}),p.preFetch&&(p.preFetch===!0||isNaN(p.preFetch)?y=.333:y=l(c(Number(p.preFetch),1),0),y&&(S={},y=(1-y)*f,h.on("get"+v,function(_,b,x){S[_]||(S[_]="nextTick",n(function(){var E;S[_]==="nextTick"&&(delete S[_],h.delete(_),p.async&&(b=e(b),b.push(s)),E=h.memoized.apply(x,b),p.promise&&r(E)&&(typeof E.done=="function"?E.done(s,s):E.then(s,s)))}))}))),h.on("clear"+v,function(){t(g,function(_){clearTimeout(_)}),g={},S&&(t(S,function(_){_!=="nextTick"&&clearTimeout(_)}),S={})}))},sG}var uG={},_N,dG;function TPe(){if(dG)return _N;dG=1;var e=Op,t=Object.create,n=Object.prototype.hasOwnProperty;return _N=function(r){var i=0,o=1,s=t(null),l=t(null),c=0,d;return r=e(r),{hit:function(f){var h=l[f],p=++c;if(s[p]=f,l[f]=p,!h)return++i,i<=r?void 0:(f=s[o],d(f),f);if(delete s[h],o===h)for(;!n.call(s,++o););},delete:d=function(f){var h=l[f];if(h&&(delete s[h],delete l[f],--i,o===h)){if(!i){c=0,o=1;return}for(;!n.call(s,++o););}},clear:function(){i=0,o=1,s=t(null),l=t(null),c=0}}},_N}var fG;function kPe(){if(fG)return uG;fG=1;var e=Op,t=TPe(),n=Mp;return n.max=function(r,i,o){var s,l,c;r=e(r),r&&(l=t(r),s=o.async&&n.async||o.promise&&n.promise?"async":"",i.on("set"+s,c=function(d){d=l.hit(d),d!==void 0&&i.delete(d)}),i.on("get"+s,c),i.on("delete"+s,l.delete),i.on("clear"+s,l.clear))},uG}var hG={},pG;function APe(){if(pG)return hG;pG=1;var e=Dp,t=Mp,n=Object.create,r=Object.defineProperties;return t.refCounter=function(i,o,s){var l,c;l=n(null),c=s.async&&t.async||s.promise&&t.promise?"async":"",o.on("set"+c,function(d,f){l[d]=f||1}),o.on("get"+c,function(d){++l[d]}),o.on("delete"+c,function(d){delete l[d]}),o.on("clear"+c,function(){l={}}),r(o.memoized,{deleteRef:e(function(){var d=o.get(arguments);return d===null||!l[d]?null:--l[d]?!1:(o.delete(d),!0)}),getRefCount:e(function(){var d=o.get(arguments);return d===null||!l[d]?0:l[d]})})},hG}var IPe=fZ,RPe=hZ,PPe=sPe,OPe=function(e){var t=IPe(arguments[1]),n;return t.normalizer||(n=t.length=RPe(t.length,e.length,t.async),n!==0&&(t.primitive?n===!1?t.normalizer=aPe():n>1&&(t.normalizer=lPe()(n)):n===!1?t.normalizer=fPe()():n===1?t.normalizer=hPe()():t.normalizer=pPe()(n))),t.async&&mPe(),t.promise&&wPe(),t.dispose&&_Pe(),t.maxAge&&CPe(),t.max&&kPe(),t.refCounter&&APe(),PPe(e,t)};const Lp=zs(OPe),MPe=e=>async t=>{const n=new e,r=await t(n);return n.terminate(),r},nv=e=>t=>MPe(e)(n=>(n.postMessage(t),new Promise((r,i)=>{n.onmessage=o=>{r(o.data)},n.onerror=i}))),rv=(e,t={async:!0,length:1})=>Lp(nv(e),t);te.memoize(nv(TIe));te.memoize(nv(kIe));const DPe=te.memoize(nv(AIe)),LPe=te.memoize(nv(IIe)),IZ=te.memoize(nv(PIe));function px(e){return e.split(".").pop()}function RZ(e){return e.split(".").shift()}const mG="internal/custom",DF="json",LF=e=>({name:(e==null?void 0:e.id)===mG?`Imported Map - ${e==null?void 0:e.name}`:"Import Map",description:"Internal",id:mG}),NPe=e=>({name:(e==null?void 0:e.type)===DF?`Imported Trace - ${e==null?void 0:e.name}`:"Import Trace",description:"Internal",id:DF}),gG=["json","yaml"];async function BPe(){const e=await Nz({accept:gG.map(t=>`.trace.${t}`),strict:!0});if(e)return{file:e,read:async()=>{if(gG.includes(px(e.name))){const t=await e.text(),n=await IZ(t);return{...NPe(),format:n==null?void 0:n.format,content:n,name:te.startCase(RZ(e.name)),type:DF}}else throw new Error(`The format (${px(e.name)}) is unsupported.`)}}}async function $Pe(e){const t=await Nz({accept:e.map(({id:n})=>`.${n}`),strict:!0});if(t)return{file:t,read:async()=>{if(te.find(e,{id:px(t.name)}))return{...LF(),format:px(t.name),content:await t.text(),name:te.startCase(RZ(t.name))};throw new Error(`The format (${px(t.name)}) is unsupported.`)}}}const PZ=20*1024*1024,[OZ,FPe]=Ql({},{reduce:(e,t)=>te.omitBy(nk(e,t),te.isUndefined)});function zPe(e){return new Promise(t=>te.delay(t,e))}function zz(e){const[,t]=OZ();return R.useCallback(async(n,r)=>{t(()=>({[e]:r})),zPe(300);const i=await n();return t(()=>({[e]:void 0})),i},[e,t])}function jz(e){return`${(e/(1024*1024)).toFixed(2)} MB`}function jPe({onChange:e,value:t}){const n=hl(),r=Rp("map"),i=zz("map"),[o]=Ig(),[{maps:s,formats:l}]=XE();return C.jsx(Is,{showArrow:!0,icon:C.jsx(FK,{}),label:"Choose Map",value:t==null?void 0:t.id,items:[LF(t),...s.map(c=>{var d;return{...c,description:(d=te.find(o,{url:c.source}))==null?void 0:d.name}})],onChange:async c=>{switch(c){case LF().id:try{const d=await $Pe(l);d&&r(async()=>{n("Opening map...");const f=d.file.size>PZ?await i(d.read,`Opening map (${jz(d.file.size)})`):await d.read();f&&(e==null||e(f))})}catch(d){n(`${d}`)}break;default:e==null||e(te.find(s,{id:c}));break}}})}function UPe({onChange:e,value:t}){const n=hl(),r=Rp("specimen"),i=zz("specimen");return C.jsx(Od,{icon:C.jsx(FK,{}),onClick:async()=>{try{const o=await BPe();o&&r(async()=>{n("Opening trace...");const s=o.file.size>PZ?await i(o.read,`Opening trace (${jz(o.file.size)})`):await o.read();s&&(e==null||e(s))})}catch(o){n(`${o}`)}},children:t!=null&&t.id?`Uploaded Trace - ${t.name}`:"Choose File"})}const MZ=({label:e})=>C.jsx(zt,{variant:"overline",color:"text.secondary",sx:{pt:1},component:"p",children:e}),HPe=({label:e})=>C.jsx(zt,{variant:"body1",children:e}),i1=({label:e,content:t})=>C.jsxs(bn,{alignItems:"center",children:[C.jsx(HPe,{label:e}),C.jsx(Kr,{flex:1}),t]}),Tk=({variables:e},{x:t,y:n})=>(e==null?void 0:e.x)===t&&(e==null?void 0:e.y)===n,WPe=""+new URL("parseGrid.worker-d5269b43.js",import.meta.url).href;class GPe extends Worker{constructor(){super(WPe,{type:"module"})}}const VPe=rv(GPe),{floor:vG}=Math;function yG(e,t,n){return e>=t&&e({...await VPe({map:e,options:t})}),{normalizer:JSON.stringify}),XPe=e=>{const{width:t,height:n}=e.bounds;return{...e,snap:({x:r,y:i},o=1)=>{const[s,l]=[vG(r+o/2),vG(i+o/2)];if(yG(s,0,t)&&yG(l,0,n))return{x:s,y:l}},nodeAt:r=>{const{x:i,y:o}=r;return o*t+i},pointOf:r=>({x:r%t,y:~~(r/t)}),matchNode:Tk}},YPe=Object.freeze(Object.defineProperty({__proto__:null,hydrate:XPe,parse:qPe},Symbol.toStringTag,{value:"Module"})),KPe=""+new URL("parseMesh.worker-114081b8.js",import.meta.url).href;class QPe extends Worker{constructor(){super(KPe,{type:"module"})}}const JPe=rv(QPe),ZPe=Lp(async(e="",t)=>await JPe({map:e,options:t}),{normalizer:JSON.stringify}),e2e=e=>({...e,snap:te.identity,nodeAt:te.constant(0),pointOf:te.constant({x:0,y:0}),matchNode:Tk}),t2e=Object.freeze(Object.defineProperty({__proto__:null,hydrate:e2e,parse:ZPe},Symbol.toStringTag,{value:"Module"})),n2e=""+new URL("parseNetwork.worker-0345a67d.js",import.meta.url).href;class r2e extends Worker{constructor(){super(n2e,{type:"module"})}}const i2e=rv(r2e),o2e=Lp(async(e="",t)=>await i2e({map:e,options:t}),{normalizer:JSON.stringify}),s2e=e=>({...e,snap:te.identity,nodeAt:te.constant(0),pointOf:te.constant({x:0,y:0}),matchNode:Tk}),a2e=Object.freeze(Object.defineProperty({__proto__:null,hydrate:s2e,parse:o2e},Symbol.toStringTag,{value:"Module"})),l2e=""+new URL("parsePoly.worker-bf1460fa.js",import.meta.url).href;class c2e extends Worker{constructor(){super(l2e,{type:"module"})}}const u2e=rv(c2e),d2e=Lp(async(e="",t)=>await u2e({map:e,options:t}),{normalizer:JSON.stringify}),f2e=e=>({...e,snap:te.identity,nodeAt:te.constant(0),pointOf:te.constant({x:0,y:0}),matchNode:Tk}),h2e=Object.freeze(Object.defineProperty({__proto__:null,hydrate:f2e,parse:d2e},Symbol.toStringTag,{value:"Module"})),Uz={grid:YPe,xy:a2e,mesh:t2e,poly:h2e};function Hz(e=""){return Uz[e]}const Mb="500";function p2e(e){return parseInt(e.replace("#","0x"))}const Wz={source:Hu.A400,destination:ju.A400,updating:Lh[Mb],expanding:dq[Mb],generating:fq[Mb],closing:uq[Mb],end:Uu.A400};te.mapValues(Wz,p2e);function o1(e){return(e&&Wz[e])??g5[Mb]}function m2e(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function g2e(){return this.eachAfter(m2e)}function v2e(e){var t=this,n,r=[t],i,o,s;do for(n=r.reverse(),r=[];t=n.pop();)if(e(t),i=t.children,i)for(o=0,s=i.length;o=0;--i)n.push(r[i]);return this}function b2e(e){for(var t=this,n=[t],r=[],i,o,s;t=n.pop();)if(r.push(t),i=t.children,i)for(o=0,s=i.length;o=0;)n+=r[i].value;t.value=n})}function w2e(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function _2e(e){for(var t=this,n=S2e(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function S2e(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function E2e(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function C2e(){var e=[];return this.each(function(t){e.push(t)}),e}function T2e(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function k2e(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function Gz(e,t){var n=new s1(e),r=+e.value&&(n.value=e.value),i,o=[n],s,l,c,d;for(t==null&&(t=I2e);i=o.pop();)if(r&&(i.value=+i.data.value),(l=t(i.data))&&(d=l.length))for(i.children=new Array(d),c=d-1;c>=0;--c)o.push(s=i.children[c]=new s1(l[c])),s.parent=i,s.depth=i.depth+1;return n.eachBefore(P2e)}function A2e(){return Gz(this).eachBefore(R2e)}function I2e(e){return e.children}function R2e(e){e.data=e.data.data}function P2e(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function s1(e){this.data=e,this.depth=this.height=0,this.parent=null}s1.prototype=Gz.prototype={constructor:s1,count:g2e,each:v2e,eachAfter:b2e,eachBefore:y2e,sum:x2e,sort:w2e,path:_2e,ancestors:E2e,descendants:C2e,leaves:T2e,links:k2e,copy:A2e};function O2e(e,t){return e.parent===t.parent?1:2}function SN(e){var t=e.children;return t?t[0]:e.t}function EN(e){var t=e.children;return t?t[t.length-1]:e.t}function M2e(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function D2e(e){for(var t=0,n=0,r=e.children,i=r.length,o;--i>=0;)o=r[i],o.z+=t,o.m+=t,t+=o.s+(n+=o.c)}function L2e(e,t,n){return e.a.parent===t.parent?e.a:n}function IS(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}IS.prototype=Object.create(s1.prototype);function N2e(e){for(var t=new IS(e,0),n,r=[t],i,o,s,l;n=r.pop();)if(o=n._.children)for(n.children=new Array(l=o.length),s=l-1;s>=0;--s)r.push(i=n.children[s]=new IS(o[s],s)),i.parent=n;return(t.parent=new IS(null,0)).children=[t],t}function B2e(){var e=O2e,t=1,n=1,r=null;function i(d){var f=N2e(d);if(f.eachAfter(o),f.parent.m=-f.z,f.eachBefore(s),r)d.eachBefore(c);else{var h=d,p=d,g=d;d.eachBefore(function(b){b.xp.x&&(p=b),b.depth>g.depth&&(g=b)});var v=h===p?1:e(h,p)/2,y=v-h.x,S=t/(p.x+v+y),_=n/(g.depth||1);d.eachBefore(function(b){b.x=(b.x+y)*S,b.y=b.depth*_})}return d}function o(d){var f=d.children,h=d.parent.children,p=d.i?h[d.i-1]:null;if(f){D2e(d);var g=(f[0].z+f[f.length-1].z)/2;p?(d.z=p.z+e(d._,p._),d.m=d.z-g):d.z=g}else p&&(d.z=p.z+e(d._,p._));d.parent.A=l(d,p,d.parent.A||h[0])}function s(d){d._.x=d.z+d.parent.m,d.m+=d.parent.m}function l(d,f,h){if(f){for(var p=d,g=d,v=f,y=p.parent.children[0],S=p.m,_=g.m,b=v.m,x=y.m,E;v=EN(v),p=SN(p),v&&p;)y=SN(y),g=EN(g),g.a=d,E=v.z+b-p.z-S+e(v._,p._),E>0&&(M2e(L2e(v,d,h),d,E),S+=E,_+=E),b+=v.m,S+=p.m,x+=y.m,_+=g.m;v&&!EN(g)&&(g.t=v,g.m+=b-_),p&&!SN(y)&&(y.t=p,y.m+=S-x,h=d)}return h}function c(d){d.x*=t,d.y=d.depth*n}return i.separation=function(d){return arguments.length?(e=d,i):e},i.size=function(d){return arguments.length?(r=!1,t=+d[0],n=+d[1],i):r?null:[t,n]},i.nodeSize=function(d){return arguments.length?(r=!0,t=+d[0],n=+d[1],i):r?[t,n]:null},i}var NF="http://www.w3.org/1999/xhtml";const bG={svg:"http://www.w3.org/2000/svg",xhtml:NF,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function kk(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),bG.hasOwnProperty(t)?{space:bG[t],local:e}:e}function $2e(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===NF&&t.documentElement.namespaceURI===NF?t.createElement(e):t.createElementNS(n,e)}}function F2e(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function DZ(e){var t=kk(e);return(t.local?F2e:$2e)(t)}function z2e(){}function Vz(e){return e==null?z2e:function(){return this.querySelector(e)}}function j2e(e){typeof e!="function"&&(e=Vz(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i=x&&(x=b+1);!(A=S[x])&&++x=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function fOe(e){e||(e=hOe);function t(h,p){return h&&p?e(h.__data__,p.__data__):!h-!p}for(var n=this._groups,r=n.length,i=new Array(r),o=0;ot?1:e>=t?0:NaN}function pOe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function mOe(){return Array.from(this)}function gOe(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?kOe:typeof t=="function"?IOe:AOe)(e,t,n??"")):Rg(this.node(),e)}function Rg(e,t){return e.style.getPropertyValue(t)||FZ(e).getComputedStyle(e,null).getPropertyValue(t)}function POe(e){return function(){delete this[e]}}function OOe(e,t){return function(){this[e]=t}}function MOe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function DOe(e,t){return arguments.length>1?this.each((t==null?POe:typeof t=="function"?MOe:OOe)(e,t)):this.node()[e]}function zZ(e){return e.trim().split(/^|\s+/)}function qz(e){return e.classList||new jZ(e)}function jZ(e){this._node=e,this._names=zZ(e.getAttribute("class")||"")}jZ.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function UZ(e,t){for(var n=qz(e),r=-1,i=t.length;++r=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function lMe(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n{}};function Xz(){for(var e=0,t=arguments.length,n={},r;e=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}RS.prototype=Xz.prototype={constructor:RS,on:function(e,t){var n=this._,r=yMe(e+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?g_(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?g_(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=SMe.exec(e))?new Fo(t[1],t[2],t[3],1):(t=EMe.exec(e))?new Fo(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=CMe.exec(e))?g_(t[1],t[2],t[3],t[4]):(t=TMe.exec(e))?g_(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=kMe.exec(e))?kG(t[1],t[2]/100,t[3]/100,1):(t=AMe.exec(e))?kG(t[1],t[2]/100,t[3]/100,t[4]):wG.hasOwnProperty(e)?EG(wG[e]):e==="transparent"?new Fo(NaN,NaN,NaN,0):null}function EG(e){return new Fo(e>>16&255,e>>8&255,e&255,1)}function g_(e,t,n,r){return r<=0&&(e=t=n=NaN),new Fo(e,t,n,r)}function PMe(e){return e instanceof lw||(e=c1(e)),e?(e=e.rgb(),new Fo(e.r,e.g,e.b,e.opacity)):new Fo}function FF(e,t,n,r){return arguments.length===1?PMe(e):new Fo(e,t,n,r??1)}function Fo(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Yz(Fo,FF,VZ(lw,{brighter(e){return e=e==null?KE:Math.pow(KE,e),new Fo(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?a1:Math.pow(a1,e),new Fo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Fo(Jh(this.r),Jh(this.g),Jh(this.b),QE(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:CG,formatHex:CG,formatHex8:OMe,formatRgb:TG,toString:TG}));function CG(){return`#${Hh(this.r)}${Hh(this.g)}${Hh(this.b)}`}function OMe(){return`#${Hh(this.r)}${Hh(this.g)}${Hh(this.b)}${Hh((isNaN(this.opacity)?1:this.opacity)*255)}`}function TG(){const e=QE(this.opacity);return`${e===1?"rgb(":"rgba("}${Jh(this.r)}, ${Jh(this.g)}, ${Jh(this.b)}${e===1?")":`, ${e})`}`}function QE(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Jh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Hh(e){return e=Jh(e),(e<16?"0":"")+e.toString(16)}function kG(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ja(e,t,n,r)}function qZ(e){if(e instanceof Ja)return new Ja(e.h,e.s,e.l,e.opacity);if(e instanceof lw||(e=c1(e)),!e)return new Ja;if(e instanceof Ja)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,l=o-i,c=(o+i)/2;return l?(t===o?s=(n-r)/l+(n0&&c<1?0:s,new Ja(s,l,c,e.opacity)}function MMe(e,t,n,r){return arguments.length===1?qZ(e):new Ja(e,t,n,r??1)}function Ja(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Yz(Ja,MMe,VZ(lw,{brighter(e){return e=e==null?KE:Math.pow(KE,e),new Ja(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?a1:Math.pow(a1,e),new Ja(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Fo(CN(e>=240?e-240:e+120,i,r),CN(e,i,r),CN(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ja(AG(this.h),v_(this.s),v_(this.l),QE(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=QE(this.opacity);return`${e===1?"hsl(":"hsla("}${AG(this.h)}, ${v_(this.s)*100}%, ${v_(this.l)*100}%${e===1?")":`, ${e})`}`}}));function AG(e){return e=(e||0)%360,e<0?e+360:e}function v_(e){return Math.max(0,Math.min(1,e||0))}function CN(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const XZ=e=>()=>e;function DMe(e,t){return function(n){return e+n*t}}function LMe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function NMe(e){return(e=+e)==1?YZ:function(t,n){return n-t?LMe(t,n,e):XZ(isNaN(t)?n:t)}}function YZ(e,t){var n=t-e;return n?DMe(e,n):XZ(isNaN(e)?t:e)}const IG=function e(t){var n=NMe(t);function r(i,o){var s=n((i=FF(i)).r,(o=FF(o)).r),l=n(i.g,o.g),c=n(i.b,o.b),d=YZ(i.opacity,o.opacity);return function(f){return i.r=s(f),i.g=l(f),i.b=c(f),i.opacity=d(f),i+""}}return r.gamma=e,r}(1);function Xu(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var zF=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,TN=new RegExp(zF.source,"g");function BMe(e){return function(){return e}}function $Me(e){return function(t){return e(t)+""}}function FMe(e,t){var n=zF.lastIndex=TN.lastIndex=0,r,i,o,s=-1,l=[],c=[];for(e=e+"",t=t+"";(r=zF.exec(e))&&(i=TN.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),l[s]?l[s]+=o:l[++s]=o),(r=r[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,c.push({i:s,x:Xu(r,i)})),n=TN.lastIndex;return n180?f+=360:f-d>180&&(d+=360),p.push({i:h.push(i(h)+"rotate(",null,r)-2,x:Xu(d,f)})):f&&h.push(i(h)+"rotate("+f+r)}function l(d,f,h,p){d!==f?p.push({i:h.push(i(h)+"skewX(",null,r)-2,x:Xu(d,f)}):f&&h.push(i(h)+"skewX("+f+r)}function c(d,f,h,p,g,v){if(d!==h||f!==p){var y=g.push(i(g)+"scale(",null,",",null,")");v.push({i:y-4,x:Xu(d,h)},{i:y-2,x:Xu(f,p)})}else(h!==1||p!==1)&&g.push(i(g)+"scale("+h+","+p+")")}return function(d,f){var h=[],p=[];return d=e(d),f=e(f),o(d.translateX,d.translateY,f.translateX,f.translateY,h,p),s(d.rotate,f.rotate,h,p),l(d.skewX,f.skewX,h,p),c(d.scaleX,d.scaleY,f.scaleX,f.scaleY,h,p),d=f=null,function(g){for(var v=-1,y=p.length,S;++v=0&&e._call.call(void 0,t),e=e._next;--Pg}function OG(){yp=(ZE=u1.now())+Ak,Pg=Db=0;try{YMe()}finally{Pg=0,QMe(),yp=0}}function KMe(){var e=u1.now(),t=e-ZE;t>JZ&&(Ak-=t,ZE=e)}function QMe(){for(var e,t=JE,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:JE=n);Lb=e,UF(r)}function UF(e){if(!Pg){Db&&(Db=clearTimeout(Db));var t=e-yp;t>24?(e<1/0&&(Db=setTimeout(OG,e-u1.now()-Ak)),cb&&(cb=clearInterval(cb))):(cb||(ZE=u1.now(),cb=setInterval(KMe,JZ)),Pg=1,ZZ(OG))}}function MG(e,t,n){var r=new eC;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var JMe=Xz("start","end","cancel","interrupt"),ZMe=[],tee=0,DG=1,HF=2,PS=3,LG=4,WF=5,OS=6;function Ik(e,t,n,r,i,o){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;eDe(e,n,{name:t,index:r,group:i,on:JMe,tween:ZMe,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:tee})}function Qz(e,t){var n=ml(e,t);if(n.state>tee)throw new Error("too late; already scheduled");return n}function Zl(e,t){var n=ml(e,t);if(n.state>PS)throw new Error("too late; already running");return n}function ml(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function eDe(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=eee(o,0,n.time);function o(d){n.state=DG,n.timer.restart(s,n.delay,n.time),n.delay<=d&&s(d-n.delay)}function s(d){var f,h,p,g;if(n.state!==DG)return c();for(f in r)if(g=r[f],g.name===n.name){if(g.state===PS)return MG(s);g.state===LG?(g.state=OS,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete r[f]):+fHF&&r.state=0&&(t=t.slice(0,n)),!t||t==="start"})}function RDe(e,t,n){var r,i,o=IDe(t)?Qz:Zl;return function(){var s=o(this,e),l=s.on;l!==r&&(i=(r=l).copy()).on(t,n),s.on=i}}function PDe(e,t){var n=this._id;return arguments.length<2?ml(this.node(),n).on.on(e):this.each(RDe(n,e,t))}function ODe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function MDe(){return this.on("end.remove",ODe(this._id))}function DDe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Vz(e));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s()=>e;function oLe(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function au(e,t,n){this.k=e,this.x=t,this.y=n}au.prototype={constructor:au,scale:function(e){return e===1?this:new au(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new au(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var tC=new au(1,0,0);au.prototype;function kN(e){e.stopImmediatePropagation()}function ub(e){e.preventDefault(),e.stopImmediatePropagation()}function sLe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function aLe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function NG(){return this.__zoom||tC}function lLe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function cLe(){return navigator.maxTouchPoints||"ontouchstart"in this}function uLe(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function AN(){var e=sLe,t=aLe,n=uLe,r=lLe,i=cLe,o=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,c=qMe,d=Xz("start","zoom","end"),f,h,p,g=500,v=150,y=0,S=10;function _(D){D.property("__zoom",NG).on("wheel.zoom",O,{passive:!1}).on("mousedown.zoom",L).on("dblclick.zoom",N).filter(i).on("touchstart.zoom",H).on("touchmove.zoom",W).on("touchend.zoom touchcancel.zoom",z).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}_.transform=function(D,F,j,V){var G=D.selection?D.selection():D;G.property("__zoom",NG),D!==G?A(D,F,j,V):G.interrupt().each(function(){I(this,arguments).event(V).start().zoom(null,typeof F=="function"?F.apply(this,arguments):F).end()})},_.scaleBy=function(D,F,j,V){_.scaleTo(D,function(){var G=this.__zoom.k,K=typeof F=="function"?F.apply(this,arguments):F;return G*K},j,V)},_.scaleTo=function(D,F,j,V){_.transform(D,function(){var G=t.apply(this,arguments),K=this.__zoom,Y=j==null?E(G):typeof j=="function"?j.apply(this,arguments):j,J=K.invert(Y),ie=typeof F=="function"?F.apply(this,arguments):F;return n(x(b(K,ie),Y,J),G,s)},j,V)},_.translateBy=function(D,F,j,V){_.transform(D,function(){return n(this.__zoom.translate(typeof F=="function"?F.apply(this,arguments):F,typeof j=="function"?j.apply(this,arguments):j),t.apply(this,arguments),s)},null,V)},_.translateTo=function(D,F,j,V,G){_.transform(D,function(){var K=t.apply(this,arguments),Y=this.__zoom,J=V==null?E(K):typeof V=="function"?V.apply(this,arguments):V;return n(tC.translate(J[0],J[1]).scale(Y.k).translate(typeof F=="function"?-F.apply(this,arguments):-F,typeof j=="function"?-j.apply(this,arguments):-j),K,s)},V,G)};function b(D,F){return F=Math.max(o[0],Math.min(o[1],F)),F===D.k?D:new au(F,D.x,D.y)}function x(D,F,j){var V=F[0]-j[0]*D.k,G=F[1]-j[1]*D.k;return V===D.x&&G===D.y?D:new au(D.k,V,G)}function E(D){return[(+D[0][0]+ +D[1][0])/2,(+D[0][1]+ +D[1][1])/2]}function A(D,F,j,V){D.on("start.zoom",function(){I(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){I(this,arguments).event(V).end()}).tween("zoom",function(){var G=this,K=arguments,Y=I(G,K).event(V),J=t.apply(G,K),ie=j==null?E(J):typeof j=="function"?j.apply(G,K):j,ce=Math.max(J[1][0]-J[0][0],J[1][1]-J[0][1]),ue=G.__zoom,se=typeof F=="function"?F.apply(G,K):F,Q=c(ue.invert(ie).concat(ce/ue.k),se.invert(ie).concat(ce/se.k));return function(ae){if(ae===1)ae=se;else{var le=Q(ae),he=ce/le[2];ae=new au(he,ie[0]-le[0]*he,ie[1]-le[1]*he)}Y.zoom(null,ae)}})}function I(D,F,j){return!j&&D.__zooming||new k(D,F)}function k(D,F){this.that=D,this.args=F,this.active=0,this.sourceEvent=null,this.extent=t.apply(D,F),this.taps=0}k.prototype={event:function(D){return D&&(this.sourceEvent=D),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(D,F){return this.mouse&&D!=="mouse"&&(this.mouse[1]=F.invert(this.mouse[0])),this.touch0&&D!=="touch"&&(this.touch0[1]=F.invert(this.touch0[0])),this.touch1&&D!=="touch"&&(this.touch1[1]=F.invert(this.touch1[0])),this.that.__zoom=F,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(D){var F=Eo(this.that).datum();d.call(D,this.that,new oLe(D,{sourceEvent:this.sourceEvent,target:_,type:D,transform:this.that.__zoom,dispatch:d}),F)}};function O(D,...F){if(!e.apply(this,arguments))return;var j=I(this,F).event(D),V=this.__zoom,G=Math.max(o[0],Math.min(o[1],V.k*Math.pow(2,r.apply(this,arguments)))),K=vh(D);if(j.wheel)(j.mouse[0][0]!==K[0]||j.mouse[0][1]!==K[1])&&(j.mouse[1]=V.invert(j.mouse[0]=K)),clearTimeout(j.wheel);else{if(V.k===G)return;j.mouse=[K,V.invert(K)],MS(this),j.start()}ub(D),j.wheel=setTimeout(Y,v),j.zoom("mouse",n(x(b(V,G),j.mouse[0],j.mouse[1]),j.extent,s));function Y(){j.wheel=null,j.end()}}function L(D,...F){if(p||!e.apply(this,arguments))return;var j=D.currentTarget,V=I(this,F,!0).event(D),G=Eo(D.view).on("mousemove.zoom",ie,!0).on("mouseup.zoom",ce,!0),K=vh(D,j),Y=D.clientX,J=D.clientY;xMe(D.view),kN(D),V.mouse=[K,this.__zoom.invert(K)],MS(this),V.start();function ie(ue){if(ub(ue),!V.moved){var se=ue.clientX-Y,Q=ue.clientY-J;V.moved=se*se+Q*Q>y}V.event(ue).zoom("mouse",n(x(V.that.__zoom,V.mouse[0]=vh(ue,j),V.mouse[1]),V.extent,s))}function ce(ue){G.on("mousemove.zoom mouseup.zoom",null),wMe(ue.view,V.moved),ub(ue),V.event(ue).end()}}function N(D,...F){if(e.apply(this,arguments)){var j=this.__zoom,V=vh(D.changedTouches?D.changedTouches[0]:D,this),G=j.invert(V),K=j.k*(D.shiftKey?.5:2),Y=n(x(b(j,K),V,G),t.apply(this,F),s);ub(D),l>0?Eo(this).transition().duration(l).call(A,Y,V,D):Eo(this).call(_.transform,Y,V,D)}}function H(D,...F){if(e.apply(this,arguments)){var j=D.touches,V=j.length,G=I(this,F,D.changedTouches.length===V).event(D),K,Y,J,ie;for(kN(D),Y=0;Y"u"&&(g=!0),typeof v>"u"&&(v=1/0);function E(A,I){if(A===null)return null;if(I===0)return A;var k,O;if(typeof A!="object")return A;if(n(A,r))k=new r;else if(n(A,i))k=new i;else if(n(A,o))k=new o(function(V,G){A.then(function(K){V(E(K,I-1))},function(K){G(E(K,I-1))})});else if(s.__isArray(A))k=[];else if(s.__isRegExp(A))k=new RegExp(A.source,h(A)),A.lastIndex&&(k.lastIndex=A.lastIndex);else if(s.__isDate(A))k=new Date(A.getTime());else{if(x&&Buffer.isBuffer(A))return Buffer.allocUnsafe?k=Buffer.allocUnsafe(A.length):k=new Buffer(A.length),A.copy(k),k;n(A,Error)?k=Object.create(A):typeof y>"u"?(O=Object.getPrototypeOf(A),k=Object.create(O)):(k=Object.create(y),O=y)}if(g){var L=_.indexOf(A);if(L!=-1)return b[L];_.push(A),b.push(k)}n(A,r)&&A.forEach(function(V,G){var K=E(G,I-1),Y=E(V,I-1);k.set(K,Y)}),n(A,i)&&A.forEach(function(V){var G=E(V,I-1);k.add(G)});for(var N in A){var H;O&&(H=Object.getOwnPropertyDescriptor(O,N)),!(H&&H.set==null)&&(k[N]=E(A[N],I-1))}if(Object.getOwnPropertySymbols)for(var W=Object.getOwnPropertySymbols(A),N=0;N1&&arguments[1]!==void 0?arguments[1]:0,n=(Li[e[t+0]]+Li[e[t+1]]+Li[e[t+2]]+Li[e[t+3]]+"-"+Li[e[t+4]]+Li[e[t+5]]+"-"+Li[e[t+6]]+Li[e[t+7]]+"-"+Li[e[t+8]]+Li[e[t+9]]+"-"+Li[e[t+10]]+Li[e[t+11]]+Li[e[t+12]]+Li[e[t+13]]+Li[e[t+14]]+Li[e[t+15]]).toLowerCase();if(!mLe(n))throw TypeError("Stringified UUID is invalid");return n}function RN(e,t,n){e=e||{};var r=e.random||(e.rng||hLe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return gLe(r)}var GF={exports:{}},VF={exports:{}},vLe=function(){for(var t=arguments.length,n=[],r=0;r .resize-sensor {min-width: "+H+"px;}",l.push(k)}s[k].push({mode:O,property:L,value:N})}function v(k){var O;if(document.querySelectorAll&&(O=k?k.querySelectorAll.bind(k):document.querySelectorAll.bind(document)),!O&&typeof $$<"u"&&(O=$$),!O&&typeof jQuery<"u"&&(O=jQuery),!O)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return O}function y(k){var O=v(k);for(var L in s)if(s.hasOwnProperty(L))for(var N=O(L,k),H=0,W=N.length;HL[Y].minWidth&&(K=Y);if(K||(K=H),W!==K)if(z[K])O[W].style.display="none",O[K].style.display="block",W=K;else{var J=new Image;J.onload=function(){O[K].src=N[K],O[W].style.display="none",O[K].style.display="block",z[K]=!0,W=K},J.src=N[K]}else O[K].src=N[K]}k.resizeSensorInstance=new n(k,G),G()}function _(){for(var k=v(),O=k("[data-responsive-image],[responsive-image]"),L=0,N=O.length;L img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",o.innerHTML+=` +@keyframes element-queries { 0% { visibility: inherit; } }`,document.getElementsByTagName("head")[0].appendChild(o),R=!0);for(var O=0,L=document.styleSheets.length;O{if(r&&t)return r.addEventListener("scroll",t,{passive:!0}),()=>r.removeEventListener("scroll",t)},[r,t]),C.jsx("div",{...n,style:{height:"100%",width:"100%",overflow:"hidden scroll",...n.style},ref:o=>{i(o),e==null||e(o)},children:C.jsx(mZ.Provider,{value:r,children:C.jsx("div",{style:{width:"100%"},children:n.children})})})}const mZ=I.createContext(null);function lRe(){return I.useContext(mZ)}function cRe(e=128){const[t,n]=I.useState(!0),[r,i]=I.useState(!0),[o,s]=I.useState(!0),[l,c]=I.useState(null),d=I.useRef(0);return I.useEffect(()=>{if(l){const f=()=>{{const h=l.scrollTop<=e;h!==o&&s(h)}{const h=l.scrollTop<=1;h!==r&&i(h)}d.current-l.scrollTop&&(Math.abs(d.current-l.scrollTop)>2&&d.current>=0&&n(d.current>l.scrollTop),d.current=l.scrollTop)};return l.addEventListener("scroll",f,{passive:!0}),()=>{l.removeEventListener("scroll",f)}}},[l,o,r,d,e]),[t||o,o,r,l,c]}function Bz({children:e}){return C.jsx(Lt,{variant:"h6",children:e})}function uRe({onClose:e=()=>{},style:t,elevatedStyle:n,children:r,transitionProperties:i=["box-shadow","background","border-bottom"],elevatedChildren:o,simple:s,position:l="sticky"}){const c=lRe(),d=Pn(),[,,f,,h]=cRe();I.useEffect(()=>{h(c)},[c,h]);const p=f?{background:d.palette.background.paper,...!s&&{boxShadow:d.shadows[0]},...t}:{background:d.palette.background.paper,...!s&&{boxShadow:d.shadows[4]},...n};return C.jsx(Qde,{elevation:0,position:l,style:{color:d.palette.text.primary,transition:d.transitions.create(i),...p},children:C.jsxs(vbe,{children:[C.jsx(fp,{style:{marginRight:d.spacing(1)},"aria-label":"open drawer",edge:"start",onClick:()=>e(),children:C.jsx(Qbe,{})}),r&&C.jsx("div",{style:{gridColumn:1,gridRow:1,flex:1,overflow:"auto"},children:C.jsx(pp,{in:!!(!o||f),mountOnEnter:!0,unmountOnExit:!0,children:C.jsx(lt,{style:{width:"100%"},children:r})})}),o&&C.jsx("div",{style:{gridColumn:1,gridRow:1,flex:1,overflow:"auto"},children:C.jsx(pp,{in:!!(o&&!f),mountOnEnter:!0,unmountOnExit:!0,children:C.jsx(lt,{style:{width:"100%"},children:o})})})]})})}function dRe({children:e,actions:t,width:n=480,height:r,onTarget:i,variant:o="default",scrollable:s=!0,...l}){var A;const[c,d]=I.useState(void 0);I.useEffect(()=>{e&&d(e)},[e]);const f=Pn(),h=dz(),[p,g]=I.useState(null),[v,y]=I.useState(null),[S,_]=I.useState(!1),[b,x]=I.useState(0);I.useEffect(()=>{if(p&&v&&!h&&!r){const R=()=>{const O=window.innerHeight-64{window.removeEventListener("resize",R),k.detach()}}},[p,v,h,r]);const E=o==="submodal"&&h;return C.jsxs(Jme,{fullScreen:h,...l,style:{...E&&{paddingTop:f.spacing(8)},...l.style},PaperProps:{ref:R=>g(R),style:{...E&&{borderRadius:`${f.shape.borderRadius}px ${f.shape.borderRadius}px 0 0`},background:f.palette.background.paper,overflow:"hidden",height:r&&!h?r:S||h?"100%":b||"fit-content",position:"relative",maxWidth:"none",...(A=l.PaperProps)==null?void 0:A.style},...l.PaperProps},children:[C.jsx(aRe,{style:{height:"100%",width:h?void 0:n,maxWidth:"100%",overflow:s?void 0:"hidden"},onTarget:i,children:C.jsx("div",{ref:R=>y(R),style:{width:"100%",height:"100%"},children:c})}),t]})}function $z({options:e,appBar:t,trigger:n=()=>C.jsx(C.Fragment,{}),children:r}){return C.jsx(Ip,{variant:"popover",children:({open:i,close:o,isOpen:s})=>C.jsxs(C.Fragment,{children:[I.cloneElement(n(i)),C.jsxs(dRe,{open:s,onClose:o,...e,children:[C.jsx(uRe,{onClose:o,...t}),r??(e==null?void 0:e.children)]})]})})}const[Ig,fRe]=Jl([],{reduce:KK}),[KE,hRe]=Jl({algorithms:[],maps:[],formats:[]}),[Ck,pRe]=Jl({specimen:0,connections:0,features:0,map:0},{reduce:(e,{action:t,key:n})=>ua(e,r=>{switch(t){case"start":r[n]+=1;break;case"end":r[n]-=1}return r})});function mRe(){const[e]=Ck();return te.some(te.values(e))}function Op(e){const[,t]=Ck();return I.useCallback(async n=>{t(()=>({action:"start",key:e}));const r=await n();return t(()=>({action:"end",key:e})),r},[e,t])}let gZ=class extends Error{},gRe=class extends gZ{},vRe=class extends gZ{};const yRe=(e,t=",")=>e.join(t),bRe={accept:"*",multiple:!1,strict:!1},Fz=e=>{const{accept:t,multiple:n,strict:r}={...bRe,...e},i=_Re({multiple:n,accept:Array.isArray(t)?yRe(t):t});return new Promise(o=>{i.onchange=()=>{o(xRe(i.files,n,r)),i.remove()},i.click()})},xRe=(e,t,n)=>new Promise((r,i)=>{if(!e)return i(new gRe);const o=wRe(e,t,n);if(!o)return i(new vRe);r(o)}),wRe=(e,t,n)=>!t&&n?e.length===1?e[0]:null:e.length?e:null,_Re=({accept:e,multiple:t})=>{const n=document.createElement("input");return n.type="file",n.multiple=t,n.accept=e,n},SRe=""+new URL("hash.worker-76266fd6.js",import.meta.url).href,ERe=""+new URL("ipc.worker-78007631.js",import.meta.url).href,CRe=""+new URL("compress.worker-5a39bbab.js",import.meta.url).href,TRe=""+new URL("compressBinary.worker-0e5dbf65.js",import.meta.url).href,kRe=""+new URL("decompressBinary.worker-e2ab768a.js",import.meta.url).href,ARe=""+new URL("parseYaml.worker-858dc2e2.js",import.meta.url).href;class RRe extends Worker{constructor(){super(SRe,{type:"module"})}}class IRe extends Worker{constructor(){super(CRe,{type:"module"})}}class PRe extends Worker{constructor(){super(TRe,{type:"module"})}}class ORe extends Worker{constructor(){super(kRe,{type:"module"})}}class MRe extends Worker{constructor(){super(ERe,{type:"module"})}}class DRe extends Worker{constructor(){super(ARe,{type:"module"})}}var LRe=function(){},NRe=LRe(),Mp=function(e){return e!==NRe&&e!==null},BRe=Mp,$Re=Array.prototype.forEach,FRe=Object.create,zRe=function(e,t){var n;for(n in e)t[n]=e[n]},vZ=function(e){var t=FRe(null);return $Re.call(arguments,function(n){BRe(n)&&zRe(Object(n),t)}),t},jRe=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},PL,lW;function URe(){return lW||(lW=1,PL=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),PL}var HRe=jRe()?Math.sign:URe(),WRe=HRe,GRe=Math.abs,VRe=Math.floor,qRe=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:WRe(e)*VRe(GRe(e)))},XRe=qRe,YRe=Math.max,Dp=function(e){return YRe(0,XRe(e))},KRe=Dp,yZ=function(e,t,n){var r;return isNaN(e)?(r=t,r>=0?n&&r?r-1:r:1):e===!1?!1:KRe(e)},Kd=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},QRe=Mp,rv=function(e){if(!QRe(e))throw new TypeError("Cannot use null or undefined");return e},JRe=Kd,ZRe=rv,eIe=Function.prototype.bind,cW=Function.prototype.call,tIe=Object.keys,nIe=Object.prototype.propertyIsEnumerable,rIe=function(e,t){return function(n,r){var i,o=arguments[2],s=arguments[3];return n=Object(ZRe(n)),JRe(r),i=tIe(n),s&&i.sort(typeof s=="function"?eIe.call(s,n):void 0),typeof e!="function"&&(e=i[e]),cW.call(e,i,function(l,c){return nIe.call(n,l)?cW.call(r,o,n[l],l,n,c):t})}},Tk=rIe("forEach"),Lp={},bZ={exports:{}},iIe=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},OL,uW;function oIe(){return uW||(uW=1,OL=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),OL}var ML,dW;function sIe(){if(dW)return ML;dW=1;var e=Mp,t=Object.keys;return ML=function(n){return t(e(n)?Object(n):n)},ML}var DL,fW;function aIe(){return fW||(fW=1,DL=oIe()()?Object.keys:sIe()),DL}var LL,hW;function lIe(){if(hW)return LL;hW=1;var e=aIe(),t=rv,n=Math.max;return LL=function(r,i){var o,s,l=n(arguments.length,2),c;for(r=Object(t(r)),c=function(d){try{r[d]=i[d]}catch(f){o||(o=f)}},s=1;s-1},FL}var kIe=CIe()?String.prototype.contains:TIe(),RS=CZ,xW=EIe,TZ=xZ,kZ=vZ,gx=kIe,AIe=EZ.exports=function(e,t){var n,r,i,o,s;return arguments.length<2||typeof e!="string"?(o=t,t=e,e=null):o=arguments[2],RS(e)?(n=gx.call(e,"c"),r=gx.call(e,"e"),i=gx.call(e,"w")):(n=i=!0,r=!1),s={value:t,configurable:n,enumerable:r,writable:i},o?TZ(kZ(o),s):s};AIe.gs=function(e,t,n){var r,i,o,s;return typeof e!="string"?(o=n,n=t,t=e,e=null):o=arguments[3],RS(t)?xW(t)?RS(n)?xW(n)||(o=n,n=void 0):n=void 0:(o=t,t=n=void 0):t=void 0,RS(e)?(r=gx.call(e,"c"),i=gx.call(e,"e")):(r=!0,i=!1),s={get:t,set:n,configurable:r,enumerable:i},o?TZ(kZ(o),s):s};var Np=EZ.exports,LF={exports:{}};(function(e,t){var n=Np,r=Kd,i=Function.prototype.apply,o=Function.prototype.call,s=Object.create,l=Object.defineProperty,c=Object.defineProperties,d=Object.prototype.hasOwnProperty,f={configurable:!0,enumerable:!1,writable:!0},h,p,g,v,y,S,_;h=function(b,x){var E;return r(x),d.call(this,"__ee__")?E=this.__ee__:(E=f.value=s(null),l(this,"__ee__",f),f.value=null),E[b]?typeof E[b]=="object"?E[b].push(x):E[b]=[E[b],x]:E[b]=x,this},p=function(b,x){var E,A;return r(x),A=this,h.call(this,b,E=function(){g.call(A,b,E),i.call(x,this,arguments)}),E.__eeOnceListener__=x,this},g=function(b,x){var E,A,R,k;if(r(x),!d.call(this,"__ee__"))return this;if(E=this.__ee__,!E[b])return this;if(A=E[b],typeof A=="object")for(k=0;R=A[k];++k)(R===x||R.__eeOnceListener__===x)&&(A.length===2?E[b]=A[k?0:1]:A.splice(k,1));else(A===x||A.__eeOnceListener__===x)&&delete E[b];return this},v=function(b){var x,E,A,R,k;if(d.call(this,"__ee__")&&(R=this.__ee__[b],!!R))if(typeof R=="object"){for(E=arguments.length,k=new Array(E-1),x=1;x=55296&&E<=56319&&(O+=p[++S])),O=g?d.call(g,v,O,_):O,y?(f.value=O,h(b,_,f)):b[_]=O,++_;x=_}}if(x===void 0)for(x=r(p.length),y&&(b=new y(x)),S=0;S=0?f=s(f):f=t(this.length)-s(o(f)),c=f;c"}},xN}var wN,oG;function SPe(){if(oG)return wN;oG=1;var e=_Pe(),t=/[\n\r\u2028\u2029]/g;return wN=function(n){var r=e(n);return r.length>100&&(r=r.slice(0,99)+"…"),r=r.replace(t,function(i){return JSON.stringify(i).slice(1,-1)}),r},wN}var g_={exports:{}},sG;function MZ(){if(sG)return g_.exports;sG=1,g_.exports=e,g_.exports.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return g_.exports}var aG;function EPe(){if(aG)return ZW;aG=1;var e=PZ(),t=bPe(),n=wPe(),r=SPe(),i=MZ(),o=Uz(),s=Object.create,l=t("then","then:finally","done","done:finally");return Lp.promise=function(c,d){var f=s(null),h=s(null),p=s(null);if(c===!0)c=null;else if(c=n(c),!l[c])throw new TypeError("'"+r(c)+"' is not valid promise mode");d.on("set",function(g,v,y){var S=!1;if(!i(y)){h[g]=y,d.emit("setasync",g,1);return}f[g]=1,p[g]=y;var _=function(A){var R=f[g];if(S)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode) +Consider to rely on 'then' or 'done' mode instead.`);R&&(delete f[g],h[g]=A,d.emit("setasync",g,R))},b=function(){S=!0,f[g]&&(delete f[g],delete p[g],d.delete(g))},x=c;if(x||(x="then"),x==="then"){var E=function(){o(b)};y=y.then(function(A){o(_.bind(this,A))},E),typeof y.finally=="function"&&y.finally(E)}else if(x==="done"){if(typeof y.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");y.done(_,b)}else if(x==="done:finally"){if(typeof y.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof y.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");y.done(_),y.finally(b)}}),d.on("get",function(g,v,y){var S;if(f[g]){++f[g];return}S=p[g];var _=function(){d.emit("getasync",g,v,y)};i(S)?typeof S.done=="function"?S.done(_):S.then(function(){o(_)}):_()}),d.on("delete",function(g){if(delete p[g],f[g]){delete f[g];return}if(hasOwnProperty.call(h,g)){var v=h[g];delete h[g],d.emit("deleteasync",g,[v])}}),d.on("clear",function(){var g=h;h=s(null),f=s(null),p=s(null),d.emit("clearasync",e(g,function(v){return[v]}))})},ZW}var lG={},cG;function CPe(){if(cG)return lG;cG=1;var e=Kd,t=Tk,n=Lp,r=Function.prototype.apply;return n.dispose=function(i,o,s){var l;if(e(i),s.async&&n.async||s.promise&&n.promise){o.on("deleteasync",l=function(c,d){r.call(i,null,d)}),o.on("clearasync",function(c){t(c,function(d,f){l(f,d)})});return}o.on("delete",l=function(c,d){i(d)}),o.on("clear",function(c){t(c,function(d,f){l(f,d)})})},lG}var uG={},_N,dG;function TPe(){return dG||(dG=1,_N=2147483647),_N}var SN,fG;function kPe(){if(fG)return SN;fG=1;var e=Dp,t=TPe();return SN=function(n){if(n=e(n),n>t)throw new TypeError(n+" exceeds maximum possible timeout");return n},SN}var hG;function APe(){if(hG)return uG;hG=1;var e=zz(),t=Tk,n=Uz(),r=MZ(),i=kPe(),o=Lp,s=Function.prototype,l=Math.max,c=Math.min,d=Object.create;return o.maxAge=function(f,h,p){var g,v,y,S;f=i(f),f&&(g=d(null),v=p.async&&o.async||p.promise&&o.promise?"async":"",h.on("set"+v,function(_){g[_]=setTimeout(function(){h.delete(_)},f),typeof g[_].unref=="function"&&g[_].unref(),S&&(S[_]&&S[_]!=="nextTick"&&clearTimeout(S[_]),S[_]=setTimeout(function(){delete S[_]},y),typeof S[_].unref=="function"&&S[_].unref())}),h.on("delete"+v,function(_){clearTimeout(g[_]),delete g[_],S&&(S[_]!=="nextTick"&&clearTimeout(S[_]),delete S[_])}),p.preFetch&&(p.preFetch===!0||isNaN(p.preFetch)?y=.333:y=l(c(Number(p.preFetch),1),0),y&&(S={},y=(1-y)*f,h.on("get"+v,function(_,b,x){S[_]||(S[_]="nextTick",n(function(){var E;S[_]==="nextTick"&&(delete S[_],h.delete(_),p.async&&(b=e(b),b.push(s)),E=h.memoized.apply(x,b),p.promise&&r(E)&&(typeof E.done=="function"?E.done(s,s):E.then(s,s)))}))}))),h.on("clear"+v,function(){t(g,function(_){clearTimeout(_)}),g={},S&&(t(S,function(_){_!=="nextTick"&&clearTimeout(_)}),S={})}))},uG}var pG={},EN,mG;function RPe(){if(mG)return EN;mG=1;var e=Dp,t=Object.create,n=Object.prototype.hasOwnProperty;return EN=function(r){var i=0,o=1,s=t(null),l=t(null),c=0,d;return r=e(r),{hit:function(f){var h=l[f],p=++c;if(s[p]=f,l[f]=p,!h)return++i,i<=r?void 0:(f=s[o],d(f),f);if(delete s[h],o===h)for(;!n.call(s,++o););},delete:d=function(f){var h=l[f];if(h&&(delete s[h],delete l[f],--i,o===h)){if(!i){c=0,o=1;return}for(;!n.call(s,++o););}},clear:function(){i=0,o=1,s=t(null),l=t(null),c=0}}},EN}var gG;function IPe(){if(gG)return pG;gG=1;var e=Dp,t=RPe(),n=Lp;return n.max=function(r,i,o){var s,l,c;r=e(r),r&&(l=t(r),s=o.async&&n.async||o.promise&&n.promise?"async":"",i.on("set"+s,c=function(d){d=l.hit(d),d!==void 0&&i.delete(d)}),i.on("get"+s,c),i.on("delete"+s,l.delete),i.on("clear"+s,l.clear))},pG}var vG={},yG;function PPe(){if(yG)return vG;yG=1;var e=Np,t=Lp,n=Object.create,r=Object.defineProperties;return t.refCounter=function(i,o,s){var l,c;l=n(null),c=s.async&&t.async||s.promise&&t.promise?"async":"",o.on("set"+c,function(d,f){l[d]=f||1}),o.on("get"+c,function(d){++l[d]}),o.on("delete"+c,function(d){delete l[d]}),o.on("clear"+c,function(){l={}}),r(o.memoized,{deleteRef:e(function(){var d=o.get(arguments);return d===null||!l[d]?null:--l[d]?!1:(o.delete(d),!0)}),getRefCount:e(function(){var d=o.get(arguments);return d===null||!l[d]?0:l[d]})})},vG}var OPe=vZ,MPe=yZ,DPe=cPe,LPe=function(e){var t=OPe(arguments[1]),n;return t.normalizer||(n=t.length=MPe(t.length,e.length,t.async),n!==0&&(t.primitive?n===!1?t.normalizer=uPe():n>1&&(t.normalizer=dPe()(n)):n===!1?t.normalizer=mPe()():n===1?t.normalizer=gPe()():t.normalizer=vPe()(n))),t.async&&yPe(),t.promise&&EPe(),t.dispose&&CPe(),t.maxAge&&APe(),t.max&&IPe(),t.refCounter&&PPe(),DPe(e,t)};const Bp=zs(LPe),NPe=e=>async t=>{const n=new e,r=await t(n);return n.terminate(),r},iv=e=>t=>NPe(e)(n=>(n.postMessage(t),new Promise((r,i)=>{n.onmessage=o=>{r(o.data)},n.onerror=i}))),ov=(e,t={async:!0,length:1})=>Bp(iv(e),t);te.memoize(iv(RRe));te.memoize(iv(IRe));const BPe=te.memoize(iv(PRe)),$Pe=te.memoize(iv(ORe)),DZ=te.memoize(iv(DRe));function vx(e){return e.split(".").pop()}function LZ(e){return e.split(".").shift()}const bG="internal/custom",NF="json",BF=e=>({name:(e==null?void 0:e.id)===bG?`Imported Map - ${e==null?void 0:e.name}`:"Import Map",description:"Internal",id:bG}),FPe=e=>({name:(e==null?void 0:e.type)===NF?`Imported Trace - ${e==null?void 0:e.name}`:"Import Trace",description:"Internal",id:NF}),xG=["json","yaml"];async function zPe(){const e=await Fz({accept:xG.map(t=>`.trace.${t}`),strict:!0});if(e)return{file:e,read:async()=>{if(xG.includes(vx(e.name))){const t=await e.text(),n=await DZ(t);return{...FPe(),format:n==null?void 0:n.format,content:n,name:te.startCase(LZ(e.name)),type:NF}}else throw new Error(`The format (${vx(e.name)}) is unsupported.`)}}}async function jPe(e){const t=await Fz({accept:e.map(({id:n})=>`.${n}`),strict:!0});if(t)return{file:t,read:async()=>{if(te.find(e,{id:vx(t.name)}))return{...BF(),format:vx(t.name),content:await t.text(),name:te.startCase(LZ(t.name))};throw new Error(`The format (${vx(t.name)}) is unsupported.`)}}}const NZ=20*1024*1024,[BZ,UPe]=Jl({},{reduce:(e,t)=>te.omitBy(ik(e,t),te.isUndefined)});function HPe(e){return new Promise(t=>te.delay(t,e))}function Hz(e){const[,t]=BZ();return I.useCallback(async(n,r)=>{t(()=>({[e]:r})),HPe(300);const i=await n();return t(()=>({[e]:void 0})),i},[e,t])}function Wz(e){return`${(e/(1024*1024)).toFixed(2)} MB`}function WPe({onChange:e,value:t}){const n=ml(),r=Op("map"),i=Hz("map"),[o]=Ig(),[{maps:s,formats:l}]=KE();return C.jsx(Rs,{showArrow:!0,icon:C.jsx(WK,{}),label:"Choose Map",value:t==null?void 0:t.id,items:[BF(t),...s.map(c=>{var d;return{...c,description:(d=te.find(o,{url:c.source}))==null?void 0:d.name}})],onChange:async c=>{switch(c){case BF().id:try{const d=await jPe(l);d&&r(async()=>{n("Opening map...");const f=d.file.size>NZ?await i(d.read,`Opening map (${Wz(d.file.size)})`):await d.read();f&&(e==null||e(f))})}catch(d){n(`${d}`)}break;default:e==null||e(te.find(s,{id:c}));break}}})}function GPe({onChange:e,value:t}){const n=ml(),r=Op("specimen"),i=Hz("specimen");return C.jsx(Dd,{icon:C.jsx(WK,{}),onClick:async()=>{try{const o=await zPe();o&&r(async()=>{n("Opening trace...");const s=o.file.size>NZ?await i(o.read,`Opening trace (${Wz(o.file.size)})`):await o.read();s&&(e==null||e(s))})}catch(o){n(`${o}`)}},children:t!=null&&t.id?`Uploaded Trace - ${t.name}`:"Choose File"})}const $Z=({label:e})=>C.jsx(Lt,{variant:"overline",color:"text.secondary",sx:{pt:1},component:"p",children:e}),VPe=({label:e})=>C.jsx(Lt,{variant:"body1",children:e}),a1=({label:e,content:t})=>C.jsxs(gn,{alignItems:"center",children:[C.jsx(VPe,{label:e}),C.jsx(Kr,{flex:1}),t]}),Ak=({variables:e},{x:t,y:n})=>(e==null?void 0:e.x)===t&&(e==null?void 0:e.y)===n,qPe=""+new URL("parseGrid.worker-d5269b43.js",import.meta.url).href;class XPe extends Worker{constructor(){super(qPe,{type:"module"})}}const YPe=ov(XPe),{floor:wG}=Math;function _G(e,t,n){return e>=t&&e({...await YPe({map:e,options:t})}),{normalizer:JSON.stringify}),QPe=e=>{const{width:t,height:n}=e.bounds;return{...e,snap:({x:r,y:i},o=1)=>{const[s,l]=[wG(r+o/2),wG(i+o/2)];if(_G(s,0,t)&&_G(l,0,n))return{x:s,y:l}},nodeAt:r=>{const{x:i,y:o}=r;return o*t+i},pointOf:r=>({x:r%t,y:~~(r/t)}),matchNode:Ak}},JPe=Object.freeze(Object.defineProperty({__proto__:null,hydrate:QPe,parse:KPe},Symbol.toStringTag,{value:"Module"})),ZPe=""+new URL("parseMesh.worker-114081b8.js",import.meta.url).href;class e2e extends Worker{constructor(){super(ZPe,{type:"module"})}}const t2e=ov(e2e),n2e=Bp(async(e="",t)=>await t2e({map:e,options:t}),{normalizer:JSON.stringify}),r2e=e=>({...e,snap:te.identity,nodeAt:te.constant(0),pointOf:te.constant({x:0,y:0}),matchNode:Ak}),i2e=Object.freeze(Object.defineProperty({__proto__:null,hydrate:r2e,parse:n2e},Symbol.toStringTag,{value:"Module"})),o2e=""+new URL("parseNetwork.worker-0345a67d.js",import.meta.url).href;class s2e extends Worker{constructor(){super(o2e,{type:"module"})}}const a2e=ov(s2e),l2e=Bp(async(e="",t)=>await a2e({map:e,options:t}),{normalizer:JSON.stringify}),c2e=e=>({...e,snap:te.identity,nodeAt:te.constant(0),pointOf:te.constant({x:0,y:0}),matchNode:Ak}),u2e=Object.freeze(Object.defineProperty({__proto__:null,hydrate:c2e,parse:l2e},Symbol.toStringTag,{value:"Module"})),d2e=""+new URL("parsePoly.worker-bf1460fa.js",import.meta.url).href;class f2e extends Worker{constructor(){super(d2e,{type:"module"})}}const h2e=ov(f2e),p2e=Bp(async(e="",t)=>await h2e({map:e,options:t}),{normalizer:JSON.stringify}),m2e=e=>({...e,snap:te.identity,nodeAt:te.constant(0),pointOf:te.constant({x:0,y:0}),matchNode:Ak}),g2e=Object.freeze(Object.defineProperty({__proto__:null,hydrate:m2e,parse:p2e},Symbol.toStringTag,{value:"Module"})),Gz={grid:JPe,xy:u2e,mesh:i2e,poly:g2e};function Vz(e=""){return Gz[e]}const Nb="500";function v2e(e){return parseInt(e.replace("#","0x"))}const qz={source:Vu.A400,destination:Wu.A400,updating:Nh[Nb],expanding:gq[Nb],generating:vq[Nb],closing:mq[Nb],end:Gu.A400};te.mapValues(qz,v2e);function l1(e){return(e&&qz[e])??y5[Nb]}function y2e(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function b2e(){return this.eachAfter(y2e)}function x2e(e){var t=this,n,r=[t],i,o,s;do for(n=r.reverse(),r=[];t=n.pop();)if(e(t),i=t.children,i)for(o=0,s=i.length;o=0;--i)n.push(r[i]);return this}function _2e(e){for(var t=this,n=[t],r=[],i,o,s;t=n.pop();)if(r.push(t),i=t.children,i)for(o=0,s=i.length;o=0;)n+=r[i].value;t.value=n})}function E2e(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function C2e(e){for(var t=this,n=T2e(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function T2e(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function k2e(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function A2e(){var e=[];return this.each(function(t){e.push(t)}),e}function R2e(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function I2e(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function Xz(e,t){var n=new c1(e),r=+e.value&&(n.value=e.value),i,o=[n],s,l,c,d;for(t==null&&(t=O2e);i=o.pop();)if(r&&(i.value=+i.data.value),(l=t(i.data))&&(d=l.length))for(i.children=new Array(d),c=d-1;c>=0;--c)o.push(s=i.children[c]=new c1(l[c])),s.parent=i,s.depth=i.depth+1;return n.eachBefore(D2e)}function P2e(){return Xz(this).eachBefore(M2e)}function O2e(e){return e.children}function M2e(e){e.data=e.data.data}function D2e(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function c1(e){this.data=e,this.depth=this.height=0,this.parent=null}c1.prototype=Xz.prototype={constructor:c1,count:b2e,each:x2e,eachAfter:_2e,eachBefore:w2e,sum:S2e,sort:E2e,path:C2e,ancestors:k2e,descendants:A2e,leaves:R2e,links:I2e,copy:P2e};function L2e(e,t){return e.parent===t.parent?1:2}function CN(e){var t=e.children;return t?t[0]:e.t}function TN(e){var t=e.children;return t?t[t.length-1]:e.t}function N2e(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function B2e(e){for(var t=0,n=0,r=e.children,i=r.length,o;--i>=0;)o=r[i],o.z+=t,o.m+=t,t+=o.s+(n+=o.c)}function $2e(e,t,n){return e.a.parent===t.parent?e.a:n}function IS(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}IS.prototype=Object.create(c1.prototype);function F2e(e){for(var t=new IS(e,0),n,r=[t],i,o,s,l;n=r.pop();)if(o=n._.children)for(n.children=new Array(l=o.length),s=l-1;s>=0;--s)r.push(i=n.children[s]=new IS(o[s],s)),i.parent=n;return(t.parent=new IS(null,0)).children=[t],t}function z2e(){var e=L2e,t=1,n=1,r=null;function i(d){var f=F2e(d);if(f.eachAfter(o),f.parent.m=-f.z,f.eachBefore(s),r)d.eachBefore(c);else{var h=d,p=d,g=d;d.eachBefore(function(b){b.xp.x&&(p=b),b.depth>g.depth&&(g=b)});var v=h===p?1:e(h,p)/2,y=v-h.x,S=t/(p.x+v+y),_=n/(g.depth||1);d.eachBefore(function(b){b.x=(b.x+y)*S,b.y=b.depth*_})}return d}function o(d){var f=d.children,h=d.parent.children,p=d.i?h[d.i-1]:null;if(f){B2e(d);var g=(f[0].z+f[f.length-1].z)/2;p?(d.z=p.z+e(d._,p._),d.m=d.z-g):d.z=g}else p&&(d.z=p.z+e(d._,p._));d.parent.A=l(d,p,d.parent.A||h[0])}function s(d){d._.x=d.z+d.parent.m,d.m+=d.parent.m}function l(d,f,h){if(f){for(var p=d,g=d,v=f,y=p.parent.children[0],S=p.m,_=g.m,b=v.m,x=y.m,E;v=TN(v),p=CN(p),v&&p;)y=CN(y),g=TN(g),g.a=d,E=v.z+b-p.z-S+e(v._,p._),E>0&&(N2e($2e(v,d,h),d,E),S+=E,_+=E),b+=v.m,S+=p.m,x+=y.m,_+=g.m;v&&!TN(g)&&(g.t=v,g.m+=b-_),p&&!CN(y)&&(y.t=p,y.m+=S-x,h=d)}return h}function c(d){d.x*=t,d.y=d.depth*n}return i.separation=function(d){return arguments.length?(e=d,i):e},i.size=function(d){return arguments.length?(r=!1,t=+d[0],n=+d[1],i):r?null:[t,n]},i.nodeSize=function(d){return arguments.length?(r=!0,t=+d[0],n=+d[1],i):r?[t,n]:null},i}var $F="http://www.w3.org/1999/xhtml";const SG={svg:"http://www.w3.org/2000/svg",xhtml:$F,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Rk(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),SG.hasOwnProperty(t)?{space:SG[t],local:e}:e}function j2e(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===$F&&t.documentElement.namespaceURI===$F?t.createElement(e):t.createElementNS(n,e)}}function U2e(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function FZ(e){var t=Rk(e);return(t.local?U2e:j2e)(t)}function H2e(){}function Yz(e){return e==null?H2e:function(){return this.querySelector(e)}}function W2e(e){typeof e!="function"&&(e=Yz(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i=x&&(x=b+1);!(A=S[x])&&++x=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function mOe(e){e||(e=gOe);function t(h,p){return h&&p?e(h.__data__,p.__data__):!h-!p}for(var n=this._groups,r=n.length,i=new Array(r),o=0;ot?1:e>=t?0:NaN}function vOe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function yOe(){return Array.from(this)}function bOe(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?IOe:typeof t=="function"?OOe:POe)(e,t,n??"")):Pg(this.node(),e)}function Pg(e,t){return e.style.getPropertyValue(t)||WZ(e).getComputedStyle(e,null).getPropertyValue(t)}function DOe(e){return function(){delete this[e]}}function LOe(e,t){return function(){this[e]=t}}function NOe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function BOe(e,t){return arguments.length>1?this.each((t==null?DOe:typeof t=="function"?NOe:LOe)(e,t)):this.node()[e]}function GZ(e){return e.trim().split(/^|\s+/)}function Kz(e){return e.classList||new VZ(e)}function VZ(e){this._node=e,this._names=GZ(e.getAttribute("class")||"")}VZ.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function qZ(e,t){for(var n=Kz(e),r=-1,i=t.length;++r=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function dMe(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n{}};function Qz(){for(var e=0,t=arguments.length,n={},r;e=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}PS.prototype=Qz.prototype={constructor:PS,on:function(e,t){var n=this._,r=wMe(e+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?v_(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?v_(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=TMe.exec(e))?new Fo(t[1],t[2],t[3],1):(t=kMe.exec(e))?new Fo(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=AMe.exec(e))?v_(t[1],t[2],t[3],t[4]):(t=RMe.exec(e))?v_(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=IMe.exec(e))?PG(t[1],t[2]/100,t[3]/100,1):(t=PMe.exec(e))?PG(t[1],t[2]/100,t[3]/100,t[4]):CG.hasOwnProperty(e)?AG(CG[e]):e==="transparent"?new Fo(NaN,NaN,NaN,0):null}function AG(e){return new Fo(e>>16&255,e>>8&255,e&255,1)}function v_(e,t,n,r){return r<=0&&(e=t=n=NaN),new Fo(e,t,n,r)}function DMe(e){return e instanceof uw||(e=f1(e)),e?(e=e.rgb(),new Fo(e.r,e.g,e.b,e.opacity)):new Fo}function jF(e,t,n,r){return arguments.length===1?DMe(e):new Fo(e,t,n,r??1)}function Fo(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Jz(Fo,jF,QZ(uw,{brighter(e){return e=e==null?JE:Math.pow(JE,e),new Fo(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?u1:Math.pow(u1,e),new Fo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Fo(Zh(this.r),Zh(this.g),Zh(this.b),ZE(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:RG,formatHex:RG,formatHex8:LMe,formatRgb:IG,toString:IG}));function RG(){return`#${Wh(this.r)}${Wh(this.g)}${Wh(this.b)}`}function LMe(){return`#${Wh(this.r)}${Wh(this.g)}${Wh(this.b)}${Wh((isNaN(this.opacity)?1:this.opacity)*255)}`}function IG(){const e=ZE(this.opacity);return`${e===1?"rgb(":"rgba("}${Zh(this.r)}, ${Zh(this.g)}, ${Zh(this.b)}${e===1?")":`, ${e})`}`}function ZE(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Wh(e){return e=Zh(e),(e<16?"0":"")+e.toString(16)}function PG(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Za(e,t,n,r)}function JZ(e){if(e instanceof Za)return new Za(e.h,e.s,e.l,e.opacity);if(e instanceof uw||(e=f1(e)),!e)return new Za;if(e instanceof Za)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,l=o-i,c=(o+i)/2;return l?(t===o?s=(n-r)/l+(n0&&c<1?0:s,new Za(s,l,c,e.opacity)}function NMe(e,t,n,r){return arguments.length===1?JZ(e):new Za(e,t,n,r??1)}function Za(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Jz(Za,NMe,QZ(uw,{brighter(e){return e=e==null?JE:Math.pow(JE,e),new Za(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?u1:Math.pow(u1,e),new Za(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Fo(kN(e>=240?e-240:e+120,i,r),kN(e,i,r),kN(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Za(OG(this.h),y_(this.s),y_(this.l),ZE(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=ZE(this.opacity);return`${e===1?"hsl(":"hsla("}${OG(this.h)}, ${y_(this.s)*100}%, ${y_(this.l)*100}%${e===1?")":`, ${e})`}`}}));function OG(e){return e=(e||0)%360,e<0?e+360:e}function y_(e){return Math.max(0,Math.min(1,e||0))}function kN(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const ZZ=e=>()=>e;function BMe(e,t){return function(n){return e+n*t}}function $Me(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function FMe(e){return(e=+e)==1?eee:function(t,n){return n-t?$Me(t,n,e):ZZ(isNaN(t)?n:t)}}function eee(e,t){var n=t-e;return n?BMe(e,n):ZZ(isNaN(e)?t:e)}const MG=function e(t){var n=FMe(t);function r(i,o){var s=n((i=jF(i)).r,(o=jF(o)).r),l=n(i.g,o.g),c=n(i.b,o.b),d=eee(i.opacity,o.opacity);return function(f){return i.r=s(f),i.g=l(f),i.b=c(f),i.opacity=d(f),i+""}}return r.gamma=e,r}(1);function Qu(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var UF=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,AN=new RegExp(UF.source,"g");function zMe(e){return function(){return e}}function jMe(e){return function(t){return e(t)+""}}function UMe(e,t){var n=UF.lastIndex=AN.lastIndex=0,r,i,o,s=-1,l=[],c=[];for(e=e+"",t=t+"";(r=UF.exec(e))&&(i=AN.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),l[s]?l[s]+=o:l[++s]=o),(r=r[0])===(i=i[0])?l[s]?l[s]+=i:l[++s]=i:(l[++s]=null,c.push({i:s,x:Qu(r,i)})),n=AN.lastIndex;return n180?f+=360:f-d>180&&(d+=360),p.push({i:h.push(i(h)+"rotate(",null,r)-2,x:Qu(d,f)})):f&&h.push(i(h)+"rotate("+f+r)}function l(d,f,h,p){d!==f?p.push({i:h.push(i(h)+"skewX(",null,r)-2,x:Qu(d,f)}):f&&h.push(i(h)+"skewX("+f+r)}function c(d,f,h,p,g,v){if(d!==h||f!==p){var y=g.push(i(g)+"scale(",null,",",null,")");v.push({i:y-4,x:Qu(d,h)},{i:y-2,x:Qu(f,p)})}else(h!==1||p!==1)&&g.push(i(g)+"scale("+h+","+p+")")}return function(d,f){var h=[],p=[];return d=e(d),f=e(f),o(d.translateX,d.translateY,f.translateX,f.translateY,h,p),s(d.rotate,f.rotate,h,p),l(d.skewX,f.skewX,h,p),c(d.scaleX,d.scaleY,f.scaleX,f.scaleY,h,p),d=f=null,function(g){for(var v=-1,y=p.length,S;++v=0&&e._call.call(void 0,t),e=e._next;--Og}function NG(){xp=(tC=h1.now())+Ik,Og=Bb=0;try{JMe()}finally{Og=0,eDe(),xp=0}}function ZMe(){var e=h1.now(),t=e-tC;t>ree&&(Ik-=t,tC=e)}function eDe(){for(var e,t=eC,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:eC=n);$b=e,WF(r)}function WF(e){if(!Og){Bb&&(Bb=clearTimeout(Bb));var t=e-xp;t>24?(e<1/0&&(Bb=setTimeout(NG,e-h1.now()-Ik)),fb&&(fb=clearInterval(fb))):(fb||(tC=h1.now(),fb=setInterval(ZMe,ree)),Og=1,iee(NG))}}function BG(e,t,n){var r=new nC;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var tDe=Qz("start","end","cancel","interrupt"),nDe=[],see=0,$G=1,GF=2,OS=3,FG=4,VF=5,MS=6;function Pk(e,t,n,r,i,o){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;rDe(e,n,{name:t,index:r,group:i,on:tDe,tween:nDe,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:see})}function ej(e,t){var n=vl(e,t);if(n.state>see)throw new Error("too late; already scheduled");return n}function ec(e,t){var n=vl(e,t);if(n.state>OS)throw new Error("too late; already running");return n}function vl(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function rDe(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=oee(o,0,n.time);function o(d){n.state=$G,n.timer.restart(s,n.delay,n.time),n.delay<=d&&s(d-n.delay)}function s(d){var f,h,p,g;if(n.state!==$G)return c();for(f in r)if(g=r[f],g.name===n.name){if(g.state===OS)return BG(s);g.state===FG?(g.state=MS,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete r[f]):+fGF&&r.state=0&&(t=t.slice(0,n)),!t||t==="start"})}function MDe(e,t,n){var r,i,o=ODe(t)?ej:ec;return function(){var s=o(this,e),l=s.on;l!==r&&(i=(r=l).copy()).on(t,n),s.on=i}}function DDe(e,t){var n=this._id;return arguments.length<2?vl(this.node(),n).on.on(e):this.each(MDe(n,e,t))}function LDe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function NDe(){return this.on("end.remove",LDe(this._id))}function BDe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Yz(e));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s()=>e;function lLe(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function lu(e,t,n){this.k=e,this.x=t,this.y=n}lu.prototype={constructor:lu,scale:function(e){return e===1?this:new lu(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new lu(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var rC=new lu(1,0,0);lu.prototype;function RN(e){e.stopImmediatePropagation()}function hb(e){e.preventDefault(),e.stopImmediatePropagation()}function cLe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function uLe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function zG(){return this.__zoom||rC}function dLe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function fLe(){return navigator.maxTouchPoints||"ontouchstart"in this}function hLe(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function IN(){var e=cLe,t=uLe,n=hLe,r=dLe,i=fLe,o=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,c=KMe,d=Qz("start","zoom","end"),f,h,p,g=500,v=150,y=0,S=10;function _(D){D.property("__zoom",zG).on("wheel.zoom",O,{passive:!1}).on("mousedown.zoom",L).on("dblclick.zoom",N).filter(i).on("touchstart.zoom",H).on("touchmove.zoom",W).on("touchend.zoom touchcancel.zoom",z).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}_.transform=function(D,F,j,V){var G=D.selection?D.selection():D;G.property("__zoom",zG),D!==G?A(D,F,j,V):G.interrupt().each(function(){R(this,arguments).event(V).start().zoom(null,typeof F=="function"?F.apply(this,arguments):F).end()})},_.scaleBy=function(D,F,j,V){_.scaleTo(D,function(){var G=this.__zoom.k,K=typeof F=="function"?F.apply(this,arguments):F;return G*K},j,V)},_.scaleTo=function(D,F,j,V){_.transform(D,function(){var G=t.apply(this,arguments),K=this.__zoom,Y=j==null?E(G):typeof j=="function"?j.apply(this,arguments):j,J=K.invert(Y),ie=typeof F=="function"?F.apply(this,arguments):F;return n(x(b(K,ie),Y,J),G,s)},j,V)},_.translateBy=function(D,F,j,V){_.transform(D,function(){return n(this.__zoom.translate(typeof F=="function"?F.apply(this,arguments):F,typeof j=="function"?j.apply(this,arguments):j),t.apply(this,arguments),s)},null,V)},_.translateTo=function(D,F,j,V,G){_.transform(D,function(){var K=t.apply(this,arguments),Y=this.__zoom,J=V==null?E(K):typeof V=="function"?V.apply(this,arguments):V;return n(rC.translate(J[0],J[1]).scale(Y.k).translate(typeof F=="function"?-F.apply(this,arguments):-F,typeof j=="function"?-j.apply(this,arguments):-j),K,s)},V,G)};function b(D,F){return F=Math.max(o[0],Math.min(o[1],F)),F===D.k?D:new lu(F,D.x,D.y)}function x(D,F,j){var V=F[0]-j[0]*D.k,G=F[1]-j[1]*D.k;return V===D.x&&G===D.y?D:new lu(D.k,V,G)}function E(D){return[(+D[0][0]+ +D[1][0])/2,(+D[0][1]+ +D[1][1])/2]}function A(D,F,j,V){D.on("start.zoom",function(){R(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(V).end()}).tween("zoom",function(){var G=this,K=arguments,Y=R(G,K).event(V),J=t.apply(G,K),ie=j==null?E(J):typeof j=="function"?j.apply(G,K):j,ce=Math.max(J[1][0]-J[0][0],J[1][1]-J[0][1]),ue=G.__zoom,se=typeof F=="function"?F.apply(G,K):F,Q=c(ue.invert(ie).concat(ce/ue.k),se.invert(ie).concat(ce/se.k));return function(ae){if(ae===1)ae=se;else{var le=Q(ae),he=ce/le[2];ae=new lu(he,ie[0]-le[0]*he,ie[1]-le[1]*he)}Y.zoom(null,ae)}})}function R(D,F,j){return!j&&D.__zooming||new k(D,F)}function k(D,F){this.that=D,this.args=F,this.active=0,this.sourceEvent=null,this.extent=t.apply(D,F),this.taps=0}k.prototype={event:function(D){return D&&(this.sourceEvent=D),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(D,F){return this.mouse&&D!=="mouse"&&(this.mouse[1]=F.invert(this.mouse[0])),this.touch0&&D!=="touch"&&(this.touch0[1]=F.invert(this.touch0[0])),this.touch1&&D!=="touch"&&(this.touch1[1]=F.invert(this.touch1[0])),this.that.__zoom=F,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(D){var F=Eo(this.that).datum();d.call(D,this.that,new lLe(D,{sourceEvent:this.sourceEvent,target:_,type:D,transform:this.that.__zoom,dispatch:d}),F)}};function O(D,...F){if(!e.apply(this,arguments))return;var j=R(this,F).event(D),V=this.__zoom,G=Math.max(o[0],Math.min(o[1],V.k*Math.pow(2,r.apply(this,arguments)))),K=yh(D);if(j.wheel)(j.mouse[0][0]!==K[0]||j.mouse[0][1]!==K[1])&&(j.mouse[1]=V.invert(j.mouse[0]=K)),clearTimeout(j.wheel);else{if(V.k===G)return;j.mouse=[K,V.invert(K)],DS(this),j.start()}hb(D),j.wheel=setTimeout(Y,v),j.zoom("mouse",n(x(b(V,G),j.mouse[0],j.mouse[1]),j.extent,s));function Y(){j.wheel=null,j.end()}}function L(D,...F){if(p||!e.apply(this,arguments))return;var j=D.currentTarget,V=R(this,F,!0).event(D),G=Eo(D.view).on("mousemove.zoom",ie,!0).on("mouseup.zoom",ce,!0),K=yh(D,j),Y=D.clientX,J=D.clientY;SMe(D.view),RN(D),V.mouse=[K,this.__zoom.invert(K)],DS(this),V.start();function ie(ue){if(hb(ue),!V.moved){var se=ue.clientX-Y,Q=ue.clientY-J;V.moved=se*se+Q*Q>y}V.event(ue).zoom("mouse",n(x(V.that.__zoom,V.mouse[0]=yh(ue,j),V.mouse[1]),V.extent,s))}function ce(ue){G.on("mousemove.zoom mouseup.zoom",null),EMe(ue.view,V.moved),hb(ue),V.event(ue).end()}}function N(D,...F){if(e.apply(this,arguments)){var j=this.__zoom,V=yh(D.changedTouches?D.changedTouches[0]:D,this),G=j.invert(V),K=j.k*(D.shiftKey?.5:2),Y=n(x(b(j,K),V,G),t.apply(this,F),s);hb(D),l>0?Eo(this).transition().duration(l).call(A,Y,V,D):Eo(this).call(_.transform,Y,V,D)}}function H(D,...F){if(e.apply(this,arguments)){var j=D.touches,V=j.length,G=R(this,F,D.changedTouches.length===V).event(D),K,Y,J,ie;for(RN(D),Y=0;Y"u"&&(g=!0),typeof v>"u"&&(v=1/0);function E(A,R){if(A===null)return null;if(R===0)return A;var k,O;if(typeof A!="object")return A;if(n(A,r))k=new r;else if(n(A,i))k=new i;else if(n(A,o))k=new o(function(V,G){A.then(function(K){V(E(K,R-1))},function(K){G(E(K,R-1))})});else if(s.__isArray(A))k=[];else if(s.__isRegExp(A))k=new RegExp(A.source,h(A)),A.lastIndex&&(k.lastIndex=A.lastIndex);else if(s.__isDate(A))k=new Date(A.getTime());else{if(x&&Buffer.isBuffer(A))return Buffer.allocUnsafe?k=Buffer.allocUnsafe(A.length):k=new Buffer(A.length),A.copy(k),k;n(A,Error)?k=Object.create(A):typeof y>"u"?(O=Object.getPrototypeOf(A),k=Object.create(O)):(k=Object.create(y),O=y)}if(g){var L=_.indexOf(A);if(L!=-1)return b[L];_.push(A),b.push(k)}n(A,r)&&A.forEach(function(V,G){var K=E(G,R-1),Y=E(V,R-1);k.set(K,Y)}),n(A,i)&&A.forEach(function(V){var G=E(V,R-1);k.add(G)});for(var N in A){var H;O&&(H=Object.getOwnPropertyDescriptor(O,N)),!(H&&H.set==null)&&(k[N]=E(A[N],R-1))}if(Object.getOwnPropertySymbols)for(var W=Object.getOwnPropertySymbols(A),N=0;N1&&arguments[1]!==void 0?arguments[1]:0,n=(Li[e[t+0]]+Li[e[t+1]]+Li[e[t+2]]+Li[e[t+3]]+"-"+Li[e[t+4]]+Li[e[t+5]]+"-"+Li[e[t+6]]+Li[e[t+7]]+"-"+Li[e[t+8]]+Li[e[t+9]]+"-"+Li[e[t+10]]+Li[e[t+11]]+Li[e[t+12]]+Li[e[t+13]]+Li[e[t+14]]+Li[e[t+15]]).toLowerCase();if(!yLe(n))throw TypeError("Stringified UUID is invalid");return n}function ON(e,t,n){e=e||{};var r=e.random||(e.rng||gLe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return bLe(r)}var qF={exports:{}},XF={exports:{}},xLe=function(){for(var t=arguments.length,n=[],r=0;re.enableLegacyTransitions?de.createElement(HLe.TransitionGroup,{component:e.component,className:e.className,transform:e.transform},e.children):de.createElement("g",{className:e.className,transform:e.transform},e.children),GLe=15,jG={title:{textAnchor:"start",x:40},attribute:{x:40,dy:"1.2em"}},VLe=({nodeDatum:e,toggleNode:t,onNodeClick:n,onNodeMouseOver:r,onNodeMouseOut:i})=>de.createElement(de.Fragment,null,de.createElement("circle",{r:GLe,onClick:o=>{t(),n(o)},onMouseOver:r,onMouseOut:i}),de.createElement("g",{className:"rd3t-label"},de.createElement("text",Object.assign({className:"rd3t-label__title"},jG.title),e.name),de.createElement("text",{className:"rd3t-label__attributes"},e.attributes&&Object.entries(e.attributes).map(([o,s],l)=>de.createElement("tspan",Object.assign({key:`${o}-${l}`},jG.attribute),o,": ",typeof s=="boolean"?s.toString():s)))));let qLe=class extends de.Component{constructor(){super(...arguments),this.nodeRef=null,this.state={transform:this.setTransform(this.props.position,this.props.parent,this.props.orientation,!0),initialStyle:{opacity:0},wasClicked:!1},this.shouldNodeTransform=(t,n,r,i)=>n.subscriptions!==t.subscriptions||n.position.x!==t.position.x||n.position.y!==t.position.y||n.orientation!==t.orientation||i.wasClicked!==r.wasClicked,this.renderNodeElement=()=>{const{data:t,hierarchyPointNode:n,renderCustomNodeElement:r}=this.props,i=typeof r=="function"?r:VLe,o={hierarchyPointNode:n,nodeDatum:t,toggleNode:this.handleNodeToggle,onNodeClick:this.handleOnClick,onNodeMouseOver:this.handleOnMouseOver,onNodeMouseOut:this.handleOnMouseOut,addChildren:this.handleAddChildren};return i(o)},this.handleNodeToggle=()=>{this.setState({wasClicked:!0}),this.props.onNodeToggle(this.props.data.__rd3t.id)},this.handleOnClick=t=>{this.setState({wasClicked:!0}),this.props.onNodeClick(this.props.hierarchyPointNode,t)},this.handleOnMouseOver=t=>{this.props.onNodeMouseOver(this.props.hierarchyPointNode,t)},this.handleOnMouseOut=t=>{this.props.onNodeMouseOut(this.props.hierarchyPointNode,t)},this.handleAddChildren=t=>{this.props.handleAddChildrenToNode(this.props.data.__rd3t.id,t)}}componentDidMount(){this.commitTransform()}componentDidUpdate(){this.state.wasClicked&&(this.props.centerNode(this.props.hierarchyPointNode),this.setState({wasClicked:!1})),this.commitTransform()}shouldComponentUpdate(t,n){return this.shouldNodeTransform(this.props,t,this.state,n)}setTransform(t,n,r,i=!1){if(i){const o=n!=null,s=o?n.x:0,l=o?n.y:0;return r==="horizontal"?`translate(${l},${s})`:`translate(${s},${l})`}return r==="horizontal"?`translate(${t.y},${t.x})`:`translate(${t.x},${t.y})`}applyTransform(t,n,r=1,i=()=>{}){this.props.enableLegacyTransitions?Eo(this.nodeRef).transition().duration(n).attr("transform",t).style("opacity",r).on("end",i):(Eo(this.nodeRef).attr("transform",t).style("opacity",r),i())}commitTransform(){const{orientation:t,transitionDuration:n,position:r,parent:i}=this.props,o=this.setTransform(r,i,t);this.applyTransform(o,n)}componentWillLeave(t){const{orientation:n,transitionDuration:r,position:i,parent:o}=this.props,s=this.setTransform(i,o,n,!0);this.applyTransform(s,r,0,t)}render(){const{data:t,nodeClassName:n}=this.props;return de.createElement("g",{id:t.__rd3t.id,ref:r=>{this.nodeRef=r},style:this.state.initialStyle,className:[t.children&&t.children.length>0?"rd3t-node":"rd3t-leaf-node",n].join(" ").trim(),transform:this.state.transform},this.renderNodeElement())}};var KF=Math.PI,QF=2*KF,Rh=1e-6,XLe=QF-Rh;function JF(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function yee(){return new JF}JF.prototype=yee.prototype={constructor:JF,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,s=this._y1,l=n-e,c=r-t,d=o-e,f=s-t,h=d*d+f*f;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>Rh)if(!(Math.abs(f*l-c*d)>Rh)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var p=n-o,g=r-s,v=l*l+c*c,y=p*p+g*g,S=Math.sqrt(v),_=Math.sqrt(h),b=i*Math.tan((KF-Math.acos((v+h-y)/(2*S*_)))/2),x=b/_,E=b/S;Math.abs(x-1)>Rh&&(this._+="L"+(e+x*d)+","+(t+x*f)),this._+="A"+i+","+i+",0,0,"+ +(f*p>d*g)+","+(this._x1=e+E*l)+","+(this._y1=t+E*c)}},arc:function(e,t,n,r,i,o){e=+e,t=+t,n=+n,o=!!o;var s=n*Math.cos(r),l=n*Math.sin(r),c=e+s,d=t+l,f=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+c+","+d:(Math.abs(this._x1-c)>Rh||Math.abs(this._y1-d)>Rh)&&(this._+="L"+c+","+d),n&&(h<0&&(h=h%QF+QF),h>XLe?this._+="A"+n+","+n+",0,1,"+f+","+(e-s)+","+(t-l)+"A"+n+","+n+",0,1,"+f+","+(this._x1=c)+","+(this._y1=d):h>Rh&&(this._+="A"+n+","+n+",0,"+ +(h>=KF)+","+f+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function UG(e){return function(){return e}}function YLe(e){return e[0]}function KLe(e){return e[1]}var QLe=Array.prototype.slice;function JLe(e){return e.source}function ZLe(e){return e.target}function bee(e){var t=JLe,n=ZLe,r=YLe,i=KLe,o=null;function s(){var l,c=QLe.call(arguments),d=t.apply(this,c),f=n.apply(this,c);if(o||(o=l=yee()),e(o,+r.apply(this,(c[0]=d,c)),+i.apply(this,c),+r.apply(this,(c[0]=f,c)),+i.apply(this,c)),l)return o=null,l+""||null}return s.source=function(l){return arguments.length?(t=l,s):t},s.target=function(l){return arguments.length?(n=l,s):n},s.x=function(l){return arguments.length?(r=typeof l=="function"?l:UG(+l),s):r},s.y=function(l){return arguments.length?(i=typeof l=="function"?l:UG(+l),s):i},s.context=function(l){return arguments.length?(o=l??null,s):o},s}function eNe(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function tNe(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function nNe(){return bee(eNe)}function rNe(){return bee(tNe)}class iNe extends de.PureComponent{constructor(){super(...arguments),this.linkRef=null,this.state={initialStyle:{opacity:0}},this.handleOnClick=t=>{this.props.onClick(this.props.linkData.source,this.props.linkData.target,t)},this.handleOnMouseOver=t=>{this.props.onMouseOver(this.props.linkData.source,this.props.linkData.target,t)},this.handleOnMouseOut=t=>{this.props.onMouseOut(this.props.linkData.source,this.props.linkData.target,t)}}componentDidMount(){this.applyOpacity(1,this.props.transitionDuration)}componentWillLeave(t){this.applyOpacity(0,this.props.transitionDuration,t)}applyOpacity(t,n,r=()=>{}){this.props.enableLegacyTransitions?Eo(this.linkRef).transition().duration(n).style("opacity",t).on("end",r):(Eo(this.linkRef).style("opacity",t),r())}drawStepPath(t,n){const{source:r,target:i}=t,o=i.y-r.y;return n==="horizontal"?`M${r.y},${r.x} H${r.y+o/2} V${i.x} H${i.y}`:`M${r.x},${r.y} V${r.y+o/2} H${i.x} V${i.y}`}drawDiagonalPath(t,n){const{source:r,target:i}=t;return n==="horizontal"?nNe()({source:[r.y,r.x],target:[i.y,i.x]}):rNe()({source:[r.x,r.y],target:[i.x,i.y]})}drawStraightPath(t,n){const{source:r,target:i}=t;return n==="horizontal"?`M${r.y},${r.x}L${i.y},${i.x}`:`M${r.x},${r.y}L${i.x},${i.y}`}drawElbowPath(t,n){return n==="horizontal"?`M${t.source.y},${t.source.x}V${t.target.x}H${t.target.y}`:`M${t.source.x},${t.source.y}V${t.target.y}H${t.target.x}`}drawPath(){const{linkData:t,orientation:n,pathFunc:r}=this.props;return typeof r=="function"?r(t,n):r==="elbow"?this.drawElbowPath(t,n):r==="straight"?this.drawStraightPath(t,n):r==="step"?this.drawStepPath(t,n):this.drawDiagonalPath(t,n)}getClassNames(){const{linkData:t,orientation:n,pathClassFunc:r}=this.props,i=["rd3t-link"];return typeof r=="function"&&i.push(r(t,n)),i.join(" ").trim()}render(){const{linkData:t}=this.props;return de.createElement("path",{ref:n=>{this.linkRef=n},style:Object.assign({},this.state.initialStyle),className:this.getClassNames(),d:this.drawPath(),onClick:this.handleOnClick,onMouseOver:this.handleOnMouseOver,onMouseOut:this.handleOnMouseOut,"data-source-id":t.source.id,"data-target-id":t.target.id})}}const oNe=` +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=dee,t.componentWillReceiveProps=fee),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=hee;var l=t.componentDidUpdate;t.componentDidUpdate=function(d,f,h){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:h;l.call(this,d,f,p)}}return e}const ELe=Object.freeze(Object.defineProperty({__proto__:null,polyfill:SLe},Symbol.toStringTag,{value:"Module"})),CLe=iq(ELe);var Ok={};Ok.__esModule=!0;Ok.getChildMapping=kLe;Ok.mergeChildMappings=ALe;var TLe=I;function kLe(e){if(!e)return e;var t={};return TLe.Children.map(e,function(n){return n}).forEach(function(n){t[n.key]=n}),t}function ALe(e,t){e=e||{},t=t||{};function n(f){return t.hasOwnProperty(f)?t[f]:e[f]}var r={},i=[];for(var o in e)t.hasOwnProperty(o)?i.length&&(r[o]=i,i=[]):i.push(o);var s=void 0,l={};for(var c in t){if(r.hasOwnProperty(c))for(s=0;se.enableLegacyTransitions?de.createElement(VLe.TransitionGroup,{component:e.component,className:e.className,transform:e.transform},e.children):de.createElement("g",{className:e.className,transform:e.transform},e.children),XLe=15,GG={title:{textAnchor:"start",x:40},attribute:{x:40,dy:"1.2em"}},YLe=({nodeDatum:e,toggleNode:t,onNodeClick:n,onNodeMouseOver:r,onNodeMouseOut:i})=>de.createElement(de.Fragment,null,de.createElement("circle",{r:XLe,onClick:o=>{t(),n(o)},onMouseOver:r,onMouseOut:i}),de.createElement("g",{className:"rd3t-label"},de.createElement("text",Object.assign({className:"rd3t-label__title"},GG.title),e.name),de.createElement("text",{className:"rd3t-label__attributes"},e.attributes&&Object.entries(e.attributes).map(([o,s],l)=>de.createElement("tspan",Object.assign({key:`${o}-${l}`},GG.attribute),o,": ",typeof s=="boolean"?s.toString():s)))));let KLe=class extends de.Component{constructor(){super(...arguments),this.nodeRef=null,this.state={transform:this.setTransform(this.props.position,this.props.parent,this.props.orientation,!0),initialStyle:{opacity:0},wasClicked:!1},this.shouldNodeTransform=(t,n,r,i)=>n.subscriptions!==t.subscriptions||n.position.x!==t.position.x||n.position.y!==t.position.y||n.orientation!==t.orientation||i.wasClicked!==r.wasClicked,this.renderNodeElement=()=>{const{data:t,hierarchyPointNode:n,renderCustomNodeElement:r}=this.props,i=typeof r=="function"?r:YLe,o={hierarchyPointNode:n,nodeDatum:t,toggleNode:this.handleNodeToggle,onNodeClick:this.handleOnClick,onNodeMouseOver:this.handleOnMouseOver,onNodeMouseOut:this.handleOnMouseOut,addChildren:this.handleAddChildren};return i(o)},this.handleNodeToggle=()=>{this.setState({wasClicked:!0}),this.props.onNodeToggle(this.props.data.__rd3t.id)},this.handleOnClick=t=>{this.setState({wasClicked:!0}),this.props.onNodeClick(this.props.hierarchyPointNode,t)},this.handleOnMouseOver=t=>{this.props.onNodeMouseOver(this.props.hierarchyPointNode,t)},this.handleOnMouseOut=t=>{this.props.onNodeMouseOut(this.props.hierarchyPointNode,t)},this.handleAddChildren=t=>{this.props.handleAddChildrenToNode(this.props.data.__rd3t.id,t)}}componentDidMount(){this.commitTransform()}componentDidUpdate(){this.state.wasClicked&&(this.props.centerNode(this.props.hierarchyPointNode),this.setState({wasClicked:!1})),this.commitTransform()}shouldComponentUpdate(t,n){return this.shouldNodeTransform(this.props,t,this.state,n)}setTransform(t,n,r,i=!1){if(i){const o=n!=null,s=o?n.x:0,l=o?n.y:0;return r==="horizontal"?`translate(${l},${s})`:`translate(${s},${l})`}return r==="horizontal"?`translate(${t.y},${t.x})`:`translate(${t.x},${t.y})`}applyTransform(t,n,r=1,i=()=>{}){this.props.enableLegacyTransitions?Eo(this.nodeRef).transition().duration(n).attr("transform",t).style("opacity",r).on("end",i):(Eo(this.nodeRef).attr("transform",t).style("opacity",r),i())}commitTransform(){const{orientation:t,transitionDuration:n,position:r,parent:i}=this.props,o=this.setTransform(r,i,t);this.applyTransform(o,n)}componentWillLeave(t){const{orientation:n,transitionDuration:r,position:i,parent:o}=this.props,s=this.setTransform(i,o,n,!0);this.applyTransform(s,r,0,t)}render(){const{data:t,nodeClassName:n}=this.props;return de.createElement("g",{id:t.__rd3t.id,ref:r=>{this.nodeRef=r},style:this.state.initialStyle,className:[t.children&&t.children.length>0?"rd3t-node":"rd3t-leaf-node",n].join(" ").trim(),transform:this.state.transform},this.renderNodeElement())}};var JF=Math.PI,ZF=2*JF,Ph=1e-6,QLe=ZF-Ph;function e3(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function See(){return new e3}e3.prototype=See.prototype={constructor:e3,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,s=this._y1,l=n-e,c=r-t,d=o-e,f=s-t,h=d*d+f*f;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>Ph)if(!(Math.abs(f*l-c*d)>Ph)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var p=n-o,g=r-s,v=l*l+c*c,y=p*p+g*g,S=Math.sqrt(v),_=Math.sqrt(h),b=i*Math.tan((JF-Math.acos((v+h-y)/(2*S*_)))/2),x=b/_,E=b/S;Math.abs(x-1)>Ph&&(this._+="L"+(e+x*d)+","+(t+x*f)),this._+="A"+i+","+i+",0,0,"+ +(f*p>d*g)+","+(this._x1=e+E*l)+","+(this._y1=t+E*c)}},arc:function(e,t,n,r,i,o){e=+e,t=+t,n=+n,o=!!o;var s=n*Math.cos(r),l=n*Math.sin(r),c=e+s,d=t+l,f=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+c+","+d:(Math.abs(this._x1-c)>Ph||Math.abs(this._y1-d)>Ph)&&(this._+="L"+c+","+d),n&&(h<0&&(h=h%ZF+ZF),h>QLe?this._+="A"+n+","+n+",0,1,"+f+","+(e-s)+","+(t-l)+"A"+n+","+n+",0,1,"+f+","+(this._x1=c)+","+(this._y1=d):h>Ph&&(this._+="A"+n+","+n+",0,"+ +(h>=JF)+","+f+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function VG(e){return function(){return e}}function JLe(e){return e[0]}function ZLe(e){return e[1]}var eNe=Array.prototype.slice;function tNe(e){return e.source}function nNe(e){return e.target}function Eee(e){var t=tNe,n=nNe,r=JLe,i=ZLe,o=null;function s(){var l,c=eNe.call(arguments),d=t.apply(this,c),f=n.apply(this,c);if(o||(o=l=See()),e(o,+r.apply(this,(c[0]=d,c)),+i.apply(this,c),+r.apply(this,(c[0]=f,c)),+i.apply(this,c)),l)return o=null,l+""||null}return s.source=function(l){return arguments.length?(t=l,s):t},s.target=function(l){return arguments.length?(n=l,s):n},s.x=function(l){return arguments.length?(r=typeof l=="function"?l:VG(+l),s):r},s.y=function(l){return arguments.length?(i=typeof l=="function"?l:VG(+l),s):i},s.context=function(l){return arguments.length?(o=l??null,s):o},s}function rNe(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function iNe(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function oNe(){return Eee(rNe)}function sNe(){return Eee(iNe)}class aNe extends de.PureComponent{constructor(){super(...arguments),this.linkRef=null,this.state={initialStyle:{opacity:0}},this.handleOnClick=t=>{this.props.onClick(this.props.linkData.source,this.props.linkData.target,t)},this.handleOnMouseOver=t=>{this.props.onMouseOver(this.props.linkData.source,this.props.linkData.target,t)},this.handleOnMouseOut=t=>{this.props.onMouseOut(this.props.linkData.source,this.props.linkData.target,t)}}componentDidMount(){this.applyOpacity(1,this.props.transitionDuration)}componentWillLeave(t){this.applyOpacity(0,this.props.transitionDuration,t)}applyOpacity(t,n,r=()=>{}){this.props.enableLegacyTransitions?Eo(this.linkRef).transition().duration(n).style("opacity",t).on("end",r):(Eo(this.linkRef).style("opacity",t),r())}drawStepPath(t,n){const{source:r,target:i}=t,o=i.y-r.y;return n==="horizontal"?`M${r.y},${r.x} H${r.y+o/2} V${i.x} H${i.y}`:`M${r.x},${r.y} V${r.y+o/2} H${i.x} V${i.y}`}drawDiagonalPath(t,n){const{source:r,target:i}=t;return n==="horizontal"?oNe()({source:[r.y,r.x],target:[i.y,i.x]}):sNe()({source:[r.x,r.y],target:[i.x,i.y]})}drawStraightPath(t,n){const{source:r,target:i}=t;return n==="horizontal"?`M${r.y},${r.x}L${i.y},${i.x}`:`M${r.x},${r.y}L${i.x},${i.y}`}drawElbowPath(t,n){return n==="horizontal"?`M${t.source.y},${t.source.x}V${t.target.x}H${t.target.y}`:`M${t.source.x},${t.source.y}V${t.target.y}H${t.target.x}`}drawPath(){const{linkData:t,orientation:n,pathFunc:r}=this.props;return typeof r=="function"?r(t,n):r==="elbow"?this.drawElbowPath(t,n):r==="straight"?this.drawStraightPath(t,n):r==="step"?this.drawStepPath(t,n):this.drawDiagonalPath(t,n)}getClassNames(){const{linkData:t,orientation:n,pathClassFunc:r}=this.props,i=["rd3t-link"];return typeof r=="function"&&i.push(r(t,n)),i.join(" ").trim()}render(){const{linkData:t}=this.props;return de.createElement("path",{ref:n=>{this.linkRef=n},style:Object.assign({},this.state.initialStyle),className:this.getClassNames(),d:this.drawPath(),onClick:this.handleOnClick,onMouseOver:this.handleOnMouseOver,onMouseOut:this.handleOnMouseOut,"data-source-id":t.source.id,"data-target-id":t.target.id})}}const lNe=` /* Tree */ .rd3t-tree-container { width: 100%; @@ -505,76 +505,76 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat fill: none; stroke: #000; } -`;let xee=class $a extends de.Component{constructor(){super(...arguments),this.state={dataRef:this.props.data,data:$a.assignInternalProperties(yo(this.props.data)),d3:$a.calculateD3Geometry(this.props),isTransitioning:!1,isInitialRenderForDataset:!0,dataKey:this.props.dataKey},this.internalState={targetNode:null,isTransitioning:!1},this.svgInstanceRef=`rd3t-svg-${RN()}`,this.gInstanceRef=`rd3t-g-${RN()}`,this.handleNodeToggle=t=>{const n=yo(this.state.data),i=this.findNodesById(t,n,[])[0];this.props.collapsible&&!this.state.isTransitioning&&(i.__rd3t.collapsed?($a.expandNode(i),this.props.shouldCollapseNeighborNodes&&this.collapseNeighborNodes(i,n)):$a.collapseNode(i),this.props.enableLegacyTransitions?(this.setState({data:n,isTransitioning:!0}),setTimeout(()=>this.setState({isTransitioning:!1}),this.props.transitionDuration+10)):this.setState({data:n}),this.internalState.targetNode=i)},this.handleAddChildrenToNode=(t,n)=>{const r=yo(this.state.data),i=this.findNodesById(t,r,[]);if(i.length>0){const o=i[0],s=o.__rd3t.depth,l=yo(n).map(c=>$a.assignInternalProperties([c],s+1));o.children.push(...l.flat()),this.setState({data:r})}},this.handleOnNodeClickCb=(t,n)=>{const{onNodeClick:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(yo(t),n))},this.handleOnLinkClickCb=(t,n,r)=>{const{onLinkClick:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(yo(t),yo(n),r))},this.handleOnNodeMouseOverCb=(t,n)=>{const{onNodeMouseOver:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(yo(t),n))},this.handleOnLinkMouseOverCb=(t,n,r)=>{const{onLinkMouseOver:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(yo(t),yo(n),r))},this.handleOnNodeMouseOutCb=(t,n)=>{const{onNodeMouseOut:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(yo(t),n))},this.handleOnLinkMouseOutCb=(t,n,r)=>{const{onLinkMouseOut:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(yo(t),yo(n),r))},this.centerNode=t=>{const{dimensions:n,orientation:r,zoom:i,centeringTransitionDuration:o}=this.props;if(n){const s=Eo(`.${this.gInstanceRef}`),l=Eo(`.${this.svgInstanceRef}`),c=this.state.d3.scale;let d,f;r==="horizontal"?(f=-t.x*c+n.height/2,d=-t.y*c+n.width/2):(d=-t.x*c+n.width/2,f=-t.y*c+n.height/2),s.transition().duration(o).attr("transform","translate("+d+","+f+")scale("+c+")"),l.call(AN().transform,tC.translate(d,f).scale(i))}},this.getNodeClassName=(t,n)=>{const{rootNodeClassName:r,branchNodeClassName:i,leafNodeClassName:o}=this.props;return t!=null?n.children?i:o:r}}static getDerivedStateFromProps(t,n){let r=null;const i=!t.dataKey||n.dataKey!==t.dataKey;t.data!==n.dataRef&&i&&(r={dataRef:t.data,data:$a.assignInternalProperties(yo(t.data)),isInitialRenderForDataset:!0,dataKey:t.dataKey});const o=$a.calculateD3Geometry(t);return mx(o,n.d3)||(r=r||{},r.d3=o),r}componentDidMount(){this.bindZoomListener(this.props),this.setState({isInitialRenderForDataset:!1})}componentDidUpdate(t){this.props.data!==t.data&&this.setState({isInitialRenderForDataset:!1}),(!mx(this.props.translate,t.translate)||!mx(this.props.scaleExtent,t.scaleExtent)||this.props.zoomable!==t.zoomable||this.props.draggable!==t.draggable||this.props.zoom!==t.zoom||this.props.enableLegacyTransitions!==t.enableLegacyTransitions)&&this.bindZoomListener(this.props),typeof this.props.onUpdate=="function"&&this.props.onUpdate({node:this.internalState.targetNode?yo(this.internalState.targetNode):null,zoom:this.state.d3.scale,translate:this.state.d3.translate}),this.internalState.targetNode=null}setInitialTreeDepth(t,n){t.forEach(r=>{r.data.__rd3t.collapsed=r.depth>=n})}bindZoomListener(t){const{zoomable:n,scaleExtent:r,translate:i,zoom:o,onUpdate:s,hasInteractiveNodes:l}=t,c=Eo(`.${this.svgInstanceRef}`),d=Eo(`.${this.gInstanceRef}`);c.call(AN().transform,tC.translate(i.x,i.y).scale(o)),c.call(AN().scaleExtent(n?[r.min,r.max]:[o,o]).filter(f=>l?f.target.classList.contains(this.svgInstanceRef)||f.target.classList.contains(this.gInstanceRef)||f.shiftKey:!0).on("zoom",f=>{!this.props.draggable&&["mousemove","touchmove","dblclick"].includes(f.sourceEvent.type)||(d.attr("transform",f.transform),typeof s=="function"&&(s({node:null,zoom:f.transform.k,translate:{x:f.transform.x,y:f.transform.y}}),this.state.d3.scale=f.transform.k,this.state.d3.translate={x:f.transform.x,y:f.transform.y}))}))}static assignInternalProperties(t,n=0){return(Array.isArray(t)?t:[t]).map(i=>{const o=i;return o.__rd3t={id:null,depth:null,collapsed:!1},o.__rd3t.id=RN(),o.__rd3t.depth=n,o.children&&o.children.length>0&&(o.children=$a.assignInternalProperties(o.children,n+1)),o})}findNodesById(t,n,r){return r.length>0||(r=r.concat(n.filter(i=>i.__rd3t.id===t)),n.forEach(i=>{i.children&&i.children.length>0&&(r=this.findNodesById(t,i.children,r))})),r}findNodesAtDepth(t,n,r){return r=r.concat(n.filter(i=>i.__rd3t.depth===t)),n.forEach(i=>{i.children&&i.children.length>0&&(r=this.findNodesAtDepth(t,i.children,r))}),r}static collapseNode(t){t.__rd3t.collapsed=!0,t.children&&t.children.length>0&&t.children.forEach(n=>{$a.collapseNode(n)})}static expandNode(t){t.__rd3t.collapsed=!1}collapseNeighborNodes(t,n){this.findNodesAtDepth(t.__rd3t.depth,n,[]).filter(i=>i.__rd3t.id!==t.__rd3t.id).forEach(i=>$a.collapseNode(i))}generateTree(){const{initialDepth:t,depthFactor:n,separation:r,nodeSize:i,orientation:o}=this.props,{isInitialRenderForDataset:s}=this.state,c=B2e().nodeSize(o==="horizontal"?[i.y,i.x]:[i.x,i.y]).separation((h,p)=>h.parent.data.__rd3t.id===p.parent.data.__rd3t.id?r.siblings:r.nonSiblings)(Gz(this.state.data[0],h=>h.__rd3t.collapsed?null:h.children));let d=c.descendants();const f=c.links();return t!==void 0&&s&&this.setInitialTreeDepth(d,t),n&&d.forEach(h=>{h.y=h.depth*n}),{nodes:d,links:f}}static calculateD3Geometry(t){let n;return t.zoom>t.scaleExtent.max?n=t.scaleExtent.max:t.zoomde.createElement(iNe,{key:"link-"+b,orientation:i,pathFunc:o,pathClassFunc:g,linkData:_,onClick:this.handleOnLinkClickCb,onMouseOver:this.handleOnLinkMouseOverCb,onMouseOut:this.handleOnLinkMouseOutCb,enableLegacyTransitions:h,transitionDuration:s})),t.map((_,b)=>{const{data:x,x:E,y:A,parent:I}=_;return de.createElement(qLe,{key:"node-"+b,data:x,position:{x:E,y:A},hierarchyPointNode:_,parent:I,nodeClassName:this.getNodeClassName(I,x),renderCustomNodeElement:r,nodeSize:l,orientation:i,enableLegacyTransitions:h,transitionDuration:s,onNodeToggle:this.handleNodeToggle,onNodeClick:this.handleOnNodeClickCb,onNodeMouseOver:this.handleOnNodeMouseOverCb,onNodeMouseOut:this.handleOnNodeMouseOutCb,handleAddChildrenToNode:this.handleAddChildrenToNode,subscriptions:S,centerNode:this.centerNode})}))))}};xee.defaultProps={onNodeClick:void 0,onNodeMouseOver:void 0,onNodeMouseOut:void 0,onLinkClick:void 0,onLinkMouseOver:void 0,onLinkMouseOut:void 0,onUpdate:void 0,orientation:"horizontal",translate:{x:0,y:0},pathFunc:"diagonal",pathClassFunc:void 0,transitionDuration:500,depthFactor:void 0,collapsible:!0,initialDepth:void 0,zoomable:!0,draggable:!0,zoom:1,scaleExtent:{min:.1,max:1},nodeSize:{x:140,y:140},separation:{siblings:1,nonSiblings:2},shouldCollapseNeighborNodes:!1,svgClassName:"",rootNodeClassName:"",branchNodeClassName:"",leafNodeClassName:"",renderCustomNodeElement:void 0,enableLegacyTransitions:!1,hasInteractiveNodes:!1,dimensions:void 0,centeringTransitionDuration:800,dataKey:void 0};function d1(){return d1=Object.assign||function(e){for(var t=1;tawait wNe(e),[e])}function SNe(e,t){const n=R.useMemo(()=>e,t);return _Ne(n)}const ENe=C.jsx(Au,{orientation:"vertical",flexItem:!0,sx:{m:1}}),CNe=xee;function See(e,t=!1){const[n,r]=R.useState();return R.useEffect(()=>{t||e&&r(e)},[e,t]),n}const WG={small:{value:0,name:"Current",description:"Show the current node and its parents"},medium:{value:4,name:"Nearby",description:"Show nodes with ≤4 degrees of separation"},infinite:{value:void 0,name:"All",description:"Show all nodes, may impact performance"}};function TNe(){var _,b,x,E,A;const{palette:e}=Rn(),{key:t,setKey:n,layer:r,setLayer:i,layers:o}=vp(),s=WK(((_=r==null?void 0:r.source)==null?void 0:_.step)??0,600),{controls:l,onChange:c,state:d}=qd(),[f,h]=R.useState("small"),p=qx({"&.rd3t-link":{stroke:_n(e.text.primary,e.action.disabledOpacity)}}),{result:g,loading:v}=SNe({trace:(x=(b=r==null?void 0:r.source)==null?void 0:b.trace)==null?void 0:x.content,step:s,radius:WG[f].value},[s,r,f]),y=See(g,v),S=R.useCallback(()=>p,[p]);return C.jsxs(Ln,{onChange:c,stack:d,children:[C.jsx(Ln.Content,{children:C.jsx(bn,{children:(A=(E=r==null?void 0:r.source)==null?void 0:E.trace)!=null&&A.content&&(y!=null&&y.tree)?C.jsx(hk,{children:({width:I,height:k})=>C.jsx(dt,{width:I,height:k,children:C.jsx(CNe,{scaleExtent:{max:10,min:.01},translate:{x:I/2,y:I/2},data:y.tree,dimensions:{width:I,height:k},separation:{siblings:.4,nonSiblings:.4},pathClassFunc:S,renderCustomNodeElement:({nodeDatum:O,onNodeClick:L})=>{var N;return C.jsx(kNe,{node:O,onClick:()=>L==null?void 0:L({}),step:(N=r==null?void 0:r.source)==null?void 0:N.step,onStep:H=>i(ca(r,W=>{te.set(W,"source.step",H)}))})}})})}):C.jsx(Uh,{icon:C.jsx(BK,{}),label:"Tree"})})})," ",C.jsxs(Ln.Options,{children:[C.jsx(Is,{icon:C.jsx(W1,{}),label:"Layer",value:t,items:te.map(o,I=>({id:I.key,name:_s(I)})),onChange:n,showArrow:!0}),ENe,C.jsx(Is,{icon:C.jsx(xxe,{}),label:"Radius",value:f,onChange:I=>h(I),items:te.map(te.entries(WG),([I,k])=>({id:I,...k})),showArrow:!0})]}),C.jsx(Ln.Extras,{children:l})]})}const db=16,Xc=4;function kNe({onClick:e,node:t,step:n=0,onStep:r}){var f;const{palette:i,spacing:o,shape:s}=Rn(),l=te.findLast(t==null?void 0:t.events,h=>h.step<=n),c=!!te.find(t==null?void 0:t.events,h=>h.step===n),d=o1((f=l==null?void 0:l.data)==null?void 0:f.type);return C.jsx(Ap,{variant:"popover",children:h=>{var p,g;return C.jsxs(C.Fragment,{children:[C.jsx(Gd,{title:`f: ${((p=l==null?void 0:l.data)==null?void 0:p.f)??"unknown"}, g: ${((g=l==null?void 0:l.data)==null?void 0:g.g)??"unknown"}`,children:C.jsxs("g",{onClick:v=>{h.open(v)},children:[C.jsx("clipPath",{id:"clipPath",children:C.jsx("rect",{y:o(-Xc/2),x:o(-.25),strokeWidth:0,width:o(db),height:o(Xc),rx:s.borderRadius})}),C.jsx("rect",{y:o(-Xc/2),x:o(-.25),strokeWidth:0,fill:i.background.default,width:o(db),height:o(Xc),clipPath:"url(#clipPath)"}),c&&C.jsx("rect",{y:o(-Xc/2),x:o(-.25),strokeWidth:0,fill:_n(i.primary.main,i.action.selectedOpacity),width:o(db),height:o(Xc),clipPath:"url(#clipPath)"}),C.jsx("rect",{x:o(-.25),y:o(-Xc/2),height:o(Xc),width:o(.5),fill:d,strokeWidth:0,clipPath:"url(#clipPath)"}),C.jsx("text",{strokeWidth:0,height:o(4),fill:i.text.primary,y:0,fontWeight:500,fontSize:"0.875rem",x:o(2-.25),alignmentBaseline:"central",children:t==null?void 0:t.name}),!!(t!=null&&t.cumulativeChildCount)&&C.jsxs(C.Fragment,{children:[C.jsx("text",{strokeWidth:0,height:o(4),fill:i.text.secondary,y:0,x:o(db-2.25-1),textAnchor:"end",fontWeight:400,fontSize:"0.875rem",alignmentBaseline:"central",children:t==null?void 0:t.cumulativeChildCount}),C.jsx(Zbe,{width:o(2),height:o(2),x:o(db-2-1),y:o(-Xc/2+1),strokeWidth:0,fill:i.text.primary,opacity:i.action.disabledOpacity})]})]})}),C.jsx(kp,{anchorOrigin:{horizontal:"center",vertical:"bottom"},transformOrigin:{horizontal:"center",vertical:"top"},...rw(h),children:C.jsx(ek,{dense:!0,sx:{p:0},children:te.map(t==null?void 0:t.events,v=>C.jsx(du,{selected:v.step===n,sx:{borderLeft:`4px solid ${o1(v.data.type)}`},onClick:()=>{h.close(),e==null||e(),te.delay(()=>r==null?void 0:r(v.step),150)},children:C.jsx(G4,{primary:te.startCase(v.data.type),secondary:`Step ${v.step}`})}))})})]})}})}function ANe({selection:e,onClose:t}){const n=INe(),r=See(e),{client:i}=e??{};return C.jsx(kp,{open:!!e,anchorReference:"anchorPosition",anchorPosition:{top:(i==null?void 0:i.y)??0,left:(i==null?void 0:i.x)??0},onClose:t,keepMounted:!0,children:C.jsx(ek,{dense:!0,sx:{py:0},children:C.jsx(n,{event:r,children:o=>{const s=te.entries(o);return s.length?te.chain(s).sortBy(([,l])=>l.index).map(([,{items:l,primary:c}],d)=>C.jsxs(C.Fragment,{children:[!!d&&C.jsx(Au,{sx:{my:1,mx:2}}),c&&C.jsx(ax,{sx:{py:0},children:C.jsx(zt,{color:"text.secondary",variant:"overline",children:c})}),te.chain(l).entries().sortBy(([,f])=>f.index).map(([f,{action:h,icon:p,primary:g,secondary:v}])=>h?C.jsxs(du,{onClick:()=>{h(),t==null||t()},children:[p&&C.jsx(xd,{children:p}),C.jsx(zl,{primary:g,sx:{mr:4}}),C.jsx(zt,{variant:"body2",color:"text.secondary",children:v})]},f):C.jsxs(ax,{children:[p&&C.jsx(xd,{children:p}),C.jsx(zl,{primary:g,sx:{mr:4}}),C.jsx(zt,{variant:"body2",color:"text.secondary",children:v})]},f)).value()]})).value():C.jsx(C.Fragment,{children:C.jsx(ax,{children:C.jsx(zt,{children:"No info to show."})})})}})})})}const GG=({children:e})=>C.jsx(C.Fragment,{children:e==null?void 0:e({})});function INe(){const[{layers:e}]=Ip();return R.useMemo(()=>te.chain(e).reduce((t,n)=>{var i;const r=((i=Gee(n))==null?void 0:i.getSelectionInfo)??GG;return({children:o,event:s})=>C.jsx(r,{layer:n.key,event:s,children:l=>C.jsx(t,{event:s,children:c=>o==null?void 0:o(te.merge(l,c))})})},GG).value(),[e])}const[Pk,RNe]=Ql([],{reduce:GK}),PNe={tileSubdivision:1,workerCount:8,tileResolution:{width:te.round(256*devicePixelRatio),height:te.round(256*devicePixelRatio)}},Eee=R.createContext({});function ONe(){return R.useContext(Eee)}function MNe(e,{width:t,height:n}={}){const r=Rn(),[i]=Pk(),o=R.useRef(null),[s,l]=R.useState(""),[c,d]=R.useState();return R.useEffect(()=>{if(l(""),o.current&&t&&n&&e){const f=te.find(i,h=>h.renderer.meta.id===e);if(f){const h=new f.renderer.constructor;return h.setup({...PNe,screenSize:{width:t,height:n},backgroundColor:r.palette.background.paper,accentColor:r.palette.primary.main}),o.current.append(h.getView()),d(h),()=>{var p,g;try{(g=(p=o.current)==null?void 0:p.removeChild)==null||g.call(p,h.getView()),d(void 0)}catch(v){console.warn(v)}finally{h.destroy()}}}}},[o.current,te.map,e,i,r,l,d]),Hxe(()=>{c&&t&&n&&c.setOptions({screenSize:{width:t,height:n}})},r.transitions.duration.standard,[c,t,n]),{instance:c,ref:o,error:s}}function DNe(){const[{map:e,specimen:t}]=Sk();return!!(e||t)&&C.jsx(U1,{sx:{position:"absolute",top:n=>n.spacing(6+2),right:n=>n.spacing(2)}})}function LNe({width:e,height:t,renderer:n,rendererRef:r,layers:i}){const{instance:o,error:s,ref:l}=MNe(n,{width:e,height:t}),[c,d]=R.useState();R.useEffect(()=>{if(o){const h=(p,g)=>{const v=p;d({client:{x:v.clientX,y:v.clientY},world:g.world,info:{point:g.world,components:g.components}})};return o.on("click",h),()=>void o.off("click",h)}},[o]);const f=R.useMemo(()=>({renderer:o}),[o]);return R.useEffect(()=>r==null?void 0:r(o),[o,r]),C.jsxs(C.Fragment,{children:[C.jsx(DNe,{}),C.jsx(Eee.Provider,{value:f,children:i!=null&&i.length?s?C.jsxs(dt,{sx:{display:"flex",flexDirection:"column",width:e,height:t,alignItems:"center",justifyContent:"center",color:"text.secondary"},children:[C.jsx(Kbe,{sx:{mb:2},fontSize:"large"}),s]}):C.jsx(C.Fragment,{children:C.jsx(dt,{ref:l,children:i.map(h=>C.jsx(mFe,{layer:h},h.key))})}):C.jsx(Uh,{icon:C.jsx(UK,{}),label:"No layers to render",width:e,height:t})}),C.jsx(ANe,{selection:c,onClose:()=>d(void 0)})]})}function f1({nodes:e}){const{renderer:t}=ONe();return R.useEffect(()=>{if(t&&(e!=null&&e.length))return t.add(e.flat())},[t,e]),C.jsx(C.Fragment,{})}function NNe({nodes:e,step:t}){const r=te.floor((t??0)/200)*200,i=R.useMemo(()=>te.slice(e,0,r),[e,r]),o=R.useMemo(()=>te.slice(e,r,(t??0)+1),[e,r,t]);return C.jsxs(C.Fragment,{children:[!!r&&C.jsx(f1,{nodes:i}),C.jsx(f1,{nodes:o})]})}const Cee=(e,t,n)=>{const r=R.useRef(n||[]),o=r.current===n||!r.current.every((l,c)=>l===n[c]);r.current=n;const s=t.map(()=>null);return R.useEffect(o?()=>void e():()=>{},o?t:s)};function BNe(e,t){return te.zip(e,t).every(([n,r])=>n===r)}const $Ne=(e,t=[],n=[])=>{const[r,i]=R.useState(t),[o,s]=R.useState(n);return R.useEffect(()=>{BNe(o,n)||(i(t),s(n))},[t,n,o]),_ee(e,[...r,...o])};function ij(){const[e]=Ig();return R.useCallback(t=>te.find(e,t),[e])}function FNe(e){return ij()({url:e})}function zNe(e){const t=hl(),n=Rp("map"),r=ij(),i=R.useMemo(()=>Lp(async({source:c,id:d}={})=>{if(c&&d){const f=r({url:c});if(f){t("Fetching map...");const h=await f.call("features/map",{id:d});return h==null?void 0:h.content}}},{normalizer:JSON.stringify}),[r,t]),{content:o,source:s,id:l}=e??{};return cw(()=>n(async()=>{if(l)return{...e,content:o||await i({source:s,id:l})}}),[i,o,s,l])}function jNe(e){const t=hl(),n=Rn(),r=Rp("map"),{format:i,content:o}=e??{};return cw(()=>r(async()=>{var l,c;const s=n.palette.mode==="dark"?Gg:Wg;if(i&&o){t("Processing map...");const d=await((c=(l=Hz(i))==null?void 0:l.parse)==null?void 0:c.call(l,o,{color:s(n.palette.background.paper,1-n.palette.action.hoverOpacity)}))??{nodes:[]};return t("Map loaded",`${d.nodes.length} elements, ${d.log.join(", ")}`),d}}),[i,o,n])}const UNe={key:"map",inferName:e=>{var t;return(t=e==null?void 0:e.source)!=null&&t.map?`${e.source.map.name} (${te.startCase(e.source.map.format)})`:"Untitled Map"},editor:Cg(({value:e,produce:t})=>{var n;return C.jsx(C.Fragment,{children:C.jsx(i1,{label:"Source",content:C.jsx(jPe,{value:(n=e==null?void 0:e.source)==null?void 0:n.map,onChange:r=>t(i=>te.set(i,"source.map",r))})})})}),renderer:({layer:e})=>{var r;const{nodes:t}=((r=e==null?void 0:e.source)==null?void 0:r.parsedMap)??{},n=R.useMemo(()=>[t??[]],[t]);return C.jsx(f1,{nodes:n})},steps:({children:e})=>C.jsx(C.Fragment,{children:e==null?void 0:e([])}),service:Cg(({value:e,produce:t})=>{var i;const{result:n}=zNe((i=e==null?void 0:e.source)==null?void 0:i.map),{result:r}=jNe(n);return Cee(()=>void t(o=>te.set(o,"source.parsedMap",r)),[r,t],[r]),C.jsx(C.Fragment,{})}),getSelectionInfo:({children:e,event:t,layer:n})=>{const{layer:r,setLayer:i,layers:o}=vp(n),{parsedMap:s}=(r==null?void 0:r.source)??{},{point:l,node:c}=R.useMemo(()=>{var f,h,p,g;if(s&&t){const v=(g=(p=Hz((h=(f=r==null?void 0:r.source)==null?void 0:f.map)==null?void 0:h.format))==null?void 0:p.hydrate)==null?void 0:g.call(p,s);if(v){const y=(t==null?void 0:t.world)&&v.snap(t.world);if(y){const S=(t==null?void 0:t.world)&&v.nodeAt(y);return{point:y,node:S}}}}return{}},[s,t]),d=R.useMemo(()=>({...r&&l&&!te.isUndefined(c)&&{[r.key]:{primary:_s(r),items:{point:{primary:"Point",secondary:`(${te.round(l.x,2)}, ${te.round(l.y,2)})`}}}}}),[l,c,r,o,i]);return C.jsx(C.Fragment,{children:e==null?void 0:e(d)})}};var ON=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,bo,DS,HNe={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},zu;function MN(e){return ON.lastIndex=0,ON.test(e)?'"'+e.replace(ON,function(t){var n=HNe[t];return typeof n=="string"?n:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function LS(e,t,n){var r,i,o,s,l=bo,c,d=t[e];switch(d&&typeof d=="object"&&typeof d.toJSON=="function"&&(d=d.toJSON(e)),typeof zu=="function"&&(d=zu.call(t,e,d)),typeof d){case"string":return MN(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(bo+=DS,c=[],Object.prototype.toString.apply(d)==="[object Array]"){for(s=d.length,r=0;rn?`[ +`;let Cee=class Fa extends de.Component{constructor(){super(...arguments),this.state={dataRef:this.props.data,data:Fa.assignInternalProperties(yo(this.props.data)),d3:Fa.calculateD3Geometry(this.props),isTransitioning:!1,isInitialRenderForDataset:!0,dataKey:this.props.dataKey},this.internalState={targetNode:null,isTransitioning:!1},this.svgInstanceRef=`rd3t-svg-${ON()}`,this.gInstanceRef=`rd3t-g-${ON()}`,this.handleNodeToggle=t=>{const n=yo(this.state.data),i=this.findNodesById(t,n,[])[0];this.props.collapsible&&!this.state.isTransitioning&&(i.__rd3t.collapsed?(Fa.expandNode(i),this.props.shouldCollapseNeighborNodes&&this.collapseNeighborNodes(i,n)):Fa.collapseNode(i),this.props.enableLegacyTransitions?(this.setState({data:n,isTransitioning:!0}),setTimeout(()=>this.setState({isTransitioning:!1}),this.props.transitionDuration+10)):this.setState({data:n}),this.internalState.targetNode=i)},this.handleAddChildrenToNode=(t,n)=>{const r=yo(this.state.data),i=this.findNodesById(t,r,[]);if(i.length>0){const o=i[0],s=o.__rd3t.depth,l=yo(n).map(c=>Fa.assignInternalProperties([c],s+1));o.children.push(...l.flat()),this.setState({data:r})}},this.handleOnNodeClickCb=(t,n)=>{const{onNodeClick:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(yo(t),n))},this.handleOnLinkClickCb=(t,n,r)=>{const{onLinkClick:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(yo(t),yo(n),r))},this.handleOnNodeMouseOverCb=(t,n)=>{const{onNodeMouseOver:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(yo(t),n))},this.handleOnLinkMouseOverCb=(t,n,r)=>{const{onLinkMouseOver:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(yo(t),yo(n),r))},this.handleOnNodeMouseOutCb=(t,n)=>{const{onNodeMouseOut:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(yo(t),n))},this.handleOnLinkMouseOutCb=(t,n,r)=>{const{onLinkMouseOut:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(yo(t),yo(n),r))},this.centerNode=t=>{const{dimensions:n,orientation:r,zoom:i,centeringTransitionDuration:o}=this.props;if(n){const s=Eo(`.${this.gInstanceRef}`),l=Eo(`.${this.svgInstanceRef}`),c=this.state.d3.scale;let d,f;r==="horizontal"?(f=-t.x*c+n.height/2,d=-t.y*c+n.width/2):(d=-t.x*c+n.width/2,f=-t.y*c+n.height/2),s.transition().duration(o).attr("transform","translate("+d+","+f+")scale("+c+")"),l.call(IN().transform,rC.translate(d,f).scale(i))}},this.getNodeClassName=(t,n)=>{const{rootNodeClassName:r,branchNodeClassName:i,leafNodeClassName:o}=this.props;return t!=null?n.children?i:o:r}}static getDerivedStateFromProps(t,n){let r=null;const i=!t.dataKey||n.dataKey!==t.dataKey;t.data!==n.dataRef&&i&&(r={dataRef:t.data,data:Fa.assignInternalProperties(yo(t.data)),isInitialRenderForDataset:!0,dataKey:t.dataKey});const o=Fa.calculateD3Geometry(t);return yx(o,n.d3)||(r=r||{},r.d3=o),r}componentDidMount(){this.bindZoomListener(this.props),this.setState({isInitialRenderForDataset:!1})}componentDidUpdate(t){this.props.data!==t.data&&this.setState({isInitialRenderForDataset:!1}),(!yx(this.props.translate,t.translate)||!yx(this.props.scaleExtent,t.scaleExtent)||this.props.zoomable!==t.zoomable||this.props.draggable!==t.draggable||this.props.zoom!==t.zoom||this.props.enableLegacyTransitions!==t.enableLegacyTransitions)&&this.bindZoomListener(this.props),typeof this.props.onUpdate=="function"&&this.props.onUpdate({node:this.internalState.targetNode?yo(this.internalState.targetNode):null,zoom:this.state.d3.scale,translate:this.state.d3.translate}),this.internalState.targetNode=null}setInitialTreeDepth(t,n){t.forEach(r=>{r.data.__rd3t.collapsed=r.depth>=n})}bindZoomListener(t){const{zoomable:n,scaleExtent:r,translate:i,zoom:o,onUpdate:s,hasInteractiveNodes:l}=t,c=Eo(`.${this.svgInstanceRef}`),d=Eo(`.${this.gInstanceRef}`);c.call(IN().transform,rC.translate(i.x,i.y).scale(o)),c.call(IN().scaleExtent(n?[r.min,r.max]:[o,o]).filter(f=>l?f.target.classList.contains(this.svgInstanceRef)||f.target.classList.contains(this.gInstanceRef)||f.shiftKey:!0).on("zoom",f=>{!this.props.draggable&&["mousemove","touchmove","dblclick"].includes(f.sourceEvent.type)||(d.attr("transform",f.transform),typeof s=="function"&&(s({node:null,zoom:f.transform.k,translate:{x:f.transform.x,y:f.transform.y}}),this.state.d3.scale=f.transform.k,this.state.d3.translate={x:f.transform.x,y:f.transform.y}))}))}static assignInternalProperties(t,n=0){return(Array.isArray(t)?t:[t]).map(i=>{const o=i;return o.__rd3t={id:null,depth:null,collapsed:!1},o.__rd3t.id=ON(),o.__rd3t.depth=n,o.children&&o.children.length>0&&(o.children=Fa.assignInternalProperties(o.children,n+1)),o})}findNodesById(t,n,r){return r.length>0||(r=r.concat(n.filter(i=>i.__rd3t.id===t)),n.forEach(i=>{i.children&&i.children.length>0&&(r=this.findNodesById(t,i.children,r))})),r}findNodesAtDepth(t,n,r){return r=r.concat(n.filter(i=>i.__rd3t.depth===t)),n.forEach(i=>{i.children&&i.children.length>0&&(r=this.findNodesAtDepth(t,i.children,r))}),r}static collapseNode(t){t.__rd3t.collapsed=!0,t.children&&t.children.length>0&&t.children.forEach(n=>{Fa.collapseNode(n)})}static expandNode(t){t.__rd3t.collapsed=!1}collapseNeighborNodes(t,n){this.findNodesAtDepth(t.__rd3t.depth,n,[]).filter(i=>i.__rd3t.id!==t.__rd3t.id).forEach(i=>Fa.collapseNode(i))}generateTree(){const{initialDepth:t,depthFactor:n,separation:r,nodeSize:i,orientation:o}=this.props,{isInitialRenderForDataset:s}=this.state,c=z2e().nodeSize(o==="horizontal"?[i.y,i.x]:[i.x,i.y]).separation((h,p)=>h.parent.data.__rd3t.id===p.parent.data.__rd3t.id?r.siblings:r.nonSiblings)(Xz(this.state.data[0],h=>h.__rd3t.collapsed?null:h.children));let d=c.descendants();const f=c.links();return t!==void 0&&s&&this.setInitialTreeDepth(d,t),n&&d.forEach(h=>{h.y=h.depth*n}),{nodes:d,links:f}}static calculateD3Geometry(t){let n;return t.zoom>t.scaleExtent.max?n=t.scaleExtent.max:t.zoomde.createElement(aNe,{key:"link-"+b,orientation:i,pathFunc:o,pathClassFunc:g,linkData:_,onClick:this.handleOnLinkClickCb,onMouseOver:this.handleOnLinkMouseOverCb,onMouseOut:this.handleOnLinkMouseOutCb,enableLegacyTransitions:h,transitionDuration:s})),t.map((_,b)=>{const{data:x,x:E,y:A,parent:R}=_;return de.createElement(KLe,{key:"node-"+b,data:x,position:{x:E,y:A},hierarchyPointNode:_,parent:R,nodeClassName:this.getNodeClassName(R,x),renderCustomNodeElement:r,nodeSize:l,orientation:i,enableLegacyTransitions:h,transitionDuration:s,onNodeToggle:this.handleNodeToggle,onNodeClick:this.handleOnNodeClickCb,onNodeMouseOver:this.handleOnNodeMouseOverCb,onNodeMouseOut:this.handleOnNodeMouseOutCb,handleAddChildrenToNode:this.handleAddChildrenToNode,subscriptions:S,centerNode:this.centerNode})}))))}};Cee.defaultProps={onNodeClick:void 0,onNodeMouseOver:void 0,onNodeMouseOut:void 0,onLinkClick:void 0,onLinkMouseOver:void 0,onLinkMouseOut:void 0,onUpdate:void 0,orientation:"horizontal",translate:{x:0,y:0},pathFunc:"diagonal",pathClassFunc:void 0,transitionDuration:500,depthFactor:void 0,collapsible:!0,initialDepth:void 0,zoomable:!0,draggable:!0,zoom:1,scaleExtent:{min:.1,max:1},nodeSize:{x:140,y:140},separation:{siblings:1,nonSiblings:2},shouldCollapseNeighborNodes:!1,svgClassName:"",rootNodeClassName:"",branchNodeClassName:"",leafNodeClassName:"",renderCustomNodeElement:void 0,enableLegacyTransitions:!1,hasInteractiveNodes:!1,dimensions:void 0,centeringTransitionDuration:800,dataKey:void 0};function p1(){return p1=Object.assign||function(e){for(var t=1;tawait ENe(e),[e])}function TNe(e,t){const n=I.useMemo(()=>e,t);return CNe(n)}const kNe=C.jsx(Iu,{orientation:"vertical",flexItem:!0,sx:{m:1}}),ANe=Cee;function Aee(e,t=!1){const[n,r]=I.useState();return I.useEffect(()=>{t||e&&r(e)},[e,t]),n}const XG={small:{value:0,name:"Current",description:"Show the current node and its parents"},medium:{value:4,name:"Nearby",description:"Show nodes with ≤4 degrees of separation"},infinite:{value:void 0,name:"All",description:"Show all nodes, may impact performance"}};function RNe(){var _,b,x,E,A;const{palette:e}=Pn(),{key:t,setKey:n,layer:r,setLayer:i,layers:o}=bp(),s=YK(((_=r==null?void 0:r.source)==null?void 0:_.step)??0,600),{controls:l,onChange:c,state:d}=Ou(),[f,h]=I.useState("small"),p=Kx({"&.rd3t-link":{stroke:_n(e.text.primary,e.action.disabledOpacity)}}),{result:g,loading:v}=TNe({trace:(x=(b=r==null?void 0:r.source)==null?void 0:b.trace)==null?void 0:x.content,step:s,radius:XG[f].value},[s,r,f]),y=Aee(g,v),S=I.useCallback(()=>p,[p]);return C.jsxs(Sn,{onChange:c,stack:d,children:[C.jsx(Sn.Content,{children:C.jsx(gn,{children:(A=(E=r==null?void 0:r.source)==null?void 0:E.trace)!=null&&A.content&&(y!=null&&y.tree)?C.jsx(mk,{children:({width:R,height:k})=>C.jsx(lt,{width:R,height:k,children:C.jsx(ANe,{scaleExtent:{max:10,min:.01},translate:{x:R/2,y:R/2},data:y.tree,dimensions:{width:R,height:k},separation:{siblings:.4,nonSiblings:.4},pathClassFunc:S,renderCustomNodeElement:({nodeDatum:O,onNodeClick:L})=>{var N;return C.jsx(INe,{node:O,onClick:()=>L==null?void 0:L({}),step:(N=r==null?void 0:r.source)==null?void 0:N.step,onStep:H=>i(ua(r,W=>{te.set(W,"source.step",H)}))})}})})}):C.jsx(Hh,{icon:C.jsx(UK,{}),label:"Tree"})})})," ",C.jsxs(Sn.Options,{children:[C.jsx(Rs,{icon:C.jsx(q1,{}),label:"Layer",value:t,items:te.map(o,R=>({id:R.key,name:_s(R)})),onChange:n,showArrow:!0}),kNe,C.jsx(Rs,{icon:C.jsx(Exe,{}),label:"Radius",value:f,onChange:R=>h(R),items:te.map(te.entries(XG),([R,k])=>({id:R,...k})),showArrow:!0})]}),C.jsx(Sn.Extras,{children:l})]})}const pb=16,Yc=4;function INe({onClick:e,node:t,step:n=0,onStep:r}){var f;const{palette:i,spacing:o,shape:s}=Pn(),l=te.findLast(t==null?void 0:t.events,h=>h.step<=n),c=!!te.find(t==null?void 0:t.events,h=>h.step===n),d=l1((f=l==null?void 0:l.data)==null?void 0:f.type);return C.jsx(Ip,{variant:"popover",children:h=>{var p,g;return C.jsxs(C.Fragment,{children:[C.jsx(qd,{title:`f: ${((p=l==null?void 0:l.data)==null?void 0:p.f)??"unknown"}, g: ${((g=l==null?void 0:l.data)==null?void 0:g.g)??"unknown"}`,children:C.jsxs("g",{onClick:v=>{h.open(v)},children:[C.jsx("clipPath",{id:"clipPath",children:C.jsx("rect",{y:o(-Yc/2),x:o(-.25),strokeWidth:0,width:o(pb),height:o(Yc),rx:s.borderRadius})}),C.jsx("rect",{y:o(-Yc/2),x:o(-.25),strokeWidth:0,fill:i.background.default,width:o(pb),height:o(Yc),clipPath:"url(#clipPath)"}),c&&C.jsx("rect",{y:o(-Yc/2),x:o(-.25),strokeWidth:0,fill:_n(i.primary.main,i.action.selectedOpacity),width:o(pb),height:o(Yc),clipPath:"url(#clipPath)"}),C.jsx("rect",{x:o(-.25),y:o(-Yc/2),height:o(Yc),width:o(.5),fill:d,strokeWidth:0,clipPath:"url(#clipPath)"}),C.jsx("text",{strokeWidth:0,height:o(4),fill:i.text.primary,y:0,fontWeight:500,fontSize:"0.875rem",x:o(2-.25),alignmentBaseline:"central",children:t==null?void 0:t.name}),!!(t!=null&&t.cumulativeChildCount)&&C.jsxs(C.Fragment,{children:[C.jsx("text",{strokeWidth:0,height:o(4),fill:i.text.secondary,y:0,x:o(pb-2.25-1),textAnchor:"end",fontWeight:400,fontSize:"0.875rem",alignmentBaseline:"central",children:t==null?void 0:t.cumulativeChildCount}),C.jsx(rxe,{width:o(2),height:o(2),x:o(pb-2-1),y:o(-Yc/2+1),strokeWidth:0,fill:i.text.primary,opacity:i.action.disabledOpacity})]})]})}),C.jsx(Rp,{anchorOrigin:{horizontal:"center",vertical:"bottom"},transformOrigin:{horizontal:"center",vertical:"top"},...ow(h),children:C.jsx(nk,{dense:!0,sx:{p:0},children:te.map(t==null?void 0:t.events,v=>C.jsx(hu,{selected:v.step===n,sx:{borderLeft:`4px solid ${l1(v.data.type)}`},onClick:()=>{h.close(),e==null||e(),te.delay(()=>r==null?void 0:r(v.step),150)},children:C.jsx(X4,{primary:te.startCase(v.data.type),secondary:`Step ${v.step}`})}))})})]})}})}function PNe({selection:e,onClose:t}){const n=ONe(),r=Aee(e),{client:i}=e??{};return C.jsx(Rp,{open:!!e,anchorReference:"anchorPosition",anchorPosition:{top:(i==null?void 0:i.y)??0,left:(i==null?void 0:i.x)??0},onClose:t,keepMounted:!0,children:C.jsx(nk,{dense:!0,sx:{py:0},children:C.jsx(n,{event:r,children:o=>{const s=te.entries(o);return s.length?te.chain(s).sortBy(([,l])=>l.index).map(([,{items:l,primary:c}],d)=>C.jsxs(C.Fragment,{children:[!!d&&C.jsx(Iu,{sx:{my:1,mx:2}}),c&&C.jsx(ux,{sx:{py:0},children:C.jsx(Lt,{color:"text.secondary",variant:"overline",children:c})}),te.chain(l).entries().sortBy(([,f])=>f.index).map(([f,{action:h,icon:p,primary:g,secondary:v}])=>h?C.jsxs(hu,{onClick:()=>{h(),t==null||t()},children:[p&&C.jsx(fu,{children:p}),C.jsx(ol,{primary:g,sx:{mr:4}}),C.jsx(Lt,{variant:"body2",color:"text.secondary",children:v})]},f):C.jsxs(ux,{children:[p&&C.jsx(fu,{children:p}),C.jsx(ol,{primary:g,sx:{mr:4}}),C.jsx(Lt,{variant:"body2",color:"text.secondary",children:v})]},f)).value()]})).value():C.jsx(C.Fragment,{children:C.jsx(ux,{children:C.jsx(Lt,{children:"No info to show."})})})}})})})}const YG=({children:e})=>C.jsx(C.Fragment,{children:e==null?void 0:e({})});function ONe(){const[{layers:e}]=Pp();return I.useMemo(()=>te.chain(e).reduce((t,n)=>{var i;const r=((i=Kee(n))==null?void 0:i.getSelectionInfo)??YG;return({children:o,event:s})=>C.jsx(r,{layer:n.key,event:s,children:l=>C.jsx(t,{event:s,children:c=>o==null?void 0:o(te.merge(l,c))})})},YG).value(),[e])}const[Mk,MNe]=Jl([],{reduce:KK}),DNe={tileSubdivision:1,workerCount:8,tileResolution:{width:te.round(256*devicePixelRatio),height:te.round(256*devicePixelRatio)}},Ree=I.createContext({});function LNe(){return I.useContext(Ree)}function NNe(e,{width:t,height:n}={}){const r=Pn(),[i]=Mk(),o=I.useRef(null),[s,l]=I.useState(""),[c,d]=I.useState();return I.useEffect(()=>{if(l(""),o.current&&t&&n&&e){const f=te.find(i,h=>h.renderer.meta.id===e);if(f){const h=new f.renderer.constructor;return h.setup({...DNe,screenSize:{width:t,height:n},backgroundColor:r.palette.background.paper,accentColor:r.palette.primary.main}),o.current.append(h.getView()),d(h),()=>{var p,g;try{(g=(p=o.current)==null?void 0:p.removeChild)==null||g.call(p,h.getView()),d(void 0)}catch(v){console.warn(v)}finally{h.destroy()}}}}},[o.current,te.map,e,i,r,l,d]),Vxe(()=>{c&&t&&n&&c.setOptions({screenSize:{width:t,height:n}})},r.transitions.duration.standard,[c,t,n]),{instance:c,ref:o,error:s}}function BNe(){const[{map:e,specimen:t}]=Ck();return!!(e||t)&&C.jsx(G1,{sx:{position:"absolute",top:n=>n.spacing(6+2),right:n=>n.spacing(2)}})}function $Ne({width:e,height:t,renderer:n,rendererRef:r,layers:i}){const{instance:o,error:s,ref:l}=NNe(n,{width:e,height:t}),[c,d]=I.useState();I.useEffect(()=>{if(o){const h=(p,g)=>{const v=p;d({client:{x:v.clientX,y:v.clientY},world:g.world,info:{point:g.world,components:g.components}})};return o.on("click",h),()=>void o.off("click",h)}},[o]);const f=I.useMemo(()=>({renderer:o}),[o]);return I.useEffect(()=>r==null?void 0:r(o),[o,r]),C.jsxs(C.Fragment,{children:[C.jsx(BNe,{}),C.jsx(Ree.Provider,{value:f,children:i!=null&&i.length?s?C.jsxs(lt,{sx:{display:"flex",flexDirection:"column",width:e,height:t,alignItems:"center",justifyContent:"center",color:"text.secondary"},children:[C.jsx(exe,{sx:{mb:2},fontSize:"large"}),s]}):C.jsx(C.Fragment,{children:C.jsx(lt,{ref:l,children:i.map(h=>C.jsx(yFe,{layer:h},h.key))})}):C.jsx(Hh,{icon:C.jsx(qK,{}),label:"No layers to render",width:e,height:t})}),C.jsx(PNe,{selection:c,onClose:()=>d(void 0)})]})}function m1({nodes:e}){const{renderer:t}=LNe();return I.useEffect(()=>{if(t&&(e!=null&&e.length))return t.add(e.flat())},[t,e]),C.jsx(C.Fragment,{})}function FNe({nodes:e,step:t}){const r=te.floor((t??0)/200)*200,i=I.useMemo(()=>te.slice(e,0,r),[e,r]),o=I.useMemo(()=>te.slice(e,r,(t??0)+1),[e,r,t]);return C.jsxs(C.Fragment,{children:[!!r&&C.jsx(m1,{nodes:i}),C.jsx(m1,{nodes:o})]})}const Iee=(e,t,n)=>{const r=I.useRef(n||[]),o=r.current===n||!r.current.every((l,c)=>l===n[c]);r.current=n;const s=t.map(()=>null);return I.useEffect(o?()=>void e():()=>{},o?t:s)};function zNe(e,t){return te.zip(e,t).every(([n,r])=>n===r)}const jNe=(e,t=[],n=[])=>{const[r,i]=I.useState(t),[o,s]=I.useState(n);return I.useEffect(()=>{zNe(o,n)||(i(t),s(n))},[t,n,o]),kee(e,[...r,...o])};function aj(){const[e]=Ig();return I.useCallback(t=>te.find(e,t),[e])}function UNe(e){return aj()({url:e})}function HNe(e){const t=ml(),n=Op("map"),r=aj(),i=I.useMemo(()=>Bp(async({source:c,id:d}={})=>{if(c&&d){const f=r({url:c});if(f){t("Fetching map...");const h=await f.call("features/map",{id:d});return h==null?void 0:h.content}}},{normalizer:JSON.stringify}),[r,t]),{content:o,source:s,id:l}=e??{};return av(()=>n(async()=>{if(l)return{...e,content:o||await i({source:s,id:l})}}),[i,o,s,l])}function WNe(e){const t=ml(),n=Pn(),r=Op("map"),{format:i,content:o}=e??{};return av(()=>r(async()=>{var l,c;const s=n.palette.mode==="dark"?Vg:Gg;if(i&&o){t("Processing map...");const d=await((c=(l=Vz(i))==null?void 0:l.parse)==null?void 0:c.call(l,o,{color:s(n.palette.background.paper,1-n.palette.action.hoverOpacity)}))??{nodes:[]};return t("Map loaded",`${d.nodes.length} elements, ${d.log.join(", ")}`),d}}),[i,o,n])}const GNe={key:"map",inferName:e=>{var t;return(t=e==null?void 0:e.source)!=null&&t.map?`${e.source.map.name} (${te.startCase(e.source.map.format)})`:"Untitled Map"},editor:Tg(({value:e,produce:t})=>{var n;return C.jsx(C.Fragment,{children:C.jsx(a1,{label:"Source",content:C.jsx(WPe,{value:(n=e==null?void 0:e.source)==null?void 0:n.map,onChange:r=>t(i=>te.set(i,"source.map",r))})})})}),renderer:({layer:e})=>{var r;const{nodes:t}=((r=e==null?void 0:e.source)==null?void 0:r.parsedMap)??{},n=I.useMemo(()=>[t??[]],[t]);return C.jsx(m1,{nodes:n})},steps:({children:e})=>C.jsx(C.Fragment,{children:e==null?void 0:e([])}),service:Tg(({value:e,produce:t})=>{var i;const{result:n}=HNe((i=e==null?void 0:e.source)==null?void 0:i.map),{result:r}=WNe(n);return Iee(()=>void t(o=>te.set(o,"source.parsedMap",r)),[r,t],[r]),C.jsx(C.Fragment,{})}),getSelectionInfo:({children:e,event:t,layer:n})=>{const{layer:r,setLayer:i,layers:o}=bp(n),{parsedMap:s}=(r==null?void 0:r.source)??{},{point:l,node:c}=I.useMemo(()=>{var f,h,p,g;if(s&&t){const v=(g=(p=Vz((h=(f=r==null?void 0:r.source)==null?void 0:f.map)==null?void 0:h.format))==null?void 0:p.hydrate)==null?void 0:g.call(p,s);if(v){const y=(t==null?void 0:t.world)&&v.snap(t.world);if(y){const S=(t==null?void 0:t.world)&&v.nodeAt(y);return{point:y,node:S}}}}return{}},[s,t]),d=I.useMemo(()=>({...r&&l&&!te.isUndefined(c)&&{[r.key]:{primary:_s(r),items:{point:{primary:"Point",secondary:`(${te.round(l.x,2)}, ${te.round(l.y,2)})`}}}}}),[l,c,r,o,i]);return C.jsx(C.Fragment,{children:e==null?void 0:e(d)})}};var DN=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,bo,LS,VNe={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},Hu;function LN(e){return DN.lastIndex=0,DN.test(e)?'"'+e.replace(DN,function(t){var n=VNe[t];return typeof n=="string"?n:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function NS(e,t,n){var r,i,o,s,l=bo,c,d=t[e];switch(d&&typeof d=="object"&&typeof d.toJSON=="function"&&(d=d.toJSON(e)),typeof Hu=="function"&&(d=Hu.call(t,e,d)),typeof d){case"string":return LN(d);case"number":return isFinite(d)?String(d):"null";case"boolean":case"null":return String(d);case"object":if(!d)return"null";if(bo+=LS,c=[],Object.prototype.toString.apply(d)==="[object Array]"){for(s=d.length,r=0;rn?`[ `+bo+c.join(`, `+bo)+` -`+l+"]":"[ "+c.join(", ")+" ]":"["+c.join(",")+"]",bo=l,o}if(zu&&typeof zu=="object")for(s=zu.length,r=0;rn?`{ +`+l+"]":"[ "+c.join(", ")+" ]":"["+c.join(",")+"]",bo=l,o}if(Hu&&typeof Hu=="object")for(s=Hu.length,r=0;rn?`{ `+bo+c.join(`, `+bo)+` -`+l+"}":"{ "+c.join(", ")+" }":"{"+c.join(",")+"}",bo=l,o}}function WNe(e,t,n,r){var i;if(bo="",DS="",r||(r=0),typeof r!="number")throw new Error("beaufifier: limit must be a number");if(typeof n=="number")for(i=0;i({result:"",error:void 0,offset:0}),[])}function oj(e){const t=hl(),{layer:n,setLayer:r}=vp(e),{playback:i,playbackTo:o,step:s=0}=(n==null?void 0:n.source)??{},l=te.min([o,s])??0,c=!!o,d=i==="playing",[f,h]=[0,(o??1)-1];return R.useMemo(()=>{function p(S){r(ca(n,_=>te.set(_,"source",{..._==null?void 0:_.source,...S})))}const g={start:f,end:h,step:l,canPlay:c&&!d&&l0},v=S=>te.clamp(l+S,f,h);return{playing:i==="playing",...g,...{play:()=>{t("Playback started"),p({playback:"playing",step:v(1)})},pause:(S=0)=>{t("Playback paused"),p({playback:"paused",step:v(S)})},stepTo:(S=0)=>p({step:S}),stop:()=>p({step:f,playback:"paused"}),stepForward:()=>p({step:v(1)}),stepBackward:()=>p({step:v(-1)}),tick:(S=1)=>p({playback:"playing",step:v(S)})}}},[h,i,d,c,f,l,r])}function XNe(e,t){let n=!1;return requestAnimationFrame(async()=>{const r=await e();n||t(r)}),()=>{n=!0}}function YNe({children:e,value:t}){const{step:n,tick:r,end:i,playing:o,pause:s}=oj(t==null?void 0:t.key),l=hl(),[{playbackRate:c=1}]=Ru(),d=qNe(),f=R.useCallback((h,p)=>C.jsx(G4,{primary:h,secondary:`Step ${n+p}`}),[n]);return R.useEffect(()=>{if(o){let h=te.noop;const p=setInterval(()=>{n{for(const g of te.range(c)){const v=d(n+g);if(v.result||v.error)return{...v,offset:g}}return{result:"",offset:0,error:void 0}},({result:g,offset:v,error:y})=>{y?(l(`${te.trimEnd(y,".")}`,`${v}`),s()):g?(l(`Breakpoint hit: ${g}`,`${v}`),s(v)):r(c)}):s()},1e3/60);return()=>{h(),clearInterval(p)}}},[f,o,i,n,s,r,l,d,c]),C.jsx(C.Fragment,{children:e})}function KNe({layer:e}){const{playing:t,canPause:n,canPlay:r,canStepBackward:i,canStepForward:o,canStop:s,pause:l,play:c,stepBackward:d,stepForward:f,stop:h}=oj(e==null?void 0:e.key);return C.jsxs(C.Fragment,{children:[C.jsx(Nm,{label:"step-backward",icon:C.jsx(vxe,{}),onClick:d,disabled:!i}),C.jsx(Nm,{...t?{label:"pause",icon:C.jsx(dxe,{}),onClick:()=>l(),disabled:!n}:{label:"play",icon:C.jsx(hxe,{}),onClick:()=>c(),disabled:!r,color:"primary"}}),C.jsx(Nm,{label:"step-forward",icon:C.jsx(gxe,{}),onClick:f,disabled:!o}),C.jsx(Nm,{label:"stop",icon:C.jsx(yxe,{}),onClick:h,disabled:!s})]})}function VG(e){switch(typeof e){case"number":case"string":return`${e}`;case"undefined":return"null";default:return C.jsx("code",{children:te.truncate(JSON.stringify(e).replace(` -`,", "),{length:30})})}}function qG({label:e,value:t,type:n}){return C.jsxs(bn,{width:"auto",mr:3,mb:.5,children:[C.jsx(zt,{component:"div",variant:"body2",...n,sx:{opacity:.54,...n==null?void 0:n.sx},children:e}),C.jsx(Kr,{}),C.jsx(zt,{component:"div",variant:"body2",...n,children:VG(t)??"none"})]},`${e}::${VG(t)}`)}function rC({event:e,variant:t="body2",max:n=10,...r}){const i=te.filter(te.entries(e),([,o])=>o!==void 0);return C.jsxs(bn,{...r,children:[te.map(te.slice(i,0,n),([o,s],l)=>C.jsx(qG,{label:o,value:s,type:{variant:t}},l)),i.length>n&&C.jsx(qG,{label:`${i.length-n} more`,type:{sx:{pt:1}},value:""})]})}var kee={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Nt,function(){return function(n){function r(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return n[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}var i={};return r.m=n,r.c=i,r.d=function(o,s,l){r.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:l})},r.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(s,"a",s),s},r.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},r.p="",r(r.s=1)}([function(n,r,i){function o(l){var c=l===void 0?{}:l,d=c.ESCAPE,f=d===void 0?/^\\/:d,h=c.VARIABLE_START,p=h===void 0?/^\${\s*/:h,g=c.VARIABLE_END,v=g===void 0?/^\s*}/:g,y=c.PIPE_START,S=y===void 0?/^\s*\|\s*/:y,_=c.PIPE_PARAMETER_START,b=_===void 0?/^\s*:\s*/:_,x=c.QUOTED_STRING,E=x===void 0?r.DEFAULT_QUOTED_STRING_REGEX:x,A=c.QUOTED_STRING_TEST,I=A===void 0?null:A,k=c.QUOTED_STRING_GET_AND_ADVANCE,O=k===void 0?null:k,L=c.QUOTED_STRING_IN_PARAMETER_TEST,N=L===void 0?null:L,H=c.QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE,W=H===void 0?null:H,z=I||function(V){return E.test(V)},D=O||s(E),F=N||function(V){return E.test(V)},j=W||s(E);return function(V){function G(Re){Re===void 0&&(Re=1),pe=pe.substr(Re)}function K(Re){Re===void 0&&(Re=/^/),G(pe.match(Re)[0].length)}function Y(){var Re;return K(f),Re=pe.length>0?pe[0]:"",G(),Re}function J(Re){var Fe=(Re===void 0?{}:Re).isNull,it=Fe!==void 0&&Fe;me={name:"",pipes:[]},qe=!it}function ie(){ve.variables.push(me),J({isNull:!0})}function ce(Re){var Fe=(Re===void 0?{}:Re).isNull,it=Fe!==void 0&&Fe;be={name:"",parameters:[]},at=!it}function ue(){me.pipes.push(be),ce({isNull:!0})}function se(Re){var Fe=(Re===void 0?{}:Re).isNull,it=Fe!==void 0&&Fe;Qe="",Lt=!it}function Q(){be.parameters.push(Qe),se({isNull:!0})}function ae(){return!!v.test(pe)&&(K(v),ye>=3&&Q(),ye>=2&&ue(),ye>=1&&ie(),ye=0,!0)}function le(){return!!S.test(pe)&&(K(S),ye>=3&&Q(),ye>=2&&ue(),ye>=1&&ce(),ye=2,!0)}function he(){return!!b.test(pe)&&(K(b),ye>=3&&Q(),ye>=2&&se(),ye=3,!0)}for(var pe=V,ve={literals:[],variables:[]},ye=0,xe="",me={name:"",pipes:[]},be={name:"",parameters:[]},Qe="",qe=!1,at=!1,Lt=!1;pe&&pe.length>0;)switch(ye){case 0:if(f.test(pe)){xe+=Y();continue}if(p.test(pe)){ye=1,J(),ve.literals.push(xe),xe="",K(p);continue}xe+=pe[0],G();break;case 1:if(f.test(pe)){me.name+=Y();continue}if(ae()||le())continue;if(z(pe)){me.name+=D(pe,G);continue}me.name+=pe[0],G();break;case 2:if(f.test(pe)){be.name+=Y();continue}if(ae()||he()||le())continue;if(z(pe)){be.name+=D(pe,G);continue}be.name+=pe[0],G();break;case 3:if(f.test(pe)){Qe+=Y();continue}if(ae()||he()||le())continue;if(F(pe)){Qe+=j(pe,G);continue}Qe+=pe[0],G()}return Lt&&be.parameters.push(Qe),at&&me.pipes.push(be),qe&&ve.variables.push(me),ve.literals.push(xe),ve}}function s(l){return function(c,d){var f=c.match(l);return d(f[0].length),f.slice(2).join("").replace("\\\\","\\")}}Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_QUOTED_STRING_REGEX=/^('((?:[^'\\]|\\.)*)'|'((?:[^'\\]|\\.)*)$|"((?:[^"\\]|\\.)*)"|"((?:[^"\\]|\\.)*)$)/,r.parseStringTemplateGenerator=o,r.parseStringTemplate=o(),r.getQuotedStringAndAdvanceForRegex=s},function(n,r,i){n.exports=i(2)},function(n,r,i){function o(s){for(var l in s)r.hasOwnProperty(l)||(r[l]=s[l])}Object.defineProperty(r,"__esModule",{value:!0}),o(i(0)),o(i(3))},function(n,r,i){function o(f){return function(h){return f.hasOwnProperty(h)?f[h]:h.split(".").reduce(function(p,g){return p.hasOwnProperty(g)?p[g]:""},f)}}function s(f,h,p,g){g===void 0&&(g=o(h));var v=g(f.name);return f.pipes.reduce(function(y,S){return p.hasOwnProperty(S.name)?p[S.name](y,S.parameters):y},v??"")}function l(f,h,p,g){return g===void 0&&(g=o(h)),f.literals.length===0?"":f.literals.slice(1).reduce(function(v,y,S){return""+v+s(f.variables[S],h,p,g)+y},f.literals[0])}function c(f,h,p){return l(d.parseStringTemplate(f),h,p)}Object.defineProperty(r,"__esModule",{value:!0});var d=i(0);r.evaluateParsedString=l,r.evaluateStringTemplate=c}])})})(kee);var Aee=kee.exports;function QNe(e={},t){const n={};for(const r of Object.keys(e))n[r]=r==="$"?e[r]:t(e[r],r,e);return Object.setPrototypeOf(n,e)}function ZF(e){switch(e==null?void 0:e.constructor){case Array:{const t=te.map(e,ZF);return n=>te.map(t,r=>r(n))}case Object:{const t=te.mapValues(e,ZF);return n=>te.mapValues(t,r=>r(n))}case String:return e3(e);default:return()=>e}}function JNe(e={}){return QNe(e,t=>te.isFunction(t)?t:ZF(t))}const XG=e=>{const t=Function("$",`return ${e};`);return n=>t(new Proxy(JNe(n),{get(r,i){return typeof(r==null?void 0:r[i])=="function"?r[i]({}):r==null?void 0:r[i]}}))},ZNe=/^\{\{\s*/,eBe=/^\s*\}\}/,DN=/\b\B/,tBe=Aee.parseStringTemplateGenerator({VARIABLE_START:ZNe,VARIABLE_END:eBe,PIPE_START:DN,PIPE_PARAMETER_START:DN,QUOTED_STRING:DN}),e3=Lp(e=>{const t=tBe(e);return te.join(t.literals,"")?n=>Aee.evaluateParsedString(t,{},{},r=>XG(r)(n)):XG(t.variables[0].name)},{primitive:!0});function nBe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Iee={exports:{}};(function(e,t){(function(n,r){typeof nBe=="function"?e.exports=r():n.pluralize=r()})(Nt,function(){var n=[],r=[],i={},o={},s={};function l(y){return typeof y=="string"?new RegExp("^"+y+"$","i"):y}function c(y,S){return y===S?S:y===y.toLowerCase()?S.toLowerCase():y===y.toUpperCase()?S.toUpperCase():y[0]===y[0].toUpperCase()?S.charAt(0).toUpperCase()+S.substr(1).toLowerCase():S.toLowerCase()}function d(y,S){return y.replace(/\$(\d{1,2})/g,function(_,b){return S[b]||""})}function f(y,S){return y.replace(S[0],function(_,b){var x=d(S[1],arguments);return c(_===""?y[b-1]:_,x)})}function h(y,S,_){if(!y.length||i.hasOwnProperty(y))return S;for(var b=_.length;b--;){var x=_[b];if(x[0].test(S))return f(S,x)}return S}function p(y,S,_){return function(b){var x=b.toLowerCase();return S.hasOwnProperty(x)?c(b,x):y.hasOwnProperty(x)?c(b,y[x]):h(x,b,_)}}function g(y,S,_,b){return function(x){var E=x.toLowerCase();return S.hasOwnProperty(E)?!0:y.hasOwnProperty(E)?!1:h(E,E,_)===E}}function v(y,S,_){var b=S===1?v.singular(y):v.plural(y);return(_?S+" ":"")+b}return v.plural=p(s,o,n),v.isPlural=g(s,o,n),v.singular=p(o,s,r),v.isSingular=g(o,s,r),v.addPluralRule=function(y,S){n.push([l(y),S])},v.addSingularRule=function(y,S){r.push([l(y),S])},v.addUncountableRule=function(y){if(typeof y=="string"){i[y.toLowerCase()]=!0;return}v.addPluralRule(y,"$0"),v.addSingularRule(y,"$0")},v.addIrregularRule=function(y,S){S=S.toLowerCase(),y=y.toLowerCase(),s[y]=S,o[S]=y},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(y){return v.addIrregularRule(y[0],y[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(y){return v.addPluralRule(y[0],y[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(y){return v.addSingularRule(y[0],y[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(v.addUncountableRule),v})})(Iee);var rBe=Iee.exports;const iBe=zs(rBe),oBe=""+new URL("parseTrace.worker-cfbe532e.js",import.meta.url).href;/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Ree(e){return typeof e>"u"||e===null}function sBe(e){return typeof e=="object"&&e!==null}function aBe(e){return Array.isArray(e)?e:Ree(e)?[]:[e]}function lBe(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n({result:"",error:void 0,offset:0}),[])}function lj(e){const t=ml(),{layer:n,setLayer:r}=bp(e),{playback:i,playbackTo:o,step:s=0}=(n==null?void 0:n.source)??{},l=te.min([o,s])??0,c=!!o,d=i==="playing",[f,h]=[0,(o??1)-1];return I.useMemo(()=>{function p(S){r(ua(n,_=>te.set(_,"source",{..._==null?void 0:_.source,...S})))}const g={start:f,end:h,step:l,canPlay:c&&!d&&l0},v=S=>te.clamp(l+S,f,h);return{playing:i==="playing",...g,...{play:()=>{t("Playback started"),p({playback:"playing",step:v(1)})},pause:(S=0)=>{t("Playback paused"),p({playback:"paused",step:v(S)})},stepTo:(S=0)=>p({step:S}),stop:()=>p({step:f,playback:"paused"}),stepForward:()=>p({step:v(1)}),stepBackward:()=>p({step:v(-1)}),tick:(S=1)=>p({playback:"playing",step:v(S)})}}},[h,i,d,c,f,l,r])}function QNe(e,t){let n=!1;return requestAnimationFrame(async()=>{const r=await e();n||t(r)}),()=>{n=!0}}function JNe({children:e,value:t}){const{step:n,tick:r,end:i,playing:o,pause:s}=lj(t==null?void 0:t.key),l=ml(),[{playbackRate:c=1}]=Mu(),d=KNe(),f=I.useCallback((h,p)=>C.jsx(X4,{primary:h,secondary:`Step ${n+p}`}),[n]);return I.useEffect(()=>{if(o){let h=te.noop;const p=setInterval(()=>{n{for(const g of te.range(c)){const v=d(n+g);if(v.result||v.error)return{...v,offset:g}}return{result:"",offset:0,error:void 0}},({result:g,offset:v,error:y})=>{y?(l(`${te.trimEnd(y,".")}`,`${v}`),s()):g?(l(`Breakpoint hit: ${g}`,`${v}`),s(v)):r(c)}):s()},1e3/60);return()=>{h(),clearInterval(p)}}},[f,o,i,n,s,r,l,d,c]),C.jsx(C.Fragment,{children:e})}function ZNe({layer:e}){const{playing:t,canPause:n,canPlay:r,canStepBackward:i,canStepForward:o,canStop:s,pause:l,play:c,stepBackward:d,stepForward:f,stop:h}=lj(e==null?void 0:e.key);return C.jsxs(C.Fragment,{children:[C.jsx($m,{label:"step-backward",icon:C.jsx(wxe,{}),onClick:d,disabled:!i}),C.jsx($m,{...t?{label:"pause",icon:C.jsx(mxe,{}),onClick:()=>l(),disabled:!n}:{label:"play",icon:C.jsx(vxe,{}),onClick:()=>c(),disabled:!r,color:"primary"}}),C.jsx($m,{label:"step-forward",icon:C.jsx(xxe,{}),onClick:f,disabled:!o}),C.jsx($m,{label:"stop",icon:C.jsx(_xe,{}),onClick:h,disabled:!s})]})}function KG(e){switch(typeof e){case"number":case"string":return`${e}`;case"undefined":return"null";default:return C.jsx("code",{children:te.truncate(JSON.stringify(e).replace(` +`,", "),{length:30})})}}function QG({label:e,value:t,type:n}){return C.jsxs(gn,{width:"auto",mr:3,mb:.5,children:[C.jsx(Lt,{component:"div",variant:"body2",...n,sx:{opacity:.54,...n==null?void 0:n.sx},children:e}),C.jsx(Kr,{}),C.jsx(Lt,{component:"div",variant:"body2",...n,children:KG(t)??"none"})]},`${e}::${KG(t)}`)}function oC({event:e,variant:t="body2",max:n=10,...r}){const i=te.filter(te.entries(e),([,o])=>o!==void 0);return C.jsxs(gn,{...r,children:[te.map(te.slice(i,0,n),([o,s],l)=>C.jsx(QG,{label:o,value:s,type:{variant:t}},l)),i.length>n&&C.jsx(QG,{label:`${i.length-n} more`,type:{sx:{pt:1}},value:""})]})}var Oee={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Bt,function(){return function(n){function r(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return n[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}var i={};return r.m=n,r.c=i,r.d=function(o,s,l){r.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:l})},r.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(s,"a",s),s},r.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},r.p="",r(r.s=1)}([function(n,r,i){function o(l){var c=l===void 0?{}:l,d=c.ESCAPE,f=d===void 0?/^\\/:d,h=c.VARIABLE_START,p=h===void 0?/^\${\s*/:h,g=c.VARIABLE_END,v=g===void 0?/^\s*}/:g,y=c.PIPE_START,S=y===void 0?/^\s*\|\s*/:y,_=c.PIPE_PARAMETER_START,b=_===void 0?/^\s*:\s*/:_,x=c.QUOTED_STRING,E=x===void 0?r.DEFAULT_QUOTED_STRING_REGEX:x,A=c.QUOTED_STRING_TEST,R=A===void 0?null:A,k=c.QUOTED_STRING_GET_AND_ADVANCE,O=k===void 0?null:k,L=c.QUOTED_STRING_IN_PARAMETER_TEST,N=L===void 0?null:L,H=c.QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE,W=H===void 0?null:H,z=R||function(V){return E.test(V)},D=O||s(E),F=N||function(V){return E.test(V)},j=W||s(E);return function(V){function G(Ie){Ie===void 0&&(Ie=1),pe=pe.substr(Ie)}function K(Ie){Ie===void 0&&(Ie=/^/),G(pe.match(Ie)[0].length)}function Y(){var Ie;return K(f),Ie=pe.length>0?pe[0]:"",G(),Ie}function J(Ie){var Fe=(Ie===void 0?{}:Ie).isNull,it=Fe!==void 0&&Fe;me={name:"",pipes:[]},qe=!it}function ie(){ve.variables.push(me),J({isNull:!0})}function ce(Ie){var Fe=(Ie===void 0?{}:Ie).isNull,it=Fe!==void 0&&Fe;be={name:"",parameters:[]},at=!it}function ue(){me.pipes.push(be),ce({isNull:!0})}function se(Ie){var Fe=(Ie===void 0?{}:Ie).isNull,it=Fe!==void 0&&Fe;Qe="",Nt=!it}function Q(){be.parameters.push(Qe),se({isNull:!0})}function ae(){return!!v.test(pe)&&(K(v),ye>=3&&Q(),ye>=2&&ue(),ye>=1&&ie(),ye=0,!0)}function le(){return!!S.test(pe)&&(K(S),ye>=3&&Q(),ye>=2&&ue(),ye>=1&&ce(),ye=2,!0)}function he(){return!!b.test(pe)&&(K(b),ye>=3&&Q(),ye>=2&&se(),ye=3,!0)}for(var pe=V,ve={literals:[],variables:[]},ye=0,xe="",me={name:"",pipes:[]},be={name:"",parameters:[]},Qe="",qe=!1,at=!1,Nt=!1;pe&&pe.length>0;)switch(ye){case 0:if(f.test(pe)){xe+=Y();continue}if(p.test(pe)){ye=1,J(),ve.literals.push(xe),xe="",K(p);continue}xe+=pe[0],G();break;case 1:if(f.test(pe)){me.name+=Y();continue}if(ae()||le())continue;if(z(pe)){me.name+=D(pe,G);continue}me.name+=pe[0],G();break;case 2:if(f.test(pe)){be.name+=Y();continue}if(ae()||he()||le())continue;if(z(pe)){be.name+=D(pe,G);continue}be.name+=pe[0],G();break;case 3:if(f.test(pe)){Qe+=Y();continue}if(ae()||he()||le())continue;if(F(pe)){Qe+=j(pe,G);continue}Qe+=pe[0],G()}return Nt&&be.parameters.push(Qe),at&&me.pipes.push(be),qe&&ve.variables.push(me),ve.literals.push(xe),ve}}function s(l){return function(c,d){var f=c.match(l);return d(f[0].length),f.slice(2).join("").replace("\\\\","\\")}}Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_QUOTED_STRING_REGEX=/^('((?:[^'\\]|\\.)*)'|'((?:[^'\\]|\\.)*)$|"((?:[^"\\]|\\.)*)"|"((?:[^"\\]|\\.)*)$)/,r.parseStringTemplateGenerator=o,r.parseStringTemplate=o(),r.getQuotedStringAndAdvanceForRegex=s},function(n,r,i){n.exports=i(2)},function(n,r,i){function o(s){for(var l in s)r.hasOwnProperty(l)||(r[l]=s[l])}Object.defineProperty(r,"__esModule",{value:!0}),o(i(0)),o(i(3))},function(n,r,i){function o(f){return function(h){return f.hasOwnProperty(h)?f[h]:h.split(".").reduce(function(p,g){return p.hasOwnProperty(g)?p[g]:""},f)}}function s(f,h,p,g){g===void 0&&(g=o(h));var v=g(f.name);return f.pipes.reduce(function(y,S){return p.hasOwnProperty(S.name)?p[S.name](y,S.parameters):y},v??"")}function l(f,h,p,g){return g===void 0&&(g=o(h)),f.literals.length===0?"":f.literals.slice(1).reduce(function(v,y,S){return""+v+s(f.variables[S],h,p,g)+y},f.literals[0])}function c(f,h,p){return l(d.parseStringTemplate(f),h,p)}Object.defineProperty(r,"__esModule",{value:!0});var d=i(0);r.evaluateParsedString=l,r.evaluateStringTemplate=c}])})})(Oee);var Mee=Oee.exports;function eBe(e={},t){const n={};for(const r of Object.keys(e))n[r]=r==="$"?e[r]:t(e[r],r,e);return Object.setPrototypeOf(n,e)}function t3(e){switch(e==null?void 0:e.constructor){case Array:{const t=te.map(e,t3);return n=>te.map(t,r=>r(n))}case Object:{const t=te.mapValues(e,t3);return n=>te.mapValues(t,r=>r(n))}case String:return n3(e);default:return()=>e}}function tBe(e={}){return eBe(e,t=>te.isFunction(t)?t:t3(t))}const JG=e=>{const t=Function("$",`return ${e};`);return n=>t(new Proxy(tBe(n),{get(r,i){return typeof(r==null?void 0:r[i])=="function"?r[i]({}):r==null?void 0:r[i]}}))},nBe=/^\{\{\s*/,rBe=/^\s*\}\}/,NN=/\b\B/,iBe=Mee.parseStringTemplateGenerator({VARIABLE_START:nBe,VARIABLE_END:rBe,PIPE_START:NN,PIPE_PARAMETER_START:NN,QUOTED_STRING:NN}),n3=Bp(e=>{const t=iBe(e);return te.join(t.literals,"")?n=>Mee.evaluateParsedString(t,{},{},r=>JG(r)(n)):JG(t.variables[0].name)},{primitive:!0});function oBe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Dee={exports:{}};(function(e,t){(function(n,r){typeof oBe=="function"?e.exports=r():n.pluralize=r()})(Bt,function(){var n=[],r=[],i={},o={},s={};function l(y){return typeof y=="string"?new RegExp("^"+y+"$","i"):y}function c(y,S){return y===S?S:y===y.toLowerCase()?S.toLowerCase():y===y.toUpperCase()?S.toUpperCase():y[0]===y[0].toUpperCase()?S.charAt(0).toUpperCase()+S.substr(1).toLowerCase():S.toLowerCase()}function d(y,S){return y.replace(/\$(\d{1,2})/g,function(_,b){return S[b]||""})}function f(y,S){return y.replace(S[0],function(_,b){var x=d(S[1],arguments);return c(_===""?y[b-1]:_,x)})}function h(y,S,_){if(!y.length||i.hasOwnProperty(y))return S;for(var b=_.length;b--;){var x=_[b];if(x[0].test(S))return f(S,x)}return S}function p(y,S,_){return function(b){var x=b.toLowerCase();return S.hasOwnProperty(x)?c(b,x):y.hasOwnProperty(x)?c(b,y[x]):h(x,b,_)}}function g(y,S,_,b){return function(x){var E=x.toLowerCase();return S.hasOwnProperty(E)?!0:y.hasOwnProperty(E)?!1:h(E,E,_)===E}}function v(y,S,_){var b=S===1?v.singular(y):v.plural(y);return(_?S+" ":"")+b}return v.plural=p(s,o,n),v.isPlural=g(s,o,n),v.singular=p(o,s,r),v.isSingular=g(o,s,r),v.addPluralRule=function(y,S){n.push([l(y),S])},v.addSingularRule=function(y,S){r.push([l(y),S])},v.addUncountableRule=function(y){if(typeof y=="string"){i[y.toLowerCase()]=!0;return}v.addPluralRule(y,"$0"),v.addSingularRule(y,"$0")},v.addIrregularRule=function(y,S){S=S.toLowerCase(),y=y.toLowerCase(),s[y]=S,o[S]=y},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(y){return v.addIrregularRule(y[0],y[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(y){return v.addPluralRule(y[0],y[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(y){return v.addSingularRule(y[0],y[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(v.addUncountableRule),v})})(Dee);var sBe=Dee.exports;const aBe=zs(sBe),lBe=""+new URL("parseTrace.worker-cfbe532e.js",import.meta.url).href;/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Lee(e){return typeof e>"u"||e===null}function cBe(e){return typeof e=="object"&&e!==null}function uBe(e){return Array.isArray(e)?e:Lee(e)?[]:[e]}function dBe(e,t){var n,r,i,o;if(t)for(o=Object.keys(t),n=0,r=o.length;n=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),UBe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function HBe(e){return!(e===null||!UBe.test(e)||e[e.length-1]==="_")}function WBe(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var GBe=/^[-+]?[0-9]+e/;function VBe(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Np.isNegativeZero(e))return"-0.0";return n=e.toString(10),GBe.test(n)?n.replace("e",".e"):n}function qBe(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Np.isNegativeZero(e))}var XBe=new eo("tag:yaml.org,2002:float",{kind:"scalar",resolve:HBe,construct:WBe,predicate:qBe,represent:VBe,defaultStyle:"lowercase"}),YBe=TBe.extend({implicit:[RBe,DBe,jBe,XBe]}),KBe=YBe,Oee=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Mee=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function QBe(e){return e===null?!1:Oee.exec(e)!==null||Mee.exec(e)!==null}function JBe(e){var t,n,r,i,o,s,l,c=0,d=null,f,h,p;if(t=Oee.exec(e),t===null&&(t=Mee.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],s=+t[5],l=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(f=+t[10],h=+(t[11]||0),d=(f*60+h)*6e4,t[9]==="-"&&(d=-d)),p=new Date(Date.UTC(n,r,i,o,s,l,c)),d&&p.setTime(p.getTime()-d),p}function ZBe(e){return e.toISOString()}var e$e=new eo("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:QBe,construct:JBe,instanceOf:Date,represent:ZBe});function t$e(e){return e==="<<"||e===null}var n$e=new eo("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t$e}),sj=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= -\r`;function r$e(e){if(e===null)return!1;var t,n,r=0,i=e.length,o=sj;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function i$e(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=sj,s=0,l=[];for(t=0;t>16&255),l.push(s>>8&255),l.push(s&255)),s=s<<6|o.indexOf(r.charAt(t));return n=i%4*6,n===0?(l.push(s>>16&255),l.push(s>>8&255),l.push(s&255)):n===18?(l.push(s>>10&255),l.push(s>>2&255)):n===12&&l.push(s>>4&255),new Uint8Array(l)}function o$e(e){var t="",n=0,r,i,o=e.length,s=sj;for(r=0;r>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[r];return i=o%3,i===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):i===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):i===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function s$e(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var a$e=new eo("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r$e,construct:i$e,predicate:s$e,represent:o$e}),l$e=Object.prototype.hasOwnProperty,c$e=Object.prototype.toString;function u$e(e){if(e===null)return!0;var t=[],n,r,i,o,s,l=e;for(n=0,r=l.length;n=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),GBe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function VBe(e){return!(e===null||!GBe.test(e)||e[e.length-1]==="_")}function qBe(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var XBe=/^[-+]?[0-9]+e/;function YBe(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if($p.isNegativeZero(e))return"-0.0";return n=e.toString(10),XBe.test(n)?n.replace("e",".e"):n}function KBe(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||$p.isNegativeZero(e))}var QBe=new eo("tag:yaml.org,2002:float",{kind:"scalar",resolve:VBe,construct:qBe,predicate:KBe,represent:YBe,defaultStyle:"lowercase"}),JBe=RBe.extend({implicit:[MBe,BBe,WBe,QBe]}),ZBe=JBe,Bee=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),$ee=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function e$e(e){return e===null?!1:Bee.exec(e)!==null||$ee.exec(e)!==null}function t$e(e){var t,n,r,i,o,s,l,c=0,d=null,f,h,p;if(t=Bee.exec(e),t===null&&(t=$ee.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(o=+t[4],s=+t[5],l=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(f=+t[10],h=+(t[11]||0),d=(f*60+h)*6e4,t[9]==="-"&&(d=-d)),p=new Date(Date.UTC(n,r,i,o,s,l,c)),d&&p.setTime(p.getTime()-d),p}function n$e(e){return e.toISOString()}var r$e=new eo("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:e$e,construct:t$e,instanceOf:Date,represent:n$e});function i$e(e){return e==="<<"||e===null}var o$e=new eo("tag:yaml.org,2002:merge",{kind:"scalar",resolve:i$e}),cj=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= +\r`;function s$e(e){if(e===null)return!1;var t,n,r=0,i=e.length,o=cj;for(n=0;n64)){if(t<0)return!1;r+=6}return r%8===0}function a$e(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,o=cj,s=0,l=[];for(t=0;t>16&255),l.push(s>>8&255),l.push(s&255)),s=s<<6|o.indexOf(r.charAt(t));return n=i%4*6,n===0?(l.push(s>>16&255),l.push(s>>8&255),l.push(s&255)):n===18?(l.push(s>>10&255),l.push(s>>2&255)):n===12&&l.push(s>>4&255),new Uint8Array(l)}function l$e(e){var t="",n=0,r,i,o=e.length,s=cj;for(r=0;r>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]),n=(n<<8)+e[r];return i=o%3,i===0?(t+=s[n>>18&63],t+=s[n>>12&63],t+=s[n>>6&63],t+=s[n&63]):i===2?(t+=s[n>>10&63],t+=s[n>>4&63],t+=s[n<<2&63],t+=s[64]):i===1&&(t+=s[n>>2&63],t+=s[n<<4&63],t+=s[64],t+=s[64]),t}function c$e(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var u$e=new eo("tag:yaml.org,2002:binary",{kind:"scalar",resolve:s$e,construct:a$e,predicate:c$e,represent:l$e}),d$e=Object.prototype.hasOwnProperty,f$e=Object.prototype.toString;function h$e(e){if(e===null)return!0;var t=[],n,r,i,o,s,l=e;for(n=0,r=l.length;n=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function jee(e){var t=/^\n* /;return t.test(e)}var Uee=1,i3=2,Hee=3,Wee=4,lm=5;function Y$e(e,t,n,r,i,o,s,l){var c,d=0,f=null,h=!1,p=!1,g=r!==-1,v=-1,y=q$e(Nb(e,0))&&X$e(Nb(e,e.length-1));if(t||s)for(c=0;c=65536?c+=2:c++){if(d=Nb(e,c),!g1(d))return lm;y=y&&ZG(d,f,l),f=d}else{for(c=0;c=65536?c+=2:c++){if(d=Nb(e,c),d===p1)h=!0,g&&(p=p||c-v-1>r&&e[v+1]!==" ",v=c);else if(!g1(d))return lm;y=y&&ZG(d,f,l),f=d}p=p||g&&c-v-1>r&&e[v+1]!==" "}return!h&&!p?y&&!s&&!i(e)?Uee:o===m1?lm:i3:n>9&&jee(e)?lm:s?o===m1?lm:i3:p?Wee:Hee}function K$e(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===m1?'""':"''";if(!e.noCompatMode&&(z$e.indexOf(t)!==-1||j$e.test(t)))return e.quotingType===m1?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),l=r||e.flowLevel>-1&&n>=e.flowLevel;function c(d){return V$e(e,d)}switch(Y$e(t,l,e.indent,s,c,e.quotingType,e.forceQuotes&&!r,i)){case Uee:return t;case i3:return"'"+t.replace(/'/g,"''")+"'";case Hee:return"|"+e9(t,e.indent)+t9(QG(t,o));case Wee:return">"+e9(t,e.indent)+t9(QG(Q$e(t,s),o));case lm:return'"'+J$e(t)+'"';default:throw new Zs("impossible error: invalid scalar style")}}()}function e9(e,t){var n=jee(e)?String(t):"",r=e[e.length-1]===` +`&&(o+=n),o+=s;return o}function o3(e,t){return` +`+$p.repeat(" ",e.indent*t)}function Y$e(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n=55296&&n<=56319&&t+1=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function Vee(e){var t=/^\n* /;return t.test(e)}var qee=1,s3=2,Xee=3,Yee=4,um=5;function J$e(e,t,n,r,i,o,s,l){var c,d=0,f=null,h=!1,p=!1,g=r!==-1,v=-1,y=K$e(Fb(e,0))&&Q$e(Fb(e,e.length-1));if(t||s)for(c=0;c=65536?c+=2:c++){if(d=Fb(e,c),!b1(d))return um;y=y&&r9(d,f,l),f=d}else{for(c=0;c=65536?c+=2:c++){if(d=Fb(e,c),d===v1)h=!0,g&&(p=p||c-v-1>r&&e[v+1]!==" ",v=c);else if(!b1(d))return um;y=y&&r9(d,f,l),f=d}p=p||g&&c-v-1>r&&e[v+1]!==" "}return!h&&!p?y&&!s&&!i(e)?qee:o===y1?um:s3:n>9&&Vee(e)?um:s?o===y1?um:s3:p?Yee:Xee}function Z$e(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===y1?'""':"''";if(!e.noCompatMode&&(H$e.indexOf(t)!==-1||W$e.test(t)))return e.quotingType===y1?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,n),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),l=r||e.flowLevel>-1&&n>=e.flowLevel;function c(d){return Y$e(e,d)}switch(J$e(t,l,e.indent,s,c,e.quotingType,e.forceQuotes&&!r,i)){case qee:return t;case s3:return"'"+t.replace(/'/g,"''")+"'";case Xee:return"|"+i9(t,e.indent)+o9(t9(t,o));case Yee:return">"+i9(t,e.indent)+o9(t9(eFe(t,s),o));case um:return'"'+tFe(t)+'"';default:throw new ea("impossible error: invalid scalar style")}}()}function i9(e,t){var n=Vee(e)?String(t):"",r=e[e.length-1]===` `,i=r&&(e[e.length-2]===` `||e===` `),o=i?"+":r?"":"-";return n+o+` -`}function t9(e){return e[e.length-1]===` -`?e.slice(0,-1):e}function Q$e(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var d=e.indexOf(` -`);return d=d!==-1?d:e.length,n.lastIndex=d,n9(e.slice(0,d),t)}(),i=e[0]===` +`}function o9(e){return e[e.length-1]===` +`?e.slice(0,-1):e}function eFe(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var d=e.indexOf(` +`);return d=d!==-1?d:e.length,n.lastIndex=d,s9(e.slice(0,d),t)}(),i=e[0]===` `||e[0]===" ",o,s;s=n.exec(e);){var l=s[1],c=s[2];o=c[0]===" ",r+=l+(!i&&!o&&c!==""?` -`:"")+n9(c,t),i=o}return r}function n9(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,i=0,o,s=0,l=0,c="";r=n.exec(e);)l=r.index,l-i>t&&(o=s>i?s:l,c+=` +`:"")+s9(c,t),i=o}return r}function s9(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,i=0,o,s=0,l=0,c="";r=n.exec(e);)l=r.index,l-i>t&&(o=s>i?s:l,c+=` `+e.slice(i,o),i=o+1),s=l;return c+=` `,e.length-i>t&&s>i?c+=e.slice(i,s)+` -`+e.slice(s+1):c+=e.slice(i),c.slice(1)}function J$e(e){for(var t="",n=0,r,i=0;i=65536?i+=2:i++)n=Nb(e,i),r=io[n],!r&&g1(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||H$e(n);return t}function Z$e(e,t,n){var r="",i=e.tag,o,s,l;for(o=0,s=n.length;o"u"&&_u(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function r9(e,t,n,r){var i="",o=e.tag,s,l,c;for(s=0,l=n.length;s"u"&&_u(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=r3(e,t)),e.dump&&p1===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function eFe(e,t,n){var r="",i=e.tag,o=Object.keys(n),s,l,c,d,f;for(s=0,l=o.length;s1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),_u(e,t,d,!1,!1)&&(f+=e.dump,r+=f));e.tag=i,e.dump="{"+r+"}"}function tFe(e,t,n,r){var i="",o=e.tag,s=Object.keys(n),l,c,d,f,h,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new Zs("sortKeys must be a boolean or a function");for(l=0,c=s.length;l1024,h&&(e.dump&&p1===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,h&&(p+=r3(e,t)),_u(e,t+1,f,!0,h)&&(e.dump&&p1===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=o,e.dump=i||"{}"}function i9(e,t,n){var r,i,o,s,l,c;for(i=n?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function _u(e,t,n,r,i,o,s){e.tag=null,e.dump=n,i9(e,n,!1)||i9(e,n,!0);var l=Dee.call(e.dump),c=r,d;r&&(r=e.flowLevel<0||e.flowLevel>t);var f=l==="[object Object]"||l==="[object Array]",h,p;if(f&&(h=e.duplicates.indexOf(n),p=h!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(f&&p&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),l==="[object Object]")r&&Object.keys(e.dump).length!==0?(tFe(e,t,e.dump,i),p&&(e.dump="&ref_"+h+e.dump)):(eFe(e,t,e.dump),p&&(e.dump="&ref_"+h+" "+e.dump));else if(l==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?r9(e,t-1,e.dump,i):r9(e,t,e.dump,i),p&&(e.dump="&ref_"+h+e.dump)):(Z$e(e,t,e.dump),p&&(e.dump="&ref_"+h+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&K$e(e,e.dump,t,o,c);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Zs("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(d=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?d="!"+d:d.slice(0,18)==="tag:yaml.org,2002:"?d="!!"+d.slice(18):d="!<"+d+">",e.dump=d+" "+e.dump)}return!0}function nFe(e,t){var n=[],r=[],i,o;for(o3(e,n,r),i=0,o=r.length;in(async()=>{var r;if(e!=null&&e.trace){t("Processing trace...");try{const i=await lFe(e);return t("Trace loaded",iBe("step",((r=i==null?void 0:i.stepsPersistent)==null?void 0:r.length)??0,!0)),i}catch(i){console.error(i),t("Error parsing",`${sFe(i)}`)}}}),[e])}const uFe=e=>e==null;function dFe(e){const t=[],n={},r={},i=te.chain(e==null?void 0:e.events).map((l,c)=>({step:c,id:l.id,pId:l.pId})).groupBy("id").value();te.forEach(e==null?void 0:e.events,({id:l,pId:c},d)=>{!uFe(c)&&n[l]!==c&&(t.push({id:l,pId:c,step:d,prev:te.last(t)}),n[l]=c),r[d]=te.last(t)});const o=(l,c=(d=>(d=e==null?void 0:e.events)==null?void 0:d.length)()??0)=>{let f=r[c];for(;f;){if(f.id===l)return f.pId;f=f.prev}};return{getParent:o,getPath:l=>{const c=[l];let d={...(e.events??[])[l],step:l};for(;d;){const f=o(d.id,d.step);if(f){const h=te.findLast(i[f],p=>p.step<=d.step);if(h)c.push(h.step),d=h;else break}else break}return c}}}const NS={key:"trace",inferName:e=>{var t,n;return((n=(t=e.source)==null?void 0:t.trace)==null?void 0:n.name)??"Untitled Trace"},editor:Cg(({value:e,produce:t})=>{var n,r,i,o;return C.jsxs(C.Fragment,{children:[C.jsx(i1,{label:"Trace",content:C.jsx(UPe,{onChange:s=>t(l=>te.set(l,"source.trace",{...s,key:Mo()})),value:(n=e==null?void 0:e.source)==null?void 0:n.trace})}),C.jsx(i1,{label:"Onion Skinning",content:C.jsx(Is,{disabled:!0,showArrow:!0,value:((r=e==null?void 0:e.source)==null?void 0:r.onion)??"off",items:["off","transparent","solid"].map(s=>({id:s,name:te.startCase(s)})),onChange:s=>t(l=>te.set(l,"source.onion",s))})}),C.jsx(MZ,{label:"Preview"}),C.jsx(dt,{sx:{height:240,mx:-2,mb:-2},children:C.jsx(Tee,{trace:(o=(i=e==null?void 0:e.source)==null?void 0:i.trace)==null?void 0:o.content})})]})}),service:Cg(({value:e,produce:t})=>{var i,o,s,l,c,d,f,h;const{palette:n}=Rn(),r=cFe({trace:(o=(i=e==null?void 0:e.source)==null?void 0:i.trace)==null?void 0:o.content,context:{color:Wz,themeAccent:n.primary.main,themeTextPrimary:n.text.primary,themeBackground:n.background.paper},view:"main"});return R.useEffect(()=>{t(p=>{var g,v,y,S;return te.set(p,"source.playbackTo",((S=(y=(v=(g=e==null?void 0:e.source)==null?void 0:g.trace)==null?void 0:v.content)==null?void 0:y.events)==null?void 0:S.length)??0)})},[(d=(c=(l=(s=e==null?void 0:e.source)==null?void 0:s.trace)==null?void 0:l.content)==null?void 0:c.events)==null?void 0:d.length]),Cee(async()=>{const p=await r();t(g=>te.set(g,"source.parsedTrace",p))},[r],[(h=(f=e==null?void 0:e.source)==null?void 0:f.trace)==null?void 0:h.key]),C.jsx(C.Fragment,{children:C.jsx(YNe,{value:e})})}),renderer:({layer:e})=>{var l,c;const t=(l=e==null?void 0:e.source)==null?void 0:l.parsedTrace,n=WK(((c=e==null?void 0:e.source)==null?void 0:c.step)??0,1e3/60),r=fFe(e,n),i=R.useMemo(()=>te.map(t==null?void 0:t.stepsPersistent,d=>te.map(d,f=>te.merge(f,{meta:{sourceLayer:e==null?void 0:e.key}}))),[t==null?void 0:t.stepsPersistent,e==null?void 0:e.key]),o=R.useMemo(()=>te.map(t==null?void 0:t.stepsTransient,d=>te.map(d,f=>te.merge(f,{meta:{sourceLayer:e==null?void 0:e.key}}))),[t==null?void 0:t.stepsTransient,e==null?void 0:e.key]),s=R.useMemo(()=>[o[n]??[]],[o,n]);return C.jsxs(C.Fragment,{children:[C.jsx(NNe,{step:n,nodes:i}),C.jsx(f1,{nodes:s}),r]})},steps:({layer:e,children:t})=>{var n,r,i;return C.jsx(C.Fragment,{children:t==null?void 0:t(((i=(r=(n=e==null?void 0:e.source)==null?void 0:n.trace)==null?void 0:r.content)==null?void 0:i.events)??[])})},getSelectionInfo:({layer:e,event:t,children:n})=>{const{layer:r,setLayer:i}=vp(e),o=R.useMemo(()=>{var d,f,h,p,g;const s=((h=(f=(d=r==null?void 0:r.source)==null?void 0:d.trace)==null?void 0:f.content)==null?void 0:h.events)??[],l=te.chain((p=t==null?void 0:t.info)==null?void 0:p.components).filter(v=>{var y;return((y=v.meta)==null?void 0:y.sourceLayer)===(r==null?void 0:r.key)}).map(v=>{var y;return(y=v.meta)==null?void 0:y.step}).filter(te.negate(te.isUndefined)).sort((v,y)=>v-y).value(),c=te.chain((g=t==null?void 0:t.info)==null?void 0:g.components).filter(v=>{var y;return((y=v.meta)==null?void 0:y.sourceLayer)===(r==null?void 0:r.key)}).filter(v=>v.meta.info).value();if(l.length&&r){const v=te.last(l),y=s[v];if(y)return{...te.keyBy(te.map(c,(S,_)=>({key:`${r.key}.${_}`,primary:`Selection in ${_s(r)}`,items:{info:{index:-1,primary:C.jsx(rC,{event:S.meta.info,vertical:!0})}}})),"key"),[r.key]:{primary:_s(r),items:{properties:{index:-2,primary:C.jsx(rC,{event:y,vertical:!0})},[`${y}`]:{primary:`Go to Step ${v}`,secondary:`${te.startCase(y.type)}`,action:()=>i(ca(r,S=>{te.set(S,"source.step",v)})),icon:C.jsx(Xbe,{})}}}}}return{}},[r,t]);return C.jsx(C.Fragment,{children:n==null?void 0:n(o)})}};function fFe(e,t=0){var o,s;const{palette:n}=Rn(),{getPath:r}=R.useMemo(()=>{var l,c;return(c=(l=e==null?void 0:e.source)==null?void 0:l.trace)!=null&&c.content?dFe(e.source.trace.content):{getParent:te.constant(void 0),getPath:te.constant([])}},[(s=(o=e==null?void 0:e.source)==null?void 0:o.trace)==null?void 0:s.content]);return R.useMemo(()=>{var l,c,d,f;if((f=(d=(c=(l=e==null?void 0:e.source)==null?void 0:l.trace)==null?void 0:c.content)==null?void 0:d.render)!=null&&f.path){const{pivot:h={},scale:p=1}=e.source.trace.content.render.path,{x:g,y:v}=h,y=g?e3(g):b=>b.event.x,S=v?e3(v):b=>b.event.y,_=te.map(r(t),b=>{var x,E,A,I;return(I=(A=(E=(x=e==null?void 0:e.source)==null?void 0:x.trace)==null?void 0:E.content)==null?void 0:A.events)==null?void 0:I[b]});if(_.length){const b=[{$:"rect",x:y({event:{x:0,y:0,...te.head(_)}})-2*p/2,y:S({event:{x:0,y:0,...te.head(_)}})-2*p/2,fill:o1("destination"),width:2*p,height:2*p},{$:"rect",x:y({event:{x:0,y:0,...te.last(_)}})-2*p/2,y:S({event:{x:0,y:0,...te.last(_)}})-2*p/2,fill:o1("source"),width:2*p,height:2*p},{$:"path",points:_.map(x=>({x:y({event:{x:0,y:0,...x}}),y:S({event:{x:0,y:0,...x}})})),fill:n.primary.main,alpha:1,lineWidth:1*p}];return C.jsx(f1,{nodes:[te.map(b,x=>({component:x,meta:{source:"path"}}))]})}}return C.jsx(C.Fragment,{})},[e,t,n,r])}async function hFe(e,t,n){for(const r of e){const i=await r.call("features/algorithms"),o=await r.call("features/formats");if(te.find(i,{id:t})&&te.find(o,{id:n}))return r}}const pFe={...NS,key:"query",editor:Cg(({value:e,produce:t})=>{var c,d;const{algorithm:n}=(e==null?void 0:e.source)??{},{layers:r,layer:i,key:o}=vp(void 0,f=>{var h;return((h=f.source)==null?void 0:h.type)==="map"}),[{algorithms:s}]=XE(),[l]=Ig();return C.jsxs(C.Fragment,{children:[C.jsx(i1,{label:"Algorithm",content:C.jsx(Is,{showArrow:!0,icon:C.jsx(txe,{}),label:"Choose Algorithm",value:n,items:s.map(f=>{var h;return{...f,description:(h=te.find(l,{url:f.source}))==null?void 0:h.name}}),onChange:async f=>t(h=>te.set(h,"source.algorithm",f))})}),!(s!=null&&s.length)&&C.jsx(zt,{variant:"body2",color:"warning.main",sx:{mb:1},children:"No connected solver has declared support for running algorithms"}),C.jsx(i1,{label:"Map",content:C.jsx(Is,{showArrow:!0,icon:C.jsx(W1,{}),label:"Choose Layer",value:o,items:r.map(f=>({id:f.key,name:_s(f)})),onChange:async f=>t(h=>te.set(h,"source.mapLayerKey",f))})}),i&&C.jsxs(zt,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:["Define source and destination nodes by clicking on valid regions on"," ",_s(i)]}),C.jsx(MZ,{label:"Preview"}),C.jsx(dt,{sx:{height:240,mx:-2,mb:-2},children:C.jsx(Tee,{trace:(d=(c=e==null?void 0:e.source)==null?void 0:c.trace)==null?void 0:d.content})})]})}),service:Cg(({value:e,produce:t})=>{const n=hl(),{algorithm:r,mapLayerKey:i,start:o,end:s}=(e==null?void 0:e.source)??{},[{layers:l}]=Ip(),[c]=Ig(),[{algorithms:d}]=XE(),f=R.useMemo(()=>{if(i&&r)return te.find(l,{key:i})},[i,r,l]);return $Ne(async h=>{var p;if(f&&r){const{format:g,content:v}=((p=f==null?void 0:f.source)==null?void 0:p.map)??{};if(g&&v){const y=await hFe(c,r,g),S=te.find(d,{id:r});if(y){n(`Executing ${_s(e)} using ${y.name}...`);const _=await y.call("solve/pathfinding",{format:g,instances:[{start:o??0,end:s??0}],mapURI:`map:${encodeURIComponent(v)}`,algorithm:r});h.aborted?n("Canceled"):t(b=>te.set(b,"source.trace",{name:`${S==null?void 0:S.name}`,content:_,key:Mo()}))}}}},[f,c,r,o,s,t,n,e,d],[f,c,r,o,s]),C.jsx(C.Fragment,{children:NS.service})}),inferName:e=>{var t,n;return((n=(t=e.source)==null?void 0:t.trace)==null?void 0:n.name)??"Untitled Query"},getSelectionInfo:({children:e,event:t,layer:n})=>{const r=NS.getSelectionInfo,{layer:i,setLayer:o,layers:s}=vp(n),l=R.useMemo(()=>{const d=te.filter(s,{source:{type:"map"}});return te.filter(te.map(d,f=>{var p,g,v,y;const{parsedMap:h}=(f==null?void 0:f.source)??{};if(h&&t){const S=(y=(v=Hz((g=(p=f==null?void 0:f.source)==null?void 0:p.map)==null?void 0:g.format))==null?void 0:v.hydrate)==null?void 0:y.call(v,h);if(S){const _=(t==null?void 0:t.world)&&S.snap(t.world);if(_){const b=(t==null?void 0:t.world)&&S.nodeAt(_);return{point:_,node:b,key:f.key,name:_s(f)}}}}}))},[s]),c=R.useMemo(()=>!!i&&!!l.length&&{[i.key]:{primary:_s(i),items:{...te.reduce(l,(d,f)=>({...d,[`${n}-${f==null?void 0:f.key}-source`]:{primary:"Set as source",secondary:f==null?void 0:f.name,action:()=>o(ca(i,h=>{te.set(h,"source.start",f==null?void 0:f.node),te.set(h,"source.query",void 0),te.set(h,"source.mapLayerKey",f==null?void 0:f.key),te.set(h,"source.trace",void 0)})),icon:C.jsx(bxe,{sx:{transform:"scale(0.5)"}})},[`${n}-${f==null?void 0:f.key}-destination`]:{primary:"Set as destination",secondary:f==null?void 0:f.name,action:()=>o(ca(i,h=>{te.set(h,"source.end",f==null?void 0:f.node),te.set(h,"source.query",void 0),te.set(h,"source.mapLayerKey",f==null?void 0:f.key),te.set(h,"source.trace",void 0)})),icon:C.jsx(fxe,{})}}),{})}}},[l,i,s,o]);return C.jsx(r,{event:t,layer:n,children:d=>e==null?void 0:e(te.merge(d,c))})}};function mFe({layer:e}){var t,n;return C.jsx(C.Fragment,{children:e&&R.createElement((n=uw[((t=e==null?void 0:e.source)==null?void 0:t.type)??""])==null?void 0:n.renderer,{layer:e})})}function _s(e){var t,n;return e!=null&&e.name?e==null?void 0:e.name:(t=e==null?void 0:e.source)!=null&&t.type?uw[(n=e.source)==null?void 0:n.type].inferName(e):"Untitled Layer"}function Gee(e){var t;return uw[((t=e==null?void 0:e.source)==null?void 0:t.type)??""]}const uw={map:UNe,trace:NS,query:pFe};function gFe(e,t,n=600){const[r,i]=R.useState(e);R.useEffect(()=>void i(e),[i,e]);const o=R.useMemo(()=>te.debounce(s=>t==null?void 0:t(s),n),[t,n]);return[r,s=>{i(s),o(s)}]}function vFe({value:e,onValueChange:t},n){var f,h,p;const[r,i]=gFe(e,t),o=g=>C.jsx(zt,{variant:"overline",color:"text.secondary",sx:{pt:1},component:"p",children:g}),s=g=>C.jsx(zt,{variant:"body1",children:g}),l=(g,v)=>C.jsxs(bn,{alignItems:"center",children:[s(g),C.jsx(Kr,{flex:1}),v]}),c=g=>g.map(v=>({id:v,name:te.startCase(v)})),d=r.name||_s(e);return C.jsx(C.Fragment,{children:C.jsxs(Rd,{alignItems:"center",direction:"row",gap:2,children:[C.jsxs(dt,{py:1,ml:-1,children:[C.jsx(zt,{children:d}),C.jsx(zt,{variant:"body2",color:"text.secondary",children:te.startCase((f=r.source)==null?void 0:f.type)})]}),C.jsx(Kr,{flex:1}),C.jsx(Rd,{alignItems:"center",direction:"row",children:C.jsx(Lz,{appBar:{children:C.jsx(Dz,{children:"Edit Layer"})},trigger:g=>C.jsx(dp,{size:"small",onClick:g,children:C.jsx(tk,{})}),children:C.jsxs(dt,{p:2,children:[C.jsx(dt,{pb:2,children:C.jsx(H1,{fullWidth:!0,variant:"filled",label:"Layer Name",value:r.name??"",onChange:g=>i==null?void 0:i(ca(r,v=>te.set(v,"name",g.target.value)))})}),o("Layer Options"),l("Transparency",C.jsx(Is,{label:"Transparency",items:["25","50","75","100"].map(g=>({id:g,name:`${g}%`})),value:"100",showArrow:!0})),l("Display Mode",C.jsx(Is,{label:"Display Mode",value:"normal",items:c(["normal","difference"]),showArrow:!0})),o("Source Options"),l("Type",C.jsx(Is,{label:"Type",value:(h=r.source)==null?void 0:h.type,items:["map","trace","query"].map(g=>({id:g,name:te.startCase(g)})),onChange:g=>i==null?void 0:i(ca(r,v=>{te.set(v,"source",{type:g})})),showArrow:!0})),((p=r.source)==null?void 0:p.type)&&R.createElement(uw[r.source.type].editor,{onChange:g=>i(g(r)),value:r})]})})})]})})}const yFe=R.forwardRef(vFe);function bFe(){const[{layers:e=[]},t]=Ip();return C.jsx(dt,{sx:{overflow:"auto hidden",width:"100%"},children:C.jsx(dt,{sx:{mb:2},children:C.jsx(_k,{sortable:!0,icon:null,value:e,useDelete:!0,useReorder:!0,editor:n=>C.jsx(yFe,{value:n}),create:()=>({source:{type:"trace",trace:{}}}),onChange:n=>t(()=>({layers:n})),addItemLabel:"Layer",placeholderText:C.jsx(dt,{pt:2,children:"Click the button below to add a layer."})})})})}function xFe(){const{controls:e,onChange:t,state:n}=qd();return C.jsxs(Ln,{onChange:t,stack:n,children:[C.jsx(Ln.Content,{children:C.jsx(dt,{p:2,pr:1,pt:6,children:C.jsx(bFe,{})})}),C.jsx(Ln.Extras,{children:e})]})}function Vee(e){return C.jsx(ixe,{...e,sx:{fontSize:12,transform:"translateY(1.75px) translateX(-2px)",...e.sx}})}function wFe({children:e}){return C.jsx(zt,{variant:"overline",sx:{my:-.75,display:"block"},children:e})}var sC={exports:{}};/** +`+e.slice(s+1):c+=e.slice(i),c.slice(1)}function tFe(e){for(var t="",n=0,r,i=0;i=65536?i+=2:i++)n=Fb(e,i),r=io[n],!r&&b1(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||V$e(n);return t}function nFe(e,t,n){var r="",i=e.tag,o,s,l;for(o=0,s=n.length;o"u"&&Eu(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function a9(e,t,n,r){var i="",o=e.tag,s,l,c;for(s=0,l=n.length;s"u"&&Eu(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=o3(e,t)),e.dump&&v1===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=o,e.dump=i||"[]"}function rFe(e,t,n){var r="",i=e.tag,o=Object.keys(n),s,l,c,d,f;for(s=0,l=o.length;s1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Eu(e,t,d,!1,!1)&&(f+=e.dump,r+=f));e.tag=i,e.dump="{"+r+"}"}function iFe(e,t,n,r){var i="",o=e.tag,s=Object.keys(n),l,c,d,f,h,p;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new ea("sortKeys must be a boolean or a function");for(l=0,c=s.length;l1024,h&&(e.dump&&v1===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,h&&(p+=o3(e,t)),Eu(e,t+1,f,!0,h)&&(e.dump&&v1===e.dump.charCodeAt(0)?p+=":":p+=": ",p+=e.dump,i+=p));e.tag=o,e.dump=i||"{}"}function l9(e,t,n){var r,i,o,s,l,c;for(i=n?e.explicitTypes:e.implicitTypes,o=0,s=i.length;o tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function Eu(e,t,n,r,i,o,s){e.tag=null,e.dump=n,l9(e,n,!1)||l9(e,n,!0);var l=Fee.call(e.dump),c=r,d;r&&(r=e.flowLevel<0||e.flowLevel>t);var f=l==="[object Object]"||l==="[object Array]",h,p;if(f&&(h=e.duplicates.indexOf(n),p=h!==-1),(e.tag!==null&&e.tag!=="?"||p||e.indent!==2&&t>0)&&(i=!1),p&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(f&&p&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),l==="[object Object]")r&&Object.keys(e.dump).length!==0?(iFe(e,t,e.dump,i),p&&(e.dump="&ref_"+h+e.dump)):(rFe(e,t,e.dump),p&&(e.dump="&ref_"+h+" "+e.dump));else if(l==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?a9(e,t-1,e.dump,i):a9(e,t,e.dump,i),p&&(e.dump="&ref_"+h+e.dump)):(nFe(e,t,e.dump),p&&(e.dump="&ref_"+h+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&Z$e(e,e.dump,t,o,c);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ea("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(d=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?d="!"+d:d.slice(0,18)==="tag:yaml.org,2002:"?d="!!"+d.slice(18):d="!<"+d+">",e.dump=d+" "+e.dump)}return!0}function oFe(e,t){var n=[],r=[],i,o;for(a3(e,n,r),i=0,o=r.length;in(async()=>{var r;if(e!=null&&e.trace){t("Processing trace...");try{const i=await dFe(e);return t("Trace loaded",aBe("step",((r=i==null?void 0:i.stepsPersistent)==null?void 0:r.length)??0,!0)),i}catch(i){console.error(i),t("Error parsing",`${cFe(i)}`)}}}),[e])}const hFe=e=>e==null;function pFe(e){const t=[],n={},r={},i=te.chain(e==null?void 0:e.events).map((l,c)=>({step:c,id:l.id,pId:l.pId})).groupBy("id").value();te.forEach(e==null?void 0:e.events,({id:l,pId:c},d)=>{!hFe(c)&&n[l]!==c&&(t.push({id:l,pId:c,step:d,prev:te.last(t)}),n[l]=c),r[d]=te.last(t)});const o=(l,c=(d=>(d=e==null?void 0:e.events)==null?void 0:d.length)()??0)=>{let f=r[c];for(;f;){if(f.id===l)return f.pId;f=f.prev}};return{getParent:o,getPath:l=>{const c=[l];let d={...(e.events??[])[l],step:l};for(;d;){const f=o(d.id,d.step);if(f){const h=te.findLast(i[f],p=>p.step<=d.step);if(h)c.push(h.step),d=h;else break}else break}return c}}}const BS={key:"trace",inferName:e=>{var t,n;return((n=(t=e.source)==null?void 0:t.trace)==null?void 0:n.name)??"Untitled Trace"},editor:Tg(({value:e,produce:t})=>{var n,r,i,o;return C.jsxs(C.Fragment,{children:[C.jsx(a1,{label:"Trace",content:C.jsx(GPe,{onChange:s=>t(l=>te.set(l,"source.trace",{...s,key:Mo()})),value:(n=e==null?void 0:e.source)==null?void 0:n.trace})}),C.jsx(a1,{label:"Onion Skinning",content:C.jsx(Rs,{disabled:!0,showArrow:!0,value:((r=e==null?void 0:e.source)==null?void 0:r.onion)??"off",items:["off","transparent","solid"].map(s=>({id:s,name:te.startCase(s)})),onChange:s=>t(l=>te.set(l,"source.onion",s))})}),C.jsx($Z,{label:"Preview"}),C.jsx(lt,{sx:{height:240,mx:-2,mb:-2},children:C.jsx(Pee,{trace:(o=(i=e==null?void 0:e.source)==null?void 0:i.trace)==null?void 0:o.content})})]})}),service:Tg(({value:e,produce:t})=>{var i,o,s,l,c,d,f,h;const{palette:n}=Pn(),r=fFe({trace:(o=(i=e==null?void 0:e.source)==null?void 0:i.trace)==null?void 0:o.content,context:{color:qz,themeAccent:n.primary.main,themeTextPrimary:n.text.primary,themeBackground:n.background.paper},view:"main"});return I.useEffect(()=>{t(p=>{var g,v,y,S;return te.set(p,"source.playbackTo",((S=(y=(v=(g=e==null?void 0:e.source)==null?void 0:g.trace)==null?void 0:v.content)==null?void 0:y.events)==null?void 0:S.length)??0)})},[(d=(c=(l=(s=e==null?void 0:e.source)==null?void 0:s.trace)==null?void 0:l.content)==null?void 0:c.events)==null?void 0:d.length]),Iee(async()=>{const p=await r();t(g=>te.set(g,"source.parsedTrace",p))},[r],[(h=(f=e==null?void 0:e.source)==null?void 0:f.trace)==null?void 0:h.key]),C.jsx(C.Fragment,{children:C.jsx(JNe,{value:e})})}),renderer:({layer:e})=>{var l,c;const t=(l=e==null?void 0:e.source)==null?void 0:l.parsedTrace,n=YK(((c=e==null?void 0:e.source)==null?void 0:c.step)??0,1e3/60),r=mFe(e,n),i=I.useMemo(()=>te.map(t==null?void 0:t.stepsPersistent,d=>te.map(d,f=>te.merge(f,{meta:{sourceLayer:e==null?void 0:e.key}}))),[t==null?void 0:t.stepsPersistent,e==null?void 0:e.key]),o=I.useMemo(()=>te.map(t==null?void 0:t.stepsTransient,d=>te.map(d,f=>te.merge(f,{meta:{sourceLayer:e==null?void 0:e.key}}))),[t==null?void 0:t.stepsTransient,e==null?void 0:e.key]),s=I.useMemo(()=>[o[n]??[]],[o,n]);return C.jsxs(C.Fragment,{children:[C.jsx(FNe,{step:n,nodes:i}),C.jsx(m1,{nodes:s}),r]})},steps:({layer:e,children:t})=>{var n,r,i;return C.jsx(C.Fragment,{children:t==null?void 0:t(((i=(r=(n=e==null?void 0:e.source)==null?void 0:n.trace)==null?void 0:r.content)==null?void 0:i.events)??[])})},getSelectionInfo:({layer:e,event:t,children:n})=>{const{layer:r,setLayer:i}=bp(e),o=I.useMemo(()=>{var d,f,h,p,g;const s=((h=(f=(d=r==null?void 0:r.source)==null?void 0:d.trace)==null?void 0:f.content)==null?void 0:h.events)??[],l=te.chain((p=t==null?void 0:t.info)==null?void 0:p.components).filter(v=>{var y;return((y=v.meta)==null?void 0:y.sourceLayer)===(r==null?void 0:r.key)}).map(v=>{var y;return(y=v.meta)==null?void 0:y.step}).filter(te.negate(te.isUndefined)).sort((v,y)=>v-y).value(),c=te.chain((g=t==null?void 0:t.info)==null?void 0:g.components).filter(v=>{var y;return((y=v.meta)==null?void 0:y.sourceLayer)===(r==null?void 0:r.key)}).filter(v=>v.meta.info).value();if(l.length&&r){const v=te.last(l),y=s[v];if(y)return{...te.keyBy(te.map(c,(S,_)=>({key:`${r.key}.${_}`,primary:`Selection in ${_s(r)}`,items:{info:{index:-1,primary:C.jsx(oC,{event:S.meta.info,vertical:!0})}}})),"key"),[r.key]:{primary:_s(r),items:{properties:{index:-2,primary:C.jsx(oC,{event:y,vertical:!0})},[`${y}`]:{primary:`Go to Step ${v}`,secondary:`${te.startCase(y.type)}`,action:()=>i(ua(r,S=>{te.set(S,"source.step",v)})),icon:C.jsx(Jbe,{})}}}}}return{}},[r,t]);return C.jsx(C.Fragment,{children:n==null?void 0:n(o)})}};function mFe(e,t=0){var o,s;const{palette:n}=Pn(),{getPath:r}=I.useMemo(()=>{var l,c;return(c=(l=e==null?void 0:e.source)==null?void 0:l.trace)!=null&&c.content?pFe(e.source.trace.content):{getParent:te.constant(void 0),getPath:te.constant([])}},[(s=(o=e==null?void 0:e.source)==null?void 0:o.trace)==null?void 0:s.content]);return I.useMemo(()=>{var l,c,d,f;if((f=(d=(c=(l=e==null?void 0:e.source)==null?void 0:l.trace)==null?void 0:c.content)==null?void 0:d.render)!=null&&f.path){const{pivot:h={},scale:p=1}=e.source.trace.content.render.path,{x:g,y:v}=h,y=g?n3(g):b=>b.event.x,S=v?n3(v):b=>b.event.y,_=te.map(r(t),b=>{var x,E,A,R;return(R=(A=(E=(x=e==null?void 0:e.source)==null?void 0:x.trace)==null?void 0:E.content)==null?void 0:A.events)==null?void 0:R[b]});if(_.length){const b=[{$:"rect",x:y({event:{x:0,y:0,...te.head(_)}})-2*p/2,y:S({event:{x:0,y:0,...te.head(_)}})-2*p/2,fill:l1("destination"),width:2*p,height:2*p},{$:"rect",x:y({event:{x:0,y:0,...te.last(_)}})-2*p/2,y:S({event:{x:0,y:0,...te.last(_)}})-2*p/2,fill:l1("source"),width:2*p,height:2*p},{$:"path",points:_.map(x=>({x:y({event:{x:0,y:0,...x}}),y:S({event:{x:0,y:0,...x}})})),fill:n.primary.main,alpha:1,lineWidth:1*p}];return C.jsx(m1,{nodes:[te.map(b,x=>({component:x,meta:{source:"path"}}))]})}}return C.jsx(C.Fragment,{})},[e,t,n,r])}async function gFe(e,t,n){for(const r of e){const i=await r.call("features/algorithms"),o=await r.call("features/formats");if(te.find(i,{id:t})&&te.find(o,{id:n}))return r}}const vFe={...BS,key:"query",editor:Tg(({value:e,produce:t})=>{var c,d;const{algorithm:n}=(e==null?void 0:e.source)??{},{layers:r,layer:i,key:o}=bp(void 0,f=>{var h;return((h=f.source)==null?void 0:h.type)==="map"}),[{algorithms:s}]=KE(),[l]=Ig();return C.jsxs(C.Fragment,{children:[C.jsx(a1,{label:"Algorithm",content:C.jsx(Rs,{showArrow:!0,icon:C.jsx(oxe,{}),label:"Choose Algorithm",value:n,items:s.map(f=>{var h;return{...f,description:(h=te.find(l,{url:f.source}))==null?void 0:h.name}}),onChange:async f=>t(h=>te.set(h,"source.algorithm",f))})}),!(s!=null&&s.length)&&C.jsx(Lt,{variant:"body2",color:"warning.main",sx:{mb:1},children:"No connected solver has declared support for running algorithms"}),C.jsx(a1,{label:"Map",content:C.jsx(Rs,{showArrow:!0,icon:C.jsx(q1,{}),label:"Choose Layer",value:o,items:r.map(f=>({id:f.key,name:_s(f)})),onChange:async f=>t(h=>te.set(h,"source.mapLayerKey",f))})}),i&&C.jsxs(Lt,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:["Define source and destination nodes by clicking on valid regions on"," ",_s(i)]}),C.jsx($Z,{label:"Preview"}),C.jsx(lt,{sx:{height:240,mx:-2,mb:-2},children:C.jsx(Pee,{trace:(d=(c=e==null?void 0:e.source)==null?void 0:c.trace)==null?void 0:d.content})})]})}),service:Tg(({value:e,produce:t})=>{const n=ml(),{algorithm:r,mapLayerKey:i,start:o,end:s}=(e==null?void 0:e.source)??{},[{layers:l}]=Pp(),[c]=Ig(),[{algorithms:d}]=KE(),f=I.useMemo(()=>{if(i&&r)return te.find(l,{key:i})},[i,r,l]);return jNe(async h=>{var p;if(f&&r){const{format:g,content:v}=((p=f==null?void 0:f.source)==null?void 0:p.map)??{};if(g&&v){const y=await gFe(c,r,g),S=te.find(d,{id:r});if(y){n(`Executing ${_s(e)} using ${y.name}...`);const _=await y.call("solve/pathfinding",{format:g,instances:[{start:o??0,end:s??0}],mapURI:`map:${encodeURIComponent(v)}`,algorithm:r});h.aborted?n("Canceled"):t(b=>te.set(b,"source.trace",{name:`${S==null?void 0:S.name}`,content:_,key:Mo()}))}}}},[f,c,r,o,s,t,n,e,d],[f,c,r,o,s]),C.jsx(C.Fragment,{children:BS.service})}),inferName:e=>{var t,n;return((n=(t=e.source)==null?void 0:t.trace)==null?void 0:n.name)??"Untitled Query"},getSelectionInfo:({children:e,event:t,layer:n})=>{const r=BS.getSelectionInfo,{layer:i,setLayer:o,layers:s}=bp(n),l=I.useMemo(()=>{const d=te.filter(s,{source:{type:"map"}});return te.filter(te.map(d,f=>{var p,g,v,y;const{parsedMap:h}=(f==null?void 0:f.source)??{};if(h&&t){const S=(y=(v=Vz((g=(p=f==null?void 0:f.source)==null?void 0:p.map)==null?void 0:g.format))==null?void 0:v.hydrate)==null?void 0:y.call(v,h);if(S){const _=(t==null?void 0:t.world)&&S.snap(t.world);if(_){const b=(t==null?void 0:t.world)&&S.nodeAt(_);return{point:_,node:b,key:f.key,name:_s(f)}}}}}))},[s]),c=I.useMemo(()=>!!i&&!!l.length&&{[i.key]:{primary:_s(i),items:{...te.reduce(l,(d,f)=>({...d,[`${n}-${f==null?void 0:f.key}-source`]:{primary:"Set as source",secondary:f==null?void 0:f.name,action:()=>o(ua(i,h=>{te.set(h,"source.start",f==null?void 0:f.node),te.set(h,"source.query",void 0),te.set(h,"source.mapLayerKey",f==null?void 0:f.key),te.set(h,"source.trace",void 0)})),icon:C.jsx(Sxe,{sx:{transform:"scale(0.5)"}})},[`${n}-${f==null?void 0:f.key}-destination`]:{primary:"Set as destination",secondary:f==null?void 0:f.name,action:()=>o(ua(i,h=>{te.set(h,"source.end",f==null?void 0:f.node),te.set(h,"source.query",void 0),te.set(h,"source.mapLayerKey",f==null?void 0:f.key),te.set(h,"source.trace",void 0)})),icon:C.jsx(gxe,{})}}),{})}}},[l,i,s,o]);return C.jsx(r,{event:t,layer:n,children:d=>e==null?void 0:e(te.merge(d,c))})}};function yFe({layer:e}){var t,n;return C.jsx(C.Fragment,{children:e&&I.createElement((n=dw[((t=e==null?void 0:e.source)==null?void 0:t.type)??""])==null?void 0:n.renderer,{layer:e})})}function _s(e){var t,n;return e!=null&&e.name?e==null?void 0:e.name:(t=e==null?void 0:e.source)!=null&&t.type?dw[(n=e.source)==null?void 0:n.type].inferName(e):"Untitled Layer"}function Kee(e){var t;return dw[((t=e==null?void 0:e.source)==null?void 0:t.type)??""]}const dw={map:GNe,trace:BS,query:vFe};function bFe(e,t,n=600){const[r,i]=I.useState(e);I.useEffect(()=>void i(e),[i,e]);const o=I.useMemo(()=>te.debounce(s=>t==null?void 0:t(s),n),[t,n]);return[r,s=>{i(s),o(s)}]}function xFe({value:e,onValueChange:t},n){var f,h,p;const[r,i]=bFe(e,t),o=g=>C.jsx(Lt,{variant:"overline",color:"text.secondary",sx:{pt:1},component:"p",children:g}),s=g=>C.jsx(Lt,{variant:"body1",children:g}),l=(g,v)=>C.jsxs(gn,{alignItems:"center",children:[s(g),C.jsx(Kr,{flex:1}),v]}),c=g=>g.map(v=>({id:v,name:te.startCase(v)})),d=r.name||_s(e);return C.jsx(C.Fragment,{children:C.jsxs(Od,{alignItems:"center",direction:"row",gap:2,children:[C.jsxs(lt,{py:1,ml:-1,children:[C.jsx(Lt,{children:d}),C.jsx(Lt,{variant:"body2",color:"text.secondary",children:te.startCase((f=r.source)==null?void 0:f.type)})]}),C.jsx(Kr,{flex:1}),C.jsx(Od,{alignItems:"center",direction:"row",children:C.jsx($z,{appBar:{children:C.jsx(Bz,{children:"Edit Layer"})},trigger:g=>C.jsx(fp,{size:"small",onClick:g,children:C.jsx(rk,{})}),children:C.jsxs(lt,{p:2,children:[C.jsx(lt,{pb:2,children:C.jsx(V1,{fullWidth:!0,variant:"filled",label:"Layer Name",value:r.name??"",onChange:g=>i==null?void 0:i(ua(r,v=>te.set(v,"name",g.target.value)))})}),o("Layer Options"),l("Transparency",C.jsx(Rs,{label:"Transparency",items:["25","50","75","100"].map(g=>({id:g,name:`${g}%`})),value:"100",showArrow:!0})),l("Display Mode",C.jsx(Rs,{label:"Display Mode",value:"normal",items:c(["normal","difference"]),showArrow:!0})),o("Source Options"),l("Type",C.jsx(Rs,{label:"Type",value:(h=r.source)==null?void 0:h.type,items:["map","trace","query"].map(g=>({id:g,name:te.startCase(g)})),onChange:g=>i==null?void 0:i(ua(r,v=>{te.set(v,"source",{type:g})})),showArrow:!0})),((p=r.source)==null?void 0:p.type)&&I.createElement(dw[r.source.type].editor,{onChange:g=>i(g(r)),value:r})]})})})]})})}const wFe=I.forwardRef(xFe);function _Fe(){const[{layers:e=[]},t]=Pp();return C.jsx(lt,{sx:{overflow:"auto hidden",width:"100%"},children:C.jsx(lt,{sx:{mb:2},children:C.jsx(Ek,{sortable:!0,icon:null,value:e,useDelete:!0,useReorder:!0,editor:n=>C.jsx(wFe,{value:n}),create:()=>({source:{type:"trace",trace:{}}}),onChange:n=>t(()=>({layers:n})),addItemLabel:"Layer",placeholderText:C.jsx(lt,{pt:2,children:"Click the button below to add a layer."})})})})}function SFe(){const{controls:e,onChange:t,state:n}=Ou();return C.jsxs(Sn,{onChange:t,stack:n,children:[C.jsx(Sn.Content,{children:C.jsx(lt,{p:2,pr:1,pt:6,children:C.jsx(_Fe,{})})}),C.jsx(Sn.Extras,{children:e})]})}function Qee(e){return C.jsx(lxe,{...e,sx:{fontSize:12,transform:"translateY(1.75px) translateX(-2px)",...e.sx}})}function EFe({children:e}){return C.jsx(Lt,{variant:"overline",sx:{my:-.75,display:"block"},children:e})}var lC={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 - */sC.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,p=2,g=4,v=1,y=2,S=1,_=2,b=4,x=8,E=16,A=32,I=64,k=128,O=256,L=512,N=30,H="...",W=800,z=16,D=1,F=2,j=3,V=1/0,G=9007199254740991,K=17976931348623157e292,Y=0/0,J=4294967295,ie=J-1,ce=J>>>1,ue=[["ary",k],["bind",S],["bindKey",_],["curry",x],["curryRight",E],["flip",L],["partial",A],["partialRight",I],["rearg",O]],se="[object Arguments]",Q="[object Array]",ae="[object AsyncFunction]",le="[object Boolean]",he="[object Date]",pe="[object DOMException]",ve="[object Error]",ye="[object Function]",xe="[object GeneratorFunction]",me="[object Map]",be="[object Number]",Qe="[object Null]",qe="[object Object]",at="[object Promise]",Lt="[object Proxy]",Re="[object RegExp]",Fe="[object Set]",it="[object String]",pt="[object Symbol]",mt="[object Undefined]",_e="[object WeakMap]",ze="[object WeakSet]",Ye="[object ArrayBuffer]",$e="[object DataView]",Ne="[object Float32Array]",It="[object Float64Array]",ct="[object Int8Array]",Ae="[object Int16Array]",ot="[object Int32Array]",$t="[object Uint8Array]",Ie="[object Uint8ClampedArray]",Ue="[object Uint16Array]",yt="[object Uint32Array]",Wt=/\b__p \+= '';/g,pn=/\b(__p \+=) '' \+/g,$r=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Or=/&(?:amp|lt|gt|quot|#39);/g,Mr=/[&<>"']/g,Fr=RegExp(Or.source),Jr=RegExp(Mr.source),Ko=/<%-([\s\S]+?)%>/g,Ou=/<%([\s\S]+?)%>/g,Ws=/<%=([\s\S]+?)%>/g,nc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rc=/^\w*$/,ef=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qo=/[\\^$.*+?()[\]{}|]/g,tf=RegExp(Qo.source),oo=/^\s+/,ic=/\s/,Si=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Jo=/\{\n\/\* \[wrapped with (.+)\] \*/,nf=/,? & /,Zo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ba=/[()=,{}\[\]\/\s]/,Mu=/\\(\\)?/g,Hn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Jn=/\w*$/,vl=/^[-+]0x[0-9a-f]+$/i,yl=/^0b[01]+$/i,so=/^\[object .+?Constructor\]$/,hv=/^0o[0-7]+$/i,pv=/^(?:0|[1-9]\d*)$/,Qt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vr=/($^)/,iA=/['\n\r\u2028\u2029\\]/g,oc="\\ud800-\\udfff",oA="\\u0300-\\u036f",sA="\\ufe20-\\ufe2f",aA="\\u20d0-\\u20ff",mv=oA+sA+aA,gv="\\u2700-\\u27bf",vv="a-z\\xdf-\\xf6\\xf8-\\xff",lA="\\xac\\xb1\\xd7\\xf7",cA="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",uA="\\u2000-\\u206f",dA=" \\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",yv="A-Z\\xc0-\\xd6\\xd8-\\xde",bv="\\ufe0e\\ufe0f",xv=lA+cA+uA+dA,rf="['’]",fA="["+oc+"]",wv="["+xv+"]",sc="["+mv+"]",_v="\\d+",hA="["+gv+"]",Sv="["+vv+"]",Ev="[^"+oc+xv+_v+gv+vv+yv+"]",of="\\ud83c[\\udffb-\\udfff]",pA="(?:"+sc+"|"+of+")",Cv="[^"+oc+"]",sf="(?:\\ud83c[\\udde6-\\uddff]){2}",af="[\\ud800-\\udbff][\\udc00-\\udfff]",es="["+yv+"]",Tv="\\u200d",kv="(?:"+Sv+"|"+Ev+")",mA="(?:"+es+"|"+Ev+")",Av="(?:"+rf+"(?:d|ll|m|re|s|t|ve))?",Iv="(?:"+rf+"(?:D|LL|M|RE|S|T|VE))?",Rv=pA+"?",Pv="["+bv+"]?",gA="(?:"+Tv+"(?:"+[Cv,sf,af].join("|")+")"+Pv+Rv+")*",vA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ov=Pv+Rv+gA,bA="(?:"+[hA,sf,af].join("|")+")"+Ov,xA="(?:"+[Cv+sc+"?",sc,sf,af,fA].join("|")+")",wA=RegExp(rf,"g"),_A=RegExp(sc,"g"),lf=RegExp(of+"(?="+of+")|"+xA+Ov,"g"),SA=RegExp([es+"?"+Sv+"+"+Av+"(?="+[wv,es,"$"].join("|")+")",mA+"+"+Iv+"(?="+[wv,es+kv,"$"].join("|")+")",es+"?"+kv+"+"+Av,es+"+"+Iv,yA,vA,_v,bA].join("|"),"g"),EA=RegExp("["+Tv+oc+mv+bv+"]"),CA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,TA=["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"],kA=-1,Pt={};Pt[Ne]=Pt[It]=Pt[ct]=Pt[Ae]=Pt[ot]=Pt[$t]=Pt[Ie]=Pt[Ue]=Pt[yt]=!0,Pt[se]=Pt[Q]=Pt[Ye]=Pt[le]=Pt[$e]=Pt[he]=Pt[ve]=Pt[ye]=Pt[me]=Pt[be]=Pt[qe]=Pt[Re]=Pt[Fe]=Pt[it]=Pt[_e]=!1;var Et={};Et[se]=Et[Q]=Et[Ye]=Et[$e]=Et[le]=Et[he]=Et[Ne]=Et[It]=Et[ct]=Et[Ae]=Et[ot]=Et[me]=Et[be]=Et[qe]=Et[Re]=Et[Fe]=Et[it]=Et[pt]=Et[$t]=Et[Ie]=Et[Ue]=Et[yt]=!0,Et[ve]=Et[ye]=Et[_e]=!1;var AA={À:"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"},IA={"&":"&","<":"<",">":">",'"':""","'":"'"},RA={"&":"&","<":"<",">":">",""":'"',"'":"'"},PA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},OA=parseFloat,MA=parseInt,Mv=typeof Nt=="object"&&Nt&&Nt.Object===Object&&Nt,DA=typeof self=="object"&&self&&self.Object===Object&&self,dn=Mv||DA||Function("return this")(),cf=t&&!t.nodeType&&t,ao=cf&&!0&&e&&!e.nodeType&&e,Dv=ao&&ao.exports===cf,uf=Dv&&Mv.process,tr=function(){try{var q=ao&&ao.require&&ao.require("util").types;return q||uf&&uf.binding&&uf.binding("util")}catch{}}(),Lv=tr&&tr.isArrayBuffer,Nv=tr&&tr.isDate,Bv=tr&&tr.isMap,$v=tr&&tr.isRegExp,Fv=tr&&tr.isSet,zv=tr&&tr.isTypedArray;function Wn(q,ee,Z){switch(Z.length){case 0:return q.call(ee);case 1:return q.call(ee,Z[0]);case 2:return q.call(ee,Z[0],Z[1]);case 3:return q.call(ee,Z[0],Z[1],Z[2])}return q.apply(ee,Z)}function LA(q,ee,Z,ge){for(var De=-1,ut=q==null?0:q.length;++De-1}function df(q,ee,Z){for(var ge=-1,De=q==null?0:q.length;++ge-1;);return Z}function Xv(q,ee){for(var Z=q.length;Z--&&ts(ee,q[Z],0)>-1;);return Z}function WA(q,ee){for(var Z=q.length,ge=0;Z--;)q[Z]===ee&&++ge;return ge}var GA=mf(AA),VA=mf(IA);function qA(q){return"\\"+PA[q]}function XA(q,ee){return q==null?n:q[ee]}function ns(q){return EA.test(q)}function YA(q){return CA.test(q)}function KA(q){for(var ee,Z=[];!(ee=q.next()).done;)Z.push(ee.value);return Z}function bf(q){var ee=-1,Z=Array(q.size);return q.forEach(function(ge,De){Z[++ee]=[De,ge]}),Z}function Yv(q,ee){return function(Z){return q(ee(Z))}}function Ti(q,ee){for(var Z=-1,ge=q.length,De=0,ut=[];++Z-1}function BI(a,u){var m=this.__data__,w=Ec(m,a);return w<0?(++this.size,m.push([a,u])):m[w][1]=u,this}Zr.prototype.clear=MI,Zr.prototype.delete=DI,Zr.prototype.get=LI,Zr.prototype.has=NI,Zr.prototype.set=BI;function ei(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u=u?a:u)),a}function or(a,u,m,w,T,M){var B,U=u&h,X=u&p,ne=u&g;if(m&&(B=T?m(a,w,T,M):m(a)),B!==n)return B;if(!Ft(a))return a;var re=Be(a);if(re){if(B=jR(a),!U)return Pn(a,B)}else{var oe=vn(a),fe=oe==ye||oe==xe;if(Oi(a))return Py(a,U);if(oe==qe||oe==se||fe&&!T){if(B=X||fe?{}:Ky(a),!U)return X?RR(a,ZI(B,a)):IR(a,ay(B,a))}else{if(!Et[oe])return T?a:{};B=UR(a,oe,U)}}M||(M=new br);var we=M.get(a);if(we)return we;M.set(a,B),C0(a)?a.forEach(function(ke){B.add(or(ke,u,m,ke,a,M))}):S0(a)&&a.forEach(function(ke,Ke){B.set(Ke,or(ke,u,m,Ke,a,M))});var Te=ne?X?Gf:Wf:X?Mn:nn,Ve=re?n:Te(a);return nr(Ve||a,function(ke,Ke){Ve&&(Ke=ke,ke=a[Ke]),Ta(B,Ke,or(ke,u,m,Ke,a,M))}),B}function eR(a){var u=nn(a);return function(m){return ly(m,a,u)}}function ly(a,u,m){var w=m.length;if(a==null)return!w;for(a=wt(a);w--;){var T=m[w],M=u[T],B=a[T];if(B===n&&!(T in a)||!M(B))return!1}return!0}function cy(a,u,m){if(typeof a!="function")throw new rr(s);return Ma(function(){a.apply(n,m)},u)}function ka(a,u,m,w){var T=-1,M=ac,B=!0,U=a.length,X=[],ne=u.length;if(!U)return X;m&&(u=Dt(u,Gn(m))),w?(M=df,B=!1):u.length>=i&&(M=xa,B=!1,u=new uo(u));e:for(;++TT?0:T+m),w=w===n||w>T?T:We(w),w<0&&(w+=T),w=m>w?0:k0(w);m0&&m(U)?u>1?fn(U,u-1,m,w,T):Ci(T,U):w||(T[T.length]=U)}return T}var Tf=By(),fy=By(!0);function zr(a,u){return a&&Tf(a,u,nn)}function kf(a,u){return a&&fy(a,u,nn)}function Tc(a,u){return Ei(u,function(m){return oi(a[m])})}function ho(a,u){u=Ri(u,a);for(var m=0,w=u.length;a!=null&&mu}function rR(a,u){return a!=null&&vt.call(a,u)}function iR(a,u){return a!=null&&u in wt(a)}function oR(a,u,m){return a>=gn(u,m)&&a=120&&re.length>=120)?new uo(B&&re):n}re=a[0];var oe=-1,fe=U[0];e:for(;++oe-1;)U!==a&&vc.call(U,X,1),vc.call(a,X,1);return a}function Sy(a,u){for(var m=a?u.length:0,w=m-1;m--;){var T=u[m];if(m==w||T!==M){var M=T;ii(T)?vc.call(a,T,1):Bf(a,T)}}return a}function Df(a,u){return a+xc(ry()*(u-a+1))}function yR(a,u,m,w){for(var T=-1,M=Zt(bc((u-a)/(m||1)),0),B=Z(M);M--;)B[w?M:++T]=a,a+=m;return B}function Lf(a,u){var m="";if(!a||u<1||u>G)return m;do u%2&&(m+=a),u=xc(u/2),u&&(a+=a);while(u);return m}function Xe(a,u){return Jf(Zy(a,u,Dn),a+"")}function bR(a){return sy(hs(a))}function xR(a,u){var m=hs(a);return Bc(m,fo(u,0,m.length))}function Ra(a,u,m,w){if(!Ft(a))return a;u=Ri(u,a);for(var T=-1,M=u.length,B=M-1,U=a;U!=null&&++TT?0:T+u),m=m>T?T:m,m<0&&(m+=T),T=u>m?0:m-u>>>0,u>>>=0;for(var M=Z(T);++w>>1,B=a[M];B!==null&&!qn(B)&&(m?B<=u:B=i){var ne=u?null:DR(a);if(ne)return cc(ne);B=!1,T=xa,X=new uo}else X=u?[]:U;e:for(;++w=w?a:sr(a,u,m)}var Ry=dI||function(a){return dn.clearTimeout(a)};function Py(a,u){if(u)return a.slice();var m=a.length,w=Jv?Jv(m):new a.constructor(m);return a.copy(w),w}function jf(a){var u=new a.constructor(a.byteLength);return new mc(u).set(new mc(a)),u}function CR(a,u){var m=u?jf(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.byteLength)}function TR(a){var u=new a.constructor(a.source,Jn.exec(a));return u.lastIndex=a.lastIndex,u}function kR(a){return Ca?wt(Ca.call(a)):{}}function Oy(a,u){var m=u?jf(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.length)}function My(a,u){if(a!==u){var m=a!==n,w=a===null,T=a===a,M=qn(a),B=u!==n,U=u===null,X=u===u,ne=qn(u);if(!U&&!ne&&!M&&a>u||M&&B&&X&&!U&&!ne||w&&B&&X||!m&&X||!T)return 1;if(!w&&!M&&!ne&&a=U)return X;var ne=m[w];return X*(ne=="desc"?-1:1)}}return a.index-u.index}function Dy(a,u,m,w){for(var T=-1,M=a.length,B=m.length,U=-1,X=u.length,ne=Zt(M-B,0),re=Z(X+ne),oe=!w;++U1?m[T-1]:n,B=T>2?m[2]:n;for(M=a.length>3&&typeof M=="function"?(T--,M):n,B&&Cn(m[0],m[1],B)&&(M=T<3?n:M,T=1),u=wt(u);++w-1?T[M?u[B]:B]:n}}function zy(a){return ri(function(u){var m=u.length,w=m,T=ir.prototype.thru;for(a&&u.reverse();w--;){var M=u[w];if(typeof M!="function")throw new rr(s);if(T&&!B&&Lc(M)=="wrapper")var B=new ir([],!0)}for(w=B?w:m;++w1&&nt.reverse(),re&&XU))return!1;var ne=M.get(a),re=M.get(u);if(ne&&re)return ne==u&&re==a;var oe=-1,fe=!0,we=m&y?new uo:n;for(M.set(a,u),M.set(u,a);++oe1?"& ":"")+u[w],u=u.join(m>2?", ":" "),a.replace(Si,`{ + */lC.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,p=2,g=4,v=1,y=2,S=1,_=2,b=4,x=8,E=16,A=32,R=64,k=128,O=256,L=512,N=30,H="...",W=800,z=16,D=1,F=2,j=3,V=1/0,G=9007199254740991,K=17976931348623157e292,Y=0/0,J=4294967295,ie=J-1,ce=J>>>1,ue=[["ary",k],["bind",S],["bindKey",_],["curry",x],["curryRight",E],["flip",L],["partial",A],["partialRight",R],["rearg",O]],se="[object Arguments]",Q="[object Array]",ae="[object AsyncFunction]",le="[object Boolean]",he="[object Date]",pe="[object DOMException]",ve="[object Error]",ye="[object Function]",xe="[object GeneratorFunction]",me="[object Map]",be="[object Number]",Qe="[object Null]",qe="[object Object]",at="[object Promise]",Nt="[object Proxy]",Ie="[object RegExp]",Fe="[object Set]",it="[object String]",pt="[object Symbol]",mt="[object Undefined]",_e="[object WeakMap]",ze="[object WeakSet]",Ye="[object ArrayBuffer]",$e="[object DataView]",Ne="[object Float32Array]",Rt="[object Float64Array]",ut="[object Int8Array]",Ae="[object Int16Array]",ot="[object Int32Array]",Ft="[object Uint8Array]",Re="[object Uint8ClampedArray]",Ue="[object Uint16Array]",yt="[object Uint32Array]",Wt=/\b__p \+= '';/g,pn=/\b(__p \+=) '' \+/g,$r=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Or=/&(?:amp|lt|gt|quot|#39);/g,Mr=/[&<>"']/g,Fr=RegExp(Or.source),Jr=RegExp(Mr.source),Ko=/<%-([\s\S]+?)%>/g,Lu=/<%([\s\S]+?)%>/g,Ws=/<%=([\s\S]+?)%>/g,rc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ic=/^\w*$/,tf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Qo=/[\\^$.*+?()[\]{}|]/g,nf=RegExp(Qo.source),oo=/^\s+/,oc=/\s/,Si=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Jo=/\{\n\/\* \[wrapped with (.+)\] \*/,rf=/,? & /,Zo=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xa=/[()=,{}\[\]\/\s]/,Nu=/\\(\\)?/g,Hn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Jn=/\w*$/,bl=/^[-+]0x[0-9a-f]+$/i,xl=/^0b[01]+$/i,so=/^\[object .+?Constructor\]$/,gv=/^0o[0-7]+$/i,vv=/^(?:0|[1-9]\d*)$/,Qt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vr=/($^)/,sA=/['\n\r\u2028\u2029\\]/g,sc="\\ud800-\\udfff",aA="\\u0300-\\u036f",lA="\\ufe20-\\ufe2f",cA="\\u20d0-\\u20ff",yv=aA+lA+cA,bv="\\u2700-\\u27bf",xv="a-z\\xdf-\\xf6\\xf8-\\xff",uA="\\xac\\xb1\\xd7\\xf7",dA="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fA="\\u2000-\\u206f",hA=" \\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",wv="A-Z\\xc0-\\xd6\\xd8-\\xde",_v="\\ufe0e\\ufe0f",Sv=uA+dA+fA+hA,of="['’]",pA="["+sc+"]",Ev="["+Sv+"]",ac="["+yv+"]",Cv="\\d+",mA="["+bv+"]",Tv="["+xv+"]",kv="[^"+sc+Sv+Cv+bv+xv+wv+"]",sf="\\ud83c[\\udffb-\\udfff]",gA="(?:"+ac+"|"+sf+")",Av="[^"+sc+"]",af="(?:\\ud83c[\\udde6-\\uddff]){2}",lf="[\\ud800-\\udbff][\\udc00-\\udfff]",es="["+wv+"]",Rv="\\u200d",Iv="(?:"+Tv+"|"+kv+")",vA="(?:"+es+"|"+kv+")",Pv="(?:"+of+"(?:d|ll|m|re|s|t|ve))?",Ov="(?:"+of+"(?:D|LL|M|RE|S|T|VE))?",Mv=gA+"?",Dv="["+_v+"]?",yA="(?:"+Rv+"(?:"+[Av,af,lf].join("|")+")"+Dv+Mv+")*",bA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Lv=Dv+Mv+yA,wA="(?:"+[mA,af,lf].join("|")+")"+Lv,_A="(?:"+[Av+ac+"?",ac,af,lf,pA].join("|")+")",SA=RegExp(of,"g"),EA=RegExp(ac,"g"),cf=RegExp(sf+"(?="+sf+")|"+_A+Lv,"g"),CA=RegExp([es+"?"+Tv+"+"+Pv+"(?="+[Ev,es,"$"].join("|")+")",vA+"+"+Ov+"(?="+[Ev,es+Iv,"$"].join("|")+")",es+"?"+Iv+"+"+Pv,es+"+"+Ov,xA,bA,Cv,wA].join("|"),"g"),TA=RegExp("["+Rv+sc+yv+_v+"]"),kA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,AA=["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"],RA=-1,Pt={};Pt[Ne]=Pt[Rt]=Pt[ut]=Pt[Ae]=Pt[ot]=Pt[Ft]=Pt[Re]=Pt[Ue]=Pt[yt]=!0,Pt[se]=Pt[Q]=Pt[Ye]=Pt[le]=Pt[$e]=Pt[he]=Pt[ve]=Pt[ye]=Pt[me]=Pt[be]=Pt[qe]=Pt[Ie]=Pt[Fe]=Pt[it]=Pt[_e]=!1;var Et={};Et[se]=Et[Q]=Et[Ye]=Et[$e]=Et[le]=Et[he]=Et[Ne]=Et[Rt]=Et[ut]=Et[Ae]=Et[ot]=Et[me]=Et[be]=Et[qe]=Et[Ie]=Et[Fe]=Et[it]=Et[pt]=Et[Ft]=Et[Re]=Et[Ue]=Et[yt]=!0,Et[ve]=Et[ye]=Et[_e]=!1;var IA={À:"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"},PA={"&":"&","<":"<",">":">",'"':""","'":"'"},OA={"&":"&","<":"<",">":">",""":'"',"'":"'"},MA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},DA=parseFloat,LA=parseInt,Nv=typeof Bt=="object"&&Bt&&Bt.Object===Object&&Bt,NA=typeof self=="object"&&self&&self.Object===Object&&self,dn=Nv||NA||Function("return this")(),uf=t&&!t.nodeType&&t,ao=uf&&!0&&e&&!e.nodeType&&e,Bv=ao&&ao.exports===uf,df=Bv&&Nv.process,tr=function(){try{var q=ao&&ao.require&&ao.require("util").types;return q||df&&df.binding&&df.binding("util")}catch{}}(),$v=tr&&tr.isArrayBuffer,Fv=tr&&tr.isDate,zv=tr&&tr.isMap,jv=tr&&tr.isRegExp,Uv=tr&&tr.isSet,Hv=tr&&tr.isTypedArray;function Wn(q,ee,Z){switch(Z.length){case 0:return q.call(ee);case 1:return q.call(ee,Z[0]);case 2:return q.call(ee,Z[0],Z[1]);case 3:return q.call(ee,Z[0],Z[1],Z[2])}return q.apply(ee,Z)}function BA(q,ee,Z,ge){for(var De=-1,dt=q==null?0:q.length;++De-1}function ff(q,ee,Z){for(var ge=-1,De=q==null?0:q.length;++ge-1;);return Z}function Qv(q,ee){for(var Z=q.length;Z--&&ts(ee,q[Z],0)>-1;);return Z}function VA(q,ee){for(var Z=q.length,ge=0;Z--;)q[Z]===ee&&++ge;return ge}var qA=gf(IA),XA=gf(PA);function YA(q){return"\\"+MA[q]}function KA(q,ee){return q==null?n:q[ee]}function ns(q){return TA.test(q)}function QA(q){return kA.test(q)}function JA(q){for(var ee,Z=[];!(ee=q.next()).done;)Z.push(ee.value);return Z}function xf(q){var ee=-1,Z=Array(q.size);return q.forEach(function(ge,De){Z[++ee]=[De,ge]}),Z}function Jv(q,ee){return function(Z){return q(ee(Z))}}function Ti(q,ee){for(var Z=-1,ge=q.length,De=0,dt=[];++Z-1}function FR(a,u){var m=this.__data__,w=Cc(m,a);return w<0?(++this.size,m.push([a,u])):m[w][1]=u,this}Zr.prototype.clear=LR,Zr.prototype.delete=NR,Zr.prototype.get=BR,Zr.prototype.has=$R,Zr.prototype.set=FR;function ei(a){var u=-1,m=a==null?0:a.length;for(this.clear();++u=u?a:u)),a}function or(a,u,m,w,T,M){var B,U=u&h,X=u&p,ne=u&g;if(m&&(B=T?m(a,w,T,M):m(a)),B!==n)return B;if(!zt(a))return a;var re=Be(a);if(re){if(B=HI(a),!U)return On(a,B)}else{var oe=yn(a),fe=oe==ye||oe==xe;if(Oi(a))return Dy(a,U);if(oe==qe||oe==se||fe&&!T){if(B=X||fe?{}:Zy(a),!U)return X?OI(a,tI(B,a)):PI(a,uy(B,a))}else{if(!Et[oe])return T?a:{};B=WI(a,oe,U)}}M||(M=new br);var we=M.get(a);if(we)return we;M.set(a,B),A0(a)?a.forEach(function(ke){B.add(or(ke,u,m,ke,a,M))}):T0(a)&&a.forEach(function(ke,Ke){B.set(Ke,or(ke,u,m,Ke,a,M))});var Te=ne?X?Vf:Gf:X?Dn:nn,Ve=re?n:Te(a);return nr(Ve||a,function(ke,Ke){Ve&&(Ke=ke,ke=a[Ke]),ka(B,Ke,or(ke,u,m,Ke,a,M))}),B}function nI(a){var u=nn(a);return function(m){return dy(m,a,u)}}function dy(a,u,m){var w=m.length;if(a==null)return!w;for(a=wt(a);w--;){var T=m[w],M=u[T],B=a[T];if(B===n&&!(T in a)||!M(B))return!1}return!0}function fy(a,u,m){if(typeof a!="function")throw new rr(s);return Da(function(){a.apply(n,m)},u)}function Aa(a,u,m,w){var T=-1,M=lc,B=!0,U=a.length,X=[],ne=u.length;if(!U)return X;m&&(u=Dt(u,Gn(m))),w?(M=ff,B=!1):u.length>=i&&(M=wa,B=!1,u=new uo(u));e:for(;++TT?0:T+m),w=w===n||w>T?T:We(w),w<0&&(w+=T),w=m>w?0:I0(w);m0&&m(U)?u>1?fn(U,u-1,m,w,T):Ci(T,U):w||(T[T.length]=U)}return T}var kf=zy(),my=zy(!0);function zr(a,u){return a&&kf(a,u,nn)}function Af(a,u){return a&&my(a,u,nn)}function kc(a,u){return Ei(u,function(m){return oi(a[m])})}function ho(a,u){u=Ii(u,a);for(var m=0,w=u.length;a!=null&&mu}function oI(a,u){return a!=null&&vt.call(a,u)}function sI(a,u){return a!=null&&u in wt(a)}function aI(a,u,m){return a>=vn(u,m)&&a=120&&re.length>=120)?new uo(B&&re):n}re=a[0];var oe=-1,fe=U[0];e:for(;++oe-1;)U!==a&&yc.call(U,X,1),yc.call(a,X,1);return a}function Ty(a,u){for(var m=a?u.length:0,w=m-1;m--;){var T=u[m];if(m==w||T!==M){var M=T;ii(T)?yc.call(a,T,1):$f(a,T)}}return a}function Lf(a,u){return a+wc(sy()*(u-a+1))}function xI(a,u,m,w){for(var T=-1,M=Zt(xc((u-a)/(m||1)),0),B=Z(M);M--;)B[w?M:++T]=a,a+=m;return B}function Nf(a,u){var m="";if(!a||u<1||u>G)return m;do u%2&&(m+=a),u=wc(u/2),u&&(a+=a);while(u);return m}function Xe(a,u){return Zf(n0(a,u,Ln),a+"")}function wI(a){return cy(hs(a))}function _I(a,u){var m=hs(a);return $c(m,fo(u,0,m.length))}function Pa(a,u,m,w){if(!zt(a))return a;u=Ii(u,a);for(var T=-1,M=u.length,B=M-1,U=a;U!=null&&++TT?0:T+u),m=m>T?T:m,m<0&&(m+=T),T=u>m?0:m-u>>>0,u>>>=0;for(var M=Z(T);++w>>1,B=a[M];B!==null&&!qn(B)&&(m?B<=u:B=i){var ne=u?null:NI(a);if(ne)return uc(ne);B=!1,T=wa,X=new uo}else X=u?[]:U;e:for(;++w=w?a:sr(a,u,m)}var My=hR||function(a){return dn.clearTimeout(a)};function Dy(a,u){if(u)return a.slice();var m=a.length,w=ty?ty(m):new a.constructor(m);return a.copy(w),w}function Uf(a){var u=new a.constructor(a.byteLength);return new gc(u).set(new gc(a)),u}function kI(a,u){var m=u?Uf(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.byteLength)}function AI(a){var u=new a.constructor(a.source,Jn.exec(a));return u.lastIndex=a.lastIndex,u}function RI(a){return Ta?wt(Ta.call(a)):{}}function Ly(a,u){var m=u?Uf(a.buffer):a.buffer;return new a.constructor(m,a.byteOffset,a.length)}function Ny(a,u){if(a!==u){var m=a!==n,w=a===null,T=a===a,M=qn(a),B=u!==n,U=u===null,X=u===u,ne=qn(u);if(!U&&!ne&&!M&&a>u||M&&B&&X&&!U&&!ne||w&&B&&X||!m&&X||!T)return 1;if(!w&&!M&&!ne&&a=U)return X;var ne=m[w];return X*(ne=="desc"?-1:1)}}return a.index-u.index}function By(a,u,m,w){for(var T=-1,M=a.length,B=m.length,U=-1,X=u.length,ne=Zt(M-B,0),re=Z(X+ne),oe=!w;++U1?m[T-1]:n,B=T>2?m[2]:n;for(M=a.length>3&&typeof M=="function"?(T--,M):n,B&&Tn(m[0],m[1],B)&&(M=T<3?n:M,T=1),u=wt(u);++w-1?T[M?u[B]:B]:n}}function Hy(a){return ri(function(u){var m=u.length,w=m,T=ir.prototype.thru;for(a&&u.reverse();w--;){var M=u[w];if(typeof M!="function")throw new rr(s);if(T&&!B&&Nc(M)=="wrapper")var B=new ir([],!0)}for(w=B?w:m;++w1&&nt.reverse(),re&&XU))return!1;var ne=M.get(a),re=M.get(u);if(ne&&re)return ne==u&&re==a;var oe=-1,fe=!0,we=m&y?new uo:n;for(M.set(a,u),M.set(u,a);++oe1?"& ":"")+u[w],u=u.join(m>2?", ":" "),a.replace(Si,`{ /* [wrapped with `+u+`] */ -`)}function WR(a){return Be(a)||go(a)||!!(ty&&a&&a[ty])}function ii(a,u){var m=typeof a;return u=u??G,!!u&&(m=="number"||m!="symbol"&&pv.test(a))&&a>-1&&a%1==0&&a0){if(++u>=W)return arguments[0]}else u=0;return a.apply(n,arguments)}}function Bc(a,u){var m=-1,w=a.length,T=w-1;for(u=u===n?w:u;++m1?a[u-1]:n;return m=typeof m=="function"?(a.pop(),m):n,d0(a,m)});function f0(a){var u=P(a);return u.__chain__=!0,u}function t2(a,u){return u(a),a}function $c(a,u){return u(a)}var n2=ri(function(a){var u=a.length,m=u?a[0]:0,w=this.__wrapped__,T=function(M){return Cf(M,a)};return u>1||this.__actions__.length||!(w instanceof Je)||!ii(m)?this.thru(T):(w=w.slice(m,+m+(u?1:0)),w.__actions__.push({func:$c,args:[T],thisArg:n}),new ir(w,this.__chain__).thru(function(M){return u&&!M.length&&M.push(n),M}))});function r2(){return f0(this)}function i2(){return new ir(this.value(),this.__chain__)}function o2(){this.__values__===n&&(this.__values__=T0(this.value()));var a=this.__index__>=this.__values__.length,u=a?n:this.__values__[this.__index__++];return{done:a,value:u}}function s2(){return this}function a2(a){for(var u,m=this;m instanceof Sc;){var w=o0(m);w.__index__=0,w.__values__=n,u?T.__wrapped__=w:u=w;var T=w;m=m.__wrapped__}return T.__wrapped__=a,u}function l2(){var a=this.__wrapped__;if(a instanceof Je){var u=a;return this.__actions__.length&&(u=new Je(this)),u=u.reverse(),u.__actions__.push({func:$c,args:[Zf],thisArg:n}),new ir(u,this.__chain__)}return this.thru(Zf)}function c2(){return Ay(this.__wrapped__,this.__actions__)}var u2=Rc(function(a,u,m){vt.call(a,m)?++a[m]:ti(a,m,1)});function d2(a,u,m){var w=Be(a)?jv:tR;return m&&Cn(a,u,m)&&(u=n),w(a,Ce(u,3))}function f2(a,u){var m=Be(a)?Ei:dy;return m(a,Ce(u,3))}var h2=Fy(s0),p2=Fy(a0);function m2(a,u){return fn(Fc(a,u),1)}function g2(a,u){return fn(Fc(a,u),V)}function v2(a,u,m){return m=m===n?1:We(m),fn(Fc(a,u),m)}function h0(a,u){var m=Be(a)?nr:Ai;return m(a,Ce(u,3))}function p0(a,u){var m=Be(a)?NA:uy;return m(a,Ce(u,3))}var y2=Rc(function(a,u,m){vt.call(a,m)?a[m].push(u):ti(a,m,[u])});function b2(a,u,m,w){a=On(a)?a:hs(a),m=m&&!w?We(m):0;var T=a.length;return m<0&&(m=Zt(T+m,0)),Wc(a)?m<=T&&a.indexOf(u,m)>-1:!!T&&ts(a,u,m)>-1}var x2=Xe(function(a,u,m){var w=-1,T=typeof u=="function",M=On(a)?Z(a.length):[];return Ai(a,function(B){M[++w]=T?Wn(u,B,m):Aa(B,u,m)}),M}),w2=Rc(function(a,u,m){ti(a,m,u)});function Fc(a,u){var m=Be(a)?Dt:vy;return m(a,Ce(u,3))}function _2(a,u,m,w){return a==null?[]:(Be(u)||(u=u==null?[]:[u]),m=w?n:m,Be(m)||(m=m==null?[]:[m]),wy(a,u,m))}var S2=Rc(function(a,u,m){a[m?0:1].push(u)},function(){return[[],[]]});function E2(a,u,m){var w=Be(a)?ff:Gv,T=arguments.length<3;return w(a,Ce(u,4),m,T,Ai)}function C2(a,u,m){var w=Be(a)?BA:Gv,T=arguments.length<3;return w(a,Ce(u,4),m,T,uy)}function T2(a,u){var m=Be(a)?Ei:dy;return m(a,Uc(Ce(u,3)))}function k2(a){var u=Be(a)?sy:bR;return u(a)}function A2(a,u,m){(m?Cn(a,u,m):u===n)?u=1:u=We(u);var w=Be(a)?KI:xR;return w(a,u)}function I2(a){var u=Be(a)?QI:_R;return u(a)}function R2(a){if(a==null)return 0;if(On(a))return Wc(a)?rs(a):a.length;var u=vn(a);return u==me||u==Fe?a.size:Pf(a).length}function P2(a,u,m){var w=Be(a)?hf:SR;return m&&Cn(a,u,m)&&(u=n),w(a,Ce(u,3))}var O2=Xe(function(a,u){if(a==null)return[];var m=u.length;return m>1&&Cn(a,u[0],u[1])?u=[]:m>2&&Cn(u[0],u[1],u[2])&&(u=[u[0]]),wy(a,fn(u,1),[])}),zc=fI||function(){return dn.Date.now()};function M2(a,u){if(typeof u!="function")throw new rr(s);return a=We(a),function(){if(--a<1)return u.apply(this,arguments)}}function m0(a,u,m){return u=m?n:u,u=a&&u==null?a.length:u,ni(a,k,n,n,n,n,u)}function g0(a,u){var m;if(typeof u!="function")throw new rr(s);return a=We(a),function(){return--a>0&&(m=u.apply(this,arguments)),a<=1&&(u=n),m}}var th=Xe(function(a,u,m){var w=S;if(m.length){var T=Ti(m,ds(th));w|=A}return ni(a,w,u,m,T)}),v0=Xe(function(a,u,m){var w=S|_;if(m.length){var T=Ti(m,ds(v0));w|=A}return ni(u,w,a,m,T)});function y0(a,u,m){u=m?n:u;var w=ni(a,x,n,n,n,n,n,u);return w.placeholder=y0.placeholder,w}function b0(a,u,m){u=m?n:u;var w=ni(a,E,n,n,n,n,n,u);return w.placeholder=b0.placeholder,w}function x0(a,u,m){var w,T,M,B,U,X,ne=0,re=!1,oe=!1,fe=!0;if(typeof a!="function")throw new rr(s);u=lr(u)||0,Ft(m)&&(re=!!m.leading,oe="maxWait"in m,M=oe?Zt(lr(m.maxWait)||0,u):M,fe="trailing"in m?!!m.trailing:fe);function we(Yt){var wr=w,ai=T;return w=T=n,ne=Yt,B=a.apply(ai,wr),B}function Te(Yt){return ne=Yt,U=Ma(Ke,u),re?we(Yt):B}function Ve(Yt){var wr=Yt-X,ai=Yt-ne,F0=u-wr;return oe?gn(F0,M-ai):F0}function ke(Yt){var wr=Yt-X,ai=Yt-ne;return X===n||wr>=u||wr<0||oe&&ai>=M}function Ke(){var Yt=zc();if(ke(Yt))return nt(Yt);U=Ma(Ke,Ve(Yt))}function nt(Yt){return U=n,fe&&w?we(Yt):(w=T=n,B)}function Xn(){U!==n&&Ry(U),ne=0,w=X=T=U=n}function Tn(){return U===n?B:nt(zc())}function Yn(){var Yt=zc(),wr=ke(Yt);if(w=arguments,T=this,X=Yt,wr){if(U===n)return Te(X);if(oe)return Ry(U),U=Ma(Ke,u),we(X)}return U===n&&(U=Ma(Ke,u)),B}return Yn.cancel=Xn,Yn.flush=Tn,Yn}var D2=Xe(function(a,u){return cy(a,1,u)}),L2=Xe(function(a,u,m){return cy(a,lr(u)||0,m)});function N2(a){return ni(a,L)}function jc(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new rr(s);var m=function(){var w=arguments,T=u?u.apply(this,w):w[0],M=m.cache;if(M.has(T))return M.get(T);var B=a.apply(this,w);return m.cache=M.set(T,B)||M,B};return m.cache=new(jc.Cache||ei),m}jc.Cache=ei;function Uc(a){if(typeof a!="function")throw new rr(s);return function(){var u=arguments;switch(u.length){case 0:return!a.call(this);case 1:return!a.call(this,u[0]);case 2:return!a.call(this,u[0],u[1]);case 3:return!a.call(this,u[0],u[1],u[2])}return!a.apply(this,u)}}function B2(a){return g0(2,a)}var $2=ER(function(a,u){u=u.length==1&&Be(u[0])?Dt(u[0],Gn(Ce())):Dt(fn(u,1),Gn(Ce()));var m=u.length;return Xe(function(w){for(var T=-1,M=gn(w.length,m);++T=u}),go=py(function(){return arguments}())?py:function(a){return jt(a)&&vt.call(a,"callee")&&!ey.call(a,"callee")},Be=Z.isArray,Z2=Lv?Gn(Lv):aR;function On(a){return a!=null&&Hc(a.length)&&!oi(a)}function Xt(a){return jt(a)&&On(a)}function eO(a){return a===!0||a===!1||jt(a)&&En(a)==le}var Oi=pI||hh,tO=Nv?Gn(Nv):lR;function nO(a){return jt(a)&&a.nodeType===1&&!Da(a)}function rO(a){if(a==null)return!0;if(On(a)&&(Be(a)||typeof a=="string"||typeof a.splice=="function"||Oi(a)||fs(a)||go(a)))return!a.length;var u=vn(a);if(u==me||u==Fe)return!a.size;if(Oa(a))return!Pf(a).length;for(var m in a)if(vt.call(a,m))return!1;return!0}function iO(a,u){return Ia(a,u)}function oO(a,u,m){m=typeof m=="function"?m:n;var w=m?m(a,u):n;return w===n?Ia(a,u,n,m):!!w}function rh(a){if(!jt(a))return!1;var u=En(a);return u==ve||u==pe||typeof a.message=="string"&&typeof a.name=="string"&&!Da(a)}function sO(a){return typeof a=="number"&&ny(a)}function oi(a){if(!Ft(a))return!1;var u=En(a);return u==ye||u==xe||u==ae||u==Lt}function _0(a){return typeof a=="number"&&a==We(a)}function Hc(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=G}function Ft(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function jt(a){return a!=null&&typeof a=="object"}var S0=Bv?Gn(Bv):uR;function aO(a,u){return a===u||Rf(a,u,qf(u))}function lO(a,u,m){return m=typeof m=="function"?m:n,Rf(a,u,qf(u),m)}function cO(a){return E0(a)&&a!=+a}function uO(a){if(qR(a))throw new De(o);return my(a)}function dO(a){return a===null}function fO(a){return a==null}function E0(a){return typeof a=="number"||jt(a)&&En(a)==be}function Da(a){if(!jt(a)||En(a)!=qe)return!1;var u=gc(a);if(u===null)return!0;var m=vt.call(u,"constructor")&&u.constructor;return typeof m=="function"&&m instanceof m&&fc.call(m)==lI}var ih=$v?Gn($v):dR;function hO(a){return _0(a)&&a>=-G&&a<=G}var C0=Fv?Gn(Fv):fR;function Wc(a){return typeof a=="string"||!Be(a)&&jt(a)&&En(a)==it}function qn(a){return typeof a=="symbol"||jt(a)&&En(a)==pt}var fs=zv?Gn(zv):hR;function pO(a){return a===n}function mO(a){return jt(a)&&vn(a)==_e}function gO(a){return jt(a)&&En(a)==ze}var vO=Dc(Of),yO=Dc(function(a,u){return a<=u});function T0(a){if(!a)return[];if(On(a))return Wc(a)?yr(a):Pn(a);if(wa&&a[wa])return KA(a[wa]());var u=vn(a),m=u==me?bf:u==Fe?cc:hs;return m(a)}function si(a){if(!a)return a===0?a:0;if(a=lr(a),a===V||a===-V){var u=a<0?-1:1;return u*K}return a===a?a:0}function We(a){var u=si(a),m=u%1;return u===u?m?u-m:u:0}function k0(a){return a?fo(We(a),0,J):0}function lr(a){if(typeof a=="number")return a;if(qn(a))return Y;if(Ft(a)){var u=typeof a.valueOf=="function"?a.valueOf():a;a=Ft(u)?u+"":u}if(typeof a!="string")return a===0?a:+a;a=Vv(a);var m=yl.test(a);return m||hv.test(a)?MA(a.slice(2),m?2:8):vl.test(a)?Y:+a}function A0(a){return jr(a,Mn(a))}function bO(a){return a?fo(We(a),-G,G):a===0?a:0}function ft(a){return a==null?"":Vn(a)}var xO=cs(function(a,u){if(Oa(u)||On(u)){jr(u,nn(u),a);return}for(var m in u)vt.call(u,m)&&Ta(a,m,u[m])}),I0=cs(function(a,u){jr(u,Mn(u),a)}),Gc=cs(function(a,u,m,w){jr(u,Mn(u),a,w)}),wO=cs(function(a,u,m,w){jr(u,nn(u),a,w)}),_O=ri(Cf);function SO(a,u){var m=ls(a);return u==null?m:ay(m,u)}var EO=Xe(function(a,u){a=wt(a);var m=-1,w=u.length,T=w>2?u[2]:n;for(T&&Cn(u[0],u[1],T)&&(w=1);++m1),M}),jr(a,Gf(a),m),w&&(m=or(m,h|p|g,LR));for(var T=u.length;T--;)Bf(m,u[T]);return m});function UO(a,u){return P0(a,Uc(Ce(u)))}var HO=ri(function(a,u){return a==null?{}:gR(a,u)});function P0(a,u){if(a==null)return{};var m=Dt(Gf(a),function(w){return[w]});return u=Ce(u),_y(a,m,function(w,T){return u(w,T[0])})}function WO(a,u,m){u=Ri(u,a);var w=-1,T=u.length;for(T||(T=1,a=n);++wu){var w=a;a=u,u=w}if(m||a%1||u%1){var T=ry();return gn(a+T*(u-a+OA("1e-"+((T+"").length-1))),u)}return Df(a,u)}var tM=us(function(a,u,m){return u=u.toLowerCase(),a+(m?D0(u):u)});function D0(a){return ah(ft(a).toLowerCase())}function L0(a){return a=ft(a),a&&a.replace(Qt,GA).replace(_A,"")}function nM(a,u,m){a=ft(a),u=Vn(u);var w=a.length;m=m===n?w:fo(We(m),0,w);var T=m;return m-=u.length,m>=0&&a.slice(m,T)==u}function rM(a){return a=ft(a),a&&Jr.test(a)?a.replace(Mr,VA):a}function iM(a){return a=ft(a),a&&tf.test(a)?a.replace(Qo,"\\$&"):a}var oM=us(function(a,u,m){return a+(m?"-":"")+u.toLowerCase()}),sM=us(function(a,u,m){return a+(m?" ":"")+u.toLowerCase()}),aM=$y("toLowerCase");function lM(a,u,m){a=ft(a),u=We(u);var w=u?rs(a):0;if(!u||w>=u)return a;var T=(u-w)/2;return Mc(xc(T),m)+a+Mc(bc(T),m)}function cM(a,u,m){a=ft(a),u=We(u);var w=u?rs(a):0;return u&&w>>0,m?(a=ft(a),a&&(typeof u=="string"||u!=null&&!ih(u))&&(u=Vn(u),!u&&ns(a))?Pi(yr(a),0,m):a.split(u,m)):[]}var gM=us(function(a,u,m){return a+(m?" ":"")+ah(u)});function vM(a,u,m){return a=ft(a),m=m==null?0:fo(We(m),0,a.length),u=Vn(u),a.slice(m,m+u.length)==u}function yM(a,u,m){var w=P.templateSettings;m&&Cn(a,u,m)&&(u=n),a=ft(a),u=Gc({},u,w,Gy);var T=Gc({},u.imports,w.imports,Gy),M=nn(T),B=yf(T,M),U,X,ne=0,re=u.interpolate||vr,oe="__p += '",fe=xf((u.escape||vr).source+"|"+re.source+"|"+(re===Ws?Hn:vr).source+"|"+(u.evaluate||vr).source+"|$","g"),we="//# sourceURL="+(vt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++kA+"]")+` -`;a.replace(fe,function(ke,Ke,nt,Xn,Tn,Yn){return nt||(nt=Xn),oe+=a.slice(ne,Yn).replace(iA,qA),Ke&&(U=!0,oe+=`' + +`)}function VI(a){return Be(a)||go(a)||!!(iy&&a&&a[iy])}function ii(a,u){var m=typeof a;return u=u??G,!!u&&(m=="number"||m!="symbol"&&vv.test(a))&&a>-1&&a%1==0&&a0){if(++u>=W)return arguments[0]}else u=0;return a.apply(n,arguments)}}function $c(a,u){var m=-1,w=a.length,T=w-1;for(u=u===n?w:u;++m1?a[u-1]:n;return m=typeof m=="function"?(a.pop(),m):n,p0(a,m)});function m0(a){var u=P(a);return u.__chain__=!0,u}function r2(a,u){return u(a),a}function Fc(a,u){return u(a)}var i2=ri(function(a){var u=a.length,m=u?a[0]:0,w=this.__wrapped__,T=function(M){return Tf(M,a)};return u>1||this.__actions__.length||!(w instanceof Je)||!ii(m)?this.thru(T):(w=w.slice(m,+m+(u?1:0)),w.__actions__.push({func:Fc,args:[T],thisArg:n}),new ir(w,this.__chain__).thru(function(M){return u&&!M.length&&M.push(n),M}))});function o2(){return m0(this)}function s2(){return new ir(this.value(),this.__chain__)}function a2(){this.__values__===n&&(this.__values__=R0(this.value()));var a=this.__index__>=this.__values__.length,u=a?n:this.__values__[this.__index__++];return{done:a,value:u}}function l2(){return this}function c2(a){for(var u,m=this;m instanceof Ec;){var w=l0(m);w.__index__=0,w.__values__=n,u?T.__wrapped__=w:u=w;var T=w;m=m.__wrapped__}return T.__wrapped__=a,u}function u2(){var a=this.__wrapped__;if(a instanceof Je){var u=a;return this.__actions__.length&&(u=new Je(this)),u=u.reverse(),u.__actions__.push({func:Fc,args:[eh],thisArg:n}),new ir(u,this.__chain__)}return this.thru(eh)}function d2(){return Py(this.__wrapped__,this.__actions__)}var f2=Pc(function(a,u,m){vt.call(a,m)?++a[m]:ti(a,m,1)});function h2(a,u,m){var w=Be(a)?Wv:rI;return m&&Tn(a,u,m)&&(u=n),w(a,Ce(u,3))}function p2(a,u){var m=Be(a)?Ei:py;return m(a,Ce(u,3))}var m2=Uy(c0),g2=Uy(u0);function v2(a,u){return fn(zc(a,u),1)}function y2(a,u){return fn(zc(a,u),V)}function b2(a,u,m){return m=m===n?1:We(m),fn(zc(a,u),m)}function g0(a,u){var m=Be(a)?nr:Ai;return m(a,Ce(u,3))}function v0(a,u){var m=Be(a)?$A:hy;return m(a,Ce(u,3))}var x2=Pc(function(a,u,m){vt.call(a,m)?a[m].push(u):ti(a,m,[u])});function w2(a,u,m,w){a=Mn(a)?a:hs(a),m=m&&!w?We(m):0;var T=a.length;return m<0&&(m=Zt(T+m,0)),Gc(a)?m<=T&&a.indexOf(u,m)>-1:!!T&&ts(a,u,m)>-1}var _2=Xe(function(a,u,m){var w=-1,T=typeof u=="function",M=Mn(a)?Z(a.length):[];return Ai(a,function(B){M[++w]=T?Wn(u,B,m):Ra(B,u,m)}),M}),S2=Pc(function(a,u,m){ti(a,m,u)});function zc(a,u){var m=Be(a)?Dt:xy;return m(a,Ce(u,3))}function E2(a,u,m,w){return a==null?[]:(Be(u)||(u=u==null?[]:[u]),m=w?n:m,Be(m)||(m=m==null?[]:[m]),Ey(a,u,m))}var C2=Pc(function(a,u,m){a[m?0:1].push(u)},function(){return[[],[]]});function T2(a,u,m){var w=Be(a)?hf:Xv,T=arguments.length<3;return w(a,Ce(u,4),m,T,Ai)}function k2(a,u,m){var w=Be(a)?FA:Xv,T=arguments.length<3;return w(a,Ce(u,4),m,T,hy)}function A2(a,u){var m=Be(a)?Ei:py;return m(a,Hc(Ce(u,3)))}function R2(a){var u=Be(a)?cy:wI;return u(a)}function I2(a,u,m){(m?Tn(a,u,m):u===n)?u=1:u=We(u);var w=Be(a)?JR:_I;return w(a,u)}function P2(a){var u=Be(a)?ZR:EI;return u(a)}function O2(a){if(a==null)return 0;if(Mn(a))return Gc(a)?rs(a):a.length;var u=yn(a);return u==me||u==Fe?a.size:Of(a).length}function M2(a,u,m){var w=Be(a)?pf:CI;return m&&Tn(a,u,m)&&(u=n),w(a,Ce(u,3))}var D2=Xe(function(a,u){if(a==null)return[];var m=u.length;return m>1&&Tn(a,u[0],u[1])?u=[]:m>2&&Tn(u[0],u[1],u[2])&&(u=[u[0]]),Ey(a,fn(u,1),[])}),jc=pR||function(){return dn.Date.now()};function L2(a,u){if(typeof u!="function")throw new rr(s);return a=We(a),function(){if(--a<1)return u.apply(this,arguments)}}function y0(a,u,m){return u=m?n:u,u=a&&u==null?a.length:u,ni(a,k,n,n,n,n,u)}function b0(a,u){var m;if(typeof u!="function")throw new rr(s);return a=We(a),function(){return--a>0&&(m=u.apply(this,arguments)),a<=1&&(u=n),m}}var nh=Xe(function(a,u,m){var w=S;if(m.length){var T=Ti(m,ds(nh));w|=A}return ni(a,w,u,m,T)}),x0=Xe(function(a,u,m){var w=S|_;if(m.length){var T=Ti(m,ds(x0));w|=A}return ni(u,w,a,m,T)});function w0(a,u,m){u=m?n:u;var w=ni(a,x,n,n,n,n,n,u);return w.placeholder=w0.placeholder,w}function _0(a,u,m){u=m?n:u;var w=ni(a,E,n,n,n,n,n,u);return w.placeholder=_0.placeholder,w}function S0(a,u,m){var w,T,M,B,U,X,ne=0,re=!1,oe=!1,fe=!0;if(typeof a!="function")throw new rr(s);u=lr(u)||0,zt(m)&&(re=!!m.leading,oe="maxWait"in m,M=oe?Zt(lr(m.maxWait)||0,u):M,fe="trailing"in m?!!m.trailing:fe);function we(Yt){var wr=w,ai=T;return w=T=n,ne=Yt,B=a.apply(ai,wr),B}function Te(Yt){return ne=Yt,U=Da(Ke,u),re?we(Yt):B}function Ve(Yt){var wr=Yt-X,ai=Yt-ne,U0=u-wr;return oe?vn(U0,M-ai):U0}function ke(Yt){var wr=Yt-X,ai=Yt-ne;return X===n||wr>=u||wr<0||oe&&ai>=M}function Ke(){var Yt=jc();if(ke(Yt))return nt(Yt);U=Da(Ke,Ve(Yt))}function nt(Yt){return U=n,fe&&w?we(Yt):(w=T=n,B)}function Xn(){U!==n&&My(U),ne=0,w=X=T=U=n}function kn(){return U===n?B:nt(jc())}function Yn(){var Yt=jc(),wr=ke(Yt);if(w=arguments,T=this,X=Yt,wr){if(U===n)return Te(X);if(oe)return My(U),U=Da(Ke,u),we(X)}return U===n&&(U=Da(Ke,u)),B}return Yn.cancel=Xn,Yn.flush=kn,Yn}var N2=Xe(function(a,u){return fy(a,1,u)}),B2=Xe(function(a,u,m){return fy(a,lr(u)||0,m)});function $2(a){return ni(a,L)}function Uc(a,u){if(typeof a!="function"||u!=null&&typeof u!="function")throw new rr(s);var m=function(){var w=arguments,T=u?u.apply(this,w):w[0],M=m.cache;if(M.has(T))return M.get(T);var B=a.apply(this,w);return m.cache=M.set(T,B)||M,B};return m.cache=new(Uc.Cache||ei),m}Uc.Cache=ei;function Hc(a){if(typeof a!="function")throw new rr(s);return function(){var u=arguments;switch(u.length){case 0:return!a.call(this);case 1:return!a.call(this,u[0]);case 2:return!a.call(this,u[0],u[1]);case 3:return!a.call(this,u[0],u[1],u[2])}return!a.apply(this,u)}}function F2(a){return b0(2,a)}var z2=TI(function(a,u){u=u.length==1&&Be(u[0])?Dt(u[0],Gn(Ce())):Dt(fn(u,1),Gn(Ce()));var m=u.length;return Xe(function(w){for(var T=-1,M=vn(w.length,m);++T=u}),go=vy(function(){return arguments}())?vy:function(a){return jt(a)&&vt.call(a,"callee")&&!ry.call(a,"callee")},Be=Z.isArray,tO=$v?Gn($v):cI;function Mn(a){return a!=null&&Wc(a.length)&&!oi(a)}function Xt(a){return jt(a)&&Mn(a)}function nO(a){return a===!0||a===!1||jt(a)&&Cn(a)==le}var Oi=gR||ph,rO=Fv?Gn(Fv):uI;function iO(a){return jt(a)&&a.nodeType===1&&!La(a)}function oO(a){if(a==null)return!0;if(Mn(a)&&(Be(a)||typeof a=="string"||typeof a.splice=="function"||Oi(a)||fs(a)||go(a)))return!a.length;var u=yn(a);if(u==me||u==Fe)return!a.size;if(Ma(a))return!Of(a).length;for(var m in a)if(vt.call(a,m))return!1;return!0}function sO(a,u){return Ia(a,u)}function aO(a,u,m){m=typeof m=="function"?m:n;var w=m?m(a,u):n;return w===n?Ia(a,u,n,m):!!w}function ih(a){if(!jt(a))return!1;var u=Cn(a);return u==ve||u==pe||typeof a.message=="string"&&typeof a.name=="string"&&!La(a)}function lO(a){return typeof a=="number"&&oy(a)}function oi(a){if(!zt(a))return!1;var u=Cn(a);return u==ye||u==xe||u==ae||u==Nt}function C0(a){return typeof a=="number"&&a==We(a)}function Wc(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=G}function zt(a){var u=typeof a;return a!=null&&(u=="object"||u=="function")}function jt(a){return a!=null&&typeof a=="object"}var T0=zv?Gn(zv):fI;function cO(a,u){return a===u||Pf(a,u,Xf(u))}function uO(a,u,m){return m=typeof m=="function"?m:n,Pf(a,u,Xf(u),m)}function dO(a){return k0(a)&&a!=+a}function fO(a){if(YI(a))throw new De(o);return yy(a)}function hO(a){return a===null}function pO(a){return a==null}function k0(a){return typeof a=="number"||jt(a)&&Cn(a)==be}function La(a){if(!jt(a)||Cn(a)!=qe)return!1;var u=vc(a);if(u===null)return!0;var m=vt.call(u,"constructor")&&u.constructor;return typeof m=="function"&&m instanceof m&&hc.call(m)==uR}var oh=jv?Gn(jv):hI;function mO(a){return C0(a)&&a>=-G&&a<=G}var A0=Uv?Gn(Uv):pI;function Gc(a){return typeof a=="string"||!Be(a)&&jt(a)&&Cn(a)==it}function qn(a){return typeof a=="symbol"||jt(a)&&Cn(a)==pt}var fs=Hv?Gn(Hv):mI;function gO(a){return a===n}function vO(a){return jt(a)&&yn(a)==_e}function yO(a){return jt(a)&&Cn(a)==ze}var bO=Lc(Mf),xO=Lc(function(a,u){return a<=u});function R0(a){if(!a)return[];if(Mn(a))return Gc(a)?yr(a):On(a);if(_a&&a[_a])return JA(a[_a]());var u=yn(a),m=u==me?xf:u==Fe?uc:hs;return m(a)}function si(a){if(!a)return a===0?a:0;if(a=lr(a),a===V||a===-V){var u=a<0?-1:1;return u*K}return a===a?a:0}function We(a){var u=si(a),m=u%1;return u===u?m?u-m:u:0}function I0(a){return a?fo(We(a),0,J):0}function lr(a){if(typeof a=="number")return a;if(qn(a))return Y;if(zt(a)){var u=typeof a.valueOf=="function"?a.valueOf():a;a=zt(u)?u+"":u}if(typeof a!="string")return a===0?a:+a;a=Yv(a);var m=xl.test(a);return m||gv.test(a)?LA(a.slice(2),m?2:8):bl.test(a)?Y:+a}function P0(a){return jr(a,Dn(a))}function wO(a){return a?fo(We(a),-G,G):a===0?a:0}function ft(a){return a==null?"":Vn(a)}var _O=cs(function(a,u){if(Ma(u)||Mn(u)){jr(u,nn(u),a);return}for(var m in u)vt.call(u,m)&&ka(a,m,u[m])}),O0=cs(function(a,u){jr(u,Dn(u),a)}),Vc=cs(function(a,u,m,w){jr(u,Dn(u),a,w)}),SO=cs(function(a,u,m,w){jr(u,nn(u),a,w)}),EO=ri(Tf);function CO(a,u){var m=ls(a);return u==null?m:uy(m,u)}var TO=Xe(function(a,u){a=wt(a);var m=-1,w=u.length,T=w>2?u[2]:n;for(T&&Tn(u[0],u[1],T)&&(w=1);++m1),M}),jr(a,Vf(a),m),w&&(m=or(m,h|p|g,BI));for(var T=u.length;T--;)$f(m,u[T]);return m});function WO(a,u){return D0(a,Hc(Ce(u)))}var GO=ri(function(a,u){return a==null?{}:yI(a,u)});function D0(a,u){if(a==null)return{};var m=Dt(Vf(a),function(w){return[w]});return u=Ce(u),Cy(a,m,function(w,T){return u(w,T[0])})}function VO(a,u,m){u=Ii(u,a);var w=-1,T=u.length;for(T||(T=1,a=n);++wu){var w=a;a=u,u=w}if(m||a%1||u%1){var T=sy();return vn(a+T*(u-a+DA("1e-"+((T+"").length-1))),u)}return Lf(a,u)}var rM=us(function(a,u,m){return u=u.toLowerCase(),a+(m?B0(u):u)});function B0(a){return lh(ft(a).toLowerCase())}function $0(a){return a=ft(a),a&&a.replace(Qt,qA).replace(EA,"")}function iM(a,u,m){a=ft(a),u=Vn(u);var w=a.length;m=m===n?w:fo(We(m),0,w);var T=m;return m-=u.length,m>=0&&a.slice(m,T)==u}function oM(a){return a=ft(a),a&&Jr.test(a)?a.replace(Mr,XA):a}function sM(a){return a=ft(a),a&&nf.test(a)?a.replace(Qo,"\\$&"):a}var aM=us(function(a,u,m){return a+(m?"-":"")+u.toLowerCase()}),lM=us(function(a,u,m){return a+(m?" ":"")+u.toLowerCase()}),cM=jy("toLowerCase");function uM(a,u,m){a=ft(a),u=We(u);var w=u?rs(a):0;if(!u||w>=u)return a;var T=(u-w)/2;return Dc(wc(T),m)+a+Dc(xc(T),m)}function dM(a,u,m){a=ft(a),u=We(u);var w=u?rs(a):0;return u&&w>>0,m?(a=ft(a),a&&(typeof u=="string"||u!=null&&!oh(u))&&(u=Vn(u),!u&&ns(a))?Pi(yr(a),0,m):a.split(u,m)):[]}var yM=us(function(a,u,m){return a+(m?" ":"")+lh(u)});function bM(a,u,m){return a=ft(a),m=m==null?0:fo(We(m),0,a.length),u=Vn(u),a.slice(m,m+u.length)==u}function xM(a,u,m){var w=P.templateSettings;m&&Tn(a,u,m)&&(u=n),a=ft(a),u=Vc({},u,w,Xy);var T=Vc({},u.imports,w.imports,Xy),M=nn(T),B=bf(T,M),U,X,ne=0,re=u.interpolate||vr,oe="__p += '",fe=wf((u.escape||vr).source+"|"+re.source+"|"+(re===Ws?Hn:vr).source+"|"+(u.evaluate||vr).source+"|$","g"),we="//# sourceURL="+(vt.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++RA+"]")+` +`;a.replace(fe,function(ke,Ke,nt,Xn,kn,Yn){return nt||(nt=Xn),oe+=a.slice(ne,Yn).replace(sA,YA),Ke&&(U=!0,oe+=`' + __e(`+Ke+`) + -'`),Tn&&(X=!0,oe+=`'; -`+Tn+`; +'`),kn&&(X=!0,oe+=`'; +`+kn+`; __p += '`),nt&&(oe+=`' + ((__t = (`+nt+`)) == null ? '' : __t) + '`),ne=Yn+ke.length,ke}),oe+=`'; `;var Te=vt.call(u,"variable")&&u.variable;if(!Te)oe=`with (obj) { `+oe+` } -`;else if(ba.test(Te))throw new De(l);oe=(X?oe.replace(Wt,""):oe).replace(pn,"$1").replace($r,"$1;"),oe="function("+(Te||"obj")+`) { +`;else if(xa.test(Te))throw new De(l);oe=(X?oe.replace(Wt,""):oe).replace(pn,"$1").replace($r,"$1;"),oe="function("+(Te||"obj")+`) { `+(Te?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(X?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+oe+`return __p -}`;var Ve=B0(function(){return ut(M,we+"return "+oe).apply(n,B)});if(Ve.source=oe,rh(Ve))throw Ve;return Ve}function bM(a){return ft(a).toLowerCase()}function xM(a){return ft(a).toUpperCase()}function wM(a,u,m){if(a=ft(a),a&&(m||u===n))return Vv(a);if(!a||!(u=Vn(u)))return a;var w=yr(a),T=yr(u),M=qv(w,T),B=Xv(w,T)+1;return Pi(w,M,B).join("")}function _M(a,u,m){if(a=ft(a),a&&(m||u===n))return a.slice(0,Kv(a)+1);if(!a||!(u=Vn(u)))return a;var w=yr(a),T=Xv(w,yr(u))+1;return Pi(w,0,T).join("")}function SM(a,u,m){if(a=ft(a),a&&(m||u===n))return a.replace(oo,"");if(!a||!(u=Vn(u)))return a;var w=yr(a),T=qv(w,yr(u));return Pi(w,T).join("")}function EM(a,u){var m=N,w=H;if(Ft(u)){var T="separator"in u?u.separator:T;m="length"in u?We(u.length):m,w="omission"in u?Vn(u.omission):w}a=ft(a);var M=a.length;if(ns(a)){var B=yr(a);M=B.length}if(m>=M)return a;var U=m-rs(w);if(U<1)return w;var X=B?Pi(B,0,U).join(""):a.slice(0,U);if(T===n)return X+w;if(B&&(U+=X.length-U),ih(T)){if(a.slice(U).search(T)){var ne,re=X;for(T.global||(T=xf(T.source,ft(Jn.exec(T))+"g")),T.lastIndex=0;ne=T.exec(re);)var oe=ne.index;X=X.slice(0,oe===n?U:oe)}}else if(a.indexOf(Vn(T),U)!=U){var fe=X.lastIndexOf(T);fe>-1&&(X=X.slice(0,fe))}return X+w}function CM(a){return a=ft(a),a&&Fr.test(a)?a.replace(Or,eI):a}var TM=us(function(a,u,m){return a+(m?" ":"")+u.toUpperCase()}),ah=$y("toUpperCase");function N0(a,u,m){return a=ft(a),u=m?n:u,u===n?YA(a)?rI(a):zA(a):a.match(u)||[]}var B0=Xe(function(a,u){try{return Wn(a,n,u)}catch(m){return rh(m)?m:new De(m)}}),kM=ri(function(a,u){return nr(u,function(m){m=Ur(m),ti(a,m,th(a[m],a))}),a});function AM(a){var u=a==null?0:a.length,m=Ce();return a=u?Dt(a,function(w){if(typeof w[1]!="function")throw new rr(s);return[m(w[0]),w[1]]}):[],Xe(function(w){for(var T=-1;++TG)return[];var m=J,w=gn(a,J);u=Ce(u),a-=J;for(var T=vf(w,u);++m0||u<0)?new Je(m):(a<0?m=m.takeRight(-a):a&&(m=m.drop(a)),u!==n&&(u=We(u),m=u<0?m.dropRight(-u):m.take(u-a)),m)},Je.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Je.prototype.toArray=function(){return this.take(J)},zr(Je.prototype,function(a,u){var m=/^(?:filter|find|map|reject)|While$/.test(u),w=/^(?:head|last)$/.test(u),T=P[w?"take"+(u=="last"?"Right":""):u],M=w||/^find/.test(u);T&&(P.prototype[u]=function(){var B=this.__wrapped__,U=w?[1]:arguments,X=B instanceof Je,ne=U[0],re=X||Be(B),oe=function(Ke){var nt=T.apply(P,Ci([Ke],U));return w&&fe?nt[0]:nt};re&&m&&typeof ne=="function"&&ne.length!=1&&(X=re=!1);var fe=this.__chain__,we=!!this.__actions__.length,Te=M&&!fe,Ve=X&&!we;if(!M&&re){B=Ve?B:new Je(this);var ke=a.apply(B,U);return ke.__actions__.push({func:$c,args:[oe],thisArg:n}),new ir(ke,fe)}return Te&&Ve?a.apply(this,U):(ke=this.thru(oe),Te?w?ke.value()[0]:ke.value():ke)})}),nr(["pop","push","shift","sort","splice","unshift"],function(a){var u=uc[a],m=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",w=/^(?:pop|shift)$/.test(a);P.prototype[a]=function(){var T=arguments;if(w&&!this.__chain__){var M=this.value();return u.apply(Be(M)?M:[],T)}return this[m](function(B){return u.apply(Be(B)?B:[],T)})}}),zr(Je.prototype,function(a,u){var m=P[u];if(m){var w=m.name+"";vt.call(as,w)||(as[w]=[]),as[w].push({name:u,func:m})}}),as[Pc(n,_).name]=[{name:"wrapper",func:n}],Je.prototype.clone=CI,Je.prototype.reverse=TI,Je.prototype.value=kI,P.prototype.at=n2,P.prototype.chain=r2,P.prototype.commit=i2,P.prototype.next=o2,P.prototype.plant=a2,P.prototype.reverse=l2,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=c2,P.prototype.first=P.prototype.head,wa&&(P.prototype[wa]=s2),P},is=iI();ao?((ao.exports=is)._=is,cf._=is):dn._=is}).call(Nt)})(sC,sC.exports);var Gt=sC.exports;let _Fe=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");var Bp=(e=>(e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2",e))(Bp||{}),qee=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS",e))(qee||{}),s3=(e=>(e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e))(s3||{}),Mt=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR",e))(Mt||{}),Ml=(e=>(e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN",e))(Ml||{}),Ge=(e=>(e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e))(Ge||{}),Qm=(e=>(e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e))(Qm||{}),Rt=(e=>(e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT",e))(Rt||{}),a3=(e=>(e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT",e))(a3||{}),lu=(e=>(e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR",e))(lu||{}),Td=(e=>(e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",e))(Td||{}),Xl=(e=>(e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL",e))(Xl||{}),gl=(e=>(e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",e))(gl||{}),Al=(e=>(e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT",e))(Al||{}),lj=(e=>(e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL",e))(lj||{}),ra=(e=>(e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp",e))(ra||{}),li=(e=>(e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE",e[e.COLOR=4]="COLOR",e))(li||{}),Gr=(e=>(e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH",e))(Gr||{}),Ul=(e=>(e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e))(Ul||{});const SFe={createCanvas:(e,t)=>{const n=document.createElement("canvas");return n.width=e,n.height=t,n},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(e,t)=>fetch(e,t),parseXML:e=>new DOMParser().parseFromString(e,"text/xml")},tt={ADAPTER:SFe,RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var LN=/iPhone/i,o9=/iPod/i,s9=/iPad/i,a9=/\biOS-universal(?:.+)Mac\b/i,NN=/\bAndroid(?:.+)Mobile\b/i,l9=/Android/i,Yp=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,S_=/Silk/i,Yc=/Windows Phone/i,c9=/\bWindows(?:.+)ARM\b/i,u9=/BlackBerry/i,d9=/BB10/i,f9=/Opera Mini/i,h9=/\b(CriOS|Chrome)(?:.+)Mobile/i,p9=/Mobile(?:.+)Firefox\b/i,m9=function(e){return typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream>"u"};function EFe(e){return function(t){return t.test(e)}}function g9(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);var i=EFe(n),o={apple:{phone:i(LN)&&!i(Yc),ipod:i(o9),tablet:!i(LN)&&(i(s9)||m9(t))&&!i(Yc),universal:i(a9),device:(i(LN)||i(o9)||i(s9)||i(a9)||m9(t))&&!i(Yc)},amazon:{phone:i(Yp),tablet:!i(Yp)&&i(S_),device:i(Yp)||i(S_)},android:{phone:!i(Yc)&&i(Yp)||!i(Yc)&&i(NN),tablet:!i(Yc)&&!i(Yp)&&!i(NN)&&(i(S_)||i(l9)),device:!i(Yc)&&(i(Yp)||i(S_)||i(NN)||i(l9))||i(/\bokhttp\b/i)},windows:{phone:i(Yc),tablet:i(c9),device:i(Yc)||i(c9)},other:{blackberry:i(u9),blackberry10:i(d9),opera:i(f9),firefox:i(p9),chrome:i(h9),device:i(u9)||i(d9)||i(f9)||i(p9)||i(h9)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}const CFe=g9.default??g9,cu=CFe(globalThis.navigator);tt.RETINA_PREFIX=/@([0-9\.]+)x/;tt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Xee={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,d,f){this.fn=c,this.context=d,this.once=f||!1}function o(c,d,f,h,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var g=new i(f,h||c,p),v=n?n+d:d;return c._events[v]?c._events[v].fn?c._events[v]=[c._events[v],g]:c._events[v].push(g):(c._events[v]=g,c._eventsCount++),c}function s(c,d){--c._eventsCount===0?c._events=new r:delete c._events[d]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var d=[],f,h;if(this._eventsCount===0)return d;for(h in f=this._events)t.call(f,h)&&d.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(f)):d},l.prototype.listeners=function(d){var f=n?n+d:d,h=this._events[f];if(!h)return[];if(h.fn)return[h.fn];for(var p=0,g=h.length,v=new Array(g);p80*n){l=d=e[0],c=f=e[1];for(var v=n;vd&&(d=h),p>f&&(f=p);g=Math.max(d-l,f-c),g=g!==0?32767/g:0}return v1(o,s,n,l,c,g,0),s}function Yee(e,t,n,r,i){var o,s;if(i===u3(e,t,n,r)>0)for(o=t;o=t;o-=r)s=v9(o,e[o],e[o+1],s);return s&&Mk(s,s.next)&&(b1(s),s=s.next),s}function bp(e,t){if(!e)return e;t||(t=e);var n=e,r;do if(r=!1,!n.steiner&&(Mk(n,n.next)||kr(n.prev,n,n.next)===0)){if(b1(n),n=t=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==t);return t}function v1(e,t,n,r,i,o,s){if(e){!s&&o&&NFe(e,r,i,o);for(var l=e,c,d;e.prev!==e.next;){if(c=e.prev,d=e.next,o?AFe(e,r,i,o):kFe(e)){t.push(c.i/n|0),t.push(e.i/n|0),t.push(d.i/n|0),b1(e),e=d.next,l=d.next;continue}if(e=d,e===l){s?s===1?(e=IFe(bp(e),t,n),v1(e,t,n,r,i,o,2)):s===2&&RFe(e,t,n,r,i,o):v1(bp(e),t,n,r,i,o,1);break}}}}function kFe(e){var t=e.prev,n=e,r=e.next;if(kr(t,n,r)>=0)return!1;for(var i=t.x,o=n.x,s=r.x,l=t.y,c=n.y,d=r.y,f=io?i>s?i:s:o>s?o:s,g=l>c?l>d?l:d:c>d?c:d,v=r.next;v!==t;){if(v.x>=f&&v.x<=p&&v.y>=h&&v.y<=g&&Bm(i,l,o,c,s,d,v.x,v.y)&&kr(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function AFe(e,t,n,r){var i=e.prev,o=e,s=e.next;if(kr(i,o,s)>=0)return!1;for(var l=i.x,c=o.x,d=s.x,f=i.y,h=o.y,p=s.y,g=lc?l>d?l:d:c>d?c:d,S=f>h?f>p?f:p:h>p?h:p,_=l3(g,v,t,n,r),b=l3(y,S,t,n,r),x=e.prevZ,E=e.nextZ;x&&x.z>=_&&E&&E.z<=b;){if(x.x>=g&&x.x<=y&&x.y>=v&&x.y<=S&&x!==i&&x!==s&&Bm(l,f,c,h,d,p,x.x,x.y)&&kr(x.prev,x,x.next)>=0||(x=x.prevZ,E.x>=g&&E.x<=y&&E.y>=v&&E.y<=S&&E!==i&&E!==s&&Bm(l,f,c,h,d,p,E.x,E.y)&&kr(E.prev,E,E.next)>=0))return!1;E=E.nextZ}for(;x&&x.z>=_;){if(x.x>=g&&x.x<=y&&x.y>=v&&x.y<=S&&x!==i&&x!==s&&Bm(l,f,c,h,d,p,x.x,x.y)&&kr(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;E&&E.z<=b;){if(E.x>=g&&E.x<=y&&E.y>=v&&E.y<=S&&E!==i&&E!==s&&Bm(l,f,c,h,d,p,E.x,E.y)&&kr(E.prev,E,E.next)>=0)return!1;E=E.nextZ}return!0}function IFe(e,t,n){var r=e;do{var i=r.prev,o=r.next.next;!Mk(i,o)&&Kee(i,r,r.next,o)&&y1(i,o)&&y1(o,i)&&(t.push(i.i/n|0),t.push(r.i/n|0),t.push(o.i/n|0),b1(r),b1(r.next),r=e=o),r=r.next}while(r!==e);return bp(r)}function RFe(e,t,n,r,i,o){var s=e;do{for(var l=s.next.next;l!==s.prev;){if(s.i!==l.i&&FFe(s,l)){var c=Qee(s,l);s=bp(s,s.next),c=bp(c,c.next),v1(s,t,n,r,i,o,0),v1(c,t,n,r,i,o,0);return}l=l.next}s=s.next}while(s!==e)}function PFe(e,t,n,r){var i=[],o,s,l,c,d;for(o=0,s=t.length;o=n.next.y&&n.next.y!==n.y){var l=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(l<=r&&l>o&&(o=l,s=n.x=n.x&&n.x>=d&&r!==n.x&&Bm(is.x||n.x===s.x&&LFe(s,n)))&&(s=n,h=p)),n=n.next;while(n!==c);return s}function LFe(e,t){return kr(e.prev,e,t.prev)<0&&kr(t.next,e,e.next)<0}function NFe(e,t,n,r){var i=e;do i.z===0&&(i.z=l3(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,BFe(i)}function BFe(e){var t,n,r,i,o,s,l,c,d=1;do{for(n=e,e=null,o=null,s=0;n;){for(s++,r=n,l=0,t=0;t0||c>0&&r;)l!==0&&(c===0||!r||n.z<=r.z)?(i=n,n=n.nextZ,l--):(i=r,r=r.nextZ,c--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,d*=2}while(s>1);return e}function l3(e,t,n,r,i){return e=(e-n)*i|0,t=(t-r)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function $Fe(e){var t=e,n=e;do(t.x=(e-s)*(o-l)&&(e-s)*(r-l)>=(n-s)*(t-l)&&(n-s)*(o-l)>=(i-s)*(r-l)}function FFe(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!zFe(e,t)&&(y1(e,t)&&y1(t,e)&&jFe(e,t)&&(kr(e.prev,e,t.prev)||kr(e,t.prev,t))||Mk(e,t)&&kr(e.prev,e,e.next)>0&&kr(t.prev,t,t.next)>0)}function kr(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Mk(e,t){return e.x===t.x&&e.y===t.y}function Kee(e,t,n,r){var i=C_(kr(e,t,n)),o=C_(kr(e,t,r)),s=C_(kr(n,r,e)),l=C_(kr(n,r,t));return!!(i!==o&&s!==l||i===0&&E_(e,n,t)||o===0&&E_(e,r,t)||s===0&&E_(n,e,r)||l===0&&E_(n,t,r))}function E_(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function C_(e){return e>0?1:e<0?-1:0}function zFe(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Kee(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function y1(e,t){return kr(e.prev,e,e.next)<0?kr(e,t,e.next)>=0&&kr(e,e.prev,t)>=0:kr(e,t,e.prev)<0||kr(e,e.next,t)<0}function jFe(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}function Qee(e,t){var n=new c3(e.i,e.x,e.y),r=new c3(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function v9(e,t,n,r){var i=new c3(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function b1(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function c3(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Ok.deviation=function(e,t,n,r){var i=t&&t.length,o=i?t[0]*n:e.length,s=Math.abs(u3(e,0,o,n));if(i)for(var l=0,c=t.length;l0&&(r+=e[i-1].length,n.holes.push(r))}return n};var UFe=cj.exports;const HFe=zs(UFe);var aC={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */aC.exports;(function(e,t){(function(n){var r=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o=typeof Nt=="object"&&Nt;(o.global===o||o.window===o||o.self===o)&&(n=o);var s,l=2147483647,c=36,d=1,f=26,h=38,p=700,g=72,v=128,y="-",S=/^xn--/,_=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=c-d,A=Math.floor,I=String.fromCharCode,k;function O(Y){throw new RangeError(x[Y])}function L(Y,J){for(var ie=Y.length,ce=[];ie--;)ce[ie]=J(Y[ie]);return ce}function N(Y,J){var ie=Y.split("@"),ce="";ie.length>1&&(ce=ie[0]+"@",Y=ie[1]),Y=Y.replace(b,".");var ue=Y.split("."),se=L(ue,J).join(".");return ce+se}function H(Y){for(var J=[],ie=0,ce=Y.length,ue,se;ie=55296&&ue<=56319&&ie65535&&(J-=65536,ie+=I(J>>>10&1023|55296),J=56320|J&1023),ie+=I(J),ie}).join("")}function z(Y){return Y-48<10?Y-22:Y-65<26?Y-65:Y-97<26?Y-97:c}function D(Y,J){return Y+22+75*(Y<26)-((J!=0)<<5)}function F(Y,J,ie){var ce=0;for(Y=ie?A(Y/p):Y>>1,Y+=A(Y/J);Y>E*f>>1;ce+=c)Y=A(Y/E);return A(ce+(E+1)*Y/(Y+h))}function j(Y){var J=[],ie=Y.length,ce,ue=0,se=v,Q=g,ae,le,he,pe,ve,ye,xe,me,be;for(ae=Y.lastIndexOf(y),ae<0&&(ae=0),le=0;le=128&&O("not-basic"),J.push(Y.charCodeAt(le));for(he=ae>0?ae+1:0;he=ie&&O("invalid-input"),xe=z(Y.charCodeAt(he++)),(xe>=c||xe>A((l-ue)/ve))&&O("overflow"),ue+=xe*ve,me=ye<=Q?d:ye>=Q+f?f:ye-Q,!(xeA(l/be)&&O("overflow"),ve*=be;ce=J.length+1,Q=F(ue-pe,ce,pe==0),A(ue/ce)>l-se&&O("overflow"),se+=A(ue/ce),ue%=ce,J.splice(ue++,0,se)}return W(J)}function V(Y){var J,ie,ce,ue,se,Q,ae,le,he,pe,ve,ye=[],xe,me,be,Qe;for(Y=H(Y),xe=Y.length,J=v,ie=0,se=g,Q=0;Q=J&&veA((l-ie)/me)&&O("overflow"),ie+=(ae-J)*me,J=ae,Q=0;Ql&&O("overflow"),ve==J){for(le=ie,he=c;pe=he<=se?d:he>=se+f?f:he-se,!(le"u"||!mi?ln:mi(Uint8Array),ep={"%AggregateError%":typeof AggregateError>"u"?ln:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ln:ArrayBuffer,"%ArrayIteratorPrototype%":Kp&&mi?mi([][Symbol.iterator]()):ln,"%AsyncFromSyncIteratorPrototype%":ln,"%AsyncFunction%":cm,"%AsyncGenerator%":cm,"%AsyncGeneratorFunction%":cm,"%AsyncIteratorPrototype%":cm,"%Atomics%":typeof Atomics>"u"?ln:Atomics,"%BigInt%":typeof BigInt>"u"?ln:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ln:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ln:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ln:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ln:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ln:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ln:FinalizationRegistry,"%Function%":Jee,"%GeneratorFunction%":cm,"%Int8Array%":typeof Int8Array>"u"?ln:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ln:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ln:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Kp&&mi?mi(mi([][Symbol.iterator]())):ln,"%JSON%":typeof JSON=="object"?JSON:ln,"%Map%":typeof Map>"u"?ln:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Kp||!mi?ln:mi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ln:Promise,"%Proxy%":typeof Proxy>"u"?ln:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ln:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ln:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Kp||!mi?ln:mi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ln:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Kp&&mi?mi(""[Symbol.iterator]()):ln,"%Symbol%":Kp?Symbol:ln,"%SyntaxError%":Og,"%ThrowTypeError%":r3e,"%TypedArray%":o3e,"%TypeError%":Jm,"%Uint8Array%":typeof Uint8Array>"u"?ln:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ln:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ln:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ln:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ln:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ln:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ln:WeakSet};if(mi)try{null.error}catch(e){var s3e=mi(mi(e));ep["%Error.prototype%"]=s3e}var a3e=function e(t){var n;if(t==="%AsyncFunction%")n=$N("async function () {}");else if(t==="%GeneratorFunction%")n=$N("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=$N("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&mi&&(n=mi(i.prototype))}return ep[t]=n,n},x9={"%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"]},fw=uj,lC=n3e,l3e=fw.call(Function.call,Array.prototype.concat),c3e=fw.call(Function.apply,Array.prototype.splice),w9=fw.call(Function.call,String.prototype.replace),cC=fw.call(Function.call,String.prototype.slice),u3e=fw.call(Function.call,RegExp.prototype.exec),d3e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,f3e=/\\(\\)?/g,h3e=function(t){var n=cC(t,0,1),r=cC(t,-1);if(n==="%"&&r!=="%")throw new Og("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Og("invalid intrinsic syntax, expected opening `%`");var i=[];return w9(t,d3e,function(o,s,l,c){i[i.length]=l?w9(c,f3e,"$1"):s||o}),i},p3e=function(t,n){var r=t,i;if(lC(x9,r)&&(i=x9[r],r="%"+i[0]+"%"),lC(ep,r)){var o=ep[r];if(o===cm&&(o=a3e(r)),typeof o>"u"&&!n)throw new Jm("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new Og("intrinsic "+t+" does not exist!")},dj=function(t,n){if(typeof t!="string"||t.length===0)throw new Jm("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Jm('"allowMissing" argument must be a boolean');if(u3e(/^%?[^%]*%?$/,t)===null)throw new Og("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=h3e(t),i=r.length>0?r[0]:"",o=p3e("%"+i+"%",n),s=o.name,l=o.value,c=!1,d=o.alias;d&&(i=d[0],c3e(r,l3e([0,1],d)));for(var f=1,h=!0;f=r.length){var y=Zh(l,p);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[p]}else h=lC(l,p),l=l[p];h&&!c&&(ep[s]=l)}}return l},Zee={exports:{}};(function(e){var t=uj,n=dj,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),s=n("%Object.getOwnPropertyDescriptor%",!0),l=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(h){var p=o(t,i,arguments);if(s&&l){var g=s(p,"length");g.configurable&&l(p,"length",{value:1+c(0,h.length-(arguments.length-1))})}return p};var d=function(){return o(t,r,arguments)};l?l(e.exports,"apply",{value:d}):e.exports.apply=d})(Zee);var m3e=Zee.exports,ete=dj,tte=m3e,g3e=tte(ete("String.prototype.indexOf")),v3e=function(t,n){var r=ete(t,!!n);return typeof r=="function"&&g3e(t,".prototype.")>-1?tte(r):r};const y3e={},b3e=Object.freeze(Object.defineProperty({__proto__:null,default:y3e},Symbol.toStringTag,{value:"Module"})),nte=ZV(b3e);var fj=typeof Map=="function"&&Map.prototype,zN=Object.getOwnPropertyDescriptor&&fj?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,uC=fj&&zN&&typeof zN.get=="function"?zN.get:null,_9=fj&&Map.prototype.forEach,hj=typeof Set=="function"&&Set.prototype,jN=Object.getOwnPropertyDescriptor&&hj?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,dC=hj&&jN&&typeof jN.get=="function"?jN.get:null,S9=hj&&Set.prototype.forEach,x3e=typeof WeakMap=="function"&&WeakMap.prototype,gx=x3e?WeakMap.prototype.has:null,w3e=typeof WeakSet=="function"&&WeakSet.prototype,vx=w3e?WeakSet.prototype.has:null,_3e=typeof WeakRef=="function"&&WeakRef.prototype,E9=_3e?WeakRef.prototype.deref:null,S3e=Boolean.prototype.valueOf,E3e=Object.prototype.toString,C3e=Function.prototype.toString,T3e=String.prototype.match,pj=String.prototype.slice,ad=String.prototype.replace,k3e=String.prototype.toUpperCase,C9=String.prototype.toLowerCase,rte=RegExp.prototype.test,T9=Array.prototype.concat,Il=Array.prototype.join,A3e=Array.prototype.slice,k9=Math.floor,d3=typeof BigInt=="function"?BigInt.prototype.valueOf:null,UN=Object.getOwnPropertySymbols,f3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Mg=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ro=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Mg||"symbol")?Symbol.toStringTag:null,ite=Object.prototype.propertyIsEnumerable,A9=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I9(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||rte.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-k9(-e):k9(e);if(r!==e){var i=String(r),o=pj.call(t,i.length+1);return ad.call(i,n,"$&_")+"."+ad.call(ad.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ad.call(t,n,"$&_")}var h3=nte,R9=h3.custom,P9=ste(R9)?R9:null,I3e=function e(t,n,r,i){var o=n||{};if(Yu(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Yu(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Yu(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Yu(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Yu(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return lte(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return l?I9(t,c):c}if(typeof t=="bigint"){var d=String(t)+"n";return l?I9(t,d):d}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return p3(t)?"[Array]":"[Object]";var h=q3e(o,r);if(typeof i>"u")i=[];else if(ate(i,t)>=0)return"[Circular]";function p(z,D,F){if(D&&(i=A3e.call(i),i.push(D)),F){var j={depth:o.depth};return Yu(o,"quoteStyle")&&(j.quoteStyle=o.quoteStyle),e(z,j,r+1,i)}return e(z,o,r+1,i)}if(typeof t=="function"&&!O9(t)){var g=$3e(t),v=T_(t,p);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(v.length>0?" { "+Il.call(v,", ")+" }":"")}if(ste(t)){var y=Mg?ad.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):f3.call(t);return typeof t=="object"&&!Mg?fb(y):y}if(W3e(t)){for(var S="<"+C9.call(String(t.nodeName)),_=t.attributes||[],b=0;b<_.length;b++)S+=" "+_[b].name+"="+ote(R3e(_[b].value),"double",o);return S+=">",t.childNodes&&t.childNodes.length&&(S+="..."),S+="",S}if(p3(t)){if(t.length===0)return"[]";var x=T_(t,p);return h&&!V3e(x)?"["+m3(x,h)+"]":"[ "+Il.call(x,", ")+" ]"}if(O3e(t)){var E=T_(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!ite.call(t,"cause")?"{ ["+String(t)+"] "+Il.call(T9.call("[cause]: "+p(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Il.call(E,", ")+" }"}if(typeof t=="object"&&s){if(P9&&typeof t[P9]=="function"&&h3)return h3(t,{depth:f-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(F3e(t)){var A=[];return _9&&_9.call(t,function(z,D){A.push(p(D,t,!0)+" => "+p(z,t))}),M9("Map",uC.call(t),A,h)}if(U3e(t)){var I=[];return S9&&S9.call(t,function(z){I.push(p(z,t))}),M9("Set",dC.call(t),I,h)}if(z3e(t))return HN("WeakMap");if(H3e(t))return HN("WeakSet");if(j3e(t))return HN("WeakRef");if(D3e(t))return fb(p(Number(t)));if(N3e(t))return fb(p(d3.call(t)));if(L3e(t))return fb(S3e.call(t));if(M3e(t))return fb(p(String(t)));if(!P3e(t)&&!O9(t)){var k=T_(t,p),O=A9?A9(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",N=!O&&ro&&Object(t)===t&&ro in t?pj.call(Kd(t),8,-1):L?"Object":"",H=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",W=H+(N||L?"["+Il.call(T9.call([],N||[],L||[]),": ")+"] ":"");return k.length===0?W+"{}":h?W+"{"+m3(k,h)+"}":W+"{ "+Il.call(k,", ")+" }"}return String(t)};function ote(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function R3e(e){return ad.call(String(e),/"/g,""")}function p3(e){return Kd(e)==="[object Array]"&&(!ro||!(typeof e=="object"&&ro in e))}function P3e(e){return Kd(e)==="[object Date]"&&(!ro||!(typeof e=="object"&&ro in e))}function O9(e){return Kd(e)==="[object RegExp]"&&(!ro||!(typeof e=="object"&&ro in e))}function O3e(e){return Kd(e)==="[object Error]"&&(!ro||!(typeof e=="object"&&ro in e))}function M3e(e){return Kd(e)==="[object String]"&&(!ro||!(typeof e=="object"&&ro in e))}function D3e(e){return Kd(e)==="[object Number]"&&(!ro||!(typeof e=="object"&&ro in e))}function L3e(e){return Kd(e)==="[object Boolean]"&&(!ro||!(typeof e=="object"&&ro in e))}function ste(e){if(Mg)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!f3)return!1;try{return f3.call(e),!0}catch{}return!1}function N3e(e){if(!e||typeof e!="object"||!d3)return!1;try{return d3.call(e),!0}catch{}return!1}var B3e=Object.prototype.hasOwnProperty||function(e){return e in this};function Yu(e,t){return B3e.call(e,t)}function Kd(e){return E3e.call(e)}function $3e(e){if(e.name)return e.name;var t=T3e.call(C3e.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ate(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return lte(pj.call(e,0,t.maxStringLength),t)+r}var i=ad.call(ad.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G3e);return ote(i,"single",t)}function G3e(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+k3e.call(t.toString(16))}function fb(e){return"Object("+e+")"}function HN(e){return e+" { ? }"}function M9(e,t,n,r){var i=r?m3(n,r):Il.call(n,", ");return e+" ("+t+") {"+i+"}"}function V3e(e){for(var t=0;t=0)return!1;return!0}function q3e(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Il.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Il.call(Array(t+1),n)}}function m3(e,t){if(e.length===0)return"";var n=` -`+t.prev+t.base;return n+Il.call(e,","+n)+` -`+t.prev}function T_(e,t){var n=p3(e),r=[];if(n){r.length=e.length;for(var i=0;i1;){var n=t.pop(),r=n.obj[n.prop];if(Bh(r)){for(var i=[],o=0;o=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===l5e.RFC1738&&(d===40||d===41)){l+=s.charAt(c);continue}if(d<128){l=l+wl[d];continue}if(d<2048){l=l+(wl[192|d>>6]+wl[128|d&63]);continue}if(d<55296||d>=57344){l=l+(wl[224|d>>12]+wl[128|d>>6&63]+wl[128|d&63]);continue}c+=1,d=65536+((d&1023)<<10|s.charCodeAt(c)&1023),l+=wl[240|d>>18]+wl[128|d>>12&63]+wl[128|d>>6&63]+wl[128|d&63]}return l},p5e=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i"u"&&(x=0)}if(typeof c=="function"?_=c(n,_):_ instanceof Date?_=h(_):r==="comma"&&nu(_)&&(_=BS.maybeMap(_,function(j){return j instanceof Date?h(j):j})),_===null){if(o)return l&&!v?l(n,Yi.encoder,y,"key",p):n;_=""}if(_5e(_)||BS.isBuffer(_)){if(l){var I=v?n:l(n,Yi.encoder,y,"key",p);return[g(I)+"="+g(l(_,Yi.encoder,y,"value",p))]}return[g(n)+"="+g(String(_))]}var k=[];if(typeof _>"u")return k;var O;if(r==="comma"&&nu(_))v&&l&&(_=BS.maybeMap(_,l)),O=[{value:_.length>0?_.join(",")||null:void 0}];else if(nu(c))O=c;else{var L=Object.keys(_);O=d?L.sort(d):L}for(var N=i&&nu(_)&&_.length===1?n+"[]":n,H=0;H"u"?Yi.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Yi.charsetSentinel,delimiter:typeof t.delimiter>"u"?Yi.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Yi.encode,encoder:typeof t.encoder=="function"?t.encoder:Yi.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Yi.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Yi.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Yi.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Yi.strictNullHandling}},C5e=function(e,t){var n=e,r=E5e(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):nu(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var l;t&&t.arrayFormat in D9?l=t.arrayFormat:t&&"indices"in t?l=t.indices?"indices":"repeat":l="indices";var c=D9[l];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=c==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=dte(),h=0;h0?v+g:""},Dg=ute,g3=Object.prototype.hasOwnProperty,T5e=Array.isArray,hi={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Dg.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},k5e=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},hte=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},A5e="utf8=%26%2310003%3B",I5e="utf8=%E2%9C%93",R5e=function(t,n){var r={__proto__:null},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,o),l=-1,c,d=n.charset;if(n.charsetSentinel)for(c=0;c-1&&(v=T5e(v)?[v]:v),g3.call(r,g)?r[g]=Dg.combine(r[g],v):r[g]=v}return r},P5e=function(e,t,n,r){for(var i=r?t:hte(t,n),o=e.length-1;o>=0;--o){var s,l=e[o];if(l==="[]"&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var c=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,d=parseInt(c,10);!n.parseArrays&&c===""?s={0:i}:!isNaN(d)&&l!==c&&String(d)===c&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(s=[],s[d]=i):c!=="__proto__"&&(s[c]=i)}i=s}return i},O5e=function(t,n,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,c=r.depth>0&&s.exec(o),d=c?o.slice(0,c.index):o,f=[];if(d){if(!r.plainObjects&&g3.call(Object.prototype,d)&&!r.allowPrototypes)return;f.push(d)}for(var h=0;r.depth>0&&(c=l.exec(o))!==null&&h"u"?hi.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?hi.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:hi.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:hi.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:hi.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:hi.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:hi.comma,decoder:typeof t.decoder=="function"?t.decoder:hi.decoder,delimiter:typeof t.delimiter=="string"||Dg.isRegExp(t.delimiter)?t.delimiter:hi.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:hi.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:hi.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:hi.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:hi.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:hi.strictNullHandling}},D5e=function(e,t){var n=M5e(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?R5e(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;s",'"',"`"," ","\r",` -`," "],W5e=["{","}","|","\\","^","`"].concat(H5e),v3=["'"].concat(W5e),N9=["%","/","?",";","#"].concat(v3),B9=["/","?","#"],G5e=255,$9=/^[+a-z0-9A-Z_-]{0,63}$/,V5e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,q5e={javascript:!0,"javascript:":!0},y3={javascript:!0,"javascript:":!0},Zm={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b3=$5e;function Dk(e,t,n){if(e&&typeof e=="object"&&e instanceof ol)return e;var r=new ol;return r.parse(e,t,n),r}ol.prototype.parse=function(e,t,n){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r127?A+="x":A+=E[I];if(!A.match($9)){var O=b.slice(0,g),L=b.slice(g+1),N=E.match(V5e);N&&(O.push(N[1]),L.unshift(N[2])),L.length&&(l="/"+L.join(".")+l),this.hostname=O.join(".");break}}}this.hostname.length>G5e?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=F5e.toASCII(this.hostname));var H=this.port?":"+this.port:"",W=this.hostname||"";this.host=W+H,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),l[0]!=="/"&&(l="/"+l))}if(!q5e[f])for(var g=0,x=v3.length;g0?n.host.split("@"):!1;A&&(n.auth=A.shift(),n.hostname=A.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!b.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var I=b.slice(-1)[0],k=(n.host||e.host||b.length>1)&&(I==="."||I==="..")||I==="",O=0,L=b.length;L>=0;L--)I=b[L],I==="."?b.splice(L,1):I===".."?(b.splice(L,1),O++):O&&(b.splice(L,1),O--);if(!S&&!_)for(;O--;O)b.unshift("..");S&&b[0]!==""&&(!b[0]||b[0].charAt(0)!=="/")&&b.unshift(""),k&&b.join("/").substr(-1)!=="/"&&b.push("");var N=b[0]===""||b[0]&&b[0].charAt(0)==="/";if(E){n.hostname=N?"":b.length?b.shift():"",n.host=n.hostname;var A=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;A&&(n.auth=A.shift(),n.hostname=A.shift(),n.host=n.hostname)}return S=S||n.host&&b.length,S&&!N&&b.unshift(""),b.length>0?n.pathname=b.join("/"):(n.pathname=null,n.path=null),(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n};ol.prototype.parseHost=function(){var e=this.host,t=j5e.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var K5e=Dk,Q5e=Y5e,J5e=X5e;const Z5e={parse:K5e,format:J5e,resolve:Q5e};function Na(e){if(typeof e!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(e)}`)}function hb(e){return e.split("?")[0].split("#")[0]}function e4e(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function t4e(e,t,n){return e.replace(new RegExp(e4e(t),"g"),n)}function n4e(e,t){let n="",r=0,i=-1,o=0,s=-1;for(let l=0;l<=e.length;++l){if(l2){const c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=l,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+=`/${e.slice(i+1,l)}`:n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else s===46&&o!==-1?++o:o=-1}return n}const to={toPosix(e){return t4e(e,"\\","/")},isUrl(e){return/^https?:/.test(this.toPosix(e))},isDataUrl(e){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(e)},hasProtocol(e){return/^[^/:]+:\//.test(this.toPosix(e))},getProtocol(e){Na(e),e=this.toPosix(e);let t="";const n=/^file:\/\/\//.exec(e),r=/^[^/:]+:\/\//.exec(e),i=/^[^/:]+:\//.exec(e);if(n||r||i){const o=(n==null?void 0:n[0])||(r==null?void 0:r[0])||(i==null?void 0:i[0]);t=o,e=e.slice(o.length)}return t},toAbsolute(e,t,n){if(this.isDataUrl(e))return e;const r=hb(this.toPosix(t??tt.ADAPTER.getBaseUrl())),i=hb(this.toPosix(n??this.rootname(r)));return Na(e),e=this.toPosix(e),e.startsWith("/")?to.join(i,e.slice(1)):this.isAbsolute(e)?e:this.join(r,e)},normalize(e){if(e=this.toPosix(e),Na(e),e.length===0)return".";let t="";const n=e.startsWith("/");this.hasProtocol(e)&&(t=this.rootname(e),e=e.slice(t.length));const r=e.endsWith("/");return e=n4e(e,!1),e.length>0&&r&&(e+="/"),n?`/${e}`:t+e},isAbsolute(e){return Na(e),e=this.toPosix(e),this.hasProtocol(e)?!0:e.startsWith("/")},join(...e){if(e.length===0)return".";let t;for(let n=0;n0)if(t===void 0)t=r;else{const i=e[n-1]??"";this.extname(i)?t+=`/../${r}`:t+=`/${r}`}}return t===void 0?".":this.normalize(t)},dirname(e){if(Na(e),e.length===0)return".";e=this.toPosix(e);let t=e.charCodeAt(0);const n=t===47;let r=-1,i=!0;const o=this.getProtocol(e),s=e;e=e.slice(o.length);for(let l=e.length-1;l>=1;--l)if(t=e.charCodeAt(l),t===47){if(!i){r=l;break}}else i=!1;return r===-1?n?"/":this.isUrl(s)?o+e:o:n&&r===1?"//":o+e.slice(0,r)},rootname(e){Na(e),e=this.toPosix(e);let t="";if(e.startsWith("/")?t="/":t=this.getProtocol(e),this.isUrl(e)){const n=e.indexOf("/",t.length);n!==-1?t=e.slice(0,n):t=e,t.endsWith("/")||(t+="/")}return t},basename(e,t){Na(e),t&&Na(t),e=hb(this.toPosix(e));let n=0,r=-1,i=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let s=t.length-1,l=-1;for(o=e.length-1;o>=0;--o){const c=e.charCodeAt(o);if(c===47){if(!i){n=o+1;break}}else l===-1&&(i=!1,l=o+1),s>=0&&(c===t.charCodeAt(s)?--s===-1&&(r=o):(s=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!i){n=o+1;break}}else r===-1&&(i=!1,r=o+1);return r===-1?"":e.slice(n,r)},extname(e){Na(e),e=hb(this.toPosix(e));let t=-1,n=0,r=-1,i=!0,o=0;for(let s=e.length-1;s>=0;--s){const l=e.charCodeAt(s);if(l===47){if(!i){n=s+1;break}continue}r===-1&&(i=!1,r=s+1),l===46?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||r===-1||o===0||o===1&&t===r-1&&t===n+1?"":e.slice(t,r)},parse(e){Na(e);const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;e=hb(this.toPosix(e));let n=e.charCodeAt(0);const r=this.isAbsolute(e);let i;t.root=this.rootname(e),r||this.hasProtocol(e)?i=1:i=0;let o=-1,s=0,l=-1,c=!0,d=e.length-1,f=0;for(;d>=i;--d){if(n=e.charCodeAt(d),n===47){if(!c){s=d+1;break}continue}l===-1&&(c=!1,l=d+1),n===46?o===-1?o=d:f!==1&&(f=1):o!==-1&&(f=-1)}return o===-1||l===-1||f===0||f===1&&o===l-1&&o===s+1?l!==-1&&(s===0&&r?t.base=t.name=e.slice(1,l):t.base=t.name=e.slice(s,l)):(s===0&&r?(t.name=e.slice(1,o),t.base=e.slice(1,l)):(t.name=e.slice(s,o),t.base=e.slice(s,l)),t.ext=e.slice(o,l)),t.dir=this.dirname(e),t},sep:"/",delimiter:":"},F9={};function cn(e,t,n=3){if(F9[t])return;let r=new Error().stack;typeof r>"u"?console.warn("PixiJS Deprecation Warning: ",`${t} +}`;var Ve=z0(function(){return dt(M,we+"return "+oe).apply(n,B)});if(Ve.source=oe,ih(Ve))throw Ve;return Ve}function wM(a){return ft(a).toLowerCase()}function _M(a){return ft(a).toUpperCase()}function SM(a,u,m){if(a=ft(a),a&&(m||u===n))return Yv(a);if(!a||!(u=Vn(u)))return a;var w=yr(a),T=yr(u),M=Kv(w,T),B=Qv(w,T)+1;return Pi(w,M,B).join("")}function EM(a,u,m){if(a=ft(a),a&&(m||u===n))return a.slice(0,Zv(a)+1);if(!a||!(u=Vn(u)))return a;var w=yr(a),T=Qv(w,yr(u))+1;return Pi(w,0,T).join("")}function CM(a,u,m){if(a=ft(a),a&&(m||u===n))return a.replace(oo,"");if(!a||!(u=Vn(u)))return a;var w=yr(a),T=Kv(w,yr(u));return Pi(w,T).join("")}function TM(a,u){var m=N,w=H;if(zt(u)){var T="separator"in u?u.separator:T;m="length"in u?We(u.length):m,w="omission"in u?Vn(u.omission):w}a=ft(a);var M=a.length;if(ns(a)){var B=yr(a);M=B.length}if(m>=M)return a;var U=m-rs(w);if(U<1)return w;var X=B?Pi(B,0,U).join(""):a.slice(0,U);if(T===n)return X+w;if(B&&(U+=X.length-U),oh(T)){if(a.slice(U).search(T)){var ne,re=X;for(T.global||(T=wf(T.source,ft(Jn.exec(T))+"g")),T.lastIndex=0;ne=T.exec(re);)var oe=ne.index;X=X.slice(0,oe===n?U:oe)}}else if(a.indexOf(Vn(T),U)!=U){var fe=X.lastIndexOf(T);fe>-1&&(X=X.slice(0,fe))}return X+w}function kM(a){return a=ft(a),a&&Fr.test(a)?a.replace(Or,nR):a}var AM=us(function(a,u,m){return a+(m?" ":"")+u.toUpperCase()}),lh=jy("toUpperCase");function F0(a,u,m){return a=ft(a),u=m?n:u,u===n?QA(a)?oR(a):UA(a):a.match(u)||[]}var z0=Xe(function(a,u){try{return Wn(a,n,u)}catch(m){return ih(m)?m:new De(m)}}),RM=ri(function(a,u){return nr(u,function(m){m=Ur(m),ti(a,m,nh(a[m],a))}),a});function IM(a){var u=a==null?0:a.length,m=Ce();return a=u?Dt(a,function(w){if(typeof w[1]!="function")throw new rr(s);return[m(w[0]),w[1]]}):[],Xe(function(w){for(var T=-1;++TG)return[];var m=J,w=vn(a,J);u=Ce(u),a-=J;for(var T=yf(w,u);++m0||u<0)?new Je(m):(a<0?m=m.takeRight(-a):a&&(m=m.drop(a)),u!==n&&(u=We(u),m=u<0?m.dropRight(-u):m.take(u-a)),m)},Je.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()},Je.prototype.toArray=function(){return this.take(J)},zr(Je.prototype,function(a,u){var m=/^(?:filter|find|map|reject)|While$/.test(u),w=/^(?:head|last)$/.test(u),T=P[w?"take"+(u=="last"?"Right":""):u],M=w||/^find/.test(u);T&&(P.prototype[u]=function(){var B=this.__wrapped__,U=w?[1]:arguments,X=B instanceof Je,ne=U[0],re=X||Be(B),oe=function(Ke){var nt=T.apply(P,Ci([Ke],U));return w&&fe?nt[0]:nt};re&&m&&typeof ne=="function"&&ne.length!=1&&(X=re=!1);var fe=this.__chain__,we=!!this.__actions__.length,Te=M&&!fe,Ve=X&&!we;if(!M&&re){B=Ve?B:new Je(this);var ke=a.apply(B,U);return ke.__actions__.push({func:Fc,args:[oe],thisArg:n}),new ir(ke,fe)}return Te&&Ve?a.apply(this,U):(ke=this.thru(oe),Te?w?ke.value()[0]:ke.value():ke)})}),nr(["pop","push","shift","sort","splice","unshift"],function(a){var u=dc[a],m=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",w=/^(?:pop|shift)$/.test(a);P.prototype[a]=function(){var T=arguments;if(w&&!this.__chain__){var M=this.value();return u.apply(Be(M)?M:[],T)}return this[m](function(B){return u.apply(Be(B)?B:[],T)})}}),zr(Je.prototype,function(a,u){var m=P[u];if(m){var w=m.name+"";vt.call(as,w)||(as[w]=[]),as[w].push({name:u,func:m})}}),as[Oc(n,_).name]=[{name:"wrapper",func:n}],Je.prototype.clone=kR,Je.prototype.reverse=AR,Je.prototype.value=RR,P.prototype.at=i2,P.prototype.chain=o2,P.prototype.commit=s2,P.prototype.next=a2,P.prototype.plant=c2,P.prototype.reverse=u2,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=d2,P.prototype.first=P.prototype.head,_a&&(P.prototype[_a]=l2),P},is=sR();ao?((ao.exports=is)._=is,uf._=is):dn._=is}).call(Bt)})(lC,lC.exports);var Gt=lC.exports;let CFe=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");var Fp=(e=>(e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2",e))(Fp||{}),Jee=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS",e))(Jee||{}),l3=(e=>(e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e))(l3||{}),Mt=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR",e))(Mt||{}),Ll=(e=>(e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN",e))(Ll||{}),Ge=(e=>(e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e))(Ge||{}),Zm=(e=>(e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e))(Zm||{}),It=(e=>(e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT",e))(It||{}),c3=(e=>(e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT",e))(c3||{}),cu=(e=>(e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR",e))(cu||{}),Ad=(e=>(e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",e))(Ad||{}),Yl=(e=>(e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL",e))(Yl||{}),yl=(e=>(e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",e))(yl||{}),Il=(e=>(e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT",e))(Il||{}),dj=(e=>(e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL",e))(dj||{}),ia=(e=>(e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp",e))(ia||{}),li=(e=>(e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE",e[e.COLOR=4]="COLOR",e))(li||{}),Gr=(e=>(e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH",e))(Gr||{}),Hl=(e=>(e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e))(Hl||{});const TFe={createCanvas:(e,t)=>{const n=document.createElement("canvas");return n.width=e,n.height=t,n},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(e,t)=>fetch(e,t),parseXML:e=>new DOMParser().parseFromString(e,"text/xml")},tt={ADAPTER:TFe,RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var BN=/iPhone/i,c9=/iPod/i,u9=/iPad/i,d9=/\biOS-universal(?:.+)Mac\b/i,$N=/\bAndroid(?:.+)Mobile\b/i,f9=/Android/i,Qp=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,E_=/Silk/i,Kc=/Windows Phone/i,h9=/\bWindows(?:.+)ARM\b/i,p9=/BlackBerry/i,m9=/BB10/i,g9=/Opera Mini/i,v9=/\b(CriOS|Chrome)(?:.+)Mobile/i,y9=/Mobile(?:.+)Firefox\b/i,b9=function(e){return typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream>"u"};function kFe(e){return function(t){return t.test(e)}}function x9(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);var i=kFe(n),o={apple:{phone:i(BN)&&!i(Kc),ipod:i(c9),tablet:!i(BN)&&(i(u9)||b9(t))&&!i(Kc),universal:i(d9),device:(i(BN)||i(c9)||i(u9)||i(d9)||b9(t))&&!i(Kc)},amazon:{phone:i(Qp),tablet:!i(Qp)&&i(E_),device:i(Qp)||i(E_)},android:{phone:!i(Kc)&&i(Qp)||!i(Kc)&&i($N),tablet:!i(Kc)&&!i(Qp)&&!i($N)&&(i(E_)||i(f9)),device:!i(Kc)&&(i(Qp)||i(E_)||i($N)||i(f9))||i(/\bokhttp\b/i)},windows:{phone:i(Kc),tablet:i(h9),device:i(Kc)||i(h9)},other:{blackberry:i(p9),blackberry10:i(m9),opera:i(g9),firefox:i(y9),chrome:i(v9),device:i(p9)||i(m9)||i(g9)||i(y9)||i(v9)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}const AFe=x9.default??x9,uu=AFe(globalThis.navigator);tt.RETINA_PREFIX=/@([0-9\.]+)x/;tt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Zee={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,d,f){this.fn=c,this.context=d,this.once=f||!1}function o(c,d,f,h,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var g=new i(f,h||c,p),v=n?n+d:d;return c._events[v]?c._events[v].fn?c._events[v]=[c._events[v],g]:c._events[v].push(g):(c._events[v]=g,c._eventsCount++),c}function s(c,d){--c._eventsCount===0?c._events=new r:delete c._events[d]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var d=[],f,h;if(this._eventsCount===0)return d;for(h in f=this._events)t.call(f,h)&&d.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(f)):d},l.prototype.listeners=function(d){var f=n?n+d:d,h=this._events[f];if(!h)return[];if(h.fn)return[h.fn];for(var p=0,g=h.length,v=new Array(g);p80*n){l=d=e[0],c=f=e[1];for(var v=n;vd&&(d=h),p>f&&(f=p);g=Math.max(d-l,f-c),g=g!==0?32767/g:0}return x1(o,s,n,l,c,g,0),s}function ete(e,t,n,r,i){var o,s;if(i===f3(e,t,n,r)>0)for(o=t;o=t;o-=r)s=w9(o,e[o],e[o+1],s);return s&&Lk(s,s.next)&&(_1(s),s=s.next),s}function wp(e,t){if(!e)return e;t||(t=e);var n=e,r;do if(r=!1,!n.steiner&&(Lk(n,n.next)||kr(n.prev,n,n.next)===0)){if(_1(n),n=t=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==t);return t}function x1(e,t,n,r,i,o,s){if(e){!s&&o&&FFe(e,r,i,o);for(var l=e,c,d;e.prev!==e.next;){if(c=e.prev,d=e.next,o?PFe(e,r,i,o):IFe(e)){t.push(c.i/n|0),t.push(e.i/n|0),t.push(d.i/n|0),_1(e),e=d.next,l=d.next;continue}if(e=d,e===l){s?s===1?(e=OFe(wp(e),t,n),x1(e,t,n,r,i,o,2)):s===2&&MFe(e,t,n,r,i,o):x1(wp(e),t,n,r,i,o,1);break}}}}function IFe(e){var t=e.prev,n=e,r=e.next;if(kr(t,n,r)>=0)return!1;for(var i=t.x,o=n.x,s=r.x,l=t.y,c=n.y,d=r.y,f=io?i>s?i:s:o>s?o:s,g=l>c?l>d?l:d:c>d?c:d,v=r.next;v!==t;){if(v.x>=f&&v.x<=p&&v.y>=h&&v.y<=g&&Fm(i,l,o,c,s,d,v.x,v.y)&&kr(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function PFe(e,t,n,r){var i=e.prev,o=e,s=e.next;if(kr(i,o,s)>=0)return!1;for(var l=i.x,c=o.x,d=s.x,f=i.y,h=o.y,p=s.y,g=lc?l>d?l:d:c>d?c:d,S=f>h?f>p?f:p:h>p?h:p,_=u3(g,v,t,n,r),b=u3(y,S,t,n,r),x=e.prevZ,E=e.nextZ;x&&x.z>=_&&E&&E.z<=b;){if(x.x>=g&&x.x<=y&&x.y>=v&&x.y<=S&&x!==i&&x!==s&&Fm(l,f,c,h,d,p,x.x,x.y)&&kr(x.prev,x,x.next)>=0||(x=x.prevZ,E.x>=g&&E.x<=y&&E.y>=v&&E.y<=S&&E!==i&&E!==s&&Fm(l,f,c,h,d,p,E.x,E.y)&&kr(E.prev,E,E.next)>=0))return!1;E=E.nextZ}for(;x&&x.z>=_;){if(x.x>=g&&x.x<=y&&x.y>=v&&x.y<=S&&x!==i&&x!==s&&Fm(l,f,c,h,d,p,x.x,x.y)&&kr(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;E&&E.z<=b;){if(E.x>=g&&E.x<=y&&E.y>=v&&E.y<=S&&E!==i&&E!==s&&Fm(l,f,c,h,d,p,E.x,E.y)&&kr(E.prev,E,E.next)>=0)return!1;E=E.nextZ}return!0}function OFe(e,t,n){var r=e;do{var i=r.prev,o=r.next.next;!Lk(i,o)&&tte(i,r,r.next,o)&&w1(i,o)&&w1(o,i)&&(t.push(i.i/n|0),t.push(r.i/n|0),t.push(o.i/n|0),_1(r),_1(r.next),r=e=o),r=r.next}while(r!==e);return wp(r)}function MFe(e,t,n,r,i,o){var s=e;do{for(var l=s.next.next;l!==s.prev;){if(s.i!==l.i&&UFe(s,l)){var c=nte(s,l);s=wp(s,s.next),c=wp(c,c.next),x1(s,t,n,r,i,o,0),x1(c,t,n,r,i,o,0);return}l=l.next}s=s.next}while(s!==e)}function DFe(e,t,n,r){var i=[],o,s,l,c,d;for(o=0,s=t.length;o=n.next.y&&n.next.y!==n.y){var l=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(l<=r&&l>o&&(o=l,s=n.x=n.x&&n.x>=d&&r!==n.x&&Fm(is.x||n.x===s.x&&$Fe(s,n)))&&(s=n,h=p)),n=n.next;while(n!==c);return s}function $Fe(e,t){return kr(e.prev,e,t.prev)<0&&kr(t.next,e,e.next)<0}function FFe(e,t,n,r){var i=e;do i.z===0&&(i.z=u3(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,zFe(i)}function zFe(e){var t,n,r,i,o,s,l,c,d=1;do{for(n=e,e=null,o=null,s=0;n;){for(s++,r=n,l=0,t=0;t0||c>0&&r;)l!==0&&(c===0||!r||n.z<=r.z)?(i=n,n=n.nextZ,l--):(i=r,r=r.nextZ,c--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,d*=2}while(s>1);return e}function u3(e,t,n,r,i){return e=(e-n)*i|0,t=(t-r)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function jFe(e){var t=e,n=e;do(t.x=(e-s)*(o-l)&&(e-s)*(r-l)>=(n-s)*(t-l)&&(n-s)*(o-l)>=(i-s)*(r-l)}function UFe(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!HFe(e,t)&&(w1(e,t)&&w1(t,e)&&WFe(e,t)&&(kr(e.prev,e,t.prev)||kr(e,t.prev,t))||Lk(e,t)&&kr(e.prev,e,e.next)>0&&kr(t.prev,t,t.next)>0)}function kr(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Lk(e,t){return e.x===t.x&&e.y===t.y}function tte(e,t,n,r){var i=T_(kr(e,t,n)),o=T_(kr(e,t,r)),s=T_(kr(n,r,e)),l=T_(kr(n,r,t));return!!(i!==o&&s!==l||i===0&&C_(e,n,t)||o===0&&C_(e,r,t)||s===0&&C_(n,e,r)||l===0&&C_(n,t,r))}function C_(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function T_(e){return e>0?1:e<0?-1:0}function HFe(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&tte(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function w1(e,t){return kr(e.prev,e,e.next)<0?kr(e,t,e.next)>=0&&kr(e,e.prev,t)>=0:kr(e,t,e.prev)<0||kr(e,e.next,t)<0}function WFe(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}function nte(e,t){var n=new d3(e.i,e.x,e.y),r=new d3(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function w9(e,t,n,r){var i=new d3(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function _1(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function d3(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Dk.deviation=function(e,t,n,r){var i=t&&t.length,o=i?t[0]*n:e.length,s=Math.abs(f3(e,0,o,n));if(i)for(var l=0,c=t.length;l0&&(r+=e[i-1].length,n.holes.push(r))}return n};var GFe=fj.exports;const VFe=zs(GFe);var cC={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */cC.exports;(function(e,t){(function(n){var r=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o=typeof Bt=="object"&&Bt;(o.global===o||o.window===o||o.self===o)&&(n=o);var s,l=2147483647,c=36,d=1,f=26,h=38,p=700,g=72,v=128,y="-",S=/^xn--/,_=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=c-d,A=Math.floor,R=String.fromCharCode,k;function O(Y){throw new RangeError(x[Y])}function L(Y,J){for(var ie=Y.length,ce=[];ie--;)ce[ie]=J(Y[ie]);return ce}function N(Y,J){var ie=Y.split("@"),ce="";ie.length>1&&(ce=ie[0]+"@",Y=ie[1]),Y=Y.replace(b,".");var ue=Y.split("."),se=L(ue,J).join(".");return ce+se}function H(Y){for(var J=[],ie=0,ce=Y.length,ue,se;ie=55296&&ue<=56319&&ie65535&&(J-=65536,ie+=R(J>>>10&1023|55296),J=56320|J&1023),ie+=R(J),ie}).join("")}function z(Y){return Y-48<10?Y-22:Y-65<26?Y-65:Y-97<26?Y-97:c}function D(Y,J){return Y+22+75*(Y<26)-((J!=0)<<5)}function F(Y,J,ie){var ce=0;for(Y=ie?A(Y/p):Y>>1,Y+=A(Y/J);Y>E*f>>1;ce+=c)Y=A(Y/E);return A(ce+(E+1)*Y/(Y+h))}function j(Y){var J=[],ie=Y.length,ce,ue=0,se=v,Q=g,ae,le,he,pe,ve,ye,xe,me,be;for(ae=Y.lastIndexOf(y),ae<0&&(ae=0),le=0;le=128&&O("not-basic"),J.push(Y.charCodeAt(le));for(he=ae>0?ae+1:0;he=ie&&O("invalid-input"),xe=z(Y.charCodeAt(he++)),(xe>=c||xe>A((l-ue)/ve))&&O("overflow"),ue+=xe*ve,me=ye<=Q?d:ye>=Q+f?f:ye-Q,!(xeA(l/be)&&O("overflow"),ve*=be;ce=J.length+1,Q=F(ue-pe,ce,pe==0),A(ue/ce)>l-se&&O("overflow"),se+=A(ue/ce),ue%=ce,J.splice(ue++,0,se)}return W(J)}function V(Y){var J,ie,ce,ue,se,Q,ae,le,he,pe,ve,ye=[],xe,me,be,Qe;for(Y=H(Y),xe=Y.length,J=v,ie=0,se=g,Q=0;Q=J&&veA((l-ie)/me)&&O("overflow"),ie+=(ae-J)*me,J=ae,Q=0;Ql&&O("overflow"),ve==J){for(le=ie,he=c;pe=he<=se?d:he>=se+f?f:he-se,!(le"u"||!mi?ln:mi(Uint8Array),tp={"%AggregateError%":typeof AggregateError>"u"?ln:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ln:ArrayBuffer,"%ArrayIteratorPrototype%":Jp&&mi?mi([][Symbol.iterator]()):ln,"%AsyncFromSyncIteratorPrototype%":ln,"%AsyncFunction%":dm,"%AsyncGenerator%":dm,"%AsyncGeneratorFunction%":dm,"%AsyncIteratorPrototype%":dm,"%Atomics%":typeof Atomics>"u"?ln:Atomics,"%BigInt%":typeof BigInt>"u"?ln:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ln:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ln:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ln:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ln:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ln:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ln:FinalizationRegistry,"%Function%":rte,"%GeneratorFunction%":dm,"%Int8Array%":typeof Int8Array>"u"?ln:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ln:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ln:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Jp&&mi?mi(mi([][Symbol.iterator]())):ln,"%JSON%":typeof JSON=="object"?JSON:ln,"%Map%":typeof Map>"u"?ln:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Jp||!mi?ln:mi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ln:Promise,"%Proxy%":typeof Proxy>"u"?ln:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ln:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ln:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Jp||!mi?ln:mi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ln:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Jp&&mi?mi(""[Symbol.iterator]()):ln,"%Symbol%":Jp?Symbol:ln,"%SyntaxError%":Mg,"%ThrowTypeError%":s3e,"%TypedArray%":l3e,"%TypeError%":eg,"%Uint8Array%":typeof Uint8Array>"u"?ln:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ln:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ln:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ln:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ln:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ln:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ln:WeakSet};if(mi)try{null.error}catch(e){var c3e=mi(mi(e));tp["%Error.prototype%"]=c3e}var u3e=function e(t){var n;if(t==="%AsyncFunction%")n=zN("async function () {}");else if(t==="%GeneratorFunction%")n=zN("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=zN("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&mi&&(n=mi(i.prototype))}return tp[t]=n,n},E9={"%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"]},hw=hj,uC=o3e,d3e=hw.call(Function.call,Array.prototype.concat),f3e=hw.call(Function.apply,Array.prototype.splice),C9=hw.call(Function.call,String.prototype.replace),dC=hw.call(Function.call,String.prototype.slice),h3e=hw.call(Function.call,RegExp.prototype.exec),p3e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,m3e=/\\(\\)?/g,g3e=function(t){var n=dC(t,0,1),r=dC(t,-1);if(n==="%"&&r!=="%")throw new Mg("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new Mg("invalid intrinsic syntax, expected opening `%`");var i=[];return C9(t,p3e,function(o,s,l,c){i[i.length]=l?C9(c,m3e,"$1"):s||o}),i},v3e=function(t,n){var r=t,i;if(uC(E9,r)&&(i=E9[r],r="%"+i[0]+"%"),uC(tp,r)){var o=tp[r];if(o===dm&&(o=u3e(r)),typeof o>"u"&&!n)throw new eg("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new Mg("intrinsic "+t+" does not exist!")},pj=function(t,n){if(typeof t!="string"||t.length===0)throw new eg("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new eg('"allowMissing" argument must be a boolean');if(h3e(/^%?[^%]*%?$/,t)===null)throw new Mg("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=g3e(t),i=r.length>0?r[0]:"",o=v3e("%"+i+"%",n),s=o.name,l=o.value,c=!1,d=o.alias;d&&(i=d[0],f3e(r,d3e([0,1],d)));for(var f=1,h=!0;f=r.length){var y=ep(l,p);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?l=y.get:l=l[p]}else h=uC(l,p),l=l[p];h&&!c&&(tp[s]=l)}}return l},ite={exports:{}};(function(e){var t=hj,n=pj,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),s=n("%Object.getOwnPropertyDescriptor%",!0),l=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(h){var p=o(t,i,arguments);if(s&&l){var g=s(p,"length");g.configurable&&l(p,"length",{value:1+c(0,h.length-(arguments.length-1))})}return p};var d=function(){return o(t,r,arguments)};l?l(e.exports,"apply",{value:d}):e.exports.apply=d})(ite);var y3e=ite.exports,ote=pj,ste=y3e,b3e=ste(ote("String.prototype.indexOf")),x3e=function(t,n){var r=ote(t,!!n);return typeof r=="function"&&b3e(t,".prototype.")>-1?ste(r):r};const w3e={},_3e=Object.freeze(Object.defineProperty({__proto__:null,default:w3e},Symbol.toStringTag,{value:"Module"})),ate=iq(_3e);var mj=typeof Map=="function"&&Map.prototype,UN=Object.getOwnPropertyDescriptor&&mj?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,fC=mj&&UN&&typeof UN.get=="function"?UN.get:null,T9=mj&&Map.prototype.forEach,gj=typeof Set=="function"&&Set.prototype,HN=Object.getOwnPropertyDescriptor&&gj?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,hC=gj&&HN&&typeof HN.get=="function"?HN.get:null,k9=gj&&Set.prototype.forEach,S3e=typeof WeakMap=="function"&&WeakMap.prototype,bx=S3e?WeakMap.prototype.has:null,E3e=typeof WeakSet=="function"&&WeakSet.prototype,xx=E3e?WeakSet.prototype.has:null,C3e=typeof WeakRef=="function"&&WeakRef.prototype,A9=C3e?WeakRef.prototype.deref:null,T3e=Boolean.prototype.valueOf,k3e=Object.prototype.toString,A3e=Function.prototype.toString,R3e=String.prototype.match,vj=String.prototype.slice,ud=String.prototype.replace,I3e=String.prototype.toUpperCase,R9=String.prototype.toLowerCase,lte=RegExp.prototype.test,I9=Array.prototype.concat,Pl=Array.prototype.join,P3e=Array.prototype.slice,P9=Math.floor,h3=typeof BigInt=="function"?BigInt.prototype.valueOf:null,WN=Object.getOwnPropertySymbols,p3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Dg=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ro=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Dg||"symbol")?Symbol.toStringTag:null,cte=Object.prototype.propertyIsEnumerable,O9=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M9(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||lte.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-P9(-e):P9(e);if(r!==e){var i=String(r),o=vj.call(t,i.length+1);return ud.call(i,n,"$&_")+"."+ud.call(ud.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return ud.call(t,n,"$&_")}var m3=ate,D9=m3.custom,L9=dte(D9)?D9:null,O3e=function e(t,n,r,i){var o=n||{};if(Ju(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ju(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Ju(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ju(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ju(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return hte(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return l?M9(t,c):c}if(typeof t=="bigint"){var d=String(t)+"n";return l?M9(t,d):d}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return g3(t)?"[Array]":"[Object]";var h=K3e(o,r);if(typeof i>"u")i=[];else if(fte(i,t)>=0)return"[Circular]";function p(z,D,F){if(D&&(i=P3e.call(i),i.push(D)),F){var j={depth:o.depth};return Ju(o,"quoteStyle")&&(j.quoteStyle=o.quoteStyle),e(z,j,r+1,i)}return e(z,o,r+1,i)}if(typeof t=="function"&&!N9(t)){var g=j3e(t),v=k_(t,p);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(v.length>0?" { "+Pl.call(v,", ")+" }":"")}if(dte(t)){var y=Dg?ud.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):p3.call(t);return typeof t=="object"&&!Dg?mb(y):y}if(q3e(t)){for(var S="<"+R9.call(String(t.nodeName)),_=t.attributes||[],b=0;b<_.length;b++)S+=" "+_[b].name+"="+ute(M3e(_[b].value),"double",o);return S+=">",t.childNodes&&t.childNodes.length&&(S+="..."),S+="",S}if(g3(t)){if(t.length===0)return"[]";var x=k_(t,p);return h&&!Y3e(x)?"["+v3(x,h)+"]":"[ "+Pl.call(x,", ")+" ]"}if(L3e(t)){var E=k_(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!cte.call(t,"cause")?"{ ["+String(t)+"] "+Pl.call(I9.call("[cause]: "+p(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Pl.call(E,", ")+" }"}if(typeof t=="object"&&s){if(L9&&typeof t[L9]=="function"&&m3)return m3(t,{depth:f-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(U3e(t)){var A=[];return T9&&T9.call(t,function(z,D){A.push(p(D,t,!0)+" => "+p(z,t))}),B9("Map",fC.call(t),A,h)}if(G3e(t)){var R=[];return k9&&k9.call(t,function(z){R.push(p(z,t))}),B9("Set",hC.call(t),R,h)}if(H3e(t))return GN("WeakMap");if(V3e(t))return GN("WeakSet");if(W3e(t))return GN("WeakRef");if(B3e(t))return mb(p(Number(t)));if(F3e(t))return mb(p(h3.call(t)));if($3e(t))return mb(T3e.call(t));if(N3e(t))return mb(p(String(t)));if(!D3e(t)&&!N9(t)){var k=k_(t,p),O=O9?O9(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",N=!O&&ro&&Object(t)===t&&ro in t?vj.call(Qd(t),8,-1):L?"Object":"",H=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",W=H+(N||L?"["+Pl.call(I9.call([],N||[],L||[]),": ")+"] ":"");return k.length===0?W+"{}":h?W+"{"+v3(k,h)+"}":W+"{ "+Pl.call(k,", ")+" }"}return String(t)};function ute(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function M3e(e){return ud.call(String(e),/"/g,""")}function g3(e){return Qd(e)==="[object Array]"&&(!ro||!(typeof e=="object"&&ro in e))}function D3e(e){return Qd(e)==="[object Date]"&&(!ro||!(typeof e=="object"&&ro in e))}function N9(e){return Qd(e)==="[object RegExp]"&&(!ro||!(typeof e=="object"&&ro in e))}function L3e(e){return Qd(e)==="[object Error]"&&(!ro||!(typeof e=="object"&&ro in e))}function N3e(e){return Qd(e)==="[object String]"&&(!ro||!(typeof e=="object"&&ro in e))}function B3e(e){return Qd(e)==="[object Number]"&&(!ro||!(typeof e=="object"&&ro in e))}function $3e(e){return Qd(e)==="[object Boolean]"&&(!ro||!(typeof e=="object"&&ro in e))}function dte(e){if(Dg)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!p3)return!1;try{return p3.call(e),!0}catch{}return!1}function F3e(e){if(!e||typeof e!="object"||!h3)return!1;try{return h3.call(e),!0}catch{}return!1}var z3e=Object.prototype.hasOwnProperty||function(e){return e in this};function Ju(e,t){return z3e.call(e,t)}function Qd(e){return k3e.call(e)}function j3e(e){if(e.name)return e.name;var t=R3e.call(A3e.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function fte(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return hte(vj.call(e,0,t.maxStringLength),t)+r}var i=ud.call(ud.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,X3e);return ute(i,"single",t)}function X3e(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+I3e.call(t.toString(16))}function mb(e){return"Object("+e+")"}function GN(e){return e+" { ? }"}function B9(e,t,n,r){var i=r?v3(n,r):Pl.call(n,", ");return e+" ("+t+") {"+i+"}"}function Y3e(e){for(var t=0;t=0)return!1;return!0}function K3e(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Pl.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Pl.call(Array(t+1),n)}}function v3(e,t){if(e.length===0)return"";var n=` +`+t.prev+t.base;return n+Pl.call(e,","+n)+` +`+t.prev}function k_(e,t){var n=g3(e),r=[];if(n){r.length=e.length;for(var i=0;i1;){var n=t.pop(),r=n.obj[n.prop];if($h(r)){for(var i=[],o=0;o=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===d5e.RFC1738&&(d===40||d===41)){l+=s.charAt(c);continue}if(d<128){l=l+Sl[d];continue}if(d<2048){l=l+(Sl[192|d>>6]+Sl[128|d&63]);continue}if(d<55296||d>=57344){l=l+(Sl[224|d>>12]+Sl[128|d>>6&63]+Sl[128|d&63]);continue}c+=1,d=65536+((d&1023)<<10|s.charCodeAt(c)&1023),l+=Sl[240|d>>18]+Sl[128|d>>12&63]+Sl[128|d>>6&63]+Sl[128|d&63]}return l},v5e=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i"u"&&(x=0)}if(typeof c=="function"?_=c(n,_):_ instanceof Date?_=h(_):r==="comma"&&ru(_)&&(_=$S.maybeMap(_,function(j){return j instanceof Date?h(j):j})),_===null){if(o)return l&&!v?l(n,Yi.encoder,y,"key",p):n;_=""}if(C5e(_)||$S.isBuffer(_)){if(l){var R=v?n:l(n,Yi.encoder,y,"key",p);return[g(R)+"="+g(l(_,Yi.encoder,y,"value",p))]}return[g(n)+"="+g(String(_))]}var k=[];if(typeof _>"u")return k;var O;if(r==="comma"&&ru(_))v&&l&&(_=$S.maybeMap(_,l)),O=[{value:_.length>0?_.join(",")||null:void 0}];else if(ru(c))O=c;else{var L=Object.keys(_);O=d?L.sort(d):L}for(var N=i&&ru(_)&&_.length===1?n+"[]":n,H=0;H"u"?Yi.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Yi.charsetSentinel,delimiter:typeof t.delimiter>"u"?Yi.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Yi.encode,encoder:typeof t.encoder=="function"?t.encoder:Yi.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Yi.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Yi.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Yi.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Yi.strictNullHandling}},A5e=function(e,t){var n=e,r=k5e(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):ru(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var l;t&&t.arrayFormat in $9?l=t.arrayFormat:t&&"indices"in t?l=t.indices?"indices":"repeat":l="indices";var c=$9[l];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=c==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=gte(),h=0;h0?v+g:""},Lg=mte,y3=Object.prototype.hasOwnProperty,R5e=Array.isArray,hi={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Lg.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},I5e=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},yte=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},P5e="utf8=%26%2310003%3B",O5e="utf8=%E2%9C%93",M5e=function(t,n){var r={__proto__:null},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,o),l=-1,c,d=n.charset;if(n.charsetSentinel)for(c=0;c-1&&(v=R5e(v)?[v]:v),y3.call(r,g)?r[g]=Lg.combine(r[g],v):r[g]=v}return r},D5e=function(e,t,n,r){for(var i=r?t:yte(t,n),o=e.length-1;o>=0;--o){var s,l=e[o];if(l==="[]"&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var c=l.charAt(0)==="["&&l.charAt(l.length-1)==="]"?l.slice(1,-1):l,d=parseInt(c,10);!n.parseArrays&&c===""?s={0:i}:!isNaN(d)&&l!==c&&String(d)===c&&d>=0&&n.parseArrays&&d<=n.arrayLimit?(s=[],s[d]=i):c!=="__proto__"&&(s[c]=i)}i=s}return i},L5e=function(t,n,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,l=/(\[[^[\]]*])/g,c=r.depth>0&&s.exec(o),d=c?o.slice(0,c.index):o,f=[];if(d){if(!r.plainObjects&&y3.call(Object.prototype,d)&&!r.allowPrototypes)return;f.push(d)}for(var h=0;r.depth>0&&(c=l.exec(o))!==null&&h"u"?hi.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?hi.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:hi.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:hi.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:hi.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:hi.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:hi.comma,decoder:typeof t.decoder=="function"?t.decoder:hi.decoder,delimiter:typeof t.delimiter=="string"||Lg.isRegExp(t.delimiter)?t.delimiter:hi.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:hi.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:hi.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:hi.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:hi.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:hi.strictNullHandling}},B5e=function(e,t){var n=N5e(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?M5e(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;s",'"',"`"," ","\r",` +`," "],q5e=["{","}","|","\\","^","`"].concat(V5e),b3=["'"].concat(q5e),z9=["%","/","?",";","#"].concat(b3),j9=["/","?","#"],X5e=255,U9=/^[+a-z0-9A-Z_-]{0,63}$/,Y5e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,K5e={javascript:!0,"javascript:":!0},x3={javascript:!0,"javascript:":!0},tg={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w3=j5e;function Nk(e,t,n){if(e&&typeof e=="object"&&e instanceof al)return e;var r=new al;return r.parse(e,t,n),r}al.prototype.parse=function(e,t,n){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r127?A+="x":A+=E[R];if(!A.match(U9)){var O=b.slice(0,g),L=b.slice(g+1),N=E.match(Y5e);N&&(O.push(N[1]),L.unshift(N[2])),L.length&&(l="/"+L.join(".")+l),this.hostname=O.join(".");break}}}this.hostname.length>X5e?this.hostname="":this.hostname=this.hostname.toLowerCase(),_||(this.hostname=U5e.toASCII(this.hostname));var H=this.port?":"+this.port:"",W=this.hostname||"";this.host=W+H,this.href+=this.host,_&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),l[0]!=="/"&&(l="/"+l))}if(!K5e[f])for(var g=0,x=b3.length;g0?n.host.split("@"):!1;A&&(n.auth=A.shift(),n.hostname=A.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!b.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var R=b.slice(-1)[0],k=(n.host||e.host||b.length>1)&&(R==="."||R==="..")||R==="",O=0,L=b.length;L>=0;L--)R=b[L],R==="."?b.splice(L,1):R===".."?(b.splice(L,1),O++):O&&(b.splice(L,1),O--);if(!S&&!_)for(;O--;O)b.unshift("..");S&&b[0]!==""&&(!b[0]||b[0].charAt(0)!=="/")&&b.unshift(""),k&&b.join("/").substr(-1)!=="/"&&b.push("");var N=b[0]===""||b[0]&&b[0].charAt(0)==="/";if(E){n.hostname=N?"":b.length?b.shift():"",n.host=n.hostname;var A=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;A&&(n.auth=A.shift(),n.hostname=A.shift(),n.host=n.hostname)}return S=S||n.host&&b.length,S&&!N&&b.unshift(""),b.length>0?n.pathname=b.join("/"):(n.pathname=null,n.path=null),(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n};al.prototype.parseHost=function(){var e=this.host,t=W5e.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Z5e=Nk,e4e=J5e,t4e=Q5e;const n4e={parse:Z5e,format:t4e,resolve:e4e};function Ba(e){if(typeof e!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(e)}`)}function gb(e){return e.split("?")[0].split("#")[0]}function r4e(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function i4e(e,t,n){return e.replace(new RegExp(r4e(t),"g"),n)}function o4e(e,t){let n="",r=0,i=-1,o=0,s=-1;for(let l=0;l<=e.length;++l){if(l2){const c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=l,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+=`/${e.slice(i+1,l)}`:n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else s===46&&o!==-1?++o:o=-1}return n}const to={toPosix(e){return i4e(e,"\\","/")},isUrl(e){return/^https?:/.test(this.toPosix(e))},isDataUrl(e){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(e)},hasProtocol(e){return/^[^/:]+:\//.test(this.toPosix(e))},getProtocol(e){Ba(e),e=this.toPosix(e);let t="";const n=/^file:\/\/\//.exec(e),r=/^[^/:]+:\/\//.exec(e),i=/^[^/:]+:\//.exec(e);if(n||r||i){const o=(n==null?void 0:n[0])||(r==null?void 0:r[0])||(i==null?void 0:i[0]);t=o,e=e.slice(o.length)}return t},toAbsolute(e,t,n){if(this.isDataUrl(e))return e;const r=gb(this.toPosix(t??tt.ADAPTER.getBaseUrl())),i=gb(this.toPosix(n??this.rootname(r)));return Ba(e),e=this.toPosix(e),e.startsWith("/")?to.join(i,e.slice(1)):this.isAbsolute(e)?e:this.join(r,e)},normalize(e){if(e=this.toPosix(e),Ba(e),e.length===0)return".";let t="";const n=e.startsWith("/");this.hasProtocol(e)&&(t=this.rootname(e),e=e.slice(t.length));const r=e.endsWith("/");return e=o4e(e,!1),e.length>0&&r&&(e+="/"),n?`/${e}`:t+e},isAbsolute(e){return Ba(e),e=this.toPosix(e),this.hasProtocol(e)?!0:e.startsWith("/")},join(...e){if(e.length===0)return".";let t;for(let n=0;n0)if(t===void 0)t=r;else{const i=e[n-1]??"";this.extname(i)?t+=`/../${r}`:t+=`/${r}`}}return t===void 0?".":this.normalize(t)},dirname(e){if(Ba(e),e.length===0)return".";e=this.toPosix(e);let t=e.charCodeAt(0);const n=t===47;let r=-1,i=!0;const o=this.getProtocol(e),s=e;e=e.slice(o.length);for(let l=e.length-1;l>=1;--l)if(t=e.charCodeAt(l),t===47){if(!i){r=l;break}}else i=!1;return r===-1?n?"/":this.isUrl(s)?o+e:o:n&&r===1?"//":o+e.slice(0,r)},rootname(e){Ba(e),e=this.toPosix(e);let t="";if(e.startsWith("/")?t="/":t=this.getProtocol(e),this.isUrl(e)){const n=e.indexOf("/",t.length);n!==-1?t=e.slice(0,n):t=e,t.endsWith("/")||(t+="/")}return t},basename(e,t){Ba(e),t&&Ba(t),e=gb(this.toPosix(e));let n=0,r=-1,i=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let s=t.length-1,l=-1;for(o=e.length-1;o>=0;--o){const c=e.charCodeAt(o);if(c===47){if(!i){n=o+1;break}}else l===-1&&(i=!1,l=o+1),s>=0&&(c===t.charCodeAt(s)?--s===-1&&(r=o):(s=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!i){n=o+1;break}}else r===-1&&(i=!1,r=o+1);return r===-1?"":e.slice(n,r)},extname(e){Ba(e),e=gb(this.toPosix(e));let t=-1,n=0,r=-1,i=!0,o=0;for(let s=e.length-1;s>=0;--s){const l=e.charCodeAt(s);if(l===47){if(!i){n=s+1;break}continue}r===-1&&(i=!1,r=s+1),l===46?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||r===-1||o===0||o===1&&t===r-1&&t===n+1?"":e.slice(t,r)},parse(e){Ba(e);const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;e=gb(this.toPosix(e));let n=e.charCodeAt(0);const r=this.isAbsolute(e);let i;t.root=this.rootname(e),r||this.hasProtocol(e)?i=1:i=0;let o=-1,s=0,l=-1,c=!0,d=e.length-1,f=0;for(;d>=i;--d){if(n=e.charCodeAt(d),n===47){if(!c){s=d+1;break}continue}l===-1&&(c=!1,l=d+1),n===46?o===-1?o=d:f!==1&&(f=1):o!==-1&&(f=-1)}return o===-1||l===-1||f===0||f===1&&o===l-1&&o===s+1?l!==-1&&(s===0&&r?t.base=t.name=e.slice(1,l):t.base=t.name=e.slice(s,l)):(s===0&&r?(t.name=e.slice(1,o),t.base=e.slice(1,l)):(t.name=e.slice(s,o),t.base=e.slice(s,l)),t.ext=e.slice(o,l)),t.dir=this.dirname(e),t},sep:"/",delimiter:":"},H9={};function cn(e,t,n=3){if(H9[t])return;let r=new Error().stack;typeof r>"u"?console.warn("PixiJS Deprecation Warning: ",`${t} Deprecated since v${e}`):(r=r.split(` `).splice(n).join(` `),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${t} Deprecated since v${e}`),console.warn(r),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${t} -Deprecated since v${e}`),console.warn(r))),F9[t]=!0}let qN;function r4e(){return typeof qN>"u"&&(qN=function(){var n;const t={stencil:!0,failIfMajorPerformanceCaveat:tt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!tt.ADAPTER.getWebGLRenderingContext())return!1;const r=tt.ADAPTER.createCanvas();let i=r.getContext("webgl",t)||r.getContext("experimental-webgl",t);const o=!!((n=i==null?void 0:i.getContextAttributes())!=null&&n.stencil);if(i){const s=i.getExtension("WEBGL_lose_context");s&&s.loseContext()}return i=null,o}catch{return!1}}()),qN}var i4e={grad:.9,turn:360,rad:360/(2*Math.PI)},Kc=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},vi=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},ia=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},pte=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},z9=function(e){return{r:ia(e.r,0,255),g:ia(e.g,0,255),b:ia(e.b,0,255),a:ia(e.a)}},XN=function(e){return{r:vi(e.r),g:vi(e.g),b:vi(e.b),a:vi(e.a,3)}},o4e=/^#([0-9a-f]{3,8})$/i,I_=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},mte=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),l=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(l<0?l+6:l),s:o?s/o*100:0,v:o/255*100,a:i}},gte=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),s=r*(1-n),l=r*(1-(t-o)*n),c=r*(1-(1-t+o)*n),d=o%6;return{r:255*[r,l,s,s,c,r][d],g:255*[c,r,r,l,s,s][d],b:255*[s,s,c,r,r,l][d],a:i}},j9=function(e){return{h:pte(e.h),s:ia(e.s,0,100),l:ia(e.l,0,100),a:ia(e.a)}},U9=function(e){return{h:vi(e.h),s:vi(e.s),l:vi(e.l),a:vi(e.a,3)}},H9=function(e){return gte((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},bx=function(e){return{h:(t=mte(e)).h,s:(i=(200-(n=t.s))*(r=t.v)/100)>0&&i<200?n*r/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a};var t,n,r,i},s4e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,a4e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,l4e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,c4e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,x3={string:[[function(e){var t=o4e.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?vi(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?vi(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=l4e.exec(e)||c4e.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:z9({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=s4e.exec(e)||a4e.exec(e);if(!t)return null;var n,r,i=j9({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(i4e[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return H9(i)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=i===void 0?1:i;return Kc(t)&&Kc(n)&&Kc(r)?z9({r:Number(t),g:Number(n),b:Number(r),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,i=e.a,o=i===void 0?1:i;if(!Kc(t)||!Kc(n)||!Kc(r))return null;var s=j9({h:Number(t),s:Number(n),l:Number(r),a:Number(o)});return H9(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,i=e.a,o=i===void 0?1:i;if(!Kc(t)||!Kc(n)||!Kc(r))return null;var s=function(l){return{h:pte(l.h),s:ia(l.s,0,100),v:ia(l.v,0,100),a:ia(l.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(o)});return gte(s)},"hsv"]]},W9=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=XN(this.rgba),n=t.r,r=t.g,i=t.b,s=(o=t.a)<1?I_(vi(255*o)):"","#"+I_(n)+I_(r)+I_(i)+s;var t,n,r,i,o,s},e.prototype.toRgb=function(){return XN(this.rgba)},e.prototype.toRgbString=function(){return t=XN(this.rgba),n=t.r,r=t.g,i=t.b,(o=t.a)<1?"rgba("+n+", "+r+", "+i+", "+o+")":"rgb("+n+", "+r+", "+i+")";var t,n,r,i,o},e.prototype.toHsl=function(){return U9(bx(this.rgba))},e.prototype.toHslString=function(){return t=U9(bx(this.rgba)),n=t.h,r=t.s,i=t.l,(o=t.a)<1?"hsla("+n+", "+r+"%, "+i+"%, "+o+")":"hsl("+n+", "+r+"%, "+i+"%)";var t,n,r,i,o},e.prototype.toHsv=function(){return t=mte(this.rgba),{h:vi(t.h),s:vi(t.s),v:vi(t.v),a:vi(t.a,3)};var t},e.prototype.invert=function(){return _l({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),_l(YN(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),_l(YN(this.rgba,-t))},e.prototype.grayscale=function(){return _l(YN(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),_l(G9(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),_l(G9(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"?_l({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):vi(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=bx(this.rgba);return typeof t=="number"?_l({h:t,s:n.s,l:n.l,a:n.a}):vi(n.h)},e.prototype.isEqual=function(t){return this.toHex()===_l(t).toHex()},e}(),_l=function(e){return e instanceof w3?e:new w3(e)},V9=[],d4e=function(e){e.forEach(function(t){V9.indexOf(t)<0&&(t(w3,x3),V9.push(t))})};function f4e(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 i in n)r[n[i]]=i;var o={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var l,c,d=r[this.toHex()];if(d)return d;if(s!=null&&s.closest){var f=this.toRgb(),h=1/0,p="black";if(!o.length)for(var g in n)o[g]=new e(n[g]).toRgb();for(var v in n){var y=(l=f,c=o[v],Math.pow(l.r-c.r,2)+Math.pow(l.g-c.g,2)+Math.pow(l.b-c.b,2));yi===t[o]);if(e!==null&&t!==null){const i=Object.keys(e),o=Object.keys(t);return i.length!==o.length?!1:i.every(s=>e[s]===t[s])}return e===t}toRgba(){const[e,t,n,r]=this._components;return{r:e,g:t,b:n,a:r}}toRgb(){const[e,t,n]=this._components;return{r:e,g:t,b:n}}toRgbaString(){const[e,t,n]=this.toUint8RgbArray();return`rgba(${e},${t},${n},${this.alpha})`}toUint8RgbArray(e){const[t,n,r]=this._components;return e=e??[],e[0]=Math.round(t*255),e[1]=Math.round(n*255),e[2]=Math.round(r*255),e}toRgbArray(e){e=e??[];const[t,n,r]=this._components;return e[0]=t,e[1]=n,e[2]=r,e}toNumber(){return this._int}toLittleEndianNumber(){const e=this._int;return(e>>16)+(e&65280)+((e&255)<<16)}multiply(e){const[t,n,r,i]=eg.temp.setValue(e)._components;return this._components[0]*=t,this._components[1]*=n,this._components[2]*=r,this._components[3]*=i,this.refreshInt(),this._value=null,this}premultiply(e,t=!0){return t&&(this._components[0]*=e,this._components[1]*=e,this._components[2]*=e),this._components[3]=e,this.refreshInt(),this._value=null,this}toPremultiplied(e,t=!0){if(e===1)return(255<<24)+this._int;if(e===0)return t?0:this._int;let n=this._int>>16&255,r=this._int>>8&255,i=this._int&255;return t&&(n=n*e+.5|0,r=r*e+.5|0,i=i*e+.5|0),(e*255<<24)+(n<<16)+(r<<8)+i}toHex(){const e=this._int.toString(16);return`#${"000000".substring(0,6-e.length)+e}`}toHexa(){const t=Math.round(this._components[3]*255).toString(16);return this.toHex()+"00".substring(0,2-t.length)+t}setAlpha(e){return this._components[3]=this._clamp(e),this}round(e){const[t,n,r]=this._components;return this._components[0]=Math.round(t*e)/e,this._components[1]=Math.round(n*e)/e,this._components[2]=Math.round(r*e)/e,this.refreshInt(),this._value=null,this}toArray(e){e=e??[];const[t,n,r,i]=this._components;return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}normalize(e){let t,n,r,i;if((typeof e=="number"||e instanceof Number)&&e>=0&&e<=16777215){const o=e;t=(o>>16&255)/255,n=(o>>8&255)/255,r=(o&255)/255,i=1}else if((Array.isArray(e)||e instanceof Float32Array)&&e.length>=3&&e.length<=4)e=this._clamp(e),[t,n,r,i=1]=e;else if((e instanceof Uint8Array||e instanceof Uint8ClampedArray)&&e.length>=3&&e.length<=4)e=this._clamp(e,0,255),[t,n,r,i=255]=e,t/=255,n/=255,r/=255,i/=255;else if(typeof e=="string"||typeof e=="object"){if(typeof e=="string"){const s=eg.HEX_PATTERN.exec(e);s&&(e=`#${s[2]}`)}const o=_l(e);o.isValid()&&({r:t,g:n,b:r,a:i}=o.rgba,t/=255,n/=255,r/=255)}if(t!==void 0)this._components[0]=t,this._components[1]=n,this._components[2]=r,this._components[3]=i,this.refreshInt();else throw new Error(`Unable to convert color ${e}`)}refreshInt(){this._clamp(this._components);const[e,t,n]=this._components;this._int=(e*255<<16)+(t*255<<8)+(n*255|0)}_clamp(e,t=0,n=1){return typeof e=="number"?Math.min(Math.max(e,t),n):(e.forEach((r,i)=>{e[i]=Math.min(Math.max(r,t),n)}),e)}};let zn=eg;zn.shared=new eg;zn.temp=new eg;zn.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;function h4e(e){return cn("7.2.0","utils.hex2string is deprecated, use Color#toHex instead"),zn.shared.setValue(e).toHex()}function p4e(e){return cn("7.2.0","utils.rgb2hex is deprecated, use Color#toNumber instead"),zn.shared.setValue(e).toNumber()}function m4e(){const e=[],t=[];for(let r=0;r<32;r++)e[r]=r,t[r]=r;e[Mt.NORMAL_NPM]=Mt.NORMAL,e[Mt.ADD_NPM]=Mt.ADD,e[Mt.SCREEN_NPM]=Mt.SCREEN,t[Mt.NORMAL]=Mt.NORMAL_NPM,t[Mt.ADD]=Mt.ADD_NPM,t[Mt.SCREEN]=Mt.SCREEN_NPM;const n=[];return n.push(t),n.push(e),n}const vte=m4e();function yte(e,t){return vte[t?1:0][e]}function g4e(e,t=null){const n=e*6;if(t=t||new Uint16Array(n),t.length!==n)throw new Error(`Out buffer length is incorrect, got ${t.length} and expected ${n}`);for(let r=0,i=0;r>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1}function q9(e){return!(e&e-1)&&!!e}function X9(e){let t=(e>65535?1:0)<<4;e>>>=t;let n=(e>255?1:0)<<3;return e>>>=n,t|=n,n=(e>15?1:0)<<2,e>>>=n,t|=n,n=(e>3?1:0)<<1,e>>>=n,t|=n,t|e>>1}function tg(e,t,n){const r=e.length;let i;if(t>=r||n===0)return;n=t+n>r?r-t:n;const o=r-n;for(i=t;i(e.Renderer="renderer",e.Application="application",e.RendererSystem="renderer-webgl-system",e.RendererPlugin="renderer-webgl-plugin",e.CanvasRendererSystem="renderer-canvas-system",e.CanvasRendererPlugin="renderer-canvas-plugin",e.Asset="asset",e.LoadParser="load-parser",e.ResolveParser="resolve-parser",e.CacheParser="cache-parser",e.DetectionParser="detection-parser",e))(rt||{});const S3=e=>{if(typeof e=="function"||typeof e=="object"&&e.extension){if(!e.extension)throw new Error("Extension class must have an extension object");e={...typeof e.extension!="object"?{type:e.extension}:e.extension,ref:e}}if(typeof e=="object")e={...e};else throw new Error("Invalid extension type");return typeof e.type=="string"&&(e.type=[e.type]),e},J9=(e,t)=>S3(e).priority??t,bt={_addHandlers:{},_removeHandlers:{},_queue:{},remove(...e){return e.map(S3).forEach(t=>{t.type.forEach(n=>{var r,i;return(i=(r=this._removeHandlers)[n])==null?void 0:i.call(r,t)})}),this},add(...e){return e.map(S3).forEach(t=>{t.type.forEach(n=>{const r=this._addHandlers,i=this._queue;r[n]?r[n](t):(i[n]=i[n]||[],i[n].push(t))})}),this},handle(e,t,n){const r=this._addHandlers,i=this._removeHandlers;if(r[e]||i[e])throw new Error(`Extension type ${e} already has a handler`);r[e]=t,i[e]=n;const o=this._queue;return o[e]&&(o[e].forEach(s=>t(s)),delete o[e]),this},handleByMap(e,t){return this.handle(e,n=>{t[n.name]=n.ref},n=>{delete t[n.name]})},handleByList(e,t,n=-1){return this.handle(e,r=>{t.includes(r.ref)||(t.push(r.ref),t.sort((i,o)=>J9(o,n)-J9(i,n)))},r=>{const i=t.indexOf(r.ref);i!==-1&&t.splice(i,1)})}};class E3{constructor(t){typeof t=="number"?this.rawBinaryData=new ArrayBuffer(t):t instanceof Uint8Array?this.rawBinaryData=t.buffer:this.rawBinaryData=t,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}get int8View(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View}get uint8View(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View}get int16View(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View}get uint16View(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View}get int32View(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View}view(t){return this[`${t}View`]}destroy(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null}static sizeOf(t){switch(t){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(`${t} isn't a valid view type`)}}}const _4e=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(` -`);function S4e(e){let t="";for(let n=0;n0&&(t+=` -else `),n=0;--r){const i=C3[r];if(i.test&&i.test(e,n))return new i(e,t)}throw new Error("Unrecognized source type to auto-detect Resource")}class sl{constructor(t){this.items=[],this._name=t,this._aliasCount=0}emit(t,n,r,i,o,s,l,c){if(arguments.length>8)throw new Error("max arguments reached");const{name:d,items:f}=this;this._aliasCount++;for(let h=0,p=f.length;h0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this}remove(t){const n=this.items.indexOf(t);return n!==-1&&(this.ensureNonAliasedItems(),this.items.splice(n,1)),this}contains(t){return this.items.includes(t)}removeAll(){return this.ensureNonAliasedItems(),this.items.length=0,this}destroy(){this.removeAll(),this.items=null,this._name=null}get empty(){return this.items.length===0}get name(){return this._name}}Object.defineProperties(sl.prototype,{dispatch:{value:sl.prototype.emit},run:{value:sl.prototype.emit}});class x1{constructor(t=0,n=0){this._width=t,this._height=n,this.destroyed=!1,this.internal=!1,this.onResize=new sl("setRealSize"),this.onUpdate=new sl("update"),this.onError=new sl("onError")}bind(t){this.onResize.add(t),this.onUpdate.add(t),this.onError.add(t),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(t){this.onResize.remove(t),this.onUpdate.remove(t),this.onError.remove(t)}resize(t,n){(t!==this._width||n!==this._height)&&(this._width=t,this._height=n,this.onResize.emit(t,n))}get valid(){return!!this._width&&!!this._height}update(){this.destroyed||this.onUpdate.emit()}load(){return Promise.resolve(this)}get width(){return this._width}get height(){return this._height}style(t,n,r){return!1}dispose(){}destroy(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)}static test(t,n){return!1}}class hw extends x1{constructor(t,n){const{width:r,height:i}=n||{};if(!r||!i)throw new Error("BufferResource width or height invalid");super(r,i),this.data=t}upload(t,n,r){const i=t.gl;i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===gl.UNPACK);const o=n.realWidth,s=n.realHeight;return r.width===o&&r.height===s?i.texSubImage2D(n.target,0,0,0,o,s,n.format,r.type,this.data):(r.width=o,r.height=s,i.texImage2D(n.target,0,r.internalFormat,o,s,0,n.format,r.type,this.data)),!0}dispose(){this.data=null}static test(t){return t instanceof Float32Array||t instanceof Uint8Array||t instanceof Uint32Array}}const C4e={scaleMode:lu.NEAREST,format:Ge.RGBA,alphaMode:gl.NPM},um=class extends dw{constructor(e=null,t=null){super(),t=Object.assign({},um.defaultOptions,t);const{alphaMode:n,mipmap:r,anisotropicLevel:i,scaleMode:o,width:s,height:l,wrapMode:c,format:d,type:f,target:h,resolution:p,resourceOptions:g}=t;e&&!(e instanceof x1)&&(e=wte(e,g),e.internal=!0),this.resolution=p||tt.RESOLUTION,this.width=Math.round((s||0)*this.resolution)/this.resolution,this.height=Math.round((l||0)*this.resolution)/this.resolution,this._mipmap=r,this.anisotropicLevel=i,this._wrapMode=c,this._scaleMode=o,this.format=d,this.type=f,this.target=h,this.alphaMode=n,this.uid=xp(),this.touched=0,this.isPowerOfTwo=!1,this._refreshPOT(),this._glTextures={},this.dirtyId=0,this.dirtyStyleId=0,this.cacheId=null,this.valid=s>0&&l>0,this.textureCacheIds=[],this.destroyed=!1,this.resource=null,this._batchEnabled=0,this._batchLocation=0,this.parentTextureArray=null,this.setResource(e)}get realWidth(){return Math.round(this.width*this.resolution)}get realHeight(){return Math.round(this.height*this.resolution)}get mipmap(){return this._mipmap}set mipmap(e){this._mipmap!==e&&(this._mipmap=e,this.dirtyStyleId++)}get scaleMode(){return this._scaleMode}set scaleMode(e){this._scaleMode!==e&&(this._scaleMode=e,this.dirtyStyleId++)}get wrapMode(){return this._wrapMode}set wrapMode(e){this._wrapMode!==e&&(this._wrapMode=e,this.dirtyStyleId++)}setStyle(e,t){let n;return e!==void 0&&e!==this.scaleMode&&(this.scaleMode=e,n=!0),t!==void 0&&t!==this.mipmap&&(this.mipmap=t,n=!0),n&&this.dirtyStyleId++,this}setSize(e,t,n){return n=n||this.resolution,this.setRealSize(e*n,t*n,n)}setRealSize(e,t,n){return this.resolution=n||this.resolution,this.width=Math.round(e)/this.resolution,this.height=Math.round(t)/this.resolution,this._refreshPOT(),this.update(),this}_refreshPOT(){this.isPowerOfTwo=q9(this.realWidth)&&q9(this.realHeight)}setResolution(e){const t=this.resolution;return t===e?this:(this.resolution=e,this.valid&&(this.width=Math.round(this.width*t)/e,this.height=Math.round(this.height*t)/e,this.emit("update",this)),this._refreshPOT(),this)}setResource(e){if(this.resource===e)return this;if(this.resource)throw new Error("Resource can be set only once");return e.bind(this),this.resource=e,this}update(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))}onError(e){this.emit("error",this,e)}destroy(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete Bu[this.cacheId],delete Sl[this.cacheId],this.cacheId=null),this.dispose(),um.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0}dispose(){this.emit("dispose",this)}castToBaseTexture(){return this}static from(e,t,n=tt.STRICT_TEXTURE_CACHE){const r=typeof e=="string";let i=null;if(r)i=e;else{if(!e._pixiId){const s=(t==null?void 0:t.pixiIdPrefix)||"pixiid";e._pixiId=`${s}_${xp()}`}i=e._pixiId}let o=Bu[i];if(r&&n&&!o)throw new Error(`The cacheId "${i}" does not exist in BaseTextureCache.`);return o||(o=new um(e,t),o.cacheId=i,um.addToCache(o,i)),o}static fromBuffer(e,t,n,r){e=e||new Float32Array(t*n*4);const i=new hw(e,{width:t,height:n}),o=e instanceof Float32Array?Rt.FLOAT:Rt.UNSIGNED_BYTE;return new um(i,Object.assign({},C4e,{type:o},r))}static addToCache(e,t){t&&(e.textureCacheIds.includes(t)||e.textureCacheIds.push(t),Bu[t]&&Bu[t]!==e&&console.warn(`BaseTexture added to the cache with an id [${t}] that already had an entry`),Bu[t]=e)}static removeFromCache(e){if(typeof e=="string"){const t=Bu[e];if(t){const n=t.textureCacheIds.indexOf(e);return n>-1&&t.textureCacheIds.splice(n,1),delete Bu[e],t}}else if(e!=null&&e.textureCacheIds){for(let t=0;t1){for(let h=0;h(e[e.POLY=0]="POLY",e[e.RECT=1]="RECT",e[e.CIRC=2]="CIRC",e[e.ELIP=3]="ELIP",e[e.RREC=4]="RREC",e))(zi||{});class Ot{constructor(t=0,n=0){this.x=0,this.y=0,this.x=t,this.y=n}clone(){return new Ot(this.x,this.y)}copyFrom(t){return this.set(t.x,t.y),this}copyTo(t){return t.set(this.x,this.y),t}equals(t){return t.x===this.x&&t.y===this.y}set(t=0,n=t){return this.x=t,this.y=n,this}toString(){return`[@pixi/math:Point x=${this.x} y=${this.y}]`}}const P_=[new Ot,new Ot,new Ot,new Ot];class Kt{constructor(t=0,n=0,r=0,i=0){this.x=Number(t),this.y=Number(n),this.width=Number(r),this.height=Number(i),this.type=zi.RECT}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}static get EMPTY(){return new Kt(0,0,0,0)}clone(){return new Kt(this.x,this.y,this.width,this.height)}copyFrom(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this}copyTo(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t}contains(t,n){return this.width<=0||this.height<=0?!1:t>=this.x&&t=this.y&&nt.right?t.right:this.right)<=O)return!1;const N=this.yt.bottom?t.bottom:this.bottom)>N}const r=this.left,i=this.right,o=this.top,s=this.bottom;if(i<=r||s<=o)return!1;const l=P_[0].set(t.left,t.top),c=P_[1].set(t.left,t.bottom),d=P_[2].set(t.right,t.top),f=P_[3].set(t.right,t.bottom);if(d.x<=l.x||c.y<=l.y)return!1;const h=Math.sign(n.a*n.d-n.b*n.c);if(h===0||(n.apply(l,l),n.apply(c,c),n.apply(d,d),n.apply(f,f),Math.max(l.x,c.x,d.x,f.x)<=r||Math.min(l.x,c.x,d.x,f.x)>=i||Math.max(l.y,c.y,d.y,f.y)<=o||Math.min(l.y,c.y,d.y,f.y)>=s))return!1;const p=h*(c.y-l.y),g=h*(l.x-c.x),v=p*r+g*o,y=p*i+g*o,S=p*r+g*s,_=p*i+g*s;if(Math.max(v,y,S,_)<=p*l.x+g*l.y||Math.min(v,y,S,_)>=p*f.x+g*f.y)return!1;const b=h*(l.y-d.y),x=h*(d.x-l.x),E=b*r+x*o,A=b*i+x*o,I=b*r+x*s,k=b*i+x*s;return!(Math.max(E,A,I,k)<=b*l.x+x*l.y||Math.min(E,A,I,k)>=b*f.x+x*f.y)}pad(t=0,n=t){return this.x-=t,this.y-=n,this.width+=t*2,this.height+=n*2,this}fit(t){const n=Math.max(this.x,t.x),r=Math.min(this.x+this.width,t.x+t.width),i=Math.max(this.y,t.y),o=Math.min(this.y+this.height,t.y+t.height);return this.x=n,this.width=Math.max(r-n,0),this.y=i,this.height=Math.max(o-i,0),this}ceil(t=1,n=.001){const r=Math.ceil((this.x+this.width-n)*t)/t,i=Math.ceil((this.y+this.height-n)*t)/t;return this.x=Math.floor((this.x+n)*t)/t,this.y=Math.floor((this.y+n)*t)/t,this.width=r-this.x,this.height=i-this.y,this}enlarge(t){const n=Math.min(this.x,t.x),r=Math.max(this.x+this.width,t.x+t.width),i=Math.min(this.y,t.y),o=Math.max(this.y+this.height,t.y+t.height);return this.x=n,this.width=r-n,this.y=i,this.height=o-i,this}toString(){return`[@pixi/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}class yj{constructor(t=0,n=0,r=0){this.x=t,this.y=n,this.radius=r,this.type=zi.CIRC}clone(){return new yj(this.x,this.y,this.radius)}contains(t,n){if(this.radius<=0)return!1;const r=this.radius*this.radius;let i=this.x-t,o=this.y-n;return i*=i,o*=o,i+o<=r}getBounds(){return new Kt(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)}toString(){return`[@pixi/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`}}class bj{constructor(t=0,n=0,r=0,i=0){this.x=t,this.y=n,this.width=r,this.height=i,this.type=zi.ELIP}clone(){return new bj(this.x,this.y,this.width,this.height)}contains(t,n){if(this.width<=0||this.height<=0)return!1;let r=(t-this.x)/this.width,i=(n-this.y)/this.height;return r*=r,i*=i,r+i<=1}getBounds(){return new Kt(this.x-this.width,this.y-this.height,this.width,this.height)}toString(){return`[@pixi/math:Ellipse x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}class ng{constructor(...t){let n=Array.isArray(t[0])?t[0]:t;if(typeof n[0]!="number"){const r=[];for(let i=0,o=n.length;in!=f>n&&t<(d-l)*((n-c)/(f-c))+l&&(r=!r)}return r}toString(){return`[@pixi/math:PolygoncloseStroke=${this.closeStroke}points=${this.points.reduce((t,n)=>`${t}, ${n}`,"")}]`}}class xj{constructor(t=0,n=0,r=0,i=0,o=20){this.x=t,this.y=n,this.width=r,this.height=i,this.radius=o,this.type=zi.RREC}clone(){return new xj(this.x,this.y,this.width,this.height,this.radius)}contains(t,n){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&n>=this.y&&n<=this.y+this.height){const r=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(n>=this.y+r&&n<=this.y+this.height-r||t>=this.x+r&&t<=this.x+this.width-r)return!0;let i=t-(this.x+r),o=n-(this.y+r);const s=r*r;if(i*i+o*o<=s||(i=t-(this.x+this.width-r),i*i+o*o<=s)||(o=n-(this.y+this.height-r),i*i+o*o<=s)||(i=t-(this.x+r),i*i+o*o<=s))return!0}return!1}toString(){return`[@pixi/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}}class pr{constructor(t=1,n=0,r=0,i=1,o=0,s=0){this.array=null,this.a=t,this.b=n,this.c=r,this.d=i,this.tx=o,this.ty=s}fromArray(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]}set(t,n,r,i,o,s){return this.a=t,this.b=n,this.c=r,this.d=i,this.tx=o,this.ty=s,this}toArray(t,n){this.array||(this.array=new Float32Array(9));const r=n||this.array;return t?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty,r[8]=1):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0,r[8]=1),r}apply(t,n){n=n||new Ot;const r=t.x,i=t.y;return n.x=this.a*r+this.c*i+this.tx,n.y=this.b*r+this.d*i+this.ty,n}applyInverse(t,n){n=n||new Ot;const r=1/(this.a*this.d+this.c*-this.b),i=t.x,o=t.y;return n.x=this.d*r*i+-this.c*r*o+(this.ty*this.c-this.tx*this.d)*r,n.y=this.a*r*o+-this.b*r*i+(-this.ty*this.a+this.tx*this.b)*r,n}translate(t,n){return this.tx+=t,this.ty+=n,this}scale(t,n){return this.a*=t,this.d*=n,this.c*=t,this.b*=n,this.tx*=t,this.ty*=n,this}rotate(t){const n=Math.cos(t),r=Math.sin(t),i=this.a,o=this.c,s=this.tx;return this.a=i*n-this.b*r,this.b=i*r+this.b*n,this.c=o*n-this.d*r,this.d=o*r+this.d*n,this.tx=s*n-this.ty*r,this.ty=s*r+this.ty*n,this}append(t){const n=this.a,r=this.b,i=this.c,o=this.d;return this.a=t.a*n+t.b*i,this.b=t.a*r+t.b*o,this.c=t.c*n+t.d*i,this.d=t.c*r+t.d*o,this.tx=t.tx*n+t.ty*i+this.tx,this.ty=t.tx*r+t.ty*o+this.ty,this}setTransform(t,n,r,i,o,s,l,c,d){return this.a=Math.cos(l+d)*o,this.b=Math.sin(l+d)*o,this.c=-Math.sin(l-c)*s,this.d=Math.cos(l-c)*s,this.tx=t-(r*this.a+i*this.c),this.ty=n-(r*this.b+i*this.d),this}prepend(t){const n=this.tx;if(t.a!==1||t.b!==0||t.c!==0||t.d!==1){const r=this.a,i=this.c;this.a=r*t.a+this.b*t.c,this.b=r*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}return this.tx=n*t.a+this.ty*t.c+t.tx,this.ty=n*t.b+this.ty*t.d+t.ty,this}decompose(t){const n=this.a,r=this.b,i=this.c,o=this.d,s=t.pivot,l=-Math.atan2(-i,o),c=Math.atan2(r,n),d=Math.abs(l+c);return d<1e-5||Math.abs(pC-d)<1e-5?(t.rotation=c,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=l,t.skew.y=c),t.scale.x=Math.sqrt(n*n+r*r),t.scale.y=Math.sqrt(i*i+o*o),t.position.x=this.tx+(s.x*n+s.y*i),t.position.y=this.ty+(s.x*r+s.y*o),t}invert(){const t=this.a,n=this.b,r=this.c,i=this.d,o=this.tx,s=t*i-n*r;return this.a=i/s,this.b=-n/s,this.c=-r/s,this.d=t/s,this.tx=(r*this.ty-i*o)/s,this.ty=-(t*this.ty-n*o)/s,this}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){const t=new pr;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyTo(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyFrom(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this}toString(){return`[@pixi/math:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`}static get IDENTITY(){return new pr}static get TEMP_MATRIX(){return new pr}}const Ph=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],Oh=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],Mh=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],Dh=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],k3=[],Ete=[],O_=Math.sign;function M4e(){for(let e=0;e<16;e++){const t=[];k3.push(t);for(let n=0;n<16;n++){const r=O_(Ph[e]*Ph[n]+Mh[e]*Oh[n]),i=O_(Oh[e]*Ph[n]+Dh[e]*Oh[n]),o=O_(Ph[e]*Mh[n]+Mh[e]*Dh[n]),s=O_(Oh[e]*Mh[n]+Dh[e]*Dh[n]);for(let l=0;l<16;l++)if(Ph[l]===r&&Oh[l]===i&&Mh[l]===o&&Dh[l]===s){t.push(l);break}}}for(let e=0;e<16;e++){const t=new pr;t.set(Ph[e],Oh[e],Mh[e],Dh[e],0,0),Ete.push(t)}}M4e();const _r={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:e=>Ph[e],uY:e=>Oh[e],vX:e=>Mh[e],vY:e=>Dh[e],inv:e=>e&8?e&15:-e&7,add:(e,t)=>k3[e][t],sub:(e,t)=>k3[e][_r.inv(t)],rotate180:e=>e^4,isVertical:e=>(e&3)===2,byDirection:(e,t)=>Math.abs(e)*2<=Math.abs(t)?t>=0?_r.S:_r.N:Math.abs(t)*2<=Math.abs(e)?e>0?_r.E:_r.W:t>0?e>0?_r.SE:_r.SW:e>0?_r.NE:_r.NW,matrixAppendRotationInv:(e,t,n=0,r=0)=>{const i=Ete[_r.inv(t)];i.tx=n,i.ty=r,e.append(i)}};class cd{constructor(t,n,r=0,i=0){this._x=r,this._y=i,this.cb=t,this.scope=n}clone(t=this.cb,n=this.scope){return new cd(t,n,this._x,this._y)}set(t=0,n=t){return(this._x!==t||this._y!==n)&&(this._x=t,this._y=n,this.cb.call(this.scope)),this}copyFrom(t){return(this._x!==t.x||this._y!==t.y)&&(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this}copyTo(t){return t.set(this._x,this._y),t}equals(t){return t.x===this._x&&t.y===this._y}toString(){return`[@pixi/math:ObservablePoint x=0 y=0 scope=${this.scope}]`}get x(){return this._x}set x(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))}get y(){return this._y}set y(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))}}const Cte=class{constructor(){this.worldTransform=new pr,this.localTransform=new pr,this.position=new cd(this.onChange,this,0,0),this.scale=new cd(this.onChange,this,1,1),this.pivot=new cd(this.onChange,this,0,0),this.skew=new cd(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}onChange(){this._localID++}updateSkew(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++}toString(){return`[@pixi/math:Transform position=(${this.position.x}, ${this.position.y}) rotation=${this.rotation} scale=(${this.scale.x}, ${this.scale.y}) skew=(${this.skew.x}, ${this.skew.y}) ]`}updateLocalTransform(){const e=this.localTransform;this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1)}updateTransform(e){const t=this.localTransform;if(this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==e._worldID){const n=e.worldTransform,r=this.worldTransform;r.a=t.a*n.a+t.b*n.c,r.b=t.a*n.b+t.b*n.d,r.c=t.c*n.a+t.d*n.c,r.d=t.c*n.b+t.d*n.d,r.tx=t.tx*n.a+t.ty*n.c+n.tx,r.ty=t.tx*n.b+t.ty*n.d+n.ty,this._parentID=e._worldID,this._worldID++}}setFromMatrix(e){e.decompose(this),this._localID++}get rotation(){return this._rotation}set rotation(e){this._rotation!==e&&(this._rotation=e,this.updateSkew())}};let wj=Cte;wj.IDENTITY=new Cte;var D4e=`varying vec2 vTextureCoord; +Deprecated since v${e}`),console.warn(r))),H9[t]=!0}let YN;function s4e(){return typeof YN>"u"&&(YN=function(){var n;const t={stencil:!0,failIfMajorPerformanceCaveat:tt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!tt.ADAPTER.getWebGLRenderingContext())return!1;const r=tt.ADAPTER.createCanvas();let i=r.getContext("webgl",t)||r.getContext("experimental-webgl",t);const o=!!((n=i==null?void 0:i.getContextAttributes())!=null&&n.stencil);if(i){const s=i.getExtension("WEBGL_lose_context");s&&s.loseContext()}return i=null,o}catch{return!1}}()),YN}var a4e={grad:.9,turn:360,rad:360/(2*Math.PI)},Qc=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},vi=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},oa=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},bte=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},W9=function(e){return{r:oa(e.r,0,255),g:oa(e.g,0,255),b:oa(e.b,0,255),a:oa(e.a)}},KN=function(e){return{r:vi(e.r),g:vi(e.g),b:vi(e.b),a:vi(e.a,3)}},l4e=/^#([0-9a-f]{3,8})$/i,I_=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},xte=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),l=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(l<0?l+6:l),s:o?s/o*100:0,v:o/255*100,a:i}},wte=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),s=r*(1-n),l=r*(1-(t-o)*n),c=r*(1-(1-t+o)*n),d=o%6;return{r:255*[r,l,s,s,c,r][d],g:255*[c,r,r,l,s,s][d],b:255*[s,s,c,r,r,l][d],a:i}},G9=function(e){return{h:bte(e.h),s:oa(e.s,0,100),l:oa(e.l,0,100),a:oa(e.a)}},V9=function(e){return{h:vi(e.h),s:vi(e.s),l:vi(e.l),a:vi(e.a,3)}},q9=function(e){return wte((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},_x=function(e){return{h:(t=xte(e)).h,s:(i=(200-(n=t.s))*(r=t.v)/100)>0&&i<200?n*r/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a};var t,n,r,i},c4e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,u4e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,d4e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,f4e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,_3={string:[[function(e){var t=l4e.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?vi(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?vi(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=d4e.exec(e)||f4e.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:W9({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=c4e.exec(e)||u4e.exec(e);if(!t)return null;var n,r,i=G9({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(a4e[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return q9(i)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=i===void 0?1:i;return Qc(t)&&Qc(n)&&Qc(r)?W9({r:Number(t),g:Number(n),b:Number(r),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,i=e.a,o=i===void 0?1:i;if(!Qc(t)||!Qc(n)||!Qc(r))return null;var s=G9({h:Number(t),s:Number(n),l:Number(r),a:Number(o)});return q9(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,i=e.a,o=i===void 0?1:i;if(!Qc(t)||!Qc(n)||!Qc(r))return null;var s=function(l){return{h:bte(l.h),s:oa(l.s,0,100),v:oa(l.v,0,100),a:oa(l.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(o)});return wte(s)},"hsv"]]},X9=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=KN(this.rgba),n=t.r,r=t.g,i=t.b,s=(o=t.a)<1?I_(vi(255*o)):"","#"+I_(n)+I_(r)+I_(i)+s;var t,n,r,i,o,s},e.prototype.toRgb=function(){return KN(this.rgba)},e.prototype.toRgbString=function(){return t=KN(this.rgba),n=t.r,r=t.g,i=t.b,(o=t.a)<1?"rgba("+n+", "+r+", "+i+", "+o+")":"rgb("+n+", "+r+", "+i+")";var t,n,r,i,o},e.prototype.toHsl=function(){return V9(_x(this.rgba))},e.prototype.toHslString=function(){return t=V9(_x(this.rgba)),n=t.h,r=t.s,i=t.l,(o=t.a)<1?"hsla("+n+", "+r+"%, "+i+"%, "+o+")":"hsl("+n+", "+r+"%, "+i+"%)";var t,n,r,i,o},e.prototype.toHsv=function(){return t=xte(this.rgba),{h:vi(t.h),s:vi(t.s),v:vi(t.v),a:vi(t.a,3)};var t},e.prototype.invert=function(){return El({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),El(QN(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),El(QN(this.rgba,-t))},e.prototype.grayscale=function(){return El(QN(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),El(Y9(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),El(Y9(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"?El({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):vi(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=_x(this.rgba);return typeof t=="number"?El({h:t,s:n.s,l:n.l,a:n.a}):vi(n.h)},e.prototype.isEqual=function(t){return this.toHex()===El(t).toHex()},e}(),El=function(e){return e instanceof S3?e:new S3(e)},K9=[],p4e=function(e){e.forEach(function(t){K9.indexOf(t)<0&&(t(S3,_3),K9.push(t))})};function m4e(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 i in n)r[n[i]]=i;var o={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var l,c,d=r[this.toHex()];if(d)return d;if(s!=null&&s.closest){var f=this.toRgb(),h=1/0,p="black";if(!o.length)for(var g in n)o[g]=new e(n[g]).toRgb();for(var v in n){var y=(l=f,c=o[v],Math.pow(l.r-c.r,2)+Math.pow(l.g-c.g,2)+Math.pow(l.b-c.b,2));yi===t[o]);if(e!==null&&t!==null){const i=Object.keys(e),o=Object.keys(t);return i.length!==o.length?!1:i.every(s=>e[s]===t[s])}return e===t}toRgba(){const[e,t,n,r]=this._components;return{r:e,g:t,b:n,a:r}}toRgb(){const[e,t,n]=this._components;return{r:e,g:t,b:n}}toRgbaString(){const[e,t,n]=this.toUint8RgbArray();return`rgba(${e},${t},${n},${this.alpha})`}toUint8RgbArray(e){const[t,n,r]=this._components;return e=e??[],e[0]=Math.round(t*255),e[1]=Math.round(n*255),e[2]=Math.round(r*255),e}toRgbArray(e){e=e??[];const[t,n,r]=this._components;return e[0]=t,e[1]=n,e[2]=r,e}toNumber(){return this._int}toLittleEndianNumber(){const e=this._int;return(e>>16)+(e&65280)+((e&255)<<16)}multiply(e){const[t,n,r,i]=ng.temp.setValue(e)._components;return this._components[0]*=t,this._components[1]*=n,this._components[2]*=r,this._components[3]*=i,this.refreshInt(),this._value=null,this}premultiply(e,t=!0){return t&&(this._components[0]*=e,this._components[1]*=e,this._components[2]*=e),this._components[3]=e,this.refreshInt(),this._value=null,this}toPremultiplied(e,t=!0){if(e===1)return(255<<24)+this._int;if(e===0)return t?0:this._int;let n=this._int>>16&255,r=this._int>>8&255,i=this._int&255;return t&&(n=n*e+.5|0,r=r*e+.5|0,i=i*e+.5|0),(e*255<<24)+(n<<16)+(r<<8)+i}toHex(){const e=this._int.toString(16);return`#${"000000".substring(0,6-e.length)+e}`}toHexa(){const t=Math.round(this._components[3]*255).toString(16);return this.toHex()+"00".substring(0,2-t.length)+t}setAlpha(e){return this._components[3]=this._clamp(e),this}round(e){const[t,n,r]=this._components;return this._components[0]=Math.round(t*e)/e,this._components[1]=Math.round(n*e)/e,this._components[2]=Math.round(r*e)/e,this.refreshInt(),this._value=null,this}toArray(e){e=e??[];const[t,n,r,i]=this._components;return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}normalize(e){let t,n,r,i;if((typeof e=="number"||e instanceof Number)&&e>=0&&e<=16777215){const o=e;t=(o>>16&255)/255,n=(o>>8&255)/255,r=(o&255)/255,i=1}else if((Array.isArray(e)||e instanceof Float32Array)&&e.length>=3&&e.length<=4)e=this._clamp(e),[t,n,r,i=1]=e;else if((e instanceof Uint8Array||e instanceof Uint8ClampedArray)&&e.length>=3&&e.length<=4)e=this._clamp(e,0,255),[t,n,r,i=255]=e,t/=255,n/=255,r/=255,i/=255;else if(typeof e=="string"||typeof e=="object"){if(typeof e=="string"){const s=ng.HEX_PATTERN.exec(e);s&&(e=`#${s[2]}`)}const o=El(e);o.isValid()&&({r:t,g:n,b:r,a:i}=o.rgba,t/=255,n/=255,r/=255)}if(t!==void 0)this._components[0]=t,this._components[1]=n,this._components[2]=r,this._components[3]=i,this.refreshInt();else throw new Error(`Unable to convert color ${e}`)}refreshInt(){this._clamp(this._components);const[e,t,n]=this._components;this._int=(e*255<<16)+(t*255<<8)+(n*255|0)}_clamp(e,t=0,n=1){return typeof e=="number"?Math.min(Math.max(e,t),n):(e.forEach((r,i)=>{e[i]=Math.min(Math.max(r,t),n)}),e)}};let zn=ng;zn.shared=new ng;zn.temp=new ng;zn.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;function g4e(e){return cn("7.2.0","utils.hex2string is deprecated, use Color#toHex instead"),zn.shared.setValue(e).toHex()}function v4e(e){return cn("7.2.0","utils.rgb2hex is deprecated, use Color#toNumber instead"),zn.shared.setValue(e).toNumber()}function y4e(){const e=[],t=[];for(let r=0;r<32;r++)e[r]=r,t[r]=r;e[Mt.NORMAL_NPM]=Mt.NORMAL,e[Mt.ADD_NPM]=Mt.ADD,e[Mt.SCREEN_NPM]=Mt.SCREEN,t[Mt.NORMAL]=Mt.NORMAL_NPM,t[Mt.ADD]=Mt.ADD_NPM,t[Mt.SCREEN]=Mt.SCREEN_NPM;const n=[];return n.push(t),n.push(e),n}const _te=y4e();function Ste(e,t){return _te[t?1:0][e]}function b4e(e,t=null){const n=e*6;if(t=t||new Uint16Array(n),t.length!==n)throw new Error(`Out buffer length is incorrect, got ${t.length} and expected ${n}`);for(let r=0,i=0;r>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1}function Q9(e){return!(e&e-1)&&!!e}function J9(e){let t=(e>65535?1:0)<<4;e>>>=t;let n=(e>255?1:0)<<3;return e>>>=n,t|=n,n=(e>15?1:0)<<2,e>>>=n,t|=n,n=(e>3?1:0)<<1,e>>>=n,t|=n,t|e>>1}function rg(e,t,n){const r=e.length;let i;if(t>=r||n===0)return;n=t+n>r?r-t:n;const o=r-n;for(i=t;i(e.Renderer="renderer",e.Application="application",e.RendererSystem="renderer-webgl-system",e.RendererPlugin="renderer-webgl-plugin",e.CanvasRendererSystem="renderer-canvas-system",e.CanvasRendererPlugin="renderer-canvas-plugin",e.Asset="asset",e.LoadParser="load-parser",e.ResolveParser="resolve-parser",e.CacheParser="cache-parser",e.DetectionParser="detection-parser",e))(rt||{});const C3=e=>{if(typeof e=="function"||typeof e=="object"&&e.extension){if(!e.extension)throw new Error("Extension class must have an extension object");e={...typeof e.extension!="object"?{type:e.extension}:e.extension,ref:e}}if(typeof e=="object")e={...e};else throw new Error("Invalid extension type");return typeof e.type=="string"&&(e.type=[e.type]),e},n7=(e,t)=>C3(e).priority??t,bt={_addHandlers:{},_removeHandlers:{},_queue:{},remove(...e){return e.map(C3).forEach(t=>{t.type.forEach(n=>{var r,i;return(i=(r=this._removeHandlers)[n])==null?void 0:i.call(r,t)})}),this},add(...e){return e.map(C3).forEach(t=>{t.type.forEach(n=>{const r=this._addHandlers,i=this._queue;r[n]?r[n](t):(i[n]=i[n]||[],i[n].push(t))})}),this},handle(e,t,n){const r=this._addHandlers,i=this._removeHandlers;if(r[e]||i[e])throw new Error(`Extension type ${e} already has a handler`);r[e]=t,i[e]=n;const o=this._queue;return o[e]&&(o[e].forEach(s=>t(s)),delete o[e]),this},handleByMap(e,t){return this.handle(e,n=>{t[n.name]=n.ref},n=>{delete t[n.name]})},handleByList(e,t,n=-1){return this.handle(e,r=>{t.includes(r.ref)||(t.push(r.ref),t.sort((i,o)=>n7(o,n)-n7(i,n)))},r=>{const i=t.indexOf(r.ref);i!==-1&&t.splice(i,1)})}};class T3{constructor(t){typeof t=="number"?this.rawBinaryData=new ArrayBuffer(t):t instanceof Uint8Array?this.rawBinaryData=t.buffer:this.rawBinaryData=t,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}get int8View(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View}get uint8View(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View}get int16View(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View}get uint16View(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View}get int32View(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View}view(t){return this[`${t}View`]}destroy(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null}static sizeOf(t){switch(t){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(`${t} isn't a valid view type`)}}}const C4e=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(` +`);function T4e(e){let t="";for(let n=0;n0&&(t+=` +else `),n=0;--r){const i=k3[r];if(i.test&&i.test(e,n))return new i(e,t)}throw new Error("Unrecognized source type to auto-detect Resource")}class ll{constructor(t){this.items=[],this._name=t,this._aliasCount=0}emit(t,n,r,i,o,s,l,c){if(arguments.length>8)throw new Error("max arguments reached");const{name:d,items:f}=this;this._aliasCount++;for(let h=0,p=f.length;h0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this}remove(t){const n=this.items.indexOf(t);return n!==-1&&(this.ensureNonAliasedItems(),this.items.splice(n,1)),this}contains(t){return this.items.includes(t)}removeAll(){return this.ensureNonAliasedItems(),this.items.length=0,this}destroy(){this.removeAll(),this.items=null,this._name=null}get empty(){return this.items.length===0}get name(){return this._name}}Object.defineProperties(ll.prototype,{dispatch:{value:ll.prototype.emit},run:{value:ll.prototype.emit}});class S1{constructor(t=0,n=0){this._width=t,this._height=n,this.destroyed=!1,this.internal=!1,this.onResize=new ll("setRealSize"),this.onUpdate=new ll("update"),this.onError=new ll("onError")}bind(t){this.onResize.add(t),this.onUpdate.add(t),this.onError.add(t),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(t){this.onResize.remove(t),this.onUpdate.remove(t),this.onError.remove(t)}resize(t,n){(t!==this._width||n!==this._height)&&(this._width=t,this._height=n,this.onResize.emit(t,n))}get valid(){return!!this._width&&!!this._height}update(){this.destroyed||this.onUpdate.emit()}load(){return Promise.resolve(this)}get width(){return this._width}get height(){return this._height}style(t,n,r){return!1}dispose(){}destroy(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)}static test(t,n){return!1}}class pw extends S1{constructor(t,n){const{width:r,height:i}=n||{};if(!r||!i)throw new Error("BufferResource width or height invalid");super(r,i),this.data=t}upload(t,n,r){const i=t.gl;i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===yl.UNPACK);const o=n.realWidth,s=n.realHeight;return r.width===o&&r.height===s?i.texSubImage2D(n.target,0,0,0,o,s,n.format,r.type,this.data):(r.width=o,r.height=s,i.texImage2D(n.target,0,r.internalFormat,o,s,0,n.format,r.type,this.data)),!0}dispose(){this.data=null}static test(t){return t instanceof Float32Array||t instanceof Uint8Array||t instanceof Uint32Array}}const A4e={scaleMode:cu.NEAREST,format:Ge.RGBA,alphaMode:yl.NPM},fm=class extends fw{constructor(e=null,t=null){super(),t=Object.assign({},fm.defaultOptions,t);const{alphaMode:n,mipmap:r,anisotropicLevel:i,scaleMode:o,width:s,height:l,wrapMode:c,format:d,type:f,target:h,resolution:p,resourceOptions:g}=t;e&&!(e instanceof S1)&&(e=Tte(e,g),e.internal=!0),this.resolution=p||tt.RESOLUTION,this.width=Math.round((s||0)*this.resolution)/this.resolution,this.height=Math.round((l||0)*this.resolution)/this.resolution,this._mipmap=r,this.anisotropicLevel=i,this._wrapMode=c,this._scaleMode=o,this.format=d,this.type=f,this.target=h,this.alphaMode=n,this.uid=_p(),this.touched=0,this.isPowerOfTwo=!1,this._refreshPOT(),this._glTextures={},this.dirtyId=0,this.dirtyStyleId=0,this.cacheId=null,this.valid=s>0&&l>0,this.textureCacheIds=[],this.destroyed=!1,this.resource=null,this._batchEnabled=0,this._batchLocation=0,this.parentTextureArray=null,this.setResource(e)}get realWidth(){return Math.round(this.width*this.resolution)}get realHeight(){return Math.round(this.height*this.resolution)}get mipmap(){return this._mipmap}set mipmap(e){this._mipmap!==e&&(this._mipmap=e,this.dirtyStyleId++)}get scaleMode(){return this._scaleMode}set scaleMode(e){this._scaleMode!==e&&(this._scaleMode=e,this.dirtyStyleId++)}get wrapMode(){return this._wrapMode}set wrapMode(e){this._wrapMode!==e&&(this._wrapMode=e,this.dirtyStyleId++)}setStyle(e,t){let n;return e!==void 0&&e!==this.scaleMode&&(this.scaleMode=e,n=!0),t!==void 0&&t!==this.mipmap&&(this.mipmap=t,n=!0),n&&this.dirtyStyleId++,this}setSize(e,t,n){return n=n||this.resolution,this.setRealSize(e*n,t*n,n)}setRealSize(e,t,n){return this.resolution=n||this.resolution,this.width=Math.round(e)/this.resolution,this.height=Math.round(t)/this.resolution,this._refreshPOT(),this.update(),this}_refreshPOT(){this.isPowerOfTwo=Q9(this.realWidth)&&Q9(this.realHeight)}setResolution(e){const t=this.resolution;return t===e?this:(this.resolution=e,this.valid&&(this.width=Math.round(this.width*t)/e,this.height=Math.round(this.height*t)/e,this.emit("update",this)),this._refreshPOT(),this)}setResource(e){if(this.resource===e)return this;if(this.resource)throw new Error("Resource can be set only once");return e.bind(this),this.resource=e,this}update(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))}onError(e){this.emit("error",this,e)}destroy(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete zu[this.cacheId],delete Cl[this.cacheId],this.cacheId=null),this.dispose(),fm.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0}dispose(){this.emit("dispose",this)}castToBaseTexture(){return this}static from(e,t,n=tt.STRICT_TEXTURE_CACHE){const r=typeof e=="string";let i=null;if(r)i=e;else{if(!e._pixiId){const s=(t==null?void 0:t.pixiIdPrefix)||"pixiid";e._pixiId=`${s}_${_p()}`}i=e._pixiId}let o=zu[i];if(r&&n&&!o)throw new Error(`The cacheId "${i}" does not exist in BaseTextureCache.`);return o||(o=new fm(e,t),o.cacheId=i,fm.addToCache(o,i)),o}static fromBuffer(e,t,n,r){e=e||new Float32Array(t*n*4);const i=new pw(e,{width:t,height:n}),o=e instanceof Float32Array?It.FLOAT:It.UNSIGNED_BYTE;return new fm(i,Object.assign({},A4e,{type:o},r))}static addToCache(e,t){t&&(e.textureCacheIds.includes(t)||e.textureCacheIds.push(t),zu[t]&&zu[t]!==e&&console.warn(`BaseTexture added to the cache with an id [${t}] that already had an entry`),zu[t]=e)}static removeFromCache(e){if(typeof e=="string"){const t=zu[e];if(t){const n=t.textureCacheIds.indexOf(e);return n>-1&&t.textureCacheIds.splice(n,1),delete zu[e],t}}else if(e!=null&&e.textureCacheIds){for(let t=0;t1){for(let h=0;h(e[e.POLY=0]="POLY",e[e.RECT=1]="RECT",e[e.CIRC=2]="CIRC",e[e.ELIP=3]="ELIP",e[e.RREC=4]="RREC",e))(zi||{});class Ot{constructor(t=0,n=0){this.x=0,this.y=0,this.x=t,this.y=n}clone(){return new Ot(this.x,this.y)}copyFrom(t){return this.set(t.x,t.y),this}copyTo(t){return t.set(this.x,this.y),t}equals(t){return t.x===this.x&&t.y===this.y}set(t=0,n=t){return this.x=t,this.y=n,this}toString(){return`[@pixi/math:Point x=${this.x} y=${this.y}]`}}const O_=[new Ot,new Ot,new Ot,new Ot];class Kt{constructor(t=0,n=0,r=0,i=0){this.x=Number(t),this.y=Number(n),this.width=Number(r),this.height=Number(i),this.type=zi.RECT}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}static get EMPTY(){return new Kt(0,0,0,0)}clone(){return new Kt(this.x,this.y,this.width,this.height)}copyFrom(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this}copyTo(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t}contains(t,n){return this.width<=0||this.height<=0?!1:t>=this.x&&t=this.y&&nt.right?t.right:this.right)<=O)return!1;const N=this.yt.bottom?t.bottom:this.bottom)>N}const r=this.left,i=this.right,o=this.top,s=this.bottom;if(i<=r||s<=o)return!1;const l=O_[0].set(t.left,t.top),c=O_[1].set(t.left,t.bottom),d=O_[2].set(t.right,t.top),f=O_[3].set(t.right,t.bottom);if(d.x<=l.x||c.y<=l.y)return!1;const h=Math.sign(n.a*n.d-n.b*n.c);if(h===0||(n.apply(l,l),n.apply(c,c),n.apply(d,d),n.apply(f,f),Math.max(l.x,c.x,d.x,f.x)<=r||Math.min(l.x,c.x,d.x,f.x)>=i||Math.max(l.y,c.y,d.y,f.y)<=o||Math.min(l.y,c.y,d.y,f.y)>=s))return!1;const p=h*(c.y-l.y),g=h*(l.x-c.x),v=p*r+g*o,y=p*i+g*o,S=p*r+g*s,_=p*i+g*s;if(Math.max(v,y,S,_)<=p*l.x+g*l.y||Math.min(v,y,S,_)>=p*f.x+g*f.y)return!1;const b=h*(l.y-d.y),x=h*(d.x-l.x),E=b*r+x*o,A=b*i+x*o,R=b*r+x*s,k=b*i+x*s;return!(Math.max(E,A,R,k)<=b*l.x+x*l.y||Math.min(E,A,R,k)>=b*f.x+x*f.y)}pad(t=0,n=t){return this.x-=t,this.y-=n,this.width+=t*2,this.height+=n*2,this}fit(t){const n=Math.max(this.x,t.x),r=Math.min(this.x+this.width,t.x+t.width),i=Math.max(this.y,t.y),o=Math.min(this.y+this.height,t.y+t.height);return this.x=n,this.width=Math.max(r-n,0),this.y=i,this.height=Math.max(o-i,0),this}ceil(t=1,n=.001){const r=Math.ceil((this.x+this.width-n)*t)/t,i=Math.ceil((this.y+this.height-n)*t)/t;return this.x=Math.floor((this.x+n)*t)/t,this.y=Math.floor((this.y+n)*t)/t,this.width=r-this.x,this.height=i-this.y,this}enlarge(t){const n=Math.min(this.x,t.x),r=Math.max(this.x+this.width,t.x+t.width),i=Math.min(this.y,t.y),o=Math.max(this.y+this.height,t.y+t.height);return this.x=n,this.width=r-n,this.y=i,this.height=o-i,this}toString(){return`[@pixi/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}class wj{constructor(t=0,n=0,r=0){this.x=t,this.y=n,this.radius=r,this.type=zi.CIRC}clone(){return new wj(this.x,this.y,this.radius)}contains(t,n){if(this.radius<=0)return!1;const r=this.radius*this.radius;let i=this.x-t,o=this.y-n;return i*=i,o*=o,i+o<=r}getBounds(){return new Kt(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)}toString(){return`[@pixi/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`}}class _j{constructor(t=0,n=0,r=0,i=0){this.x=t,this.y=n,this.width=r,this.height=i,this.type=zi.ELIP}clone(){return new _j(this.x,this.y,this.width,this.height)}contains(t,n){if(this.width<=0||this.height<=0)return!1;let r=(t-this.x)/this.width,i=(n-this.y)/this.height;return r*=r,i*=i,r+i<=1}getBounds(){return new Kt(this.x-this.width,this.y-this.height,this.width,this.height)}toString(){return`[@pixi/math:Ellipse x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}class ig{constructor(...t){let n=Array.isArray(t[0])?t[0]:t;if(typeof n[0]!="number"){const r=[];for(let i=0,o=n.length;in!=f>n&&t<(d-l)*((n-c)/(f-c))+l&&(r=!r)}return r}toString(){return`[@pixi/math:PolygoncloseStroke=${this.closeStroke}points=${this.points.reduce((t,n)=>`${t}, ${n}`,"")}]`}}class Sj{constructor(t=0,n=0,r=0,i=0,o=20){this.x=t,this.y=n,this.width=r,this.height=i,this.radius=o,this.type=zi.RREC}clone(){return new Sj(this.x,this.y,this.width,this.height,this.radius)}contains(t,n){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&n>=this.y&&n<=this.y+this.height){const r=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(n>=this.y+r&&n<=this.y+this.height-r||t>=this.x+r&&t<=this.x+this.width-r)return!0;let i=t-(this.x+r),o=n-(this.y+r);const s=r*r;if(i*i+o*o<=s||(i=t-(this.x+this.width-r),i*i+o*o<=s)||(o=n-(this.y+this.height-r),i*i+o*o<=s)||(i=t-(this.x+r),i*i+o*o<=s))return!0}return!1}toString(){return`[@pixi/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}}class pr{constructor(t=1,n=0,r=0,i=1,o=0,s=0){this.array=null,this.a=t,this.b=n,this.c=r,this.d=i,this.tx=o,this.ty=s}fromArray(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]}set(t,n,r,i,o,s){return this.a=t,this.b=n,this.c=r,this.d=i,this.tx=o,this.ty=s,this}toArray(t,n){this.array||(this.array=new Float32Array(9));const r=n||this.array;return t?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty,r[8]=1):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0,r[8]=1),r}apply(t,n){n=n||new Ot;const r=t.x,i=t.y;return n.x=this.a*r+this.c*i+this.tx,n.y=this.b*r+this.d*i+this.ty,n}applyInverse(t,n){n=n||new Ot;const r=1/(this.a*this.d+this.c*-this.b),i=t.x,o=t.y;return n.x=this.d*r*i+-this.c*r*o+(this.ty*this.c-this.tx*this.d)*r,n.y=this.a*r*o+-this.b*r*i+(-this.ty*this.a+this.tx*this.b)*r,n}translate(t,n){return this.tx+=t,this.ty+=n,this}scale(t,n){return this.a*=t,this.d*=n,this.c*=t,this.b*=n,this.tx*=t,this.ty*=n,this}rotate(t){const n=Math.cos(t),r=Math.sin(t),i=this.a,o=this.c,s=this.tx;return this.a=i*n-this.b*r,this.b=i*r+this.b*n,this.c=o*n-this.d*r,this.d=o*r+this.d*n,this.tx=s*n-this.ty*r,this.ty=s*r+this.ty*n,this}append(t){const n=this.a,r=this.b,i=this.c,o=this.d;return this.a=t.a*n+t.b*i,this.b=t.a*r+t.b*o,this.c=t.c*n+t.d*i,this.d=t.c*r+t.d*o,this.tx=t.tx*n+t.ty*i+this.tx,this.ty=t.tx*r+t.ty*o+this.ty,this}setTransform(t,n,r,i,o,s,l,c,d){return this.a=Math.cos(l+d)*o,this.b=Math.sin(l+d)*o,this.c=-Math.sin(l-c)*s,this.d=Math.cos(l-c)*s,this.tx=t-(r*this.a+i*this.c),this.ty=n-(r*this.b+i*this.d),this}prepend(t){const n=this.tx;if(t.a!==1||t.b!==0||t.c!==0||t.d!==1){const r=this.a,i=this.c;this.a=r*t.a+this.b*t.c,this.b=r*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}return this.tx=n*t.a+this.ty*t.c+t.tx,this.ty=n*t.b+this.ty*t.d+t.ty,this}decompose(t){const n=this.a,r=this.b,i=this.c,o=this.d,s=t.pivot,l=-Math.atan2(-i,o),c=Math.atan2(r,n),d=Math.abs(l+c);return d<1e-5||Math.abs(gC-d)<1e-5?(t.rotation=c,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=l,t.skew.y=c),t.scale.x=Math.sqrt(n*n+r*r),t.scale.y=Math.sqrt(i*i+o*o),t.position.x=this.tx+(s.x*n+s.y*i),t.position.y=this.ty+(s.x*r+s.y*o),t}invert(){const t=this.a,n=this.b,r=this.c,i=this.d,o=this.tx,s=t*i-n*r;return this.a=i/s,this.b=-n/s,this.c=-r/s,this.d=t/s,this.tx=(r*this.ty-i*o)/s,this.ty=-(t*this.ty-n*o)/s,this}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){const t=new pr;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyTo(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyFrom(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this}toString(){return`[@pixi/math:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`}static get IDENTITY(){return new pr}static get TEMP_MATRIX(){return new pr}}const Oh=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],Mh=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],Dh=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],Lh=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],R3=[],Rte=[],M_=Math.sign;function N4e(){for(let e=0;e<16;e++){const t=[];R3.push(t);for(let n=0;n<16;n++){const r=M_(Oh[e]*Oh[n]+Dh[e]*Mh[n]),i=M_(Mh[e]*Oh[n]+Lh[e]*Mh[n]),o=M_(Oh[e]*Dh[n]+Dh[e]*Lh[n]),s=M_(Mh[e]*Dh[n]+Lh[e]*Lh[n]);for(let l=0;l<16;l++)if(Oh[l]===r&&Mh[l]===i&&Dh[l]===o&&Lh[l]===s){t.push(l);break}}}for(let e=0;e<16;e++){const t=new pr;t.set(Oh[e],Mh[e],Dh[e],Lh[e],0,0),Rte.push(t)}}N4e();const _r={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:e=>Oh[e],uY:e=>Mh[e],vX:e=>Dh[e],vY:e=>Lh[e],inv:e=>e&8?e&15:-e&7,add:(e,t)=>R3[e][t],sub:(e,t)=>R3[e][_r.inv(t)],rotate180:e=>e^4,isVertical:e=>(e&3)===2,byDirection:(e,t)=>Math.abs(e)*2<=Math.abs(t)?t>=0?_r.S:_r.N:Math.abs(t)*2<=Math.abs(e)?e>0?_r.E:_r.W:t>0?e>0?_r.SE:_r.SW:e>0?_r.NE:_r.NW,matrixAppendRotationInv:(e,t,n=0,r=0)=>{const i=Rte[_r.inv(t)];i.tx=n,i.ty=r,e.append(i)}};class fd{constructor(t,n,r=0,i=0){this._x=r,this._y=i,this.cb=t,this.scope=n}clone(t=this.cb,n=this.scope){return new fd(t,n,this._x,this._y)}set(t=0,n=t){return(this._x!==t||this._y!==n)&&(this._x=t,this._y=n,this.cb.call(this.scope)),this}copyFrom(t){return(this._x!==t.x||this._y!==t.y)&&(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this}copyTo(t){return t.set(this._x,this._y),t}equals(t){return t.x===this._x&&t.y===this._y}toString(){return`[@pixi/math:ObservablePoint x=0 y=0 scope=${this.scope}]`}get x(){return this._x}set x(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))}get y(){return this._y}set y(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))}}const Ite=class{constructor(){this.worldTransform=new pr,this.localTransform=new pr,this.position=new fd(this.onChange,this,0,0),this.scale=new fd(this.onChange,this,1,1),this.pivot=new fd(this.onChange,this,0,0),this.skew=new fd(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}onChange(){this._localID++}updateSkew(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++}toString(){return`[@pixi/math:Transform position=(${this.position.x}, ${this.position.y}) rotation=${this.rotation} scale=(${this.scale.x}, ${this.scale.y}) skew=(${this.skew.x}, ${this.skew.y}) ]`}updateLocalTransform(){const e=this.localTransform;this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1)}updateTransform(e){const t=this.localTransform;if(this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==e._worldID){const n=e.worldTransform,r=this.worldTransform;r.a=t.a*n.a+t.b*n.c,r.b=t.a*n.b+t.b*n.d,r.c=t.c*n.a+t.d*n.c,r.d=t.c*n.b+t.d*n.d,r.tx=t.tx*n.a+t.ty*n.c+n.tx,r.ty=t.tx*n.b+t.ty*n.d+n.ty,this._parentID=e._worldID,this._worldID++}}setFromMatrix(e){e.decompose(this),this._localID++}get rotation(){return this._rotation}set rotation(e){this._rotation!==e&&(this._rotation=e,this.updateSkew())}};let Ej=Ite;Ej.IDENTITY=new Ite;var B4e=`varying vec2 vTextureCoord; uniform sampler2D uSampler; void main(void){ gl_FragColor *= texture2D(uSampler, vTextureCoord); -}`,L4e=`attribute vec2 aVertexPosition; +}`,$4e=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -585,7 +585,7 @@ void main(void){ gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; } -`;function e7(e,t,n){const r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}function rB(e){const t=new Array(e);for(let n=0;ne.type==="float"&&e.size===1&&!e.isArray,code:e=>` +`;function i7(e,t,n){const r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}function oB(e){const t=new Array(e);for(let n=0;ne.type==="float"&&e.size===1&&!e.isArray,code:e=>` if(uv["${e}"] !== ud["${e}"].value) { ud["${e}"].value = uv["${e}"] @@ -705,7 +705,7 @@ void main(void){ cv[3] = v[3]; gl.uniform4f(ud["${e}"].location, v[0], v[1], v[2], v[3]) - }`}],N4e={float:` + }`}],F4e={float:` if (cv !== v) { cu.value = v; @@ -841,7 +841,7 @@ void main(void){ cu.value = v; gl.uniform1i(location, v); - }`},B4e={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function $4e(e,t){var r;const n=[` + }`},z4e={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function j4e(e,t){var r;const n=[` var v = null; var cv = null; var cu = null; @@ -851,18 +851,18 @@ void main(void){ renderer.shader.syncUniformBufferGroup(uv.${i}, '${i}'); `):n.push(` renderer.shader.syncUniformGroup(uv.${i}, syncData); - `));continue}const s=e.uniforms[i];let l=!1;for(let c=0;c=Bp.WEBGL2&&(t=e.getContext("webgl2",{})),t||(t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),Qp=t}return Qp}let M_;function z4e(){if(!M_){M_=ra.MEDIUM;const e=F4e();e&&e.getShaderPrecisionFormat&&(M_=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision?ra.HIGH:ra.MEDIUM)}return M_}function t7(e,t){const n=e.getShaderSource(t).split(` +`))}const Ote={};let Zp=Ote;function U4e(){if(Zp===Ote||Zp!=null&&Zp.isContextLost()){const e=tt.ADAPTER.createCanvas();let t;tt.PREFER_ENV>=Fp.WEBGL2&&(t=e.getContext("webgl2",{})),t||(t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),Zp=t}return Zp}let D_;function H4e(){if(!D_){D_=ia.MEDIUM;const e=U4e();e&&e.getShaderPrecisionFormat&&(D_=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision?ia.HIGH:ia.MEDIUM)}return D_}function o7(e,t){const n=e.getShaderSource(t).split(` `).map((d,f)=>`${f}: ${d}`),r=e.getShaderInfoLog(t),i=r.split(` `),o={},s=i.map(d=>parseFloat(d.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))).filter(d=>d&&!o[d]?(o[d]=!0,!0):!1),l=[""];s.forEach(d=>{n[d-1]=`%c${n[d-1]}%c`,l.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});const c=n.join(` -`);l[0]=c,console.error(r),console.groupCollapsed("click to view full shader code"),console.warn(...l),console.groupEnd()}function j4e(e,t,n,r){e.getProgramParameter(t,e.LINK_STATUS)||(e.getShaderParameter(n,e.COMPILE_STATUS)||t7(e,n),e.getShaderParameter(r,e.COMPILE_STATUS)||t7(e,r),console.error("PixiJS Error: Could not initialize shader."),e.getProgramInfoLog(t)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",e.getProgramInfoLog(t)))}const U4e={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function Ate(e){return U4e[e]}let D_=null;const n7={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function Ite(e,t){if(!D_){const n=Object.keys(n7);D_={};for(let r=0;r0&&(n+=` else `),rthis.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)}buildTexturesAndDrawCalls(){const{_bufferedTextures:e,maxTextures:t}=this,n=Fa._textureArrayPool,r=this.renderer.batch,i=this._tempBoundTextures,o=this.renderer.textureGC.count;let s=++Vt._globalBatch,l=0,c=n[0],d=0;r.copyBoundTextures(i,t);for(let f=0;f=t&&(r.boundArray(c,i,s,t),this.buildDrawCalls(c,d,f),d=f,c=n[++l],++s),h._batchEnabled=s,h.touched=o,c.elements[c.count++]=h)}c.count>0&&(r.boundArray(c,i,s,t),this.buildDrawCalls(c,d,this._bufferSize),++l,++s);for(let f=0;f0);for(let v=0;vthis.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)}buildTexturesAndDrawCalls(){const{_bufferedTextures:e,maxTextures:t}=this,n=za._textureArrayPool,r=this.renderer.batch,i=this._tempBoundTextures,o=this.renderer.textureGC.count;let s=++Vt._globalBatch,l=0,c=n[0],d=0;r.copyBoundTextures(i,t);for(let f=0;f=t&&(r.boundArray(c,i,s,t),this.buildDrawCalls(c,d,f),d=f,c=n[++l],++s),h._batchEnabled=s,h.touched=o,c.elements[c.count++]=h)}c.count>0&&(r.boundArray(c,i,s,t),this.buildDrawCalls(c,d,this._bufferSize),++l,++s);for(let f=0;f0);for(let v=0;v=0;--i)t[i]=r[i]||null,t[i]&&(t[i]._batchLocation=i)}boundArray(t,n,r,i){const{elements:o,ids:s,count:l}=t;let c=0;for(let d=0;d=0&&h=Bp.WEBGL2&&(r=t.getContext("webgl2",n)),r)this.webGLVersion=2;else if(this.webGLVersion=1,r=t.getContext("webgl",n)||t.getContext("experimental-webgl",n),!r)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=r,this.getExtensions(),this.gl}getExtensions(){const{gl:t}=this,n={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,n,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,n,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})}handleContextLost(t){t.preventDefault(),setTimeout(()=>{this.gl.isContextLost()&&this.extensions.loseContext&&this.extensions.loseContext.restoreContext()},0)}handleContextRestored(){this.renderer.runners.contextChange.emit(this.gl)}destroy(){const t=this.renderer.view;this.renderer=null,t.removeEventListener!==void 0&&(t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored)),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()}postrender(){this.renderer.objectRenderer.renderingToScreen&&this.gl.flush()}validateContext(t){const n=t.getContextAttributes(),r="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;r&&(this.webGLVersion=2),n&&!n.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");const i=r||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=i,i||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")}}Bk.defaultOptions={context:null,antialias:!1,premultipliedAlpha:!0,preserveDrawingBuffer:!1,powerPreference:"default"};Bk.extension={type:rt.RendererSystem,name:"context"};bt.add(Bk);class Z4e extends hw{upload(t,n,r){const i=t.gl;i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===gl.UNPACK);const o=n.realWidth,s=n.realHeight;return r.width===o&&r.height===s?i.texSubImage2D(n.target,0,0,0,o,s,n.format,r.type,this.data):(r.width=o,r.height=s,i.texImage2D(n.target,0,r.internalFormat,o,s,0,n.format,r.type,this.data)),!0}}class I3{constructor(t,n){this.width=Math.round(t||100),this.height=Math.round(n||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new sl("disposeFramebuffer"),this.multisample=Gr.NONE}get colorTexture(){return this.colorTextures[0]}addColorTexture(t=0,n){return this.colorTextures[t]=n||new Vt(null,{scaleMode:lu.NEAREST,resolution:1,mipmap:Xl.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this}addDepthTexture(t){return this.depthTexture=t||new Vt(new Z4e(null,{width:this.width,height:this.height}),{scaleMode:lu.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Xl.OFF,format:Ge.DEPTH_COMPONENT,type:Rt.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this}enableDepth(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this}enableStencil(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this}resize(t,n){if(t=Math.round(t),n=Math.round(n),!(t===this.width&&n===this.height)){this.width=t,this.height=n,this.dirtyId++,this.dirtySize++;for(let r=0;r{const i=this.source;this.url=i.src;const o=()=>{this.destroyed||(i.onload=null,i.onerror=null,this.resize(i.width,i.height),this._load=null,this.createBitmap?n(this.process()):n(this))};i.complete&&i.src?o():(i.onload=o,i.onerror=s=>{r(s),this.onError.emit(s)})}),this._load)}process(){const t=this.source;if(this._process!==null)return this._process;if(this.bitmap!==null||!globalThis.createImageBitmap)return Promise.resolve(this);const n=globalThis.createImageBitmap,r=!t.crossOrigin||t.crossOrigin==="anonymous";return this._process=fetch(t.src,{mode:r?"cors":"no-cors"}).then(i=>i.blob()).then(i=>n(i,0,0,t.width,t.height,{premultiplyAlpha:this.alphaMode===null||this.alphaMode===gl.UNPACK?"premultiply":"none"})).then(i=>this.destroyed?Promise.reject():(this.bitmap=i,this.update(),this._process=null,Promise.resolve(this))),this._process}upload(t,n,r){if(typeof this.alphaMode=="number"&&(n.alphaMode=this.alphaMode),!this.createBitmap)return super.upload(t,n,r);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(super.upload(t,n,r,this.bitmap),!this.preserveBitmap){let i=!0;const o=n._glTextures;for(const s in o){const l=o[s];if(l!==r&&l.dirtyId!==n.dirtyId){i=!1;break}}i&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0}dispose(){this.source.onload=null,this.source.onerror=null,super.dispose(),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null}static test(t){return typeof HTMLImageElement<"u"&&(typeof t=="string"||t instanceof HTMLImageElement)}}class Mte{constructor(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsFloat32=new Float32Array(8)}set(t,n,r){const i=n.width,o=n.height;if(r){const s=t.width/2/i,l=t.height/2/o,c=t.x/i+s,d=t.y/o+l;r=_r.add(r,_r.NW),this.x0=c+s*_r.uX(r),this.y0=d+l*_r.uY(r),r=_r.add(r,2),this.x1=c+s*_r.uX(r),this.y1=d+l*_r.uY(r),r=_r.add(r,2),this.x2=c+s*_r.uX(r),this.y2=d+l*_r.uY(r),r=_r.add(r,2),this.x3=c+s*_r.uX(r),this.y3=d+l*_r.uY(r)}else this.x0=t.x/i,this.y0=t.y/o,this.x1=(t.x+t.width)/i,this.y1=t.y/o,this.x2=(t.x+t.width)/i,this.y2=(t.y+t.height)/o,this.x3=t.x/i,this.y3=(t.y+t.height)/o;this.uvsFloat32[0]=this.x0,this.uvsFloat32[1]=this.y0,this.uvsFloat32[2]=this.x1,this.uvsFloat32[3]=this.y1,this.uvsFloat32[4]=this.x2,this.uvsFloat32[5]=this.y2,this.uvsFloat32[6]=this.x3,this.uvsFloat32[7]=this.y3}toString(){return`[@pixi/core:TextureUvs x0=${this.x0} y0=${this.y0} x1=${this.x1} y1=${this.y1} x2=${this.x2} y2=${this.y2} x3=${this.x3} y3=${this.y3}]`}}const o7=new Mte;function N_(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}class ht extends dw{constructor(t,n,r,i,o,s,l){if(super(),this.noFrame=!1,n||(this.noFrame=!0,n=new Kt(0,0,1,1)),t instanceof ht&&(t=t.baseTexture),this.baseTexture=t,this._frame=n,this.trim=i,this.valid=!1,this._uvs=o7,this.uvMatrix=null,this.orig=r||n,this._rotate=Number(o||0),o===!0)this._rotate=2;else if(this._rotate%2!==0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");this.defaultAnchor=s?new Ot(s.x,s.y):new Ot(0,0),this.defaultBorders=l,this._updateID=0,this.textureCacheIds=[],t.valid?this.noFrame?t.valid&&this.onBaseTextureUpdated(t):this.frame=n:t.once("loaded",this.onBaseTextureUpdated,this),this.noFrame&&t.on("update",this.onBaseTextureUpdated,this)}update(){this.baseTexture.resource&&this.baseTexture.resource.update()}onBaseTextureUpdated(t){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=t.width,this._frame.height=t.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)}destroy(t){if(this.baseTexture){if(t){const{resource:n}=this.baseTexture;n!=null&&n.url&&Sl[n.url]&&ht.removeFromCache(n.url),this.baseTexture.destroy()}this.baseTexture.off("loaded",this.onBaseTextureUpdated,this),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture=null}this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,ht.removeFromCache(this),this.textureCacheIds=null}clone(){var i;const t=this._frame.clone(),n=this._frame===this.orig?t:this.orig.clone(),r=new ht(this.baseTexture,!this.noFrame&&t,n,(i=this.trim)==null?void 0:i.clone(),this.rotate,this.defaultAnchor,this.defaultBorders);return this.noFrame&&(r._frame=t),r}updateUvs(){this._uvs===o7&&(this._uvs=new Mte),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++}static from(t,n={},r=tt.STRICT_TEXTURE_CACHE){const i=typeof t=="string";let o=null;if(i)o=t;else if(t instanceof Vt){if(!t.cacheId){const l=(n==null?void 0:n.pixiIdPrefix)||"pixiid";t.cacheId=`${l}-${xp()}`,Vt.addToCache(t,t.cacheId)}o=t.cacheId}else{if(!t._pixiId){const l=(n==null?void 0:n.pixiIdPrefix)||"pixiid";t._pixiId=`${l}_${xp()}`}o=t._pixiId}let s=Sl[o];if(i&&r&&!s)throw new Error(`The cacheId "${o}" does not exist in TextureCache.`);return!s&&!(t instanceof Vt)?(n.resolution||(n.resolution=Dd(t)),s=new ht(new Vt(t,n)),s.baseTexture.cacheId=o,Vt.addToCache(s.baseTexture,o),ht.addToCache(s,o)):!s&&t instanceof Vt&&(s=new ht(t),ht.addToCache(s,o)),s}static fromURL(t,n){const r=Object.assign({autoLoad:!1},n==null?void 0:n.resourceOptions),i=ht.from(t,Object.assign({resourceOptions:r},n),!1),o=i.baseTexture.resource;return i.baseTexture.valid?Promise.resolve(i):o.load().then(()=>Promise.resolve(i))}static fromBuffer(t,n,r,i){return new ht(Vt.fromBuffer(t,n,r,i))}static fromLoader(t,n,r,i){const o=new Vt(t,Object.assign({scaleMode:Vt.defaultOptions.scaleMode,resolution:Dd(n)},i)),{resource:s}=o;s instanceof Ote&&(s.url=n);const l=new ht(o);return r||(r=n),Vt.addToCache(l.baseTexture,r),ht.addToCache(l,r),r!==n&&(Vt.addToCache(l.baseTexture,n),ht.addToCache(l,n)),l.baseTexture.valid?Promise.resolve(l):new Promise(c=>{l.baseTexture.once("loaded",()=>c(l))})}static addToCache(t,n){n&&(t.textureCacheIds.includes(n)||t.textureCacheIds.push(n),Sl[n]&&Sl[n]!==t&&console.warn(`Texture added to the cache with an id [${n}] that already had an entry`),Sl[n]=t)}static removeFromCache(t){if(typeof t=="string"){const n=Sl[t];if(n){const r=n.textureCacheIds.indexOf(t);return r>-1&&n.textureCacheIds.splice(r,1),delete Sl[t],n}}else if(t!=null&&t.textureCacheIds){for(let n=0;nthis.baseTexture.width,l=r+o>this.baseTexture.height;if(s||l){const c=s&&l?"and":"or",d=`X: ${n} + ${i} = ${n+i} > ${this.baseTexture.width}`,f=`Y: ${r} + ${o} = ${r+o} > ${this.baseTexture.height}`;throw new Error(`Texture Error: frame does not fit inside the base Texture dimensions: ${d} ${c} ${f}`)}this.valid=i&&o&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=t),this.valid&&this.updateUvs()}get rotate(){return this._rotate}set rotate(t){this._rotate=t,this.valid&&this.updateUvs()}get width(){return this.orig.width}get height(){return this.orig.height}castToBaseTexture(){return this.baseTexture}static get EMPTY(){return ht._EMPTY||(ht._EMPTY=new ht(new Vt),N_(ht._EMPTY),N_(ht._EMPTY.baseTexture)),ht._EMPTY}static get WHITE(){if(!ht._WHITE){const t=tt.ADAPTER.createCanvas(16,16),n=t.getContext("2d");t.width=16,t.height=16,n.fillStyle="white",n.fillRect(0,0,16,16),ht._WHITE=new ht(Vt.from(t)),N_(ht._WHITE),N_(ht._WHITE.baseTexture)}return ht._WHITE}}class $p extends ht{constructor(t,n){super(t,n),this.valid=!0,this.filterFrame=null,this.filterPoolKey=null,this.updateUvs()}get framebuffer(){return this.baseTexture.framebuffer}get multisample(){return this.framebuffer.multisample}set multisample(t){this.framebuffer.multisample=t}resize(t,n,r=!0){const i=this.baseTexture.resolution,o=Math.round(t*i)/i,s=Math.round(n*i)/i;this.valid=o>0&&s>0,this._frame.width=this.orig.width=o,this._frame.height=this.orig.height=s,r&&this.baseTexture.resize(o,s),this.updateUvs()}setResolution(t){const{baseTexture:n}=this;n.resolution!==t&&(n.setResolution(t),this.resize(n.width,n.height,!1))}static create(t){return new $p(new Pte(t))}}class Dte{constructor(t){this.texturePool={},this.textureOptions=t||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}createTexture(t,n,r=Gr.NONE){const i=new Pte(Object.assign({width:t,height:n,resolution:1,multisample:r},this.textureOptions));return new $p(i)}getOptimalTexture(t,n,r=1,i=Gr.NONE){let o;t=Math.ceil(t*r-1e-6),n=Math.ceil(n*r-1e-6),!this.enableFullScreen||t!==this._pixelsWidth||n!==this._pixelsHeight?(t=fC(t),n=fC(n),o=((t&65535)<<16|n&65535)>>>0,i>1&&(o+=i*4294967296)):o=i>1?-i:-1,this.texturePool[o]||(this.texturePool[o]=[]);let s=this.texturePool[o].pop();return s||(s=this.createTexture(t,n,i)),s.filterPoolKey=o,s.setResolution(r),s}getFilterTexture(t,n,r){const i=this.getOptimalTexture(t.width,t.height,n||t.resolution,r||Gr.NONE);return i.filterFrame=t.filterFrame,i}returnTexture(t){const n=t.filterPoolKey;t.filterFrame=null,this.texturePool[n].push(t)}returnFilterTexture(t){this.returnTexture(t)}clear(t){if(t=t!==!1,t)for(const n in this.texturePool){const r=this.texturePool[n];if(r)for(let i=0;i0&&t.height>0;for(const n in this.texturePool){if(!(Number(n)<0))continue;const r=this.texturePool[n];if(r)for(let i=0;i1&&(f=this.getOptimalFilterTexture(d.width,d.height,n.resolution),f.filterFrame=d.filterFrame),r[h].apply(this,d,f,Al.CLEAR,n);const p=d;d=f,f=p}r[h].apply(this,d,c.renderTexture,Al.BLEND,n),h>1&&n.multisample>1&&this.returnFilterTexture(n.renderTexture),this.returnFilterTexture(d),this.returnFilterTexture(f)}n.clear(),this.statePool.push(n)}bindAndClear(t,n=Al.CLEAR){const{renderTexture:r,state:i}=this.renderer;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t!=null&&t.filterFrame){const s=this.tempRect;s.x=0,s.y=0,s.width=t.filterFrame.width,s.height=t.filterFrame.height,r.bind(t,t.filterFrame,s)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?r.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);const o=i.stateId&1||this.forceClear;(n===Al.CLEAR||n===Al.BLIT&&o)&&this.renderer.framebuffer.clear(0,0,0,0)}applyFilter(t,n,r,i){const o=this.renderer;o.state.set(t.state),this.bindAndClear(r,i),t.uniforms.uSampler=n,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(n._frame,n.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(Ml.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(Ml.TRIANGLE_STRIP))}calculateSpriteMatrix(t,n){const{sourceFrame:r,destinationFrame:i}=this.activeState,{orig:o}=n._texture,s=t.set(i.width,0,0,i.height,r.x,r.y),l=n.worldTransform.copyTo(pr.TEMP_MATRIX);return l.invert(),s.prepend(l),s.scale(1/o.width,1/o.height),s.translate(n.anchor.x,n.anchor.y),s}destroy(){this.renderer=null,this.texturePool.clear(!1)}getOptimalFilterTexture(t,n,r=1,i=Gr.NONE){return this.texturePool.getOptimalTexture(t,n,r,i)}getFilterTexture(t,n,r){if(typeof t=="number"){const o=t;t=n,n=o}t=t||this.activeState.renderTexture;const i=this.texturePool.getOptimalTexture(t.width,t.height,n||t.resolution,r||Gr.NONE);return i.filterFrame=t.filterFrame,i}returnFilterTexture(t){this.texturePool.returnTexture(t)}emptyPool(){this.texturePool.clear(!0)}resize(){this.texturePool.setScreenSize(this.renderer.view)}transformAABB(t,n){const r=B_[0],i=B_[1],o=B_[2],s=B_[3];r.set(n.left,n.top),i.set(n.left,n.bottom),o.set(n.right,n.top),s.set(n.right,n.bottom),t.apply(r,r),t.apply(i,i),t.apply(o,o),t.apply(s,s);const l=Math.min(r.x,i.x,o.x,s.x),c=Math.min(r.y,i.y,o.y,s.y),d=Math.max(r.x,i.x,o.x,s.x),f=Math.max(r.y,i.y,o.y,s.y);n.x=l,n.y=c,n.width=d-l,n.height=f-c}roundFrame(t,n,r,i,o){if(!(t.width<=0||t.height<=0||r.width<=0||r.height<=0)){if(o){const{a:s,b:l,c,d}=o;if((Math.abs(l)>1e-4||Math.abs(c)>1e-4)&&(Math.abs(s)>1e-4||Math.abs(d)>1e-4))return}o=o?iB.copyFrom(o):iB.identity(),o.translate(-r.x,-r.y).scale(i.width/r.width,i.height/r.height).translate(i.x,i.y),this.transformAABB(o,t),t.ceil(n),this.transformAABB(o.invert(),t)}}}Nte.extension={type:rt.RendererSystem,name:"filter"};bt.add(Nte);class nze{constructor(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=Gr.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}}const rze=new Kt;class Bte{constructor(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new I3(10,10),this.msaaSamples=null}contextChange(){this.disposeAll(!0);const t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Kt,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){let n=this.renderer.context.extensions.drawBuffers,r=this.renderer.context.extensions.depthTexture;tt.PREFER_ENV===Bp.WEBGL_LEGACY&&(n=null,r=null),n?t.drawBuffers=i=>n.drawBuffersWEBGL(i):(this.hasMRT=!1,t.drawBuffers=()=>{}),r||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)}bind(t,n,r=0){const{gl:i}=this;if(t){const o=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,i.bindFramebuffer(i.FRAMEBUFFER,o.framebuffer)),o.mipLevel!==r&&(t.dirtyId++,t.dirtyFormat++,o.mipLevel=r),o.dirtyId!==t.dirtyId&&(o.dirtyId=t.dirtyId,o.dirtyFormat!==t.dirtyFormat?(o.dirtyFormat=t.dirtyFormat,o.dirtySize=t.dirtySize,this.updateFramebuffer(t,r)):o.dirtySize!==t.dirtySize&&(o.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(let s=0;s>r,l=n.height>>r,c=s/n.width;this.setViewport(n.x*c,n.y*c,s,l)}else{const s=t.width>>r,l=t.height>>r;this.setViewport(0,0,s,l)}}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),n?this.setViewport(n.x,n.y,n.width,n.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)}setViewport(t,n,r,i){const o=this.viewport;t=Math.round(t),n=Math.round(n),r=Math.round(r),i=Math.round(i),(o.width!==r||o.height!==i||o.x!==t||o.y!==n)&&(o.x=t,o.y=n,o.width=r,o.height=i,this.gl.viewport(t,n,r,i))}get size(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}}clear(t,n,r,i,o=s3.COLOR|s3.DEPTH){const{gl:s}=this;s.clearColor(t,n,r,i),s.clear(o)}initFramebuffer(t){const{gl:n}=this,r=new nze(n.createFramebuffer());return r.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=r,this.managedFramebuffers.push(t),t.disposeRunner.add(this),r}resizeFramebuffer(t){const{gl:n}=this,r=t.glFramebuffers[this.CONTEXT_UID];r.stencil&&(n.bindRenderbuffer(n.RENDERBUFFER,r.stencil),r.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,r.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height));const i=t.colorTextures;let o=i.length;n.drawBuffers||(o=Math.min(o,1));for(let s=0;s1&&this.canMultisampleFramebuffer(t)?i.msaaBuffer=i.msaaBuffer||r.createRenderbuffer():i.msaaBuffer&&(r.deleteRenderbuffer(i.msaaBuffer),i.msaaBuffer=null,i.blitFramebuffer&&(i.blitFramebuffer.dispose(),i.blitFramebuffer=null));const l=[];for(let c=0;c1&&r.drawBuffers(l),t.depthTexture&&this.writeDepthTexture){const d=t.depthTexture;this.renderer.texture.bind(d,0),r.framebufferTexture2D(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.TEXTURE_2D,d._glTextures[this.CONTEXT_UID].texture,n)}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(i.stencil=i.stencil||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,i.stencil),i.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,i.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,i.stencil)):i.stencil&&(r.deleteRenderbuffer(i.stencil),i.stencil=null)}canMultisampleFramebuffer(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture}detectSamples(t){const{msaaSamples:n}=this;let r=Gr.NONE;if(t<=1||n===null)return r;for(let i=0;i=0&&this.managedFramebuffers.splice(o,1),t.disposeRunner.remove(this),n||(i.deleteFramebuffer(r.framebuffer),r.msaaBuffer&&i.deleteRenderbuffer(r.msaaBuffer),r.stencil&&i.deleteRenderbuffer(r.stencil)),r.blitFramebuffer&&this.disposeFramebuffer(r.blitFramebuffer,n)}disposeAll(t){const n=this.managedFramebuffers;this.managedFramebuffers=[];for(let r=0;rr.createVertexArrayOES(),t.bindVertexArray=i=>r.bindVertexArrayOES(i),t.deleteVertexArray=i=>r.deleteVertexArrayOES(i)):(this.hasVao=!1,t.createVertexArray=()=>null,t.bindVertexArray=()=>null,t.deleteVertexArray=()=>null)}if(n.webGLVersion!==2){const r=t.getExtension("ANGLE_instanced_arrays");r?(t.vertexAttribDivisor=(i,o)=>r.vertexAttribDivisorANGLE(i,o),t.drawElementsInstanced=(i,o,s,l,c)=>r.drawElementsInstancedANGLE(i,o,s,l,c),t.drawArraysInstanced=(i,o,s,l)=>r.drawArraysInstancedANGLE(i,o,s,l)):this.hasInstance=!1}this.canUseUInt32ElementIndex=n.webGLVersion===2||!!n.extensions.uint32ElementIndex}bind(t,n){n=n||this.renderer.shader.shader;const{gl:r}=this;let i=t.glVertexArrayObjects[this.CONTEXT_UID],o=!1;i||(this.managedGeometries[t.id]=t,t.disposeRunner.add(this),t.glVertexArrayObjects[this.CONTEXT_UID]=i={},o=!0);const s=i[n.program.id]||this.initGeometryVao(t,n,o);this._activeGeometry=t,this._activeVao!==s&&(this._activeVao=s,this.hasVao?r.bindVertexArray(s):this.activateVao(t,n.program)),this.updateBuffers()}reset(){this.unbind()}updateBuffers(){const t=this._activeGeometry,n=this.renderer.buffer;for(let r=0;r"u"?.5:n,this.isSimple=!1}get texture(){return this._texture}set texture(t){this._texture=t,this._textureID=-1}multiplyUvs(t,n){n===void 0&&(n=t);const r=this.mapCoord;for(let i=0;i=0;--i)t[i]=r[i]||null,t[i]&&(t[i]._batchLocation=i)}boundArray(t,n,r,i){const{elements:o,ids:s,count:l}=t;let c=0;for(let d=0;d=0&&h=Fp.WEBGL2&&(r=t.getContext("webgl2",n)),r)this.webGLVersion=2;else if(this.webGLVersion=1,r=t.getContext("webgl",n)||t.getContext("experimental-webgl",n),!r)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=r,this.getExtensions(),this.gl}getExtensions(){const{gl:t}=this,n={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,n,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,n,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})}handleContextLost(t){t.preventDefault(),setTimeout(()=>{this.gl.isContextLost()&&this.extensions.loseContext&&this.extensions.loseContext.restoreContext()},0)}handleContextRestored(){this.renderer.runners.contextChange.emit(this.gl)}destroy(){const t=this.renderer.view;this.renderer=null,t.removeEventListener!==void 0&&(t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored)),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()}postrender(){this.renderer.objectRenderer.renderingToScreen&&this.gl.flush()}validateContext(t){const n=t.getContextAttributes(),r="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;r&&(this.webGLVersion=2),n&&!n.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");const i=r||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=i,i||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")}}Fk.defaultOptions={context:null,antialias:!1,premultipliedAlpha:!0,preserveDrawingBuffer:!1,powerPreference:"default"};Fk.extension={type:rt.RendererSystem,name:"context"};bt.add(Fk);class nze extends pw{upload(t,n,r){const i=t.gl;i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===yl.UNPACK);const o=n.realWidth,s=n.realHeight;return r.width===o&&r.height===s?i.texSubImage2D(n.target,0,0,0,o,s,n.format,r.type,this.data):(r.width=o,r.height=s,i.texImage2D(n.target,0,r.internalFormat,o,s,0,n.format,r.type,this.data)),!0}}class P3{constructor(t,n){this.width=Math.round(t||100),this.height=Math.round(n||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new ll("disposeFramebuffer"),this.multisample=Gr.NONE}get colorTexture(){return this.colorTextures[0]}addColorTexture(t=0,n){return this.colorTextures[t]=n||new Vt(null,{scaleMode:cu.NEAREST,resolution:1,mipmap:Yl.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this}addDepthTexture(t){return this.depthTexture=t||new Vt(new nze(null,{width:this.width,height:this.height}),{scaleMode:cu.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:Yl.OFF,format:Ge.DEPTH_COMPONENT,type:It.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this}enableDepth(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this}enableStencil(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this}resize(t,n){if(t=Math.round(t),n=Math.round(n),!(t===this.width&&n===this.height)){this.width=t,this.height=n,this.dirtyId++,this.dirtySize++;for(let r=0;r{const i=this.source;this.url=i.src;const o=()=>{this.destroyed||(i.onload=null,i.onerror=null,this.resize(i.width,i.height),this._load=null,this.createBitmap?n(this.process()):n(this))};i.complete&&i.src?o():(i.onload=o,i.onerror=s=>{r(s),this.onError.emit(s)})}),this._load)}process(){const t=this.source;if(this._process!==null)return this._process;if(this.bitmap!==null||!globalThis.createImageBitmap)return Promise.resolve(this);const n=globalThis.createImageBitmap,r=!t.crossOrigin||t.crossOrigin==="anonymous";return this._process=fetch(t.src,{mode:r?"cors":"no-cors"}).then(i=>i.blob()).then(i=>n(i,0,0,t.width,t.height,{premultiplyAlpha:this.alphaMode===null||this.alphaMode===yl.UNPACK?"premultiply":"none"})).then(i=>this.destroyed?Promise.reject():(this.bitmap=i,this.update(),this._process=null,Promise.resolve(this))),this._process}upload(t,n,r){if(typeof this.alphaMode=="number"&&(n.alphaMode=this.alphaMode),!this.createBitmap)return super.upload(t,n,r);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(super.upload(t,n,r,this.bitmap),!this.preserveBitmap){let i=!0;const o=n._glTextures;for(const s in o){const l=o[s];if(l!==r&&l.dirtyId!==n.dirtyId){i=!1;break}}i&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0}dispose(){this.source.onload=null,this.source.onerror=null,super.dispose(),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null}static test(t){return typeof HTMLImageElement<"u"&&(typeof t=="string"||t instanceof HTMLImageElement)}}class $te{constructor(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsFloat32=new Float32Array(8)}set(t,n,r){const i=n.width,o=n.height;if(r){const s=t.width/2/i,l=t.height/2/o,c=t.x/i+s,d=t.y/o+l;r=_r.add(r,_r.NW),this.x0=c+s*_r.uX(r),this.y0=d+l*_r.uY(r),r=_r.add(r,2),this.x1=c+s*_r.uX(r),this.y1=d+l*_r.uY(r),r=_r.add(r,2),this.x2=c+s*_r.uX(r),this.y2=d+l*_r.uY(r),r=_r.add(r,2),this.x3=c+s*_r.uX(r),this.y3=d+l*_r.uY(r)}else this.x0=t.x/i,this.y0=t.y/o,this.x1=(t.x+t.width)/i,this.y1=t.y/o,this.x2=(t.x+t.width)/i,this.y2=(t.y+t.height)/o,this.x3=t.x/i,this.y3=(t.y+t.height)/o;this.uvsFloat32[0]=this.x0,this.uvsFloat32[1]=this.y0,this.uvsFloat32[2]=this.x1,this.uvsFloat32[3]=this.y1,this.uvsFloat32[4]=this.x2,this.uvsFloat32[5]=this.y2,this.uvsFloat32[6]=this.x3,this.uvsFloat32[7]=this.y3}toString(){return`[@pixi/core:TextureUvs x0=${this.x0} y0=${this.y0} x1=${this.x1} y1=${this.y1} x2=${this.x2} y2=${this.y2} x3=${this.x3} y3=${this.y3}]`}}const c7=new $te;function B_(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}class ht extends fw{constructor(t,n,r,i,o,s,l){if(super(),this.noFrame=!1,n||(this.noFrame=!0,n=new Kt(0,0,1,1)),t instanceof ht&&(t=t.baseTexture),this.baseTexture=t,this._frame=n,this.trim=i,this.valid=!1,this._uvs=c7,this.uvMatrix=null,this.orig=r||n,this._rotate=Number(o||0),o===!0)this._rotate=2;else if(this._rotate%2!==0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");this.defaultAnchor=s?new Ot(s.x,s.y):new Ot(0,0),this.defaultBorders=l,this._updateID=0,this.textureCacheIds=[],t.valid?this.noFrame?t.valid&&this.onBaseTextureUpdated(t):this.frame=n:t.once("loaded",this.onBaseTextureUpdated,this),this.noFrame&&t.on("update",this.onBaseTextureUpdated,this)}update(){this.baseTexture.resource&&this.baseTexture.resource.update()}onBaseTextureUpdated(t){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=t.width,this._frame.height=t.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)}destroy(t){if(this.baseTexture){if(t){const{resource:n}=this.baseTexture;n!=null&&n.url&&Cl[n.url]&&ht.removeFromCache(n.url),this.baseTexture.destroy()}this.baseTexture.off("loaded",this.onBaseTextureUpdated,this),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture=null}this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,ht.removeFromCache(this),this.textureCacheIds=null}clone(){var i;const t=this._frame.clone(),n=this._frame===this.orig?t:this.orig.clone(),r=new ht(this.baseTexture,!this.noFrame&&t,n,(i=this.trim)==null?void 0:i.clone(),this.rotate,this.defaultAnchor,this.defaultBorders);return this.noFrame&&(r._frame=t),r}updateUvs(){this._uvs===c7&&(this._uvs=new $te),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++}static from(t,n={},r=tt.STRICT_TEXTURE_CACHE){const i=typeof t=="string";let o=null;if(i)o=t;else if(t instanceof Vt){if(!t.cacheId){const l=(n==null?void 0:n.pixiIdPrefix)||"pixiid";t.cacheId=`${l}-${_p()}`,Vt.addToCache(t,t.cacheId)}o=t.cacheId}else{if(!t._pixiId){const l=(n==null?void 0:n.pixiIdPrefix)||"pixiid";t._pixiId=`${l}_${_p()}`}o=t._pixiId}let s=Cl[o];if(i&&r&&!s)throw new Error(`The cacheId "${o}" does not exist in TextureCache.`);return!s&&!(t instanceof Vt)?(n.resolution||(n.resolution=Nd(t)),s=new ht(new Vt(t,n)),s.baseTexture.cacheId=o,Vt.addToCache(s.baseTexture,o),ht.addToCache(s,o)):!s&&t instanceof Vt&&(s=new ht(t),ht.addToCache(s,o)),s}static fromURL(t,n){const r=Object.assign({autoLoad:!1},n==null?void 0:n.resourceOptions),i=ht.from(t,Object.assign({resourceOptions:r},n),!1),o=i.baseTexture.resource;return i.baseTexture.valid?Promise.resolve(i):o.load().then(()=>Promise.resolve(i))}static fromBuffer(t,n,r,i){return new ht(Vt.fromBuffer(t,n,r,i))}static fromLoader(t,n,r,i){const o=new Vt(t,Object.assign({scaleMode:Vt.defaultOptions.scaleMode,resolution:Nd(n)},i)),{resource:s}=o;s instanceof Bte&&(s.url=n);const l=new ht(o);return r||(r=n),Vt.addToCache(l.baseTexture,r),ht.addToCache(l,r),r!==n&&(Vt.addToCache(l.baseTexture,n),ht.addToCache(l,n)),l.baseTexture.valid?Promise.resolve(l):new Promise(c=>{l.baseTexture.once("loaded",()=>c(l))})}static addToCache(t,n){n&&(t.textureCacheIds.includes(n)||t.textureCacheIds.push(n),Cl[n]&&Cl[n]!==t&&console.warn(`Texture added to the cache with an id [${n}] that already had an entry`),Cl[n]=t)}static removeFromCache(t){if(typeof t=="string"){const n=Cl[t];if(n){const r=n.textureCacheIds.indexOf(t);return r>-1&&n.textureCacheIds.splice(r,1),delete Cl[t],n}}else if(t!=null&&t.textureCacheIds){for(let n=0;nthis.baseTexture.width,l=r+o>this.baseTexture.height;if(s||l){const c=s&&l?"and":"or",d=`X: ${n} + ${i} = ${n+i} > ${this.baseTexture.width}`,f=`Y: ${r} + ${o} = ${r+o} > ${this.baseTexture.height}`;throw new Error(`Texture Error: frame does not fit inside the base Texture dimensions: ${d} ${c} ${f}`)}this.valid=i&&o&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=t),this.valid&&this.updateUvs()}get rotate(){return this._rotate}set rotate(t){this._rotate=t,this.valid&&this.updateUvs()}get width(){return this.orig.width}get height(){return this.orig.height}castToBaseTexture(){return this.baseTexture}static get EMPTY(){return ht._EMPTY||(ht._EMPTY=new ht(new Vt),B_(ht._EMPTY),B_(ht._EMPTY.baseTexture)),ht._EMPTY}static get WHITE(){if(!ht._WHITE){const t=tt.ADAPTER.createCanvas(16,16),n=t.getContext("2d");t.width=16,t.height=16,n.fillStyle="white",n.fillRect(0,0,16,16),ht._WHITE=new ht(Vt.from(t)),B_(ht._WHITE),B_(ht._WHITE.baseTexture)}return ht._WHITE}}class zp extends ht{constructor(t,n){super(t,n),this.valid=!0,this.filterFrame=null,this.filterPoolKey=null,this.updateUvs()}get framebuffer(){return this.baseTexture.framebuffer}get multisample(){return this.framebuffer.multisample}set multisample(t){this.framebuffer.multisample=t}resize(t,n,r=!0){const i=this.baseTexture.resolution,o=Math.round(t*i)/i,s=Math.round(n*i)/i;this.valid=o>0&&s>0,this._frame.width=this.orig.width=o,this._frame.height=this.orig.height=s,r&&this.baseTexture.resize(o,s),this.updateUvs()}setResolution(t){const{baseTexture:n}=this;n.resolution!==t&&(n.setResolution(t),this.resize(n.width,n.height,!1))}static create(t){return new zp(new Nte(t))}}class Fte{constructor(t){this.texturePool={},this.textureOptions=t||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}createTexture(t,n,r=Gr.NONE){const i=new Nte(Object.assign({width:t,height:n,resolution:1,multisample:r},this.textureOptions));return new zp(i)}getOptimalTexture(t,n,r=1,i=Gr.NONE){let o;t=Math.ceil(t*r-1e-6),n=Math.ceil(n*r-1e-6),!this.enableFullScreen||t!==this._pixelsWidth||n!==this._pixelsHeight?(t=pC(t),n=pC(n),o=((t&65535)<<16|n&65535)>>>0,i>1&&(o+=i*4294967296)):o=i>1?-i:-1,this.texturePool[o]||(this.texturePool[o]=[]);let s=this.texturePool[o].pop();return s||(s=this.createTexture(t,n,i)),s.filterPoolKey=o,s.setResolution(r),s}getFilterTexture(t,n,r){const i=this.getOptimalTexture(t.width,t.height,n||t.resolution,r||Gr.NONE);return i.filterFrame=t.filterFrame,i}returnTexture(t){const n=t.filterPoolKey;t.filterFrame=null,this.texturePool[n].push(t)}returnFilterTexture(t){this.returnTexture(t)}clear(t){if(t=t!==!1,t)for(const n in this.texturePool){const r=this.texturePool[n];if(r)for(let i=0;i0&&t.height>0;for(const n in this.texturePool){if(!(Number(n)<0))continue;const r=this.texturePool[n];if(r)for(let i=0;i1&&(f=this.getOptimalFilterTexture(d.width,d.height,n.resolution),f.filterFrame=d.filterFrame),r[h].apply(this,d,f,Il.CLEAR,n);const p=d;d=f,f=p}r[h].apply(this,d,c.renderTexture,Il.BLEND,n),h>1&&n.multisample>1&&this.returnFilterTexture(n.renderTexture),this.returnFilterTexture(d),this.returnFilterTexture(f)}n.clear(),this.statePool.push(n)}bindAndClear(t,n=Il.CLEAR){const{renderTexture:r,state:i}=this.renderer;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t!=null&&t.filterFrame){const s=this.tempRect;s.x=0,s.y=0,s.width=t.filterFrame.width,s.height=t.filterFrame.height,r.bind(t,t.filterFrame,s)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?r.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);const o=i.stateId&1||this.forceClear;(n===Il.CLEAR||n===Il.BLIT&&o)&&this.renderer.framebuffer.clear(0,0,0,0)}applyFilter(t,n,r,i){const o=this.renderer;o.state.set(t.state),this.bindAndClear(r,i),t.uniforms.uSampler=n,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(n._frame,n.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(Ll.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(Ll.TRIANGLE_STRIP))}calculateSpriteMatrix(t,n){const{sourceFrame:r,destinationFrame:i}=this.activeState,{orig:o}=n._texture,s=t.set(i.width,0,0,i.height,r.x,r.y),l=n.worldTransform.copyTo(pr.TEMP_MATRIX);return l.invert(),s.prepend(l),s.scale(1/o.width,1/o.height),s.translate(n.anchor.x,n.anchor.y),s}destroy(){this.renderer=null,this.texturePool.clear(!1)}getOptimalFilterTexture(t,n,r=1,i=Gr.NONE){return this.texturePool.getOptimalTexture(t,n,r,i)}getFilterTexture(t,n,r){if(typeof t=="number"){const o=t;t=n,n=o}t=t||this.activeState.renderTexture;const i=this.texturePool.getOptimalTexture(t.width,t.height,n||t.resolution,r||Gr.NONE);return i.filterFrame=t.filterFrame,i}returnFilterTexture(t){this.texturePool.returnTexture(t)}emptyPool(){this.texturePool.clear(!0)}resize(){this.texturePool.setScreenSize(this.renderer.view)}transformAABB(t,n){const r=$_[0],i=$_[1],o=$_[2],s=$_[3];r.set(n.left,n.top),i.set(n.left,n.bottom),o.set(n.right,n.top),s.set(n.right,n.bottom),t.apply(r,r),t.apply(i,i),t.apply(o,o),t.apply(s,s);const l=Math.min(r.x,i.x,o.x,s.x),c=Math.min(r.y,i.y,o.y,s.y),d=Math.max(r.x,i.x,o.x,s.x),f=Math.max(r.y,i.y,o.y,s.y);n.x=l,n.y=c,n.width=d-l,n.height=f-c}roundFrame(t,n,r,i,o){if(!(t.width<=0||t.height<=0||r.width<=0||r.height<=0)){if(o){const{a:s,b:l,c,d}=o;if((Math.abs(l)>1e-4||Math.abs(c)>1e-4)&&(Math.abs(s)>1e-4||Math.abs(d)>1e-4))return}o=o?sB.copyFrom(o):sB.identity(),o.translate(-r.x,-r.y).scale(i.width/r.width,i.height/r.height).translate(i.x,i.y),this.transformAABB(o,t),t.ceil(n),this.transformAABB(o.invert(),t)}}}jte.extension={type:rt.RendererSystem,name:"filter"};bt.add(jte);class oze{constructor(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=Gr.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}}const sze=new Kt;class Ute{constructor(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new P3(10,10),this.msaaSamples=null}contextChange(){this.disposeAll(!0);const t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Kt,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){let n=this.renderer.context.extensions.drawBuffers,r=this.renderer.context.extensions.depthTexture;tt.PREFER_ENV===Fp.WEBGL_LEGACY&&(n=null,r=null),n?t.drawBuffers=i=>n.drawBuffersWEBGL(i):(this.hasMRT=!1,t.drawBuffers=()=>{}),r||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)}bind(t,n,r=0){const{gl:i}=this;if(t){const o=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,i.bindFramebuffer(i.FRAMEBUFFER,o.framebuffer)),o.mipLevel!==r&&(t.dirtyId++,t.dirtyFormat++,o.mipLevel=r),o.dirtyId!==t.dirtyId&&(o.dirtyId=t.dirtyId,o.dirtyFormat!==t.dirtyFormat?(o.dirtyFormat=t.dirtyFormat,o.dirtySize=t.dirtySize,this.updateFramebuffer(t,r)):o.dirtySize!==t.dirtySize&&(o.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(let s=0;s>r,l=n.height>>r,c=s/n.width;this.setViewport(n.x*c,n.y*c,s,l)}else{const s=t.width>>r,l=t.height>>r;this.setViewport(0,0,s,l)}}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),n?this.setViewport(n.x,n.y,n.width,n.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)}setViewport(t,n,r,i){const o=this.viewport;t=Math.round(t),n=Math.round(n),r=Math.round(r),i=Math.round(i),(o.width!==r||o.height!==i||o.x!==t||o.y!==n)&&(o.x=t,o.y=n,o.width=r,o.height=i,this.gl.viewport(t,n,r,i))}get size(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}}clear(t,n,r,i,o=l3.COLOR|l3.DEPTH){const{gl:s}=this;s.clearColor(t,n,r,i),s.clear(o)}initFramebuffer(t){const{gl:n}=this,r=new oze(n.createFramebuffer());return r.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=r,this.managedFramebuffers.push(t),t.disposeRunner.add(this),r}resizeFramebuffer(t){const{gl:n}=this,r=t.glFramebuffers[this.CONTEXT_UID];r.stencil&&(n.bindRenderbuffer(n.RENDERBUFFER,r.stencil),r.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,r.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height));const i=t.colorTextures;let o=i.length;n.drawBuffers||(o=Math.min(o,1));for(let s=0;s1&&this.canMultisampleFramebuffer(t)?i.msaaBuffer=i.msaaBuffer||r.createRenderbuffer():i.msaaBuffer&&(r.deleteRenderbuffer(i.msaaBuffer),i.msaaBuffer=null,i.blitFramebuffer&&(i.blitFramebuffer.dispose(),i.blitFramebuffer=null));const l=[];for(let c=0;c1&&r.drawBuffers(l),t.depthTexture&&this.writeDepthTexture){const d=t.depthTexture;this.renderer.texture.bind(d,0),r.framebufferTexture2D(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.TEXTURE_2D,d._glTextures[this.CONTEXT_UID].texture,n)}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(i.stencil=i.stencil||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,i.stencil),i.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,i.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,i.stencil)):i.stencil&&(r.deleteRenderbuffer(i.stencil),i.stencil=null)}canMultisampleFramebuffer(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture}detectSamples(t){const{msaaSamples:n}=this;let r=Gr.NONE;if(t<=1||n===null)return r;for(let i=0;i=0&&this.managedFramebuffers.splice(o,1),t.disposeRunner.remove(this),n||(i.deleteFramebuffer(r.framebuffer),r.msaaBuffer&&i.deleteRenderbuffer(r.msaaBuffer),r.stencil&&i.deleteRenderbuffer(r.stencil)),r.blitFramebuffer&&this.disposeFramebuffer(r.blitFramebuffer,n)}disposeAll(t){const n=this.managedFramebuffers;this.managedFramebuffers=[];for(let r=0;rr.createVertexArrayOES(),t.bindVertexArray=i=>r.bindVertexArrayOES(i),t.deleteVertexArray=i=>r.deleteVertexArrayOES(i)):(this.hasVao=!1,t.createVertexArray=()=>null,t.bindVertexArray=()=>null,t.deleteVertexArray=()=>null)}if(n.webGLVersion!==2){const r=t.getExtension("ANGLE_instanced_arrays");r?(t.vertexAttribDivisor=(i,o)=>r.vertexAttribDivisorANGLE(i,o),t.drawElementsInstanced=(i,o,s,l,c)=>r.drawElementsInstancedANGLE(i,o,s,l,c),t.drawArraysInstanced=(i,o,s,l)=>r.drawArraysInstancedANGLE(i,o,s,l)):this.hasInstance=!1}this.canUseUInt32ElementIndex=n.webGLVersion===2||!!n.extensions.uint32ElementIndex}bind(t,n){n=n||this.renderer.shader.shader;const{gl:r}=this;let i=t.glVertexArrayObjects[this.CONTEXT_UID],o=!1;i||(this.managedGeometries[t.id]=t,t.disposeRunner.add(this),t.glVertexArrayObjects[this.CONTEXT_UID]=i={},o=!0);const s=i[n.program.id]||this.initGeometryVao(t,n,o);this._activeGeometry=t,this._activeVao!==s&&(this._activeVao=s,this.hasVao?r.bindVertexArray(s):this.activateVao(t,n.program)),this.updateBuffers()}reset(){this.unbind()}updateBuffers(){const t=this._activeGeometry,n=this.renderer.buffer;for(let r=0;r"u"?.5:n,this.isSimple=!1}get texture(){return this._texture}set texture(t){this._texture=t,this._textureID=-1}multiplyUvs(t,n){n===void 0&&(n=t);const r=this.mapCoord;for(let i=0;i0?this.maskStack[this.maskStack.length-1]._colorMask:15;r!==n&&this.renderer.gl.colorMask((r&1)!==0,(r&2)!==0,(r&4)!==0,(r&8)!==0)}destroy(){this.renderer=null}}zte.extension={type:rt.RendererSystem,name:"mask"};bt.add(zte);class jte{constructor(t){this.renderer=t,this.maskStack=[],this.glConst=0}getStackLength(){return this.maskStack.length}setMaskStack(t){const{gl:n}=this.renderer,r=this.getStackLength();this.maskStack=t;const i=this.getStackLength();i!==r&&(i===0?n.disable(this.glConst):(n.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}}const a7=new pr,l7=[],$S=class extends jte{constructor(e){super(e),this.glConst=tt.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}getStackLength(){const e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0}calcScissorRect(e){if(e._scissorRectLocal)return;const t=e._scissorRect,{maskObject:n}=e,{renderer:r}=this,i=r.renderTexture,o=n.getBounds(!0,l7.pop()??new Kt);this.roundFrameToPixels(o,i.current?i.current.resolution:r.resolution,i.sourceFrame,i.destinationFrame,r.projection.transform),t&&o.fit(t),e._scissorRectLocal=o}static isMatrixRotated(e){if(!e)return!1;const{a:t,b:n,c:r,d:i}=e;return(Math.abs(n)>1e-4||Math.abs(r)>1e-4)&&(Math.abs(t)>1e-4||Math.abs(i)>1e-4)}testScissor(e){const{maskObject:t}=e;if(!t.isFastRect||!t.isFastRect()||$S.isMatrixRotated(t.worldTransform)||$S.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);const n=e._scissorRectLocal;return n.width>0&&n.height>0}roundFrameToPixels(e,t,n,r,i){$S.isMatrixRotated(i)||(i=i?a7.copyFrom(i):a7.identity(),i.translate(-n.x,-n.y).scale(r.width/n.width,r.height/n.height).translate(r.x,r.y),this.renderer.filter.transformAABB(i,e),e.fit(r),e.x=Math.round(e.x*t),e.y=Math.round(e.y*t),e.width=Math.round(e.width*t),e.height=Math.round(e.height*t))}push(e){e._scissorRectLocal||this.calcScissorRect(e);const{gl:t}=this.renderer;e._scissorRect||t.enable(t.SCISSOR_TEST),e._scissorCounter++,e._scissorRect=e._scissorRectLocal,this._useCurrent()}pop(e){const{gl:t}=this.renderer;e&&l7.push(e._scissorRectLocal),this.getStackLength()>0?this._useCurrent():t.disable(t.SCISSOR_TEST)}_useCurrent(){const e=this.maskStack[this.maskStack.length-1]._scissorRect;let t;this.renderer.renderTexture.current?t=e.y:t=this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,t,e.width,e.height)}};let Ute=$S;Ute.extension={type:rt.RendererSystem,name:"scissor"};bt.add(Ute);class Hte extends jte{constructor(t){super(t),this.glConst=tt.ADAPTER.getWebGLRenderingContext().STENCIL_TEST}getStackLength(){const t=this.maskStack[this.maskStack.length-1];return t?t._stencilCounter:0}push(t){const n=t.maskObject,{gl:r}=this.renderer,i=t._stencilCounter;i===0&&(this.renderer.framebuffer.forceStencil(),r.clearStencil(0),r.clear(r.STENCIL_BUFFER_BIT),r.enable(r.STENCIL_TEST)),t._stencilCounter++;const o=t._colorMask;o!==0&&(t._colorMask=0,r.colorMask(!1,!1,!1,!1)),r.stencilFunc(r.EQUAL,i,4294967295),r.stencilOp(r.KEEP,r.KEEP,r.INCR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,o!==0&&(t._colorMask=o,r.colorMask((o&1)!==0,(o&2)!==0,(o&4)!==0,(o&8)!==0)),this._useCurrent()}pop(t){const n=this.renderer.gl;if(this.getStackLength()===0)n.disable(n.STENCIL_TEST);else{const r=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,i=r?r._colorMask:15;i!==0&&(r._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilOp(n.KEEP,n.KEEP,n.DECR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,i!==0&&(r._colorMask=i,n.colorMask((i&1)!==0,(i&2)!==0,(i&4)!==0,(i&8)!==0)),this._useCurrent()}}_useCurrent(){const t=this.renderer.gl;t.stencilFunc(t.EQUAL,this.getStackLength(),4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP)}}Hte.extension={type:rt.RendererSystem,name:"stencil"};bt.add(Hte);class Wte{constructor(t){this.renderer=t,this.plugins={},Object.defineProperties(this.plugins,{extract:{enumerable:!1,get(){return cn("7.0.0","renderer.plugins.extract has moved to renderer.extract"),t.extract}},prepare:{enumerable:!1,get(){return cn("7.0.0","renderer.plugins.prepare has moved to renderer.prepare"),t.prepare}},interaction:{enumerable:!1,get(){return cn("7.0.0","renderer.plugins.interaction has been deprecated, use renderer.events"),t.events}}})}init(){const t=this.rendererPlugins;for(const n in t)this.plugins[n]=new t[n](this.renderer)}destroy(){for(const t in this.plugins)this.plugins[t].destroy(),this.plugins[t]=null}}Wte.extension={type:[rt.RendererSystem,rt.CanvasRendererSystem],name:"_plugin"};bt.add(Wte);class Gte{constructor(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new pr,this.transform=null}update(t,n,r,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=n||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,r,i),this.transform&&this.projectionMatrix.append(this.transform);const o=this.renderer;o.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,o.globalUniforms.update(),o.shader.shader&&o.shader.syncUniformGroup(o.shader.shader.uniforms.globals)}calculateProjection(t,n,r,i){const o=this.projectionMatrix,s=i?-1:1;o.identity(),o.a=1/n.width*2,o.d=s*(1/n.height*2),o.tx=-1-n.x*o.a,o.ty=-s-n.y*o.d}setTransform(t){}destroy(){this.renderer=null}}Gte.extension={type:rt.RendererSystem,name:"projection"};bt.add(Gte);const lze=new wj;class Vte{constructor(t){this.renderer=t,this._tempMatrix=new pr}generateTexture(t,n){const{region:r,...i}=n||{},o=r||t.getLocalBounds(null,!0);o.width===0&&(o.width=1),o.height===0&&(o.height=1);const s=$p.create({width:o.width,height:o.height,...i});this._tempMatrix.tx=-o.x,this._tempMatrix.ty=-o.y;const l=t.transform;return t.transform=lze,this.renderer.render(t,{renderTexture:s,transform:this._tempMatrix,skipUpdateTransform:!!t.parent,blit:!0}),t.transform=l,s}destroy(){}}Vte.extension={type:[rt.RendererSystem,rt.CanvasRendererSystem],name:"textureGenerator"};bt.add(Vte);const yh=new Kt,mb=new Kt;class qte{constructor(t){this.renderer=t,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Kt,this.destinationFrame=new Kt,this.viewportFrame=new Kt}contextChange(){var n;const t=(n=this.renderer)==null?void 0:n.gl.getContextAttributes();this._rendererPremultipliedAlpha=!!(t&&t.alpha&&t.premultipliedAlpha)}bind(t=null,n,r){const i=this.renderer;this.current=t;let o,s,l;t?(o=t.baseTexture,l=o.resolution,n||(yh.width=t.frame.width,yh.height=t.frame.height,n=yh),r||(mb.x=t.frame.x,mb.y=t.frame.y,mb.width=n.width,mb.height=n.height,r=mb),s=o.framebuffer):(l=i.resolution,n||(yh.width=i._view.screen.width,yh.height=i._view.screen.height,n=yh),r||(r=yh,r.width=n.width,r.height=n.height));const c=this.viewportFrame;c.x=r.x*l,c.y=r.y*l,c.width=r.width*l,c.height=r.height*l,t||(c.y=i.view.height-(c.y+c.height)),c.ceil(),this.renderer.framebuffer.bind(s,c),this.renderer.projection.update(r,n,l,!s),t?this.renderer.mask.setMaskStack(o.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(n),this.destinationFrame.copyFrom(r)}clear(t,n){const r=this.current?this.current.baseTexture.clear:this.renderer.background.backgroundColor,i=zn.shared.setValue(t||r);(this.current&&this.current.baseTexture.alphaMode>0||!this.current&&this._rendererPremultipliedAlpha)&&i.premultiply(i.alpha);const o=this.destinationFrame,s=this.current?this.current.baseTexture:this.renderer._view.screen,l=o.width!==s.width||o.height!==s.height;if(l){let{x:c,y:d,width:f,height:h}=this.viewportFrame;c=Math.round(c),d=Math.round(d),f=Math.round(f),h=Math.round(h),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(c,d,f,h)}this.renderer.framebuffer.clear(i.red,i.green,i.blue,i.alpha,n),l&&this.renderer.scissor.pop()}resize(){this.bind(null)}reset(){this.bind(null)}destroy(){this.renderer=null}}qte.extension={type:rt.RendererSystem,name:"renderTexture"};bt.add(qte);class cze{constructor(t,n){this.program=t,this.uniformData=n,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}destroy(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null}}function uze(e,t){const n={},r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES);for(let i=0;if>h?1:-1);for(let f=0;f0?this.maskStack[this.maskStack.length-1]._colorMask:15;r!==n&&this.renderer.gl.colorMask((r&1)!==0,(r&2)!==0,(r&4)!==0,(r&8)!==0)}destroy(){this.renderer=null}}Gte.extension={type:rt.RendererSystem,name:"mask"};bt.add(Gte);class Vte{constructor(t){this.renderer=t,this.maskStack=[],this.glConst=0}getStackLength(){return this.maskStack.length}setMaskStack(t){const{gl:n}=this.renderer,r=this.getStackLength();this.maskStack=t;const i=this.getStackLength();i!==r&&(i===0?n.disable(this.glConst):(n.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}}const d7=new pr,f7=[],FS=class extends Vte{constructor(e){super(e),this.glConst=tt.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}getStackLength(){const e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0}calcScissorRect(e){if(e._scissorRectLocal)return;const t=e._scissorRect,{maskObject:n}=e,{renderer:r}=this,i=r.renderTexture,o=n.getBounds(!0,f7.pop()??new Kt);this.roundFrameToPixels(o,i.current?i.current.resolution:r.resolution,i.sourceFrame,i.destinationFrame,r.projection.transform),t&&o.fit(t),e._scissorRectLocal=o}static isMatrixRotated(e){if(!e)return!1;const{a:t,b:n,c:r,d:i}=e;return(Math.abs(n)>1e-4||Math.abs(r)>1e-4)&&(Math.abs(t)>1e-4||Math.abs(i)>1e-4)}testScissor(e){const{maskObject:t}=e;if(!t.isFastRect||!t.isFastRect()||FS.isMatrixRotated(t.worldTransform)||FS.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);const n=e._scissorRectLocal;return n.width>0&&n.height>0}roundFrameToPixels(e,t,n,r,i){FS.isMatrixRotated(i)||(i=i?d7.copyFrom(i):d7.identity(),i.translate(-n.x,-n.y).scale(r.width/n.width,r.height/n.height).translate(r.x,r.y),this.renderer.filter.transformAABB(i,e),e.fit(r),e.x=Math.round(e.x*t),e.y=Math.round(e.y*t),e.width=Math.round(e.width*t),e.height=Math.round(e.height*t))}push(e){e._scissorRectLocal||this.calcScissorRect(e);const{gl:t}=this.renderer;e._scissorRect||t.enable(t.SCISSOR_TEST),e._scissorCounter++,e._scissorRect=e._scissorRectLocal,this._useCurrent()}pop(e){const{gl:t}=this.renderer;e&&f7.push(e._scissorRectLocal),this.getStackLength()>0?this._useCurrent():t.disable(t.SCISSOR_TEST)}_useCurrent(){const e=this.maskStack[this.maskStack.length-1]._scissorRect;let t;this.renderer.renderTexture.current?t=e.y:t=this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,t,e.width,e.height)}};let qte=FS;qte.extension={type:rt.RendererSystem,name:"scissor"};bt.add(qte);class Xte extends Vte{constructor(t){super(t),this.glConst=tt.ADAPTER.getWebGLRenderingContext().STENCIL_TEST}getStackLength(){const t=this.maskStack[this.maskStack.length-1];return t?t._stencilCounter:0}push(t){const n=t.maskObject,{gl:r}=this.renderer,i=t._stencilCounter;i===0&&(this.renderer.framebuffer.forceStencil(),r.clearStencil(0),r.clear(r.STENCIL_BUFFER_BIT),r.enable(r.STENCIL_TEST)),t._stencilCounter++;const o=t._colorMask;o!==0&&(t._colorMask=0,r.colorMask(!1,!1,!1,!1)),r.stencilFunc(r.EQUAL,i,4294967295),r.stencilOp(r.KEEP,r.KEEP,r.INCR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,o!==0&&(t._colorMask=o,r.colorMask((o&1)!==0,(o&2)!==0,(o&4)!==0,(o&8)!==0)),this._useCurrent()}pop(t){const n=this.renderer.gl;if(this.getStackLength()===0)n.disable(n.STENCIL_TEST);else{const r=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,i=r?r._colorMask:15;i!==0&&(r._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilOp(n.KEEP,n.KEEP,n.DECR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,i!==0&&(r._colorMask=i,n.colorMask((i&1)!==0,(i&2)!==0,(i&4)!==0,(i&8)!==0)),this._useCurrent()}}_useCurrent(){const t=this.renderer.gl;t.stencilFunc(t.EQUAL,this.getStackLength(),4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP)}}Xte.extension={type:rt.RendererSystem,name:"stencil"};bt.add(Xte);class Yte{constructor(t){this.renderer=t,this.plugins={},Object.defineProperties(this.plugins,{extract:{enumerable:!1,get(){return cn("7.0.0","renderer.plugins.extract has moved to renderer.extract"),t.extract}},prepare:{enumerable:!1,get(){return cn("7.0.0","renderer.plugins.prepare has moved to renderer.prepare"),t.prepare}},interaction:{enumerable:!1,get(){return cn("7.0.0","renderer.plugins.interaction has been deprecated, use renderer.events"),t.events}}})}init(){const t=this.rendererPlugins;for(const n in t)this.plugins[n]=new t[n](this.renderer)}destroy(){for(const t in this.plugins)this.plugins[t].destroy(),this.plugins[t]=null}}Yte.extension={type:[rt.RendererSystem,rt.CanvasRendererSystem],name:"_plugin"};bt.add(Yte);class Kte{constructor(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new pr,this.transform=null}update(t,n,r,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=n||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,r,i),this.transform&&this.projectionMatrix.append(this.transform);const o=this.renderer;o.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,o.globalUniforms.update(),o.shader.shader&&o.shader.syncUniformGroup(o.shader.shader.uniforms.globals)}calculateProjection(t,n,r,i){const o=this.projectionMatrix,s=i?-1:1;o.identity(),o.a=1/n.width*2,o.d=s*(1/n.height*2),o.tx=-1-n.x*o.a,o.ty=-s-n.y*o.d}setTransform(t){}destroy(){this.renderer=null}}Kte.extension={type:rt.RendererSystem,name:"projection"};bt.add(Kte);const dze=new Ej;class Qte{constructor(t){this.renderer=t,this._tempMatrix=new pr}generateTexture(t,n){const{region:r,...i}=n||{},o=r||t.getLocalBounds(null,!0);o.width===0&&(o.width=1),o.height===0&&(o.height=1);const s=zp.create({width:o.width,height:o.height,...i});this._tempMatrix.tx=-o.x,this._tempMatrix.ty=-o.y;const l=t.transform;return t.transform=dze,this.renderer.render(t,{renderTexture:s,transform:this._tempMatrix,skipUpdateTransform:!!t.parent,blit:!0}),t.transform=l,s}destroy(){}}Qte.extension={type:[rt.RendererSystem,rt.CanvasRendererSystem],name:"textureGenerator"};bt.add(Qte);const bh=new Kt,yb=new Kt;class Jte{constructor(t){this.renderer=t,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Kt,this.destinationFrame=new Kt,this.viewportFrame=new Kt}contextChange(){var n;const t=(n=this.renderer)==null?void 0:n.gl.getContextAttributes();this._rendererPremultipliedAlpha=!!(t&&t.alpha&&t.premultipliedAlpha)}bind(t=null,n,r){const i=this.renderer;this.current=t;let o,s,l;t?(o=t.baseTexture,l=o.resolution,n||(bh.width=t.frame.width,bh.height=t.frame.height,n=bh),r||(yb.x=t.frame.x,yb.y=t.frame.y,yb.width=n.width,yb.height=n.height,r=yb),s=o.framebuffer):(l=i.resolution,n||(bh.width=i._view.screen.width,bh.height=i._view.screen.height,n=bh),r||(r=bh,r.width=n.width,r.height=n.height));const c=this.viewportFrame;c.x=r.x*l,c.y=r.y*l,c.width=r.width*l,c.height=r.height*l,t||(c.y=i.view.height-(c.y+c.height)),c.ceil(),this.renderer.framebuffer.bind(s,c),this.renderer.projection.update(r,n,l,!s),t?this.renderer.mask.setMaskStack(o.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(n),this.destinationFrame.copyFrom(r)}clear(t,n){const r=this.current?this.current.baseTexture.clear:this.renderer.background.backgroundColor,i=zn.shared.setValue(t||r);(this.current&&this.current.baseTexture.alphaMode>0||!this.current&&this._rendererPremultipliedAlpha)&&i.premultiply(i.alpha);const o=this.destinationFrame,s=this.current?this.current.baseTexture:this.renderer._view.screen,l=o.width!==s.width||o.height!==s.height;if(l){let{x:c,y:d,width:f,height:h}=this.viewportFrame;c=Math.round(c),d=Math.round(d),f=Math.round(f),h=Math.round(h),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(c,d,f,h)}this.renderer.framebuffer.clear(i.red,i.green,i.blue,i.alpha,n),l&&this.renderer.scissor.pop()}resize(){this.bind(null)}reset(){this.bind(null)}destroy(){this.renderer=null}}Jte.extension={type:rt.RendererSystem,name:"renderTexture"};bt.add(Jte);class fze{constructor(t,n){this.program=t,this.uniformData=n,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}destroy(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null}}function hze(e,t){const n={},r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES);for(let i=0;if>h?1:-1);for(let f=0;f({data:o,offset:0,dataLen:0,dirty:0}));let n=0,r=0,i=0;for(let o=0;o1&&(n=Math.max(n,16)*s.data.size),s.dataLen=n,r%n!==0&&r<16){const l=r%n%16;r+=l,i+=l}r+n>16?(i=Math.ceil(i/16)*16,s.offset=i,i+=n,r=n):(s.offset=i,r+=n,i+=n)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function gze(e,t){const n=[];for(const r in e)t[r]&&n.push(t[r]);return n.sort((r,i)=>r.index-i.index),n}function vze(e,t){if(!e.autoManage)return{size:0,syncFunc:hze};const n=gze(e.uniforms,t),{uboElements:r,size:i}=mze(n),o=[` + `},Zte={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function yze(e){const t=e.map(o=>({data:o,offset:0,dataLen:0,dirty:0}));let n=0,r=0,i=0;for(let o=0;o1&&(n=Math.max(n,16)*s.data.size),s.dataLen=n,r%n!==0&&r<16){const l=r%n%16;r+=l,i+=l}r+n>16?(i=Math.ceil(i/16)*16,s.offset=i,i+=n,r=n):(s.offset=i,r+=n,i+=n)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function bze(e,t){const n=[];for(const r in e)t[r]&&n.push(t[r]);return n.sort((r,i)=>r.index-i.index),n}function xze(e,t){if(!e.autoManage)return{size:0,syncFunc:gze};const n=bze(e.uniforms,t),{uboElements:r,size:i}=yze(n),o=[` var v = null; var v2 = null; var cv = null; @@ -1021,7 +1021,7 @@ void main(void) var gl = renderer.gl var index = 0; var data = buffer.data; - `];for(let s=0;s1){const h=Ate(l.data.type),p=Math.max(Xte[l.data.type]/16,1),g=h/p,v=(4-g%4)%4;o.push(` + `];for(let s=0;s1){const h=Mte(l.data.type),p=Math.max(Zte[l.data.type]/16,1),g=h/p,v=(4-g%4)%4;o.push(` cv = ud.${d}.value; v = uv.${d}; offset = ${l.offset/4}; @@ -1037,7 +1037,7 @@ void main(void) offset += ${v}; } - `)}else{const h=pze[l.data.type];o.push(` + `)}else{const h=vze[l.data.type];o.push(` cv = ud.${d}.value; v = uv.${d}; offset = ${l.offset/4}; @@ -1045,7 +1045,7 @@ void main(void) `)}}return o.push(` renderer.buffer.update(buffer); `),{size:i,syncFunc:new Function("ud","uv","renderer","syncData","buffer",o.join(` -`))}}let yze=0;const $_={textureCount:0,uboCount:0};class Yte{constructor(t){this.destroyed=!1,this.renderer=t,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=yze++}systemCheck(){if(!H4e())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")}contextChange(t){this.gl=t,this.reset()}bind(t,n){t.disposeRunner.add(this),t.uniforms.globals=this.renderer.globalUniforms;const r=t.program,i=r.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(t);return this.shader=t,this.program!==r&&(this.program=r,this.gl.useProgram(i.program)),n||($_.textureCount=0,$_.uboCount=0,this.syncUniformGroup(t.uniformGroup,$_)),i}setUniforms(t){const n=this.shader.program,r=n.glPrograms[this.renderer.CONTEXT_UID];n.syncUniforms(r.uniformData,t,this.renderer)}syncUniformGroup(t,n){const r=this.getGlProgram();(!t.static||t.dirtyId!==r.uniformDirtyGroups[t.id])&&(r.uniformDirtyGroups[t.id]=t.dirtyId,this.syncUniforms(t,r,n))}syncUniforms(t,n,r){(t.syncUniforms[this.shader.program.id]||this.createSyncGroups(t))(n.uniformData,t.uniforms,this.renderer,r)}createSyncGroups(t){const n=this.getSignature(t,this.shader.program.uniformData,"u");return this.cache[n]||(this.cache[n]=$4e(t,this.shader.program.uniformData)),t.syncUniforms[this.shader.program.id]=this.cache[n],t.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(t,n){const r=this.getGlProgram();if(!t.static||t.dirtyId!==0||!r.uniformGroups[t.id]){t.dirtyId=0;const i=r.uniformGroups[t.id]||this.createSyncBufferGroup(t,r,n);t.buffer.update(),i(r.uniformData,t.uniforms,this.renderer,$_,t.buffer)}this.renderer.buffer.bindBufferBase(t.buffer,r.uniformBufferBindings[n])}createSyncBufferGroup(t,n,r){const{gl:i}=this.renderer;this.renderer.buffer.bind(t.buffer);const o=this.gl.getUniformBlockIndex(n.program,r);n.uniformBufferBindings[r]=this.shader.uniformBindCount,i.uniformBlockBinding(n.program,o,this.shader.uniformBindCount),this.shader.uniformBindCount++;const s=this.getSignature(t,this.shader.program.uniformData,"ubo");let l=this._uboCache[s];if(l||(l=this._uboCache[s]=vze(t,this.shader.program.uniformData)),t.autoManage){const c=new Float32Array(l.size/4);t.buffer.update(c)}return n.uniformGroups[t.id]=l.syncFunc,n.uniformGroups[t.id]}getSignature(t,n,r){const i=t.uniforms,o=[`${r}-`];for(const s in i)o.push(s),n[s]&&o.push(n[s].type);return o.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(t){const n=this.gl,r=t.program,i=fze(n,r);return r.glPrograms[this.renderer.CONTEXT_UID]=i,i}reset(){this.program=null,this.shader=null}disposeShader(t){this.shader===t&&(this.shader=null)}destroy(){this.renderer=null,this.destroyed=!0}}Yte.extension={type:rt.RendererSystem,name:"shader"};bt.add(Yte);class $k{constructor(t){this.renderer=t}run(t){const{renderer:n}=this;n.runners.init.emit(n.options),t.hello&&console.log(`PixiJS 7.2.4 - ${n.rendererLogId} - https://pixijs.com`),n.resize(n.screen.width,n.screen.height)}destroy(){}}$k.defaultOptions={hello:!1};$k.extension={type:[rt.RendererSystem,rt.CanvasRendererSystem],name:"startup"};bt.add($k);function bze(e,t=[]){return t[Mt.NORMAL]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.ADD]=[e.ONE,e.ONE],t[Mt.MULTIPLY]=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.SCREEN]=[e.ONE,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.OVERLAY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.DARKEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.LIGHTEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.COLOR_DODGE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.COLOR_BURN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.HARD_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.SOFT_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.DIFFERENCE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.EXCLUSION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.HUE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.SATURATION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.COLOR]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.LUMINOSITY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.NONE]=[0,0],t[Mt.NORMAL_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.ADD_NPM]=[e.SRC_ALPHA,e.ONE,e.ONE,e.ONE],t[Mt.SCREEN_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.SRC_IN]=[e.DST_ALPHA,e.ZERO],t[Mt.SRC_OUT]=[e.ONE_MINUS_DST_ALPHA,e.ZERO],t[Mt.SRC_ATOP]=[e.DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[Mt.DST_OVER]=[e.ONE_MINUS_DST_ALPHA,e.ONE],t[Mt.DST_IN]=[e.ZERO,e.SRC_ALPHA],t[Mt.DST_OUT]=[e.ZERO,e.ONE_MINUS_SRC_ALPHA],t[Mt.DST_ATOP]=[e.ONE_MINUS_DST_ALPHA,e.SRC_ALPHA],t[Mt.XOR]=[e.ONE_MINUS_DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[Mt.SUBTRACT]=[e.ONE,e.ONE,e.ONE,e.ONE,e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD],t}const xze=0,wze=1,_ze=2,Sze=3,Eze=4,Cze=5,R3=class{constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=Mt.NONE,this._blendEq=!1,this.map=[],this.map[xze]=this.setBlend,this.map[wze]=this.setOffset,this.map[_ze]=this.setCullFace,this.map[Sze]=this.setDepthTest,this.map[Eze]=this.setFrontFace,this.map[Cze]=this.setDepthMask,this.checks=[],this.defaultState=new Pu,this.defaultState.blend=!0}contextChange(e){this.gl=e,this.blendModes=bze(e),this.set(this.defaultState),this.reset()}set(e){if(e=e||this.defaultState,this.stateId!==e.data){let t=this.stateId^e.data,n=0;for(;t;)t&1&&this.map[n].call(this,!!(e.data&1<>1,n++;this.stateId=e.data}for(let t=0;tt.systems[i]),r=[...n,...Object.keys(t.systems).filter(i=>!n.includes(i))];for(const i of r)this.addSystem(t.systems[i],i)}addRunners(...t){t.forEach(n=>{this.runners[n]=new sl(n)})}addSystem(t,n){const r=new t(this);if(this[n])throw new Error(`Whoops! The name "${n}" is already in use`);this[n]=r,this._systemsHash[n]=r;for(const i in this.runners)this.runners[i].add(r);return this}emitWithCustomOptions(t,n){const r=Object.keys(this._systemsHash);t.items.forEach(i=>{const o=r.find(s=>this._systemsHash[s]===i);i[t.name](n[o])})}destroy(){Object.values(this.runners).forEach(t=>{t.destroy()}),this._systemsHash={}}}const FS=class{constructor(e){this.renderer=e,this.count=0,this.checkCount=0,this.maxIdle=FS.defaultMaxIdle,this.checkCountMax=FS.defaultCheckCountMax,this.mode=FS.defaultMode}postrender(){this.renderer.objectRenderer.renderingToScreen&&(this.count++,this.mode!==lj.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))}run(){const e=this.renderer.texture,t=e.managedTextures;let n=!1;for(let r=0;rthis.maxIdle&&(e.destroyTexture(i,!0),t[r]=null,n=!0)}if(n){let r=0;for(let i=0;i=0;r--)this.unload(e.children[r])}destroy(){this.renderer=null}};let Ya=FS;Ya.defaultMode=lj.AUTO;Ya.defaultMaxIdle=60*60;Ya.defaultCheckCountMax=60*10;Ya.extension={type:rt.RendererSystem,name:"textureGC"};bt.add(Ya);class sB{constructor(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=Rt.UNSIGNED_BYTE,this.internalFormat=Ge.RGBA,this.samplerType=0}}function kze(e){let t;return"WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?t={[Rt.UNSIGNED_BYTE]:{[Ge.RGBA]:e.RGBA8,[Ge.RGB]:e.RGB8,[Ge.RG]:e.RG8,[Ge.RED]:e.R8,[Ge.RGBA_INTEGER]:e.RGBA8UI,[Ge.RGB_INTEGER]:e.RGB8UI,[Ge.RG_INTEGER]:e.RG8UI,[Ge.RED_INTEGER]:e.R8UI,[Ge.ALPHA]:e.ALPHA,[Ge.LUMINANCE]:e.LUMINANCE,[Ge.LUMINANCE_ALPHA]:e.LUMINANCE_ALPHA},[Rt.BYTE]:{[Ge.RGBA]:e.RGBA8_SNORM,[Ge.RGB]:e.RGB8_SNORM,[Ge.RG]:e.RG8_SNORM,[Ge.RED]:e.R8_SNORM,[Ge.RGBA_INTEGER]:e.RGBA8I,[Ge.RGB_INTEGER]:e.RGB8I,[Ge.RG_INTEGER]:e.RG8I,[Ge.RED_INTEGER]:e.R8I},[Rt.UNSIGNED_SHORT]:{[Ge.RGBA_INTEGER]:e.RGBA16UI,[Ge.RGB_INTEGER]:e.RGB16UI,[Ge.RG_INTEGER]:e.RG16UI,[Ge.RED_INTEGER]:e.R16UI,[Ge.DEPTH_COMPONENT]:e.DEPTH_COMPONENT16},[Rt.SHORT]:{[Ge.RGBA_INTEGER]:e.RGBA16I,[Ge.RGB_INTEGER]:e.RGB16I,[Ge.RG_INTEGER]:e.RG16I,[Ge.RED_INTEGER]:e.R16I},[Rt.UNSIGNED_INT]:{[Ge.RGBA_INTEGER]:e.RGBA32UI,[Ge.RGB_INTEGER]:e.RGB32UI,[Ge.RG_INTEGER]:e.RG32UI,[Ge.RED_INTEGER]:e.R32UI,[Ge.DEPTH_COMPONENT]:e.DEPTH_COMPONENT24},[Rt.INT]:{[Ge.RGBA_INTEGER]:e.RGBA32I,[Ge.RGB_INTEGER]:e.RGB32I,[Ge.RG_INTEGER]:e.RG32I,[Ge.RED_INTEGER]:e.R32I},[Rt.FLOAT]:{[Ge.RGBA]:e.RGBA32F,[Ge.RGB]:e.RGB32F,[Ge.RG]:e.RG32F,[Ge.RED]:e.R32F,[Ge.DEPTH_COMPONENT]:e.DEPTH_COMPONENT32F},[Rt.HALF_FLOAT]:{[Ge.RGBA]:e.RGBA16F,[Ge.RGB]:e.RGB16F,[Ge.RG]:e.RG16F,[Ge.RED]:e.R16F},[Rt.UNSIGNED_SHORT_5_6_5]:{[Ge.RGB]:e.RGB565},[Rt.UNSIGNED_SHORT_4_4_4_4]:{[Ge.RGBA]:e.RGBA4},[Rt.UNSIGNED_SHORT_5_5_5_1]:{[Ge.RGBA]:e.RGB5_A1},[Rt.UNSIGNED_INT_2_10_10_10_REV]:{[Ge.RGBA]:e.RGB10_A2,[Ge.RGBA_INTEGER]:e.RGB10_A2UI},[Rt.UNSIGNED_INT_10F_11F_11F_REV]:{[Ge.RGB]:e.R11F_G11F_B10F},[Rt.UNSIGNED_INT_5_9_9_9_REV]:{[Ge.RGB]:e.RGB9_E5},[Rt.UNSIGNED_INT_24_8]:{[Ge.DEPTH_STENCIL]:e.DEPTH24_STENCIL8},[Rt.FLOAT_32_UNSIGNED_INT_24_8_REV]:{[Ge.DEPTH_STENCIL]:e.DEPTH32F_STENCIL8}}:t={[Rt.UNSIGNED_BYTE]:{[Ge.RGBA]:e.RGBA,[Ge.RGB]:e.RGB,[Ge.ALPHA]:e.ALPHA,[Ge.LUMINANCE]:e.LUMINANCE,[Ge.LUMINANCE_ALPHA]:e.LUMINANCE_ALPHA},[Rt.UNSIGNED_SHORT_5_6_5]:{[Ge.RGB]:e.RGB},[Rt.UNSIGNED_SHORT_4_4_4_4]:{[Ge.RGBA]:e.RGBA},[Rt.UNSIGNED_SHORT_5_5_5_1]:{[Ge.RGBA]:e.RGBA}},t}class Qte{constructor(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new Vt,this.hasIntegerTextures=!1}contextChange(){const t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=kze(t);const n=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=n;for(let i=0;i=0;--o){const s=n[o];s&&s._glTextures[i].samplerType!==a3.FLOAT&&this.renderer.texture.unbind(s)}}initTexture(t){const n=new sB(this.gl.createTexture());return n.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=n,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),n}initTextureType(t,n){var r;n.internalFormat=((r=this.internalFormats[t.type])==null?void 0:r[t.format])??t.format,this.webGLVersion===2&&t.type===Rt.HALF_FLOAT?n.type=this.gl.HALF_FLOAT:n.type=t.type}updateTexture(t){var i;const n=t._glTextures[this.CONTEXT_UID];if(!n)return;const r=this.renderer;if(this.initTextureType(t,n),(i=t.resource)!=null&&i.upload(r,t,n))n.samplerType!==a3.FLOAT&&(this.hasIntegerTextures=!0);else{const o=t.realWidth,s=t.realHeight,l=r.gl;(n.width!==o||n.height!==s||n.dirtyId<0)&&(n.width=o,n.height=s,l.texImage2D(t.target,0,n.internalFormat,o,s,0,t.format,n.type,null))}t.dirtyStyleId!==n.dirtyStyleId&&this.updateTextureStyle(t),n.dirtyId=t.dirtyId}destroyTexture(t,n){const{gl:r}=this;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),r.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!n)){const i=this.managedTextures.indexOf(t);i!==-1&&tg(this.managedTextures,i,1)}}updateTextureStyle(t){var r;const n=t._glTextures[this.CONTEXT_UID];n&&((t.mipmap===Xl.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?n.mipmap=!1:n.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?n.wrapMode=Td.CLAMP:n.wrapMode=t.wrapMode,(r=t.resource)!=null&&r.style(this.renderer,t,n)||this.setStyle(t,n),n.dirtyStyleId=t.dirtyStyleId)}setStyle(t,n){const r=this.gl;if(n.mipmap&&t.mipmap!==Xl.ON_MANUAL&&r.generateMipmap(t.target),r.texParameteri(t.target,r.TEXTURE_WRAP_S,n.wrapMode),r.texParameteri(t.target,r.TEXTURE_WRAP_T,n.wrapMode),n.mipmap){r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===lu.LINEAR?r.LINEAR_MIPMAP_LINEAR:r.NEAREST_MIPMAP_NEAREST);const i=this.renderer.context.extensions.anisotropicFiltering;if(i&&t.anisotropicLevel>0&&t.scaleMode===lu.LINEAR){const o=Math.min(t.anisotropicLevel,r.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT));r.texParameterf(t.target,i.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===lu.LINEAR?r.LINEAR:r.NEAREST);r.texParameteri(t.target,r.TEXTURE_MAG_FILTER,t.scaleMode===lu.LINEAR?r.LINEAR:r.NEAREST)}destroy(){this.renderer=null}}Qte.extension={type:rt.RendererSystem,name:"texture"};bt.add(Qte);class Jte{constructor(t){this.renderer=t}contextChange(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glTransformFeedbacks[r]||this.createGLTransformFeedback(t);n.bindTransformFeedback(n.TRANSFORM_FEEDBACK,i)}unbind(){const{gl:t}=this;t.bindTransformFeedback(t.TRANSFORM_FEEDBACK,null)}beginTransformFeedback(t,n){const{gl:r,renderer:i}=this;n&&i.shader.bind(n),r.beginTransformFeedback(t)}endTransformFeedback(){const{gl:t}=this;t.endTransformFeedback()}createGLTransformFeedback(t){const{gl:n,renderer:r,CONTEXT_UID:i}=this,o=n.createTransformFeedback();t._glTransformFeedbacks[i]=o,n.bindTransformFeedback(n.TRANSFORM_FEEDBACK,o);for(let s=0;s(e[e.INTERACTION=50]="INTERACTION",e[e.HIGH=25]="HIGH",e[e.NORMAL=0]="NORMAL",e[e.LOW=-25]="LOW",e[e.UTILITY=-50]="UTILITY",e))(wp||{});class aB{constructor(t,n=null,r=0,i=!1){this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=n,this.priority=r,this.once=i}match(t,n=null){return this.fn===t&&this.context===n}emit(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));const n=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),n}connect(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this}destroy(t=!1){this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);const n=this.next;return this.next=t?null:n,this.previous=null,n}}const ms=class{constructor(){this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new aB(null,null,1/0),this.deltaMS=1/ms.targetFPMS,this.elapsedMS=1/ms.targetFPMS,this._tick=e=>{this._requestId=null,this.started&&(this.update(e),this.started&&this._requestId===null&&this._head.next&&(this._requestId=requestAnimationFrame(this._tick)))}}_requestIfNeeded(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))}_cancelIfNeeded(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)}_startIfPossible(){this.started?this._requestIfNeeded():this.autoStart&&this.start()}add(e,t,n=wp.NORMAL){return this._addListener(new aB(e,t,n))}addOnce(e,t,n=wp.NORMAL){return this._addListener(new aB(e,t,n,!0))}_addListener(e){let t=this._head.next,n=this._head;if(!t)e.connect(n);else{for(;t;){if(e.priority>t.priority){e.connect(n);break}n=t,t=t.next}e.previous||e.connect(n)}return this._startIfPossible(),this}remove(e,t){let n=this._head.next;for(;n;)n.match(e,t)?n=n.destroy():n=n.next;return this._head.next||this._cancelIfNeeded(),this}get count(){if(!this._head)return 0;let e=0,t=this._head;for(;t=t.next;)e++;return e}start(){this.started||(this.started=!0,this._requestIfNeeded())}stop(){this.started&&(this.started=!1,this._cancelIfNeeded())}destroy(){if(!this._protected){this.stop();let e=this._head.next;for(;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}}update(e=performance.now()){let t;if(e>this.lastTime){if(t=this.elapsedMS=e-this.lastTime,t>this._maxElapsedMS&&(t=this._maxElapsedMS),t*=this.speed,this._minElapsedMS){const i=e-this._lastFrame|0;if(i{this._ticker.stop()},this.start=()=>{this._ticker.start()},this._ticker=null,this.ticker=t.sharedTicker?Xr.shared:new Xr,t.autoStart&&this.start()}static destroy(){if(this._ticker){const t=this._ticker;this.ticker=null,t.destroy()}}}Zte.extension=rt.Application;bt.add(Zte);const ene=[];bt.handleByList(rt.Renderer,ene);function Aze(e){for(const t of ene)if(t.test(e))return new t(e);throw new Error("Unable to auto-detect a suitable renderer.")}var Ize=`attribute vec2 aVertexPosition; +`))}}let wze=0;const F_={textureCount:0,uboCount:0};class ene{constructor(t){this.destroyed=!1,this.renderer=t,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=wze++}systemCheck(){if(!V4e())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")}contextChange(t){this.gl=t,this.reset()}bind(t,n){t.disposeRunner.add(this),t.uniforms.globals=this.renderer.globalUniforms;const r=t.program,i=r.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(t);return this.shader=t,this.program!==r&&(this.program=r,this.gl.useProgram(i.program)),n||(F_.textureCount=0,F_.uboCount=0,this.syncUniformGroup(t.uniformGroup,F_)),i}setUniforms(t){const n=this.shader.program,r=n.glPrograms[this.renderer.CONTEXT_UID];n.syncUniforms(r.uniformData,t,this.renderer)}syncUniformGroup(t,n){const r=this.getGlProgram();(!t.static||t.dirtyId!==r.uniformDirtyGroups[t.id])&&(r.uniformDirtyGroups[t.id]=t.dirtyId,this.syncUniforms(t,r,n))}syncUniforms(t,n,r){(t.syncUniforms[this.shader.program.id]||this.createSyncGroups(t))(n.uniformData,t.uniforms,this.renderer,r)}createSyncGroups(t){const n=this.getSignature(t,this.shader.program.uniformData,"u");return this.cache[n]||(this.cache[n]=j4e(t,this.shader.program.uniformData)),t.syncUniforms[this.shader.program.id]=this.cache[n],t.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(t,n){const r=this.getGlProgram();if(!t.static||t.dirtyId!==0||!r.uniformGroups[t.id]){t.dirtyId=0;const i=r.uniformGroups[t.id]||this.createSyncBufferGroup(t,r,n);t.buffer.update(),i(r.uniformData,t.uniforms,this.renderer,F_,t.buffer)}this.renderer.buffer.bindBufferBase(t.buffer,r.uniformBufferBindings[n])}createSyncBufferGroup(t,n,r){const{gl:i}=this.renderer;this.renderer.buffer.bind(t.buffer);const o=this.gl.getUniformBlockIndex(n.program,r);n.uniformBufferBindings[r]=this.shader.uniformBindCount,i.uniformBlockBinding(n.program,o,this.shader.uniformBindCount),this.shader.uniformBindCount++;const s=this.getSignature(t,this.shader.program.uniformData,"ubo");let l=this._uboCache[s];if(l||(l=this._uboCache[s]=xze(t,this.shader.program.uniformData)),t.autoManage){const c=new Float32Array(l.size/4);t.buffer.update(c)}return n.uniformGroups[t.id]=l.syncFunc,n.uniformGroups[t.id]}getSignature(t,n,r){const i=t.uniforms,o=[`${r}-`];for(const s in i)o.push(s),n[s]&&o.push(n[s].type);return o.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(t){const n=this.gl,r=t.program,i=mze(n,r);return r.glPrograms[this.renderer.CONTEXT_UID]=i,i}reset(){this.program=null,this.shader=null}disposeShader(t){this.shader===t&&(this.shader=null)}destroy(){this.renderer=null,this.destroyed=!0}}ene.extension={type:rt.RendererSystem,name:"shader"};bt.add(ene);class zk{constructor(t){this.renderer=t}run(t){const{renderer:n}=this;n.runners.init.emit(n.options),t.hello&&console.log(`PixiJS 7.2.4 - ${n.rendererLogId} - https://pixijs.com`),n.resize(n.screen.width,n.screen.height)}destroy(){}}zk.defaultOptions={hello:!1};zk.extension={type:[rt.RendererSystem,rt.CanvasRendererSystem],name:"startup"};bt.add(zk);function _ze(e,t=[]){return t[Mt.NORMAL]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.ADD]=[e.ONE,e.ONE],t[Mt.MULTIPLY]=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.SCREEN]=[e.ONE,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.OVERLAY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.DARKEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.LIGHTEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.COLOR_DODGE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.COLOR_BURN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.HARD_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.SOFT_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.DIFFERENCE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.EXCLUSION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.HUE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.SATURATION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.COLOR]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.LUMINOSITY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.NONE]=[0,0],t[Mt.NORMAL_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.ADD_NPM]=[e.SRC_ALPHA,e.ONE,e.ONE,e.ONE],t[Mt.SCREEN_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Mt.SRC_IN]=[e.DST_ALPHA,e.ZERO],t[Mt.SRC_OUT]=[e.ONE_MINUS_DST_ALPHA,e.ZERO],t[Mt.SRC_ATOP]=[e.DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[Mt.DST_OVER]=[e.ONE_MINUS_DST_ALPHA,e.ONE],t[Mt.DST_IN]=[e.ZERO,e.SRC_ALPHA],t[Mt.DST_OUT]=[e.ZERO,e.ONE_MINUS_SRC_ALPHA],t[Mt.DST_ATOP]=[e.ONE_MINUS_DST_ALPHA,e.SRC_ALPHA],t[Mt.XOR]=[e.ONE_MINUS_DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[Mt.SUBTRACT]=[e.ONE,e.ONE,e.ONE,e.ONE,e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD],t}const Sze=0,Eze=1,Cze=2,Tze=3,kze=4,Aze=5,O3=class{constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=Mt.NONE,this._blendEq=!1,this.map=[],this.map[Sze]=this.setBlend,this.map[Eze]=this.setOffset,this.map[Cze]=this.setCullFace,this.map[Tze]=this.setDepthTest,this.map[kze]=this.setFrontFace,this.map[Aze]=this.setDepthMask,this.checks=[],this.defaultState=new Du,this.defaultState.blend=!0}contextChange(e){this.gl=e,this.blendModes=_ze(e),this.set(this.defaultState),this.reset()}set(e){if(e=e||this.defaultState,this.stateId!==e.data){let t=this.stateId^e.data,n=0;for(;t;)t&1&&this.map[n].call(this,!!(e.data&1<>1,n++;this.stateId=e.data}for(let t=0;tt.systems[i]),r=[...n,...Object.keys(t.systems).filter(i=>!n.includes(i))];for(const i of r)this.addSystem(t.systems[i],i)}addRunners(...t){t.forEach(n=>{this.runners[n]=new ll(n)})}addSystem(t,n){const r=new t(this);if(this[n])throw new Error(`Whoops! The name "${n}" is already in use`);this[n]=r,this._systemsHash[n]=r;for(const i in this.runners)this.runners[i].add(r);return this}emitWithCustomOptions(t,n){const r=Object.keys(this._systemsHash);t.items.forEach(i=>{const o=r.find(s=>this._systemsHash[s]===i);i[t.name](n[o])})}destroy(){Object.values(this.runners).forEach(t=>{t.destroy()}),this._systemsHash={}}}const zS=class{constructor(e){this.renderer=e,this.count=0,this.checkCount=0,this.maxIdle=zS.defaultMaxIdle,this.checkCountMax=zS.defaultCheckCountMax,this.mode=zS.defaultMode}postrender(){this.renderer.objectRenderer.renderingToScreen&&(this.count++,this.mode!==dj.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))}run(){const e=this.renderer.texture,t=e.managedTextures;let n=!1;for(let r=0;rthis.maxIdle&&(e.destroyTexture(i,!0),t[r]=null,n=!0)}if(n){let r=0;for(let i=0;i=0;r--)this.unload(e.children[r])}destroy(){this.renderer=null}};let Ka=zS;Ka.defaultMode=dj.AUTO;Ka.defaultMaxIdle=60*60;Ka.defaultCheckCountMax=60*10;Ka.extension={type:rt.RendererSystem,name:"textureGC"};bt.add(Ka);class lB{constructor(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=It.UNSIGNED_BYTE,this.internalFormat=Ge.RGBA,this.samplerType=0}}function Ize(e){let t;return"WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?t={[It.UNSIGNED_BYTE]:{[Ge.RGBA]:e.RGBA8,[Ge.RGB]:e.RGB8,[Ge.RG]:e.RG8,[Ge.RED]:e.R8,[Ge.RGBA_INTEGER]:e.RGBA8UI,[Ge.RGB_INTEGER]:e.RGB8UI,[Ge.RG_INTEGER]:e.RG8UI,[Ge.RED_INTEGER]:e.R8UI,[Ge.ALPHA]:e.ALPHA,[Ge.LUMINANCE]:e.LUMINANCE,[Ge.LUMINANCE_ALPHA]:e.LUMINANCE_ALPHA},[It.BYTE]:{[Ge.RGBA]:e.RGBA8_SNORM,[Ge.RGB]:e.RGB8_SNORM,[Ge.RG]:e.RG8_SNORM,[Ge.RED]:e.R8_SNORM,[Ge.RGBA_INTEGER]:e.RGBA8I,[Ge.RGB_INTEGER]:e.RGB8I,[Ge.RG_INTEGER]:e.RG8I,[Ge.RED_INTEGER]:e.R8I},[It.UNSIGNED_SHORT]:{[Ge.RGBA_INTEGER]:e.RGBA16UI,[Ge.RGB_INTEGER]:e.RGB16UI,[Ge.RG_INTEGER]:e.RG16UI,[Ge.RED_INTEGER]:e.R16UI,[Ge.DEPTH_COMPONENT]:e.DEPTH_COMPONENT16},[It.SHORT]:{[Ge.RGBA_INTEGER]:e.RGBA16I,[Ge.RGB_INTEGER]:e.RGB16I,[Ge.RG_INTEGER]:e.RG16I,[Ge.RED_INTEGER]:e.R16I},[It.UNSIGNED_INT]:{[Ge.RGBA_INTEGER]:e.RGBA32UI,[Ge.RGB_INTEGER]:e.RGB32UI,[Ge.RG_INTEGER]:e.RG32UI,[Ge.RED_INTEGER]:e.R32UI,[Ge.DEPTH_COMPONENT]:e.DEPTH_COMPONENT24},[It.INT]:{[Ge.RGBA_INTEGER]:e.RGBA32I,[Ge.RGB_INTEGER]:e.RGB32I,[Ge.RG_INTEGER]:e.RG32I,[Ge.RED_INTEGER]:e.R32I},[It.FLOAT]:{[Ge.RGBA]:e.RGBA32F,[Ge.RGB]:e.RGB32F,[Ge.RG]:e.RG32F,[Ge.RED]:e.R32F,[Ge.DEPTH_COMPONENT]:e.DEPTH_COMPONENT32F},[It.HALF_FLOAT]:{[Ge.RGBA]:e.RGBA16F,[Ge.RGB]:e.RGB16F,[Ge.RG]:e.RG16F,[Ge.RED]:e.R16F},[It.UNSIGNED_SHORT_5_6_5]:{[Ge.RGB]:e.RGB565},[It.UNSIGNED_SHORT_4_4_4_4]:{[Ge.RGBA]:e.RGBA4},[It.UNSIGNED_SHORT_5_5_5_1]:{[Ge.RGBA]:e.RGB5_A1},[It.UNSIGNED_INT_2_10_10_10_REV]:{[Ge.RGBA]:e.RGB10_A2,[Ge.RGBA_INTEGER]:e.RGB10_A2UI},[It.UNSIGNED_INT_10F_11F_11F_REV]:{[Ge.RGB]:e.R11F_G11F_B10F},[It.UNSIGNED_INT_5_9_9_9_REV]:{[Ge.RGB]:e.RGB9_E5},[It.UNSIGNED_INT_24_8]:{[Ge.DEPTH_STENCIL]:e.DEPTH24_STENCIL8},[It.FLOAT_32_UNSIGNED_INT_24_8_REV]:{[Ge.DEPTH_STENCIL]:e.DEPTH32F_STENCIL8}}:t={[It.UNSIGNED_BYTE]:{[Ge.RGBA]:e.RGBA,[Ge.RGB]:e.RGB,[Ge.ALPHA]:e.ALPHA,[Ge.LUMINANCE]:e.LUMINANCE,[Ge.LUMINANCE_ALPHA]:e.LUMINANCE_ALPHA},[It.UNSIGNED_SHORT_5_6_5]:{[Ge.RGB]:e.RGB},[It.UNSIGNED_SHORT_4_4_4_4]:{[Ge.RGBA]:e.RGBA},[It.UNSIGNED_SHORT_5_5_5_1]:{[Ge.RGBA]:e.RGBA}},t}class nne{constructor(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new Vt,this.hasIntegerTextures=!1}contextChange(){const t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=Ize(t);const n=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=n;for(let i=0;i=0;--o){const s=n[o];s&&s._glTextures[i].samplerType!==c3.FLOAT&&this.renderer.texture.unbind(s)}}initTexture(t){const n=new lB(this.gl.createTexture());return n.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=n,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),n}initTextureType(t,n){var r;n.internalFormat=((r=this.internalFormats[t.type])==null?void 0:r[t.format])??t.format,this.webGLVersion===2&&t.type===It.HALF_FLOAT?n.type=this.gl.HALF_FLOAT:n.type=t.type}updateTexture(t){var i;const n=t._glTextures[this.CONTEXT_UID];if(!n)return;const r=this.renderer;if(this.initTextureType(t,n),(i=t.resource)!=null&&i.upload(r,t,n))n.samplerType!==c3.FLOAT&&(this.hasIntegerTextures=!0);else{const o=t.realWidth,s=t.realHeight,l=r.gl;(n.width!==o||n.height!==s||n.dirtyId<0)&&(n.width=o,n.height=s,l.texImage2D(t.target,0,n.internalFormat,o,s,0,t.format,n.type,null))}t.dirtyStyleId!==n.dirtyStyleId&&this.updateTextureStyle(t),n.dirtyId=t.dirtyId}destroyTexture(t,n){const{gl:r}=this;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),r.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!n)){const i=this.managedTextures.indexOf(t);i!==-1&&rg(this.managedTextures,i,1)}}updateTextureStyle(t){var r;const n=t._glTextures[this.CONTEXT_UID];n&&((t.mipmap===Yl.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?n.mipmap=!1:n.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?n.wrapMode=Ad.CLAMP:n.wrapMode=t.wrapMode,(r=t.resource)!=null&&r.style(this.renderer,t,n)||this.setStyle(t,n),n.dirtyStyleId=t.dirtyStyleId)}setStyle(t,n){const r=this.gl;if(n.mipmap&&t.mipmap!==Yl.ON_MANUAL&&r.generateMipmap(t.target),r.texParameteri(t.target,r.TEXTURE_WRAP_S,n.wrapMode),r.texParameteri(t.target,r.TEXTURE_WRAP_T,n.wrapMode),n.mipmap){r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===cu.LINEAR?r.LINEAR_MIPMAP_LINEAR:r.NEAREST_MIPMAP_NEAREST);const i=this.renderer.context.extensions.anisotropicFiltering;if(i&&t.anisotropicLevel>0&&t.scaleMode===cu.LINEAR){const o=Math.min(t.anisotropicLevel,r.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT));r.texParameterf(t.target,i.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===cu.LINEAR?r.LINEAR:r.NEAREST);r.texParameteri(t.target,r.TEXTURE_MAG_FILTER,t.scaleMode===cu.LINEAR?r.LINEAR:r.NEAREST)}destroy(){this.renderer=null}}nne.extension={type:rt.RendererSystem,name:"texture"};bt.add(nne);class rne{constructor(t){this.renderer=t}contextChange(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glTransformFeedbacks[r]||this.createGLTransformFeedback(t);n.bindTransformFeedback(n.TRANSFORM_FEEDBACK,i)}unbind(){const{gl:t}=this;t.bindTransformFeedback(t.TRANSFORM_FEEDBACK,null)}beginTransformFeedback(t,n){const{gl:r,renderer:i}=this;n&&i.shader.bind(n),r.beginTransformFeedback(t)}endTransformFeedback(){const{gl:t}=this;t.endTransformFeedback()}createGLTransformFeedback(t){const{gl:n,renderer:r,CONTEXT_UID:i}=this,o=n.createTransformFeedback();t._glTransformFeedbacks[i]=o,n.bindTransformFeedback(n.TRANSFORM_FEEDBACK,o);for(let s=0;s(e[e.INTERACTION=50]="INTERACTION",e[e.HIGH=25]="HIGH",e[e.NORMAL=0]="NORMAL",e[e.LOW=-25]="LOW",e[e.UTILITY=-50]="UTILITY",e))(Sp||{});class cB{constructor(t,n=null,r=0,i=!1){this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=n,this.priority=r,this.once=i}match(t,n=null){return this.fn===t&&this.context===n}emit(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));const n=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),n}connect(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this}destroy(t=!1){this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);const n=this.next;return this.next=t?null:n,this.previous=null,n}}const ms=class{constructor(){this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new cB(null,null,1/0),this.deltaMS=1/ms.targetFPMS,this.elapsedMS=1/ms.targetFPMS,this._tick=e=>{this._requestId=null,this.started&&(this.update(e),this.started&&this._requestId===null&&this._head.next&&(this._requestId=requestAnimationFrame(this._tick)))}}_requestIfNeeded(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))}_cancelIfNeeded(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)}_startIfPossible(){this.started?this._requestIfNeeded():this.autoStart&&this.start()}add(e,t,n=Sp.NORMAL){return this._addListener(new cB(e,t,n))}addOnce(e,t,n=Sp.NORMAL){return this._addListener(new cB(e,t,n,!0))}_addListener(e){let t=this._head.next,n=this._head;if(!t)e.connect(n);else{for(;t;){if(e.priority>t.priority){e.connect(n);break}n=t,t=t.next}e.previous||e.connect(n)}return this._startIfPossible(),this}remove(e,t){let n=this._head.next;for(;n;)n.match(e,t)?n=n.destroy():n=n.next;return this._head.next||this._cancelIfNeeded(),this}get count(){if(!this._head)return 0;let e=0,t=this._head;for(;t=t.next;)e++;return e}start(){this.started||(this.started=!0,this._requestIfNeeded())}stop(){this.started&&(this.started=!1,this._cancelIfNeeded())}destroy(){if(!this._protected){this.stop();let e=this._head.next;for(;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}}update(e=performance.now()){let t;if(e>this.lastTime){if(t=this.elapsedMS=e-this.lastTime,t>this._maxElapsedMS&&(t=this._maxElapsedMS),t*=this.speed,this._minElapsedMS){const i=e-this._lastFrame|0;if(i{this._ticker.stop()},this.start=()=>{this._ticker.start()},this._ticker=null,this.ticker=t.sharedTicker?Xr.shared:new Xr,t.autoStart&&this.start()}static destroy(){if(this._ticker){const t=this._ticker;this.ticker=null,t.destroy()}}}ine.extension=rt.Application;bt.add(ine);const one=[];bt.handleByList(rt.Renderer,one);function Pze(e){for(const t of one)if(t.test(e))return new t(e);throw new Error("Unable to auto-detect a suitable renderer.")}var Oze=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -1056,7 +1056,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,Rze=`attribute vec2 aVertexPosition; +}`,Mze=`attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; @@ -1082,7 +1082,7 @@ void main(void) gl_Position = filterVertexPosition(); vTextureCoord = filterTextureCoord(); } -`;const Pze=Ize,tne=Rze;class nne{constructor(t){this.renderer=t}contextChange(t){let n;if(this.renderer.context.webGLVersion===1){const r=t.getParameter(t.FRAMEBUFFER_BINDING);t.bindFramebuffer(t.FRAMEBUFFER,null),n=t.getParameter(t.SAMPLES),t.bindFramebuffer(t.FRAMEBUFFER,r)}else{const r=t.getParameter(t.DRAW_FRAMEBUFFER_BINDING);t.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),n=t.getParameter(t.SAMPLES),t.bindFramebuffer(t.DRAW_FRAMEBUFFER,r)}n>=Gr.HIGH?this.multisample=Gr.HIGH:n>=Gr.MEDIUM?this.multisample=Gr.MEDIUM:n>=Gr.LOW?this.multisample=Gr.LOW:this.multisample=Gr.NONE}destroy(){}}nne.extension={type:rt.RendererSystem,name:"_multisample"};bt.add(nne);class Oze{constructor(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class rne{constructor(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}destroy(){this.renderer=null}contextChange(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glBuffers[r]||this.createGLBuffer(t);n.bindBuffer(t.type,i.buffer)}unbind(t){const{gl:n}=this;n.bindBuffer(t,null)}bindBufferBase(t,n){const{gl:r,CONTEXT_UID:i}=this;if(this.boundBufferBases[n]!==t){const o=t._glBuffers[i]||this.createGLBuffer(t);this.boundBufferBases[n]=t,r.bindBufferBase(r.UNIFORM_BUFFER,n,o.buffer)}}bindBufferRange(t,n,r){const{gl:i,CONTEXT_UID:o}=this;r=r||0;const s=t._glBuffers[o]||this.createGLBuffer(t);i.bindBufferRange(i.UNIFORM_BUFFER,n||0,s.buffer,r*256,256)}update(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glBuffers[r]||this.createGLBuffer(t);if(t._updateID!==i.updateID)if(i.updateID=t._updateID,n.bindBuffer(t.type,i.buffer),i.byteLength>=t.data.byteLength)n.bufferSubData(t.type,0,t.data);else{const o=t.static?n.STATIC_DRAW:n.DYNAMIC_DRAW;i.byteLength=t.data.byteLength,n.bufferData(t.type,t.data,o)}}dispose(t,n){if(!this.managedBuffers[t.id])return;delete this.managedBuffers[t.id];const r=t._glBuffers[this.CONTEXT_UID],i=this.gl;t.disposeRunner.remove(this),r&&(n||i.deleteBuffer(r.buffer),delete t._glBuffers[this.CONTEXT_UID])}disposeAll(t){const n=Object.keys(this.managedBuffers);for(let r=0;rr.resource).filter(r=>r).map(r=>r.load());return this._load=Promise.all(n).then(()=>{const{realWidth:r,realHeight:i}=this.items[0];return this.resize(r,i),Promise.resolve(this)}),this._load}}class Mze extends one{constructor(t,n){const{width:r,height:i}=n||{};let o,s;Array.isArray(t)?(o=t,s=t.length):s=t,super(s,{width:r,height:i}),o&&this.initFromArray(o,n)}addBaseTextureAt(t,n){if(t.resource)this.addResourceAt(t.resource,n);else throw new Error("ArrayResource does not support RenderTexture");return this}bind(t){super.bind(t),t.target=Qm.TEXTURE_2D_ARRAY}upload(t,n,r){const{length:i,itemDirtyIds:o,items:s}=this,{gl:l}=t;r.dirtyId<0&&l.texImage3D(l.TEXTURE_2D_ARRAY,0,r.internalFormat,this._width,this._height,i,0,n.format,r.type,null);for(let c=0;c0)if(e.resource)this.addResourceAt(e.resource,t);else throw new Error("CubeResource does not support copying of renderTexture.");else e.target=Qm.TEXTURE_CUBE_MAP_POSITIVE_X+t,e.parentTextureArray=this.baseTexture,this.items[t]=e;return e.valid&&!this.valid&&this.resize(e.realWidth,e.realHeight),this.items[t]=e,this}upload(e,t,n){const r=this.itemDirtyIds;for(let i=0;i<$b.SIDES;i++){const o=this.items[i];(r[i]{if(this.url===null){t(this);return}try{const r=await tt.ADAPTER.fetch(this.url,{mode:this.crossOrigin?"cors":"no-cors"});if(this.destroyed)return;const i=await r.blob();if(this.destroyed)return;const o=await createImageBitmap(i,{premultiplyAlpha:this.alphaMode===null||this.alphaMode===gl.UNPACK?"premultiply":"none"});if(this.destroyed)return;this.source=o,this.update(),t(this)}catch(r){if(this.destroyed)return;n(r),this.onError.emit(r)}}),this._load)}upload(t,n,r){return this.source instanceof ImageBitmap?(typeof this.alphaMode=="number"&&(n.alphaMode=this.alphaMode),super.upload(t,n,r)):(this.load(),!1)}dispose(){this.source instanceof ImageBitmap&&this.source.close(),super.dispose(),this._load=null}static test(t){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&(typeof t=="string"||t instanceof ImageBitmap)}static get EMPTY(){return $m._EMPTY=$m._EMPTY??tt.ADAPTER.createCanvas(0,0),$m._EMPTY}}const zS=class extends Nd{constructor(e,t){t=t||{},super(tt.ADAPTER.createCanvas()),this._width=0,this._height=0,this.svg=e,this.scale=t.scale||1,this._overrideWidth=t.width,this._overrideHeight=t.height,this._resolve=null,this._crossorigin=t.crossorigin,this._load=null,t.autoLoad!==!1&&this.load()}load(){return this._load?this._load:(this._load=new Promise(e=>{if(this._resolve=()=>{this.resize(this.source.width,this.source.height),e(this)},zS.SVG_XML.test(this.svg.trim())){if(!btoa)throw new Error("Your browser doesn't support base64 conversions.");this.svg=`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(this.svg)))}`}this._loadSvg()}),this._load)}_loadSvg(){const e=new Image;Nd.crossOrigin(e,this.svg,this._crossorigin),e.src=this.svg,e.onerror=t=>{this._resolve&&(e.onerror=null,this.onError.emit(t))},e.onload=()=>{if(!this._resolve)return;const t=e.width,n=e.height;if(!t||!n)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");let r=t*this.scale,i=n*this.scale;(this._overrideWidth||this._overrideHeight)&&(r=this._overrideWidth||this._overrideHeight/n*t,i=this._overrideHeight||this._overrideWidth/t*n),r=Math.round(r),i=Math.round(i);const o=this.source;o.width=r,o.height=i,o._pixiId=`canvas_${xp()}`,o.getContext("2d").drawImage(e,0,0,t,n,0,0,r,i),this._resolve(),this._resolve=null}}static getSize(e){const t=zS.SVG_SIZE.exec(e),n={};return t&&(n[t[1]]=Math.round(parseFloat(t[3])),n[t[5]]=Math.round(parseFloat(t[7]))),n}dispose(){super.dispose(),this._resolve=null,this._crossorigin=null}static test(e,t){return t==="svg"||typeof e=="string"&&e.startsWith("data:image/svg+xml")||typeof e=="string"&&zS.SVG_XML.test(e)}};let w1=zS;w1.SVG_XML=/^(<\?xml[^?]+\?>)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i;const O3=class extends Nd{constructor(e,t){if(t=t||{},!(e instanceof HTMLVideoElement)){const n=document.createElement("video");n.setAttribute("preload","auto"),n.setAttribute("webkit-playsinline",""),n.setAttribute("playsinline",""),typeof e=="string"&&(e=[e]);const r=e[0].src||e[0];Nd.crossOrigin(n,r,t.crossorigin);for(let i=0;i{this.valid?t(this):(this._resolve=t,e.load())}),this._load}_onError(e){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(e)}_isSourcePlaying(){const e=this.source;return!e.paused&&!e.ended&&this._isSourceReady()}_isSourceReady(){return this.source.readyState>2}_onPlayStart(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(Xr.shared.add(this.update,this),this._isConnectedToTicker=!0)}_onPlayStop(){this._isConnectedToTicker&&(Xr.shared.remove(this.update,this),this._isConnectedToTicker=!1)}_onCanPlay(){const e=this.source;e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay);const t=this.valid;this.resize(e.videoWidth,e.videoHeight),!t&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&e.play()}dispose(){this._isConnectedToTicker&&(Xr.shared.remove(this.update,this),this._isConnectedToTicker=!1);const e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),super.dispose()}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(Xr.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(Xr.shared.add(this.update,this),this._isConnectedToTicker=!0))}get updateFPS(){return this._updateFPS}set updateFPS(e){e!==this._updateFPS&&(this._updateFPS=e)}static test(e,t){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||O3.TYPES.includes(t)}};let _j=O3;_j.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"];_j.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};C3.push($m,Ote,Dze,_j,w1,hw,sne,Mze);class mC{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(t){return this.minX>this.maxX||this.minY>this.maxY?Kt.EMPTY:(t=t||new Kt(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)}addPoint(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)}addPointMatrix(t,n){const{a:r,b:i,c:o,d:s,tx:l,ty:c}=t,d=r*n.x+o*n.y+l,f=i*n.x+s*n.y+c;this.minX=Math.min(this.minX,d),this.maxX=Math.max(this.maxX,d),this.minY=Math.min(this.minY,f),this.maxY=Math.max(this.maxY,f)}addQuad(t){let n=this.minX,r=this.minY,i=this.maxX,o=this.maxY,s=t[0],l=t[1];n=si?s:i,o=l>o?l:o,s=t[2],l=t[3],n=si?s:i,o=l>o?l:o,s=t[4],l=t[5],n=si?s:i,o=l>o?l:o,s=t[6],l=t[7],n=si?s:i,o=l>o?l:o,this.minX=n,this.minY=r,this.maxX=i,this.maxY=o}addFrame(t,n,r,i,o){this.addFrameMatrix(t.worldTransform,n,r,i,o)}addFrameMatrix(t,n,r,i,o){const s=t.a,l=t.b,c=t.c,d=t.d,f=t.tx,h=t.ty;let p=this.minX,g=this.minY,v=this.maxX,y=this.maxY,S=s*n+c*r+f,_=l*n+d*r+h;p=Sv?S:v,y=_>y?_:y,S=s*i+c*r+f,_=l*i+d*r+h,p=Sv?S:v,y=_>y?_:y,S=s*n+c*o+f,_=l*n+d*o+h,p=Sv?S:v,y=_>y?_:y,S=s*i+c*o+f,_=l*i+d*o+h,p=Sv?S:v,y=_>y?_:y,this.minX=p,this.minY=g,this.maxX=v,this.maxY=y}addVertexData(t,n,r){let i=this.minX,o=this.minY,s=this.maxX,l=this.maxY;for(let c=n;cs?d:s,l=f>l?f:l}this.minX=i,this.minY=o,this.maxX=s,this.maxY=l}addVertices(t,n,r,i){this.addVerticesMatrix(t.worldTransform,n,r,i)}addVerticesMatrix(t,n,r,i,o=0,s=o){const l=t.a,c=t.b,d=t.c,f=t.d,h=t.tx,p=t.ty;let g=this.minX,v=this.minY,y=this.maxX,S=this.maxY;for(let _=r;_i?t.maxX:i,this.maxY=t.maxY>o?t.maxY:o}addBoundsMask(t,n){const r=t.minX>n.minX?t.minX:n.minX,i=t.minY>n.minY?t.minY:n.minY,o=t.maxXd?o:d,this.maxY=s>f?s:f}}addBoundsMatrix(t,n){this.addFrameMatrix(n,t.minX,t.minY,t.maxX,t.maxY)}addBoundsArea(t,n){const r=t.minX>n.x?t.minX:n.x,i=t.minY>n.y?t.minY:n.y,o=t.maxXd?o:d,this.maxY=s>f?s:f}}pad(t=0,n=t){this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=n,this.maxY+=n)}addFramePad(t,n,r,i,o,s){t-=o,n-=s,r+=o,i+=s,this.minX=this.minXr?this.maxX:r,this.minY=this.minYi?this.maxY:i}}class Pr extends dw{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new wj,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new mC,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(t){const n=Object.keys(t);for(let r=0;r1)for(let t=0;tthis.children.length)throw new Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${this.children.length}`);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e}swapChildren(e,t){if(e===t)return;const n=this.getChildIndex(e),r=this.getChildIndex(t);this.children[n]=t,this.children[r]=e,this.onChildrenChange(n=this.children.length)throw new Error(`The index ${t} supplied is out of bounds ${this.children.length}`);const n=this.getChildIndex(e);tg(this.children,n,1),this.children.splice(t,0,e),this.onChildrenChange(t)}getChildAt(e){if(e<0||e>=this.children.length)throw new Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]}removeChild(...e){if(e.length>1)for(let t=0;t0&&i<=r){o=this.children.splice(n,i);for(let s=0;s1&&this.children.sort(Bze),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let e=0,t=this.children.length;e0&&t.height>0))return;let n,r;this.cullArea?(n=this.cullArea,r=this.worldTransform):this._render!==M3.prototype._render&&(n=this.getBounds(!0));const i=e.projection.transform;if(i&&(r?(r=Nze.copyFrom(r),r.prepend(i)):r=i),n&&t.intersects(n,r))this._render(e);else if(this.cullArea)return;for(let o=0,s=this.children.length;ot in e?$ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Se=(e,t,n)=>(Fze(e,typeof t!="symbol"?t+"":t,n),n);let ya=class{constructor(t){Se(this,"parent"),Se(this,"paused"),this.parent=t,this.paused=!1}destroy(){}down(t){return!1}move(t){return!1}up(t){return!1}wheel(t){return!1}update(t){}resize(){}reset(){}pause(){this.paused=!0}resume(){this.paused=!1}};var zze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},ane={exports:{}};(function(e,t){(function(){var n,r;r=function(i){return e.exports=i},n={linear:function(i,o,s,l){return s*i/l+o},easeInQuad:function(i,o,s,l){return s*(i/=l)*i+o},easeOutQuad:function(i,o,s,l){return-s*(i/=l)*(i-2)+o},easeInOutQuad:function(i,o,s,l){return(i/=l/2)<1?s/2*i*i+o:-s/2*(--i*(i-2)-1)+o},easeInCubic:function(i,o,s,l){return s*(i/=l)*i*i+o},easeOutCubic:function(i,o,s,l){return s*((i=i/l-1)*i*i+1)+o},easeInOutCubic:function(i,o,s,l){return(i/=l/2)<1?s/2*i*i*i+o:s/2*((i-=2)*i*i+2)+o},easeInQuart:function(i,o,s,l){return s*(i/=l)*i*i*i+o},easeOutQuart:function(i,o,s,l){return-s*((i=i/l-1)*i*i*i-1)+o},easeInOutQuart:function(i,o,s,l){return(i/=l/2)<1?s/2*i*i*i*i+o:-s/2*((i-=2)*i*i*i-2)+o},easeInQuint:function(i,o,s,l){return s*(i/=l)*i*i*i*i+o},easeOutQuint:function(i,o,s,l){return s*((i=i/l-1)*i*i*i*i+1)+o},easeInOutQuint:function(i,o,s,l){return(i/=l/2)<1?s/2*i*i*i*i*i+o:s/2*((i-=2)*i*i*i*i+2)+o},easeInSine:function(i,o,s,l){return-s*Math.cos(i/l*(Math.PI/2))+s+o},easeOutSine:function(i,o,s,l){return s*Math.sin(i/l*(Math.PI/2))+o},easeInOutSine:function(i,o,s,l){return-s/2*(Math.cos(Math.PI*i/l)-1)+o},easeInExpo:function(i,o,s,l){return i===0?o:s*Math.pow(2,10*(i/l-1))+o},easeOutExpo:function(i,o,s,l){return i===l?o+s:s*(-Math.pow(2,-10*i/l)+1)+o},easeInOutExpo:function(i,o,s,l){return(i/=l/2)<1?s/2*Math.pow(2,10*(i-1))+o:s/2*(-Math.pow(2,-10*--i)+2)+o},easeInCirc:function(i,o,s,l){return-s*(Math.sqrt(1-(i/=l)*i)-1)+o},easeOutCirc:function(i,o,s,l){return s*Math.sqrt(1-(i=i/l-1)*i)+o},easeInOutCirc:function(i,o,s,l){return(i/=l/2)<1?-s/2*(Math.sqrt(1-i*i)-1)+o:s/2*(Math.sqrt(1-(i-=2)*i)+1)+o},easeInElastic:function(i,o,s,l){var c,d,f;return f=1.70158,d=0,c=s,i===0||(i/=l),d||(d=l*.3),c=this.options.time){const r=this.parent.width,i=this.parent.height;this.complete(),(r!==this.parent.width||i!==this.parent.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:n,type:"animate"})}else{const r=this.options.ease(this.time,0,1,this.options.time);if(this.width!==null){const i=this.startWidth,o=this.deltaWidth;this.parent.fitWidth(i+o*r,this.keepCenter,this.height===null)}if(this.height!==null){const i=this.startHeight,o=this.deltaHeight;this.parent.fitHeight(i+o*r,this.keepCenter,this.width===null)}if(this.width===null?this.parent.scale.x=this.parent.scale.y:this.height===null&&(this.parent.scale.y=this.parent.scale.x),!this.keepCenter){const i=this.startX,o=this.startY,s=this.deltaX,l=this.deltaY,c=new Ot(this.parent.x,this.parent.y);this.parent.moveCenter(i+s*r,o+l*r),this.parent.emit("moved",{viewport:this.parent,original:c,type:"animate"})}(this.width||this.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:n,type:"animate"})}}};const Hze={sides:"all",friction:.5,time:150,ease:"easeInOutSine",underflow:"center",bounceBox:null};let Wze=class extends ya{constructor(t,n={}){super(t),Se(this,"options"),Se(this,"left"),Se(this,"top"),Se(this,"right"),Se(this,"bottom"),Se(this,"underflowX"),Se(this,"underflowY"),Se(this,"ease"),Se(this,"toX"),Se(this,"toY"),this.options=Object.assign({},Hze,n),this.ease=zk(this.options.ease,"easeInOutSine"),this.options.sides?this.options.sides==="all"?this.top=this.bottom=this.left=this.right=!0:this.options.sides==="horizontal"?(this.right=this.left=!0,this.top=this.bottom=!1):this.options.sides==="vertical"?(this.left=this.right=!1,this.top=this.bottom=!0):(this.top=this.options.sides.indexOf("top")!==-1,this.bottom=this.options.sides.indexOf("bottom")!==-1,this.left=this.options.sides.indexOf("left")!==-1,this.right=this.options.sides.indexOf("right")!==-1):this.left=this.top=this.right=this.bottom=!1;const r=this.options.underflow.toLowerCase();r==="center"?(this.underflowX=0,this.underflowY=0):(this.underflowX=r.indexOf("left")!==-1?-1:r.indexOf("right")!==-1?1:0,this.underflowY=r.indexOf("top")!==-1?-1:r.indexOf("bottom")!==-1?1:0),this.reset()}isActive(){return this.toX!==null||this.toY!==null}down(){return this.toX=this.toY=null,!1}up(){return this.bounce(),!1}update(t){if(!this.paused){if(this.bounce(),this.toX){const n=this.toX;n.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-x"}),n.time>=this.options.time?(this.parent.x=n.end,this.toX=null,this.parent.emit("bounce-x-end",this.parent)):this.parent.x=this.ease(n.time,n.start,n.delta,this.options.time)}if(this.toY){const n=this.toY;n.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-y"}),n.time>=this.options.time?(this.parent.y=n.end,this.toY=null,this.parent.emit("bounce-y-end",this.parent)):this.parent.y=this.ease(n.time,n.start,n.delta,this.options.time)}}}calcUnderflowX(){let t;switch(this.underflowX){case-1:t=0;break;case 1:t=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:t=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}return t}calcUnderflowY(){let t;switch(this.underflowY){case-1:t=0;break;case 1:t=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:t=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}return t}oob(){const t=this.options.bounceBox;if(t){const n=typeof t.x>"u"?0:t.x,r=typeof t.y>"u"?0:t.y,i=typeof t.width>"u"?this.parent.worldWidth:t.width,o=typeof t.height>"u"?this.parent.worldHeight:t.height;return{left:this.parent.lefti,top:this.parent.topo,topLeft:new Ot(n*this.parent.scale.x,r*this.parent.scale.y),bottomRight:new Ot(i*this.parent.scale.x-this.parent.screenWidth,o*this.parent.scale.y-this.parent.screenHeight)}}return{left:this.parent.left<0,right:this.parent.right>this.parent.worldWidth,top:this.parent.top<0,bottom:this.parent.bottom>this.parent.worldHeight,topLeft:new Ot(0,0),bottomRight:new Ot(this.parent.worldWidth*this.parent.scale.x-this.parent.screenWidth,this.parent.worldHeight*this.parent.scale.y-this.parent.screenHeight)}}bounce(){var t,n;if(this.paused)return;let r,i=this.parent.plugins.get("decelerate",!0);i&&(i.x||i.y)&&(i.x&&i.percentChangeX===((t=i.options)==null?void 0:t.friction)||i.y&&i.percentChangeY===((n=i.options)==null?void 0:n.friction))&&(r=this.oob(),(r.left&&this.left||r.right&&this.right)&&(i.percentChangeX=this.options.friction),(r.top&&this.top||r.bottom&&this.bottom)&&(i.percentChangeY=this.options.friction));const o=this.parent.plugins.get("drag",!0)||{},s=this.parent.plugins.get("pinch",!0)||{};if(i=i||{},!(o!=null&&o.active)&&!(s!=null&&s.active)&&(!this.toX||!this.toY)&&(!i.x||!i.y)){r=r||this.oob();const l=r.topLeft,c=r.bottomRight;if(!this.toX&&!i.x){let d=null;r.left&&this.left?d=this.parent.screenWorldWidth(this.options.right===!0?this.parent.worldWidth:this.options.right)&&(this.parent.x=-(this.options.right===!0?this.parent.worldWidth:this.options.right)*this.parent.scale.x+this.parent.screenWidth,n.x=0,r=!0);r&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-x"})}if(this.options.top!==null||this.options.bottom!==null){let r=!1;if(!this.noUnderflow&&this.parent.screenWorldHeight(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)&&(this.parent.y=-(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)*this.parent.scale.y+this.parent.screenHeight,n.y=0,r=!0);r&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-y"})}this.last.x=this.parent.x,this.last.y=this.parent.y,this.last.scaleX=this.parent.scale.x,this.last.scaleY=this.parent.scale.y}reset(){this.update()}};const qze={minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,minScale:null,maxScale:null};let Xze=class extends ya{constructor(t,n={}){super(t),Se(this,"options"),this.options=Object.assign({},qze,n),this.clamp()}resize(){this.clamp()}clamp(){if(!this.paused){if(this.options.minWidth||this.options.minHeight||this.options.maxWidth||this.options.maxHeight){let t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight;if(this.options.minWidth!==null&&tthis.options.maxWidth){const r=this.parent.scale.x;this.parent.fitWidth(this.options.maxWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/r,t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}if(this.options.minHeight!==null&&nthis.options.maxHeight){const r=this.parent.scale.y;this.parent.fitHeight(this.options.maxHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/r,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}}else if(this.options.minScale||this.options.maxScale){const t={x:null,y:null},n={x:null,y:null};if(typeof this.options.minScale=="number")t.x=this.options.minScale,t.y=this.options.minScale;else if(this.options.minScale!==null){const o=this.options.minScale;t.x=typeof o.x>"u"?null:o.x,t.y=typeof o.y>"u"?null:o.y}if(typeof this.options.maxScale=="number")n.x=this.options.maxScale,n.y=this.options.maxScale;else if(this.options.maxScale!==null){const o=this.options.maxScale;n.x=typeof o.x>"u"?null:o.x,n.y=typeof o.y>"u"?null:o.y}let r=this.parent.scale.x,i=this.parent.scale.y;t.x!==null&&rn.x&&(r=n.x),t.y!==null&&in.y&&(i=n.y),(r!==this.parent.scale.x||i!==this.parent.scale.y)&&(this.parent.scale.set(r,i),this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"}))}}}reset(){this.clamp()}};const Yze={friction:.98,bounce:.8,minSpeed:.01},$u=16;let Kze=class extends ya{constructor(t,n={}){super(t),Se(this,"options"),Se(this,"x"),Se(this,"y"),Se(this,"percentChangeX"),Se(this,"percentChangeY"),Se(this,"saved"),Se(this,"timeSinceRelease"),this.options=Object.assign({},Yze,n),this.saved=[],this.timeSinceRelease=0,this.reset(),this.parent.on("moved",r=>this.handleMoved(r))}down(){return this.saved=[],this.x=this.y=null,!1}isActive(){return!!(this.x||this.y)}move(){if(this.paused)return!1;const t=this.parent.input.count();return(t===1||t>1&&!this.parent.plugins.get("pinch",!0))&&(this.saved.push({x:this.parent.x,y:this.parent.y,time:performance.now()}),this.saved.length>60&&this.saved.splice(0,30)),!1}handleMoved(t){if(this.saved.length){const n=this.saved[this.saved.length-1];t.type==="clamp-x"&&t.original?n.x===t.original.x&&(n.x=this.parent.x):t.type==="clamp-y"&&t.original&&n.y===t.original.y&&(n.y=this.parent.y)}}up(){if(this.parent.input.count()===0&&this.saved.length){const t=performance.now();for(const n of this.saved)if(n.time>=t-100){const r=t-n.time;this.x=(this.parent.x-n.x)/r,this.y=(this.parent.y-n.y)/r,this.percentChangeX=this.percentChangeY=this.options.friction,this.timeSinceRelease=0;break}}return!1}activate(t){t=t||{},typeof t.x<"u"&&(this.x=t.x,this.percentChangeX=this.options.friction),typeof t.y<"u"&&(this.y=t.y,this.percentChangeY=this.options.friction)}update(t){if(this.paused)return;const n=this.x||this.y,r=this.timeSinceRelease,i=this.timeSinceRelease+t;if(this.x){const o=this.percentChangeX,s=Math.log(o);this.parent.x+=this.x*$u/s*(Math.pow(o,i/$u)-Math.pow(o,r/$u)),this.x*=Math.pow(this.percentChangeX,t/$u)}if(this.y){const o=this.percentChangeY,s=Math.log(o);this.parent.y+=this.y*$u/s*(Math.pow(o,i/$u)-Math.pow(o,r/$u)),this.y*=Math.pow(this.percentChangeY,t/$u)}this.timeSinceRelease+=t,this.x&&this.y?Math.abs(this.x){t.includes(i.code)&&(this.keyIsPressed=!0)},r=i=>{t.includes(i.code)&&(this.keyIsPressed=!1)};this.addWindowEventHandler("keyup",r),this.addWindowEventHandler("keydown",n)}addWindowEventHandler(t,n){window.addEventListener(t,n),this.windowEventHandlers.push({event:t,handler:n})}destroy(){this.windowEventHandlers.forEach(({event:t,handler:n})=>{window.removeEventListener(t,n)})}mouseButtons(t){!t||t==="all"?this.mouse=[!0,!0,!0]:this.mouse=[t.indexOf("left")!==-1,t.indexOf("middle")!==-1,t.indexOf("right")!==-1]}parseUnderflow(){const t=this.options.underflow.toLowerCase();t==="center"?(this.underflowX=0,this.underflowY=0):(t.includes("left")?this.underflowX=-1:t.includes("right")?this.underflowX=1:this.underflowX=0,t.includes("top")?this.underflowY=-1:t.includes("bottom")?this.underflowY=1:this.underflowY=0)}checkButtons(t){const n=t.pointerType==="mouse",r=this.parent.input.count();return!!((r===1||r>1&&!this.parent.plugins.get("pinch",!0))&&(!n||this.mouse[t.button]))}checkKeyPress(t){return!this.options.keyToPress||this.keyIsPressed||this.options.ignoreKeyToPressOnTouch&&t.data.pointerType==="touch"}down(t){return this.paused||!this.options.pressDrag?!1:this.checkButtons(t)&&this.checkKeyPress(t)?(this.last={x:t.global.x,y:t.global.y},this.current=t.pointerId,!0):(this.last=null,!1)}get active(){return this.moved}move(t){if(this.paused||!this.options.pressDrag)return!1;if(this.last&&this.current===t.data.pointerId){const n=t.global.x,r=t.global.y,i=this.parent.input.count();if(i===1||i>1&&!this.parent.plugins.get("pinch",!0)){const o=n-this.last.x,s=r-this.last.y;if(this.moved||this.xDirection&&this.parent.input.checkThreshold(o)||this.yDirection&&this.parent.input.checkThreshold(s)){const l={x:n,y:r};return this.xDirection&&(this.parent.x+=(l.x-this.last.x)*this.options.factor),this.yDirection&&(this.parent.y+=(l.y-this.last.y)*this.options.factor),this.last=l,this.moved||this.parent.emit("drag-start",{event:t,screen:new Ot(this.last.x,this.last.y),world:this.parent.toWorld(new Ot(this.last.x,this.last.y)),viewport:this.parent}),this.moved=!0,this.parent.emit("moved",{viewport:this.parent,type:"drag"}),!0}}else this.moved=!1}return!1}up(t){if(this.paused)return!1;const n=this.parent.input.touches;if(n.length===1){const r=n[0];return r.last&&(this.last={x:r.last.x,y:r.last.y},this.current=r.id),this.moved=!1,!0}else if(this.last&&this.moved){const r=new Ot(this.last.x,this.last.y);return this.parent.emit("drag-end",{event:t,screen:r,world:this.parent.toWorld(r),viewport:this.parent}),this.last=null,this.moved=!1,!0}return!1}wheel(t){if(this.paused)return!1;if(this.options.wheel){const n=this.parent.plugins.get("wheel",!0);if(!n||!n.options.wheelZoom&&!t.ctrlKey){const r=t.deltaMode?this.options.lineHeight:1,i=[t.deltaX,t.deltaY],[o,s]=this.options.wheelSwapAxes?i.reverse():i;return this.xDirection&&(this.parent.x+=o*r*this.options.wheelScroll*this.reverse),this.yDirection&&(this.parent.y+=s*r*this.options.wheelScroll*this.reverse),this.options.clampWheel&&this.clamp(),this.parent.emit("wheel-scroll",this.parent),this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.options.passiveWheel||t.preventDefault(),this.parent.options.stopPropagation&&t.stopPropagation(),!0}}return!1}resume(){this.last=null,this.paused=!1}clamp(){const t=this.parent.plugins.get("decelerate",!0)||{};if(this.options.clampWheel!=="y")if(this.parent.screenWorldWidththis.parent.worldWidth&&(this.parent.x=-this.parent.worldWidth*this.parent.scale.x+this.parent.screenWidth,t.x=0);if(this.options.clampWheel!=="x")if(this.parent.screenWorldHeightthis.parent.worldHeight&&(this.parent.y=-this.parent.worldHeight*this.parent.scale.y+this.parent.screenHeight,t.y=0)}};const Zze={speed:0,acceleration:null,radius:null};let eje=class extends ya{constructor(t,n,r={}){super(t),Se(this,"options"),Se(this,"target"),Se(this,"velocity"),this.target=n,this.options=Object.assign({},Zze,r),this.velocity={x:0,y:0}}update(t){if(this.paused)return;const n=this.parent.center;let r=this.target.x,i=this.target.y;if(this.options.radius)if(Math.sqrt(Math.pow(this.target.y-n.y,2)+Math.pow(this.target.x-n.x,2))>this.options.radius){const l=Math.atan2(this.target.y-n.y,this.target.x-n.x);r=this.target.x-Math.cos(l)*this.options.radius,i=this.target.y-Math.sin(l)*this.options.radius}else return;const o=r-n.x,s=i-n.y;if(o||s)if(this.options.speed)if(this.options.acceleration){const l=Math.atan2(i-n.y,r-n.x),c=Math.sqrt(Math.pow(o,2)+Math.pow(s,2));if(c){const d=(Math.pow(this.velocity.x,2)+Math.pow(this.velocity.y,2))/(2*this.options.acceleration);c>d?this.velocity={x:Math.min(this.velocity.x+(this.options.acceleration*t,this.options.speed)),y:Math.min(this.velocity.y+(this.options.acceleration*t,this.options.speed))}:this.velocity={x:Math.max(this.velocity.x-this.options.acceleration*this.options.speed,0),y:Math.max(this.velocity.y-this.options.acceleration*this.options.speed,0)};const f=Math.cos(l)*this.velocity.x,h=Math.sin(l)*this.velocity.y,p=Math.abs(f)>Math.abs(o)?r:n.x+f,g=Math.abs(h)>Math.abs(s)?i:n.y+h;this.parent.moveCenter(p,g),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}}else{const l=Math.atan2(i-n.y,r-n.x),c=Math.cos(l)*this.options.speed,d=Math.sin(l)*this.options.speed,f=Math.abs(c)>Math.abs(o)?r:n.x+c,h=Math.abs(d)>Math.abs(s)?i:n.y+d;this.parent.moveCenter(f,h),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}else this.parent.moveCenter(r,i),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}};const tje={radius:null,distance:null,top:null,bottom:null,left:null,right:null,speed:8,reverse:!1,noDecelerate:!1,linear:!1,allowButtons:!1};let nje=class extends ya{constructor(t,n={}){super(t),Se(this,"options"),Se(this,"reverse"),Se(this,"radiusSquared"),Se(this,"left"),Se(this,"top"),Se(this,"right"),Se(this,"bottom"),Se(this,"horizontal"),Se(this,"vertical"),this.options=Object.assign({},tje,n),this.reverse=this.options.reverse?1:-1,this.radiusSquared=typeof this.options.radius=="number"?Math.pow(this.options.radius,2):null,this.resize()}resize(){const t=this.options.distance;t!==null?(this.left=t,this.top=t,this.right=this.parent.screenWidth-t,this.bottom=this.parent.screenHeight-t):this.options.radius||(this.left=this.options.left,this.top=this.options.top,this.right=this.options.right===null?null:this.parent.screenWidth-this.options.right,this.bottom=this.options.bottom===null?null:this.parent.screenHeight-this.options.bottom)}down(){return this.paused||this.options.allowButtons||(this.horizontal=this.vertical=null),!1}move(t){if(this.paused||t.pointerType!=="mouse"&&t.pointerId!==1||!this.options.allowButtons&&t.buttons!==0)return!1;const n=t.global.x,r=t.global.y;if(this.radiusSquared){const i=this.parent.toScreen(this.parent.center);if(Math.pow(i.x-n,2)+Math.pow(i.y-r,2)>=this.radiusSquared){const o=Math.atan2(i.y-r,i.x-n);this.options.linear?(this.horizontal=Math.round(Math.cos(o))*this.options.speed*this.reverse*(60/1e3),this.vertical=Math.round(Math.sin(o))*this.options.speed*this.reverse*(60/1e3)):(this.horizontal=Math.cos(o)*this.options.speed*this.reverse*(60/1e3),this.vertical=Math.sin(o)*this.options.speed*this.reverse*(60/1e3))}else this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=0}else this.left!==null&&nthis.right?this.horizontal=-1*this.reverse*this.options.speed*(60/1e3):(this.decelerateHorizontal(),this.horizontal=0),this.top!==null&&rthis.bottom?this.vertical=-1*this.reverse*this.options.speed*(60/1e3):(this.decelerateVertical(),this.vertical=0);return!1}decelerateHorizontal(){const t=this.parent.plugins.get("decelerate",!0);this.horizontal&&t&&!this.options.noDecelerate&&t.activate({x:this.horizontal*this.options.speed*this.reverse/(1e3/60)})}decelerateVertical(){const t=this.parent.plugins.get("decelerate",!0);this.vertical&&t&&!this.options.noDecelerate&&t.activate({y:this.vertical*this.options.speed*this.reverse/(1e3/60)})}up(){return this.paused||(this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=null),!1}update(){if(!this.paused&&(this.horizontal||this.vertical)){const t=this.parent.center;this.horizontal&&(t.x+=this.horizontal*this.options.speed),this.vertical&&(t.y+=this.vertical*this.options.speed),this.parent.moveCenter(t),this.parent.emit("moved",{viewport:this.parent,type:"mouse-edges"})}}};const rje={noDrag:!1,percent:1,center:null,factor:1,axis:"all"};let ije=class extends ya{constructor(t,n={}){super(t),Se(this,"options"),Se(this,"active",!1),Se(this,"pinching",!1),Se(this,"moved",!1),Se(this,"lastCenter"),this.options=Object.assign({},rje,n)}down(){return this.parent.input.count()>=2?(this.active=!0,!0):!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}move(t){if(this.paused||!this.active)return!1;const n=t.global.x,r=t.global.y,i=this.parent.input.touches;if(i.length>=2){const o=i[0],s=i[1],l=o.last&&s.last?Math.sqrt(Math.pow(s.last.x-o.last.x,2)+Math.pow(s.last.y-o.last.y,2)):null;if(o.id===t.pointerId?o.last={x:n,y:r,data:t}:s.id===t.pointerId&&(s.last={x:n,y:r,data:t}),l){let c;const d=new Ot(o.last.x+(s.last.x-o.last.x)/2,o.last.y+(s.last.y-o.last.y)/2);this.options.center||(c=this.parent.toLocal(d));let f=Math.sqrt(Math.pow(s.last.x-o.last.x,2)+Math.pow(s.last.y-o.last.y,2));f=f===0?f=1e-10:f;const h=(1-l/f)*this.options.percent*(this.isAxisX()?this.parent.scale.x:this.parent.scale.y);this.isAxisX()&&(this.parent.scale.x+=h),this.isAxisY()&&(this.parent.scale.y+=h),this.parent.emit("zoomed",{viewport:this.parent,type:"pinch",center:d});const p=this.parent.plugins.get("clamp-zoom",!0);if(p&&p.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const g=this.parent.toGlobal(c);this.parent.x+=(d.x-g.x)*this.options.factor,this.parent.y+=(d.y-g.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})}!this.options.noDrag&&this.lastCenter&&(this.parent.x+=(d.x-this.lastCenter.x)*this.options.factor,this.parent.y+=(d.y-this.lastCenter.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})),this.lastCenter=d,this.moved=!0}else this.pinching||(this.parent.emit("pinch-start",this.parent),this.pinching=!0);return!0}return!1}up(){return this.pinching&&this.parent.input.touches.length<=1?(this.active=!1,this.lastCenter=null,this.pinching=!1,this.moved=!1,this.parent.emit("pinch-end",this.parent),!0):!1}};const oje={topLeft:!1,friction:.8,time:1e3,ease:"easeInOutSine",interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1};let sje=class extends ya{constructor(t,n,r,i={}){super(t),Se(this,"options"),Se(this,"ease"),Se(this,"x"),Se(this,"y"),Se(this,"percent"),Se(this,"snapping"),Se(this,"deltaX"),Se(this,"deltaY"),Se(this,"startX"),Se(this,"startY"),this.options=Object.assign({},oje,i),this.ease=zk(i.ease,"easeInOutSine"),this.x=n,this.y=r,this.options.forceStart&&this.snapStart()}snapStart(){this.percent=0,this.snapping={time:0};const t=this.options.topLeft?this.parent.corner:this.parent.center;this.deltaX=this.x-t.x,this.deltaY=this.y-t.y,this.startX=t.x,this.startY=t.y,this.parent.emit("snap-start",this.parent)}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap"):this.options.interrupt&&(this.snapping=null),!1}up(){if(this.parent.input.count()===0){const t=this.parent.plugins.get("decelerate",!0);t&&(t.x||t.y)&&(t.percentChangeX=t.percentChangeY=this.options.friction)}return!1}update(t){if(!this.paused&&!(this.options.interrupt&&this.parent.input.count()!==0))if(this.snapping){const n=this.snapping;n.time+=t;let r,i,o;const s=this.startX,l=this.startY,c=this.deltaX,d=this.deltaY;if(n.time>this.options.time)r=!0,i=s+c,o=l+d;else{const f=this.ease(n.time,0,1,this.options.time);i=s+c*f,o=l+d*f}this.options.topLeft?this.parent.moveCorner(i,o):this.parent.moveCenter(i,o),this.parent.emit("moved",{viewport:this.parent,type:"snap"}),r&&(this.options.removeOnComplete&&this.parent.plugins.remove("snap"),this.parent.emit("snap-end",this.parent),this.snapping=null)}else{const n=this.options.topLeft?this.parent.corner:this.parent.center;(n.x!==this.x||n.y!==this.y)&&this.snapStart()}}};const aje={width:0,height:0,time:1e3,ease:"easeInOutSine",center:null,interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1,noMove:!1};let lje=class extends ya{constructor(t,n={}){super(t),Se(this,"options"),Se(this,"ease"),Se(this,"xScale"),Se(this,"yScale"),Se(this,"xIndependent"),Se(this,"yIndependent"),Se(this,"snapping"),this.options=Object.assign({},aje,n),this.ease=zk(this.options.ease),this.xIndependent=!1,this.yIndependent=!1,this.xScale=0,this.yScale=0,this.options.width>0&&(this.xScale=t.screenWidth/this.options.width,this.xIndependent=!0),this.options.height>0&&(this.yScale=t.screenHeight/this.options.height,this.yIndependent=!0),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale,this.options.time===0?(t.container.scale.x=this.xScale,t.container.scale.y=this.yScale,this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom")):n.forceStart&&this.createSnapping()}createSnapping(){const t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight,r=this.parent.screenWidth/this.xScale,i=this.parent.screenHeight/this.yScale;this.snapping={time:0,startX:t,startY:n,deltaX:r-t,deltaY:i-n},this.parent.emit("snap-zoom-start",this.parent)}resize(){this.snapping=null,this.options.width>0&&(this.xScale=this.parent.screenWidth/this.options.width),this.options.height>0&&(this.yScale=this.parent.screenHeight/this.options.height),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap-zoom"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap-zoom"):this.options.interrupt&&(this.snapping=null),!1}update(t){if(this.paused||this.options.interrupt&&this.parent.input.count()!==0)return;let n;if(!this.options.center&&!this.options.noMove&&(n=this.parent.center),!this.snapping)(this.parent.scale.x!==this.xScale||this.parent.scale.y!==this.yScale)&&this.createSnapping();else if(this.snapping){const r=this.snapping;if(r.time+=t,r.time>=this.options.time)this.parent.scale.set(this.xScale,this.yScale),this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom"),this.parent.emit("snap-zoom-end",this.parent),this.snapping=null;else{const o=this.snapping,s=this.ease(o.time,o.startX,o.deltaX,this.options.time),l=this.ease(o.time,o.startY,o.deltaY,this.options.time);this.parent.scale.x=this.parent.screenWidth/s,this.parent.scale.y=this.parent.screenHeight/l}const i=this.parent.plugins.get("clamp-zoom",!0);i&&i.clamp(),this.options.noMove||(this.options.center?this.parent.moveCenter(this.options.center):this.parent.moveCenter(n))}}resume(){this.snapping=null,super.resume()}};const cje={percent:.1,smooth:!1,interrupt:!0,reverse:!1,center:null,lineHeight:20,axis:"all",keyToPress:null,trackpadPinch:!1,wheelZoom:!0};let uje=class extends ya{constructor(t,n={}){super(t),Se(this,"options"),Se(this,"smoothing"),Se(this,"smoothingCenter"),Se(this,"smoothingCount"),Se(this,"keyIsPressed"),this.options=Object.assign({},cje,n),this.keyIsPressed=!1,this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(t){window.addEventListener("keydown",n=>{t.includes(n.code)&&(this.keyIsPressed=!0)}),window.addEventListener("keyup",n=>{t.includes(n.code)&&(this.keyIsPressed=!1)})}checkKeyPress(){return!this.options.keyToPress||this.keyIsPressed}down(){return this.options.interrupt&&(this.smoothing=null),!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}update(){if(this.smoothing){const t=this.smoothingCenter,n=this.smoothing;let r;this.options.center||(r=this.parent.toLocal(t)),this.isAxisX()&&(this.parent.scale.x+=n.x),this.isAxisY()&&(this.parent.scale.y+=n.y),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const i=this.parent.plugins.get("clamp-zoom",!0);if(i&&i.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const o=this.parent.toGlobal(r);this.parent.x+=t.x-o.x,this.parent.y+=t.y-o.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.smoothingCount++,this.smoothingCount>=this.options.smooth&&(this.smoothing=null)}}pinch(t){if(this.paused)return;const n=this.parent.input.getPointerPosition(t),r=-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/200,i=Math.pow(2,(1+this.options.percent)*r);let o;this.options.center||(o=this.parent.toLocal(n)),this.isAxisX()&&(this.parent.scale.x*=i),this.isAxisY()&&(this.parent.scale.y*=i),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const s=this.parent.plugins.get("clamp-zoom",!0);if(s&&s.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const l=this.parent.toGlobal(o);this.parent.x+=n.x-l.x,this.parent.y+=n.y-l.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}wheel(t){if(this.paused||!this.checkKeyPress())return!1;if(t.ctrlKey&&this.options.trackpadPinch)this.pinch(t);else if(this.options.wheelZoom){const n=this.parent.input.getPointerPosition(t),r=(this.options.reverse?-1:1)*-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/500,i=Math.pow(2,(1+this.options.percent)*r);if(this.options.smooth){const o={x:this.smoothing?this.smoothing.x*(this.options.smooth-this.smoothingCount):0,y:this.smoothing?this.smoothing.y*(this.options.smooth-this.smoothingCount):0};this.smoothing={x:((this.parent.scale.x+o.x)*i-this.parent.scale.x)/this.options.smooth,y:((this.parent.scale.y+o.y)*i-this.parent.scale.y)/this.options.smooth},this.smoothingCount=0,this.smoothingCenter=n}else{let o;this.options.center||(o=this.parent.toLocal(n)),this.isAxisX()&&(this.parent.scale.x*=i),this.isAxisY()&&(this.parent.scale.y*=i),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const s=this.parent.plugins.get("clamp-zoom",!0);if(s&&s.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const l=this.parent.toGlobal(o);this.parent.x+=n.x-l.x,this.parent.y+=n.y-l.y}}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}return!this.parent.options.passiveWheel}},dje=class{constructor(t){Se(this,"viewport"),Se(this,"clickedAvailable"),Se(this,"isMouseDown"),Se(this,"last"),Se(this,"wheelFunction"),Se(this,"touches"),this.viewport=t,this.touches=[],this.addListeners()}addListeners(){this.viewport.interactive=!0,this.viewport.forceHitArea||(this.viewport.hitArea=new Kt(0,0,this.viewport.worldWidth,this.viewport.worldHeight)),this.viewport.on("pointerdown",this.down,this),this.viewport.options.allowPreserveDragOutside?this.viewport.on("globalpointermove",this.move,this):this.viewport.on("pointermove",this.move,this),this.viewport.on("pointerup",this.up,this),this.viewport.on("pointerupoutside",this.up,this),this.viewport.on("pointercancel",this.up,this),this.viewport.options.allowPreserveDragOutside||this.viewport.on("pointerleave",this.up,this),this.wheelFunction=t=>this.handleWheel(t),this.viewport.options.events.domElement.addEventListener("wheel",this.wheelFunction,{passive:this.viewport.options.passiveWheel}),this.isMouseDown=!1}destroy(){this.viewport.options.events.domElement.removeEventListener("wheel",this.wheelFunction)}down(t){if(!(this.viewport.pause||!this.viewport.worldVisible)){if(t.pointerType==="mouse"?this.isMouseDown=!0:this.get(t.pointerId)||this.touches.push({id:t.pointerId,last:null}),this.count()===1){this.last=t.global.clone();const n=this.viewport.plugins.get("decelerate",!0),r=this.viewport.plugins.get("bounce",!0);(!n||!n.isActive())&&(!r||!r.isActive())?this.clickedAvailable=!0:this.clickedAvailable=!1}else this.clickedAvailable=!1;this.viewport.plugins.down(t)&&this.viewport.options.stopPropagation&&t.stopPropagation()}}clear(){this.isMouseDown=!1,this.touches=[],this.last=null}checkThreshold(t){return Math.abs(t)>=this.viewport.threshold}move(t){if(this.viewport.pause||!this.viewport.worldVisible)return;const n=this.viewport.plugins.move(t);if(this.clickedAvailable&&this.last){const r=t.global.x-this.last.x,i=t.global.y-this.last.y;(this.checkThreshold(r)||this.checkThreshold(i))&&(this.clickedAvailable=!1)}n&&this.viewport.options.stopPropagation&&t.stopPropagation()}up(t){if(this.viewport.pause||!this.viewport.worldVisible)return;t.pointerType==="mouse"&&(this.isMouseDown=!1),t.pointerType!=="mouse"&&this.remove(t.pointerId);const n=this.viewport.plugins.up(t);this.clickedAvailable&&this.count()===0&&this.last&&(this.viewport.emit("clicked",{event:t,screen:this.last,world:this.viewport.toWorld(this.last),viewport:this.viewport}),this.clickedAvailable=!1),n&&this.viewport.options.stopPropagation&&t.stopPropagation()}getPointerPosition(t){const n=new Ot;return this.viewport.options.events.mapPositionToPoint(n,t.clientX,t.clientY),n}handleWheel(t){if(this.viewport.pause||!this.viewport.worldVisible)return;const n=this.viewport.toLocal(this.getPointerPosition(t));this.viewport.left<=n.x&&n.x<=this.viewport.right&&this.viewport.top<=n.y&&n.y<=this.viewport.bottom&&this.viewport.plugins.wheel(t)&&!this.viewport.options.passiveWheel&&t.preventDefault()}pause(){this.touches=[],this.isMouseDown=!1}get(t){for(const n of this.touches)if(n.id===t)return n;return null}remove(t){for(let n=0;n{t.destroy()}),this.plugins={},this.sort()}remove(t){var n;this.plugins[t]&&((n=this.plugins[t])==null||n.destroy(),delete this.plugins[t],this.viewport.emit("plugin-remove",t),this.sort())}pause(t){var n;(n=this.plugins[t])==null||n.pause()}resume(t){var n;(n=this.plugins[t])==null||n.resume()}sort(){this.list=[];for(const t of gb)this.plugins[t]&&this.list.push(this.plugins[t])}down(t){let n=!1;for(const r of this.list)r.down(t)&&(n=!0);return n}move(t){let n=!1;for(const r of this.viewport.plugins.list)r.move(t)&&(n=!0);return n}up(t){let n=!1;for(const r of this.list)r.up(t)&&(n=!0);return n}wheel(t){let n=!1;for(const r of this.list)r.wheel(t)&&(n=!0);return n}};const hje={screenWidth:window.innerWidth,screenHeight:window.innerHeight,worldWidth:null,worldHeight:null,threshold:5,passiveWheel:!0,stopPropagation:!1,forceHitArea:null,noTicker:!1,disableOnContextMenu:!1,ticker:Xr.shared,allowPreserveDragOutside:!1};class pje extends qo{constructor(t){super(),Se(this,"moving"),Se(this,"screenWidth"),Se(this,"screenHeight"),Se(this,"threshold"),Se(this,"input"),Se(this,"plugins"),Se(this,"zooming"),Se(this,"lastViewport"),Se(this,"options"),Se(this,"_dirty"),Se(this,"_forceHitArea"),Se(this,"_hitAreaDefault"),Se(this,"_pause"),Se(this,"tickerFunction"),Se(this,"_worldWidth"),Se(this,"_worldHeight"),Se(this,"_disableOnContextMenu",n=>n.preventDefault()),this.options={...hje,...t},this.screenWidth=this.options.screenWidth,this.screenHeight=this.options.screenHeight,this._worldWidth=this.options.worldWidth,this._worldHeight=this.options.worldHeight,this.forceHitArea=this.options.forceHitArea,this.threshold=this.options.threshold,this.options.disableOnContextMenu&&this.options.events.domElement.addEventListener("contextmenu",this._disableOnContextMenu),this.options.noTicker||(this.tickerFunction=()=>this.update(this.options.ticker.elapsedMS),this.options.ticker.add(this.tickerFunction)),this.input=new dje(this),this.plugins=new fje(this)}destroy(t){!this.options.noTicker&&this.tickerFunction&&this.options.ticker.remove(this.tickerFunction),this.options.disableOnContextMenu&&this.options.events.domElement.removeEventListener("contextmenu",this._disableOnContextMenu),this.input.destroy(),super.destroy(t)}update(t){this.pause||(this.plugins.update(t),this.lastViewport&&(this.lastViewport.x!==this.x||this.lastViewport.y!==this.y?this.moving=!0:this.moving&&(this.emit("moved-end",this),this.moving=!1),this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y?this.zooming=!0:this.zooming&&(this.emit("zoomed-end",this),this.zooming=!1)),this.forceHitArea||(this._hitAreaDefault=new Kt(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight),this.hitArea=this._hitAreaDefault),this._dirty=this._dirty||!this.lastViewport||this.lastViewport.x!==this.x||this.lastViewport.y!==this.y||this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y,this.lastViewport={x:this.x,y:this.y,scaleX:this.scale.x,scaleY:this.scale.y},this.emit("frame-end",this))}resize(t=window.innerWidth,n=window.innerHeight,r,i){this.screenWidth=t,this.screenHeight=n,typeof r<"u"&&(this._worldWidth=r),typeof i<"u"&&(this._worldHeight=i),this.plugins.resize(),this.dirty=!0}get worldWidth(){return this._worldWidth?this._worldWidth:this.width/this.scale.x}set worldWidth(t){this._worldWidth=t,this.plugins.resize()}get worldHeight(){return this._worldHeight?this._worldHeight:this.height/this.scale.y}set worldHeight(t){this._worldHeight=t,this.plugins.resize()}getVisibleBounds(){return new Kt(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight)}toWorld(t,n){return arguments.length===2?this.toLocal(new Ot(t,n)):this.toLocal(t)}toScreen(t,n){return arguments.length===2?this.toGlobal(new Ot(t,n)):this.toGlobal(t)}get worldScreenWidth(){return this.screenWidth/this.scale.x}get worldScreenHeight(){return this.screenHeight/this.scale.y}get screenWorldWidth(){return this.worldWidth*this.scale.x}get screenWorldHeight(){return this.worldHeight*this.scale.y}get center(){return new Ot(this.worldScreenWidth/2-this.x/this.scale.x,this.worldScreenHeight/2-this.y/this.scale.y)}set center(t){this.moveCenter(t)}moveCenter(...t){let n,r;typeof t[0]=="number"?(n=t[0],r=t[1]):(n=t[0].x,r=t[0].y);const i=(this.worldScreenWidth/2-n)*this.scale.x,o=(this.worldScreenHeight/2-r)*this.scale.y;return(this.x!==i||this.y!==o)&&(this.position.set(i,o),this.plugins.reset(),this.dirty=!0),this}get corner(){return new Ot(-this.x/this.scale.x,-this.y/this.scale.y)}set corner(t){this.moveCorner(t)}moveCorner(...t){let n,r;return t.length===1?(n=-t[0].x*this.scale.x,r=-t[0].y*this.scale.y):(n=-t[0]*this.scale.x,r=-t[1]*this.scale.y),(n!==this.x||r!==this.y)&&(this.position.set(n,r),this.plugins.reset(),this.dirty=!0),this}get screenWidthInWorldPixels(){return this.screenWidth/this.scale.x}get screenHeightInWorldPixels(){return this.screenHeight/this.scale.y}findFitWidth(t){return this.screenWidth/t}findFitHeight(t){return this.screenHeight/t}findFit(t,n){const r=this.screenWidth/t,i=this.screenHeight/n;return Math.min(r,i)}findCover(t,n){const r=this.screenWidth/t,i=this.screenHeight/n;return Math.max(r,i)}fitWidth(t=this.worldWidth,n,r=!0,i){let o;n&&(o=this.center),this.scale.x=this.screenWidth/t,r&&(this.scale.y=this.scale.x);const s=this.plugins.get("clamp-zoom",!0);return!i&&s&&s.clamp(),n&&o&&this.moveCenter(o),this}fitHeight(t=this.worldHeight,n,r=!0,i){let o;n&&(o=this.center),this.scale.y=this.screenHeight/t,r&&(this.scale.x=this.scale.y);const s=this.plugins.get("clamp-zoom",!0);return!i&&s&&s.clamp(),n&&o&&this.moveCenter(o),this}fitWorld(t){let n;t&&(n=this.center),this.scale.x=this.screenWidth/this.worldWidth,this.scale.y=this.screenHeight/this.worldHeight,this.scale.xthis.worldWidth,top:this.top<0,bottom:this.bottom>this.worldHeight,cornerPoint:new Ot(this.worldWidth*this.scale.x-this.screenWidth,this.worldHeight*this.scale.y-this.screenHeight)}}get right(){return-this.x/this.scale.x+this.worldScreenWidth}set right(t){this.x=-t*this.scale.x+this.screenWidth,this.plugins.reset()}get left(){return-this.x/this.scale.x}set left(t){this.x=-t*this.scale.x,this.plugins.reset()}get top(){return-this.y/this.scale.y}set top(t){this.y=-t*this.scale.y,this.plugins.reset()}get bottom(){return-this.y/this.scale.y+this.worldScreenHeight}set bottom(t){this.y=-t*this.scale.y+this.screenHeight,this.plugins.reset()}get dirty(){return!!this._dirty}set dirty(t){this._dirty=t}get forceHitArea(){return this._forceHitArea}set forceHitArea(t){t?(this._forceHitArea=t,this.hitArea=t):(this._forceHitArea=null,this.hitArea=new Kt(0,0,this.worldWidth,this.worldHeight))}drag(t){return this.plugins.add("drag",new Jze(this,t)),this}clamp(t){return this.plugins.add("clamp",new Vze(this,t)),this}decelerate(t){return this.plugins.add("decelerate",new Kze(this,t)),this}bounce(t){return this.plugins.add("bounce",new Wze(this,t)),this}pinch(t){return this.plugins.add("pinch",new ije(this,t)),this}snap(t,n,r){return this.plugins.add("snap",new sje(this,t,n,r)),this}follow(t,n){return this.plugins.add("follow",new eje(this,t,n)),this}wheel(t){return this.plugins.add("wheel",new uje(this,t)),this}animate(t){return this.plugins.add("animate",new Uze(this,t)),this}clampZoom(t){return this.plugins.add("clamp-zoom",new Xze(this,t)),this}mouseEdges(t){return this.plugins.add("mouse-edges",new nje(this,t)),this}get pause(){return!!this._pause}set pause(t){this._pause=t,this.lastViewport=null,this.moving=!1,this.zooming=!1,t&&this.input.pause()}ensureVisible(t,n,r,i,o){o&&(r>this.worldScreenWidth||i>this.worldScreenHeight)&&(this.fit(!0,r,i),this.emit("zoomed",{viewport:this,type:"ensureVisible"}));let s=!1;tthis.right&&(this.right=t+r,s=!0),nthis.bottom&&(this.bottom=n+i,s=!0),s&&this.emit("moved",{viewport:this,type:"ensureVisible"})}}const vb=new Ot,mje=new Uint16Array([0,1,2,0,2,3]);class Fp extends qo{constructor(t){super(),this._anchor=new cd(this._onAnchorUpdate,this,t?t.defaultAnchor.x:0,t?t.defaultAnchor.y:0),this._texture=null,this._width=0,this._height=0,this._tintColor=new zn(16777215),this._tintRGB=null,this.tint=16777215,this.blendMode=Mt.NORMAL,this._cachedTint=16777215,this.uvs=null,this.texture=t||ht.EMPTY,this.vertexData=new Float32Array(8),this.vertexTrimmedData=null,this._transformID=-1,this._textureID=-1,this._transformTrimmedID=-1,this._textureTrimmedID=-1,this.indices=mje,this.pluginName="batch",this.isSprite=!0,this._roundPixels=tt.ROUND_PIXELS}_onTextureUpdate(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=ld(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=ld(this.scale.y)*this._height/this._texture.orig.height)}_onAnchorUpdate(){this._transformID=-1,this._transformTrimmedID=-1}calculateVertices(){const t=this._texture;if(this._transformID===this.transform._worldID&&this._textureID===t._updateID)return;this._textureID!==t._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=t._updateID;const n=this.transform.worldTransform,r=n.a,i=n.b,o=n.c,s=n.d,l=n.tx,c=n.ty,d=this.vertexData,f=t.trim,h=t.orig,p=this._anchor;let g=0,v=0,y=0,S=0;if(f?(v=f.x-p._x*h.width,g=v+f.width,S=f.y-p._y*h.height,y=S+f.height):(v=-p._x*h.width,g=v+h.width,S=-p._y*h.height,y=S+h.height),d[0]=r*v+o*S+l,d[1]=s*S+i*v+c,d[2]=r*g+o*S+l,d[3]=s*S+i*g+c,d[4]=r*g+o*y+l,d[5]=s*y+i*g+c,d[6]=r*v+o*y+l,d[7]=s*y+i*v+c,this._roundPixels){const _=tt.RESOLUTION;for(let b=0;b=i&&vb.x=o&&vb.y=Gr.HIGH?this.multisample=Gr.HIGH:n>=Gr.MEDIUM?this.multisample=Gr.MEDIUM:n>=Gr.LOW?this.multisample=Gr.LOW:this.multisample=Gr.NONE}destroy(){}}ane.extension={type:rt.RendererSystem,name:"_multisample"};bt.add(ane);class Lze{constructor(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class lne{constructor(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}destroy(){this.renderer=null}contextChange(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glBuffers[r]||this.createGLBuffer(t);n.bindBuffer(t.type,i.buffer)}unbind(t){const{gl:n}=this;n.bindBuffer(t,null)}bindBufferBase(t,n){const{gl:r,CONTEXT_UID:i}=this;if(this.boundBufferBases[n]!==t){const o=t._glBuffers[i]||this.createGLBuffer(t);this.boundBufferBases[n]=t,r.bindBufferBase(r.UNIFORM_BUFFER,n,o.buffer)}}bindBufferRange(t,n,r){const{gl:i,CONTEXT_UID:o}=this;r=r||0;const s=t._glBuffers[o]||this.createGLBuffer(t);i.bindBufferRange(i.UNIFORM_BUFFER,n||0,s.buffer,r*256,256)}update(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glBuffers[r]||this.createGLBuffer(t);if(t._updateID!==i.updateID)if(i.updateID=t._updateID,n.bindBuffer(t.type,i.buffer),i.byteLength>=t.data.byteLength)n.bufferSubData(t.type,0,t.data);else{const o=t.static?n.STATIC_DRAW:n.DYNAMIC_DRAW;i.byteLength=t.data.byteLength,n.bufferData(t.type,t.data,o)}}dispose(t,n){if(!this.managedBuffers[t.id])return;delete this.managedBuffers[t.id];const r=t._glBuffers[this.CONTEXT_UID],i=this.gl;t.disposeRunner.remove(this),r&&(n||i.deleteBuffer(r.buffer),delete t._glBuffers[this.CONTEXT_UID])}disposeAll(t){const n=Object.keys(this.managedBuffers);for(let r=0;rr.resource).filter(r=>r).map(r=>r.load());return this._load=Promise.all(n).then(()=>{const{realWidth:r,realHeight:i}=this.items[0];return this.resize(r,i),Promise.resolve(this)}),this._load}}class Nze extends une{constructor(t,n){const{width:r,height:i}=n||{};let o,s;Array.isArray(t)?(o=t,s=t.length):s=t,super(s,{width:r,height:i}),o&&this.initFromArray(o,n)}addBaseTextureAt(t,n){if(t.resource)this.addResourceAt(t.resource,n);else throw new Error("ArrayResource does not support RenderTexture");return this}bind(t){super.bind(t),t.target=Zm.TEXTURE_2D_ARRAY}upload(t,n,r){const{length:i,itemDirtyIds:o,items:s}=this,{gl:l}=t;r.dirtyId<0&&l.texImage3D(l.TEXTURE_2D_ARRAY,0,r.internalFormat,this._width,this._height,i,0,n.format,r.type,null);for(let c=0;c0)if(e.resource)this.addResourceAt(e.resource,t);else throw new Error("CubeResource does not support copying of renderTexture.");else e.target=Zm.TEXTURE_CUBE_MAP_POSITIVE_X+t,e.parentTextureArray=this.baseTexture,this.items[t]=e;return e.valid&&!this.valid&&this.resize(e.realWidth,e.realHeight),this.items[t]=e,this}upload(e,t,n){const r=this.itemDirtyIds;for(let i=0;i{if(this.url===null){t(this);return}try{const r=await tt.ADAPTER.fetch(this.url,{mode:this.crossOrigin?"cors":"no-cors"});if(this.destroyed)return;const i=await r.blob();if(this.destroyed)return;const o=await createImageBitmap(i,{premultiplyAlpha:this.alphaMode===null||this.alphaMode===yl.UNPACK?"premultiply":"none"});if(this.destroyed)return;this.source=o,this.update(),t(this)}catch(r){if(this.destroyed)return;n(r),this.onError.emit(r)}}),this._load)}upload(t,n,r){return this.source instanceof ImageBitmap?(typeof this.alphaMode=="number"&&(n.alphaMode=this.alphaMode),super.upload(t,n,r)):(this.load(),!1)}dispose(){this.source instanceof ImageBitmap&&this.source.close(),super.dispose(),this._load=null}static test(t){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&(typeof t=="string"||t instanceof ImageBitmap)}static get EMPTY(){return zm._EMPTY=zm._EMPTY??tt.ADAPTER.createCanvas(0,0),zm._EMPTY}}const jS=class extends $d{constructor(e,t){t=t||{},super(tt.ADAPTER.createCanvas()),this._width=0,this._height=0,this.svg=e,this.scale=t.scale||1,this._overrideWidth=t.width,this._overrideHeight=t.height,this._resolve=null,this._crossorigin=t.crossorigin,this._load=null,t.autoLoad!==!1&&this.load()}load(){return this._load?this._load:(this._load=new Promise(e=>{if(this._resolve=()=>{this.resize(this.source.width,this.source.height),e(this)},jS.SVG_XML.test(this.svg.trim())){if(!btoa)throw new Error("Your browser doesn't support base64 conversions.");this.svg=`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(this.svg)))}`}this._loadSvg()}),this._load)}_loadSvg(){const e=new Image;$d.crossOrigin(e,this.svg,this._crossorigin),e.src=this.svg,e.onerror=t=>{this._resolve&&(e.onerror=null,this.onError.emit(t))},e.onload=()=>{if(!this._resolve)return;const t=e.width,n=e.height;if(!t||!n)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");let r=t*this.scale,i=n*this.scale;(this._overrideWidth||this._overrideHeight)&&(r=this._overrideWidth||this._overrideHeight/n*t,i=this._overrideHeight||this._overrideWidth/t*n),r=Math.round(r),i=Math.round(i);const o=this.source;o.width=r,o.height=i,o._pixiId=`canvas_${_p()}`,o.getContext("2d").drawImage(e,0,0,t,n,0,0,r,i),this._resolve(),this._resolve=null}}static getSize(e){const t=jS.SVG_SIZE.exec(e),n={};return t&&(n[t[1]]=Math.round(parseFloat(t[3])),n[t[5]]=Math.round(parseFloat(t[7]))),n}dispose(){super.dispose(),this._resolve=null,this._crossorigin=null}static test(e,t){return t==="svg"||typeof e=="string"&&e.startsWith("data:image/svg+xml")||typeof e=="string"&&jS.SVG_XML.test(e)}};let E1=jS;E1.SVG_XML=/^(<\?xml[^?]+\?>)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i;const D3=class extends $d{constructor(e,t){if(t=t||{},!(e instanceof HTMLVideoElement)){const n=document.createElement("video");n.setAttribute("preload","auto"),n.setAttribute("webkit-playsinline",""),n.setAttribute("playsinline",""),typeof e=="string"&&(e=[e]);const r=e[0].src||e[0];$d.crossOrigin(n,r,t.crossorigin);for(let i=0;i{this.valid?t(this):(this._resolve=t,e.load())}),this._load}_onError(e){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(e)}_isSourcePlaying(){const e=this.source;return!e.paused&&!e.ended&&this._isSourceReady()}_isSourceReady(){return this.source.readyState>2}_onPlayStart(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(Xr.shared.add(this.update,this),this._isConnectedToTicker=!0)}_onPlayStop(){this._isConnectedToTicker&&(Xr.shared.remove(this.update,this),this._isConnectedToTicker=!1)}_onCanPlay(){const e=this.source;e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay);const t=this.valid;this.resize(e.videoWidth,e.videoHeight),!t&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&e.play()}dispose(){this._isConnectedToTicker&&(Xr.shared.remove(this.update,this),this._isConnectedToTicker=!1);const e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),super.dispose()}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(Xr.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(Xr.shared.add(this.update,this),this._isConnectedToTicker=!0))}get updateFPS(){return this._updateFPS}set updateFPS(e){e!==this._updateFPS&&(this._updateFPS=e)}static test(e,t){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||D3.TYPES.includes(t)}};let Cj=D3;Cj.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"];Cj.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};k3.push(zm,Bte,Bze,Cj,E1,pw,dne,Nze);class vC{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(t){return this.minX>this.maxX||this.minY>this.maxY?Kt.EMPTY:(t=t||new Kt(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)}addPoint(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)}addPointMatrix(t,n){const{a:r,b:i,c:o,d:s,tx:l,ty:c}=t,d=r*n.x+o*n.y+l,f=i*n.x+s*n.y+c;this.minX=Math.min(this.minX,d),this.maxX=Math.max(this.maxX,d),this.minY=Math.min(this.minY,f),this.maxY=Math.max(this.maxY,f)}addQuad(t){let n=this.minX,r=this.minY,i=this.maxX,o=this.maxY,s=t[0],l=t[1];n=si?s:i,o=l>o?l:o,s=t[2],l=t[3],n=si?s:i,o=l>o?l:o,s=t[4],l=t[5],n=si?s:i,o=l>o?l:o,s=t[6],l=t[7],n=si?s:i,o=l>o?l:o,this.minX=n,this.minY=r,this.maxX=i,this.maxY=o}addFrame(t,n,r,i,o){this.addFrameMatrix(t.worldTransform,n,r,i,o)}addFrameMatrix(t,n,r,i,o){const s=t.a,l=t.b,c=t.c,d=t.d,f=t.tx,h=t.ty;let p=this.minX,g=this.minY,v=this.maxX,y=this.maxY,S=s*n+c*r+f,_=l*n+d*r+h;p=Sv?S:v,y=_>y?_:y,S=s*i+c*r+f,_=l*i+d*r+h,p=Sv?S:v,y=_>y?_:y,S=s*n+c*o+f,_=l*n+d*o+h,p=Sv?S:v,y=_>y?_:y,S=s*i+c*o+f,_=l*i+d*o+h,p=Sv?S:v,y=_>y?_:y,this.minX=p,this.minY=g,this.maxX=v,this.maxY=y}addVertexData(t,n,r){let i=this.minX,o=this.minY,s=this.maxX,l=this.maxY;for(let c=n;cs?d:s,l=f>l?f:l}this.minX=i,this.minY=o,this.maxX=s,this.maxY=l}addVertices(t,n,r,i){this.addVerticesMatrix(t.worldTransform,n,r,i)}addVerticesMatrix(t,n,r,i,o=0,s=o){const l=t.a,c=t.b,d=t.c,f=t.d,h=t.tx,p=t.ty;let g=this.minX,v=this.minY,y=this.maxX,S=this.maxY;for(let _=r;_i?t.maxX:i,this.maxY=t.maxY>o?t.maxY:o}addBoundsMask(t,n){const r=t.minX>n.minX?t.minX:n.minX,i=t.minY>n.minY?t.minY:n.minY,o=t.maxXd?o:d,this.maxY=s>f?s:f}}addBoundsMatrix(t,n){this.addFrameMatrix(n,t.minX,t.minY,t.maxX,t.maxY)}addBoundsArea(t,n){const r=t.minX>n.x?t.minX:n.x,i=t.minY>n.y?t.minY:n.y,o=t.maxXd?o:d,this.maxY=s>f?s:f}}pad(t=0,n=t){this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=n,this.maxY+=n)}addFramePad(t,n,r,i,o,s){t-=o,n-=s,r+=o,i+=s,this.minX=this.minXr?this.maxX:r,this.minY=this.minYi?this.maxY:i}}class Pr extends fw{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new Ej,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new vC,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(t){const n=Object.keys(t);for(let r=0;r1)for(let t=0;tthis.children.length)throw new Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${this.children.length}`);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e}swapChildren(e,t){if(e===t)return;const n=this.getChildIndex(e),r=this.getChildIndex(t);this.children[n]=t,this.children[r]=e,this.onChildrenChange(n=this.children.length)throw new Error(`The index ${t} supplied is out of bounds ${this.children.length}`);const n=this.getChildIndex(e);rg(this.children,n,1),this.children.splice(t,0,e),this.onChildrenChange(t)}getChildAt(e){if(e<0||e>=this.children.length)throw new Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]}removeChild(...e){if(e.length>1)for(let t=0;t0&&i<=r){o=this.children.splice(n,i);for(let s=0;s1&&this.children.sort(zze),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let e=0,t=this.children.length;e0&&t.height>0))return;let n,r;this.cullArea?(n=this.cullArea,r=this.worldTransform):this._render!==L3.prototype._render&&(n=this.getBounds(!0));const i=e.projection.transform;if(i&&(r?(r=Fze.copyFrom(r),r.prepend(i)):r=i),n&&t.intersects(n,r))this._render(e);else if(this.cullArea)return;for(let o=0,s=this.children.length;ot in e?jze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Se=(e,t,n)=>(Uze(e,typeof t!="symbol"?t+"":t,n),n);let ba=class{constructor(t){Se(this,"parent"),Se(this,"paused"),this.parent=t,this.paused=!1}destroy(){}down(t){return!1}move(t){return!1}up(t){return!1}wheel(t){return!1}update(t){}resize(){}reset(){}pause(){this.paused=!0}resume(){this.paused=!1}};var Hze=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},fne={exports:{}};(function(e,t){(function(){var n,r;r=function(i){return e.exports=i},n={linear:function(i,o,s,l){return s*i/l+o},easeInQuad:function(i,o,s,l){return s*(i/=l)*i+o},easeOutQuad:function(i,o,s,l){return-s*(i/=l)*(i-2)+o},easeInOutQuad:function(i,o,s,l){return(i/=l/2)<1?s/2*i*i+o:-s/2*(--i*(i-2)-1)+o},easeInCubic:function(i,o,s,l){return s*(i/=l)*i*i+o},easeOutCubic:function(i,o,s,l){return s*((i=i/l-1)*i*i+1)+o},easeInOutCubic:function(i,o,s,l){return(i/=l/2)<1?s/2*i*i*i+o:s/2*((i-=2)*i*i+2)+o},easeInQuart:function(i,o,s,l){return s*(i/=l)*i*i*i+o},easeOutQuart:function(i,o,s,l){return-s*((i=i/l-1)*i*i*i-1)+o},easeInOutQuart:function(i,o,s,l){return(i/=l/2)<1?s/2*i*i*i*i+o:-s/2*((i-=2)*i*i*i-2)+o},easeInQuint:function(i,o,s,l){return s*(i/=l)*i*i*i*i+o},easeOutQuint:function(i,o,s,l){return s*((i=i/l-1)*i*i*i*i+1)+o},easeInOutQuint:function(i,o,s,l){return(i/=l/2)<1?s/2*i*i*i*i*i+o:s/2*((i-=2)*i*i*i*i+2)+o},easeInSine:function(i,o,s,l){return-s*Math.cos(i/l*(Math.PI/2))+s+o},easeOutSine:function(i,o,s,l){return s*Math.sin(i/l*(Math.PI/2))+o},easeInOutSine:function(i,o,s,l){return-s/2*(Math.cos(Math.PI*i/l)-1)+o},easeInExpo:function(i,o,s,l){return i===0?o:s*Math.pow(2,10*(i/l-1))+o},easeOutExpo:function(i,o,s,l){return i===l?o+s:s*(-Math.pow(2,-10*i/l)+1)+o},easeInOutExpo:function(i,o,s,l){return(i/=l/2)<1?s/2*Math.pow(2,10*(i-1))+o:s/2*(-Math.pow(2,-10*--i)+2)+o},easeInCirc:function(i,o,s,l){return-s*(Math.sqrt(1-(i/=l)*i)-1)+o},easeOutCirc:function(i,o,s,l){return s*Math.sqrt(1-(i=i/l-1)*i)+o},easeInOutCirc:function(i,o,s,l){return(i/=l/2)<1?-s/2*(Math.sqrt(1-i*i)-1)+o:s/2*(Math.sqrt(1-(i-=2)*i)+1)+o},easeInElastic:function(i,o,s,l){var c,d,f;return f=1.70158,d=0,c=s,i===0||(i/=l),d||(d=l*.3),c=this.options.time){const r=this.parent.width,i=this.parent.height;this.complete(),(r!==this.parent.width||i!==this.parent.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:n,type:"animate"})}else{const r=this.options.ease(this.time,0,1,this.options.time);if(this.width!==null){const i=this.startWidth,o=this.deltaWidth;this.parent.fitWidth(i+o*r,this.keepCenter,this.height===null)}if(this.height!==null){const i=this.startHeight,o=this.deltaHeight;this.parent.fitHeight(i+o*r,this.keepCenter,this.width===null)}if(this.width===null?this.parent.scale.x=this.parent.scale.y:this.height===null&&(this.parent.scale.y=this.parent.scale.x),!this.keepCenter){const i=this.startX,o=this.startY,s=this.deltaX,l=this.deltaY,c=new Ot(this.parent.x,this.parent.y);this.parent.moveCenter(i+s*r,o+l*r),this.parent.emit("moved",{viewport:this.parent,original:c,type:"animate"})}(this.width||this.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:n,type:"animate"})}}};const Vze={sides:"all",friction:.5,time:150,ease:"easeInOutSine",underflow:"center",bounceBox:null};let qze=class extends ba{constructor(t,n={}){super(t),Se(this,"options"),Se(this,"left"),Se(this,"top"),Se(this,"right"),Se(this,"bottom"),Se(this,"underflowX"),Se(this,"underflowY"),Se(this,"ease"),Se(this,"toX"),Se(this,"toY"),this.options=Object.assign({},Vze,n),this.ease=Uk(this.options.ease,"easeInOutSine"),this.options.sides?this.options.sides==="all"?this.top=this.bottom=this.left=this.right=!0:this.options.sides==="horizontal"?(this.right=this.left=!0,this.top=this.bottom=!1):this.options.sides==="vertical"?(this.left=this.right=!1,this.top=this.bottom=!0):(this.top=this.options.sides.indexOf("top")!==-1,this.bottom=this.options.sides.indexOf("bottom")!==-1,this.left=this.options.sides.indexOf("left")!==-1,this.right=this.options.sides.indexOf("right")!==-1):this.left=this.top=this.right=this.bottom=!1;const r=this.options.underflow.toLowerCase();r==="center"?(this.underflowX=0,this.underflowY=0):(this.underflowX=r.indexOf("left")!==-1?-1:r.indexOf("right")!==-1?1:0,this.underflowY=r.indexOf("top")!==-1?-1:r.indexOf("bottom")!==-1?1:0),this.reset()}isActive(){return this.toX!==null||this.toY!==null}down(){return this.toX=this.toY=null,!1}up(){return this.bounce(),!1}update(t){if(!this.paused){if(this.bounce(),this.toX){const n=this.toX;n.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-x"}),n.time>=this.options.time?(this.parent.x=n.end,this.toX=null,this.parent.emit("bounce-x-end",this.parent)):this.parent.x=this.ease(n.time,n.start,n.delta,this.options.time)}if(this.toY){const n=this.toY;n.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-y"}),n.time>=this.options.time?(this.parent.y=n.end,this.toY=null,this.parent.emit("bounce-y-end",this.parent)):this.parent.y=this.ease(n.time,n.start,n.delta,this.options.time)}}}calcUnderflowX(){let t;switch(this.underflowX){case-1:t=0;break;case 1:t=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:t=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}return t}calcUnderflowY(){let t;switch(this.underflowY){case-1:t=0;break;case 1:t=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:t=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}return t}oob(){const t=this.options.bounceBox;if(t){const n=typeof t.x>"u"?0:t.x,r=typeof t.y>"u"?0:t.y,i=typeof t.width>"u"?this.parent.worldWidth:t.width,o=typeof t.height>"u"?this.parent.worldHeight:t.height;return{left:this.parent.lefti,top:this.parent.topo,topLeft:new Ot(n*this.parent.scale.x,r*this.parent.scale.y),bottomRight:new Ot(i*this.parent.scale.x-this.parent.screenWidth,o*this.parent.scale.y-this.parent.screenHeight)}}return{left:this.parent.left<0,right:this.parent.right>this.parent.worldWidth,top:this.parent.top<0,bottom:this.parent.bottom>this.parent.worldHeight,topLeft:new Ot(0,0),bottomRight:new Ot(this.parent.worldWidth*this.parent.scale.x-this.parent.screenWidth,this.parent.worldHeight*this.parent.scale.y-this.parent.screenHeight)}}bounce(){var t,n;if(this.paused)return;let r,i=this.parent.plugins.get("decelerate",!0);i&&(i.x||i.y)&&(i.x&&i.percentChangeX===((t=i.options)==null?void 0:t.friction)||i.y&&i.percentChangeY===((n=i.options)==null?void 0:n.friction))&&(r=this.oob(),(r.left&&this.left||r.right&&this.right)&&(i.percentChangeX=this.options.friction),(r.top&&this.top||r.bottom&&this.bottom)&&(i.percentChangeY=this.options.friction));const o=this.parent.plugins.get("drag",!0)||{},s=this.parent.plugins.get("pinch",!0)||{};if(i=i||{},!(o!=null&&o.active)&&!(s!=null&&s.active)&&(!this.toX||!this.toY)&&(!i.x||!i.y)){r=r||this.oob();const l=r.topLeft,c=r.bottomRight;if(!this.toX&&!i.x){let d=null;r.left&&this.left?d=this.parent.screenWorldWidth(this.options.right===!0?this.parent.worldWidth:this.options.right)&&(this.parent.x=-(this.options.right===!0?this.parent.worldWidth:this.options.right)*this.parent.scale.x+this.parent.screenWidth,n.x=0,r=!0);r&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-x"})}if(this.options.top!==null||this.options.bottom!==null){let r=!1;if(!this.noUnderflow&&this.parent.screenWorldHeight(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)&&(this.parent.y=-(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)*this.parent.scale.y+this.parent.screenHeight,n.y=0,r=!0);r&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-y"})}this.last.x=this.parent.x,this.last.y=this.parent.y,this.last.scaleX=this.parent.scale.x,this.last.scaleY=this.parent.scale.y}reset(){this.update()}};const Kze={minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,minScale:null,maxScale:null};let Qze=class extends ba{constructor(t,n={}){super(t),Se(this,"options"),this.options=Object.assign({},Kze,n),this.clamp()}resize(){this.clamp()}clamp(){if(!this.paused){if(this.options.minWidth||this.options.minHeight||this.options.maxWidth||this.options.maxHeight){let t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight;if(this.options.minWidth!==null&&tthis.options.maxWidth){const r=this.parent.scale.x;this.parent.fitWidth(this.options.maxWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/r,t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}if(this.options.minHeight!==null&&nthis.options.maxHeight){const r=this.parent.scale.y;this.parent.fitHeight(this.options.maxHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/r,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}}else if(this.options.minScale||this.options.maxScale){const t={x:null,y:null},n={x:null,y:null};if(typeof this.options.minScale=="number")t.x=this.options.minScale,t.y=this.options.minScale;else if(this.options.minScale!==null){const o=this.options.minScale;t.x=typeof o.x>"u"?null:o.x,t.y=typeof o.y>"u"?null:o.y}if(typeof this.options.maxScale=="number")n.x=this.options.maxScale,n.y=this.options.maxScale;else if(this.options.maxScale!==null){const o=this.options.maxScale;n.x=typeof o.x>"u"?null:o.x,n.y=typeof o.y>"u"?null:o.y}let r=this.parent.scale.x,i=this.parent.scale.y;t.x!==null&&rn.x&&(r=n.x),t.y!==null&&in.y&&(i=n.y),(r!==this.parent.scale.x||i!==this.parent.scale.y)&&(this.parent.scale.set(r,i),this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"}))}}}reset(){this.clamp()}};const Jze={friction:.98,bounce:.8,minSpeed:.01},ju=16;let Zze=class extends ba{constructor(t,n={}){super(t),Se(this,"options"),Se(this,"x"),Se(this,"y"),Se(this,"percentChangeX"),Se(this,"percentChangeY"),Se(this,"saved"),Se(this,"timeSinceRelease"),this.options=Object.assign({},Jze,n),this.saved=[],this.timeSinceRelease=0,this.reset(),this.parent.on("moved",r=>this.handleMoved(r))}down(){return this.saved=[],this.x=this.y=null,!1}isActive(){return!!(this.x||this.y)}move(){if(this.paused)return!1;const t=this.parent.input.count();return(t===1||t>1&&!this.parent.plugins.get("pinch",!0))&&(this.saved.push({x:this.parent.x,y:this.parent.y,time:performance.now()}),this.saved.length>60&&this.saved.splice(0,30)),!1}handleMoved(t){if(this.saved.length){const n=this.saved[this.saved.length-1];t.type==="clamp-x"&&t.original?n.x===t.original.x&&(n.x=this.parent.x):t.type==="clamp-y"&&t.original&&n.y===t.original.y&&(n.y=this.parent.y)}}up(){if(this.parent.input.count()===0&&this.saved.length){const t=performance.now();for(const n of this.saved)if(n.time>=t-100){const r=t-n.time;this.x=(this.parent.x-n.x)/r,this.y=(this.parent.y-n.y)/r,this.percentChangeX=this.percentChangeY=this.options.friction,this.timeSinceRelease=0;break}}return!1}activate(t){t=t||{},typeof t.x<"u"&&(this.x=t.x,this.percentChangeX=this.options.friction),typeof t.y<"u"&&(this.y=t.y,this.percentChangeY=this.options.friction)}update(t){if(this.paused)return;const n=this.x||this.y,r=this.timeSinceRelease,i=this.timeSinceRelease+t;if(this.x){const o=this.percentChangeX,s=Math.log(o);this.parent.x+=this.x*ju/s*(Math.pow(o,i/ju)-Math.pow(o,r/ju)),this.x*=Math.pow(this.percentChangeX,t/ju)}if(this.y){const o=this.percentChangeY,s=Math.log(o);this.parent.y+=this.y*ju/s*(Math.pow(o,i/ju)-Math.pow(o,r/ju)),this.y*=Math.pow(this.percentChangeY,t/ju)}this.timeSinceRelease+=t,this.x&&this.y?Math.abs(this.x){t.includes(i.code)&&(this.keyIsPressed=!0)},r=i=>{t.includes(i.code)&&(this.keyIsPressed=!1)};this.addWindowEventHandler("keyup",r),this.addWindowEventHandler("keydown",n)}addWindowEventHandler(t,n){window.addEventListener(t,n),this.windowEventHandlers.push({event:t,handler:n})}destroy(){this.windowEventHandlers.forEach(({event:t,handler:n})=>{window.removeEventListener(t,n)})}mouseButtons(t){!t||t==="all"?this.mouse=[!0,!0,!0]:this.mouse=[t.indexOf("left")!==-1,t.indexOf("middle")!==-1,t.indexOf("right")!==-1]}parseUnderflow(){const t=this.options.underflow.toLowerCase();t==="center"?(this.underflowX=0,this.underflowY=0):(t.includes("left")?this.underflowX=-1:t.includes("right")?this.underflowX=1:this.underflowX=0,t.includes("top")?this.underflowY=-1:t.includes("bottom")?this.underflowY=1:this.underflowY=0)}checkButtons(t){const n=t.pointerType==="mouse",r=this.parent.input.count();return!!((r===1||r>1&&!this.parent.plugins.get("pinch",!0))&&(!n||this.mouse[t.button]))}checkKeyPress(t){return!this.options.keyToPress||this.keyIsPressed||this.options.ignoreKeyToPressOnTouch&&t.data.pointerType==="touch"}down(t){return this.paused||!this.options.pressDrag?!1:this.checkButtons(t)&&this.checkKeyPress(t)?(this.last={x:t.global.x,y:t.global.y},this.current=t.pointerId,!0):(this.last=null,!1)}get active(){return this.moved}move(t){if(this.paused||!this.options.pressDrag)return!1;if(this.last&&this.current===t.data.pointerId){const n=t.global.x,r=t.global.y,i=this.parent.input.count();if(i===1||i>1&&!this.parent.plugins.get("pinch",!0)){const o=n-this.last.x,s=r-this.last.y;if(this.moved||this.xDirection&&this.parent.input.checkThreshold(o)||this.yDirection&&this.parent.input.checkThreshold(s)){const l={x:n,y:r};return this.xDirection&&(this.parent.x+=(l.x-this.last.x)*this.options.factor),this.yDirection&&(this.parent.y+=(l.y-this.last.y)*this.options.factor),this.last=l,this.moved||this.parent.emit("drag-start",{event:t,screen:new Ot(this.last.x,this.last.y),world:this.parent.toWorld(new Ot(this.last.x,this.last.y)),viewport:this.parent}),this.moved=!0,this.parent.emit("moved",{viewport:this.parent,type:"drag"}),!0}}else this.moved=!1}return!1}up(t){if(this.paused)return!1;const n=this.parent.input.touches;if(n.length===1){const r=n[0];return r.last&&(this.last={x:r.last.x,y:r.last.y},this.current=r.id),this.moved=!1,!0}else if(this.last&&this.moved){const r=new Ot(this.last.x,this.last.y);return this.parent.emit("drag-end",{event:t,screen:r,world:this.parent.toWorld(r),viewport:this.parent}),this.last=null,this.moved=!1,!0}return!1}wheel(t){if(this.paused)return!1;if(this.options.wheel){const n=this.parent.plugins.get("wheel",!0);if(!n||!n.options.wheelZoom&&!t.ctrlKey){const r=t.deltaMode?this.options.lineHeight:1,i=[t.deltaX,t.deltaY],[o,s]=this.options.wheelSwapAxes?i.reverse():i;return this.xDirection&&(this.parent.x+=o*r*this.options.wheelScroll*this.reverse),this.yDirection&&(this.parent.y+=s*r*this.options.wheelScroll*this.reverse),this.options.clampWheel&&this.clamp(),this.parent.emit("wheel-scroll",this.parent),this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.options.passiveWheel||t.preventDefault(),this.parent.options.stopPropagation&&t.stopPropagation(),!0}}return!1}resume(){this.last=null,this.paused=!1}clamp(){const t=this.parent.plugins.get("decelerate",!0)||{};if(this.options.clampWheel!=="y")if(this.parent.screenWorldWidththis.parent.worldWidth&&(this.parent.x=-this.parent.worldWidth*this.parent.scale.x+this.parent.screenWidth,t.x=0);if(this.options.clampWheel!=="x")if(this.parent.screenWorldHeightthis.parent.worldHeight&&(this.parent.y=-this.parent.worldHeight*this.parent.scale.y+this.parent.screenHeight,t.y=0)}};const nje={speed:0,acceleration:null,radius:null};let rje=class extends ba{constructor(t,n,r={}){super(t),Se(this,"options"),Se(this,"target"),Se(this,"velocity"),this.target=n,this.options=Object.assign({},nje,r),this.velocity={x:0,y:0}}update(t){if(this.paused)return;const n=this.parent.center;let r=this.target.x,i=this.target.y;if(this.options.radius)if(Math.sqrt(Math.pow(this.target.y-n.y,2)+Math.pow(this.target.x-n.x,2))>this.options.radius){const l=Math.atan2(this.target.y-n.y,this.target.x-n.x);r=this.target.x-Math.cos(l)*this.options.radius,i=this.target.y-Math.sin(l)*this.options.radius}else return;const o=r-n.x,s=i-n.y;if(o||s)if(this.options.speed)if(this.options.acceleration){const l=Math.atan2(i-n.y,r-n.x),c=Math.sqrt(Math.pow(o,2)+Math.pow(s,2));if(c){const d=(Math.pow(this.velocity.x,2)+Math.pow(this.velocity.y,2))/(2*this.options.acceleration);c>d?this.velocity={x:Math.min(this.velocity.x+(this.options.acceleration*t,this.options.speed)),y:Math.min(this.velocity.y+(this.options.acceleration*t,this.options.speed))}:this.velocity={x:Math.max(this.velocity.x-this.options.acceleration*this.options.speed,0),y:Math.max(this.velocity.y-this.options.acceleration*this.options.speed,0)};const f=Math.cos(l)*this.velocity.x,h=Math.sin(l)*this.velocity.y,p=Math.abs(f)>Math.abs(o)?r:n.x+f,g=Math.abs(h)>Math.abs(s)?i:n.y+h;this.parent.moveCenter(p,g),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}}else{const l=Math.atan2(i-n.y,r-n.x),c=Math.cos(l)*this.options.speed,d=Math.sin(l)*this.options.speed,f=Math.abs(c)>Math.abs(o)?r:n.x+c,h=Math.abs(d)>Math.abs(s)?i:n.y+d;this.parent.moveCenter(f,h),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}else this.parent.moveCenter(r,i),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}};const ije={radius:null,distance:null,top:null,bottom:null,left:null,right:null,speed:8,reverse:!1,noDecelerate:!1,linear:!1,allowButtons:!1};let oje=class extends ba{constructor(t,n={}){super(t),Se(this,"options"),Se(this,"reverse"),Se(this,"radiusSquared"),Se(this,"left"),Se(this,"top"),Se(this,"right"),Se(this,"bottom"),Se(this,"horizontal"),Se(this,"vertical"),this.options=Object.assign({},ije,n),this.reverse=this.options.reverse?1:-1,this.radiusSquared=typeof this.options.radius=="number"?Math.pow(this.options.radius,2):null,this.resize()}resize(){const t=this.options.distance;t!==null?(this.left=t,this.top=t,this.right=this.parent.screenWidth-t,this.bottom=this.parent.screenHeight-t):this.options.radius||(this.left=this.options.left,this.top=this.options.top,this.right=this.options.right===null?null:this.parent.screenWidth-this.options.right,this.bottom=this.options.bottom===null?null:this.parent.screenHeight-this.options.bottom)}down(){return this.paused||this.options.allowButtons||(this.horizontal=this.vertical=null),!1}move(t){if(this.paused||t.pointerType!=="mouse"&&t.pointerId!==1||!this.options.allowButtons&&t.buttons!==0)return!1;const n=t.global.x,r=t.global.y;if(this.radiusSquared){const i=this.parent.toScreen(this.parent.center);if(Math.pow(i.x-n,2)+Math.pow(i.y-r,2)>=this.radiusSquared){const o=Math.atan2(i.y-r,i.x-n);this.options.linear?(this.horizontal=Math.round(Math.cos(o))*this.options.speed*this.reverse*(60/1e3),this.vertical=Math.round(Math.sin(o))*this.options.speed*this.reverse*(60/1e3)):(this.horizontal=Math.cos(o)*this.options.speed*this.reverse*(60/1e3),this.vertical=Math.sin(o)*this.options.speed*this.reverse*(60/1e3))}else this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=0}else this.left!==null&&nthis.right?this.horizontal=-1*this.reverse*this.options.speed*(60/1e3):(this.decelerateHorizontal(),this.horizontal=0),this.top!==null&&rthis.bottom?this.vertical=-1*this.reverse*this.options.speed*(60/1e3):(this.decelerateVertical(),this.vertical=0);return!1}decelerateHorizontal(){const t=this.parent.plugins.get("decelerate",!0);this.horizontal&&t&&!this.options.noDecelerate&&t.activate({x:this.horizontal*this.options.speed*this.reverse/(1e3/60)})}decelerateVertical(){const t=this.parent.plugins.get("decelerate",!0);this.vertical&&t&&!this.options.noDecelerate&&t.activate({y:this.vertical*this.options.speed*this.reverse/(1e3/60)})}up(){return this.paused||(this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=null),!1}update(){if(!this.paused&&(this.horizontal||this.vertical)){const t=this.parent.center;this.horizontal&&(t.x+=this.horizontal*this.options.speed),this.vertical&&(t.y+=this.vertical*this.options.speed),this.parent.moveCenter(t),this.parent.emit("moved",{viewport:this.parent,type:"mouse-edges"})}}};const sje={noDrag:!1,percent:1,center:null,factor:1,axis:"all"};let aje=class extends ba{constructor(t,n={}){super(t),Se(this,"options"),Se(this,"active",!1),Se(this,"pinching",!1),Se(this,"moved",!1),Se(this,"lastCenter"),this.options=Object.assign({},sje,n)}down(){return this.parent.input.count()>=2?(this.active=!0,!0):!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}move(t){if(this.paused||!this.active)return!1;const n=t.global.x,r=t.global.y,i=this.parent.input.touches;if(i.length>=2){const o=i[0],s=i[1],l=o.last&&s.last?Math.sqrt(Math.pow(s.last.x-o.last.x,2)+Math.pow(s.last.y-o.last.y,2)):null;if(o.id===t.pointerId?o.last={x:n,y:r,data:t}:s.id===t.pointerId&&(s.last={x:n,y:r,data:t}),l){let c;const d=new Ot(o.last.x+(s.last.x-o.last.x)/2,o.last.y+(s.last.y-o.last.y)/2);this.options.center||(c=this.parent.toLocal(d));let f=Math.sqrt(Math.pow(s.last.x-o.last.x,2)+Math.pow(s.last.y-o.last.y,2));f=f===0?f=1e-10:f;const h=(1-l/f)*this.options.percent*(this.isAxisX()?this.parent.scale.x:this.parent.scale.y);this.isAxisX()&&(this.parent.scale.x+=h),this.isAxisY()&&(this.parent.scale.y+=h),this.parent.emit("zoomed",{viewport:this.parent,type:"pinch",center:d});const p=this.parent.plugins.get("clamp-zoom",!0);if(p&&p.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const g=this.parent.toGlobal(c);this.parent.x+=(d.x-g.x)*this.options.factor,this.parent.y+=(d.y-g.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})}!this.options.noDrag&&this.lastCenter&&(this.parent.x+=(d.x-this.lastCenter.x)*this.options.factor,this.parent.y+=(d.y-this.lastCenter.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})),this.lastCenter=d,this.moved=!0}else this.pinching||(this.parent.emit("pinch-start",this.parent),this.pinching=!0);return!0}return!1}up(){return this.pinching&&this.parent.input.touches.length<=1?(this.active=!1,this.lastCenter=null,this.pinching=!1,this.moved=!1,this.parent.emit("pinch-end",this.parent),!0):!1}};const lje={topLeft:!1,friction:.8,time:1e3,ease:"easeInOutSine",interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1};let cje=class extends ba{constructor(t,n,r,i={}){super(t),Se(this,"options"),Se(this,"ease"),Se(this,"x"),Se(this,"y"),Se(this,"percent"),Se(this,"snapping"),Se(this,"deltaX"),Se(this,"deltaY"),Se(this,"startX"),Se(this,"startY"),this.options=Object.assign({},lje,i),this.ease=Uk(i.ease,"easeInOutSine"),this.x=n,this.y=r,this.options.forceStart&&this.snapStart()}snapStart(){this.percent=0,this.snapping={time:0};const t=this.options.topLeft?this.parent.corner:this.parent.center;this.deltaX=this.x-t.x,this.deltaY=this.y-t.y,this.startX=t.x,this.startY=t.y,this.parent.emit("snap-start",this.parent)}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap"):this.options.interrupt&&(this.snapping=null),!1}up(){if(this.parent.input.count()===0){const t=this.parent.plugins.get("decelerate",!0);t&&(t.x||t.y)&&(t.percentChangeX=t.percentChangeY=this.options.friction)}return!1}update(t){if(!this.paused&&!(this.options.interrupt&&this.parent.input.count()!==0))if(this.snapping){const n=this.snapping;n.time+=t;let r,i,o;const s=this.startX,l=this.startY,c=this.deltaX,d=this.deltaY;if(n.time>this.options.time)r=!0,i=s+c,o=l+d;else{const f=this.ease(n.time,0,1,this.options.time);i=s+c*f,o=l+d*f}this.options.topLeft?this.parent.moveCorner(i,o):this.parent.moveCenter(i,o),this.parent.emit("moved",{viewport:this.parent,type:"snap"}),r&&(this.options.removeOnComplete&&this.parent.plugins.remove("snap"),this.parent.emit("snap-end",this.parent),this.snapping=null)}else{const n=this.options.topLeft?this.parent.corner:this.parent.center;(n.x!==this.x||n.y!==this.y)&&this.snapStart()}}};const uje={width:0,height:0,time:1e3,ease:"easeInOutSine",center:null,interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1,noMove:!1};let dje=class extends ba{constructor(t,n={}){super(t),Se(this,"options"),Se(this,"ease"),Se(this,"xScale"),Se(this,"yScale"),Se(this,"xIndependent"),Se(this,"yIndependent"),Se(this,"snapping"),this.options=Object.assign({},uje,n),this.ease=Uk(this.options.ease),this.xIndependent=!1,this.yIndependent=!1,this.xScale=0,this.yScale=0,this.options.width>0&&(this.xScale=t.screenWidth/this.options.width,this.xIndependent=!0),this.options.height>0&&(this.yScale=t.screenHeight/this.options.height,this.yIndependent=!0),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale,this.options.time===0?(t.container.scale.x=this.xScale,t.container.scale.y=this.yScale,this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom")):n.forceStart&&this.createSnapping()}createSnapping(){const t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight,r=this.parent.screenWidth/this.xScale,i=this.parent.screenHeight/this.yScale;this.snapping={time:0,startX:t,startY:n,deltaX:r-t,deltaY:i-n},this.parent.emit("snap-zoom-start",this.parent)}resize(){this.snapping=null,this.options.width>0&&(this.xScale=this.parent.screenWidth/this.options.width),this.options.height>0&&(this.yScale=this.parent.screenHeight/this.options.height),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap-zoom"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap-zoom"):this.options.interrupt&&(this.snapping=null),!1}update(t){if(this.paused||this.options.interrupt&&this.parent.input.count()!==0)return;let n;if(!this.options.center&&!this.options.noMove&&(n=this.parent.center),!this.snapping)(this.parent.scale.x!==this.xScale||this.parent.scale.y!==this.yScale)&&this.createSnapping();else if(this.snapping){const r=this.snapping;if(r.time+=t,r.time>=this.options.time)this.parent.scale.set(this.xScale,this.yScale),this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom"),this.parent.emit("snap-zoom-end",this.parent),this.snapping=null;else{const o=this.snapping,s=this.ease(o.time,o.startX,o.deltaX,this.options.time),l=this.ease(o.time,o.startY,o.deltaY,this.options.time);this.parent.scale.x=this.parent.screenWidth/s,this.parent.scale.y=this.parent.screenHeight/l}const i=this.parent.plugins.get("clamp-zoom",!0);i&&i.clamp(),this.options.noMove||(this.options.center?this.parent.moveCenter(this.options.center):this.parent.moveCenter(n))}}resume(){this.snapping=null,super.resume()}};const fje={percent:.1,smooth:!1,interrupt:!0,reverse:!1,center:null,lineHeight:20,axis:"all",keyToPress:null,trackpadPinch:!1,wheelZoom:!0};let hje=class extends ba{constructor(t,n={}){super(t),Se(this,"options"),Se(this,"smoothing"),Se(this,"smoothingCenter"),Se(this,"smoothingCount"),Se(this,"keyIsPressed"),this.options=Object.assign({},fje,n),this.keyIsPressed=!1,this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(t){window.addEventListener("keydown",n=>{t.includes(n.code)&&(this.keyIsPressed=!0)}),window.addEventListener("keyup",n=>{t.includes(n.code)&&(this.keyIsPressed=!1)})}checkKeyPress(){return!this.options.keyToPress||this.keyIsPressed}down(){return this.options.interrupt&&(this.smoothing=null),!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}update(){if(this.smoothing){const t=this.smoothingCenter,n=this.smoothing;let r;this.options.center||(r=this.parent.toLocal(t)),this.isAxisX()&&(this.parent.scale.x+=n.x),this.isAxisY()&&(this.parent.scale.y+=n.y),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const i=this.parent.plugins.get("clamp-zoom",!0);if(i&&i.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const o=this.parent.toGlobal(r);this.parent.x+=t.x-o.x,this.parent.y+=t.y-o.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.smoothingCount++,this.smoothingCount>=this.options.smooth&&(this.smoothing=null)}}pinch(t){if(this.paused)return;const n=this.parent.input.getPointerPosition(t),r=-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/200,i=Math.pow(2,(1+this.options.percent)*r);let o;this.options.center||(o=this.parent.toLocal(n)),this.isAxisX()&&(this.parent.scale.x*=i),this.isAxisY()&&(this.parent.scale.y*=i),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const s=this.parent.plugins.get("clamp-zoom",!0);if(s&&s.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const l=this.parent.toGlobal(o);this.parent.x+=n.x-l.x,this.parent.y+=n.y-l.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}wheel(t){if(this.paused||!this.checkKeyPress())return!1;if(t.ctrlKey&&this.options.trackpadPinch)this.pinch(t);else if(this.options.wheelZoom){const n=this.parent.input.getPointerPosition(t),r=(this.options.reverse?-1:1)*-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/500,i=Math.pow(2,(1+this.options.percent)*r);if(this.options.smooth){const o={x:this.smoothing?this.smoothing.x*(this.options.smooth-this.smoothingCount):0,y:this.smoothing?this.smoothing.y*(this.options.smooth-this.smoothingCount):0};this.smoothing={x:((this.parent.scale.x+o.x)*i-this.parent.scale.x)/this.options.smooth,y:((this.parent.scale.y+o.y)*i-this.parent.scale.y)/this.options.smooth},this.smoothingCount=0,this.smoothingCenter=n}else{let o;this.options.center||(o=this.parent.toLocal(n)),this.isAxisX()&&(this.parent.scale.x*=i),this.isAxisY()&&(this.parent.scale.y*=i),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const s=this.parent.plugins.get("clamp-zoom",!0);if(s&&s.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const l=this.parent.toGlobal(o);this.parent.x+=n.x-l.x,this.parent.y+=n.y-l.y}}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}return!this.parent.options.passiveWheel}},pje=class{constructor(t){Se(this,"viewport"),Se(this,"clickedAvailable"),Se(this,"isMouseDown"),Se(this,"last"),Se(this,"wheelFunction"),Se(this,"touches"),this.viewport=t,this.touches=[],this.addListeners()}addListeners(){this.viewport.interactive=!0,this.viewport.forceHitArea||(this.viewport.hitArea=new Kt(0,0,this.viewport.worldWidth,this.viewport.worldHeight)),this.viewport.on("pointerdown",this.down,this),this.viewport.options.allowPreserveDragOutside?this.viewport.on("globalpointermove",this.move,this):this.viewport.on("pointermove",this.move,this),this.viewport.on("pointerup",this.up,this),this.viewport.on("pointerupoutside",this.up,this),this.viewport.on("pointercancel",this.up,this),this.viewport.options.allowPreserveDragOutside||this.viewport.on("pointerleave",this.up,this),this.wheelFunction=t=>this.handleWheel(t),this.viewport.options.events.domElement.addEventListener("wheel",this.wheelFunction,{passive:this.viewport.options.passiveWheel}),this.isMouseDown=!1}destroy(){this.viewport.options.events.domElement.removeEventListener("wheel",this.wheelFunction)}down(t){if(!(this.viewport.pause||!this.viewport.worldVisible)){if(t.pointerType==="mouse"?this.isMouseDown=!0:this.get(t.pointerId)||this.touches.push({id:t.pointerId,last:null}),this.count()===1){this.last=t.global.clone();const n=this.viewport.plugins.get("decelerate",!0),r=this.viewport.plugins.get("bounce",!0);(!n||!n.isActive())&&(!r||!r.isActive())?this.clickedAvailable=!0:this.clickedAvailable=!1}else this.clickedAvailable=!1;this.viewport.plugins.down(t)&&this.viewport.options.stopPropagation&&t.stopPropagation()}}clear(){this.isMouseDown=!1,this.touches=[],this.last=null}checkThreshold(t){return Math.abs(t)>=this.viewport.threshold}move(t){if(this.viewport.pause||!this.viewport.worldVisible)return;const n=this.viewport.plugins.move(t);if(this.clickedAvailable&&this.last){const r=t.global.x-this.last.x,i=t.global.y-this.last.y;(this.checkThreshold(r)||this.checkThreshold(i))&&(this.clickedAvailable=!1)}n&&this.viewport.options.stopPropagation&&t.stopPropagation()}up(t){if(this.viewport.pause||!this.viewport.worldVisible)return;t.pointerType==="mouse"&&(this.isMouseDown=!1),t.pointerType!=="mouse"&&this.remove(t.pointerId);const n=this.viewport.plugins.up(t);this.clickedAvailable&&this.count()===0&&this.last&&(this.viewport.emit("clicked",{event:t,screen:this.last,world:this.viewport.toWorld(this.last),viewport:this.viewport}),this.clickedAvailable=!1),n&&this.viewport.options.stopPropagation&&t.stopPropagation()}getPointerPosition(t){const n=new Ot;return this.viewport.options.events.mapPositionToPoint(n,t.clientX,t.clientY),n}handleWheel(t){if(this.viewport.pause||!this.viewport.worldVisible)return;const n=this.viewport.toLocal(this.getPointerPosition(t));this.viewport.left<=n.x&&n.x<=this.viewport.right&&this.viewport.top<=n.y&&n.y<=this.viewport.bottom&&this.viewport.plugins.wheel(t)&&!this.viewport.options.passiveWheel&&t.preventDefault()}pause(){this.touches=[],this.isMouseDown=!1}get(t){for(const n of this.touches)if(n.id===t)return n;return null}remove(t){for(let n=0;n{t.destroy()}),this.plugins={},this.sort()}remove(t){var n;this.plugins[t]&&((n=this.plugins[t])==null||n.destroy(),delete this.plugins[t],this.viewport.emit("plugin-remove",t),this.sort())}pause(t){var n;(n=this.plugins[t])==null||n.pause()}resume(t){var n;(n=this.plugins[t])==null||n.resume()}sort(){this.list=[];for(const t of bb)this.plugins[t]&&this.list.push(this.plugins[t])}down(t){let n=!1;for(const r of this.list)r.down(t)&&(n=!0);return n}move(t){let n=!1;for(const r of this.viewport.plugins.list)r.move(t)&&(n=!0);return n}up(t){let n=!1;for(const r of this.list)r.up(t)&&(n=!0);return n}wheel(t){let n=!1;for(const r of this.list)r.wheel(t)&&(n=!0);return n}};const gje={screenWidth:window.innerWidth,screenHeight:window.innerHeight,worldWidth:null,worldHeight:null,threshold:5,passiveWheel:!0,stopPropagation:!1,forceHitArea:null,noTicker:!1,disableOnContextMenu:!1,ticker:Xr.shared,allowPreserveDragOutside:!1};class vje extends qo{constructor(t){super(),Se(this,"moving"),Se(this,"screenWidth"),Se(this,"screenHeight"),Se(this,"threshold"),Se(this,"input"),Se(this,"plugins"),Se(this,"zooming"),Se(this,"lastViewport"),Se(this,"options"),Se(this,"_dirty"),Se(this,"_forceHitArea"),Se(this,"_hitAreaDefault"),Se(this,"_pause"),Se(this,"tickerFunction"),Se(this,"_worldWidth"),Se(this,"_worldHeight"),Se(this,"_disableOnContextMenu",n=>n.preventDefault()),this.options={...gje,...t},this.screenWidth=this.options.screenWidth,this.screenHeight=this.options.screenHeight,this._worldWidth=this.options.worldWidth,this._worldHeight=this.options.worldHeight,this.forceHitArea=this.options.forceHitArea,this.threshold=this.options.threshold,this.options.disableOnContextMenu&&this.options.events.domElement.addEventListener("contextmenu",this._disableOnContextMenu),this.options.noTicker||(this.tickerFunction=()=>this.update(this.options.ticker.elapsedMS),this.options.ticker.add(this.tickerFunction)),this.input=new pje(this),this.plugins=new mje(this)}destroy(t){!this.options.noTicker&&this.tickerFunction&&this.options.ticker.remove(this.tickerFunction),this.options.disableOnContextMenu&&this.options.events.domElement.removeEventListener("contextmenu",this._disableOnContextMenu),this.input.destroy(),super.destroy(t)}update(t){this.pause||(this.plugins.update(t),this.lastViewport&&(this.lastViewport.x!==this.x||this.lastViewport.y!==this.y?this.moving=!0:this.moving&&(this.emit("moved-end",this),this.moving=!1),this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y?this.zooming=!0:this.zooming&&(this.emit("zoomed-end",this),this.zooming=!1)),this.forceHitArea||(this._hitAreaDefault=new Kt(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight),this.hitArea=this._hitAreaDefault),this._dirty=this._dirty||!this.lastViewport||this.lastViewport.x!==this.x||this.lastViewport.y!==this.y||this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y,this.lastViewport={x:this.x,y:this.y,scaleX:this.scale.x,scaleY:this.scale.y},this.emit("frame-end",this))}resize(t=window.innerWidth,n=window.innerHeight,r,i){this.screenWidth=t,this.screenHeight=n,typeof r<"u"&&(this._worldWidth=r),typeof i<"u"&&(this._worldHeight=i),this.plugins.resize(),this.dirty=!0}get worldWidth(){return this._worldWidth?this._worldWidth:this.width/this.scale.x}set worldWidth(t){this._worldWidth=t,this.plugins.resize()}get worldHeight(){return this._worldHeight?this._worldHeight:this.height/this.scale.y}set worldHeight(t){this._worldHeight=t,this.plugins.resize()}getVisibleBounds(){return new Kt(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight)}toWorld(t,n){return arguments.length===2?this.toLocal(new Ot(t,n)):this.toLocal(t)}toScreen(t,n){return arguments.length===2?this.toGlobal(new Ot(t,n)):this.toGlobal(t)}get worldScreenWidth(){return this.screenWidth/this.scale.x}get worldScreenHeight(){return this.screenHeight/this.scale.y}get screenWorldWidth(){return this.worldWidth*this.scale.x}get screenWorldHeight(){return this.worldHeight*this.scale.y}get center(){return new Ot(this.worldScreenWidth/2-this.x/this.scale.x,this.worldScreenHeight/2-this.y/this.scale.y)}set center(t){this.moveCenter(t)}moveCenter(...t){let n,r;typeof t[0]=="number"?(n=t[0],r=t[1]):(n=t[0].x,r=t[0].y);const i=(this.worldScreenWidth/2-n)*this.scale.x,o=(this.worldScreenHeight/2-r)*this.scale.y;return(this.x!==i||this.y!==o)&&(this.position.set(i,o),this.plugins.reset(),this.dirty=!0),this}get corner(){return new Ot(-this.x/this.scale.x,-this.y/this.scale.y)}set corner(t){this.moveCorner(t)}moveCorner(...t){let n,r;return t.length===1?(n=-t[0].x*this.scale.x,r=-t[0].y*this.scale.y):(n=-t[0]*this.scale.x,r=-t[1]*this.scale.y),(n!==this.x||r!==this.y)&&(this.position.set(n,r),this.plugins.reset(),this.dirty=!0),this}get screenWidthInWorldPixels(){return this.screenWidth/this.scale.x}get screenHeightInWorldPixels(){return this.screenHeight/this.scale.y}findFitWidth(t){return this.screenWidth/t}findFitHeight(t){return this.screenHeight/t}findFit(t,n){const r=this.screenWidth/t,i=this.screenHeight/n;return Math.min(r,i)}findCover(t,n){const r=this.screenWidth/t,i=this.screenHeight/n;return Math.max(r,i)}fitWidth(t=this.worldWidth,n,r=!0,i){let o;n&&(o=this.center),this.scale.x=this.screenWidth/t,r&&(this.scale.y=this.scale.x);const s=this.plugins.get("clamp-zoom",!0);return!i&&s&&s.clamp(),n&&o&&this.moveCenter(o),this}fitHeight(t=this.worldHeight,n,r=!0,i){let o;n&&(o=this.center),this.scale.y=this.screenHeight/t,r&&(this.scale.x=this.scale.y);const s=this.plugins.get("clamp-zoom",!0);return!i&&s&&s.clamp(),n&&o&&this.moveCenter(o),this}fitWorld(t){let n;t&&(n=this.center),this.scale.x=this.screenWidth/this.worldWidth,this.scale.y=this.screenHeight/this.worldHeight,this.scale.xthis.worldWidth,top:this.top<0,bottom:this.bottom>this.worldHeight,cornerPoint:new Ot(this.worldWidth*this.scale.x-this.screenWidth,this.worldHeight*this.scale.y-this.screenHeight)}}get right(){return-this.x/this.scale.x+this.worldScreenWidth}set right(t){this.x=-t*this.scale.x+this.screenWidth,this.plugins.reset()}get left(){return-this.x/this.scale.x}set left(t){this.x=-t*this.scale.x,this.plugins.reset()}get top(){return-this.y/this.scale.y}set top(t){this.y=-t*this.scale.y,this.plugins.reset()}get bottom(){return-this.y/this.scale.y+this.worldScreenHeight}set bottom(t){this.y=-t*this.scale.y+this.screenHeight,this.plugins.reset()}get dirty(){return!!this._dirty}set dirty(t){this._dirty=t}get forceHitArea(){return this._forceHitArea}set forceHitArea(t){t?(this._forceHitArea=t,this.hitArea=t):(this._forceHitArea=null,this.hitArea=new Kt(0,0,this.worldWidth,this.worldHeight))}drag(t){return this.plugins.add("drag",new tje(this,t)),this}clamp(t){return this.plugins.add("clamp",new Yze(this,t)),this}decelerate(t){return this.plugins.add("decelerate",new Zze(this,t)),this}bounce(t){return this.plugins.add("bounce",new qze(this,t)),this}pinch(t){return this.plugins.add("pinch",new aje(this,t)),this}snap(t,n,r){return this.plugins.add("snap",new cje(this,t,n,r)),this}follow(t,n){return this.plugins.add("follow",new rje(this,t,n)),this}wheel(t){return this.plugins.add("wheel",new hje(this,t)),this}animate(t){return this.plugins.add("animate",new Gze(this,t)),this}clampZoom(t){return this.plugins.add("clamp-zoom",new Qze(this,t)),this}mouseEdges(t){return this.plugins.add("mouse-edges",new oje(this,t)),this}get pause(){return!!this._pause}set pause(t){this._pause=t,this.lastViewport=null,this.moving=!1,this.zooming=!1,t&&this.input.pause()}ensureVisible(t,n,r,i,o){o&&(r>this.worldScreenWidth||i>this.worldScreenHeight)&&(this.fit(!0,r,i),this.emit("zoomed",{viewport:this,type:"ensureVisible"}));let s=!1;tthis.right&&(this.right=t+r,s=!0),nthis.bottom&&(this.bottom=n+i,s=!0),s&&this.emit("moved",{viewport:this,type:"ensureVisible"})}}const xb=new Ot,yje=new Uint16Array([0,1,2,0,2,3]);class jp extends qo{constructor(t){super(),this._anchor=new fd(this._onAnchorUpdate,this,t?t.defaultAnchor.x:0,t?t.defaultAnchor.y:0),this._texture=null,this._width=0,this._height=0,this._tintColor=new zn(16777215),this._tintRGB=null,this.tint=16777215,this.blendMode=Mt.NORMAL,this._cachedTint=16777215,this.uvs=null,this.texture=t||ht.EMPTY,this.vertexData=new Float32Array(8),this.vertexTrimmedData=null,this._transformID=-1,this._textureID=-1,this._transformTrimmedID=-1,this._textureTrimmedID=-1,this.indices=yje,this.pluginName="batch",this.isSprite=!0,this._roundPixels=tt.ROUND_PIXELS}_onTextureUpdate(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=dd(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=dd(this.scale.y)*this._height/this._texture.orig.height)}_onAnchorUpdate(){this._transformID=-1,this._transformTrimmedID=-1}calculateVertices(){const t=this._texture;if(this._transformID===this.transform._worldID&&this._textureID===t._updateID)return;this._textureID!==t._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=t._updateID;const n=this.transform.worldTransform,r=n.a,i=n.b,o=n.c,s=n.d,l=n.tx,c=n.ty,d=this.vertexData,f=t.trim,h=t.orig,p=this._anchor;let g=0,v=0,y=0,S=0;if(f?(v=f.x-p._x*h.width,g=v+f.width,S=f.y-p._y*h.height,y=S+f.height):(v=-p._x*h.width,g=v+h.width,S=-p._y*h.height,y=S+h.height),d[0]=r*v+o*S+l,d[1]=s*S+i*v+c,d[2]=r*g+o*S+l,d[3]=s*S+i*g+c,d[4]=r*g+o*y+l,d[5]=s*y+i*g+c,d[6]=r*v+o*y+l,d[7]=s*y+i*v+c,this._roundPixels){const _=tt.RESOLUTION;for(let b=0;b=i&&xb.x=o&&xb.y=n&&(s=e-l-1),c=c.replace("%value%",t[s].toString()),i+=c,i+=` -`}return r=r.replace("%blur%",i),r=r.replace("%size%",e.toString()),r}const _je=` +`;class wje extends Hi{constructor(t=1){super(Dze,xje,{uAlpha:1}),this.alpha=t}get alpha(){return this.uniforms.uAlpha}set alpha(t){this.uniforms.uAlpha=t}}const _je={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},Sje=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join(` +`);function Eje(e){const t=_je[e],n=t.length;let r=Sje,i="";const o="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";let s;for(let l=0;l=n&&(s=e-l-1),c=c.replace("%value%",t[s].toString()),i+=c,i+=` +`}return r=r.replace("%blur%",i),r=r.replace("%size%",e.toString()),r}const Cje=` attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; @@ -1123,8 +1123,8 @@ void main(void) vec2 textureCoord = filterTextureCoord(); %blur% - }`;function Sje(e,t){const n=Math.ceil(e/2);let r=_je,i="",o;t?o="vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);":o="vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";for(let s=0;s{Object.defineProperty(u7,e,{get(){return cn("7.1.0",`filters.${e} has moved to ${e}`),t}})});class Dje{constructor(){this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}init(t){this.removeTickerListener(),this.events=t,this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}get pauseUpdate(){return this._pauseUpdate}set pauseUpdate(t){this._pauseUpdate=t}addTickerListener(){this.tickerAdded||!this.domElement||(Xr.system.add(this.tickerUpdate,this,wp.INTERACTION),this.tickerAdded=!0)}removeTickerListener(){this.tickerAdded&&(Xr.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)}pointerMoved(){this._didMove=!0}update(){if(!this.domElement||this._pauseUpdate)return;if(this._didMove){this._didMove=!1;return}const t=this.events.rootPointerEvent;this.events.supportsTouchEvents&&t.pointerType==="touch"||globalThis.document.dispatchEvent(new PointerEvent("pointermove",{clientX:t.clientX,clientY:t.clientY}))}tickerUpdate(t){this._deltaTime+=t,!(this._deltaTimer.priority-i.priority)}dispatchEvent(t,n){t.propagationStopped=!1,t.propagationImmediatelyStopped=!1,this.propagate(t,n),this.dispatch.emit(n||t.type,t)}mapEvent(t){if(!this.rootTarget)return;const n=this.mappingTable[t.type];if(n)for(let r=0,i=n.length;r=0;i--)if(t.currentTarget=r[i],this.notifyTarget(t,n),t.propagationStopped||t.propagationImmediatelyStopped)return}}all(t,n,r=this._allInteractiveElements){if(r.length===0)return;t.eventPhase=t.BUBBLING_PHASE;const i=Array.isArray(n)?n:[n];for(let o=r.length-1;o>=0;o--)i.forEach(s=>{t.currentTarget=r[o],this.notifyTarget(t,s)})}propagationPath(t){const n=[t];for(let r=0;r=0;h--){const p=f[h],g=this.hitTestMoveRecursive(p,this._isInteractive(n)?n:p.eventMode,r,i,o,s||o(t,r));if(g){if(g.length>0&&!g[g.length-1].parent)continue;const v=t.isInteractive();(g.length>0||v)&&(v&&this._allInteractiveElements.push(t),g.push(t)),this._hitElements.length===0&&(this._hitElements=g),l=!0}}}const c=this._isInteractive(n),d=t.isInteractive();return d&&d&&this._allInteractiveElements.push(t),s||this._hitElements.length>0?null:l?this._hitElements:c&&!o(t,r)&&i(t,r)?d?[t]:[]:null}hitTestRecursive(t,n,r,i,o){if(this._interactivePrune(t)||o(t,r))return null;if((t.eventMode==="dynamic"||n==="dynamic")&&(Zu.pauseUpdate=!1),t.interactiveChildren&&t.children){const c=t.children;for(let d=c.length-1;d>=0;d--){const f=c[d],h=this.hitTestRecursive(f,this._isInteractive(n)?n:f.eventMode,r,i,o);if(h){if(h.length>0&&!h[h.length-1].parent)continue;const p=t.isInteractive();return(h.length>0||p)&&h.push(t),h}}}const s=this._isInteractive(n),l=t.isInteractive();return s&&i(t,r)?l?[t]:[]:null}_isInteractive(t){return t==="static"||t==="dynamic"}_interactivePrune(t){return!!(!t||t.isMask||!t.visible||!t.renderable||t.eventMode==="none"||t.eventMode==="passive"&&!t.interactiveChildren||t.isMask)}hitPruneFn(t,n){var r;if(t.hitArea&&(t.worldTransform.applyInverse(n,lB),!t.hitArea.contains(lB.x,lB.y)))return!0;if(t._mask){const i=t._mask.isMaskData?t._mask.maskObject:t._mask;if(i&&!((r=i.containsPoint)!=null&&r.call(i,n)))return!0}return!1}hitTestFn(t,n){return t.eventMode==="passive"?!1:t.hitArea?!0:t.containsPoint?t.containsPoint(n):!1}notifyTarget(t,n){var o,s;n=n??t.type;const r=`on${n}`;(s=(o=t.currentTarget)[r])==null||s.call(o,t);const i=t.eventPhase===t.CAPTURING_PHASE||t.eventPhase===t.AT_TARGET?`${n}capture`:n;this.notifyListeners(t,i),t.eventPhase===t.AT_TARGET&&this.notifyListeners(t,n)}mapPointerDown(t){if(!(t instanceof za)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.createPointerEvent(t);if(this.dispatchEvent(n,"pointerdown"),n.pointerType==="touch")this.dispatchEvent(n,"touchstart");else if(n.pointerType==="mouse"||n.pointerType==="pen"){const i=n.button===2;this.dispatchEvent(n,i?"rightdown":"mousedown")}const r=this.trackingData(t.pointerId);r.pressTargetsByButton[t.button]=n.composedPath(),this.freeEvent(n)}mapPointerMove(t){var c,d;if(!(t instanceof za)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}this._allInteractiveElements.length=0,this._hitElements.length=0,this._isPointerMoveEvent=!0;const n=this.createPointerEvent(t);this._isPointerMoveEvent=!1;const r=n.pointerType==="mouse"||n.pointerType==="pen",i=this.trackingData(t.pointerId),o=this.findMountedTarget(i.overTargets);if(((c=i.overTargets)==null?void 0:c.length)>0&&o!==n.target){const f=t.type==="mousemove"?"mouseout":"pointerout",h=this.createPointerEvent(t,f,o);if(this.dispatchEvent(h,"pointerout"),r&&this.dispatchEvent(h,"mouseout"),!n.composedPath().includes(o)){const p=this.createPointerEvent(t,"pointerleave",o);for(p.eventPhase=p.AT_TARGET;p.target&&!n.composedPath().includes(p.target);)p.currentTarget=p.target,this.notifyTarget(p),r&&this.notifyTarget(p,"mouseleave"),p.target=p.target.parent;this.freeEvent(p)}this.freeEvent(h)}if(o!==n.target){const f=t.type==="mousemove"?"mouseover":"pointerover",h=this.clonePointerEvent(n,f);this.dispatchEvent(h,"pointerover"),r&&this.dispatchEvent(h,"mouseover");let p=o==null?void 0:o.parent;for(;p&&p!==this.rootTarget.parent&&p!==n.target;)p=p.parent;if(!p||p===this.rootTarget.parent){const v=this.clonePointerEvent(n,"pointerenter");for(v.eventPhase=v.AT_TARGET;v.target&&v.target!==o&&v.target!==this.rootTarget.parent;)v.currentTarget=v.target,this.notifyTarget(v),r&&this.notifyTarget(v,"mouseenter"),v.target=v.target.parent;this.freeEvent(v)}this.freeEvent(h)}const s=[],l=this.enableGlobalMoveEvents??!0;this.moveOnAll?s.push("pointermove"):this.dispatchEvent(n,"pointermove"),l&&s.push("globalpointermove"),n.pointerType==="touch"&&(this.moveOnAll?s.splice(1,0,"touchmove"):this.dispatchEvent(n,"touchmove"),l&&s.push("globaltouchmove")),r&&(this.moveOnAll?s.splice(1,0,"mousemove"):this.dispatchEvent(n,"mousemove"),l&&s.push("globalmousemove"),this.cursor=(d=n.target)==null?void 0:d.cursor),s.length>0&&this.all(n,s),this._allInteractiveElements.length=0,this._hitElements.length=0,i.overTargets=n.composedPath(),this.freeEvent(n)}mapPointerOver(t){var s;if(!(t instanceof za)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId),r=this.createPointerEvent(t),i=r.pointerType==="mouse"||r.pointerType==="pen";this.dispatchEvent(r,"pointerover"),i&&this.dispatchEvent(r,"mouseover"),r.pointerType==="mouse"&&(this.cursor=(s=r.target)==null?void 0:s.cursor);const o=this.clonePointerEvent(r,"pointerenter");for(o.eventPhase=o.AT_TARGET;o.target&&o.target!==this.rootTarget.parent;)o.currentTarget=o.target,this.notifyTarget(o),i&&this.notifyTarget(o,"mouseenter"),o.target=o.target.parent;n.overTargets=r.composedPath(),this.freeEvent(r),this.freeEvent(o)}mapPointerOut(t){if(!(t instanceof za)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId);if(n.overTargets){const r=t.pointerType==="mouse"||t.pointerType==="pen",i=this.findMountedTarget(n.overTargets),o=this.createPointerEvent(t,"pointerout",i);this.dispatchEvent(o),r&&this.dispatchEvent(o,"mouseout");const s=this.createPointerEvent(t,"pointerleave",i);for(s.eventPhase=s.AT_TARGET;s.target&&s.target!==this.rootTarget.parent;)s.currentTarget=s.target,this.notifyTarget(s),r&&this.notifyTarget(s,"mouseleave"),s.target=s.target.parent;n.overTargets=null,this.freeEvent(o),this.freeEvent(s)}this.cursor=null}mapPointerUp(t){if(!(t instanceof za)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=performance.now(),r=this.createPointerEvent(t);if(this.dispatchEvent(r,"pointerup"),r.pointerType==="touch")this.dispatchEvent(r,"touchend");else if(r.pointerType==="mouse"||r.pointerType==="pen"){const l=r.button===2;this.dispatchEvent(r,l?"rightup":"mouseup")}const i=this.trackingData(t.pointerId),o=this.findMountedTarget(i.pressTargetsByButton[t.button]);let s=o;if(o&&!r.composedPath().includes(o)){let l=o;for(;l&&!r.composedPath().includes(l);){if(r.currentTarget=l,this.notifyTarget(r,"pointerupoutside"),r.pointerType==="touch")this.notifyTarget(r,"touchendoutside");else if(r.pointerType==="mouse"||r.pointerType==="pen"){const c=r.button===2;this.notifyTarget(r,c?"rightupoutside":"mouseupoutside")}l=l.parent}delete i.pressTargetsByButton[t.button],s=l}if(s){const l=this.clonePointerEvent(r,"click");l.target=s,l.path=null,i.clicksByButton[t.button]||(i.clicksByButton[t.button]={clickCount:0,target:l.target,timeStamp:n});const c=i.clicksByButton[t.button];if(c.target===l.target&&n-c.timeStamp<200?++c.clickCount:c.clickCount=1,c.target=l.target,c.timeStamp=n,l.detail=c.clickCount,l.pointerType==="mouse"){const d=l.button===2;this.dispatchEvent(l,d?"rightclick":"click")}else l.pointerType==="touch"&&this.dispatchEvent(l,"tap");this.dispatchEvent(l,"pointertap"),this.freeEvent(l)}this.freeEvent(r)}mapPointerUpOutside(t){if(!(t instanceof za)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId),r=this.findMountedTarget(n.pressTargetsByButton[t.button]),i=this.createPointerEvent(t);if(r){let o=r;for(;o;)i.currentTarget=o,this.notifyTarget(i,"pointerupoutside"),i.pointerType==="touch"?this.notifyTarget(i,"touchendoutside"):(i.pointerType==="mouse"||i.pointerType==="pen")&&this.notifyTarget(i,i.button===2?"rightupoutside":"mouseupoutside"),o=o.parent;delete n.pressTargetsByButton[t.button]}this.freeEvent(i)}mapWheel(t){if(!(t instanceof Lg)){console.warn("EventBoundary cannot map a non-wheel event as a wheel event");return}const n=this.createWheelEvent(t);this.dispatchEvent(n),this.freeEvent(n)}findMountedTarget(t){if(!t)return null;let n=t[0];for(let r=1;r(n==="globalMove"&&(this.rootBoundary.enableGlobalMoveEvents=r),t[n]=r,!0)}),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOverOut=this.onPointerOverOut.bind(this),this.onWheel=this.onWheel.bind(this)}static get defaultEventMode(){return this._defaultEventMode}init(e){const{view:t,resolution:n}=this.renderer;this.setTargetElement(t),this.resolution=n,N3._defaultEventMode=e.eventMode??"auto",Object.assign(this.features,e.eventFeatures??{}),this.rootBoundary.enableGlobalMoveEvents=this.features.globalMove}resolutionChange(e){this.resolution=e}destroy(){this.setTargetElement(null),this.renderer=null}setCursor(e){e=e||"default";let t=!0;if(globalThis.OffscreenCanvas&&this.domElement instanceof OffscreenCanvas&&(t=!1),this.currentCursor===e)return;this.currentCursor=e;const n=this.cursorStyles[e];if(n)switch(typeof n){case"string":t&&(this.domElement.style.cursor=n);break;case"function":n(e);break;case"object":t&&Object.assign(this.domElement.style,n);break}else t&&typeof e=="string"&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,e)&&(this.domElement.style.cursor=e)}get pointer(){return this.rootPointerEvent}onPointerDown(e){if(!this.features.click||(this.rootBoundary.rootTarget=this.renderer.lastObjectRendered,this.supportsTouchEvents&&e.pointerType==="touch"))return;const t=this.normalizeToPointerData(e);this.autoPreventDefault&&t[0].isNormalized&&(e.cancelable||!("cancelable"in e))&&e.preventDefault();for(let n=0,r=t.length;n0&&(t=e.composedPath()[0]);const n=t!==this.domElement?"outside":"",r=this.normalizeToPointerData(e);for(let i=0,o=r.length;i"u"&&(i.button=0),typeof i.buttons>"u"&&(i.buttons=1),typeof i.isPrimary>"u"&&(i.isPrimary=e.touches.length===1&&e.type==="touchstart"),typeof i.width>"u"&&(i.width=i.radiusX||1),typeof i.height>"u"&&(i.height=i.radiusY||1),typeof i.tiltX>"u"&&(i.tiltX=0),typeof i.tiltY>"u"&&(i.tiltY=0),typeof i.pointerType>"u"&&(i.pointerType="touch"),typeof i.pointerId>"u"&&(i.pointerId=i.identifier||0),typeof i.pressure>"u"&&(i.pressure=i.force||.5),typeof i.twist>"u"&&(i.twist=0),typeof i.tangentialPressure>"u"&&(i.tangentialPressure=0),typeof i.layerX>"u"&&(i.layerX=i.offsetX=i.clientX),typeof i.layerY>"u"&&(i.layerY=i.offsetY=i.clientY),i.isNormalized=!0,i.type=e.type,t.push(i)}else if(!globalThis.MouseEvent||e instanceof MouseEvent&&(!this.supportsPointerEvents||!(e instanceof globalThis.PointerEvent))){const n=e;typeof n.isPrimary>"u"&&(n.isPrimary=!0),typeof n.width>"u"&&(n.width=1),typeof n.height>"u"&&(n.height=1),typeof n.tiltX>"u"&&(n.tiltX=0),typeof n.tiltY>"u"&&(n.tiltY=0),typeof n.pointerType>"u"&&(n.pointerType="mouse"),typeof n.pointerId>"u"&&(n.pointerId=$je),typeof n.pressure>"u"&&(n.pressure=.5),typeof n.twist>"u"&&(n.twist=0),typeof n.tangentialPressure>"u"&&(n.tangentialPressure=0),n.isNormalized=!0,t.push(n)}else t.push(e);return t}normalizeWheelEvent(e){const t=this.rootWheelEvent;return this.transferMouseData(t,e),t.deltaX=e.deltaX,t.deltaY=e.deltaY,t.deltaZ=e.deltaZ,t.deltaMode=e.deltaMode,this.mapPositionToPoint(t.screen,e.clientX,e.clientY),t.global.copyFrom(t.screen),t.offset.copyFrom(t.screen),t.nativeEvent=e,t.type=e.type,t}bootstrapEvent(e,t){return e.originalEvent=null,e.nativeEvent=t,e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.tiltY=t.tiltY,e.twist=t.twist,this.transferMouseData(e,t),this.mapPositionToPoint(e.screen,t.clientX,t.clientY),e.global.copyFrom(e.screen),e.offset.copyFrom(e.screen),e.isTrusted=t.isTrusted,e.type==="pointerleave"&&(e.type="pointerout"),e.type.startsWith("mouse")&&(e.type=e.type.replace("mouse","pointer")),e.type.startsWith("touch")&&(e.type=Fje[e.type]||e.type),e}transferMouseData(e,t){e.isTrusted=t.isTrusted,e.srcElement=t.srcElement,e.timeStamp=performance.now(),e.type=t.type,e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.client.x=t.clientX,e.client.y=t.clientY,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.movement.x=t.movementX,e.movement.y=t.movementY,e.page.x=t.pageX,e.page.y=t.pageY,e.relatedTarget=null,e.shiftKey=t.shiftKey}};let _1=N3;_1.extension={name:"events",type:[rt.RendererSystem,rt.CanvasRendererSystem]};_1.defaultEventFeatures={move:!0,globalMove:!0,click:!0,wheel:!0};bt.add(_1);function d7(e){return e==="dynamic"||e==="static"}const zje={onclick:null,onmousedown:null,onmouseenter:null,onmouseleave:null,onmousemove:null,onglobalmousemove:null,onmouseout:null,onmouseover:null,onmouseup:null,onmouseupoutside:null,onpointercancel:null,onpointerdown:null,onpointerenter:null,onpointerleave:null,onpointermove:null,onglobalpointermove:null,onpointerout:null,onpointerover:null,onpointertap:null,onpointerup:null,onpointerupoutside:null,onrightclick:null,onrightdown:null,onrightup:null,onrightupoutside:null,ontap:null,ontouchcancel:null,ontouchend:null,ontouchendoutside:null,ontouchmove:null,onglobaltouchmove:null,ontouchstart:null,onwheel:null,_internalInteractive:void 0,get interactive(){return this._internalInteractive??d7(_1.defaultEventMode)},set interactive(e){cn("7.2.0","Setting interactive is deprecated, use eventMode = 'none'/'passive'/'auto'/'static'/'dynamic' instead."),this._internalInteractive=e,this.eventMode=e?"static":"auto"},_internalEventMode:void 0,get eventMode(){return this._internalEventMode??_1.defaultEventMode},set eventMode(e){this._internalInteractive=d7(e),this._internalEventMode=e},isInteractive(){return this.eventMode==="static"||this.eventMode==="dynamic"},interactiveChildren:!0,hitArea:null,addEventListener(e,t,n){const r=typeof n=="boolean"&&n||typeof n=="object"&&n.capture,i=typeof t=="function"?void 0:t;e=r?`${e}capture`:e,t=typeof t=="function"?t:t.handleEvent,this.on(e,t,i)},removeEventListener(e,t,n){const r=typeof n=="boolean"&&n||typeof n=="object"&&n.capture,i=typeof t=="function"?void 0:t;e=r?`${e}capture`:e,t=typeof t=="function"?t:t.handleEvent,this.off(e,t,i)},dispatchEvent(e){if(!(e instanceof pw))throw new Error("DisplayObject cannot propagate events outside of the Federated Events API");return e.defaultPrevented=!1,e.path=null,e.target=this,e.manager.dispatchEvent(e),!e.defaultPrevented}};Pr.mixin(zje);const jje={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1};Pr.mixin(jje);const Uje=9,F_=100,Hje=0,Wje=0,f7=2,h7=1,Gje=-1e3,Vje=-1e3,qje=2;class cne{constructor(t){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(cu.tablet||cu.phone)&&this.createTouchHook();const n=document.createElement("div");n.style.width=`${F_}px`,n.style.height=`${F_}px`,n.style.position="absolute",n.style.top=`${Hje}px`,n.style.left=`${Wje}px`,n.style.zIndex=f7.toString(),this.div=n,this.renderer=t,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}get isActive(){return this._isActive}get isMobileAccessibility(){return this._isMobileAccessibility}createTouchHook(){const t=document.createElement("button");t.style.width=`${h7}px`,t.style.height=`${h7}px`,t.style.position="absolute",t.style.top=`${Gje}px`,t.style.left=`${Vje}px`,t.style.zIndex=qje.toString(),t.style.backgroundColor="#FF0000",t.title="select to enable accessibility for this content",t.addEventListener("focus",()=>{this._isMobileAccessibility=!0,this.activate(),this.destroyTouchHook()}),document.body.appendChild(t),this._hookDiv=t}destroyTouchHook(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)}activate(){var t;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),(t=this.renderer.view.parentNode)==null||t.appendChild(this.div))}deactivate(){var t;!this._isActive||this._isMobileAccessibility||(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),(t=this.div.parentNode)==null||t.removeChild(this.div))}updateAccessibleObjects(t){if(!t.visible||!t.accessibleChildren)return;t.accessible&&t.isInteractive()&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);const n=t.children;if(n)for(let r=0;r title : ${t.title}
tabIndex: ${t.tabIndex}`}capHitArea(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);const{width:n,height:r}=this.renderer;t.x+t.width>n&&(t.width=n-t.x),t.y+t.height>r&&(t.height=r-t.y)}addChild(t){let n=this.pool.pop();n||(n=document.createElement("button"),n.style.width=`${F_}px`,n.style.height=`${F_}px`,n.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",n.style.position="absolute",n.style.zIndex=f7.toString(),n.style.borderStyle="none",navigator.userAgent.toLowerCase().includes("chrome")?n.setAttribute("aria-live","off"):n.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?n.setAttribute("aria-relevant","additions"):n.setAttribute("aria-relevant","text"),n.addEventListener("click",this._onClick.bind(this)),n.addEventListener("focus",this._onFocus.bind(this)),n.addEventListener("focusout",this._onFocusOut.bind(this))),n.style.pointerEvents=t.accessiblePointerEvents,n.type=t.accessibleType,t.accessibleTitle&&t.accessibleTitle!==null?n.title=t.accessibleTitle:(!t.accessibleHint||t.accessibleHint===null)&&(n.title=`displayObject ${t.tabIndex}`),t.accessibleHint&&t.accessibleHint!==null&&n.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(n),t._accessibleActive=!0,t._accessibleDiv=n,n.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex}_dispatchEvent(t,n){const{displayObject:r}=t.target,i=this.renderer.events.rootBoundary,o=Object.assign(new pw(i),{target:r});i.rootTarget=this.renderer.lastObjectRendered,n.forEach(s=>i.dispatchEvent(o,s))}_onClick(t){this._dispatchEvent(t,["click","pointertap","tap"])}_onFocus(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive"),this._dispatchEvent(t,["mouseover"])}_onFocusOut(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite"),this._dispatchEvent(t,["mouseout"])}_onKeyDown(t){t.keyCode===Uje&&this.activate()}_onMouseMove(t){t.movementX===0&&t.movementY===0||this.deactivate()}destroy(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null}}cne.extension={name:"accessibility",type:[rt.RendererPlugin,rt.CanvasRendererPlugin]};bt.add(cne);const B3=class{constructor(e){this.stage=new qo,e=Object.assign({forceCanvas:!1},e),this.renderer=Aze(e),B3._plugins.forEach(t=>{t.init.call(this,e)})}render(){this.renderer.render(this.stage)}get view(){return this.renderer.view}get screen(){return this.renderer.screen}destroy(e,t){const n=B3._plugins.slice(0);n.reverse(),n.forEach(r=>{r.destroy.call(this)}),this.stage.destroy(t),this.stage=null,this.renderer.destroy(e),this.renderer=null}};let Sj=B3;Sj._plugins=[];bt.handleByList(rt.Application,Sj._plugins);class une{static init(t){Object.defineProperty(this,"resizeTo",{set(n){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=n,n&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get(){return this._resizeTo}}),this.queueResize=()=>{this._resizeTo&&(this.cancelResize(),this._resizeId=requestAnimationFrame(()=>this.resize()))},this.cancelResize=()=>{this._resizeId&&(cancelAnimationFrame(this._resizeId),this._resizeId=null)},this.resize=()=>{if(!this._resizeTo)return;this.cancelResize();let n,r;if(this._resizeTo===globalThis.window)n=globalThis.innerWidth,r=globalThis.innerHeight;else{const{clientWidth:i,clientHeight:o}=this._resizeTo;n=i,r=o}this.renderer.resize(n,r),this.render()},this._resizeId=null,this._resizeTo=null,this.resizeTo=t.resizeTo||null}static destroy(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null}}une.extension=rt.Application;bt.add(une);const p7={loader:rt.LoadParser,resolver:rt.ResolveParser,cache:rt.CacheParser,detection:rt.DetectionParser};bt.handle(rt.Asset,e=>{const t=e.ref;Object.entries(p7).filter(([n])=>!!t[n]).forEach(([n,r])=>bt.add(Object.assign(t[n],{extension:t[n].extension??r})))},e=>{const t=e.ref;Object.keys(p7).filter(n=>!!t[n]).forEach(n=>bt.remove(t[n]))});class Xje{constructor(t,n=!1){this._loader=t,this._assetList=[],this._isLoading=!1,this._maxConcurrent=1,this.verbose=n}add(t){t.forEach(n=>{this._assetList.push(n)}),this.verbose&&console.log("[BackgroundLoader] assets: ",this._assetList),this._isActive&&!this._isLoading&&this._next()}async _next(){if(this._assetList.length&&this._isActive){this._isLoading=!0;const t=[],n=Math.min(this._assetList.length,this._maxConcurrent);for(let r=0;r(Array.isArray(e)||(e=[e]),t?e.map(n=>typeof n=="string"?t(n):n):e),$3=(e,t)=>{const n=t.split("?")[1];return n&&(e+=`?${n}`),e};function dne(e,t,n,r,i){const o=t[n];for(let s=0;s{const s=o.substring(1,o.length-1).split(",");i.push(s)}),dne(e,i,0,n,r)}else r.push(e);return r}const vC=e=>!Array.isArray(e);class Kje{constructor(){this._parsers=[],this._cache=new Map,this._cacheMap=new Map}reset(){this._cacheMap.clear(),this._cache.clear()}has(t){return this._cache.has(t)}get(t){const n=this._cache.get(t);return n||console.warn(`[Assets] Asset id ${t} was not found in the Cache`),n}set(t,n){const r=hu(t);let i;for(let l=0;l{i[l]=n}));const o=Object.keys(i),s={cacheKeys:o,keys:r};if(r.forEach(l=>{this._cacheMap.set(l,s)}),o.forEach(l=>{this._cache.has(l)&&this._cache.get(l)!==n&&console.warn("[Cache] already has key:",l),this._cache.set(l,i[l])}),n instanceof ht){const l=n;r.forEach(c=>{l.baseTexture!==ht.EMPTY.baseTexture&&Vt.addToCache(l.baseTexture,c),ht.addToCache(l,c)})}}remove(t){if(this._cacheMap.get(t),!this._cacheMap.has(t)){console.warn(`[Assets] Asset id ${t} was not found in the Cache`);return}const n=this._cacheMap.get(t);n.cacheKeys.forEach(i=>{this._cache.delete(i)}),n.keys.forEach(i=>{this._cacheMap.delete(i)})}get parsers(){return this._parsers}}const yb=new Kje;class Qje{constructor(){this._parsers=[],this._parsersValidated=!1,this.parsers=new Proxy(this._parsers,{set:(t,n,r)=>(this._parsersValidated=!1,t[n]=r,!0)}),this.promiseCache={}}reset(){this._parsersValidated=!1,this.promiseCache={}}_getLoadPromiseAndParser(t,n){const r={promise:null,parser:null};return r.promise=(async()=>{var s,l;let i=null,o=null;if(n.loadParser&&(o=this._parserHash[n.loadParser],o||console.warn(`[Assets] specified load parser "${n.loadParser}" not found while loading ${t}`)),!o){for(let c=0;c({src:d})),l=s.length,c=s.map(async d=>{const f=to.toAbsolute(d.src);if(!i[d.src])try{this.promiseCache[f]||(this.promiseCache[f]=this._getLoadPromiseAndParser(f,d)),i[d.src]=await this.promiseCache[f].promise,n&&n(++r/l)}catch(h){throw delete this.promiseCache[f],delete i[d.src],new Error(`[Loader.load] Failed to load ${f}. -${h}`)}});return await Promise.all(c),o?i[s[0].src]:i}async unload(t){const r=hu(t,i=>({src:i})).map(async i=>{var l,c;const o=to.toAbsolute(i.src),s=this.promiseCache[o];if(s){const d=await s.promise;(c=(l=s.parser)==null?void 0:l.unload)==null||c.call(l,d,i,this),delete this.promiseCache[o]}});await Promise.all(r)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(t=>t.name).reduce((t,n)=>(t[n.name]&&console.warn(`[Assets] loadParser name conflict "${n.name}"`),{...t,[n.name]:n}),{})}}var ec=(e=>(e[e.Low=0]="Low",e[e.Normal=1]="Normal",e[e.High=2]="High",e))(ec||{});const Jje=".json",Zje="application/json",e6e={extension:{type:rt.LoadParser,priority:ec.Low},name:"loadJson",test(e){return mw(e,Zje)||zp(e,Jje)},async load(e){return await(await tt.ADAPTER.fetch(e)).json()}};bt.add(e6e);const t6e=".txt",n6e="text/plain",r6e={name:"loadTxt",extension:{type:rt.LoadParser,priority:ec.Low},test(e){return mw(e,n6e)||zp(e,t6e)},async load(e){return await(await tt.ADAPTER.fetch(e)).text()}};bt.add(r6e);const i6e=["normal","bold","100","200","300","400","500","600","700","800","900"],o6e=[".ttf",".otf",".woff",".woff2"],s6e=["font/ttf","font/otf","font/woff","font/woff2"],a6e=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function l6e(e){const t=to.extname(e),i=to.basename(e,t).replace(/(-|_)/g," ").toLowerCase().split(" ").map(l=>l.charAt(0).toUpperCase()+l.slice(1));let o=i.length>0;for(const l of i)if(!l.match(a6e)){o=!1;break}let s=i.join(" ");return o||(s=`"${s.replace(/[\\"]/g,"\\$&")}"`),s}const c6e={extension:{type:rt.LoadParser,priority:ec.Low},name:"loadWebFont",test(e){return mw(e,s6e)||zp(e,o6e)},async load(e,t){var r,i,o;const n=tt.ADAPTER.getFontFaceSet();if(n){const s=[],l=((r=t.data)==null?void 0:r.family)??l6e(e),c=((o=(i=t.data)==null?void 0:i.weights)==null?void 0:o.filter(f=>i6e.includes(f)))??["normal"],d=t.data??{};for(let f=0;ftt.ADAPTER.getFontFaceSet().delete(t))}};bt.add(c6e);let m7=0,cB;const u6e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=",d6e={id:"checkImageBitmap",code:` +`;class Nje extends Hi{constructor(t=.5,n=Math.random()){super(sne,Lje,{uNoise:0,uSeed:0}),this.noise=t,this.seed=n}get noise(){return this.uniforms.uNoise}set noise(t){this.uniforms.uNoise=t}get seed(){return this.uniforms.uSeed}set seed(t){this.uniforms.uSeed=t}}const p7={AlphaFilter:wje,BlurFilter:kje,BlurFilterPass:N3,ColorMatrixFilter:B3,DisplacementFilter:Pje,FXAAFilter:Dje,NoiseFilter:Nje};Object.entries(p7).forEach(([e,t])=>{Object.defineProperty(p7,e,{get(){return cn("7.1.0",`filters.${e} has moved to ${e}`),t}})});class Bje{constructor(){this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}init(t){this.removeTickerListener(),this.events=t,this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}get pauseUpdate(){return this._pauseUpdate}set pauseUpdate(t){this._pauseUpdate=t}addTickerListener(){this.tickerAdded||!this.domElement||(Xr.system.add(this.tickerUpdate,this,Sp.INTERACTION),this.tickerAdded=!0)}removeTickerListener(){this.tickerAdded&&(Xr.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)}pointerMoved(){this._didMove=!0}update(){if(!this.domElement||this._pauseUpdate)return;if(this._didMove){this._didMove=!1;return}const t=this.events.rootPointerEvent;this.events.supportsTouchEvents&&t.pointerType==="touch"||globalThis.document.dispatchEvent(new PointerEvent("pointermove",{clientX:t.clientX,clientY:t.clientY}))}tickerUpdate(t){this._deltaTime+=t,!(this._deltaTimer.priority-i.priority)}dispatchEvent(t,n){t.propagationStopped=!1,t.propagationImmediatelyStopped=!1,this.propagate(t,n),this.dispatch.emit(n||t.type,t)}mapEvent(t){if(!this.rootTarget)return;const n=this.mappingTable[t.type];if(n)for(let r=0,i=n.length;r=0;i--)if(t.currentTarget=r[i],this.notifyTarget(t,n),t.propagationStopped||t.propagationImmediatelyStopped)return}}all(t,n,r=this._allInteractiveElements){if(r.length===0)return;t.eventPhase=t.BUBBLING_PHASE;const i=Array.isArray(n)?n:[n];for(let o=r.length-1;o>=0;o--)i.forEach(s=>{t.currentTarget=r[o],this.notifyTarget(t,s)})}propagationPath(t){const n=[t];for(let r=0;r<$je&&t!==this.rootTarget;r++){if(!t.parent)throw new Error("Cannot find propagation path to disconnected target");n.push(t.parent),t=t.parent}return n.reverse(),n}hitTestMoveRecursive(t,n,r,i,o,s=!1){let l=!1;if(this._interactivePrune(t))return null;if((t.eventMode==="dynamic"||n==="dynamic")&&(nd.pauseUpdate=!1),t.interactiveChildren&&t.children){const f=t.children;for(let h=f.length-1;h>=0;h--){const p=f[h],g=this.hitTestMoveRecursive(p,this._isInteractive(n)?n:p.eventMode,r,i,o,s||o(t,r));if(g){if(g.length>0&&!g[g.length-1].parent)continue;const v=t.isInteractive();(g.length>0||v)&&(v&&this._allInteractiveElements.push(t),g.push(t)),this._hitElements.length===0&&(this._hitElements=g),l=!0}}}const c=this._isInteractive(n),d=t.isInteractive();return d&&d&&this._allInteractiveElements.push(t),s||this._hitElements.length>0?null:l?this._hitElements:c&&!o(t,r)&&i(t,r)?d?[t]:[]:null}hitTestRecursive(t,n,r,i,o){if(this._interactivePrune(t)||o(t,r))return null;if((t.eventMode==="dynamic"||n==="dynamic")&&(nd.pauseUpdate=!1),t.interactiveChildren&&t.children){const c=t.children;for(let d=c.length-1;d>=0;d--){const f=c[d],h=this.hitTestRecursive(f,this._isInteractive(n)?n:f.eventMode,r,i,o);if(h){if(h.length>0&&!h[h.length-1].parent)continue;const p=t.isInteractive();return(h.length>0||p)&&h.push(t),h}}}const s=this._isInteractive(n),l=t.isInteractive();return s&&i(t,r)?l?[t]:[]:null}_isInteractive(t){return t==="static"||t==="dynamic"}_interactivePrune(t){return!!(!t||t.isMask||!t.visible||!t.renderable||t.eventMode==="none"||t.eventMode==="passive"&&!t.interactiveChildren||t.isMask)}hitPruneFn(t,n){var r;if(t.hitArea&&(t.worldTransform.applyInverse(n,uB),!t.hitArea.contains(uB.x,uB.y)))return!0;if(t._mask){const i=t._mask.isMaskData?t._mask.maskObject:t._mask;if(i&&!((r=i.containsPoint)!=null&&r.call(i,n)))return!0}return!1}hitTestFn(t,n){return t.eventMode==="passive"?!1:t.hitArea?!0:t.containsPoint?t.containsPoint(n):!1}notifyTarget(t,n){var o,s;n=n??t.type;const r=`on${n}`;(s=(o=t.currentTarget)[r])==null||s.call(o,t);const i=t.eventPhase===t.CAPTURING_PHASE||t.eventPhase===t.AT_TARGET?`${n}capture`:n;this.notifyListeners(t,i),t.eventPhase===t.AT_TARGET&&this.notifyListeners(t,n)}mapPointerDown(t){if(!(t instanceof ja)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.createPointerEvent(t);if(this.dispatchEvent(n,"pointerdown"),n.pointerType==="touch")this.dispatchEvent(n,"touchstart");else if(n.pointerType==="mouse"||n.pointerType==="pen"){const i=n.button===2;this.dispatchEvent(n,i?"rightdown":"mousedown")}const r=this.trackingData(t.pointerId);r.pressTargetsByButton[t.button]=n.composedPath(),this.freeEvent(n)}mapPointerMove(t){var c,d;if(!(t instanceof ja)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}this._allInteractiveElements.length=0,this._hitElements.length=0,this._isPointerMoveEvent=!0;const n=this.createPointerEvent(t);this._isPointerMoveEvent=!1;const r=n.pointerType==="mouse"||n.pointerType==="pen",i=this.trackingData(t.pointerId),o=this.findMountedTarget(i.overTargets);if(((c=i.overTargets)==null?void 0:c.length)>0&&o!==n.target){const f=t.type==="mousemove"?"mouseout":"pointerout",h=this.createPointerEvent(t,f,o);if(this.dispatchEvent(h,"pointerout"),r&&this.dispatchEvent(h,"mouseout"),!n.composedPath().includes(o)){const p=this.createPointerEvent(t,"pointerleave",o);for(p.eventPhase=p.AT_TARGET;p.target&&!n.composedPath().includes(p.target);)p.currentTarget=p.target,this.notifyTarget(p),r&&this.notifyTarget(p,"mouseleave"),p.target=p.target.parent;this.freeEvent(p)}this.freeEvent(h)}if(o!==n.target){const f=t.type==="mousemove"?"mouseover":"pointerover",h=this.clonePointerEvent(n,f);this.dispatchEvent(h,"pointerover"),r&&this.dispatchEvent(h,"mouseover");let p=o==null?void 0:o.parent;for(;p&&p!==this.rootTarget.parent&&p!==n.target;)p=p.parent;if(!p||p===this.rootTarget.parent){const v=this.clonePointerEvent(n,"pointerenter");for(v.eventPhase=v.AT_TARGET;v.target&&v.target!==o&&v.target!==this.rootTarget.parent;)v.currentTarget=v.target,this.notifyTarget(v),r&&this.notifyTarget(v,"mouseenter"),v.target=v.target.parent;this.freeEvent(v)}this.freeEvent(h)}const s=[],l=this.enableGlobalMoveEvents??!0;this.moveOnAll?s.push("pointermove"):this.dispatchEvent(n,"pointermove"),l&&s.push("globalpointermove"),n.pointerType==="touch"&&(this.moveOnAll?s.splice(1,0,"touchmove"):this.dispatchEvent(n,"touchmove"),l&&s.push("globaltouchmove")),r&&(this.moveOnAll?s.splice(1,0,"mousemove"):this.dispatchEvent(n,"mousemove"),l&&s.push("globalmousemove"),this.cursor=(d=n.target)==null?void 0:d.cursor),s.length>0&&this.all(n,s),this._allInteractiveElements.length=0,this._hitElements.length=0,i.overTargets=n.composedPath(),this.freeEvent(n)}mapPointerOver(t){var s;if(!(t instanceof ja)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId),r=this.createPointerEvent(t),i=r.pointerType==="mouse"||r.pointerType==="pen";this.dispatchEvent(r,"pointerover"),i&&this.dispatchEvent(r,"mouseover"),r.pointerType==="mouse"&&(this.cursor=(s=r.target)==null?void 0:s.cursor);const o=this.clonePointerEvent(r,"pointerenter");for(o.eventPhase=o.AT_TARGET;o.target&&o.target!==this.rootTarget.parent;)o.currentTarget=o.target,this.notifyTarget(o),i&&this.notifyTarget(o,"mouseenter"),o.target=o.target.parent;n.overTargets=r.composedPath(),this.freeEvent(r),this.freeEvent(o)}mapPointerOut(t){if(!(t instanceof ja)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId);if(n.overTargets){const r=t.pointerType==="mouse"||t.pointerType==="pen",i=this.findMountedTarget(n.overTargets),o=this.createPointerEvent(t,"pointerout",i);this.dispatchEvent(o),r&&this.dispatchEvent(o,"mouseout");const s=this.createPointerEvent(t,"pointerleave",i);for(s.eventPhase=s.AT_TARGET;s.target&&s.target!==this.rootTarget.parent;)s.currentTarget=s.target,this.notifyTarget(s),r&&this.notifyTarget(s,"mouseleave"),s.target=s.target.parent;n.overTargets=null,this.freeEvent(o),this.freeEvent(s)}this.cursor=null}mapPointerUp(t){if(!(t instanceof ja)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=performance.now(),r=this.createPointerEvent(t);if(this.dispatchEvent(r,"pointerup"),r.pointerType==="touch")this.dispatchEvent(r,"touchend");else if(r.pointerType==="mouse"||r.pointerType==="pen"){const l=r.button===2;this.dispatchEvent(r,l?"rightup":"mouseup")}const i=this.trackingData(t.pointerId),o=this.findMountedTarget(i.pressTargetsByButton[t.button]);let s=o;if(o&&!r.composedPath().includes(o)){let l=o;for(;l&&!r.composedPath().includes(l);){if(r.currentTarget=l,this.notifyTarget(r,"pointerupoutside"),r.pointerType==="touch")this.notifyTarget(r,"touchendoutside");else if(r.pointerType==="mouse"||r.pointerType==="pen"){const c=r.button===2;this.notifyTarget(r,c?"rightupoutside":"mouseupoutside")}l=l.parent}delete i.pressTargetsByButton[t.button],s=l}if(s){const l=this.clonePointerEvent(r,"click");l.target=s,l.path=null,i.clicksByButton[t.button]||(i.clicksByButton[t.button]={clickCount:0,target:l.target,timeStamp:n});const c=i.clicksByButton[t.button];if(c.target===l.target&&n-c.timeStamp<200?++c.clickCount:c.clickCount=1,c.target=l.target,c.timeStamp=n,l.detail=c.clickCount,l.pointerType==="mouse"){const d=l.button===2;this.dispatchEvent(l,d?"rightclick":"click")}else l.pointerType==="touch"&&this.dispatchEvent(l,"tap");this.dispatchEvent(l,"pointertap"),this.freeEvent(l)}this.freeEvent(r)}mapPointerUpOutside(t){if(!(t instanceof ja)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId),r=this.findMountedTarget(n.pressTargetsByButton[t.button]),i=this.createPointerEvent(t);if(r){let o=r;for(;o;)i.currentTarget=o,this.notifyTarget(i,"pointerupoutside"),i.pointerType==="touch"?this.notifyTarget(i,"touchendoutside"):(i.pointerType==="mouse"||i.pointerType==="pen")&&this.notifyTarget(i,i.button===2?"rightupoutside":"mouseupoutside"),o=o.parent;delete n.pressTargetsByButton[t.button]}this.freeEvent(i)}mapWheel(t){if(!(t instanceof Ng)){console.warn("EventBoundary cannot map a non-wheel event as a wheel event");return}const n=this.createWheelEvent(t);this.dispatchEvent(n),this.freeEvent(n)}findMountedTarget(t){if(!t)return null;let n=t[0];for(let r=1;r(n==="globalMove"&&(this.rootBoundary.enableGlobalMoveEvents=r),t[n]=r,!0)}),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOverOut=this.onPointerOverOut.bind(this),this.onWheel=this.onWheel.bind(this)}static get defaultEventMode(){return this._defaultEventMode}init(e){const{view:t,resolution:n}=this.renderer;this.setTargetElement(t),this.resolution=n,$3._defaultEventMode=e.eventMode??"auto",Object.assign(this.features,e.eventFeatures??{}),this.rootBoundary.enableGlobalMoveEvents=this.features.globalMove}resolutionChange(e){this.resolution=e}destroy(){this.setTargetElement(null),this.renderer=null}setCursor(e){e=e||"default";let t=!0;if(globalThis.OffscreenCanvas&&this.domElement instanceof OffscreenCanvas&&(t=!1),this.currentCursor===e)return;this.currentCursor=e;const n=this.cursorStyles[e];if(n)switch(typeof n){case"string":t&&(this.domElement.style.cursor=n);break;case"function":n(e);break;case"object":t&&Object.assign(this.domElement.style,n);break}else t&&typeof e=="string"&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,e)&&(this.domElement.style.cursor=e)}get pointer(){return this.rootPointerEvent}onPointerDown(e){if(!this.features.click||(this.rootBoundary.rootTarget=this.renderer.lastObjectRendered,this.supportsTouchEvents&&e.pointerType==="touch"))return;const t=this.normalizeToPointerData(e);this.autoPreventDefault&&t[0].isNormalized&&(e.cancelable||!("cancelable"in e))&&e.preventDefault();for(let n=0,r=t.length;n0&&(t=e.composedPath()[0]);const n=t!==this.domElement?"outside":"",r=this.normalizeToPointerData(e);for(let i=0,o=r.length;i"u"&&(i.button=0),typeof i.buttons>"u"&&(i.buttons=1),typeof i.isPrimary>"u"&&(i.isPrimary=e.touches.length===1&&e.type==="touchstart"),typeof i.width>"u"&&(i.width=i.radiusX||1),typeof i.height>"u"&&(i.height=i.radiusY||1),typeof i.tiltX>"u"&&(i.tiltX=0),typeof i.tiltY>"u"&&(i.tiltY=0),typeof i.pointerType>"u"&&(i.pointerType="touch"),typeof i.pointerId>"u"&&(i.pointerId=i.identifier||0),typeof i.pressure>"u"&&(i.pressure=i.force||.5),typeof i.twist>"u"&&(i.twist=0),typeof i.tangentialPressure>"u"&&(i.tangentialPressure=0),typeof i.layerX>"u"&&(i.layerX=i.offsetX=i.clientX),typeof i.layerY>"u"&&(i.layerY=i.offsetY=i.clientY),i.isNormalized=!0,i.type=e.type,t.push(i)}else if(!globalThis.MouseEvent||e instanceof MouseEvent&&(!this.supportsPointerEvents||!(e instanceof globalThis.PointerEvent))){const n=e;typeof n.isPrimary>"u"&&(n.isPrimary=!0),typeof n.width>"u"&&(n.width=1),typeof n.height>"u"&&(n.height=1),typeof n.tiltX>"u"&&(n.tiltX=0),typeof n.tiltY>"u"&&(n.tiltY=0),typeof n.pointerType>"u"&&(n.pointerType="mouse"),typeof n.pointerId>"u"&&(n.pointerId=jje),typeof n.pressure>"u"&&(n.pressure=.5),typeof n.twist>"u"&&(n.twist=0),typeof n.tangentialPressure>"u"&&(n.tangentialPressure=0),n.isNormalized=!0,t.push(n)}else t.push(e);return t}normalizeWheelEvent(e){const t=this.rootWheelEvent;return this.transferMouseData(t,e),t.deltaX=e.deltaX,t.deltaY=e.deltaY,t.deltaZ=e.deltaZ,t.deltaMode=e.deltaMode,this.mapPositionToPoint(t.screen,e.clientX,e.clientY),t.global.copyFrom(t.screen),t.offset.copyFrom(t.screen),t.nativeEvent=e,t.type=e.type,t}bootstrapEvent(e,t){return e.originalEvent=null,e.nativeEvent=t,e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.tiltY=t.tiltY,e.twist=t.twist,this.transferMouseData(e,t),this.mapPositionToPoint(e.screen,t.clientX,t.clientY),e.global.copyFrom(e.screen),e.offset.copyFrom(e.screen),e.isTrusted=t.isTrusted,e.type==="pointerleave"&&(e.type="pointerout"),e.type.startsWith("mouse")&&(e.type=e.type.replace("mouse","pointer")),e.type.startsWith("touch")&&(e.type=Uje[e.type]||e.type),e}transferMouseData(e,t){e.isTrusted=t.isTrusted,e.srcElement=t.srcElement,e.timeStamp=performance.now(),e.type=t.type,e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.client.x=t.clientX,e.client.y=t.clientY,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.movement.x=t.movementX,e.movement.y=t.movementY,e.page.x=t.pageX,e.page.y=t.pageY,e.relatedTarget=null,e.shiftKey=t.shiftKey}};let C1=$3;C1.extension={name:"events",type:[rt.RendererSystem,rt.CanvasRendererSystem]};C1.defaultEventFeatures={move:!0,globalMove:!0,click:!0,wheel:!0};bt.add(C1);function m7(e){return e==="dynamic"||e==="static"}const Hje={onclick:null,onmousedown:null,onmouseenter:null,onmouseleave:null,onmousemove:null,onglobalmousemove:null,onmouseout:null,onmouseover:null,onmouseup:null,onmouseupoutside:null,onpointercancel:null,onpointerdown:null,onpointerenter:null,onpointerleave:null,onpointermove:null,onglobalpointermove:null,onpointerout:null,onpointerover:null,onpointertap:null,onpointerup:null,onpointerupoutside:null,onrightclick:null,onrightdown:null,onrightup:null,onrightupoutside:null,ontap:null,ontouchcancel:null,ontouchend:null,ontouchendoutside:null,ontouchmove:null,onglobaltouchmove:null,ontouchstart:null,onwheel:null,_internalInteractive:void 0,get interactive(){return this._internalInteractive??m7(C1.defaultEventMode)},set interactive(e){cn("7.2.0","Setting interactive is deprecated, use eventMode = 'none'/'passive'/'auto'/'static'/'dynamic' instead."),this._internalInteractive=e,this.eventMode=e?"static":"auto"},_internalEventMode:void 0,get eventMode(){return this._internalEventMode??C1.defaultEventMode},set eventMode(e){this._internalInteractive=m7(e),this._internalEventMode=e},isInteractive(){return this.eventMode==="static"||this.eventMode==="dynamic"},interactiveChildren:!0,hitArea:null,addEventListener(e,t,n){const r=typeof n=="boolean"&&n||typeof n=="object"&&n.capture,i=typeof t=="function"?void 0:t;e=r?`${e}capture`:e,t=typeof t=="function"?t:t.handleEvent,this.on(e,t,i)},removeEventListener(e,t,n){const r=typeof n=="boolean"&&n||typeof n=="object"&&n.capture,i=typeof t=="function"?void 0:t;e=r?`${e}capture`:e,t=typeof t=="function"?t:t.handleEvent,this.off(e,t,i)},dispatchEvent(e){if(!(e instanceof mw))throw new Error("DisplayObject cannot propagate events outside of the Federated Events API");return e.defaultPrevented=!1,e.path=null,e.target=this,e.manager.dispatchEvent(e),!e.defaultPrevented}};Pr.mixin(Hje);const Wje={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1};Pr.mixin(Wje);const Gje=9,z_=100,Vje=0,qje=0,g7=2,v7=1,Xje=-1e3,Yje=-1e3,Kje=2;class pne{constructor(t){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(uu.tablet||uu.phone)&&this.createTouchHook();const n=document.createElement("div");n.style.width=`${z_}px`,n.style.height=`${z_}px`,n.style.position="absolute",n.style.top=`${Vje}px`,n.style.left=`${qje}px`,n.style.zIndex=g7.toString(),this.div=n,this.renderer=t,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}get isActive(){return this._isActive}get isMobileAccessibility(){return this._isMobileAccessibility}createTouchHook(){const t=document.createElement("button");t.style.width=`${v7}px`,t.style.height=`${v7}px`,t.style.position="absolute",t.style.top=`${Xje}px`,t.style.left=`${Yje}px`,t.style.zIndex=Kje.toString(),t.style.backgroundColor="#FF0000",t.title="select to enable accessibility for this content",t.addEventListener("focus",()=>{this._isMobileAccessibility=!0,this.activate(),this.destroyTouchHook()}),document.body.appendChild(t),this._hookDiv=t}destroyTouchHook(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)}activate(){var t;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),(t=this.renderer.view.parentNode)==null||t.appendChild(this.div))}deactivate(){var t;!this._isActive||this._isMobileAccessibility||(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),(t=this.div.parentNode)==null||t.removeChild(this.div))}updateAccessibleObjects(t){if(!t.visible||!t.accessibleChildren)return;t.accessible&&t.isInteractive()&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);const n=t.children;if(n)for(let r=0;r title : ${t.title}
tabIndex: ${t.tabIndex}`}capHitArea(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);const{width:n,height:r}=this.renderer;t.x+t.width>n&&(t.width=n-t.x),t.y+t.height>r&&(t.height=r-t.y)}addChild(t){let n=this.pool.pop();n||(n=document.createElement("button"),n.style.width=`${z_}px`,n.style.height=`${z_}px`,n.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",n.style.position="absolute",n.style.zIndex=g7.toString(),n.style.borderStyle="none",navigator.userAgent.toLowerCase().includes("chrome")?n.setAttribute("aria-live","off"):n.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?n.setAttribute("aria-relevant","additions"):n.setAttribute("aria-relevant","text"),n.addEventListener("click",this._onClick.bind(this)),n.addEventListener("focus",this._onFocus.bind(this)),n.addEventListener("focusout",this._onFocusOut.bind(this))),n.style.pointerEvents=t.accessiblePointerEvents,n.type=t.accessibleType,t.accessibleTitle&&t.accessibleTitle!==null?n.title=t.accessibleTitle:(!t.accessibleHint||t.accessibleHint===null)&&(n.title=`displayObject ${t.tabIndex}`),t.accessibleHint&&t.accessibleHint!==null&&n.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(n),t._accessibleActive=!0,t._accessibleDiv=n,n.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex}_dispatchEvent(t,n){const{displayObject:r}=t.target,i=this.renderer.events.rootBoundary,o=Object.assign(new mw(i),{target:r});i.rootTarget=this.renderer.lastObjectRendered,n.forEach(s=>i.dispatchEvent(o,s))}_onClick(t){this._dispatchEvent(t,["click","pointertap","tap"])}_onFocus(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive"),this._dispatchEvent(t,["mouseover"])}_onFocusOut(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite"),this._dispatchEvent(t,["mouseout"])}_onKeyDown(t){t.keyCode===Gje&&this.activate()}_onMouseMove(t){t.movementX===0&&t.movementY===0||this.deactivate()}destroy(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null}}pne.extension={name:"accessibility",type:[rt.RendererPlugin,rt.CanvasRendererPlugin]};bt.add(pne);const F3=class{constructor(e){this.stage=new qo,e=Object.assign({forceCanvas:!1},e),this.renderer=Pze(e),F3._plugins.forEach(t=>{t.init.call(this,e)})}render(){this.renderer.render(this.stage)}get view(){return this.renderer.view}get screen(){return this.renderer.screen}destroy(e,t){const n=F3._plugins.slice(0);n.reverse(),n.forEach(r=>{r.destroy.call(this)}),this.stage.destroy(t),this.stage=null,this.renderer.destroy(e),this.renderer=null}};let Tj=F3;Tj._plugins=[];bt.handleByList(rt.Application,Tj._plugins);class mne{static init(t){Object.defineProperty(this,"resizeTo",{set(n){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=n,n&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get(){return this._resizeTo}}),this.queueResize=()=>{this._resizeTo&&(this.cancelResize(),this._resizeId=requestAnimationFrame(()=>this.resize()))},this.cancelResize=()=>{this._resizeId&&(cancelAnimationFrame(this._resizeId),this._resizeId=null)},this.resize=()=>{if(!this._resizeTo)return;this.cancelResize();let n,r;if(this._resizeTo===globalThis.window)n=globalThis.innerWidth,r=globalThis.innerHeight;else{const{clientWidth:i,clientHeight:o}=this._resizeTo;n=i,r=o}this.renderer.resize(n,r),this.render()},this._resizeId=null,this._resizeTo=null,this.resizeTo=t.resizeTo||null}static destroy(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null}}mne.extension=rt.Application;bt.add(mne);const y7={loader:rt.LoadParser,resolver:rt.ResolveParser,cache:rt.CacheParser,detection:rt.DetectionParser};bt.handle(rt.Asset,e=>{const t=e.ref;Object.entries(y7).filter(([n])=>!!t[n]).forEach(([n,r])=>bt.add(Object.assign(t[n],{extension:t[n].extension??r})))},e=>{const t=e.ref;Object.keys(y7).filter(n=>!!t[n]).forEach(n=>bt.remove(t[n]))});class Qje{constructor(t,n=!1){this._loader=t,this._assetList=[],this._isLoading=!1,this._maxConcurrent=1,this.verbose=n}add(t){t.forEach(n=>{this._assetList.push(n)}),this.verbose&&console.log("[BackgroundLoader] assets: ",this._assetList),this._isActive&&!this._isLoading&&this._next()}async _next(){if(this._assetList.length&&this._isActive){this._isLoading=!0;const t=[],n=Math.min(this._assetList.length,this._maxConcurrent);for(let r=0;r(Array.isArray(e)||(e=[e]),t?e.map(n=>typeof n=="string"?t(n):n):e),z3=(e,t)=>{const n=t.split("?")[1];return n&&(e+=`?${n}`),e};function gne(e,t,n,r,i){const o=t[n];for(let s=0;s{const s=o.substring(1,o.length-1).split(",");i.push(s)}),gne(e,i,0,n,r)}else r.push(e);return r}const bC=e=>!Array.isArray(e);class Zje{constructor(){this._parsers=[],this._cache=new Map,this._cacheMap=new Map}reset(){this._cacheMap.clear(),this._cache.clear()}has(t){return this._cache.has(t)}get(t){const n=this._cache.get(t);return n||console.warn(`[Assets] Asset id ${t} was not found in the Cache`),n}set(t,n){const r=mu(t);let i;for(let l=0;l{i[l]=n}));const o=Object.keys(i),s={cacheKeys:o,keys:r};if(r.forEach(l=>{this._cacheMap.set(l,s)}),o.forEach(l=>{this._cache.has(l)&&this._cache.get(l)!==n&&console.warn("[Cache] already has key:",l),this._cache.set(l,i[l])}),n instanceof ht){const l=n;r.forEach(c=>{l.baseTexture!==ht.EMPTY.baseTexture&&Vt.addToCache(l.baseTexture,c),ht.addToCache(l,c)})}}remove(t){if(this._cacheMap.get(t),!this._cacheMap.has(t)){console.warn(`[Assets] Asset id ${t} was not found in the Cache`);return}const n=this._cacheMap.get(t);n.cacheKeys.forEach(i=>{this._cache.delete(i)}),n.keys.forEach(i=>{this._cacheMap.delete(i)})}get parsers(){return this._parsers}}const wb=new Zje;class e6e{constructor(){this._parsers=[],this._parsersValidated=!1,this.parsers=new Proxy(this._parsers,{set:(t,n,r)=>(this._parsersValidated=!1,t[n]=r,!0)}),this.promiseCache={}}reset(){this._parsersValidated=!1,this.promiseCache={}}_getLoadPromiseAndParser(t,n){const r={promise:null,parser:null};return r.promise=(async()=>{var s,l;let i=null,o=null;if(n.loadParser&&(o=this._parserHash[n.loadParser],o||console.warn(`[Assets] specified load parser "${n.loadParser}" not found while loading ${t}`)),!o){for(let c=0;c({src:d})),l=s.length,c=s.map(async d=>{const f=to.toAbsolute(d.src);if(!i[d.src])try{this.promiseCache[f]||(this.promiseCache[f]=this._getLoadPromiseAndParser(f,d)),i[d.src]=await this.promiseCache[f].promise,n&&n(++r/l)}catch(h){throw delete this.promiseCache[f],delete i[d.src],new Error(`[Loader.load] Failed to load ${f}. +${h}`)}});return await Promise.all(c),o?i[s[0].src]:i}async unload(t){const r=mu(t,i=>({src:i})).map(async i=>{var l,c;const o=to.toAbsolute(i.src),s=this.promiseCache[o];if(s){const d=await s.promise;(c=(l=s.parser)==null?void 0:l.unload)==null||c.call(l,d,i,this),delete this.promiseCache[o]}});await Promise.all(r)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(t=>t.name).reduce((t,n)=>(t[n.name]&&console.warn(`[Assets] loadParser name conflict "${n.name}"`),{...t,[n.name]:n}),{})}}var tc=(e=>(e[e.Low=0]="Low",e[e.Normal=1]="Normal",e[e.High=2]="High",e))(tc||{});const t6e=".json",n6e="application/json",r6e={extension:{type:rt.LoadParser,priority:tc.Low},name:"loadJson",test(e){return gw(e,n6e)||Up(e,t6e)},async load(e){return await(await tt.ADAPTER.fetch(e)).json()}};bt.add(r6e);const i6e=".txt",o6e="text/plain",s6e={name:"loadTxt",extension:{type:rt.LoadParser,priority:tc.Low},test(e){return gw(e,o6e)||Up(e,i6e)},async load(e){return await(await tt.ADAPTER.fetch(e)).text()}};bt.add(s6e);const a6e=["normal","bold","100","200","300","400","500","600","700","800","900"],l6e=[".ttf",".otf",".woff",".woff2"],c6e=["font/ttf","font/otf","font/woff","font/woff2"],u6e=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function d6e(e){const t=to.extname(e),i=to.basename(e,t).replace(/(-|_)/g," ").toLowerCase().split(" ").map(l=>l.charAt(0).toUpperCase()+l.slice(1));let o=i.length>0;for(const l of i)if(!l.match(u6e)){o=!1;break}let s=i.join(" ");return o||(s=`"${s.replace(/[\\"]/g,"\\$&")}"`),s}const f6e={extension:{type:rt.LoadParser,priority:tc.Low},name:"loadWebFont",test(e){return gw(e,c6e)||Up(e,l6e)},async load(e,t){var r,i,o;const n=tt.ADAPTER.getFontFaceSet();if(n){const s=[],l=((r=t.data)==null?void 0:r.family)??d6e(e),c=((o=(i=t.data)==null?void 0:i.weights)==null?void 0:o.filter(f=>a6e.includes(f)))??["normal"],d=t.data??{};for(let f=0;ftt.ADAPTER.getFontFaceSet().delete(t))}};bt.add(f6e);let b7=0,dB;const h6e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=",p6e={id:"checkImageBitmap",code:` async function checkImageBitmap() { try { if (typeof createImageBitmap !== 'function') return false; - const response = await fetch('${u6e}'); + const response = await fetch('${h6e}'); const imageBlob = await response.blob(); const imageBitmap = await createImageBitmap(imageBlob); @@ -1442,7 +1442,7 @@ ${h}`)}});return await Promise.all(c),o?i[s[0].src]:i}async unload(t){const r=hu } } checkImageBitmap().then((result) => { self.postMessage(result); }); - `},f6e={id:"loadImageBitmap",code:` + `},m6e={id:"loadImageBitmap",code:` async function loadImageBitmap(url) { const response = await fetch(url); @@ -1478,7 +1478,7 @@ ${h}`)}});return await Promise.all(c),o?i[s[0].src]:i}async unload(t){const r=hu id: event.data.id, }); } - };`};let uB;class h6e{constructor(){this._initialized=!1,this._createdWorkers=0,this.workerPool=[],this.queue=[],this.resolveHash={}}isImageBitmapSupported(){return this._isImageBitmapSupported!==void 0?this._isImageBitmapSupported:(this._isImageBitmapSupported=new Promise(t=>{const n=URL.createObjectURL(new Blob([d6e.code],{type:"application/javascript"})),r=new Worker(n);r.addEventListener("message",i=>{r.terminate(),URL.revokeObjectURL(n),t(i.data)})}),this._isImageBitmapSupported)}loadImageBitmap(t){return this._run("loadImageBitmap",[t])}async _initWorkers(){this._initialized||(this._initialized=!0)}getWorker(){cB===void 0&&(cB=navigator.hardwareConcurrency||4);let t=this.workerPool.pop();return!t&&this._createdWorkers{this.complete(n.data),this.returnWorker(n.target),this.next()})),t}returnWorker(t){this.workerPool.push(t)}complete(t){t.error!==void 0?this.resolveHash[t.uuid].reject(t.error):this.resolveHash[t.uuid].resolve(t.data),this.resolveHash[t.uuid]=null}async _run(t,n){await this._initWorkers();const r=new Promise((i,o)=>{this.queue.push({id:t,arguments:n,resolve:i,reject:o})});return this.next(),r}next(){if(!this.queue.length)return;const t=this.getWorker();if(!t)return;const n=this.queue.pop(),r=n.id;this.resolveHash[m7]={resolve:n.resolve,reject:n.reject},t.postMessage({data:n.arguments,uuid:m7++,id:r})}}const g7=new h6e;function jk(e,t,n){const r=new ht(e);return r.baseTexture.on("dispose",()=>{delete t.promiseCache[n]}),r}const p6e=[".jpeg",".jpg",".png",".webp",".avif"],m6e=["image/jpeg","image/png","image/webp","image/avif"];async function g6e(e){const t=await tt.ADAPTER.fetch(e);if(!t.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${e}: ${t.status} ${t.statusText}`);const n=await t.blob();return await createImageBitmap(n)}const Uk={name:"loadTextures",extension:{type:rt.LoadParser,priority:ec.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(e){return mw(e,m6e)||zp(e,p6e)},async load(e,t,n){let r=null;globalThis.createImageBitmap&&this.config.preferCreateImageBitmap?this.config.preferWorkers&&await g7.isImageBitmapSupported()?r=await g7.loadImageBitmap(e):r=await g6e(e):r=await new Promise(o=>{r=new Image,r.crossOrigin=this.config.crossOrigin,r.src=e,r.complete?o(r):r.onload=()=>{o(r)}});const i=new Vt(r,{resolution:Dd(e),...t.data});return i.resource.src=e,jk(i,n,e)},unload(e){e.destroy(!0)}};bt.add(Uk);const v6e=".svg",y6e="image/svg+xml",b6e={extension:{type:rt.LoadParser,priority:ec.High},name:"loadSVG",test(e){return mw(e,y6e)||zp(e,v6e)},async testParse(e){return w1.test(e)},async parse(e,t,n){var s;const r=new w1(e,(s=t==null?void 0:t.data)==null?void 0:s.resourceOptions);await r.load();const i=new Vt(r,{resolution:Dd(e),...t==null?void 0:t.data});return i.resource.src=e,jk(i,n,e)},async load(e,t){return(await tt.ADAPTER.fetch(e)).text()},unload:Uk.unload};bt.add(b6e);class x6e{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(t,n)=>`${t}${this._bundleIdConnector}${n}`,extractAssetIdFromBundle:(t,n)=>n.replace(`${t}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId=this._defaultBundleIdentifierOptions.createBundleAssetId,this._extractAssetIdFromBundle=this._defaultBundleIdentifierOptions.extractAssetIdFromBundle,this._assetMap={},this._preferredOrder=[],this._parsers=[],this._resolverHash={},this._bundles={}}setBundleIdentifier(t){if(this._bundleIdConnector=t.connector??this._bundleIdConnector,this._createBundleAssetId=t.createBundleAssetId??this._createBundleAssetId,this._extractAssetIdFromBundle=t.extractAssetIdFromBundle??this._extractAssetIdFromBundle,this._extractAssetIdFromBundle("foo",this._createBundleAssetId("foo","bar"))!=="bar")throw new Error("[Resolver] GenerateBundleAssetId are not working correctly")}prefer(...t){t.forEach(n=>{this._preferredOrder.push(n),n.priority||(n.priority=Object.keys(n.params))}),this._resolverHash={}}set basePath(t){this._basePath=t}get basePath(){return this._basePath}set rootPath(t){this._rootPath=t}get rootPath(){return this._rootPath}get parsers(){return this._parsers}reset(){this.setBundleIdentifier(this._defaultBundleIdentifierOptions),this._assetMap={},this._preferredOrder=[],this._resolverHash={},this._rootPath=null,this._basePath=null,this._manifest=null,this._bundles={},this._defaultSearchParams=null}setDefaultSearchParams(t){if(typeof t=="string")this._defaultSearchParams=t;else{const n=t;this._defaultSearchParams=Object.keys(n).map(r=>`${encodeURIComponent(r)}=${encodeURIComponent(n[r])}`).join("&")}}addManifest(t){this._manifest&&console.warn("[Resolver] Manifest already exists, this will be overwritten"),this._manifest=t,t.bundles.forEach(n=>{this.addBundle(n.name,n.assets)})}addBundle(t,n){const r=[];Array.isArray(n)?n.forEach(i=>{if(typeof i.name=="string"){const o=this._createBundleAssetId(t,i.name);r.push(o),this.add([i.name,o],i.srcs,i.data)}else{const o=i.name.map(s=>this._createBundleAssetId(t,s));o.forEach(s=>{r.push(s)}),this.add([...i.name,...o],i.srcs)}}):Object.keys(n).forEach(i=>{r.push(this._createBundleAssetId(t,i)),this.add([i,this._createBundleAssetId(t,i)],n[i])}),this._bundles[t]=r}add(t,n,r){const i=hu(t);i.forEach(s=>{this.hasKey(s)&&console.warn(`[Resolver] already has key: ${s} overwriting`)}),Array.isArray(n)||(typeof n=="string"?n=Yje(n):n=[n]);const o=n.map(s=>{let l=s;if(typeof s=="string"){let c=!1;for(let d=0;d{this._assetMap[s]=o})}resolveBundle(t){const n=vC(t);t=hu(t);const r={};return t.forEach(i=>{const o=this._bundles[i];if(o){const s=this.resolve(o),l={};for(const c in s){const d=s[c];l[this._extractAssetIdFromBundle(i,c)]=d}r[i]=l}}),n?r[t[0]]:r}resolveUrl(t){const n=this.resolve(t);if(typeof t!="string"){const r={};for(const i in n)r[i]=n[i].src;return r}return n.src}resolve(t){const n=vC(t);t=hu(t);const r={};return t.forEach(i=>{if(!this._resolverHash[i])if(this._assetMap[i]){let o=this._assetMap[i];const s=this._getPreferredOrder(o),l=o[0];s==null||s.priority.forEach(c=>{s.params[c].forEach(d=>{const f=o.filter(h=>h[c]?h[c]===d:!1);f.length&&(o=f)})}),this._resolverHash[i]=o[0]??l}else{let o=i;(this._basePath||this._rootPath)&&(o=to.toAbsolute(o,this._basePath,this._rootPath)),o=this._appendDefaultSearchParams(o),this._resolverHash[i]={src:o}}r[i]=this._resolverHash[i]}),n?r[t[0]]:r}hasKey(t){return!!this._assetMap[t]}hasBundle(t){return!!this._bundles[t]}_getPreferredOrder(t){for(let n=0;no.params.format.includes(r.format));if(i)return i}return this._preferredOrder[0]}_appendDefaultSearchParams(t){if(!this._defaultSearchParams)return t;const n=/\?/.test(t)?"&":"?";return`${t}${n}${this._defaultSearchParams}`}}class w6e{constructor(){this._detections=[],this._initialized=!1,this.resolver=new x6e,this.loader=new Qje,this.cache=yb,this._backgroundLoader=new Xje(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(t={}){var o,s,l;if(this._initialized){console.warn("[Assets]AssetManager already initialized, did you load before calling this Asset.init()?");return}if(this._initialized=!0,t.defaultSearchParams&&this.resolver.setDefaultSearchParams(t.defaultSearchParams),t.basePath&&(this.resolver.basePath=t.basePath),t.bundleIdentifier&&this.resolver.setBundleIdentifier(t.bundleIdentifier),t.manifest){let c=t.manifest;typeof c=="string"&&(c=await this.load(c)),this.resolver.addManifest(c)}const n=((o=t.texturePreference)==null?void 0:o.resolution)??1,r=typeof n=="number"?[n]:n;let i=[];if((s=t.texturePreference)!=null&&s.format){const c=(l=t.texturePreference)==null?void 0:l.format;i=typeof c=="string"?[c]:c;for(const d of this._detections)await d.test()||(i=await d.remove(i))}else for(const c of this._detections)await c.test()&&(i=await c.add(i));this.resolver.prefer({params:{format:i,resolution:r}}),t.preferences&&this.setPreferences(t.preferences)}add(t,n,r){this.resolver.add(t,n,r)}async load(t,n){this._initialized||await this.init();const r=vC(t),i=hu(t).map(l=>typeof l!="string"?(this.resolver.add(l.src,l),l.src):(this.resolver.hasKey(l)||this.resolver.add(l,l),l)),o=this.resolver.resolve(i),s=await this._mapLoadToResolve(o,n);return r?s[i[0]]:s}addBundle(t,n){this.resolver.addBundle(t,n)}async loadBundle(t,n){this._initialized||await this.init();let r=!1;typeof t=="string"&&(r=!0,t=[t]);const i=this.resolver.resolveBundle(t),o={},s=Object.keys(i);let l=0,c=0;const d=()=>{n==null||n(++l/c)},f=s.map(h=>{const p=i[h];return c+=Object.keys(p).length,this._mapLoadToResolve(p,d).then(g=>{o[h]=g})});return await Promise.all(f),r?o[t[0]]:o}async backgroundLoad(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const n=this.resolver.resolve(t);this._backgroundLoader.add(Object.values(n))}async backgroundLoadBundle(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const n=this.resolver.resolveBundle(t);Object.values(n).forEach(r=>{this._backgroundLoader.add(Object.values(r))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(t){if(typeof t=="string")return yb.get(t);const n={};for(let r=0;r{const d=o[l.src],f=[l.src];l.alias&&f.push(...l.alias),s[i[c]]=d,yb.set(f,d)}),s}async unload(t){this._initialized||await this.init();const n=hu(t).map(i=>typeof i!="string"?i.src:i),r=this.resolver.resolve(n);await this._unloadFromResolved(r)}async unloadBundle(t){this._initialized||await this.init(),t=hu(t);const n=this.resolver.resolveBundle(t),r=Object.keys(n).map(i=>this._unloadFromResolved(n[i]));await Promise.all(r)}async _unloadFromResolved(t){const n=Object.values(t);n.forEach(r=>{yb.remove(r.src)}),await this.loader.unload(n)}get detections(){return this._detections}get preferWorkers(){return Uk.config.preferWorkers}set preferWorkers(t){cn("7.2.0","Assets.prefersWorkers is deprecated, use Assets.setPreferences({ preferWorkers: true }) instead."),this.setPreferences({preferWorkers:t})}setPreferences(t){this.loader.parsers.forEach(n=>{n.config&&Object.keys(n.config).filter(r=>r in t).forEach(r=>{n.config[r]=t[r]})})}}const z_=new w6e;bt.handleByList(rt.LoadParser,z_.loader.parsers).handleByList(rt.ResolveParser,z_.resolver.parsers).handleByList(rt.CacheParser,z_.cache.parsers).handleByList(rt.DetectionParser,z_.detections);const _6e={extension:rt.CacheParser,test:e=>Array.isArray(e)&&e.every(t=>t instanceof ht),getCacheableAssets:(e,t)=>{const n={};return e.forEach(r=>{t.forEach((i,o)=>{n[r+(o===0?"":o+1)]=i})}),n}};bt.add(_6e);const S6e={extension:{type:rt.DetectionParser,priority:1},test:async()=>{if(!globalThis.createImageBitmap)return!1;const e="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=",t=await tt.ADAPTER.fetch(e).then(n=>n.blob());return createImageBitmap(t).then(()=>!0,()=>!1)},add:async e=>[...e,"avif"],remove:async e=>e.filter(t=>t!=="avif")};bt.add(S6e);const E6e={extension:{type:rt.DetectionParser,priority:0},test:async()=>{if(!globalThis.createImageBitmap)return!1;const e="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=",t=await tt.ADAPTER.fetch(e).then(n=>n.blob());return createImageBitmap(t).then(()=>!0,()=>!1)},add:async e=>[...e,"webp"],remove:async e=>e.filter(t=>t!=="webp")};bt.add(E6e);const v7=["png","jpg","jpeg"],C6e={extension:{type:rt.DetectionParser,priority:-1},test:()=>Promise.resolve(!0),add:async e=>[...e,...v7],remove:async e=>e.filter(t=>!v7.includes(t))};bt.add(C6e);const T6e={extension:rt.ResolveParser,test:Uk.test,parse:e=>{var t;return{resolution:parseFloat(((t=tt.RETINA_PREFIX.exec(e))==null?void 0:t[1])??"1"),format:e.split(".").pop(),src:e}}};bt.add(T6e);var vs=(e=>(e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",e[e.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",e[e.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",e[e.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",e[e.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL",e[e.COMPRESSED_RGBA_ASTC_4x4_KHR=37808]="COMPRESSED_RGBA_ASTC_4x4_KHR",e))(vs||{});const yC={33776:.5,33777:.5,33778:1,33779:1,35916:.5,35917:.5,35918:1,35919:1,37488:.5,37489:.5,37490:1,37491:1,37492:.5,37496:1,37493:.5,37497:1,37494:.5,37495:.5,35840:.5,35842:.5,35841:.25,35843:.25,36196:.5,35986:.5,35986:1,34798:1,37808:1};let Jc,fm;function y7(){fm={s3tc:Jc.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:Jc.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:Jc.getExtension("WEBGL_compressed_texture_etc"),etc1:Jc.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:Jc.getExtension("WEBGL_compressed_texture_pvrtc")||Jc.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:Jc.getExtension("WEBGL_compressed_texture_atc"),astc:Jc.getExtension("WEBGL_compressed_texture_astc")}}const k6e={extension:{type:rt.DetectionParser,priority:2},test:async()=>{const t=tt.ADAPTER.createCanvas().getContext("webgl");return t?(Jc=t,!0):(console.warn("WebGL not available for compressed textures."),!1)},add:async e=>{fm||y7();const t=[];for(const n in fm)fm[n]&&t.push(n);return[...t,...e]},remove:async e=>(fm||y7(),e.filter(t=>!(t in fm)))};bt.add(k6e);class A6e extends hw{constructor(t,n={width:1,height:1,autoLoad:!0}){let r,i;typeof t=="string"?(r=t,i=new Uint8Array):(r=null,i=t),super(i,n),this.origin=r,this.buffer=i?new E3(i):null,this._load=null,this.loaded=!1,this.origin!==null&&n.autoLoad!==!1&&this.load(),this.origin===null&&this.buffer&&(this._load=Promise.resolve(this),this.loaded=!0,this.onBlobLoaded(this.buffer.rawBinaryData))}onBlobLoaded(t){}load(){return this._load?this._load:(this._load=fetch(this.origin).then(t=>t.blob()).then(t=>t.arrayBuffer()).then(t=>(this.data=new Uint32Array(t),this.buffer=new E3(t),this.loaded=!0,this.onBlobLoaded(t),this.update(),this)),this._load)}}class tp extends A6e{constructor(t,n){super(t,n),this.format=n.format,this.levels=n.levels||1,this._width=n.width,this._height=n.height,this._extension=tp._formatToExtension(this.format),(n.levelBuffers||this.buffer)&&(this._levelBuffers=n.levelBuffers||tp._createLevelBuffers(t instanceof Uint8Array?t:this.buffer.uint8View,this.format,this.levels,4,4,this.width,this.height))}upload(t,n,r){const i=t.gl;if(!t.context.extensions[this._extension])throw new Error(`${this._extension} textures are not supported on the current machine`);if(!this._levelBuffers)return!1;for(let s=0,l=this.levels;s=33776&&t<=33779)return"s3tc";if(t>=37488&&t<=37497)return"etc";if(t>=35840&&t<=35843)return"pvrtc";if(t>=36196)return"etc1";if(t>=35986&&t<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")}static _createLevelBuffers(t,n,r,i,o,s,l){const c=new Array(r);let d=t.byteOffset,f=s,h=l,p=f+i-1&~(i-1),g=h+o-1&~(o-1),v=p*g*yC[n];for(let y=0;y1?f:p,levelHeight:r>1?h:g,levelBuffer:new Uint8Array(t.buffer,d,v)},d+=v,f=f>>1||1,h=h>>1||1,p=f+i-1&~(i-1),g=h+o-1&~(o-1),v=p*g*yC[n];return c}}const dB=4,j_=124,I6e=32,b7=20,R6e=542327876,U_={SIZE:1,FLAGS:2,HEIGHT:3,WIDTH:4,MIPMAP_COUNT:7,PIXEL_FORMAT:19},P6e={SIZE:0,FLAGS:1,FOURCC:2,RGB_BITCOUNT:3,R_BIT_MASK:4,G_BIT_MASK:5,B_BIT_MASK:6,A_BIT_MASK:7},H_={DXGI_FORMAT:0,RESOURCE_DIMENSION:1,MISC_FLAG:2,ARRAY_SIZE:3,MISC_FLAGS2:4},O6e=1,M6e=2,D6e=4,L6e=64,N6e=512,B6e=131072,$6e=827611204,F6e=861165636,z6e=894720068,j6e=808540228,U6e=4,H6e={[$6e]:vs.COMPRESSED_RGBA_S3TC_DXT1_EXT,[F6e]:vs.COMPRESSED_RGBA_S3TC_DXT3_EXT,[z6e]:vs.COMPRESSED_RGBA_S3TC_DXT5_EXT},W6e={70:vs.COMPRESSED_RGBA_S3TC_DXT1_EXT,71:vs.COMPRESSED_RGBA_S3TC_DXT1_EXT,73:vs.COMPRESSED_RGBA_S3TC_DXT3_EXT,74:vs.COMPRESSED_RGBA_S3TC_DXT3_EXT,76:vs.COMPRESSED_RGBA_S3TC_DXT5_EXT,77:vs.COMPRESSED_RGBA_S3TC_DXT5_EXT,72:vs.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT,75:vs.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT,78:vs.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT};function G6e(e){const t=new Uint32Array(e);if(t[0]!==R6e)throw new Error("Invalid DDS file magic word");const r=new Uint32Array(e,0,j_/Uint32Array.BYTES_PER_ELEMENT),i=r[U_.HEIGHT],o=r[U_.WIDTH],s=r[U_.MIPMAP_COUNT],l=new Uint32Array(e,U_.PIXEL_FORMAT*Uint32Array.BYTES_PER_ELEMENT,I6e/Uint32Array.BYTES_PER_ELEMENT),c=l[O6e];if(c&D6e){const d=l[P6e.FOURCC];if(d!==j6e){const x=H6e[d],E=dB+j_,A=new Uint8Array(e,E);return[new tp(A,{format:x,width:o,height:i,levels:s})]}const f=dB+j_,h=new Uint32Array(t.buffer,f,b7/Uint32Array.BYTES_PER_ELEMENT),p=h[H_.DXGI_FORMAT],g=h[H_.RESOURCE_DIMENSION],v=h[H_.MISC_FLAG],y=h[H_.ARRAY_SIZE],S=W6e[p];if(S===void 0)throw new Error(`DDSParser cannot parse texture data with DXGI format ${p}`);if(v===U6e)throw new Error("DDSParser does not support cubemap textures");if(g===6)throw new Error("DDSParser does not supported 3D texture data");const _=new Array,b=dB+j_+b7;if(y===1)_.push(new Uint8Array(e,b));else{const x=yC[S];let E=0,A=o,I=i;for(let O=0;O>>1,I=I>>>1}let k=b;for(let O=0;Onew tp(x,{format:S,width:o,height:i,levels:s}))}throw c&L6e?new Error("DDSParser does not support uncompressed texture data."):c&N6e?new Error("DDSParser does not supported YUV uncompressed texture data."):c&B6e?new Error("DDSParser does not support single-channel (lumninance) texture data!"):c&M6e?new Error("DDSParser does not support single-channel (alpha) texture data!"):new Error("DDSParser failed to load a texture file due to an unknown reason!")}const x7=[171,75,84,88,32,49,49,187,13,10,26,10],V6e=67305985,Ba={FILE_IDENTIFIER:0,ENDIANNESS:12,GL_TYPE:16,GL_TYPE_SIZE:20,GL_FORMAT:24,GL_INTERNAL_FORMAT:28,GL_BASE_INTERNAL_FORMAT:32,PIXEL_WIDTH:36,PIXEL_HEIGHT:40,PIXEL_DEPTH:44,NUMBER_OF_ARRAY_ELEMENTS:48,NUMBER_OF_FACES:52,NUMBER_OF_MIPMAP_LEVELS:56,BYTES_OF_KEY_VALUE_DATA:60},F3=64,w7={[Rt.UNSIGNED_BYTE]:1,[Rt.UNSIGNED_SHORT]:2,[Rt.INT]:4,[Rt.UNSIGNED_INT]:4,[Rt.FLOAT]:4,[Rt.HALF_FLOAT]:8},q6e={[Ge.RGBA]:4,[Ge.RGB]:3,[Ge.RG]:2,[Ge.RED]:1,[Ge.LUMINANCE]:1,[Ge.LUMINANCE_ALPHA]:2,[Ge.ALPHA]:1},X6e={[Rt.UNSIGNED_SHORT_4_4_4_4]:2,[Rt.UNSIGNED_SHORT_5_5_5_1]:2,[Rt.UNSIGNED_SHORT_5_6_5]:2};function Y6e(e,t,n=!1){const r=new DataView(t);if(!K6e(e,r))return null;const i=r.getUint32(Ba.ENDIANNESS,!0)===V6e,o=r.getUint32(Ba.GL_TYPE,i),s=r.getUint32(Ba.GL_FORMAT,i),l=r.getUint32(Ba.GL_INTERNAL_FORMAT,i),c=r.getUint32(Ba.PIXEL_WIDTH,i),d=r.getUint32(Ba.PIXEL_HEIGHT,i)||1,f=r.getUint32(Ba.PIXEL_DEPTH,i)||1,h=r.getUint32(Ba.NUMBER_OF_ARRAY_ELEMENTS,i)||1,p=r.getUint32(Ba.NUMBER_OF_FACES,i),g=r.getUint32(Ba.NUMBER_OF_MIPMAP_LEVELS,i),v=r.getUint32(Ba.BYTES_OF_KEY_VALUE_DATA,i);if(d===0||f!==1)throw new Error("Only 2D textures are supported");if(p!==1)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(h!==1)throw new Error("WebGL does not support array textures");const y=4,S=4,_=c+3&-4,b=d+3&-4,x=new Array(h);let E=c*d;o===0&&(E=_*b);let A;if(o!==0?w7[o]?A=w7[o]*q6e[s]:A=X6e[o]:A=yC[l],A===void 0)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");const I=n?J6e(r,v,i):null;let O=E*A,L=c,N=d,H=_,W=b,z=F3+v;for(let D=0;D1||o!==0?L:H,levelHeight:g>1||o!==0?N:W,levelBuffer:new Uint8Array(t,j,O)},j+=O}z+=F+4,z=z%4!==0?z+4-z%4:z,L=L>>1||1,N=N>>1||1,H=L+y-1&~(y-1),W=N+S-1&~(S-1),O=H*W*A}return o!==0?{uncompressed:x.map(D=>{let F=D[0].levelBuffer,j=!1;return o===Rt.FLOAT?F=new Float32Array(D[0].levelBuffer.buffer,D[0].levelBuffer.byteOffset,D[0].levelBuffer.byteLength/4):o===Rt.UNSIGNED_INT?(j=!0,F=new Uint32Array(D[0].levelBuffer.buffer,D[0].levelBuffer.byteOffset,D[0].levelBuffer.byteLength/4)):o===Rt.INT&&(j=!0,F=new Int32Array(D[0].levelBuffer.buffer,D[0].levelBuffer.byteOffset,D[0].levelBuffer.byteLength/4)),{resource:new hw(F,{width:D[0].levelWidth,height:D[0].levelHeight}),type:o,format:j?Q6e(s):s}}),kvData:I}:{compressed:x.map(D=>new tp(null,{format:l,width:c,height:d,levels:g,levelBuffers:D})),kvData:I}}function K6e(e,t){for(let n=0;nt-i){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}let c=0;for(;c{const c=new Vt(l,{mipmap:Xl.OFF,alphaMode:gl.NO_PREMULTIPLIED_ALPHA,resolution:Dd(e),...t.data});return jk(c,n,e)});return s.length===1?s[0]:s},unload(e){Array.isArray(e)?e.forEach(t=>t.destroy(!0)):e.destroy(!0)}};bt.add(Z6e);const eUe={extension:{type:rt.LoadParser,priority:ec.High},name:"loadKTX",test(e){return zp(e,".ktx")},async load(e,t,n){const i=await(await tt.ADAPTER.fetch(e)).arrayBuffer(),{compressed:o,uncompressed:s,kvData:l}=Y6e(e,i),c=o??s,d={mipmap:Xl.OFF,alphaMode:gl.NO_PREMULTIPLIED_ALPHA,resolution:Dd(e),...t.data},f=c.map(h=>{c===s&&Object.assign(d,{type:h.type,format:h.format});const p=new Vt(h,d);return p.ktxKeyValueData=l,jk(p,n,e)});return f.length===1?f[0]:f},unload(e){Array.isArray(e)?e.forEach(t=>t.destroy(!0)):e.destroy(!0)}};bt.add(eUe);const tUe={extension:rt.ResolveParser,test:e=>{const n=e.split("?")[0].split(".").pop();return["basis","ktx","dds"].includes(n)},parse:e=>{var r,i;if(e.split("?")[0].split(".").pop()==="ktx"){const o=[".s3tc.ktx",".s3tc_sRGB.ktx",".etc.ktx",".etc1.ktx",".pvrt.ktx",".atc.ktx",".astc.ktx"];if(o.some(s=>e.endsWith(s)))return{resolution:parseFloat(((r=tt.RETINA_PREFIX.exec(e))==null?void 0:r[1])??"1"),format:o.find(s=>e.endsWith(s)),src:e}}return{resolution:parseFloat(((i=tt.RETINA_PREFIX.exec(e))==null?void 0:i[1])??"1"),format:e.split(".").pop(),src:e}}};bt.add(tUe);const nUe=new Kt,rUe=4,Fb=class{constructor(e){this.renderer=e}async image(e,t,n){const r=new Image;return r.src=await this.base64(e,t,n),r}async base64(e,t,n){const r=this.canvas(e);if(r.toBlob!==void 0)return new Promise((i,o)=>{r.toBlob(s=>{if(!s){o(new Error("ICanvas.toBlob failed!"));return}const l=new FileReader;l.onload=()=>i(l.result),l.onerror=o,l.readAsDataURL(s)},t,n)});if(r.toDataURL!==void 0)return r.toDataURL(t,n);if(r.convertToBlob!==void 0){const i=await r.convertToBlob({type:t,quality:n});return new Promise((o,s)=>{const l=new FileReader;l.onload=()=>o(l.result),l.onerror=s,l.readAsDataURL(i)})}throw new Error("Extract.base64() requires ICanvas.toDataURL, ICanvas.toBlob, or ICanvas.convertToBlob to be implemented")}canvas(e,t){const{pixels:n,width:r,height:i,flipY:o}=this._rawPixels(e,t);o&&Fb._flipY(n,r,i),Fb._unpremultiplyAlpha(n);const s=new y4e(r,i,1),l=new ImageData(new Uint8ClampedArray(n.buffer),r,i);return s.context.putImageData(l,0,0),s.canvas}pixels(e,t){const{pixels:n,width:r,height:i,flipY:o}=this._rawPixels(e,t);return o&&Fb._flipY(n,r,i),Fb._unpremultiplyAlpha(n),n}_rawPixels(e,t){const n=this.renderer;if(!n)throw new Error("The Extract has already been destroyed");let r,i=!1,o,s=!1;if(e&&(e instanceof $p?o=e:(o=n.generateTexture(e,{resolution:n.resolution,multisample:n.multisample}),s=!0)),o){if(r=o.baseTexture.resolution,t=t??o.frame,i=!1,!s){n.renderTexture.bind(o);const h=o.framebuffer.glFramebuffers[n.CONTEXT_UID];h.blitFramebuffer&&n.framebuffer.bind(h.blitFramebuffer)}}else r=n.resolution,t||(t=nUe,t.width=n.width/r,t.height=n.height/r),i=!0,n.renderTexture.bind();const l=Math.round(t.width*r),c=Math.round(t.height*r),d=new Uint8Array(rUe*l*c),f=n.gl;return f.readPixels(Math.round(t.x*r),Math.round(t.y*r),l,c,f.RGBA,f.UNSIGNED_BYTE,d),s&&(o==null||o.destroy(!0)),{pixels:d,width:l,height:c,flipY:i}}destroy(){this.renderer=null}static _flipY(e,t,n){const r=t<<2,i=n>>1,o=new Uint8Array(r);for(let s=0;s=0&&l>=0&&i>=0&&o>=0)){t.length=0;return}const c=Math.ceil(2.3*Math.sqrt(s+l)),d=c*8+(i?4:0)+(o?4:0);if(t.length=d,d===0)return;if(c===0){t.length=8,t[0]=t[6]=n+i,t[1]=t[3]=r+o,t[2]=t[4]=n-i,t[5]=t[7]=r-o;return}let f=0,h=c*4+(i?2:0)+2,p=h,g=d;{const v=i+s,y=o,S=n+v,_=n-v,b=r+y;if(t[f++]=S,t[f++]=b,t[--h]=b,t[--h]=_,o){const x=r-y;t[p++]=_,t[p++]=x,t[--g]=x,t[--g]=S}}for(let v=1;v0||t&&r<=0){const i=n/2;for(let o=i+i%2;o=6){_7(n,!1);const s=[];for(let d=0;d=0&&o>=0&&s.push(n,r,n+i,r,n+i,r+o,n,r+o)},triangulate(e,t){const n=e.points,r=t.points;if(n.length===0)return;const i=r.length/2;r.push(n[0],n[1],n[2],n[3],n[6],n[7],n[4],n[5]),t.indices.push(i,i+1,i+2,i+1,i+2,i+3)}},oUe={build(e){bC.build(e)},triangulate(e,t){bC.triangulate(e,t)}};var Wa=(e=>(e.MITER="miter",e.BEVEL="bevel",e.ROUND="round",e))(Wa||{}),Wh=(e=>(e.BUTT="butt",e.ROUND="round",e.SQUARE="square",e))(Wh||{});const Ng={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(e,t=20){if(!this.adaptive||!e||isNaN(e))return t;let n=Math.ceil(e/this.maxLength);return nthis.maxSegments&&(n=this.maxSegments),n}};class S7{static curveTo(t,n,r,i,o,s){const l=s[s.length-2],d=s[s.length-1]-n,f=l-t,h=i-n,p=r-t,g=Math.abs(d*p-f*h);if(g<1e-8||o===0)return(s[s.length-2]!==t||s[s.length-1]!==n)&&s.push(t,n),null;const v=d*d+f*f,y=h*h+p*p,S=d*h+f*p,_=o*Math.sqrt(v)/g,b=o*Math.sqrt(y)/g,x=_*S/v,E=b*S/y,A=_*p+b*f,I=_*h+b*d,k=f*(b+x),O=d*(b+x),L=p*(_+E),N=h*(_+E),H=Math.atan2(O-I,k-A),W=Math.atan2(N-I,L-A);return{cx:A+t,cy:I+n,radius:o,startAngle:H,endAngle:W,anticlockwise:f*h>p*d}}static arc(t,n,r,i,o,s,l,c,d){const f=l-s,h=Ng._segmentsCount(Math.abs(f)*o,Math.ceil(Math.abs(f)/pC)*40),p=f/(h*2),g=p*2,v=Math.cos(p),y=Math.sin(p),S=h-1,_=S%1/S;for(let b=0;b<=S;++b){const x=b+_*b,E=p+s+g*x,A=Math.cos(E),I=-Math.sin(E);d.push((v*A+y*I)*o+r,(v*-I+y*A)*o+i)}}}class sUe{constructor(){this.reset()}begin(t,n,r){this.reset(),this.style=t,this.start=n,this.attribStart=r}end(t,n){this.attribSize=n-this.attribStart,this.size=t-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class Ej{static curveLength(t,n,r,i,o,s,l,c){let f=0,h=0,p=0,g=0,v=0,y=0,S=0,_=0,b=0,x=0,E=0,A=t,I=n;for(let k=1;k<=10;++k)h=k/10,p=h*h,g=p*h,v=1-h,y=v*v,S=y*v,_=S*t+3*y*h*r+3*v*p*o+g*l,b=S*n+3*y*h*i+3*v*p*s+g*c,x=A-_,E=I-b,A=_,I=b,f+=Math.sqrt(x*x+E*E);return f}static curveTo(t,n,r,i,o,s,l){const c=l[l.length-2],d=l[l.length-1];l.length-=2;const f=Ng._segmentsCount(Ej.curveLength(c,d,t,n,r,i,o,s));let h=0,p=0,g=0,v=0,y=0;l.push(c,d);for(let S=1,_=0;S<=f;++S)_=S/f,h=1-_,p=h*h,g=p*h,v=_*_,y=v*_,l.push(g*c+3*p*_*t+3*h*v*r+y*o,g*d+3*p*_*n+3*h*v*i+y*s)}}function E7(e,t,n,r,i,o,s,l){const c=e-n*i,d=t-r*i,f=e+n*o,h=t+r*o;let p,g;s?(p=r,g=-n):(p=-r,g=n);const v=c+p,y=d+g,S=f+p,_=h+g;return l.push(v,y,S,_),2}function bh(e,t,n,r,i,o,s,l){const c=n-e,d=r-t;let f=Math.atan2(c,d),h=Math.atan2(i-e,o-t);l&&fh&&(h+=Math.PI*2);let p=f;const g=h-f,v=Math.abs(g),y=Math.sqrt(c*c+d*d),S=(15*v*Math.sqrt(y)/Math.PI>>0)+1,_=g/S;if(p+=_,l){s.push(e,t,n,r);for(let b=1,x=p;b=0&&(o.join===Wa.ROUND?p+=bh(x,E,x-k*z,E-O*z,x-L*z,E-N*z,f,!1)+4:p+=2,f.push(x-L*D,E-N*D,x+L*z,E+N*z));continue}const se=(-k+_)*(-O+E)-(-k+x)*(-O+b),Q=(-L+A)*(-N+E)-(-L+x)*(-N+I),ae=(G*Q-Y*se)/ce,le=(J*se-K*Q)/ce,he=(ae-x)*(ae-x)+(le-E)*(le-E),pe=x+(ae-x)*z,ve=E+(le-E)*z,ye=x-(ae-x)*D,xe=E-(le-E)*D,me=Math.min(G*G+K*K,Y*Y+J*J),be=ue?z:D,Qe=me+be*be*y,qe=he<=Qe;let at=o.join;if(at===Wa.MITER&&he/y>S&&(at=Wa.BEVEL),qe)switch(at){case Wa.MITER:{f.push(pe,ve,ye,xe);break}case Wa.BEVEL:{ue?f.push(pe,ve,x+k*D,E+O*D,pe,ve,x+L*D,E+N*D):f.push(x-k*z,E-O*z,ye,xe,x-L*z,E-N*z,ye,xe),p+=2;break}case Wa.ROUND:{ue?(f.push(pe,ve,x+k*D,E+O*D),p+=bh(x,E,x+k*D,E+O*D,x+L*D,E+N*D,f,!0)+4,f.push(pe,ve,x+L*D,E+N*D)):(f.push(x-k*z,E-O*z,ye,xe),p+=bh(x,E,x-k*z,E-O*z,x-L*z,E-N*z,f,!1)+4,f.push(x-L*z,E-N*z,ye,xe));break}}else{switch(f.push(x-k*z,E-O*z,x+k*D,E+O*D),at){case Wa.MITER:{ue?f.push(ye,xe,ye,xe):f.push(pe,ve,pe,ve),p+=2;break}case Wa.ROUND:{ue?p+=bh(x,E,x+k*D,E+O*D,x+L*D,E+N*D,f,!0)+2:p+=bh(x,E,x-k*z,E-O*z,x-L*z,E-N*z,f,!1)+2;break}}f.push(x-L*z,E-N*z,x+L*D,E+N*D),p+=2}}_=r[(h-2)*2],b=r[(h-2)*2+1],x=r[(h-1)*2],E=r[(h-1)*2+1],k=-(b-E),O=_-x,H=Math.sqrt(k*k+O*O),k/=H,O/=H,k*=v,O*=v,f.push(x-k*z,E-O*z,x+k*D,E+O*D),c||(o.cap===Wh.ROUND?p+=bh(x-k*(z-D)*.5,E-O*(z-D)*.5,x-k*z,E-O*z,x+k*D,E+O*D,f,!1)+2:o.cap===Wh.SQUARE&&(p+=E7(x,E,k,O,z,D,!1,f)));const F=t.indices,j=Ng.epsilon*Ng.epsilon;for(let V=g;V0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(e,t=null,n=null,r=null){const i=new xC(e,t,n,r);return this.graphicsData.push(i),this.dirty++,this}drawHole(e,t=null){if(!this.graphicsData.length)return null;const n=new xC(e,null,null,t),r=this.graphicsData[this.graphicsData.length-1];return n.lineStyle=r.lineStyle,r.holes.push(n),this.dirty++,this}destroy(){super.destroy();for(let e=0;e0&&(n=this.batches[this.batches.length-1],r=n.style);for(let l=this.shapeIndex;l65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&s===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=s?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(e,t){return!(!e||!t||e.texture.baseTexture!==t.texture.baseTexture||e.color+e.alpha!==t.color+t.alpha||!!e.native!=!!t.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let e=0,t=this.graphicsData.length;e65535*2)return!1;const e=this.batches;for(let t=0;t0&&(r=W_.pop(),r||(r=new T3,r.texArray=new A3),this.drawCalls.push(r)),r.start=d,r.size=0,r.texArray.count=0,r.type=c),v.touched=1,v._batchEnabled=e,v._batchLocation=i,v.wrapMode=Td.REPEAT,r.texArray.elements[r.texArray.count++]=v,i++)),r.size+=h.size,d+=h.size,s=v._batchLocation,this.addColors(t,g.color,g.alpha,h.attribSize,h.attribStart),this.addTextureIds(n,s,h.attribSize,h.attribStart)}Vt._globalBatch=e,this.packAttributes()}packAttributes(){const e=this.points,t=this.uvs,n=this.colors,r=this.textureIds,i=new ArrayBuffer(e.length*3*4),o=new Float32Array(i),s=new Uint32Array(i);let l=0;for(let c=0;c0&&e.alpha>0;return n?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:n},e)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const e=this.currentPath.points,t=this.currentPath.points.length;t>2&&(this.drawShape(this.currentPath),this.currentPath=new ng,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[t-2],e[t-1]))}else this.currentPath=new ng,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(e,t){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=t,this}lineTo(e,t){this.currentPath||this.moveTo(0,0);const n=this.currentPath.points,r=n[n.length-2],i=n[n.length-1];return(r!==e||i!==t)&&n.push(e,t),this}_initCurve(e=0,t=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,t]):this.moveTo(e,t)}quadraticCurveTo(e,t,n,r){this._initCurve();const i=this.currentPath.points;return i.length===0&&this.moveTo(0,0),Cj.curveTo(e,t,n,r,i),this}bezierCurveTo(e,t,n,r,i,o){return this._initCurve(),Ej.curveTo(e,t,n,r,i,o,this.currentPath.points),this}arcTo(e,t,n,r,i){this._initCurve(e,t);const o=this.currentPath.points,s=S7.curveTo(e,t,n,r,i,o);if(s){const{cx:l,cy:c,radius:d,startAngle:f,endAngle:h,anticlockwise:p}=s;this.arc(l,c,d,f,h,p)}return this}arc(e,t,n,r,i,o=!1){if(r===i)return this;if(!o&&i<=r?i+=pC:o&&r<=i&&(r+=pC),i-r===0)return this;const l=e+Math.cos(r)*n,c=t+Math.sin(r)*n,d=this._geometry.closePointEps;let f=this.currentPath?this.currentPath.points:null;if(f){const h=Math.abs(f[f.length-2]-l),p=Math.abs(f[f.length-1]-c);h0;return n?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:n},e)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(e,t,n,r){return this.drawShape(new Kt(e,t,n,r))}drawRoundedRect(e,t,n,r,i){return this.drawShape(new xj(e,t,n,r,i))}drawCircle(e,t,n){return this.drawShape(new yj(e,t,n))}drawEllipse(e,t,n,r){return this.drawShape(new bj(e,t,n,r))}drawPolygon(...e){let t,n=!0;const r=e[0];r.points?(n=r.closeStroke,t=r.points):Array.isArray(e[0])?t=e[0]:t=e;const i=new ng(t);return i.closeStroke=n,this.drawShape(i),this}drawShape(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const e=this._geometry.graphicsData;return e.length===1&&e[0].shape.type===zi.RECT&&!e[0].matrix&&!e[0].holes.length&&!(e[0].lineStyle.visible&&e[0].lineStyle.width)}_render(e){this.finishPoly();const t=this._geometry;t.updateBatches(),t.batchable?(this.batchDirty!==t.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))}_populateBatches(){const e=this._geometry,t=this.blendMode,n=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=n,this.vertexData=new Float32Array(e.points);for(let r=0;r{const n=URL.createObjectURL(new Blob([p6e.code],{type:"application/javascript"})),r=new Worker(n);r.addEventListener("message",i=>{r.terminate(),URL.revokeObjectURL(n),t(i.data)})}),this._isImageBitmapSupported)}loadImageBitmap(t){return this._run("loadImageBitmap",[t])}async _initWorkers(){this._initialized||(this._initialized=!0)}getWorker(){dB===void 0&&(dB=navigator.hardwareConcurrency||4);let t=this.workerPool.pop();return!t&&this._createdWorkers{this.complete(n.data),this.returnWorker(n.target),this.next()})),t}returnWorker(t){this.workerPool.push(t)}complete(t){t.error!==void 0?this.resolveHash[t.uuid].reject(t.error):this.resolveHash[t.uuid].resolve(t.data),this.resolveHash[t.uuid]=null}async _run(t,n){await this._initWorkers();const r=new Promise((i,o)=>{this.queue.push({id:t,arguments:n,resolve:i,reject:o})});return this.next(),r}next(){if(!this.queue.length)return;const t=this.getWorker();if(!t)return;const n=this.queue.pop(),r=n.id;this.resolveHash[b7]={resolve:n.resolve,reject:n.reject},t.postMessage({data:n.arguments,uuid:b7++,id:r})}}const x7=new g6e;function Hk(e,t,n){const r=new ht(e);return r.baseTexture.on("dispose",()=>{delete t.promiseCache[n]}),r}const v6e=[".jpeg",".jpg",".png",".webp",".avif"],y6e=["image/jpeg","image/png","image/webp","image/avif"];async function b6e(e){const t=await tt.ADAPTER.fetch(e);if(!t.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${e}: ${t.status} ${t.statusText}`);const n=await t.blob();return await createImageBitmap(n)}const Wk={name:"loadTextures",extension:{type:rt.LoadParser,priority:tc.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(e){return gw(e,y6e)||Up(e,v6e)},async load(e,t,n){let r=null;globalThis.createImageBitmap&&this.config.preferCreateImageBitmap?this.config.preferWorkers&&await x7.isImageBitmapSupported()?r=await x7.loadImageBitmap(e):r=await b6e(e):r=await new Promise(o=>{r=new Image,r.crossOrigin=this.config.crossOrigin,r.src=e,r.complete?o(r):r.onload=()=>{o(r)}});const i=new Vt(r,{resolution:Nd(e),...t.data});return i.resource.src=e,Hk(i,n,e)},unload(e){e.destroy(!0)}};bt.add(Wk);const x6e=".svg",w6e="image/svg+xml",_6e={extension:{type:rt.LoadParser,priority:tc.High},name:"loadSVG",test(e){return gw(e,w6e)||Up(e,x6e)},async testParse(e){return E1.test(e)},async parse(e,t,n){var s;const r=new E1(e,(s=t==null?void 0:t.data)==null?void 0:s.resourceOptions);await r.load();const i=new Vt(r,{resolution:Nd(e),...t==null?void 0:t.data});return i.resource.src=e,Hk(i,n,e)},async load(e,t){return(await tt.ADAPTER.fetch(e)).text()},unload:Wk.unload};bt.add(_6e);class S6e{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(t,n)=>`${t}${this._bundleIdConnector}${n}`,extractAssetIdFromBundle:(t,n)=>n.replace(`${t}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId=this._defaultBundleIdentifierOptions.createBundleAssetId,this._extractAssetIdFromBundle=this._defaultBundleIdentifierOptions.extractAssetIdFromBundle,this._assetMap={},this._preferredOrder=[],this._parsers=[],this._resolverHash={},this._bundles={}}setBundleIdentifier(t){if(this._bundleIdConnector=t.connector??this._bundleIdConnector,this._createBundleAssetId=t.createBundleAssetId??this._createBundleAssetId,this._extractAssetIdFromBundle=t.extractAssetIdFromBundle??this._extractAssetIdFromBundle,this._extractAssetIdFromBundle("foo",this._createBundleAssetId("foo","bar"))!=="bar")throw new Error("[Resolver] GenerateBundleAssetId are not working correctly")}prefer(...t){t.forEach(n=>{this._preferredOrder.push(n),n.priority||(n.priority=Object.keys(n.params))}),this._resolverHash={}}set basePath(t){this._basePath=t}get basePath(){return this._basePath}set rootPath(t){this._rootPath=t}get rootPath(){return this._rootPath}get parsers(){return this._parsers}reset(){this.setBundleIdentifier(this._defaultBundleIdentifierOptions),this._assetMap={},this._preferredOrder=[],this._resolverHash={},this._rootPath=null,this._basePath=null,this._manifest=null,this._bundles={},this._defaultSearchParams=null}setDefaultSearchParams(t){if(typeof t=="string")this._defaultSearchParams=t;else{const n=t;this._defaultSearchParams=Object.keys(n).map(r=>`${encodeURIComponent(r)}=${encodeURIComponent(n[r])}`).join("&")}}addManifest(t){this._manifest&&console.warn("[Resolver] Manifest already exists, this will be overwritten"),this._manifest=t,t.bundles.forEach(n=>{this.addBundle(n.name,n.assets)})}addBundle(t,n){const r=[];Array.isArray(n)?n.forEach(i=>{if(typeof i.name=="string"){const o=this._createBundleAssetId(t,i.name);r.push(o),this.add([i.name,o],i.srcs,i.data)}else{const o=i.name.map(s=>this._createBundleAssetId(t,s));o.forEach(s=>{r.push(s)}),this.add([...i.name,...o],i.srcs)}}):Object.keys(n).forEach(i=>{r.push(this._createBundleAssetId(t,i)),this.add([i,this._createBundleAssetId(t,i)],n[i])}),this._bundles[t]=r}add(t,n,r){const i=mu(t);i.forEach(s=>{this.hasKey(s)&&console.warn(`[Resolver] already has key: ${s} overwriting`)}),Array.isArray(n)||(typeof n=="string"?n=Jje(n):n=[n]);const o=n.map(s=>{let l=s;if(typeof s=="string"){let c=!1;for(let d=0;d{this._assetMap[s]=o})}resolveBundle(t){const n=bC(t);t=mu(t);const r={};return t.forEach(i=>{const o=this._bundles[i];if(o){const s=this.resolve(o),l={};for(const c in s){const d=s[c];l[this._extractAssetIdFromBundle(i,c)]=d}r[i]=l}}),n?r[t[0]]:r}resolveUrl(t){const n=this.resolve(t);if(typeof t!="string"){const r={};for(const i in n)r[i]=n[i].src;return r}return n.src}resolve(t){const n=bC(t);t=mu(t);const r={};return t.forEach(i=>{if(!this._resolverHash[i])if(this._assetMap[i]){let o=this._assetMap[i];const s=this._getPreferredOrder(o),l=o[0];s==null||s.priority.forEach(c=>{s.params[c].forEach(d=>{const f=o.filter(h=>h[c]?h[c]===d:!1);f.length&&(o=f)})}),this._resolverHash[i]=o[0]??l}else{let o=i;(this._basePath||this._rootPath)&&(o=to.toAbsolute(o,this._basePath,this._rootPath)),o=this._appendDefaultSearchParams(o),this._resolverHash[i]={src:o}}r[i]=this._resolverHash[i]}),n?r[t[0]]:r}hasKey(t){return!!this._assetMap[t]}hasBundle(t){return!!this._bundles[t]}_getPreferredOrder(t){for(let n=0;no.params.format.includes(r.format));if(i)return i}return this._preferredOrder[0]}_appendDefaultSearchParams(t){if(!this._defaultSearchParams)return t;const n=/\?/.test(t)?"&":"?";return`${t}${n}${this._defaultSearchParams}`}}class E6e{constructor(){this._detections=[],this._initialized=!1,this.resolver=new S6e,this.loader=new e6e,this.cache=wb,this._backgroundLoader=new Qje(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(t={}){var o,s,l;if(this._initialized){console.warn("[Assets]AssetManager already initialized, did you load before calling this Asset.init()?");return}if(this._initialized=!0,t.defaultSearchParams&&this.resolver.setDefaultSearchParams(t.defaultSearchParams),t.basePath&&(this.resolver.basePath=t.basePath),t.bundleIdentifier&&this.resolver.setBundleIdentifier(t.bundleIdentifier),t.manifest){let c=t.manifest;typeof c=="string"&&(c=await this.load(c)),this.resolver.addManifest(c)}const n=((o=t.texturePreference)==null?void 0:o.resolution)??1,r=typeof n=="number"?[n]:n;let i=[];if((s=t.texturePreference)!=null&&s.format){const c=(l=t.texturePreference)==null?void 0:l.format;i=typeof c=="string"?[c]:c;for(const d of this._detections)await d.test()||(i=await d.remove(i))}else for(const c of this._detections)await c.test()&&(i=await c.add(i));this.resolver.prefer({params:{format:i,resolution:r}}),t.preferences&&this.setPreferences(t.preferences)}add(t,n,r){this.resolver.add(t,n,r)}async load(t,n){this._initialized||await this.init();const r=bC(t),i=mu(t).map(l=>typeof l!="string"?(this.resolver.add(l.src,l),l.src):(this.resolver.hasKey(l)||this.resolver.add(l,l),l)),o=this.resolver.resolve(i),s=await this._mapLoadToResolve(o,n);return r?s[i[0]]:s}addBundle(t,n){this.resolver.addBundle(t,n)}async loadBundle(t,n){this._initialized||await this.init();let r=!1;typeof t=="string"&&(r=!0,t=[t]);const i=this.resolver.resolveBundle(t),o={},s=Object.keys(i);let l=0,c=0;const d=()=>{n==null||n(++l/c)},f=s.map(h=>{const p=i[h];return c+=Object.keys(p).length,this._mapLoadToResolve(p,d).then(g=>{o[h]=g})});return await Promise.all(f),r?o[t[0]]:o}async backgroundLoad(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const n=this.resolver.resolve(t);this._backgroundLoader.add(Object.values(n))}async backgroundLoadBundle(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const n=this.resolver.resolveBundle(t);Object.values(n).forEach(r=>{this._backgroundLoader.add(Object.values(r))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(t){if(typeof t=="string")return wb.get(t);const n={};for(let r=0;r{const d=o[l.src],f=[l.src];l.alias&&f.push(...l.alias),s[i[c]]=d,wb.set(f,d)}),s}async unload(t){this._initialized||await this.init();const n=mu(t).map(i=>typeof i!="string"?i.src:i),r=this.resolver.resolve(n);await this._unloadFromResolved(r)}async unloadBundle(t){this._initialized||await this.init(),t=mu(t);const n=this.resolver.resolveBundle(t),r=Object.keys(n).map(i=>this._unloadFromResolved(n[i]));await Promise.all(r)}async _unloadFromResolved(t){const n=Object.values(t);n.forEach(r=>{wb.remove(r.src)}),await this.loader.unload(n)}get detections(){return this._detections}get preferWorkers(){return Wk.config.preferWorkers}set preferWorkers(t){cn("7.2.0","Assets.prefersWorkers is deprecated, use Assets.setPreferences({ preferWorkers: true }) instead."),this.setPreferences({preferWorkers:t})}setPreferences(t){this.loader.parsers.forEach(n=>{n.config&&Object.keys(n.config).filter(r=>r in t).forEach(r=>{n.config[r]=t[r]})})}}const j_=new E6e;bt.handleByList(rt.LoadParser,j_.loader.parsers).handleByList(rt.ResolveParser,j_.resolver.parsers).handleByList(rt.CacheParser,j_.cache.parsers).handleByList(rt.DetectionParser,j_.detections);const C6e={extension:rt.CacheParser,test:e=>Array.isArray(e)&&e.every(t=>t instanceof ht),getCacheableAssets:(e,t)=>{const n={};return e.forEach(r=>{t.forEach((i,o)=>{n[r+(o===0?"":o+1)]=i})}),n}};bt.add(C6e);const T6e={extension:{type:rt.DetectionParser,priority:1},test:async()=>{if(!globalThis.createImageBitmap)return!1;const e="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=",t=await tt.ADAPTER.fetch(e).then(n=>n.blob());return createImageBitmap(t).then(()=>!0,()=>!1)},add:async e=>[...e,"avif"],remove:async e=>e.filter(t=>t!=="avif")};bt.add(T6e);const k6e={extension:{type:rt.DetectionParser,priority:0},test:async()=>{if(!globalThis.createImageBitmap)return!1;const e="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=",t=await tt.ADAPTER.fetch(e).then(n=>n.blob());return createImageBitmap(t).then(()=>!0,()=>!1)},add:async e=>[...e,"webp"],remove:async e=>e.filter(t=>t!=="webp")};bt.add(k6e);const w7=["png","jpg","jpeg"],A6e={extension:{type:rt.DetectionParser,priority:-1},test:()=>Promise.resolve(!0),add:async e=>[...e,...w7],remove:async e=>e.filter(t=>!w7.includes(t))};bt.add(A6e);const R6e={extension:rt.ResolveParser,test:Wk.test,parse:e=>{var t;return{resolution:parseFloat(((t=tt.RETINA_PREFIX.exec(e))==null?void 0:t[1])??"1"),format:e.split(".").pop(),src:e}}};bt.add(R6e);var vs=(e=>(e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",e[e.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",e[e.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",e[e.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",e[e.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL",e[e.COMPRESSED_RGBA_ASTC_4x4_KHR=37808]="COMPRESSED_RGBA_ASTC_4x4_KHR",e))(vs||{});const xC={33776:.5,33777:.5,33778:1,33779:1,35916:.5,35917:.5,35918:1,35919:1,37488:.5,37489:.5,37490:1,37491:1,37492:.5,37496:1,37493:.5,37497:1,37494:.5,37495:.5,35840:.5,35842:.5,35841:.25,35843:.25,36196:.5,35986:.5,35986:1,34798:1,37808:1};let Zc,pm;function _7(){pm={s3tc:Zc.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:Zc.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:Zc.getExtension("WEBGL_compressed_texture_etc"),etc1:Zc.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:Zc.getExtension("WEBGL_compressed_texture_pvrtc")||Zc.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:Zc.getExtension("WEBGL_compressed_texture_atc"),astc:Zc.getExtension("WEBGL_compressed_texture_astc")}}const I6e={extension:{type:rt.DetectionParser,priority:2},test:async()=>{const t=tt.ADAPTER.createCanvas().getContext("webgl");return t?(Zc=t,!0):(console.warn("WebGL not available for compressed textures."),!1)},add:async e=>{pm||_7();const t=[];for(const n in pm)pm[n]&&t.push(n);return[...t,...e]},remove:async e=>(pm||_7(),e.filter(t=>!(t in pm)))};bt.add(I6e);class P6e extends pw{constructor(t,n={width:1,height:1,autoLoad:!0}){let r,i;typeof t=="string"?(r=t,i=new Uint8Array):(r=null,i=t),super(i,n),this.origin=r,this.buffer=i?new T3(i):null,this._load=null,this.loaded=!1,this.origin!==null&&n.autoLoad!==!1&&this.load(),this.origin===null&&this.buffer&&(this._load=Promise.resolve(this),this.loaded=!0,this.onBlobLoaded(this.buffer.rawBinaryData))}onBlobLoaded(t){}load(){return this._load?this._load:(this._load=fetch(this.origin).then(t=>t.blob()).then(t=>t.arrayBuffer()).then(t=>(this.data=new Uint32Array(t),this.buffer=new T3(t),this.loaded=!0,this.onBlobLoaded(t),this.update(),this)),this._load)}}class np extends P6e{constructor(t,n){super(t,n),this.format=n.format,this.levels=n.levels||1,this._width=n.width,this._height=n.height,this._extension=np._formatToExtension(this.format),(n.levelBuffers||this.buffer)&&(this._levelBuffers=n.levelBuffers||np._createLevelBuffers(t instanceof Uint8Array?t:this.buffer.uint8View,this.format,this.levels,4,4,this.width,this.height))}upload(t,n,r){const i=t.gl;if(!t.context.extensions[this._extension])throw new Error(`${this._extension} textures are not supported on the current machine`);if(!this._levelBuffers)return!1;for(let s=0,l=this.levels;s=33776&&t<=33779)return"s3tc";if(t>=37488&&t<=37497)return"etc";if(t>=35840&&t<=35843)return"pvrtc";if(t>=36196)return"etc1";if(t>=35986&&t<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")}static _createLevelBuffers(t,n,r,i,o,s,l){const c=new Array(r);let d=t.byteOffset,f=s,h=l,p=f+i-1&~(i-1),g=h+o-1&~(o-1),v=p*g*xC[n];for(let y=0;y1?f:p,levelHeight:r>1?h:g,levelBuffer:new Uint8Array(t.buffer,d,v)},d+=v,f=f>>1||1,h=h>>1||1,p=f+i-1&~(i-1),g=h+o-1&~(o-1),v=p*g*xC[n];return c}}const hB=4,U_=124,O6e=32,S7=20,M6e=542327876,H_={SIZE:1,FLAGS:2,HEIGHT:3,WIDTH:4,MIPMAP_COUNT:7,PIXEL_FORMAT:19},D6e={SIZE:0,FLAGS:1,FOURCC:2,RGB_BITCOUNT:3,R_BIT_MASK:4,G_BIT_MASK:5,B_BIT_MASK:6,A_BIT_MASK:7},W_={DXGI_FORMAT:0,RESOURCE_DIMENSION:1,MISC_FLAG:2,ARRAY_SIZE:3,MISC_FLAGS2:4},L6e=1,N6e=2,B6e=4,$6e=64,F6e=512,z6e=131072,j6e=827611204,U6e=861165636,H6e=894720068,W6e=808540228,G6e=4,V6e={[j6e]:vs.COMPRESSED_RGBA_S3TC_DXT1_EXT,[U6e]:vs.COMPRESSED_RGBA_S3TC_DXT3_EXT,[H6e]:vs.COMPRESSED_RGBA_S3TC_DXT5_EXT},q6e={70:vs.COMPRESSED_RGBA_S3TC_DXT1_EXT,71:vs.COMPRESSED_RGBA_S3TC_DXT1_EXT,73:vs.COMPRESSED_RGBA_S3TC_DXT3_EXT,74:vs.COMPRESSED_RGBA_S3TC_DXT3_EXT,76:vs.COMPRESSED_RGBA_S3TC_DXT5_EXT,77:vs.COMPRESSED_RGBA_S3TC_DXT5_EXT,72:vs.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT,75:vs.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT,78:vs.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT};function X6e(e){const t=new Uint32Array(e);if(t[0]!==M6e)throw new Error("Invalid DDS file magic word");const r=new Uint32Array(e,0,U_/Uint32Array.BYTES_PER_ELEMENT),i=r[H_.HEIGHT],o=r[H_.WIDTH],s=r[H_.MIPMAP_COUNT],l=new Uint32Array(e,H_.PIXEL_FORMAT*Uint32Array.BYTES_PER_ELEMENT,O6e/Uint32Array.BYTES_PER_ELEMENT),c=l[L6e];if(c&B6e){const d=l[D6e.FOURCC];if(d!==W6e){const x=V6e[d],E=hB+U_,A=new Uint8Array(e,E);return[new np(A,{format:x,width:o,height:i,levels:s})]}const f=hB+U_,h=new Uint32Array(t.buffer,f,S7/Uint32Array.BYTES_PER_ELEMENT),p=h[W_.DXGI_FORMAT],g=h[W_.RESOURCE_DIMENSION],v=h[W_.MISC_FLAG],y=h[W_.ARRAY_SIZE],S=q6e[p];if(S===void 0)throw new Error(`DDSParser cannot parse texture data with DXGI format ${p}`);if(v===G6e)throw new Error("DDSParser does not support cubemap textures");if(g===6)throw new Error("DDSParser does not supported 3D texture data");const _=new Array,b=hB+U_+S7;if(y===1)_.push(new Uint8Array(e,b));else{const x=xC[S];let E=0,A=o,R=i;for(let O=0;O>>1,R=R>>>1}let k=b;for(let O=0;Onew np(x,{format:S,width:o,height:i,levels:s}))}throw c&$6e?new Error("DDSParser does not support uncompressed texture data."):c&F6e?new Error("DDSParser does not supported YUV uncompressed texture data."):c&z6e?new Error("DDSParser does not support single-channel (lumninance) texture data!"):c&N6e?new Error("DDSParser does not support single-channel (alpha) texture data!"):new Error("DDSParser failed to load a texture file due to an unknown reason!")}const E7=[171,75,84,88,32,49,49,187,13,10,26,10],Y6e=67305985,$a={FILE_IDENTIFIER:0,ENDIANNESS:12,GL_TYPE:16,GL_TYPE_SIZE:20,GL_FORMAT:24,GL_INTERNAL_FORMAT:28,GL_BASE_INTERNAL_FORMAT:32,PIXEL_WIDTH:36,PIXEL_HEIGHT:40,PIXEL_DEPTH:44,NUMBER_OF_ARRAY_ELEMENTS:48,NUMBER_OF_FACES:52,NUMBER_OF_MIPMAP_LEVELS:56,BYTES_OF_KEY_VALUE_DATA:60},j3=64,C7={[It.UNSIGNED_BYTE]:1,[It.UNSIGNED_SHORT]:2,[It.INT]:4,[It.UNSIGNED_INT]:4,[It.FLOAT]:4,[It.HALF_FLOAT]:8},K6e={[Ge.RGBA]:4,[Ge.RGB]:3,[Ge.RG]:2,[Ge.RED]:1,[Ge.LUMINANCE]:1,[Ge.LUMINANCE_ALPHA]:2,[Ge.ALPHA]:1},Q6e={[It.UNSIGNED_SHORT_4_4_4_4]:2,[It.UNSIGNED_SHORT_5_5_5_1]:2,[It.UNSIGNED_SHORT_5_6_5]:2};function J6e(e,t,n=!1){const r=new DataView(t);if(!Z6e(e,r))return null;const i=r.getUint32($a.ENDIANNESS,!0)===Y6e,o=r.getUint32($a.GL_TYPE,i),s=r.getUint32($a.GL_FORMAT,i),l=r.getUint32($a.GL_INTERNAL_FORMAT,i),c=r.getUint32($a.PIXEL_WIDTH,i),d=r.getUint32($a.PIXEL_HEIGHT,i)||1,f=r.getUint32($a.PIXEL_DEPTH,i)||1,h=r.getUint32($a.NUMBER_OF_ARRAY_ELEMENTS,i)||1,p=r.getUint32($a.NUMBER_OF_FACES,i),g=r.getUint32($a.NUMBER_OF_MIPMAP_LEVELS,i),v=r.getUint32($a.BYTES_OF_KEY_VALUE_DATA,i);if(d===0||f!==1)throw new Error("Only 2D textures are supported");if(p!==1)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(h!==1)throw new Error("WebGL does not support array textures");const y=4,S=4,_=c+3&-4,b=d+3&-4,x=new Array(h);let E=c*d;o===0&&(E=_*b);let A;if(o!==0?C7[o]?A=C7[o]*K6e[s]:A=Q6e[o]:A=xC[l],A===void 0)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");const R=n?tUe(r,v,i):null;let O=E*A,L=c,N=d,H=_,W=b,z=j3+v;for(let D=0;D1||o!==0?L:H,levelHeight:g>1||o!==0?N:W,levelBuffer:new Uint8Array(t,j,O)},j+=O}z+=F+4,z=z%4!==0?z+4-z%4:z,L=L>>1||1,N=N>>1||1,H=L+y-1&~(y-1),W=N+S-1&~(S-1),O=H*W*A}return o!==0?{uncompressed:x.map(D=>{let F=D[0].levelBuffer,j=!1;return o===It.FLOAT?F=new Float32Array(D[0].levelBuffer.buffer,D[0].levelBuffer.byteOffset,D[0].levelBuffer.byteLength/4):o===It.UNSIGNED_INT?(j=!0,F=new Uint32Array(D[0].levelBuffer.buffer,D[0].levelBuffer.byteOffset,D[0].levelBuffer.byteLength/4)):o===It.INT&&(j=!0,F=new Int32Array(D[0].levelBuffer.buffer,D[0].levelBuffer.byteOffset,D[0].levelBuffer.byteLength/4)),{resource:new pw(F,{width:D[0].levelWidth,height:D[0].levelHeight}),type:o,format:j?eUe(s):s}}),kvData:R}:{compressed:x.map(D=>new np(null,{format:l,width:c,height:d,levels:g,levelBuffers:D})),kvData:R}}function Z6e(e,t){for(let n=0;nt-i){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}let c=0;for(;c{const c=new Vt(l,{mipmap:Yl.OFF,alphaMode:yl.NO_PREMULTIPLIED_ALPHA,resolution:Nd(e),...t.data});return Hk(c,n,e)});return s.length===1?s[0]:s},unload(e){Array.isArray(e)?e.forEach(t=>t.destroy(!0)):e.destroy(!0)}};bt.add(nUe);const rUe={extension:{type:rt.LoadParser,priority:tc.High},name:"loadKTX",test(e){return Up(e,".ktx")},async load(e,t,n){const i=await(await tt.ADAPTER.fetch(e)).arrayBuffer(),{compressed:o,uncompressed:s,kvData:l}=J6e(e,i),c=o??s,d={mipmap:Yl.OFF,alphaMode:yl.NO_PREMULTIPLIED_ALPHA,resolution:Nd(e),...t.data},f=c.map(h=>{c===s&&Object.assign(d,{type:h.type,format:h.format});const p=new Vt(h,d);return p.ktxKeyValueData=l,Hk(p,n,e)});return f.length===1?f[0]:f},unload(e){Array.isArray(e)?e.forEach(t=>t.destroy(!0)):e.destroy(!0)}};bt.add(rUe);const iUe={extension:rt.ResolveParser,test:e=>{const n=e.split("?")[0].split(".").pop();return["basis","ktx","dds"].includes(n)},parse:e=>{var r,i;if(e.split("?")[0].split(".").pop()==="ktx"){const o=[".s3tc.ktx",".s3tc_sRGB.ktx",".etc.ktx",".etc1.ktx",".pvrt.ktx",".atc.ktx",".astc.ktx"];if(o.some(s=>e.endsWith(s)))return{resolution:parseFloat(((r=tt.RETINA_PREFIX.exec(e))==null?void 0:r[1])??"1"),format:o.find(s=>e.endsWith(s)),src:e}}return{resolution:parseFloat(((i=tt.RETINA_PREFIX.exec(e))==null?void 0:i[1])??"1"),format:e.split(".").pop(),src:e}}};bt.add(iUe);const oUe=new Kt,sUe=4,Ub=class{constructor(e){this.renderer=e}async image(e,t,n){const r=new Image;return r.src=await this.base64(e,t,n),r}async base64(e,t,n){const r=this.canvas(e);if(r.toBlob!==void 0)return new Promise((i,o)=>{r.toBlob(s=>{if(!s){o(new Error("ICanvas.toBlob failed!"));return}const l=new FileReader;l.onload=()=>i(l.result),l.onerror=o,l.readAsDataURL(s)},t,n)});if(r.toDataURL!==void 0)return r.toDataURL(t,n);if(r.convertToBlob!==void 0){const i=await r.convertToBlob({type:t,quality:n});return new Promise((o,s)=>{const l=new FileReader;l.onload=()=>o(l.result),l.onerror=s,l.readAsDataURL(i)})}throw new Error("Extract.base64() requires ICanvas.toDataURL, ICanvas.toBlob, or ICanvas.convertToBlob to be implemented")}canvas(e,t){const{pixels:n,width:r,height:i,flipY:o}=this._rawPixels(e,t);o&&Ub._flipY(n,r,i),Ub._unpremultiplyAlpha(n);const s=new w4e(r,i,1),l=new ImageData(new Uint8ClampedArray(n.buffer),r,i);return s.context.putImageData(l,0,0),s.canvas}pixels(e,t){const{pixels:n,width:r,height:i,flipY:o}=this._rawPixels(e,t);return o&&Ub._flipY(n,r,i),Ub._unpremultiplyAlpha(n),n}_rawPixels(e,t){const n=this.renderer;if(!n)throw new Error("The Extract has already been destroyed");let r,i=!1,o,s=!1;if(e&&(e instanceof zp?o=e:(o=n.generateTexture(e,{resolution:n.resolution,multisample:n.multisample}),s=!0)),o){if(r=o.baseTexture.resolution,t=t??o.frame,i=!1,!s){n.renderTexture.bind(o);const h=o.framebuffer.glFramebuffers[n.CONTEXT_UID];h.blitFramebuffer&&n.framebuffer.bind(h.blitFramebuffer)}}else r=n.resolution,t||(t=oUe,t.width=n.width/r,t.height=n.height/r),i=!0,n.renderTexture.bind();const l=Math.round(t.width*r),c=Math.round(t.height*r),d=new Uint8Array(sUe*l*c),f=n.gl;return f.readPixels(Math.round(t.x*r),Math.round(t.y*r),l,c,f.RGBA,f.UNSIGNED_BYTE,d),s&&(o==null||o.destroy(!0)),{pixels:d,width:l,height:c,flipY:i}}destroy(){this.renderer=null}static _flipY(e,t,n){const r=t<<2,i=n>>1,o=new Uint8Array(r);for(let s=0;s=0&&l>=0&&i>=0&&o>=0)){t.length=0;return}const c=Math.ceil(2.3*Math.sqrt(s+l)),d=c*8+(i?4:0)+(o?4:0);if(t.length=d,d===0)return;if(c===0){t.length=8,t[0]=t[6]=n+i,t[1]=t[3]=r+o,t[2]=t[4]=n-i,t[5]=t[7]=r-o;return}let f=0,h=c*4+(i?2:0)+2,p=h,g=d;{const v=i+s,y=o,S=n+v,_=n-v,b=r+y;if(t[f++]=S,t[f++]=b,t[--h]=b,t[--h]=_,o){const x=r-y;t[p++]=_,t[p++]=x,t[--g]=x,t[--g]=S}}for(let v=1;v0||t&&r<=0){const i=n/2;for(let o=i+i%2;o=6){T7(n,!1);const s=[];for(let d=0;d=0&&o>=0&&s.push(n,r,n+i,r,n+i,r+o,n,r+o)},triangulate(e,t){const n=e.points,r=t.points;if(n.length===0)return;const i=r.length/2;r.push(n[0],n[1],n[2],n[3],n[6],n[7],n[4],n[5]),t.indices.push(i,i+1,i+2,i+1,i+2,i+3)}},lUe={build(e){wC.build(e)},triangulate(e,t){wC.triangulate(e,t)}};var Ga=(e=>(e.MITER="miter",e.BEVEL="bevel",e.ROUND="round",e))(Ga||{}),Gh=(e=>(e.BUTT="butt",e.ROUND="round",e.SQUARE="square",e))(Gh||{});const Bg={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(e,t=20){if(!this.adaptive||!e||isNaN(e))return t;let n=Math.ceil(e/this.maxLength);return nthis.maxSegments&&(n=this.maxSegments),n}};class k7{static curveTo(t,n,r,i,o,s){const l=s[s.length-2],d=s[s.length-1]-n,f=l-t,h=i-n,p=r-t,g=Math.abs(d*p-f*h);if(g<1e-8||o===0)return(s[s.length-2]!==t||s[s.length-1]!==n)&&s.push(t,n),null;const v=d*d+f*f,y=h*h+p*p,S=d*h+f*p,_=o*Math.sqrt(v)/g,b=o*Math.sqrt(y)/g,x=_*S/v,E=b*S/y,A=_*p+b*f,R=_*h+b*d,k=f*(b+x),O=d*(b+x),L=p*(_+E),N=h*(_+E),H=Math.atan2(O-R,k-A),W=Math.atan2(N-R,L-A);return{cx:A+t,cy:R+n,radius:o,startAngle:H,endAngle:W,anticlockwise:f*h>p*d}}static arc(t,n,r,i,o,s,l,c,d){const f=l-s,h=Bg._segmentsCount(Math.abs(f)*o,Math.ceil(Math.abs(f)/gC)*40),p=f/(h*2),g=p*2,v=Math.cos(p),y=Math.sin(p),S=h-1,_=S%1/S;for(let b=0;b<=S;++b){const x=b+_*b,E=p+s+g*x,A=Math.cos(E),R=-Math.sin(E);d.push((v*A+y*R)*o+r,(v*-R+y*A)*o+i)}}}class cUe{constructor(){this.reset()}begin(t,n,r){this.reset(),this.style=t,this.start=n,this.attribStart=r}end(t,n){this.attribSize=n-this.attribStart,this.size=t-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class kj{static curveLength(t,n,r,i,o,s,l,c){let f=0,h=0,p=0,g=0,v=0,y=0,S=0,_=0,b=0,x=0,E=0,A=t,R=n;for(let k=1;k<=10;++k)h=k/10,p=h*h,g=p*h,v=1-h,y=v*v,S=y*v,_=S*t+3*y*h*r+3*v*p*o+g*l,b=S*n+3*y*h*i+3*v*p*s+g*c,x=A-_,E=R-b,A=_,R=b,f+=Math.sqrt(x*x+E*E);return f}static curveTo(t,n,r,i,o,s,l){const c=l[l.length-2],d=l[l.length-1];l.length-=2;const f=Bg._segmentsCount(kj.curveLength(c,d,t,n,r,i,o,s));let h=0,p=0,g=0,v=0,y=0;l.push(c,d);for(let S=1,_=0;S<=f;++S)_=S/f,h=1-_,p=h*h,g=p*h,v=_*_,y=v*_,l.push(g*c+3*p*_*t+3*h*v*r+y*o,g*d+3*p*_*n+3*h*v*i+y*s)}}function A7(e,t,n,r,i,o,s,l){const c=e-n*i,d=t-r*i,f=e+n*o,h=t+r*o;let p,g;s?(p=r,g=-n):(p=-r,g=n);const v=c+p,y=d+g,S=f+p,_=h+g;return l.push(v,y,S,_),2}function xh(e,t,n,r,i,o,s,l){const c=n-e,d=r-t;let f=Math.atan2(c,d),h=Math.atan2(i-e,o-t);l&&fh&&(h+=Math.PI*2);let p=f;const g=h-f,v=Math.abs(g),y=Math.sqrt(c*c+d*d),S=(15*v*Math.sqrt(y)/Math.PI>>0)+1,_=g/S;if(p+=_,l){s.push(e,t,n,r);for(let b=1,x=p;b=0&&(o.join===Ga.ROUND?p+=xh(x,E,x-k*z,E-O*z,x-L*z,E-N*z,f,!1)+4:p+=2,f.push(x-L*D,E-N*D,x+L*z,E+N*z));continue}const se=(-k+_)*(-O+E)-(-k+x)*(-O+b),Q=(-L+A)*(-N+E)-(-L+x)*(-N+R),ae=(G*Q-Y*se)/ce,le=(J*se-K*Q)/ce,he=(ae-x)*(ae-x)+(le-E)*(le-E),pe=x+(ae-x)*z,ve=E+(le-E)*z,ye=x-(ae-x)*D,xe=E-(le-E)*D,me=Math.min(G*G+K*K,Y*Y+J*J),be=ue?z:D,Qe=me+be*be*y,qe=he<=Qe;let at=o.join;if(at===Ga.MITER&&he/y>S&&(at=Ga.BEVEL),qe)switch(at){case Ga.MITER:{f.push(pe,ve,ye,xe);break}case Ga.BEVEL:{ue?f.push(pe,ve,x+k*D,E+O*D,pe,ve,x+L*D,E+N*D):f.push(x-k*z,E-O*z,ye,xe,x-L*z,E-N*z,ye,xe),p+=2;break}case Ga.ROUND:{ue?(f.push(pe,ve,x+k*D,E+O*D),p+=xh(x,E,x+k*D,E+O*D,x+L*D,E+N*D,f,!0)+4,f.push(pe,ve,x+L*D,E+N*D)):(f.push(x-k*z,E-O*z,ye,xe),p+=xh(x,E,x-k*z,E-O*z,x-L*z,E-N*z,f,!1)+4,f.push(x-L*z,E-N*z,ye,xe));break}}else{switch(f.push(x-k*z,E-O*z,x+k*D,E+O*D),at){case Ga.MITER:{ue?f.push(ye,xe,ye,xe):f.push(pe,ve,pe,ve),p+=2;break}case Ga.ROUND:{ue?p+=xh(x,E,x+k*D,E+O*D,x+L*D,E+N*D,f,!0)+2:p+=xh(x,E,x-k*z,E-O*z,x-L*z,E-N*z,f,!1)+2;break}}f.push(x-L*z,E-N*z,x+L*D,E+N*D),p+=2}}_=r[(h-2)*2],b=r[(h-2)*2+1],x=r[(h-1)*2],E=r[(h-1)*2+1],k=-(b-E),O=_-x,H=Math.sqrt(k*k+O*O),k/=H,O/=H,k*=v,O*=v,f.push(x-k*z,E-O*z,x+k*D,E+O*D),c||(o.cap===Gh.ROUND?p+=xh(x-k*(z-D)*.5,E-O*(z-D)*.5,x-k*z,E-O*z,x+k*D,E+O*D,f,!1)+2:o.cap===Gh.SQUARE&&(p+=A7(x,E,k,O,z,D,!1,f)));const F=t.indices,j=Bg.epsilon*Bg.epsilon;for(let V=g;V0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(e,t=null,n=null,r=null){const i=new _C(e,t,n,r);return this.graphicsData.push(i),this.dirty++,this}drawHole(e,t=null){if(!this.graphicsData.length)return null;const n=new _C(e,null,null,t),r=this.graphicsData[this.graphicsData.length-1];return n.lineStyle=r.lineStyle,r.holes.push(n),this.dirty++,this}destroy(){super.destroy();for(let e=0;e0&&(n=this.batches[this.batches.length-1],r=n.style);for(let l=this.shapeIndex;l65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&s===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=s?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(e,t){return!(!e||!t||e.texture.baseTexture!==t.texture.baseTexture||e.color+e.alpha!==t.color+t.alpha||!!e.native!=!!t.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let e=0,t=this.graphicsData.length;e65535*2)return!1;const e=this.batches;for(let t=0;t0&&(r=G_.pop(),r||(r=new A3,r.texArray=new I3),this.drawCalls.push(r)),r.start=d,r.size=0,r.texArray.count=0,r.type=c),v.touched=1,v._batchEnabled=e,v._batchLocation=i,v.wrapMode=Ad.REPEAT,r.texArray.elements[r.texArray.count++]=v,i++)),r.size+=h.size,d+=h.size,s=v._batchLocation,this.addColors(t,g.color,g.alpha,h.attribSize,h.attribStart),this.addTextureIds(n,s,h.attribSize,h.attribStart)}Vt._globalBatch=e,this.packAttributes()}packAttributes(){const e=this.points,t=this.uvs,n=this.colors,r=this.textureIds,i=new ArrayBuffer(e.length*3*4),o=new Float32Array(i),s=new Uint32Array(i);let l=0;for(let c=0;c0&&e.alpha>0;return n?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:n},e)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const e=this.currentPath.points,t=this.currentPath.points.length;t>2&&(this.drawShape(this.currentPath),this.currentPath=new ig,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[t-2],e[t-1]))}else this.currentPath=new ig,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(e,t){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=t,this}lineTo(e,t){this.currentPath||this.moveTo(0,0);const n=this.currentPath.points,r=n[n.length-2],i=n[n.length-1];return(r!==e||i!==t)&&n.push(e,t),this}_initCurve(e=0,t=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,t]):this.moveTo(e,t)}quadraticCurveTo(e,t,n,r){this._initCurve();const i=this.currentPath.points;return i.length===0&&this.moveTo(0,0),Aj.curveTo(e,t,n,r,i),this}bezierCurveTo(e,t,n,r,i,o){return this._initCurve(),kj.curveTo(e,t,n,r,i,o,this.currentPath.points),this}arcTo(e,t,n,r,i){this._initCurve(e,t);const o=this.currentPath.points,s=k7.curveTo(e,t,n,r,i,o);if(s){const{cx:l,cy:c,radius:d,startAngle:f,endAngle:h,anticlockwise:p}=s;this.arc(l,c,d,f,h,p)}return this}arc(e,t,n,r,i,o=!1){if(r===i)return this;if(!o&&i<=r?i+=gC:o&&r<=i&&(r+=gC),i-r===0)return this;const l=e+Math.cos(r)*n,c=t+Math.sin(r)*n,d=this._geometry.closePointEps;let f=this.currentPath?this.currentPath.points:null;if(f){const h=Math.abs(f[f.length-2]-l),p=Math.abs(f[f.length-1]-c);h0;return n?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:n},e)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(e,t,n,r){return this.drawShape(new Kt(e,t,n,r))}drawRoundedRect(e,t,n,r,i){return this.drawShape(new Sj(e,t,n,r,i))}drawCircle(e,t,n){return this.drawShape(new wj(e,t,n))}drawEllipse(e,t,n,r){return this.drawShape(new _j(e,t,n,r))}drawPolygon(...e){let t,n=!0;const r=e[0];r.points?(n=r.closeStroke,t=r.points):Array.isArray(e[0])?t=e[0]:t=e;const i=new ig(t);return i.closeStroke=n,this.drawShape(i),this}drawShape(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const e=this._geometry.graphicsData;return e.length===1&&e[0].shape.type===zi.RECT&&!e[0].matrix&&!e[0].holes.length&&!(e[0].lineStyle.visible&&e[0].lineStyle.width)}_render(e){this.finishPoly();const t=this._geometry;t.updateBatches(),t.batchable?(this.batchDirty!==t.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))}_populateBatches(){const e=this._geometry,t=this.blendMode,n=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=n,this.vertexData=new Float32Array(e.points);for(let r=0;rr&&!t.autoResize&&(s=r);let l=t._buffers;l||(l=t._buffers=this.generateBuffers(t));const c=n[0]._texture.baseTexture,d=c.alphaMode>0;this.state.blendMode=yte(t.blendMode,d),o.state.set(this.state);const f=o.gl,h=t.worldTransform.copyTo(this.tempMatrix);h.prepend(o.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=zn.shared.setValue(t.tintRgb).premultiply(t.worldAlpha,d).toArray(this.shader.uniforms.uColor),this.shader.uniforms.uSampler=c,this.renderer.shader.bind(this.shader);let p=!1;for(let g=0,v=0;gi&&(y=i),v>=l.length&&l.push(this._generateOneMoreBuffer(t));const S=l[v];S.uploadDynamic(n,g,y);const _=t._bufferUpdateIDs[v]||0;p=p||S._updateID<_,p&&(S._updateID=t._updateID,S.uploadStatic(n,g,y)),o.geometry.bind(S.geometry),f.drawElements(f.TRIANGLES,y*6,f.UNSIGNED_SHORT,0)}}generateBuffers(t){const n=[],r=t._maxSize,i=t._batchSize,o=t._properties;for(let s=0;s0);i[s]=d,i[s+o]=d,i[s+o*2]=d,i[s+o*3]=d,s+=o*4}}destroy(){super.destroy(),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null}}vne.extension={name:"particle",type:rt.RendererPlugin};bt.add(vne);var Wk=(e=>(e[e.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",e[e.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL",e))(Wk||{});const G_={willReadFrequently:!0},gt=class{static get experimentalLetterSpacingSupported(){let e=gt._experimentalLetterSpacingSupported;if(e!==void 0){const t=tt.ADAPTER.getCanvasRenderingContext2D().prototype;e=gt._experimentalLetterSpacingSupported="letterSpacing"in t||"textLetterSpacing"in t}return e}constructor(e,t,n,r,i,o,s,l,c){this.text=e,this.style=t,this.width=n,this.height=r,this.lines=i,this.lineWidths=o,this.lineHeight=s,this.maxLineWidth=l,this.fontProperties=c}static measureText(e,t,n,r=gt._canvas){n=n??t.wordWrap;const i=t.toFontString(),o=gt.measureFont(i);o.fontSize===0&&(o.fontSize=t.fontSize,o.ascent=t.fontSize);const s=r.getContext("2d",G_);s.font=i;const c=(n?gt.wordWrap(e,t,r):e).split(/(?:\r\n|\r|\n)/),d=new Array(c.length);let f=0;for(let v=0;v0&&(r?i-=t:i+=(gt.graphemeSegmenter(e).length-1)*t),i}static wordWrap(e,t,n=gt._canvas){const r=n.getContext("2d",G_);let i=0,o="",s="";const l=Object.create(null),{letterSpacing:c,whiteSpace:d}=t,f=gt.collapseSpaces(d),h=gt.collapseNewlines(d);let p=!f;const g=t.wordWrapWidth+c,v=gt.tokenize(e);for(let y=0;yg)if(o!==""&&(s+=gt.addLine(o),o="",i=0),gt.canBreakWords(S,t.breakWords)){const b=gt.wordWrapSplit(S);for(let x=0;xg&&(s+=gt.addLine(o),p=!1,o="",i=0),o+=E,i+=k}}else{o.length>0&&(s+=gt.addLine(o),o="",i=0);const b=y===v.length-1;s+=gt.addLine(S,!b),p=!1,o="",i=0}else _+i>g&&(p=!1,s+=gt.addLine(o),o="",i=0),(o.length>0||!gt.isBreakingSpace(S)||p)&&(o+=S,i+=_)}return s+=gt.addLine(o,!1),s}static addLine(e,t=!0){return e=gt.trimRight(e),e=t?`${e} -`:e,e}static getFromCache(e,t,n,r){let i=n[e];return typeof i!="number"&&(i=gt._measureText(e,t,r)+t,n[e]=i),i}static collapseSpaces(e){return e==="normal"||e==="pre-line"}static collapseNewlines(e){return e==="normal"}static trimRight(e){if(typeof e!="string")return"";for(let t=e.length-1;t>=0;t--){const n=e[t];if(!gt.isBreakingSpace(n))break;e=e.slice(0,-1)}return e}static isNewline(e){return typeof e!="string"?!1:gt._newlines.includes(e.charCodeAt(0))}static isBreakingSpace(e,t){return typeof e!="string"?!1:gt._breakingSpaces.includes(e.charCodeAt(0))}static tokenize(e){const t=[];let n="";if(typeof e!="string")return t;for(let r=0;rs;--h){for(let v=0;v{if(typeof(Intl==null?void 0:Intl.Segmenter)=="function"){const e=new Intl.Segmenter;return t=>[...e.segment(t)].map(n=>n.segment)}return e=>[...e]})();Fi.experimentalLetterSpacing=!1;Fi._fonts={};Fi._newlines=[10,13];Fi._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];const mUe=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],zb=class{constructor(e){this.styleID=0,this.reset(),gB(this,e,e)}clone(){const e={};return gB(e,this,zb.defaultStyle),new zb(e)}reset(){gB(this,zb.defaultStyle,zb.defaultStyle)}get align(){return this._align}set align(e){this._align!==e&&(this._align=e,this.styleID++)}get breakWords(){return this._breakWords}set breakWords(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)}get dropShadow(){return this._dropShadow}set dropShadow(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)}get dropShadowAlpha(){return this._dropShadowAlpha}set dropShadowAlpha(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)}get dropShadowAngle(){return this._dropShadowAngle}set dropShadowAngle(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)}get dropShadowBlur(){return this._dropShadowBlur}set dropShadowBlur(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)}get dropShadowColor(){return this._dropShadowColor}set dropShadowColor(e){const t=mB(e);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)}get dropShadowDistance(){return this._dropShadowDistance}set dropShadowDistance(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)}get fill(){return this._fill}set fill(e){const t=mB(e);this._fill!==t&&(this._fill=t,this.styleID++)}get fillGradientType(){return this._fillGradientType}set fillGradientType(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)}get fillGradientStops(){return this._fillGradientStops}set fillGradientStops(e){gUe(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)}get fontFamily(){return this._fontFamily}set fontFamily(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)}get fontSize(){return this._fontSize}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)}get fontStyle(){return this._fontStyle}set fontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)}get fontVariant(){return this._fontVariant}set fontVariant(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)}get fontWeight(){return this._fontWeight}set fontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)}get letterSpacing(){return this._letterSpacing}set letterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.styleID++)}get lineHeight(){return this._lineHeight}set lineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this.styleID++)}get leading(){return this._leading}set leading(e){this._leading!==e&&(this._leading=e,this.styleID++)}get lineJoin(){return this._lineJoin}set lineJoin(e){this._lineJoin!==e&&(this._lineJoin=e,this.styleID++)}get miterLimit(){return this._miterLimit}set miterLimit(e){this._miterLimit!==e&&(this._miterLimit=e,this.styleID++)}get padding(){return this._padding}set padding(e){this._padding!==e&&(this._padding=e,this.styleID++)}get stroke(){return this._stroke}set stroke(e){const t=mB(e);this._stroke!==t&&(this._stroke=t,this.styleID++)}get strokeThickness(){return this._strokeThickness}set strokeThickness(e){this._strokeThickness!==e&&(this._strokeThickness=e,this.styleID++)}get textBaseline(){return this._textBaseline}set textBaseline(e){this._textBaseline!==e&&(this._textBaseline=e,this.styleID++)}get trim(){return this._trim}set trim(e){this._trim!==e&&(this._trim=e,this.styleID++)}get whiteSpace(){return this._whiteSpace}set whiteSpace(e){this._whiteSpace!==e&&(this._whiteSpace=e,this.styleID++)}get wordWrap(){return this._wordWrap}set wordWrap(e){this._wordWrap!==e&&(this._wordWrap=e,this.styleID++)}get wordWrapWidth(){return this._wordWrapWidth}set wordWrapWidth(e){this._wordWrapWidth!==e&&(this._wordWrapWidth=e,this.styleID++)}toFontString(){const e=typeof this.fontSize=="number"?`${this.fontSize}px`:this.fontSize;let t=this.fontFamily;Array.isArray(this.fontFamily)||(t=this.fontFamily.split(","));for(let n=t.length-1;n>=0;n--){let r=t[n].trim();!/([\"\'])[^\'\"]+\1/.test(r)&&!mUe.includes(r)&&(r=`"${r}"`),t[n]=r}return`${this.fontStyle} ${this.fontVariant} ${this.fontWeight} ${e} ${t.join(",")}`}};let Su=zb;Su.defaultStyle={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:Wk.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",leading:0,letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100};function mB(e){const t=zn.shared;return Array.isArray(e)?e.map(n=>t.setValue(n).toHex()):t.setValue(e).toHex()}function gUe(e,t){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n0&&g>v&&(y=(v+g)/2);const S=v+h,_=n.lineHeight*(p+1);let b=S;p+10}}function bUe(e,t){var r;let n=!1;if((r=e==null?void 0:e._textures)!=null&&r.length){for(let i=0;i{this.queue&&this.prepareItems()},this.registerFindHook(EUe),this.registerFindHook(CUe),this.registerFindHook(bUe),this.registerFindHook(xUe),this.registerFindHook(wUe),this.registerUploadHook(_Ue),this.registerUploadHook(SUe)}upload(e){return new Promise(t=>{e&&this.add(e),this.queue.length?(this.completes.push(t),this.ticking||(this.ticking=!0,Xr.system.addOnce(this.tick,this,wp.UTILITY))):t()})}tick(){setTimeout(this.delayedTick,0)}prepareItems(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){const e=this.queue[0];let t=!1;if(e&&!e._destroyed){for(let n=0,r=this.uploadHooks.length;n=0;t--)this.add(e.children[t]);return this}destroy(){this.ticking&&Xr.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null}};let wC=yne;wC.uploadsPerFrame=4;Object.defineProperties(tt,{UPLOADS_PER_FRAME:{get(){return wC.uploadsPerFrame},set(e){cn("7.1.0","settings.UPLOADS_PER_FRAME is deprecated, use prepare.BasePrepare.uploadsPerFrame"),wC.uploadsPerFrame=e}}});function bne(e,t){return t instanceof Vt?(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0):!1}function TUe(e,t){if(!(t instanceof Bg))return!1;const{geometry:n}=t;t.finishPoly(),n.updateBatches();const{batches:r}=n;for(let i=0;ir&&!t.autoResize&&(s=r);let l=t._buffers;l||(l=t._buffers=this.generateBuffers(t));const c=n[0]._texture.baseTexture,d=c.alphaMode>0;this.state.blendMode=Ste(t.blendMode,d),o.state.set(this.state);const f=o.gl,h=t.worldTransform.copyTo(this.tempMatrix);h.prepend(o.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=zn.shared.setValue(t.tintRgb).premultiply(t.worldAlpha,d).toArray(this.shader.uniforms.uColor),this.shader.uniforms.uSampler=c,this.renderer.shader.bind(this.shader);let p=!1;for(let g=0,v=0;gi&&(y=i),v>=l.length&&l.push(this._generateOneMoreBuffer(t));const S=l[v];S.uploadDynamic(n,g,y);const _=t._bufferUpdateIDs[v]||0;p=p||S._updateID<_,p&&(S._updateID=t._updateID,S.uploadStatic(n,g,y)),o.geometry.bind(S.geometry),f.drawElements(f.TRIANGLES,y*6,f.UNSIGNED_SHORT,0)}}generateBuffers(t){const n=[],r=t._maxSize,i=t._batchSize,o=t._properties;for(let s=0;s0);i[s]=d,i[s+o]=d,i[s+o*2]=d,i[s+o*3]=d,s+=o*4}}destroy(){super.destroy(),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null}}_ne.extension={name:"particle",type:rt.RendererPlugin};bt.add(_ne);var Vk=(e=>(e[e.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",e[e.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL",e))(Vk||{});const V_={willReadFrequently:!0},gt=class{static get experimentalLetterSpacingSupported(){let e=gt._experimentalLetterSpacingSupported;if(e!==void 0){const t=tt.ADAPTER.getCanvasRenderingContext2D().prototype;e=gt._experimentalLetterSpacingSupported="letterSpacing"in t||"textLetterSpacing"in t}return e}constructor(e,t,n,r,i,o,s,l,c){this.text=e,this.style=t,this.width=n,this.height=r,this.lines=i,this.lineWidths=o,this.lineHeight=s,this.maxLineWidth=l,this.fontProperties=c}static measureText(e,t,n,r=gt._canvas){n=n??t.wordWrap;const i=t.toFontString(),o=gt.measureFont(i);o.fontSize===0&&(o.fontSize=t.fontSize,o.ascent=t.fontSize);const s=r.getContext("2d",V_);s.font=i;const c=(n?gt.wordWrap(e,t,r):e).split(/(?:\r\n|\r|\n)/),d=new Array(c.length);let f=0;for(let v=0;v0&&(r?i-=t:i+=(gt.graphemeSegmenter(e).length-1)*t),i}static wordWrap(e,t,n=gt._canvas){const r=n.getContext("2d",V_);let i=0,o="",s="";const l=Object.create(null),{letterSpacing:c,whiteSpace:d}=t,f=gt.collapseSpaces(d),h=gt.collapseNewlines(d);let p=!f;const g=t.wordWrapWidth+c,v=gt.tokenize(e);for(let y=0;yg)if(o!==""&&(s+=gt.addLine(o),o="",i=0),gt.canBreakWords(S,t.breakWords)){const b=gt.wordWrapSplit(S);for(let x=0;xg&&(s+=gt.addLine(o),p=!1,o="",i=0),o+=E,i+=k}}else{o.length>0&&(s+=gt.addLine(o),o="",i=0);const b=y===v.length-1;s+=gt.addLine(S,!b),p=!1,o="",i=0}else _+i>g&&(p=!1,s+=gt.addLine(o),o="",i=0),(o.length>0||!gt.isBreakingSpace(S)||p)&&(o+=S,i+=_)}return s+=gt.addLine(o,!1),s}static addLine(e,t=!0){return e=gt.trimRight(e),e=t?`${e} +`:e,e}static getFromCache(e,t,n,r){let i=n[e];return typeof i!="number"&&(i=gt._measureText(e,t,r)+t,n[e]=i),i}static collapseSpaces(e){return e==="normal"||e==="pre-line"}static collapseNewlines(e){return e==="normal"}static trimRight(e){if(typeof e!="string")return"";for(let t=e.length-1;t>=0;t--){const n=e[t];if(!gt.isBreakingSpace(n))break;e=e.slice(0,-1)}return e}static isNewline(e){return typeof e!="string"?!1:gt._newlines.includes(e.charCodeAt(0))}static isBreakingSpace(e,t){return typeof e!="string"?!1:gt._breakingSpaces.includes(e.charCodeAt(0))}static tokenize(e){const t=[];let n="";if(typeof e!="string")return t;for(let r=0;rs;--h){for(let v=0;v{if(typeof(Intl==null?void 0:Intl.Segmenter)=="function"){const e=new Intl.Segmenter;return t=>[...e.segment(t)].map(n=>n.segment)}return e=>[...e]})();Fi.experimentalLetterSpacing=!1;Fi._fonts={};Fi._newlines=[10,13];Fi._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];const yUe=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],Hb=class{constructor(e){this.styleID=0,this.reset(),yB(this,e,e)}clone(){const e={};return yB(e,this,Hb.defaultStyle),new Hb(e)}reset(){yB(this,Hb.defaultStyle,Hb.defaultStyle)}get align(){return this._align}set align(e){this._align!==e&&(this._align=e,this.styleID++)}get breakWords(){return this._breakWords}set breakWords(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)}get dropShadow(){return this._dropShadow}set dropShadow(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)}get dropShadowAlpha(){return this._dropShadowAlpha}set dropShadowAlpha(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)}get dropShadowAngle(){return this._dropShadowAngle}set dropShadowAngle(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)}get dropShadowBlur(){return this._dropShadowBlur}set dropShadowBlur(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)}get dropShadowColor(){return this._dropShadowColor}set dropShadowColor(e){const t=vB(e);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)}get dropShadowDistance(){return this._dropShadowDistance}set dropShadowDistance(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)}get fill(){return this._fill}set fill(e){const t=vB(e);this._fill!==t&&(this._fill=t,this.styleID++)}get fillGradientType(){return this._fillGradientType}set fillGradientType(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)}get fillGradientStops(){return this._fillGradientStops}set fillGradientStops(e){bUe(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)}get fontFamily(){return this._fontFamily}set fontFamily(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)}get fontSize(){return this._fontSize}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)}get fontStyle(){return this._fontStyle}set fontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)}get fontVariant(){return this._fontVariant}set fontVariant(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)}get fontWeight(){return this._fontWeight}set fontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)}get letterSpacing(){return this._letterSpacing}set letterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.styleID++)}get lineHeight(){return this._lineHeight}set lineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this.styleID++)}get leading(){return this._leading}set leading(e){this._leading!==e&&(this._leading=e,this.styleID++)}get lineJoin(){return this._lineJoin}set lineJoin(e){this._lineJoin!==e&&(this._lineJoin=e,this.styleID++)}get miterLimit(){return this._miterLimit}set miterLimit(e){this._miterLimit!==e&&(this._miterLimit=e,this.styleID++)}get padding(){return this._padding}set padding(e){this._padding!==e&&(this._padding=e,this.styleID++)}get stroke(){return this._stroke}set stroke(e){const t=vB(e);this._stroke!==t&&(this._stroke=t,this.styleID++)}get strokeThickness(){return this._strokeThickness}set strokeThickness(e){this._strokeThickness!==e&&(this._strokeThickness=e,this.styleID++)}get textBaseline(){return this._textBaseline}set textBaseline(e){this._textBaseline!==e&&(this._textBaseline=e,this.styleID++)}get trim(){return this._trim}set trim(e){this._trim!==e&&(this._trim=e,this.styleID++)}get whiteSpace(){return this._whiteSpace}set whiteSpace(e){this._whiteSpace!==e&&(this._whiteSpace=e,this.styleID++)}get wordWrap(){return this._wordWrap}set wordWrap(e){this._wordWrap!==e&&(this._wordWrap=e,this.styleID++)}get wordWrapWidth(){return this._wordWrapWidth}set wordWrapWidth(e){this._wordWrapWidth!==e&&(this._wordWrapWidth=e,this.styleID++)}toFontString(){const e=typeof this.fontSize=="number"?`${this.fontSize}px`:this.fontSize;let t=this.fontFamily;Array.isArray(this.fontFamily)||(t=this.fontFamily.split(","));for(let n=t.length-1;n>=0;n--){let r=t[n].trim();!/([\"\'])[^\'\"]+\1/.test(r)&&!yUe.includes(r)&&(r=`"${r}"`),t[n]=r}return`${this.fontStyle} ${this.fontVariant} ${this.fontWeight} ${e} ${t.join(",")}`}};let Cu=Hb;Cu.defaultStyle={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:Vk.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",leading:0,letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100};function vB(e){const t=zn.shared;return Array.isArray(e)?e.map(n=>t.setValue(n).toHex()):t.setValue(e).toHex()}function bUe(e,t){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n0&&g>v&&(y=(v+g)/2);const S=v+h,_=n.lineHeight*(p+1);let b=S;p+10}}function _Ue(e,t){var r;let n=!1;if((r=e==null?void 0:e._textures)!=null&&r.length){for(let i=0;i{this.queue&&this.prepareItems()},this.registerFindHook(kUe),this.registerFindHook(AUe),this.registerFindHook(_Ue),this.registerFindHook(SUe),this.registerFindHook(EUe),this.registerUploadHook(CUe),this.registerUploadHook(TUe)}upload(e){return new Promise(t=>{e&&this.add(e),this.queue.length?(this.completes.push(t),this.ticking||(this.ticking=!0,Xr.system.addOnce(this.tick,this,Sp.UTILITY))):t()})}tick(){setTimeout(this.delayedTick,0)}prepareItems(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){const e=this.queue[0];let t=!1;if(e&&!e._destroyed){for(let n=0,r=this.uploadHooks.length;n=0;t--)this.add(e.children[t]);return this}destroy(){this.ticking&&Xr.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null}};let SC=Sne;SC.uploadsPerFrame=4;Object.defineProperties(tt,{UPLOADS_PER_FRAME:{get(){return SC.uploadsPerFrame},set(e){cn("7.1.0","settings.UPLOADS_PER_FRAME is deprecated, use prepare.BasePrepare.uploadsPerFrame"),SC.uploadsPerFrame=e}}});function Ene(e,t){return t instanceof Vt?(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0):!1}function RUe(e,t){if(!(t instanceof $g))return!1;const{geometry:n}=t;t.finishPoly(),n.updateBatches();const{batches:r}=n;for(let i=0;i1?Hl.from(IUe,AUe,n):Hl.from(R7,RUe,n)}render(t){const n=this.renderer,r=this.quad;let i=r.vertices;i[0]=i[6]=t._width*-t.anchor.x,i[1]=i[3]=t._height*-t.anchor.y,i[2]=i[4]=t._width*(1-t.anchor.x),i[5]=i[7]=t._height*(1-t.anchor.y);const o=t.uvRespectAnchor?t.anchor.x:0,s=t.uvRespectAnchor?t.anchor.y:0;i=r.uvs,i[0]=i[6]=-o,i[1]=i[3]=-s,i[2]=i[4]=1-o,i[5]=i[7]=1-s,r.invalidate();const l=t._texture,c=l.baseTexture,d=c.alphaMode>0,f=t.tileTransform.localTransform,h=t.uvMatrix;let p=c.isPowerOfTwo&&l.frame.width===c.width&&l.frame.height===c.height;p&&(c._glTextures[n.CONTEXT_UID]?p=c.wrapMode!==Td.CLAMP:c.wrapMode===Td.CLAMP&&(c.wrapMode=Td.REPEAT));const g=p?this.simpleShader:this.shader,v=l.width,y=l.height,S=t._width,_=t._height;V_.set(f.a*v/S,f.b*v/_,f.c*y/S,f.d*y/_,f.tx/S,f.ty/_),V_.invert(),p?V_.prepend(h.mapCoord):(g.uniforms.uMapCoord=h.mapCoord.toArray(!0),g.uniforms.uClampFrame=h.uClampFrame,g.uniforms.uClampOffset=h.uClampOffset),g.uniforms.uTransform=V_.toArray(!0),g.uniforms.uColor=zn.shared.setValue(t.tint).premultiply(t.worldAlpha,d).toArray(g.uniforms.uColor),g.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),g.uniforms.uSampler=l,n.shader.bind(g),n.geometry.bind(r),this.state.blendMode=yte(t.blendMode,d),n.state.set(this.state),n.geometry.draw(this.renderer.gl.TRIANGLES,6,0)}}wne.extension={name:"tilingSprite",type:rt.RendererPlugin};bt.add(wne);const jb=class{constructor(e,t,n=null){this.linkedSheets=[],this._texture=e instanceof ht?e:null,this.baseTexture=e instanceof Vt?e:this._texture.baseTexture,this.textures={},this.animations={},this.data=t;const r=this.baseTexture.resource;this.resolution=this._updateResolution(n||(r?r.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}_updateResolution(e=null){const{scale:t}=this.data.meta;let n=Dd(e,null);return n===null&&(n=parseFloat(t??"1")),n!==1&&this.baseTexture.setResolution(n),n}parse(){return new Promise(e=>{this._callback=e,this._batchIndex=0,this._frameKeys.length<=jb.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(e){let t=e;const n=jb.BATCH_SIZE;for(;t-e{this._batchIndex*jb.BATCH_SIZE{r[i]=t}),Object.keys(t.textures).forEach(i=>{r[i]=t.textures[i]}),!n){const i=to.dirname(e[0]);t.linkedSheets.forEach((o,s)=>{const l=_ne([`${i}/${t.data.meta.related_multi_packs[s]}`],o,!0);Object.assign(r,l)})}return r}const MUe={extension:rt.Asset,cache:{test:e=>e instanceof U3,getCacheableAssets:(e,t)=>_ne(e,t,!1)},resolver:{test:e=>{const n=e.split("?")[0].split("."),r=n.pop(),i=n.pop();return r==="json"&&OUe.includes(i)},parse:e=>{var n;const t=e.split(".");return{resolution:parseFloat(((n=tt.RETINA_PREFIX.exec(e))==null?void 0:n[1])??"1"),format:t[t.length-2],src:e}}},loader:{name:"spritesheetLoader",extension:{type:rt.LoadParser,priority:ec.Normal},async testParse(e,t){return to.extname(t.src).toLowerCase()===".json"&&!!e.frames},async parse(e,t,n){var d,f;let r=to.dirname(t.src);r&&r.lastIndexOf("/")!==r.length-1&&(r+="/");let i=r+e.meta.image;i=$3(i,t.src);const s=(await n.load([i]))[i],l=new U3(s.baseTexture,e,t.src);await l.parse();const c=(d=e==null?void 0:e.meta)==null?void 0:d.related_multi_packs;if(Array.isArray(c)){const h=[];for(const g of c){if(typeof g!="string")continue;let v=r+g;(f=t.data)!=null&&f.ignoreMultiPack||(v=$3(v,t.src),h.push(n.load({src:v,data:{ignoreMultiPack:!0}})))}const p=await Promise.all(h);l.linkedSheets=p,p.forEach(g=>{g.linkedSheets=[l].concat(l.linkedSheets.filter(v=>v!==g))})}return l},unload(e){e.destroy(!0)}}};bt.add(MUe);class _C{constructor(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}}class US{static test(t){return typeof t=="string"&&t.startsWith("info face=")}static parse(t){const n=t.match(/^[a-z]+\s+.+$/gm),r={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(const o in n){const s=n[o].match(/^[a-z]+/gm)[0],l=n[o].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),c={};for(const d in l){const f=l[d].split("="),h=f[0],p=f[1].replace(/"/gm,""),g=parseFloat(p),v=isNaN(g)?p:g;c[h]=v}r[s].push(c)}const i=new _C;return r.info.forEach(o=>i.info.push({face:o.face,size:parseInt(o.size,10)})),r.common.forEach(o=>i.common.push({lineHeight:parseInt(o.lineHeight,10)})),r.page.forEach(o=>i.page.push({id:parseInt(o.id,10),file:o.file})),r.char.forEach(o=>i.char.push({id:parseInt(o.id,10),page:parseInt(o.page,10),x:parseInt(o.x,10),y:parseInt(o.y,10),width:parseInt(o.width,10),height:parseInt(o.height,10),xoffset:parseInt(o.xoffset,10),yoffset:parseInt(o.yoffset,10),xadvance:parseInt(o.xadvance,10)})),r.kerning.forEach(o=>i.kerning.push({first:parseInt(o.first,10),second:parseInt(o.second,10),amount:parseInt(o.amount,10)})),r.distanceField.forEach(o=>i.distanceField.push({distanceRange:parseInt(o.distanceRange,10),fieldType:o.fieldType})),i}}class H3{static test(t){const n=t;return"getElementsByTagName"in n&&n.getElementsByTagName("page").length&&n.getElementsByTagName("info")[0].getAttribute("face")!==null}static parse(t){const n=new _C,r=t.getElementsByTagName("info"),i=t.getElementsByTagName("common"),o=t.getElementsByTagName("page"),s=t.getElementsByTagName("char"),l=t.getElementsByTagName("kerning"),c=t.getElementsByTagName("distanceField");for(let d=0;d")?H3.test(tt.ADAPTER.parseXML(t)):!1}static parse(t){return H3.parse(tt.ADAPTER.parseXML(t))}}const vB=[US,H3,W3];function DUe(e){for(let t=0;t=l-L*o){if(v===0)throw new Error(`[BitmapFont] textureHeight ${l}px is too small (fontFamily: '${f.fontFamily}', fontSize: ${f.fontSize}px, char: '${I}')`);--A,y=null,S=null,_=null,v=0,g=0,b=0;continue}if(b=Math.max(L+k.fontProperties.descent,b),N*o+g>=h){if(g===0)throw new Error(`[BitmapFont] textureWidth ${s}px is too small (fontFamily: '${f.fontFamily}', fontSize: ${f.fontSize}px, char: '${I}')`);--A,v+=b*o,v=Math.ceil(v),g=0,b=0;continue}NUe(y,S,k,g,v,o,f);const H=HS(k.text);p.char.push({id:H,page:x.length-1,x:g/o,y:v/o,width:N,height:L,xoffset:0,yoffset:0,xadvance:O-(f.dropShadow?f.dropShadowDistance:0)-(f.stroke?f.strokeThickness:0)}),g+=(N+2*i)*o,g=Math.ceil(g)}for(let A=0,I=d.length;A1?Wl.from(OUe,PUe,n):Wl.from(D7,MUe,n)}render(t){const n=this.renderer,r=this.quad;let i=r.vertices;i[0]=i[6]=t._width*-t.anchor.x,i[1]=i[3]=t._height*-t.anchor.y,i[2]=i[4]=t._width*(1-t.anchor.x),i[5]=i[7]=t._height*(1-t.anchor.y);const o=t.uvRespectAnchor?t.anchor.x:0,s=t.uvRespectAnchor?t.anchor.y:0;i=r.uvs,i[0]=i[6]=-o,i[1]=i[3]=-s,i[2]=i[4]=1-o,i[5]=i[7]=1-s,r.invalidate();const l=t._texture,c=l.baseTexture,d=c.alphaMode>0,f=t.tileTransform.localTransform,h=t.uvMatrix;let p=c.isPowerOfTwo&&l.frame.width===c.width&&l.frame.height===c.height;p&&(c._glTextures[n.CONTEXT_UID]?p=c.wrapMode!==Ad.CLAMP:c.wrapMode===Ad.CLAMP&&(c.wrapMode=Ad.REPEAT));const g=p?this.simpleShader:this.shader,v=l.width,y=l.height,S=t._width,_=t._height;q_.set(f.a*v/S,f.b*v/_,f.c*y/S,f.d*y/_,f.tx/S,f.ty/_),q_.invert(),p?q_.prepend(h.mapCoord):(g.uniforms.uMapCoord=h.mapCoord.toArray(!0),g.uniforms.uClampFrame=h.uClampFrame,g.uniforms.uClampOffset=h.uClampOffset),g.uniforms.uTransform=q_.toArray(!0),g.uniforms.uColor=zn.shared.setValue(t.tint).premultiply(t.worldAlpha,d).toArray(g.uniforms.uColor),g.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),g.uniforms.uSampler=l,n.shader.bind(g),n.geometry.bind(r),this.state.blendMode=Ste(t.blendMode,d),n.state.set(this.state),n.geometry.draw(this.renderer.gl.TRIANGLES,6,0)}}Tne.extension={name:"tilingSprite",type:rt.RendererPlugin};bt.add(Tne);const Wb=class{constructor(e,t,n=null){this.linkedSheets=[],this._texture=e instanceof ht?e:null,this.baseTexture=e instanceof Vt?e:this._texture.baseTexture,this.textures={},this.animations={},this.data=t;const r=this.baseTexture.resource;this.resolution=this._updateResolution(n||(r?r.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}_updateResolution(e=null){const{scale:t}=this.data.meta;let n=Nd(e,null);return n===null&&(n=parseFloat(t??"1")),n!==1&&this.baseTexture.setResolution(n),n}parse(){return new Promise(e=>{this._callback=e,this._batchIndex=0,this._frameKeys.length<=Wb.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(e){let t=e;const n=Wb.BATCH_SIZE;for(;t-e{this._batchIndex*Wb.BATCH_SIZE{r[i]=t}),Object.keys(t.textures).forEach(i=>{r[i]=t.textures[i]}),!n){const i=to.dirname(e[0]);t.linkedSheets.forEach((o,s)=>{const l=kne([`${i}/${t.data.meta.related_multi_packs[s]}`],o,!0);Object.assign(r,l)})}return r}const NUe={extension:rt.Asset,cache:{test:e=>e instanceof W3,getCacheableAssets:(e,t)=>kne(e,t,!1)},resolver:{test:e=>{const n=e.split("?")[0].split("."),r=n.pop(),i=n.pop();return r==="json"&&LUe.includes(i)},parse:e=>{var n;const t=e.split(".");return{resolution:parseFloat(((n=tt.RETINA_PREFIX.exec(e))==null?void 0:n[1])??"1"),format:t[t.length-2],src:e}}},loader:{name:"spritesheetLoader",extension:{type:rt.LoadParser,priority:tc.Normal},async testParse(e,t){return to.extname(t.src).toLowerCase()===".json"&&!!e.frames},async parse(e,t,n){var d,f;let r=to.dirname(t.src);r&&r.lastIndexOf("/")!==r.length-1&&(r+="/");let i=r+e.meta.image;i=z3(i,t.src);const s=(await n.load([i]))[i],l=new W3(s.baseTexture,e,t.src);await l.parse();const c=(d=e==null?void 0:e.meta)==null?void 0:d.related_multi_packs;if(Array.isArray(c)){const h=[];for(const g of c){if(typeof g!="string")continue;let v=r+g;(f=t.data)!=null&&f.ignoreMultiPack||(v=z3(v,t.src),h.push(n.load({src:v,data:{ignoreMultiPack:!0}})))}const p=await Promise.all(h);l.linkedSheets=p,p.forEach(g=>{g.linkedSheets=[l].concat(l.linkedSheets.filter(v=>v!==g))})}return l},unload(e){e.destroy(!0)}}};bt.add(NUe);class EC{constructor(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}}class HS{static test(t){return typeof t=="string"&&t.startsWith("info face=")}static parse(t){const n=t.match(/^[a-z]+\s+.+$/gm),r={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(const o in n){const s=n[o].match(/^[a-z]+/gm)[0],l=n[o].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),c={};for(const d in l){const f=l[d].split("="),h=f[0],p=f[1].replace(/"/gm,""),g=parseFloat(p),v=isNaN(g)?p:g;c[h]=v}r[s].push(c)}const i=new EC;return r.info.forEach(o=>i.info.push({face:o.face,size:parseInt(o.size,10)})),r.common.forEach(o=>i.common.push({lineHeight:parseInt(o.lineHeight,10)})),r.page.forEach(o=>i.page.push({id:parseInt(o.id,10),file:o.file})),r.char.forEach(o=>i.char.push({id:parseInt(o.id,10),page:parseInt(o.page,10),x:parseInt(o.x,10),y:parseInt(o.y,10),width:parseInt(o.width,10),height:parseInt(o.height,10),xoffset:parseInt(o.xoffset,10),yoffset:parseInt(o.yoffset,10),xadvance:parseInt(o.xadvance,10)})),r.kerning.forEach(o=>i.kerning.push({first:parseInt(o.first,10),second:parseInt(o.second,10),amount:parseInt(o.amount,10)})),r.distanceField.forEach(o=>i.distanceField.push({distanceRange:parseInt(o.distanceRange,10),fieldType:o.fieldType})),i}}class G3{static test(t){const n=t;return"getElementsByTagName"in n&&n.getElementsByTagName("page").length&&n.getElementsByTagName("info")[0].getAttribute("face")!==null}static parse(t){const n=new EC,r=t.getElementsByTagName("info"),i=t.getElementsByTagName("common"),o=t.getElementsByTagName("page"),s=t.getElementsByTagName("char"),l=t.getElementsByTagName("kerning"),c=t.getElementsByTagName("distanceField");for(let d=0;d")?G3.test(tt.ADAPTER.parseXML(t)):!1}static parse(t){return G3.parse(tt.ADAPTER.parseXML(t))}}const bB=[HS,G3,V3];function BUe(e){for(let t=0;t=l-L*o){if(v===0)throw new Error(`[BitmapFont] textureHeight ${l}px is too small (fontFamily: '${f.fontFamily}', fontSize: ${f.fontSize}px, char: '${R}')`);--A,y=null,S=null,_=null,v=0,g=0,b=0;continue}if(b=Math.max(L+k.fontProperties.descent,b),N*o+g>=h){if(g===0)throw new Error(`[BitmapFont] textureWidth ${s}px is too small (fontFamily: '${f.fontFamily}', fontSize: ${f.fontSize}px, char: '${R}')`);--A,v+=b*o,v=Math.ceil(v),g=0,b=0;continue}FUe(y,S,k,g,v,o,f);const H=WS(k.text);p.char.push({id:H,page:x.length-1,x:g/o,y:v/o,width:N,height:L,xoffset:0,yoffset:0,xadvance:O-(f.dropShadow?f.dropShadowDistance:0)-(f.stroke?f.strokeThickness:0)}),g+=(N+2*i)*o,g=Math.ceil(g)}for(let A=0,R=d.length;A{this.dirty=!0},this,0,0),this._roundPixels=tt.ROUND_PIXELS,this.dirty=!0,this._resolution=tt.RESOLUTION,this._autoResolution=!0,this._textureCache={}}updateText(){var N;const e=Do.available[this._fontName],t=this.fontSize,n=t/e.size,r=new Ot,i=[],o=[],s=[],l=this._text.replace(/(?:\r\n|\r)/g,` -`)||" ",c=Sne(l),d=this._maxWidth*e.size/t,f=e.distanceFieldType==="none"?P7:O7;let h=null,p=0,g=0,v=0,y=-1,S=0,_=0,b=0,x=0;for(let H=0;H0&&r.x>d&&(++_,tg(i,1+y-_,1+H-y),H=y,y=-1,o.push(S),s.push(i.length>0?i[i.length-1].prevSpaces:0),g=Math.max(g,S),v++,r.x=0,r.y+=e.lineHeight,h=null,x=0)}const E=c[c.length-1];E!=="\r"&&E!==` -`&&(/(?:\s)/.test(E)&&(p=S),o.push(p),g=Math.max(g,p),s.push(-1));const A=[];for(let H=0;H<=v;H++){let W=0;this._align==="right"?W=g-o[H]:this._align==="center"?W=(g-o[H])/2:this._align==="justify"&&(W=s[H]<0?0:(g-o[H])/s[H]),A.push(W)}const I=i.length,k={},O=[],L=this._activePagesMeshData;f.push(...L);for(let H=0;H6*z)||W.vertices.lengtht[i.mesh.texture.baseTexture.uid]).forEach(i=>{i.mesh.texture=ht.EMPTY});for(const i in t)t[i].destroy(),delete t[i];this._font=null,this._tintColor=null,this._textureCache=null,super.destroy(e)}};let zUe=Ene;zUe.styleDefaults={align:"left",tint:16777215,maxWidth:0,letterSpacing:0};const jUe=[".xml",".fnt"],UUe={extension:{type:rt.LoadParser,priority:ec.Normal},name:"loadBitmapFont",test(e){return jUe.includes(to.extname(e).toLowerCase())},async testParse(e){return US.test(e)||W3.test(e)},async parse(e,t,n){const r=US.test(e)?US.parse(e):W3.parse(e),{src:i}=t,{page:o}=r,s=[];for(let d=0;dl[d]);return Do.install(r,c,!0)},async load(e,t){return(await tt.ADAPTER.fetch(e)).text()},unload(e){e.destroy()}};bt.add(UUe);const hm=class extends Su{constructor(){super(...arguments),this._fonts=[],this._overrides=[],this._stylesheet="",this.fontsDirty=!1}static from(e){return new hm(Object.keys(hm.defaultOptions).reduce((t,n)=>({...t,[n]:e[n]}),{}))}cleanFonts(){this._fonts.length>0&&(this._fonts.forEach(e=>{URL.revokeObjectURL(e.src),e.refs--,e.refs===0&&(e.fontFace&&document.fonts.delete(e.fontFace),delete hm.availableFonts[e.originalUrl])}),this.fontFamily="Arial",this._fonts.length=0,this.styleID++,this.fontsDirty=!0)}loadFont(e,t={}){const{availableFonts:n}=hm;if(n[e]){const r=n[e];return this._fonts.push(r),r.refs++,this.styleID++,this.fontsDirty=!0,Promise.resolve()}return tt.ADAPTER.fetch(e).then(r=>r.blob()).then(async r=>new Promise((i,o)=>{const s=URL.createObjectURL(r),l=new FileReader;l.onload=()=>i([s,l.result]),l.onerror=o,l.readAsDataURL(r)})).then(async([r,i])=>{const o=Object.assign({family:to.basename(e,to.extname(e)),weight:"normal",style:"normal",src:r,dataSrc:i,refs:1,originalUrl:e,fontFace:null},t);n[e]=o,this._fonts.push(o),this.styleID++;const s=new FontFace(o.family,`url(${o.src})`,{weight:o.weight,style:o.style});o.fontFace=s,await s.load(),document.fonts.add(s),await document.fonts.ready,this.styleID++,this.fontsDirty=!0})}addOverride(...e){const t=e.filter(n=>!this._overrides.includes(n));t.length>0&&(this._overrides.push(...t),this.styleID++)}removeOverride(...e){const t=e.filter(n=>this._overrides.includes(n));t.length>0&&(this._overrides=this._overrides.filter(n=>!t.includes(n)),this.styleID++)}toCSS(e){return[`transform: scale(${e})`,"transform-origin: top left","display: inline-block",`color: ${this.normalizeColor(this.fill)}`,`font-size: ${this.fontSize}px`,`font-family: ${this.fontFamily}`,`font-weight: ${this.fontWeight}`,`font-style: ${this.fontStyle}`,`font-variant: ${this.fontVariant}`,`letter-spacing: ${this.letterSpacing}px`,`text-align: ${this.align}`,`padding: ${this.padding}px`,`white-space: ${this.whiteSpace}`,...this.lineHeight?[`line-height: ${this.lineHeight}px`]:[],...this.wordWrap?[`word-wrap: ${this.breakWords?"break-all":"break-word"}`,`max-width: ${this.wordWrapWidth}px`]:[],...this.strokeThickness?[`-webkit-text-stroke-width: ${this.strokeThickness}px`,`-webkit-text-stroke-color: ${this.normalizeColor(this.stroke)}`,`text-stroke-width: ${this.strokeThickness}px`,`text-stroke-color: ${this.normalizeColor(this.stroke)}`,"paint-order: stroke"]:[],...this.dropShadow?[this.dropShadowToCSS()]:[],...this._overrides].join(";")}toGlobalCSS(){return this._fonts.reduce((e,t)=>`${e} +`;const L7=[],N7=[],B7=[],Rne=class extends qo{constructor(e,t={}){super();const{align:n,tint:r,maxWidth:i,letterSpacing:o,fontName:s,fontSize:l}=Object.assign({},Rne.styleDefaults,t);if(!Do.available[s])throw new Error(`Missing BitmapFont "${s}"`);this._activePagesMeshData=[],this._textWidth=0,this._textHeight=0,this._align=n,this._tintColor=new zn(r),this._font=void 0,this._fontName=s,this._fontSize=l,this.text=e,this._maxWidth=i,this._maxLineHeight=0,this._letterSpacing=o,this._anchor=new fd(()=>{this.dirty=!0},this,0,0),this._roundPixels=tt.ROUND_PIXELS,this.dirty=!0,this._resolution=tt.RESOLUTION,this._autoResolution=!0,this._textureCache={}}updateText(){var N;const e=Do.available[this._fontName],t=this.fontSize,n=t/e.size,r=new Ot,i=[],o=[],s=[],l=this._text.replace(/(?:\r\n|\r)/g,` +`)||" ",c=Ane(l),d=this._maxWidth*e.size/t,f=e.distanceFieldType==="none"?L7:N7;let h=null,p=0,g=0,v=0,y=-1,S=0,_=0,b=0,x=0;for(let H=0;H0&&r.x>d&&(++_,rg(i,1+y-_,1+H-y),H=y,y=-1,o.push(S),s.push(i.length>0?i[i.length-1].prevSpaces:0),g=Math.max(g,S),v++,r.x=0,r.y+=e.lineHeight,h=null,x=0)}const E=c[c.length-1];E!=="\r"&&E!==` +`&&(/(?:\s)/.test(E)&&(p=S),o.push(p),g=Math.max(g,p),s.push(-1));const A=[];for(let H=0;H<=v;H++){let W=0;this._align==="right"?W=g-o[H]:this._align==="center"?W=(g-o[H])/2:this._align==="justify"&&(W=s[H]<0?0:(g-o[H])/s[H]),A.push(W)}const R=i.length,k={},O=[],L=this._activePagesMeshData;f.push(...L);for(let H=0;H6*z)||W.vertices.lengtht[i.mesh.texture.baseTexture.uid]).forEach(i=>{i.mesh.texture=ht.EMPTY});for(const i in t)t[i].destroy(),delete t[i];this._font=null,this._tintColor=null,this._textureCache=null,super.destroy(e)}};let HUe=Rne;HUe.styleDefaults={align:"left",tint:16777215,maxWidth:0,letterSpacing:0};const WUe=[".xml",".fnt"],GUe={extension:{type:rt.LoadParser,priority:tc.Normal},name:"loadBitmapFont",test(e){return WUe.includes(to.extname(e).toLowerCase())},async testParse(e){return HS.test(e)||V3.test(e)},async parse(e,t,n){const r=HS.test(e)?HS.parse(e):V3.parse(e),{src:i}=t,{page:o}=r,s=[];for(let d=0;dl[d]);return Do.install(r,c,!0)},async load(e,t){return(await tt.ADAPTER.fetch(e)).text()},unload(e){e.destroy()}};bt.add(GUe);const mm=class extends Cu{constructor(){super(...arguments),this._fonts=[],this._overrides=[],this._stylesheet="",this.fontsDirty=!1}static from(e){return new mm(Object.keys(mm.defaultOptions).reduce((t,n)=>({...t,[n]:e[n]}),{}))}cleanFonts(){this._fonts.length>0&&(this._fonts.forEach(e=>{URL.revokeObjectURL(e.src),e.refs--,e.refs===0&&(e.fontFace&&document.fonts.delete(e.fontFace),delete mm.availableFonts[e.originalUrl])}),this.fontFamily="Arial",this._fonts.length=0,this.styleID++,this.fontsDirty=!0)}loadFont(e,t={}){const{availableFonts:n}=mm;if(n[e]){const r=n[e];return this._fonts.push(r),r.refs++,this.styleID++,this.fontsDirty=!0,Promise.resolve()}return tt.ADAPTER.fetch(e).then(r=>r.blob()).then(async r=>new Promise((i,o)=>{const s=URL.createObjectURL(r),l=new FileReader;l.onload=()=>i([s,l.result]),l.onerror=o,l.readAsDataURL(r)})).then(async([r,i])=>{const o=Object.assign({family:to.basename(e,to.extname(e)),weight:"normal",style:"normal",src:r,dataSrc:i,refs:1,originalUrl:e,fontFace:null},t);n[e]=o,this._fonts.push(o),this.styleID++;const s=new FontFace(o.family,`url(${o.src})`,{weight:o.weight,style:o.style});o.fontFace=s,await s.load(),document.fonts.add(s),await document.fonts.ready,this.styleID++,this.fontsDirty=!0})}addOverride(...e){const t=e.filter(n=>!this._overrides.includes(n));t.length>0&&(this._overrides.push(...t),this.styleID++)}removeOverride(...e){const t=e.filter(n=>this._overrides.includes(n));t.length>0&&(this._overrides=this._overrides.filter(n=>!t.includes(n)),this.styleID++)}toCSS(e){return[`transform: scale(${e})`,"transform-origin: top left","display: inline-block",`color: ${this.normalizeColor(this.fill)}`,`font-size: ${this.fontSize}px`,`font-family: ${this.fontFamily}`,`font-weight: ${this.fontWeight}`,`font-style: ${this.fontStyle}`,`font-variant: ${this.fontVariant}`,`letter-spacing: ${this.letterSpacing}px`,`text-align: ${this.align}`,`padding: ${this.padding}px`,`white-space: ${this.whiteSpace}`,...this.lineHeight?[`line-height: ${this.lineHeight}px`]:[],...this.wordWrap?[`word-wrap: ${this.breakWords?"break-all":"break-word"}`,`max-width: ${this.wordWrapWidth}px`]:[],...this.strokeThickness?[`-webkit-text-stroke-width: ${this.strokeThickness}px`,`-webkit-text-stroke-color: ${this.normalizeColor(this.stroke)}`,`text-stroke-width: ${this.strokeThickness}px`,`text-stroke-color: ${this.normalizeColor(this.stroke)}`,"paint-order: stroke"]:[],...this.dropShadow?[this.dropShadowToCSS()]:[],...this._overrides].join(";")}toGlobalCSS(){return this._fonts.reduce((e,t)=>`${e} @font-face { font-family: "${t.family}"; src: url('${t.dataSrc}'); font-weight: ${t.weight}; font-style: ${t.style}; - }`,this._stylesheet)}get stylesheet(){return this._stylesheet}set stylesheet(e){this._stylesheet!==e&&(this._stylesheet=e,this.styleID++)}normalizeColor(e){return Array.isArray(e)&&(e=p4e(e)),typeof e=="number"?h4e(e):e}dropShadowToCSS(){let e=this.normalizeColor(this.dropShadowColor);const t=this.dropShadowAlpha,n=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),r=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);e.startsWith("#")&&t<1&&(e+=(t*255|0).toString(16).padStart(2,"0"));const i=`${n}px ${r}px`;return this.dropShadowBlur>0?`text-shadow: ${i} ${this.dropShadowBlur}px ${e}`:`text-shadow: ${i} ${e}`}reset(){Object.assign(this,hm.defaultOptions)}onBeforeDraw(){const{fontsDirty:e}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&e?new Promise(t=>setTimeout(t,100)):Promise.resolve()}get isSafari(){const{userAgent:e}=tt.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(e)}set fillGradientStops(e){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(e){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(e){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(e){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(e){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(e){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(e){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};let xx=hm;xx.availableFonts={};xx.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};const pm=class extends Fp{constructor(e="",t={}){super(ht.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this._loading=!1,this.localStyleID=-1,this.dirty=!1,this.ownsStyle=!1;const n=new Image,r=ht.from(n,{scaleMode:tt.SCALE_MODE,resourceOptions:{autoLoad:!1}});r.orig=new Kt,r.trim=new Kt,this.texture=r;const i="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xhtml",s=document.createElementNS(i,"svg"),l=document.createElementNS(i,"foreignObject"),c=document.createElementNS(o,"div"),d=document.createElementNS(o,"style");l.setAttribute("width","10000"),l.setAttribute("height","10000"),l.style.overflow="hidden",s.appendChild(l),this.maxWidth=pm.defaultMaxWidth,this.maxHeight=pm.defaultMaxHeight,this._domElement=c,this._styleElement=d,this._svgRoot=s,this._foreignObject=l,this._foreignObject.appendChild(d),this._foreignObject.appendChild(c),this._image=n,this._loadImage=new Image,this._autoResolution=pm.defaultAutoResolution,this._resolution=pm.defaultResolution??tt.RESOLUTION,this.text=e,this.style=t}measureText(e){var l,c;const{text:t,style:n,resolution:r}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},e);Object.assign(this._domElement,{innerHTML:t,style:n.toCSS(r)}),this._styleElement.textContent=n.toGlobalCSS(),document.body.appendChild(this._svgRoot);const i=this._domElement.getBoundingClientRect();this._svgRoot.remove();const o=Math.min(this.maxWidth,Math.ceil(i.width)),s=Math.min(this.maxHeight,Math.ceil(i.height));return this._svgRoot.setAttribute("width",o.toString()),this._svgRoot.setAttribute("height",s.toString()),t!==this._text&&(this._domElement.innerHTML=this._text),n!==this._style&&(Object.assign(this._domElement,{style:(l=this._style)==null?void 0:l.toCSS(r)}),this._styleElement.textContent=(c=this._style)==null?void 0:c.toGlobalCSS()),{width:o+n.padding*2,height:s+n.padding*2}}async updateText(e=!0){const{style:t,_image:n,_loadImage:r}=this;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),!this.dirty&&e)return;const{width:i,height:o}=this.measureText();n.width=r.width=Math.ceil(Math.max(1,i)),n.height=r.height=Math.ceil(Math.max(1,o)),this._loading||(this._loading=!0,await new Promise(s=>{r.onload=async()=>{await t.onBeforeDraw(),this._loading=!1,n.src=r.src,r.onload=null,r.src="",this.updateTexture(),s()};const l=new XMLSerializer().serializeToString(this._svgRoot);r.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(l)}`}))}get source(){return this._image}updateTexture(){const{style:e,texture:t,_image:n,resolution:r}=this,{padding:i}=e,{baseTexture:o}=t;t.trim.width=t._frame.width=n.width/r,t.trim.height=t._frame.height=n.height/r,t.trim.x=-i,t.trim.y=-i,t.orig.width=t._frame.width-i*2,t.orig.height=t._frame.height-i*2,this._onTextureUpdate(),o.setRealSize(n.width,n.height,r),this.dirty=!1}_render(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),super._render(e)}_renderCanvas(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),super._renderCanvas(e)}getLocalBounds(e){return this.updateText(!0),super.getLocalBounds(e)}_calculateBounds(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)}_onStyleChange(){this.dirty=!0}destroy(e){var n,r,i,o,s;typeof e=="boolean"&&(e={children:e}),e=Object.assign({},pm.defaultDestroyOptions,e),super.destroy(e);const t=null;this.ownsStyle&&((n=this._style)==null||n.cleanFonts()),this._style=t,(r=this._svgRoot)==null||r.remove(),this._svgRoot=t,(i=this._domElement)==null||i.remove(),this._domElement=t,(o=this._foreignObject)==null||o.remove(),this._foreignObject=t,(s=this._styleElement)==null||s.remove(),this._styleElement=t,this._loadImage.src="",this._loadImage.onload=null,this._loadImage=t,this._image.src="",this._image=t}get width(){return this.updateText(!0),Math.abs(this.scale.x)*this._image.width/this.resolution}set width(e){this.updateText(!0);const t=ld(this.scale.x)||1;this.scale.x=t*e/this._image.width/this.resolution,this._width=e}get height(){return this.updateText(!0),Math.abs(this.scale.y)*this._image.height/this.resolution}set height(e){this.updateText(!0);const t=ld(this.scale.y)||1;this.scale.y=t*e/this._image.height/this.resolution,this._height=e}get style(){return this._style}set style(e){this._style!==e&&(e=e||{},e instanceof xx?(this.ownsStyle=!1,this._style=e):e instanceof Su?(console.warn("[HTMLText] Cloning TextStyle, if this is not what you want, use HTMLTextStyle"),this.ownsStyle=!0,this._style=xx.from(e)):(this.ownsStyle=!0,this._style=new xx(e)),this.localStyleID=-1,this.dirty=!0)}get text(){return this._text}set text(e){e=String(e===""||e===null||e===void 0?" ":e),e=this.sanitiseText(e),this._text!==e&&(this._text=e,this.dirty=!0)}get resolution(){return this._resolution}set resolution(e){this._autoResolution=!1,this._resolution!==e&&(this._resolution=e,this.dirty=!0)}sanitiseText(e){return e.replace(/

/gi,"
").replace(/
/gi,"
").replace(/ /gi," ")}};let Gk=pm;Gk.defaultDestroyOptions={texture:!0,children:!1,baseTexture:!0};Gk.defaultMaxWidth=2024;Gk.defaultMaxHeight=2024;Gk.defaultAutoResolution=!0;function HUe(e,t){return{constructor:e,meta:t}}function WUe(e,t,n,r,i){Cne(e,t,n||0,r||e.length-1,i||GUe)}function Cne(e,t,n,r,i){for(;r>n;){if(r-n>600){var o=r-n+1,s=t-n+1,l=Math.log(o),c=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2<0?-1:1),f=Math.max(n,Math.floor(t-s*c/o+d)),h=Math.min(r,Math.floor(t+(o-s)*c/o+d));Cne(e,t,f,h,i)}var p=e[t],g=n,v=r;for(bb(e,n,t),i(e[r],p)>0&&bb(e,n,r);g0;)v--}i(e[n],p)===0?bb(e,n,v):(v++,bb(e,v,r)),v<=t&&(n=v+1),t<=v&&(r=v-1)}}function bb(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function GUe(e,t){return et?1:0}class VUe{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(t){let n=this.data;const r=[];if(!X_(t,n))return r;const i=this.toBBox,o=[];for(;n;){for(let s=0;s=0&&o[n].children.length>this._maxEntries;)this._split(o,n),n--;this._adjustParentBBoxes(i,o,n)}_split(t,n){const r=t[n],i=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,i);const s=this._chooseSplitIndex(r,o,i),l=mm(r.children.splice(s,r.children.length-s));l.height=r.height,l.leaf=r.leaf,Zp(r,this.toBBox),Zp(l,this.toBBox),n?t[n-1].children.push(l):this._splitRoot(r,l)}_splitRoot(t,n){this.data=mm([t,n]),this.data.height=t.height+1,this.data.leaf=!1,Zp(this.data,this.toBBox)}_chooseSplitIndex(t,n,r){let i,o=1/0,s=1/0;for(let l=n;l<=r-n;l++){const c=Ub(t,0,l,this.toBBox),d=Ub(t,l,r,this.toBBox),f=QUe(c,d),h=yB(c)+yB(d);f=n;d--){const f=t.children[d];Hb(l,t.leaf?o(f):f),c+=q_(l)}return c}_adjustParentBBoxes(t,n,r){for(let i=r;i>=0;i--)Hb(n[i],t)}_condense(t){for(let n=t.length-1,r;n>=0;n--)t[n].children.length===0?n>0?(r=t[n-1].children,r.splice(r.indexOf(t[n]),1)):this.clear():Zp(t[n],this.toBBox)}}function qUe(e,t,n){if(!n)return t.indexOf(e);for(let r=0;r=e.minX&&t.maxY>=e.minY}function mm(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function D7(e,t,n,r,i){const o=[t,n];for(;o.length;){if(n=o.pop(),t=o.pop(),n-t<=r)continue;const s=t+Math.ceil((n-t)/r/2)*r;WUe(e,s,t,n,i),o.push(t,s,s,n)}}class JUe extends VUe{toBBox(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}compareMinX(t,n){return t.left-n.left}compareMinY(t,n){return t.top-n.top}}const L7={screenSize:{width:1,height:1},workerCount:4,workerIndex:0,tileResolution:{width:64,height:64},tileSubdivision:0,refreshInterval:1e3/60,animationDuration:150,debounceInterval:1e3/60,backgroundColor:"#ffffff",accentColor:"#333333",dynamicResolution:{intervalMs:5e3,increment:.25,maxScale:2,minScale:1,dtMax:1.5,dtMin:1.1}};var Tne={},SC=Nt&&Nt.__assign||function(){return SC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?1:-1}),xB}var u8e=l8e()?Math.sign:c8e(),d8e=u8e,f8e=Math.abs,h8e=Math.floor,p8e=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:d8e(e)*h8e(f8e(e)))},m8e=p8e,g8e=Math.max,v8e=function(e){return g8e(0,m8e(e))},kne=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},y8e=av,Ane=function(e){if(!y8e(e))throw new TypeError("Cannot use null or undefined");return e},b8e={exports:{}},x8e=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},wB,B7;function w8e(){return B7||(B7=1,wB=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),wB}var _B,$7;function _8e(){if($7)return _B;$7=1;var e=av,t=Object.keys;return _B=function(n){return t(e(n)?Object(n):n)},_B}var SB,F7;function S8e(){return F7||(F7=1,SB=w8e()()?Object.keys:_8e()),SB}var EB,z7;function E8e(){if(z7)return EB;z7=1;var e=S8e(),t=Ane,n=Math.max;return EB=function(r,i){var o,s,l=n(arguments.length,2),c;for(r=Object(t(r)),c=function(d){try{r[d]=i[d]}catch(f){o||(o=f)}},s=1;s-1},TB}var U8e=z8e()?String.prototype.contains:j8e(),WS=One,U7=F8e,Mne=Ine,Dne=a8e,wx=U8e,H8e=Pne.exports=function(e,t){var n,r,i,o,s;return arguments.length<2||typeof e!="string"?(o=t,t=e,e=null):o=arguments[2],WS(e)?(n=wx.call(e,"c"),r=wx.call(e,"e"),i=wx.call(e,"w")):(n=i=!0,r=!1),s={value:t,configurable:n,enumerable:r,writable:i},o?Mne(Dne(o),s):s};H8e.gs=function(e,t,n){var r,i,o,s;return typeof e!="string"?(o=n,n=t,t=e,e=null):o=arguments[3],WS(t)?U7(t)?WS(n)?U7(n)||(o=n,n=void 0):n=void 0:(o=t,t=n=void 0):t=void 0,WS(e)?(r=wx.call(e,"c"),i=wx.call(e,"e")):(r=!0,i=!1),s={get:t,set:n,configurable:r,enumerable:i},o?Mne(Dne(o),s):s};var gw=Pne.exports,G3={exports:{}};(function(e,t){var n=gw,r=kne,i=Function.prototype.apply,o=Function.prototype.call,s=Object.create,l=Object.defineProperty,c=Object.defineProperties,d=Object.prototype.hasOwnProperty,f={configurable:!0,enumerable:!1,writable:!0},h,p,g,v,y,S,_;h=function(b,x){var E;return r(x),d.call(this,"__ee__")?E=this.__ee__:(E=f.value=s(null),l(this,"__ee__",f),f.value=null),E[b]?typeof E[b]=="object"?E[b].push(x):E[b]=[E[b],x]:E[b]=x,this},p=function(b,x){var E,A;return r(x),A=this,h.call(this,b,E=function(){g.call(A,b,E),i.call(x,this,arguments)}),E.__eeOnceListener__=x,this},g=function(b,x){var E,A,I,k;if(r(x),!d.call(this,"__ee__"))return this;if(E=this.__ee__,!E[b])return this;if(A=E[b],typeof A=="object")for(k=0;I=A[k];++k)(I===x||I.__eeOnceListener__===x)&&(A.length===2?E[b]=A[k?0:1]:A.splice(k,1));else(A===x||A.__eeOnceListener__===x)&&delete E[b];return this},v=function(b){var x,E,A,I,k;if(d.call(this,"__ee__")&&(I=this.__ee__[b],!!I))if(typeof I=="object"){for(E=arguments.length,k=new Array(E-1),x=1;x=55296&&E<=56319&&(O+=p[++S])),O=g?d.call(g,v,O,_):O,y?(f.value=O,h(b,_,f)):b[_]=O,++_;x=_}}if(x===void 0)for(x=r(p.length),y&&(b=new y(x)),S=0;S=6&&(n-=6),Ct(n<1?255*((t-e)*n+e):n<3?255*t:n<4?255*((t-e)*(4-n)+e):255*e)},Bi=function(e,t,n){t/=100;var r=(n/=100)<=.5?n*(t+1):n+t-n*t,i=2*n-r;return{r:WB(i,r,(e/=60)+2),g:WB(i,r,e),b:WB(i,r,e-2)}},Aj=function(e,t,n,r){return{r:Ct(255*(1-e)*(r=1-r)),g:Ct(255*(1-t)*r),b:Ct(255*(1-n)*r)}},zne=function(e,t,n){e/=255,t/=255,n/=255;var r=1-Math.max(e,t,n),i=1-r,o=i&&(i-t)/i,s=i&&(i-n)/i;return{c:Ct(100*(i&&(i-e)/i)),m:Ct(100*o),y:Ct(100*s),k:Ct(100*r)}},$g=function(e,t,n,r){r===void 0&&(r=1),e/=255,t/=255,n/=255,r=Math.min(r,1);var i=Math.max(e,t,n),o=Math.min(e,t,n),s=i-o,l=0,c=0,d=(i+o)/2;if(s!==0){switch(i){case e:l=(t-n)/s%6;break;case t:l=(n-e)/s+2;break;case n:l=(e-t)/s+4}(l=Ct(60*l))<0&&(l+=360),c=s/(1-Math.abs(2*d-1))}return{h:l,s:Ct(100*c),l:Ct(100*d),a:r}},sV=function(e,t){if(e<0&&(e+=360),e>360&&(e-=360),e===360||e===0)return e;var n=[[0,120],[120,180],[180,240],[240,360]],r=[[0,60],[60,120],[120,240],[240,360]],i=t?r:n,o=0,s=0,l=0,c=0;return(t?n:r).find(function(d,f){return e>=d[0]&&e360||e<0)&&(e-=360*Math.floor(e/360)),e},So=function(e){return typeof e=="string"&&(e=lv.test(e)?qk(e)/100:+e),isNaN(+e)||e>1?1:Ct(e)},cv=function(e,t,n){return t.reduce(function(r,i){return V3(V3([],r,!0),[sn(sn({},e),{h:n===Lo.ADDITIVE?S1(e.h+i):S1(sV(sV(e.h,!1)+i,!0))})],!1)},[sn({},e)])},pHe=function(e,t){return cv(e,[30,-30],t)},mHe=function(e,t){return cv(e,[180],t)},gHe=function(e,t){return cv(e,[150,-150],t)},vHe=function(e,t){return cv(e,[120,-120],t)},yHe=function(e,t){return cv(e,[60,-120,180],t)},bHe=function(e,t){return cv(e,[90,-90,180],t)},qs=function(e){return typeof e=="string"?function(t){var n;if(Object.keys(qt).some(function(r){if(Wb[r].test(t))return n=r,!0}),!n&&~$ne.indexOf(t)&&(n=qt.HEX),!n)throw new Error(fHe);return n}(e):function(t){var n,r=!1,i=Fne(Object.keys(t));if(q3[i]&&(n=q3[i]),n&&n===qt.RGB){var o=Object.entries(t).some(function(l){return!X3.test("".concat(l[1]))}),s=Object.entries(t).some(function(l){return!(lv.test("".concat(l[1]))||!X3.test("".concat(l[1]))&&!isNaN(+l[1])&&+l[1]<=255)});o&&s&&(r=!0),o||(n=qt.HEX)}if(!n||r)throw new Error(hHe);return n}(e)},xHe=((_b={})[qt.HEX]=function(e){var t=(~$ne.indexOf(e)?EC[e]:e).match(Wb.HEX),n={r:Y_(t[1]||t[5]),g:Y_(t[2]||t[6]),b:Y_(t[3]||t[7])},r=t[4]||t[8];return r!==void 0&&(n.a=Y_(r)/255),n},_b[qt.RGB]=function(e){var t=e.match(Wb.RGB),n=Gh(t[1]||t[5]),r=Gh(t[2]||t[6]),i=Gh(t[3]||t[7]),o=t[4]||t[8],s={r:Math.min(n,255),g:Math.min(r,255),b:Math.min(i,255)};return o!==void 0&&(s.a=So(o)),s},_b[qt.HSL]=function(e){var t=e.match(Wb.HSL),n=S1(t[1]||t[5]),r=CC(t[2]||t[6]),i=CC(t[3]||t[7]),o=t[4]||t[8],s=Bi(n,r,i);return o!==void 0&&(s.a=So(o)),s},_b[qt.CMYK]=function(e){var t=e.match(Wb.CMYK),n=ud(t[1]||t[6]),r=ud(t[2]||t[7]),i=ud(t[3]||t[8]),o=ud(t[4]||t[9]),s=t[5]||t[10],l=Aj(n,r,i,o);return s!==void 0&&(l.a=So(s)),l},_b),wHe=((Sb={})[qt.HEX]=function(e){var t={r:Gh("".concat(e.r)),g:Gh("".concat(e.g)),b:Gh("".concat(e.b))};return Ji(e,"a")&&(t.a=Math.min(Gh("".concat(e.a),!0),1)),t},Sb[qt.RGB]=function(e){return this.HEX(e)},Sb[qt.HSL]=function(e){var t=CC("".concat(e.s)),n=CC("".concat(e.l)),r=Bi(S1(e.h),t,n);return Ji(e,"a")&&(r.a=So(e.a)),r},Sb[qt.CMYK]=function(e){var t=ud("".concat(e.c)),n=ud("".concat(e.m)),r=ud("".concat(e.y)),i=ud("".concat(e.k)),o=Aj(t,n,r,i);return Ji(e,"a")&&(o.a=So(e.a)),o},Sb),_p=function(e,t){return t===void 0&&(t=qs(e)),typeof e=="string"?xHe[t](e):wHe[t](e)},rn=((Qc={})[qt.HEX]=function(e){return{r:K_(e.r),g:K_(e.g),b:K_(e.b)}},Qc.HEXA=function(e){var t=rn.HEX(e);return t.a=Ji(e,"a")?K_(255*e.a):"0xFF",t},Qc[qt.RGB]=function(e,t){return Ji(e,"a")&&delete e.a,np(e,t)},Qc.RGBA=function(e,t){return e.a=Ji(e,"a")?Ct(e.a):1,np(e,t)},Qc[qt.HSL]=function(e,t){var n=$g(e.r,e.g,e.b);return delete n.a,Fm(n,t)},Qc.HSLA=function(e,t){var n=rn.HSL(e,t);return n.a=Ji(e,"a")?Ct(e.a,t):1,n},Qc[qt.CMYK]=function(e,t){return _He(zne(e.r,e.g,e.b),t)},Qc.CMYKA=function(e,t){var n=rn.CMYK(e,t);return n.a=Ji(e,"a")?Ct(e.a,t):1,n},Qc),aV=function(e,t,n,r){var i=qs(e),o=typeof e=="string",s=_p(e,i),l=typeof e=="string"&&Ji(s,"a")||typeof e!="string"&&Ji(e,"a"),c=$g(s.r,s.g,s.b,s.a);l||delete c.a;var d=n?c.l/(t+1):(100-c.l)/(t+1),f=Array(t).fill(null).map(function(h,p){return sn(sn({},c),{l:c.l+d*(p+1)*(1-2*+n)})});switch(i){case qt.HEX:default:return f.map(function(h){var p=Bi(h.h,h.s,h.l);return l&&(p.a=h.a),o?l?tn.HEX(np(sn(sn({},p),{a:Ct(255*p.a)}),r)):tn.HEX(np(p,r)):l?rn.HEXA(p):rn.HEX(p)});case qt.RGB:return f.map(function(h){var p=Bi(h.h,h.s,h.l);return l&&(p.a=h.a),o?tn.RGB(np(p,r)):l?rn.RGBA(p,r):rn.RGB(p,r)});case qt.HSL:return f.map(function(h){return o?tn.HSL(Fm(h,r)):l?rn.HSLA(sn(sn({},Bi(h.h,h.s,h.l)),{a:h.a}),r):rn.HSL(Bi(h.h,h.s,h.l),r)})}},em=((xh={buildHarmony:function(e,t,n,r){var i=qs(e),o=_p(e,i),s=$g(o.r,o.g,o.b,o.a),l=typeof e=="string"&&Ji(o,"a")||typeof e!="string"&&Ji(e,"a"),c=typeof e=="string";switch(i){case qt.HEX:default:return l?this.HEXA(Fm(s,0),t,n,c):this.HEX(Fm(s,0),t,n,c);case qt.HSL:return l?this.HSLA(s,t,n,c,r):this.HSL(s,t,n,c,r);case qt.RGB:return l?this.RGBA(s,t,n,c,r):this.RGB(s,t,n,c,r)}}})[qt.HEX]=function(e,t,n,r){return t(e,n).map(function(i){return r?tn.HEX(Bi(i.h,i.s,i.l)):rn.HEX(Bi(i.h,i.s,i.l))})},xh.HEXA=function(e,t,n,r){return t(e,n).map(function(i){return r?tn.HEX(sn(sn({},Bi(i.h,i.s,i.l)),{a:255*So(i.a)})):rn.HEXA(sn(sn({},Bi(i.h,i.s,i.l)),{a:So(i.a)}))})},xh[qt.RGB]=function(e,t,n,r,i){return t(e,n).map(function(o){return r?tn.RGB(np(Bi(o.h,o.s,o.l),i)):rn.RGB(Bi(o.h,o.s,o.l),i)})},xh.RGBA=function(e,t,n,r,i){return t(e,n).map(function(o){return r?tn.RGB(np(sn(sn({},Bi(o.h,o.s,o.l)),{a:So(o.a)}),i)):rn.RGBA(sn(sn({},Bi(o.h,o.s,o.l)),{a:So(o.a)}),i)})},xh[qt.HSL]=function(e,t,n,r,i){return t(e,n).map(function(o){return r?tn.HSL(Fm({h:o.h,s:o.s,l:o.l},i)):rn.HSL(Bi(o.h,o.s,o.l),i)})},xh.HSLA=function(e,t,n,r,i){return t(e,n).map(function(o){return r?tn.HSL(Fm(sn(sn({},o),{a:So(o.a)}),i)):rn.HSLA(sn(sn({},Bi(o.h,o.s,o.l)),{a:So(o.a)}),i)})},xh),tm=((wh={mix:function(e,t){var n,r,i,o,s,l,c,d,f,h,p,g,v,y,S,_=e.map(function(A){var I=qs(A);return _p(A,I)}),b=t===Lo.SUBTRACTIVE?_.map(function(A){var I,k,O,L,N,H,W,z,D,F,j,V,G,K,Y=(I=A.r,k=A.g,O=A.b,L=Math.min(I,k,O),N=Math.min(255-I,255-k,255-O),H=I-L,W=k-L,z=O-L,D=Math.min(H,W),F=H-D,j=(W+D)/2,V=(z+W-D)/2,G=Math.max(F,j,V)/Math.max(H,W,z),K=isNaN(G)||G===1/0||G<=0?1:G,{r:F/K+N,y:j/K+N,b:V/K+N});return Ji(A,"a")&&(Y.a=A.a),Y}):null;function x(A){var I=t===Lo.ADDITIVE?{r:0,g:0,b:0,a:0}:{r:0,y:0,b:0,a:0};return A.reduce(function(k,O){var L=Ji(O,"a")?O.a:1,N={r:Math.min(k.r+O.r*L,255),b:Math.min(k.b+O.b*L,255),a:1-(1-L)*(1-k.a)},H="g"in k?k.g:k.y,W="g"in O?O.g:O.y;return sn(sn({},N),t===Lo.ADDITIVE?{g:Math.min(H+W*L,255)}:{y:Math.min(H+W*L,255)})},I)}if(t===Lo.ADDITIVE)n=x(_);else{var E=x(b);r=E.r,i=E.y,o=E.b,s=Math.min(r,i,o),l=Math.min(255-r,255-i,255-o),c=r-s,d=i-s,f=o-s,h=Math.min(d,f),p=c+d-h,g=d+h,v=2*(f-h),y=Math.max(p,g,v)/Math.max(c,d,f),S=isNaN(y)||y===1/0||y<=0?1:y,(n={r:p/S+l,g:g/S+l,b:v/S+l}).a=E.a}return{r:Ct(n.r),g:Ct(n.g),b:Ct(n.b),a:ja(n.a,0,1)}}})[qt.HEX]=function(e,t,n){var r=this.mix(e,t);return delete r.a,n?tn.HEX(r):rn.HEX(r)},wh.HEXA=function(e,t,n){var r=this.mix(e,t);return r.a=n?255*So(r.a):So(r.a),n?tn.HEX(r):rn.HEXA(r)},wh[qt.RGB]=function(e,t,n,r){var i=this.mix(e,t);return delete i.a,n?tn.RGB(i):rn.RGB(i,r)},wh.RGBA=function(e,t,n,r){var i=this.mix(e,t);return n?tn.RGB(i):rn.RGBA(i,r)},wh[qt.HSL]=function(e,t,n,r){var i=this.mix(e,t),o=$g(i.r,i.g,i.b);return delete i.a,delete o.a,n?tn.HSL(o):rn.HSL(i,r)},wh.HSLA=function(e,t,n,r){var i=this.mix(e,t),o=$g(i.r,i.g,i.b,i.a);return n?tn.HSL(o):rn.HSLA(i,r)},wh),np=function(e,t){return sn({r:Ct(e.r,t),g:Ct(e.g,t),b:Ct(e.b,t)},Ji(e,"a")?{a:Ct(e.a,t)}:{})},Fm=function(e,t){return sn({h:Ct(e.h,t),s:Ct(e.s,t),l:Ct(e.l,t)},Ji(e,"a")?{a:Ct(e.a,t)}:{})},_He=function(e,t){return{c:Ct(e.c,t),m:Ct(e.m,t),y:Ct(e.y,t),k:Ct(e.k,t)}},Fu=function(e,t,n,r,i,o){var s=i(_p(e,t),r);return n?o(s):s},nm=function(e,t,n,r,i,o,s){n<1&&(n=5);var l=function(c,d,f){var h=f-1,p=(d.r-c.r)/h,g=(d.g-c.g)/h,v=(d.b-c.b)/h,y=So(c.a),S=(So(d.a)-y)/h;return Array(f).fill(null).map(function(_,b){return b===0?c:b===h?d:{r:Ct(c.r+p*b),g:Ct(c.g+g*b),b:Ct(c.b+v*b),a:Ct(y+S*b)}})}(_p(e),_p(t),n);return l.map(function(c){var d=o(c,i);return r?s(d):d})},SHe=function(){function e(t,n){n===void 0&&(n=6),this.rgb=_p(t),this._decimals=n,this.updateHSL(),this.updateCMYK()}return e.prototype.updateRGB=function(){this.rgb=sn(sn({},Bi(this.hsl.h,this.hsl.s,this.hsl.l)),{a:this.hsl.a})},e.prototype.updateRGBFromCMYK=function(){this.rgb=sn(sn({},Aj(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k)),{a:this.rgb.a})},e.prototype.updateHSL=function(){this.hsl=$g(this.rgb.r,this.rgb.g,this.rgb.b,this.rgb.a)},e.prototype.updateCMYK=function(){this.cmyk=zne(this.rgb.r,this.rgb.g,this.rgb.b)},e.prototype.updateRGBAndCMYK=function(){return this.updateRGB(),this.updateCMYK(),this},e.prototype.updateHSLAndCMYK=function(){return this.updateHSL(),this.updateCMYK(),this},e.prototype.updateRGBAndHSL=function(){return this.updateRGBFromCMYK(),this.updateHSL(),this},e.prototype.setDecimals=function(t){return this._decimals=t,this},e.prototype.setH=function(t){return this.hsl.h=S1(t),this.updateRGBAndCMYK()},e.prototype.setS=function(t){return this.hsl.s=ja(t,0,100),this.updateRGBAndCMYK()},e.prototype.setL=function(t){return this.hsl.l=ja(t,0,100),this.updateRGBAndCMYK()},e.prototype.setR=function(t){return this.rgb.r=ja(t,0,255),this.updateHSLAndCMYK()},e.prototype.setG=function(t){return this.rgb.g=ja(t,0,255),this.updateHSLAndCMYK()},e.prototype.setB=function(t){return this.rgb.b=ja(t,0,255),this.updateHSLAndCMYK()},e.prototype.setA=function(t){return this.hsl.a=this.rgb.a=ja(t,0,1),this},e.prototype.setC=function(t){return this.cmyk.c=ja(t,0,100),this.updateRGBAndHSL()},e.prototype.setM=function(t){return this.cmyk.m=ja(t,0,100),this.updateRGBAndHSL()},e.prototype.setY=function(t){return this.cmyk.y=ja(t,0,100),this.updateRGBAndHSL()},e.prototype.setK=function(t){return this.cmyk.k=ja(t,0,100),this.updateRGBAndHSL()},Object.defineProperty(e.prototype,"decimals",{get:function(){return this._decimals},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"H",{get:function(){return Ct(this.hsl.h,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"S",{get:function(){return Ct(this.hsl.s,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"L",{get:function(){return Ct(this.hsl.l,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"R",{get:function(){return Ct(this.rgb.r,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"G",{get:function(){return Ct(this.rgb.g,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"B",{get:function(){return Ct(this.rgb.b,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"A",{get:function(){return Ct(this.hsl.a,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"C",{get:function(){return Ct(this.cmyk.c,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"M",{get:function(){return Ct(this.cmyk.m,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Y",{get:function(){return Ct(this.cmyk.y,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"K",{get:function(){return Ct(this.cmyk.k,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXObject",{get:function(){return rn.HEX(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXAObject",{get:function(){return rn.HEXA(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBObject",{get:function(){return{r:this.R,g:this.G,b:this.B}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBAObject",{get:function(){return sn(sn({},this.RGBObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLObject",{get:function(){return{h:this.H,s:this.S,l:this.L}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLAObject",{get:function(){return sn(sn({},this.HSLObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKObject",{get:function(){return{c:this.C,m:this.M,y:this.Y,k:this.K}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKAObject",{get:function(){return sn(sn({},this.CMYKObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEX",{get:function(){return tn.HEX({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXA",{get:function(){return tn.HEX({r:this.R,g:this.G,b:this.B,a:255*this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGB",{get:function(){return tn.RGB({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBA",{get:function(){return tn.RGB({r:this.R,g:this.G,b:this.B,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSL",{get:function(){return tn.HSL({h:this.H,s:this.S,l:this.L})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLA",{get:function(){return tn.HSL({h:this.H,s:this.S,l:this.L,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYK",{get:function(){return tn.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKA",{get:function(){return tn.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K,a:this.A})},enumerable:!1,configurable:!0}),e.toHEX=function(t,n){n===void 0&&(n=!0);var r=qs(t);return Fu(t,r,n,0,rn.HEX,tn.HEX)},e.toHEXA=function(t,n){n===void 0&&(n=!0);var r=qs(t);return Fu(t,r,n,0,rn.HEXA,tn.HEX)},e.toRGB=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=qs(t);return Fu(t,i,n,r,rn.RGB,tn.RGB)},e.toRGBA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=qs(t);return Fu(t,i,n,r,rn.RGBA,tn.RGB)},e.toHSL=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=qs(t);return Fu(t,i,n,r,rn.HSL,tn.HSL)},e.toHSLA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=qs(t);return Fu(t,i,n,r,rn.HSLA,tn.HSL)},e.toCMYK=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=qs(t);return Fu(t,i,n,r,rn.CMYK,tn.CMYK)},e.toCMYKA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=qs(t);return Fu(t,i,n,r,rn.CMYKA,tn.CMYK)},e.getBlendHEX=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),nm(t,n,r,i,o,rn.HEX,tn.HEX)},e.getBlendHEXA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),nm(t,n,r,i,o,rn.HEXA,tn.HEX)},e.getBlendRGB=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),nm(t,n,r,i,o,rn.RGB,tn.RGB)},e.getBlendRGBA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),nm(t,n,r,i,o,rn.RGBA,tn.RGB)},e.getBlendHSL=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),nm(t,n,r,i,o,rn.HSL,tn.HSL)},e.getBlendHSLA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),nm(t,n,r,i,o,rn.HSLA,tn.HSL)},e.getMixHEX=function(t,n,r){return n===void 0&&(n=Lo.ADDITIVE),r===void 0&&(r=!0),tm.HEX(t,n,r)},e.getMixHEXA=function(t,n,r){return n===void 0&&(n=Lo.ADDITIVE),r===void 0&&(r=!0),tm.HEXA(t,n,r)},e.getMixRGB=function(t,n,r,i){return n===void 0&&(n=Lo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),tm.RGB(t,n,r,i)},e.getMixRGBA=function(t,n,r,i){return n===void 0&&(n=Lo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),tm.RGBA(t,n,r,i)},e.getMixHSL=function(t,n,r,i){return n===void 0&&(n=Lo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),tm.HSL(t,n,r,i)},e.getMixHSLA=function(t,n,r,i){return n===void 0&&(n=Lo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),tm.HSLA(t,n,r,i)},e.getShades=function(t,n,r){return r===void 0&&(r=6),aV(t,n,!0,r)},e.getTints=function(t,n,r){return r===void 0&&(r=6),aV(t,n,!1,r)},e.getHarmony=function(t,n,r,i){return n===void 0&&(n=eu.COMPLEMENTARY),r===void 0&&(r=Lo.ADDITIVE),i===void 0&&(i=6),function(o,s,l,c){var d;return(d={},d[eu.ANALOGOUS]=em.buildHarmony(s,pHe,c,l),d[eu.COMPLEMENTARY]=em.buildHarmony(s,mHe,c,l),d[eu.SPLIT_COMPLEMENTARY]=em.buildHarmony(s,gHe,c,l),d[eu.TRIADIC]=em.buildHarmony(s,vHe,c,l),d[eu.TETRADIC]=em.buildHarmony(s,yHe,c,l),d[eu.SQUARE]=em.buildHarmony(s,bHe,c,l),d)[o]}(n,t,i,r)},e}();const EHe={current:void 0,parent:void 0,events:void 0,color:{source:2533018,destination:15753874,expanding:16733986,updating:16733986,generating:16771899,closing:11583173,end:15483002},scale:10,fill:"#000000",alpha:1},{ceil:ji,PI:CHe}=Math,vw=(e,t)=>new SHe(e).setA(t??EHe.alpha).RGBA,THe=(e,t)=>vw(e,t);function Bd(e,t){return{width:e.width*t.scale.x,height:e.height*t.scale.y,x:e.x*t.scale.x+t.x,y:e.y*t.scale.y+t.y}}const kHe={draw(e,t,n){if(e.text){const r=Bd(e,{x:e.textX,y:e.textY,scale:{x:1,y:1}}),i=Bd(r,n);t.font=`${e.fontSize*n.scale.x}px Arial`,t.fillStyle=vw(e.fontColor,e.alpha),t.fillText(e.text,i.x,i.y)}},test(e){return{left:-1/0,right:1/0,top:-1/0,bottom:1/0}}},AHe={draw(e,t,n){const{x:r,y:i,width:o,height:s}=Bd(e,n);t.fillStyle=vw(e.fill,e.alpha),t.fillRect(ji(r),ji(i),ji(o)||1,ji(s)||1)},test(e){return{left:e.x,right:e.x+e.width,top:e.y,bottom:e.y+e.height}}},IHe={draw(e,t,n){t.fillStyle=vw(e.fill,e.alpha),t.beginPath();const r=Bd({...e,width:e.radius,height:e.radius},n);t.ellipse(ji(r.x),ji(r.y),ji(r.width),ji(r.height),0,0,2*CHe),t.fill()},test(e){return{left:e.x-e.radius,right:e.x+e.radius,top:e.y-e.radius,bottom:e.y+e.radius}}},RHe={draw(e,t,n){const[r,...i]=e.points;t.beginPath(),t.fillStyle=vw(e.fill,e.alpha);const{x:o,y:s}=Bd({...r,width:0,height:0},n);t.moveTo(ji(o),ji(s));for(const l of i){const{x:c,y:d}=Bd({...l,width:0,height:0},n);t.lineTo(ji(c),ji(d))}t.closePath(),t.fill()},test(e){var t,n,r,i;return{left:((t=Gt.minBy(e.points,"x"))==null?void 0:t.x)??0,right:((n=Gt.maxBy(e.points,"x"))==null?void 0:n.x)??0,top:((r=Gt.minBy(e.points,"y"))==null?void 0:r.y)??0,bottom:((i=Gt.maxBy(e.points,"y"))==null?void 0:i.y)??0}}},PHe={draw(e,t,n){const[r,...i]=e.points;t.beginPath(),t.lineCap="round",t.lineJoin="round",t.strokeStyle=THe(e.fill,e.alpha);const{x:o,y:s,width:l}=Bd({...r,width:e.lineWidth,height:0},n);t.lineWidth=ji(l),t.moveTo(ji(o),ji(s));for(const c of i){const{x:d,y:f}=Bd({...c,width:0,height:0},n);t.lineTo(ji(d),ji(f))}t.stroke()},test(e){var t,n,r,i;return{left:((t=Gt.minBy(e.points,"x"))==null?void 0:t.x)??0-e.lineWidth??0,right:((n=Gt.maxBy(e.points,"x"))==null?void 0:n.x)??0+e.lineWidth??0,top:((r=Gt.minBy(e.points,"y"))==null?void 0:r.y)??0-e.lineWidth??0,bottom:((i=Gt.maxBy(e.points,"y"))==null?void 0:i.y)??0+e.lineWidth??0}}},OHe={text:kHe,path:PHe,rect:AHe,polygon:RHe,circle:IHe},{log2:MHe,max:DHe}=Math,lV=e=>Gt.floor(MHe(e+1));function cV({right:e,left:t,bottom:n,top:r},i){const o=DHe(lV(e-t),lV(n-r))-i,s=2**o,l={left:Gt.floor(t/s),right:Gt.ceil((e+1)/s),top:Gt.floor(r/s),bottom:Gt.ceil((n+1)/s)};return{zoom:o,order:s,tiles:Gt.shuffle(e8e({x:Gt.range(l.left,l.right+1),y:Gt.range(l.top,l.bottom+1)}).map(c=>{const d=c.x*s,f=c.y*s;return{tile:c,bounds:{left:d-s/2,right:d+s/2,top:f-s/2,bottom:f+s/2}}}))}}const LHe=""+new URL("D2Renderer.worker-835e2af9.js",import.meta.url).href;class NHe extends Worker{constructor(){super(LHe,{type:"module"})}call(t,n,r=[]){return this.postMessage({action:t,payload:n},r)}on(t,n){const r=i=>{const{action:o,payload:s}=i.data;o===t&&n(s)};return this.addEventListener("message",r),()=>this.removeEventListener("message",r)}}function BHe(e,t){return!(t.left>=e.right||t.right<=e.left||t.top>=e.bottom||t.bottom<=e.top)}const{max:uV,min:dV}=Math,jne=class Une extends Fp{constructor(t,n){super(t),this.bounds=n,this.destroying=!1,this.age=Une.age++}};jne.age=0;let $He=jne;function Z_(e,t){return Gt.isNaN(e)?t:e}var gs,Nr,ed,iu,pi,Cl,td,nd,PC,OC,Hne,MC,Wne,og,I1,DC,LC,Gne,NC,Vne,BC,qne,$C,Xne,R1,Y3,P1,K3,FC,Yne,O1,Q3,zC,Kne,jC,Qne,UC,Jne;class FHe extends lHe{constructor(){super(...arguments);Zn(this,OC);Zn(this,MC);Zn(this,LC);Zn(this,NC);Zn(this,BC);Zn(this,$C);Zn(this,R1);Zn(this,P1);Zn(this,FC);Zn(this,O1);Zn(this,zC);Zn(this,jC);Zn(this,UC);Zn(this,gs,void 0);Zn(this,Nr,void 0);Zn(this,ed,void 0);Zn(this,iu,void 0);Zn(this,pi,L7);Zn(this,Cl,[]);Zn(this,td,new JUe(16));Zn(this,nd,void 0);Zn(this,PC,0);Zn(this,og,Gt.once(()=>Gt.debounce(()=>Mi(this,R1,Y3).call(this),Ze(this,pi).debounceInterval)));Zn(this,I1,Gt.once(()=>Gt.throttle(()=>Mi(this,P1,K3).call(this),Ze(this,pi).refreshInterval)));Zn(this,DC,Gt.once(()=>Gt.throttle(n=>Mi(this,FC,Yne).call(this,n),Ze(this,pi).refreshInterval)))}getInstance(){return{app:Ze(this,gs),viewport:Ze(this,Nr)}}fitCamera(){var r,i,o,s;const n=Gt.values(Ze(this,td).all()).flat();if(n.length){const l=Gt.reduce(n,(c,d)=>({top:Z_(dV(c.top,d.top),c.top),left:Z_(dV(c.left,d.left),c.left),bottom:Z_(uV(c.bottom,d.bottom),c.bottom),right:Z_(uV(c.right,d.right),c.right)}),{bottom:-1/0,top:1/0,left:1/0,right:-1/0});(s=(r=Ze(this,Nr))==null?void 0:r.animate)==null||s.call(r,{position:new Ot((l.left+l.right)/2,(l.top+l.bottom)/2),scale:((o=(i=Ze(this,Nr))==null?void 0:i.findFit)==null?void 0:o.call(i,l.right-l.left,l.bottom-l.top))*.8,ease:"easeOutExpo",time:Ze(this,pi).animationDuration*1.5,callbackOnComplete:()=>Ze(this,og).call(this)()})}}initialCamera(){var n,r;(r=(n=Ze(this,Nr))==null?void 0:n.animate)==null||r.call(n,{scale:1,ease:"easeOutExpo",time:Ze(this,pi).animationDuration*1.5,callbackOnComplete:()=>Ze(this,og).call(this)()})}getView(){var n;return(n=Ze(this,gs))==null?void 0:n.view}setup(n){const r={...L7,...n};Mi(this,MC,Wne).call(this,r),this.setOptions(r),Mi(this,NC,Vne).call(this,r)}destroy(){Gt.map(Ze(this,Cl),n=>n.terminate()),Ze(this,gs).destroy()}add(n){const r=_Fe(),i=Gt.map(n,({component:o,meta:s})=>({...OHe[o.$].test(o),component:o,meta:s,index:Mi(this,OC,Hne).call(this)}));return Ze(this,td).load(i),Gt.map(Ze(this,Cl),o=>o.call("add",[Gt.map(n,"component"),r])),()=>Gt.defer(()=>{for(const o of i)Ze(this,td).remove(o);Gt.map(Ze(this,Cl),o=>o.call("remove",[r]))})}setOptions(n){const r={...Ze(this,pi),...n};Mi(this,BC,qne).call(this,r),Vc(this,pi,r),Mi(this,R1,Y3).call(this),Mi(this,P1,K3).call(this)}}gs=new WeakMap,Nr=new WeakMap,ed=new WeakMap,iu=new WeakMap,pi=new WeakMap,Cl=new WeakMap,td=new WeakMap,nd=new WeakMap,PC=new WeakMap,OC=new WeakSet,Hne=function(){return Qj(this,PC)._++},MC=new WeakSet,Wne=function(n){Vc(this,gs,new Sj({backgroundAlpha:0,width:n.screenSize.width,height:n.screenSize.height,autoDensity:!0,resolution:2})),Vc(this,Nr,new pje({stopPropagation:!0,screenWidth:n.screenSize.width,screenHeight:n.screenSize.height,events:Ze(this,gs).renderer.events,passiveWheel:!1})),Ze(this,Nr).on("clicked",r=>{const{x:i,y:o}=r.world,s=Ze(this,td).search({minX:i,minY:o,maxX:i+Number.MIN_VALUE,maxY:o+Number.MIN_VALUE});this.emit("click",r.event,{world:r.world,components:s})}),Ze(this,gs).stage.addChild(Ze(this,Nr)),Ze(this,Nr).drag().pinch().wheel().decelerate({friction:.98}).clampZoom({maxScale:300,minScale:1e-5}),Ze(this,Nr).on("moved",()=>{Ze(this,og).call(this)(),Ze(this,I1).call(this)()}),Ze(this,Nr).on("mousemove",r=>Ze(this,DC).call(this)(r)),Vc(this,ed,new qo),Ze(this,Nr).addChild(Ze(this,ed)),Vc(this,iu,new Bg),Ze(this,Nr).addChild(Ze(this,iu)),Vc(this,nd,new Bg),Ze(this,Nr).addChild(Ze(this,nd)),Mi(this,LC,Gne).call(this)},og=new WeakMap,I1=new WeakMap,DC=new WeakMap,LC=new WeakSet,Gne=function(){const{dynamicResolution:n}=Ze(this,pi),{dtMax:r,dtMin:i,increment:o,intervalMs:s,maxScale:l,minScale:c}=n,d=Gt.floor(Xr.targetFPMS*s);let f=0,h=0,p=1;Ze(this,gs).ticker.add(g=>{const{tileResolution:v}=Ze(this,pi);if(!(f%d)){const y=h/d;p=Gt.clamp(y>=r?p+o:y<=i?p-o:p,c,l),Gt.map(Ze(this,Cl),S=>{S.call("setTileResolution",[{width:Gt.ceil(v.width/p),height:Gt.ceil(v.height/p)}])}),h=0}h+=g,f++})},NC=new WeakSet,Vne=function(n){Gt.map(Ze(this,Cl),r=>r.terminate()),Vc(this,Cl,Gt.times(n.workerCount,r=>{const i=new NHe;return i.on("update",o=>Mi(this,$C,Xne).call(this,o)),i.onerror=o=>{throw o},i.call("setup",[{...n,workerIndex:r}]),i}))},BC=new WeakSet,qne=function(n){var o,s,l,c;const{width:r,height:i}=n.screenSize;(l=(s=(o=Ze(this,gs))==null?void 0:o.renderer)==null?void 0:s.resize)==null||l.call(s,r,i),(c=Ze(this,Nr))==null||c.resize(r,i)},$C=new WeakSet,Xne=function({bounds:n,bitmap:r}){const i=ht.from(r);Mi(this,zC,Kne).call(this,i,n)},R1=new WeakSet,Y3=function(){const{top:n,bottom:r,left:i,right:o}=Ze(this,Nr);Gt.map(Ze(this,Cl),s=>s.call("setFrustum",[{top:n,bottom:r,left:i,right:o}]))},P1=new WeakSet,K3=function(){var s,l,c,d,f;const{tileSubdivision:n,accentColor:r}=Ze(this,pi),{tiles:i}=cV(Ze(this,Nr),n),o=Mi(this,O1,Q3).call(this);(s=Ze(this,iu))==null||s.clear(),(l=Ze(this,iu))==null||l.lineStyle(1*o,r,.5),(c=Ze(this,iu))==null||c.beginFill(r,.05);for(const{bounds:h,tile:p}of i)Gt.find((d=Ze(this,ed))==null?void 0:d.children,g=>Gt.isEqual(g.bounds,h))||(f=Ze(this,iu))==null||f.drawRect(h.left,h.top,h.right-h.left,h.bottom-h.top)},FC=new WeakSet,Yne=function(n){var c;const{accentColor:r}=Ze(this,pi),i=Mi(this,O1,Q3).call(this),{x:o,y:s}=Ze(this,Nr).toWorld(n.globalX,n.globalY),l=Ze(this,td).search({minX:o,minY:s,maxX:o+Number.MIN_VALUE,maxY:s+Number.MIN_VALUE});Ze(this,nd).clear(),Ze(this,nd).lineStyle(2*i,r,1);for(const d of l)(c=Ze(this,nd))==null||c.drawRect(d.left,d.top,d.right-d.left,d.bottom-d.top)},O1=new WeakSet,Q3=function(){const{right:n,left:r}=Ze(this,Nr),{width:i}=Ze(this,pi).screenSize;return(n-r)/i},zC=new WeakSet,Kne=async function(n,r){var s,l;const{tileSubdivision:i}=Ze(this,pi),{tiles:o}=cV(Ze(this,Nr),i);if(Gt.find(o,c=>Gt.isEqual(c.bounds,r))){const c={x:(r.right-r.left)/n.width,y:(r.bottom-r.top)/n.height},d=new $He(n,r);(s=Ze(this,ed))==null||s.addChild(d).setTransform(r.left,r.top,c.x,c.y),Ze(this,I1).call(this)(),await Mi(this,jC,Qne).call(this,d),Gt.forEach((l=Ze(this,ed))==null?void 0:l.children,async f=>{BHe(f.bounds,r)&&f.age{const o=s=>{n.alpha+=s/Xr.targetFPMS/Ze(this,pi).animationDuration,n.alpha>1&&(r.remove(o),i())};n.alpha=0,r.add(o)})},UC=new WeakSet,Jne=function(n){const r=Ze(this,gs).ticker;return new Promise(i=>{const o=s=>{n.alpha-=s/Xr.targetFPMS/Ze(this,pi).animationDuration,n.alpha<0&&(r.remove(o),i())};n.alpha=1,r.add(o)})};const zHe=HUe(FHe,{components:["rect","circle","path","polygon"],id:"d2-renderer",name:"Pixi",description:"Provides 2D Visualisation Support",version:"1.0.0"}),jHe={"d2-renderer":zHe};var UHe=function(t,n){if(n=n.split(":")[0],t=+t,!t)return!1;switch(n){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0},Ij={},HHe=Object.prototype.hasOwnProperty,WHe;function fV(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function hV(e){try{return encodeURIComponent(e)}catch{return null}}function GHe(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},r;r=t.exec(e);){var i=fV(r[1]),o=fV(r[2]);i===null||o===null||i in n||(n[i]=o)}return n}function VHe(e,t){t=t||"";var n=[],r,i;typeof t!="string"&&(t="?");for(i in e)if(HHe.call(e,i)){if(r=e[i],!r&&(r===null||r===WHe||isNaN(r))&&(r=""),i=hV(i),r=hV(r),i===null||r===null)continue;n.push(i+"="+r)}return n.length?t+n.join("&"):""}Ij.stringify=VHe;Ij.parse=GHe;var Zne=UHe,Xk=Ij,qHe=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,ere=/[\n\r\t]/g,XHe=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,tre=/:\d+$/,YHe=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,KHe=/^[a-zA-Z]:/;function Rj(e){return(e||"").toString().replace(qHe,"")}var J3=[["#","hash"],["?","query"],function(t,n){return Wl(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],pV={hash:1,query:1};function nre(e){var t;typeof window<"u"?t=window:typeof Nt<"u"?t=Nt:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var r={},i=typeof e,o;if(e.protocol==="blob:")r=new Yl(unescape(e.pathname),{});else if(i==="string"){r=new Yl(e,{});for(o in pV)delete r[o]}else if(i==="object"){for(o in e)o in pV||(r[o]=e[o]);r.slashes===void 0&&(r.slashes=XHe.test(e.href))}return r}function Wl(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function rre(e,t){e=Rj(e),e=e.replace(ere,""),t=t||{};var n=YHe.exec(e),r=n[1]?n[1].toLowerCase():"",i=!!n[2],o=!!n[3],s=0,l;return i?o?(l=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(l=n[2]+n[4],s=n[2].length):o?(l=n[3]+n[4],s=n[3].length):l=n[4],r==="file:"?s>=2&&(l=l.slice(2)):Wl(r)?l=n[4]:r?i&&(l=l.slice(2)):s>=2&&Wl(t.protocol)&&(l=n[4]),{protocol:r,slashes:i||Wl(r),slashesCount:s,rest:l}}function QHe(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,i=n[r-1],o=!1,s=0;r--;)n[r]==="."?n.splice(r,1):n[r]===".."?(n.splice(r,1),s++):s&&(r===0&&(o=!0),n.splice(r,1),s--);return o&&n.unshift(""),(i==="."||i==="..")&&n.push(""),n.join("/")}function Yl(e,t,n){if(e=Rj(e),e=e.replace(ere,""),!(this instanceof Yl))return new Yl(e,t,n);var r,i,o,s,l,c,d=J3.slice(),f=typeof t,h=this,p=0;for(f!=="object"&&f!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=Xk.parse),t=nre(t),i=rre(e||"",t),r=!i.protocol&&!i.slashes,h.slashes=i.slashes||r&&t.slashes,h.protocol=i.protocol||t.protocol||"",e=i.rest,(i.protocol==="file:"&&(i.slashesCount!==2||KHe.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!Wl(h.protocol)))&&(d[3]=[/(.*)/,"pathname"]);p{const n=[];for(const{transport:r,url:i,key:o,disabled:s}of e??[])if(!s){const l=new ore[r].constructor({url:i});n.push({key:o,url:i,renderer:await l.get()})}t(()=>n)},[e,t]),C.jsx(C.Fragment,{})}const rWe={connected:"success.light",connecting:"warning.light",error:"error.light",disabled:"text.disabled"};function iWe({value:e,onValueChange:t}){const[n]=Pk(),r=te.find(n,{key:e.key});function i(s){t==null||t(nk(e,s))}const o=e!=null&&e.disabled?"disabled":r?"connected":"error";return C.jsx(C.Fragment,{children:C.jsxs(bn,{alignItems:"center",py:.5,children:[C.jsx(Vee,{sx:{color:rWe[o]}}),C.jsx(Kr,{}),C.jsxs(dt,{flex:1,children:[C.jsx(zt,{children:r?`${r.renderer.meta.name} ${r.renderer.meta.version}`:te.startCase(o)}),C.jsx(zt,{variant:"body2",color:"text.secondary",children:r?C.jsxs(C.Fragment,{children:[C.jsx("span",{children:r.renderer.meta.description}),C.jsx("br",{}),C.jsxs("span",{children:["Contributes: ",te.join(r.renderer.meta.components,", ")]})]}):(e==null?void 0:e.url)||"No URL"})]}),C.jsx(Gd,{title:`${e.disabled?"Enable":"Disable"} Renderer`,children:C.jsx(dt,{children:C.jsx(_g,{checked:!e.disabled,onChange:(s,l)=>i({disabled:!l})})})}),C.jsx(Lz,{trigger:s=>C.jsx(Nm,{icon:C.jsx(tk,{}),label:"Edit Renderer",onClick:s}),appBar:{children:C.jsx(Dz,{children:"Edit Renderer"})},children:C.jsxs(dt,{p:2.5,children:[C.jsx(H1,{value:e.url,onChange:s=>i({url:s.target.value}),fullWidth:!0,variant:"filled",label:"URL",sx:{mb:2}}),C.jsx(cx,{placeholder:"Renderer Type",items:te.entries(ore).map(([s,{name:l}])=>({value:s,label:l})),fullWidth:!0,value:e.transport,onChange:s=>i({transport:s})})]})})]})})}var Pj={},Yk={},yw={};(function(e){var t=Nt&&Nt.__extends||function(){var g=function(v,y){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,_){S.__proto__=_}||function(S,_){for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(S[b]=_[b])},g(v,y)};return function(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");g(v,y);function S(){this.constructor=v}v.prototype=y===null?Object.create(y):(S.prototype=y.prototype,new S)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.createJSONRPCNotification=e.createJSONRPCRequest=e.createJSONRPCSuccessResponse=e.createJSONRPCErrorResponse=e.JSONRPCErrorCode=e.JSONRPCErrorException=e.isJSONRPCResponses=e.isJSONRPCResponse=e.isJSONRPCRequests=e.isJSONRPCRequest=e.isJSONRPCID=e.JSONRPC=void 0,e.JSONRPC="2.0";var n=function(g){return typeof g=="string"||typeof g=="number"||g===null};e.isJSONRPCID=n;var r=function(g){return g.jsonrpc===e.JSONRPC&&g.method!==void 0&&g.result===void 0&&g.error===void 0};e.isJSONRPCRequest=r;var i=function(g){return Array.isArray(g)&&g.every(e.isJSONRPCRequest)};e.isJSONRPCRequests=i;var o=function(g){return g.jsonrpc===e.JSONRPC&&g.id!==void 0&&(g.result!==void 0||g.error!==void 0)};e.isJSONRPCResponse=o;var s=function(g){return Array.isArray(g)&&g.every(e.isJSONRPCResponse)};e.isJSONRPCResponses=s;var l=function(g,v,y){var S={code:g,message:v};return y!=null&&(S.data=y),S},c=function(g){t(v,g);function v(y,S,_){var b=g.call(this,y)||this;return Object.setPrototypeOf(b,v.prototype),b.code=S,b.data=_,b}return v.prototype.toObject=function(){return l(this.code,this.message,this.data)},v}(Error);e.JSONRPCErrorException=c,function(g){g[g.ParseError=-32700]="ParseError",g[g.InvalidRequest=-32600]="InvalidRequest",g[g.MethodNotFound=-32601]="MethodNotFound",g[g.InvalidParams=-32602]="InvalidParams",g[g.InternalError=-32603]="InternalError"}(e.JSONRPCErrorCode||(e.JSONRPCErrorCode={}));var d=function(g,v,y,S){return{jsonrpc:e.JSONRPC,id:g,error:l(v,y,S)}};e.createJSONRPCErrorResponse=d;var f=function(g,v){return{jsonrpc:e.JSONRPC,id:g,result:v??null}};e.createJSONRPCSuccessResponse=f;var h=function(g,v,y){return{jsonrpc:e.JSONRPC,id:g,method:v,params:y}};e.createJSONRPCRequest=h;var p=function(g,v){return{jsonrpc:e.JSONRPC,method:g,params:v}};e.createJSONRPCNotification=p})(yw);var bw={};Object.defineProperty(bw,"__esModule",{value:!0});bw.DefaultErrorCode=void 0;bw.DefaultErrorCode=0;var mV=Nt&&Nt.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(f){try{d(r.next(f))}catch(h){s(h)}}function c(f){try{d(r.throw(f))}catch(h){s(h)}}function d(f){f.done?o(f.value):i(f.value).then(l,c)}d((r=r.apply(e,t||[])).next())})},gV=Nt&&Nt.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(d){return function(f){return c([d,f])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]{const r=({data:i})=>{i.id===n.id&&(this.rpc.receive(i),this.worker.removeEventListener("message",r))};this.worker.postMessage(n),this.worker.addEventListener("message",r)})}connect(){return this.worker.postMessage(this.options.url),new Promise(t=>{const n=()=>{t(),this.worker.removeEventListener("message",n)};this.worker.addEventListener("message",n)})}async disconnect(){this.worker.terminate()}async call(t,n){return await this.rpc.request(t,n)}}const wWe={trace:async(e,t)=>{switch(e){case"about":return{name:"Search Trace",description:"Provides JSON Search Trace Support",version:"1.0.2"};case"features/formats":return[{id:"grid",name:"Grid"},{id:"xy",name:"Network"},{id:"mesh",name:"Mesh"}];case"features/algorithms":return[{id:"identity",name:"Unknown",hidden:!0}];case"solve/pathfinding":{const{parameters:n}=t;try{return JSON.parse((n==null?void 0:n.content)??"")}catch{return{}}}}}};class _We{constructor(t){Hp(this,"handler");this.options=t;const{hostname:n}=ire(t.url);this.handler=wWe[n]}async connect(){}async disconnect(){}async call(t,n){return await this.handler(t,n)}}const Kl=Object.create(null);Kl.open="0";Kl.close="1";Kl.ping="2";Kl.pong="3";Kl.message="4";Kl.upgrade="5";Kl.noop="6";const GS=Object.create(null);Object.keys(Kl).forEach(e=>{GS[Kl[e]]=e});const Z3={type:"error",data:"parser error"},are=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",lre=typeof ArrayBuffer=="function",cre=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Oj=({type:e,data:t},n,r)=>are&&t instanceof Blob?n?r(t):xV(t,r):lre&&(t instanceof ArrayBuffer||cre(t))?n?r(t):xV(new Blob([t]),r):r(Kl[e]+(t||"")),xV=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function wV(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let VB;function SWe(e,t){if(are&&e.data instanceof Blob)return e.data.arrayBuffer().then(wV).then(t);if(lre&&(e.data instanceof ArrayBuffer||cre(e.data)))return t(wV(e.data));Oj(e,!1,n=>{VB||(VB=new TextEncoder),t(VB.encode(n))})}const _V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Gb=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<_V.length;e++)Gb[_V.charCodeAt(e)]=e;const EWe=e=>{let t=e.length*.75,n=e.length,r,i=0,o,s,l,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const d=new ArrayBuffer(t),f=new Uint8Array(d);for(r=0;r>4,f[i++]=(s&15)<<4|l>>2,f[i++]=(l&3)<<6|c&63;return d},CWe=typeof ArrayBuffer=="function",Mj=(e,t)=>{if(typeof e!="string")return{type:"message",data:ure(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:TWe(e.substring(1),t)}:GS[n]?e.length>1?{type:GS[n],data:e.substring(1)}:{type:GS[n]}:Z3},TWe=(e,t)=>{if(CWe){const n=EWe(e);return ure(n,t)}else return{base64:!0,data:e}},ure=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},dre=String.fromCharCode(30),kWe=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{Oj(o,!1,l=>{r[s]=l,++i===n&&t(r.join(dre))})})},AWe=(e,t)=>{const n=e.split(dre),r=[];for(let i=0;i{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let qB;function tS(e){return e.reduce((t,n)=>t+n.length,0)}function nS(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;iMath.pow(2,53-32)-1){l.enqueue(Z3);break}i=f*Math.pow(2,32)+d.getUint32(4),r=3}else{if(tS(n)e){l.enqueue(Z3);break}}}})}const fre=4;function Qr(e){if(e)return PWe(e)}function PWe(e){for(var t in Qr.prototype)e[t]=Qr.prototype[t];return e}Qr.prototype.on=Qr.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Qr.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Qr.prototype.off=Qr.prototype.removeListener=Qr.prototype.removeAllListeners=Qr.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;itypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function hre(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const OWe=Qs.setTimeout,MWe=Qs.clearTimeout;function Jk(e,t){t.useNativeTimers?(e.setTimeoutFn=OWe.bind(Qs),e.clearTimeoutFn=MWe.bind(Qs)):(e.setTimeoutFn=Qs.setTimeout.bind(Qs),e.clearTimeoutFn=Qs.clearTimeout.bind(Qs))}const DWe=1.33;function LWe(e){return typeof e=="string"?NWe(e):Math.ceil((e.byteLength||e.size)*DWe)}function NWe(e){let t=0,n=0;for(let r=0,i=e.length;r=57344?n+=3:(r++,n+=4);return n}function BWe(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function $We(e){let t={},n=e.split("&");for(let r=0,i=n.length;r0);return t}function mre(){const e=CV(+new Date);return e!==EV?(SV=0,EV=e):e+"."+CV(SV++)}for(;rS{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};AWe(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,kWe(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=mre()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Gl(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Gl extends Qr{constructor(t,n){super(),Jk(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=hre(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new vre(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=Gl.requestsCount++,Gl.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=UWe,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Gl.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Gl.requestsCount=0;Gl.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",TV);else if(typeof addEventListener=="function"){const e="onpagehide"in Qs?"pagehide":"unload";addEventListener(e,TV,!1)}}function TV(){for(let e in Gl.requests)Gl.requests.hasOwnProperty(e)&&Gl.requests[e].abort()}const Lj=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),iS=Qs.WebSocket||Qs.MozWebSocket,kV=!0,GWe="arraybuffer",AV=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class VWe extends Dj{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=AV?{}:hre(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=kV&&!AV?n?new iS(t,n):new iS(t):new iS(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{kV&&this.ws.send(o)}catch{}i&&Lj(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=mre()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!iS}}class qWe extends Dj{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=RWe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=IWe();i.readable.pipeTo(t.writable),this.writer=i.writable.getWriter();const o=()=>{r.read().then(({done:l,value:c})=>{l||(this.onPacket(c),o())}).catch(l=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{i&&Lj(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const XWe={websocket:VWe,webtransport:qWe,polling:WWe},YWe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,KWe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function t5(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=YWe.exec(e||""),o={},s=14;for(;s--;)o[KWe[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=QWe(o,o.path),o.queryKey=JWe(o,o.query),o}function QWe(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function JWe(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}let yre=class gm extends Qr{constructor(t,n={}){super(),this.binaryType=GWe,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=t5(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=t5(n.host).host),Jk(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=$We(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=fre,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new XWe[t](r)}open(){let t;if(this.opts.rememberUpgrade&&gm.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;gm.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;gm.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function o(){r||(r=!0,f(),n.close(),n=null)}const s=h=>{const p=new Error("probe error: "+h);p.transport=n.name,o(),this.emitReserved("upgradeError",p)};function l(){s("transport closed")}function c(){s("socket closed")}function d(h){n&&h.name!==n.name&&o()}const f=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",l),this.off("close",c),this.off("upgrading",d)};n.once("open",i),n.once("error",s),n.once("close",l),this.once("close",c),this.once("upgrading",d),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",gm.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){gm.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const i=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,bre=Object.prototype.toString,nGe=typeof Blob=="function"||typeof Blob<"u"&&bre.call(Blob)==="[object BlobConstructor]",rGe=typeof File=="function"||typeof File<"u"&&bre.call(File)==="[object FileConstructor]";function Nj(e){return eGe&&(e instanceof ArrayBuffer||tGe(e))||nGe&&e instanceof Blob||rGe&&e instanceof File}function VS(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let s=0;s{this.io.clearTimeoutFn(o),n.apply(this,[null,...s])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,o)=>{n.push((s,l)=>r?s?o(s):i(l):i(s)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:hn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case hn.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case hn.EVENT:case hn.BINARY_EVENT:this.onevent(t);break;case hn.ACK:case hn.BINARY_ACK:this.onack(t);break;case hn.DISCONNECT:this.ondisconnect();break;case hn.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:hn.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:hn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}uv.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};uv.prototype.reset=function(){this.attempts=0};uv.prototype.setMin=function(e){this.ms=e};uv.prototype.setMax=function(e){this.max=e};uv.prototype.setJitter=function(e){this.jitter=e};class i5 extends Qr{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Jk(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new uv({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||uGe;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new yre(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Va(n,"open",function(){r.onopen(),t&&t()}),o=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},s=Va(n,"error",o);if(this._timeout!==!1){const l=this._timeout,c=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},l);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Va(t,"ping",this.onping.bind(this)),Va(t,"data",this.ondata.bind(this)),Va(t,"error",this.onerror.bind(this)),Va(t,"close",this.onclose.bind(this)),Va(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Lj(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new xre(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Eb={};function qS(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=ZWe(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=Eb[i]&&o in Eb[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let c;return l?c=new i5(r,t):(Eb[i]||(Eb[i]=new i5(r,t)),c=Eb[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(qS,{Manager:i5,Socket:xre,io:qS,connect:qS});class fGe{constructor(t){Hp(this,"rpc");Hp(this,"socket");this.options=t,this.socket=qS(t.url),this.rpc=new Pj.JSONRPCClient(async n=>{const r=i=>{i.id===n.id&&(this.socket.off("response",r),this.rpc.receive(i))};this.socket.emit("request",n),this.socket.on("response",r)})}async connect(){this.socket.connect()}async disconnect(){this.socket.disconnect()}async call(t,n){return await this.rpc.request(t,n)}}const $j={socketio:{name:"socket.io",constructor:fGe},ipc:{name:"Web Worker",constructor:xWe},native:{name:"Internal",constructor:_We}};function hGe(e){return $j[e].constructor}const wre=te.first(te.keys($j));function pGe(){const[{renderer:e},t]=Ru();return C.jsx(C.Fragment,{children:C.jsx(_k,{editor:n=>C.jsx(iWe,{value:n}),icon:null,value:e,onChange:te.debounce(n=>t(()=>({renderer:n})),300),addItemLabel:"Add Renderer",create:()=>({transport:wre,url:"",disabled:!0}),extras:C.jsx(Od,{icon:C.jsx(jK,{}),sx:{ml:2},onClick:()=>t(()=>({renderer:NQ})),children:"Reset to Defaults"})})})}function mGe(e){const[{connections:t}]=Sk(),n=ij(),[{remote:r}]=Ru(),i=te.find(r,{url:e});return i&&!(i!=null&&i.disabled)?n({url:e})?"connected":t?"connecting":e?"error":"not-connected":"not-connected"}const gGe={connected:"success.light",connecting:"warning.light",error:"error.light","not-connected":"text.disabled"};function vGe({value:e,onValueChange:t}){const n=FNe(e.url),r=mGe(e.url);function i(o){t==null||t(nk(e,o))}return C.jsx(C.Fragment,{children:C.jsxs(bn,{alignItems:"center",py:.5,children:[C.jsx(Vee,{sx:{color:gGe[r]}}),C.jsx(Kr,{}),C.jsxs(dt,{flex:1,children:[C.jsx(zt,{children:n?`${n.name} ${n.version}`:te.startCase(r)}),C.jsx(zt,{variant:"body2",color:"text.secondary",children:(n==null?void 0:n.description)??((e==null?void 0:e.url)||"No URL")})]}),C.jsx(Gd,{title:`${e.disabled?"Enable":"Disable"} Connection`,children:C.jsx(dt,{children:C.jsx(_g,{checked:!e.disabled,onChange:(o,s)=>i({disabled:!s})})})}),C.jsx(Lz,{trigger:o=>C.jsx(Nm,{icon:C.jsx(tk,{}),label:"Edit Connection",onClick:o}),appBar:{children:C.jsx(Dz,{children:"Edit Connection"})},children:C.jsxs(dt,{p:2.5,children:[C.jsx(H1,{value:e.url,onChange:o=>i({url:o.target.value}),fullWidth:!0,variant:"filled",label:"URL",sx:{mb:2}}),C.jsx(cx,{placeholder:"Connection Type",items:te.entries($j).map(([o,{name:s}])=>({value:o,label:s})),fullWidth:!0,value:e.transport,onChange:o=>i({transport:o})})]})})]})})}function yGe(){const[{remote:e},t]=Ru();return C.jsx(C.Fragment,{children:C.jsx(_k,{editor:n=>C.jsx(vGe,{value:n}),icon:null,value:e,onChange:te.debounce(n=>t(()=>({remote:n})),300),addItemLabel:"Add Solver",create:()=>({transport:wre,url:"",disabled:!0}),extras:C.jsx(Od,{icon:C.jsx(jK,{}),sx:{ml:2},onClick:()=>t(()=>({remote:LQ})),children:"Reset to Defaults"})})})}const RV=e=>`${e}x`;function bGe(){const{controls:e,onChange:t,state:n}=qd(),[{playbackRate:r=1,acrylic:i,theme:o="light",accentColor:s="teal"},l]=Ru(),[c,d]=R.useState("general");function f(p){return C.jsx(zt,{variant:"overline",color:"text.secondary",children:p})}function h(p){return C.jsx(zt,{variant:"body1",children:p})}return C.jsx(FQ,{value:c,children:C.jsxs(Ln,{onChange:t,stack:n,children:[C.jsx(Ln.Options,{children:C.jsxs(HQ,{onChange:(p,g)=>d(g),children:[C.jsx(Rm,{label:"General",value:"general"}),C.jsx(Rm,{label:"Connections",value:"connections"}),C.jsx(Rm,{label:"Renderers",value:"renderers"}),C.jsx(Rm,{label:"Map Parsers",value:"map-parsers"})]})}),C.jsx(Ln.Content,{children:C.jsx(bn,{vertical:!0,children:C.jsx(q1,{y:!0,children:C.jsxs(bn,{vertical:!0,pt:6,children:[C.jsx(Dm,{value:"general",children:C.jsxs(dt,{children:[f("Playback"),C.jsxs(bn,{alignItems:"center",children:[h("Playback Rate"),C.jsx(Kr,{flex:1}),C.jsx(S0e,{sx:{maxWidth:320,mr:2},marks:[1,2,5,10].map(p=>({value:p*am,label:RV(p)})),step:1*am,min:1*am,max:10*am,valueLabelFormat:p=>RV(p/am),valueLabelDisplay:"auto",defaultValue:r,onChangeCommitted:(p,g)=>l(()=>({playbackRate:g}))})]}),f("UI"),C.jsxs(bn,{alignItems:"center",children:[h("Acrylic"),C.jsx(Kr,{flex:1}),C.jsx(_g,{defaultChecked:!!i,onChange:(p,g)=>l(()=>({acrylic:g}))})]}),C.jsxs(bn,{alignItems:"center",children:[h("Dark Mode"),C.jsx(Kr,{flex:1}),C.jsx(_g,{defaultChecked:o==="dark",onChange:(p,g)=>l(()=>({theme:g?"dark":"light"}))})]}),C.jsxs(bn,{alignItems:"center",children:[h("Accent"),C.jsx(Kr,{flex:1}),C.jsx(Is,{value:s,items:te.map(te.keys(Jwe),p=>({id:p,name:te.startCase(p)})),showArrow:!0,onChange:p=>l(()=>({accentColor:p}))})]})]})}),C.jsx(Dm,{value:"connections",children:C.jsxs(dt,{children:[f("Solvers"),C.jsx(yGe,{})]})}),C.jsx(Dm,{value:"renderers",children:C.jsxs(dt,{children:[f("Renderers"),C.jsx(pGe,{})]})}),C.jsx(Dm,{value:"map-parsers",children:C.jsxs(dt,{children:[f("Map Parsers"),C.jsx(xGe,{})]})})]})})})}),C.jsx(Ln.Extras,{children:e})]})})}function xGe(){return C.jsx(wg,{children:te.keys(Uz).map(e=>C.jsx(ax,{children:C.jsx(zl,{primary:e,secondary:"Internal"})},e))})}const Zk=0,Qd=1,dv=2,_re=4;function Sre(e,t){return n=>e(t(n))}function wGe(e,t){return t(e)}function Ere(e,t){return n=>e(t,n)}function PV(e,t){return()=>e(t)}function eA(e,t){return t(e),e}function gr(...e){return e}function _Ge(e){e()}function OV(e){return()=>e}function SGe(...e){return()=>{e.map(_Ge)}}function Fj(e){return e!==void 0}function fv(){}function jn(e,t){return e(Qd,t)}function en(e,t){e(Zk,t)}function zj(e){e(dv)}function Ts(e){return e(_re)}function _t(e,t){return jn(e,Ere(t,Zk))}function Eu(e,t){const n=e(Qd,r=>{n(),t(r)});return n}function yn(){const e=[];return(t,n)=>{switch(t){case dv:e.splice(0,e.length);return;case Qd:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)};case Zk:e.slice().forEach(r=>{r(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function et(e){let t=e;const n=yn();return(r,i)=>{switch(r){case Qd:i(t);break;case Zk:t=i;break;case _re:return t}return n(r,i)}}function EGe(e){let t,n;const r=()=>t&&t();return function(i,o){switch(i){case Qd:return o?n===o?void 0:(r(),n=o,t=jn(e,o),t):(r(),fv);case dv:r(),n=null;return;default:throw new Error(`unrecognized action ${i}`)}}}function Ms(e){return eA(yn(),t=>_t(e,t))}function Co(e,t){return eA(et(t),n=>_t(e,n))}function CGe(...e){return t=>e.reduceRight(wGe,t)}function Pe(e,...t){const n=CGe(...t);return(r,i)=>{switch(r){case Qd:return jn(e,n(i));case dv:zj(e);return}}}function Cre(e,t){return e===t}function hr(e=Cre){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function Ht(e){return t=>n=>{e(n)&&t(n)}}function lt(e){return t=>Sre(t,e)}function ru(e){return t=>()=>t(e)}function Dl(e,t){return n=>r=>n(t=e(t,r))}function Fg(e){return t=>n=>{e>0?e--:t(n)}}function dd(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function MV(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function an(...e){const t=new Array(e.length);let n=0,r=null;const i=Math.pow(2,e.length)-1;return e.forEach((o,s)=>{const l=Math.pow(2,s);jn(o,c=>{const d=n;n=n|l,t[s]=c,d!==i&&n===i&&r&&(r(),r=null)})}),o=>s=>{const l=()=>o([s].concat(t));n===i?l():r=l}}function DV(...e){return function(t,n){switch(t){case Qd:return SGe(...e.map(r=>jn(r,n)));case dv:return;default:throw new Error(`unrecognized action ${t}`)}}}function Ut(e,t=Cre){return Pe(e,hr(t))}function yi(...e){const t=yn(),n=new Array(e.length);let r=0;const i=Math.pow(2,e.length)-1;return e.forEach((o,s)=>{const l=Math.pow(2,s);jn(o,c=>{n[s]=c,r=r|l,r===i&&en(t,n)})}),function(o,s){switch(o){case Qd:return r===i&&s(n),jn(t,s);case dv:return zj(t);default:throw new Error(`unrecognized action ${o}`)}}}function $n(e,t=[],{singleton:n}={singleton:!0}){return{id:TGe(),constructor:e,dependencies:t,singleton:n}}const TGe=()=>Symbol();function kGe(e){const t=new Map,n=({id:r,constructor:i,dependencies:o,singleton:s})=>{if(s&&t.has(r))return t.get(r);const l=i(o.map(c=>n(c)));return s&&t.set(r,l),l};return n(e)}function AGe(e,t){const n={},r={};let i=0;const o=e.length;for(;i(S[_]=b=>{const x=y[t.methods[_]];en(x,b)},S),{})}function f(y){return s.reduce((S,_)=>(S[_]=EGe(y[t.events[_]]),S),{})}return{Component:de.forwardRef((y,S)=>{const{children:_,...b}=y,[x]=de.useState(()=>eA(kGe(e),A=>c(A,b))),[E]=de.useState(PV(f,x));return oS(()=>{for(const A of s)A in b&&jn(E[A],b[A]);return()=>{Object.values(E).map(zj)}},[b,E,x]),oS(()=>{c(x,b)}),de.useImperativeHandle(S,OV(d(x))),de.createElement(l.Provider,{value:x},n?de.createElement(n,AGe([...r,...i,...s],b),_):_)}),usePublisher:y=>de.useCallback(Ere(en,de.useContext(l)[y]),[y]),useEmitterValue:y=>{const _=de.useContext(l)[y],[b,x]=de.useState(PV(Ts,_));return oS(()=>jn(_,E=>{E!==b&&x(OV(E))}),[_,b]),b},useEmitter:(y,S)=>{const b=de.useContext(l)[y];oS(()=>jn(b,S),[S,b])}}}const IGe=typeof document<"u"?de.useLayoutEffect:de.useEffect,RGe=IGe;var Ds=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(Ds||{});const PGe={0:"debug",1:"log",2:"warn",3:"error"},OGe=()=>typeof globalThis>"u"?window:globalThis,Jd=$n(()=>{const e=et(3);return{log:et((n,r,i=1)=>{var o;const s=(o=OGe().VIRTUOSO_LOG_LEVEL)!=null?o:Ts(e);i>=s&&console[PGe[i]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,r)}),logLevel:e}},[],{singleton:!0});function jj(e,t=!0){const n=de.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=de.useMemo(()=>new ResizeObserver(o=>{const s=o[0].target;s.offsetParent!==null&&e(s)}),[e]);r=o=>{o&&t?(i.observe(o),n.current=o):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function jp(e,t=!0){return jj(e,t).callbackRef}function MGe(e,t,n,r,i,o,s){const l=de.useCallback(c=>{const d=DGe(c.children,t,"offsetHeight",i);let f=c.parentElement;for(;!f.dataset.virtuosoScroller;)f=f.parentElement;const h=f.lastElementChild.dataset.viewportType==="window",p=s?s.scrollTop:h?window.pageYOffset||document.documentElement.scrollTop:f.scrollTop,g=s?s.scrollHeight:h?document.documentElement.scrollHeight:f.scrollHeight,v=s?s.offsetHeight:h?window.innerHeight:f.offsetHeight;r({scrollTop:Math.max(p,0),scrollHeight:g,viewportHeight:v}),o==null||o(LGe("row-gap",getComputedStyle(c).rowGap,i)),d!==null&&e(d)},[e,t,i,o,s,r]);return jj(l,n)}function DGe(e,t,n,r){const i=e.length;if(i===0)return null;const o=[];for(let s=0;s{const p=h.target,g=p===window||p===document,v=g?window.pageYOffset||document.documentElement.scrollTop:p.scrollTop,y=g?document.documentElement.scrollHeight:p.scrollHeight,S=g?window.innerHeight:p.offsetHeight,_=()=>{e({scrollTop:Math.max(v,0),scrollHeight:y,viewportHeight:S})};h.suppressFlushSync?_():Im.flushSync(_),s.current!==null&&(v===s.current||v<=0||v===y-S)&&(s.current=null,t(!0),l.current&&(clearTimeout(l.current),l.current=null))},[e,t]);de.useEffect(()=>{const h=i||o.current;return r(i||o.current),c({target:h,suppressFlushSync:!0}),h.addEventListener("scroll",c,{passive:!0}),()=>{r(null),h.removeEventListener("scroll",c)}},[o,c,n,r,i]);function d(h){const p=o.current;if(!p||"offsetHeight"in p&&p.offsetHeight===0)return;const g=h.behavior==="smooth";let v,y,S;p===window?(y=Math.max($d(document.documentElement,"height"),document.documentElement.scrollHeight),v=window.innerHeight,S=document.documentElement.scrollTop):(y=p.scrollHeight,v=$d(p,"height"),S=p.scrollTop);const _=y-v;if(h.top=Math.ceil(Math.max(Math.min(_,h.top),0)),kre(v,y)||h.top===S){e({scrollTop:S,scrollHeight:y,viewportHeight:v}),g&&t(!0);return}g?(s.current=h.top,l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{l.current=null,s.current=null,t(!0)},1e3)):s.current=null,p.scrollTo(h)}function f(h){o.current.scrollBy(h)}return{scrollerRef:o,scrollByCallback:f,scrollToCallback:d}}const Ro=$n(()=>{const e=yn(),t=yn(),n=et(0),r=yn(),i=et(0),o=yn(),s=yn(),l=et(0),c=et(0),d=et(0),f=et(0),h=yn(),p=yn(),g=et(!1);return _t(Pe(e,lt(({scrollTop:v})=>v)),t),_t(Pe(e,lt(({scrollHeight:v})=>v)),s),_t(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:o,headerHeight:l,fixedHeaderHeight:c,fixedFooterHeight:d,footerHeight:f,scrollHeight:s,smoothScrollTargetReached:r,scrollTo:h,scrollBy:p,statefulScrollTop:i,deviation:n,scrollingInProgress:g}},[],{singleton:!0}),E1={lvl:0};function Ire(e,t,n,r=E1,i=E1){return{k:e,v:t,lvl:n,l:r,r:i}}function Kn(e){return e===E1}function ig(){return E1}function o5(e,t){if(Kn(e))return E1;const{k:n,l:r,r:i}=e;if(t===n){if(Kn(r))return i;if(Kn(i))return r;{const[o,s]=Rre(r);return XS(ui(e,{k:o,v:s,l:Pre(r)}))}}else return tt&&(l=l.concat(s5(o,t,n))),r>=t&&r<=n&&l.push({k:r,v:i}),r<=n&&(l=l.concat(s5(s,t,n))),l}function Vh(e){return Kn(e)?[]:[...Vh(e.l),{k:e.k,v:e.v},...Vh(e.r)]}function Rre(e){return Kn(e.r)?[e.k,e.v]:Rre(e.r)}function Pre(e){return Kn(e.r)?e.l:XS(ui(e,{r:Pre(e.r)}))}function ui(e,t){return Ire(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function XB(e){return Kn(e)||e.lvl>e.r.lvl}function LV(e){return a5(Mre(e))}function XS(e){const{l:t,r:n,lvl:r}=e;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(XB(t))return Mre(ui(e,{lvl:r-1}));if(!Kn(t)&&!Kn(t.r))return ui(t.r,{l:ui(t,{r:t.r.l}),r:ui(e,{l:t.r.r,lvl:r-1}),lvl:r});throw new Error("Unexpected empty nodes")}else{if(XB(e))return a5(ui(e,{lvl:r-1}));if(!Kn(n)&&!Kn(n.l)){const i=n.l,o=XB(i)?n.lvl-1:n.lvl;return ui(i,{l:ui(e,{r:i.l,lvl:r-1}),r:a5(ui(n,{l:i.r,lvl:o})),lvl:i.lvl+1})}else throw new Error("Unexpected empty nodes")}}function tA(e,t,n){if(Kn(e))return[];const r=fl(e,t)[0];return NGe(s5(e,r,n))}function Ore(e,t){const n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]);const o=[];for(let s=1;s({index:t,value:n}))}function a5(e){const{r:t,lvl:n}=e;return!Kn(t)&&!Kn(t.r)&&t.lvl===n&&t.r.lvl===n?ui(t,{l:ui(e,{r:t.l}),lvl:n+1}):e}function Mre(e){const{l:t}=e;return!Kn(t)&&t.lvl===e.lvl?ui(t,{r:ui(e,{l:t.r})}):e}function kC(e,t,n,r=0){let i=e.length-1;for(;r<=i;){const o=Math.floor((r+i)/2),s=e[o],l=n(s,t);if(l===0)return o;if(l===-1){if(i-r<2)return o-1;i=o-1}else{if(i===r)return o;r=o+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function Dre(e,t,n){return e[kC(e,t,n)]}function BGe(e,t,n,r){const i=kC(e,t,r),o=kC(e,n,r,i);return e.slice(i,o+1)}const Uj=$n(()=>({recalcInProgress:et(!1)}),[],{singleton:!0});function $Ge(e){const{size:t,startIndex:n,endIndex:r}=e;return i=>i.start===n&&(i.end===r||i.end===1/0)&&i.value===t}function NV(e,t){let n=0,r=0;for(;n=f||i===p)&&(e=o5(e,f)):(d=p!==i,c=!0),h>s&&s>=f&&p!==i&&(e=Ss(e,s+1,p));d&&(e=Ss(e,o,i))}return[e,n]}function zGe(){return{offsetTree:[],sizeTree:ig(),groupOffsetTree:ig(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function Hj({index:e},t){return t===e?0:t0&&(t=Math.max(t,Dre(e,r,Hj).offset)),Ore(BGe(e,t,n,jGe),UGe)}function l5(e,t,n,r){let i=e,o=0,s=0,l=0,c=0;if(t!==0){c=kC(i,t-1,Hj),l=i[c].offset;const f=fl(n,t-1);o=f[0],s=f[1],i.length&&i[c].size===fl(n,t)[1]&&(c-=1),i=i.slice(0,c+1)}else i=[];for(const{start:d,value:f}of tA(n,t,1/0)){const h=d-o,p=h*s+l+h*r;i.push({offset:p,size:f,index:d}),o=d,l=p,s=f}return{offsetTree:i,lastIndex:o,lastOffset:l,lastSize:s}}function WGe(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,Ds.DEBUG);const o=e.sizeTree;let s=o,l=0;if(n.length>0&&Kn(o)&&t.length===2){const p=t[0].size,g=t[1].size;s=n.reduce((v,y)=>Ss(Ss(v,y,p),y+1,g),s)}else[s,l]=FGe(s,t);if(s===o)return e;const{offsetTree:c,lastIndex:d,lastSize:f,lastOffset:h}=l5(e.offsetTree,l,s,i);return{sizeTree:s,offsetTree:c,lastIndex:d,lastOffset:h,lastSize:f,groupOffsetTree:n.reduce((p,g)=>Ss(p,g,T1(g,c,i)),ig()),groupIndices:n}}function T1(e,t,n){if(t.length===0)return 0;const{offset:r,index:i,size:o}=Dre(t,e,Hj),s=e-i,l=o*s+(s-1)*n+r;return l>0?l+n:l}function GGe(e){return typeof e.groupIndex<"u"}function Lre(e,t,n){if(GGe(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let i=Nre(r,t);return i=Math.max(0,i,Math.min(n,i)),i}}function Nre(e,t){if(!nA(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function nA(e){return!Kn(e.groupOffsetTree)}function VGe(e){return Vh(e).map(({k:t,v:n},r,i)=>{const o=i[r+1],s=o?o.k-1:1/0;return{startIndex:t,endIndex:s,size:n}})}const qGe={offsetHeight:"height",offsetWidth:"width"},tc=$n(([{log:e},{recalcInProgress:t}])=>{const n=yn(),r=yn(),i=Co(r,0),o=yn(),s=yn(),l=et(0),c=et([]),d=et(void 0),f=et(void 0),h=et((A,I)=>$d(A,qGe[I])),p=et(void 0),g=et(0),v=zGe(),y=Co(Pe(n,an(c,e,g),Dl(WGe,v),hr()),v),S=Co(Pe(c,hr(),Dl((A,I)=>({prev:A.current,current:I}),{prev:[],current:[]}),lt(({prev:A})=>A)),[]);_t(Pe(c,Ht(A=>A.length>0),an(y,g),lt(([A,I,k])=>{const O=A.reduce((L,N,H)=>Ss(L,N,T1(N,I.offsetTree,k)||H),ig());return{...I,groupIndices:A,groupOffsetTree:O}})),y),_t(Pe(r,an(y),Ht(([A,{lastIndex:I}])=>A[{startIndex:A,endIndex:I,size:k}])),n),_t(d,f);const _=Co(Pe(d,lt(A=>A===void 0)),!0);_t(Pe(f,Ht(A=>A!==void 0&&Kn(Ts(y).sizeTree)),lt(A=>[{startIndex:0,endIndex:0,size:A}])),n);const b=Ms(Pe(n,an(y),Dl(({sizes:A},[I,k])=>({changed:k!==A,sizes:k}),{changed:!1,sizes:v}),lt(A=>A.changed)));jn(Pe(l,Dl((A,I)=>({diff:A.prev-I,prev:I}),{diff:0,prev:0}),lt(A=>A.diff)),A=>{const{groupIndices:I}=Ts(y);if(A>0)en(t,!0),en(o,A+NV(A,I));else if(A<0){const k=Ts(S);k.length>0&&(A-=NV(-A,k)),en(s,A)}}),jn(Pe(l,an(e)),([A,I])=>{A<0&&I("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:l},Ds.ERROR)});const x=Ms(o);_t(Pe(o,an(y),lt(([A,I])=>{const k=I.groupIndices.length>0,O=[],L=I.lastSize;if(k){const N=C1(I.sizeTree,0);let H=0,W=0;for(;H{let G=F.ranges;return F.prevSize!==0&&(G=[...F.ranges,{startIndex:F.prevIndex,endIndex:j+A-1,size:F.prevSize}]),{ranges:G,prevIndex:j+A,prevSize:V}},{ranges:O,prevIndex:A,prevSize:0}).ranges}return Vh(I.sizeTree).reduce((N,{k:H,v:W})=>({ranges:[...N.ranges,{startIndex:N.prevIndex,endIndex:H+A-1,size:N.prevSize}],prevIndex:H+A,prevSize:W}),{ranges:[],prevIndex:0,prevSize:L}).ranges})),n);const E=Ms(Pe(s,an(y,g),lt(([A,{offsetTree:I},k])=>{const O=-A;return T1(O,I,k)})));return _t(Pe(s,an(y,g),lt(([A,I,k])=>{if(I.groupIndices.length>0){if(Kn(I.sizeTree))return I;let L=ig();const N=Ts(S);let H=0,W=0,z=0;for(;H<-A;){z=N[W];const F=N[W+1]-z-1;W++,H+=F+1}if(L=Vh(I.sizeTree).reduce((F,{k:j,v:V})=>Ss(F,Math.max(0,j+A),V),L),H!==-A){const F=C1(I.sizeTree,z);L=Ss(L,0,F);const j=fl(I.sizeTree,-A+1)[1];L=Ss(L,1,j)}return{...I,sizeTree:L,...l5(I.offsetTree,0,L,k)}}else{const L=Vh(I.sizeTree).reduce((N,{k:H,v:W})=>Ss(N,Math.max(0,H+A),W),ig());return{...I,sizeTree:L,...l5(I.offsetTree,0,L,k)}}})),y),{data:p,totalCount:r,sizeRanges:n,groupIndices:c,defaultItemSize:f,fixedItemSize:d,unshiftWith:o,shiftWith:s,shiftWithOffset:E,beforeUnshiftWith:x,firstItemIndex:l,gap:g,sizes:y,listRefresh:b,statefulTotalCount:i,trackItemSizes:_,itemSize:h}},gr(Jd,Uj),{singleton:!0}),XGe=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function Bre(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!XGe)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const xw=$n(([{sizes:e,totalCount:t,listRefresh:n,gap:r},{scrollingInProgress:i,viewportHeight:o,scrollTo:s,smoothScrollTargetReached:l,headerHeight:c,footerHeight:d,fixedHeaderHeight:f,fixedFooterHeight:h},{log:p}])=>{const g=yn(),v=et(0);let y=null,S=null,_=null;function b(){y&&(y(),y=null),_&&(_(),_=null),S&&(clearTimeout(S),S=null),en(i,!1)}return _t(Pe(g,an(e,o,t,v,c,d,p),an(r,f,h),lt(([[x,E,A,I,k,O,L,N],H,W,z])=>{const D=Bre(x),{align:F,behavior:j,offset:V}=D,G=I-1,K=Lre(D,E,G);let Y=T1(K,E.offsetTree,H)+O;F==="end"?(Y+=W+fl(E.sizeTree,K)[1]-A+z,K===G&&(Y+=L)):F==="center"?Y+=(W+fl(E.sizeTree,K)[1]-A+z)/2:Y-=k,V&&(Y+=V);const J=ie=>{b(),ie?(N("retrying to scroll to",{location:x},Ds.DEBUG),en(g,x)):N("list did not change, scroll successful",{},Ds.DEBUG)};if(b(),j==="smooth"){let ie=!1;_=jn(n,ce=>{ie=ie||ce}),y=Eu(l,()=>{J(ie)})}else y=Eu(Pe(n,YGe(150)),J);return S=setTimeout(()=>{b()},1200),en(i,!0),N("scrolling from index to",{index:K,top:Y,behavior:j},Ds.DEBUG),{top:Y,behavior:j}})),s),{scrollToIndex:g,topListHeight:v}},gr(tc,Ro,Jd),{singleton:!0});function YGe(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}const k1="up",_x="down",KGe="none",QGe={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},JGe=0,ww=$n(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:i,scrollBy:o}])=>{const s=et(!1),l=et(!0),c=yn(),d=yn(),f=et(4),h=et(JGe),p=Co(Pe(DV(Pe(Ut(t),Fg(1),ru(!0)),Pe(Ut(t),Fg(1),ru(!1),MV(100))),hr()),!1),g=Co(Pe(DV(Pe(o,ru(!0)),Pe(o,ru(!1),MV(200))),hr()),!1);_t(Pe(yi(Ut(t),Ut(h)),lt(([b,x])=>b<=x),hr()),l),_t(Pe(l,dd(50)),d);const v=Ms(Pe(yi(e,Ut(n),Ut(r),Ut(i),Ut(f)),Dl((b,[{scrollTop:x,scrollHeight:E},A,I,k,O])=>{const L=x+A-E>-O,N={viewportHeight:A,scrollTop:x,scrollHeight:E};if(L){let W,z;return x>b.state.scrollTop?(W="SCROLLED_DOWN",z=b.state.scrollTop-x):(W="SIZE_DECREASED",z=b.state.scrollTop-x||b.scrollTopDelta),{atBottom:!0,state:N,atBottomBecause:W,scrollTopDelta:z}}let H;return N.scrollHeight>b.state.scrollHeight?H="SIZE_INCREASED":Ab&&b.atBottom===x.atBottom))),y=Co(Pe(e,Dl((b,{scrollTop:x,scrollHeight:E,viewportHeight:A})=>{if(kre(b.scrollHeight,E))return{scrollTop:x,scrollHeight:E,jump:0,changed:!1};{const I=E-(x+A)<1;return b.scrollTop!==x&&I?{scrollHeight:E,scrollTop:x,jump:b.scrollTop-x,changed:!0}:{scrollHeight:E,scrollTop:x,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),Ht(b=>b.changed),lt(b=>b.jump)),0);_t(Pe(v,lt(b=>b.atBottom)),s),_t(Pe(s,dd(50)),c);const S=et(_x);_t(Pe(e,lt(({scrollTop:b})=>b),hr(),Dl((b,x)=>Ts(g)?{direction:b.direction,prevScrollTop:x}:{direction:xb.direction)),S),_t(Pe(e,dd(50),ru(KGe)),S);const _=et(0);return _t(Pe(p,Ht(b=>!b),ru(0)),_),_t(Pe(t,dd(100),an(p),Ht(([b,x])=>!!x),Dl(([b,x],[E])=>[x,E],[0,0]),lt(([b,x])=>x-b)),_),{isScrolling:p,isAtTop:l,isAtBottom:s,atBottomState:v,atTopStateChange:d,atBottomStateChange:c,scrollDirection:S,atBottomThreshold:f,atTopThreshold:h,scrollVelocity:_,lastJumpDueToItemResize:y}},gr(Ro)),Zd=$n(([{log:e}])=>{const t=et(!1),n=Ms(Pe(t,Ht(r=>r),hr()));return jn(t,r=>{r&&Ts(e)("props updated",{},Ds.DEBUG)}),{propsReady:t,didMount:n}},gr(Jd),{singleton:!0});function Wj(e,t){e==0?t():requestAnimationFrame(()=>Wj(e-1,t))}function Gj(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const _w=$n(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:r},{scrollToIndex:i},{didMount:o}])=>{const s=et(!0),l=et(0),c=et(!1);return _t(Pe(o,an(l),Ht(([d,f])=>!!f),ru(!1)),s),jn(Pe(yi(t,o),an(s,e,n,c),Ht(([[,d],f,{sizeTree:h},p,g])=>d&&(!Kn(h)||Fj(p))&&!f&&!g),an(l)),([,d])=>{en(c,!0),Wj(3,()=>{Eu(r,()=>en(s,!0)),en(i,d)})}),{scrolledToInitialItem:s,initialTopMostItemIndex:l}},gr(tc,Ro,xw,Zd),{singleton:!0});function BV(e){return e?e==="smooth"?"smooth":"auto":!1}const ZGe=(e,t)=>typeof e=="function"?BV(e(t)):t&&BV(e),e9e=$n(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:r},{scrollToIndex:i},{scrolledToInitialItem:o},{propsReady:s,didMount:l},{log:c},{scrollingInProgress:d}])=>{const f=et(!1),h=yn();let p=null;function g(y){en(i,{index:"LAST",align:"end",behavior:y})}jn(Pe(yi(Pe(Ut(e),Fg(1)),l),an(Ut(f),n,o,d),lt(([[y,S],_,b,x,E])=>{let A=S&&x,I="auto";return A&&(I=ZGe(_,b||E),A=A&&!!I),{totalCount:y,shouldFollow:A,followOutputBehavior:I}}),Ht(({shouldFollow:y})=>y)),({totalCount:y,followOutputBehavior:S})=>{p&&(p(),p=null),p=Eu(t,()=>{Ts(c)("following output to ",{totalCount:y},Ds.DEBUG),g(S),p=null})});function v(y){const S=Eu(r,_=>{y&&!_.atBottom&&_.notAtBottomBecause==="SIZE_INCREASED"&&!p&&(Ts(c)("scrolling to bottom due to increased size",{},Ds.DEBUG),g("auto"))});setTimeout(S,100)}return jn(Pe(yi(Ut(f),e,s),Ht(([y,,S])=>y&&S),Dl(({value:y},[,S])=>({refreshed:y===S,value:S}),{refreshed:!1,value:0}),Ht(({refreshed:y})=>y),an(f,e)),([,y])=>{v(y!==!1)}),jn(h,()=>{v(Ts(f)!==!1)}),jn(yi(Ut(f),r),([y,S])=>{y&&!S.atBottom&&S.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&g("auto")}),{followOutput:f,autoscrollToBottom:h}},gr(tc,ww,xw,_w,Zd,Jd,Ro));function t9e(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const $re=$n(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:i}])=>{const o=yn(),s=yn(),l=Ms(Pe(o,lt(t9e)));return _t(Pe(l,lt(c=>c.totalCount)),e),_t(Pe(l,lt(c=>c.groupIndices)),t),_t(Pe(yi(r,n,i),Ht(([c,d])=>nA(d)),lt(([c,d,f])=>fl(d.groupOffsetTree,Math.max(c-f,0),"v")[0]),hr(),lt(c=>[c])),s),{groupCounts:o,topItemsIndexes:s}},gr(tc,Ro));function A1(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function Fre(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const AC="top",IC="bottom",$V="none";function FV(e,t,n){return typeof e=="number"?n===k1&&t===AC||n===_x&&t===IC?e:0:n===k1?t===AC?e.main:e.reverse:t===IC?e.main:e.reverse}function zV(e,t){return typeof e=="number"?e:e[t]||0}const Vj=$n(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:i}])=>{const o=yn(),s=et(0),l=et(0),c=et(0),d=Co(Pe(yi(Ut(e),Ut(t),Ut(r),Ut(o,A1),Ut(c),Ut(s),Ut(i),Ut(n),Ut(l)),lt(([f,h,p,[g,v],y,S,_,b,x])=>{const E=f-b,A=S+_,I=Math.max(p-E,0);let k=$V;const O=zV(x,AC),L=zV(x,IC);return g-=b,g+=p+_,v+=p+_,v-=b,g>f+A-O&&(k=k1),vf!=null),hr(A1)),[0,0]);return{listBoundary:o,overscan:c,topListHeight:s,increaseViewportBy:l,visibleRange:d}},gr(Ro),{singleton:!0});function n9e(e,t,n){if(nA(t)){const r=Nre(e,t);return[{index:fl(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}const YB={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function jV(e,t,n){if(e.length===0)return[];if(!nA(t))return e.map(d=>({...d,index:d.index+n,originalIndex:d.index}));const r=e[0].index,i=e[e.length-1].index,o=[],s=tA(t.groupOffsetTree,r,i);let l,c=0;for(const d of e){(!l||l.end0){d=e[0].offset;const y=e[e.length-1];f=y.offset+y.size}const h=n-c,p=l+h*s+(h-1)*r,g=d,v=p-f;return{items:jV(e,i,o),topItems:jV(t,i,o),topListHeight:t.reduce((y,S)=>S.size+y,0),offsetTop:d,offsetBottom:v,top:g,bottom:f,totalCount:n,firstItemIndex:o}}function zre(e,t,n,r,i,o){let s=0;if(n.groupIndices.length>0)for(const f of n.groupIndices){if(f-s>=e)break;s++}const l=e+s,c=Gj(t,l),d=Array.from({length:l}).map((f,h)=>({index:h+c,size:0,offset:0,data:o[h+c]}));return YS(d,[],l,i,n,r)}const Up=$n(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:i},o,{visibleRange:s,listBoundary:l,topListHeight:c},{scrolledToInitialItem:d,initialTopMostItemIndex:f},{topListHeight:h},p,{didMount:g},{recalcInProgress:v}])=>{const y=et([]),S=et(0),_=yn();_t(o.topItemsIndexes,y);const b=Co(Pe(yi(g,v,Ut(s,A1),Ut(t),Ut(e),Ut(f),d,Ut(y),Ut(r),Ut(i),n),Ht(([I,k,,O,,,,,,,L])=>{const N=L&&L.length!==O;return I&&!k&&!N}),lt(([,,[I,k],O,L,N,H,W,z,D,F])=>{const j=L,{sizeTree:V,offsetTree:G}=j,K=Ts(S);if(O===0)return{...YB,totalCount:O};if(I===0&&k===0)return K===0?{...YB,totalCount:O}:zre(K,N,L,z,D,F||[]);if(Kn(V))return K>0?null:YS(n9e(Gj(N,O),j,F),[],O,D,j,z);const Y=[];if(W.length>0){const se=W[0],Q=W[W.length-1];let ae=0;for(const le of tA(V,se,Q)){const he=le.value,pe=Math.max(le.start,se),ve=Math.min(le.end,Q);for(let ye=pe;ye<=ve;ye++)Y.push({index:ye,size:he,offset:ae,data:F&&F[ye]}),ae+=he}}if(!H)return YS([],Y,O,D,j,z);const J=W.length>0?W[W.length-1]+1:0,ie=HGe(G,I,k,J);if(ie.length===0)return null;const ce=O-1,ue=eA([],se=>{for(const Q of ie){const ae=Q.value;let le=ae.offset,he=Q.start;const pe=ae.size;if(ae.offset=k);ye++)se.push({index:ye,size:pe,offset:le,data:F&&F[ye]}),le+=pe+D}});return YS(ue,Y,O,D,j,z)}),Ht(I=>I!==null),hr()),YB);_t(Pe(n,Ht(Fj),lt(I=>I==null?void 0:I.length)),t),_t(Pe(b,lt(I=>I.topListHeight)),h),_t(h,c),_t(Pe(b,lt(I=>[I.top,I.bottom])),l),_t(Pe(b,lt(I=>I.items)),_);const x=Ms(Pe(b,Ht(({items:I})=>I.length>0),an(t,n),Ht(([{items:I},k])=>I[I.length-1].originalIndex===k-1),lt(([,I,k])=>[I-1,k]),hr(A1),lt(([I])=>I))),E=Ms(Pe(b,dd(200),Ht(({items:I,topItems:k})=>I.length>0&&I[0].originalIndex===k.length),lt(({items:I})=>I[0].index),hr())),A=Ms(Pe(b,Ht(({items:I})=>I.length>0),lt(({items:I})=>{let k=0,O=I.length-1;for(;I[k].type==="group"&&kk;)O--;return{startIndex:I[k].index,endIndex:I[O].index}}),hr(Fre)));return{listState:b,topItemsIndexes:y,endReached:x,startReached:E,rangeChanged:A,itemsRendered:_,initialItemCount:S,...p}},gr(tc,$re,Vj,_w,xw,ww,Zd,Uj),{singleton:!0}),r9e=$n(([{sizes:e,firstItemIndex:t,data:n,gap:r},{initialTopMostItemIndex:i},{initialItemCount:o,listState:s},{didMount:l}])=>(_t(Pe(l,an(o),Ht(([,c])=>c!==0),an(i,e,t,r,n),lt(([[,c],d,f,h,p,g=[]])=>zre(c,d,f,h,p,g))),s),{}),gr(tc,_w,Up,Zd),{singleton:!0}),jre=$n(([{scrollVelocity:e}])=>{const t=et(!1),n=yn(),r=et(!1);return _t(Pe(e,an(r,t,n),Ht(([i,o])=>!!o),lt(([i,o,s,l])=>{const{exit:c,enter:d}=o;if(s){if(c(i,l))return!1}else if(d(i,l))return!0;return s}),hr()),t),jn(Pe(yi(t,e,n),an(r)),([[i,o,s],l])=>i&&l&&l.change&&l.change(o,s)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},gr(ww),{singleton:!0}),i9e=$n(([{topItemsIndexes:e}])=>{const t=et(0);return _t(Pe(t,Ht(n=>n>0),lt(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},gr(Up)),Ure=$n(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:i}])=>{const o=yn(),s=Co(Pe(yi(e,r,t,n,i),lt(([l,c,d,f,h])=>l+c+d+f+h.offsetBottom+h.bottom)),0);return _t(Ut(s),o),{totalListHeight:s,totalListHeightChanged:o}},gr(Ro,Up),{singleton:!0});function Hre(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const o9e=Hre(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),s9e=$n(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:r},{isScrolling:i,isAtBottom:o,scrollDirection:s,lastJumpDueToItemResize:l},{listState:c},{beforeUnshiftWith:d,shiftWithOffset:f,sizes:h,gap:p},{log:g},{recalcInProgress:v}])=>{const y=Ms(Pe(c,an(l),Dl(([,_,b,x],[{items:E,totalCount:A,bottom:I,offsetBottom:k},O])=>{const L=I+k;let N=0;return b===A&&_.length>0&&E.length>0&&(E[0].originalIndex===0&&_[0].originalIndex===0||(N=L-x,N!==0&&(N+=O))),[N,E,A,L]},[0,[],0,0]),Ht(([_])=>_!==0),an(t,s,r,o,g,v),Ht(([,_,b,x,,,E])=>!E&&!x&&_!==0&&b===k1),lt(([[_],,,,,b])=>(b("Upward scrolling compensation",{amount:_},Ds.DEBUG),_))));function S(_){_>0?(en(e,{top:-_,behavior:"auto"}),en(n,0)):(en(n,0),en(e,{top:-_,behavior:"auto"}))}return jn(Pe(y,an(n,i)),([_,b,x])=>{x&&o9e()?en(n,b-_):S(-_)}),jn(Pe(yi(Co(i,!1),n,v),Ht(([_,b,x])=>!_&&!x&&b!==0),lt(([_,b])=>b),dd(1)),S),_t(Pe(f,lt(_=>({top:-_}))),e),jn(Pe(d,an(h,p),lt(([_,{lastSize:b,groupIndices:x,sizeTree:E},A])=>{function I(k){return k*(b+A)}if(x.length===0)return I(_);{let k=0;const O=C1(E,0);let L=0,N=0;for(;L<_;){L++,k+=O;let H=x.length===N+1?1/0:x[N+1]-x[N]-1;L+H>_&&(k-=O,H=_-L+1),L+=H,k+=I(H),N++}return k}})),_=>{en(n,_),requestAnimationFrame(()=>{en(e,{top:_}),requestAnimationFrame(()=>{en(n,0),en(v,!1)})})}),{deviation:n}},gr(Ro,ww,Up,tc,Jd,Uj)),a9e=$n(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=et(0);return jn(Pe(e,an(r),Ht(([,i])=>i!==0),lt(([,i])=>({top:i}))),i=>{Eu(Pe(n,Fg(1),Ht(o=>o.items.length>1)),()=>{requestAnimationFrame(()=>{en(t,i)})})}),{initialScrollTop:r}},gr(Zd,Ro,Up),{singleton:!0}),l9e=$n(([{viewportHeight:e},{totalListHeight:t}])=>{const n=et(!1),r=Co(Pe(yi(n,e,t),Ht(([i])=>i),lt(([,i,o])=>Math.max(0,i-o)),dd(0),hr()),0);return{alignToBottom:n,paddingTopAddition:r}},gr(Ro,Ure),{singleton:!0}),qj=$n(([{scrollTo:e,scrollContainerState:t}])=>{const n=yn(),r=yn(),i=yn(),o=et(!1),s=et(void 0);return _t(Pe(yi(n,r),lt(([{viewportHeight:l,scrollTop:c,scrollHeight:d},{offsetTop:f}])=>({scrollTop:Math.max(0,c-f),scrollHeight:d,viewportHeight:l}))),t),_t(Pe(e,an(r),lt(([l,{offsetTop:c}])=>({...l,top:l.top+c}))),i),{useWindowScroll:o,customScrollParent:s,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:i}},gr(Ro)),c9e=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:r,locationParams:{behavior:i,align:o,...s}})=>er?{...s,behavior:i,align:o??"end"}:null,u9e=$n(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:i,headerHeight:o,fixedHeaderHeight:s,fixedFooterHeight:l,scrollingInProgress:c},{scrollToIndex:d}])=>{const f=yn();return _t(Pe(f,an(e,i,t,o,s,l,r),an(n),lt(([[h,p,g,v,y,S,_,b],x])=>{const{done:E,behavior:A,align:I,calculateViewLocation:k=c9e,...O}=h,L=Lre(h,p,v-1),N=T1(L,p.offsetTree,x)+y+S,H=N+fl(p.sizeTree,L)[1],W=b+S,z=b+g-_,D=k({itemTop:N,itemBottom:H,viewportTop:W,viewportBottom:z,locationParams:{behavior:A,align:I,...O}});return D?E&&Eu(Pe(c,Ht(F=>F===!1),Fg(Ts(c)?1:2)),E):E&&E(),D}),Ht(h=>h!==null)),d),{scrollIntoView:f}},gr(tc,Ro,xw,Up,Jd),{singleton:!0}),d9e=$n(([{sizes:e,sizeRanges:t},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:o,windowScrollContainerState:s,windowViewportRect:l}])=>{const c=yn(),d=et(void 0),f=et(null),h=et(null);return _t(s,f),_t(l,h),jn(Pe(c,an(e,n,o,f,h)),([p,g,v,y,S,_])=>{const b=VGe(g.sizeTree);y&&S!==null&&_!==null&&(v=S.scrollTop-_.offsetTop),p({ranges:b,scrollTop:v})}),_t(Pe(d,Ht(Fj),lt(f9e)),r),_t(Pe(i,an(d),Ht(([,p])=>p!==void 0),hr(),lt(([,p])=>p.ranges)),t),{getState:c,restoreStateFrom:d}},gr(tc,Ro,_w,Zd,qj));function f9e(e){return{offset:e.scrollTop,index:0,align:"start"}}const h9e=$n(([e,t,n,r,i,o,s,l,c,d])=>({...e,...t,...n,...r,...i,...o,...s,...l,...c,...d}),gr(Vj,r9e,Zd,jre,Ure,a9e,l9e,qj,u9e,Jd)),p9e=$n(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:r,trackItemSizes:i,itemSize:o,data:s,firstItemIndex:l,groupIndices:c,statefulTotalCount:d,gap:f,sizes:h},{initialTopMostItemIndex:p,scrolledToInitialItem:g},v,y,S,{listState:_,topItemsIndexes:b,...x},{scrollToIndex:E},A,{topItemCount:I},{groupCounts:k},O])=>(_t(x.rangeChanged,O.scrollSeekRangeChanged),_t(Pe(O.windowViewportRect,lt(L=>L.visibleHeight)),v.viewportHeight),{totalCount:e,data:s,firstItemIndex:l,sizeRanges:t,initialTopMostItemIndex:p,scrolledToInitialItem:g,topItemsIndexes:b,topItemCount:I,groupCounts:k,fixedItemHeight:n,defaultItemHeight:r,gap:f,...S,statefulTotalCount:d,listState:_,scrollToIndex:E,trackItemSizes:i,itemSize:o,groupIndices:c,...x,...O,...v,sizes:h,...y}),gr(tc,_w,Ro,d9e,e9e,Up,xw,s9e,i9e,$re,h9e)),KB="-webkit-sticky",UV="sticky",Wre=Hre(()=>{if(typeof document>"u")return UV;const e=document.createElement("div");return e.style.position=KB,e.style.position===KB?KB:UV});function Gre(e,t){const n=de.useRef(null),r=de.useCallback(l=>{if(l===null||!l.offsetParent)return;const c=l.getBoundingClientRect(),d=c.width;let f,h;if(t){const p=t.getBoundingClientRect(),g=c.top-p.top;f=p.height-Math.max(0,g),h=g+t.scrollTop}else f=window.innerHeight-Math.max(0,c.top),h=c.top+window.pageYOffset;n.current={offsetTop:h,visibleHeight:f,visibleWidth:d},e(n.current)},[e,t]),{callbackRef:i,ref:o}=jj(r),s=de.useCallback(()=>{r(o.current)},[r,o]);return de.useEffect(()=>{if(t){t.addEventListener("scroll",s);const l=new ResizeObserver(s);return l.observe(t),()=>{t.removeEventListener("scroll",s),l.unobserve(t)}}else return window.addEventListener("scroll",s),window.addEventListener("resize",s),()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s)}},[s,t]),i}const Vre=de.createContext(void 0),qre=de.createContext(void 0);function Xre(e){return e}const m9e=$n(()=>{const e=et(c=>`Item ${c}`),t=et(null),n=et(c=>`Group ${c}`),r=et({}),i=et(Xre),o=et("div"),s=et(fv),l=(c,d=null)=>Co(Pe(r,lt(f=>f[c]),hr()),d);return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:i,headerFooterTag:o,scrollerRef:s,FooterComponent:l("Footer"),HeaderComponent:l("Header"),TopItemListComponent:l("TopItemList"),ListComponent:l("List","div"),ItemComponent:l("Item","div"),GroupComponent:l("Group","div"),ScrollerComponent:l("Scroller","div"),EmptyPlaceholder:l("EmptyPlaceholder"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder")}}),g9e=$n(([e,t])=>({...e,...t}),gr(p9e,m9e)),v9e=({height:e})=>de.createElement("div",{style:{height:e}}),y9e={position:Wre(),zIndex:1,overflowAnchor:"none"},b9e={overflowAnchor:"none"},HV=de.memo(function({showTopList:t=!1}){const n=mn("listState"),r=oa("sizeRanges"),i=mn("useWindowScroll"),o=mn("customScrollParent"),s=oa("windowScrollContainerState"),l=oa("scrollContainerState"),c=o||i?s:l,d=mn("itemContent"),f=mn("context"),h=mn("groupContent"),p=mn("trackItemSizes"),g=mn("itemSize"),v=mn("log"),y=oa("gap"),{callbackRef:S}=MGe(r,g,p,t?fv:c,v,y,o),[_,b]=de.useState(0);Xj("deviation",D=>{_!==D&&b(D)});const x=mn("EmptyPlaceholder"),E=mn("ScrollSeekPlaceholder")||v9e,A=mn("ListComponent"),I=mn("ItemComponent"),k=mn("GroupComponent"),O=mn("computeItemKey"),L=mn("isSeeking"),N=mn("groupIndices").length>0,H=mn("paddingTopAddition"),W=mn("scrolledToInitialItem"),z=t?{}:{boxSizing:"border-box",paddingTop:n.offsetTop+H,paddingBottom:n.offsetBottom,marginTop:_,...W?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&x?de.createElement(x,Bo(x,f)):de.createElement(A,{...Bo(A,f),ref:S,style:z,"data-test-id":t?"virtuoso-top-item-list":"virtuoso-item-list"},(t?n.topItems:n.items).map(D=>{const F=D.originalIndex,j=O(F+n.firstItemIndex,D.data,f);return L?de.createElement(E,{...Bo(E,f),key:j,index:D.index,height:D.size,type:D.type||"item",...D.type==="group"?{}:{groupIndex:D.groupIndex}}):D.type==="group"?de.createElement(k,{...Bo(k,f),key:j,"data-index":F,"data-known-size":D.size,"data-item-index":D.index,style:y9e},h(D.index,f)):de.createElement(I,{...Bo(I,f),key:j,"data-index":F,"data-known-size":D.size,"data-item-index":D.index,"data-item-group-index":D.groupIndex,item:D.data,style:b9e},N?d(D.index,D.groupIndex,D.data,f):d(D.index,D.data,f))}))}),x9e={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},rA={width:"100%",height:"100%",position:"absolute",top:0},w9e={width:"100%",position:Wre(),top:0,zIndex:1};function Bo(e,t){if(typeof e!="string")return{context:t}}const _9e=de.memo(function(){const t=mn("HeaderComponent"),n=oa("headerHeight"),r=mn("headerFooterTag"),i=jp(s=>n($d(s,"height"))),o=mn("context");return t?de.createElement(r,{ref:i},de.createElement(t,Bo(t,o))):null}),S9e=de.memo(function(){const t=mn("FooterComponent"),n=oa("footerHeight"),r=mn("headerFooterTag"),i=jp(s=>n($d(s,"height"))),o=mn("context");return t?de.createElement(r,{ref:i},de.createElement(t,Bo(t,o))):null});function Yre({usePublisher:e,useEmitter:t,useEmitterValue:n}){return de.memo(function({style:o,children:s,...l}){const c=e("scrollContainerState"),d=n("ScrollerComponent"),f=e("smoothScrollTargetReached"),h=n("scrollerRef"),p=n("context"),{scrollerRef:g,scrollByCallback:v,scrollToCallback:y}=Are(c,f,d,h);return t("scrollTo",y),t("scrollBy",v),de.createElement(d,{ref:g,style:{...x9e,...o},"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...l,...Bo(d,p)},s)})}function Kre({usePublisher:e,useEmitter:t,useEmitterValue:n}){return de.memo(function({style:o,children:s,...l}){const c=e("windowScrollContainerState"),d=n("ScrollerComponent"),f=e("smoothScrollTargetReached"),h=n("totalListHeight"),p=n("deviation"),g=n("customScrollParent"),v=n("context"),{scrollerRef:y,scrollByCallback:S,scrollToCallback:_}=Are(c,f,d,fv,g);return RGe(()=>(y.current=g||window,()=>{y.current=null}),[y,g]),t("windowScrollTo",_),t("scrollBy",S),de.createElement(d,{style:{position:"relative",...o,...h!==0?{height:h+p}:{}},"data-virtuoso-scroller":!0,...l,...Bo(d,v)},s)})}const E9e=({children:e})=>{const t=de.useContext(Vre),n=oa("viewportHeight"),r=oa("fixedItemHeight"),i=jp(Sre(n,o=>$d(o,"height")));return de.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),de.createElement("div",{style:rA,ref:i,"data-viewport-type":"element"},e)},C9e=({children:e})=>{const t=de.useContext(Vre),n=oa("windowViewportRect"),r=oa("fixedItemHeight"),i=mn("customScrollParent"),o=Gre(n,i);return de.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),de.createElement("div",{ref:o,style:rA,"data-viewport-type":"window"},e)},T9e=({children:e})=>{const t=mn("TopItemListComponent"),n=mn("headerHeight"),r={...w9e,marginTop:`${n}px`},i=mn("context");return de.createElement(t||"div",{style:r,context:i},e)},k9e=de.memo(function(t){const n=mn("useWindowScroll"),r=mn("topItemsIndexes").length>0,i=mn("customScrollParent"),o=i||n?R9e:I9e,s=i||n?C9e:E9e;return de.createElement(o,{...t},r&&de.createElement(T9e,null,de.createElement(HV,{showTopList:!0})),de.createElement(s,null,de.createElement(_9e,null),de.createElement(HV,null),de.createElement(S9e,null)))}),{Component:A9e,usePublisher:oa,useEmitterValue:mn,useEmitter:Xj}=Tre(g9e,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},k9e),I9e=Yre({usePublisher:oa,useEmitterValue:mn,useEmitter:Xj}),R9e=Kre({usePublisher:oa,useEmitterValue:mn,useEmitter:Xj}),P9e=A9e,WV={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},O9e={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:GV,ceil:VV,floor:RC,min:QB,max:Sx}=Math;function M9e(e){return{...O9e,items:e}}function qV(e,t,n){return Array.from({length:t-e+1}).map((r,i)=>{const o=n===null?null:n[i+e];return{index:i+e,data:o}})}function D9e(e,t){return e&&e.column===t.column&&e.row===t.row}function sS(e,t){return e&&e.width===t.width&&e.height===t.height}const L9e=$n(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:i,scrollBy:o,scrollTo:s,smoothScrollTargetReached:l,scrollContainerState:c,footerHeight:d,headerHeight:f},h,p,{propsReady:g,didMount:v},{windowViewportRect:y,useWindowScroll:S,customScrollParent:_,windowScrollContainerState:b,windowScrollTo:x},E])=>{const A=et(0),I=et(0),k=et(WV),O=et({height:0,width:0}),L=et({height:0,width:0}),N=yn(),H=yn(),W=et(0),z=et(null),D=et({row:0,column:0}),F=yn(),j=yn(),V=et(!1),G=et(0),K=et(!0),Y=et(!1);jn(Pe(v,an(G),Ht(([Q,ae])=>!!ae)),()=>{en(K,!1),en(I,0)}),jn(Pe(yi(v,K,L,O,G,Y),Ht(([Q,ae,le,he,,pe])=>Q&&!ae&&le.height!==0&&he.height!==0&&!pe)),([,,,,Q])=>{en(Y,!0),Wj(1,()=>{en(N,Q)}),Eu(Pe(r),()=>{en(n,[0,0]),en(K,!0)})}),_t(Pe(j,Ht(Q=>Q!=null&&Q.scrollTop>0),ru(0)),I),jn(Pe(v,an(j),Ht(([,Q])=>Q!=null)),([,Q])=>{Q&&(en(O,Q.viewport),en(L,Q==null?void 0:Q.item),en(D,Q.gap),Q.scrollTop>0&&(en(V,!0),Eu(Pe(r,Fg(1)),ae=>{en(V,!1)}),en(s,{top:Q.scrollTop})))}),_t(Pe(O,lt(({height:Q})=>Q)),i),_t(Pe(yi(Ut(O,sS),Ut(L,sS),Ut(D,(Q,ae)=>Q&&Q.column===ae.column&&Q.row===ae.row),Ut(r)),lt(([Q,ae,le,he])=>({viewport:Q,item:ae,gap:le,scrollTop:he}))),F),_t(Pe(yi(Ut(A),t,Ut(D,D9e),Ut(L,sS),Ut(O,sS),Ut(z),Ut(I),Ut(V),Ut(K),Ut(G)),Ht(([,,,,,,,Q])=>!Q),lt(([Q,[ae,le],he,pe,ve,ye,xe,,me,be])=>{const{row:Qe,column:qe}=he,{height:at,width:Lt}=pe,{width:Re}=ve;if(xe===0&&(Q===0||Re===0))return WV;if(Lt===0){const It=Gj(be,Q),ct=It===0?Math.max(xe-1,0):It;return M9e(qV(It,ct,ye))}const Fe=Qre(Re,Lt,qe);let it,pt;me?ae===0&&le===0&&xe>0?(it=0,pt=xe-1):(it=Fe*RC((ae+Qe)/(at+Qe)),pt=Fe*VV((le+Qe)/(at+Qe))-1,pt=QB(Q-1,Sx(pt,Fe-1)),it=QB(pt,Sx(0,it))):(it=0,pt=-1);const mt=qV(it,pt,ye),{top:_e,bottom:ze}=XV(ve,he,pe,mt),Ye=VV(Q/Fe),Ne=Ye*at+(Ye-1)*Qe-ze;return{items:mt,offsetTop:_e,offsetBottom:Ne,top:_e,bottom:ze,itemHeight:at,itemWidth:Lt}})),k),_t(Pe(z,Ht(Q=>Q!==null),lt(Q=>Q.length)),A),_t(Pe(yi(O,L,k,D),Ht(([Q,ae,{items:le}])=>le.length>0&&ae.height!==0&&Q.height!==0),lt(([Q,ae,{items:le},he])=>{const{top:pe,bottom:ve}=XV(Q,he,ae,le);return[pe,ve]}),hr(A1)),n);const J=et(!1);_t(Pe(r,an(J),lt(([Q,ae])=>ae||Q!==0)),J);const ie=Ms(Pe(Ut(k),Ht(({items:Q})=>Q.length>0),an(A,J),Ht(([{items:Q},ae,le])=>le&&Q[Q.length-1].index===ae-1),lt(([,Q])=>Q-1),hr())),ce=Ms(Pe(Ut(k),Ht(({items:Q})=>Q.length>0&&Q[0].index===0),ru(0),hr())),ue=Ms(Pe(Ut(k),an(V),Ht(([{items:Q},ae])=>Q.length>0&&!ae),lt(([{items:Q}])=>({startIndex:Q[0].index,endIndex:Q[Q.length-1].index})),hr(Fre),dd(0)));_t(ue,p.scrollSeekRangeChanged),_t(Pe(N,an(O,L,A,D),lt(([Q,ae,le,he,pe])=>{const ve=Bre(Q),{align:ye,behavior:xe,offset:me}=ve;let be=ve.index;be==="LAST"&&(be=he-1),be=Sx(0,be,QB(he-1,be));let Qe=c5(ae,pe,le,be);return ye==="end"?Qe=GV(Qe-ae.height+le.height):ye==="center"&&(Qe=GV(Qe-ae.height/2+le.height/2)),me&&(Qe+=me),{top:Qe,behavior:xe}})),s);const se=Co(Pe(k,lt(Q=>Q.offsetBottom+Q.bottom)),0);return _t(Pe(y,lt(Q=>({width:Q.visibleWidth,height:Q.visibleHeight}))),O),{data:z,totalCount:A,viewportDimensions:O,itemDimensions:L,scrollTop:r,scrollHeight:H,overscan:e,scrollBy:o,scrollTo:s,scrollToIndex:N,smoothScrollTargetReached:l,windowViewportRect:y,windowScrollTo:x,useWindowScroll:S,customScrollParent:_,windowScrollContainerState:b,deviation:W,scrollContainerState:c,footerHeight:d,headerHeight:f,initialItemCount:I,gap:D,restoreStateFrom:j,...p,initialTopMostItemIndex:G,gridState:k,totalListHeight:se,...h,startReached:ce,endReached:ie,rangeChanged:ue,stateChanged:F,propsReady:g,stateRestoreInProgress:V,...E}},gr(Vj,Ro,ww,jre,Zd,qj,Jd));function XV(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{top:0,bottom:0};const o=c5(e,t,n,r[0].index),s=c5(e,t,n,r[r.length-1].index)+i;return{top:o,bottom:s}}function c5(e,t,n,r){const i=Qre(e.width,n.width,t.column),o=RC(r/i),s=o*n.height+Sx(0,o-1)*t.row;return s>0?s+t.row:s}function Qre(e,t,n){return Sx(1,RC((e+n)/(RC(t)+n)))}const N9e=$n(()=>{const e=et(d=>`Item ${d}`),t=et({}),n=et(null),r=et("virtuoso-grid-item"),i=et("virtuoso-grid-list"),o=et(Xre),s=et("div"),l=et(fv),c=(d,f=null)=>Co(Pe(t,lt(h=>h[d]),hr()),f);return{context:n,itemContent:e,components:t,computeItemKey:o,itemClassName:r,listClassName:i,headerFooterTag:s,scrollerRef:l,FooterComponent:c("Footer"),HeaderComponent:c("Header"),ListComponent:c("List","div"),ItemComponent:c("Item","div"),ScrollerComponent:c("Scroller","div"),ScrollSeekPlaceholder:c("ScrollSeekPlaceholder","div")}}),B9e=$n(([e,t])=>({...e,...t}),gr(L9e,N9e)),$9e=de.memo(function(){const t=Sr("gridState"),n=Sr("listClassName"),r=Sr("itemClassName"),i=Sr("itemContent"),o=Sr("computeItemKey"),s=Sr("isSeeking"),l=ll("scrollHeight"),c=Sr("ItemComponent"),d=Sr("ListComponent"),f=Sr("ScrollSeekPlaceholder"),h=Sr("context"),p=ll("itemDimensions"),g=ll("gap"),v=Sr("log"),y=Sr("stateRestoreInProgress"),S=jp(_=>{const b=_.parentElement.parentElement.scrollHeight;l(b);const x=_.firstChild;if(x){const{width:E,height:A}=x.getBoundingClientRect();p({width:E,height:A})}g({row:YV("row-gap",getComputedStyle(_).rowGap,v),column:YV("column-gap",getComputedStyle(_).columnGap,v)})});return y?null:de.createElement(d,{ref:S,className:n,...Bo(d,h),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-test-id":"virtuoso-item-list"},t.items.map(_=>{const b=o(_.index,_.data,h);return s?de.createElement(f,{key:b,...Bo(f,h),index:_.index,height:t.itemHeight,width:t.itemWidth}):de.createElement(c,{...Bo(c,h),className:r,"data-index":_.index,key:b},i(_.index,_.data,h))}))}),F9e=de.memo(function(){const t=Sr("HeaderComponent"),n=ll("headerHeight"),r=Sr("headerFooterTag"),i=jp(s=>n($d(s,"height"))),o=Sr("context");return t?de.createElement(r,{ref:i},de.createElement(t,Bo(t,o))):null}),z9e=de.memo(function(){const t=Sr("FooterComponent"),n=ll("footerHeight"),r=Sr("headerFooterTag"),i=jp(s=>n($d(s,"height"))),o=Sr("context");return t?de.createElement(r,{ref:i},de.createElement(t,Bo(t,o))):null}),j9e=({children:e})=>{const t=de.useContext(qre),n=ll("itemDimensions"),r=ll("viewportDimensions"),i=jp(o=>{r(o.getBoundingClientRect())});return de.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),de.createElement("div",{style:rA,ref:i},e)},U9e=({children:e})=>{const t=de.useContext(qre),n=ll("windowViewportRect"),r=ll("itemDimensions"),i=Sr("customScrollParent"),o=Gre(n,i);return de.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),de.createElement("div",{ref:o,style:rA},e)},H9e=de.memo(function({...t}){const n=Sr("useWindowScroll"),r=Sr("customScrollParent"),i=r||n?G9e:W9e,o=r||n?U9e:j9e;return de.createElement(i,{...t},de.createElement(o,null,de.createElement(F9e,null),de.createElement($9e,null),de.createElement(z9e,null)))}),{Component:eVe,usePublisher:ll,useEmitterValue:Sr,useEmitter:Jre}=Tre(B9e,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},H9e),W9e=Yre({usePublisher:ll,useEmitterValue:Sr,useEmitter:Jre}),G9e=Kre({usePublisher:ll,useEmitterValue:Sr,useEmitter:Jre});function YV(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,Ds.WARN),t==="normal"?0:parseInt(t??"0",10)}const V9e=R.forwardRef(({style:e,children:t,...n},r)=>{const i=R.useRef(null),{palette:o,spacing:s}=Rn(),l=qx({".os-scrollbar":{visibility:"visible",opacity:1},".os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle":{"min-height":s(12)},"div.os-scrollbar-vertical > div.os-scrollbar-track":{height:`calc(100% - ${s(6)})`,marginTop:s(6)}}),[c]=EQ({options:{overflow:{x:"hidden",y:"scroll"},scrollbars:{autoHide:"move",theme:o.mode==="dark"?"os-theme-light":"os-theme-dark"}}});R.useEffect(()=>{typeof r!="function"&&(r!=null&&r.current)&&(i!=null&&i.current)&&c({target:i.current,elements:{viewport:r.current}})},[c]);const d=R.useCallback(f=>{f&&r&&(typeof r=="function"?r(f):r.current=f)},[r]);return C.jsx("div",{ref:i,style:e,className:l,children:C.jsx("div",{ref:d,...n,children:t})})});function q9e({items:e=[],renderItem:t,listOptions:n,placeholder:r,...i}){return C.jsx(dt,{...i,children:C.jsx(P9e,{components:{Scroller:V9e},totalCount:e.length,itemContent:o=>t==null?void 0:t(e[o],o),...n})})}function X9e({event:e,hidden:t}){return C.jsxs(wFe,{children:[te.startCase(`${(e==null?void 0:e.type)??"unsupported"} #${(e==null?void 0:e.id)??"-"}`)," ",t&&C.jsx(sxe,{sx:{opacity:.56,fontSize:12,ml:1,transform:"translateY(1.75px)"}})]})}function Y9e({event:e,index:t,selected:n,...r}){const{spacing:i}=Rn();return C.jsx(Gd,{title:C.jsx(dt,{p:1,children:C.jsx(rC,{event:e,flexDirection:"column"})}),followCursor:!0,children:C.jsxs(aF,{selected:n,...r,sx:{borderLeft:`${i(.5)} solid ${o1(e==null?void 0:e.type)}`,...r.sx},children:[C.jsx(xd,{children:C.jsx(zt,{variant:"body2",children:t})}),C.jsx(zl,{sx:{overflow:"hidden"},primary:C.jsx(X9e,{event:e,hidden:!1}),secondary:C.jsx(rC,{event:te.pick(e,"f","g","pId")})})]})})}const K9e=C.jsx(Au,{orientation:"vertical",flexItem:!0,sx:{m:1}}),Q9e=e=>Number(e.replace(/px$/,""));function J9e(){const{spacing:e}=Rn(),{controls:t,onChange:n,state:r}=qd(),i=R.useRef(null),{key:o,setKey:s,layers:l,layer:c}=vp(),{step:d,playing:f,pause:h,stepTo:p}=oj(o),g=R.useMemo(()=>{var v;if(c)return R.createElement(uw[((v=c==null?void 0:c.source)==null?void 0:v.type)??""].steps,{layer:c})},[c]);return R.useEffect(()=>{f||te.delay(()=>{var v,y;return(y=(v=i==null?void 0:i.current)==null?void 0:v.scrollToIndex)==null?void 0:y.call(v,{index:d,align:"start",behavior:"smooth",offset:-Q9e(e(6+2))})},150)},[d,f,e]),C.jsxs(Ln,{onChange:n,stack:r,children:[C.jsx(Ln.Content,{children:C.jsx(bn,{vertical:!0,alignItems:"center",children:g?f?C.jsx(Uh,{icon:C.jsx(U1,{}),label:C.jsxs(C.Fragment,{children:[C.jsx(zt,{children:"Running"}),C.jsx(j4,{onClick:()=>h(),children:"Pause"})]})}):R.cloneElement(g,{children:v=>c?v.length?C.jsx(q9e,{sx:{width:"100%",height:"100%"},items:v,listOptions:{ref:i,defaultItemHeight:80,overscan:0},renderItem:(y,S)=>C.jsxs(dt,{sx:{height:e(S?10:16),pt:S?0:e(6)},children:[C.jsx(Y9e,{event:y,index:S,selected:S===d,sx:{height:"100%"},onClick:()=>p(S)}),C.jsx(Au,{variant:"inset"})]})}):C.jsx(Uh,{icon:C.jsx(ES,{}),label:`${_s(c)} has no steps to display`}):C.jsx(Uh,{icon:C.jsx(ES,{}),label:"Steps"})}):C.jsx(Uh,{icon:C.jsx(ES,{}),label:"Steps"})})}),C.jsxs(Ln.Options,{children:[C.jsx(Is,{icon:C.jsx(W1,{}),label:"Layer",value:o,items:te.map(l,v=>({id:v.key,name:_s(v)})),onChange:s,showArrow:!0}),K9e,C.jsx(KNe,{layer:c})]}),C.jsx(Ln.Extras,{children:t})]})}const Z9e=e=>e?48:36,e7e=8;function t7e({trigger:e,items:t,value:n,onChange:r,placeholder:i="Select Options",defaultChecked:o}){const s=lz(),l=te.max([te.findIndex(t,({value:c})=>!!(n!=null&&n[c])),0])??0;return C.jsx(Ap,{variant:"popover",children:c=>C.jsxs(C.Fragment,{children:[C.jsx(Gd,{title:i,children:C.jsx("span",{children:e==null?void 0:e(dk(c))})}),C.jsx(kp,{...rw(c),anchorOrigin:{horizontal:"center",vertical:-Z9e(s)*l-e7e},transformOrigin:{vertical:"top",horizontal:"center"},children:te.map(t,({value:d,label:f,disabled:h})=>C.jsxs(du,{disabled:h,onClick:()=>{r==null||r({...n,[d]:!((n==null?void 0:n[d])??o)})},children:[C.jsx(xd,{children:C.jsx(vme,{sx:{p:0},checked:!!((n==null?void 0:n[d])??o)})}),f]},d))})]})})}function n7e({label:e,value:t,onChange:n,items:r,icon:i,showArrow:o,defaultChecked:s}){var d;const l=te.filter(r,({id:f})=>!!((t==null?void 0:t[f])??s)),c=l.length?l.length===1?(d=te.head(l))==null?void 0:d.name:`${l.length} Selected`:e;return C.jsx(t7e,{defaultChecked:!0,placeholder:te.startCase(e),trigger:f=>C.jsx(Od,{...f,disabled:!(r!=null&&r.length),icon:i,showArrow:o,children:c}),items:te.map(r,({id:f,name:h,description:p,hidden:g})=>({value:f,label:C.jsxs(C.Fragment,{children:[C.jsx(zt,{children:h}),C.jsx(Kr,{}),C.jsx(zt,{variant:"body2",color:"text.secondary",children:p})]}),disabled:g})),value:t,onChange:n})}const KV=C.jsx(Au,{orientation:"vertical",flexItem:!0,sx:{m:1}});function r7e(){var p,g,v,y;const{controls:e,onChange:t,state:n}=qd(),[r]=Pk(),[{layers:i}]=Ip(),[o,s]=R.useState({}),l=R.useMemo(()=>te.filter(i,S=>(o==null?void 0:o[S.key])??!0),[o,i]),[c,d]=R.useState(),f=R.useMemo(()=>te.head(r),[r]),h=n!=null&&n.renderer&&n.renderer!=="internal:auto"?n.renderer:(g=(p=f==null?void 0:f.renderer)==null?void 0:p.meta)==null?void 0:g.id;return C.jsxs(Ln,{onChange:t,stack:n,children:[C.jsx(Ln.Content,{children:C.jsx(bn,{children:C.jsx(hk,{children:S=>C.jsx(dt,{children:C.jsx(LNe,{...S,layers:l,renderer:h,rendererRef:d})})})})}),C.jsx(Ln.Options,{children:C.jsxs(Rd,{direction:"row",children:[C.jsx(Is,{label:"Renderer",icon:C.jsx(Ybe,{}),value:(n==null?void 0:n.renderer)??"internal:auto",onChange:S=>t==null?void 0:t({renderer:S}),items:[{id:"internal:auto",name:`Auto (${((y=(v=f==null?void 0:f.renderer)==null?void 0:v.meta)==null?void 0:y.name)??"None"})`},...te.map(r,({renderer:S})=>({id:S.meta.id,name:S.meta.name,description:S.meta.id}))],showArrow:!0}),KV,C.jsx(n7e,{defaultChecked:!0,label:"Layers",icon:C.jsx(W1,{}),value:o,onChange:s,items:te.map(i,S=>({id:S.key,name:_s(S)})),showArrow:!0}),KV,C.jsx(Od,{disabled:!c,onClick:()=>{c==null||c.fitCamera()},icon:C.jsx(Jbe,{}),children:"Fit"}),C.jsx(Od,{disabled:!c,onClick:()=>{c==null||c.initialCamera()},icon:C.jsx(nxe,{}),children:"1:1"})]})}),C.jsx(Ln.Extras,{children:e})]})}const u5={viewport:{id:"viewport",name:"Viewport",icon:C.jsx(UK,{}),content:r7e},tree:{id:"tree",name:"Tree",icon:C.jsx(BK,{}),content:TNe},steps:{id:"steps",name:"Steps",icon:C.jsx(ES,{}),content:J9e},info:{id:"info",name:"Logs",icon:C.jsx(zK,{}),content:ZAe},layers:{id:"layers",name:"Layers",icon:C.jsx(W1,{}),content:xFe},debug:{id:"debug",name:"Debugger",icon:C.jsx(Qbe,{}),content:JAe},settings:{id:"settings",name:"Settings",icon:C.jsx(mxe,{}),content:bGe},about:{id:"about",name:"About",icon:C.jsx(axe,{}),content:a_e}},[i7e,o7e]=Ql({view:{type:"branch",key:Mo(),orientation:"horizontal",children:[{size:75,type:"branch",key:Mo(),orientation:"horizontal",children:[{type:"leaf",size:25,key:Mo(),content:{type:"layers"}},{size:75,type:"branch",key:Mo(),orientation:"vertical",children:[{type:"leaf",size:75,key:Mo(),content:{type:"viewport"}},{type:"leaf",size:25,key:Mo(),content:{type:"info"}}]}]},{size:25,type:"leaf",key:Mo(),content:{type:"steps"}}]}});function s7e(){const[e]=OZ(),t=cz(),n=te.values(e);return C.jsx(JT,{sx:{...t,zIndex:r=>r.zIndex.tooltip+1,WebkitAppRegion:"drag"},open:!!n.length,children:C.jsxs(Rd,{alignItems:"center",spacing:4,children:[C.jsx(U1,{}),n.map((r,i)=>C.jsx(zt,{variant:"body2",color:"textSecondary",children:r},i))]})})}var Zre={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Nt,function(){return function n(r,i,o){var s=window,l="application/octet-stream",c=o||l,d=r,f=!i&&!o&&d,h=document.createElement("a"),p=function(k){return String(k)},g=s.Blob||s.MozBlob||s.WebKitBlob||p,v=i||"download",y,S;if(g=g.call?g.bind(s):Blob,String(this)==="true"&&(d=[d,c],c=d[0],d=d[1]),f&&f.length<2048&&(v=f.split("/").pop().split("?")[0],h.href=f,h.href.indexOf(f)!==-1)){var _=new XMLHttpRequest;return _.open("GET",f,!0),_.responseType="blob",_.onload=function(k){n(k.target.response,v,l)},setTimeout(function(){_.send()},0),_}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(d))if(d.length>1024*1024*1.999&&g!==p)d=A(d),c=d.type||l;else return navigator.msSaveBlob?navigator.msSaveBlob(A(d),v):I(d);else if(/([\x80-\xff])/.test(d)){var b=0,x=new Uint8Array(d.length),E=x.length;for(b;b0?`text-shadow: ${i} ${this.dropShadowBlur}px ${e}`:`text-shadow: ${i} ${e}`}reset(){Object.assign(this,mm.defaultOptions)}onBeforeDraw(){const{fontsDirty:e}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&e?new Promise(t=>setTimeout(t,100)):Promise.resolve()}get isSafari(){const{userAgent:e}=tt.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(e)}set fillGradientStops(e){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(e){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(e){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(e){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(e){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(e){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(e){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};let Sx=mm;Sx.availableFonts={};Sx.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};const gm=class extends jp{constructor(e="",t={}){super(ht.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this._loading=!1,this.localStyleID=-1,this.dirty=!1,this.ownsStyle=!1;const n=new Image,r=ht.from(n,{scaleMode:tt.SCALE_MODE,resourceOptions:{autoLoad:!1}});r.orig=new Kt,r.trim=new Kt,this.texture=r;const i="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xhtml",s=document.createElementNS(i,"svg"),l=document.createElementNS(i,"foreignObject"),c=document.createElementNS(o,"div"),d=document.createElementNS(o,"style");l.setAttribute("width","10000"),l.setAttribute("height","10000"),l.style.overflow="hidden",s.appendChild(l),this.maxWidth=gm.defaultMaxWidth,this.maxHeight=gm.defaultMaxHeight,this._domElement=c,this._styleElement=d,this._svgRoot=s,this._foreignObject=l,this._foreignObject.appendChild(d),this._foreignObject.appendChild(c),this._image=n,this._loadImage=new Image,this._autoResolution=gm.defaultAutoResolution,this._resolution=gm.defaultResolution??tt.RESOLUTION,this.text=e,this.style=t}measureText(e){var l,c;const{text:t,style:n,resolution:r}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},e);Object.assign(this._domElement,{innerHTML:t,style:n.toCSS(r)}),this._styleElement.textContent=n.toGlobalCSS(),document.body.appendChild(this._svgRoot);const i=this._domElement.getBoundingClientRect();this._svgRoot.remove();const o=Math.min(this.maxWidth,Math.ceil(i.width)),s=Math.min(this.maxHeight,Math.ceil(i.height));return this._svgRoot.setAttribute("width",o.toString()),this._svgRoot.setAttribute("height",s.toString()),t!==this._text&&(this._domElement.innerHTML=this._text),n!==this._style&&(Object.assign(this._domElement,{style:(l=this._style)==null?void 0:l.toCSS(r)}),this._styleElement.textContent=(c=this._style)==null?void 0:c.toGlobalCSS()),{width:o+n.padding*2,height:s+n.padding*2}}async updateText(e=!0){const{style:t,_image:n,_loadImage:r}=this;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),!this.dirty&&e)return;const{width:i,height:o}=this.measureText();n.width=r.width=Math.ceil(Math.max(1,i)),n.height=r.height=Math.ceil(Math.max(1,o)),this._loading||(this._loading=!0,await new Promise(s=>{r.onload=async()=>{await t.onBeforeDraw(),this._loading=!1,n.src=r.src,r.onload=null,r.src="",this.updateTexture(),s()};const l=new XMLSerializer().serializeToString(this._svgRoot);r.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(l)}`}))}get source(){return this._image}updateTexture(){const{style:e,texture:t,_image:n,resolution:r}=this,{padding:i}=e,{baseTexture:o}=t;t.trim.width=t._frame.width=n.width/r,t.trim.height=t._frame.height=n.height/r,t.trim.x=-i,t.trim.y=-i,t.orig.width=t._frame.width-i*2,t.orig.height=t._frame.height-i*2,this._onTextureUpdate(),o.setRealSize(n.width,n.height,r),this.dirty=!1}_render(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),super._render(e)}_renderCanvas(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),super._renderCanvas(e)}getLocalBounds(e){return this.updateText(!0),super.getLocalBounds(e)}_calculateBounds(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)}_onStyleChange(){this.dirty=!0}destroy(e){var n,r,i,o,s;typeof e=="boolean"&&(e={children:e}),e=Object.assign({},gm.defaultDestroyOptions,e),super.destroy(e);const t=null;this.ownsStyle&&((n=this._style)==null||n.cleanFonts()),this._style=t,(r=this._svgRoot)==null||r.remove(),this._svgRoot=t,(i=this._domElement)==null||i.remove(),this._domElement=t,(o=this._foreignObject)==null||o.remove(),this._foreignObject=t,(s=this._styleElement)==null||s.remove(),this._styleElement=t,this._loadImage.src="",this._loadImage.onload=null,this._loadImage=t,this._image.src="",this._image=t}get width(){return this.updateText(!0),Math.abs(this.scale.x)*this._image.width/this.resolution}set width(e){this.updateText(!0);const t=dd(this.scale.x)||1;this.scale.x=t*e/this._image.width/this.resolution,this._width=e}get height(){return this.updateText(!0),Math.abs(this.scale.y)*this._image.height/this.resolution}set height(e){this.updateText(!0);const t=dd(this.scale.y)||1;this.scale.y=t*e/this._image.height/this.resolution,this._height=e}get style(){return this._style}set style(e){this._style!==e&&(e=e||{},e instanceof Sx?(this.ownsStyle=!1,this._style=e):e instanceof Cu?(console.warn("[HTMLText] Cloning TextStyle, if this is not what you want, use HTMLTextStyle"),this.ownsStyle=!0,this._style=Sx.from(e)):(this.ownsStyle=!0,this._style=new Sx(e)),this.localStyleID=-1,this.dirty=!0)}get text(){return this._text}set text(e){e=String(e===""||e===null||e===void 0?" ":e),e=this.sanitiseText(e),this._text!==e&&(this._text=e,this.dirty=!0)}get resolution(){return this._resolution}set resolution(e){this._autoResolution=!1,this._resolution!==e&&(this._resolution=e,this.dirty=!0)}sanitiseText(e){return e.replace(/
/gi,"
").replace(/
/gi,"
").replace(/ /gi," ")}};let qk=gm;qk.defaultDestroyOptions={texture:!0,children:!1,baseTexture:!0};qk.defaultMaxWidth=2024;qk.defaultMaxHeight=2024;qk.defaultAutoResolution=!0;function VUe(e,t){return{constructor:e,meta:t}}function qUe(e,t,n,r,i){Ine(e,t,n||0,r||e.length-1,i||XUe)}function Ine(e,t,n,r,i){for(;r>n;){if(r-n>600){var o=r-n+1,s=t-n+1,l=Math.log(o),c=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2<0?-1:1),f=Math.max(n,Math.floor(t-s*c/o+d)),h=Math.min(r,Math.floor(t+(o-s)*c/o+d));Ine(e,t,f,h,i)}var p=e[t],g=n,v=r;for(_b(e,n,t),i(e[r],p)>0&&_b(e,n,r);g0;)v--}i(e[n],p)===0?_b(e,n,v):(v++,_b(e,v,r)),v<=t&&(n=v+1),t<=v&&(r=v-1)}}function _b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function XUe(e,t){return et?1:0}class YUe{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(t){let n=this.data;const r=[];if(!Y_(t,n))return r;const i=this.toBBox,o=[];for(;n;){for(let s=0;s=0&&o[n].children.length>this._maxEntries;)this._split(o,n),n--;this._adjustParentBBoxes(i,o,n)}_split(t,n){const r=t[n],i=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,i);const s=this._chooseSplitIndex(r,o,i),l=vm(r.children.splice(s,r.children.length-s));l.height=r.height,l.leaf=r.leaf,tm(r,this.toBBox),tm(l,this.toBBox),n?t[n-1].children.push(l):this._splitRoot(r,l)}_splitRoot(t,n){this.data=vm([t,n]),this.data.height=t.height+1,this.data.leaf=!1,tm(this.data,this.toBBox)}_chooseSplitIndex(t,n,r){let i,o=1/0,s=1/0;for(let l=n;l<=r-n;l++){const c=Gb(t,0,l,this.toBBox),d=Gb(t,l,r,this.toBBox),f=e8e(c,d),h=xB(c)+xB(d);f=n;d--){const f=t.children[d];Vb(l,t.leaf?o(f):f),c+=X_(l)}return c}_adjustParentBBoxes(t,n,r){for(let i=r;i>=0;i--)Vb(n[i],t)}_condense(t){for(let n=t.length-1,r;n>=0;n--)t[n].children.length===0?n>0?(r=t[n-1].children,r.splice(r.indexOf(t[n]),1)):this.clear():tm(t[n],this.toBBox)}}function KUe(e,t,n){if(!n)return t.indexOf(e);for(let r=0;r=e.minX&&t.maxY>=e.minY}function vm(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function $7(e,t,n,r,i){const o=[t,n];for(;o.length;){if(n=o.pop(),t=o.pop(),n-t<=r)continue;const s=t+Math.ceil((n-t)/r/2)*r;qUe(e,s,t,n,i),o.push(t,s,s,n)}}class t8e extends YUe{toBBox(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}compareMinX(t,n){return t.left-n.left}compareMinY(t,n){return t.top-n.top}}const F7={screenSize:{width:1,height:1},workerCount:4,workerIndex:0,tileResolution:{width:64,height:64},tileSubdivision:0,refreshInterval:1e3/60,animationDuration:150,debounceInterval:1e3/60,backgroundColor:"#ffffff",accentColor:"#333333",dynamicResolution:{intervalMs:5e3,increment:.25,maxScale:2,minScale:1,dtMax:1.5,dtMin:1.1}};var Pne={},CC=Bt&&Bt.__assign||function(){return CC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?1:-1}),_B}var h8e=d8e()?Math.sign:f8e(),p8e=h8e,m8e=Math.abs,g8e=Math.floor,v8e=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:p8e(e)*g8e(m8e(e)))},y8e=v8e,b8e=Math.max,x8e=function(e){return b8e(0,y8e(e))},One=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},w8e=uv,Mne=function(e){if(!w8e(e))throw new TypeError("Cannot use null or undefined");return e},_8e={exports:{}},S8e=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},SB,j7;function E8e(){return j7||(j7=1,SB=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),SB}var EB,U7;function C8e(){if(U7)return EB;U7=1;var e=uv,t=Object.keys;return EB=function(n){return t(e(n)?Object(n):n)},EB}var CB,H7;function T8e(){return H7||(H7=1,CB=E8e()()?Object.keys:C8e()),CB}var TB,W7;function k8e(){if(W7)return TB;W7=1;var e=T8e(),t=Mne,n=Math.max;return TB=function(r,i){var o,s,l=n(arguments.length,2),c;for(r=Object(t(r)),c=function(d){try{r[d]=i[d]}catch(f){o||(o=f)}},s=1;s-1},AB}var G8e=H8e()?String.prototype.contains:W8e(),GS=Bne,V7=U8e,$ne=Dne,Fne=u8e,Ex=G8e,V8e=Nne.exports=function(e,t){var n,r,i,o,s;return arguments.length<2||typeof e!="string"?(o=t,t=e,e=null):o=arguments[2],GS(e)?(n=Ex.call(e,"c"),r=Ex.call(e,"e"),i=Ex.call(e,"w")):(n=i=!0,r=!1),s={value:t,configurable:n,enumerable:r,writable:i},o?$ne(Fne(o),s):s};V8e.gs=function(e,t,n){var r,i,o,s;return typeof e!="string"?(o=n,n=t,t=e,e=null):o=arguments[3],GS(t)?V7(t)?GS(n)?V7(n)||(o=n,n=void 0):n=void 0:(o=t,t=n=void 0):t=void 0,GS(e)?(r=Ex.call(e,"c"),i=Ex.call(e,"e")):(r=!0,i=!1),s={get:t,set:n,configurable:r,enumerable:i},o?$ne(Fne(o),s):s};var vw=Nne.exports,q3={exports:{}};(function(e,t){var n=vw,r=One,i=Function.prototype.apply,o=Function.prototype.call,s=Object.create,l=Object.defineProperty,c=Object.defineProperties,d=Object.prototype.hasOwnProperty,f={configurable:!0,enumerable:!1,writable:!0},h,p,g,v,y,S,_;h=function(b,x){var E;return r(x),d.call(this,"__ee__")?E=this.__ee__:(E=f.value=s(null),l(this,"__ee__",f),f.value=null),E[b]?typeof E[b]=="object"?E[b].push(x):E[b]=[E[b],x]:E[b]=x,this},p=function(b,x){var E,A;return r(x),A=this,h.call(this,b,E=function(){g.call(A,b,E),i.call(x,this,arguments)}),E.__eeOnceListener__=x,this},g=function(b,x){var E,A,R,k;if(r(x),!d.call(this,"__ee__"))return this;if(E=this.__ee__,!E[b])return this;if(A=E[b],typeof A=="object")for(k=0;R=A[k];++k)(R===x||R.__eeOnceListener__===x)&&(A.length===2?E[b]=A[k?0:1]:A.splice(k,1));else(A===x||A.__eeOnceListener__===x)&&delete E[b];return this},v=function(b){var x,E,A,R,k;if(d.call(this,"__ee__")&&(R=this.__ee__[b],!!R))if(typeof R=="object"){for(E=arguments.length,k=new Array(E-1),x=1;x=55296&&E<=56319&&(O+=p[++S])),O=g?d.call(g,v,O,_):O,y?(f.value=O,h(b,_,f)):b[_]=O,++_;x=_}}if(x===void 0)for(x=r(p.length),y&&(b=new y(x)),S=0;S=6&&(n-=6),Ct(n<1?255*((t-e)*n+e):n<3?255*t:n<4?255*((t-e)*(4-n)+e):255*e)},Bi=function(e,t,n){t/=100;var r=(n/=100)<=.5?n*(t+1):n+t-n*t,i=2*n-r;return{r:VB(i,r,(e/=60)+2),g:VB(i,r,e),b:VB(i,r,e-2)}},Pj=function(e,t,n,r){return{r:Ct(255*(1-e)*(r=1-r)),g:Ct(255*(1-t)*r),b:Ct(255*(1-n)*r)}},Gne=function(e,t,n){e/=255,t/=255,n/=255;var r=1-Math.max(e,t,n),i=1-r,o=i&&(i-t)/i,s=i&&(i-n)/i;return{c:Ct(100*(i&&(i-e)/i)),m:Ct(100*o),y:Ct(100*s),k:Ct(100*r)}},Fg=function(e,t,n,r){r===void 0&&(r=1),e/=255,t/=255,n/=255,r=Math.min(r,1);var i=Math.max(e,t,n),o=Math.min(e,t,n),s=i-o,l=0,c=0,d=(i+o)/2;if(s!==0){switch(i){case e:l=(t-n)/s%6;break;case t:l=(n-e)/s+2;break;case n:l=(e-t)/s+4}(l=Ct(60*l))<0&&(l+=360),c=s/(1-Math.abs(2*d-1))}return{h:l,s:Ct(100*c),l:Ct(100*d),a:r}},uV=function(e,t){if(e<0&&(e+=360),e>360&&(e-=360),e===360||e===0)return e;var n=[[0,120],[120,180],[180,240],[240,360]],r=[[0,60],[60,120],[120,240],[240,360]],i=t?r:n,o=0,s=0,l=0,c=0;return(t?n:r).find(function(d,f){return e>=d[0]&&e360||e<0)&&(e-=360*Math.floor(e/360)),e},So=function(e){return typeof e=="string"&&(e=dv.test(e)?Yk(e)/100:+e),isNaN(+e)||e>1?1:Ct(e)},fv=function(e,t,n){return t.reduce(function(r,i){return X3(X3([],r,!0),[sn(sn({},e),{h:n===Lo.ADDITIVE?T1(e.h+i):T1(uV(uV(e.h,!1)+i,!0))})],!1)},[sn({},e)])},vHe=function(e,t){return fv(e,[30,-30],t)},yHe=function(e,t){return fv(e,[180],t)},bHe=function(e,t){return fv(e,[150,-150],t)},xHe=function(e,t){return fv(e,[120,-120],t)},wHe=function(e,t){return fv(e,[60,-120,180],t)},_He=function(e,t){return fv(e,[90,-90,180],t)},Xs=function(e){return typeof e=="string"?function(t){var n;if(Object.keys(qt).some(function(r){if(qb[r].test(t))return n=r,!0}),!n&&~Hne.indexOf(t)&&(n=qt.HEX),!n)throw new Error(mHe);return n}(e):function(t){var n,r=!1,i=Wne(Object.keys(t));if(Y3[i]&&(n=Y3[i]),n&&n===qt.RGB){var o=Object.entries(t).some(function(l){return!K3.test("".concat(l[1]))}),s=Object.entries(t).some(function(l){return!(dv.test("".concat(l[1]))||!K3.test("".concat(l[1]))&&!isNaN(+l[1])&&+l[1]<=255)});o&&s&&(r=!0),o||(n=qt.HEX)}if(!n||r)throw new Error(gHe);return n}(e)},SHe=((Cb={})[qt.HEX]=function(e){var t=(~Hne.indexOf(e)?TC[e]:e).match(qb.HEX),n={r:K_(t[1]||t[5]),g:K_(t[2]||t[6]),b:K_(t[3]||t[7])},r=t[4]||t[8];return r!==void 0&&(n.a=K_(r)/255),n},Cb[qt.RGB]=function(e){var t=e.match(qb.RGB),n=Vh(t[1]||t[5]),r=Vh(t[2]||t[6]),i=Vh(t[3]||t[7]),o=t[4]||t[8],s={r:Math.min(n,255),g:Math.min(r,255),b:Math.min(i,255)};return o!==void 0&&(s.a=So(o)),s},Cb[qt.HSL]=function(e){var t=e.match(qb.HSL),n=T1(t[1]||t[5]),r=kC(t[2]||t[6]),i=kC(t[3]||t[7]),o=t[4]||t[8],s=Bi(n,r,i);return o!==void 0&&(s.a=So(o)),s},Cb[qt.CMYK]=function(e){var t=e.match(qb.CMYK),n=hd(t[1]||t[6]),r=hd(t[2]||t[7]),i=hd(t[3]||t[8]),o=hd(t[4]||t[9]),s=t[5]||t[10],l=Pj(n,r,i,o);return s!==void 0&&(l.a=So(s)),l},Cb),EHe=((Tb={})[qt.HEX]=function(e){var t={r:Vh("".concat(e.r)),g:Vh("".concat(e.g)),b:Vh("".concat(e.b))};return Ji(e,"a")&&(t.a=Math.min(Vh("".concat(e.a),!0),1)),t},Tb[qt.RGB]=function(e){return this.HEX(e)},Tb[qt.HSL]=function(e){var t=kC("".concat(e.s)),n=kC("".concat(e.l)),r=Bi(T1(e.h),t,n);return Ji(e,"a")&&(r.a=So(e.a)),r},Tb[qt.CMYK]=function(e){var t=hd("".concat(e.c)),n=hd("".concat(e.m)),r=hd("".concat(e.y)),i=hd("".concat(e.k)),o=Pj(t,n,r,i);return Ji(e,"a")&&(o.a=So(e.a)),o},Tb),Ep=function(e,t){return t===void 0&&(t=Xs(e)),typeof e=="string"?SHe[t](e):EHe[t](e)},rn=((Jc={})[qt.HEX]=function(e){return{r:Q_(e.r),g:Q_(e.g),b:Q_(e.b)}},Jc.HEXA=function(e){var t=rn.HEX(e);return t.a=Ji(e,"a")?Q_(255*e.a):"0xFF",t},Jc[qt.RGB]=function(e,t){return Ji(e,"a")&&delete e.a,rp(e,t)},Jc.RGBA=function(e,t){return e.a=Ji(e,"a")?Ct(e.a):1,rp(e,t)},Jc[qt.HSL]=function(e,t){var n=Fg(e.r,e.g,e.b);return delete n.a,jm(n,t)},Jc.HSLA=function(e,t){var n=rn.HSL(e,t);return n.a=Ji(e,"a")?Ct(e.a,t):1,n},Jc[qt.CMYK]=function(e,t){return CHe(Gne(e.r,e.g,e.b),t)},Jc.CMYKA=function(e,t){var n=rn.CMYK(e,t);return n.a=Ji(e,"a")?Ct(e.a,t):1,n},Jc),dV=function(e,t,n,r){var i=Xs(e),o=typeof e=="string",s=Ep(e,i),l=typeof e=="string"&&Ji(s,"a")||typeof e!="string"&&Ji(e,"a"),c=Fg(s.r,s.g,s.b,s.a);l||delete c.a;var d=n?c.l/(t+1):(100-c.l)/(t+1),f=Array(t).fill(null).map(function(h,p){return sn(sn({},c),{l:c.l+d*(p+1)*(1-2*+n)})});switch(i){case qt.HEX:default:return f.map(function(h){var p=Bi(h.h,h.s,h.l);return l&&(p.a=h.a),o?l?tn.HEX(rp(sn(sn({},p),{a:Ct(255*p.a)}),r)):tn.HEX(rp(p,r)):l?rn.HEXA(p):rn.HEX(p)});case qt.RGB:return f.map(function(h){var p=Bi(h.h,h.s,h.l);return l&&(p.a=h.a),o?tn.RGB(rp(p,r)):l?rn.RGBA(p,r):rn.RGB(p,r)});case qt.HSL:return f.map(function(h){return o?tn.HSL(jm(h,r)):l?rn.HSLA(sn(sn({},Bi(h.h,h.s,h.l)),{a:h.a}),r):rn.HSL(Bi(h.h,h.s,h.l),r)})}},nm=((wh={buildHarmony:function(e,t,n,r){var i=Xs(e),o=Ep(e,i),s=Fg(o.r,o.g,o.b,o.a),l=typeof e=="string"&&Ji(o,"a")||typeof e!="string"&&Ji(e,"a"),c=typeof e=="string";switch(i){case qt.HEX:default:return l?this.HEXA(jm(s,0),t,n,c):this.HEX(jm(s,0),t,n,c);case qt.HSL:return l?this.HSLA(s,t,n,c,r):this.HSL(s,t,n,c,r);case qt.RGB:return l?this.RGBA(s,t,n,c,r):this.RGB(s,t,n,c,r)}}})[qt.HEX]=function(e,t,n,r){return t(e,n).map(function(i){return r?tn.HEX(Bi(i.h,i.s,i.l)):rn.HEX(Bi(i.h,i.s,i.l))})},wh.HEXA=function(e,t,n,r){return t(e,n).map(function(i){return r?tn.HEX(sn(sn({},Bi(i.h,i.s,i.l)),{a:255*So(i.a)})):rn.HEXA(sn(sn({},Bi(i.h,i.s,i.l)),{a:So(i.a)}))})},wh[qt.RGB]=function(e,t,n,r,i){return t(e,n).map(function(o){return r?tn.RGB(rp(Bi(o.h,o.s,o.l),i)):rn.RGB(Bi(o.h,o.s,o.l),i)})},wh.RGBA=function(e,t,n,r,i){return t(e,n).map(function(o){return r?tn.RGB(rp(sn(sn({},Bi(o.h,o.s,o.l)),{a:So(o.a)}),i)):rn.RGBA(sn(sn({},Bi(o.h,o.s,o.l)),{a:So(o.a)}),i)})},wh[qt.HSL]=function(e,t,n,r,i){return t(e,n).map(function(o){return r?tn.HSL(jm({h:o.h,s:o.s,l:o.l},i)):rn.HSL(Bi(o.h,o.s,o.l),i)})},wh.HSLA=function(e,t,n,r,i){return t(e,n).map(function(o){return r?tn.HSL(jm(sn(sn({},o),{a:So(o.a)}),i)):rn.HSLA(sn(sn({},Bi(o.h,o.s,o.l)),{a:So(o.a)}),i)})},wh),rm=((_h={mix:function(e,t){var n,r,i,o,s,l,c,d,f,h,p,g,v,y,S,_=e.map(function(A){var R=Xs(A);return Ep(A,R)}),b=t===Lo.SUBTRACTIVE?_.map(function(A){var R,k,O,L,N,H,W,z,D,F,j,V,G,K,Y=(R=A.r,k=A.g,O=A.b,L=Math.min(R,k,O),N=Math.min(255-R,255-k,255-O),H=R-L,W=k-L,z=O-L,D=Math.min(H,W),F=H-D,j=(W+D)/2,V=(z+W-D)/2,G=Math.max(F,j,V)/Math.max(H,W,z),K=isNaN(G)||G===1/0||G<=0?1:G,{r:F/K+N,y:j/K+N,b:V/K+N});return Ji(A,"a")&&(Y.a=A.a),Y}):null;function x(A){var R=t===Lo.ADDITIVE?{r:0,g:0,b:0,a:0}:{r:0,y:0,b:0,a:0};return A.reduce(function(k,O){var L=Ji(O,"a")?O.a:1,N={r:Math.min(k.r+O.r*L,255),b:Math.min(k.b+O.b*L,255),a:1-(1-L)*(1-k.a)},H="g"in k?k.g:k.y,W="g"in O?O.g:O.y;return sn(sn({},N),t===Lo.ADDITIVE?{g:Math.min(H+W*L,255)}:{y:Math.min(H+W*L,255)})},R)}if(t===Lo.ADDITIVE)n=x(_);else{var E=x(b);r=E.r,i=E.y,o=E.b,s=Math.min(r,i,o),l=Math.min(255-r,255-i,255-o),c=r-s,d=i-s,f=o-s,h=Math.min(d,f),p=c+d-h,g=d+h,v=2*(f-h),y=Math.max(p,g,v)/Math.max(c,d,f),S=isNaN(y)||y===1/0||y<=0?1:y,(n={r:p/S+l,g:g/S+l,b:v/S+l}).a=E.a}return{r:Ct(n.r),g:Ct(n.g),b:Ct(n.b),a:Ua(n.a,0,1)}}})[qt.HEX]=function(e,t,n){var r=this.mix(e,t);return delete r.a,n?tn.HEX(r):rn.HEX(r)},_h.HEXA=function(e,t,n){var r=this.mix(e,t);return r.a=n?255*So(r.a):So(r.a),n?tn.HEX(r):rn.HEXA(r)},_h[qt.RGB]=function(e,t,n,r){var i=this.mix(e,t);return delete i.a,n?tn.RGB(i):rn.RGB(i,r)},_h.RGBA=function(e,t,n,r){var i=this.mix(e,t);return n?tn.RGB(i):rn.RGBA(i,r)},_h[qt.HSL]=function(e,t,n,r){var i=this.mix(e,t),o=Fg(i.r,i.g,i.b);return delete i.a,delete o.a,n?tn.HSL(o):rn.HSL(i,r)},_h.HSLA=function(e,t,n,r){var i=this.mix(e,t),o=Fg(i.r,i.g,i.b,i.a);return n?tn.HSL(o):rn.HSLA(i,r)},_h),rp=function(e,t){return sn({r:Ct(e.r,t),g:Ct(e.g,t),b:Ct(e.b,t)},Ji(e,"a")?{a:Ct(e.a,t)}:{})},jm=function(e,t){return sn({h:Ct(e.h,t),s:Ct(e.s,t),l:Ct(e.l,t)},Ji(e,"a")?{a:Ct(e.a,t)}:{})},CHe=function(e,t){return{c:Ct(e.c,t),m:Ct(e.m,t),y:Ct(e.y,t),k:Ct(e.k,t)}},Uu=function(e,t,n,r,i,o){var s=i(Ep(e,t),r);return n?o(s):s},im=function(e,t,n,r,i,o,s){n<1&&(n=5);var l=function(c,d,f){var h=f-1,p=(d.r-c.r)/h,g=(d.g-c.g)/h,v=(d.b-c.b)/h,y=So(c.a),S=(So(d.a)-y)/h;return Array(f).fill(null).map(function(_,b){return b===0?c:b===h?d:{r:Ct(c.r+p*b),g:Ct(c.g+g*b),b:Ct(c.b+v*b),a:Ct(y+S*b)}})}(Ep(e),Ep(t),n);return l.map(function(c){var d=o(c,i);return r?s(d):d})},THe=function(){function e(t,n){n===void 0&&(n=6),this.rgb=Ep(t),this._decimals=n,this.updateHSL(),this.updateCMYK()}return e.prototype.updateRGB=function(){this.rgb=sn(sn({},Bi(this.hsl.h,this.hsl.s,this.hsl.l)),{a:this.hsl.a})},e.prototype.updateRGBFromCMYK=function(){this.rgb=sn(sn({},Pj(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k)),{a:this.rgb.a})},e.prototype.updateHSL=function(){this.hsl=Fg(this.rgb.r,this.rgb.g,this.rgb.b,this.rgb.a)},e.prototype.updateCMYK=function(){this.cmyk=Gne(this.rgb.r,this.rgb.g,this.rgb.b)},e.prototype.updateRGBAndCMYK=function(){return this.updateRGB(),this.updateCMYK(),this},e.prototype.updateHSLAndCMYK=function(){return this.updateHSL(),this.updateCMYK(),this},e.prototype.updateRGBAndHSL=function(){return this.updateRGBFromCMYK(),this.updateHSL(),this},e.prototype.setDecimals=function(t){return this._decimals=t,this},e.prototype.setH=function(t){return this.hsl.h=T1(t),this.updateRGBAndCMYK()},e.prototype.setS=function(t){return this.hsl.s=Ua(t,0,100),this.updateRGBAndCMYK()},e.prototype.setL=function(t){return this.hsl.l=Ua(t,0,100),this.updateRGBAndCMYK()},e.prototype.setR=function(t){return this.rgb.r=Ua(t,0,255),this.updateHSLAndCMYK()},e.prototype.setG=function(t){return this.rgb.g=Ua(t,0,255),this.updateHSLAndCMYK()},e.prototype.setB=function(t){return this.rgb.b=Ua(t,0,255),this.updateHSLAndCMYK()},e.prototype.setA=function(t){return this.hsl.a=this.rgb.a=Ua(t,0,1),this},e.prototype.setC=function(t){return this.cmyk.c=Ua(t,0,100),this.updateRGBAndHSL()},e.prototype.setM=function(t){return this.cmyk.m=Ua(t,0,100),this.updateRGBAndHSL()},e.prototype.setY=function(t){return this.cmyk.y=Ua(t,0,100),this.updateRGBAndHSL()},e.prototype.setK=function(t){return this.cmyk.k=Ua(t,0,100),this.updateRGBAndHSL()},Object.defineProperty(e.prototype,"decimals",{get:function(){return this._decimals},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"H",{get:function(){return Ct(this.hsl.h,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"S",{get:function(){return Ct(this.hsl.s,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"L",{get:function(){return Ct(this.hsl.l,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"R",{get:function(){return Ct(this.rgb.r,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"G",{get:function(){return Ct(this.rgb.g,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"B",{get:function(){return Ct(this.rgb.b,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"A",{get:function(){return Ct(this.hsl.a,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"C",{get:function(){return Ct(this.cmyk.c,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"M",{get:function(){return Ct(this.cmyk.m,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Y",{get:function(){return Ct(this.cmyk.y,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"K",{get:function(){return Ct(this.cmyk.k,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXObject",{get:function(){return rn.HEX(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXAObject",{get:function(){return rn.HEXA(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBObject",{get:function(){return{r:this.R,g:this.G,b:this.B}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBAObject",{get:function(){return sn(sn({},this.RGBObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLObject",{get:function(){return{h:this.H,s:this.S,l:this.L}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLAObject",{get:function(){return sn(sn({},this.HSLObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKObject",{get:function(){return{c:this.C,m:this.M,y:this.Y,k:this.K}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKAObject",{get:function(){return sn(sn({},this.CMYKObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEX",{get:function(){return tn.HEX({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXA",{get:function(){return tn.HEX({r:this.R,g:this.G,b:this.B,a:255*this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGB",{get:function(){return tn.RGB({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBA",{get:function(){return tn.RGB({r:this.R,g:this.G,b:this.B,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSL",{get:function(){return tn.HSL({h:this.H,s:this.S,l:this.L})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLA",{get:function(){return tn.HSL({h:this.H,s:this.S,l:this.L,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYK",{get:function(){return tn.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKA",{get:function(){return tn.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K,a:this.A})},enumerable:!1,configurable:!0}),e.toHEX=function(t,n){n===void 0&&(n=!0);var r=Xs(t);return Uu(t,r,n,0,rn.HEX,tn.HEX)},e.toHEXA=function(t,n){n===void 0&&(n=!0);var r=Xs(t);return Uu(t,r,n,0,rn.HEXA,tn.HEX)},e.toRGB=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=Xs(t);return Uu(t,i,n,r,rn.RGB,tn.RGB)},e.toRGBA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=Xs(t);return Uu(t,i,n,r,rn.RGBA,tn.RGB)},e.toHSL=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=Xs(t);return Uu(t,i,n,r,rn.HSL,tn.HSL)},e.toHSLA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=Xs(t);return Uu(t,i,n,r,rn.HSLA,tn.HSL)},e.toCMYK=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=Xs(t);return Uu(t,i,n,r,rn.CMYK,tn.CMYK)},e.toCMYKA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=Xs(t);return Uu(t,i,n,r,rn.CMYKA,tn.CMYK)},e.getBlendHEX=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),im(t,n,r,i,o,rn.HEX,tn.HEX)},e.getBlendHEXA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),im(t,n,r,i,o,rn.HEXA,tn.HEX)},e.getBlendRGB=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),im(t,n,r,i,o,rn.RGB,tn.RGB)},e.getBlendRGBA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),im(t,n,r,i,o,rn.RGBA,tn.RGB)},e.getBlendHSL=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),im(t,n,r,i,o,rn.HSL,tn.HSL)},e.getBlendHSLA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),im(t,n,r,i,o,rn.HSLA,tn.HSL)},e.getMixHEX=function(t,n,r){return n===void 0&&(n=Lo.ADDITIVE),r===void 0&&(r=!0),rm.HEX(t,n,r)},e.getMixHEXA=function(t,n,r){return n===void 0&&(n=Lo.ADDITIVE),r===void 0&&(r=!0),rm.HEXA(t,n,r)},e.getMixRGB=function(t,n,r,i){return n===void 0&&(n=Lo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),rm.RGB(t,n,r,i)},e.getMixRGBA=function(t,n,r,i){return n===void 0&&(n=Lo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),rm.RGBA(t,n,r,i)},e.getMixHSL=function(t,n,r,i){return n===void 0&&(n=Lo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),rm.HSL(t,n,r,i)},e.getMixHSLA=function(t,n,r,i){return n===void 0&&(n=Lo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),rm.HSLA(t,n,r,i)},e.getShades=function(t,n,r){return r===void 0&&(r=6),dV(t,n,!0,r)},e.getTints=function(t,n,r){return r===void 0&&(r=6),dV(t,n,!1,r)},e.getHarmony=function(t,n,r,i){return n===void 0&&(n=tu.COMPLEMENTARY),r===void 0&&(r=Lo.ADDITIVE),i===void 0&&(i=6),function(o,s,l,c){var d;return(d={},d[tu.ANALOGOUS]=nm.buildHarmony(s,vHe,c,l),d[tu.COMPLEMENTARY]=nm.buildHarmony(s,yHe,c,l),d[tu.SPLIT_COMPLEMENTARY]=nm.buildHarmony(s,bHe,c,l),d[tu.TRIADIC]=nm.buildHarmony(s,xHe,c,l),d[tu.TETRADIC]=nm.buildHarmony(s,wHe,c,l),d[tu.SQUARE]=nm.buildHarmony(s,_He,c,l),d)[o]}(n,t,i,r)},e}();const kHe={current:void 0,parent:void 0,events:void 0,color:{source:2533018,destination:15753874,expanding:16733986,updating:16733986,generating:16771899,closing:11583173,end:15483002},scale:10,fill:"#000000",alpha:1},{ceil:ji,PI:AHe}=Math,yw=(e,t)=>new THe(e).setA(t??kHe.alpha).RGBA,RHe=(e,t)=>yw(e,t);function Fd(e,t){return{width:e.width*t.scale.x,height:e.height*t.scale.y,x:e.x*t.scale.x+t.x,y:e.y*t.scale.y+t.y}}const IHe={draw(e,t,n){if(e.text){const r=Fd(e,{x:e.textX,y:e.textY,scale:{x:1,y:1}}),i=Fd(r,n);t.font=`${e.fontSize*n.scale.x}px Arial`,t.fillStyle=yw(e.fontColor,e.alpha),t.fillText(e.text,i.x,i.y)}},test(e){return{left:-1/0,right:1/0,top:-1/0,bottom:1/0}}},PHe={draw(e,t,n){const{x:r,y:i,width:o,height:s}=Fd(e,n);t.fillStyle=yw(e.fill,e.alpha),t.fillRect(ji(r),ji(i),ji(o)||1,ji(s)||1)},test(e){return{left:e.x,right:e.x+e.width,top:e.y,bottom:e.y+e.height}}},OHe={draw(e,t,n){t.fillStyle=yw(e.fill,e.alpha),t.beginPath();const r=Fd({...e,width:e.radius,height:e.radius},n);t.ellipse(ji(r.x),ji(r.y),ji(r.width),ji(r.height),0,0,2*AHe),t.fill()},test(e){return{left:e.x-e.radius,right:e.x+e.radius,top:e.y-e.radius,bottom:e.y+e.radius}}},MHe={draw(e,t,n){const[r,...i]=e.points;t.beginPath(),t.fillStyle=yw(e.fill,e.alpha);const{x:o,y:s}=Fd({...r,width:0,height:0},n);t.moveTo(ji(o),ji(s));for(const l of i){const{x:c,y:d}=Fd({...l,width:0,height:0},n);t.lineTo(ji(c),ji(d))}t.closePath(),t.fill()},test(e){var t,n,r,i;return{left:((t=Gt.minBy(e.points,"x"))==null?void 0:t.x)??0,right:((n=Gt.maxBy(e.points,"x"))==null?void 0:n.x)??0,top:((r=Gt.minBy(e.points,"y"))==null?void 0:r.y)??0,bottom:((i=Gt.maxBy(e.points,"y"))==null?void 0:i.y)??0}}},DHe={draw(e,t,n){const[r,...i]=e.points;t.beginPath(),t.lineCap="round",t.lineJoin="round",t.strokeStyle=RHe(e.fill,e.alpha);const{x:o,y:s,width:l}=Fd({...r,width:e.lineWidth,height:0},n);t.lineWidth=ji(l),t.moveTo(ji(o),ji(s));for(const c of i){const{x:d,y:f}=Fd({...c,width:0,height:0},n);t.lineTo(ji(d),ji(f))}t.stroke()},test(e){var t,n,r,i;return{left:((t=Gt.minBy(e.points,"x"))==null?void 0:t.x)??0-e.lineWidth??0,right:((n=Gt.maxBy(e.points,"x"))==null?void 0:n.x)??0+e.lineWidth??0,top:((r=Gt.minBy(e.points,"y"))==null?void 0:r.y)??0-e.lineWidth??0,bottom:((i=Gt.maxBy(e.points,"y"))==null?void 0:i.y)??0+e.lineWidth??0}}},LHe={text:IHe,path:DHe,rect:PHe,polygon:MHe,circle:OHe},{log2:NHe,max:BHe}=Math,fV=e=>Gt.floor(NHe(e+1));function hV({right:e,left:t,bottom:n,top:r},i){const o=BHe(fV(e-t),fV(n-r))-i,s=2**o,l={left:Gt.floor(t/s),right:Gt.ceil((e+1)/s),top:Gt.floor(r/s),bottom:Gt.ceil((n+1)/s)};return{zoom:o,order:s,tiles:Gt.shuffle(r8e({x:Gt.range(l.left,l.right+1),y:Gt.range(l.top,l.bottom+1)}).map(c=>{const d=c.x*s,f=c.y*s;return{tile:c,bounds:{left:d-s/2,right:d+s/2,top:f-s/2,bottom:f+s/2}}}))}}const $He=""+new URL("D2Renderer.worker-835e2af9.js",import.meta.url).href;class FHe extends Worker{constructor(){super($He,{type:"module"})}call(t,n,r=[]){return this.postMessage({action:t,payload:n},r)}on(t,n){const r=i=>{const{action:o,payload:s}=i.data;o===t&&n(s)};return this.addEventListener("message",r),()=>this.removeEventListener("message",r)}}function zHe(e,t){return!(t.left>=e.right||t.right<=e.left||t.top>=e.bottom||t.bottom<=e.top)}const{max:pV,min:mV}=Math,Vne=class qne extends jp{constructor(t,n){super(t),this.bounds=n,this.destroying=!1,this.age=qne.age++}};Vne.age=0;let jHe=Vne;function eS(e,t){return Gt.isNaN(e)?t:e}var gs,Nr,rd,ou,pi,kl,id,od,MC,DC,Xne,LC,Yne,ag,O1,NC,BC,Kne,$C,Qne,FC,Jne,zC,Zne,M1,Q3,D1,J3,jC,ere,L1,Z3,UC,tre,HC,nre,WC,rre;class UHe extends dHe{constructor(){super(...arguments);Zn(this,DC);Zn(this,LC);Zn(this,BC);Zn(this,$C);Zn(this,FC);Zn(this,zC);Zn(this,M1);Zn(this,D1);Zn(this,jC);Zn(this,L1);Zn(this,UC);Zn(this,HC);Zn(this,WC);Zn(this,gs,void 0);Zn(this,Nr,void 0);Zn(this,rd,void 0);Zn(this,ou,void 0);Zn(this,pi,F7);Zn(this,kl,[]);Zn(this,id,new t8e(16));Zn(this,od,void 0);Zn(this,MC,0);Zn(this,ag,Gt.once(()=>Gt.debounce(()=>Mi(this,M1,Q3).call(this),Ze(this,pi).debounceInterval)));Zn(this,O1,Gt.once(()=>Gt.throttle(()=>Mi(this,D1,J3).call(this),Ze(this,pi).refreshInterval)));Zn(this,NC,Gt.once(()=>Gt.throttle(n=>Mi(this,jC,ere).call(this,n),Ze(this,pi).refreshInterval)))}getInstance(){return{app:Ze(this,gs),viewport:Ze(this,Nr)}}fitCamera(){var r,i,o,s;const n=Gt.values(Ze(this,id).all()).flat();if(n.length){const l=Gt.reduce(n,(c,d)=>({top:eS(mV(c.top,d.top),c.top),left:eS(mV(c.left,d.left),c.left),bottom:eS(pV(c.bottom,d.bottom),c.bottom),right:eS(pV(c.right,d.right),c.right)}),{bottom:-1/0,top:1/0,left:1/0,right:-1/0});(s=(r=Ze(this,Nr))==null?void 0:r.animate)==null||s.call(r,{position:new Ot((l.left+l.right)/2,(l.top+l.bottom)/2),scale:((o=(i=Ze(this,Nr))==null?void 0:i.findFit)==null?void 0:o.call(i,l.right-l.left,l.bottom-l.top))*.8,ease:"easeOutExpo",time:Ze(this,pi).animationDuration*1.5,callbackOnComplete:()=>Ze(this,ag).call(this)()})}}initialCamera(){var n,r;(r=(n=Ze(this,Nr))==null?void 0:n.animate)==null||r.call(n,{scale:1,ease:"easeOutExpo",time:Ze(this,pi).animationDuration*1.5,callbackOnComplete:()=>Ze(this,ag).call(this)()})}getView(){var n;return(n=Ze(this,gs))==null?void 0:n.view}setup(n){const r={...F7,...n};Mi(this,LC,Yne).call(this,r),this.setOptions(r),Mi(this,$C,Qne).call(this,r)}destroy(){Gt.map(Ze(this,kl),n=>n.terminate()),Ze(this,gs).destroy()}add(n){const r=CFe(),i=Gt.map(n,({component:o,meta:s})=>({...LHe[o.$].test(o),component:o,meta:s,index:Mi(this,DC,Xne).call(this)}));return Ze(this,id).load(i),Gt.map(Ze(this,kl),o=>o.call("add",[Gt.map(n,"component"),r])),()=>Gt.defer(()=>{for(const o of i)Ze(this,id).remove(o);Gt.map(Ze(this,kl),o=>o.call("remove",[r]))})}setOptions(n){const r={...Ze(this,pi),...n};Mi(this,FC,Jne).call(this,r),qc(this,pi,r),Mi(this,M1,Q3).call(this),Mi(this,D1,J3).call(this)}}gs=new WeakMap,Nr=new WeakMap,rd=new WeakMap,ou=new WeakMap,pi=new WeakMap,kl=new WeakMap,id=new WeakMap,od=new WeakMap,MC=new WeakMap,DC=new WeakSet,Xne=function(){return t6(this,MC)._++},LC=new WeakSet,Yne=function(n){qc(this,gs,new Tj({backgroundAlpha:0,width:n.screenSize.width,height:n.screenSize.height,autoDensity:!0,resolution:2})),qc(this,Nr,new vje({stopPropagation:!0,screenWidth:n.screenSize.width,screenHeight:n.screenSize.height,events:Ze(this,gs).renderer.events,passiveWheel:!1})),Ze(this,Nr).on("clicked",r=>{const{x:i,y:o}=r.world,s=Ze(this,id).search({minX:i,minY:o,maxX:i+Number.MIN_VALUE,maxY:o+Number.MIN_VALUE});this.emit("click",r.event,{world:r.world,components:s})}),Ze(this,gs).stage.addChild(Ze(this,Nr)),Ze(this,Nr).drag().pinch().wheel().decelerate({friction:.98}).clampZoom({maxScale:300,minScale:1e-5}),Ze(this,Nr).on("moved",()=>{Ze(this,ag).call(this)(),Ze(this,O1).call(this)()}),Ze(this,Nr).on("mousemove",r=>Ze(this,NC).call(this)(r)),qc(this,rd,new qo),Ze(this,Nr).addChild(Ze(this,rd)),qc(this,ou,new $g),Ze(this,Nr).addChild(Ze(this,ou)),qc(this,od,new $g),Ze(this,Nr).addChild(Ze(this,od)),Mi(this,BC,Kne).call(this)},ag=new WeakMap,O1=new WeakMap,NC=new WeakMap,BC=new WeakSet,Kne=function(){const{dynamicResolution:n}=Ze(this,pi),{dtMax:r,dtMin:i,increment:o,intervalMs:s,maxScale:l,minScale:c}=n,d=Gt.floor(Xr.targetFPMS*s);let f=0,h=0,p=1;Ze(this,gs).ticker.add(g=>{const{tileResolution:v}=Ze(this,pi);if(!(f%d)){const y=h/d;p=Gt.clamp(y>=r?p+o:y<=i?p-o:p,c,l),Gt.map(Ze(this,kl),S=>{S.call("setTileResolution",[{width:Gt.ceil(v.width/p),height:Gt.ceil(v.height/p)}])}),h=0}h+=g,f++})},$C=new WeakSet,Qne=function(n){Gt.map(Ze(this,kl),r=>r.terminate()),qc(this,kl,Gt.times(n.workerCount,r=>{const i=new FHe;return i.on("update",o=>Mi(this,zC,Zne).call(this,o)),i.onerror=o=>{throw o},i.call("setup",[{...n,workerIndex:r}]),i}))},FC=new WeakSet,Jne=function(n){var o,s,l,c;const{width:r,height:i}=n.screenSize;(l=(s=(o=Ze(this,gs))==null?void 0:o.renderer)==null?void 0:s.resize)==null||l.call(s,r,i),(c=Ze(this,Nr))==null||c.resize(r,i)},zC=new WeakSet,Zne=function({bounds:n,bitmap:r}){const i=ht.from(r);Mi(this,UC,tre).call(this,i,n)},M1=new WeakSet,Q3=function(){const{top:n,bottom:r,left:i,right:o}=Ze(this,Nr);Gt.map(Ze(this,kl),s=>s.call("setFrustum",[{top:n,bottom:r,left:i,right:o}]))},D1=new WeakSet,J3=function(){var s,l,c,d,f;const{tileSubdivision:n,accentColor:r}=Ze(this,pi),{tiles:i}=hV(Ze(this,Nr),n),o=Mi(this,L1,Z3).call(this);(s=Ze(this,ou))==null||s.clear(),(l=Ze(this,ou))==null||l.lineStyle(1*o,r,.5),(c=Ze(this,ou))==null||c.beginFill(r,.05);for(const{bounds:h,tile:p}of i)Gt.find((d=Ze(this,rd))==null?void 0:d.children,g=>Gt.isEqual(g.bounds,h))||(f=Ze(this,ou))==null||f.drawRect(h.left,h.top,h.right-h.left,h.bottom-h.top)},jC=new WeakSet,ere=function(n){var c;const{accentColor:r}=Ze(this,pi),i=Mi(this,L1,Z3).call(this),{x:o,y:s}=Ze(this,Nr).toWorld(n.globalX,n.globalY),l=Ze(this,id).search({minX:o,minY:s,maxX:o+Number.MIN_VALUE,maxY:s+Number.MIN_VALUE});Ze(this,od).clear(),Ze(this,od).lineStyle(2*i,r,1);for(const d of l)(c=Ze(this,od))==null||c.drawRect(d.left,d.top,d.right-d.left,d.bottom-d.top)},L1=new WeakSet,Z3=function(){const{right:n,left:r}=Ze(this,Nr),{width:i}=Ze(this,pi).screenSize;return(n-r)/i},UC=new WeakSet,tre=async function(n,r){var s,l;const{tileSubdivision:i}=Ze(this,pi),{tiles:o}=hV(Ze(this,Nr),i);if(Gt.find(o,c=>Gt.isEqual(c.bounds,r))){const c={x:(r.right-r.left)/n.width,y:(r.bottom-r.top)/n.height},d=new jHe(n,r);(s=Ze(this,rd))==null||s.addChild(d).setTransform(r.left,r.top,c.x,c.y),Ze(this,O1).call(this)(),await Mi(this,HC,nre).call(this,d),Gt.forEach((l=Ze(this,rd))==null?void 0:l.children,async f=>{zHe(f.bounds,r)&&f.age{const o=s=>{n.alpha+=s/Xr.targetFPMS/Ze(this,pi).animationDuration,n.alpha>1&&(r.remove(o),i())};n.alpha=0,r.add(o)})},WC=new WeakSet,rre=function(n){const r=Ze(this,gs).ticker;return new Promise(i=>{const o=s=>{n.alpha-=s/Xr.targetFPMS/Ze(this,pi).animationDuration,n.alpha<0&&(r.remove(o),i())};n.alpha=1,r.add(o)})};const HHe=VUe(UHe,{components:["rect","circle","path","polygon"],id:"d2-renderer",name:"Pixi",description:"Provides 2D Visualisation Support",version:"1.0.0"}),WHe={"d2-renderer":HHe};var GHe=function(t,n){if(n=n.split(":")[0],t=+t,!t)return!1;switch(n){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0},Oj={},VHe=Object.prototype.hasOwnProperty,qHe;function gV(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function vV(e){try{return encodeURIComponent(e)}catch{return null}}function XHe(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},r;r=t.exec(e);){var i=gV(r[1]),o=gV(r[2]);i===null||o===null||i in n||(n[i]=o)}return n}function YHe(e,t){t=t||"";var n=[],r,i;typeof t!="string"&&(t="?");for(i in e)if(VHe.call(e,i)){if(r=e[i],!r&&(r===null||r===qHe||isNaN(r))&&(r=""),i=vV(i),r=vV(r),i===null||r===null)continue;n.push(i+"="+r)}return n.length?t+n.join("&"):""}Oj.stringify=YHe;Oj.parse=XHe;var ire=GHe,Kk=Oj,KHe=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,ore=/[\n\r\t]/g,QHe=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,sre=/:\d+$/,JHe=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,ZHe=/^[a-zA-Z]:/;function Mj(e){return(e||"").toString().replace(KHe,"")}var e5=[["#","hash"],["?","query"],function(t,n){return Gl(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],yV={hash:1,query:1};function are(e){var t;typeof window<"u"?t=window:typeof Bt<"u"?t=Bt:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var r={},i=typeof e,o;if(e.protocol==="blob:")r=new Kl(unescape(e.pathname),{});else if(i==="string"){r=new Kl(e,{});for(o in yV)delete r[o]}else if(i==="object"){for(o in e)o in yV||(r[o]=e[o]);r.slashes===void 0&&(r.slashes=QHe.test(e.href))}return r}function Gl(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function lre(e,t){e=Mj(e),e=e.replace(ore,""),t=t||{};var n=JHe.exec(e),r=n[1]?n[1].toLowerCase():"",i=!!n[2],o=!!n[3],s=0,l;return i?o?(l=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(l=n[2]+n[4],s=n[2].length):o?(l=n[3]+n[4],s=n[3].length):l=n[4],r==="file:"?s>=2&&(l=l.slice(2)):Gl(r)?l=n[4]:r?i&&(l=l.slice(2)):s>=2&&Gl(t.protocol)&&(l=n[4]),{protocol:r,slashes:i||Gl(r),slashesCount:s,rest:l}}function eWe(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,i=n[r-1],o=!1,s=0;r--;)n[r]==="."?n.splice(r,1):n[r]===".."?(n.splice(r,1),s++):s&&(r===0&&(o=!0),n.splice(r,1),s--);return o&&n.unshift(""),(i==="."||i==="..")&&n.push(""),n.join("/")}function Kl(e,t,n){if(e=Mj(e),e=e.replace(ore,""),!(this instanceof Kl))return new Kl(e,t,n);var r,i,o,s,l,c,d=e5.slice(),f=typeof t,h=this,p=0;for(f!=="object"&&f!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=Kk.parse),t=are(t),i=lre(e||"",t),r=!i.protocol&&!i.slashes,h.slashes=i.slashes||r&&t.slashes,h.protocol=i.protocol||t.protocol||"",e=i.rest,(i.protocol==="file:"&&(i.slashesCount!==2||ZHe.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!Gl(h.protocol)))&&(d[3]=[/(.*)/,"pathname"]);p{const n=[];for(const{transport:r,url:i,key:o,disabled:s}of e??[])if(!s){const l=new ure[r].constructor({url:i});n.push({key:o,url:i,renderer:await l.get()})}t(()=>n)},[e,t]),C.jsx(C.Fragment,{})}const sWe={connected:"success.light",connecting:"warning.light",error:"error.light",disabled:"text.disabled"};function aWe({value:e,onValueChange:t}){const[n]=Mk(),r=te.find(n,{key:e.key});function i(s){t==null||t(ik(e,s))}const o=e!=null&&e.disabled?"disabled":r?"connected":"error";return C.jsx(C.Fragment,{children:C.jsxs(gn,{alignItems:"center",py:.5,children:[C.jsx(Qee,{sx:{color:sWe[o]}}),C.jsx(Kr,{}),C.jsxs(lt,{flex:1,children:[C.jsx(Lt,{children:r?`${r.renderer.meta.name} ${r.renderer.meta.version}`:te.startCase(o)}),C.jsx(Lt,{variant:"body2",color:"text.secondary",children:r?C.jsxs(C.Fragment,{children:[C.jsx("span",{children:r.renderer.meta.description}),C.jsx("br",{}),C.jsxs("span",{children:["Contributes: ",te.join(r.renderer.meta.components,", ")]})]}):(e==null?void 0:e.url)||"No URL"})]}),C.jsx(qd,{title:`${e.disabled?"Enable":"Disable"} Renderer`,children:C.jsx(lt,{children:C.jsx(Sg,{checked:!e.disabled,onChange:(s,l)=>i({disabled:!l})})})}),C.jsx($z,{trigger:s=>C.jsx($m,{icon:C.jsx(rk,{}),label:"Edit Renderer",onClick:s}),appBar:{children:C.jsx(Bz,{children:"Edit Renderer"})},children:C.jsxs(lt,{p:2.5,children:[C.jsx(V1,{value:e.url,onChange:s=>i({url:s.target.value}),fullWidth:!0,variant:"filled",label:"URL",sx:{mb:2}}),C.jsx(fx,{placeholder:"Renderer Type",items:te.entries(ure).map(([s,{name:l}])=>({value:s,label:l})),fullWidth:!0,value:e.transport,onChange:s=>i({transport:s})})]})})]})})}var Dj={},Qk={},bw={};(function(e){var t=Bt&&Bt.__extends||function(){var g=function(v,y){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,_){S.__proto__=_}||function(S,_){for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(S[b]=_[b])},g(v,y)};return function(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");g(v,y);function S(){this.constructor=v}v.prototype=y===null?Object.create(y):(S.prototype=y.prototype,new S)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.createJSONRPCNotification=e.createJSONRPCRequest=e.createJSONRPCSuccessResponse=e.createJSONRPCErrorResponse=e.JSONRPCErrorCode=e.JSONRPCErrorException=e.isJSONRPCResponses=e.isJSONRPCResponse=e.isJSONRPCRequests=e.isJSONRPCRequest=e.isJSONRPCID=e.JSONRPC=void 0,e.JSONRPC="2.0";var n=function(g){return typeof g=="string"||typeof g=="number"||g===null};e.isJSONRPCID=n;var r=function(g){return g.jsonrpc===e.JSONRPC&&g.method!==void 0&&g.result===void 0&&g.error===void 0};e.isJSONRPCRequest=r;var i=function(g){return Array.isArray(g)&&g.every(e.isJSONRPCRequest)};e.isJSONRPCRequests=i;var o=function(g){return g.jsonrpc===e.JSONRPC&&g.id!==void 0&&(g.result!==void 0||g.error!==void 0)};e.isJSONRPCResponse=o;var s=function(g){return Array.isArray(g)&&g.every(e.isJSONRPCResponse)};e.isJSONRPCResponses=s;var l=function(g,v,y){var S={code:g,message:v};return y!=null&&(S.data=y),S},c=function(g){t(v,g);function v(y,S,_){var b=g.call(this,y)||this;return Object.setPrototypeOf(b,v.prototype),b.code=S,b.data=_,b}return v.prototype.toObject=function(){return l(this.code,this.message,this.data)},v}(Error);e.JSONRPCErrorException=c,function(g){g[g.ParseError=-32700]="ParseError",g[g.InvalidRequest=-32600]="InvalidRequest",g[g.MethodNotFound=-32601]="MethodNotFound",g[g.InvalidParams=-32602]="InvalidParams",g[g.InternalError=-32603]="InternalError"}(e.JSONRPCErrorCode||(e.JSONRPCErrorCode={}));var d=function(g,v,y,S){return{jsonrpc:e.JSONRPC,id:g,error:l(v,y,S)}};e.createJSONRPCErrorResponse=d;var f=function(g,v){return{jsonrpc:e.JSONRPC,id:g,result:v??null}};e.createJSONRPCSuccessResponse=f;var h=function(g,v,y){return{jsonrpc:e.JSONRPC,id:g,method:v,params:y}};e.createJSONRPCRequest=h;var p=function(g,v){return{jsonrpc:e.JSONRPC,method:g,params:v}};e.createJSONRPCNotification=p})(bw);var xw={};Object.defineProperty(xw,"__esModule",{value:!0});xw.DefaultErrorCode=void 0;xw.DefaultErrorCode=0;var bV=Bt&&Bt.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(f){try{d(r.next(f))}catch(h){s(h)}}function c(f){try{d(r.throw(f))}catch(h){s(h)}}function d(f){f.done?o(f.value):i(f.value).then(l,c)}d((r=r.apply(e,t||[])).next())})},xV=Bt&&Bt.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(d){return function(f){return c([d,f])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,d[0]&&(n=0)),n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]{const r=({data:i})=>{i.id===n.id&&(this.rpc.receive(i),this.worker.removeEventListener("message",r))};this.worker.postMessage(n),this.worker.addEventListener("message",r)})}connect(){return this.worker.postMessage(this.options.url),new Promise(t=>{const n=()=>{t(),this.worker.removeEventListener("message",n)};this.worker.addEventListener("message",n)})}async disconnect(){this.worker.terminate()}async call(t,n){return await this.rpc.request(t,n)}}const EWe={trace:async(e,t)=>{switch(e){case"about":return{name:"Search Trace",description:"Provides JSON Search Trace Support",version:"1.0.2"};case"features/formats":return[{id:"grid",name:"Grid"},{id:"xy",name:"Network"},{id:"mesh",name:"Mesh"}];case"features/algorithms":return[{id:"identity",name:"Unknown",hidden:!0}];case"solve/pathfinding":{const{parameters:n}=t;try{return JSON.parse((n==null?void 0:n.content)??"")}catch{return{}}}}}};class CWe{constructor(t){Gp(this,"handler");this.options=t;const{hostname:n}=cre(t.url);this.handler=EWe[n]}async connect(){}async disconnect(){}async call(t,n){return await this.handler(t,n)}}const Ql=Object.create(null);Ql.open="0";Ql.close="1";Ql.ping="2";Ql.pong="3";Ql.message="4";Ql.upgrade="5";Ql.noop="6";const VS=Object.create(null);Object.keys(Ql).forEach(e=>{VS[Ql[e]]=e});const t5={type:"error",data:"parser error"},fre=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",hre=typeof ArrayBuffer=="function",pre=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,Lj=({type:e,data:t},n,r)=>fre&&t instanceof Blob?n?r(t):EV(t,r):hre&&(t instanceof ArrayBuffer||pre(t))?n?r(t):EV(new Blob([t]),r):r(Ql[e]+(t||"")),EV=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function CV(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let XB;function TWe(e,t){if(fre&&e.data instanceof Blob)return e.data.arrayBuffer().then(CV).then(t);if(hre&&(e.data instanceof ArrayBuffer||pre(e.data)))return t(CV(e.data));Lj(e,!1,n=>{XB||(XB=new TextEncoder),t(XB.encode(n))})}const TV="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xb=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,i=0,o,s,l,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const d=new ArrayBuffer(t),f=new Uint8Array(d);for(r=0;r>4,f[i++]=(s&15)<<4|l>>2,f[i++]=(l&3)<<6|c&63;return d},AWe=typeof ArrayBuffer=="function",Nj=(e,t)=>{if(typeof e!="string")return{type:"message",data:mre(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:RWe(e.substring(1),t)}:VS[n]?e.length>1?{type:VS[n],data:e.substring(1)}:{type:VS[n]}:t5},RWe=(e,t)=>{if(AWe){const n=kWe(e);return mre(n,t)}else return{base64:!0,data:e}},mre=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},gre=String.fromCharCode(30),IWe=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{Lj(o,!1,l=>{r[s]=l,++i===n&&t(r.join(gre))})})},PWe=(e,t)=>{const n=e.split(gre),r=[];for(let i=0;i{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let YB;function nS(e){return e.reduce((t,n)=>t+n.length,0)}function rS(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;iMath.pow(2,53-32)-1){l.enqueue(t5);break}i=f*Math.pow(2,32)+d.getUint32(4),r=3}else{if(nS(n)e){l.enqueue(t5);break}}}})}const vre=4;function Qr(e){if(e)return DWe(e)}function DWe(e){for(var t in Qr.prototype)e[t]=Qr.prototype[t];return e}Qr.prototype.on=Qr.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Qr.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Qr.prototype.off=Qr.prototype.removeListener=Qr.prototype.removeAllListeners=Qr.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;itypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function yre(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const LWe=Js.setTimeout,NWe=Js.clearTimeout;function eA(e,t){t.useNativeTimers?(e.setTimeoutFn=LWe.bind(Js),e.clearTimeoutFn=NWe.bind(Js)):(e.setTimeoutFn=Js.setTimeout.bind(Js),e.clearTimeoutFn=Js.clearTimeout.bind(Js))}const BWe=1.33;function $We(e){return typeof e=="string"?FWe(e):Math.ceil((e.byteLength||e.size)*BWe)}function FWe(e){let t=0,n=0;for(let r=0,i=e.length;r=57344?n+=3:(r++,n+=4);return n}function zWe(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function jWe(e){let t={},n=e.split("&");for(let r=0,i=n.length;r0);return t}function xre(){const e=RV(+new Date);return e!==AV?(kV=0,AV=e):e+"."+RV(kV++)}for(;iS{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};PWe(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,IWe(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=xre()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new Vl(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class Vl extends Qr{constructor(t,n){super(),eA(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=yre(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new _re(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=Vl.requestsCount++,Vl.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=GWe,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Vl.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}Vl.requestsCount=0;Vl.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",IV);else if(typeof addEventListener=="function"){const e="onpagehide"in Js?"pagehide":"unload";addEventListener(e,IV,!1)}}function IV(){for(let e in Vl.requests)Vl.requests.hasOwnProperty(e)&&Vl.requests[e].abort()}const $j=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),oS=Js.WebSocket||Js.MozWebSocket,PV=!0,XWe="arraybuffer",OV=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class YWe extends Bj{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=OV?{}:yre(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=PV&&!OV?n?new oS(t,n):new oS(t):new oS(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{PV&&this.ws.send(o)}catch{}i&&$j(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=xre()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!oS}}class KWe extends Bj{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=MWe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=OWe();i.readable.pipeTo(t.writable),this.writer=i.writable.getWriter();const o=()=>{r.read().then(({done:l,value:c})=>{l||(this.onPacket(c),o())}).catch(l=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{i&&$j(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const QWe={websocket:YWe,webtransport:KWe,polling:qWe},JWe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ZWe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function r5(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=JWe.exec(e||""),o={},s=14;for(;s--;)o[ZWe[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=eGe(o,o.path),o.queryKey=tGe(o,o.query),o}function eGe(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function tGe(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}let Sre=class ym extends Qr{constructor(t,n={}){super(),this.binaryType=XWe,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=r5(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=r5(n.host).host),eA(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=jWe(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=vre,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new QWe[t](r)}open(){let t;if(this.opts.rememberUpgrade&&ym.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;ym.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;ym.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function o(){r||(r=!0,f(),n.close(),n=null)}const s=h=>{const p=new Error("probe error: "+h);p.transport=n.name,o(),this.emitReserved("upgradeError",p)};function l(){s("transport closed")}function c(){s("socket closed")}function d(h){n&&h.name!==n.name&&o()}const f=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",l),this.off("close",c),this.off("upgrading",d)};n.once("open",i),n.once("error",s),n.once("close",l),this.once("close",c),this.once("upgrading",d),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",ym.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){ym.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const i=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Ere=Object.prototype.toString,oGe=typeof Blob=="function"||typeof Blob<"u"&&Ere.call(Blob)==="[object BlobConstructor]",sGe=typeof File=="function"||typeof File<"u"&&Ere.call(File)==="[object FileConstructor]";function Fj(e){return rGe&&(e instanceof ArrayBuffer||iGe(e))||oGe&&e instanceof Blob||sGe&&e instanceof File}function qS(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let s=0;s{this.io.clearTimeoutFn(o),n.apply(this,[null,...s])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,o)=>{n.push((s,l)=>r?s?o(s):i(l):i(s)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:hn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case hn.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case hn.EVENT:case hn.BINARY_EVENT:this.onevent(t);break;case hn.ACK:case hn.BINARY_ACK:this.onack(t);break;case hn.DISCONNECT:this.ondisconnect();break;case hn.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:hn.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:hn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}hv.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};hv.prototype.reset=function(){this.attempts=0};hv.prototype.setMin=function(e){this.ms=e};hv.prototype.setMax=function(e){this.max=e};hv.prototype.setJitter=function(e){this.jitter=e};class s5 extends Qr{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,eA(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new hv({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||hGe;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Sre(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=qa(n,"open",function(){r.onopen(),t&&t()}),o=l=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",l),t?t(l):this.maybeReconnectOnOpen()},s=qa(n,"error",o);if(this._timeout!==!1){const l=this._timeout,c=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},l);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(qa(t,"ping",this.onping.bind(this)),qa(t,"data",this.ondata.bind(this)),qa(t,"error",this.onerror.bind(this)),qa(t,"close",this.onclose.bind(this)),qa(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){$j(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new Cre(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const kb={};function XS(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=nGe(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=kb[i]&&o in kb[i].nsps,l=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let c;return l?c=new s5(r,t):(kb[i]||(kb[i]=new s5(r,t)),c=kb[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(XS,{Manager:s5,Socket:Cre,io:XS,connect:XS});class mGe{constructor(t){Gp(this,"rpc");Gp(this,"socket");this.options=t,this.socket=XS(t.url),this.rpc=new Dj.JSONRPCClient(async n=>{const r=i=>{i.id===n.id&&(this.socket.off("response",r),this.rpc.receive(i))};this.socket.emit("request",n),this.socket.on("response",r)})}async connect(){this.socket.connect()}async disconnect(){this.socket.disconnect()}async call(t,n){return await this.rpc.request(t,n)}}const jj={socketio:{name:"socket.io",constructor:mGe},ipc:{name:"Web Worker",constructor:SWe},native:{name:"Internal",constructor:CWe}};function gGe(e){return jj[e].constructor}const Tre=te.first(te.keys(jj));function vGe(){const[{renderer:e},t]=Mu();return C.jsx(C.Fragment,{children:C.jsx(Ek,{editor:n=>C.jsx(aWe,{value:n}),icon:null,value:e,onChange:te.debounce(n=>t(()=>({renderer:n})),300),addItemLabel:"Add Renderer",create:()=>({transport:Tre,url:"",disabled:!0}),extras:C.jsx(Dd,{icon:C.jsx(VK,{}),sx:{ml:2},onClick:()=>t(()=>({renderer:jQ})),children:"Reset to Defaults"})})})}function yGe(e){const[{connections:t}]=Ck(),n=aj(),[{remote:r}]=Mu(),i=te.find(r,{url:e});return i&&!(i!=null&&i.disabled)?n({url:e})?"connected":t?"connecting":e?"error":"not-connected":"not-connected"}const bGe={connected:"success.light",connecting:"warning.light",error:"error.light","not-connected":"text.disabled"};function xGe({value:e,onValueChange:t}){const n=UNe(e.url),r=yGe(e.url);function i(o){t==null||t(ik(e,o))}return C.jsx(C.Fragment,{children:C.jsxs(gn,{alignItems:"center",py:.5,children:[C.jsx(Qee,{sx:{color:bGe[r]}}),C.jsx(Kr,{}),C.jsxs(lt,{flex:1,children:[C.jsx(Lt,{children:n?`${n.name} ${n.version}`:te.startCase(r)}),C.jsx(Lt,{variant:"body2",color:"text.secondary",children:(n==null?void 0:n.description)??((e==null?void 0:e.url)||"No URL")})]}),C.jsx(qd,{title:`${e.disabled?"Enable":"Disable"} Connection`,children:C.jsx(lt,{children:C.jsx(Sg,{checked:!e.disabled,onChange:(o,s)=>i({disabled:!s})})})}),C.jsx($z,{trigger:o=>C.jsx($m,{icon:C.jsx(rk,{}),label:"Edit Connection",onClick:o}),appBar:{children:C.jsx(Bz,{children:"Edit Connection"})},children:C.jsxs(lt,{p:2.5,children:[C.jsx(V1,{value:e.url,onChange:o=>i({url:o.target.value}),fullWidth:!0,variant:"filled",label:"URL",sx:{mb:2}}),C.jsx(fx,{placeholder:"Connection Type",items:te.entries(jj).map(([o,{name:s}])=>({value:o,label:s})),fullWidth:!0,value:e.transport,onChange:o=>i({transport:o})})]})})]})})}function wGe(){const[{remote:e},t]=Mu();return C.jsx(C.Fragment,{children:C.jsx(Ek,{editor:n=>C.jsx(xGe,{value:n}),icon:null,value:e,onChange:te.debounce(n=>t(()=>({remote:n})),300),addItemLabel:"Add Solver",create:()=>({transport:Tre,url:"",disabled:!0}),extras:C.jsx(Dd,{icon:C.jsx(VK,{}),sx:{ml:2},onClick:()=>t(()=>({remote:zQ})),children:"Reset to Defaults"})})})}const DV=e=>`${e}x`;function _Ge(){const{controls:e,onChange:t,state:n}=Ou(),[{playbackRate:r=1,acrylic:i,theme:o="light",accentColor:s="teal"},l]=Mu(),[c,d]=I.useState("general");function f(p){return C.jsx(Lt,{variant:"overline",color:"text.secondary",children:p})}function h(p){return C.jsx(Lt,{variant:"body1",children:p})}return C.jsx(WQ,{value:c,children:C.jsxs(Sn,{onChange:t,stack:n,children:[C.jsx(Sn.Options,{children:C.jsxs(XQ,{onChange:(p,g)=>d(g),children:[C.jsx(Om,{label:"General",value:"general"}),C.jsx(Om,{label:"Connections",value:"connections"}),C.jsx(Om,{label:"Renderers",value:"renderers"}),C.jsx(Om,{label:"Map Parsers",value:"map-parsers"})]})}),C.jsx(Sn.Content,{children:C.jsx(gn,{vertical:!0,children:C.jsx(Zg,{y:!0,children:C.jsxs(gn,{vertical:!0,pt:6,children:[C.jsx(Nm,{value:"general",children:C.jsxs(lt,{children:[f("Playback"),C.jsxs(gn,{alignItems:"center",children:[h("Playback Rate"),C.jsx(Kr,{flex:1}),C.jsx(k0e,{sx:{maxWidth:320,mr:2},marks:[1,2,5,10].map(p=>({value:p*cm,label:DV(p)})),step:1*cm,min:1*cm,max:10*cm,valueLabelFormat:p=>DV(p/cm),valueLabelDisplay:"auto",defaultValue:r,onChangeCommitted:(p,g)=>l(()=>({playbackRate:g}))})]}),f("UI"),C.jsxs(gn,{alignItems:"center",children:[h("Acrylic"),C.jsx(Kr,{flex:1}),C.jsx(Sg,{defaultChecked:!!i,onChange:(p,g)=>l(()=>({acrylic:g}))})]}),C.jsxs(gn,{alignItems:"center",children:[h("Dark Mode"),C.jsx(Kr,{flex:1}),C.jsx(Sg,{defaultChecked:o==="dark",onChange:(p,g)=>l(()=>({theme:g?"dark":"light"}))})]}),C.jsxs(gn,{alignItems:"center",children:[h("Accent"),C.jsx(Kr,{flex:1}),C.jsx(Rs,{value:s,items:te.map(te.keys(t_e),p=>({id:p,name:te.startCase(p)})),showArrow:!0,onChange:p=>l(()=>({accentColor:p}))})]})]})}),C.jsx(Nm,{value:"connections",children:C.jsxs(lt,{children:[f("Solvers"),C.jsx(wGe,{})]})}),C.jsx(Nm,{value:"renderers",children:C.jsxs(lt,{children:[f("Renderers"),C.jsx(vGe,{})]})}),C.jsx(Nm,{value:"map-parsers",children:C.jsxs(lt,{children:[f("Map Parsers"),C.jsx(SGe,{})]})})]})})})}),C.jsx(Sn.Extras,{children:e})]})})}function SGe(){return C.jsx(mp,{children:te.keys(Gz).map(e=>C.jsx(ux,{children:C.jsx(ol,{primary:e,secondary:"Internal"})},e))})}const tA=0,Jd=1,pv=2,kre=4;function Are(e,t){return n=>e(t(n))}function EGe(e,t){return t(e)}function Rre(e,t){return n=>e(t,n)}function LV(e,t){return()=>e(t)}function nA(e,t){return t(e),e}function gr(...e){return e}function CGe(e){e()}function NV(e){return()=>e}function TGe(...e){return()=>{e.map(CGe)}}function Uj(e){return e!==void 0}function mv(){}function jn(e,t){return e(Jd,t)}function en(e,t){e(tA,t)}function Hj(e){e(pv)}function Ts(e){return e(kre)}function _t(e,t){return jn(e,Rre(t,tA))}function Tu(e,t){const n=e(Jd,r=>{n(),t(r)});return n}function bn(){const e=[];return(t,n)=>{switch(t){case pv:e.splice(0,e.length);return;case Jd:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)};case tA:e.slice().forEach(r=>{r(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function et(e){let t=e;const n=bn();return(r,i)=>{switch(r){case Jd:i(t);break;case tA:t=i;break;case kre:return t}return n(r,i)}}function kGe(e){let t,n;const r=()=>t&&t();return function(i,o){switch(i){case Jd:return o?n===o?void 0:(r(),n=o,t=jn(e,o),t):(r(),mv);case pv:r(),n=null;return;default:throw new Error(`unrecognized action ${i}`)}}}function Ms(e){return nA(bn(),t=>_t(e,t))}function Co(e,t){return nA(et(t),n=>_t(e,n))}function AGe(...e){return t=>e.reduceRight(EGe,t)}function Pe(e,...t){const n=AGe(...t);return(r,i)=>{switch(r){case Jd:return jn(e,n(i));case pv:Hj(e);return}}}function Ire(e,t){return e===t}function hr(e=Ire){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function Ht(e){return t=>n=>{e(n)&&t(n)}}function ct(e){return t=>Are(t,e)}function iu(e){return t=>()=>t(e)}function Nl(e,t){return n=>r=>n(t=e(t,r))}function zg(e){return t=>n=>{e>0?e--:t(n)}}function pd(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function BV(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function an(...e){const t=new Array(e.length);let n=0,r=null;const i=Math.pow(2,e.length)-1;return e.forEach((o,s)=>{const l=Math.pow(2,s);jn(o,c=>{const d=n;n=n|l,t[s]=c,d!==i&&n===i&&r&&(r(),r=null)})}),o=>s=>{const l=()=>o([s].concat(t));n===i?l():r=l}}function $V(...e){return function(t,n){switch(t){case Jd:return TGe(...e.map(r=>jn(r,n)));case pv:return;default:throw new Error(`unrecognized action ${t}`)}}}function Ut(e,t=Ire){return Pe(e,hr(t))}function yi(...e){const t=bn(),n=new Array(e.length);let r=0;const i=Math.pow(2,e.length)-1;return e.forEach((o,s)=>{const l=Math.pow(2,s);jn(o,c=>{n[s]=c,r=r|l,r===i&&en(t,n)})}),function(o,s){switch(o){case Jd:return r===i&&s(n),jn(t,s);case pv:return Hj(t);default:throw new Error(`unrecognized action ${o}`)}}}function $n(e,t=[],{singleton:n}={singleton:!0}){return{id:RGe(),constructor:e,dependencies:t,singleton:n}}const RGe=()=>Symbol();function IGe(e){const t=new Map,n=({id:r,constructor:i,dependencies:o,singleton:s})=>{if(s&&t.has(r))return t.get(r);const l=i(o.map(c=>n(c)));return s&&t.set(r,l),l};return n(e)}function PGe(e,t){const n={},r={};let i=0;const o=e.length;for(;i(S[_]=b=>{const x=y[t.methods[_]];en(x,b)},S),{})}function f(y){return s.reduce((S,_)=>(S[_]=kGe(y[t.events[_]]),S),{})}return{Component:de.forwardRef((y,S)=>{const{children:_,...b}=y,[x]=de.useState(()=>nA(IGe(e),A=>c(A,b))),[E]=de.useState(LV(f,x));return sS(()=>{for(const A of s)A in b&&jn(E[A],b[A]);return()=>{Object.values(E).map(Hj)}},[b,E,x]),sS(()=>{c(x,b)}),de.useImperativeHandle(S,NV(d(x))),de.createElement(l.Provider,{value:x},n?de.createElement(n,PGe([...r,...i,...s],b),_):_)}),usePublisher:y=>de.useCallback(Rre(en,de.useContext(l)[y]),[y]),useEmitterValue:y=>{const _=de.useContext(l)[y],[b,x]=de.useState(LV(Ts,_));return sS(()=>jn(_,E=>{E!==b&&x(NV(E))}),[_,b]),b},useEmitter:(y,S)=>{const b=de.useContext(l)[y];sS(()=>jn(b,S),[S,b])}}}const OGe=typeof document<"u"?de.useLayoutEffect:de.useEffect,MGe=OGe;var Ds=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(Ds||{});const DGe={0:"debug",1:"log",2:"warn",3:"error"},LGe=()=>typeof globalThis>"u"?window:globalThis,Zd=$n(()=>{const e=et(3);return{log:et((n,r,i=1)=>{var o;const s=(o=LGe().VIRTUOSO_LOG_LEVEL)!=null?o:Ts(e);i>=s&&console[DGe[i]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,r)}),logLevel:e}},[],{singleton:!0});function Wj(e,t=!0){const n=de.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=de.useMemo(()=>new ResizeObserver(o=>{const s=o[0].target;s.offsetParent!==null&&e(s)}),[e]);r=o=>{o&&t?(i.observe(o),n.current=o):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function Hp(e,t=!0){return Wj(e,t).callbackRef}function NGe(e,t,n,r,i,o,s){const l=de.useCallback(c=>{const d=BGe(c.children,t,"offsetHeight",i);let f=c.parentElement;for(;!f.dataset.virtuosoScroller;)f=f.parentElement;const h=f.lastElementChild.dataset.viewportType==="window",p=s?s.scrollTop:h?window.pageYOffset||document.documentElement.scrollTop:f.scrollTop,g=s?s.scrollHeight:h?document.documentElement.scrollHeight:f.scrollHeight,v=s?s.offsetHeight:h?window.innerHeight:f.offsetHeight;r({scrollTop:Math.max(p,0),scrollHeight:g,viewportHeight:v}),o==null||o($Ge("row-gap",getComputedStyle(c).rowGap,i)),d!==null&&e(d)},[e,t,i,o,s,r]);return Wj(l,n)}function BGe(e,t,n,r){const i=e.length;if(i===0)return null;const o=[];for(let s=0;s{const p=h.target,g=p===window||p===document,v=g?window.pageYOffset||document.documentElement.scrollTop:p.scrollTop,y=g?document.documentElement.scrollHeight:p.scrollHeight,S=g?window.innerHeight:p.offsetHeight,_=()=>{e({scrollTop:Math.max(v,0),scrollHeight:y,viewportHeight:S})};h.suppressFlushSync?_():Pm.flushSync(_),s.current!==null&&(v===s.current||v<=0||v===y-S)&&(s.current=null,t(!0),l.current&&(clearTimeout(l.current),l.current=null))},[e,t]);de.useEffect(()=>{const h=i||o.current;return r(i||o.current),c({target:h,suppressFlushSync:!0}),h.addEventListener("scroll",c,{passive:!0}),()=>{r(null),h.removeEventListener("scroll",c)}},[o,c,n,r,i]);function d(h){const p=o.current;if(!p||"offsetHeight"in p&&p.offsetHeight===0)return;const g=h.behavior==="smooth";let v,y,S;p===window?(y=Math.max(zd(document.documentElement,"height"),document.documentElement.scrollHeight),v=window.innerHeight,S=document.documentElement.scrollTop):(y=p.scrollHeight,v=zd(p,"height"),S=p.scrollTop);const _=y-v;if(h.top=Math.ceil(Math.max(Math.min(_,h.top),0)),Ore(v,y)||h.top===S){e({scrollTop:S,scrollHeight:y,viewportHeight:v}),g&&t(!0);return}g?(s.current=h.top,l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{l.current=null,s.current=null,t(!0)},1e3)):s.current=null,p.scrollTo(h)}function f(h){o.current.scrollBy(h)}return{scrollerRef:o,scrollByCallback:f,scrollToCallback:d}}const Io=$n(()=>{const e=bn(),t=bn(),n=et(0),r=bn(),i=et(0),o=bn(),s=bn(),l=et(0),c=et(0),d=et(0),f=et(0),h=bn(),p=bn(),g=et(!1);return _t(Pe(e,ct(({scrollTop:v})=>v)),t),_t(Pe(e,ct(({scrollHeight:v})=>v)),s),_t(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:o,headerHeight:l,fixedHeaderHeight:c,fixedFooterHeight:d,footerHeight:f,scrollHeight:s,smoothScrollTargetReached:r,scrollTo:h,scrollBy:p,statefulScrollTop:i,deviation:n,scrollingInProgress:g}},[],{singleton:!0}),k1={lvl:0};function Dre(e,t,n,r=k1,i=k1){return{k:e,v:t,lvl:n,l:r,r:i}}function Kn(e){return e===k1}function sg(){return k1}function a5(e,t){if(Kn(e))return k1;const{k:n,l:r,r:i}=e;if(t===n){if(Kn(r))return i;if(Kn(i))return r;{const[o,s]=Lre(r);return YS(ui(e,{k:o,v:s,l:Nre(r)}))}}else return tt&&(l=l.concat(l5(o,t,n))),r>=t&&r<=n&&l.push({k:r,v:i}),r<=n&&(l=l.concat(l5(s,t,n))),l}function qh(e){return Kn(e)?[]:[...qh(e.l),{k:e.k,v:e.v},...qh(e.r)]}function Lre(e){return Kn(e.r)?[e.k,e.v]:Lre(e.r)}function Nre(e){return Kn(e.r)?e.l:YS(ui(e,{r:Nre(e.r)}))}function ui(e,t){return Dre(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function KB(e){return Kn(e)||e.lvl>e.r.lvl}function FV(e){return c5($re(e))}function YS(e){const{l:t,r:n,lvl:r}=e;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(KB(t))return $re(ui(e,{lvl:r-1}));if(!Kn(t)&&!Kn(t.r))return ui(t.r,{l:ui(t,{r:t.r.l}),r:ui(e,{l:t.r.r,lvl:r-1}),lvl:r});throw new Error("Unexpected empty nodes")}else{if(KB(e))return c5(ui(e,{lvl:r-1}));if(!Kn(n)&&!Kn(n.l)){const i=n.l,o=KB(i)?n.lvl-1:n.lvl;return ui(i,{l:ui(e,{r:i.l,lvl:r-1}),r:c5(ui(n,{l:i.r,lvl:o})),lvl:i.lvl+1})}else throw new Error("Unexpected empty nodes")}}function rA(e,t,n){if(Kn(e))return[];const r=pl(e,t)[0];return FGe(l5(e,r,n))}function Bre(e,t){const n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]);const o=[];for(let s=1;s({index:t,value:n}))}function c5(e){const{r:t,lvl:n}=e;return!Kn(t)&&!Kn(t.r)&&t.lvl===n&&t.r.lvl===n?ui(t,{l:ui(e,{r:t.l}),lvl:n+1}):e}function $re(e){const{l:t}=e;return!Kn(t)&&t.lvl===e.lvl?ui(t,{r:ui(e,{l:t.r})}):e}function RC(e,t,n,r=0){let i=e.length-1;for(;r<=i;){const o=Math.floor((r+i)/2),s=e[o],l=n(s,t);if(l===0)return o;if(l===-1){if(i-r<2)return o-1;i=o-1}else{if(i===r)return o;r=o+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function Fre(e,t,n){return e[RC(e,t,n)]}function zGe(e,t,n,r){const i=RC(e,t,r),o=RC(e,n,r,i);return e.slice(i,o+1)}const Gj=$n(()=>({recalcInProgress:et(!1)}),[],{singleton:!0});function jGe(e){const{size:t,startIndex:n,endIndex:r}=e;return i=>i.start===n&&(i.end===r||i.end===1/0)&&i.value===t}function zV(e,t){let n=0,r=0;for(;n=f||i===p)&&(e=a5(e,f)):(d=p!==i,c=!0),h>s&&s>=f&&p!==i&&(e=Ss(e,s+1,p));d&&(e=Ss(e,o,i))}return[e,n]}function HGe(){return{offsetTree:[],sizeTree:sg(),groupOffsetTree:sg(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function Vj({index:e},t){return t===e?0:t0&&(t=Math.max(t,Fre(e,r,Vj).offset)),Bre(zGe(e,t,n,WGe),GGe)}function u5(e,t,n,r){let i=e,o=0,s=0,l=0,c=0;if(t!==0){c=RC(i,t-1,Vj),l=i[c].offset;const f=pl(n,t-1);o=f[0],s=f[1],i.length&&i[c].size===pl(n,t)[1]&&(c-=1),i=i.slice(0,c+1)}else i=[];for(const{start:d,value:f}of rA(n,t,1/0)){const h=d-o,p=h*s+l+h*r;i.push({offset:p,size:f,index:d}),o=d,l=p,s=f}return{offsetTree:i,lastIndex:o,lastOffset:l,lastSize:s}}function qGe(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,Ds.DEBUG);const o=e.sizeTree;let s=o,l=0;if(n.length>0&&Kn(o)&&t.length===2){const p=t[0].size,g=t[1].size;s=n.reduce((v,y)=>Ss(Ss(v,y,p),y+1,g),s)}else[s,l]=UGe(s,t);if(s===o)return e;const{offsetTree:c,lastIndex:d,lastSize:f,lastOffset:h}=u5(e.offsetTree,l,s,i);return{sizeTree:s,offsetTree:c,lastIndex:d,lastOffset:h,lastSize:f,groupOffsetTree:n.reduce((p,g)=>Ss(p,g,R1(g,c,i)),sg()),groupIndices:n}}function R1(e,t,n){if(t.length===0)return 0;const{offset:r,index:i,size:o}=Fre(t,e,Vj),s=e-i,l=o*s+(s-1)*n+r;return l>0?l+n:l}function XGe(e){return typeof e.groupIndex<"u"}function zre(e,t,n){if(XGe(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let i=jre(r,t);return i=Math.max(0,i,Math.min(n,i)),i}}function jre(e,t){if(!iA(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function iA(e){return!Kn(e.groupOffsetTree)}function YGe(e){return qh(e).map(({k:t,v:n},r,i)=>{const o=i[r+1],s=o?o.k-1:1/0;return{startIndex:t,endIndex:s,size:n}})}const KGe={offsetHeight:"height",offsetWidth:"width"},nc=$n(([{log:e},{recalcInProgress:t}])=>{const n=bn(),r=bn(),i=Co(r,0),o=bn(),s=bn(),l=et(0),c=et([]),d=et(void 0),f=et(void 0),h=et((A,R)=>zd(A,KGe[R])),p=et(void 0),g=et(0),v=HGe(),y=Co(Pe(n,an(c,e,g),Nl(qGe,v),hr()),v),S=Co(Pe(c,hr(),Nl((A,R)=>({prev:A.current,current:R}),{prev:[],current:[]}),ct(({prev:A})=>A)),[]);_t(Pe(c,Ht(A=>A.length>0),an(y,g),ct(([A,R,k])=>{const O=A.reduce((L,N,H)=>Ss(L,N,R1(N,R.offsetTree,k)||H),sg());return{...R,groupIndices:A,groupOffsetTree:O}})),y),_t(Pe(r,an(y),Ht(([A,{lastIndex:R}])=>A[{startIndex:A,endIndex:R,size:k}])),n),_t(d,f);const _=Co(Pe(d,ct(A=>A===void 0)),!0);_t(Pe(f,Ht(A=>A!==void 0&&Kn(Ts(y).sizeTree)),ct(A=>[{startIndex:0,endIndex:0,size:A}])),n);const b=Ms(Pe(n,an(y),Nl(({sizes:A},[R,k])=>({changed:k!==A,sizes:k}),{changed:!1,sizes:v}),ct(A=>A.changed)));jn(Pe(l,Nl((A,R)=>({diff:A.prev-R,prev:R}),{diff:0,prev:0}),ct(A=>A.diff)),A=>{const{groupIndices:R}=Ts(y);if(A>0)en(t,!0),en(o,A+zV(A,R));else if(A<0){const k=Ts(S);k.length>0&&(A-=zV(-A,k)),en(s,A)}}),jn(Pe(l,an(e)),([A,R])=>{A<0&&R("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:l},Ds.ERROR)});const x=Ms(o);_t(Pe(o,an(y),ct(([A,R])=>{const k=R.groupIndices.length>0,O=[],L=R.lastSize;if(k){const N=A1(R.sizeTree,0);let H=0,W=0;for(;H{let G=F.ranges;return F.prevSize!==0&&(G=[...F.ranges,{startIndex:F.prevIndex,endIndex:j+A-1,size:F.prevSize}]),{ranges:G,prevIndex:j+A,prevSize:V}},{ranges:O,prevIndex:A,prevSize:0}).ranges}return qh(R.sizeTree).reduce((N,{k:H,v:W})=>({ranges:[...N.ranges,{startIndex:N.prevIndex,endIndex:H+A-1,size:N.prevSize}],prevIndex:H+A,prevSize:W}),{ranges:[],prevIndex:0,prevSize:L}).ranges})),n);const E=Ms(Pe(s,an(y,g),ct(([A,{offsetTree:R},k])=>{const O=-A;return R1(O,R,k)})));return _t(Pe(s,an(y,g),ct(([A,R,k])=>{if(R.groupIndices.length>0){if(Kn(R.sizeTree))return R;let L=sg();const N=Ts(S);let H=0,W=0,z=0;for(;H<-A;){z=N[W];const F=N[W+1]-z-1;W++,H+=F+1}if(L=qh(R.sizeTree).reduce((F,{k:j,v:V})=>Ss(F,Math.max(0,j+A),V),L),H!==-A){const F=A1(R.sizeTree,z);L=Ss(L,0,F);const j=pl(R.sizeTree,-A+1)[1];L=Ss(L,1,j)}return{...R,sizeTree:L,...u5(R.offsetTree,0,L,k)}}else{const L=qh(R.sizeTree).reduce((N,{k:H,v:W})=>Ss(N,Math.max(0,H+A),W),sg());return{...R,sizeTree:L,...u5(R.offsetTree,0,L,k)}}})),y),{data:p,totalCount:r,sizeRanges:n,groupIndices:c,defaultItemSize:f,fixedItemSize:d,unshiftWith:o,shiftWith:s,shiftWithOffset:E,beforeUnshiftWith:x,firstItemIndex:l,gap:g,sizes:y,listRefresh:b,statefulTotalCount:i,trackItemSizes:_,itemSize:h}},gr(Zd,Gj),{singleton:!0}),QGe=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function Ure(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!QGe)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const ww=$n(([{sizes:e,totalCount:t,listRefresh:n,gap:r},{scrollingInProgress:i,viewportHeight:o,scrollTo:s,smoothScrollTargetReached:l,headerHeight:c,footerHeight:d,fixedHeaderHeight:f,fixedFooterHeight:h},{log:p}])=>{const g=bn(),v=et(0);let y=null,S=null,_=null;function b(){y&&(y(),y=null),_&&(_(),_=null),S&&(clearTimeout(S),S=null),en(i,!1)}return _t(Pe(g,an(e,o,t,v,c,d,p),an(r,f,h),ct(([[x,E,A,R,k,O,L,N],H,W,z])=>{const D=Ure(x),{align:F,behavior:j,offset:V}=D,G=R-1,K=zre(D,E,G);let Y=R1(K,E.offsetTree,H)+O;F==="end"?(Y+=W+pl(E.sizeTree,K)[1]-A+z,K===G&&(Y+=L)):F==="center"?Y+=(W+pl(E.sizeTree,K)[1]-A+z)/2:Y-=k,V&&(Y+=V);const J=ie=>{b(),ie?(N("retrying to scroll to",{location:x},Ds.DEBUG),en(g,x)):N("list did not change, scroll successful",{},Ds.DEBUG)};if(b(),j==="smooth"){let ie=!1;_=jn(n,ce=>{ie=ie||ce}),y=Tu(l,()=>{J(ie)})}else y=Tu(Pe(n,JGe(150)),J);return S=setTimeout(()=>{b()},1200),en(i,!0),N("scrolling from index to",{index:K,top:Y,behavior:j},Ds.DEBUG),{top:Y,behavior:j}})),s),{scrollToIndex:g,topListHeight:v}},gr(nc,Io,Zd),{singleton:!0});function JGe(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}const I1="up",Cx="down",ZGe="none",e9e={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},t9e=0,_w=$n(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:i,scrollBy:o}])=>{const s=et(!1),l=et(!0),c=bn(),d=bn(),f=et(4),h=et(t9e),p=Co(Pe($V(Pe(Ut(t),zg(1),iu(!0)),Pe(Ut(t),zg(1),iu(!1),BV(100))),hr()),!1),g=Co(Pe($V(Pe(o,iu(!0)),Pe(o,iu(!1),BV(200))),hr()),!1);_t(Pe(yi(Ut(t),Ut(h)),ct(([b,x])=>b<=x),hr()),l),_t(Pe(l,pd(50)),d);const v=Ms(Pe(yi(e,Ut(n),Ut(r),Ut(i),Ut(f)),Nl((b,[{scrollTop:x,scrollHeight:E},A,R,k,O])=>{const L=x+A-E>-O,N={viewportHeight:A,scrollTop:x,scrollHeight:E};if(L){let W,z;return x>b.state.scrollTop?(W="SCROLLED_DOWN",z=b.state.scrollTop-x):(W="SIZE_DECREASED",z=b.state.scrollTop-x||b.scrollTopDelta),{atBottom:!0,state:N,atBottomBecause:W,scrollTopDelta:z}}let H;return N.scrollHeight>b.state.scrollHeight?H="SIZE_INCREASED":Ab&&b.atBottom===x.atBottom))),y=Co(Pe(e,Nl((b,{scrollTop:x,scrollHeight:E,viewportHeight:A})=>{if(Ore(b.scrollHeight,E))return{scrollTop:x,scrollHeight:E,jump:0,changed:!1};{const R=E-(x+A)<1;return b.scrollTop!==x&&R?{scrollHeight:E,scrollTop:x,jump:b.scrollTop-x,changed:!0}:{scrollHeight:E,scrollTop:x,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),Ht(b=>b.changed),ct(b=>b.jump)),0);_t(Pe(v,ct(b=>b.atBottom)),s),_t(Pe(s,pd(50)),c);const S=et(Cx);_t(Pe(e,ct(({scrollTop:b})=>b),hr(),Nl((b,x)=>Ts(g)?{direction:b.direction,prevScrollTop:x}:{direction:xb.direction)),S),_t(Pe(e,pd(50),iu(ZGe)),S);const _=et(0);return _t(Pe(p,Ht(b=>!b),iu(0)),_),_t(Pe(t,pd(100),an(p),Ht(([b,x])=>!!x),Nl(([b,x],[E])=>[x,E],[0,0]),ct(([b,x])=>x-b)),_),{isScrolling:p,isAtTop:l,isAtBottom:s,atBottomState:v,atTopStateChange:d,atBottomStateChange:c,scrollDirection:S,atBottomThreshold:f,atTopThreshold:h,scrollVelocity:_,lastJumpDueToItemResize:y}},gr(Io)),ef=$n(([{log:e}])=>{const t=et(!1),n=Ms(Pe(t,Ht(r=>r),hr()));return jn(t,r=>{r&&Ts(e)("props updated",{},Ds.DEBUG)}),{propsReady:t,didMount:n}},gr(Zd),{singleton:!0});function qj(e,t){e==0?t():requestAnimationFrame(()=>qj(e-1,t))}function Xj(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const Sw=$n(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:r},{scrollToIndex:i},{didMount:o}])=>{const s=et(!0),l=et(0),c=et(!1);return _t(Pe(o,an(l),Ht(([d,f])=>!!f),iu(!1)),s),jn(Pe(yi(t,o),an(s,e,n,c),Ht(([[,d],f,{sizeTree:h},p,g])=>d&&(!Kn(h)||Uj(p))&&!f&&!g),an(l)),([,d])=>{en(c,!0),qj(3,()=>{Tu(r,()=>en(s,!0)),en(i,d)})}),{scrolledToInitialItem:s,initialTopMostItemIndex:l}},gr(nc,Io,ww,ef),{singleton:!0});function jV(e){return e?e==="smooth"?"smooth":"auto":!1}const n9e=(e,t)=>typeof e=="function"?jV(e(t)):t&&jV(e),r9e=$n(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:r},{scrollToIndex:i},{scrolledToInitialItem:o},{propsReady:s,didMount:l},{log:c},{scrollingInProgress:d}])=>{const f=et(!1),h=bn();let p=null;function g(y){en(i,{index:"LAST",align:"end",behavior:y})}jn(Pe(yi(Pe(Ut(e),zg(1)),l),an(Ut(f),n,o,d),ct(([[y,S],_,b,x,E])=>{let A=S&&x,R="auto";return A&&(R=n9e(_,b||E),A=A&&!!R),{totalCount:y,shouldFollow:A,followOutputBehavior:R}}),Ht(({shouldFollow:y})=>y)),({totalCount:y,followOutputBehavior:S})=>{p&&(p(),p=null),p=Tu(t,()=>{Ts(c)("following output to ",{totalCount:y},Ds.DEBUG),g(S),p=null})});function v(y){const S=Tu(r,_=>{y&&!_.atBottom&&_.notAtBottomBecause==="SIZE_INCREASED"&&!p&&(Ts(c)("scrolling to bottom due to increased size",{},Ds.DEBUG),g("auto"))});setTimeout(S,100)}return jn(Pe(yi(Ut(f),e,s),Ht(([y,,S])=>y&&S),Nl(({value:y},[,S])=>({refreshed:y===S,value:S}),{refreshed:!1,value:0}),Ht(({refreshed:y})=>y),an(f,e)),([,y])=>{v(y!==!1)}),jn(h,()=>{v(Ts(f)!==!1)}),jn(yi(Ut(f),r),([y,S])=>{y&&!S.atBottom&&S.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&g("auto")}),{followOutput:f,autoscrollToBottom:h}},gr(nc,_w,ww,Sw,ef,Zd,Io));function i9e(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const Hre=$n(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:i}])=>{const o=bn(),s=bn(),l=Ms(Pe(o,ct(i9e)));return _t(Pe(l,ct(c=>c.totalCount)),e),_t(Pe(l,ct(c=>c.groupIndices)),t),_t(Pe(yi(r,n,i),Ht(([c,d])=>iA(d)),ct(([c,d,f])=>pl(d.groupOffsetTree,Math.max(c-f,0),"v")[0]),hr(),ct(c=>[c])),s),{groupCounts:o,topItemsIndexes:s}},gr(nc,Io));function P1(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function Wre(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const IC="top",PC="bottom",UV="none";function HV(e,t,n){return typeof e=="number"?n===I1&&t===IC||n===Cx&&t===PC?e:0:n===I1?t===IC?e.main:e.reverse:t===PC?e.main:e.reverse}function WV(e,t){return typeof e=="number"?e:e[t]||0}const Yj=$n(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:i}])=>{const o=bn(),s=et(0),l=et(0),c=et(0),d=Co(Pe(yi(Ut(e),Ut(t),Ut(r),Ut(o,P1),Ut(c),Ut(s),Ut(i),Ut(n),Ut(l)),ct(([f,h,p,[g,v],y,S,_,b,x])=>{const E=f-b,A=S+_,R=Math.max(p-E,0);let k=UV;const O=WV(x,IC),L=WV(x,PC);return g-=b,g+=p+_,v+=p+_,v-=b,g>f+A-O&&(k=I1),vf!=null),hr(P1)),[0,0]);return{listBoundary:o,overscan:c,topListHeight:s,increaseViewportBy:l,visibleRange:d}},gr(Io),{singleton:!0});function o9e(e,t,n){if(iA(t)){const r=jre(e,t);return[{index:pl(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}const QB={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function GV(e,t,n){if(e.length===0)return[];if(!iA(t))return e.map(d=>({...d,index:d.index+n,originalIndex:d.index}));const r=e[0].index,i=e[e.length-1].index,o=[],s=rA(t.groupOffsetTree,r,i);let l,c=0;for(const d of e){(!l||l.end0){d=e[0].offset;const y=e[e.length-1];f=y.offset+y.size}const h=n-c,p=l+h*s+(h-1)*r,g=d,v=p-f;return{items:GV(e,i,o),topItems:GV(t,i,o),topListHeight:t.reduce((y,S)=>S.size+y,0),offsetTop:d,offsetBottom:v,top:g,bottom:f,totalCount:n,firstItemIndex:o}}function Gre(e,t,n,r,i,o){let s=0;if(n.groupIndices.length>0)for(const f of n.groupIndices){if(f-s>=e)break;s++}const l=e+s,c=Xj(t,l),d=Array.from({length:l}).map((f,h)=>({index:h+c,size:0,offset:0,data:o[h+c]}));return KS(d,[],l,i,n,r)}const Wp=$n(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:i},o,{visibleRange:s,listBoundary:l,topListHeight:c},{scrolledToInitialItem:d,initialTopMostItemIndex:f},{topListHeight:h},p,{didMount:g},{recalcInProgress:v}])=>{const y=et([]),S=et(0),_=bn();_t(o.topItemsIndexes,y);const b=Co(Pe(yi(g,v,Ut(s,P1),Ut(t),Ut(e),Ut(f),d,Ut(y),Ut(r),Ut(i),n),Ht(([R,k,,O,,,,,,,L])=>{const N=L&&L.length!==O;return R&&!k&&!N}),ct(([,,[R,k],O,L,N,H,W,z,D,F])=>{const j=L,{sizeTree:V,offsetTree:G}=j,K=Ts(S);if(O===0)return{...QB,totalCount:O};if(R===0&&k===0)return K===0?{...QB,totalCount:O}:Gre(K,N,L,z,D,F||[]);if(Kn(V))return K>0?null:KS(o9e(Xj(N,O),j,F),[],O,D,j,z);const Y=[];if(W.length>0){const se=W[0],Q=W[W.length-1];let ae=0;for(const le of rA(V,se,Q)){const he=le.value,pe=Math.max(le.start,se),ve=Math.min(le.end,Q);for(let ye=pe;ye<=ve;ye++)Y.push({index:ye,size:he,offset:ae,data:F&&F[ye]}),ae+=he}}if(!H)return KS([],Y,O,D,j,z);const J=W.length>0?W[W.length-1]+1:0,ie=VGe(G,R,k,J);if(ie.length===0)return null;const ce=O-1,ue=nA([],se=>{for(const Q of ie){const ae=Q.value;let le=ae.offset,he=Q.start;const pe=ae.size;if(ae.offset=k);ye++)se.push({index:ye,size:pe,offset:le,data:F&&F[ye]}),le+=pe+D}});return KS(ue,Y,O,D,j,z)}),Ht(R=>R!==null),hr()),QB);_t(Pe(n,Ht(Uj),ct(R=>R==null?void 0:R.length)),t),_t(Pe(b,ct(R=>R.topListHeight)),h),_t(h,c),_t(Pe(b,ct(R=>[R.top,R.bottom])),l),_t(Pe(b,ct(R=>R.items)),_);const x=Ms(Pe(b,Ht(({items:R})=>R.length>0),an(t,n),Ht(([{items:R},k])=>R[R.length-1].originalIndex===k-1),ct(([,R,k])=>[R-1,k]),hr(P1),ct(([R])=>R))),E=Ms(Pe(b,pd(200),Ht(({items:R,topItems:k})=>R.length>0&&R[0].originalIndex===k.length),ct(({items:R})=>R[0].index),hr())),A=Ms(Pe(b,Ht(({items:R})=>R.length>0),ct(({items:R})=>{let k=0,O=R.length-1;for(;R[k].type==="group"&&kk;)O--;return{startIndex:R[k].index,endIndex:R[O].index}}),hr(Wre)));return{listState:b,topItemsIndexes:y,endReached:x,startReached:E,rangeChanged:A,itemsRendered:_,initialItemCount:S,...p}},gr(nc,Hre,Yj,Sw,ww,_w,ef,Gj),{singleton:!0}),s9e=$n(([{sizes:e,firstItemIndex:t,data:n,gap:r},{initialTopMostItemIndex:i},{initialItemCount:o,listState:s},{didMount:l}])=>(_t(Pe(l,an(o),Ht(([,c])=>c!==0),an(i,e,t,r,n),ct(([[,c],d,f,h,p,g=[]])=>Gre(c,d,f,h,p,g))),s),{}),gr(nc,Sw,Wp,ef),{singleton:!0}),Vre=$n(([{scrollVelocity:e}])=>{const t=et(!1),n=bn(),r=et(!1);return _t(Pe(e,an(r,t,n),Ht(([i,o])=>!!o),ct(([i,o,s,l])=>{const{exit:c,enter:d}=o;if(s){if(c(i,l))return!1}else if(d(i,l))return!0;return s}),hr()),t),jn(Pe(yi(t,e,n),an(r)),([[i,o,s],l])=>i&&l&&l.change&&l.change(o,s)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},gr(_w),{singleton:!0}),a9e=$n(([{topItemsIndexes:e}])=>{const t=et(0);return _t(Pe(t,Ht(n=>n>0),ct(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},gr(Wp)),qre=$n(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:i}])=>{const o=bn(),s=Co(Pe(yi(e,r,t,n,i),ct(([l,c,d,f,h])=>l+c+d+f+h.offsetBottom+h.bottom)),0);return _t(Ut(s),o),{totalListHeight:s,totalListHeightChanged:o}},gr(Io,Wp),{singleton:!0});function Xre(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const l9e=Xre(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),c9e=$n(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:r},{isScrolling:i,isAtBottom:o,scrollDirection:s,lastJumpDueToItemResize:l},{listState:c},{beforeUnshiftWith:d,shiftWithOffset:f,sizes:h,gap:p},{log:g},{recalcInProgress:v}])=>{const y=Ms(Pe(c,an(l),Nl(([,_,b,x],[{items:E,totalCount:A,bottom:R,offsetBottom:k},O])=>{const L=R+k;let N=0;return b===A&&_.length>0&&E.length>0&&(E[0].originalIndex===0&&_[0].originalIndex===0||(N=L-x,N!==0&&(N+=O))),[N,E,A,L]},[0,[],0,0]),Ht(([_])=>_!==0),an(t,s,r,o,g,v),Ht(([,_,b,x,,,E])=>!E&&!x&&_!==0&&b===I1),ct(([[_],,,,,b])=>(b("Upward scrolling compensation",{amount:_},Ds.DEBUG),_))));function S(_){_>0?(en(e,{top:-_,behavior:"auto"}),en(n,0)):(en(n,0),en(e,{top:-_,behavior:"auto"}))}return jn(Pe(y,an(n,i)),([_,b,x])=>{x&&l9e()?en(n,b-_):S(-_)}),jn(Pe(yi(Co(i,!1),n,v),Ht(([_,b,x])=>!_&&!x&&b!==0),ct(([_,b])=>b),pd(1)),S),_t(Pe(f,ct(_=>({top:-_}))),e),jn(Pe(d,an(h,p),ct(([_,{lastSize:b,groupIndices:x,sizeTree:E},A])=>{function R(k){return k*(b+A)}if(x.length===0)return R(_);{let k=0;const O=A1(E,0);let L=0,N=0;for(;L<_;){L++,k+=O;let H=x.length===N+1?1/0:x[N+1]-x[N]-1;L+H>_&&(k-=O,H=_-L+1),L+=H,k+=R(H),N++}return k}})),_=>{en(n,_),requestAnimationFrame(()=>{en(e,{top:_}),requestAnimationFrame(()=>{en(n,0),en(v,!1)})})}),{deviation:n}},gr(Io,_w,Wp,nc,Zd,Gj)),u9e=$n(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=et(0);return jn(Pe(e,an(r),Ht(([,i])=>i!==0),ct(([,i])=>({top:i}))),i=>{Tu(Pe(n,zg(1),Ht(o=>o.items.length>1)),()=>{requestAnimationFrame(()=>{en(t,i)})})}),{initialScrollTop:r}},gr(ef,Io,Wp),{singleton:!0}),d9e=$n(([{viewportHeight:e},{totalListHeight:t}])=>{const n=et(!1),r=Co(Pe(yi(n,e,t),Ht(([i])=>i),ct(([,i,o])=>Math.max(0,i-o)),pd(0),hr()),0);return{alignToBottom:n,paddingTopAddition:r}},gr(Io,qre),{singleton:!0}),Kj=$n(([{scrollTo:e,scrollContainerState:t}])=>{const n=bn(),r=bn(),i=bn(),o=et(!1),s=et(void 0);return _t(Pe(yi(n,r),ct(([{viewportHeight:l,scrollTop:c,scrollHeight:d},{offsetTop:f}])=>({scrollTop:Math.max(0,c-f),scrollHeight:d,viewportHeight:l}))),t),_t(Pe(e,an(r),ct(([l,{offsetTop:c}])=>({...l,top:l.top+c}))),i),{useWindowScroll:o,customScrollParent:s,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:i}},gr(Io)),f9e=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:r,locationParams:{behavior:i,align:o,...s}})=>er?{...s,behavior:i,align:o??"end"}:null,h9e=$n(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:i,headerHeight:o,fixedHeaderHeight:s,fixedFooterHeight:l,scrollingInProgress:c},{scrollToIndex:d}])=>{const f=bn();return _t(Pe(f,an(e,i,t,o,s,l,r),an(n),ct(([[h,p,g,v,y,S,_,b],x])=>{const{done:E,behavior:A,align:R,calculateViewLocation:k=f9e,...O}=h,L=zre(h,p,v-1),N=R1(L,p.offsetTree,x)+y+S,H=N+pl(p.sizeTree,L)[1],W=b+S,z=b+g-_,D=k({itemTop:N,itemBottom:H,viewportTop:W,viewportBottom:z,locationParams:{behavior:A,align:R,...O}});return D?E&&Tu(Pe(c,Ht(F=>F===!1),zg(Ts(c)?1:2)),E):E&&E(),D}),Ht(h=>h!==null)),d),{scrollIntoView:f}},gr(nc,Io,ww,Wp,Zd),{singleton:!0}),p9e=$n(([{sizes:e,sizeRanges:t},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:o,windowScrollContainerState:s,windowViewportRect:l}])=>{const c=bn(),d=et(void 0),f=et(null),h=et(null);return _t(s,f),_t(l,h),jn(Pe(c,an(e,n,o,f,h)),([p,g,v,y,S,_])=>{const b=YGe(g.sizeTree);y&&S!==null&&_!==null&&(v=S.scrollTop-_.offsetTop),p({ranges:b,scrollTop:v})}),_t(Pe(d,Ht(Uj),ct(m9e)),r),_t(Pe(i,an(d),Ht(([,p])=>p!==void 0),hr(),ct(([,p])=>p.ranges)),t),{getState:c,restoreStateFrom:d}},gr(nc,Io,Sw,ef,Kj));function m9e(e){return{offset:e.scrollTop,index:0,align:"start"}}const g9e=$n(([e,t,n,r,i,o,s,l,c,d])=>({...e,...t,...n,...r,...i,...o,...s,...l,...c,...d}),gr(Yj,s9e,ef,Vre,qre,u9e,d9e,Kj,h9e,Zd)),v9e=$n(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:r,trackItemSizes:i,itemSize:o,data:s,firstItemIndex:l,groupIndices:c,statefulTotalCount:d,gap:f,sizes:h},{initialTopMostItemIndex:p,scrolledToInitialItem:g},v,y,S,{listState:_,topItemsIndexes:b,...x},{scrollToIndex:E},A,{topItemCount:R},{groupCounts:k},O])=>(_t(x.rangeChanged,O.scrollSeekRangeChanged),_t(Pe(O.windowViewportRect,ct(L=>L.visibleHeight)),v.viewportHeight),{totalCount:e,data:s,firstItemIndex:l,sizeRanges:t,initialTopMostItemIndex:p,scrolledToInitialItem:g,topItemsIndexes:b,topItemCount:R,groupCounts:k,fixedItemHeight:n,defaultItemHeight:r,gap:f,...S,statefulTotalCount:d,listState:_,scrollToIndex:E,trackItemSizes:i,itemSize:o,groupIndices:c,...x,...O,...v,sizes:h,...y}),gr(nc,Sw,Io,p9e,r9e,Wp,ww,c9e,a9e,Hre,g9e)),JB="-webkit-sticky",VV="sticky",Yre=Xre(()=>{if(typeof document>"u")return VV;const e=document.createElement("div");return e.style.position=JB,e.style.position===JB?JB:VV});function Kre(e,t){const n=de.useRef(null),r=de.useCallback(l=>{if(l===null||!l.offsetParent)return;const c=l.getBoundingClientRect(),d=c.width;let f,h;if(t){const p=t.getBoundingClientRect(),g=c.top-p.top;f=p.height-Math.max(0,g),h=g+t.scrollTop}else f=window.innerHeight-Math.max(0,c.top),h=c.top+window.pageYOffset;n.current={offsetTop:h,visibleHeight:f,visibleWidth:d},e(n.current)},[e,t]),{callbackRef:i,ref:o}=Wj(r),s=de.useCallback(()=>{r(o.current)},[r,o]);return de.useEffect(()=>{if(t){t.addEventListener("scroll",s);const l=new ResizeObserver(s);return l.observe(t),()=>{t.removeEventListener("scroll",s),l.unobserve(t)}}else return window.addEventListener("scroll",s),window.addEventListener("resize",s),()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s)}},[s,t]),i}const Qre=de.createContext(void 0),Jre=de.createContext(void 0);function Zre(e){return e}const y9e=$n(()=>{const e=et(c=>`Item ${c}`),t=et(null),n=et(c=>`Group ${c}`),r=et({}),i=et(Zre),o=et("div"),s=et(mv),l=(c,d=null)=>Co(Pe(r,ct(f=>f[c]),hr()),d);return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:i,headerFooterTag:o,scrollerRef:s,FooterComponent:l("Footer"),HeaderComponent:l("Header"),TopItemListComponent:l("TopItemList"),ListComponent:l("List","div"),ItemComponent:l("Item","div"),GroupComponent:l("Group","div"),ScrollerComponent:l("Scroller","div"),EmptyPlaceholder:l("EmptyPlaceholder"),ScrollSeekPlaceholder:l("ScrollSeekPlaceholder")}}),b9e=$n(([e,t])=>({...e,...t}),gr(v9e,y9e)),x9e=({height:e})=>de.createElement("div",{style:{height:e}}),w9e={position:Yre(),zIndex:1,overflowAnchor:"none"},_9e={overflowAnchor:"none"},qV=de.memo(function({showTopList:t=!1}){const n=mn("listState"),r=sa("sizeRanges"),i=mn("useWindowScroll"),o=mn("customScrollParent"),s=sa("windowScrollContainerState"),l=sa("scrollContainerState"),c=o||i?s:l,d=mn("itemContent"),f=mn("context"),h=mn("groupContent"),p=mn("trackItemSizes"),g=mn("itemSize"),v=mn("log"),y=sa("gap"),{callbackRef:S}=NGe(r,g,p,t?mv:c,v,y,o),[_,b]=de.useState(0);Qj("deviation",D=>{_!==D&&b(D)});const x=mn("EmptyPlaceholder"),E=mn("ScrollSeekPlaceholder")||x9e,A=mn("ListComponent"),R=mn("ItemComponent"),k=mn("GroupComponent"),O=mn("computeItemKey"),L=mn("isSeeking"),N=mn("groupIndices").length>0,H=mn("paddingTopAddition"),W=mn("scrolledToInitialItem"),z=t?{}:{boxSizing:"border-box",paddingTop:n.offsetTop+H,paddingBottom:n.offsetBottom,marginTop:_,...W?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&x?de.createElement(x,Bo(x,f)):de.createElement(A,{...Bo(A,f),ref:S,style:z,"data-test-id":t?"virtuoso-top-item-list":"virtuoso-item-list"},(t?n.topItems:n.items).map(D=>{const F=D.originalIndex,j=O(F+n.firstItemIndex,D.data,f);return L?de.createElement(E,{...Bo(E,f),key:j,index:D.index,height:D.size,type:D.type||"item",...D.type==="group"?{}:{groupIndex:D.groupIndex}}):D.type==="group"?de.createElement(k,{...Bo(k,f),key:j,"data-index":F,"data-known-size":D.size,"data-item-index":D.index,style:w9e},h(D.index,f)):de.createElement(R,{...Bo(R,f),key:j,"data-index":F,"data-known-size":D.size,"data-item-index":D.index,"data-item-group-index":D.groupIndex,item:D.data,style:_9e},N?d(D.index,D.groupIndex,D.data,f):d(D.index,D.data,f))}))}),S9e={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},oA={width:"100%",height:"100%",position:"absolute",top:0},E9e={width:"100%",position:Yre(),top:0,zIndex:1};function Bo(e,t){if(typeof e!="string")return{context:t}}const C9e=de.memo(function(){const t=mn("HeaderComponent"),n=sa("headerHeight"),r=mn("headerFooterTag"),i=Hp(s=>n(zd(s,"height"))),o=mn("context");return t?de.createElement(r,{ref:i},de.createElement(t,Bo(t,o))):null}),T9e=de.memo(function(){const t=mn("FooterComponent"),n=sa("footerHeight"),r=mn("headerFooterTag"),i=Hp(s=>n(zd(s,"height"))),o=mn("context");return t?de.createElement(r,{ref:i},de.createElement(t,Bo(t,o))):null});function eie({usePublisher:e,useEmitter:t,useEmitterValue:n}){return de.memo(function({style:o,children:s,...l}){const c=e("scrollContainerState"),d=n("ScrollerComponent"),f=e("smoothScrollTargetReached"),h=n("scrollerRef"),p=n("context"),{scrollerRef:g,scrollByCallback:v,scrollToCallback:y}=Mre(c,f,d,h);return t("scrollTo",y),t("scrollBy",v),de.createElement(d,{ref:g,style:{...S9e,...o},"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...l,...Bo(d,p)},s)})}function tie({usePublisher:e,useEmitter:t,useEmitterValue:n}){return de.memo(function({style:o,children:s,...l}){const c=e("windowScrollContainerState"),d=n("ScrollerComponent"),f=e("smoothScrollTargetReached"),h=n("totalListHeight"),p=n("deviation"),g=n("customScrollParent"),v=n("context"),{scrollerRef:y,scrollByCallback:S,scrollToCallback:_}=Mre(c,f,d,mv,g);return MGe(()=>(y.current=g||window,()=>{y.current=null}),[y,g]),t("windowScrollTo",_),t("scrollBy",S),de.createElement(d,{style:{position:"relative",...o,...h!==0?{height:h+p}:{}},"data-virtuoso-scroller":!0,...l,...Bo(d,v)},s)})}const k9e=({children:e})=>{const t=de.useContext(Qre),n=sa("viewportHeight"),r=sa("fixedItemHeight"),i=Hp(Are(n,o=>zd(o,"height")));return de.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),de.createElement("div",{style:oA,ref:i,"data-viewport-type":"element"},e)},A9e=({children:e})=>{const t=de.useContext(Qre),n=sa("windowViewportRect"),r=sa("fixedItemHeight"),i=mn("customScrollParent"),o=Kre(n,i);return de.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),de.createElement("div",{ref:o,style:oA,"data-viewport-type":"window"},e)},R9e=({children:e})=>{const t=mn("TopItemListComponent"),n=mn("headerHeight"),r={...E9e,marginTop:`${n}px`},i=mn("context");return de.createElement(t||"div",{style:r,context:i},e)},I9e=de.memo(function(t){const n=mn("useWindowScroll"),r=mn("topItemsIndexes").length>0,i=mn("customScrollParent"),o=i||n?M9e:O9e,s=i||n?A9e:k9e;return de.createElement(o,{...t},r&&de.createElement(R9e,null,de.createElement(qV,{showTopList:!0})),de.createElement(s,null,de.createElement(C9e,null),de.createElement(qV,null),de.createElement(T9e,null)))}),{Component:P9e,usePublisher:sa,useEmitterValue:mn,useEmitter:Qj}=Pre(b9e,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},I9e),O9e=eie({usePublisher:sa,useEmitterValue:mn,useEmitter:Qj}),M9e=tie({usePublisher:sa,useEmitterValue:mn,useEmitter:Qj}),D9e=P9e,XV={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},L9e={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:YV,ceil:KV,floor:OC,min:ZB,max:Tx}=Math;function N9e(e){return{...L9e,items:e}}function QV(e,t,n){return Array.from({length:t-e+1}).map((r,i)=>{const o=n===null?null:n[i+e];return{index:i+e,data:o}})}function B9e(e,t){return e&&e.column===t.column&&e.row===t.row}function aS(e,t){return e&&e.width===t.width&&e.height===t.height}const $9e=$n(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:i,scrollBy:o,scrollTo:s,smoothScrollTargetReached:l,scrollContainerState:c,footerHeight:d,headerHeight:f},h,p,{propsReady:g,didMount:v},{windowViewportRect:y,useWindowScroll:S,customScrollParent:_,windowScrollContainerState:b,windowScrollTo:x},E])=>{const A=et(0),R=et(0),k=et(XV),O=et({height:0,width:0}),L=et({height:0,width:0}),N=bn(),H=bn(),W=et(0),z=et(null),D=et({row:0,column:0}),F=bn(),j=bn(),V=et(!1),G=et(0),K=et(!0),Y=et(!1);jn(Pe(v,an(G),Ht(([Q,ae])=>!!ae)),()=>{en(K,!1),en(R,0)}),jn(Pe(yi(v,K,L,O,G,Y),Ht(([Q,ae,le,he,,pe])=>Q&&!ae&&le.height!==0&&he.height!==0&&!pe)),([,,,,Q])=>{en(Y,!0),qj(1,()=>{en(N,Q)}),Tu(Pe(r),()=>{en(n,[0,0]),en(K,!0)})}),_t(Pe(j,Ht(Q=>Q!=null&&Q.scrollTop>0),iu(0)),R),jn(Pe(v,an(j),Ht(([,Q])=>Q!=null)),([,Q])=>{Q&&(en(O,Q.viewport),en(L,Q==null?void 0:Q.item),en(D,Q.gap),Q.scrollTop>0&&(en(V,!0),Tu(Pe(r,zg(1)),ae=>{en(V,!1)}),en(s,{top:Q.scrollTop})))}),_t(Pe(O,ct(({height:Q})=>Q)),i),_t(Pe(yi(Ut(O,aS),Ut(L,aS),Ut(D,(Q,ae)=>Q&&Q.column===ae.column&&Q.row===ae.row),Ut(r)),ct(([Q,ae,le,he])=>({viewport:Q,item:ae,gap:le,scrollTop:he}))),F),_t(Pe(yi(Ut(A),t,Ut(D,B9e),Ut(L,aS),Ut(O,aS),Ut(z),Ut(R),Ut(V),Ut(K),Ut(G)),Ht(([,,,,,,,Q])=>!Q),ct(([Q,[ae,le],he,pe,ve,ye,xe,,me,be])=>{const{row:Qe,column:qe}=he,{height:at,width:Nt}=pe,{width:Ie}=ve;if(xe===0&&(Q===0||Ie===0))return XV;if(Nt===0){const Rt=Xj(be,Q),ut=Rt===0?Math.max(xe-1,0):Rt;return N9e(QV(Rt,ut,ye))}const Fe=nie(Ie,Nt,qe);let it,pt;me?ae===0&&le===0&&xe>0?(it=0,pt=xe-1):(it=Fe*OC((ae+Qe)/(at+Qe)),pt=Fe*KV((le+Qe)/(at+Qe))-1,pt=ZB(Q-1,Tx(pt,Fe-1)),it=ZB(pt,Tx(0,it))):(it=0,pt=-1);const mt=QV(it,pt,ye),{top:_e,bottom:ze}=JV(ve,he,pe,mt),Ye=KV(Q/Fe),Ne=Ye*at+(Ye-1)*Qe-ze;return{items:mt,offsetTop:_e,offsetBottom:Ne,top:_e,bottom:ze,itemHeight:at,itemWidth:Nt}})),k),_t(Pe(z,Ht(Q=>Q!==null),ct(Q=>Q.length)),A),_t(Pe(yi(O,L,k,D),Ht(([Q,ae,{items:le}])=>le.length>0&&ae.height!==0&&Q.height!==0),ct(([Q,ae,{items:le},he])=>{const{top:pe,bottom:ve}=JV(Q,he,ae,le);return[pe,ve]}),hr(P1)),n);const J=et(!1);_t(Pe(r,an(J),ct(([Q,ae])=>ae||Q!==0)),J);const ie=Ms(Pe(Ut(k),Ht(({items:Q})=>Q.length>0),an(A,J),Ht(([{items:Q},ae,le])=>le&&Q[Q.length-1].index===ae-1),ct(([,Q])=>Q-1),hr())),ce=Ms(Pe(Ut(k),Ht(({items:Q})=>Q.length>0&&Q[0].index===0),iu(0),hr())),ue=Ms(Pe(Ut(k),an(V),Ht(([{items:Q},ae])=>Q.length>0&&!ae),ct(([{items:Q}])=>({startIndex:Q[0].index,endIndex:Q[Q.length-1].index})),hr(Wre),pd(0)));_t(ue,p.scrollSeekRangeChanged),_t(Pe(N,an(O,L,A,D),ct(([Q,ae,le,he,pe])=>{const ve=Ure(Q),{align:ye,behavior:xe,offset:me}=ve;let be=ve.index;be==="LAST"&&(be=he-1),be=Tx(0,be,ZB(he-1,be));let Qe=d5(ae,pe,le,be);return ye==="end"?Qe=YV(Qe-ae.height+le.height):ye==="center"&&(Qe=YV(Qe-ae.height/2+le.height/2)),me&&(Qe+=me),{top:Qe,behavior:xe}})),s);const se=Co(Pe(k,ct(Q=>Q.offsetBottom+Q.bottom)),0);return _t(Pe(y,ct(Q=>({width:Q.visibleWidth,height:Q.visibleHeight}))),O),{data:z,totalCount:A,viewportDimensions:O,itemDimensions:L,scrollTop:r,scrollHeight:H,overscan:e,scrollBy:o,scrollTo:s,scrollToIndex:N,smoothScrollTargetReached:l,windowViewportRect:y,windowScrollTo:x,useWindowScroll:S,customScrollParent:_,windowScrollContainerState:b,deviation:W,scrollContainerState:c,footerHeight:d,headerHeight:f,initialItemCount:R,gap:D,restoreStateFrom:j,...p,initialTopMostItemIndex:G,gridState:k,totalListHeight:se,...h,startReached:ce,endReached:ie,rangeChanged:ue,stateChanged:F,propsReady:g,stateRestoreInProgress:V,...E}},gr(Yj,Io,_w,Vre,ef,Kj,Zd));function JV(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{top:0,bottom:0};const o=d5(e,t,n,r[0].index),s=d5(e,t,n,r[r.length-1].index)+i;return{top:o,bottom:s}}function d5(e,t,n,r){const i=nie(e.width,n.width,t.column),o=OC(r/i),s=o*n.height+Tx(0,o-1)*t.row;return s>0?s+t.row:s}function nie(e,t,n){return Tx(1,OC((e+n)/(OC(t)+n)))}const F9e=$n(()=>{const e=et(d=>`Item ${d}`),t=et({}),n=et(null),r=et("virtuoso-grid-item"),i=et("virtuoso-grid-list"),o=et(Zre),s=et("div"),l=et(mv),c=(d,f=null)=>Co(Pe(t,ct(h=>h[d]),hr()),f);return{context:n,itemContent:e,components:t,computeItemKey:o,itemClassName:r,listClassName:i,headerFooterTag:s,scrollerRef:l,FooterComponent:c("Footer"),HeaderComponent:c("Header"),ListComponent:c("List","div"),ItemComponent:c("Item","div"),ScrollerComponent:c("Scroller","div"),ScrollSeekPlaceholder:c("ScrollSeekPlaceholder","div")}}),z9e=$n(([e,t])=>({...e,...t}),gr($9e,F9e)),j9e=de.memo(function(){const t=Sr("gridState"),n=Sr("listClassName"),r=Sr("itemClassName"),i=Sr("itemContent"),o=Sr("computeItemKey"),s=Sr("isSeeking"),l=ul("scrollHeight"),c=Sr("ItemComponent"),d=Sr("ListComponent"),f=Sr("ScrollSeekPlaceholder"),h=Sr("context"),p=ul("itemDimensions"),g=ul("gap"),v=Sr("log"),y=Sr("stateRestoreInProgress"),S=Hp(_=>{const b=_.parentElement.parentElement.scrollHeight;l(b);const x=_.firstChild;if(x){const{width:E,height:A}=x.getBoundingClientRect();p({width:E,height:A})}g({row:ZV("row-gap",getComputedStyle(_).rowGap,v),column:ZV("column-gap",getComputedStyle(_).columnGap,v)})});return y?null:de.createElement(d,{ref:S,className:n,...Bo(d,h),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-test-id":"virtuoso-item-list"},t.items.map(_=>{const b=o(_.index,_.data,h);return s?de.createElement(f,{key:b,...Bo(f,h),index:_.index,height:t.itemHeight,width:t.itemWidth}):de.createElement(c,{...Bo(c,h),className:r,"data-index":_.index,key:b},i(_.index,_.data,h))}))}),U9e=de.memo(function(){const t=Sr("HeaderComponent"),n=ul("headerHeight"),r=Sr("headerFooterTag"),i=Hp(s=>n(zd(s,"height"))),o=Sr("context");return t?de.createElement(r,{ref:i},de.createElement(t,Bo(t,o))):null}),H9e=de.memo(function(){const t=Sr("FooterComponent"),n=ul("footerHeight"),r=Sr("headerFooterTag"),i=Hp(s=>n(zd(s,"height"))),o=Sr("context");return t?de.createElement(r,{ref:i},de.createElement(t,Bo(t,o))):null}),W9e=({children:e})=>{const t=de.useContext(Jre),n=ul("itemDimensions"),r=ul("viewportDimensions"),i=Hp(o=>{r(o.getBoundingClientRect())});return de.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),de.createElement("div",{style:oA,ref:i},e)},G9e=({children:e})=>{const t=de.useContext(Jre),n=ul("windowViewportRect"),r=ul("itemDimensions"),i=Sr("customScrollParent"),o=Kre(n,i);return de.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),de.createElement("div",{ref:o,style:oA},e)},V9e=de.memo(function({...t}){const n=Sr("useWindowScroll"),r=Sr("customScrollParent"),i=r||n?X9e:q9e,o=r||n?G9e:W9e;return de.createElement(i,{...t},de.createElement(o,null,de.createElement(U9e,null),de.createElement(j9e,null),de.createElement(H9e,null)))}),{Component:aVe,usePublisher:ul,useEmitterValue:Sr,useEmitter:rie}=Pre(z9e,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},V9e),q9e=eie({usePublisher:ul,useEmitterValue:Sr,useEmitter:rie}),X9e=tie({usePublisher:ul,useEmitterValue:Sr,useEmitter:rie});function ZV(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,Ds.WARN),t==="normal"?0:parseInt(t??"0",10)}const Y9e=I.forwardRef(({style:e,children:t,...n},r)=>{const i=I.useRef(null),{palette:o,spacing:s}=Pn(),l=Kx({".os-scrollbar":{visibility:"visible",opacity:1},".os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle":{"min-height":s(12)},"div.os-scrollbar-vertical > div.os-scrollbar-track":{height:`calc(100% - ${s(6)})`,marginTop:s(6)}}),[c]=RQ({options:{overflow:{x:"hidden",y:"scroll"},scrollbars:{autoHide:"move",theme:o.mode==="dark"?"os-theme-light":"os-theme-dark"}}});I.useEffect(()=>{typeof r!="function"&&(r!=null&&r.current)&&(i!=null&&i.current)&&c({target:i.current,elements:{viewport:r.current}})},[c]);const d=I.useCallback(f=>{f&&r&&(typeof r=="function"?r(f):r.current=f)},[r]);return C.jsx("div",{ref:i,style:e,className:l,children:C.jsx("div",{ref:d,...n,children:t})})});function K9e({items:e=[],renderItem:t,listOptions:n,placeholder:r,...i}){return C.jsx(lt,{...i,children:C.jsx(D9e,{components:{Scroller:Y9e},totalCount:e.length,itemContent:o=>t==null?void 0:t(e[o],o),...n})})}function Q9e({event:e,hidden:t}){return C.jsxs(EFe,{children:[te.startCase(`${(e==null?void 0:e.type)??"unsupported"} #${(e==null?void 0:e.id)??"-"}`)," ",t&&C.jsx(uxe,{sx:{opacity:.56,fontSize:12,ml:1,transform:"translateY(1.75px)"}})]})}function J9e({event:e,index:t,selected:n,...r}){const{spacing:i}=Pn();return C.jsx(qd,{title:C.jsx(lt,{p:1,children:C.jsx(oC,{event:e,flexDirection:"column"})}),followCursor:!0,children:C.jsxs(IE,{selected:n,...r,sx:{borderLeft:`${i(.5)} solid ${l1(e==null?void 0:e.type)}`,...r.sx},children:[C.jsx(fu,{children:C.jsx(Lt,{variant:"body2",children:t})}),C.jsx(ol,{sx:{overflow:"hidden"},primary:C.jsx(Q9e,{event:e,hidden:!1}),secondary:C.jsx(oC,{event:te.pick(e,"f","g","pId")})})]})})}const Z9e=C.jsx(Iu,{orientation:"vertical",flexItem:!0,sx:{m:1}}),e7e=e=>Number(e.replace(/px$/,""));function t7e(){const{spacing:e}=Pn(),{controls:t,onChange:n,state:r}=Ou(),i=I.useRef(null),{key:o,setKey:s,layers:l,layer:c}=bp(),{step:d,playing:f,pause:h,stepTo:p}=lj(o),g=I.useMemo(()=>{var v;if(c)return I.createElement(dw[((v=c==null?void 0:c.source)==null?void 0:v.type)??""].steps,{layer:c})},[c]);return I.useEffect(()=>{f||te.delay(()=>{var v,y;return(y=(v=i==null?void 0:i.current)==null?void 0:v.scrollToIndex)==null?void 0:y.call(v,{index:d,align:"start",behavior:"smooth",offset:-e7e(e(6+2))})},150)},[d,f,e]),C.jsxs(Sn,{onChange:n,stack:r,children:[C.jsx(Sn.Content,{children:C.jsx(gn,{vertical:!0,alignItems:"center",children:g?f?C.jsx(Hh,{icon:C.jsx(G1,{}),label:C.jsxs(C.Fragment,{children:[C.jsx(Lt,{children:"Running"}),C.jsx(H4,{onClick:()=>h(),children:"Pause"})]})}):I.cloneElement(g,{children:v=>c?v.length?C.jsx(K9e,{sx:{width:"100%",height:"100%"},items:v,listOptions:{ref:i,defaultItemHeight:80,overscan:0},renderItem:(y,S)=>C.jsxs(lt,{sx:{height:e(S?10:16),pt:S?0:e(6)},children:[C.jsx(J9e,{event:y,index:S,selected:S===d,sx:{height:"100%"},onClick:()=>p(S)}),C.jsx(Iu,{variant:"inset"})]})}):C.jsx(Hh,{icon:C.jsx(CS,{}),label:`${_s(c)} has no steps to display`}):C.jsx(Hh,{icon:C.jsx(CS,{}),label:"Steps"})}):C.jsx(Hh,{icon:C.jsx(CS,{}),label:"Steps"})})}),C.jsxs(Sn.Options,{children:[C.jsx(Rs,{icon:C.jsx(q1,{}),label:"Layer",value:o,items:te.map(l,v=>({id:v.key,name:_s(v)})),onChange:s,showArrow:!0}),Z9e,C.jsx(ZNe,{layer:c})]}),C.jsx(Sn.Extras,{children:t})]})}const n7e=e=>e?48:36,r7e=8;function i7e({trigger:e,items:t,value:n,onChange:r,placeholder:i="Select Options",defaultChecked:o}){const s=dz(),l=te.max([te.findIndex(t,({value:c})=>!!(n!=null&&n[c])),0])??0;return C.jsx(Ip,{variant:"popover",children:c=>C.jsxs(C.Fragment,{children:[C.jsx(qd,{title:i,children:C.jsx("span",{children:e==null?void 0:e(hk(c))})}),C.jsx(Rp,{...ow(c),anchorOrigin:{horizontal:"center",vertical:-n7e(s)*l-r7e},transformOrigin:{vertical:"top",horizontal:"center"},children:te.map(t,({value:d,label:f,disabled:h})=>C.jsxs(hu,{disabled:h,onClick:()=>{r==null||r({...n,[d]:!((n==null?void 0:n[d])??o)})},children:[C.jsx(fu,{children:C.jsx(wme,{sx:{p:0},checked:!!((n==null?void 0:n[d])??o)})}),f]},d))})]})})}function o7e({label:e,value:t,onChange:n,items:r,icon:i,showArrow:o,defaultChecked:s}){var d;const l=te.filter(r,({id:f})=>!!((t==null?void 0:t[f])??s)),c=l.length?l.length===1?(d=te.head(l))==null?void 0:d.name:`${l.length} Selected`:e;return C.jsx(i7e,{defaultChecked:!0,placeholder:te.startCase(e),trigger:f=>C.jsx(Dd,{...f,disabled:!(r!=null&&r.length),icon:i,showArrow:o,children:c}),items:te.map(r,({id:f,name:h,description:p,hidden:g})=>({value:f,label:C.jsxs(C.Fragment,{children:[C.jsx(Lt,{children:h}),C.jsx(Kr,{}),C.jsx(Lt,{variant:"body2",color:"text.secondary",children:p})]}),disabled:g})),value:t,onChange:n})}const eq=C.jsx(Iu,{orientation:"vertical",flexItem:!0,sx:{m:1}});function s7e(){var p,g,v,y;const{controls:e,onChange:t,state:n}=Ou(),[r]=Mk(),[{layers:i}]=Pp(),[o,s]=I.useState({}),l=I.useMemo(()=>te.filter(i,S=>(o==null?void 0:o[S.key])??!0),[o,i]),[c,d]=I.useState(),f=I.useMemo(()=>te.head(r),[r]),h=n!=null&&n.renderer&&n.renderer!=="internal:auto"?n.renderer:(g=(p=f==null?void 0:f.renderer)==null?void 0:p.meta)==null?void 0:g.id;return C.jsxs(Sn,{onChange:t,stack:n,children:[C.jsx(Sn.Content,{children:C.jsx(gn,{children:C.jsx(mk,{children:S=>C.jsx(lt,{children:C.jsx($Ne,{...S,layers:l,renderer:h,rendererRef:d})})})})}),C.jsx(Sn.Options,{children:C.jsxs(Od,{direction:"row",children:[C.jsx(Rs,{label:"Renderer",icon:C.jsx(Zbe,{}),value:(n==null?void 0:n.renderer)??"internal:auto",onChange:S=>t==null?void 0:t({renderer:S}),items:[{id:"internal:auto",name:`Auto (${((y=(v=f==null?void 0:f.renderer)==null?void 0:v.meta)==null?void 0:y.name)??"None"})`},...te.map(r,({renderer:S})=>({id:S.meta.id,name:S.meta.name,description:S.meta.id}))],showArrow:!0}),eq,C.jsx(o7e,{defaultChecked:!0,label:"Layers",icon:C.jsx(q1,{}),value:o,onChange:s,items:te.map(i,S=>({id:S.key,name:_s(S)})),showArrow:!0}),eq,C.jsx(Dd,{disabled:!c,onClick:()=>{c==null||c.fitCamera()},icon:C.jsx(nxe,{}),children:"Fit"}),C.jsx(Dd,{disabled:!c,onClick:()=>{c==null||c.initialCamera()},icon:C.jsx(sxe,{}),children:"1:1"})]})}),C.jsx(Sn.Extras,{children:e})]})}const a7e="modulepreload",l7e=function(e,t){return new URL(e,t).href},tq={},Vs=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=l7e(o,r),o in tq)return;tq[o]=!0;const s=o.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(!!r)for(let f=i.length-1;f>=0;f--){const h=i[f];if(h.href===o&&(!s||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${l}`))return;const d=document.createElement("link");if(d.rel=s?"stylesheet":a7e,s||(d.as="script",d.crossOrigin=""),d.href=o,document.head.appendChild(d),s)return new Promise((f,h)=>{d.addEventListener("load",f),d.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})};var iie={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Bt,function(){return function n(r,i,o){var s=window,l="application/octet-stream",c=o||l,d=r,f=!i&&!o&&d,h=document.createElement("a"),p=function(k){return String(k)},g=s.Blob||s.MozBlob||s.WebKitBlob||p,v=i||"download",y,S;if(g=g.call?g.bind(s):Blob,String(this)==="true"&&(d=[d,c],c=d[0],d=d[1]),f&&f.length<2048&&(v=f.split("/").pop().split("?")[0],h.href=f,h.href.indexOf(f)!==-1)){var _=new XMLHttpRequest;return _.open("GET",f,!0),_.responseType="blob",_.onload=function(k){n(k.target.response,v,l)},setTimeout(function(){_.send()},0),_}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(d))if(d.length>1024*1024*1.999&&g!==p)d=A(d),c=d.type||l;else return navigator.msSaveBlob?navigator.msSaveBlob(A(d),v):R(d);else if(/([\x80-\xff])/.test(d)){var b=0,x=new Uint8Array(d.length),E=x.length;for(b;b{const p=(0,n.randomBytes)(4).readUInt32BE(0);return d+p%(f-d+1)},i=d=>{let f;switch(d){case 1:f=Math.floor(r(1,9)).toString();break;case 2:f=Math.floor(r(10,90)).toString();break;case 3:f=Math.floor(r(100,900)).toString();break;case 4:f=Math.floor(r(1e3,9e3)).toString();break;case 5:f=Math.floor(r(1e4,9e4)).toString();break;case 6:f=Math.floor(r(1e5,9e5)).toString();break;default:f="";break}return f};function o(d,f){return d.replace(/@.+/,"").replace(/[&/\\#,+()$~%._@'":*?<>{}]/g,"")+i(f)}e.generateFromEmail=o;function s(d,f,h){const p=t.nouns[Math.floor(Math.random()*t.nouns.length)],g=t.adjectives[Math.floor(Math.random()*t.adjectives.length)];let v;return d?v=g+d+p+i(f):v=g+p+i(f),h?v.substring(0,h):v}e.generateUsername=s;function l(d){if(d.dictionaries){const f=d.dictionaries.length;let h="";for(let g=0;g{const l=s??await Nz({accept:eie,strict:!0});l&&(d7e(l)?await o(async()=>{const c=u7e(l)?await LPe(new Uint8Array(await l.arrayBuffer())):await l.text(),d=await IZ(c);d&&(n(()=>d.layers),i(()=>d.UIState))},`Opening workspace (${jz(l.size)})`):e(`${l==null?void 0:l.name} is not a workspace file`))},save:async s=>{e("Saving workspace...");const l=JSON.stringify({layers:t,UIState:r});if(s){const c=`${d5.generateUsername("-")}.workspace.json`;QV(l,c,"application/json"),e("Workspace saved",c)}else{const c=`${d5.generateUsername("-")}.workspace`;QV(await DPe(l),c,"application/octet-stream"),e("Workspace saved",c)}}}}function u7e(e){return e.name.endsWith(".workspace")}function d7e(e){return te.find(eie,t=>e.name.endsWith(t))}var nie={},f7e=Nt&&Nt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),rie=Nt&&Nt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nie,"__esModule",{value:!0});var Vs=rie(jg),JB=rie(R),h7e=function(e){f7e(t,e);function t(n){var r=e.call(this,n)||this;return r.resetDragging=function(){r.frameDragCounter=0,r.setState({draggingOverFrame:!1,draggingOverTarget:!1})},r.handleWindowDragOverOrDrop=function(i){i.preventDefault()},r.handleFrameDrag=function(i){if(t.eventHasFiles(i)){if(r.frameDragCounter+=i.type==="dragenter"?1:-1,r.frameDragCounter===1){r.setState({draggingOverFrame:!0}),r.props.onFrameDragEnter&&r.props.onFrameDragEnter(i);return}if(r.frameDragCounter===0){r.setState({draggingOverFrame:!1}),r.props.onFrameDragLeave&&r.props.onFrameDragLeave(i);return}}},r.handleFrameDrop=function(i){r.state.draggingOverTarget||(r.resetDragging(),r.props.onFrameDrop&&r.props.onFrameDrop(i))},r.handleDragOver=function(i){t.eventHasFiles(i)&&(r.setState({draggingOverTarget:!0}),!t.isIE()&&r.props.dropEffect&&(i.dataTransfer.dropEffect=r.props.dropEffect),r.props.onDragOver&&r.props.onDragOver(i))},r.handleDragLeave=function(i){r.setState({draggingOverTarget:!1}),r.props.onDragLeave&&r.props.onDragLeave(i)},r.handleDrop=function(i){if(r.props.onDrop&&t.eventHasFiles(i)){var o=i.dataTransfer?i.dataTransfer.files:null;r.props.onDrop(o,i)}r.resetDragging()},r.handleTargetClick=function(i){r.props.onTargetClick&&r.props.onTargetClick(i),r.resetDragging()},r.stopFrameListeners=function(i){i&&(i.removeEventListener("dragenter",r.handleFrameDrag),i.removeEventListener("dragleave",r.handleFrameDrag),i.removeEventListener("drop",r.handleFrameDrop))},r.startFrameListeners=function(i){i&&(i.addEventListener("dragenter",r.handleFrameDrag),i.addEventListener("dragleave",r.handleFrameDrag),i.addEventListener("drop",r.handleFrameDrop))},r.frameDragCounter=0,r.state={draggingOverFrame:!1,draggingOverTarget:!1},r}return t.prototype.componentDidMount=function(){this.startFrameListeners(this.props.frame),this.resetDragging(),window.addEventListener("dragover",this.handleWindowDragOverOrDrop),window.addEventListener("drop",this.handleWindowDragOverOrDrop)},t.prototype.componentDidUpdate=function(n){n.frame!==this.props.frame&&(this.resetDragging(),this.stopFrameListeners(n.frame),this.startFrameListeners(this.props.frame))},t.prototype.componentWillUnmount=function(){this.stopFrameListeners(this.props.frame),window.removeEventListener("dragover",this.handleWindowDragOverOrDrop),window.removeEventListener("drop",this.handleWindowDragOverOrDrop)},t.prototype.render=function(){var n=this.props,r=n.children,i=n.className,o=n.targetClassName,s=n.draggingOverFrameClassName,l=n.draggingOverTargetClassName,c=this.state,d=c.draggingOverTarget,f=c.draggingOverFrame,h=o;return f&&(h+=" "+s),d&&(h+=" "+l),JB.default.createElement("div",{className:i,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},JB.default.createElement("div",{className:h,onClick:this.handleTargetClick},r))},t.isIE=function(){return typeof window<"u"&&(window.navigator.userAgent.indexOf("MSIE")!==-1||window.navigator.appVersion.indexOf("Trident/")>0)},t.eventHasFiles=function(n){var r=!1;if(n.dataTransfer){var i=n.dataTransfer.types;for(var o in i)if(i[o]==="Files"){r=!0;break}}return r},t.propTypes={className:Vs.default.string,targetClassName:Vs.default.string,draggingOverFrameClassName:Vs.default.string,draggingOverTargetClassName:Vs.default.string,onDragOver:Vs.default.func,onDragLeave:Vs.default.func,onDrop:Vs.default.func,onTargetClick:Vs.default.func,dropEffect:Vs.default.oneOf(["copy","move","link","none"]),frame:function(n,r,i){var o=n[r];if(o==null)return new Error("Warning: Required prop `"+r+"` was not specified in `"+i+"`");if(o!==document&&!(o instanceof HTMLElement))return new Error("Warning: Prop `"+r+"` must be one of the following: document, HTMLElement!")},onFrameDragEnter:Vs.default.func,onFrameDragLeave:Vs.default.func,onFrameDrop:Vs.default.func},t.defaultProps={dropEffect:"copy",frame:typeof window>"u"?void 0:window.document,className:"file-drop",targetClassName:"file-drop-target",draggingOverFrameClassName:"file-drop-dragging-over-frame",draggingOverTargetClassName:"file-drop-dragging-over-target"},t}(JB.default.PureComponent),p7e=nie.FileDrop=h7e;function m7e(){const e=cz(),{load:t}=tie(),[n,r]=R.useState(!1);return C.jsx(C.Fragment,{children:C.jsx(p7e,{onFrameDragLeave:()=>r(!1),onFrameDragEnter:()=>r(!0),onFrameDrop:()=>r(!1),onDragLeave:()=>r(!1),onDrop:i=>(i==null?void 0:i.length)&&t(te.head(i)),children:C.jsx(JT,{sx:{...e,zIndex:i=>i.zIndex.tooltip+1},open:n,children:C.jsxs(Rd,{alignItems:"center",spacing:4,children:[C.jsx(_xe,{}),C.jsx(zt,{variant:"body2",color:"textSecondary",children:"Open workspace"})]})})})})}function g7e(e){const t=fIe(),[{view:n},r]=i7e();return C.jsxs(C.Fragment,{children:[C.jsx(bn,{...e,children:C.jsx(DQ,{root:n,onChange:i=>r(()=>({view:i})),renderLeaf:({content:i})=>{var o;return C.jsx(hp,{in:!0,children:C.jsx(dt,{sx:{width:"100%",height:"100%"},children:R.createElement((o=u5[(i==null?void 0:i.type)??""])==null?void 0:o.content)})})}})}),C.jsx(hp,{in:t,children:C.jsx(ave,{variant:"indeterminate",sx:{position:"absolute",bottom:0,width:"100%",zIndex:1}})}),C.jsx(s7e,{}),C.jsx(m7e,{})]})}const v7e=e=>o$(e,"#ffffff")>o$(e,"#000000")?"#ffffff":"#000000";function y7e(e){R.useEffect(()=>{te.defer(()=>document.querySelector('meta[name="theme-color"]').setAttribute("content",e)),document.title=_F,"electron"in window&&window.electron.invoke("title-bar","#00000000",v7e(e))},[e])}function b7e(e){return new Promise(t=>te.delay(t,e))}async function x7e(e,t=2500){const n=te.now();return{result:await Promise.any([e(),b7e(t)]),delta:te.now()-n}}function w7e(){const e=hl(),[{remote:t}]=Ru(),[,n]=Ig(),r=Rp("connections");return R.useEffect(()=>{let i=!1,o=[];return r(async()=>{if(t!=null&&t.length){for(const{transport:s,url:l,disabled:c}of t){if(c!==!0){e(`Connecting to ${l}...`);const d=new(hGe(s))({url:l});await d.connect();const{result:f,delta:h}=await x7e(()=>d.call("about"));f?(e(`Connected to ${f.name}`),o=[...o,{...f,url:l,ping:h,call:d.call.bind(d),disconnect:d.disconnect.bind(d)}]):await d.disconnect()}i||n(()=>o)}i||e(`Connected to ${o.length} of ${t.length} solvers`)}}),()=>{i=!0,o.map(s=>s.disconnect())}},[t,n,e,r]),C.jsx(C.Fragment,{})}const _7e=e=>t=>({...t,source:e});function S7e(){const[e]=Ig(),[,t]=XE(),n=Rp("features");return _ee(r=>n(async()=>{const i={algorithms:[],formats:te.keys(Uz).map(o=>({id:o,source:"internal"})),maps:[]};for(const{call:o,url:s}of e)for(const l of["algorithms","formats","maps"])i[l]=te.uniqBy([...i[l],...te.map(await o(`features/${l}`),_7e(s))],"id");r.aborted||t(()=>i)}),[e,t]),C.jsx(C.Fragment,{})}function E7e(){const[{layers:e},t]=Ip();return R.useMemo(()=>te.map(e,n=>{const r=Gee(n).service;if(r)return R.createElement(r,{key:n.key,value:n,onChange:i=>t(({layers:o})=>({layers:te.map(o,s=>s.key===n.key?i(s):s)}))})}),[e,t])}function C7e(){const e=E7e();return C.jsx(C.Fragment,{children:e})}function iie({slices:e,children:t,services:n}){return C.jsx(C.Fragment,{children:te.reduce(te.map(e,r=>R.createElement(r)),(r,i)=>R.cloneElement(i,{},r),C.jsxs(C.Fragment,{children:[t,te.map(n,(r,i)=>R.createElement(r,{key:i}))]}))})}const T7e=()=>{const{save:e,load:t}=tie(),[n,r]=R.useState(!1);return R.useEffect(()=>{if("windowControlsOverlay"in navigator){const i=()=>{r(!!navigator.windowControlsOverlay.visible)};return navigator.windowControlsOverlay.addEventListener("geometrychange",i),i(),()=>navigator.windowControlsOverlay.removeEventListener("geometrychange",i)}},[r]),C.jsx(dt,{sx:{mt:-.5,minHeight:36,height:n?"env(titlebar-area-height, 50px)":0,width:"env(titlebar-area-width, 100%)",WebkitAppRegion:"drag",overflowX:"auto"},children:C.jsx(q1,{x:!0,style:{height:"100%"},children:C.jsx(dt,{sx:{height:"100%"},children:C.jsxs(Rd,{direction:"row",spacing:1,sx:{height:"100%"},alignItems:"center",children:[C.jsx(dt,{sx:{p:1,height:"100%"},children:C.jsx("img",{src:BQ,style:{height:"100%"}})}),[{key:"workspace",items:[{name:"Open workspace",key:"workspace-load",action:t},{name:"Save workspace",key:"workspace-save",action:e},{name:"Save workspace (JSON)",key:"workspace-save",action:()=>e(!0)}]},{key:"help",items:[{name:"Open repository in GitHub",key:"github",action:()=>open(i_e,"_blank")},{name:"Open changelog",key:"changelog",action:()=>open(`${o_e}/changelog-${n_e}.md`,"_blank")}]}].map(({key:i,items:o})=>C.jsx(Ap,{variant:"popover",children:s=>C.jsxs(C.Fragment,{children:[C.jsx(kp,{...rw(s),children:C.jsx(ek,{dense:!0,sx:{p:0},children:o.map(({name:l,key:c,action:d})=>C.jsx(du,{onClick:()=>{d==null||d(),s.close()},children:l},c))})}),C.jsx(Od,{...dk(s),sx:{WebkitAppRegion:"no-drag",minWidth:"fit-content",p:.5,px:1},children:te.startCase(i)})]})},i)),C.jsx(dt,{sx:{p:.75,height:"100%"},children:C.jsx(k7e,{})})]})})})})};function k7e(){const e=hl();return C.jsxs(ku,{onClick:()=>e("Commands are not yet implemented"),sx:{WebkitAppRegion:"no-drag",fontSize:14,borderRadius:t=>t.shape.borderRadius,"&:hover":{bgcolor:"background.paper"},height:"100%",m:0,display:"flex",alignItems:"center",px:1,pr:2,gap:t=>t.spacing(1),color:"text.secondary",cursor:"text"},children:[C.jsx(pxe,{fontSize:"small",color:"disabled"})," ",C.jsx(zt,{sx:{mt:0},children:"Commands"})]})}const A7e=[w7e,S7e,nWe,C7e];function I7e(){const t=Rn().palette.background.default;return y7e(t),C.jsxs(bn,{vertical:!0,sx:{bgcolor:t,p:.5,color:"text.primary"},children:[C.jsx(T7e,{}),C.jsx(g7e,{flex:1})]})}function R7e(){const[{theme:e="light",accentColor:t="teal"}]=Ru(),n=R.useMemo(()=>e_e(e,t),[e,t]);return C.jsx(Dle,{theme:n,children:C.jsx(Qxe,{children:C.jsx(iie,{services:A7e,children:C.jsx(I7e,{})})})})}var oie,JV=Xg;oie=JV.createRoot,JV.hydrateRoot;const P7e=oie(document.getElementById("root")),O7e=[FPe,Qwe,cIe,uIe,ISe,dIe,RNe,Kxe,o7e,tIe];P7e.render(C.jsx(Rme,{children:C.jsx(iie,{slices:O7e,children:C.jsx(R7e,{})})})); +Use Save As... to download, then click back to return to this page.`)&&(location.href=k),!0;var L=document.createElement("iframe");document.body.appendChild(L),!O&&/^data:/.test(k)&&(k="data:"+k.replace(/^data:([\w\/\-\+]+)/,l)),L.src=k,setTimeout(function(){document.body.removeChild(L)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(y,v);if(s.URL)R(s.URL.createObjectURL(y),!0);else{if(typeof y=="string"||y.constructor===p)try{return R("data:"+c+";base64,"+s.btoa(y))}catch{return R("data:"+c+","+encodeURIComponent(y))}S=new FileReader,S.onload=function(k){R(this.result)},S.readAsDataURL(y)}return!0}})})(iie);var c7e=iie.exports;const nq=zs(c7e);var f5={},Cp={},Jj={};Object.defineProperty(Jj,"__esModule",{value:!0});Jj.default=["other","new","good","old","little","great","small","young","long","black","high","only","big","white","political","right","large","real","sure","different","important","public","possible","full","whole","certain","human","major","military","bad","social","dead","true","economic","open","early","free","national","strong","hard","special","clear","local","private","wrong","late","short","poor","recent","dark","fine","foreign","ready","red","cold","low","heavy","serious","single","personal","difficult","left","blue","federal","necessary","general","easy","likely","beautiful","happy","past","hot","close","common","afraid","simple","natural","main","various","available","nice","present","final","sorry","entire","current","similar","deep","huge","rich","nuclear","empty","strange","quiet","front","wide","modern","concerned","green","very","alone","particular","bright","supposed","basic","medical","aware","total","financial","legal","original","international","soft","alive","interested","tall","warm","popular","tiny","top","normal","powerful","silent","religious","impossible","quick","safe","thin","familiar","gray","fresh","physical","individual","willing","crazy","sick","angry","perfect","tired","wild","moral","brown","dangerous","famous","married","terrible","successful","fair","professional","official","obvious","glad","central","chief","effective","light","complete","interesting","thick","proper","involved","responsible","narrow","civil","industrial","dry","yellow","specific","sharp","sudden","direct","following","growing","significant","traditional","slow","previous","vast","surprised","busy","usual","clean","funny","regular","scientific","ordinary","ancient","senior","sweet","future","annual","secret","equal","independent","wonderful","tough","broad","additional","careful","domestic","brief","enormous","commercial","grand","average","sexual","nervous","pale","immediate","critical","proud","like","complex","separate","considerable","still","extra","expensive","guilty","active","mad","asleep","wooden","cool","presidential","apparent","weak","essential","living","pretty","cultural","useful","actual","unusual","daily","potential","wet","solid","lovely","comfortable","formal","outside","massive","sad","corporate","distant","loose","rare","stupid","visible","liberal","flat","pleased","pure","curious","practical","upper","technical","male","appropriate","fat","just","due","mere","handsome","mental","conservative","positive","leading","naked","false","drunk","dirty","friendly","constant","well","used","emotional","internal","odd","historical","female","ill","broken","capable","southern","pleasant","bare","minor","eager","lucky","urban","steady","fiscal","rough","primary","reasonable","typical","inner","favorite","attractive","slight","innocent","limited","straight","pink","excellent","double","dramatic","violent","honest","electric","fellow","substantial","opposite","awful","severe","joint","armed","hungry","remarkable","increased","gentle","illegal","middle","bitter","mass","permanent","increasing","damn","golden","correct","intense","round","northern","proposed","so-called","criminal","healthy","plain","vital","blind","native","intellectual","unknown","extreme","existing","raw","prime","brilliant","sensitive","extraordinary","sufficient","remaining","ultimate","unique","royal","initial","negative","fundamental","nearby","smart","strategic","educational","unlikely","smooth","modest","conventional","giant","scared","cheap","dear","delicate","anxious","valuable","standard","desperate","lonely","diplomatic","firm","wise","principal","congressional","occasional","ugly","vice","radical","faint","working","absolute","intelligent","racial","mutual","silly","fast","musical","tight","complicated","numerous","crucial","square","contemporary","bloody","western","endless","inevitable","environmental","constitutional","rapid","worried","lost","genuine","temporary","democratic","rural","regional","given","painful","literary","chemical","sophisticated","decent","academic","awake","conscious","revolutionary","surprising","elderly","agricultural","psychological","pregnant","live","adequate","superior","grateful","prominent","frightened","remote","overall","stiff","harsh","electronic","spiritual","okay","closed","excited","convinced","long-term","unexpected","dull","evident","civilian","mysterious","romantic","impressive","continuing","exciting","logical","peculiar","exact","widespread","foolish","extensive","evil","continued","confident","generous","legislative","stable","vulnerable","elegant","embarrassed","hostile","efficient","blond","dumb","advanced","defensive","outer","neat","estimated","wealthy","dying","loud","creative","acceptable","unhappy","sheer","competitive","concrete","reluctant","precious","tremendous","burning","precise","uncertain","holy","artificial","vague","ideal","universal","moderate","subtle","mild","peaceful","assistant","invisible","casual","crowded","crude","running","classic","controversial","ridiculous","frequent","grim","accurate","detailed","goddamn","fun","fierce","cruel","incredible","blank","dim","suitable","classical","elaborate","collective","eastern","legitimate","aggressive","rear","administrative","automatic","dependent","ashamed","distinct","fit","clever","brave","ethnic","maximum","relative","primitive","uncomfortable","profound","sacred","biological","identical","furious","loyal","rational","mechanical","mean","naval","noble","ambitious","purple","historic","dominant","suburban","developing","calm","frozen","subsequent","charming","damp","fixed","rigid","offensive","electrical","shy","continuous","urgent","weary","immense","splendid","downtown","uneasy","disappointed","helpless","voluntary","polite","junior","gross","striking","overwhelming","unconscious","steep","outstanding","tender","tragic","costly","miserable","near","useless","welcome","external","helpful","weekly","middle-aged","suspicious","old-fashioned","technological","damned","awkward","visual","organized","ideological","orange","horrible","strict","magnificent","deadly","dusty","mighty","puzzled","bold","global","passing","magic","fond","judicial","missing","definite","changing","rubber","theoretical","satisfied","promising","abstract","excessive","comparable","fatal","distinguished","inadequate","slender","artistic","known","sympathetic","favorable","cheerful","faithful","delighted","unnecessary","sole","cautious","productive","reliable","patient","sensible","desirable","depressed","atomic","able","instant","relevant","alien","spectacular","lesser","swift","comic","enthusiastic","marvelous","experimental","weird","retired","fascinating","content","medieval","inclined","bored","ruling","flying","consistent","organic","alleged","grave","smiling","realistic","amazing","exotic","symbolic","confused","underground","spare","philosophical","vigorous","troubled","shallow","amused","lively","genetic","impatient","brutal","solar","unfair","formidable","tense","unfortunate","minimum","sleeping","secondary","shiny","jealous","insane","gay","vivid","wounded","hurt","intimate","monthly","sour","socialist","worthy","preliminary","colonial","middle-class","alternative","influential","unpleasant","comprehensive","devoted","upset","secure","absurd","neutral","frightening","profitable","fragile","civilized","slim","partial","added","fearful","optimistic","isolated","eternal","vocal","beloved","alert","verbal","rising","skilled","antique","municipal","written","restless","outdoor","governmental","driving","sore","informal","loving","retail","hidden","determined","monetary","convenient","thoughtful","colored","progressive","bizarre","sweeping","fancy","expected","fantastic","editorial","intact","bottom","multiple","well-known","nasty","protective","acute","combined","related","fortunate","earnest","divine","passionate","icy","noisy","vicious","dreadful","apt","boring","unprecedented","decisive","sunny","marked","experienced","disturbing","satisfactory","sober","random","electoral","shocked","deliberate","coming","orderly","surrounding","unwilling","inherent","mixed","naive","dense","hopeless","aesthetic","supreme","encouraging","institutional","solemn","stubborn","required","relaxed","bald","frantic","exclusive","rotten","filthy","flexible","explicit","glorious","lean","ignorant","extended","embarrassing","architectural","mortal","corrupt","hopeful","regulatory","valid","characteristic","tribal","capitalist","diverse","functional","improved","ironic","graceful","unaware","respectable","eligible","lousy","established","postwar","objective","wary","elementary","moving","superb","cute","minimal","meaningful","notable","structural","developed","rolling","fashionable","persistent","distinctive","terrific","thorough","skeptical","secular","chronic","level","everyday","visiting","infinite","short-term","terrorist","youthful","unemployed","forced","liquid","explosive","rude","colorful","renewed","semantic","astonishing","passive","heroic","gleaming","indifferent","vertical","prior","anonymous","absent","customary","mobile","uniform","solitary","probable","amazed","petty","bleak","athletic","tentative","harmless","ample","right-wing","polished","obscure","sincere","dried","intensive","equivalent","convincing","idle","vacant","mature","amusing","competent","ominous","savage","motionless","tropical","blunt","drunken","delicious","lazy","ragged","longtime","nationwide","startling","civic","freezing","muscular","circular","imperial","irrelevant","countless","gloomy","startled","disastrous","skinny","hollow","upward","ethical","underlying","careless","wholesale","abandoned","unfamiliar","mandatory","imaginary","bewildered","annoyed","magnetic","dazzling","lengthy","stern","surgical","clinical","full-time","metropolitan","moist","unlike","doubtful","prosperous","keen","awesome","humble","interior","psychiatric","clumsy","outraged","theatrical","educated","gigantic","scattered","privileged","sleepy","battered","meaningless","predictable","gradual","miniature","radioactive","prospective","aging","destructive","authentic","portable","bearded","balanced","shining","spontaneous","bureaucratic","inferior","sturdy","cynical","exquisite","talented","immune","imaginative","ripe","shared","kind","parliamentary","glowing","frail","astonished","forward","inside","operational","faded","closing","pro","coastal","shrewd","preoccupied","celebrated","wicked","bourgeois","marginal","transparent","dynamic","psychic","plump","coarse","bleeding","striped","eventual","residential","hysterical","pathetic","planned","fake","imminent","sentimental","stunning","worldwide","militant","sizable","representative","incapable","provincial","poetic","injured","tactical","selfish","winning","foul","repeated","novel","dubious","part-time","abrupt","lone","overseas","grey","varied","cooperative","muddy","scheduled","legendary","arrogant","conspicuous","varying","devastating","vulgar","martial","amateur","mathematical","deaf","scarce","specialized","honorable","outrageous","confidential","fallen","goddamned","five-year","feminine","monstrous","brisk","systematic","exhausted","frank","lunar","daring","shadowy","respected","stark","accepted","successive","pending","prolonged","unseen","uniformed","wretched","sullen","arbitrary","drastic","crooked","resulting","intricate","unpredictable","printed","utter","satisfying","delightful","linguistic","shabby","statistical","accessible","prestigious","trivial","waiting","futile","prepared","aged","misleading","cognitive","shocking","childish","elected","magical","forthcoming","exceptional","gifted","stricken","fiery","cardboard","shaky","conflicting","commanding","starving","accustomed","rocky","long-range","floating","sinister","potent","phony","lasting","understandable","curved","barren","lethal","toxic","deserted","ambiguous","notorious","synthetic","worthwhile","imported","intent","reduced","painted","taut","sociological","questionable","crisp","pointed","harmful","horizontal","rival","somber","benign","prevailing","selected","organizational","excess","dedicated","veteran","implicit","prudent","plausible","confusing","smoking","large-scale","subdued","constructive","marital","scarlet","rugged","darkened","untouched","above","matching","covert","communal","sticky","affluent","energetic","stale","controlled","qualified","reminiscent","shut","blonde","handy","ritual","straightforward","terminal","dizzy","sane","twisted","occupied","finished","opposing","sly","depressing","irregular","marine","communist","obscene","wrinkled","unsuccessful","gracious","static","consecutive","reserve","exposed","scholarly","sleek","reckless","oral","comforting","pressing","swollen","viable","carved","obsessed","projected","hideous","unthinkable","mock","susceptible","respective","goddam","downward","memorable","worn","raised","glittering","beneficial","lingering","patriotic","stunned","hairy","worrying","lighted","sexy","abundant","tangled","perpetual","irresistible","terrified","compelling","unmistakable","feeble","uneven","trained","folded","relentless","killed","gorgeous","conservation","serene","eerie","premature","dismal","competing","risky","unacceptable","indirect","witty","muffled","feasible","interstate","heated","uncommon","accidental","queer","innovative","parallel","fried","unnatural","cracked","persuasive","integrated","ongoing","homosexual","sound","fertile","canned","preceding","worldly","onstage","declining","advisory","juvenile","slippery","numb","postal","olive","eccentric","lay","chilly","shrill","ceremonial","registered","boiling","contradictory","irresponsible","then","industrialized","obsolete","rusty","inflationary","split","discreet","intolerable","barefoot","territorial","outspoken","audible","adverse","associate","impending","decorative","luminous","two-year","expanding","unchanged","outstretched","momentary","good-looking","cunning","overnight","sprawling","unbelievable","bland","liable","terrifying","televised","appealing","breathless","alarming","supporting","greasy","affirmative","guiding","homeless","triumphant","rainy","stolen","empirical","timid","provocative","knowledgeable","pragmatic","touching","desired","amiable","attempted","humane","adjacent","superficial","greedy","assorted","elusive","ruthless","lush","soothing","imposing","preferred","lavish","pervasive","managing","sandy","inappropriate","desolate","nude","reassuring","shimmering","first-class","unfinished","insistent","comparative","conceivable","admirable","courageous","aristocratic","meager","subjective","vain","disgusted","dual","towering","responsive","ailing","compact","torn","sortal","entertaining","dreary","metallic","tedious","irrational","immoral","teen-age","interim","jagged","selective","volatile","cozy","unanimous","unlimited","hired","cosmic","indoor","retarded","gold","fabulous","dignified","long-distance","high-school","classified","luxurious","insufficient","pious","incomplete","oblivious","imperialist","stately","lifelong","subordinate","extravagant","intrinsic","unpopular","scant","surplus","radiant","ruined","grotesque","hazardous","disabled","intriguing","worthless","reported","hoarse","utmost","muted","bony","disgusting","monumental","pleasing","sterile","agreeable","three-year","tricky","lucrative","respectful","inexpensive","bulky","troublesome","affectionate","coherent","unreasonable","nineteenth-century","curly","indispensable","nursing","incompetent","governing","alternate","suspected","left-wing","refined","overt","chilling","virtual","devoid","perverse","enduring","outright","overhead","unnoticed","nonprofit","pointless","appalling","dental","chosen","enlightened","robust","commonplace","damaging","conscientious","eloquent","erratic","applied","merry","ardent","flowing","incoming","chaotic","noticeable","pitiful","locked","swelling","definitive","homemade","super","pronounced","kindly","prone","attentive","unstable","unrelated","charitable","armored","unclear","tangible","medium","winding","slick","credible","frustrating","shifting","spacious","day-to-day","surviving","expanded","arid","unwanted","unbearable","hesitant","recognizable","multinational","abdominal","murderous","glossy","mute","working-class","insignificant","ingenious","masculine","blessed","gaunt","miraculous","unconstitutional","parental","rigorous","bodily","impersonal","backward","computerized","four-year","unmarried","wry","resident","luxury","high-level","partisan","powerless","seasonal","self-conscious","triple","onetime","ecological","periodic","racist","exaggerated","facial","erotic","unreal","durable","manual","rounded","concentrated","literal","mystical","stimulating","staggering","tempting","last-minute","erect","feudal","head","emerging","hind","brooding","candid","paranoid","defective","linear","immortal","shattered","unsure","swinging","compatible","ghastly","investigative","rosy","convicted","sensational","committed","makeshift","tolerant","forceful","supernatural","joyous","limp","improper","hanging","sliding","renowned","tattered","nonexistent","supportive","frustrated","undercover","handicapped","apprehensive","plentiful","authoritative","sustained","disappointing","hereditary","photographic","impoverished","ornate","respiratory","substantive","acting","nutritional","unofficial","innumerable","prevalent","dire","menacing","outward","brittle","hasty","sparkling","sled","geographical","therapeutic","melancholy","adolescent","hearty","disturbed","sweaty","poisonous","paid","ineffective","humorous","burly","rebellious","reddish","stout","teenage","eminent","rhythmic","physiological","guaranteed","opaque","folding","fleeting","full-scale","low-income","infectious","stringent","stained","beige","stirring","soaring","glamorous","airborne","improbable","austere","anticipated","designated","oval","restrictive","yearly","precarious","relieved","said","feverish","occupational","holding","speculative","abnormal","challenging","healing","boyish","forbidding","divorced","famed","sluggish","struggling","united","undesirable","steaming","consulting","answering","recreational","accompanying","cramped","journalistic","neighboring","fictional","chopped","phenomenal","bankrupt","illicit","advancing","upcoming","racing","protected","padded","venerable","fuzzy","behavioral","roast","mocking","reactionary","inefficient","packed","sloppy","sparse","foster","revealing","reverse","gaping","blue-collar","thankful","down","unimportant","traveling","corresponding","maternal","autonomous","conceptual","smoky","baked","stuffed","murky","totalitarian","ghostly","seeming","flickering","sensual","clenched","offshore","stinging","oppressive","strained","messy","executive","evolutionary","theological","damaged","unrealistic","rectangular","off","mainstream","benevolent","thirsty","blinding","loaded","applicable","unused","crushed","tan","factual","involuntary","brand-new","akin","scary","modified","mindless","born","feminist","integral","uncanny","aloof","spreading","watery","playful","stocky","wasted","compulsory","indignant","pertinent","incredulous","simultaneous","turbulent","framed","aching","falling","cardiac","trim","silvery","accused","pastoral","barbed","adjoining","inspired","courteous","skillful","majestic","gilded","published","perennial","upright","seasoned","continual","papal","victorious","optical","ecstatic","agonizing","shameful","expressive","inconsistent","insulting","cloudy","defiant","restricted","approaching","aggregate","orthodox","unified","all-out","wooded","nationalist","favored","lofty","assured","smug","earthly","improving","instrumental","stray","clandestine","managerial","animated","intended","flawed","bent","clerical","outgoing","righteous","unspoken","poignant","faulty","defeated","authoritarian","treacherous","catastrophic","refreshing","unidentified","suicidal","sickly","disciplined","meticulous","preferable","trusted","hectic","husky","distraught","select","snowy","ferocious","crumpled","humiliating","divided","crippled","infamous","chic","broke","sovereign","continental","idealistic","first-rate","guarded","learned","nameless","runaway","metaphysical","senseless","boiled","needy","silver","recorded","polar","real-estate","stormy","incomprehensible","wiry","raging","composite","flamboyant","crimson","reproductive","intermediate","ubiquitous","repressive","hefty","listening","good-natured","parochial","stylish","high-tech","flaming","coronary","overweight","bathing","three-day","tidy","beleaguered","manifest","ludicrous","indigenous","adamant","placid","inept","exuberant","stony","salty","seductive","accomplished","impassive","grazing","congenial","misguided","wide-eyed","revised","bass","sonic","budgetary","halfway","ensuing","admiring","palpable","nightly","hooded","best-known","eighteenth-century","dissident","morbid","incumbent","demanding","inexperienced","hazy","revolving","rented","disadvantaged","innate","dietary","minute","cultivated","sealed","contemptuous","rhetorical","conciliatory","articulate","jobless","macho","forgotten","lifeless","proven","latent","secretive","perilous","token","graphic","alcoholic","overdue","permissible","shattering","preventive","illiterate","back","atmospheric","thermal","quaint","negotiated","preposterous","temporal","restrained","triangular","mayoral","spatial","heady","biblical","fitting","pessimistic","mammoth","allied","failed","intuitive","nagging","tidal","angular","speechless","finishing","protracted","watchful","businesslike","automated","versatile","booming","pouring","misty","deceptive","sunken","singular","suspended","unworthy","immigrant","expressionless","airy","mournful","neurotic","cubic","unauthorized","economical","fund-raising","captive","blatant","far-reaching","subversive","imperfect","jolly","inaccurate","resentful","strenuous","suffering","hardened","malicious","unjust","perceptive","newborn","promised","differing","virgin","alarmed","grassy","frivolous","apologetic","wasteful","endangered","unarmed","adept","unavoidable","approved","trembling","stuck","high-ranking","crushing","prescribed","dependable","fragrant","expansive","unfriendly","covered","bemused","digital","probing","sloping","man-made","festive","unilateral","unmarked","bipartisan","statewide","burgeoning","devout","sickening","mediocre","adventurous","elevated","suggestive","accountable","virtuous","lame","heavenly","bruised","unbroken","irritable","affected","inconceivable","sometime","vile","baggy","timely","glistening","imagined","unprepared","unresolved","windy","humanitarian","overriding","detached","annoying","narrative","interminable","appalled","penal","unsatisfactory","instinctive","variable","cumulative","obedient","deficient","colossal","unaffected","extinct","routine","microscopic","compassionate","nominal","forlorn","distorted","mistaken","enclosed","infected","fervent","analogous","frigid","instructive","appointed","one-way","gnarled","problematic","sardonic","two-hour","hypothetical","prompt","anguished","electromagnetic","sensuous","homely","beaten","malignant","rotting","concealed","peripheral","creaking","impeccable","khaki","grinning","irreversible","rampant","wondrous","inward","manufactured","grisly","cooked","discriminatory","cerebral","knowing","auxiliary","operative","losing","genial","phonetic","ecclesiastical","sarcastic","incorrect","ruddy","well-to-do","inexplicable","unreliable","developmental","woolen","agitated","lyrical","consequent","calculated","molecular","pompous","present-day","shaggy","even","inhuman","sublime","diagnostic","manly","raucous","balding","after","bilateral","mounted","blackened","assembled","separated","gaudy","evangelical","darling","juicy","impotent","receptive","irritating","pulmonary","dazed","cross-country","unavailable","parked","habitual","lexical","lowered","unwise","planetary","throbbing","enigmatic","superstitious","threatening","manned","childlike","sporting","right-hand","adult","reflective","white-haired","discernible","celestial","prodigious","translucent","equitable","epic","frayed","arduous","flimsy","penetrating","howling","disparate","alike","all-time","deformed","comical","inert","procedural","resistant","vibrant","geographic","wistful","specified","rightful","spirited","unborn","enjoyable","regal","cumbersome","burned","frenzied","gubernatorial","deteriorating","haunted","evasive","neglected","anthropological","inescapable","clear-cut","visionary","bloated","accumulated","agrarian","pained","dwindling","heightened","gray-haired","distressing","grinding","insecure","archaic","piercing","fluent","leisurely","giddy","slimy","oncoming","short-lived","spinal","wholesome","unanswered","illegitimate","staunch","two-day","rumpled","speedy","soaked","rocking","invaluable","gallant","tacit","finite","inviting","sporadic","powdered","cheery","volcanic","optional","mischievous","flowered","contagious","automotive","inflated","mythic","analytical","infrared","two-week","binding","ancestral","dissatisfied","upstate","veritable","unaccustomed","oily","monotonous","seated","feeding","fluorescent","undue","impassioned","picturesque","vocational","tranquil","tumultuous","rustic","patterned","two-story","pagan","flash","playing","exhilarating","maiden","three-dimensional","mythical","thriving","drab","black-and-white","honorary","dingy","founding","imperative","indistinguishable","lightweight","avid","dreamy","everlasting","obsessive","tional","homogeneous","inner-city","changed","tame","colorless","haggard","implacable","altered","unequal","focal","perceptual","literate","priceless","diminishing","harmonious","dark-haired","fatty","squat","undecided","banal","fruitful","pioneering","innocuous","cordial","rewarding","unsafe","maritime","overcrowded","timeless","fledgling","nostalgic","abreast","one-time","humid","astronomical","one-man","deepening","blazing","fleshy","dishonest","succeeding","qualitative","needless","rickety","joyful","stated","ambivalent","hybrid","six-month","limiting","workable","sleepless","unpaid","mundane","flashy","stagnant","bumper","recurring","sinful","immaculate","synonymous","measured","thrilling","long-standing","unruly","bewildering","unfit","edgy","numerical","sumptuous","fragmented","puffy","elastic","high-pitched","momentous","woven","unsteady","unnamed","cosmetic","snap","impenetrable","floral","waving","promotional","tenuous","lonesome","embroidered","strident","cherished","aghast","fundamentalist","white-collar","afloat","disruptive","law-enforcement","gathered","indefinite","intervening","publicized","geometric","disciplinary","descriptive","wavy","edible","disgruntled","obligatory","untrue","amber","snug","resolute","awed","simplistic","grandiose","crippling","high-speed","mounting","glaring","small-town","cavernous","hushed","wage-price","demographic","diseased","unpublished","causal","defenseless","sheltered","dormant","compulsive","loved","willful","truthful","punitive","disposable","ajar","drowsy","statutory","tanned","proprietary","informed","unheard","decision-making","transient","unlawful","dour","negligible","underwater","optimum","illusory","imaginable","borrowed","divergent","looking","exempt","contentious","forbidden","cowardly","masked","crazed","silken","parched","furry","wandering","insensitive","over-all","elated","waxed","veiled","envious","insidious","scrawny","unwarranted","lithe","abrasive","pretentious","far-off","murdered","deft","prickly","musty","shapeless","incongruous","gruesome","honored","perceived","grieving","unspecified","dizzying","privy","noteworthy","charred","median","fearless","twisting","unattractive","flawless","welcoming","flushed","hardy","glum","scenic","devious","recurrent","distasteful","jubilant","ballistic","hilarious","naughty","bustling","discarded","pristine","exemplary","fading","complacent","incessant","engaging","twentieth-century","protectionist","rudimentary","traumatic","steamy","emphatic","hard-line","teeming","generating","stuffy","connecting","stationary","genteel","populist","supple","hateful","retrospective","glazed","lawful","arched","tiresome","lucid","reserved","pivotal","grimy","surly","anti-Soviet","contrary","quarterly","old-time","residual","spiral","decaying","threatened","docile","appreciative","jovial","fascist","worrisome","red-haired","undisturbed","creamy","well-dressed","serial","existential","mountainous","pastel","self-sufficient","spoken","express","tasty","maroon","infrequent","deceased","full-fledged","transitional","leafy","gravitational","furtive","prophetic","nasal","unwelcome","troubling","immobile","merciful","uncontrollable","impartial","unfavorable","attendant","associated","high-rise","vascular","fateful","concerted","rash","stubby","paramount","impulsive","fraudulent","drooping","reciprocal","usable","fast-food","touchy","astute","oversized","mottled","slack","fruitless","unhealthy","decorated","shady","shaped","fanciful","quivering","charismatic","sordid","oppressed","inaccessible","fastidious","brazen","gloved","crumbling","underdeveloped","scarred","rambling","incipient","remedial","derelict","incompatible","fanatical","smoked","secondhand","hypnotic","failing","marching","flattened","paradoxical","unskilled","esthetic","tolerable","pungent","substitute","soggy","terse","tiring","fictitious","manageable","inventive","haughty","normative","premier","grudging","vested","exhausting","cross-legged","self-evident","away","horrified","prolific","incoherent","quantitative","full-length","year-round","unkind","provisional","exterior","brash","inconclusive","landed","breathtaking","acrid","noted","resultant","long-time","resounding","lovable","hypocritical","plush","foggy","acknowledged","idiotic","tracking","ceramic","taxable","enterprising","flashing","wee","barbaric","deafening","orbital","lurid","dated","hated","buoyant","mating","pictorial","overlapping","lax","archetypal","manic","limitless","puzzling","condescending","hapless","meek","faceless","uncommitted","horrid","greenish","unorthodox","unending","accelerated","day-care","undeniable","bushy","searing","fearsome","unharmed","divisive","overpowering","diving","telling","determining","uptight","cast","enlarged","ebullient","disagreeable","insatiable","grown-up","demented","puffing","inconvenient","uncontrolled","inland","repulsive","unintelligible","blue-eyed","pallid","nonviolent","dilapidated","unyielding","astounded","marvellous","low-cost","purposeful","courtly","predominant","conversational","erroneous","resourceful","converted","disconcerting","oblique","dreaded","indicative","silky","six-year","front-page","biting","flowering","sunlit","licensed","unspeakable","adrift","awash","identifiable","girlish","zealous","spooky","uncompromising","deserving","driven","certified","unlucky","temperate","budding","impractical","public-relations","inflexible","sensory","pornographic","outlandish","resonant","belligerent","wan","leftover","spotted","soybean","easygoing","vengeful","proportional","inaugural","dank","screaming","heterosexual","sliced","year-old","considerate","thunderous","distressed","warring","assertive","foreseeable","psychotic","intermittent","anti-Communist","generalized","unable","molten","excruciating","illustrious","voluminous","offending","trustworthy","grating","laughing","one-year","industrious","uninterrupted","dashing","speaking","metabolic","flattering","one-sided","ineffectual","primal","digestive","taped","floppy","jaunty","practiced","walled","hospitable","dutiful","melodramatic","intestinal","cluttered","conclusive","complementary","unprotected","buzzing","attributable","tasteless","forthright","wily","hourly","delayed","sweating","affable","studied","chubby","thyroid","chilled","conducive","childless","faltering","authorized","buried","land-based","observable","hurried","curving","dismayed","pernicious","upturned","believable","questioning","syndicated","pharmaceutical","high-risk","resigned","discrete","likable","imprisoned","cocky","outdated","autocratic","ablaze","askew","grammatical","wintry","incidental","matter-of-fact","disputed","exorbitant","low-level","sodden","skeletal","disproportionate","soiled","cellular","ephemeral","perfunctory","inconsequential","flourishing","intentional","two-way","elemental","whispered","four-day","stinking","informative","tenacious","outlying","virulent","horrendous","horrifying","burnt","longstanding","senile","unmoving","deprived","interpersonal","intimidating","posh","dainty","portly","nondescript","inquisitive","exiled","capricious","scandalous","severed","debilitating","widowed","horny","sallow","up-to-date","self-contained","carefree","boisterous","coordinated","anti-Semitic","superfluous","metric","expressed","enchanting","disorderly","paternal","wanton","frightful","free-lance","extremist","lined","scornful","inseparable","obese","ponderous","imperious","indistinct","adrenal","belated","rippling","valiant","livid","mystic","cracking","subterranean","invading","rusted","esoteric","red-faced","segregated","lanky","departmental","allergic","predatory","enforced","anti-inflation","implied","flagrant","best-selling","haphazard","trailing","seedy","real-life","unannounced","utilitarian","roving","despairing","immature","simulated","embattled","poisoned","patronizing","baffled","centralized","weathered","weeping","mutilated","painstaking","tax-exempt","socioeconomic","tearful","stringy","projecting","low-key","single-minded","shadowed","vehement","darn","fluffy","apocalyptic","completed","intelligible","furnished","elongated","worsening","eclectic","bacterial","earthy","sagging","wide-ranging","face-to-face","settled","dogmatic","anti","secluded","baffling","coy","pathological","echoing","bridal","autobiographical","instantaneous","ornamental","satirical","voluptuous","movable","kinetic","merciless","tireless","three-month","unconcerned","impromptu","turning","follow-up","retaliatory","arcane","waterproof","justifiable","glassy","unearthly","shuttered","inverted","bogus","petrified","simmering","guided","gritty","widening","generic","pretrial","returning","boundless","swirling","northeastern","swell","tive","minuscule","estranged","upbeat","explanatory","repetitive","repressed","vindictive","shrinking","canny","little-known","hydraulic","unrelenting","looming","supersonic","justified","lukewarm","unmoved","blurred","double-breasted","sanitary","unforgettable","diligent","unconventional","ashen","wordless","stainless","inlaid","irritated","spotless","pudgy","yellowish","lateral","adopted","lowly","obnoxious","utopian","called","unimaginable","hairless","foregoing","opulent","garish","nocturnal","rousing","unexplained","cosmopolitan","milky","medium-sized","all-night","bloodshot","rueful","hard-working","crafty","familial","iced","violet","arctic","ceaseless","exasperated","warped","aquatic","gruff","terrestrial","contrasting","egalitarian","needful","spent","untrained","escalating","liberated","long-haired","abortive","syntactic","consummate","lumpy","spoiled","ten-year-old","talkative","whimsical","weighty","audio","inflammatory","deplorable","spicy","corrugated","morose","sobering","southwestern","three-year-old","methodical","prehistoric","carpeted","smelly","processed","overheated","interstellar","agile","approximate","sadistic","living-room","irate","smashed","frontal","venereal","indiscriminate","suggested","cultured","creeping","recognized","toothless","handmade","mellow","fetal","disinterested","gratifying","trusting","small-scale","intravenous","crashing","exhaustive","afire","clammy","sleazy","florid","heartless","transcendent","restored","demonic","abusive","avowed","shrunken","objectionable","tailored","arms-control","listless","polluted","palatable","funded","elective","entrenched","classy","operatic","daunting","roaring","preferential","languid","three-hour","virile","inspiring","enhanced","scrupulous","bottomless","ginger","wispy","advantageous","rapt","umbilical","uphill","ordered","enraged","detrimental","curt","exalted","hard-pressed","intangible","fussy","forgiving","facile","populous","condemned","mashed","hard-boiled","introductory","rowdy","switching","perplexing","spilled","southeastern","undulating","fractured","inherited","inscrutable","measurable","stunted","hormonal","stylized","hierarchical","air-conditioned","aimless","subsidized","paying","symmetrical","nomadic","cloudless","reigning","thatched","perceptible","anesthetic","anti-American","miscellaneous","homesick","preparatory","seven-year","big-city","decadent","searching","all-important","inanimate","senatorial","diminutive","soft-spoken","contingent","dusky","smashing","precipitous","bulging","standardized","biographical","restive","indecent","upper-class","ecumenical","interchangeable","lumbering","fascinated","untidy","indulgent","leaden","wanted","endemic","doomed","wanting","receiving","engaged","unparalleled","abbreviated","malevolent","wishful","carnival","world-wide","protruding","resplendent","stranded","structured","biased","frosty","northwestern","viral","mindful","paved","indeterminate","painless","second-floor","geological","permissive","downhill","unsuspecting","expectant","fabled","jittery","windowless","evocative","unsolved","disoriented","monastic","soluble","misshapen","antiquated","repugnant","non-Communist","retiring","shaded","combative","high-powered","resilient","antagonistic","starched","vice-presidential","speckled","lopsided","bluish","late-night","prim","unrestrained","almighty","tyrannical","unkempt","menstrual","bleached","overgrown","idiosyncratic","shoddy","hallowed","trying","halting","princely","drugged","gratuitous","descending","fatherly","avant-garde","laborious","pinched","disguised","caustic","bespectacled","handwritten","goodly","itinerant","cryptic","undisclosed","affordable","outmoded","expedient","moody","tepid","firsthand","digging","elitist","observed","chartered","slain","five-day","unimpressed","tactful","idyllic","prostrate","ramshackle","expert","deferred","undistinguished","prized","transatlantic","crystalline","tacky","haunting","nutritious","bereft","turquoise","time-consuming","sanguine","culinary","fraught","precocious","assigned","scrambled","advisable","nationalistic","long-awaited","unwrapped","unchallenged","circumstantial","pleasurable","compressed","humanistic","unforeseen","diversified","frenetic","disapproving","proletarian","conspiratorial","featureless","going","commendable","no-nonsense","chipped","surreal","salient","pissed","insurmountable","backstage","contented","indebted","adoring","one-room","prewar","potted","accelerating","thorny","possessive","abiding","ever-increasing","bloodless","high-technology","counterproductive","attracting","entrepreneurial","cooling","unoccupied","craggy","leathery","degenerate","additive","weakened","quilted","untold","incandescent","intractable","middle-income","abject","self-made","gaseous","anal","displaced","unabashed","immutable","fluttering","ten-year","bearable","stamped","darkening","beefy","petite","charging","high-quality","left-hand","age-old","checkered","stupendous","priestly","loath","endearing","exacting","correctional","freak","sneaky","disgraceful","unholy","oriental","wayward","societal","hard-core","bilingual","flipping","staid","paramilitary","heartfelt","shapely","kosher","heedless","incurable","controlling","in-house","choral","manicured","cardinal","inconspicuous","steely","vanishing","misplaced","centre-fire","enchanted","unfounded","wrecked","womanly","delirious","deposed","panicky","differential","tawny","articulated","coded","wide-open","unregulated","lenient","feathered","simplified","beguiling","sectarian","producing","tiled","inorganic","frosted","lusty","scented","rotating","grievous","dissimilar","salaried","unequivocal","strangled","grubby","alluring","downcast","restraining","unjustified","contaminated","lacy","cinematic","second-class","splintered","adorable","derisive","state-owned","requisite","fleeing","uncomplicated","motherly","inter","high-heeled","climatic","republican","unqualified","leveraged","intercontinental","uncharacteristic","compositional","unwritten","patriarchal","brusque","unresponsive","replete","corrective","reflected","scraping","doctoral","premium","deductible","alternating","amorous","overjoyed","recalcitrant","presumptuous","vaulted","declared","inexorable","groggy","diminished","restful","retroactive","presumed","monolithic","curtained","tortured","ground","trendy","brassy","prosaic","inactive","chaste","bumpy","aggrieved","corny","centrist","trapped","noxious","jerky","concomitant","withholding","poorly","stolid","unguarded","methodological","primordial","retreating","telescopic","sidelong","off-duty","pleated","dissenting","agreed","double-action","optimal","plaintive","banned","kindred","quintessential","impervious","jumping","disenchanted","observant","congested","second-rate","reasoned","extrinsic","infantile","transitory","coveted","small-time","doctrinal","incomparable","jaded","special-interest","sociable","shameless","coloured","ascending","fraternal","queasy","wont","exhilarated","salted","disquieting","listed","unchanging","nine-year-old","unrestricted","uppermost","reputable","dummy","skimpy","crusty","corrosive","bubbling","decrepit","unsuitable","snarling","destitute","illuminating","systemic","material","unwashed","rushing","dialectical","jeweled","attached","liberating","judicious","errant","vanished","worn-out","erstwhile","uninformed","twelve-year-old","longterm","petulant","twin","self-righteous","afflicted","snappy","tantamount","sworn","unethical","drained","hydroelectric","perplexed","logistical","concentric","unifying","lunatic","invincible","diffident","inexhaustible","discouraging","dreamlike","artful","rolled","suppressed","secretarial","smoldering","redundant","forensic","million-dollar","self-styled","earned","weightless","signed","compensatory","glacial","unmanned","stalwart","funky","intensified","uninterested","submerged","urbane","glib","ascetic","contractual","warlike","high-priced","diagonal","cylindrical","gargantuan","illuminated","unconditional","hulking","supplementary","dictatorial","puny","sedate","moonlit","eight-year-old","gullible","counterfeit","alienated","spinning","analytic","nimble","adaptive","individualistic","numbered","blissful","insolent","supplemental","delectable","inordinate","unbalanced","tormented","unchecked","aspiring","punishing","self-serving","crossed","discretionary","box-office","snow-covered","improvised","squalid","orphaned","grizzled","unsmiling","disappearing","affiliated","readable","blocking","bullish","contending","burned-out","bloodied","subsidiary","complimentary","unclean","scanty","uprooted","farfetched","solicitous","regulated","threadbare","choppy","ever-present","negligent","nonstop","one-day","wild-eyed","infuriating","vivacious","abominable","wrought","inaudible","braided","transcendental","desultory","climactic","appellate","interlocking","submissive","unmatched","dapper","demeaning","adaptable","well-meaning","lustrous","tax-free","ungrateful","gentlemanly","missed","loathsome","incalculable","blistering","amenable","tremulous","massed","nonpartisan","unsettled","three-story","succulent","trite","masterful","reticent","unsettling","proverbial","strapping","spurious","invulnerable","paltry","embryonic","repeating","neural","sultry","metaphorical","foreign-policy","linked","pubic","beaming","ministerial","phantom","quizzical","hilly","cold-blooded","gregarious","three-piece","untroubled","bisexual","pensive","unpretentious","exploratory","unscathed","irrepressible","pelvic","newfound","starry","corned","overworked","illogical","unfaithful","interrelated","saintly","overcast","connected","ungainly","organizing","carnal","philosophic","nationalized","fickle","ultraviolet","crass","undeveloped","unprofitable","sheepish","archaeological","out-of-town","balmy","spongy","infallible","callous","scathing","rheumatic","audacious","participating","swarthy","hand-held","comatose","modernist","stellar","antinuclear","delinquent","time-honored","presiding","relaxing","high-pressure","impetuous","hypodermic","fringed","favourite","unscrupulous","inspirational","mystified","wobbly","intrepid","deferential","burdensome","stored","supervisory","seventeenth-century","six-day","interdependent","updated","all-powerful","unitary","stand-up","laconic","penniless","steadfast","dogged","scholastic","convertible","mingled","sorrowful","symptomatic","stylistic","well-intentioned","consuming","sketchy","weakening","generative","atrocious","first-quarter","irrevocable","charged","stoned","dividing","apathetic","debatable","uncomprehending","overhanging","galloping","kinky","uncritical","suave","undisputed","spiky","inarticulate","extracurricular","guttural","impressed","departing","yellowed","discontented","adroit","high-fiber","second-hand","blinking","formless","unsavory","new-found","withered","collected","menial","unobserved","flabby","afterward","vanquished","stained-glass","hour-long","bittersweet","invalid","incriminating","commensurate","all-American","assumed","tried","cursory","absorbing","clearing","confirmed","stressful","depleted","eight-year","participatory","stripped","concave","regrettable","fortified","effortless","regressive","irreverent","collegiate","defunct","grainy","inhospitable","gripping","grizzly","restoring","arterial","busted","indomitable","demure","rabid","headlong","blue-green","bound","breezy","materialistic","uneducated","scruffy","cohesive","full-blown","cranky","motivated","mauve","hardworking","melodic","genital","decorous","comely","rife","purported","hurtful","six-foot","macabre","odious","convulsive","well-trained","heterogeneous","curled","pearly","spindly","latter-day","innermost","clipped","checked","masterly","laughable","naturalistic","tinkling","impudent","fitful","illustrated","speeding","roasted","in-depth","helluva","vigilant","empty-handed","forged","wrought-iron","disgraced","agonized","infirm","preserving","tasteful","onerous","shredded","impregnable","slanted","tainted","opened","first-time","machine-gun","bottled","seismic","fetid","saturated","insubstantial","full-page","aromatic","stingy","promiscuous","unlit","regimental","spellbound","streamlined","bereaved","ruffled","creepy","treasured","ensconced","one-party","well-educated","pert","mercantile","all-purpose","voracious","tortuous","despised","unadorned","offhand","qualifying","manipulative","indelible","well-established","revolting","ethereal","roasting","prohibitive","domed","whipped","overstuffed","garrulous","skittish","revived","heartening","jumpy","grilled","melted","unfocused","spectral","unproductive","top-level","life-size","three-way","negotiable","disloyal","turn-of-the-century","four-hour","unopened","devilish","amorphous","antiseptic","sharpened","primeval","unrecognizable","ineligible","expendable","deathly","auspicious","insoluble","inimical","unquestioned","far-flung","medicinal","deep-seated","formative","iridescent","fragmentary","distinguishable","auburn","closed-circuit","emeritus","third-floor","hazel","tumbling","departed","obstinate","portentous","quixotic","scorched","adjustable","winged","intrusive","taxing","high-ceilinged","barbarous","decreasing","sleeveless","unattended","tight-lipped","concluding","unobtrusive","starved","quirky","big-time","sooty","copious","stalled","scriptural","unconvincing","earthen","throaty","august","extant","sexist","exultant","cancerous","psychedelic","yielding","matched","chunky","unfathomable","concise","admitting","knitted","projective","euphoric","garbled","divisional","despondent","recommended","passable","vegetarian","indefatigable","irreparable","feisty","untenable","contrite","angelic","reputed","untimely","dejected","appreciable","remembered","hellish","rear-view","open-air","ill-fated","nonpolitical","factional","separatist","contributing","post-war","uneventful","metaphoric","unsound","unwitting","venomous","harried","engraved","collapsing","reformist","thematic","inclusive","cheering","springy","obliging","contemplative","unbridled","state-run","reflex","allegorical","geopolitical","disembodied","issuing","bountiful","alright","overbearing","muddled","congenital","distinguishing","absorbed","tart","french","autumnal","verifiable","grueling","crackling","aft","punishable","freckled","indestructible","imprecise","hard-nosed","thoughtless","through","proficient","pent-up","never-ending","hunted","defensible","arresting","across-the-board","spotty","orchestral","undefined","stacked","implausible","antitank","unwary","inflamed","sacrificial","oil-producing","leaky","mint","chronological","conquering","jumbo","three-week","addictive","uninhibited","substandard","contracting","degenerative","triumphal","flowery","cardiovascular","shaken","undefeated","unassuming","luscious","unperturbed","gleeful","sentencing","brawny","perfumed","mild-mannered","healthful","left-handed","rancid","well-defined","unmanageable","drowning","clinging","anachronistic","revered","enriched","capitalistic","good-by","invigorating","practicing","unsold","long-legged","unruffled","aboriginal","inane","bedraggled","early-morning","run-down","straight-backed","reverent","acquired","bestselling","top-secret","woolly","foolhardy","sticking","blue-black","impassable","overcome","coiled","front-line","tinted","acquisitive","slatted","octagonal","receding","investing","doctrinaire","all-white","caring","prejudiced","slow-moving","circulating","science-fiction","shortsighted","disaffected","lawless","chastened","lewd","rubbery","foaming","unsympathetic","ladylike","betrayed","neurological","shouting","good-sized","electrostatic","untoward","flabbergasted","citywide","unanticipated","knotted","whitewashed","year-end","enticing","migratory","multicolored","hashish","ascorbic","topless","heathen","spherical","filmy","deviant","centennial","proportionate","instructional","contrived","savvy","over-the-counter","fast-moving","measuring","uptown","compliant","favourable","unforgivable","undamaged","psychoanalytic","gebling","bubbly","ready-made","caged","ostentatious","superhuman","busing","cream-colored","self-destructive","ostensible","cobbled","whirling","released","showy","baleful","red-hot","named","monogamous","fallow","disdainful","cyclical","long-running","pitiless","diffuse","omnipresent","mossy","cutting","astounding","lyric","dark-blue","unsophisticated","indigent","coincidental","imperceptible","veterinary","coercive","multilateral","ageless","law-abiding","functioning","beneficent","crawling","overturned","steamed","comprehensible","oil-rich","undetected","ribbed","nautical","textured","fast-growing","nauseous","vaunted","paralyzed","maimed","short-range","impure","unintended","practicable","intermediate-range","unfulfilled","behind-the-scenes","backhand","voluble","goofy","apolitical","contraceptive","waning","blasted","sundry","profane","binary","rock-and-roll","ruinous","open-ended","next-door","withering","conical","flustered","decided","able-bodied","round-trip","decreased","half-empty","sponsored","riotous","stereotyped","five-minute","irreplaceable","harrowing","uninteresting","salutary","frugal","disjointed","cupped","freshwater","shaven","ravenous","bulbous","stepped-up","swaying","two-room","valued","planted","bright-eyed","unreadable","trucking","infatuated","dysfunctional","pinkish","futuristic","airtight","unseemly","sizzling","mercurial","conic","unfettered","undisciplined","unrecognized","well-publicized","income-tax","self-appointed","ice-cold","biochemical","contemptible","barefooted","droll","mythological","tree-lined","rearing","luxuriant","heartbreaking","tufted","well-organized","selfless","world-class","unwieldy","contested","rasping","downright","ingratiating","self-proclaimed","parasitic","graying","reformed","cautionary","untested","beaded","maniacal","eucalyptus","pliable","air-conditioning","moot","traceable","anti-abortion","antisocial","reprehensible","self-imposed","yellowing","teasing","porous","ersatz","unwavering","untouchable","underprivileged","auditory","escaping","subservient","unspoiled","anterior","fatuous","lordly","infernal","bouncing","taboo","orthopedic","spiteful","surging","nuts","esteemed","outlawed","pushy","displeased","self-confident","attainable","bowed","cast-iron","despicable","unconvinced","famished","coed","bygone","nonaligned","sectional","typed","squeaky","disparaging","cut-rate","heart-shaped","offbeat","velvety","well-worn","upsetting","leery","long-lost","horse-drawn","puritanical","payable","fertilized","predicted","allowable","peaceable","soundless","marshy","discordant","intoxicating","concurrent","uncut","tantalizing","pedagogical","accursed","two-man","connective","hawkish","ripped","cleared","double-digit","unencumbered","yawning","manifold","stopped","untreated","subliminal","grayish","gory","upper-middle-class","avenging","self-fulfilling","equatorial","saucy","barred","arch","midwestern","blue-gray","tarnished","leafless","incisive","unearned","botanical","feline","extraneous","prep","intransigent","change-minimizing","insurgent","acrimonious","thermonuclear","blue-chip","crummy","acoustic","oversize","fated","galactic","cantankerous","ill-advised","detectable","lower-class","sacrosanct","palatial","conditional","insulated","step-by-step","nebulous","two-dimensional","well-heeled","bronchial","subatomic","semifinal","first-year","dark-eyed","tinny","attacking","indecisive","anatomical","brotherly","blooming","sinuous","meditative","socalled","rheumatoid","received","bleary","half-naked","leaded","woody","averse","shuddering","door-to-door","heretical","suspect","untapped","ravaged","decentralized","rutted","ineffable","intolerant","mechanized","fortuitous","equestrian","seven-year-old","darting","consoling","modern-day","ground-floor","emblematic","lurking","two-year-old","purplish","disorganized","vaudeville","circulatory","eight-hour","presentable","anarchic","unsatisfied","labored","maudlin","trampled","gibberish","unaccountable","sedentary","heavy-duty","thrilled","tutoring","self-centered","do-it-yourself","inquiring","uncaring","disillusioned","bloodstained","surface-to-air","consular","subconscious","four-year-old","collaborative","terraced","figurative","sinewy","horn-rimmed","impertinent","hit-and-run","standby","medium-size","peremptory","incremental","first-aid","dyed","centrifugal","omnipotent","lascivious","two-month","unionized","discredited","mass-produced","feathery","self-indulgent","liturgical","enviable","fifteen-year-old","buxom","abashed","urinary","newsworthy","flailing","beastly","undiscovered","strong-willed","prenatal","brownish","announced","flaky","washed","nightmarish","broad-shouldered","short-sleeved","two-bit","self-assured","whitish","suffocating","black-haired","full-size","self-help","created","uninhabited","smokeless","no-fault","unfashionable","mushy","forested","adhesive","creased","insufferable","down-to-earth","trifling","landless","disreputable","self-effacing","sporty","confined","adoptive","monogrammed","motley","duplicate","silver-haired","rejected","undifferentiated","blasphemous","institutionalized","blue-and-white","hip","winsome","button-down","discerning","abused","clean-cut","bracing","self-supporting","unsupported","premarital","flattered","studious","repetitious","marketable","anemic","meaty","airless","unhurried","galvanized","feal","peace-keeping","rapacious","bulletproof","well-placed","helmeted","packaged","court-ordered","aggravated","gastrointestinal","hand-to-hand","sixteen-year-old","fretful","fourth-quarter","conquered","satiric","nutty","befuddled","humorless","pitched","burnished","mirrored","fishy","fluted","conditioned","military-industrial","one-story","barbarian","branching","dynastic","unthinking","unconscionable","hunched","post-World","capital","putative","incendiary","shaving","topical","self-satisfied","farcical","narcissistic","kneeling","born-again","old-line","amateurish","ill-fitting","scaly","unpainted","eroding"];var Zj={};Object.defineProperty(Zj,"__esModule",{value:!0});Zj.default=["man","world","hand","room","face","thing","place","door","woman","house","money","father","government","country","mother","water","state","family","voice","fact","moment","power","city","business","war","school","system","car","number","office","point","body","wife","air","mind","girl","home","company","table","group","boy","problem","bed","death","hair","child","sense","job","light","question","idea","law","word","party","food","floor","book","reason","story","son","heart","friend","interest","right","town","history","land","program","game","control","matter","policy","oil","window","nation","position","ground","blood","action","wall","street","husband","fire","mouth","arm","sound","service","chance","information","price","building","road","paper","court","attention","space","trouble","form","society","art","market","force","effect","nature","chair","period","order","television","president","tax","field","glass","thought","industry","process","phone","plan","center","truth","couple","decision","change","eye","campaign","issue","situation","effort","report","sun","experience","peace","letter","level","energy","role","development","result","evidence","meeting","smile","support","baby","team","show","community","brother","picture","kitchen","production","press","study","daughter","director","dinner","class","defense","piece","record","desk","stage","earth","movement","future","board","security","sea","horse","language","public","church","course","bill","river","coffee","wind","bank","corner","committee","pain","help","answer","subject","hospital","film","economy","trade","feeling","member","apartment","ship","silence","seat","gold","education","leader","pressure","doctor","shoulder","sight","scene","figure","crowd","fear","telephone","labor","success","population","style","station","value","sky","growth","foot","radio","sign","strength","capital","neck","college","budget","breath","choice","direction","guy","agreement","speech","skin","will","amount","plane","practice","marriage","audience","movie","gun","living","hall","concern","income","quality","dog","cause","hotel","race","difference","stone","box","army","trip","distance","attack","chairman","election","presence","computer","science","color","theory","spring","machine","purpose","organization","material","image","tree","surface","officer","administration","act","statement","battle","page","suit","lady","play","stock","list","freedom","bar","relationship","farm","authority","student","conference","ball","structure","nose","plant","career","wood","basis","deal","source","chest","message","stuff","middle","sister","drink","majority","sex","store","trial","character","boat","union","animal","ice","front","firm","heat","hope","rock","weight","disease","spirit","memory","king","response","manner","opinion","operation","increase","lawyer","expression","kid","bag","department","crime","train","executive","aid","dream","beginning","rain","prison","conversation","shirt","lunch","possibility","pleasure","management","danger","rule","throat","wine","behavior","return","hat","surprise","snow","property","flight","training","ability","project","camp","range","approach","agency","treatment","reality","village","bottle","attempt","crisis","drug","violence","inflation","enemy","responsibility","opposition","newspaper","victory","dress","condition","darkness","opportunity","account","degree","pocket","performance","manager","visit","threat","failure","brain","driver","charge","beer","coat","shot","metal","activity","influence","intelligence","bit","official","existence","example","truck","note","construction","shape","event","screen","faith","safety","path","culture","chief","relief","grass","contract","product","investment","weather","soul","murder","bedroom","magazine","model","cup","leg","traffic","writer","beauty","song","share","cancer","patient","credit","club","argument","speed","quarter","design","desire","vision","candidate","bottom","pattern","date","finger","teacher","tea","section","article","flesh","island","balance","spot","meaning","technology","crew","proposal","leadership","concept","object","impact","guard","analysis","birth","shop","knife","advantage","generation","appearance","variety","anger","religion","reaction","fight","star","exchange","agent","investigation","milk","judge","silver","region","steel","ear","sugar","strike","youth","hole","thinking","attitude","supply","start","jacket","jury","taste","secretary","mountain","confidence","master","artist","spokesman","demand","cigarette","track","captain","network","whole","university","conflict","noise","smoke","commission","mirror","accident","plastic","garden","debate","interview","command","tradition","protection","dust","watch","lead","solution","measure","motion","discussion","mission","opening","respect","extent","struggle","goal","tongue","moon","author","iron","breakfast","competition","cover","legislation","environment","sake","justice","fuel","hill","key","length","shock","band","version","contact","engine","settlement","mistake","restaurant","revolution","estate","camera","beach","post","pool","fashion","football","border","touch","laughter","title","background","principle","strategy","roof","forest","philosophy","entrance","pause","doubt","bird","tape","belief","card","ring","occasion","wheel","capacity","cat","collection","passage","writing","bridge","owner","novel","pride","damage","contrast","judgment","gift","division","professor","bathroom","plate","explanation","smell","district","park","wave","player","present","theater","atmosphere","emergency","leather","impression","painting","neighborhood","block","function","circle","sentence","priest","method","warning","editor","ceiling","target","tour","gate","site","baseball","airport","shadow","walk","approval","gesture","individual","difficulty","attorney","criticism","affair","request","doorway","reputation","minority","consumer","notion","general","convention","being","honor","partner","chain","commitment","weapon","joke","coal","meal","reading","detail","library","debt","other","mail","drive","fellow","profit","soldier","forehead","housing","excitement","soil","literature","pilot","dance","reform","volume","scale","imagination","challenge","desert","secret","poet","cabin","average","factor","corn","check","wonder","absence","search","wedding","yard","hero","address","confusion","fool","package","victim","fault","platform","democracy","regime","terror","nurse","stream","offer","medicine","flow","grain","row","county","self","glance","humor","promise","employment","advance","planet","recreation","trail","chicken","storm","creature","mass","stand","ass","gaze","poetry","coast","lake","council","breast","corridor","conclusion","talent","tension","reporter","cut","appeal","total","belt","jail","passion","mayor","claim","combination","highway","wire","rifle","cheek","frame","exercise","incident","testimony","ticket","coach","connection","expert","disaster","valley","minister","deck","territory","chin","universe","independence","counter","resistance","cell","governor","salt","elevator","loan","release","schedule","porch","sheet","cloth","personality","actor","bomb","temperature","bench","break","code","journey","childhood","emphasis","aspect","pot","branch","identity","guest","arrival","recognition","hearing","lap","diet","factory","horror","fence","survey","fate","habit","lobby","bone","routine","discovery","comment","burden","treaty","knee","route","cry","ocean","fund","map","signal","ride","bear","deficit","height","element","sword","birthday","standing","cream","panel","fighting","travel","grandfather","creation","appointment","chapter","funeral","phrase","shore","planning","couch","survival","engineer","wagon","suggestion","waste","guilt","chamber","commander","clock","establishment","flag","content","supper","consciousness","proof","pack","beard","portion","comfort","resolution","sunlight","substance","benefit","honey","protest","prayer","stick","description","device","cloud","display","uniform","gasoline","tail","satisfaction","blanket","mess","consumption","drop","invasion","theme","mystery","belly","association","prospect","port","pipe","reference","skill","rear","heaven","destruction","worker","concentration","file","flat","cab","consideration","uncle","customer","laugh","radiation","favor","studio","boss","transportation","wage","fortune","tent","poem","procedure","clerk","surgery","percentage","expense","cap","household","match","bunch","column","intention","cousin","involvement","host","definition","wheat","permission","can","warmth","draft","silk","aide","lip","conviction","rope","illness","instrument","gap","string","adult","sweat","lover","evil","faculty","enthusiasm","farmer","missile","grin","tank","expansion","emotion","waist","discipline","distinction","technique","profession","wisdom","square","laboratory","tie","review","stranger","communication","pile","arrangement","palm","ceremony","tower","sympathy","deputy","script","nomination","friendship","institution","pass","civilization","magic","client","standard","significance","sport","defeat","announcement","reduction","grandmother","bowl","closet","genius","league","citizen","delivery","button","necessity","reader","lesson","trust","green","experiment","escape","craft","pistol","limit","witness","error","assistant","grace","salary","alarm","fist","potential","withdrawal","phase","bell","perspective","rose","score","amendment","fever","tip","god","crop","vehicle","barn","symbol","tale","exception","shift","scheme","suicide","tendency","logic","license","pollution","trend","bath","focus","producer","distribution","cotton","alternative","vacation","muscle","cycle","steam","palace","harm","location","beef","shame","policeman","compromise","tube","participation","fat","item","curiosity","blade","membership","lord","departure","shade","acid","enterprise","jet","selection","jungle","bond","retirement","alliance","bow","railroad","soup","airline","divorce","sofa","gear","gentleman","robe","plot","speaker","examination","egg","handful","recovery","embassy","entry","bastard","improvement","grip","invitation","barrel","context","controversy","fiction","revenue","reply","garage","crash","collar","landscape","grief","pen","teaching","angle","trunk","acceptance","recession","abortion","explosion","application","counsel","dignity","paint","landing","mixture","triumph","stove","winner","summit","thumb","depth","feature","setting","payment","grave","notice","museum","cop","graduate","sidewalk","taxi","trick","lamp","photograph","index","tray","essence","empire","tragedy","alcohol","flower","phenomenon","contribution","shower","castle","cross","booth","lawn","intensity","abuse","determination","passenger","opera","publication","wrist","hint","learning","punishment","ad","skirt","servant","prisoner","physician","midst","purse","rank","neighbor","elbow","contempt","round","cave","coverage","weakness","panic","basketball","juice","shooting","exposure","brick","miracle","unity","accent","coalition","fur","envelope","horizon","glory","stress","delight","politician","conscience","despair","rail","virtue","parent","dispute","killing","corruption","pound","core","stake","proportion","assault","curtain","efficiency","infant","count","suspicion","complex","formation","lock","entertainment","conduct","wit","outcome","shuttle","companion","discrimination","aunt","anxiety","shelter","confrontation","tool","climate","peak","cage","darling","assumption","stability","well","flame","marketing","currency","electricity","text","regulation","comedy","automobile","scientist","cake","scandal","contest","glow","cigar","arrest","brush","boom","basement","document","assembly","output","hut","slave","marble","breathing","pitch","loyalty","affection","resignation","guide","frustration","bureau","adviser","fleet","sector","privacy","awareness","fantasy","speculation","queen","tide","brass","formula","curve","zone","skull","sin","cable","corporation","foundation","achievement","countryside","monster","killer","strain","mask","breeze","whiskey","gang","rhythm","interpretation","basket","extension","tissue","satellite","doctrine","motor","hunger","intervention","kiss","fee","portrait","drawer","analyst","economist","reflection","visitor","transit","reception","provision","slope","sheriff","tunnel","complaint","devil","liquor","throne","hook","temple","tribe","preparation","handle","shoe","origin","helicopter","ruling","injury","crack","flash","gown","jaw","hallway","consequence","depression","subway","leave","drawing","cabinet","initiative","embarrassment","holiday","wilderness","towel","purchase","indication","sink","morality","impulse","rent","enforcement","utility","detective","comparison","critic","dish","hack","photo","crown","operator","conspiracy","rhetoric","bull","inquiry","humanity","demonstration","grade","alley","male","plain","pillow","remark","beast","seed","observation","guerrilla","straw","occupation","champion","excuse","possession","kingdom","snake","nerve","roll","horn","objective","cargo","mate","offense","resort","sequence","apple","bullet","presidency","strip","stroke","pig","print","champagne","saddle","dialogue","suitcase","protein","cook","quantity","toilet","chill","ranch","squad","priority","concert","van","adventure","representative","custom","shell","pension","prince","wound","video","courtroom","suffering","clay","actress","pencil","assignment","shelf","primary","waiter","charm","wool","sweater","soap","psychology","widow","delay","obligation","therapy","sergeant","shortage","myth","collapse","delegation","wish","perception","receiver","sauce","painter","reach","dear","fabric","carrier","ladder","hatred","dancing","cottage","opponent","dealer","prosecution","whisper","spread","poll","beam","exhibition","sigh","fog","harbor","successor","relation","gallery","prize","fireplace","fighter","pit","representation","prosecutor","liberty","bargaining","ownership","root","tin","celebration","stretch","nightmare","transport","link","diplomat","flood","architect","peasant","female","lab","category","inside","tune","carpet","mercy","fraud","introduction","facility","net","temper","rug","conception","eating","legend","tourist","refusal","disappointment","sensation","innocence","transfer","powder","parade","pursuit","parlor","pine","orbit","promotion","senator","colony","cart","interior","productivity","trap","identification","ambition","hip","admiration","corpse","emperor","patch","realm","barrier","ambassador","carriage","residence","maid","gathering","switch","lieutenant","sorrow","contrary","legislature","cliff","lightning","ritual","mist","salad","separation","flour","continent","poison","elite","radar","assessment","outfit","ideology","pad","exile","praise","employee","succession","gain","illusion","option","gravity","journalist","businessman","constitution","singer","sentiment","scope","transition","warrior","cast","march","herd","intent","inspection","episode","uncertainty","spell","isolation","observer","glimpse","privilege","spy","toy","thread","margin","anniversary","irony","organ","lecture","misery","needle","revolver","composition","admission","odor","candy","bid","classroom","bride","vitamin","refrigerator","sandwich","subcommittee","rescue","lad","defendant","blast","angel","compartment","vegetable","minimum","violation","agony","edition","compensation","evolution","treasure","salesman","log","clinic","layer","pitcher","publisher","suite","estimate","airplane","tournament","trace","hammer","reward","broadcasting","running","raid","specialist","mortgage","oak","pole","rocket","aisle","brandy","bureaucracy","mustache","vessel","penalty","export","orange","ignorance","hostility","integration","motive","ban","consultant","timing","equivalent","patrol","liver","assassination","instruction","leaf","railway","freeze","mention","designer","daylight","velvet","amusement","bush","fly","cloak","copper","orchestra","mechanism","chocolate","instinct","circuit","feed","courtyard","mob","profile","bombing","retreat","favorite","revenge","infection","historian","theatre","consent","bucket","mill","insult","pregnancy","psychiatrist","employer","presentation","swing","removal","financing","destiny","label","finish","ghost","channel","equality","requirement","dock","statue","doll","fan","mistress","oven","rim","scent","restraint","frontier","twin","framework","surveillance","diamond","pie","lion","cord","posture","wallet","stool","rally","realization","banker","invention","province","colonel","ally","inspiration","encounter","makeup","certainty","venture","takeover","daddy","ratio","fatigue","verdict","pardon","caution","scream","sleeve","coin","album","acquisition","laundry","transformation","handkerchief","candle","terminal","elephant","madness","appetite","rod","manufacturer","voyage","locker","pulse","indictment","riot","giant","sample","heritage","instance","hay","cure","clan","navy","monopoly","photographer","cowboy","bishop","linen","sacrifice","mortality","dilemma","frequency","harmony","junk","component","bargain","dragon","ruler","replacement","maker","blessing","resentment","surge","costume","editorial","mansion","hood","cellar","bout","driveway","championship","ambulance","sickness","guitar","rejection","compound","launch","journal","sculpture","preference","balcony","lid","toast","chart","motel","agenda","sadness","dimension","verse","scholar","submarine","confession","carbon","thunder","canal","socialism","merchant","bolt","insight","tub","topic","wolf","ridge","shed","gambling","arrow","con","lodge","bicycle","complexity","liberation","disorder","urge","circulation","pickup","distress","spine","romance","anticipation","military","lamb","gloom","pond","republic","ballet","bankruptcy","appreciation","rebellion","custody","feast","fluid","expedition","altar","recipe","array","anguish","harvest","sack","fraction","loneliness","trailer","notebook","surgeon","slip","festival","inability","pan","clearing","making","revival","rack","flashlight","sociology","heir","segment","moonlight","reign","exploration","burst","pet","charity","bundle","assurance","murderer","thrust","conservation","confirmation","outrage","quest","grant","perfection","liquid","stance","jar","essay","addition","diplomacy","rat","outlook","capability","broadcast","cocktail","breeding","immigration","optimism","urgency","helmet","correspondent","breakdown","domain","dressing","dancer","pork","colleague","crystal","insistence","guarantee","lane","dependence","chapel","transmission","hunt","turkey","veto","canoe","interference","sailor","arena","refuge","attraction","thesis","waitress","trigger","founder","briefcase","scholarship","commissioner","stack","lift","greeting","mining","partnership","cane","devotion","thief","troop","menu","finance","coincidence","sleeping","picnic","lounge","dose","jeep","brand","reasoning","proposition","administrator","cylinder","execution","commodity","drum","bronze","staircase","pin","whistle","robbery","catch","thigh","descent","canyon","ballot","shotgun","curb","nod","continuity","shaft","guess","gossip","jurisdiction","revolt","worry","recording","repair","saw","suspect","dome","globe","runway","resident","cemetery","conversion","black","passport","cease-fire","imitation","salvation","cement","creek","nephew","buddy","lung","embrace","ink","simplicity","sunset","astonishment","butt","oath","typewriter","outline","tribute","deadline","hostage","underwear","revelation","reluctance","dread","nest","nut","disposal","disclosure","destination","terrain","procession","recommendation","recorder","potato","ramp","accounting","bat","precision","heap","justification","fork","idiot","biography","prey","ivory","rumor","toll","robot","mix","glare","seal","sweep","haven","bike","courtesy","interaction","secrecy","ham","superiority","synagogue","calendar","ledge","engagement","lace","timber","turmoil","tooth","perfume","magnitude","veteran","lemon","cutting","tomb","accord","ammunition","spear","hunter","acquaintance","grocery","coming","pump","reservation","slide","award","institute","fringe","freight","accuracy","spectrum","ski","diameter","battery","desperation","pounding","variation","ankle","pepper","encouragement","cathedral","expectation","calf","monkey","suburb","rabbit","objection","dismay","boot","pipeline","lust","firing","aggression","ghetto","armor","merger","sphere","texture","moisture","kidney","broker","auction","hose","patent","hesitation","mound","cruise","goat","declaration","regret","conductor","terrace","contention","crap","manuscript","incentive","buyer","gin","principal","steak","novelist","criminal","heel","intellectual","conservative","quarterback","collector","motorcycle","refugee","punch","cluster","clown","preacher","torture","headache","pact","lump","buying","flavor","toe","spectacle","apron","banner","convenience","import","attendant","kindness","verge","dairy","umbrella","dam","inventory","turning","homeland","remainder","gum","plight","container","diversity","drought","reporting","biology","chemistry","curse","scar","merit","spray","reactor","shield","clarity","bamboo","metaphor","vocabulary","runner","luxury","diagnosis","bunk","white","statute","knock","garment","breed","railing","zoo","rival","supermarket","streak","pavement","discomfort","congregation","twilight","bacon","slot","scarf","dime","charter","grammar","theft","sensitivity","mainland","classification","coffin","rider","competence","adoption","reserve","fascination","specialty","mike","temptation","yield","evaluation","passing","intimacy","translation","philosopher","cafe","sitting","superintendent","pill","housewife","signature","correspondence","siege","inn","leftist","injustice","assertion","restoration","registration","farmhouse","denial","endorsement","predecessor","final","demon","greed","transaction","repression","mattress","nobility","embargo","bosom","gym","tenure","addiction","apology","double","litter","nail","incidence","merchandise","volunteer","labour","basin","fiber","whip","payroll","microphone","cruelty","ax","supervisor","resource","maturity","resemblance","cult","stadium","limousine","welcome","knot","probability","menace","nominee","characteristic","stare","vodka","obsession","nursery","paragraph","discourse","candidacy","battlefield","saint","hierarchy","precedent","imperialism","pope","intake","burial","freshman","rebel","mandate","clause","tile","electorate","torch","adjustment","implication","farewell","curriculum","fountain","satin","subsidiary","humiliation","slaughter","discount","crest","princess","asset","greenhouse","reorganization","irritation","ending","messenger","jealousy","breakthrough","mineral","baggage","mouse","tiger","memorandum","kit","substitute","paradise","stride","deed","accumulation","pledge","hull","projection","apprehension","glue","excellence","composer","decay","ditch","slice","beating","syndrome","parole","pony","saying","vulnerability","rental","wax","renewal","disk","athlete","warehouse","organism","disagreement","suspension","documentary","soda","availability","dedication","delegate","reminder","domination","leap","span","obstacle","counselor","taxation","grandson","banana","rehabilitation","stamp","anchor","diary","tunic","boycott","meadow","backyard","dismissal","rating","disc","glove","pasture","catalogue","inspector","exploitation","missionary","density","sail","excess","chemical","disposition","headline","wartime","atom","bartender","blue","wash","shark","negotiation","monument","mom","faction","echo","tomato","scrap","expenditure","plague","fortress","web","briefing","luncheon","vanity","ribbon","nostalgia","drill","frown","dioxide","sovereignty","sweetheart","cot","tag","laser","purity","melody","sanctuary","citizenship","poster","pal","marketplace","girlfriend","programme","retaliation","researcher","allowance","bedside","yacht","scenario","concession","offering","instructor","motivation","litigation","tolerance","puzzle","compliance","duration","quarrel","aura","crusade","salute","intellect","debut","eternity","monastery","immunity","flock","choir","stern","medal","meter","auditorium","equity","fairy","windshield","mare","conquest","razor","push","kick","battalion","generosity","whale","den","mama","emptiness","hysteria","hillside","ideal","landlord","stem","drain","temperament","orientation","spoon","associate","ash","wig","elimination","bark","boost","activist","stature","liar","vein","tract","telegram","completion","pizza","urine","hollow","ordeal","admiral","psychologist","rehearsal","questioning","musician","installation","ministry","puppet","axe","nitrogen","contractor","poker","arch","tractor","reverse","relative","buffalo","deployment","outbreak","pier","veil","summary","courthouse","academy","confinement","catastrophe","technician","specimen","bachelor","lobster","tyranny","discharge","graduation","shout","monitor","traveler","dope","user","vegetation","deposit","investigator","attic","rabbi","reversal","knight","innovation","probe","altitude","legacy","raft","boyfriend","twist","plaza","paradox","witch","folly","physicist","prophet","threshold","plaster","dentist","telescope","vault","climax","parish","balloon","probation","prescription","liability","wheelchair","blackness","colour","booze","exhibit","vest","abundance","hatch","sketch","cartoon","horseback","investor","violin","hazard","trader","stall","healing","prejudice","scorn","rum","accomplishment","limb","produce","epidemic","tumor","camel","starvation","insect","tenderness","cockpit","maximum","patriotism","chauffeur","parliament","capsule","deficiency","massacre","dessert","bail","meditation","petition","hypothesis","ruin","voter","wait","saving","imprisonment","nationalism","lawsuit","surrender","celebrity","contradiction","disgrace","betrayal","slogan","thrill","enjoyment","narrative","canopy","might","vaccine","fort","stereo","hearth","relaxation","asshole","avenue","fright","drift","width","guardian","portfolio","longing","brutality","frenzy","chaplain","chop","tactic","viewpoint","chip","banquet","closing","re-election","impeachment","wardrobe","cradle","facade","finding","tangle","adaptation","hamburger","analogy","fancy","counterpart","dissent","skepticism","gut","advocate","granite","equation","slump","vice-president","nap","foam","buildup","geography","scratch","major","preservation","folder","entity","defiance","nickel","monarchy","shack","teaspoon","chase","remedy","disappearance","foreman","seller","rag","youngster","allegiance","earthquake","columnist","goose","feather","bulb","imagery","bomber","overcoat","harassment","outsider","maze","reproduction","printing","reconciliation","kinship","grease","harp","parallel","stew","particle","accusation","criterion","garlic","boundary","scalp","recess","bearing","warrant","dictatorship","breach","bladder","elegance","fervor","disapproval","monk","tweed","loser","hen","shrug","junta","disguise","gulf","landmark","bourbon","reconstruction","decency","register","feat","hostess","workshop","accommodation","wreck","referendum","viewer","niece","flank","autopsy","boarding","grove","decoration","stain","cape","prophecy","bubble","asylum","commentary","grandeur","subsidy","seizure","badge","limitation","armchair","pro","spark","blaze","centre","split","peril","fusion","goodbye","ringing","solitude","handwriting","crossing","onion","rubber","forefinger","bait","solidarity","measurement","multitude","dump","novelty","truce","perimeter","alien","decree","opposite","constituency","maneuver","ransom","supplier","performer","murmur","coordination","hobby","dough","lantern","cherry","fox","quota","deterioration","flaw","millionaire","raincoat","skeleton","bum","washing","plantation","spotlight","arsenal","villa","sermon","compliment","podium","collision","ratification","jam","loft","theology","escort","tyrant","ore","caste","brokerage","lighter","screw","inheritance","eagle","annoyance","napkin","rationale","flurry","mall","dresser","autobiography","slate","cheer","sulfur","assortment","memorial","electron","detachment","addict","shrine","mold","rookie","astronaut","diesel","neon","heroine","clash","recollection","sweetness","complexion","stewardess","adversary","trance","virgin","screening","classic","nuisance","uprising","shipment","mug","stairway","supporter","famine","stench","click","stupidity","bug","throw","lumber","current","mentality","regiment","galaxy","patron","tap","mischief","contingent","gospel","racket","liaison","honeymoon","foliage","leak","doom","irrigation","mechanic","chef","viewing","swamp","void","mule","lottery","pastor","steward","ranking","survivor","tuition","medication","misunderstanding","prediction","forum","oppression","ale","expanse","consultation","pawn","attachment","franchise","intercom","chunk","mat","pioneer","prairie","familiarity","undergraduate","tenant","chimney","cereal","thirst","pub","packet","aftermath","outburst","habitat","federation","deduction","pageant","circumstance","discontent","microscope","sausage","coma","want","intersection","detention","shrimp","deception","illustration","manipulation","ecstasy","dash","eyebrow","ray","persuasion","builder","injunction","foe","inclination","precinct","slab","anthropologist","amnesty","loaf","radical","intrusion","dwelling","calculation","paperback","usage","paste","ashtray","shovel","capture","ferry","preoccupation","joint","filing","spit","womb","puff","quilt","squadron","playwright","rotation","lease","brilliance","burn","cough","spouse","assassin","flu","cabbage","reliance","console","carpenter","dependency","advertisement","lipstick","mahogany","disadvantage","holder","furnace","certificate","alienation","collaboration","extinction","austerity","pupil","tenor","foyer","bluff","whisky","similarity","pouch","chant","nun","hike","babe","com","input","pianist","treason","brake","shake","dividend","repetition","fisherman","pinch","persecution","brightness","disdain","sunrise","gleam","premise","shawl","kettle","forecast","recipient","strap","outlet","chalk","plywood","nickname","fulfillment","doorbell","keyboard","peanut","knob","compass","interval","intuition","clearance","format","shuffling","dent","ambush","chatter","lettuce","harness","hiring","ache","continuation","fit","friction","pretense","velocity","tavern","abdomen","scout","splendor","barber","flap","plateau","hedge","raising","visa","dictator","housekeeper","cafeteria","enrollment","sailing","ingenuity","limp","bard","consistency","ordinance","bathrobe","gauge","strand","taxpayer","spider","coward","reservoir","brigade","self-interest","crackdown","crib","hum","roommate","traitor","blend","kitten","setup","dagger","sophistication","clout","goddess","disability","touchdown","fertilizer","punk","agitation","seminar","hitter","crust","comprehension","nightgown","gamble","freak","stump","microwave","lever","libel","playground","exhaust","abstraction","picket","diversion","advancement","bourgeoisie","coordinator","myriad","dial","diagram","sensibility","donor","endurance","prominence","playgroup","transmitter","revision","consolation","storyteller","jewel","mourning","burglary","competitor","narrator","verb","butterfly","rationality","ant","mister","satire","placement","reunion","plunge","comb","commuter","carving","hormone","creator","swim","clip","necklace","frost","fix","allocation","thickness","happening","disruption","caravan","rodeo","axis","submission","insanity","protocol","caller","porcelain","aristocracy","interrogation","boyhood","muzzle","delicacy","teenager","undertaking","textile","tailor","defence","comeback","zero","wizard","cupboard","cynicism","behaviour","holster","bulletin","broom","receptionist","listener","exemption","flicker","exam","treasury","hug","interruption","no","drugstore","roast","trifle","jerk","exclusion","inmate","contra","permit","gene","melancholy","alcoholic","trainer","perspiration","instability","doorman","deterrent","occurrence","hem","pricing","wear","hog","cushion","commune","courtship","paradigm","down","participant","triangle","apprentice","prevention","forearm","symptom","flush","newcomer","announcer","gorge","frog","platoon","hawk","rivalry","trench","geometry","clubhouse","feller","hymn","dictionary","showing","homicide","crow","pneumonia","gourmet","flannel","congress","dislike","illumination","jockey","superpower","papa","absorption","fragment","catalog","genre","hypocrisy","duel","cone","organizer","fraternity","cubicle","hardship","restriction","gasp","authorization","partition","barrage","groan","waterfront","aerial","cinema","proximity","mockery","compulsion","slum","default","evacuation","fugitive","carton","chariot","masterpiece","nylon","dialect","tee","bathtub","congressman","vapor","disturbance","mailbox","take","groin","moss","shepherd","formulation","foreigner","solo","elder","textbook","predicament","trait","reef","intruder","captivity","commotion","farce","royalty","exasperation","developer","expulsion","plaid","believer","migration","gal","fitness","idealism","galley","offensive","hometown","sophomore","clump","launching","mast","slowdown","generator","make-up","mount","worm","chuckle","prototype","catcher","crotch","interpreter","graveyard","mane","premium","cuisine","jeopardy","reassurance","vantage","condemnation","vase","blackout","token","abandonment","maple","magician","bust","syrup","cassette","pick","madman","cleaner","throng","hanging","riding","villain","squeeze","wallpaper","lime","blur","modification","clatter","anonymity","lineup","polish","accountant","setback","neutrality","modernization","borrowing","kill","dwarf","amateur","expectancy","donkey","fella","contamination","ballroom","kidnapping","popcorn","entourage","crook","ambiguity","coral","roadside","fragrance","slack","spectator","stimulation","groom","rattle","synthesis","tan","skipper","distrust","siren","spin","revulsion","signing","booster","savage","glamour","flute","civilian","flask","tug","misfortune","therapist","plug","standpoint","weed","ecology","footing","patio","decor","malpractice","residue","passageway","chopper","batch","acceleration","depot","quarry","hound","pilgrimage","deference","splash","heartbeat","rap","wedge","indicator","pretext","make","saloon","clientele","poisoning","hemisphere","grotto","ignition","cover-up","ape","transcript","blizzard","crab","ration","puck","propriety","hunch","madam","imbalance","jug","manual","raise","silhouette","sponsor","bore","volcano","crate","humility","devaluation","rocker","rainbow","chap","informant","freezer","limestone","guise","valve","appraisal","handicap","correction","bra","sinking","turnout","manure","pail","cardinal","grape","bee","rumble","miner","dissatisfaction","pamphlet","plaque","chat","injection","pulpit","platter","symphony","molecule","rib","pyramid","shudder","dissolution","vinegar","calling","acreage","chick","cuff","scrub","orphan","porter","saucer","antenna","trophy","rig","convent","good-bye","troupe","ploy","niche","veal","semester","contender","grenade","hilt","spiral","stink","marathon","boulder","treasurer","cookie","peninsula","freeway","rainfall","showdown","parody","telling","statesman","decrease","symbolism","pillar","tremor","penetration","carcass","breadth","psyche","hiss","suppression","pottery","dormitory","scare","overtime","bean","schoolteacher","timetable","buzzer","mesh","jack","marshal","windfall","lance","uterus","inconvenience","chrome","brute","gardener","whim","pearl","fold","trim","ravine","critique","adultery","stretcher","trolley","elevation","worthy","vibration","bracelet","plank","jelly","foil","wrestling","colon","layout","quotation","sting","son-in-law","jargon","likeness","knack","defect","sedan","tilt","chore","moratorium","convoy","piety","acknowledgment","formality","thud","blockade","chord","hush","takeoff","lining","marsh","manifestation","humidity","ingredient","crater","liking","pigeon","abolition","granddaughter","vintage","flourish","playoff","prostitute","prick","oblivion","sociologist","helping","locomotive","contraction","bookstore","surrogate","hippie","sherry","scotch","packing","wink","spasm","conglomerate","ensemble","dugout","insider","sect","inclusion","feedback","trumpet","massage","constituent","brotherhood","directory","newsletter","comrade","grid","turtle","restructuring","reel","spur","comet","dummy","combustion","moustache","oversight","motto","mantle","handshake","mouthful","monologue","buffet","miss","crunch","waking","gray","exaggeration","gait","clutch","courier","hangar","dive","curator","ridicule","diaphragm","tow","projector","eclipse","parcel","lure","transplant","township","squash","commentator","mentor","gutter","stint","treat","germ","infinity","impasse","burglar","proprietor","tariff","dispatch","torment","dove","superstition","going","tempo","warden","sponge","rooster","barge","gorilla","draw","wharf","stallion","countenance","orchard","navigation","tar","biographer","wheelbarrow","imposition","hurricane","stronghold","distortion","starter","rash","feud","parting","interviewer","wrongdoing","lavender","low","leash","envoy","stairwell","backup","doorstep","negotiator","heading","excursion","sewer","endeavor","backbone","rite","vine","gypsy","directive","defender","scoring","esteem","torrent","gland","consortium","nightclub","swell","employe","obscenity","cavity","pulp","lifestyle","butler","peach","tack","fossil","glitter","liner","destroyer","flyer","individuality","roller","outcry","felony","artery","cruiser","bedding","dude","bounty","blindness","bodyguard","corral","coroner","spice","martini","contingency","gag","serving","wail","wrench","sock","safe","spite","broth","trustee","moth","vice","gender","cartel","casting","puppy","prohibition","ox","sculptor","treachery","stir","printer","audit","brim","handbag","lobbyist","jolt","comedian","distraction","challenger","telegraph","homage","evasion","detector","filling","overhead","cartridge","walnut","sonar","puddle","quake","flooding","crescent","thrift","following","tanker","stoop","clergyman","opener","latitude","anatomy","convertible","arbitration","leukemia","absurdity","stab","biologist","baseman","fuse","specialization","carnival","scarcity","gangster","stalemate","trickle","mallet","working","receipt","charcoal","mortar","drainage","mother-in-law","regularity","emigration","plasma","condominium","muck","workplace","roster","stroll","softness","serpent","owl","infield","sill","swallow","backdrop","fidelity","historiography","thicket","baking","omen","yell","functioning","bribe","dynasty","trough","pudding","alcove","ancestor","ripple","flint","bracket","cube","pasta","proxy","groove","commercial","holocaust","countess","scroll","bang","planting","premiere","norm","bloom","gunman","vow","arithmetic","accelerator","postcard","relish","semblance","whine","inventor","sarcasm","designation","pat","symmetry","quiet","chisel","experimentation","cutter","differentiation","stud","apathy","relay","seminary","escalation","life-style","coil","mythology","futility","intimidation","childbirth","flare","glint","rue","mural","whiff","deposition","vogue","animation","migrant","caretaker","dot","mediator","lookout","captive","blackboard","pocketbook","recourse","negation","plaintiff","shriek","obstruction","latch","manor","casualty","grunt","gambler","erection","nationality","epic","starch","delusion","linkage","provocation","avalanche","offender","melodrama","contentment","appropriation","tonic","salon","accompaniment","paranoia","grimace","communion","cancellation","pendulum","shoreline","hail","refinery","subtlety","videotape","commando","repertoire","refinement","dryer","rust","lapse","haircut","errand","ailment","reanimation","ther","tab","prom","contemplation","bin","gilt","bunker","protector","sage","hilltop","hue","blueprint","correlation","brochure","roadway","arson","remnant","breaking","bouquet","exertion","garrison","beneficiary","colt","turbulence","refuse","bravery","indulgence","assimilation","coastline","livelihood","swarm","configuration","lecturer","paw","upheaval","switchboard","sub","claw","downfall","dye","immigrant","specter","deprivation","shrink","marker","sampling","fellowship","beak","pantry","mouthpiece","gratification","qualification","finality","debacle","extortion","chieftain","speaking","totalitarianism","mole","incumbent","jumper","crush","stubble","terrorist","comic","farmland","contributor","gravy","blossom","keeper","craftsman","pavilion","obscurity","loading","affiliation","vacancy","proclamation","gaiety","yarn","enclosure","clamor","sucker","recruitment","subversion","boiler","emblem","spade","stocking","staple","vocation","sling","maniac","musket","primitive","periphery","idol","snack","antique","redemption","listing","airliner","bandage","bulge","glimmer","priesthood","diner","astronomer","ovation","kindergarten","module","lifting","radiator","booklet","resurrection","precaution","affinity","thinker","quote","turbine","tally","vise","landslide","bakery","portal","majesty","abyss","admirer","turnaround","airfield","wastebasket","lapel","pennant","complication","slick","initiation","rustle","hearse","schooner","carrot","inscription","wench","embryo","vet","poise","disintegration","procurement","speck","kite","vent","plow","homosexual","membrane","waterfall","teevee","matron","utterance","buffer","memoir","cork","recital","loathing","cameraman","throttle","insecurity","trooper","hinge","hoard","umpire","slug","mountainside","affliction","pastime","felt","sentry","denomination","mushroom","linebacker","parachute","teller","fender","trademark","specification","harem","plum","metabolism","certification","neutron","organisation","heresy","relocation","payoff","lizard","termination","dropout","torpedo","stepmother","helm","resonance","heed","progression","braid","cardboard","walkout","shiver","gust","foreground","replica","repertory","sparkle","seam","bump","substitution","rapport","casket","dew","squirrel","palate","hitch","rebirth","reverie","boon","pirate","foresight","vinyl","delta","moat","presumption","tablespoon","aroma","digging","heartland","healer","malaise","creed","archway","exterior","screenplay","examiner","parity","copyright","strawberry","outpost","bookcase","cashmere","bikini","sheaf","pastry","respite","divinity","impossibility","legislator","saga","thump","inauguration","seaman","degradation","strategist","emerald","anthem","affront","burner","entrepreneur","thorn","marvel","stair","cavern","swivel","outlaw","underside","cleanup","fin","catalyst","forage","tapestry","dosage","covering","proletariat","turnover","notch","misconduct","onslaught","upbringing","coyote","bumper","champ","creep","boxer","mileage","vigil","fodder","occupant","dashboard","rarity","centerpiece","consul","ascent","paddle","martyr","doctorate","runoff","grudge","tattoo","robber","carbine","holding","oratory","distributor","heavyweight","footnote","terminology","infrastructure","drummer","chili","tableau","dung","magnet","deceit","caricature","itch","refund","cripple","rectangle","mortal","ancestry","inequality","generalization","furor","relativity","jukebox","dune","endowment","pathology","calibre","subpoena","attrition","hump","congestion","reflex","hoax","honour","herb","mantel","articulation","washer","judgement","brace","printout","helper","wording","crisp","shortstop","boulevard","characterization","cashier","matrix","documentation","deadlock","oyster","chasm","outing","expiration","heater","nutrient","beacon","bile","grievance","janitor","skyline","patrolman","juncture","antagonism","rump","hardwood","solace","warhead","assent","litany","enactment","chimpanzee","rye","feeding","suede","coke","inference","ivy","mosquito","eruption","symposium","variable","cooler","filter","storeroom","mailing","chancellor","beggar","antiquity","inertia","motif","absentee","float","blush","embankment","riverbank","demeanor","vampire","disciple","inadequacy","reinforcement","pedestrian","persona","berserker","tumult","incline","beaver","grill","morgue","denim","wreath","grouping","relic","syndicate","rancher","idiom","hegemony","seating","affirmation","physiology","repose","blight","jest","turret","slit","goalie","clarification","avoidance","volley","redhead","inefficiency","folklore","embodiment","afterthought","steer","cyanide","digestion","continuum","mania","giggle","buggy","willow","pantomime","fireman","growl","devastation","navel","halo","yearning","laborer","alligator","prelude","verification","brown","bead","midget","sleeper","riddle","portrayal","counterattack","lectern","tutor","chestnut","remembrance","aversion","taking","billing","regimen","translator","headmaster","duke","ace","snort","fanfare","imprint","calamity","exposition","cedar","intrigue","transistor","bowel","boardwalk","tramp","ornament","sticker","processor","voltage","sovereign","whistling","orgasm","caliber","exuberance","snout","enclave","kilt","bombardment","corporal","overhaul","syllable","curfew","layman","consolidation","insignia","mediocrity","coherence","hospitalization","flick","pew","coloring","sanction","baritone","radicalism","savagery","pallet","stead","cadet","shutdown","supplement","unicorn","stepfather","excise","spelling","rebound","puzzlement","tenement","souvenir","veneer","safari","quartet","whirlwind","hamlet","practitioner","parasite","installment","emission","kissing","chronology","mosque","chairmanship","blonde","steamer","caption","shave","standstill","maiden","polling","condor","twinge","campfire","drinker","exhilaration","seafood","gala","crane","hickory","cathode","graph","orgy","deliberation","planner","marrow","bud","mediation","cutoff","tit","tic","parchment","noun","culprit","lair","showcase","hangover","chemist","aggregate","thriller","smack","efficacy","smear","heiress","crank","fig","finale","pea","staging","die","rebuke","curry","scum","potency","acclaim","collateral","schoolboy","canteen","radius","deportation","grate","madame","mop","pronunciation","sheen","respiration","breakup","professional","omission","gunshot","ugliness","fanatic","barbecue","dorm","trot","flattery","stereotype","hatchet","capitalist","purge","brew","totality","fern","enzyme","plumber","subscription","cholera","bruise","forge","nipple","commencement","superstar","ether","gem","sash","extraction","spaceship","golfer","realist","encampment","necktie","repayment","skillet","darky","disparity","bedspread","haul","questionnaire","promoter","wand","windowsill","victor","rector","enamel","hoop","coronation","patriot","chandelier","watchdog","glade","renovation","goblet","zipper","communique","crevice","motorcade","sequel","scourge","serum","single","icebox","junction","cache","berth","streetcar","syringe","antithesis","bureaucrat","blacksmith","oval","bun","loot","fiasco","tomahawk","ulcer","pinball","jersey","asthma","brook","pedestal","feeder","soot","inevitability","alteration","carrying","showroom","gimmick","lunatic","gall","fir","borough","hash","woe","controller","sponsorship","applicant","twig","screaming","librarian","intermission","sister-in-law","bushel","inflammation","pomp","vial","extravagance","pate","prostate","dolphin","tuxedo","mathematician","guinea","veranda","aperture","disillusionment","gavel","dating","knocking","oasis","nebula","woodland","yellow","ambivalence","hardness","oxide","socket","wasteland","leopard","blazer","follower","asking","urn","weaving","swimmer","closure","dart","loudspeaker","bazaar","bog","transfusion","reproach","sham","parka","affiliate","scowl","primate","attacker","rink","funnel","spate","elaboration","legality","tablet","heyday","tripod","bully","sharpness","demolition","flip","dandy","appliance","slant","sentimentality","knoll","gloss","defection","explorer","ram","stupor","clone","baton","cohesion","bearer","penance","bandit","aberration","gallop","swirl","coconut","spree","pedal","detergent","canon","teen","brood","phonograph","tabletop","enlargement","sniper","cohort","fable","rising","spill","affidavit","imperative","snapshot","apparition","stunt","wristwatch","chute","teammate","carelessness","over","stripe","postponement","rapture","savior","pacifist","admonition","pear","junkie","surcharge","wavelength","horseman","hag","confessional","comptroller","orthodoxy","financier","snarl","cliche","refreshment","incest","adolescent","teapot","seaweed","drilling","roadblock","antibody","sheath","pallor","constable","misuse","arcade","lee","keep","anarchist","watering","rhyme","exclamation","backseat","great-grandfather","han","pod","daughter-in-law","mailman","alphabet","sloop","reckoning","grower","simulation","homer","birthplace","ence","actuality","depletion","novice","diffusion","concealment","cadre","pathway","fungus","ouster","loner","autograph","descendant","aspiration","better","sick","variant","fragmentation","pesticide","frigate","bestseller","propensity","foul","senate","trouser","airstrip","insurrection","chronicle","coating","stigma","toothbrush","pumpkin","apprenticeship","widower","paycheck","query","teen-ager","shifting","informer","doorknob","ardor","pebble","finesse","scrapbook","fiddle","dowager","sod","wrap","turtleneck","clipboard","rogue","mutiny","suitor","bulkhead","babble","fad","billboard","beverage","hairline","grille","exporter","pathologist","mesa","goblin","scapegoat","crucifix","backpack","observance","forgery","dungeon","methodology","gauze","bonanza","inkling","beret","shouting","ex-wife","wickedness","toil","preview","porridge","cornerstone","scanner","smoker","rebate","mite","brawl","axle","easel","allegation","grab","parrot","antidote","drawl","hijacker","telltale","venom","el","baron","intermediary","seduction","birch","contour","redistribution","cam","protagonist","enmity","hulk","stockbroker","decorator","cookbook","protege","mage","cricket","smock","apex","cortex","modem","shareholder","lament","determinism","rift","tablecloth","trajectory","preface","sneer","gamma","rendition","insemination","aristocrat","hare","labyrinth","thaw","invalid","staffer","alpha","fingernail","medic","crutch","entertainer","jade","eminence","discrepancy","yawn","flea","ledger","orphanage","getaway","manifesto","hijacking","incarnation","elm","adobe","spruce","gist","grit","boar","oracle","mobilization","cantor","crypt","cutback","musical","fallacy","corduroy","fray","racetrack","buckle","foreboding","pest","clap","ber","notation","peek","sow","ballad","brat","constellation","lard","industrialist","hunk","assailant","splinter","bridegroom","dip","fixture","cadence","watchman","windmill","prerogative","drawback","bungalow","heaving","nationalization","mating","writ","rationalization","milking","modernism","landlady","calculator","animosity","workout","skirmish","glycogen","discord","portico","vestibule","renegade","overdose","iceberg","lineage","mosaic","liturgy","watershed","playing","lobe","dowel","ranger","dossier","anvil","co-operation","satchel","fa","corollary","bridle","gateway","brothel","monotony","vendor","mysticism","saucepan","accomplice","hernia","guild","pup","hoof","sparrow","dreamer","craving","outpouring","blink","overlap","duct","brownstone","maneuvering","stagger","foothold","craze","monsoon","induction","handgun","scan","constraint","citadel","rigidity","anecdote","halter","occupancy","rightist","convict","tribunal","stalk","waterway","debtor","yoke","audition","inconsistency","peg","sliver","midwife","premonition","ruby","conduit","excavation","fart","condenser","hop","poodle","upsurge","attainment","stitch","crimson","anomaly","backlog","yeast","chimp","awning","gig","parable","drumming","tiptoe","prow","bypass","crease","reformer","intestine","counterpoint","enormity","anthology","rudder","shroud","magistrate","twitch","commonwealth","circumference","stuffing","sweating","scattering","lender","dripping","legion","refrain","mummy","covenant","morbidity","prop","initial","alignment","licence","infusion","unification","rebuttal","adjective","humour","larceny","mistrust","horde","assemblage","delinquency","testament","convert","patrician","dissension","cider","infidelity","bonnet","displacement","crackle","edifice","conciliation","bondage","schizophrenia","embroidery","standoff","monotone","oddity","mobile","tornado","semicircle","panorama","ex","ping","yogurt","screech","underdog","quay","tai-pan","extract","podesta","ticking","shrubbery","backside","communicator","sorcerer","interlude","dominion","battleground","taboo","blunder","conjecture","drone","cove","maverick","secondary","companionway","rook","gauntlet","ordering","violinist","rooftop","slash","thermometer","vomit","anteroom","deity","nave","acquittal","talker","reed","concussion","malfunction","tundra","cub","anemia","constructivist","cocoon","divide","keeping","percussion","freighter","noose","narcotic","expediency","grandchild","gully","innkeeper","pigment","bloodstream","quiver","alderman","halftime","stable","fission","aggressor","denunciation","abduction","expressway","uniformity","faucet","buff","broiler","allusion","jock","spike","herald","polyester","genocide","fer","parapet","classmate","tinge","sandstone","lurch","skunk","huddle","mum","tranquilizer","pharmacy","susceptibility","penicillin","lark","hoe","lily","hanger","headset","john","appointee","advisor","twine","slumber","magnetism","schoolgirl","smash","screwdriver","newsman","sleet","cleavage","lacquer","milestone","commandant","crick","splitting","rosary","edict","hurdle","fixation","appendix","lock-mechanism","eyelid","swath","fingerprint","carbohydrate","tick","magnate","heck","sailboat","donation","malady","polishing","clipping","collective","sensuality","loom","swagger","facet","variance","mean","walkway","aptitude","prodigy","solemnity","understatement","ebb","scoop","wrapper","narration","icon","prerequisite","planter","gash","interplay","evangelist","drip","vulgarity","subdivision","backwater","euphemism","lotion","corpus","broadcaster","toothpaste","curmudgeon","fo","thong","thatch","baptism","peacock","workman","downturn","scoundrel","machete","creak","five-year-old","dissertation","dishwasher","pimp","electrician","tycoon","otter","shove","snail","rendering","nobleman","booking","pronghorn","deadpan","shutter","escalator","girdle","fling","hire","alibi","flop","stampede","prognosis","itinerary","cologne","spoonful","detour","violet","watcher","falsehood","hype","locale","estimation","propeller","squaw","pickle","lass","pun","racist","scratching","rout","downpour","casing","complacency","camper","equator","reticence","learner","outcast","brunette","improvisation","stag","maxim","loophole","livery","blasphemy","shoot","solvent","misdemeanor","buyout","tiller","jetliner","checkbook","awakening","sideboard","romanticism","squire","newsstand","nuance","consulate","excrement","reprisal","bastion","beginner","obituary","softball","conjunction","scripture","phalanx","vindication","grub","swig","inaction","redwood","scabbard","bonfire","casserole","ovulation","unreality","totem","palette","choreographer","peasantry","skyscraper","penitentiary","outfield","melon","bounce","yolk","diver","archbishop","plurality","amber","recurrence","adulation","piston","insurgency","stoan","coop","tart","eyeball","toss","giveaway","cross-examination","dissident","hermit","ruse","ture","pore","leaving","dowry","gunner","epitome","snowstorm","summation","switchblade","crock","ity","frock","luster","piazza","rotor","impropriety","pivot","blender","immediacy","borrower","slaying","feminist","preserve","bidder","depiction","parasol","clover","intern","asteroid","stub","barricade","medley","multiplier","smirk","knapsack","hank","cognac","headway","treatise","homestead","troublemaker","giraffe","mover","allotment","drowning","naturalist","orderly","attribute","scalpel","shipyard","estrogen","educator","enrichment","grandstand","sire","perversion","sideline","landowner","confidant","gel","deviation","clemency","liberal","bigotry","filly","six-year-old","lifeguard","shred","adversity","shelling","pineapple","referee","knockout","jigsaw","retailer","extremity","outgrowth","amplifier","sinner","campground","teasing","steamboat","turban","mutton","cobra","contraption","chopping","schoolhouse","varnish","pane","observatory","ballerina","czar","immensity","lethargy","reimbursement","undershirt","concierge","fracture","variability","accordion","slime","meanness","gelding","practicality","advertiser","graft","gull","stockholder","pilgrim","hooker","puritan","benediction","barbershop","stanza","hallmark","mishap","harpy","silage","enchantment","whirlpool","conditioner","gadget","divestiture","lathe","incarceration","amalgam","antibiotic","annexation","martyrdom","pyre","shank","alert","shale","artifact","interchange","mystic","meet","grinding","triple","boutique","antagonist","fermentation","twinkle","sweetie","shin","creditor","amulet","pall","posse","homeowner","skier","vastness","smith","allegory","oxidation","cracker","levy","ark","sporophyte","enthusiast","snob","spinster","searchlight","waistband","lorry","repeat","reprieve","slalom","respirator","visor","reviewer","putt","miscalculation","shortfall","concourse","dialectic","native","hairdresser","normality","immorality","sprinkling","allure","lick","drudgery","habitation","gondola","vista","ice-cream","cheerleader","predator","countdown","juxtaposition","stumbling","muffler","derby","timer","salvage","boast","cabbie","clam","windbreaker","retardation","antelope","shampoo","raccoon","bible","glider","momma","valise","coffeepot","emissary","compression","grail","guideline","lavatory","glaze","outpatient","thunderstorm","foray","co-op","valet","baker","sycamore","thumbnail","nozzle","timidity","orator","liquidation","spokeswoman","militant","jig","naivete","motorist","dumping","armpit","margarine","exultation","headboard","plume","amplitude","flutter","pronouncement","finery","trepidation","airing","coupon","knuckle","gametophyte","deathbed","extermination","alleyway","hybrid","gambit","nova","binge","original","froth","lighthouse","coolant","continuance","collaborator","fuselage","profanity","whirl","saber","filmmaker","checkup","shaman","rancor","retort","earring","sieve","post-mortem","implantation","conceit","simplification","vat","proficiency","deluge","kiosk","outlay","tantrum","flooring","veterinarian","fireball","carousel","bandanna","glacier","censure","citation","oar","fridge","metamorphosis","superior","approximation","girth","tirade","grocer","holdup","forward","snobbery","cleansing","replay","recitation","facsimile","patter","jubilation","snare","frailty","rampage","pick-up","overture","tumble","residency","prevalence","repository","reentry","battleship","mutation","hammock","importation","thug","semiconductor","ballast","spurt","extreme","artichoke","convergence","circular","rigor","realignment","physique","handbook","bugle","precipice","sauna","whorehouse","skater","furcot","volatility","valuation","barbarian","peddler","layoff","overall","deliverance","chromosome","innuendo","lexicon","empress","polarization","dictum","fitting","impediment","piracy","crocodile","cucumber","keel","sitcom","hypocrite","roaring","encroachment","steamship","resin","fairway","eyewitness","broadside","washroom","sighting","mantra","swan","supposition","governess","upswing","rep","solicitude","rustling","invocation","heather","rectory","orchid","brocade","raiser","invective","fragility","acronym","ostrich","col","absolutism","vicar","psychotherapy","navigator","cartoonist","doe","landfill","invader","werowance","ble","flatness","locality","druid","visitation","headlight","rapist","benefactor","colonization","excerpt","nick","kangaroo","pink","buy","cascade","campsite","slander","headdress","topcoat","causality","karma","trestle","atheist","checkpoint","renunciation","eater","payload","pointer","theologian","beet","undertaker","lineman","hart","gourd","doubling","shuffle","cabaret","periscope","bodice","shootout","grandma","wildcat","proton","dioxin","sorcery","torchlight","stopover","executioner","collage","mesquite","reincarnation","kidnaping","programmer","disloyalty","muslin","throb","mint","aquarium","tel","eccentricity","purification","kerchief","warranty","rigging","breeder","nite","conservatory","fastball","magnification","spa","favour","regeneration","incision","saxophone","detriment","scam","android","coloration","bunny","restitution","rake","serf","despotism","pollen","sidewinder","upstart","revisionist","birthright","multiple","lifeline","queue","follow-up","swipe","boardinghouse","armament","travesty","stirrup","caper","chloride","crepe","primer","clich","inflection","skid","repudiation","serve","spire","peep","inducement","clothesline","fabrication","morsel","spleen","coon","bustle","crossword","back-up","assessor","biopsy","sidecar","hassle","shingle","tint","fixing","collarbone","taint","pusher","gestation","mantelpiece","vaulting","ra","peat","indignity","adequacy","genus","scrape","scaffolding","serial","neurologist","duffel","cipher","rote","horseshoe","bulldog","electrode","joker","juror","fibre","misconception","rut","connoisseur","flowering","op","flirtation","highlander","wisp","sounding","bugger","pharmacist","doughnut","toaster","pinnacle","slob","promenade","amphitheater","singsong","beau","whimper","importer","locket","watermelon","marking","beta","co-author","crossbow","atrocity","desktop","inhibition","draught","rowboat","volleyball","snowfall","extravaganza","teddy","miscarriage","storefront","toxicity","abode","hearty","handyman","centurion","phrasing","anachronism","newspaperman","annex","walker","till","volition","tributary","close-up","nook","cleric","ferment","proverb","inlet","heretic","waistcoat","duet","sniff","crewman","campaigner","wearing","grizzly","p","optimist","placard","overflow","pedigree","clang","brig","cinder","bunting","wag","dishonor","denominator","gong","siding","trilogy","deli","fluoride","questioner","squat","competency","partisan","putter","entree","cynic","tombstone","scoreboard","biscuit","souffle","homecoming","overseer","hideout","brewery","emancipation","interface","premier","auditor","troll","conscription","stout","trucker","beetle","dealing","bookkeeper","build-up","yardstick","da","polity","wick","wrinkle","private","outflow","borderline","outfielder","visage","leper","chiffon","arbor","weave","barnyard","checklist","granny","insensitivity","ex-husband","barometer","rupture","infirmary","desertion","wonderment","encyclopedia","slaughterhouse","nostril","ineptitude","implant","infatuation","laundromat","warship","rub","benchmark","polygraph","dinghy","behind","tween","filibuster","wearer","crayon","sensor","hustler","sinew","progeny","dig","pediatrician","foursome","buckskin","cornfield","safeguard","divergence","ting","coupling","dislocation","the","immersion","purchaser","cleft","overhang","booty","scuffle","rattlesnake","teacup","retinue","hallucination","potion","yeshiva","tapping","rip","multiplication","canister","gallantry","morn","thermostat","grind","aviator","ecosystem","pariah","recruit","vestige","ro","phosphate","abomination","laurel","sweatshirt","vaccination","psychoanalyst","blind","psychosis","sidekick","shopkeeper","theorist","delicatessen","sheepskin","billionaire","receptacle","salami","paddock","glen","beech","leer","mime","ty","perfectionist","seedling","wil","bind","intolerance","dint","plural","rouge","skylight","mammy","drab","microcosm","sole","organist","court-martial","matinee","bulwark","must","expatriate","stethoscope","daydream","backer","godfather","breech","artifice","auxiliary","adventurer","atrium","counterman","idiocy","grotesque","dishonesty","runaway","digit","baseline","reflector","preamble","sellout","falcon","scribe","retainer","louse","grapevine","sojourn","lash","marquee","schoolmaster","squeak","squeal","shooter","townhouse","nationalist","billiard","backfield","auctioneer","aria","avant-garde","hostler","smattering","giving","coaster","arraignment","duo","malignancy","throwback","doc","turnabout","seeker","deletion","vernacular","bulldozer","tedium","hustle","raspberry","estrangement","mutilation","styling","incinerator","wrong","shortcut","mastectomy","infringement","bonding","timbre","cameo","workroom","grassland","spraying","cooperative","tarpaulin","determinant","thyme","innocent","clique","racer","leakage","conflagration","jingle","duplicity","diaper","conqueror","committeeman","robin","reprimand","marina","cross-section","flagship","denouement","recluse","homemaker","moron","rind","gent","magnificence","dispatcher","detonation","harbour","toddler","rotunda","sedition","fell","dolly","laureate","woodsman","syndication","clot","guitarist","blemish","password","overview","eggplant","incantation","drapery","incapacity","florist","hive","civility","mod","screenwriter","intoxication","barman","ern","furrow","cant","clapboard","tumbler","walkie-talkie","pajama","vortex","defenseman","hostel","subjugation","interception","armory","fanaticism","sibling","inhalation","undercurrent","husk","mead","maw","padlock","abnormality","penguin","undersecretary","damnation","independent","airlift","peel","schoolroom","rascal","fingertip","cartilage","dichotomy","blank","lingo","clasp","racquet","acknowledgement","rebuff","bier","aerosol","taping","checkout","arse","thoroughfare","pelt","copse","keg","fissure","tern","mirage","blockbuster","balm","arbiter","shutout","schism","fluff","circumcision","insertion","pseudonym","heathen","eulogy","snowball","penthouse","kinsman","gebling","regulator","proponent","yearbook","barbarism","mutt","reopening","paunch","governorship","differential","airship","subscriber","alloy","adjunct","impairment","incongruity","pheasant","grownup","predicate","loo","sleigh","seer","flitter","sunburn","plebiscite","stockade","pout","sledge","stipulation","lordship","bayonet","wretch","vulture","postman","breaker","newsroom","consort","grinder","ballpoint","tequila","unpleasantness","wrapping","squall","adage","monograph","privation","streetlight","hilarity","sacrament","diminution","mannequin","duplication","banishment","rasp","biochemist","goatee","cranberry","sultan","blip","disservice","idealist","middleman","shaping","apocalypse","strut","oligarchy","moor","zombie","certitude","javelin","azure","turnpike","forger","commode","bleach","sideshow","banister","closeup","dysentery","steeple","offence","commandment","furlough","best-seller","filament","mountaintop","censor","snowmobile","kaleidoscope","elf","imp","slipper","lunacy","telecast","nanny","kernel","eventuality","subordination","sonnet","nitrate","foal","prank","expropriation","fedora","zigzag","resale","namesake","highlight","supplication","concurrence","medallion","jailer","loin","tread","quill","cardigan","prune","slur","surtax","internist","strait","smuggler","panacea","turd","wanderer","crude","darlin","epitaph","docking","seashore","cheeseburger","netting","provider","dispenser","intonation","marching","caress","hootch","morass","chum","sanctum","headband","powerhouse","axiom","terrier","springboard","tot","latrine","toad","clink","herbicide","figger","hick","manger","poppy","chaise","archetype","undoing","beehive","illustrator","withholding","sterility","paddy","coven","custodian","half-life","embezzlement","armoire","kickoff","possessor","rectum","sit","daisy","housecoat","pollster","policewoman","ointment","expressionist","stockpile","bombshell","impresario","co-pilot","chessboard","dazzle","scepter","archdiocese","linguist","odyssey","capitol","accession","lute","liter","multimillionaire","decoy","warp","conveyor","grandpa","ance","mumble","betterment","bullfighter","chador","ampule","indiscretion","shake-up","clarinet","catapult","normalcy","shanty","dinosaur","epithet","tang","scaffold","immunization","repairman","suntan","mu","environmentalist","nightcap","tempest","artisan","orbiter","spiel","needlepoint","geologist","humanist","stutter","perplexity","roundup","concoction","treadmill","cacophony","antipathy","blackberry","bloodbath","brassiere","allergy","hitchhiker","grunting","choke","sitter","elixir","ba","repatriation","whack","decanter","crusader","burlap","incursion","lyric","compilation","seaport","coachman","philanthropy","secretion","collie","inquest","taper","moral","quartermaster","jeweler","salutation","confluence","gullet","tram","hideaway","by-product","drybone","copulation","divorcee","mausoleum","peeling","annuity","set-up","skiff","neurosis","windpipe","buoy","glide","archaeologist","pendant","junkyard","bullhorn","porthole","quandary","irrationality","acidity","pragmatist","derivation","stylist","duplicate","panther","brigadier","introspection","depravity","keynote","vexation","psi","weighing","deserter","speculator","teak","armful","remission","precursor","sorghum","harmonica","olive","gangway","contraband","defector","purgatory","genie","expedient","crowbar","desecration","bathhouse","enhancement","tenet","seasoning","wrangling","downhill","venue","tracery","dictation","bailout","undertone","pecker","prep","forerunner","bandstand","letdown","luminosity","tonnage","catwalk","brunch","sapphire","ballplayer","wineglass","readout","genealogy","horsepower","messiah","blackjack","hemorrhage","damask","registry","gunwale","jerkin","humorist","bowler","tingle","engraving","chauvinist","spirituality","eyepiece","twang","constancy","blot","blob","chard","highschool","sportswriter","tiara","domino","contestant","migraine","newscast","mainstay","hammering","tracker","wager","offshoot","buster","informality","python","felon","imperfection","slag","convulsion","sedative","cellblock","punt","headwaiter","outhouse","monstrosity","nonwhite","override","raisin","inversion","pancake","flavour","cataract","reclamation","churchyard","pidgin","suction","chanting","aggravation","dynamo","pee","fistful","hogan","byproduct","brooch","lullaby","workday","slop","silencer","dealership","earner","anchorman","pittance","crumb","custard","rainstorm","tote","mulch","mason","earl","barroom","levee","discouragement","falsity","compressor","lodging","gynecologist","divination","calico","bibliography","cyclone","senor","gatehouse","lagoon","squirt","artwork","songwriter","derivative","supernova","divan","photon","surety","cobbler","fatality","gout","eleven-year-old","ent","cropping","mainspring","prism","confederation","weaver","neighbour","yuppie","muffin","juniper","ovum","lesbian","pi","shimmer","fax","increment","co-ordination","splashing","thanksgiving","exaltation","confiscation","fairy-tale","fudge","brief","priestess","re-creation","hydrocarbon","ford","usurper","maelstrom","spaceport","swordsman","vegetarian","newness","grad","potter","manservant","fullback","fiend","giver","subculture","debutante","striving","scorer","catechism","charger","armada","blond","paign","handball","wince","appetizer","guidebook","jog","millet","hoot","inferno","pardner","mash","mousse","mammography","launcher","battering","predilection","portent","beep","exhortation","notification","warm-up","diatribe","panda","menstruation","telex","revitalization","workingman","cordon","charmer","fumble","hamper","moralist","settler","chowder","ley","mannerism","drunkard","posting","turquoise","elasticity","abbot","bookie","tusk","paragon","precondition","rollback","lunge","conundrum","eviction","sealer","cellist","cosmology","turntable","outside","fortification","nightstand","spook","shoemaker","sac","sulfate","isle","antigen","steed","bacterium","utopia","stunner","hillock","clove","irritant","tat","memento","rung","gaffe","portraiture","solicitor","rodent","barter","intensification","gallbladder","condom","antiquarian","peck","cheering","meteor","inflow","stenographer","blinking","icing","jackass","dweller","fiesta","irrelevance","harpoon","appendage","stipend","mommy","cassock","microfilm","dead-end","vermouth","scarecrow","fielder","referral","mart","burger","ticker","hindrance","coverlet","speedboat","wafer","sluice","bellboy","hangout","figurehead","midterm","petticoat","matador","skein","beholder","flier","waiver","flotilla","smudge","inequity","mixer","sulfide","banality","roach","billy","tailgate","gaggle","softening","loincloth","gore","bib","chrissake","changer","muse","longitude","tourney","mil","aorta","poop","regression","soviet","placing","winch","apostle","constant","squabble","blimp","abdication","porpoise","puncture","workbench","parameter","conventionalist","flagpole","unfairness","reptile","typist","bookshop","hesitancy","strongman","headland","sprint","manhole","blowing","archipelago","ideologue","slouch","poke","gush","stratum","mulatto","echelon","postmaster","sheik","emigre","alto","affectation","rad","climber","deerskin","bower","idolatry","reciprocity","sweet","wasp","dissection","baby-sitter","purple","toothpick","lyre","archer","sprawl","councilor","contrivance","flake","kynd","suffocation","damp","ware","travail","candelabra","wrestler","patina","moaning","paisley","recruiter","moderator","respondent","marmalade","bellow","harpsichord","atrophy","ejector","jetty","stripper","monorail","dramatist","hysterectomy","riverbed","revaluation","stoppage","conspirator","fetish","sunflower","cognition","scrim","rec","retriever","aphrodisiac","redneck","palsy","pullover","flywheel","roundness","peculiarity","ernment","nectar","ruck","swimsuit","curd","underclass","polka","conservationist","mire","drumbeat","cinch","cordiality","deacon","speechwriter","purr","gelatin","muddle","booby","solid","cloakroom","stopwatch","sportsman","burlesque","overload","mademoiselle","divider","bailiff","handout","ordination","stiff","languor","paperweight","opiate","snap","causation","mower","perversity","snatch","touchstone","self-indulgence","shrub","interceptor","mammoth","proceeding","cheekbone","spoke","repellent","cardiologist","reminiscence","sprinter","evocation","postscript","enlistment","blotter","troika","dacha","cabdriver","fund-raiser","switching","para","tendon","fireside","effigy","leech","veneration","reek","schoolyard","pellet","shellac","weasel","jab","carcinogen","restroom","cauliflower","levity","caftan","topside","fruitcake","bickering","drawing-room","dovetail","culvert","chateau","bugging","tinker","hobo","corset","automaker","actualization","oration","handhold","nutmeg","tentacle","quicksand","handler","panoply","bowhead","testimonial","mammal","bellhop","devotee","technicality","trainee","mongrel","newscaster","aggregation","footpath","fawn","accreditation","heave","jib","rationalist","vendetta","midpoint","buckboard","screwball","hatchway","disinfectant","cramp","causeway","tease","corkscrew","sledgehammer","sloth","materialist","mogul","stopper","bevel","carbonate","berry","snore","throwaway","agribusiness","rerun","guillotine","nip","computation","keyhole","storybook","watercolor","cer","porcupine","urging","cockroach","esse","headman","settee","usher","short","obstetrician","faggot","ballpark","palisade","whimsy","co-owner","spout","nub","pectin","dun","cypress","trombone","scat","lite","dame","quip","invisibility","baboon","sneeze","swish","originator","biennial","newsreel","chameleon","dressmaker","storehouse","trapping","statistician","bloke","helmsman","ewe","drape","trump","great-grandmother","cloister","caterer","grounding","hotbed","life-span","urinal","funk","bedchamber","boudoir","theoretician","oddball","nameplate","raven","ditty","canary","anticommunist","reconsideration","playboy","skate","transparency","uplift","six-pack","rambling","commendation","wimp","pestilence","sufferer","kelp","counterforce","self-doubt","deformity","croak","marine","marksman","directorate","reversion","stimulant","dence","beloved","eraser","slurry","tracing","bigot","compendium","entitlement","monolith","misrepresentation","darkroom","nutshell","torque","concubine","peephole","lesion","bogey","spindle","birdie","nugget","tenon","supercomputer","weakling","provenance","vowel","empiricist","filet","co-founder","prelate","onlooker","tricycle","sax","catheter","accessory","fresco","prod","oscillator","self-image","refraction","excretion","prance","insurer","cask","impersonation","rangeland","toothache","magnum","accuser","rubbing","carver","carnation","masquerade","pervert","trapdoor","shaker","mittee","tux","poignancy","payday","captor","couplet","mutant","jogger","raider","dilution","sickle","prowl","blister","reassessment","infirmity","matchmaker","workload","restaurateur","tuning","wiretap","perpetrator","davenport","lamppost","inductivist","affect","sterilization","booming","rucksack","repurchase","starship","bystander","taker","spaniel","teletype","cuckoo","sneaker","aspen","soundtrack","sacrilege","surname","succor","co-chairman","anticlimax","hopper","jumpsuit","rinse","rummy","cigaret","washcloth","butchery","almond","cooker","implement","effluent","cheat","threshing","silicone","draining","vector","shopper","dandelion","pecking","brazier","cobblestone","slugger","sacrificer","airlock","lunchroom","zebra","ejection","cutthroat","wizardry","crony","kennel","internship","cohabitation","omelet","wheelhouse","redundancy","schema","psychopath","buttock","grasshopper","playmate","lamentation","socialite","cornucopia","lichen","coterie","warlord","discomfiture","frieze","montage","traveller","curvature","condensation","vineyard","scraper","generality","archive","half-sister","gangplank","intimation","doublet","pleading","tome","quadrangle","connotation","lifeboat","blueberry","coinage","prospector","bash","disciplinarian","dualism","bookshelf","adjutant","clod","apportionment","footbridge","tourniquet","spore","slicker","jetport","magenta","schizophrenic","oilman","harbinger","trespass","merry-go-round","sabra","old-timer","vigilante","melanoma","torpor","gliding","refutation","dab","jurist","plumage","kitty","cauldron","abbey","jasmine","lefty","cabal","detonator","retiree","abatement","clamp","roost","councilman","halfback","centimeter","shirttail","whispering","stratagem","exponent","cheesecake","truism","jaunt","node","ironclad","undertow","self-portrait","urchin","idealization","splendour","antechamber","living-room","sampler","friar","irregularity","lateness","playback","binder","washbasin","tummy","capitulation","felicity","canter","birthrate","earthenware","kitchenette","foundry","ladle","babushka","chlorophyll","adjournment","villager","recrimination","hotshot","blaster","pruning","soloist","hummingbird","recuperation","bequest","hemlock","cottonwood","drawbridge","alternation","malt","interconnection","mugger","tuft","keystone","riverboat","thrall","ayatollah","highland","mistrial","bunkhouse","anesthesiologist","dredging","anode","salsa","prizefighter","neckline","chile","foreclosure","cola","digression","scythe","lout","chamberlain","minefield","sabbatical","appraiser","isotope","demarcation","garnet","buzzard","repulsion","lowland","snifter","bending","weekly","dispensation","botanist","sari","stabbing","ovary","skullcap","journeyman","thievery","look-alike","parson","heartbreak","distillate","neophyte","blower","storekeeper","firmament","taxicab","corona","fusillade","publicist","resume","breather","casement","smokestack","interrogator","outcropping","mecca","dilettante","shoestring","belch","behemoth","negligee","heath","smut","negative","fistfight","regent","incumbency","curragh","toga","ministration","turnip","beamer","stepladder","loon","businesswoman","jumbo","whining","spoor","posturing","parlour","concertina","alkali","rampart","chime","warmup","taffeta","hyena","firehouse","sweetener","guessing","pronoun","madhouse","lioness","breadwinner","diocese","escarpment","mimic","retina","larder","gnat","hothouse","ponytail","markup","bevy","revocation","depressive","garner","redefinition","lifter","stateroom","nutritionist","isolationist","surveyor","polemic","ornamentation","gouge","counterweight","thrower","illegality","joining","lumberyard","wholesaler","obeisance","stagecoach","substage","lockup","nudge","rejoinder","compost","carburetor","peacemaker","prologue","swinger","right-of-way","precipitate","sprinkler","crone","valentine","vassal","tabloid","minstrel","nursemaid","attribution","courtier","docket","spool","convocation","serviceman","letterhead","zealot","negro","cackle","masthead","dispersion","underwriting","armload","noodle","squawk","periodical","reformation","boa","starlet","about-face","ejaculation","encore","harangue","woodpile","earlobe","reaffirmation","handlebar","compunction","contemporary","midriff","nimbus","householder","postgraduate","quirk","innovator","sneak","straitjacket","pussycat","belle","kidnapper","spacing","laying","standout","estuary","duster","jackpot","motorboat","welterweight","kicker","expectant","revue","senior","epistemology","yeoman","firearm","granddaddy","projectile","stammer","crossfire","toxin","hookup","phantom","transgression","flagstone","acuity","twick","acolyte","directorship","corpsman","worktable","mammogram","wart","liqueur","unbutton","receivership","duchess","delinquent","picker","earphone","blare","promontory","formalism","infamy","operative","hock","crusher","megaphone","retrenchment","chaser","dementia","wane","triviality","quadrant","curate","pairing","forging","dermatologist","mango","bon","moccasin","hayloft","marionette","seedship","ooze","interloper","twill","solicitation","trowel","professorship","scrimmage","scrawl","blockage","parkway","motorman","snapper","transcription","vasectomy","binary","flagon","choirboy","butte","throbbing","bound","thunderbolt","dike","cowbell","elect","prodding","lynching","rant","drifter","snot","preservative","brogue","tary","tortoise","lattice","strudel","composite","churn","median","neurosurgeon","mariner","kiln","boarder","ama","petal","friendly","clearinghouse","swastika","filler","enquiry","dispensary","chump","archeologist","rescuer","dy","draftsman","snicker","shakedown","romp","construct","conclave","winery","polarity","breakin","wailing","gurgle","bedroll","commissar","albatross","shading","peal","taverna","chicanery","has-been","waistline","oaf","satirist","faint","myosin","dimple","landfall","fornication","smithy","tough","gunboat","busboy","cassava","poplar","discontinuity","obelisk","blubber","demonstrator","meltdown","abolitionist","thorax","holler","pimple","sending","druggist","indirection","leotard","ken","showman","despot","ombudsman","lyricist","dearie","lumberjack","gaff","pagan","cremation","infarction","sturgeon","publican","bottleneck","chambermaid","pectoral","purser","godsend","whisk","canard","concentrate","copter","shipwreck","laundering","clipper","notepad","jackal","indentation","basilica","adhesive","mermaid","knighthood","personage","omelette","whoosh","embellishment","misgiving","tracer","brawling","crucifixion","steal","transference","sleight","threesome","windowpane","bereavement","viceroy","betrothal","refresher","seagull","jay","needler","discoverer","goiter","caterpillar","impostor","diminutive","cation","playpen","amputation","confidante","dockside","inquisition","chronicler","seamstress","lath","absolutist","cadaver","perusal","subterfuge","self-satisfaction","sawmill","agitator","shortcoming","breakwater","microcomputer","lima","greatcoat","mahout","prima","undress","superstructure","stopgap","moo","bio","fret","pomposity","bough","autocracy","anchorage","samovar","gen","burrow","rosebud","segregationist","mortise","hydrant","postmortem","oversimplification","entryway","paintbrush","rea","balustrade","chuck","trumpeter","ferret","opportunist","pinnace","salamander","transom","mace","individualist","synthesizer","thoroughbred","cupola","tomboy","ensign","bottling","whir","poultice","entranceway","saver","gurdwara","renegotiation","tossing","ruffle","footprint","skeptic","birthmark","tailspin","kickback","chalice","plagiarism","passer","inhumanity","ceremonial","sapling","babysitter","creeper","galleon","bellman","holly","hacienda","cur","transplantation","scab","ballgame","demotion","flimsy","hovel","lug","layup","firefighter","gravestone","nymph","cajole","tickle","boxcar","secession","refractor","somersault","personification","treacle","tutorial","voucher","thimble","stickler","front-runner","paroxysm","exorcism","psalm","infestation","scrubbing","castor","peppermint","orchestration","extremist","oppressor","lode","prompting","watchword","swindle","statehouse","floater","nightdress","bloak","elegy","woodshed","trembling","banning","adornment","redoubt","lightweight","postulate","anti-Semite","tasting","viewscreen","sentinel","nation-state","heft","nurture","villainy","manhunt","invoice","sprig","self-denial","selector","piglet","commemoration","crucible","piper","curtsy","lackey","breastplate","gadfly","octave","epilogue","self-examination","thyroid","apologist","chemise","super","figment","waif","essayist","brewer","miniature","sediment","cannibal","tulip","caramel","caseload","synonym","analogue","ver","shirtwaist","cornerback","insecticide","debauchery","lien","strangulation","intricacy","guesthouse","crumbling","glassware","cachet","thumping","damper","colonist","frolic","ogre","heist","sorting","pawl","muttering","refill","cowl","imbecile","painkiller","garter","creole","overpass","simile","potpourri","piling","predisposition","corsage","mobster","sandal","aphorism","vice-chairman","heartache","converter","pecan","ecologist","substrate","quagmire","trenchcoat","voyce","overstatement","soapbox","rediscovery","effusion","agronomist","firecracker","haunt","murmuring","henhouse","fluctuation","signora","mulberry","hoist","bullfight","discotheque","finder","tureen","hairstyle","dignitary","consummation","spar","pogrom","beeper","read","outboard","sho","skit","impurity","sadist","parafoil","bouncer","spender","locust","boardroom","burnout","inoculation","surfeit","welder","propagandist","mortuary","pessimist","equivalence","juke","spatter","incubator","reproof","gulch","notary","speedometer","lodger","mitt","southpaw","footman","amity","bloodline","cleaver","coffeehouse","confederate","assist","ation","lecher","abrasion","daybed","knit","laddie","forfeit","kebele","filigree","frisbee","cantina","oscillation","countryman","juggler","scion","acrobat","hourglass","realtor","onyx","pettiness","chancellery","footfall","slippage","mandarin","eral","lob","impertinence","providence","dom","idyll","democrat","deferral","sorority","slamming","badger","mutter","ling","strobe","explosive","municipality","crossover","bedstead","spatula","tug-of-war","goon","pauper","lation","sacking","alder","nightstick","salve","infraction","prowler","falsification","pant","drunk","rumbling","ce","minuet","plaything","yelling","kiddie","duction","buttress","carapace","sobbing","insufficiency","prig","bidet","bloodhound","madwoman","buffoon","vignette","doorjamb","caprice","gable","converse","cad","creche","mullah","spectre","spotter","ingenue","chalet","automatic","stash","truckload","tailback","static","productivist","dissipation","haunch","nag","awl","self-delusion","rattler","blacklist","beagle","trapeze","obstinacy","fiddler","theorem","rearrangement","changeover","reassignment","courtesan","fillet","nay","cutout","luncheonette","purveyor","incitement","remarriage","amelioration","executor","buttonhole","duality","churchman","sickroom","farmstead","jester","perfidy","cuticle","weal","snub","pretension","roadbed","furnishing","quickie","workweek","conveyance","pseudopatient","turbocharger","fleece","abbreviation","spigot","leaflet","great-aunt","ninny","beaker","experimenter","validation","inhabitant","grading","cantaloupe","potentiality","flue","commoner","playroom","readjustment","boathouse","vivacity","brakeman","petitioner","singularity","gage","delineation","fester","paratrooper","font","pitchfork","signifier","crossbar","playhouse","tripe","stylus","pacemaker","clustering","hone","runt","emporium","ragtag","aneurysm","trapper","pulley","thrashing","candlestick","checkerboard","swoop","surcoat","dystrophy","bristle","beck","toolbox","hunchback","subcompact","doze","seaway","disclaimer","arbitrator","miller","crackpot","loafer","instigation","sen","bale","skim","skip","dollop","tender","oeuvre","goner","sor","tort","cropland","profundity","caf","zoom","gabardine","quack","cataclysm","condolence","foxhole","circlet","brave","misfit","bivouac","artificiality","dachshund","puke","bagel","sortie","nomad","opal","ethnicity","firebox","ratchet","cud","worsted","squabbling","cheque","jean","avatar","dirge","footstool","velour","barrister","pression","microchip","coda","reappraisal","cess","hangman","centenary","plough","broomstick","headstone","tormentor","sore","rathorn","voyeur","world-view","co-star","warren","fail","deflation","noble","fleck","saleswoman","hap","machinist","waffle","tom","ell","prefab","suckling","guardhouse","sabre","entanglement","integrator","quarterly","paraffin","heifer","frivolity","good","bougainvillea","excommunication","distillation","cyclist","meteorologist","rubric","cul-de-sac","misnomer","phobia","demagogue","bloodletting","raconteur","ger","astrologer","zygote","counterrevolution","reinstatement","anchovy","getup","tryout","scullery","turnstile","cyst","mustang","gaslight","self-deception","emanation","grown-up","escapade","versity","fishery","paprika","grailstone","gurney","fount","holdout","licensee","jackknife","asterisk","still","fundamentalist","humbug","repast","christening","butternut","miniskirt","fortune-teller","spillway","ference","salver","payout","nodule","high","tugboat","gizzard","sympathizer","fibrillation","incompatibility","dodge","trove","mercenary","pigtail","matchbook","masterwork","barb","endeavour","confection","ephor","yarmulke","char","mimeograph","holdover","subtitle","saddlebag","metronome","tine","testicle","caveat","etching","auntie","guarantor","ringer","airman","boatman","carnivore","armband","polder","tryst","lem","sitting-room","barrow","reappearance","pastiche","bankroll","stroller","saxophonist","blanc","redesign","plotting","gruel","juicer","slat","scooter","socialist","gradient","ember","scorecard","remembering","bo","forecaster","flirt","backache","parakeet","pixie","guffaw","anesthetist","logjam","pursuer","physiologist","follicle","coverall","patsy","bunt","lubricant","jawbone","numeral","mourner","rune","bettor","solder","nitrite","rime","pinstripe","pistachio","monocle","equivocation","crystallization","twit","two-year-old","toupee","eyelash","recognizance","cy","sophistry","seesaw","loony","do-gooder","dusting","commonality","yearling","disbarment","self-congratulation","tsar","vagabond","rhinestone","viper","planetoid","crochet","laird","flatland","prompt","catamaran","wigwam","mainframe","shivering","stringer","vane","iniquity","hoodlum","tableware","smelter","overlay","umber","placenta","yew","right-hander","laggard","cornice","philanthropist","scouring","dissenter","mainsail","showplace","conch","sentimentalist","protectorate","sanitarium","truancy","angler","showpiece","carotene","pollutant","diabetic","hairbrush","videodisc","intellectualist","pothole","setter","tense","grader","kneecap","birdbath","dell","typhoid","tuba","torturer","commie","houseboat","revelry","medalist","hinterland","jowl","splotch","sable","mouf","ripoff","coolie","streetlamp","damn","sharecropper","oral","schoolmate","commander-in-chief","capitalization","flex","shtetl","chenille","pullback","pharaoh","claret","fulfilment","glower","remuneration","internationalist","pap","pediment","sonata","toke","co-director","dollhouse","salesgirl","greenback","analog","ofa","freelancer","hairpin","aphasia","kicking","bummer","lawmaker","thickening","juggernaut","comma","sander","claimant","triad","rhizome","prolongation","placer","transvestite","faceplate","shortening","coffle","surfer","greengrocer","roughage","nudist","dumbbell","coiffure","pinky","ex-President","start-up","bobby","sidearm","paean","raiment","conceptualization","surmise","agnostic","cranny","tassel","infarct","pitchman","minor","stationmaster","sublet","puter","dramatization","mounting","washstand","counsellor","penknife","curtailment","remake","millimeter","sextant","vocalist","blowup","walleye","pickax","fanny","ascendant","brushing","highball","bandleader","winning","godmother","horoscope","disequilibrium","run-up","grazer","sandbar","motorbike","hassock","piggy","teat","reprise","wheeling","psychotherapist","calabash","cob","relativist","packer","slayer","digger","banshee","autocrat","knave","muskrat","extinguisher","foreleg","sobriquet","hospice","accretion","mastermind","figurine","newsmagazine","epidemiologist","pic","minaret","dereliction","city-state","jawline","escapist","legation","weatherman","sinker","cabby","guardrail","objector","timepiece","cistern","werewolf","decadent","harlot","epiphany","bricklayer","doorkeeper","obsidian","bedpost","constriction","refectory","blackbird","enforcer","riposte","schmuck","squab","pop-up","handrail","sandbag","superman","underbelly","alarmist","sesame","paratroop","droplet","proclivity","theorizing","quark","tactician","sundae","poolhall","behaviorist","dipper","postmark","co-conspirator","carload","electrocution","mould","goodnight","appendectomy","statuette","coefficient","cornet","scolding","prude","platitude","carport","lilac","geisha","foist","mitigation","percussionist","lechery","wyrm","charlatan","tussle","slough","jamb","twister","lakeshore","scavenger","pinkie","changeling","pinhead","muster","exploring","fief","critter","haystack","skimmer","geyser","stumble","update","tabernacle","gargoyle","projectionist","requisite","suffix","ramrod","betrayer","perience","tance","fluting","flare-up","fatherland","guardianship","douche","good-night","trawler","headsman","stoplight","operetta","spend","hater","teakettle","geneticist","particular","wardroom","slider","deuce","gingham","telethon","acclamation","centrifuge","workstation","pretender","prong","lampshade","ureter","hiccup","acetate","molding","wallop","vagrant","three-star","carafe","blowout","equinox","rave","junior","spoof","confessor","troubleshooter","braggart","judgeship","rapier","landmass","stoic","cuckold","inheritor","forester","jangle","gymnast","wingman","stein","gnome","drumstick","whatnot","yachtsman","realty","glob","by-election","academic","deflection","knocker","wondering","mugging","petit","frosting","pillowcase","panelling","grendel","tribune","tabulation","simulator","whaler","stork","gill","cavalcade","workhorse","locksmith","preppie","henchman","countertop","groundcar","puree","wellspring","debasement","prankster","tration","insert","put-down","typer","chartreuse","crematorium","headpiece","noncom","wipe","drove","sportscaster","impersonator","shrew","twitching","loader","magnolia","dropping","functionary","dissonance","cudgel","forfeiture","glutton","reject","doubleheader","tarp","suburbanite","afghan","chaperone","bas-relief","oscilloscope","imposter","newel","trusteeship","shocker","cannonball","half-breed","woodpecker","tumbleweed","snip","consignment","left-hander","spoil","also-ran","exhalation","signification","tester","ashram","gardenia","deductible","frontline","subtraction","bowstring","upland","bearskin","gramophone","mock-up","serenade","mix-up","extrapolation","tidbit","semaphore","banging","dogwood","carol","mapping","exchanger","ignominy","retraction","videocassette","precept","sirloin","mortification","pagoda","belfry","cubbyhole","mindstone","greyhound","clank","snowbank","instep","sanatorium","savanna","longshoreman","copier","nightshirt","boatyard","brigand","usurpation","understudy","interrelationship","undercarriage","sulphate","quasar","marshmallow","thrush","sweeper","alleviation","feint","chimera","infidel","modifier","perennial","simpleton","gridiron","overlord","airway","binding","abstention","algorithm","amalgamation","ascension","herdsman","lollipop","pastel","laminate","tendril","synopsis","drawstring","intermarriage","restorer","swoon","firefight","civilisation","self-criticism","hanky","ventricle","jot","interferon","circel","avenger","stepson","amethyst","beachhead","loggia","sizzle","burp","watchtower","endearment","dryad","prefect","tong","croissant","blocker","brioche","thistle","sunburst","savor","dumpling","checker","soliloquy","marketer","wheeze","molar","oboe","inbound","masochist","superficiality","tabby","outcrop","deputation","bassist","particularity","strop","thang","doggy","zation","ghoul","domestic","frostbite","relapse","floorboard","clicking","paraphrase","sinkhole","pushcart","overdraft","spinnaker","sourdough","sweatshop","meteorite","lander","caboose","junket","planer","iguana","brouhaha","reaper","sharpshooter","eggshell","self-sacrifice","minnow","skyrocket","connexion","effrontery","oblong","biker","flinch","cog","bullock","retrial","underwriter","gentlewoman","noggin","sissy","collect","dogmatism","sweatsuit","biplane","polariser","server","hiker","electrolyte","thunderclap","bronc","snooze","mascot","sherbet","carillon","decal","womanizer","underground","tailcoat","worshipper","automaton","proscription","sleuth","honeybee","abutment","foller","palladium","partake","jailing","counterfeit","pompadour","moneymaker","acacia","monthly","geographer","doghouse","bludgeon","fitter","conservator","indecency","atoll","fife","acquit","barracuda","mortician","striker","plait","untruth","hoarding","eighteen-wheeler","shakeup","grounder","abuser","hamstring","parishioner","cherub","cubist","antler","kisser","shunt","cravat","admixture","whinny","scorpion","amenity","matchup","spacer","settling","insinuation","possum","tenancy","girder","adapter","mousetrap","cubble","steppe","hypochondriac","covey","whipping","taunt","pocketful","pug","panhandle","conga","citron","foul-up","plaint","nouveau","oilskin","meridian","lifer","bolster","wren","gripe","mountaineer","transceiver","treetop","hex","harrow","tampering","photocopy","redskin","cesspool","barrette","cleanser","missive","breakfront","mini","ridgeline","semi","pasha","byword","phoneme","seducer","miser","cookstove","limerick","cummerbund","labourer","ascot","wraith","tarantula","toffee","pituitary","liana","cleat","line-up","helix","highboy","bicep","partment","coed","expletive","dumpster","deferment","progenitor","sandbox","mignon","typhoon","sublimation","backdoor","alchemist","pacifier","insomniac","hairpiece","lintel","indemnity","blurb","republican","electrocardiogram","futurist","recliner","mote","sketchbook","fulcrum","gratuity","aqueduct","adherent","masque","sundial","template","handmaiden","hedgehog","coding","corsair","solstice","orifice","sonobuoy","prizewinner","spinner","townsman","rosette","mind-set","unkindness","pushover","bility","infielder","hutch","erasure","parallelism","avowal","fastness","broadcloth","hellhole","grandparent","toehold","ident","sleepwalker","watching","aerie","database","mismatch","hombre","scrambler","spoiler","putdown","rookery","spinoff","ringleader","duchy","sealskin","transformer","doggie","bedsheet","cowhide","ceramic","prostration","cheroot","houseboy","giantess","tomcat","speedster","basalt","minicomputer","rapacity","spaceman","in-law","equerry","humpback","academician","harvester","fairground","ream","carat","entreaty","groundswell","obfuscation","provocateur","fugue","denigration","rifleman","manipulator","panting","synod","glitch","nightie","goaltender","kingpin","comforter","anesthetic","klaxon","hijack","orb","hostelry","gladiator","misadventure","bombard","fixity","tanner","stringency","wonderland","x-ray","plainclothesman","roadhouse","travelogue","gasket","nibble","hacking","nude","tincture","receptor","fink","schoolmarm","washtub","homesteader","hacker","portiere","hatbox","tamer","howitzer","grouper","frontage","amoeba","clime","flashback","teamster","accolade","polluter","officeholder","inpatient","altercation","reverberation","coproduction","phosphor","substation","bandana","sapper","preserver","pigeonhole","prefecture","milkman","avocation","argyle","amphetamine","linker","leviathan","hamster","bondsman","comer","bumpkin","sheikh","beefsteak","tyke","discoloration","kingmaker","quotient","excision","whitey","asymmetry","trill","discourtesy","bleat","hatching","crier","creel","seabed","witticism","riser","lurcher","moviemaker","pantsuit","linchpin","deformation","deodorant","soybean","washboard","egotist","underpass","dysfunction","tingling","barstool","paramour","udder","microbe","radiologist","qualm","welt","salesperson","signpost","sepulcher","lumpectomy","slaver","shopgirl","peregrine","siesta","reiteration","profligacy","iodide","iconoclast","rollcall","fillip","oratorio","splat","incoherence","accompanist","motorcar","nunnery","busybody","carryall","nettle","jaguar","pretence","odometer","potentate","mussel","prophetess","monetarist","proach","typescript","hacksaw","broadsword","miter","fatty","terrarium","archangel","powerboat","stooge","cannery","pylon","pulsation","misstep","yucca","hearthstone","rumour","lockout","toboggan","trampoline","concatenation","debility","acorn","forklift","psion","dragonet","ligament","folio","tie-up","picking","swatch","arrowhead","martinet","fisher","quintet","ellipse","sumbitch","legitimation","nightwatch","hardback","schemer","conversationalist","collectivist","reallocation","diorama","cutaway","point-of-view","cattleman","abscess","talc","incubus","dribble","sis","rhododendron","rolling","spiderweb","nonsmoker","crissake","refusenik","save","obstructionist","suture","parenthesis","reefer","great-grandson","steelworker","bumblebee","bullfrog","festivity","embolism","defeatist","tankard","ferryman","garret","co-worker","consonant","copywriter","bookseller","compress","dogfight","embezzler","quiche","liege","dissector","taskmaster","prosthesis","emulsion","spitball","modulation","squint","retelling","baiting","whirr","air-conditioner","individuation","geezer","aspirant","pensioner","re-enactment","flapper","looker","marshland","sexton","adverb","coenzyme","misapprehension","inaccuracy","barmaid","beautician","daredevil","racehorse","oxford","spume","busload","tradesman","manicure","propellant","apothecary","ruffian","titillation","instigator","siting","ringmaster","enumeration","twirl","bookmaker","technocrat","mouth-harp","quaver","icehouse","ventilator","roadster","subpena","carter","comedienne","savannah","milkmaid","pumper","signer","deadbeat","cofounder","bootlegger","tribesman","wildfire","shard","hailstorm","struction","routing","dolmen","idiosyncrasy","poniard","honky-tonk","spendthrift","draftee","hermaphrodite","pinafore","roundabout","frill","redeployment","ophthalmologist","caldron","reinvestment","troubadour","fjord","leave-taking","elongation","clinch","trinket","suasion","neutralist","finalist","whiplash","ventriloquist","violator","monarchist","spanking","grindstone","initiator","standard-bearer","sender","atelier","distemper","ingot","frontiersman","altarpiece","endgame","homily","synapse","pillbox","ochre","scimitar","jubilee","presentiment","tation","aggrandizement","truncheon","damsel","fallibility","papaya","piggyback","puppeteer","workhouse","nightingale","entomologist","wicket","debriefing","logician","moorland","minimalist","matte","skirmishing","tonality","maidservant","yam","gatekeeper","whammy","drudge","angora","garland","manoeuvre","moviegoer","slingshot","titan","re-evaluation","ironwork","ambassadorship","lanch","pollination","riage","vocalization","brawler","shaving","particulate","inhaler","impoundment","surfboard","waterman","almanac","pepperoni","kook","colonnade","infantryman","scruple","functionalist","wisecrack","conscript","boor","bannister","pretzel","analgesic","firebrand","microprocessor","frame-up","guardsman","teetotaler","broad","pallbearer","airframe","wrangle","backboard","knockdown","reparation","poorhouse","milkshake","battlement","dragonfly","paymaster","snuffler","crudeness","nerd","blockhouse","donut","backhoe","principality","dimmer","wounding","collier","beater","footlocker","barkeep","absurdist","brickwork","great-uncle","rumination","appellation","joiner","hydrolysis","interlocutor","raindrop","hardtop","groping","cymbal","miscellany","pomegranate","hearer","abortionist","corncob","shoal","dunce","bellowing","bridgehead","mangrove","blotch","boxwood","briar","which","trickster","epileptic","dependent","encumbrance","claque","pickpocket","half-truth","bilge","overrun","caveman","posterior","derriere","sty","maggot","vibrator","imbecility","hang-up","syllogism","blindfold","sunbeam","chrysanthemum","amour","ne'er-do-well","odour","flowerpot","satrap","reconnoiter","tonsillectomy","clampdown","coliseum","menage","warbler","hubcap","crudity","baseboard","lithograph","homeroom","stanchion","amphitheatre","disquisition","commonplace","feedlot","reprint","shire","kraken","careerist","goatskin","worldview","waddle","washout","doormat","diadem","sniffer","spat","superhighway","snooper","libation","zoologist","subtext","bailiwick","exterminator","popsicle","actuary","cabinetmaker","swami","contraceptive","softener","margarita","hatter","tention","earpiece","dormer","timberland","katun","crooner","one-liner","adjudication","snitch","referent","subset","disavowal","starburst","merchantman","dalliance","polymer","hypnotist","monogram","peerage","claymore","satyr","twerp","matchstick","rubber-stamp","clapper","exhibitionist","warhorse","eatery","seashell","radish","router","dinette","trombonist","rivet","requiem","breakaway","hard-liner","locator","shindig","corrective","truffle","whelp","expediter","savant","mitten","canton","wobble","misinterpretation","fense","headwrap","conciliator","chine","topping","assemblyman","divine","scuffling","boomlet","dervish","yellow-green","stockyard","hummock","trimming","royalist","calumny","vandal","prickle","strikeout","apologia","afterburner","hunker","flippancy","fop","embrasure","hornet","tithe","oilfield","lawman","turnkey","fledgling","coauthor","blowpipe","subjectivist","backstop","fishbowl","bedpan","sedge","protrusion","crybaby","freedman","seminarian","spacesuit","tautology","footstep","fiveyear","stoneware","mance","generalist","quitter","domicile","requisition","seance","cabana","wastrel","underling","looter","glassful","wallow","boater","disharmony","shiksa","herringbone","flyleaf","eyesore","lawnmower","walk-up","hemline","wiggle","posing","whirring","cropper","reappointment","psychodrama","shaver","orthodontist","granary","extrovert","calfskin","thinning","foghorn","trainload","carbide","metier","harpist","minim","ballcarrier","rayon","bursting","flipper","fastening","mullet","exploit","squatter","nullity","commodore","newlywed","eavesdropper","chiropractor","miler","arsonist","wrecker","transmutation","incompetency","subcontractor","tress","meatball","bobcat","distributorship","camcorder","pasty","glimmering","groaning","classicist","stakeout","supplicant","repeater","crackling","cryptographer","croupier","honeycomb","insincerity","inhibitor","mystification","greaser","barker","anthill","barbarity","strangle","myrtle","segmentation","marlin","capon","toenail","flip-flop","auger","blasphemer","dipping","pawnshop","penumbra","mohole","bauble","rube","flophouse","triplicate","sardine","master-mason","fang","brainstorm","derangement","hanker","molestation","smokescreen","cavalryman","edging","layover","signalman","clavicle","crewcut","tricolor","cochairman","liberationist","foreskin","bleacher","semi-circle","quince","flatcar","abattoir","farmboy","tibia","thrum","conformist","southerner","docudrama","whorl","break-up","conglomeration","exhibitor","bramble","cutie","woodchuck","compatriot","stole","tuner","housemother","dharma","femme","teahouse","banquette","bottomland","arranger","philistine","vacillation","chiton","retch","caddie","reissue","teaser","swampland","deejay","libertarian","pegboard","greenhorn","dork","cellmate","jobber","wishbone","millstone","haunting","blow-up","snorkel","snowplow","trespasser","punter","snowflake","snowdrift","gunnysack","surround","evergreen","clog","radioisotope","cougar","pundit","wattle","subgroup","oviduct","mixup","misstatement","sulfite","pansy","splint","counterproposal","pulsar","remove","landau","four-year-old","rebbe","disconnection","neomort","exegesis","meteoroid","meringue","sheepherder","radioman","strumpet","opment","millionth","speakeasy","conformation","cultivator","goof","annual","gazelle","demitasse","fishhook","preferment","homebody","skewer","chancre","sorbet","hologram","rivulet","oldster","prisoner-of-war","tulle","riff","restatement","debit","emplacement","repre","invariance","half-circle","objectivist","passer-by","scarlet","flail","impala","persimmon","purist","gation","burgher","snowman","starling","barony","annulment","lifespan","herder","embolden","swathe","ex-convict","trouper","half-wit","fuchsia","grange","ricochet","stinker","opacity","colander","absorber","armadillo","pleasantry","noncommunist","taxiway","overtone","debater","taillight","advisement","birdcage","baroness","aureole","breakout","colouring","astrophysicist","flatboat","stilt","eyeshade","barbell","deliverer","fishnet","prise","jackrabbit","manifold","chattel","jimmy","workshirt","thornbush","chatty","frisson","recount","patentee","oceanographer","forepaw","murderess","whalebone","frontrunner","cerebrum","jector","militiaman","lobsterman","earthling","clean","swindler","scree","begat","doorsill","housedress","strangler","shantytown","roughhouse","scenarist","foothill","contaminant","hamadryad","phony","fairyland","seascape","treble","prodigality","hobble","gantry","backroom","enticement","sawhorse","interviewee","cliffside","dustpan","scrubber","imbroglio","acquaintanceship","woodworker","aesthete","octogenarian","mauling","archivist","pungency","interweaving","jabber","bassinet","doubler","torte","linkup","outdoorsman","fixer","caddy","fumbling","defile","meristem","microbiologist","urologist","stovepipe","tambourine","constructionist","egomaniac","adjuster","liniment","impiety","timeline","cowgirl","sinecure","chillun","foreword","frat","retary","bagpipe","coif","visualization","colleen","shirtmaker","flounce","adder","riffle","underboss","reinterpretation","bender","seeding","fiver","sicken","decoder","holothete","figuring","stave","earplug","acrylic","epigraph","fairytale","flasher","sally","inkwell","nitwit","hussy","constrictor","stabilizer","stickup","seaplane","shimmy","dredge","updraft","speciality","insulator","frond","storyboard","shill","rafter","blowgun","dukedom","favourite","populist","striper","blowtorch","mallard","licking","poetess","tetracycline","ad-lib","toxicologist","fencer","gnawing","eration","photocell","golem","heirloom","penitence","gence","latecomer","broil","outdistance","howler","canine","replenishment","traditionalist","emcee","eyeglass","billow","eyelet","khaki","assignation","tepee","buccaneer","bellyache","parkland","musicologist","phaeton","spirochete","lanyard","mischance","tobacconist","blusher","castaway","meson","bouillabaisse","scrivener","stinger","life-cycle","harridan","motivator","mooring","crimp","inlay","purveyance","vertical","jackhammer","strongbox","dishpan","cobweb","couturier","chalkboard","basilisk","duckling","penitent","footrest","tangent","facing","peroration","floodlight","nouvelle","truss","sprite","drier","esplanade","banding","insulter","dialog","pincer","battlefront","missal","hayseed","parvenu","baronet","shipwright","whisker","no-hitter","double-dealing","moire","conjurer","rickshaw","crevasse","switchback","nicety","provincialism","novella","liberator","biggie","tune-up","ferryboat","remover","twosome","loveseat","tektite","sharpener","cartwheel","diva","flirting","disproportion","tortilla","rover","whodunit","birder","parley","birdsong","fiefdom","augury","harrier","tamale","judging","snakebite","diagnostician","tannin","qualifier","cheetah","distillery","protester","stockroom","factotum","newswoman","cosmopolitan","iridescence","aeroplane","toddy","co-defendant","parry","duocorn","boasting","elector","clarinetist","undergarment","psych","supergiant","armature","environ","collectivity","keepsake","gunfighter","wingspan","perforation","worshiper","groupie","cityscape","worrier","shipload","scallop","hatchery","portraitist","screamer","blaspheme","pacer","presenter","malcontent","seine","equivalency","scriptwriter","lieve","discard","bantam","centaur","typology","loiter","nigguh","drubbing","airfoil","curio","grandmaster","finisher","luminary","alliteration","phantasy","blooper","fasting","samba","gearbox","islet","apricot","smidgen","inset","firestorm","madcap","seedbed","gunsight","forelock","disjunction","writhing","huckleberry","abstract","squirm","ironist","monosaccharide","pushbutton","terracotta","artiste","showgirl","cornea","temptress","popularization","free-fall","scribbling","conviviality","flange","thwack","droop","rower","sweatband","gopher","mandolin","slobber","stricture","calyx","dietician","rehash","padre","ancient","dotage","jacaranda","pensione","contravention","undulation","ironworker","currant","hankie","face-lift","anthropoid","depressant","war-horse","tithing","greeter","matchbox","woodcutter","magpie","wayfarer","handcuff","lawgiver","traverse","minion","cavalier","sonarman","defoliant","scamp","snowshoe","polyp","gainer","honkie","bottler","halloo","amputee","ontology","bromide","brisket","goodie","tavern-keeper","choker","preaching","molester","tonsure","recapitulation","aviary","stevedore","raffle","bootstrap","angiogram","plantain","tipper","hooting","seismometer","persecutor","lobotomy","pigsty","virologist","gamete","presbytery","stepping-stone","dressing-room","cyclamate","chipmunk","platelet","flogging","tuber","reservist","blinker","demographer","turncoat","demesne","fancier","ideologist","self-justification","bucketful","m'lord","rapping","bestiality","irrelevancy","oiler","mackinaw","flutist","trafficker","categorization","pram","world-system","cathouse","deceiver","idjit","double-take","reformulation","brushfire","separator","neigh","whimpering","crisscross","regurgitation","auteur","backwash","refiner","broadsheet","hedonist","recitative","nonentity","codger","tinting","policymaker","tutu","boondoggle","entrant","wok","small","boatload","searcher","taMing","sycophant","substructure","megalomaniac","rusher","saleslady","registrar","blackguard","neckerchief","oldie","clinician","flushing","pinwheel","dition","charioteer","beastie","stridency","verity","eyedropper","canvass","desperado","teardrop","farmyard","mannerist","macaw","valedictorian","whopper","pertinence","assay","puncher","manse","anatomist","dishtowel","nuke","egalitarian","tribulation","cinematographer","sailer","icicle","legume","spiritualist","nativist","these","progressive","blastocyst","harpooner","pedant","instrumentality","connector","masseur","vertebra","moonshiner","bowsprit","grabber","stele","clanking","renter","antihero","bankbook","jailbird","handicraft","fighter-bomber","streamer","retardant","wallflower","flamethrower","agate","cairn","bantamweight","agglomeration","roustabout","linden","roughneck","formance","moray","cession","rashness","capstone","derailment","declivity","snowfield","talon","haymaker","abductor","diffuser","geosector","camisole"];Object.defineProperty(Cp,"__esModule",{value:!0});Cp.nouns=Cp.adjectives=void 0;const u7e=Jj;Cp.adjectives=u7e.default;const d7e=Zj;Cp.nouns=d7e.default;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.nouns=e.adjectives=e.uniqueUsernameGenerator=e.generateUsername=e.generateFromEmail=void 0;const t=Cp,n=ate,r=(d,f)=>{const p=(0,n.randomBytes)(4).readUInt32BE(0);return d+p%(f-d+1)},i=d=>{let f;switch(d){case 1:f=Math.floor(r(1,9)).toString();break;case 2:f=Math.floor(r(10,90)).toString();break;case 3:f=Math.floor(r(100,900)).toString();break;case 4:f=Math.floor(r(1e3,9e3)).toString();break;case 5:f=Math.floor(r(1e4,9e4)).toString();break;case 6:f=Math.floor(r(1e5,9e5)).toString();break;default:f="";break}return f};function o(d,f){return d.replace(/@.+/,"").replace(/[&/\\#,+()$~%._@'":*?<>{}]/g,"")+i(f)}e.generateFromEmail=o;function s(d,f,h){const p=t.nouns[Math.floor(Math.random()*t.nouns.length)],g=t.adjectives[Math.floor(Math.random()*t.adjectives.length)];let v;return d?v=g+d+p+i(f):v=g+p+i(f),h?v.substring(0,h):v}e.generateUsername=s;function l(d){if(d.dictionaries){const f=d.dictionaries.length;let h="";for(let g=0;g{const l=s??await Fz({accept:oie,strict:!0});l&&(h7e(l)?await o(async()=>{const c=f7e(l)?await $Pe(new Uint8Array(await l.arrayBuffer())):await l.text(),d=await DZ(c);d&&(n(()=>d.layers),i(()=>d.UIState))},`Opening workspace (${Wz(l.size)})`):e(`${l==null?void 0:l.name} is not a workspace file`))},save:async s=>{e("Saving workspace...");const l=JSON.stringify({layers:t,UIState:r});if(s){const c=`${f5.generateUsername("-")}.workspace.json`;nq(l,c,"application/json"),e("Workspace saved",c)}else{const c=`${f5.generateUsername("-")}.workspace`;nq(await BPe(l),c,"application/octet-stream"),e("Workspace saved",c)}}}}function f7e(e){return e.name.endsWith(".workspace")}function h7e(e){return te.find(oie,t=>e.name.endsWith(t))}function p7e(e){return e.split(".")[0]}function e$(e){return e.split("/").pop()}function m7e(){const{controls:e,onChange:t,state:n}=Ou(),{load:r}=e6(),{result:i}=av(async()=>{const l=Object.assign({"/public/recipes/astar-jps-small-maze.workspace":()=>Vs(()=>import("./astar-jps-small-maze-9a90ce2a.js"),[],import.meta.url).then(c=>c.default),"/public/recipes/aurora-polyanya.workspace":()=>Vs(()=>import("./aurora-polyanya-ceb55900.js"),[],import.meta.url).then(c=>c.default),"/public/recipes/dynamic-starcraft.workspace":()=>Vs(()=>import("./dynamic-starcraft-4ceed441.js"),[],import.meta.url).then(c=>c.default),"/public/recipes/frozen-sea-astar.workspace":()=>Vs(()=>import("./frozen-sea-astar-d8dfa04c.js"),[],import.meta.url).then(c=>c.default),"/public/recipes/jps-vs-jps-prune2.workspace":()=>Vs(()=>import("./jps-vs-jps-prune2-defbda61.js"),[],import.meta.url).then(c=>c.default),"/public/recipes/lacam-random-32-32-20.workspace":()=>Vs(()=>import("./lacam-random-32-32-20-2163bf6f.js"),[],import.meta.url).then(c=>c.default),"/public/recipes/mapf-large.workspace":()=>Vs(()=>import("./mapf-large-867abdea.js"),[],import.meta.url).then(c=>c.default),"/public/recipes/mapf-sortation.workspace":()=>Vs(()=>import("./mapf-sortation-4ea4dd13.js"),[],import.meta.url).then(c=>c.default),"/public/recipes/melbourne-routing.workspace":()=>Vs(()=>import("./melbourne-routing-b5c14300.js"),[],import.meta.url).then(c=>c.default),"/public/recipes/new-york-astar.workspace":()=>Vs(()=>import("./new-york-astar-03f71297.js"),[],import.meta.url).then(c=>c.default),"/public/recipes/nine-tile.workspace":()=>Vs(()=>import("./nine-tile-6376158b.js"),[],import.meta.url).then(c=>c.default),"/public/recipes/rayscan-arena2.workspace":()=>Vs(()=>import("./rayscan-arena2-f6f7b81d.js"),[],import.meta.url).then(c=>c.default)});return await Promise.all(te.values(l).map(c=>c()))},[]);async function o(l){try{const c=await fetch(l);if(!c.ok)throw new Error("Network response was not ok");const d=await c.blob(),f=e$(l),h=new File([d],f,{type:d.type});r(h)}catch(c){console.error("There was a problem with the fetch operation:",c)}}function s(l,c){return C.jsxs(lt,{sx:{pt:2},children:[C.jsx(Lt,{variant:"overline",color:"text.secondary",children:l}),C.jsx(Lt,{variant:"body2",children:c})]})}return C.jsxs(Sn,{onChange:t,stack:n,children:[C.jsx(Sn.Content,{children:C.jsx(gn,{vertical:!0,children:C.jsx(Zg,{y:!0,children:C.jsx(lt,{sx:{pt:6},children:s(C.jsx(lt,{sx:{px:2},children:"Recipes"}),C.jsx(C.Fragment,{children:C.jsx(mp,{children:te.map(i,(l,c)=>C.jsxs(IE,{onClick:()=>o(l),children:[C.jsx(fu,{children:C.jsx(q4,{})}),C.jsx(ol,{primary:te.startCase(p7e(e$(l))),secondary:e$(l)})]},c))})}))})})})}),C.jsx(Sn.Extras,{children:e})]})}const h5={viewport:{id:"viewport",name:"Viewport",icon:C.jsx(qK,{}),content:s7e},tree:{id:"tree",name:"Tree",icon:C.jsx(UK,{}),content:RNe},steps:{id:"steps",name:"Steps",icon:C.jsx(CS,{}),content:t7e},info:{id:"info",name:"Logs",icon:C.jsx(GK,{}),content:nRe},layers:{id:"layers",name:"Layers",icon:C.jsx(q1,{}),content:SFe},debug:{id:"debug",name:"Debugger",icon:C.jsx(txe,{}),content:tRe},settings:{id:"settings",name:"Settings",icon:C.jsx(bxe,{}),content:_Ge},about:{id:"about",name:"About",icon:C.jsx(dxe,{}),content:u_e},recipes:{id:"recipes",name:"Recipes",icon:C.jsx(q4,{}),content:m7e}},[g7e,v7e]=Jl({view:{type:"branch",key:Mo(),orientation:"horizontal",children:[{size:75,type:"branch",key:Mo(),orientation:"horizontal",children:[{type:"leaf",size:25,key:Mo(),content:{type:"layers"}},{size:75,type:"branch",key:Mo(),orientation:"vertical",children:[{type:"leaf",size:75,key:Mo(),content:{type:"viewport"}},{type:"leaf",size:25,key:Mo(),content:{type:"info"}}]}]},{size:25,type:"leaf",key:Mo(),content:{type:"steps"}}]}});function y7e(){const[e]=BZ(),t=fz(),n=te.values(e);return C.jsx(ek,{sx:{...t,zIndex:r=>r.zIndex.tooltip+1,WebkitAppRegion:"drag"},open:!!n.length,children:C.jsxs(Od,{alignItems:"center",spacing:4,children:[C.jsx(G1,{}),n.map((r,i)=>C.jsx(Lt,{variant:"body2",color:"textSecondary",children:r},i))]})})}var sie={},b7e=Bt&&Bt.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),aie=Bt&&Bt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(sie,"__esModule",{value:!0});var qs=aie(Ug),t$=aie(I),x7e=function(e){b7e(t,e);function t(n){var r=e.call(this,n)||this;return r.resetDragging=function(){r.frameDragCounter=0,r.setState({draggingOverFrame:!1,draggingOverTarget:!1})},r.handleWindowDragOverOrDrop=function(i){i.preventDefault()},r.handleFrameDrag=function(i){if(t.eventHasFiles(i)){if(r.frameDragCounter+=i.type==="dragenter"?1:-1,r.frameDragCounter===1){r.setState({draggingOverFrame:!0}),r.props.onFrameDragEnter&&r.props.onFrameDragEnter(i);return}if(r.frameDragCounter===0){r.setState({draggingOverFrame:!1}),r.props.onFrameDragLeave&&r.props.onFrameDragLeave(i);return}}},r.handleFrameDrop=function(i){r.state.draggingOverTarget||(r.resetDragging(),r.props.onFrameDrop&&r.props.onFrameDrop(i))},r.handleDragOver=function(i){t.eventHasFiles(i)&&(r.setState({draggingOverTarget:!0}),!t.isIE()&&r.props.dropEffect&&(i.dataTransfer.dropEffect=r.props.dropEffect),r.props.onDragOver&&r.props.onDragOver(i))},r.handleDragLeave=function(i){r.setState({draggingOverTarget:!1}),r.props.onDragLeave&&r.props.onDragLeave(i)},r.handleDrop=function(i){if(r.props.onDrop&&t.eventHasFiles(i)){var o=i.dataTransfer?i.dataTransfer.files:null;r.props.onDrop(o,i)}r.resetDragging()},r.handleTargetClick=function(i){r.props.onTargetClick&&r.props.onTargetClick(i),r.resetDragging()},r.stopFrameListeners=function(i){i&&(i.removeEventListener("dragenter",r.handleFrameDrag),i.removeEventListener("dragleave",r.handleFrameDrag),i.removeEventListener("drop",r.handleFrameDrop))},r.startFrameListeners=function(i){i&&(i.addEventListener("dragenter",r.handleFrameDrag),i.addEventListener("dragleave",r.handleFrameDrag),i.addEventListener("drop",r.handleFrameDrop))},r.frameDragCounter=0,r.state={draggingOverFrame:!1,draggingOverTarget:!1},r}return t.prototype.componentDidMount=function(){this.startFrameListeners(this.props.frame),this.resetDragging(),window.addEventListener("dragover",this.handleWindowDragOverOrDrop),window.addEventListener("drop",this.handleWindowDragOverOrDrop)},t.prototype.componentDidUpdate=function(n){n.frame!==this.props.frame&&(this.resetDragging(),this.stopFrameListeners(n.frame),this.startFrameListeners(this.props.frame))},t.prototype.componentWillUnmount=function(){this.stopFrameListeners(this.props.frame),window.removeEventListener("dragover",this.handleWindowDragOverOrDrop),window.removeEventListener("drop",this.handleWindowDragOverOrDrop)},t.prototype.render=function(){var n=this.props,r=n.children,i=n.className,o=n.targetClassName,s=n.draggingOverFrameClassName,l=n.draggingOverTargetClassName,c=this.state,d=c.draggingOverTarget,f=c.draggingOverFrame,h=o;return f&&(h+=" "+s),d&&(h+=" "+l),t$.default.createElement("div",{className:i,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},t$.default.createElement("div",{className:h,onClick:this.handleTargetClick},r))},t.isIE=function(){return typeof window<"u"&&(window.navigator.userAgent.indexOf("MSIE")!==-1||window.navigator.appVersion.indexOf("Trident/")>0)},t.eventHasFiles=function(n){var r=!1;if(n.dataTransfer){var i=n.dataTransfer.types;for(var o in i)if(i[o]==="Files"){r=!0;break}}return r},t.propTypes={className:qs.default.string,targetClassName:qs.default.string,draggingOverFrameClassName:qs.default.string,draggingOverTargetClassName:qs.default.string,onDragOver:qs.default.func,onDragLeave:qs.default.func,onDrop:qs.default.func,onTargetClick:qs.default.func,dropEffect:qs.default.oneOf(["copy","move","link","none"]),frame:function(n,r,i){var o=n[r];if(o==null)return new Error("Warning: Required prop `"+r+"` was not specified in `"+i+"`");if(o!==document&&!(o instanceof HTMLElement))return new Error("Warning: Prop `"+r+"` must be one of the following: document, HTMLElement!")},onFrameDragEnter:qs.default.func,onFrameDragLeave:qs.default.func,onFrameDrop:qs.default.func},t.defaultProps={dropEffect:"copy",frame:typeof window>"u"?void 0:window.document,className:"file-drop",targetClassName:"file-drop-target",draggingOverFrameClassName:"file-drop-dragging-over-frame",draggingOverTargetClassName:"file-drop-dragging-over-target"},t}(t$.default.PureComponent),w7e=sie.FileDrop=x7e;function _7e(){const e=fz(),{load:t}=e6(),[n,r]=I.useState(!1);return C.jsx(C.Fragment,{children:C.jsx(w7e,{onFrameDragLeave:()=>r(!1),onFrameDragEnter:()=>r(!0),onFrameDrop:()=>r(!1),onDragLeave:()=>r(!1),onDrop:i=>(i==null?void 0:i.length)&&t(te.head(i)),children:C.jsx(ek,{sx:{...e,zIndex:i=>i.zIndex.tooltip+1},open:n,children:C.jsxs(Od,{alignItems:"center",spacing:4,children:[C.jsx(q4,{}),C.jsx(Lt,{variant:"body2",color:"textSecondary",children:"Open workspace"})]})})})})}function S7e(e){const t=mRe(),[{view:n},r]=g7e();return C.jsxs(C.Fragment,{children:[C.jsx(gn,{...e,children:C.jsx(FQ,{root:n,onChange:i=>r(()=>({view:i})),renderLeaf:({content:i})=>{var o;return C.jsx(pp,{in:!0,children:C.jsx(lt,{sx:{width:"100%",height:"100%"},children:I.createElement((o=h5[(i==null?void 0:i.type)??""])==null?void 0:o.content)})})}})}),C.jsx(pp,{in:t,children:C.jsx(dve,{variant:"indeterminate",sx:{position:"absolute",bottom:0,width:"100%",zIndex:1}})}),C.jsx(y7e,{}),C.jsx(_7e,{})]})}const E7e=e=>l$(e,"#ffffff")>l$(e,"#000000")?"#ffffff":"#000000";function C7e(e){I.useEffect(()=>{te.defer(()=>document.querySelector('meta[name="theme-color"]').setAttribute("content",e)),document.title=EF,"electron"in window&&window.electron.invoke("title-bar","#00000000",E7e(e))},[e])}function T7e(e){return new Promise(t=>te.delay(t,e))}async function k7e(e,t=2500){const n=te.now();return{result:await Promise.any([e(),T7e(t)]),delta:te.now()-n}}function A7e(){const e=ml(),[{remote:t}]=Mu(),[,n]=Ig(),r=Op("connections");return I.useEffect(()=>{let i=!1,o=[];return r(async()=>{if(t!=null&&t.length){for(const{transport:s,url:l,disabled:c}of t){if(c!==!0){e(`Connecting to ${l}...`);const d=new(gGe(s))({url:l});await d.connect();const{result:f,delta:h}=await k7e(()=>d.call("about"));f?(e(`Connected to ${f.name}`),o=[...o,{...f,url:l,ping:h,call:d.call.bind(d),disconnect:d.disconnect.bind(d)}]):await d.disconnect()}i||n(()=>o)}i||e(`Connected to ${o.length} of ${t.length} solvers`)}}),()=>{i=!0,o.map(s=>s.disconnect())}},[t,n,e,r]),C.jsx(C.Fragment,{})}const R7e=e=>t=>({...t,source:e});function I7e(){const[e]=Ig(),[,t]=KE(),n=Op("features");return kee(r=>n(async()=>{const i={algorithms:[],formats:te.keys(Gz).map(o=>({id:o,source:"internal"})),maps:[]};for(const{call:o,url:s}of e)for(const l of["algorithms","formats","maps"])i[l]=te.uniqBy([...i[l],...te.map(await o(`features/${l}`),R7e(s))],"id");r.aborted||t(()=>i)}),[e,t]),C.jsx(C.Fragment,{})}function P7e(){const[{layers:e},t]=Pp();return I.useMemo(()=>te.map(e,n=>{const r=Kee(n).service;if(r)return I.createElement(r,{key:n.key,value:n,onChange:i=>t(({layers:o})=>({layers:te.map(o,s=>s.key===n.key?i(s):s)}))})}),[e,t])}function O7e(){const e=P7e();return C.jsx(C.Fragment,{children:e})}function lie({slices:e,children:t,services:n}){return C.jsx(C.Fragment,{children:te.reduce(te.map(e,r=>I.createElement(r)),(r,i)=>I.cloneElement(i,{},r),C.jsxs(C.Fragment,{children:[t,te.map(n,(r,i)=>I.createElement(r,{key:i}))]}))})}const M7e=()=>{const{save:e,load:t}=e6(),[n,r]=I.useState(!1);return I.useEffect(()=>{if("windowControlsOverlay"in navigator){const i=()=>{r(!!navigator.windowControlsOverlay.visible)};return navigator.windowControlsOverlay.addEventListener("geometrychange",i),i(),()=>navigator.windowControlsOverlay.removeEventListener("geometrychange",i)}},[r]),C.jsx(lt,{sx:{mt:-.5,minHeight:36,height:n?"env(titlebar-area-height, 50px)":0,width:"env(titlebar-area-width, 100%)",WebkitAppRegion:"drag",overflowX:"auto"},children:C.jsx(Zg,{x:!0,style:{height:"100%"},children:C.jsx(lt,{sx:{height:"100%"},children:C.jsxs(Od,{direction:"row",spacing:1,sx:{height:"100%"},alignItems:"center",children:[C.jsx(lt,{sx:{p:1,height:"100%"},children:C.jsx("img",{src:UQ,style:{height:"100%"}})}),[{key:"workspace",items:[{name:"Open workspace",key:"workspace-load",action:t},{name:"Save workspace",key:"workspace-save",action:e},{name:"Save workspace (JSON)",key:"workspace-save",action:()=>e(!0)}]},{key:"help",items:[{name:"Open repository in GitHub",key:"github",action:()=>open(a_e,"_blank")},{name:"Open changelog",key:"changelog",action:()=>open(`${l_e}/changelog-${o_e}.md`,"_blank")}]}].map(({key:i,items:o})=>C.jsx(Ip,{variant:"popover",children:s=>C.jsxs(C.Fragment,{children:[C.jsx(Rp,{...ow(s),children:C.jsx(nk,{dense:!0,sx:{p:0},children:o.map(({name:l,key:c,action:d})=>C.jsx(hu,{onClick:()=>{d==null||d(),s.close()},children:l},c))})}),C.jsx(Dd,{...hk(s),sx:{WebkitAppRegion:"no-drag",minWidth:"fit-content",p:.5,px:1},children:te.startCase(i)})]})},i)),C.jsx(lt,{sx:{p:.75,height:"100%"},children:C.jsx(D7e,{})})]})})})})};function D7e(){const e=ml();return C.jsxs(Ru,{onClick:()=>e("Commands are not yet implemented"),sx:{WebkitAppRegion:"no-drag",fontSize:14,borderRadius:t=>t.shape.borderRadius,"&:hover":{bgcolor:"background.paper"},height:"100%",m:0,display:"flex",alignItems:"center",px:1,pr:2,gap:t=>t.spacing(1),color:"text.secondary",cursor:"text"},children:[C.jsx(yxe,{fontSize:"small",color:"disabled"})," ",C.jsx(Lt,{sx:{mt:0},children:"Commands"})]})}const L7e=[A7e,I7e,oWe,O7e];function N7e(){const t=Pn().palette.background.default;return C7e(t),C.jsxs(gn,{vertical:!0,sx:{bgcolor:t,p:.5,color:"text.primary"},children:[C.jsx(M7e,{}),C.jsx(S7e,{flex:1})]})}function B7e(){const[{theme:e="light",accentColor:t="teal"}]=Mu(),n=I.useMemo(()=>r_e(e,t),[e,t]);return C.jsx($le,{theme:n,children:C.jsx(e1e,{children:C.jsx(lie,{services:L7e,children:C.jsx(N7e,{})})})})}var cie,rq=Yg;cie=rq.createRoot,rq.hydrateRoot;const $7e=cie(document.getElementById("root")),F7e=[UPe,e_e,fRe,hRe,OSe,pRe,MNe,Zxe,v7e,iRe];$7e.render(C.jsx(Dme,{children:C.jsx(lie,{slices:F7e,children:C.jsx(B7e,{})})})); diff --git a/assets/jps-vs-jps-prune2-abd9339d.workspace b/assets/jps-vs-jps-prune2-abd9339d.workspace new file mode 100644 index 00000000..702c7dac Binary files /dev/null and b/assets/jps-vs-jps-prune2-abd9339d.workspace differ diff --git a/assets/jps-vs-jps-prune2-defbda61.js b/assets/jps-vs-jps-prune2-defbda61.js new file mode 100644 index 00000000..2cf05779 --- /dev/null +++ b/assets/jps-vs-jps-prune2-defbda61.js @@ -0,0 +1 @@ +const s=""+new URL("jps-vs-jps-prune2-abd9339d.workspace",import.meta.url).href;export{s as default}; diff --git a/assets/lacam-random-32-32-20-2163bf6f.js b/assets/lacam-random-32-32-20-2163bf6f.js new file mode 100644 index 00000000..379be5cd --- /dev/null +++ b/assets/lacam-random-32-32-20-2163bf6f.js @@ -0,0 +1 @@ +const a=""+new URL("lacam-random-32-32-20-ebc2fe0e.workspace",import.meta.url).href;export{a as default}; diff --git a/assets/lacam-random-32-32-20-ebc2fe0e.workspace b/assets/lacam-random-32-32-20-ebc2fe0e.workspace new file mode 100644 index 00000000..198036b1 Binary files /dev/null and b/assets/lacam-random-32-32-20-ebc2fe0e.workspace differ diff --git a/assets/mapf-large-6fbf5547.workspace b/assets/mapf-large-6fbf5547.workspace new file mode 100644 index 00000000..7810b0f4 Binary files /dev/null and b/assets/mapf-large-6fbf5547.workspace differ diff --git a/assets/mapf-large-867abdea.js b/assets/mapf-large-867abdea.js new file mode 100644 index 00000000..f61b7848 --- /dev/null +++ b/assets/mapf-large-867abdea.js @@ -0,0 +1 @@ +const a=""+new URL("mapf-large-6fbf5547.workspace",import.meta.url).href;export{a as default}; diff --git a/assets/mapf-sortation-36b460a3.workspace b/assets/mapf-sortation-36b460a3.workspace new file mode 100644 index 00000000..e4f794e5 Binary files /dev/null and b/assets/mapf-sortation-36b460a3.workspace differ diff --git a/assets/mapf-sortation-4ea4dd13.js b/assets/mapf-sortation-4ea4dd13.js new file mode 100644 index 00000000..af6e50f5 --- /dev/null +++ b/assets/mapf-sortation-4ea4dd13.js @@ -0,0 +1 @@ +const a=""+new URL("mapf-sortation-36b460a3.workspace",import.meta.url).href;export{a as default}; diff --git a/assets/melbourne-routing-b5c14300.js b/assets/melbourne-routing-b5c14300.js new file mode 100644 index 00000000..8a831130 --- /dev/null +++ b/assets/melbourne-routing-b5c14300.js @@ -0,0 +1 @@ +const e=""+new URL("melbourne-routing-f36e5c79.workspace",import.meta.url).href;export{e as default}; diff --git a/assets/melbourne-routing-f36e5c79.workspace b/assets/melbourne-routing-f36e5c79.workspace new file mode 100644 index 00000000..2544ce2d Binary files /dev/null and b/assets/melbourne-routing-f36e5c79.workspace differ diff --git a/assets/new-york-astar-03f71297.js b/assets/new-york-astar-03f71297.js new file mode 100644 index 00000000..bcfbd513 --- /dev/null +++ b/assets/new-york-astar-03f71297.js @@ -0,0 +1 @@ +const r=""+new URL("new-york-astar-884b232b.workspace",import.meta.url).href;export{r as default}; diff --git a/assets/new-york-astar-884b232b.workspace b/assets/new-york-astar-884b232b.workspace new file mode 100644 index 00000000..67052645 Binary files /dev/null and b/assets/new-york-astar-884b232b.workspace differ diff --git a/assets/nine-tile-61e0ba80.workspace b/assets/nine-tile-61e0ba80.workspace new file mode 100644 index 00000000..8e850ed5 Binary files /dev/null and b/assets/nine-tile-61e0ba80.workspace differ diff --git a/assets/nine-tile-6376158b.js b/assets/nine-tile-6376158b.js new file mode 100644 index 00000000..77aa13f4 --- /dev/null +++ b/assets/nine-tile-6376158b.js @@ -0,0 +1 @@ +const e=""+new URL("nine-tile-61e0ba80.workspace",import.meta.url).href;export{e as default}; diff --git a/assets/rayscan-arena2-402c92de.workspace b/assets/rayscan-arena2-402c92de.workspace new file mode 100644 index 00000000..11f38e35 Binary files /dev/null and b/assets/rayscan-arena2-402c92de.workspace differ diff --git a/assets/rayscan-arena2-f6f7b81d.js b/assets/rayscan-arena2-f6f7b81d.js new file mode 100644 index 00000000..689e9923 --- /dev/null +++ b/assets/rayscan-arena2-f6f7b81d.js @@ -0,0 +1 @@ +const a=""+new URL("rayscan-arena2-402c92de.workspace",import.meta.url).href;export{a as default}; diff --git a/index.html b/index.html index 02e8830f..06b7d6e8 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ - + diff --git a/recipes/astar-jps-small-maze.workspace b/recipes/astar-jps-small-maze.workspace new file mode 100644 index 00000000..ed940cb1 Binary files /dev/null and b/recipes/astar-jps-small-maze.workspace differ diff --git a/recipes/aurora-polyanya.workspace b/recipes/aurora-polyanya.workspace new file mode 100644 index 00000000..d01fb4ac Binary files /dev/null and b/recipes/aurora-polyanya.workspace differ diff --git a/recipes/dynamic-starcraft.workspace b/recipes/dynamic-starcraft.workspace new file mode 100644 index 00000000..ffd615f9 Binary files /dev/null and b/recipes/dynamic-starcraft.workspace differ diff --git a/recipes/frozen-sea-astar.workspace b/recipes/frozen-sea-astar.workspace new file mode 100644 index 00000000..359d685c Binary files /dev/null and b/recipes/frozen-sea-astar.workspace differ diff --git a/recipes/jps-vs-jps-prune2.workspace b/recipes/jps-vs-jps-prune2.workspace new file mode 100644 index 00000000..702c7dac Binary files /dev/null and b/recipes/jps-vs-jps-prune2.workspace differ diff --git a/recipes/lacam-random-32-32-20.workspace b/recipes/lacam-random-32-32-20.workspace new file mode 100644 index 00000000..198036b1 Binary files /dev/null and b/recipes/lacam-random-32-32-20.workspace differ diff --git a/recipes/mapf-large.workspace b/recipes/mapf-large.workspace new file mode 100644 index 00000000..7810b0f4 Binary files /dev/null and b/recipes/mapf-large.workspace differ diff --git a/recipes/mapf-sortation.workspace b/recipes/mapf-sortation.workspace new file mode 100644 index 00000000..e4f794e5 Binary files /dev/null and b/recipes/mapf-sortation.workspace differ diff --git a/recipes/melbourne-routing.workspace b/recipes/melbourne-routing.workspace new file mode 100644 index 00000000..2544ce2d Binary files /dev/null and b/recipes/melbourne-routing.workspace differ diff --git a/recipes/new-york-astar.workspace b/recipes/new-york-astar.workspace new file mode 100644 index 00000000..67052645 Binary files /dev/null and b/recipes/new-york-astar.workspace differ diff --git a/recipes/nine-tile.workspace b/recipes/nine-tile.workspace new file mode 100644 index 00000000..8e850ed5 Binary files /dev/null and b/recipes/nine-tile.workspace differ diff --git a/recipes/rayscan-arena2.workspace b/recipes/rayscan-arena2.workspace new file mode 100644 index 00000000..11f38e35 Binary files /dev/null and b/recipes/rayscan-arena2.workspace differ