@deephaven/embed-chart 0.47.0 → 0.47.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,49 +1,49 @@
1
- import{g as mi,c as Jt,a as Rl}from"./helpers-042e6b4d.js";var Gk={exports:{}},Hd={};/*
1
+ import{g as mi,c as Jt,a as Rl}from"./helpers-042e6b4d.js";var UM={exports:{}},Wd={};/*
2
2
  object-assign
3
3
  (c) Sindre Sorhus
4
4
  @license MIT
5
- */var zE=Object.getOwnPropertySymbols,k6=Object.prototype.hasOwnProperty,M6=Object.prototype.propertyIsEnumerable;function R6(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function P6(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Pl=P6()?Object.assign:function(e,t){for(var r,n=R6(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r)k6.call(r,o)&&(n[o]=r[o]);if(zE){i=zE(r);for(var l=0;l<i.length;l++)M6.call(r,i[l])&&(n[i[l]]=r[i[l]])}}return n},Wk={exports:{}},yr={};/** @license React v17.0.2
5
+ */var BE=Object.getOwnPropertySymbols,T6=Object.prototype.hasOwnProperty,O6=Object.prototype.propertyIsEnumerable;function M6(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function k6(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(n.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(a){i[a]=a}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Pl=k6()?Object.assign:function(e,t){for(var r,n=M6(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r)T6.call(r,o)&&(n[o]=r[o]);if(BE){i=BE(r);for(var l=0;l<i.length;l++)O6.call(r,i[l])&&(n[i[l]]=r[i[l]])}}return n},jM={exports:{}},yr={};/** @license React v17.0.2
6
6
  * react.production.min.js
7
7
  *
8
8
  * Copyright (c) Facebook, Inc. and its affiliates.
9
9
  *
10
10
  * This source code is licensed under the MIT license found in the
11
11
  * LICENSE file in the root directory of this source tree.
12
- */var y2=Pl,Df=60103,Hk=60106;yr.Fragment=60107;yr.StrictMode=60108;yr.Profiler=60114;var qk=60109,Vk=60110,Yk=60112;yr.Suspense=60113;var Xk=60115,Kk=60116;if(typeof Symbol=="function"&&Symbol.for){var qi=Symbol.for;Df=qi("react.element"),Hk=qi("react.portal"),yr.Fragment=qi("react.fragment"),yr.StrictMode=qi("react.strict_mode"),yr.Profiler=qi("react.profiler"),qk=qi("react.provider"),Vk=qi("react.context"),Yk=qi("react.forward_ref"),yr.Suspense=qi("react.suspense"),Xk=qi("react.memo"),Kk=qi("react.lazy")}var UE=typeof Symbol=="function"&&Symbol.iterator;function I6(e){return e===null||typeof e!="object"?null:(e=UE&&e[UE]||e["@@iterator"],typeof e=="function"?e:null)}function qd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Qk={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zk={};function $f(e,t,r){this.props=e,this.context=t,this.refs=Zk,this.updater=r||Qk}$f.prototype.isReactComponent={};$f.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(qd(85));this.updater.enqueueSetState(this,e,t,"setState")};$f.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Jk(){}Jk.prototype=$f.prototype;function b2(e,t,r){this.props=e,this.context=t,this.refs=Zk,this.updater=r||Qk}var x2=b2.prototype=new Jk;x2.constructor=b2;y2(x2,$f.prototype);x2.isPureReactComponent=!0;var w2={current:null},eM=Object.prototype.hasOwnProperty,tM={key:!0,ref:!0,__self:!0,__source:!0};function rM(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)eM.call(t,n)&&!tM.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){for(var s=Array(l),f=0;f<l;f++)s[f]=arguments[f+2];i.children=s}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)i[n]===void 0&&(i[n]=l[n]);return{$$typeof:Df,type:e,key:a,ref:o,props:i,_owner:w2.current}}function F6(e,t){return{$$typeof:Df,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function _2(e){return typeof e=="object"&&e!==null&&e.$$typeof===Df}function N6(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var jE=/\/+/g;function i1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?N6(""+e.key):t.toString(36)}function N0(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Df:case Hk:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+i1(o,0):n,Array.isArray(i)?(r="",e!=null&&(r=e.replace(jE,"$&/")+"/"),N0(i,t,r,"",function(f){return f})):i!=null&&(_2(i)&&(i=F6(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(jE,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",Array.isArray(e))for(var l=0;l<e.length;l++){a=e[l];var s=n+i1(a,l);o+=N0(a,t,r,s,i)}else if(s=I6(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=n+i1(a,l++),o+=N0(a,t,r,s,i);else if(a==="object")throw t=""+e,Error(qd(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return o}function Dv(e,t,r){if(e==null)return e;var n=[],i=0;return N0(e,n,"","",function(a){return t.call(r,a,i++)}),n}function L6(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(r){e._status===0&&(r=r.default,e._status=1,e._result=r)},function(r){e._status===0&&(e._status=2,e._result=r)})}if(e._status===1)return e._result;throw e._result}var nM={current:null};function ao(){var e=nM.current;if(e===null)throw Error(qd(321));return e}var D6={ReactCurrentDispatcher:nM,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w2,IsSomeRendererActing:{current:!1},assign:y2};yr.Children={map:Dv,forEach:function(e,t,r){Dv(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Dv(e,function(){t++}),t},toArray:function(e){return Dv(e,function(t){return t})||[]},only:function(e){if(!_2(e))throw Error(qd(143));return e}};yr.Component=$f;yr.PureComponent=b2;yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D6;yr.cloneElement=function(e,t,r){if(e==null)throw Error(qd(267,e));var n=y2({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=w2.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)eM.call(t,s)&&!tM.hasOwnProperty(s)&&(n[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){l=Array(s);for(var f=0;f<s;f++)l[f]=arguments[f+2];n.children=l}return{$$typeof:Df,type:e.type,key:i,ref:a,props:n,_owner:o}};yr.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Vk,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:qk,_context:e},e.Consumer=e};yr.createElement=rM;yr.createFactory=function(e){var t=rM.bind(null,e);return t.type=e,t};yr.createRef=function(){return{current:null}};yr.forwardRef=function(e){return{$$typeof:Yk,render:e}};yr.isValidElement=_2;yr.lazy=function(e){return{$$typeof:Kk,_payload:{_status:-1,_result:e},_init:L6}};yr.memo=function(e,t){return{$$typeof:Xk,type:e,compare:t===void 0?null:t}};yr.useCallback=function(e,t){return ao().useCallback(e,t)};yr.useContext=function(e,t){return ao().useContext(e,t)};yr.useDebugValue=function(){};yr.useEffect=function(e,t){return ao().useEffect(e,t)};yr.useImperativeHandle=function(e,t,r){return ao().useImperativeHandle(e,t,r)};yr.useLayoutEffect=function(e,t){return ao().useLayoutEffect(e,t)};yr.useMemo=function(e,t){return ao().useMemo(e,t)};yr.useReducer=function(e,t,r){return ao().useReducer(e,t,r)};yr.useRef=function(e){return ao().useRef(e)};yr.useState=function(e){return ao().useState(e)};yr.version="17.0.2";Wk.exports=yr;var zt=Wk.exports;const wr=mi(zt);/** @license React v17.0.2
12
+ */var g2=Pl,Df=60103,GM=60106;yr.Fragment=60107;yr.StrictMode=60108;yr.Profiler=60114;var WM=60109,HM=60110,qM=60112;yr.Suspense=60113;var VM=60115,YM=60116;if(typeof Symbol=="function"&&Symbol.for){var qi=Symbol.for;Df=qi("react.element"),GM=qi("react.portal"),yr.Fragment=qi("react.fragment"),yr.StrictMode=qi("react.strict_mode"),yr.Profiler=qi("react.profiler"),WM=qi("react.provider"),HM=qi("react.context"),qM=qi("react.forward_ref"),yr.Suspense=qi("react.suspense"),VM=qi("react.memo"),YM=qi("react.lazy")}var zE=typeof Symbol=="function"&&Symbol.iterator;function R6(e){return e===null||typeof e!="object"?null:(e=zE&&e[zE]||e["@@iterator"],typeof e=="function"?e:null)}function Hd(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var XM={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},KM={};function $f(e,t,r){this.props=e,this.context=t,this.refs=KM,this.updater=r||XM}$f.prototype.isReactComponent={};$f.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(Hd(85));this.updater.enqueueSetState(this,e,t,"setState")};$f.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function QM(){}QM.prototype=$f.prototype;function y2(e,t,r){this.props=e,this.context=t,this.refs=KM,this.updater=r||XM}var b2=y2.prototype=new QM;b2.constructor=y2;g2(b2,$f.prototype);b2.isPureReactComponent=!0;var x2={current:null},ZM=Object.prototype.hasOwnProperty,JM={key:!0,ref:!0,__self:!0,__source:!0};function ek(e,t,r){var n,i={},a=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)ZM.call(t,n)&&!JM.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){for(var s=Array(l),f=0;f<l;f++)s[f]=arguments[f+2];i.children=s}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)i[n]===void 0&&(i[n]=l[n]);return{$$typeof:Df,type:e,key:a,ref:o,props:i,_owner:x2.current}}function P6(e,t){return{$$typeof:Df,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function w2(e){return typeof e=="object"&&e!==null&&e.$$typeof===Df}function I6(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var UE=/\/+/g;function n1(e,t){return typeof e=="object"&&e!==null&&e.key!=null?I6(""+e.key):t.toString(36)}function F0(e,t,r,n,i){var a=typeof e;(a==="undefined"||a==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Df:case GM:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+n1(o,0):n,Array.isArray(i)?(r="",e!=null&&(r=e.replace(UE,"$&/")+"/"),F0(i,t,r,"",function(f){return f})):i!=null&&(w2(i)&&(i=P6(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(UE,"$&/")+"/")+e)),t.push(i)),1;if(o=0,n=n===""?".":n+":",Array.isArray(e))for(var l=0;l<e.length;l++){a=e[l];var s=n+n1(a,l);o+=F0(a,t,r,s,i)}else if(s=R6(e),typeof s=="function")for(e=s.call(e),l=0;!(a=e.next()).done;)a=a.value,s=n+n1(a,l++),o+=F0(a,t,r,s,i);else if(a==="object")throw t=""+e,Error(Hd(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return o}function Lv(e,t,r){if(e==null)return e;var n=[],i=0;return F0(e,n,"","",function(a){return t.call(r,a,i++)}),n}function F6(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(r){e._status===0&&(r=r.default,e._status=1,e._result=r)},function(r){e._status===0&&(e._status=2,e._result=r)})}if(e._status===1)return e._result;throw e._result}var tk={current:null};function ao(){var e=tk.current;if(e===null)throw Error(Hd(321));return e}var N6={ReactCurrentDispatcher:tk,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:x2,IsSomeRendererActing:{current:!1},assign:g2};yr.Children={map:Lv,forEach:function(e,t,r){Lv(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Lv(e,function(){t++}),t},toArray:function(e){return Lv(e,function(t){return t})||[]},only:function(e){if(!w2(e))throw Error(Hd(143));return e}};yr.Component=$f;yr.PureComponent=y2;yr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N6;yr.cloneElement=function(e,t,r){if(e==null)throw Error(Hd(267,e));var n=g2({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=x2.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)ZM.call(t,s)&&!JM.hasOwnProperty(s)&&(n[s]=t[s]===void 0&&l!==void 0?l[s]:t[s])}var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){l=Array(s);for(var f=0;f<s;f++)l[f]=arguments[f+2];n.children=l}return{$$typeof:Df,type:e.type,key:i,ref:a,props:n,_owner:o}};yr.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:HM,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:WM,_context:e},e.Consumer=e};yr.createElement=ek;yr.createFactory=function(e){var t=ek.bind(null,e);return t.type=e,t};yr.createRef=function(){return{current:null}};yr.forwardRef=function(e){return{$$typeof:qM,render:e}};yr.isValidElement=w2;yr.lazy=function(e){return{$$typeof:YM,_payload:{_status:-1,_result:e},_init:F6}};yr.memo=function(e,t){return{$$typeof:VM,type:e,compare:t===void 0?null:t}};yr.useCallback=function(e,t){return ao().useCallback(e,t)};yr.useContext=function(e,t){return ao().useContext(e,t)};yr.useDebugValue=function(){};yr.useEffect=function(e,t){return ao().useEffect(e,t)};yr.useImperativeHandle=function(e,t,r){return ao().useImperativeHandle(e,t,r)};yr.useLayoutEffect=function(e,t){return ao().useLayoutEffect(e,t)};yr.useMemo=function(e,t){return ao().useMemo(e,t)};yr.useReducer=function(e,t,r){return ao().useReducer(e,t,r)};yr.useRef=function(e){return ao().useRef(e)};yr.useState=function(e){return ao().useState(e)};yr.version="17.0.2";jM.exports=yr;var Gt=jM.exports;const wr=mi(Gt);/** @license React v17.0.2
13
13
  * react-jsx-runtime.production.min.js
14
14
  *
15
15
  * Copyright (c) Facebook, Inc. and its affiliates.
16
16
  *
17
17
  * This source code is licensed under the MIT license found in the
18
18
  * LICENSE file in the root directory of this source tree.
19
- */var $6=zt,iM=60103;Hd.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var GE=Symbol.for;iM=GE("react.element"),Hd.Fragment=GE("react.fragment")}var B6=$6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,z6=Object.prototype.hasOwnProperty,U6={key:!0,ref:!0,__self:!0,__source:!0};function aM(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)z6.call(t,n)&&!U6.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:iM,type:e,key:a,ref:o,props:i,_owner:B6.current}}Hd.jsx=aM;Hd.jsxs=aM;Gk.exports=Hd;var Vie=Gk.exports,oM={exports:{}},Ni={},uM={exports:{}},lM={};/** @license React v0.20.2
19
+ */var L6=Gt,rk=60103;Wd.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var jE=Symbol.for;rk=jE("react.element"),Wd.Fragment=jE("react.fragment")}var D6=L6.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$6=Object.prototype.hasOwnProperty,B6={key:!0,ref:!0,__self:!0,__source:!0};function nk(e,t,r){var n,i={},a=null,o=null;r!==void 0&&(a=""+r),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(o=t.ref);for(n in t)$6.call(t,n)&&!B6.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:rk,type:e,key:a,ref:o,props:i,_owner:D6.current}}Wd.jsx=nk;Wd.jsxs=nk;UM.exports=Wd;var Wie=UM.exports,ik={exports:{}},Ni={},ak={exports:{}},ok={};/** @license React v0.20.2
20
20
  * scheduler.production.min.js
21
21
  *
22
22
  * Copyright (c) Facebook, Inc. and its affiliates.
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */(function(e){var t,r,n,i;if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var s=null,f=null,d=function(){if(s!==null)try{var we=e.unstable_now();s(!0,we),s=null}catch(qe){throw setTimeout(d,0),qe}};t=function(we){s!==null?setTimeout(t,0,we):(s=we,setTimeout(d,0))},r=function(we,qe){f=setTimeout(we,qe)},n=function(){clearTimeout(f)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var g=window.setTimeout,v=window.clearTimeout;if(typeof console<"u"){var y=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof y!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var E=!1,k=null,x=-1,w=5,_=0;e.unstable_shouldYield=function(){return e.unstable_now()>=_},i=function(){},e.unstable_forceFrameRate=function(we){0>we||125<we?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<we?Math.floor(1e3/we):5};var C=new MessageChannel,T=C.port2;C.port1.onmessage=function(){if(k!==null){var we=e.unstable_now();_=we+w;try{k(!0,we)?T.postMessage(null):(E=!1,k=null)}catch(qe){throw T.postMessage(null),qe}}else E=!1},t=function(we){k=we,E||(E=!0,T.postMessage(null))},r=function(we,qe){x=g(function(){we(e.unstable_now())},qe)},n=function(){v(x),x=-1}}function F(we,qe){var st=we.length;we.push(qe);e:for(;;){var Ke=st-1>>>1,ct=we[Ke];if(ct!==void 0&&0<j(ct,qe))we[Ke]=qe,we[st]=ct,st=Ke;else break e}}function L(we){return we=we[0],we===void 0?null:we}function V(we){var qe=we[0];if(qe!==void 0){var st=we.pop();if(st!==qe){we[0]=st;e:for(var Ke=0,ct=we.length;Ke<ct;){var yt=2*(Ke+1)-1,qt=we[yt],Yt=yt+1,Qe=we[Yt];if(qt!==void 0&&0>j(qt,st))Qe!==void 0&&0>j(Qe,qt)?(we[Ke]=Qe,we[Yt]=st,Ke=Yt):(we[Ke]=qt,we[yt]=st,Ke=yt);else if(Qe!==void 0&&0>j(Qe,st))we[Ke]=Qe,we[Yt]=st,Ke=Yt;else break e}}return qe}return null}function j(we,qe){var st=we.sortIndex-qe.sortIndex;return st!==0?st:we.id-qe.id}var te=[],ge=[],me=1,ke=null,Fe=3,Le=!1,ut=!1,nt=!1;function De(we){for(var qe=L(ge);qe!==null;){if(qe.callback===null)V(ge);else if(qe.startTime<=we)V(ge),qe.sortIndex=qe.expirationTime,F(te,qe);else break;qe=L(ge)}}function We(we){if(nt=!1,De(we),!ut)if(L(te)!==null)ut=!0,t(_t);else{var qe=L(ge);qe!==null&&r(We,qe.startTime-we)}}function _t(we,qe){ut=!1,nt&&(nt=!1,n()),Le=!0;var st=Fe;try{for(De(qe),ke=L(te);ke!==null&&(!(ke.expirationTime>qe)||we&&!e.unstable_shouldYield());){var Ke=ke.callback;if(typeof Ke=="function"){ke.callback=null,Fe=ke.priorityLevel;var ct=Ke(ke.expirationTime<=qe);qe=e.unstable_now(),typeof ct=="function"?ke.callback=ct:ke===L(te)&&V(te),De(qe)}else V(te);ke=L(te)}if(ke!==null)var yt=!0;else{var qt=L(ge);qt!==null&&r(We,qt.startTime-qe),yt=!1}return yt}finally{ke=null,Fe=st,Le=!1}}var He=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(we){we.callback=null},e.unstable_continueExecution=function(){ut||Le||(ut=!0,t(_t))},e.unstable_getCurrentPriorityLevel=function(){return Fe},e.unstable_getFirstCallbackNode=function(){return L(te)},e.unstable_next=function(we){switch(Fe){case 1:case 2:case 3:var qe=3;break;default:qe=Fe}var st=Fe;Fe=qe;try{return we()}finally{Fe=st}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=He,e.unstable_runWithPriority=function(we,qe){switch(we){case 1:case 2:case 3:case 4:case 5:break;default:we=3}var st=Fe;Fe=we;try{return qe()}finally{Fe=st}},e.unstable_scheduleCallback=function(we,qe,st){var Ke=e.unstable_now();switch(typeof st=="object"&&st!==null?(st=st.delay,st=typeof st=="number"&&0<st?Ke+st:Ke):st=Ke,we){case 1:var ct=-1;break;case 2:ct=250;break;case 5:ct=1073741823;break;case 4:ct=1e4;break;default:ct=5e3}return ct=st+ct,we={id:me++,callback:qe,priorityLevel:we,startTime:st,expirationTime:ct,sortIndex:-1},st>Ke?(we.sortIndex=st,F(ge,we),L(te)===null&&we===L(ge)&&(nt?n():nt=!0,r(We,st-Ke))):(we.sortIndex=ct,F(te,we),ut||Le||(ut=!0,t(_t))),we},e.unstable_wrapCallback=function(we){var qe=Fe;return function(){var st=Fe;Fe=qe;try{return we.apply(this,arguments)}finally{Fe=st}}}})(lM);uM.exports=lM;var j6=uM.exports;/** @license React v17.0.2
26
+ */(function(e){var t,r,n,i;if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var s=null,f=null,d=function(){if(s!==null)try{var we=e.unstable_now();s(!0,we),s=null}catch(qe){throw setTimeout(d,0),qe}};t=function(we){s!==null?setTimeout(t,0,we):(s=we,setTimeout(d,0))},r=function(we,qe){f=setTimeout(we,qe)},n=function(){clearTimeout(f)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var g=window.setTimeout,v=window.clearTimeout;if(typeof console<"u"){var y=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof y!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var E=!1,M=null,x=-1,w=5,_=0;e.unstable_shouldYield=function(){return e.unstable_now()>=_},i=function(){},e.unstable_forceFrameRate=function(we){0>we||125<we?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):w=0<we?Math.floor(1e3/we):5};var T=new MessageChannel,C=T.port2;T.port1.onmessage=function(){if(M!==null){var we=e.unstable_now();_=we+w;try{M(!0,we)?C.postMessage(null):(E=!1,M=null)}catch(qe){throw C.postMessage(null),qe}}else E=!1},t=function(we){M=we,E||(E=!0,C.postMessage(null))},r=function(we,qe){x=g(function(){we(e.unstable_now())},qe)},n=function(){v(x),x=-1}}function F(we,qe){var st=we.length;we.push(qe);e:for(;;){var Ke=st-1>>>1,ct=we[Ke];if(ct!==void 0&&0<j(ct,qe))we[Ke]=qe,we[st]=ct,st=Ke;else break e}}function L(we){return we=we[0],we===void 0?null:we}function V(we){var qe=we[0];if(qe!==void 0){var st=we.pop();if(st!==qe){we[0]=st;e:for(var Ke=0,ct=we.length;Ke<ct;){var yt=2*(Ke+1)-1,qt=we[yt],Yt=yt+1,Qe=we[Yt];if(qt!==void 0&&0>j(qt,st))Qe!==void 0&&0>j(Qe,qt)?(we[Ke]=Qe,we[Yt]=st,Ke=Yt):(we[Ke]=qt,we[yt]=st,Ke=yt);else if(Qe!==void 0&&0>j(Qe,st))we[Ke]=Qe,we[Yt]=st,Ke=Yt;else break e}}return qe}return null}function j(we,qe){var st=we.sortIndex-qe.sortIndex;return st!==0?st:we.id-qe.id}var te=[],ge=[],me=1,Me=null,Fe=3,Le=!1,ut=!1,nt=!1;function De(we){for(var qe=L(ge);qe!==null;){if(qe.callback===null)V(ge);else if(qe.startTime<=we)V(ge),qe.sortIndex=qe.expirationTime,F(te,qe);else break;qe=L(ge)}}function We(we){if(nt=!1,De(we),!ut)if(L(te)!==null)ut=!0,t(_t);else{var qe=L(ge);qe!==null&&r(We,qe.startTime-we)}}function _t(we,qe){ut=!1,nt&&(nt=!1,n()),Le=!0;var st=Fe;try{for(De(qe),Me=L(te);Me!==null&&(!(Me.expirationTime>qe)||we&&!e.unstable_shouldYield());){var Ke=Me.callback;if(typeof Ke=="function"){Me.callback=null,Fe=Me.priorityLevel;var ct=Ke(Me.expirationTime<=qe);qe=e.unstable_now(),typeof ct=="function"?Me.callback=ct:Me===L(te)&&V(te),De(qe)}else V(te);Me=L(te)}if(Me!==null)var yt=!0;else{var qt=L(ge);qt!==null&&r(We,qt.startTime-qe),yt=!1}return yt}finally{Me=null,Fe=st,Le=!1}}var He=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(we){we.callback=null},e.unstable_continueExecution=function(){ut||Le||(ut=!0,t(_t))},e.unstable_getCurrentPriorityLevel=function(){return Fe},e.unstable_getFirstCallbackNode=function(){return L(te)},e.unstable_next=function(we){switch(Fe){case 1:case 2:case 3:var qe=3;break;default:qe=Fe}var st=Fe;Fe=qe;try{return we()}finally{Fe=st}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=He,e.unstable_runWithPriority=function(we,qe){switch(we){case 1:case 2:case 3:case 4:case 5:break;default:we=3}var st=Fe;Fe=we;try{return qe()}finally{Fe=st}},e.unstable_scheduleCallback=function(we,qe,st){var Ke=e.unstable_now();switch(typeof st=="object"&&st!==null?(st=st.delay,st=typeof st=="number"&&0<st?Ke+st:Ke):st=Ke,we){case 1:var ct=-1;break;case 2:ct=250;break;case 5:ct=1073741823;break;case 4:ct=1e4;break;default:ct=5e3}return ct=st+ct,we={id:me++,callback:qe,priorityLevel:we,startTime:st,expirationTime:ct,sortIndex:-1},st>Ke?(we.sortIndex=st,F(ge,we),L(te)===null&&we===L(ge)&&(nt?n():nt=!0,r(We,st-Ke))):(we.sortIndex=ct,F(te,we),ut||Le||(ut=!0,t(_t))),we},e.unstable_wrapCallback=function(we){var qe=Fe;return function(){var st=Fe;Fe=qe;try{return we.apply(this,arguments)}finally{Fe=st}}}})(ok);ak.exports=ok;var z6=ak.exports;/** @license React v17.0.2
27
27
  * react-dom.production.min.js
28
28
  *
29
29
  * Copyright (c) Facebook, Inc. and its affiliates.
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var sg=zt,Ur=Pl,wn=j6;function dt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!sg)throw Error(dt(227));var sM=new Set,dd={};function Il(e,t){bf(e,t),bf(e+"Capture",t)}function bf(e,t){for(dd[e]=t,e=0;e<t.length;e++)sM.add(t[e])}var eo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),G6=/^[: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]*$/,WE=Object.prototype.hasOwnProperty,HE={},qE={};function W6(e){return WE.call(qE,e)?!0:WE.call(HE,e)?!1:G6.test(e)?qE[e]=!0:(HE[e]=!0,!1)}function H6(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function q6(e,t,r,n){if(t===null||typeof t>"u"||H6(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 qn(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Rn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Rn[e]=new qn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Rn[t]=new qn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Rn[e]=new qn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Rn[e]=new qn(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){Rn[e]=new qn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Rn[e]=new qn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Rn[e]=new qn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Rn[e]=new qn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Rn[e]=new qn(e,5,!1,e.toLowerCase(),null,!1,!1)});var S2=/[\-:]([a-z])/g;function E2(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(S2,E2);Rn[t]=new qn(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(S2,E2);Rn[t]=new qn(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(S2,E2);Rn[t]=new qn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Rn[e]=new qn(e,1,!1,e.toLowerCase(),null,!1,!1)});Rn.xlinkHref=new qn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Rn[e]=new qn(e,1,!1,e.toLowerCase(),null,!0,!0)});function A2(e,t,r,n){var i=Rn.hasOwnProperty(t)?Rn[t]:null,a=i!==null?i.type===0:n?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");a||(q6(t,r,i,n)&&(r=null),n||i===null?W6(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Fl=sg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Fh=60103,ol=60106,Uo=60107,T2=60108,Hh=60114,C2=60109,O2=60110,fg=60112,qh=60113,am=60120,cg=60115,k2=60116,M2=60121,R2=60128,fM=60129,P2=60130,fw=60131;if(typeof Symbol=="function"&&Symbol.for){var mn=Symbol.for;Fh=mn("react.element"),ol=mn("react.portal"),Uo=mn("react.fragment"),T2=mn("react.strict_mode"),Hh=mn("react.profiler"),C2=mn("react.provider"),O2=mn("react.context"),fg=mn("react.forward_ref"),qh=mn("react.suspense"),am=mn("react.suspense_list"),cg=mn("react.memo"),k2=mn("react.lazy"),M2=mn("react.block"),mn("react.scope"),R2=mn("react.opaque.id"),fM=mn("react.debug_trace_mode"),P2=mn("react.offscreen"),fw=mn("react.legacy_hidden")}var VE=typeof Symbol=="function"&&Symbol.iterator;function oh(e){return e===null||typeof e!="object"?null:(e=VE&&e[VE]||e["@@iterator"],typeof e=="function"?e:null)}var a1;function Nh(e){if(a1===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);a1=t&&t[1]||""}return`
34
- `+a1+e}var o1=!1;function $v(e,t){if(!e||o1)return"";o1=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var n=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){n=s}e.call(t.prototype)}else{try{throw Error()}catch(s){n=s}e()}}catch(s){if(s&&n&&typeof s.stack=="string"){for(var i=s.stack.split(`
33
+ */var lg=Gt,Ur=Pl,wn=z6;function dt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!lg)throw Error(dt(227));var uk=new Set,hd={};function Il(e,t){bf(e,t),bf(e+"Capture",t)}function bf(e,t){for(hd[e]=t,e=0;e<t.length;e++)uk.add(t[e])}var eo=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),U6=/^[: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]*$/,GE=Object.prototype.hasOwnProperty,WE={},HE={};function j6(e){return GE.call(HE,e)?!0:GE.call(WE,e)?!1:U6.test(e)?HE[e]=!0:(WE[e]=!0,!1)}function G6(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function W6(e,t,r,n){if(t===null||typeof t>"u"||G6(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.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 qn(e,t,r,n,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var Rn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Rn[e]=new qn(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Rn[t]=new qn(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Rn[e]=new qn(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Rn[e]=new qn(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){Rn[e]=new qn(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Rn[e]=new qn(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Rn[e]=new qn(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Rn[e]=new qn(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Rn[e]=new qn(e,5,!1,e.toLowerCase(),null,!1,!1)});var _2=/[\-:]([a-z])/g;function S2(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(_2,S2);Rn[t]=new qn(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(_2,S2);Rn[t]=new qn(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(_2,S2);Rn[t]=new qn(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Rn[e]=new qn(e,1,!1,e.toLowerCase(),null,!1,!1)});Rn.xlinkHref=new qn("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Rn[e]=new qn(e,1,!1,e.toLowerCase(),null,!0,!0)});function E2(e,t,r,n){var i=Rn.hasOwnProperty(t)?Rn[t]:null,a=i!==null?i.type===0:n?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");a||(W6(t,r,i,n)&&(r=null),n||i===null?j6(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):i.mustUseProperty?e[i.propertyName]=r===null?i.type===3?!1:"":r:(t=i.attributeName,n=i.attributeNamespace,r===null?e.removeAttribute(t):(i=i.type,r=i===3||i===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Fl=lg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ih=60103,ol=60106,Uo=60107,A2=60108,Wh=60114,C2=60109,T2=60110,sg=60112,Hh=60113,im=60120,fg=60115,O2=60116,M2=60121,k2=60128,lk=60129,R2=60130,sw=60131;if(typeof Symbol=="function"&&Symbol.for){var mn=Symbol.for;Ih=mn("react.element"),ol=mn("react.portal"),Uo=mn("react.fragment"),A2=mn("react.strict_mode"),Wh=mn("react.profiler"),C2=mn("react.provider"),T2=mn("react.context"),sg=mn("react.forward_ref"),Hh=mn("react.suspense"),im=mn("react.suspense_list"),fg=mn("react.memo"),O2=mn("react.lazy"),M2=mn("react.block"),mn("react.scope"),k2=mn("react.opaque.id"),lk=mn("react.debug_trace_mode"),R2=mn("react.offscreen"),sw=mn("react.legacy_hidden")}var qE=typeof Symbol=="function"&&Symbol.iterator;function oh(e){return e===null||typeof e!="object"?null:(e=qE&&e[qE]||e["@@iterator"],typeof e=="function"?e:null)}var i1;function Fh(e){if(i1===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);i1=t&&t[1]||""}return`
34
+ `+i1+e}var a1=!1;function Dv(e,t){if(!e||a1)return"";a1=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var n=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){n=s}e.call(t.prototype)}else{try{throw Error()}catch(s){n=s}e()}}catch(s){if(s&&n&&typeof s.stack=="string"){for(var i=s.stack.split(`
35
35
  `),a=n.stack.split(`
36
36
  `),o=i.length-1,l=a.length-1;1<=o&&0<=l&&i[o]!==a[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==a[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==a[l])return`
37
- `+i[o].replace(" at new "," at ");while(1<=o&&0<=l);break}}}finally{o1=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Nh(e):""}function V6(e){switch(e.tag){case 5:return Nh(e.type);case 16:return Nh("Lazy");case 13:return Nh("Suspense");case 19:return Nh("SuspenseList");case 0:case 2:case 15:return e=$v(e.type,!1),e;case 11:return e=$v(e.type.render,!1),e;case 22:return e=$v(e.type._render,!1),e;case 1:return e=$v(e.type,!0),e;default:return""}}function rf(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 Uo:return"Fragment";case ol:return"Portal";case Hh:return"Profiler";case T2:return"StrictMode";case qh:return"Suspense";case am:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case O2:return(e.displayName||"Context")+".Consumer";case C2:return(e._context.displayName||"Context")+".Provider";case fg:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case cg:return rf(e.type);case M2:return rf(e._render);case k2:t=e._payload,e=e._init;try{return rf(e(t))}catch{}}return null}function iu(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function cM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Y6(e){var t=cM(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bv(e){e._valueTracker||(e._valueTracker=Y6(e))}function hM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=cM(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function om(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 cw(e,t){var r=t.checked;return Ur({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function YE(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=iu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function dM(e,t){t=t.checked,t!=null&&A2(e,"checked",t,!1)}function hw(e,t){dM(e,t);var r=iu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?dw(e,t.type,r):t.hasOwnProperty("defaultValue")&&dw(e,t.type,iu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function XE(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function dw(e,t,r){(t!=="number"||om(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function X6(e){var t="";return sg.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function pw(e,t){return e=Ur({children:void 0},t),(t=X6(t.children))&&(e.children=t),e}function nf(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+iu(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function vw(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(dt(91));return Ur({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function KE(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(dt(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(dt(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:iu(r)}}function pM(e,t){var r=iu(t.value),n=iu(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function QE(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var mw={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function vM(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function gw(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?vM(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var zv,mM=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==mw.svg||"innerHTML"in e)e.innerHTML=t;else{for(zv=zv||document.createElement("div"),zv.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=zv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function pd(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Vh={animationIterationCount:!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},K6=["Webkit","ms","Moz","O"];Object.keys(Vh).forEach(function(e){K6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Vh[t]=Vh[e]})});function gM(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Vh.hasOwnProperty(e)&&Vh[e]?(""+t).trim():t+"px"}function yM(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=gM(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Q6=Ur({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 yw(e,t){if(t){if(Q6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(dt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(dt(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(dt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(dt(62))}}function bw(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}}function I2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var xw=null,af=null,of=null;function ZE(e){if(e=Yd(e)){if(typeof xw!="function")throw Error(dt(280));var t=e.stateNode;t&&(t=gg(t),xw(e.stateNode,e.type,t))}}function bM(e){af?of?of.push(e):of=[e]:af=e}function xM(){if(af){var e=af,t=of;if(of=af=null,ZE(e),t)for(e=0;e<t.length;e++)ZE(t[e])}}function F2(e,t){return e(t)}function wM(e,t,r,n,i){return e(t,r,n,i)}function N2(){}var _M=F2,ul=!1,u1=!1;function L2(){(af!==null||of!==null)&&(N2(),xM())}function Z6(e,t,r){if(u1)return e(t,r);u1=!0;try{return _M(e,t,r)}finally{u1=!1,L2()}}function vd(e,t){var r=e.stateNode;if(r===null)return null;var n=gg(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(dt(231,t,typeof r));return r}var ww=!1;if(eo)try{var uh={};Object.defineProperty(uh,"passive",{get:function(){ww=!0}}),window.addEventListener("test",uh,uh),window.removeEventListener("test",uh,uh)}catch{ww=!1}function J6(e,t,r,n,i,a,o,l,s){var f=Array.prototype.slice.call(arguments,3);try{t.apply(r,f)}catch(d){this.onError(d)}}var Yh=!1,um=null,lm=!1,_w=null,e8={onError:function(e){Yh=!0,um=e}};function t8(e,t,r,n,i,a,o,l,s){Yh=!1,um=null,J6.apply(e8,arguments)}function r8(e,t,r,n,i,a,o,l,s){if(t8.apply(this,arguments),Yh){if(Yh){var f=um;Yh=!1,um=null}else throw Error(dt(198));lm||(lm=!0,_w=f)}}function Nl(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function SM(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function JE(e){if(Nl(e)!==e)throw Error(dt(188))}function n8(e){var t=e.alternate;if(!t){if(t=Nl(e),t===null)throw Error(dt(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return JE(i),e;if(a===n)return JE(i),t;a=a.sibling}throw Error(dt(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,l=i.child;l;){if(l===r){o=!0,r=i,n=a;break}if(l===n){o=!0,n=i,r=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===r){o=!0,r=a,n=i;break}if(l===n){o=!0,n=a,r=i;break}l=l.sibling}if(!o)throw Error(dt(189))}}if(r.alternate!==n)throw Error(dt(190))}if(r.tag!==3)throw Error(dt(188));return r.stateNode.current===r?e:t}function EM(e){if(e=n8(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function eA(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var AM,D2,TM,CM,Sw=!1,va=[],Xo=null,Ko=null,Qo=null,md=new Map,gd=new Map,lh=[],tA="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ew(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function rA(e,t){switch(e){case"focusin":case"focusout":Xo=null;break;case"dragenter":case"dragleave":Ko=null;break;case"mouseover":case"mouseout":Qo=null;break;case"pointerover":case"pointerout":md.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":gd.delete(t.pointerId)}}function sh(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e=Ew(t,r,n,i,a),t!==null&&(t=Yd(t),t!==null&&D2(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function i8(e,t,r,n,i){switch(t){case"focusin":return Xo=sh(Xo,e,t,r,n,i),!0;case"dragenter":return Ko=sh(Ko,e,t,r,n,i),!0;case"mouseover":return Qo=sh(Qo,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return md.set(a,sh(md.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,gd.set(a,sh(gd.get(a)||null,e,t,r,n,i)),!0}return!1}function a8(e){var t=ll(e.target);if(t!==null){var r=Nl(t);if(r!==null){if(t=r.tag,t===13){if(t=SM(r),t!==null){e.blockedOn=t,CM(e.lanePriority,function(){wn.unstable_runWithPriority(e.priority,function(){TM(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function L0(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=U2(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=Yd(r),t!==null&&D2(t),e.blockedOn=r,!1;t.shift()}return!0}function nA(e,t,r){L0(e)&&r.delete(t)}function o8(){for(Sw=!1;0<va.length;){var e=va[0];if(e.blockedOn!==null){e=Yd(e.blockedOn),e!==null&&AM(e);break}for(var t=e.targetContainers;0<t.length;){var r=U2(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&va.shift()}Xo!==null&&L0(Xo)&&(Xo=null),Ko!==null&&L0(Ko)&&(Ko=null),Qo!==null&&L0(Qo)&&(Qo=null),md.forEach(nA),gd.forEach(nA)}function fh(e,t){e.blockedOn===t&&(e.blockedOn=null,Sw||(Sw=!0,wn.unstable_scheduleCallback(wn.unstable_NormalPriority,o8)))}function OM(e){function t(i){return fh(i,e)}if(0<va.length){fh(va[0],e);for(var r=1;r<va.length;r++){var n=va[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Xo!==null&&fh(Xo,e),Ko!==null&&fh(Ko,e),Qo!==null&&fh(Qo,e),md.forEach(t),gd.forEach(t),r=0;r<lh.length;r++)n=lh[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<lh.length&&(r=lh[0],r.blockedOn===null);)a8(r),r.blockedOn===null&&lh.shift()}function Uv(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Hs={animationend:Uv("Animation","AnimationEnd"),animationiteration:Uv("Animation","AnimationIteration"),animationstart:Uv("Animation","AnimationStart"),transitionend:Uv("Transition","TransitionEnd")},l1={},kM={};eo&&(kM=document.createElement("div").style,"AnimationEvent"in window||(delete Hs.animationend.animation,delete Hs.animationiteration.animation,delete Hs.animationstart.animation),"TransitionEvent"in window||delete Hs.transitionend.transition);function hg(e){if(l1[e])return l1[e];if(!Hs[e])return e;var t=Hs[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in kM)return l1[e]=t[r];return e}var MM=hg("animationend"),RM=hg("animationiteration"),PM=hg("animationstart"),IM=hg("transitionend"),FM=new Map,$2=new Map,u8=["abort","abort",MM,"animationEnd",RM,"animationIteration",PM,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",IM,"transitionEnd","waiting","waiting"];function B2(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],i=e[r+1];i="on"+(i[0].toUpperCase()+i.slice(1)),$2.set(n,t),FM.set(n,i),Il(i,[n])}}var l8=wn.unstable_now;l8();var Fr=8;function zs(e){if(1&e)return Fr=15,1;if(2&e)return Fr=14,2;if(4&e)return Fr=13,4;var t=24&e;return t!==0?(Fr=12,t):e&32?(Fr=11,32):(t=192&e,t!==0?(Fr=10,t):e&256?(Fr=9,256):(t=3584&e,t!==0?(Fr=8,t):e&4096?(Fr=7,4096):(t=4186112&e,t!==0?(Fr=6,t):(t=62914560&e,t!==0?(Fr=5,t):e&67108864?(Fr=4,67108864):e&134217728?(Fr=3,134217728):(t=805306368&e,t!==0?(Fr=2,t):1073741824&e?(Fr=1,1073741824):(Fr=8,e))))))}function s8(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function f8(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(dt(358,e))}}function yd(e,t){var r=e.pendingLanes;if(r===0)return Fr=0;var n=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,l=e.pingedLanes;if(a!==0)n=a,i=Fr=15;else if(a=r&134217727,a!==0){var s=a&~o;s!==0?(n=zs(s),i=Fr):(l&=a,l!==0&&(n=zs(l),i=Fr))}else a=r&~o,a!==0?(n=zs(a),i=Fr):l!==0&&(n=zs(l),i=Fr);if(n===0)return 0;if(n=31-au(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&!(t&o)){if(zs(t),i<=Fr)return t;Fr=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-au(t),i=1<<r,n|=e[r],t&=~i;return n}function NM(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function sm(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=Us(24&~t),e===0?sm(10,t):e;case 10:return e=Us(192&~t),e===0?sm(8,t):e;case 8:return e=Us(3584&~t),e===0&&(e=Us(4186112&~t),e===0&&(e=512)),e;case 2:return t=Us(805306368&~t),t===0&&(t=268435456),t}throw Error(dt(358,e))}function Us(e){return e&-e}function s1(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function dg(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-au(t),e[t]=r}var au=Math.clz32?Math.clz32:d8,c8=Math.log,h8=Math.LN2;function d8(e){return e===0?32:31-(c8(e)/h8|0)|0}var p8=wn.unstable_UserBlockingPriority,v8=wn.unstable_runWithPriority,D0=!0;function m8(e,t,r,n){ul||N2();var i=z2,a=ul;ul=!0;try{wM(i,e,t,r,n)}finally{(ul=a)||L2()}}function g8(e,t,r,n){v8(p8,z2.bind(null,e,t,r,n))}function z2(e,t,r,n){if(D0){var i;if((i=(t&4)===0)&&0<va.length&&-1<tA.indexOf(e))e=Ew(null,e,t,r,n),va.push(e);else{var a=U2(e,t,r,n);if(a===null)i&&rA(e,n);else{if(i){if(-1<tA.indexOf(e)){e=Ew(a,e,t,r,n),va.push(e);return}if(i8(a,e,t,r,n))return;rA(e,n)}YM(e,t,n,null,r)}}}}function U2(e,t,r,n){var i=I2(n);if(i=ll(i),i!==null){var a=Nl(i);if(a===null)i=null;else{var o=a.tag;if(o===13){if(i=SM(a),i!==null)return i;i=null}else if(o===3){if(a.stateNode.hydrate)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return YM(e,t,n,i,r),null}var Go=null,j2=null,$0=null;function LM(){if($0)return $0;var e,t=j2,r=t.length,n,i="value"in Go?Go.value:Go.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return $0=i.slice(e,1<n?1-n:void 0)}function B0(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function jv(){return!0}function iA(){return!1}function gi(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?jv:iA,this.isPropagationStopped=iA,this}return Ur(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=jv)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=jv)},persist:function(){},isPersistent:jv}),t}var Bf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},G2=gi(Bf),Vd=Ur({},Bf,{view:0,detail:0}),y8=gi(Vd),f1,c1,ch,pg=Ur({},Vd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:W2,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ch&&(ch&&e.type==="mousemove"?(f1=e.screenX-ch.screenX,c1=e.screenY-ch.screenY):c1=f1=0,ch=e),f1)},movementY:function(e){return"movementY"in e?e.movementY:c1}}),aA=gi(pg),b8=Ur({},pg,{dataTransfer:0}),x8=gi(b8),w8=Ur({},Vd,{relatedTarget:0}),h1=gi(w8),_8=Ur({},Bf,{animationName:0,elapsedTime:0,pseudoElement:0}),S8=gi(_8),E8=Ur({},Bf,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),A8=gi(E8),T8=Ur({},Bf,{data:0}),oA=gi(T8),C8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},O8={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},k8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M8(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=k8[e])?!!t[e]:!1}function W2(){return M8}var R8=Ur({},Vd,{key:function(e){if(e.key){var t=C8[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=B0(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?O8[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:W2,charCode:function(e){return e.type==="keypress"?B0(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?B0(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),P8=gi(R8),I8=Ur({},pg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uA=gi(I8),F8=Ur({},Vd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:W2}),N8=gi(F8),L8=Ur({},Bf,{propertyName:0,elapsedTime:0,pseudoElement:0}),D8=gi(L8),$8=Ur({},pg,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),B8=gi($8),z8=[9,13,27,32],H2=eo&&"CompositionEvent"in window,Xh=null;eo&&"documentMode"in document&&(Xh=document.documentMode);var U8=eo&&"TextEvent"in window&&!Xh,DM=eo&&(!H2||Xh&&8<Xh&&11>=Xh),lA=String.fromCharCode(32),sA=!1;function $M(e,t){switch(e){case"keyup":return z8.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function BM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qs=!1;function j8(e,t){switch(e){case"compositionend":return BM(t);case"keypress":return t.which!==32?null:(sA=!0,lA);case"textInput":return e=t.data,e===lA&&sA?null:e;default:return null}}function G8(e,t){if(qs)return e==="compositionend"||!H2&&$M(e,t)?(e=LM(),$0=j2=Go=null,qs=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return DM&&t.locale!=="ko"?null:t.data;default:return null}}var W8={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function fA(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!W8[e.type]:t==="textarea"}function zM(e,t,r,n){bM(n),t=fm(t,"onChange"),0<t.length&&(r=new G2("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Kh=null,bd=null;function H8(e){HM(e,0)}function vg(e){var t=Ys(e);if(hM(t))return e}function q8(e,t){if(e==="change")return t}var UM=!1;if(eo){var d1;if(eo){var p1="oninput"in document;if(!p1){var cA=document.createElement("div");cA.setAttribute("oninput","return;"),p1=typeof cA.oninput=="function"}d1=p1}else d1=!1;UM=d1&&(!document.documentMode||9<document.documentMode)}function hA(){Kh&&(Kh.detachEvent("onpropertychange",jM),bd=Kh=null)}function jM(e){if(e.propertyName==="value"&&vg(bd)){var t=[];if(zM(t,bd,e,I2(e)),e=H8,ul)e(t);else{ul=!0;try{F2(e,t)}finally{ul=!1,L2()}}}}function V8(e,t,r){e==="focusin"?(hA(),Kh=t,bd=r,Kh.attachEvent("onpropertychange",jM)):e==="focusout"&&hA()}function Y8(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vg(bd)}function X8(e,t){if(e==="click")return vg(t)}function K8(e,t){if(e==="input"||e==="change")return vg(t)}function Q8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Oi=typeof Object.is=="function"?Object.is:Q8,Z8=Object.prototype.hasOwnProperty;function xd(e,t){if(Oi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!Z8.call(t,r[n])||!Oi(e[r[n]],t[r[n]]))return!1;return!0}function dA(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pA(e,t){var r=dA(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dA(r)}}function GM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?GM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function vA(){for(var e=window,t=om();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=om(e.document)}return t}function Aw(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")}var J8=eo&&"documentMode"in document&&11>=document.documentMode,Vs=null,Tw=null,Qh=null,Cw=!1;function mA(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Cw||Vs==null||Vs!==om(n)||(n=Vs,"selectionStart"in n&&Aw(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Qh&&xd(Qh,n)||(Qh=n,n=fm(Tw,"onSelect"),0<n.length&&(t=new G2("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Vs)))}B2("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);B2("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);B2(u8,2);for(var gA="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),v1=0;v1<gA.length;v1++)$2.set(gA[v1],0);bf("onMouseEnter",["mouseout","mouseover"]);bf("onMouseLeave",["mouseout","mouseover"]);bf("onPointerEnter",["pointerout","pointerover"]);bf("onPointerLeave",["pointerout","pointerover"]);Il("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Il("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Il("onBeforeInput",["compositionend","keypress","textInput","paste"]);Il("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Il("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Il("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),WM=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lh));function yA(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,r8(n,t,void 0,e),e.currentTarget=null}function HM(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var l=n[o],s=l.instance,f=l.currentTarget;if(l=l.listener,s!==a&&i.isPropagationStopped())break e;yA(i,l,f),a=s}else for(o=0;o<n.length;o++){if(l=n[o],s=l.instance,f=l.currentTarget,l=l.listener,s!==a&&i.isPropagationStopped())break e;yA(i,l,f),a=s}}}if(lm)throw e=_w,lm=!1,_w=null,e}function Nr(e,t){var r=KM(t),n=e+"__bubble";r.has(n)||(VM(t,e,2,!1),r.add(n))}var bA="_reactListening"+Math.random().toString(36).slice(2);function qM(e){e[bA]||(e[bA]=!0,sM.forEach(function(t){WM.has(t)||xA(t,!1,e,null),xA(t,!0,e,null)}))}function xA(e,t,r,n){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,a=r;if(e==="selectionchange"&&r.nodeType!==9&&(a=r.ownerDocument),n!==null&&!t&&WM.has(e)){if(e!=="scroll")return;i|=2,a=n}var o=KM(a),l=e+"__"+(t?"capture":"bubble");o.has(l)||(t&&(i|=4),VM(a,e,i,t),o.add(l))}function VM(e,t,r,n){var i=$2.get(t);switch(i===void 0?2:i){case 0:i=m8;break;case 1:i=g8;break;default:i=z2}r=i.bind(null,t,r,e),i=void 0,!ww||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function YM(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var l=n.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;l!==null;){if(o=ll(l),o===null)return;if(s=o.tag,s===5||s===6){n=a=o;continue e}l=l.parentNode}}n=n.return}Z6(function(){var f=a,d=I2(r),g=[];e:{var v=FM.get(e);if(v!==void 0){var y=G2,E=e;switch(e){case"keypress":if(B0(r)===0)break e;case"keydown":case"keyup":y=P8;break;case"focusin":E="focus",y=h1;break;case"focusout":E="blur",y=h1;break;case"beforeblur":case"afterblur":y=h1;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=aA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=x8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=N8;break;case MM:case RM:case PM:y=S8;break;case IM:y=D8;break;case"scroll":y=y8;break;case"wheel":y=B8;break;case"copy":case"cut":case"paste":y=A8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=uA}var k=(t&4)!==0,x=!k&&e==="scroll",w=k?v!==null?v+"Capture":null:v;k=[];for(var _=f,C;_!==null;){C=_;var T=C.stateNode;if(C.tag===5&&T!==null&&(C=T,w!==null&&(T=vd(_,w),T!=null&&k.push(wd(_,T,C)))),x)break;_=_.return}0<k.length&&(v=new y(v,E,null,r,d),g.push({event:v,listeners:k}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",v&&!(t&16)&&(E=r.relatedTarget||r.fromElement)&&(ll(E)||E[zf]))break e;if((y||v)&&(v=d.window===d?d:(v=d.ownerDocument)?v.defaultView||v.parentWindow:window,y?(E=r.relatedTarget||r.toElement,y=f,E=E?ll(E):null,E!==null&&(x=Nl(E),E!==x||E.tag!==5&&E.tag!==6)&&(E=null)):(y=null,E=f),y!==E)){if(k=aA,T="onMouseLeave",w="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(k=uA,T="onPointerLeave",w="onPointerEnter",_="pointer"),x=y==null?v:Ys(y),C=E==null?v:Ys(E),v=new k(T,_+"leave",y,r,d),v.target=x,v.relatedTarget=C,T=null,ll(d)===f&&(k=new k(w,_+"enter",E,r,d),k.target=C,k.relatedTarget=x,T=k),x=T,y&&E)t:{for(k=y,w=E,_=0,C=k;C;C=Ms(C))_++;for(C=0,T=w;T;T=Ms(T))C++;for(;0<_-C;)k=Ms(k),_--;for(;0<C-_;)w=Ms(w),C--;for(;_--;){if(k===w||w!==null&&k===w.alternate)break t;k=Ms(k),w=Ms(w)}k=null}else k=null;y!==null&&wA(g,v,y,k,!1),E!==null&&x!==null&&wA(g,x,E,k,!0)}}e:{if(v=f?Ys(f):window,y=v.nodeName&&v.nodeName.toLowerCase(),y==="select"||y==="input"&&v.type==="file")var F=q8;else if(fA(v))if(UM)F=K8;else{F=Y8;var L=V8}else(y=v.nodeName)&&y.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(F=X8);if(F&&(F=F(e,f))){zM(g,F,r,d);break e}L&&L(e,v,f),e==="focusout"&&(L=v._wrapperState)&&L.controlled&&v.type==="number"&&dw(v,"number",v.value)}switch(L=f?Ys(f):window,e){case"focusin":(fA(L)||L.contentEditable==="true")&&(Vs=L,Tw=f,Qh=null);break;case"focusout":Qh=Tw=Vs=null;break;case"mousedown":Cw=!0;break;case"contextmenu":case"mouseup":case"dragend":Cw=!1,mA(g,r,d);break;case"selectionchange":if(J8)break;case"keydown":case"keyup":mA(g,r,d)}var V;if(H2)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else qs?$M(e,r)&&(j="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(j="onCompositionStart");j&&(DM&&r.locale!=="ko"&&(qs||j!=="onCompositionStart"?j==="onCompositionEnd"&&qs&&(V=LM()):(Go=d,j2="value"in Go?Go.value:Go.textContent,qs=!0)),L=fm(f,j),0<L.length&&(j=new oA(j,e,null,r,d),g.push({event:j,listeners:L}),V?j.data=V:(V=BM(r),V!==null&&(j.data=V)))),(V=U8?j8(e,r):G8(e,r))&&(f=fm(f,"onBeforeInput"),0<f.length&&(d=new oA("onBeforeInput","beforeinput",null,r,d),g.push({event:d,listeners:f}),d.data=V))}HM(g,t)})}function wd(e,t,r){return{instance:e,listener:t,currentTarget:r}}function fm(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=vd(e,r),a!=null&&n.unshift(wd(e,a,i)),a=vd(e,t),a!=null&&n.push(wd(e,a,i))),e=e.return}return n}function Ms(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wA(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var l=r,s=l.alternate,f=l.stateNode;if(s!==null&&s===n)break;l.tag===5&&f!==null&&(l=f,i?(s=vd(r,a),s!=null&&o.unshift(wd(r,s,l))):i||(s=vd(r,a),s!=null&&o.push(wd(r,s,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}function cm(){}var m1=null,g1=null;function XM(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ow(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _A=typeof setTimeout=="function"?setTimeout:void 0,eL=typeof clearTimeout=="function"?clearTimeout:void 0;function q2(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function uf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function SA(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var y1=0;function tL(e){return{$$typeof:R2,toString:e,valueOf:e}}var mg=Math.random().toString(36).slice(2),Wo="__reactFiber$"+mg,hm="__reactProps$"+mg,zf="__reactContainer$"+mg,EA="__reactEvents$"+mg;function ll(e){var t=e[Wo];if(t)return t;for(var r=e.parentNode;r;){if(t=r[zf]||r[Wo]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=SA(e);e!==null;){if(r=e[Wo])return r;e=SA(e)}return t}e=r,r=e.parentNode}return null}function Yd(e){return e=e[Wo]||e[zf],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ys(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(dt(33))}function gg(e){return e[hm]||null}function KM(e){var t=e[EA];return t===void 0&&(t=e[EA]=new Set),t}var kw=[],Xs=-1;function vu(e){return{current:e}}function Dr(e){0>Xs||(e.current=kw[Xs],kw[Xs]=null,Xs--)}function Vr(e,t){Xs++,kw[Xs]=e.current,e.current=t}var ou={},$n=vu(ou),ri=vu(!1),bl=ou;function xf(e,t){var r=e.type.contextTypes;if(!r)return ou;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ni(e){return e=e.childContextTypes,e!=null}function dm(){Dr(ri),Dr($n)}function AA(e,t,r){if($n.current!==ou)throw Error(dt(168));Vr($n,t),Vr(ri,r)}function QM(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(dt(108,rf(t)||"Unknown",i));return Ur({},r,n)}function z0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ou,bl=$n.current,Vr($n,e),Vr(ri,ri.current),!0}function TA(e,t,r){var n=e.stateNode;if(!n)throw Error(dt(169));r?(e=QM(e,t,bl),n.__reactInternalMemoizedMergedChildContext=e,Dr(ri),Dr($n),Vr($n,e)):Dr(ri),Vr(ri,r)}var V2=null,pl=null,rL=wn.unstable_runWithPriority,Y2=wn.unstable_scheduleCallback,Mw=wn.unstable_cancelCallback,nL=wn.unstable_shouldYield,CA=wn.unstable_requestPaint,Rw=wn.unstable_now,iL=wn.unstable_getCurrentPriorityLevel,yg=wn.unstable_ImmediatePriority,ZM=wn.unstable_UserBlockingPriority,JM=wn.unstable_NormalPriority,eR=wn.unstable_LowPriority,tR=wn.unstable_IdlePriority,b1={},aL=CA!==void 0?CA:function(){},Ya=null,U0=null,x1=!1,OA=Rw(),Ln=1e4>OA?Rw:function(){return Rw()-OA};function wf(){switch(iL()){case yg:return 99;case ZM:return 98;case JM:return 97;case eR:return 96;case tR:return 95;default:throw Error(dt(332))}}function rR(e){switch(e){case 99:return yg;case 98:return ZM;case 97:return JM;case 96:return eR;case 95:return tR;default:throw Error(dt(332))}}function xl(e,t){return e=rR(e),rL(e,t)}function _d(e,t,r){return e=rR(e),Y2(e,t,r)}function Ea(){if(U0!==null){var e=U0;U0=null,Mw(e)}nR()}function nR(){if(!x1&&Ya!==null){x1=!0;var e=0;try{var t=Ya;xl(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),Ya=null}catch(r){throw Ya!==null&&(Ya=Ya.slice(e+1)),Y2(yg,Ea),r}finally{x1=!1}}}var oL=Fl.ReactCurrentBatchConfig;function Yi(e,t){if(e&&e.defaultProps){t=Ur({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var pm=vu(null),vm=null,Ks=null,mm=null;function X2(){mm=Ks=vm=null}function K2(e){var t=pm.current;Dr(pm),e.type._context._currentValue=t}function iR(e,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t){if(r===null||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,r!==null&&(r.childLanes|=t);e=e.return}}function lf(e,t){vm=e,mm=Ks=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ki=!0),e.firstContext=null)}function Ii(e,t){if(mm!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(mm=e,t=1073741823),t={context:e,observedBits:t,next:null},Ks===null){if(vm===null)throw Error(dt(308));Ks=t,vm.dependencies={lanes:0,firstContext:t,responders:null}}else Ks=Ks.next=t;return e._currentValue}var Do=!1;function Q2(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function aR(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Zo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jo(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function kA(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Sd(e,t,r,n){var i=e.updateQueue;Do=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,f=s.next;s.next=null,o===null?a=f:o.next=f,o=s;var d=e.alternate;if(d!==null){d=d.updateQueue;var g=d.lastBaseUpdate;g!==o&&(g===null?d.firstBaseUpdate=f:g.next=f,d.lastBaseUpdate=s)}}if(a!==null){g=i.baseState,o=0,d=f=s=null;do{l=a.lane;var v=a.eventTime;if((n&l)===l){d!==null&&(d=d.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,E=a;switch(l=t,v=r,E.tag){case 1:if(y=E.payload,typeof y=="function"){g=y.call(v,g,l);break e}g=y;break e;case 3:y.flags=y.flags&-4097|64;case 0:if(y=E.payload,l=typeof y=="function"?y.call(v,g,l):y,l==null)break e;g=Ur({},g,l);break e;case 2:Do=!0}}a.callback!==null&&(e.flags|=32,l=i.effects,l===null?i.effects=[a]:l.push(a))}else v={eventTime:v,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(f=d=v,s=g):d=d.next=v,o|=l;if(a=a.next,a===null){if(l=i.shared.pending,l===null)break;a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}while(1);d===null&&(s=g),i.baseState=s,i.firstBaseUpdate=f,i.lastBaseUpdate=d,Kd|=o,e.lanes=o,e.memoizedState=g}}function MA(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(dt(191,i));i.call(n)}}}var oR=new sg.Component().refs;function gm(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Ur({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var bg={isMounted:function(e){return(e=e._reactInternals)?Nl(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=vi(),i=eu(e),a=Zo(n,i);a.payload=t,r!=null&&(a.callback=r),Jo(e,a),tu(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=vi(),i=eu(e),a=Zo(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),Jo(e,a),tu(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=vi(),n=eu(e),i=Zo(r,n);i.tag=2,t!=null&&(i.callback=t),Jo(e,i),tu(e,n,r)}};function RA(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!xd(r,n)||!xd(i,a):!0}function uR(e,t,r){var n=!1,i=ou,a=t.contextType;return typeof a=="object"&&a!==null?a=Ii(a):(i=ni(t)?bl:$n.current,n=t.contextTypes,a=(n=n!=null)?xf(e,i):ou),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=bg,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function PA(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&bg.enqueueReplaceState(t,t.state,null)}function Pw(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=oR,Q2(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Ii(a):(a=ni(t)?bl:$n.current,i.context=xf(e,a)),Sd(e,r,i,n),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(gm(e,t,a,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&bg.enqueueReplaceState(i,i.state,null),Sd(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var Gv=Array.isArray;function hh(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(dt(309));var n=r.stateNode}if(!n)throw Error(dt(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var o=n.refs;o===oR&&(o=n.refs={}),a===null?delete o[i]:o[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(dt(284));if(!r._owner)throw Error(dt(290,e))}return e}function Wv(e,t){if(e.type!=="textarea")throw Error(dt(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function lR(e){function t(x,w){if(e){var _=x.lastEffect;_!==null?(_.nextEffect=w,x.lastEffect=w):x.firstEffect=x.lastEffect=w,w.nextEffect=null,w.flags=8}}function r(x,w){if(!e)return null;for(;w!==null;)t(x,w),w=w.sibling;return null}function n(x,w){for(x=new Map;w!==null;)w.key!==null?x.set(w.key,w):x.set(w.index,w),w=w.sibling;return x}function i(x,w){return x=lu(x,w),x.index=0,x.sibling=null,x}function a(x,w,_){return x.index=_,e?(_=x.alternate,_!==null?(_=_.index,_<w?(x.flags=2,w):_):(x.flags=2,w)):w}function o(x){return e&&x.alternate===null&&(x.flags=2),x}function l(x,w,_,C){return w===null||w.tag!==6?(w=A1(_,x.mode,C),w.return=x,w):(w=i(w,_),w.return=x,w)}function s(x,w,_,C){return w!==null&&w.elementType===_.type?(C=i(w,_.props),C.ref=hh(x,w,_),C.return=x,C):(C=H0(_.type,_.key,_.props,null,x.mode,C),C.ref=hh(x,w,_),C.return=x,C)}function f(x,w,_,C){return w===null||w.tag!==4||w.stateNode.containerInfo!==_.containerInfo||w.stateNode.implementation!==_.implementation?(w=T1(_,x.mode,C),w.return=x,w):(w=i(w,_.children||[]),w.return=x,w)}function d(x,w,_,C,T){return w===null||w.tag!==7?(w=hf(_,x.mode,C,T),w.return=x,w):(w=i(w,_),w.return=x,w)}function g(x,w,_){if(typeof w=="string"||typeof w=="number")return w=A1(""+w,x.mode,_),w.return=x,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Fh:return _=H0(w.type,w.key,w.props,null,x.mode,_),_.ref=hh(x,null,w),_.return=x,_;case ol:return w=T1(w,x.mode,_),w.return=x,w}if(Gv(w)||oh(w))return w=hf(w,x.mode,_,null),w.return=x,w;Wv(x,w)}return null}function v(x,w,_,C){var T=w!==null?w.key:null;if(typeof _=="string"||typeof _=="number")return T!==null?null:l(x,w,""+_,C);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Fh:return _.key===T?_.type===Uo?d(x,w,_.props.children,C,T):s(x,w,_,C):null;case ol:return _.key===T?f(x,w,_,C):null}if(Gv(_)||oh(_))return T!==null?null:d(x,w,_,C,null);Wv(x,_)}return null}function y(x,w,_,C,T){if(typeof C=="string"||typeof C=="number")return x=x.get(_)||null,l(w,x,""+C,T);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case Fh:return x=x.get(C.key===null?_:C.key)||null,C.type===Uo?d(w,x,C.props.children,T,C.key):s(w,x,C,T);case ol:return x=x.get(C.key===null?_:C.key)||null,f(w,x,C,T)}if(Gv(C)||oh(C))return x=x.get(_)||null,d(w,x,C,T,null);Wv(w,C)}return null}function E(x,w,_,C){for(var T=null,F=null,L=w,V=w=0,j=null;L!==null&&V<_.length;V++){L.index>V?(j=L,L=null):j=L.sibling;var te=v(x,L,_[V],C);if(te===null){L===null&&(L=j);break}e&&L&&te.alternate===null&&t(x,L),w=a(te,w,V),F===null?T=te:F.sibling=te,F=te,L=j}if(V===_.length)return r(x,L),T;if(L===null){for(;V<_.length;V++)L=g(x,_[V],C),L!==null&&(w=a(L,w,V),F===null?T=L:F.sibling=L,F=L);return T}for(L=n(x,L);V<_.length;V++)j=y(L,x,V,_[V],C),j!==null&&(e&&j.alternate!==null&&L.delete(j.key===null?V:j.key),w=a(j,w,V),F===null?T=j:F.sibling=j,F=j);return e&&L.forEach(function(ge){return t(x,ge)}),T}function k(x,w,_,C){var T=oh(_);if(typeof T!="function")throw Error(dt(150));if(_=T.call(_),_==null)throw Error(dt(151));for(var F=T=null,L=w,V=w=0,j=null,te=_.next();L!==null&&!te.done;V++,te=_.next()){L.index>V?(j=L,L=null):j=L.sibling;var ge=v(x,L,te.value,C);if(ge===null){L===null&&(L=j);break}e&&L&&ge.alternate===null&&t(x,L),w=a(ge,w,V),F===null?T=ge:F.sibling=ge,F=ge,L=j}if(te.done)return r(x,L),T;if(L===null){for(;!te.done;V++,te=_.next())te=g(x,te.value,C),te!==null&&(w=a(te,w,V),F===null?T=te:F.sibling=te,F=te);return T}for(L=n(x,L);!te.done;V++,te=_.next())te=y(L,x,V,te.value,C),te!==null&&(e&&te.alternate!==null&&L.delete(te.key===null?V:te.key),w=a(te,w,V),F===null?T=te:F.sibling=te,F=te);return e&&L.forEach(function(me){return t(x,me)}),T}return function(x,w,_,C){var T=typeof _=="object"&&_!==null&&_.type===Uo&&_.key===null;T&&(_=_.props.children);var F=typeof _=="object"&&_!==null;if(F)switch(_.$$typeof){case Fh:e:{for(F=_.key,T=w;T!==null;){if(T.key===F){switch(T.tag){case 7:if(_.type===Uo){r(x,T.sibling),w=i(T,_.props.children),w.return=x,x=w;break e}break;default:if(T.elementType===_.type){r(x,T.sibling),w=i(T,_.props),w.ref=hh(x,T,_),w.return=x,x=w;break e}}r(x,T);break}else t(x,T);T=T.sibling}_.type===Uo?(w=hf(_.props.children,x.mode,C,_.key),w.return=x,x=w):(C=H0(_.type,_.key,_.props,null,x.mode,C),C.ref=hh(x,w,_),C.return=x,x=C)}return o(x);case ol:e:{for(T=_.key;w!==null;){if(w.key===T)if(w.tag===4&&w.stateNode.containerInfo===_.containerInfo&&w.stateNode.implementation===_.implementation){r(x,w.sibling),w=i(w,_.children||[]),w.return=x,x=w;break e}else{r(x,w);break}else t(x,w);w=w.sibling}w=T1(_,x.mode,C),w.return=x,x=w}return o(x)}if(typeof _=="string"||typeof _=="number")return _=""+_,w!==null&&w.tag===6?(r(x,w.sibling),w=i(w,_),w.return=x,x=w):(r(x,w),w=A1(_,x.mode,C),w.return=x,x=w),o(x);if(Gv(_))return E(x,w,_,C);if(oh(_))return k(x,w,_,C);if(F&&Wv(x,_),typeof _>"u"&&!T)switch(x.tag){case 1:case 22:case 0:case 11:case 15:throw Error(dt(152,rf(x.type)||"Component"))}return r(x,w)}}var ym=lR(!0),sR=lR(!1),Xd={},ba=vu(Xd),Ed=vu(Xd),Ad=vu(Xd);function sl(e){if(e===Xd)throw Error(dt(174));return e}function Iw(e,t){switch(Vr(Ad,t),Vr(Ed,e),Vr(ba,Xd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:gw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=gw(t,e)}Dr(ba),Vr(ba,t)}function _f(){Dr(ba),Dr(Ed),Dr(Ad)}function IA(e){sl(Ad.current);var t=sl(ba.current),r=gw(t,e.type);t!==r&&(Vr(Ed,e),Vr(ba,r))}function Z2(e){Ed.current===e&&(Dr(ba),Dr(Ed))}var Hr=vu(0);function bm(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)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 Ka=null,Ho=null,xa=!1;function fR(e,t){var r=ki(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function FA(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Fw(e){if(xa){var t=Ho;if(t){var r=t;if(!FA(e,t)){if(t=uf(r.nextSibling),!t||!FA(e,t)){e.flags=e.flags&-1025|2,xa=!1,Ka=e;return}fR(Ka,r)}Ka=e,Ho=uf(t.firstChild)}else e.flags=e.flags&-1025|2,xa=!1,Ka=e}}function NA(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ka=e}function Hv(e){if(e!==Ka)return!1;if(!xa)return NA(e),xa=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Ow(t,e.memoizedProps))for(t=Ho;t;)fR(e,t),t=uf(t.nextSibling);if(NA(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(dt(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ho=uf(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ho=null}}else Ho=Ka?uf(e.stateNode.nextSibling):null;return!0}function w1(){Ho=Ka=null,xa=!1}var sf=[];function J2(){for(var e=0;e<sf.length;e++)sf[e]._workInProgressVersionPrimary=null;sf.length=0}var Zh=Fl.ReactCurrentDispatcher,Ri=Fl.ReactCurrentBatchConfig,Td=0,Qr=null,Nn=null,kn=null,xm=!1,Jh=!1;function Zn(){throw Error(dt(321))}function eS(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Oi(e[r],t[r]))return!1;return!0}function tS(e,t,r,n,i,a){if(Td=a,Qr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zh.current=e===null||e.memoizedState===null?lL:sL,e=r(n,i),Jh){a=0;do{if(Jh=!1,!(25>a))throw Error(dt(301));a+=1,kn=Nn=null,t.updateQueue=null,Zh.current=fL,e=r(n,i)}while(Jh)}if(Zh.current=Em,t=Nn!==null&&Nn.next!==null,Td=0,kn=Nn=Qr=null,xm=!1,t)throw Error(dt(300));return e}function fl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kn===null?Qr.memoizedState=kn=e:kn=kn.next=e,kn}function Ll(){if(Nn===null){var e=Qr.alternate;e=e!==null?e.memoizedState:null}else e=Nn.next;var t=kn===null?Qr.memoizedState:kn.next;if(t!==null)kn=t,Nn=e;else{if(e===null)throw Error(dt(310));Nn=e,e={memoizedState:Nn.memoizedState,baseState:Nn.baseState,baseQueue:Nn.baseQueue,queue:Nn.queue,next:null},kn===null?Qr.memoizedState=kn=e:kn=kn.next=e}return kn}function ma(e,t){return typeof t=="function"?t(e):t}function dh(e){var t=Ll(),r=t.queue;if(r===null)throw Error(dt(311));r.lastRenderedReducer=e;var n=Nn,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var l=o=a=null,s=i;do{var f=s.lane;if((Td&f)===f)l!==null&&(l=l.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),n=s.eagerReducer===e?s.eagerState:e(n,s.action);else{var d={lane:f,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};l===null?(o=l=d,a=n):l=l.next=d,Qr.lanes|=f,Kd|=f}s=s.next}while(s!==null&&s!==i);l===null?a=n:l.next=o,Oi(n,t.memoizedState)||(Ki=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function ph(e){var t=Ll(),r=t.queue;if(r===null)throw Error(dt(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Oi(a,t.memoizedState)||(Ki=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function LA(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(Td&e)===e)&&(t._workInProgressVersionPrimary=n,sf.push(t))),e)return r(t._source);throw sf.push(t),Error(dt(350))}function cR(e,t,r,n){var i=Hn;if(i===null)throw Error(dt(349));var a=t._getVersion,o=a(t._source),l=Zh.current,s=l.useState(function(){return LA(i,t,r)}),f=s[1],d=s[0];s=kn;var g=e.memoizedState,v=g.refs,y=v.getSnapshot,E=g.source;g=g.subscribe;var k=Qr;return e.memoizedState={refs:v,source:t,subscribe:n},l.useEffect(function(){v.getSnapshot=r,v.setSnapshot=f;var x=a(t._source);if(!Oi(o,x)){x=r(t._source),Oi(d,x)||(f(x),x=eu(k),i.mutableReadLanes|=x&i.pendingLanes),x=i.mutableReadLanes,i.entangledLanes|=x;for(var w=i.entanglements,_=x;0<_;){var C=31-au(_),T=1<<C;w[C]|=x,_&=~T}}},[r,t,n]),l.useEffect(function(){return n(t._source,function(){var x=v.getSnapshot,w=v.setSnapshot;try{w(x(t._source));var _=eu(k);i.mutableReadLanes|=_&i.pendingLanes}catch(C){w(function(){throw C})}})},[t,n]),Oi(y,r)&&Oi(E,t)&&Oi(g,n)||(e={pending:null,dispatch:null,lastRenderedReducer:ma,lastRenderedState:d},e.dispatch=f=iS.bind(null,Qr,e),s.queue=e,s.baseQueue=null,d=LA(i,t,r),s.memoizedState=s.baseState=d),d}function hR(e,t,r){var n=Ll();return cR(n,e,t,r)}function vh(e){var t=fl();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ma,lastRenderedState:e},e=e.dispatch=iS.bind(null,Qr,e),[t.memoizedState,e]}function wm(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Qr.updateQueue,t===null?(t={lastEffect:null},Qr.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function DA(e){var t=fl();return e={current:e},t.memoizedState=e}function _m(){return Ll().memoizedState}function Nw(e,t,r,n){var i=fl();Qr.flags|=e,i.memoizedState=wm(1|t,r,void 0,n===void 0?null:n)}function rS(e,t,r,n){var i=Ll();n=n===void 0?null:n;var a=void 0;if(Nn!==null){var o=Nn.memoizedState;if(a=o.destroy,n!==null&&eS(n,o.deps)){wm(t,r,a,n);return}}Qr.flags|=e,i.memoizedState=wm(1|t,r,a,n)}function $A(e,t){return Nw(516,4,e,t)}function Sm(e,t){return rS(516,4,e,t)}function dR(e,t){return rS(4,2,e,t)}function pR(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vR(e,t,r){return r=r!=null?r.concat([e]):null,rS(4,2,pR.bind(null,t,e),r)}function nS(){}function mR(e,t){var r=Ll();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&eS(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function gR(e,t){var r=Ll();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&eS(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function uL(e,t){var r=wf();xl(98>r?98:r,function(){e(!0)}),xl(97<r?97:r,function(){var n=Ri.transition;Ri.transition=1;try{e(!1),t()}finally{Ri.transition=n}})}function iS(e,t,r){var n=vi(),i=eu(e),a={lane:i,action:r,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(o===null?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Qr||o!==null&&o===Qr)Jh=xm=!0;else{if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,r);if(a.eagerReducer=o,a.eagerState=s,Oi(s,l))return}catch{}finally{}tu(e,i,n)}}var Em={readContext:Ii,useCallback:Zn,useContext:Zn,useEffect:Zn,useImperativeHandle:Zn,useLayoutEffect:Zn,useMemo:Zn,useReducer:Zn,useRef:Zn,useState:Zn,useDebugValue:Zn,useDeferredValue:Zn,useTransition:Zn,useMutableSource:Zn,useOpaqueIdentifier:Zn,unstable_isNewReconciler:!1},lL={readContext:Ii,useCallback:function(e,t){return fl().memoizedState=[e,t===void 0?null:t],e},useContext:Ii,useEffect:$A,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Nw(4,2,pR.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Nw(4,2,e,t)},useMemo:function(e,t){var r=fl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=fl();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=iS.bind(null,Qr,e),[n.memoizedState,e]},useRef:DA,useState:vh,useDebugValue:nS,useDeferredValue:function(e){var t=vh(e),r=t[0],n=t[1];return $A(function(){var i=Ri.transition;Ri.transition=1;try{n(e)}finally{Ri.transition=i}},[e]),r},useTransition:function(){var e=vh(!1),t=e[0];return e=uL.bind(null,e[1]),DA(e),[e,t]},useMutableSource:function(e,t,r){var n=fl();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},cR(n,e,t,r)},useOpaqueIdentifier:function(){if(xa){var e=!1,t=tL(function(){throw e||(e=!0,r("r:"+(y1++).toString(36))),Error(dt(355))}),r=vh(t)[1];return!(Qr.mode&2)&&(Qr.flags|=516,wm(5,function(){r("r:"+(y1++).toString(36))},void 0,null)),t}return t="r:"+(y1++).toString(36),vh(t),t},unstable_isNewReconciler:!1},sL={readContext:Ii,useCallback:mR,useContext:Ii,useEffect:Sm,useImperativeHandle:vR,useLayoutEffect:dR,useMemo:gR,useReducer:dh,useRef:_m,useState:function(){return dh(ma)},useDebugValue:nS,useDeferredValue:function(e){var t=dh(ma),r=t[0],n=t[1];return Sm(function(){var i=Ri.transition;Ri.transition=1;try{n(e)}finally{Ri.transition=i}},[e]),r},useTransition:function(){var e=dh(ma)[0];return[_m().current,e]},useMutableSource:hR,useOpaqueIdentifier:function(){return dh(ma)[0]},unstable_isNewReconciler:!1},fL={readContext:Ii,useCallback:mR,useContext:Ii,useEffect:Sm,useImperativeHandle:vR,useLayoutEffect:dR,useMemo:gR,useReducer:ph,useRef:_m,useState:function(){return ph(ma)},useDebugValue:nS,useDeferredValue:function(e){var t=ph(ma),r=t[0],n=t[1];return Sm(function(){var i=Ri.transition;Ri.transition=1;try{n(e)}finally{Ri.transition=i}},[e]),r},useTransition:function(){var e=ph(ma)[0];return[_m().current,e]},useMutableSource:hR,useOpaqueIdentifier:function(){return ph(ma)[0]},unstable_isNewReconciler:!1},cL=Fl.ReactCurrentOwner,Ki=!1;function Jn(e,t,r,n){t.child=e===null?sR(t,null,r,n):ym(t,e.child,r,n)}function BA(e,t,r,n,i){r=r.render;var a=t.ref;return lf(t,i),n=tS(e,t,r,n,a,i),e!==null&&!Ki?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Qa(e,t,i)):(t.flags|=1,Jn(e,t,n,i),t.child)}function zA(e,t,r,n,i,a){if(e===null){var o=r.type;return typeof o=="function"&&!fS(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,yR(e,t,o,n,i,a)):(e=H0(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}return o=e.child,!(i&a)&&(i=o.memoizedProps,r=r.compare,r=r!==null?r:xd,r(i,n)&&e.ref===t.ref)?Qa(e,t,a):(t.flags|=1,e=lu(o,n),e.ref=t.ref,e.return=t,t.child=e)}function yR(e,t,r,n,i,a){if(e!==null&&xd(e.memoizedProps,n)&&e.ref===t.ref)if(Ki=!1,(a&i)!==0)e.flags&16384&&(Ki=!0);else return t.lanes=e.lanes,Qa(e,t,a);return Lw(e,t,r,n,a)}function _1(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden"||n.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},Vv(t,r);else if(r&1073741824)t.memoizedState={baseLanes:0},Vv(t,a!==null?a.baseLanes:r);else return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Vv(t,e),null;else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Vv(t,n);return Jn(e,t,i,r),t.child}function bR(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function Lw(e,t,r,n,i){var a=ni(r)?bl:$n.current;return a=xf(t,a),lf(t,i),r=tS(e,t,r,n,a,i),e!==null&&!Ki?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Qa(e,t,i)):(t.flags|=1,Jn(e,t,r,i),t.child)}function UA(e,t,r,n,i){if(ni(r)){var a=!0;z0(t)}else a=!1;if(lf(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),uR(t,r,n),Pw(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,f=r.contextType;typeof f=="object"&&f!==null?f=Ii(f):(f=ni(r)?bl:$n.current,f=xf(t,f));var d=r.getDerivedStateFromProps,g=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||s!==f)&&PA(t,o,n,f),Do=!1;var v=t.memoizedState;o.state=v,Sd(t,n,o,i),s=t.memoizedState,l!==n||v!==s||ri.current||Do?(typeof d=="function"&&(gm(t,r,d,n),s=t.memoizedState),(l=Do||RA(t,r,l,n,v,s,f))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4)):(typeof o.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=s),o.props=n,o.state=s,o.context=f,n=l):(typeof o.componentDidMount=="function"&&(t.flags|=4),n=!1)}else{o=t.stateNode,aR(e,t),l=t.memoizedProps,f=t.type===t.elementType?l:Yi(t.type,l),o.props=f,g=t.pendingProps,v=o.context,s=r.contextType,typeof s=="object"&&s!==null?s=Ii(s):(s=ni(r)?bl:$n.current,s=xf(t,s));var y=r.getDerivedStateFromProps;(d=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==g||v!==s)&&PA(t,o,n,s),Do=!1,v=t.memoizedState,o.state=v,Sd(t,n,o,i);var E=t.memoizedState;l!==g||v!==E||ri.current||Do?(typeof y=="function"&&(gm(t,r,y,n),E=t.memoizedState),(f=Do||RA(t,r,f,n,v,E,s))?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,E,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,E,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=E),o.props=n,o.state=E,o.context=s,n=f):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=256),n=!1)}return Dw(e,t,r,n,a,i)}function Dw(e,t,r,n,i,a){bR(e,t);var o=(t.flags&64)!==0;if(!n&&!o)return i&&TA(t,r,!1),Qa(e,t,a);n=t.stateNode,cL.current=t;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=ym(t,e.child,null,a),t.child=ym(t,null,l,a)):Jn(e,t,l,a),t.memoizedState=n.state,i&&TA(t,r,!0),t.child}function jA(e){var t=e.stateNode;t.pendingContext?AA(e,t.pendingContext,t.pendingContext!==t.context):t.context&&AA(e,t.context,!1),Iw(e,t.containerInfo)}var qv={dehydrated:null,retryLane:0};function GA(e,t,r){var n=t.pendingProps,i=Hr.current,a=!1,o;return(o=(t.flags&64)!==0)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(a=!0,t.flags&=-65):e!==null&&e.memoizedState===null||n.fallback===void 0||n.unstable_avoidThisFallback===!0||(i|=1),Vr(Hr,i&1),e===null?(n.fallback!==void 0&&Fw(t),e=n.children,i=n.fallback,a?(e=WA(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=qv,e):typeof n.unstable_expectedLoadTime=="number"?(e=WA(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=qv,t.lanes=33554432,e):(r=cS({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?a?(n=qA(e,t,n.children,n.fallback,r),a=t.child,i=e.child.memoizedState,a.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},a.childLanes=e.childLanes&~r,t.memoizedState=qv,n):(r=HA(e,t,n.children,r),t.memoizedState=null,r):a?(n=qA(e,t,n.children,n.fallback,r),a=t.child,i=e.child.memoizedState,a.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},a.childLanes=e.childLanes&~r,t.memoizedState=qv,n):(r=HA(e,t,n.children,r),t.memoizedState=null,r)}function WA(e,t,r,n){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},!(i&2)&&a!==null?(a.childLanes=0,a.pendingProps=t):a=cS(t,i,0,null),r=hf(r,i,n,null),a.return=e,r.return=e,a.sibling=r,e.child=a,r}function HA(e,t,r,n){var i=e.child;return e=i.sibling,r=lu(i,{mode:"visible",children:r}),!(t.mode&2)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}function qA(e,t,r,n,i){var a=t.mode,o=e.child;e=o.sibling;var l={mode:"hidden",children:r};return!(a&2)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,o=r.lastEffect,o!==null?(t.firstEffect=r.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):r=lu(o,l),e!==null?n=lu(e,n):(n=hf(n,a,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function VA(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),iR(e.return,t)}function S1(e,t,r,n,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i,o.lastEffect=a)}function YA(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(Jn(e,t,n.children,r),n=Hr.current,n&2)n=n&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&VA(e,r);else if(e.tag===19)VA(e,r);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}n&=1}if(Vr(Hr,n),!(t.mode&2))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&bm(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),S1(t,!1,i,r,a,t.lastEffect);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&bm(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}S1(t,!0,r,null,a,t.lastEffect);break;case"together":S1(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Qa(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Kd|=t.lanes,r&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(dt(153));if(t.child!==null){for(e=t.child,r=lu(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=lu(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var xR,$w,wR,_R;xR=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};$w=function(){};wR=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,sl(ba.current);var a=null;switch(r){case"input":i=cw(e,i),n=cw(e,n),a=[];break;case"option":i=pw(e,i),n=pw(e,n),a=[];break;case"select":i=Ur({},i,{value:void 0}),n=Ur({},n,{value:void 0}),a=[];break;case"textarea":i=vw(e,i),n=vw(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=cm)}yw(r,n);var o;r=null;for(f in i)if(!n.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var l=i[f];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(dd.hasOwnProperty(f)?a||(a=[]):(a=a||[]).push(f,null));for(f in n){var s=n[f];if(l=i!=null?i[f]:void 0,n.hasOwnProperty(f)&&s!==l&&(s!=null||l!=null))if(f==="style")if(l){for(o in l)!l.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in s)s.hasOwnProperty(o)&&l[o]!==s[o]&&(r||(r={}),r[o]=s[o])}else r||(a||(a=[]),a.push(f,r)),r=s;else f==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(a=a||[]).push(f,s)):f==="children"?typeof s!="string"&&typeof s!="number"||(a=a||[]).push(f,""+s):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(dd.hasOwnProperty(f)?(s!=null&&f==="onScroll"&&Nr("scroll",e),a||l===s||(a=[])):typeof s=="object"&&s!==null&&s.$$typeof===R2?s.toString():(a=a||[]).push(f,s))}r&&(a=a||[]).push("style",r);var f=a;(t.updateQueue=f)&&(t.flags|=4)}};_R=function(e,t,r,n){r!==n&&(t.flags|=4)};function mh(e,t){if(!xa)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function hL(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ni(t.type)&&dm(),null;case 3:return _f(),Dr(ri),Dr($n),J2(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Hv(t)?t.flags|=4:n.hydrate||(t.flags|=256)),$w(t),null;case 5:Z2(t);var i=sl(Ad.current);if(r=t.type,e!==null&&t.stateNode!=null)wR(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(t.stateNode===null)throw Error(dt(166));return null}if(e=sl(ba.current),Hv(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Wo]=t,n[hm]=a,r){case"dialog":Nr("cancel",n),Nr("close",n);break;case"iframe":case"object":case"embed":Nr("load",n);break;case"video":case"audio":for(e=0;e<Lh.length;e++)Nr(Lh[e],n);break;case"source":Nr("error",n);break;case"img":case"image":case"link":Nr("error",n),Nr("load",n);break;case"details":Nr("toggle",n);break;case"input":YE(n,a),Nr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Nr("invalid",n);break;case"textarea":KE(n,a),Nr("invalid",n)}yw(r,a),e=null;for(var o in a)a.hasOwnProperty(o)&&(i=a[o],o==="children"?typeof i=="string"?n.textContent!==i&&(e=["children",i]):typeof i=="number"&&n.textContent!==""+i&&(e=["children",""+i]):dd.hasOwnProperty(o)&&i!=null&&o==="onScroll"&&Nr("scroll",n));switch(r){case"input":Bv(n),XE(n,a,!0);break;case"textarea":Bv(n),QE(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=cm)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(o=i.nodeType===9?i:i.ownerDocument,e===mw.html&&(e=vM(r)),e===mw.html?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Wo]=t,e[hm]=n,xR(e,t,!1,!1),t.stateNode=e,o=bw(r,n),r){case"dialog":Nr("cancel",e),Nr("close",e),i=n;break;case"iframe":case"object":case"embed":Nr("load",e),i=n;break;case"video":case"audio":for(i=0;i<Lh.length;i++)Nr(Lh[i],e);i=n;break;case"source":Nr("error",e),i=n;break;case"img":case"image":case"link":Nr("error",e),Nr("load",e),i=n;break;case"details":Nr("toggle",e),i=n;break;case"input":YE(e,n),i=cw(e,n),Nr("invalid",e);break;case"option":i=pw(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Ur({},n,{value:void 0}),Nr("invalid",e);break;case"textarea":KE(e,n),i=vw(e,n),Nr("invalid",e);break;default:i=n}yw(r,i);var l=i;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];a==="style"?yM(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&mM(e,s)):a==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&pd(e,s):typeof s=="number"&&pd(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(dd.hasOwnProperty(a)?s!=null&&a==="onScroll"&&Nr("scroll",e):s!=null&&A2(e,a,s,o))}switch(r){case"input":Bv(e),XE(e,n,!1);break;case"textarea":Bv(e),QE(e);break;case"option":n.value!=null&&e.setAttribute("value",""+iu(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?nf(e,!!n.multiple,a,!1):n.defaultValue!=null&&nf(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=cm)}XM(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)_R(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(dt(166));r=sl(Ad.current),sl(ba.current),Hv(t)?(n=t.stateNode,r=t.memoizedProps,n[Wo]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Wo]=t,t.stateNode=n)}return null;case 13:return Dr(Hr),n=t.memoizedState,t.flags&64?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&Hv(t):r=e.memoizedState!==null,n&&!r&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||Hr.current&1?Mn===0&&(Mn=3):((Mn===0||Mn===3)&&(Mn=4),Hn===null||!(Kd&134217727)&&!(jf&134217727)||ff(Hn,Dn))),(n||r)&&(t.flags|=4),null);case 4:return _f(),$w(t),e===null&&qM(t.stateNode.containerInfo),null;case 10:return K2(t),null;case 17:return ni(t.type)&&dm(),null;case 19:if(Dr(Hr),n=t.memoizedState,n===null)return null;if(a=(t.flags&64)!==0,o=n.rendering,o===null)if(a)mh(n,!1);else{if(Mn!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(o=bm(e),o!==null){for(t.flags|=64,mh(n,!1),a=o.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),n.lastEffect===null&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Vr(Hr,Hr.current&1|2),t.child}e=e.sibling}n.tail!==null&&Ln()>Ww&&(t.flags|=64,a=!0,mh(n,!1),t.lanes=33554432)}else{if(!a)if(e=bm(o),e!==null){if(t.flags|=64,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),mh(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!xa)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Ln()-n.renderingStartTime>Ww&&r!==1073741824&&(t.flags|=64,a=!0,mh(n,!1),t.lanes=33554432);n.isBackwards?(o.sibling=t.child,t.child=o):(r=n.last,r!==null?r.sibling=o:t.child=o,n.last=o)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Ln(),r.sibling=null,t=Hr.current,Vr(Hr,a?t&1|2:t&1),r):null;case 23:case 24:return sS(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(dt(156,t.tag))}function dL(e){switch(e.tag){case 1:ni(e.type)&&dm();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(_f(),Dr(ri),Dr($n),J2(),t=e.flags,t&64)throw Error(dt(285));return e.flags=t&-4097|64,e;case 5:return Z2(e),null;case 13:return Dr(Hr),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Dr(Hr),null;case 4:return _f(),null;case 10:return K2(e),null;case 23:case 24:return sS(),null;default:return null}}function aS(e,t){try{var r="",n=t;do r+=V6(n),n=n.return;while(n);var i=r}catch(a){i=`
37
+ `+i[o].replace(" at new "," at ");while(1<=o&&0<=l);break}}}finally{a1=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Fh(e):""}function H6(e){switch(e.tag){case 5:return Fh(e.type);case 16:return Fh("Lazy");case 13:return Fh("Suspense");case 19:return Fh("SuspenseList");case 0:case 2:case 15:return e=Dv(e.type,!1),e;case 11:return e=Dv(e.type.render,!1),e;case 22:return e=Dv(e.type._render,!1),e;case 1:return e=Dv(e.type,!0),e;default:return""}}function rf(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 Uo:return"Fragment";case ol:return"Portal";case Wh:return"Profiler";case A2:return"StrictMode";case Hh:return"Suspense";case im:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case T2:return(e.displayName||"Context")+".Consumer";case C2:return(e._context.displayName||"Context")+".Provider";case sg:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case fg:return rf(e.type);case M2:return rf(e._render);case O2:t=e._payload,e=e._init;try{return rf(e(t))}catch{}}return null}function iu(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function sk(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function q6(e){var t=sk(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $v(e){e._valueTracker||(e._valueTracker=q6(e))}function fk(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=sk(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function am(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 fw(e,t){var r=t.checked;return Ur({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function VE(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=iu(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ck(e,t){t=t.checked,t!=null&&E2(e,"checked",t,!1)}function cw(e,t){ck(e,t);var r=iu(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?hw(e,t.type,r):t.hasOwnProperty("defaultValue")&&hw(e,t.type,iu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function YE(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function hw(e,t,r){(t!=="number"||am(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function V6(e){var t="";return lg.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function dw(e,t){return e=Ur({children:void 0},t),(t=V6(t.children))&&(e.children=t),e}function nf(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(r=""+iu(r),t=null,i=0;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function pw(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(dt(91));return Ur({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function XE(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(dt(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(dt(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:iu(r)}}function hk(e,t){var r=iu(t.value),n=iu(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function KE(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var vw={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function dk(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function mw(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?dk(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bv,pk=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,i){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,i)})}:e}(function(e,t){if(e.namespaceURI!==vw.svg||"innerHTML"in e)e.innerHTML=t;else{for(Bv=Bv||document.createElement("div"),Bv.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Bv.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function dd(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var qh={animationIterationCount:!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},Y6=["Webkit","ms","Moz","O"];Object.keys(qh).forEach(function(e){Y6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qh[t]=qh[e]})});function vk(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||qh.hasOwnProperty(e)&&qh[e]?(""+t).trim():t+"px"}function mk(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=vk(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var X6=Ur({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 gw(e,t){if(t){if(X6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(dt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(dt(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(dt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(dt(62))}}function yw(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}}function P2(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bw=null,af=null,of=null;function QE(e){if(e=Vd(e)){if(typeof bw!="function")throw Error(dt(280));var t=e.stateNode;t&&(t=mg(t),bw(e.stateNode,e.type,t))}}function gk(e){af?of?of.push(e):of=[e]:af=e}function yk(){if(af){var e=af,t=of;if(of=af=null,QE(e),t)for(e=0;e<t.length;e++)QE(t[e])}}function I2(e,t){return e(t)}function bk(e,t,r,n,i){return e(t,r,n,i)}function F2(){}var xk=I2,ul=!1,o1=!1;function N2(){(af!==null||of!==null)&&(F2(),yk())}function K6(e,t,r){if(o1)return e(t,r);o1=!0;try{return xk(e,t,r)}finally{o1=!1,N2()}}function pd(e,t){var r=e.stateNode;if(r===null)return null;var n=mg(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(dt(231,t,typeof r));return r}var xw=!1;if(eo)try{var uh={};Object.defineProperty(uh,"passive",{get:function(){xw=!0}}),window.addEventListener("test",uh,uh),window.removeEventListener("test",uh,uh)}catch{xw=!1}function Q6(e,t,r,n,i,a,o,l,s){var f=Array.prototype.slice.call(arguments,3);try{t.apply(r,f)}catch(d){this.onError(d)}}var Vh=!1,om=null,um=!1,ww=null,Z6={onError:function(e){Vh=!0,om=e}};function J6(e,t,r,n,i,a,o,l,s){Vh=!1,om=null,Q6.apply(Z6,arguments)}function e8(e,t,r,n,i,a,o,l,s){if(J6.apply(this,arguments),Vh){if(Vh){var f=om;Vh=!1,om=null}else throw Error(dt(198));um||(um=!0,ww=f)}}function Nl(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function wk(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ZE(e){if(Nl(e)!==e)throw Error(dt(188))}function t8(e){var t=e.alternate;if(!t){if(t=Nl(e),t===null)throw Error(dt(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return ZE(i),e;if(a===n)return ZE(i),t;a=a.sibling}throw Error(dt(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,l=i.child;l;){if(l===r){o=!0,r=i,n=a;break}if(l===n){o=!0,n=i,r=a;break}l=l.sibling}if(!o){for(l=a.child;l;){if(l===r){o=!0,r=a,n=i;break}if(l===n){o=!0,n=a,r=i;break}l=l.sibling}if(!o)throw Error(dt(189))}}if(r.alternate!==n)throw Error(dt(190))}if(r.tag!==3)throw Error(dt(188));return r.stateNode.current===r?e:t}function _k(e){if(e=t8(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function JE(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var Sk,L2,Ek,Ak,_w=!1,va=[],Xo=null,Ko=null,Qo=null,vd=new Map,md=new Map,lh=[],eA="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Sw(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function tA(e,t){switch(e){case"focusin":case"focusout":Xo=null;break;case"dragenter":case"dragleave":Ko=null;break;case"mouseover":case"mouseout":Qo=null;break;case"pointerover":case"pointerout":vd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":md.delete(t.pointerId)}}function sh(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e=Sw(t,r,n,i,a),t!==null&&(t=Vd(t),t!==null&&L2(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function r8(e,t,r,n,i){switch(t){case"focusin":return Xo=sh(Xo,e,t,r,n,i),!0;case"dragenter":return Ko=sh(Ko,e,t,r,n,i),!0;case"mouseover":return Qo=sh(Qo,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return vd.set(a,sh(vd.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,md.set(a,sh(md.get(a)||null,e,t,r,n,i)),!0}return!1}function n8(e){var t=ll(e.target);if(t!==null){var r=Nl(t);if(r!==null){if(t=r.tag,t===13){if(t=wk(r),t!==null){e.blockedOn=t,Ak(e.lanePriority,function(){wn.unstable_runWithPriority(e.priority,function(){Ek(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function N0(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=z2(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=Vd(r),t!==null&&L2(t),e.blockedOn=r,!1;t.shift()}return!0}function rA(e,t,r){N0(e)&&r.delete(t)}function i8(){for(_w=!1;0<va.length;){var e=va[0];if(e.blockedOn!==null){e=Vd(e.blockedOn),e!==null&&Sk(e);break}for(var t=e.targetContainers;0<t.length;){var r=z2(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&va.shift()}Xo!==null&&N0(Xo)&&(Xo=null),Ko!==null&&N0(Ko)&&(Ko=null),Qo!==null&&N0(Qo)&&(Qo=null),vd.forEach(rA),md.forEach(rA)}function fh(e,t){e.blockedOn===t&&(e.blockedOn=null,_w||(_w=!0,wn.unstable_scheduleCallback(wn.unstable_NormalPriority,i8)))}function Ck(e){function t(i){return fh(i,e)}if(0<va.length){fh(va[0],e);for(var r=1;r<va.length;r++){var n=va[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Xo!==null&&fh(Xo,e),Ko!==null&&fh(Ko,e),Qo!==null&&fh(Qo,e),vd.forEach(t),md.forEach(t),r=0;r<lh.length;r++)n=lh[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<lh.length&&(r=lh[0],r.blockedOn===null);)n8(r),r.blockedOn===null&&lh.shift()}function zv(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Hs={animationend:zv("Animation","AnimationEnd"),animationiteration:zv("Animation","AnimationIteration"),animationstart:zv("Animation","AnimationStart"),transitionend:zv("Transition","TransitionEnd")},u1={},Tk={};eo&&(Tk=document.createElement("div").style,"AnimationEvent"in window||(delete Hs.animationend.animation,delete Hs.animationiteration.animation,delete Hs.animationstart.animation),"TransitionEvent"in window||delete Hs.transitionend.transition);function cg(e){if(u1[e])return u1[e];if(!Hs[e])return e;var t=Hs[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Tk)return u1[e]=t[r];return e}var Ok=cg("animationend"),Mk=cg("animationiteration"),kk=cg("animationstart"),Rk=cg("transitionend"),Pk=new Map,D2=new Map,a8=["abort","abort",Ok,"animationEnd",Mk,"animationIteration",kk,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Rk,"transitionEnd","waiting","waiting"];function $2(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],i=e[r+1];i="on"+(i[0].toUpperCase()+i.slice(1)),D2.set(n,t),Pk.set(n,i),Il(i,[n])}}var o8=wn.unstable_now;o8();var Fr=8;function zs(e){if(1&e)return Fr=15,1;if(2&e)return Fr=14,2;if(4&e)return Fr=13,4;var t=24&e;return t!==0?(Fr=12,t):e&32?(Fr=11,32):(t=192&e,t!==0?(Fr=10,t):e&256?(Fr=9,256):(t=3584&e,t!==0?(Fr=8,t):e&4096?(Fr=7,4096):(t=4186112&e,t!==0?(Fr=6,t):(t=62914560&e,t!==0?(Fr=5,t):e&67108864?(Fr=4,67108864):e&134217728?(Fr=3,134217728):(t=805306368&e,t!==0?(Fr=2,t):1073741824&e?(Fr=1,1073741824):(Fr=8,e))))))}function u8(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function l8(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(dt(358,e))}}function gd(e,t){var r=e.pendingLanes;if(r===0)return Fr=0;var n=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,l=e.pingedLanes;if(a!==0)n=a,i=Fr=15;else if(a=r&134217727,a!==0){var s=a&~o;s!==0?(n=zs(s),i=Fr):(l&=a,l!==0&&(n=zs(l),i=Fr))}else a=r&~o,a!==0?(n=zs(a),i=Fr):l!==0&&(n=zs(l),i=Fr);if(n===0)return 0;if(n=31-au(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&!(t&o)){if(zs(t),i<=Fr)return t;Fr=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-au(t),i=1<<r,n|=e[r],t&=~i;return n}function Ik(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function lm(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=Us(24&~t),e===0?lm(10,t):e;case 10:return e=Us(192&~t),e===0?lm(8,t):e;case 8:return e=Us(3584&~t),e===0&&(e=Us(4186112&~t),e===0&&(e=512)),e;case 2:return t=Us(805306368&~t),t===0&&(t=268435456),t}throw Error(dt(358,e))}function Us(e){return e&-e}function l1(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function hg(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-au(t),e[t]=r}var au=Math.clz32?Math.clz32:c8,s8=Math.log,f8=Math.LN2;function c8(e){return e===0?32:31-(s8(e)/f8|0)|0}var h8=wn.unstable_UserBlockingPriority,d8=wn.unstable_runWithPriority,L0=!0;function p8(e,t,r,n){ul||F2();var i=B2,a=ul;ul=!0;try{bk(i,e,t,r,n)}finally{(ul=a)||N2()}}function v8(e,t,r,n){d8(h8,B2.bind(null,e,t,r,n))}function B2(e,t,r,n){if(L0){var i;if((i=(t&4)===0)&&0<va.length&&-1<eA.indexOf(e))e=Sw(null,e,t,r,n),va.push(e);else{var a=z2(e,t,r,n);if(a===null)i&&tA(e,n);else{if(i){if(-1<eA.indexOf(e)){e=Sw(a,e,t,r,n),va.push(e);return}if(r8(a,e,t,r,n))return;tA(e,n)}qk(e,t,n,null,r)}}}}function z2(e,t,r,n){var i=P2(n);if(i=ll(i),i!==null){var a=Nl(i);if(a===null)i=null;else{var o=a.tag;if(o===13){if(i=wk(a),i!==null)return i;i=null}else if(o===3){if(a.stateNode.hydrate)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return qk(e,t,n,i,r),null}var Go=null,U2=null,D0=null;function Fk(){if(D0)return D0;var e,t=U2,r=t.length,n,i="value"in Go?Go.value:Go.textContent,a=i.length;for(e=0;e<r&&t[e]===i[e];e++);var o=r-e;for(n=1;n<=o&&t[r-n]===i[a-n];n++);return D0=i.slice(e,1<n?1-n:void 0)}function $0(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Uv(){return!0}function nA(){return!1}function gi(e){function t(r,n,i,a,o){this._reactName=r,this._targetInst=i,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(a):a[l]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Uv:nA,this.isPropagationStopped=nA,this}return Ur(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Uv)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Uv)},persist:function(){},isPersistent:Uv}),t}var Bf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},j2=gi(Bf),qd=Ur({},Bf,{view:0,detail:0}),m8=gi(qd),s1,f1,ch,dg=Ur({},qd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:G2,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ch&&(ch&&e.type==="mousemove"?(s1=e.screenX-ch.screenX,f1=e.screenY-ch.screenY):f1=s1=0,ch=e),s1)},movementY:function(e){return"movementY"in e?e.movementY:f1}}),iA=gi(dg),g8=Ur({},dg,{dataTransfer:0}),y8=gi(g8),b8=Ur({},qd,{relatedTarget:0}),c1=gi(b8),x8=Ur({},Bf,{animationName:0,elapsedTime:0,pseudoElement:0}),w8=gi(x8),_8=Ur({},Bf,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),S8=gi(_8),E8=Ur({},Bf,{data:0}),aA=gi(E8),A8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},C8={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},T8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function O8(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=T8[e])?!!t[e]:!1}function G2(){return O8}var M8=Ur({},qd,{key:function(e){if(e.key){var t=A8[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$0(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?C8[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:G2,charCode:function(e){return e.type==="keypress"?$0(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$0(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),k8=gi(M8),R8=Ur({},dg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),oA=gi(R8),P8=Ur({},qd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:G2}),I8=gi(P8),F8=Ur({},Bf,{propertyName:0,elapsedTime:0,pseudoElement:0}),N8=gi(F8),L8=Ur({},dg,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),D8=gi(L8),$8=[9,13,27,32],W2=eo&&"CompositionEvent"in window,Yh=null;eo&&"documentMode"in document&&(Yh=document.documentMode);var B8=eo&&"TextEvent"in window&&!Yh,Nk=eo&&(!W2||Yh&&8<Yh&&11>=Yh),uA=String.fromCharCode(32),lA=!1;function Lk(e,t){switch(e){case"keyup":return $8.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dk(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var qs=!1;function z8(e,t){switch(e){case"compositionend":return Dk(t);case"keypress":return t.which!==32?null:(lA=!0,uA);case"textInput":return e=t.data,e===uA&&lA?null:e;default:return null}}function U8(e,t){if(qs)return e==="compositionend"||!W2&&Lk(e,t)?(e=Fk(),D0=U2=Go=null,qs=!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.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nk&&t.locale!=="ko"?null:t.data;default:return null}}var j8={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function sA(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!j8[e.type]:t==="textarea"}function $k(e,t,r,n){gk(n),t=sm(t,"onChange"),0<t.length&&(r=new j2("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Xh=null,yd=null;function G8(e){Gk(e,0)}function pg(e){var t=Ys(e);if(fk(t))return e}function W8(e,t){if(e==="change")return t}var Bk=!1;if(eo){var h1;if(eo){var d1="oninput"in document;if(!d1){var fA=document.createElement("div");fA.setAttribute("oninput","return;"),d1=typeof fA.oninput=="function"}h1=d1}else h1=!1;Bk=h1&&(!document.documentMode||9<document.documentMode)}function cA(){Xh&&(Xh.detachEvent("onpropertychange",zk),yd=Xh=null)}function zk(e){if(e.propertyName==="value"&&pg(yd)){var t=[];if($k(t,yd,e,P2(e)),e=G8,ul)e(t);else{ul=!0;try{I2(e,t)}finally{ul=!1,N2()}}}}function H8(e,t,r){e==="focusin"?(cA(),Xh=t,yd=r,Xh.attachEvent("onpropertychange",zk)):e==="focusout"&&cA()}function q8(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pg(yd)}function V8(e,t){if(e==="click")return pg(t)}function Y8(e,t){if(e==="input"||e==="change")return pg(t)}function X8(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Oi=typeof Object.is=="function"?Object.is:X8,K8=Object.prototype.hasOwnProperty;function bd(e,t){if(Oi(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!K8.call(t,r[n])||!Oi(e[r[n]],t[r[n]]))return!1;return!0}function hA(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dA(e,t){var r=hA(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=hA(r)}}function Uk(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Uk(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function pA(){for(var e=window,t=am();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=am(e.document)}return t}function Ew(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")}var Q8=eo&&"documentMode"in document&&11>=document.documentMode,Vs=null,Aw=null,Kh=null,Cw=!1;function vA(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Cw||Vs==null||Vs!==am(n)||(n=Vs,"selectionStart"in n&&Ew(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Kh&&bd(Kh,n)||(Kh=n,n=sm(Aw,"onSelect"),0<n.length&&(t=new j2("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Vs)))}$2("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);$2("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);$2(a8,2);for(var mA="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),p1=0;p1<mA.length;p1++)D2.set(mA[p1],0);bf("onMouseEnter",["mouseout","mouseover"]);bf("onMouseLeave",["mouseout","mouseover"]);bf("onPointerEnter",["pointerout","pointerover"]);bf("onPointerLeave",["pointerout","pointerover"]);Il("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Il("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Il("onBeforeInput",["compositionend","keypress","textInput","paste"]);Il("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Il("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Il("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jk=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nh));function gA(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,e8(n,t,void 0,e),e.currentTarget=null}function Gk(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var l=n[o],s=l.instance,f=l.currentTarget;if(l=l.listener,s!==a&&i.isPropagationStopped())break e;gA(i,l,f),a=s}else for(o=0;o<n.length;o++){if(l=n[o],s=l.instance,f=l.currentTarget,l=l.listener,s!==a&&i.isPropagationStopped())break e;gA(i,l,f),a=s}}}if(um)throw e=ww,um=!1,ww=null,e}function Nr(e,t){var r=Yk(t),n=e+"__bubble";r.has(n)||(Hk(t,e,2,!1),r.add(n))}var yA="_reactListening"+Math.random().toString(36).slice(2);function Wk(e){e[yA]||(e[yA]=!0,uk.forEach(function(t){jk.has(t)||bA(t,!1,e,null),bA(t,!0,e,null)}))}function bA(e,t,r,n){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,a=r;if(e==="selectionchange"&&r.nodeType!==9&&(a=r.ownerDocument),n!==null&&!t&&jk.has(e)){if(e!=="scroll")return;i|=2,a=n}var o=Yk(a),l=e+"__"+(t?"capture":"bubble");o.has(l)||(t&&(i|=4),Hk(a,e,i,t),o.add(l))}function Hk(e,t,r,n){var i=D2.get(t);switch(i===void 0?2:i){case 0:i=p8;break;case 1:i=v8;break;default:i=B2}r=i.bind(null,t,r,e),i=void 0,!xw||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),n?i!==void 0?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):i!==void 0?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function qk(e,t,r,n,i){var a=n;if(!(t&1)&&!(t&2)&&n!==null)e:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var l=n.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=n.return;o!==null;){var s=o.tag;if((s===3||s===4)&&(s=o.stateNode.containerInfo,s===i||s.nodeType===8&&s.parentNode===i))return;o=o.return}for(;l!==null;){if(o=ll(l),o===null)return;if(s=o.tag,s===5||s===6){n=a=o;continue e}l=l.parentNode}}n=n.return}K6(function(){var f=a,d=P2(r),g=[];e:{var v=Pk.get(e);if(v!==void 0){var y=j2,E=e;switch(e){case"keypress":if($0(r)===0)break e;case"keydown":case"keyup":y=k8;break;case"focusin":E="focus",y=c1;break;case"focusout":E="blur",y=c1;break;case"beforeblur":case"afterblur":y=c1;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=iA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=y8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=I8;break;case Ok:case Mk:case kk:y=w8;break;case Rk:y=N8;break;case"scroll":y=m8;break;case"wheel":y=D8;break;case"copy":case"cut":case"paste":y=S8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=oA}var M=(t&4)!==0,x=!M&&e==="scroll",w=M?v!==null?v+"Capture":null:v;M=[];for(var _=f,T;_!==null;){T=_;var C=T.stateNode;if(T.tag===5&&C!==null&&(T=C,w!==null&&(C=pd(_,w),C!=null&&M.push(xd(_,C,T)))),x)break;_=_.return}0<M.length&&(v=new y(v,E,null,r,d),g.push({event:v,listeners:M}))}}if(!(t&7)){e:{if(v=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",v&&!(t&16)&&(E=r.relatedTarget||r.fromElement)&&(ll(E)||E[zf]))break e;if((y||v)&&(v=d.window===d?d:(v=d.ownerDocument)?v.defaultView||v.parentWindow:window,y?(E=r.relatedTarget||r.toElement,y=f,E=E?ll(E):null,E!==null&&(x=Nl(E),E!==x||E.tag!==5&&E.tag!==6)&&(E=null)):(y=null,E=f),y!==E)){if(M=iA,C="onMouseLeave",w="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(M=oA,C="onPointerLeave",w="onPointerEnter",_="pointer"),x=y==null?v:Ys(y),T=E==null?v:Ys(E),v=new M(C,_+"leave",y,r,d),v.target=x,v.relatedTarget=T,C=null,ll(d)===f&&(M=new M(w,_+"enter",E,r,d),M.target=T,M.relatedTarget=x,C=M),x=C,y&&E)t:{for(M=y,w=E,_=0,T=M;T;T=ks(T))_++;for(T=0,C=w;C;C=ks(C))T++;for(;0<_-T;)M=ks(M),_--;for(;0<T-_;)w=ks(w),T--;for(;_--;){if(M===w||w!==null&&M===w.alternate)break t;M=ks(M),w=ks(w)}M=null}else M=null;y!==null&&xA(g,v,y,M,!1),E!==null&&x!==null&&xA(g,x,E,M,!0)}}e:{if(v=f?Ys(f):window,y=v.nodeName&&v.nodeName.toLowerCase(),y==="select"||y==="input"&&v.type==="file")var F=W8;else if(sA(v))if(Bk)F=Y8;else{F=q8;var L=H8}else(y=v.nodeName)&&y.toLowerCase()==="input"&&(v.type==="checkbox"||v.type==="radio")&&(F=V8);if(F&&(F=F(e,f))){$k(g,F,r,d);break e}L&&L(e,v,f),e==="focusout"&&(L=v._wrapperState)&&L.controlled&&v.type==="number"&&hw(v,"number",v.value)}switch(L=f?Ys(f):window,e){case"focusin":(sA(L)||L.contentEditable==="true")&&(Vs=L,Aw=f,Kh=null);break;case"focusout":Kh=Aw=Vs=null;break;case"mousedown":Cw=!0;break;case"contextmenu":case"mouseup":case"dragend":Cw=!1,vA(g,r,d);break;case"selectionchange":if(Q8)break;case"keydown":case"keyup":vA(g,r,d)}var V;if(W2)e:{switch(e){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else qs?Lk(e,r)&&(j="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(j="onCompositionStart");j&&(Nk&&r.locale!=="ko"&&(qs||j!=="onCompositionStart"?j==="onCompositionEnd"&&qs&&(V=Fk()):(Go=d,U2="value"in Go?Go.value:Go.textContent,qs=!0)),L=sm(f,j),0<L.length&&(j=new aA(j,e,null,r,d),g.push({event:j,listeners:L}),V?j.data=V:(V=Dk(r),V!==null&&(j.data=V)))),(V=B8?z8(e,r):U8(e,r))&&(f=sm(f,"onBeforeInput"),0<f.length&&(d=new aA("onBeforeInput","beforeinput",null,r,d),g.push({event:d,listeners:f}),d.data=V))}Gk(g,t)})}function xd(e,t,r){return{instance:e,listener:t,currentTarget:r}}function sm(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=pd(e,r),a!=null&&n.unshift(xd(e,a,i)),a=pd(e,t),a!=null&&n.push(xd(e,a,i))),e=e.return}return n}function ks(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function xA(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var l=r,s=l.alternate,f=l.stateNode;if(s!==null&&s===n)break;l.tag===5&&f!==null&&(l=f,i?(s=pd(r,a),s!=null&&o.unshift(xd(r,s,l))):i||(s=pd(r,a),s!=null&&o.push(xd(r,s,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}function fm(){}var v1=null,m1=null;function Vk(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Tw(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var wA=typeof setTimeout=="function"?setTimeout:void 0,Z8=typeof clearTimeout=="function"?clearTimeout:void 0;function H2(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function uf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function _A(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var g1=0;function J8(e){return{$$typeof:k2,toString:e,valueOf:e}}var vg=Math.random().toString(36).slice(2),Wo="__reactFiber$"+vg,cm="__reactProps$"+vg,zf="__reactContainer$"+vg,SA="__reactEvents$"+vg;function ll(e){var t=e[Wo];if(t)return t;for(var r=e.parentNode;r;){if(t=r[zf]||r[Wo]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=_A(e);e!==null;){if(r=e[Wo])return r;e=_A(e)}return t}e=r,r=e.parentNode}return null}function Vd(e){return e=e[Wo]||e[zf],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ys(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(dt(33))}function mg(e){return e[cm]||null}function Yk(e){var t=e[SA];return t===void 0&&(t=e[SA]=new Set),t}var Ow=[],Xs=-1;function vu(e){return{current:e}}function Dr(e){0>Xs||(e.current=Ow[Xs],Ow[Xs]=null,Xs--)}function Vr(e,t){Xs++,Ow[Xs]=e.current,e.current=t}var ou={},$n=vu(ou),ri=vu(!1),bl=ou;function xf(e,t){var r=e.type.contextTypes;if(!r)return ou;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in r)i[a]=t[a];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ni(e){return e=e.childContextTypes,e!=null}function hm(){Dr(ri),Dr($n)}function EA(e,t,r){if($n.current!==ou)throw Error(dt(168));Vr($n,t),Vr(ri,r)}function Xk(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(dt(108,rf(t)||"Unknown",i));return Ur({},r,n)}function B0(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ou,bl=$n.current,Vr($n,e),Vr(ri,ri.current),!0}function AA(e,t,r){var n=e.stateNode;if(!n)throw Error(dt(169));r?(e=Xk(e,t,bl),n.__reactInternalMemoizedMergedChildContext=e,Dr(ri),Dr($n),Vr($n,e)):Dr(ri),Vr(ri,r)}var q2=null,pl=null,eL=wn.unstable_runWithPriority,V2=wn.unstable_scheduleCallback,Mw=wn.unstable_cancelCallback,tL=wn.unstable_shouldYield,CA=wn.unstable_requestPaint,kw=wn.unstable_now,rL=wn.unstable_getCurrentPriorityLevel,gg=wn.unstable_ImmediatePriority,Kk=wn.unstable_UserBlockingPriority,Qk=wn.unstable_NormalPriority,Zk=wn.unstable_LowPriority,Jk=wn.unstable_IdlePriority,y1={},nL=CA!==void 0?CA:function(){},Ya=null,z0=null,b1=!1,TA=kw(),Ln=1e4>TA?kw:function(){return kw()-TA};function wf(){switch(rL()){case gg:return 99;case Kk:return 98;case Qk:return 97;case Zk:return 96;case Jk:return 95;default:throw Error(dt(332))}}function eR(e){switch(e){case 99:return gg;case 98:return Kk;case 97:return Qk;case 96:return Zk;case 95:return Jk;default:throw Error(dt(332))}}function xl(e,t){return e=eR(e),eL(e,t)}function wd(e,t,r){return e=eR(e),V2(e,t,r)}function Ea(){if(z0!==null){var e=z0;z0=null,Mw(e)}tR()}function tR(){if(!b1&&Ya!==null){b1=!0;var e=0;try{var t=Ya;xl(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),Ya=null}catch(r){throw Ya!==null&&(Ya=Ya.slice(e+1)),V2(gg,Ea),r}finally{b1=!1}}}var iL=Fl.ReactCurrentBatchConfig;function Yi(e,t){if(e&&e.defaultProps){t=Ur({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var dm=vu(null),pm=null,Ks=null,vm=null;function Y2(){vm=Ks=pm=null}function X2(e){var t=dm.current;Dr(dm),e.type._context._currentValue=t}function rR(e,t){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t){if(r===null||(r.childLanes&t)===t)break;r.childLanes|=t}else e.childLanes|=t,r!==null&&(r.childLanes|=t);e=e.return}}function lf(e,t){pm=e,vm=Ks=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ki=!0),e.firstContext=null)}function Ii(e,t){if(vm!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(vm=e,t=1073741823),t={context:e,observedBits:t,next:null},Ks===null){if(pm===null)throw Error(dt(308));Ks=t,pm.dependencies={lanes:0,firstContext:t,responders:null}}else Ks=Ks.next=t;return e._currentValue}var Do=!1;function K2(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function nR(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Zo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Jo(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function OA(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,a=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};a===null?i=a=o:a=a.next=o,r=r.next}while(r!==null);a===null?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function _d(e,t,r,n){var i=e.updateQueue;Do=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var s=l,f=s.next;s.next=null,o===null?a=f:o.next=f,o=s;var d=e.alternate;if(d!==null){d=d.updateQueue;var g=d.lastBaseUpdate;g!==o&&(g===null?d.firstBaseUpdate=f:g.next=f,d.lastBaseUpdate=s)}}if(a!==null){g=i.baseState,o=0,d=f=s=null;do{l=a.lane;var v=a.eventTime;if((n&l)===l){d!==null&&(d=d.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=e,E=a;switch(l=t,v=r,E.tag){case 1:if(y=E.payload,typeof y=="function"){g=y.call(v,g,l);break e}g=y;break e;case 3:y.flags=y.flags&-4097|64;case 0:if(y=E.payload,l=typeof y=="function"?y.call(v,g,l):y,l==null)break e;g=Ur({},g,l);break e;case 2:Do=!0}}a.callback!==null&&(e.flags|=32,l=i.effects,l===null?i.effects=[a]:l.push(a))}else v={eventTime:v,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(f=d=v,s=g):d=d.next=v,o|=l;if(a=a.next,a===null){if(l=i.shared.pending,l===null)break;a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}while(1);d===null&&(s=g),i.baseState=s,i.firstBaseUpdate=f,i.lastBaseUpdate=d,Xd|=o,e.lanes=o,e.memoizedState=g}}function MA(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(i!==null){if(n.callback=null,n=r,typeof i!="function")throw Error(dt(191,i));i.call(n)}}}var iR=new lg.Component().refs;function mm(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:Ur({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var yg={isMounted:function(e){return(e=e._reactInternals)?Nl(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=vi(),i=eu(e),a=Zo(n,i);a.payload=t,r!=null&&(a.callback=r),Jo(e,a),tu(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=vi(),i=eu(e),a=Zo(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),Jo(e,a),tu(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=vi(),n=eu(e),i=Zo(r,n);i.tag=2,t!=null&&(i.callback=t),Jo(e,i),tu(e,n,r)}};function kA(e,t,r,n,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,a,o):t.prototype&&t.prototype.isPureReactComponent?!bd(r,n)||!bd(i,a):!0}function aR(e,t,r){var n=!1,i=ou,a=t.contextType;return typeof a=="object"&&a!==null?a=Ii(a):(i=ni(t)?bl:$n.current,n=t.contextTypes,a=(n=n!=null)?xf(e,i):ou),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=yg,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function RA(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&yg.enqueueReplaceState(t,t.state,null)}function Rw(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=iR,K2(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Ii(a):(a=ni(t)?bl:$n.current,i.context=xf(e,a)),_d(e,r,i,n),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(mm(e,t,a,r),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&yg.enqueueReplaceState(i,i.state,null),_d(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var jv=Array.isArray;function hh(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(dt(309));var n=r.stateNode}if(!n)throw Error(dt(147,e));var i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var o=n.refs;o===iR&&(o=n.refs={}),a===null?delete o[i]:o[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(dt(284));if(!r._owner)throw Error(dt(290,e))}return e}function Gv(e,t){if(e.type!=="textarea")throw Error(dt(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function oR(e){function t(x,w){if(e){var _=x.lastEffect;_!==null?(_.nextEffect=w,x.lastEffect=w):x.firstEffect=x.lastEffect=w,w.nextEffect=null,w.flags=8}}function r(x,w){if(!e)return null;for(;w!==null;)t(x,w),w=w.sibling;return null}function n(x,w){for(x=new Map;w!==null;)w.key!==null?x.set(w.key,w):x.set(w.index,w),w=w.sibling;return x}function i(x,w){return x=lu(x,w),x.index=0,x.sibling=null,x}function a(x,w,_){return x.index=_,e?(_=x.alternate,_!==null?(_=_.index,_<w?(x.flags=2,w):_):(x.flags=2,w)):w}function o(x){return e&&x.alternate===null&&(x.flags=2),x}function l(x,w,_,T){return w===null||w.tag!==6?(w=E1(_,x.mode,T),w.return=x,w):(w=i(w,_),w.return=x,w)}function s(x,w,_,T){return w!==null&&w.elementType===_.type?(T=i(w,_.props),T.ref=hh(x,w,_),T.return=x,T):(T=W0(_.type,_.key,_.props,null,x.mode,T),T.ref=hh(x,w,_),T.return=x,T)}function f(x,w,_,T){return w===null||w.tag!==4||w.stateNode.containerInfo!==_.containerInfo||w.stateNode.implementation!==_.implementation?(w=A1(_,x.mode,T),w.return=x,w):(w=i(w,_.children||[]),w.return=x,w)}function d(x,w,_,T,C){return w===null||w.tag!==7?(w=hf(_,x.mode,T,C),w.return=x,w):(w=i(w,_),w.return=x,w)}function g(x,w,_){if(typeof w=="string"||typeof w=="number")return w=E1(""+w,x.mode,_),w.return=x,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Ih:return _=W0(w.type,w.key,w.props,null,x.mode,_),_.ref=hh(x,null,w),_.return=x,_;case ol:return w=A1(w,x.mode,_),w.return=x,w}if(jv(w)||oh(w))return w=hf(w,x.mode,_,null),w.return=x,w;Gv(x,w)}return null}function v(x,w,_,T){var C=w!==null?w.key:null;if(typeof _=="string"||typeof _=="number")return C!==null?null:l(x,w,""+_,T);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Ih:return _.key===C?_.type===Uo?d(x,w,_.props.children,T,C):s(x,w,_,T):null;case ol:return _.key===C?f(x,w,_,T):null}if(jv(_)||oh(_))return C!==null?null:d(x,w,_,T,null);Gv(x,_)}return null}function y(x,w,_,T,C){if(typeof T=="string"||typeof T=="number")return x=x.get(_)||null,l(w,x,""+T,C);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case Ih:return x=x.get(T.key===null?_:T.key)||null,T.type===Uo?d(w,x,T.props.children,C,T.key):s(w,x,T,C);case ol:return x=x.get(T.key===null?_:T.key)||null,f(w,x,T,C)}if(jv(T)||oh(T))return x=x.get(_)||null,d(w,x,T,C,null);Gv(w,T)}return null}function E(x,w,_,T){for(var C=null,F=null,L=w,V=w=0,j=null;L!==null&&V<_.length;V++){L.index>V?(j=L,L=null):j=L.sibling;var te=v(x,L,_[V],T);if(te===null){L===null&&(L=j);break}e&&L&&te.alternate===null&&t(x,L),w=a(te,w,V),F===null?C=te:F.sibling=te,F=te,L=j}if(V===_.length)return r(x,L),C;if(L===null){for(;V<_.length;V++)L=g(x,_[V],T),L!==null&&(w=a(L,w,V),F===null?C=L:F.sibling=L,F=L);return C}for(L=n(x,L);V<_.length;V++)j=y(L,x,V,_[V],T),j!==null&&(e&&j.alternate!==null&&L.delete(j.key===null?V:j.key),w=a(j,w,V),F===null?C=j:F.sibling=j,F=j);return e&&L.forEach(function(ge){return t(x,ge)}),C}function M(x,w,_,T){var C=oh(_);if(typeof C!="function")throw Error(dt(150));if(_=C.call(_),_==null)throw Error(dt(151));for(var F=C=null,L=w,V=w=0,j=null,te=_.next();L!==null&&!te.done;V++,te=_.next()){L.index>V?(j=L,L=null):j=L.sibling;var ge=v(x,L,te.value,T);if(ge===null){L===null&&(L=j);break}e&&L&&ge.alternate===null&&t(x,L),w=a(ge,w,V),F===null?C=ge:F.sibling=ge,F=ge,L=j}if(te.done)return r(x,L),C;if(L===null){for(;!te.done;V++,te=_.next())te=g(x,te.value,T),te!==null&&(w=a(te,w,V),F===null?C=te:F.sibling=te,F=te);return C}for(L=n(x,L);!te.done;V++,te=_.next())te=y(L,x,V,te.value,T),te!==null&&(e&&te.alternate!==null&&L.delete(te.key===null?V:te.key),w=a(te,w,V),F===null?C=te:F.sibling=te,F=te);return e&&L.forEach(function(me){return t(x,me)}),C}return function(x,w,_,T){var C=typeof _=="object"&&_!==null&&_.type===Uo&&_.key===null;C&&(_=_.props.children);var F=typeof _=="object"&&_!==null;if(F)switch(_.$$typeof){case Ih:e:{for(F=_.key,C=w;C!==null;){if(C.key===F){switch(C.tag){case 7:if(_.type===Uo){r(x,C.sibling),w=i(C,_.props.children),w.return=x,x=w;break e}break;default:if(C.elementType===_.type){r(x,C.sibling),w=i(C,_.props),w.ref=hh(x,C,_),w.return=x,x=w;break e}}r(x,C);break}else t(x,C);C=C.sibling}_.type===Uo?(w=hf(_.props.children,x.mode,T,_.key),w.return=x,x=w):(T=W0(_.type,_.key,_.props,null,x.mode,T),T.ref=hh(x,w,_),T.return=x,x=T)}return o(x);case ol:e:{for(C=_.key;w!==null;){if(w.key===C)if(w.tag===4&&w.stateNode.containerInfo===_.containerInfo&&w.stateNode.implementation===_.implementation){r(x,w.sibling),w=i(w,_.children||[]),w.return=x,x=w;break e}else{r(x,w);break}else t(x,w);w=w.sibling}w=A1(_,x.mode,T),w.return=x,x=w}return o(x)}if(typeof _=="string"||typeof _=="number")return _=""+_,w!==null&&w.tag===6?(r(x,w.sibling),w=i(w,_),w.return=x,x=w):(r(x,w),w=E1(_,x.mode,T),w.return=x,x=w),o(x);if(jv(_))return E(x,w,_,T);if(oh(_))return M(x,w,_,T);if(F&&Gv(x,_),typeof _>"u"&&!C)switch(x.tag){case 1:case 22:case 0:case 11:case 15:throw Error(dt(152,rf(x.type)||"Component"))}return r(x,w)}}var gm=oR(!0),uR=oR(!1),Yd={},ba=vu(Yd),Sd=vu(Yd),Ed=vu(Yd);function sl(e){if(e===Yd)throw Error(dt(174));return e}function Pw(e,t){switch(Vr(Ed,t),Vr(Sd,e),Vr(ba,Yd),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:mw(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=mw(t,e)}Dr(ba),Vr(ba,t)}function _f(){Dr(ba),Dr(Sd),Dr(Ed)}function PA(e){sl(Ed.current);var t=sl(ba.current),r=mw(t,e.type);t!==r&&(Vr(Sd,e),Vr(ba,r))}function Q2(e){Sd.current===e&&(Dr(ba),Dr(Sd))}var Hr=vu(0);function ym(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)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 Ka=null,Ho=null,xa=!1;function lR(e,t){var r=Mi(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function IA(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Iw(e){if(xa){var t=Ho;if(t){var r=t;if(!IA(e,t)){if(t=uf(r.nextSibling),!t||!IA(e,t)){e.flags=e.flags&-1025|2,xa=!1,Ka=e;return}lR(Ka,r)}Ka=e,Ho=uf(t.firstChild)}else e.flags=e.flags&-1025|2,xa=!1,Ka=e}}function FA(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ka=e}function Wv(e){if(e!==Ka)return!1;if(!xa)return FA(e),xa=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!Tw(t,e.memoizedProps))for(t=Ho;t;)lR(e,t),t=uf(t.nextSibling);if(FA(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(dt(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ho=uf(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ho=null}}else Ho=Ka?uf(e.stateNode.nextSibling):null;return!0}function x1(){Ho=Ka=null,xa=!1}var sf=[];function Z2(){for(var e=0;e<sf.length;e++)sf[e]._workInProgressVersionPrimary=null;sf.length=0}var Qh=Fl.ReactCurrentDispatcher,Ri=Fl.ReactCurrentBatchConfig,Ad=0,Qr=null,Nn=null,Mn=null,bm=!1,Zh=!1;function Zn(){throw Error(dt(321))}function J2(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Oi(e[r],t[r]))return!1;return!0}function eS(e,t,r,n,i,a){if(Ad=a,Qr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qh.current=e===null||e.memoizedState===null?oL:uL,e=r(n,i),Zh){a=0;do{if(Zh=!1,!(25>a))throw Error(dt(301));a+=1,Mn=Nn=null,t.updateQueue=null,Qh.current=lL,e=r(n,i)}while(Zh)}if(Qh.current=Sm,t=Nn!==null&&Nn.next!==null,Ad=0,Mn=Nn=Qr=null,bm=!1,t)throw Error(dt(300));return e}function fl(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mn===null?Qr.memoizedState=Mn=e:Mn=Mn.next=e,Mn}function Ll(){if(Nn===null){var e=Qr.alternate;e=e!==null?e.memoizedState:null}else e=Nn.next;var t=Mn===null?Qr.memoizedState:Mn.next;if(t!==null)Mn=t,Nn=e;else{if(e===null)throw Error(dt(310));Nn=e,e={memoizedState:Nn.memoizedState,baseState:Nn.baseState,baseQueue:Nn.baseQueue,queue:Nn.queue,next:null},Mn===null?Qr.memoizedState=Mn=e:Mn=Mn.next=e}return Mn}function ma(e,t){return typeof t=="function"?t(e):t}function dh(e){var t=Ll(),r=t.queue;if(r===null)throw Error(dt(311));r.lastRenderedReducer=e;var n=Nn,i=n.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(i!==null){i=i.next,n=n.baseState;var l=o=a=null,s=i;do{var f=s.lane;if((Ad&f)===f)l!==null&&(l=l.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),n=s.eagerReducer===e?s.eagerState:e(n,s.action);else{var d={lane:f,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};l===null?(o=l=d,a=n):l=l.next=d,Qr.lanes|=f,Xd|=f}s=s.next}while(s!==null&&s!==i);l===null?a=n:l.next=o,Oi(n,t.memoizedState)||(Ki=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function ph(e){var t=Ll(),r=t.queue;if(r===null)throw Error(dt(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(i!==null){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Oi(a,t.memoizedState)||(Ki=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function NA(e,t,r){var n=t._getVersion;n=n(t._source);var i=t._workInProgressVersionPrimary;if(i!==null?e=i===n:(e=e.mutableReadLanes,(e=(Ad&e)===e)&&(t._workInProgressVersionPrimary=n,sf.push(t))),e)return r(t._source);throw sf.push(t),Error(dt(350))}function sR(e,t,r,n){var i=Hn;if(i===null)throw Error(dt(349));var a=t._getVersion,o=a(t._source),l=Qh.current,s=l.useState(function(){return NA(i,t,r)}),f=s[1],d=s[0];s=Mn;var g=e.memoizedState,v=g.refs,y=v.getSnapshot,E=g.source;g=g.subscribe;var M=Qr;return e.memoizedState={refs:v,source:t,subscribe:n},l.useEffect(function(){v.getSnapshot=r,v.setSnapshot=f;var x=a(t._source);if(!Oi(o,x)){x=r(t._source),Oi(d,x)||(f(x),x=eu(M),i.mutableReadLanes|=x&i.pendingLanes),x=i.mutableReadLanes,i.entangledLanes|=x;for(var w=i.entanglements,_=x;0<_;){var T=31-au(_),C=1<<T;w[T]|=x,_&=~C}}},[r,t,n]),l.useEffect(function(){return n(t._source,function(){var x=v.getSnapshot,w=v.setSnapshot;try{w(x(t._source));var _=eu(M);i.mutableReadLanes|=_&i.pendingLanes}catch(T){w(function(){throw T})}})},[t,n]),Oi(y,r)&&Oi(E,t)&&Oi(g,n)||(e={pending:null,dispatch:null,lastRenderedReducer:ma,lastRenderedState:d},e.dispatch=f=nS.bind(null,Qr,e),s.queue=e,s.baseQueue=null,d=NA(i,t,r),s.memoizedState=s.baseState=d),d}function fR(e,t,r){var n=Ll();return sR(n,e,t,r)}function vh(e){var t=fl();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ma,lastRenderedState:e},e=e.dispatch=nS.bind(null,Qr,e),[t.memoizedState,e]}function xm(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Qr.updateQueue,t===null?(t={lastEffect:null},Qr.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function LA(e){var t=fl();return e={current:e},t.memoizedState=e}function wm(){return Ll().memoizedState}function Fw(e,t,r,n){var i=fl();Qr.flags|=e,i.memoizedState=xm(1|t,r,void 0,n===void 0?null:n)}function tS(e,t,r,n){var i=Ll();n=n===void 0?null:n;var a=void 0;if(Nn!==null){var o=Nn.memoizedState;if(a=o.destroy,n!==null&&J2(n,o.deps)){xm(t,r,a,n);return}}Qr.flags|=e,i.memoizedState=xm(1|t,r,a,n)}function DA(e,t){return Fw(516,4,e,t)}function _m(e,t){return tS(516,4,e,t)}function cR(e,t){return tS(4,2,e,t)}function hR(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function dR(e,t,r){return r=r!=null?r.concat([e]):null,tS(4,2,hR.bind(null,t,e),r)}function rS(){}function pR(e,t){var r=Ll();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&J2(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function vR(e,t){var r=Ll();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&J2(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function aL(e,t){var r=wf();xl(98>r?98:r,function(){e(!0)}),xl(97<r?97:r,function(){var n=Ri.transition;Ri.transition=1;try{e(!1),t()}finally{Ri.transition=n}})}function nS(e,t,r){var n=vi(),i=eu(e),a={lane:i,action:r,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(o===null?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Qr||o!==null&&o===Qr)Zh=bm=!0;else{if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,r);if(a.eagerReducer=o,a.eagerState=s,Oi(s,l))return}catch{}finally{}tu(e,i,n)}}var Sm={readContext:Ii,useCallback:Zn,useContext:Zn,useEffect:Zn,useImperativeHandle:Zn,useLayoutEffect:Zn,useMemo:Zn,useReducer:Zn,useRef:Zn,useState:Zn,useDebugValue:Zn,useDeferredValue:Zn,useTransition:Zn,useMutableSource:Zn,useOpaqueIdentifier:Zn,unstable_isNewReconciler:!1},oL={readContext:Ii,useCallback:function(e,t){return fl().memoizedState=[e,t===void 0?null:t],e},useContext:Ii,useEffect:DA,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Fw(4,2,hR.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Fw(4,2,e,t)},useMemo:function(e,t){var r=fl();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=fl();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=nS.bind(null,Qr,e),[n.memoizedState,e]},useRef:LA,useState:vh,useDebugValue:rS,useDeferredValue:function(e){var t=vh(e),r=t[0],n=t[1];return DA(function(){var i=Ri.transition;Ri.transition=1;try{n(e)}finally{Ri.transition=i}},[e]),r},useTransition:function(){var e=vh(!1),t=e[0];return e=aL.bind(null,e[1]),LA(e),[e,t]},useMutableSource:function(e,t,r){var n=fl();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},sR(n,e,t,r)},useOpaqueIdentifier:function(){if(xa){var e=!1,t=J8(function(){throw e||(e=!0,r("r:"+(g1++).toString(36))),Error(dt(355))}),r=vh(t)[1];return!(Qr.mode&2)&&(Qr.flags|=516,xm(5,function(){r("r:"+(g1++).toString(36))},void 0,null)),t}return t="r:"+(g1++).toString(36),vh(t),t},unstable_isNewReconciler:!1},uL={readContext:Ii,useCallback:pR,useContext:Ii,useEffect:_m,useImperativeHandle:dR,useLayoutEffect:cR,useMemo:vR,useReducer:dh,useRef:wm,useState:function(){return dh(ma)},useDebugValue:rS,useDeferredValue:function(e){var t=dh(ma),r=t[0],n=t[1];return _m(function(){var i=Ri.transition;Ri.transition=1;try{n(e)}finally{Ri.transition=i}},[e]),r},useTransition:function(){var e=dh(ma)[0];return[wm().current,e]},useMutableSource:fR,useOpaqueIdentifier:function(){return dh(ma)[0]},unstable_isNewReconciler:!1},lL={readContext:Ii,useCallback:pR,useContext:Ii,useEffect:_m,useImperativeHandle:dR,useLayoutEffect:cR,useMemo:vR,useReducer:ph,useRef:wm,useState:function(){return ph(ma)},useDebugValue:rS,useDeferredValue:function(e){var t=ph(ma),r=t[0],n=t[1];return _m(function(){var i=Ri.transition;Ri.transition=1;try{n(e)}finally{Ri.transition=i}},[e]),r},useTransition:function(){var e=ph(ma)[0];return[wm().current,e]},useMutableSource:fR,useOpaqueIdentifier:function(){return ph(ma)[0]},unstable_isNewReconciler:!1},sL=Fl.ReactCurrentOwner,Ki=!1;function Jn(e,t,r,n){t.child=e===null?uR(t,null,r,n):gm(t,e.child,r,n)}function $A(e,t,r,n,i){r=r.render;var a=t.ref;return lf(t,i),n=eS(e,t,r,n,a,i),e!==null&&!Ki?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Qa(e,t,i)):(t.flags|=1,Jn(e,t,n,i),t.child)}function BA(e,t,r,n,i,a){if(e===null){var o=r.type;return typeof o=="function"&&!sS(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,mR(e,t,o,n,i,a)):(e=W0(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}return o=e.child,!(i&a)&&(i=o.memoizedProps,r=r.compare,r=r!==null?r:bd,r(i,n)&&e.ref===t.ref)?Qa(e,t,a):(t.flags|=1,e=lu(o,n),e.ref=t.ref,e.return=t,t.child=e)}function mR(e,t,r,n,i,a){if(e!==null&&bd(e.memoizedProps,n)&&e.ref===t.ref)if(Ki=!1,(a&i)!==0)e.flags&16384&&(Ki=!0);else return t.lanes=e.lanes,Qa(e,t,a);return Nw(e,t,r,n,a)}function w1(e,t,r){var n=t.pendingProps,i=n.children,a=e!==null?e.memoizedState:null;if(n.mode==="hidden"||n.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},qv(t,r);else if(r&1073741824)t.memoizedState={baseLanes:0},qv(t,a!==null?a.baseLanes:r);else return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},qv(t,e),null;else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,qv(t,n);return Jn(e,t,i,r),t.child}function gR(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function Nw(e,t,r,n,i){var a=ni(r)?bl:$n.current;return a=xf(t,a),lf(t,i),r=eS(e,t,r,n,a,i),e!==null&&!Ki?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Qa(e,t,i)):(t.flags|=1,Jn(e,t,r,i),t.child)}function zA(e,t,r,n,i){if(ni(r)){var a=!0;B0(t)}else a=!1;if(lf(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),aR(t,r,n),Rw(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var s=o.context,f=r.contextType;typeof f=="object"&&f!==null?f=Ii(f):(f=ni(r)?bl:$n.current,f=xf(t,f));var d=r.getDerivedStateFromProps,g=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";g||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||s!==f)&&RA(t,o,n,f),Do=!1;var v=t.memoizedState;o.state=v,_d(t,n,o,i),s=t.memoizedState,l!==n||v!==s||ri.current||Do?(typeof d=="function"&&(mm(t,r,d,n),s=t.memoizedState),(l=Do||kA(t,r,l,n,v,s,f))?(g||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4)):(typeof o.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=n,t.memoizedState=s),o.props=n,o.state=s,o.context=f,n=l):(typeof o.componentDidMount=="function"&&(t.flags|=4),n=!1)}else{o=t.stateNode,nR(e,t),l=t.memoizedProps,f=t.type===t.elementType?l:Yi(t.type,l),o.props=f,g=t.pendingProps,v=o.context,s=r.contextType,typeof s=="object"&&s!==null?s=Ii(s):(s=ni(r)?bl:$n.current,s=xf(t,s));var y=r.getDerivedStateFromProps;(d=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==g||v!==s)&&RA(t,o,n,s),Do=!1,v=t.memoizedState,o.state=v,_d(t,n,o,i);var E=t.memoizedState;l!==g||v!==E||ri.current||Do?(typeof y=="function"&&(mm(t,r,y,n),E=t.memoizedState),(f=Do||kA(t,r,f,n,v,E,s))?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,E,s),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,E,s)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=E),o.props=n,o.state=E,o.context=s,n=f):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&v===e.memoizedState||(t.flags|=256),n=!1)}return Lw(e,t,r,n,a,i)}function Lw(e,t,r,n,i,a){gR(e,t);var o=(t.flags&64)!==0;if(!n&&!o)return i&&AA(t,r,!1),Qa(e,t,a);n=t.stateNode,sL.current=t;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=gm(t,e.child,null,a),t.child=gm(t,null,l,a)):Jn(e,t,l,a),t.memoizedState=n.state,i&&AA(t,r,!0),t.child}function UA(e){var t=e.stateNode;t.pendingContext?EA(e,t.pendingContext,t.pendingContext!==t.context):t.context&&EA(e,t.context,!1),Pw(e,t.containerInfo)}var Hv={dehydrated:null,retryLane:0};function jA(e,t,r){var n=t.pendingProps,i=Hr.current,a=!1,o;return(o=(t.flags&64)!==0)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!==0),o?(a=!0,t.flags&=-65):e!==null&&e.memoizedState===null||n.fallback===void 0||n.unstable_avoidThisFallback===!0||(i|=1),Vr(Hr,i&1),e===null?(n.fallback!==void 0&&Iw(t),e=n.children,i=n.fallback,a?(e=GA(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Hv,e):typeof n.unstable_expectedLoadTime=="number"?(e=GA(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=Hv,t.lanes=33554432,e):(r=fS({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?a?(n=HA(e,t,n.children,n.fallback,r),a=t.child,i=e.child.memoizedState,a.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},a.childLanes=e.childLanes&~r,t.memoizedState=Hv,n):(r=WA(e,t,n.children,r),t.memoizedState=null,r):a?(n=HA(e,t,n.children,n.fallback,r),a=t.child,i=e.child.memoizedState,a.memoizedState=i===null?{baseLanes:r}:{baseLanes:i.baseLanes|r},a.childLanes=e.childLanes&~r,t.memoizedState=Hv,n):(r=WA(e,t,n.children,r),t.memoizedState=null,r)}function GA(e,t,r,n){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},!(i&2)&&a!==null?(a.childLanes=0,a.pendingProps=t):a=fS(t,i,0,null),r=hf(r,i,n,null),a.return=e,r.return=e,a.sibling=r,e.child=a,r}function WA(e,t,r,n){var i=e.child;return e=i.sibling,r=lu(i,{mode:"visible",children:r}),!(t.mode&2)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=r}function HA(e,t,r,n,i){var a=t.mode,o=e.child;e=o.sibling;var l={mode:"hidden",children:r};return!(a&2)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,o=r.lastEffect,o!==null?(t.firstEffect=r.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):r=lu(o,l),e!==null?n=lu(e,n):(n=hf(n,a,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function qA(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),rR(e.return,t)}function _1(e,t,r,n,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=i,o.lastEffect=a)}function VA(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(Jn(e,t,n.children,r),n=Hr.current,n&2)n=n&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&qA(e,r);else if(e.tag===19)qA(e,r);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}n&=1}if(Vr(Hr,n),!(t.mode&2))t.memoizedState=null;else switch(i){case"forwards":for(r=t.child,i=null;r!==null;)e=r.alternate,e!==null&&ym(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),_1(t,!1,i,r,a,t.lastEffect);break;case"backwards":for(r=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ym(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}_1(t,!0,r,null,a,t.lastEffect);break;case"together":_1(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Qa(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Xd|=t.lanes,r&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(dt(153));if(t.child!==null){for(e=t.child,r=lu(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=lu(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var yR,Dw,bR,xR;yR=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Dw=function(){};bR=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,sl(ba.current);var a=null;switch(r){case"input":i=fw(e,i),n=fw(e,n),a=[];break;case"option":i=dw(e,i),n=dw(e,n),a=[];break;case"select":i=Ur({},i,{value:void 0}),n=Ur({},n,{value:void 0}),a=[];break;case"textarea":i=pw(e,i),n=pw(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=fm)}gw(r,n);var o;r=null;for(f in i)if(!n.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f==="style"){var l=i[f];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(hd.hasOwnProperty(f)?a||(a=[]):(a=a||[]).push(f,null));for(f in n){var s=n[f];if(l=i!=null?i[f]:void 0,n.hasOwnProperty(f)&&s!==l&&(s!=null||l!=null))if(f==="style")if(l){for(o in l)!l.hasOwnProperty(o)||s&&s.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in s)s.hasOwnProperty(o)&&l[o]!==s[o]&&(r||(r={}),r[o]=s[o])}else r||(a||(a=[]),a.push(f,r)),r=s;else f==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,l=l?l.__html:void 0,s!=null&&l!==s&&(a=a||[]).push(f,s)):f==="children"?typeof s!="string"&&typeof s!="number"||(a=a||[]).push(f,""+s):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(hd.hasOwnProperty(f)?(s!=null&&f==="onScroll"&&Nr("scroll",e),a||l===s||(a=[])):typeof s=="object"&&s!==null&&s.$$typeof===k2?s.toString():(a=a||[]).push(f,s))}r&&(a=a||[]).push("style",r);var f=a;(t.updateQueue=f)&&(t.flags|=4)}};xR=function(e,t,r,n){r!==n&&(t.flags|=4)};function mh(e,t){if(!xa)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function fL(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return ni(t.type)&&hm(),null;case 3:return _f(),Dr(ri),Dr($n),Z2(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wv(t)?t.flags|=4:n.hydrate||(t.flags|=256)),Dw(t),null;case 5:Q2(t);var i=sl(Ed.current);if(r=t.type,e!==null&&t.stateNode!=null)bR(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(t.stateNode===null)throw Error(dt(166));return null}if(e=sl(ba.current),Wv(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[Wo]=t,n[cm]=a,r){case"dialog":Nr("cancel",n),Nr("close",n);break;case"iframe":case"object":case"embed":Nr("load",n);break;case"video":case"audio":for(e=0;e<Nh.length;e++)Nr(Nh[e],n);break;case"source":Nr("error",n);break;case"img":case"image":case"link":Nr("error",n),Nr("load",n);break;case"details":Nr("toggle",n);break;case"input":VE(n,a),Nr("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Nr("invalid",n);break;case"textarea":XE(n,a),Nr("invalid",n)}gw(r,a),e=null;for(var o in a)a.hasOwnProperty(o)&&(i=a[o],o==="children"?typeof i=="string"?n.textContent!==i&&(e=["children",i]):typeof i=="number"&&n.textContent!==""+i&&(e=["children",""+i]):hd.hasOwnProperty(o)&&i!=null&&o==="onScroll"&&Nr("scroll",n));switch(r){case"input":$v(n),YE(n,a,!0);break;case"textarea":$v(n),KE(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=fm)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(o=i.nodeType===9?i:i.ownerDocument,e===vw.html&&(e=dk(r)),e===vw.html?r==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Wo]=t,e[cm]=n,yR(e,t,!1,!1),t.stateNode=e,o=yw(r,n),r){case"dialog":Nr("cancel",e),Nr("close",e),i=n;break;case"iframe":case"object":case"embed":Nr("load",e),i=n;break;case"video":case"audio":for(i=0;i<Nh.length;i++)Nr(Nh[i],e);i=n;break;case"source":Nr("error",e),i=n;break;case"img":case"image":case"link":Nr("error",e),Nr("load",e),i=n;break;case"details":Nr("toggle",e),i=n;break;case"input":VE(e,n),i=fw(e,n),Nr("invalid",e);break;case"option":i=dw(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=Ur({},n,{value:void 0}),Nr("invalid",e);break;case"textarea":XE(e,n),i=pw(e,n),Nr("invalid",e);break;default:i=n}gw(r,i);var l=i;for(a in l)if(l.hasOwnProperty(a)){var s=l[a];a==="style"?mk(e,s):a==="dangerouslySetInnerHTML"?(s=s?s.__html:void 0,s!=null&&pk(e,s)):a==="children"?typeof s=="string"?(r!=="textarea"||s!=="")&&dd(e,s):typeof s=="number"&&dd(e,""+s):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(hd.hasOwnProperty(a)?s!=null&&a==="onScroll"&&Nr("scroll",e):s!=null&&E2(e,a,s,o))}switch(r){case"input":$v(e),YE(e,n,!1);break;case"textarea":$v(e),KE(e);break;case"option":n.value!=null&&e.setAttribute("value",""+iu(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?nf(e,!!n.multiple,a,!1):n.defaultValue!=null&&nf(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=fm)}Vk(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)xR(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(dt(166));r=sl(Ed.current),sl(ba.current),Wv(t)?(n=t.stateNode,r=t.memoizedProps,n[Wo]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Wo]=t,t.stateNode=n)}return null;case 13:return Dr(Hr),n=t.memoizedState,t.flags&64?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&Wv(t):r=e.memoizedState!==null,n&&!r&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||Hr.current&1?kn===0&&(kn=3):((kn===0||kn===3)&&(kn=4),Hn===null||!(Xd&134217727)&&!(jf&134217727)||ff(Hn,Dn))),(n||r)&&(t.flags|=4),null);case 4:return _f(),Dw(t),e===null&&Wk(t.stateNode.containerInfo),null;case 10:return X2(t),null;case 17:return ni(t.type)&&hm(),null;case 19:if(Dr(Hr),n=t.memoizedState,n===null)return null;if(a=(t.flags&64)!==0,o=n.rendering,o===null)if(a)mh(n,!1);else{if(kn!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(o=ym(e),o!==null){for(t.flags|=64,mh(n,!1),a=o.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),n.lastEffect===null&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=r,r=t.child;r!==null;)a=r,e=n,a.flags&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,o=a.alternate,o===null?(a.childLanes=0,a.lanes=e,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,e=o.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Vr(Hr,Hr.current&1|2),t.child}e=e.sibling}n.tail!==null&&Ln()>Gw&&(t.flags|=64,a=!0,mh(n,!1),t.lanes=33554432)}else{if(!a)if(e=ym(o),e!==null){if(t.flags|=64,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),mh(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!xa)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Ln()-n.renderingStartTime>Gw&&r!==1073741824&&(t.flags|=64,a=!0,mh(n,!1),t.lanes=33554432);n.isBackwards?(o.sibling=t.child,t.child=o):(r=n.last,r!==null?r.sibling=o:t.child=o,n.last=o)}return n.tail!==null?(r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=Ln(),r.sibling=null,t=Hr.current,Vr(Hr,a?t&1|2:t&1),r):null;case 23:case 24:return lS(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(dt(156,t.tag))}function cL(e){switch(e.tag){case 1:ni(e.type)&&hm();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(_f(),Dr(ri),Dr($n),Z2(),t=e.flags,t&64)throw Error(dt(285));return e.flags=t&-4097|64,e;case 5:return Q2(e),null;case 13:return Dr(Hr),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return Dr(Hr),null;case 4:return _f(),null;case 10:return X2(e),null;case 23:case 24:return lS(),null;default:return null}}function iS(e,t){try{var r="",n=t;do r+=H6(n),n=n.return;while(n);var i=r}catch(a){i=`
38
38
  Error generating stack: `+a.message+`
39
- `+a.stack}return{value:e,source:t,stack:i}}function Bw(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var pL=typeof WeakMap=="function"?WeakMap:Map;function SR(e,t,r){r=Zo(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Tm||(Tm=!0,Hw=n),Bw(e,t)},r}function ER(e,t,r){r=Zo(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return Bw(e,t),n(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(ga===null?ga=new Set([this]):ga.add(this),Bw(e,t));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}var vL=typeof WeakSet=="function"?WeakSet:Set;function XA(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){ru(e,r)}else t.current=null}function mL(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:Yi(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&q2(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(dt(163))}function gL(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;n=i.next,i=i.tag,i&4&&i&1&&(IR(r,e),AL(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:Yi(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&MA(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}MA(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&XM(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&OM(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(dt(163))}function KA(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=gM("display",i)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function QA(e,t){if(pl&&typeof pl.onCommitFiberUnmount=="function")try{pl.onCommitFiberUnmount(V2,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,i=n.destroy;if(n=n.tag,i!==void 0)if(n&4)IR(t,r);else{n=t;try{i()}catch(a){ru(n,a)}}r=r.next}while(r!==e)}break;case 1:if(XA(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){ru(t,a)}break;case 5:XA(t);break;case 4:AR(e,t)}}function ZA(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function JA(e){return e.tag===5||e.tag===3||e.tag===4}function e3(e){e:{for(var t=e.return;t!==null;){if(JA(t))break e;t=t.return}throw Error(dt(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(dt(161))}r.flags&16&&(pd(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||JA(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?zw(e,r,t):Uw(e,r,t)}function zw(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=cm));else if(n!==4&&(e=e.child,e!==null))for(zw(e,t,r),e=e.sibling;e!==null;)zw(e,t,r),e=e.sibling}function Uw(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Uw(e,t,r),e=e.sibling;e!==null;)Uw(e,t,r),e=e.sibling}function AR(e,t){for(var r=t,n=!1,i,a;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(dt(160));switch(i=n.stateNode,n.tag){case 5:a=!1;break e;case 3:i=i.containerInfo,a=!0;break e;case 4:i=i.containerInfo,a=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var o=e,l=r,s=l;;)if(QA(o,s),s.child!==null&&s.tag!==4)s.child.return=s,s=s.child;else{if(s===l)break e;for(;s.sibling===null;){if(s.return===null||s.return===l)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}a?(o=i,l=r.stateNode,o.nodeType===8?o.parentNode.removeChild(l):o.removeChild(l)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,a=!0,r.child.return=r,r=r.child;continue}}else if(QA(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function E1(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var i=e!==null?e.memoizedProps:n;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,a!==null){for(r[hm]=n,e==="input"&&n.type==="radio"&&n.name!=null&&dM(r,n),bw(e,i),t=bw(e,n),i=0;i<a.length;i+=2){var o=a[i],l=a[i+1];o==="style"?yM(r,l):o==="dangerouslySetInnerHTML"?mM(r,l):o==="children"?pd(r,l):A2(r,o,l,t)}switch(e){case"input":hw(r,n);break;case"textarea":pM(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,a=n.value,a!=null?nf(r,!!n.multiple,a,!1):e!==!!n.multiple&&(n.defaultValue!=null?nf(r,!!n.multiple,n.defaultValue,!0):nf(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(dt(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:r=t.stateNode,r.hydrate&&(r.hydrate=!1,OM(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(lS=Ln(),KA(t.child,!0)),t3(t);return;case 19:t3(t);return;case 17:return;case 23:case 24:KA(t,t.memoizedState!==null);return}throw Error(dt(163))}function t3(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new vL),t.forEach(function(n){var i=OL.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function yL(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var bL=Math.ceil,Am=Fl.ReactCurrentDispatcher,oS=Fl.ReactCurrentOwner,er=0,Hn=null,hn=null,Dn=0,wl=0,jw=vu(0),Mn=0,xg=null,Uf=0,Kd=0,jf=0,uS=0,Gw=null,lS=0,Ww=1/0;function Gf(){Ww=Ln()+500}var $t=null,Tm=!1,Hw=null,ga=null,uu=!1,ed=null,Dh=90,qw=[],Vw=[],Ja=null,td=0,Yw=null,j0=-1,Xa=0,G0=0,rd=null,W0=!1;function vi(){return er&48?Ln():j0!==-1?j0:j0=Ln()}function eu(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return wf()===99?1:2;if(Xa===0&&(Xa=Uf),oL.transition!==0){G0!==0&&(G0=Gw!==null?Gw.pendingLanes:0),e=Xa;var t=4186112&~G0;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=wf(),er&4&&e===98?e=sm(12,Xa):(e=s8(e),e=sm(e,Xa)),e}function tu(e,t,r){if(50<td)throw td=0,Yw=null,Error(dt(185));if(e=wg(e,t),e===null)return null;dg(e,t,r),e===Hn&&(jf|=t,Mn===4&&ff(e,Dn));var n=wf();t===1?er&8&&!(er&48)?Xw(e):(Fi(e,r),er===0&&(Gf(),Ea())):(!(er&4)||n!==98&&n!==99||(Ja===null?Ja=new Set([e]):Ja.add(e)),Fi(e,r)),Gw=e}function wg(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}function Fi(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-au(o),s=1<<l,f=a[l];if(f===-1){if(!(s&n)||s&i){f=t,zs(s);var d=Fr;a[l]=10<=d?f+250:6<=d?f+5e3:-1}}else f<=t&&(e.expiredLanes|=s);o&=~s}if(n=yd(e,e===Hn?Dn:0),t=Fr,n===0)r!==null&&(r!==b1&&Mw(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==b1&&Mw(r)}t===15?(r=Xw.bind(null,e),Ya===null?(Ya=[r],U0=Y2(yg,nR)):Ya.push(r),r=b1):t===14?r=_d(99,Xw.bind(null,e)):(r=f8(t),r=_d(r,TR.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function TR(e){if(j0=-1,G0=Xa=0,er&48)throw Error(dt(327));var t=e.callbackNode;if(mu()&&e.callbackNode!==t)return null;var r=yd(e,e===Hn?Dn:0);if(r===0)return null;var n=r,i=er;er|=16;var a=MR();(Hn!==e||Dn!==n)&&(Gf(),cf(e,n));do try{_L();break}catch(l){kR(e,l)}while(1);if(X2(),Am.current=a,er=i,hn!==null?n=0:(Hn=null,Dn=0,n=Mn),Uf&jf)cf(e,0);else if(n!==0){if(n===2&&(er|=64,e.hydrate&&(e.hydrate=!1,q2(e.containerInfo)),r=NM(e),r!==0&&(n=$h(e,r))),n===1)throw t=xg,cf(e,0),ff(e,r),Fi(e,Ln()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(dt(345));case 2:el(e);break;case 3:if(ff(e,r),(r&62914560)===r&&(n=lS+500-Ln(),10<n)){if(yd(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){vi(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=_A(el.bind(null,e),n);break}el(e);break;case 4:if(ff(e,r),(r&4186112)===r)break;for(n=e.eventTimes,i=-1;0<r;){var o=31-au(r);a=1<<o,o=n[o],o>i&&(i=o),r&=~a}if(r=i,r=Ln()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bL(r/1960))-r,10<r){e.timeoutHandle=_A(el.bind(null,e),r);break}el(e);break;case 5:el(e);break;default:throw Error(dt(329))}}return Fi(e,Ln()),e.callbackNode===t?TR.bind(null,e):null}function ff(e,t){for(t&=~uS,t&=~jf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-au(t),n=1<<r;e[r]=-1,t&=~n}}function Xw(e){if(er&48)throw Error(dt(327));if(mu(),e===Hn&&e.expiredLanes&Dn){var t=Dn,r=$h(e,t);Uf&jf&&(t=yd(e,t),r=$h(e,t))}else t=yd(e,0),r=$h(e,t);if(e.tag!==0&&r===2&&(er|=64,e.hydrate&&(e.hydrate=!1,q2(e.containerInfo)),t=NM(e),t!==0&&(r=$h(e,t))),r===1)throw r=xg,cf(e,0),ff(e,t),Fi(e,Ln()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,el(e),Fi(e,Ln()),null}function xL(){if(Ja!==null){var e=Ja;Ja=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Fi(t,Ln())})}Ea()}function CR(e,t){var r=er;er|=1;try{return e(t)}finally{er=r,er===0&&(Gf(),Ea())}}function OR(e,t){var r=er;er&=-2,er|=8;try{return e(t)}finally{er=r,er===0&&(Gf(),Ea())}}function Vv(e,t){Vr(jw,wl),wl|=t,Uf|=t}function sS(){wl=jw.current,Dr(jw)}function cf(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,eL(r)),hn!==null)for(r=hn.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&dm();break;case 3:_f(),Dr(ri),Dr($n),J2();break;case 5:Z2(n);break;case 4:_f();break;case 13:Dr(Hr);break;case 19:Dr(Hr);break;case 10:K2(n);break;case 23:case 24:sS()}r=r.return}Hn=e,hn=lu(e.current,null),Dn=wl=Uf=t,Mn=0,xg=null,uS=jf=Kd=0}function kR(e,t){do{var r=hn;try{if(X2(),Zh.current=Em,xm){for(var n=Qr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}xm=!1}if(Td=0,kn=Nn=Qr=null,Jh=!1,oS.current=null,r===null||r.return===null){Mn=1,xg=t,hn=null;break}e:{var a=e,o=r.return,l=r,s=t;if(t=Dn,l.flags|=2048,l.firstEffect=l.lastEffect=null,s!==null&&typeof s=="object"&&typeof s.then=="function"){var f=s;if(!(l.mode&2)){var d=l.alternate;d?(l.updateQueue=d.updateQueue,l.memoizedState=d.memoizedState,l.lanes=d.lanes):(l.updateQueue=null,l.memoizedState=null)}var g=(Hr.current&1)!==0,v=o;do{var y;if(y=v.tag===13){var E=v.memoizedState;if(E!==null)y=E.dehydrated!==null;else{var k=v.memoizedProps;y=k.fallback===void 0?!1:k.unstable_avoidThisFallback!==!0?!0:!g}}if(y){var x=v.updateQueue;if(x===null){var w=new Set;w.add(f),v.updateQueue=w}else x.add(f);if(!(v.mode&2)){if(v.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var _=Zo(-1,1);_.tag=2,Jo(l,_)}l.lanes|=1;break e}s=void 0,l=t;var C=a.pingCache;if(C===null?(C=a.pingCache=new pL,s=new Set,C.set(f,s)):(s=C.get(f),s===void 0&&(s=new Set,C.set(f,s))),!s.has(l)){s.add(l);var T=CL.bind(null,a,f,l);f.then(T,T)}v.flags|=4096,v.lanes=t;break e}v=v.return}while(v!==null);s=Error((rf(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
39
+ `+a.stack}return{value:e,source:t,stack:i}}function $w(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var hL=typeof WeakMap=="function"?WeakMap:Map;function wR(e,t,r){r=Zo(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Am||(Am=!0,Ww=n),$w(e,t)},r}function _R(e,t,r){r=Zo(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return $w(e,t),n(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(ga===null?ga=new Set([this]):ga.add(this),$w(e,t));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}var dL=typeof WeakSet=="function"?WeakSet:Set;function YA(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){ru(e,r)}else t.current=null}function pL(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var r=e.memoizedProps,n=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?r:Yi(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&H2(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(dt(163))}function vL(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var n=e.create;e.destroy=n()}e=e.next}while(e!==t)}if(t=r.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var i=e;n=i.next,i=i.tag,i&4&&i&1&&(RR(r,e),SL(r,e)),e=n}while(e!==t)}return;case 1:e=r.stateNode,r.flags&4&&(t===null?e.componentDidMount():(n=r.elementType===r.type?t.memoizedProps:Yi(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&MA(r,t,e);return;case 3:if(t=r.updateQueue,t!==null){if(e=null,r.child!==null)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}MA(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&Vk(r.type,r.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:r.memoizedState===null&&(r=r.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&Ck(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(dt(163))}function XA(e,t){for(var r=e;;){if(r.tag===5){var n=r.stateNode;if(t)n=n.style,typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none";else{n=r.stateNode;var i=r.memoizedProps.style;i=i!=null&&i.hasOwnProperty("display")?i.display:null,n.style.display=vk("display",i)}}else if(r.tag===6)r.stateNode.nodeValue=t?"":r.memoizedProps;else if((r.tag!==23&&r.tag!==24||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}}function KA(e,t){if(pl&&typeof pl.onCommitFiberUnmount=="function")try{pl.onCommitFiberUnmount(q2,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var n=r,i=n.destroy;if(n=n.tag,i!==void 0)if(n&4)RR(t,r);else{n=t;try{i()}catch(a){ru(n,a)}}r=r.next}while(r!==e)}break;case 1:if(YA(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){ru(t,a)}break;case 5:YA(t);break;case 4:SR(e,t)}}function QA(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ZA(e){return e.tag===5||e.tag===3||e.tag===4}function JA(e){e:{for(var t=e.return;t!==null;){if(ZA(t))break e;t=t.return}throw Error(dt(160))}var r=t;switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:t=t.containerInfo,n=!0;break;case 4:t=t.containerInfo,n=!0;break;default:throw Error(dt(161))}r.flags&16&&(dd(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||ZA(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue t;r.child.return=r,r=r.child}if(!(r.flags&2)){r=r.stateNode;break e}}n?Bw(e,r,t):zw(e,r,t)}function Bw(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=fm));else if(n!==4&&(e=e.child,e!==null))for(Bw(e,t,r),e=e.sibling;e!==null;)Bw(e,t,r),e=e.sibling}function zw(e,t,r){var n=e.tag,i=n===5||n===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(zw(e,t,r),e=e.sibling;e!==null;)zw(e,t,r),e=e.sibling}function SR(e,t){for(var r=t,n=!1,i,a;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(dt(160));switch(i=n.stateNode,n.tag){case 5:a=!1;break e;case 3:i=i.containerInfo,a=!0;break e;case 4:i=i.containerInfo,a=!0;break e}n=n.return}n=!0}if(r.tag===5||r.tag===6){e:for(var o=e,l=r,s=l;;)if(KA(o,s),s.child!==null&&s.tag!==4)s.child.return=s,s=s.child;else{if(s===l)break e;for(;s.sibling===null;){if(s.return===null||s.return===l)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}a?(o=i,l=r.stateNode,o.nodeType===8?o.parentNode.removeChild(l):o.removeChild(l)):i.removeChild(r.stateNode)}else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,a=!0,r.child.return=r,r=r.child;continue}}else if(KA(e,r),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(n=!1)}r.sibling.return=r.return,r=r.sibling}}function S1(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do(n.tag&3)===3&&(e=n.destroy,n.destroy=void 0,e!==void 0&&e()),n=n.next;while(n!==r)}return;case 1:return;case 5:if(r=t.stateNode,r!=null){n=t.memoizedProps;var i=e!==null?e.memoizedProps:n;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,a!==null){for(r[cm]=n,e==="input"&&n.type==="radio"&&n.name!=null&&ck(r,n),yw(e,i),t=yw(e,n),i=0;i<a.length;i+=2){var o=a[i],l=a[i+1];o==="style"?mk(r,l):o==="dangerouslySetInnerHTML"?pk(r,l):o==="children"?dd(r,l):E2(r,o,l,t)}switch(e){case"input":cw(r,n);break;case"textarea":hk(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,a=n.value,a!=null?nf(r,!!n.multiple,a,!1):e!==!!n.multiple&&(n.defaultValue!=null?nf(r,!!n.multiple,n.defaultValue,!0):nf(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(dt(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:r=t.stateNode,r.hydrate&&(r.hydrate=!1,Ck(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(uS=Ln(),XA(t.child,!0)),e3(t);return;case 19:e3(t);return;case 17:return;case 23:case 24:XA(t,t.memoizedState!==null);return}throw Error(dt(163))}function e3(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new dL),t.forEach(function(n){var i=CL.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function mL(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var gL=Math.ceil,Em=Fl.ReactCurrentDispatcher,aS=Fl.ReactCurrentOwner,er=0,Hn=null,hn=null,Dn=0,wl=0,Uw=vu(0),kn=0,bg=null,Uf=0,Xd=0,jf=0,oS=0,jw=null,uS=0,Gw=1/0;function Gf(){Gw=Ln()+500}var $t=null,Am=!1,Ww=null,ga=null,uu=!1,Jh=null,Lh=90,Hw=[],qw=[],Ja=null,ed=0,Vw=null,U0=-1,Xa=0,j0=0,td=null,G0=!1;function vi(){return er&48?Ln():U0!==-1?U0:U0=Ln()}function eu(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return wf()===99?1:2;if(Xa===0&&(Xa=Uf),iL.transition!==0){j0!==0&&(j0=jw!==null?jw.pendingLanes:0),e=Xa;var t=4186112&~j0;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=wf(),er&4&&e===98?e=lm(12,Xa):(e=u8(e),e=lm(e,Xa)),e}function tu(e,t,r){if(50<ed)throw ed=0,Vw=null,Error(dt(185));if(e=xg(e,t),e===null)return null;hg(e,t,r),e===Hn&&(jf|=t,kn===4&&ff(e,Dn));var n=wf();t===1?er&8&&!(er&48)?Yw(e):(Fi(e,r),er===0&&(Gf(),Ea())):(!(er&4)||n!==98&&n!==99||(Ja===null?Ja=new Set([e]):Ja.add(e)),Fi(e,r)),jw=e}function xg(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}function Fi(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-au(o),s=1<<l,f=a[l];if(f===-1){if(!(s&n)||s&i){f=t,zs(s);var d=Fr;a[l]=10<=d?f+250:6<=d?f+5e3:-1}}else f<=t&&(e.expiredLanes|=s);o&=~s}if(n=gd(e,e===Hn?Dn:0),t=Fr,n===0)r!==null&&(r!==y1&&Mw(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==y1&&Mw(r)}t===15?(r=Yw.bind(null,e),Ya===null?(Ya=[r],z0=V2(gg,tR)):Ya.push(r),r=y1):t===14?r=wd(99,Yw.bind(null,e)):(r=l8(t),r=wd(r,ER.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function ER(e){if(U0=-1,j0=Xa=0,er&48)throw Error(dt(327));var t=e.callbackNode;if(mu()&&e.callbackNode!==t)return null;var r=gd(e,e===Hn?Dn:0);if(r===0)return null;var n=r,i=er;er|=16;var a=OR();(Hn!==e||Dn!==n)&&(Gf(),cf(e,n));do try{xL();break}catch(l){TR(e,l)}while(1);if(Y2(),Em.current=a,er=i,hn!==null?n=0:(Hn=null,Dn=0,n=kn),Uf&jf)cf(e,0);else if(n!==0){if(n===2&&(er|=64,e.hydrate&&(e.hydrate=!1,H2(e.containerInfo)),r=Ik(e),r!==0&&(n=Dh(e,r))),n===1)throw t=bg,cf(e,0),ff(e,r),Fi(e,Ln()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(dt(345));case 2:el(e);break;case 3:if(ff(e,r),(r&62914560)===r&&(n=uS+500-Ln(),10<n)){if(gd(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){vi(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=wA(el.bind(null,e),n);break}el(e);break;case 4:if(ff(e,r),(r&4186112)===r)break;for(n=e.eventTimes,i=-1;0<r;){var o=31-au(r);a=1<<o,o=n[o],o>i&&(i=o),r&=~a}if(r=i,r=Ln()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gL(r/1960))-r,10<r){e.timeoutHandle=wA(el.bind(null,e),r);break}el(e);break;case 5:el(e);break;default:throw Error(dt(329))}}return Fi(e,Ln()),e.callbackNode===t?ER.bind(null,e):null}function ff(e,t){for(t&=~oS,t&=~jf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-au(t),n=1<<r;e[r]=-1,t&=~n}}function Yw(e){if(er&48)throw Error(dt(327));if(mu(),e===Hn&&e.expiredLanes&Dn){var t=Dn,r=Dh(e,t);Uf&jf&&(t=gd(e,t),r=Dh(e,t))}else t=gd(e,0),r=Dh(e,t);if(e.tag!==0&&r===2&&(er|=64,e.hydrate&&(e.hydrate=!1,H2(e.containerInfo)),t=Ik(e),t!==0&&(r=Dh(e,t))),r===1)throw r=bg,cf(e,0),ff(e,t),Fi(e,Ln()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,el(e),Fi(e,Ln()),null}function yL(){if(Ja!==null){var e=Ja;Ja=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Fi(t,Ln())})}Ea()}function AR(e,t){var r=er;er|=1;try{return e(t)}finally{er=r,er===0&&(Gf(),Ea())}}function CR(e,t){var r=er;er&=-2,er|=8;try{return e(t)}finally{er=r,er===0&&(Gf(),Ea())}}function qv(e,t){Vr(Uw,wl),wl|=t,Uf|=t}function lS(){wl=Uw.current,Dr(Uw)}function cf(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Z8(r)),hn!==null)for(r=hn.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&hm();break;case 3:_f(),Dr(ri),Dr($n),Z2();break;case 5:Q2(n);break;case 4:_f();break;case 13:Dr(Hr);break;case 19:Dr(Hr);break;case 10:X2(n);break;case 23:case 24:lS()}r=r.return}Hn=e,hn=lu(e.current,null),Dn=wl=Uf=t,kn=0,bg=null,oS=jf=Xd=0}function TR(e,t){do{var r=hn;try{if(Y2(),Qh.current=Sm,bm){for(var n=Qr.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}bm=!1}if(Ad=0,Mn=Nn=Qr=null,Zh=!1,aS.current=null,r===null||r.return===null){kn=1,bg=t,hn=null;break}e:{var a=e,o=r.return,l=r,s=t;if(t=Dn,l.flags|=2048,l.firstEffect=l.lastEffect=null,s!==null&&typeof s=="object"&&typeof s.then=="function"){var f=s;if(!(l.mode&2)){var d=l.alternate;d?(l.updateQueue=d.updateQueue,l.memoizedState=d.memoizedState,l.lanes=d.lanes):(l.updateQueue=null,l.memoizedState=null)}var g=(Hr.current&1)!==0,v=o;do{var y;if(y=v.tag===13){var E=v.memoizedState;if(E!==null)y=E.dehydrated!==null;else{var M=v.memoizedProps;y=M.fallback===void 0?!1:M.unstable_avoidThisFallback!==!0?!0:!g}}if(y){var x=v.updateQueue;if(x===null){var w=new Set;w.add(f),v.updateQueue=w}else x.add(f);if(!(v.mode&2)){if(v.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var _=Zo(-1,1);_.tag=2,Jo(l,_)}l.lanes|=1;break e}s=void 0,l=t;var T=a.pingCache;if(T===null?(T=a.pingCache=new hL,s=new Set,T.set(f,s)):(s=T.get(f),s===void 0&&(s=new Set,T.set(f,s))),!s.has(l)){s.add(l);var C=AL.bind(null,a,f,l);f.then(C,C)}v.flags|=4096,v.lanes=t;break e}v=v.return}while(v!==null);s=Error((rf(l.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
40
40
 
41
- Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Mn!==5&&(Mn=2),s=aS(s,l),v=o;do{switch(v.tag){case 3:a=s,v.flags|=4096,t&=-t,v.lanes|=t;var F=SR(v,a,t);kA(v,F);break e;case 1:a=s;var L=v.type,V=v.stateNode;if(!(v.flags&64)&&(typeof L.getDerivedStateFromError=="function"||V!==null&&typeof V.componentDidCatch=="function"&&(ga===null||!ga.has(V)))){v.flags|=4096,t&=-t,v.lanes|=t;var j=ER(v,a,t);kA(v,j);break e}}v=v.return}while(v!==null)}PR(r)}catch(te){t=te,hn===r&&r!==null&&(hn=r=r.return);continue}break}while(1)}function MR(){var e=Am.current;return Am.current=Em,e===null?Em:e}function $h(e,t){var r=er;er|=16;var n=MR();Hn===e&&Dn===t||cf(e,t);do try{wL();break}catch(i){kR(e,i)}while(1);if(X2(),er=r,Am.current=n,hn!==null)throw Error(dt(261));return Hn=null,Dn=0,Mn}function wL(){for(;hn!==null;)RR(hn)}function _L(){for(;hn!==null&&!nL();)RR(hn)}function RR(e){var t=FR(e.alternate,e,wl);e.memoizedProps=e.pendingProps,t===null?PR(e):hn=t,oS.current=null}function PR(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=dL(t),r!==null){r.flags&=2047,hn=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=hL(r,t,wl),r!==null){hn=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||wl&1073741824||!(r.mode&4)){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){hn=t;return}hn=t=e}while(t!==null);Mn===0&&(Mn=5)}function el(e){var t=wf();return xl(99,SL.bind(null,e,t)),null}function SL(e,t){do mu();while(ed!==null);if(er&48)throw Error(dt(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(dt(177));e.callbackNode=null;var n=r.lanes|r.childLanes,i=n,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var o=e.eventTimes,l=e.expirationTimes;0<a;){var s=31-au(a),f=1<<s;i[s]=0,o[s]=-1,l[s]=-1,a&=~f}if(Ja!==null&&!(n&24)&&Ja.has(e)&&Ja.delete(e),e===Hn&&(hn=Hn=null,Dn=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,n!==null){if(i=er,er|=32,oS.current=null,m1=D0,o=vA(),Aw(o)){if("selectionStart"in o)l={start:o.selectionStart,end:o.selectionEnd};else e:if(l=(l=o.ownerDocument)&&l.defaultView||window,(f=l.getSelection&&l.getSelection())&&f.rangeCount!==0){l=f.anchorNode,a=f.anchorOffset,s=f.focusNode,f=f.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var d=0,g=-1,v=-1,y=0,E=0,k=o,x=null;t:for(;;){for(var w;k!==l||a!==0&&k.nodeType!==3||(g=d+a),k!==s||f!==0&&k.nodeType!==3||(v=d+f),k.nodeType===3&&(d+=k.nodeValue.length),(w=k.firstChild)!==null;)x=k,k=w;for(;;){if(k===o)break t;if(x===l&&++y===a&&(g=d),x===s&&++E===f&&(v=d),(w=k.nextSibling)!==null)break;k=x,x=k.parentNode}k=w}l=g===-1||v===-1?null:{start:g,end:v}}else l=null;l=l||{start:0,end:0}}else l=null;g1={focusedElem:o,selectionRange:l},D0=!1,rd=null,W0=!1,$t=n;do try{EL()}catch(te){if($t===null)throw Error(dt(330));ru($t,te),$t=$t.nextEffect}while($t!==null);rd=null,$t=n;do try{for(o=e;$t!==null;){var _=$t.flags;if(_&16&&pd($t.stateNode,""),_&128){var C=$t.alternate;if(C!==null){var T=C.ref;T!==null&&(typeof T=="function"?T(null):T.current=null)}}switch(_&1038){case 2:e3($t),$t.flags&=-3;break;case 6:e3($t),$t.flags&=-3,E1($t.alternate,$t);break;case 1024:$t.flags&=-1025;break;case 1028:$t.flags&=-1025,E1($t.alternate,$t);break;case 4:E1($t.alternate,$t);break;case 8:l=$t,AR(o,l);var F=l.alternate;ZA(l),F!==null&&ZA(F)}$t=$t.nextEffect}}catch(te){if($t===null)throw Error(dt(330));ru($t,te),$t=$t.nextEffect}while($t!==null);if(T=g1,C=vA(),_=T.focusedElem,o=T.selectionRange,C!==_&&_&&_.ownerDocument&&GM(_.ownerDocument.documentElement,_)){for(o!==null&&Aw(_)&&(C=o.start,T=o.end,T===void 0&&(T=C),"selectionStart"in _?(_.selectionStart=C,_.selectionEnd=Math.min(T,_.value.length)):(T=(C=_.ownerDocument||document)&&C.defaultView||window,T.getSelection&&(T=T.getSelection(),l=_.textContent.length,F=Math.min(o.start,l),o=o.end===void 0?F:Math.min(o.end,l),!T.extend&&F>o&&(l=o,o=F,F=l),l=pA(_,F),a=pA(_,o),l&&a&&(T.rangeCount!==1||T.anchorNode!==l.node||T.anchorOffset!==l.offset||T.focusNode!==a.node||T.focusOffset!==a.offset)&&(C=C.createRange(),C.setStart(l.node,l.offset),T.removeAllRanges(),F>o?(T.addRange(C),T.extend(a.node,a.offset)):(C.setEnd(a.node,a.offset),T.addRange(C)))))),C=[],T=_;T=T.parentNode;)T.nodeType===1&&C.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<C.length;_++)T=C[_],T.element.scrollLeft=T.left,T.element.scrollTop=T.top}D0=!!m1,g1=m1=null,e.current=r,$t=n;do try{for(_=e;$t!==null;){var L=$t.flags;if(L&36&&gL(_,$t.alternate,$t),L&128){C=void 0;var V=$t.ref;if(V!==null){var j=$t.stateNode;switch($t.tag){case 5:C=j;break;default:C=j}typeof V=="function"?V(C):V.current=C}}$t=$t.nextEffect}}catch(te){if($t===null)throw Error(dt(330));ru($t,te),$t=$t.nextEffect}while($t!==null);$t=null,aL(),er=i}else e.current=r;if(uu)uu=!1,ed=e,Dh=t;else for($t=n;$t!==null;)t=$t.nextEffect,$t.nextEffect=null,$t.flags&8&&(L=$t,L.sibling=null,L.stateNode=null),$t=t;if(n=e.pendingLanes,n===0&&(ga=null),n===1?e===Yw?td++:(td=0,Yw=e):td=0,r=r.stateNode,pl&&typeof pl.onCommitFiberRoot=="function")try{pl.onCommitFiberRoot(V2,r,void 0,(r.current.flags&64)===64)}catch{}if(Fi(e,Ln()),Tm)throw Tm=!1,e=Hw,Hw=null,e;return er&8||Ea(),null}function EL(){for(;$t!==null;){var e=$t.alternate;W0||rd===null||($t.flags&8?eA($t,rd)&&(W0=!0):$t.tag===13&&yL(e,$t)&&eA($t,rd)&&(W0=!0));var t=$t.flags;t&256&&mL(e,$t),!(t&512)||uu||(uu=!0,_d(97,function(){return mu(),null})),$t=$t.nextEffect}}function mu(){if(Dh!==90){var e=97<Dh?97:Dh;return Dh=90,xl(e,TL)}return!1}function AL(e,t){qw.push(t,e),uu||(uu=!0,_d(97,function(){return mu(),null}))}function IR(e,t){Vw.push(t,e),uu||(uu=!0,_d(97,function(){return mu(),null}))}function TL(){if(ed===null)return!1;var e=ed;if(ed=null,er&48)throw Error(dt(331));var t=er;er|=32;var r=Vw;Vw=[];for(var n=0;n<r.length;n+=2){var i=r[n],a=r[n+1],o=i.destroy;if(i.destroy=void 0,typeof o=="function")try{o()}catch(s){if(a===null)throw Error(dt(330));ru(a,s)}}for(r=qw,qw=[],n=0;n<r.length;n+=2){i=r[n],a=r[n+1];try{var l=i.create;i.destroy=l()}catch(s){if(a===null)throw Error(dt(330));ru(a,s)}}for(l=e.current.firstEffect;l!==null;)e=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=e;return er=t,Ea(),!0}function r3(e,t,r){t=aS(r,t),t=SR(e,t,1),Jo(e,t),t=vi(),e=wg(e,1),e!==null&&(dg(e,1,t),Fi(e,t))}function ru(e,t){if(e.tag===3)r3(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){r3(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ga===null||!ga.has(n))){e=aS(t,e);var i=ER(r,e,1);if(Jo(r,i),i=vi(),r=wg(r,1),r!==null)dg(r,1,i),Fi(r,i);else if(typeof n.componentDidCatch=="function"&&(ga===null||!ga.has(n)))try{n.componentDidCatch(t,e)}catch{}break}}r=r.return}}function CL(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=vi(),e.pingedLanes|=e.suspendedLanes&r,Hn===e&&(Dn&r)===r&&(Mn===4||Mn===3&&(Dn&62914560)===Dn&&500>Ln()-lS?cf(e,0):uS|=r),Fi(e,t)}function OL(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(Xa===0&&(Xa=Uf),t=Us(62914560&~Xa),t===0&&(t=4194304)):t=wf()===99?1:2:t=1),r=vi(),e=wg(e,t),e!==null&&(dg(e,t,r),Fi(e,r))}var FR;FR=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||ri.current)Ki=!0;else if(r&n)Ki=!!(e.flags&16384);else{switch(Ki=!1,t.tag){case 3:jA(t),w1();break;case 5:IA(t);break;case 1:ni(t.type)&&z0(t);break;case 4:Iw(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;Vr(pm,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?GA(e,t,r):(Vr(Hr,Hr.current&1),t=Qa(e,t,r),t!==null?t.sibling:null);Vr(Hr,Hr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return YA(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Vr(Hr,Hr.current),n)break;return null;case 23:case 24:return t.lanes=0,_1(e,t,r)}return Qa(e,t,r)}else Ki=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=xf(t,$n.current),lf(t,r),i=tS(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ni(n)){var a=!0;z0(t)}else a=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Q2(t);var o=n.getDerivedStateFromProps;typeof o=="function"&&gm(t,n,o,e),i.updater=bg,t.stateNode=i,i._reactInternals=t,Pw(t,n,e,r),t=Dw(null,t,n,!0,a,r)}else t.tag=0,Jn(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=ML(i),e=Yi(i,e),a){case 0:t=Lw(null,t,i,e,r);break e;case 1:t=UA(null,t,i,e,r);break e;case 11:t=BA(null,t,i,e,r);break e;case 14:t=zA(null,t,i,Yi(i.type,e),n,r);break e}throw Error(dt(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yi(n,i),Lw(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yi(n,i),UA(e,t,n,i,r);case 3:if(jA(t),n=t.updateQueue,e===null||n===null)throw Error(dt(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,aR(e,t),Sd(t,n,null,r),n=t.memoizedState.element,n===i)w1(),t=Qa(e,t,r);else{if(i=t.stateNode,(a=i.hydrate)&&(Ho=uf(t.stateNode.containerInfo.firstChild),Ka=t,a=xa=!0),a){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)a=e[i],a._workInProgressVersionPrimary=e[i+1],sf.push(a);for(r=sR(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else Jn(e,t,n,r),w1();t=t.child}return t;case 5:return IA(t),e===null&&Fw(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Ow(n,i)?o=null:a!==null&&Ow(n,a)&&(t.flags|=16),bR(e,t),Jn(e,t,o,r),t.child;case 6:return e===null&&Fw(t),null;case 13:return GA(e,t,r);case 4:return Iw(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ym(t,null,n,r):Jn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yi(n,i),BA(e,t,n,i,r);case 7:return Jn(e,t,t.pendingProps,r),t.child;case 8:return Jn(e,t,t.pendingProps.children,r),t.child;case 12:return Jn(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;var l=t.type._context;if(Vr(pm,l._currentValue),l._currentValue=a,o!==null)if(l=o.value,a=Oi(l,a)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(l,a):1073741823)|0,a===0){if(o.children===i.children&&!ri.current){t=Qa(e,t,r);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var f=s.firstContext;f!==null;){if(f.context===n&&f.observedBits&a){l.tag===1&&(f=Zo(-1,r&-r),f.tag=2,Jo(l,f)),l.lanes|=r,f=l.alternate,f!==null&&(f.lanes|=r),iR(l.return,r),s.lanes|=r;break}f=f.next}}else o=l.tag===10&&l.type===t.type?null:l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Jn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps,n=a.children,lf(t,r),i=Ii(i,a.unstable_observedBits),n=n(i),t.flags|=1,Jn(e,t,n,r),t.child;case 14:return i=t.type,a=Yi(i,t.pendingProps),a=Yi(i.type,a),zA(e,t,i,a,n,r);case 15:return yR(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yi(n,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ni(n)?(e=!0,z0(t)):e=!1,lf(t,r),uR(t,n,i),Pw(t,n,i,r),Dw(null,t,n,!0,e,r);case 19:return YA(e,t,r);case 23:return _1(e,t,r);case 24:return _1(e,t,r)}throw Error(dt(156,t.tag))};function kL(e,t,r,n){this.tag=e,this.key=r,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=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function ki(e,t,r,n){return new kL(e,t,r,n)}function fS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ML(e){if(typeof e=="function")return fS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===fg)return 11;if(e===cg)return 14}return 2}function lu(e,t){var r=e.alternate;return r===null?(r=ki(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function H0(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")fS(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Uo:return hf(r.children,i,a,t);case fM:o=8,i|=16;break;case T2:o=8,i|=1;break;case Hh:return e=ki(12,r,t,i|8),e.elementType=Hh,e.type=Hh,e.lanes=a,e;case qh:return e=ki(13,r,t,i),e.type=qh,e.elementType=qh,e.lanes=a,e;case am:return e=ki(19,r,t,i),e.elementType=am,e.lanes=a,e;case P2:return cS(r,i,a,t);case fw:return e=ki(24,r,t,i),e.elementType=fw,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case C2:o=10;break e;case O2:o=9;break e;case fg:o=11;break e;case cg:o=14;break e;case k2:o=16,n=null;break e;case M2:o=22;break e}throw Error(dt(130,e==null?e:typeof e,""))}return t=ki(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function hf(e,t,r,n){return e=ki(7,e,n,t),e.lanes=r,e}function cS(e,t,r,n){return e=ki(23,e,n,t),e.elementType=P2,e.lanes=r,e}function A1(e,t,r){return e=ki(6,e,null,t),e.lanes=r,e}function T1(e,t,r){return t=ki(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function RL(e,t,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=s1(0),this.expirationTimes=s1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=s1(0),this.mutableSourceEagerHydrationData=null}function PL(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ol,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Cm(e,t,r,n){var i=t.current,a=vi(),o=eu(i);e:if(r){r=r._reactInternals;t:{if(Nl(r)!==r||r.tag!==1)throw Error(dt(170));var l=r;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ni(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(dt(171))}if(r.tag===1){var s=r.type;if(ni(s)){r=QM(r,s,l);break e}}r=l}else r=ou;return t.context===null?t.context=r:t.pendingContext=r,t=Zo(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),Jo(i,t),tu(i,o,a),o}function C1(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function n3(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function hS(e,t){n3(e,t),(e=e.alternate)&&n3(e,t)}function IL(){return null}function dS(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new RL(e,t,r!=null&&r.hydrate===!0),t=ki(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,Q2(t),e[zf]=r.current,qM(e.nodeType===8?e.parentNode:e),n)for(e=0;e<n.length;e++){t=n[e];var i=t._getVersion;i=i(t._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[t,i]:r.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=r}dS.prototype.render=function(e){Cm(e,this._internalRoot,null,null)};dS.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Cm(null,e,null,function(){t[zf]=null})};function Qd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function FL(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new dS(e,0,t?{hydrate:!0}:void 0)}function _g(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a._internalRoot;if(typeof i=="function"){var l=i;i=function(){var f=C1(o);l.call(f)}}Cm(t,o,e,i)}else{if(a=r._reactRootContainer=FL(r,n),o=a._internalRoot,typeof i=="function"){var s=i;i=function(){var f=C1(o);s.call(f)}}OR(function(){Cm(t,o,e,i)})}return C1(o)}AM=function(e){if(e.tag===13){var t=vi();tu(e,4,t),hS(e,4)}};D2=function(e){if(e.tag===13){var t=vi();tu(e,67108864,t),hS(e,67108864)}};TM=function(e){if(e.tag===13){var t=vi(),r=eu(e);tu(e,r,t),hS(e,r)}};CM=function(e,t){return t()};xw=function(e,t,r){switch(t){case"input":if(hw(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=gg(n);if(!i)throw Error(dt(90));hM(n),hw(n,i)}}}break;case"textarea":pM(e,r);break;case"select":t=r.value,t!=null&&nf(e,!!r.multiple,t,!1)}};F2=CR;wM=function(e,t,r,n,i){var a=er;er|=4;try{return xl(98,e.bind(null,t,r,n,i))}finally{er=a,er===0&&(Gf(),Ea())}};N2=function(){!(er&49)&&(xL(),mu())};_M=function(e,t){var r=er;er|=2;try{return e(t)}finally{er=r,er===0&&(Gf(),Ea())}};function NR(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Qd(t))throw Error(dt(200));return PL(e,t,null,r)}var NL={Events:[Yd,Ys,gg,bM,xM,mu,{current:!1}]},gh={findFiberByHostInstance:ll,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},LL={bundleType:gh.bundleType,version:gh.version,rendererPackageName:gh.rendererPackageName,rendererConfig:gh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Fl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=EM(e),e===null?null:e.stateNode},findFiberByHostInstance:gh.findFiberByHostInstance||IL,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yv.isDisabled&&Yv.supportsFiber)try{V2=Yv.inject(LL),pl=Yv}catch{}}Ni.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=NL;Ni.createPortal=NR;Ni.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(dt(188)):Error(dt(268,Object.keys(e)));return e=EM(t),e=e===null?null:e.stateNode,e};Ni.flushSync=function(e,t){var r=er;if(r&48)return e(t);er|=1;try{if(e)return xl(99,e.bind(null,t))}finally{er=r,Ea()}};Ni.hydrate=function(e,t,r){if(!Qd(t))throw Error(dt(200));return _g(null,e,t,!0,r)};Ni.render=function(e,t,r){if(!Qd(t))throw Error(dt(200));return _g(null,e,t,!1,r)};Ni.unmountComponentAtNode=function(e){if(!Qd(e))throw Error(dt(40));return e._reactRootContainer?(OR(function(){_g(null,null,e,!1,function(){e._reactRootContainer=null,e[zf]=null})}),!0):!1};Ni.unstable_batchedUpdates=CR;Ni.unstable_createPortal=function(e,t){return NR(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};Ni.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Qd(r))throw Error(dt(200));if(e==null||e._reactInternals===void 0)throw Error(dt(38));return _g(e,t,r,!1,n)};Ni.version="17.0.2";function LR(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(LR)}catch(e){console.error(e)}}LR(),oM.exports=Ni;var pS=oM.exports;const Bh=mi(pS);var DR={exports:{}},DL="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",$L=DL,BL=$L;function $R(){}function BR(){}BR.resetWarningCache=$R;var zL=function(){function e(n,i,a,o,l,s){if(s!==BL){var f=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 f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var r={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:BR,resetWarningCache:$R};return r.PropTypes=r,r};DR.exports=zL();var UL=DR.exports;const dr=mi(UL);var jL=function(){},GL=jL(),oo=function(e){return e!==GL&&e!==null},WL=oo,HL=Array.prototype.forEach,qL=Object.create,VL=function(e,t){var r;for(r in e)t[r]=e[r]},vS=function(e){var t=qL(null);return HL.call(arguments,function(r){WL(r)&&VL(Object(r),t)}),t},YL=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},O1,i3;function XL(){return i3||(i3=1,O1=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),O1}var KL=YL()?Math.sign:XL(),QL=KL,ZL=Math.abs,JL=Math.floor,eD=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:QL(e)*JL(ZL(e)))},tD=eD,rD=Math.max,Dl=function(e){return rD(0,tD(e))},nD=Dl,zR=function(e,t,r){var n;return isNaN(e)?(n=t,n>=0?r&&n?n-1:n:1):e===!1?!1:nD(e)},Aa=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},iD=oo,Ji=function(e){if(!iD(e))throw new TypeError("Cannot use null or undefined");return e},aD=Aa,oD=Ji,uD=Function.prototype.bind,a3=Function.prototype.call,lD=Object.keys,sD=Object.prototype.propertyIsEnumerable,fD=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(oD(r)),aD(n),i=lD(r),o&&i.sort(typeof o=="function"?uD.call(o,r):void 0),typeof e!="function"&&(e=i[e]),a3.call(e,i,function(l,s){return sD.call(r,l)?a3.call(n,a,r[l],l,r,s):t})}},Sg=fD("forEach"),$l={},UR={exports:{}},cD=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")},k1,o3;function hD(){return o3||(o3=1,k1=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),k1}var M1,u3;function dD(){if(u3)return M1;u3=1;var e=oo,t=Object.keys;return M1=function(r){return t(e(r)?Object(r):r)},M1}var R1,l3;function pD(){return l3||(l3=1,R1=hD()()?Object.keys:dD()),R1}var P1,s3;function vD(){if(s3)return P1;s3=1;var e=pD(),t=Ji,r=Math.max;return P1=function(n,i){var a,o,l=r(arguments.length,2),s;for(n=Object(t(n)),s=function(f){try{n[f]=i[f]}catch(d){a||(a=d)}},o=1;o<l;++o)i=arguments[o],e(i).forEach(s);if(a!==void 0)throw a;return n},P1}var Eg=cD()?Object.assign:vD(),mD=oo,gD={function:!0,object:!0},mS=function(e){return mD(e)&&gD[typeof e]||!1};(function(e){var t=Eg,r=mS,n=oo,i=Error.captureStackTrace;e.exports=function(a){var o=new Error(a),l=arguments[1],s=arguments[2];return n(s)||r(l)&&(s=l,l=null),n(s)&&t(o,s),n(l)&&(o.code=l),i&&i(o,e.exports),o}})(UR);var yD=UR.exports,Kw={exports:{}},I1,f3;function jR(){if(f3)return I1;f3=1;var e=Ji,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols;return I1=function(a,o){var l,s=Object(e(o));if(a=Object(e(a)),n(s).forEach(function(f){try{t(a,f,r(o,f))}catch(d){l=d}}),typeof i=="function"&&i(s).forEach(function(f){try{t(a,f,r(o,f))}catch(d){l=d}}),l!==void 0)throw l;return a},I1}var c3=Dl,GR=function(e,t){return t},F1,h3,d3,p3;try{Object.defineProperty(GR,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}GR.length===1?(F1={configurable:!0,writable:!1,enumerable:!1},h3=Object.defineProperty,Kw.exports=function(e,t){return t=c3(t),e.length===t?e:(F1.value=t,h3(e,"length",F1))}):(p3=jR(),d3=function(){var e=[];return function(t){var r,n=0;if(e[t])return e[t];for(r=[];t--;)r.push("a"+(++n).toString(36));return new Function("fn","return function ("+r.join(", ")+") { return fn.apply(this, arguments); };")}}(),Kw.exports=function(e,t){var r;if(t=c3(t),e.length===t)return e;r=d3(t)(e);try{p3(r,e)}catch{}return r});var WR=Kw.exports,HR={exports:{}},bD=void 0,Wf=function(e){return e!==bD&&e!==null},xD=Wf,wD={object:!0,function:!0,undefined:!0},gS=function(e){return xD(e)?hasOwnProperty.call(wD,typeof e):!1},_D=gS,SD=function(e){if(!_D(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}},ED=SD,AD=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!ED(e)},TD=AD,CD=/^\s*class[\s{/}]/,OD=Function.prototype.toString,qR=function(e){return!(!TD(e)||CD.test(OD.call(e)))},N1="razdwatrzy",kD=function(){return typeof N1.contains!="function"?!1:N1.contains("dwa")===!0&&N1.contains("foo")===!1},L1,v3;function MD(){if(v3)return L1;v3=1;var e=String.prototype.indexOf;return L1=function(t){return e.call(this,t,arguments[1])>-1},L1}var VR=kD()?String.prototype.contains:MD(),q0=Wf,m3=qR,YR=Eg,XR=vS,nd=VR,RD=HR.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],q0(e)?(r=nd.call(e,"c"),n=nd.call(e,"e"),i=nd.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?YR(XR(a),o):o};RD.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],q0(t)?m3(t)?q0(r)?m3(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,q0(e)?(n=nd.call(e,"c"),i=nd.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?YR(XR(a),o):o};var ea=HR.exports,Qw={exports:{}};(function(e,t){var r=ea,n=Aa,i=Function.prototype.apply,a=Function.prototype.call,o=Object.create,l=Object.defineProperty,s=Object.defineProperties,f=Object.prototype.hasOwnProperty,d={configurable:!0,enumerable:!1,writable:!0},g,v,y,E,k,x,w;g=function(_,C){var T;return n(C),f.call(this,"__ee__")?T=this.__ee__:(T=d.value=o(null),l(this,"__ee__",d),d.value=null),T[_]?typeof T[_]=="object"?T[_].push(C):T[_]=[T[_],C]:T[_]=C,this},v=function(_,C){var T,F;return n(C),F=this,g.call(this,_,T=function(){y.call(F,_,T),i.call(C,this,arguments)}),T.__eeOnceListener__=C,this},y=function(_,C){var T,F,L,V;if(n(C),!f.call(this,"__ee__"))return this;if(T=this.__ee__,!T[_])return this;if(F=T[_],typeof F=="object")for(V=0;L=F[V];++V)(L===C||L.__eeOnceListener__===C)&&(F.length===2?T[_]=F[V?0:1]:F.splice(V,1));else(F===C||F.__eeOnceListener__===C)&&delete T[_];return this},E=function(_){var C,T,F,L,V;if(f.call(this,"__ee__")&&(L=this.__ee__[_],!!L))if(typeof L=="object"){for(T=arguments.length,V=new Array(T-1),C=1;C<T;++C)V[C-1]=arguments[C];for(L=L.slice(),C=0;F=L[C];++C)i.call(F,this,V)}else switch(arguments.length){case 1:a.call(L,this);break;case 2:a.call(L,this,arguments[1]);break;case 3:a.call(L,this,arguments[1],arguments[2]);break;default:for(T=arguments.length,V=new Array(T-1),C=1;C<T;++C)V[C-1]=arguments[C];i.call(L,this,V)}},k={on:g,once:v,off:y,emit:E},x={on:r(g),once:r(v),off:r(y),emit:r(E)},w=s({},x),e.exports=t=function(_){return _==null?o(w):s(Object(_),x)},t.methods=k})(Qw,Qw.exports);var PD=Qw.exports,D1,g3;function ID(){return g3||(g3=1,D1=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}),D1}var $1,y3;function FD(){return y3||(y3=1,$1=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),$1}var B1,b3;function ND(){if(b3)return B1;b3=1;var e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};return B1=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}(),B1}var z1,x3;function Ag(){return x3||(x3=1,z1=FD()()?globalThis:ND()),z1}var U1,w3;function LD(){if(w3)return U1;w3=1;var e=Ag(),t={object:!0,symbol:!0};return U1=function(){var r=e.Symbol,n;if(typeof r!="function")return!1;n=r("test symbol");try{String(n)}catch{return!1}return!(!t[typeof r.iterator]||!t[typeof r.toPrimitive]||!t[typeof r.toStringTag])},U1}var j1,_3;function DD(){return _3||(_3=1,j1=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}),j1}var G1,S3;function KR(){if(S3)return G1;S3=1;var e=DD();return G1=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t},G1}var W1,E3;function $D(){if(E3)return W1;E3=1;var e=ea,t=Object.create,r=Object.defineProperty,n=Object.prototype,i=t(null);return W1=function(a){for(var o=0,l,s;i[a+(o||"")];)++o;return a+=o||"",i[a]=!0,l="@@"+a,r(n,l,e.gs(null,function(f){s||(s=!0,r(this,l,e(f)),s=!1)})),l},W1}var H1,A3;function BD(){if(A3)return H1;A3=1;var e=ea,t=Ag().Symbol;return H1=function(r){return Object.defineProperties(r,{hasInstance:e("",t&&t.hasInstance||r("hasInstance")),isConcatSpreadable:e("",t&&t.isConcatSpreadable||r("isConcatSpreadable")),iterator:e("",t&&t.iterator||r("iterator")),match:e("",t&&t.match||r("match")),replace:e("",t&&t.replace||r("replace")),search:e("",t&&t.search||r("search")),species:e("",t&&t.species||r("species")),split:e("",t&&t.split||r("split")),toPrimitive:e("",t&&t.toPrimitive||r("toPrimitive")),toStringTag:e("",t&&t.toStringTag||r("toStringTag")),unscopables:e("",t&&t.unscopables||r("unscopables"))})},H1}var q1,T3;function zD(){if(T3)return q1;T3=1;var e=ea,t=KR(),r=Object.create(null);return q1=function(n){return Object.defineProperties(n,{for:e(function(i){return r[i]?r[i]:r[i]=n(String(i))}),keyFor:e(function(i){var a;t(i);for(a in r)if(r[a]===i)return a})})},q1}var V1,C3;function UD(){if(C3)return V1;C3=1;var e=ea,t=KR(),r=Ag().Symbol,n=$D(),i=BD(),a=zD(),o=Object.create,l=Object.defineProperties,s=Object.defineProperty,f,d,g;if(typeof r=="function")try{String(r()),g=!0}catch{}else r=null;return d=function(y){if(this instanceof d)throw new TypeError("Symbol is not a constructor");return f(y)},V1=f=function v(y){var E;if(this instanceof v)throw new TypeError("Symbol is not a constructor");return g?r(y):(E=o(d.prototype),y=y===void 0?"":String(y),l(E,{__description__:e("",y),__name__:e("",n(y))}))},i(f),a(f),l(d.prototype,{constructor:e(f),toString:e("",function(){return this.__name__})}),l(f.prototype,{toString:e(function(){return"Symbol ("+t(this).__description__+")"}),valueOf:e(function(){return t(this)})}),s(f.prototype,f.toPrimitive,e("",function(){var v=t(this);return typeof v=="symbol"?v:v.toString()})),s(f.prototype,f.toStringTag,e("c","Symbol")),s(d.prototype,f.toStringTag,e("c",f.prototype[f.toStringTag])),s(d.prototype,f.toPrimitive,e("c",f.prototype[f.toPrimitive])),V1}var Y1,O3;function Bl(){return O3||(O3=1,Y1=LD()()?Ag().Symbol:UD()),Y1}var X1,k3;function Tg(){if(k3)return X1;k3=1;var e=Object.prototype.toString,t=e.call(function(){return arguments}());return X1=function(r){return e.call(r)===t},X1}var K1,M3;function jD(){if(M3)return K1;M3=1;var e=Object.prototype.toString,t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return K1=function(r){return typeof r=="function"&&t(e.call(r))},K1}var Q1,R3;function Cg(){if(R3)return Q1;R3=1;var e=Object.prototype.toString,t=e.call("");return Q1=function(r){return typeof r=="string"||r&&typeof r=="object"&&(r instanceof String||e.call(r)===t)||!1},Q1}var Z1,P3;function GD(){if(P3)return Z1;P3=1;var e=Bl().iterator,t=Tg(),r=jD(),n=Dl,i=Aa,a=Ji,o=oo,l=Cg(),s=Array.isArray,f=Function.prototype.call,d={configurable:!0,enumerable:!0,writable:!0,value:null},g=Object.defineProperty;return Z1=function(v){var y=arguments[1],E=arguments[2],k,x,w,_,C,T,F,L,V,j;if(v=Object(a(v)),o(y)&&i(y),!this||this===Array||!r(this)){if(!y){if(t(v))return C=v.length,C!==1?Array.apply(null,v):(_=new Array(1),_[0]=v[0],_);if(s(v)){for(_=new Array(C=v.length),x=0;x<C;++x)_[x]=v[x];return _}}_=[]}else k=this;if(!s(v)){if((V=v[e])!==void 0){for(F=i(V).call(v),k&&(_=new k),L=F.next(),x=0;!L.done;)j=y?f.call(y,E,L.value,x):L.value,k?(d.value=j,g(_,x,d)):_[x]=j,L=F.next(),++x;C=x}else if(l(v)){for(C=v.length,k&&(_=new k),x=0,w=0;x<C;++x)j=v[x],x+1<C&&(T=j.charCodeAt(0),T>=55296&&T<=56319&&(j+=v[++x])),j=y?f.call(y,E,j,w):j,k?(d.value=j,g(_,w,d)):_[w]=j,++w;C=w}}if(C===void 0)for(C=n(v.length),k&&(_=new k(C)),x=0;x<C;++x)j=y?f.call(y,E,v[x],x):v[x],k?(d.value=j,g(_,x,d)):_[x]=j;return k&&(d.value=null,_.length=C),_},Z1}var J1,I3;function Og(){return I3||(I3=1,J1=ID()()?Array.from:GD()),J1}var WD=Og(),HD=Array.isArray,qD=function(e){return HD(e)?e:WD(e)},VD=qD,YD=oo,XD=Aa,KD=Array.prototype.slice,QR;QR=function(e){return this.map(function(t,r){return t?t(e[r]):e[r]}).concat(KD.call(e,this.length))};var QD=function(e){return e=VD(e),e.forEach(function(t){YD(t)&&XD(t)}),QR.bind(e)},Xv=Aa,ZD=function(e){var t;return typeof e=="function"?{set:e,get:e}:(t={get:Xv(e.get)},e.set!==void 0?(t.set=Xv(e.set),e.delete&&(t.delete=Xv(e.delete)),e.clear&&(t.clear=Xv(e.clear)),t):(t.set=t.get,t))},Kv=yD,Qv=WR,yh=ea,ZR=PD.methods,JD=QD,e$=ZD,eb=Function.prototype.apply,tb=Function.prototype.call,F3=Object.create,t$=Object.defineProperties,r$=ZR.on,n$=ZR.emit,i$=function(e,t,r){var n=F3(null),i,a,o,l,s,f,d,g,v,y,E,k,x,w,_;return t!==!1?a=t:isNaN(e.length)?a=1:a=e.length,r.normalizer&&(y=e$(r.normalizer),o=y.get,l=y.set,s=y.delete,f=y.clear),r.resolvers!=null&&(_=JD(r.resolvers)),o?w=Qv(function(C){var T,F,L=arguments;if(_&&(L=_(L)),T=o(L),T!==null&&hasOwnProperty.call(n,T))return E&&i.emit("get",T,L,this),n[T];if(L.length===1?F=tb.call(e,this,L[0]):F=eb.call(e,this,L),T===null){if(T=o(L),T!==null)throw Kv("Circular invocation","CIRCULAR_INVOCATION");T=l(L)}else if(hasOwnProperty.call(n,T))throw Kv("Circular invocation","CIRCULAR_INVOCATION");return n[T]=F,k&&i.emit("set",T,null,F),F},a):t===0?w=function(){var C;if(hasOwnProperty.call(n,"data"))return E&&i.emit("get","data",arguments,this),n.data;if(arguments.length?C=eb.call(e,this,arguments):C=tb.call(e,this),hasOwnProperty.call(n,"data"))throw Kv("Circular invocation","CIRCULAR_INVOCATION");return n.data=C,k&&i.emit("set","data",null,C),C}:w=function(C){var T,F=arguments,L;if(_&&(F=_(arguments)),L=String(F[0]),hasOwnProperty.call(n,L))return E&&i.emit("get",L,F,this),n[L];if(F.length===1?T=tb.call(e,this,F[0]):T=eb.call(e,this,F),hasOwnProperty.call(n,L))throw Kv("Circular invocation","CIRCULAR_INVOCATION");return n[L]=T,k&&i.emit("set",L,null,T),T},i={original:e,memoized:w,profileName:r.profileName,get:function(C){return _&&(C=_(C)),o?o(C):String(C[0])},has:function(C){return hasOwnProperty.call(n,C)},delete:function(C){var T;hasOwnProperty.call(n,C)&&(s&&s(C),T=n[C],delete n[C],x&&i.emit("delete",C,T))},clear:function(){var C=n;f&&f(),n=F3(null),i.emit("clear",C)},on:function(C,T){return C==="get"?E=!0:C==="set"?k=!0:C==="delete"&&(x=!0),r$.call(this,C,T)},emit:n$,updateEnv:function(){e=i.original}},o?d=Qv(function(C){var T,F=arguments;_&&(F=_(F)),T=o(F),T!==null&&i.delete(T)},a):t===0?d=function(){return i.delete("data")}:d=function(C){return _&&(C=_(arguments)[0]),i.delete(C)},g=Qv(function(){var C,T=arguments;return t===0?n.data:(_&&(T=_(T)),o?C=o(T):C=String(T[0]),n[C])}),v=Qv(function(){var C,T=arguments;return t===0?i.has("data"):(_&&(T=_(T)),o?C=o(T):C=String(T[0]),C===null?!1:i.has(C))}),t$(w,{__memoized__:yh(!0),delete:yh(d),clear:yh(i.clear),_get:yh(g),_has:yh(v)}),i},a$=Aa,o$=Sg,N3=$l,u$=i$,l$=zR,s$=function e(t){var r,n,i;if(a$(t),r=Object(arguments[1]),r.async&&r.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!r.force?t:(n=l$(r.length,t.length,r.async&&N3.async),i=u$(t,n,r),o$(N3,function(a,o){r[o]&&a(r[o],i,r)}),e.__profiler__&&e.__profiler__(i),i.updateEnv(),i.memoized)},rb,L3;function f$(){return L3||(L3=1,rb=function(e){var t,r,n=e.length;if(!n)return"";for(t=String(e[r=0]);--n;)t+=""+e[++r];return t}),rb}var nb,D3;function c$(){return D3||(D3=1,nb=function(e){return e?function(t){for(var r=String(t[0]),n=0,i=e;--i;)r+=""+t[++n];return r}:function(){return""}}),nb}var ib,$3;function h$(){return $3||($3=1,ib=function(){var e=Number.isNaN;return typeof e!="function"?!1:!e({})&&e(NaN)&&!e(34)}),ib}var ab,B3;function d$(){return B3||(B3=1,ab=function(e){return e!==e}),ab}var ob,z3;function p$(){return z3||(z3=1,ob=h$()()?Number.isNaN:d$()),ob}var ub,U3;function yS(){if(U3)return ub;U3=1;var e=p$(),t=Dl,r=Ji,n=Array.prototype.indexOf,i=Object.prototype.hasOwnProperty,a=Math.abs,o=Math.floor;return ub=function(l){var s,f,d,g;if(!e(l))return n.apply(this,arguments);for(f=t(r(this).length),d=arguments[1],isNaN(d)?d=0:d>=0?d=o(d):d=t(this.length)-o(a(d)),s=d;s<f;++s)if(i.call(this,s)&&(g=this[s],e(g)))return s;return-1},ub}var lb,j3;function v$(){if(j3)return lb;j3=1;var e=yS(),t=Object.create;return lb=function(){var r=0,n=[],i=t(null);return{get:function(a){var o=0,l=n,s,f=a.length;if(f===0)return l[f]||null;if(l=l[f]){for(;o<f-1;){if(s=e.call(l[0],a[o]),s===-1)return null;l=l[1][s],++o}return s=e.call(l[0],a[o]),s===-1?null:l[1][s]||null}return null},set:function(a){var o=0,l=n,s,f=a.length;if(f===0)l[f]=++r;else{for(l[f]||(l[f]=[[],[]]),l=l[f];o<f-1;)s=e.call(l[0],a[o]),s===-1&&(s=l[0].push(a[o])-1,l[1].push([[],[]])),l=l[1][s],++o;s=e.call(l[0],a[o]),s===-1&&(s=l[0].push(a[o])-1),l[1][s]=++r}return i[r]=a,r},delete:function(a){var o=0,l=n,s,f=i[a],d=f.length,g=[];if(d===0)delete l[d];else if(l=l[d]){for(;o<d-1;){if(s=e.call(l[0],f[o]),s===-1)return;g.push(l,s),l=l[1][s],++o}if(s=e.call(l[0],f[o]),s===-1)return;for(a=l[1][s],l[0].splice(s,1),l[1].splice(s,1);!l[0].length&&g.length;)s=g.pop(),l=g.pop(),l[0].splice(s,1),l[1].splice(s,1)}delete i[a]},clear:function(){n=[],i=t(null)}}},lb}var sb,G3;function m$(){if(G3)return sb;G3=1;var e=yS();return sb=function(){var t=0,r=[],n=[];return{get:function(i){var a=e.call(r,i[0]);return a===-1?null:n[a]},set:function(i){return r.push(i[0]),n.push(++t),t},delete:function(i){var a=e.call(n,i);a!==-1&&(r.splice(a,1),n.splice(a,1))},clear:function(){r=[],n=[]}}},sb}var fb,W3;function g$(){if(W3)return fb;W3=1;var e=yS(),t=Object.create;return fb=function(r){var n=0,i=[[],[]],a=t(null);return{get:function(o){for(var l=0,s=i,f;l<r-1;){if(f=e.call(s[0],o[l]),f===-1)return null;s=s[1][f],++l}return f=e.call(s[0],o[l]),f===-1?null:s[1][f]||null},set:function(o){for(var l=0,s=i,f;l<r-1;)f=e.call(s[0],o[l]),f===-1&&(f=s[0].push(o[l])-1,s[1].push([[],[]])),s=s[1][f],++l;return f=e.call(s[0],o[l]),f===-1&&(f=s[0].push(o[l])-1),s[1][f]=++n,a[n]=o,n},delete:function(o){for(var l=0,s=i,f,d=[],g=a[o];l<r-1;){if(f=e.call(s[0],g[l]),f===-1)return;d.push(s,f),s=s[1][f],++l}if(f=e.call(s[0],g[l]),f!==-1){for(o=s[1][f],s[0].splice(f,1),s[1].splice(f,1);!s[0].length&&d.length;)f=d.pop(),s=d.pop(),s[0].splice(f,1),s[1].splice(f,1);delete a[o]}},clear:function(){i=[[],[]],a=t(null)}}},fb}var H3={},cb,q3;function bS(){if(q3)return cb;q3=1;var e=Aa,t=Sg,r=Function.prototype.call;return cb=function(n,i){var a={},o=arguments[2];return e(i),t(n,function(l,s,f,d){a[s]=r.call(i,o,l,s,f,d)}),a},cb}var hb,V3;function xS(){if(V3)return hb;V3=1;var e=function(r){if(typeof r!="function")throw new TypeError(r+" is not a function");return r},t=function(r){var n=document.createTextNode(""),i,a,o=0;return new r(function(){var l;if(i)a&&(i=a.concat(i));else{if(!a)return;i=a}if(a=i,i=null,typeof a=="function"){l=a,a=null,l();return}for(n.data=o=++o%2;a;)l=a.shift(),a.length||(a=null),l()}).observe(n,{characterData:!0}),function(l){if(e(l),i){typeof i=="function"?i=[i,l]:i.push(l);return}i=l,n.data=o=++o%2}};return hb=function(){if(typeof process=="object"&&process&&typeof process.nextTick=="function")return process.nextTick;if(typeof queueMicrotask=="function")return function(r){queueMicrotask(e(r))};if(typeof document=="object"&&document){if(typeof MutationObserver=="function")return t(MutationObserver);if(typeof WebKitMutationObserver=="function")return t(WebKitMutationObserver)}return typeof setImmediate=="function"?function(r){setImmediate(e(r))}:typeof setTimeout=="function"||typeof setTimeout=="object"?function(r){setTimeout(e(r),0)}:null}(),hb}var Y3;function y$(){if(Y3)return H3;Y3=1;var e=Og(),t=bS(),r=jR(),n=WR,i=xS(),a=Array.prototype.slice,o=Function.prototype.apply,l=Object.create;return $l.async=function(s,f){var d=l(null),g=l(null),v=f.memoized,y=f.original,E,k,x;f.memoized=n(function(w){var _=arguments,C=_[_.length-1];return typeof C=="function"&&(E=C,_=a.call(_,0,-1)),v.apply(k=this,x=_)},v);try{r(f.memoized,v)}catch{}f.on("get",function(w){var _,C,T;if(E){if(d[w]){typeof d[w]=="function"?d[w]=[d[w],E]:d[w].push(E),E=null;return}_=E,C=k,T=x,E=k=x=null,i(function(){var F;hasOwnProperty.call(g,w)?(F=g[w],f.emit("getasync",w,T,C),o.call(_,F.context,F.args)):(E=_,k=C,x=T,v.apply(C,T))})}}),f.original=function(){var w,_,C,T;return E?(w=e(arguments),_=function F(L){var V,j,te=F.id;if(te==null){i(o.bind(F,this,arguments));return}if(delete F.id,V=d[te],delete d[te],!!V)return j=e(arguments),f.has(te)&&(L?f.delete(te):(g[te]={context:this,args:j},f.emit("setasync",te,typeof V=="function"?1:V.length))),typeof V=="function"?T=o.call(V,this,j):V.forEach(function(ge){T=o.call(ge,this,j)},this),T},C=E,E=k=x=null,w.push(_),T=o.call(y,this,w),_.cb=C,E=_,T):o.call(y,this,arguments)},f.on("set",function(w){if(!E){f.delete(w);return}d[w]?typeof d[w]=="function"?d[w]=[d[w],E.cb]:d[w].push(E.cb):d[w]=E.cb,delete E.cb,E.id=w,E=null}),f.on("delete",function(w){var _;hasOwnProperty.call(d,w)||g[w]&&(_=g[w],delete g[w],f.emit("deleteasync",w,a.call(_.args,1)))}),f.on("clear",function(){var w=g;g=l(null),f.emit("clearasync",t(w,function(_){return a.call(_.args,1)}))})},H3}var X3={},db,K3;function b$(){if(K3)return db;K3=1;var e=Array.prototype.forEach,t=Object.create;return db=function(r){var n=t(null);return e.call(arguments,function(i){n[i]=!0}),n},db}var pb,Q3;function JR(){return Q3||(Q3=1,pb=function(e){return typeof e=="function"}),pb}var vb,Z3;function x$(){if(Z3)return vb;Z3=1;var e=JR();return vb=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{throw new TypeError("Passed argument cannot be stringifed")}},vb}var mb,J3;function w$(){if(J3)return mb;J3=1;var e=Ji,t=x$();return mb=function(r){return t(e(r))},mb}var gb,eT;function _$(){if(eT)return gb;eT=1;var e=JR();return gb=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{return"<Non-coercible to string value>"}},gb}var yb,tT;function S$(){if(tT)return yb;tT=1;var e=_$(),t=/[\n\r\u2028\u2029]/g;return yb=function(r){var n=e(r);return n.length>100&&(n=n.slice(0,99)+"…"),n=n.replace(t,function(i){return JSON.stringify(i).slice(1,-1)}),n},yb}var Zv={exports:{}},rT;function eP(){if(rT)return Zv.exports;rT=1,Zv.exports=e,Zv.exports.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return Zv.exports}var nT;function E$(){if(nT)return X3;nT=1;var e=bS(),t=b$(),r=w$(),n=S$(),i=eP(),a=xS(),o=Object.create,l=t("then","then:finally","done","done:finally");return $l.promise=function(s,f){var d=o(null),g=o(null),v=o(null);if(s===!0)s=null;else if(s=r(s),!l[s])throw new TypeError("'"+n(s)+"' is not valid promise mode");f.on("set",function(y,E,k){var x=!1;if(!i(k)){g[y]=k,f.emit("setasync",y,1);return}d[y]=1,v[y]=k;var w=function(F){var L=d[y];if(x)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)
42
- Consider to rely on 'then' or 'done' mode instead.`);L&&(delete d[y],g[y]=F,f.emit("setasync",y,L))},_=function(){x=!0,d[y]&&(delete d[y],delete v[y],f.delete(y))},C=s;if(C||(C="then"),C==="then"){var T=function(){a(_)};k=k.then(function(F){a(w.bind(this,F))},T),typeof k.finally=="function"&&k.finally(T)}else if(C==="done"){if(typeof k.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");k.done(w,_)}else if(C==="done:finally"){if(typeof k.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof k.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");k.done(w),k.finally(_)}}),f.on("get",function(y,E,k){var x;if(d[y]){++d[y];return}x=v[y];var w=function(){f.emit("getasync",y,E,k)};i(x)?typeof x.done=="function"?x.done(w):x.then(function(){a(w)}):w()}),f.on("delete",function(y){if(delete v[y],d[y]){delete d[y];return}if(hasOwnProperty.call(g,y)){var E=g[y];delete g[y],f.emit("deleteasync",y,[E])}}),f.on("clear",function(){var y=g;g=o(null),d=o(null),v=o(null),f.emit("clearasync",e(y,function(E){return[E]}))})},X3}var iT={},aT;function A$(){if(aT)return iT;aT=1;var e=Aa,t=Sg,r=$l,n=Function.prototype.apply;return r.dispose=function(i,a,o){var l;if(e(i),o.async&&r.async||o.promise&&r.promise){a.on("deleteasync",l=function(s,f){n.call(i,null,f)}),a.on("clearasync",function(s){t(s,function(f,d){l(d,f)})});return}a.on("delete",l=function(s,f){i(f)}),a.on("clear",function(s){t(s,function(f,d){l(d,f)})})},iT}var oT={},bb,uT;function T$(){return uT||(uT=1,bb=2147483647),bb}var xb,lT;function C$(){if(lT)return xb;lT=1;var e=Dl,t=T$();return xb=function(r){if(r=e(r),r>t)throw new TypeError(r+" exceeds maximum possible timeout");return r},xb}var sT;function O$(){if(sT)return oT;sT=1;var e=Og(),t=Sg,r=xS(),n=eP(),i=C$(),a=$l,o=Function.prototype,l=Math.max,s=Math.min,f=Object.create;return a.maxAge=function(d,g,v){var y,E,k,x;d=i(d),d&&(y=f(null),E=v.async&&a.async||v.promise&&a.promise?"async":"",g.on("set"+E,function(w){y[w]=setTimeout(function(){g.delete(w)},d),typeof y[w].unref=="function"&&y[w].unref(),x&&(x[w]&&x[w]!=="nextTick"&&clearTimeout(x[w]),x[w]=setTimeout(function(){delete x[w]},k),typeof x[w].unref=="function"&&x[w].unref())}),g.on("delete"+E,function(w){clearTimeout(y[w]),delete y[w],x&&(x[w]!=="nextTick"&&clearTimeout(x[w]),delete x[w])}),v.preFetch&&(v.preFetch===!0||isNaN(v.preFetch)?k=.333:k=l(s(Number(v.preFetch),1),0),k&&(x={},k=(1-k)*d,g.on("get"+E,function(w,_,C){x[w]||(x[w]="nextTick",r(function(){var T;x[w]==="nextTick"&&(delete x[w],g.delete(w),v.async&&(_=e(_),_.push(o)),T=g.memoized.apply(C,_),v.promise&&n(T)&&(typeof T.done=="function"?T.done(o,o):T.then(o,o)))}))}))),g.on("clear"+E,function(){t(y,function(w){clearTimeout(w)}),y={},x&&(t(x,function(w){w!=="nextTick"&&clearTimeout(w)}),x={})}))},oT}var fT={},wb,cT;function k$(){if(cT)return wb;cT=1;var e=Dl,t=Object.create,r=Object.prototype.hasOwnProperty;return wb=function(n){var i=0,a=1,o=t(null),l=t(null),s=0,f;return n=e(n),{hit:function(d){var g=l[d],v=++s;if(o[v]=d,l[d]=v,!g)return++i,i<=n?void 0:(d=o[a],f(d),d);if(delete o[g],a===g)for(;!r.call(o,++a););},delete:f=function(d){var g=l[d];if(g&&(delete o[g],delete l[d],--i,a===g)){if(!i){s=0,a=1;return}for(;!r.call(o,++a););}},clear:function(){i=0,a=1,o=t(null),l=t(null),s=0}}},wb}var hT;function M$(){if(hT)return fT;hT=1;var e=Dl,t=k$(),r=$l;return r.max=function(n,i,a){var o,l,s;n=e(n),n&&(l=t(n),o=a.async&&r.async||a.promise&&r.promise?"async":"",i.on("set"+o,s=function(f){f=l.hit(f),f!==void 0&&i.delete(f)}),i.on("get"+o,s),i.on("delete"+o,l.delete),i.on("clear"+o,l.clear))},fT}var dT={},pT;function R$(){if(pT)return dT;pT=1;var e=ea,t=$l,r=Object.create,n=Object.defineProperties;return t.refCounter=function(i,a,o){var l,s;l=r(null),s=o.async&&t.async||o.promise&&t.promise?"async":"",a.on("set"+s,function(f,d){l[f]=d||1}),a.on("get"+s,function(f){++l[f]}),a.on("delete"+s,function(f){delete l[f]}),a.on("clear"+s,function(){l={}}),n(a.memoized,{deleteRef:e(function(){var f=a.get(arguments);return f===null||!l[f]?null:--l[f]?!1:(a.delete(f),!0)}),getRefCount:e(function(){var f=a.get(arguments);return f===null||!l[f]?0:l[f]})})},dT}var P$=vS,I$=zR,F$=s$,N$=function(e){var t=P$(arguments[1]),r;return t.normalizer||(r=t.length=I$(t.length,e.length,t.async),r!==0&&(t.primitive?r===!1?t.normalizer=f$():r>1&&(t.normalizer=c$()(r)):r===!1?t.normalizer=v$()():r===1?t.normalizer=m$()():t.normalizer=g$()(r))),t.async&&y$(),t.promise&&E$(),t.dispose&&A$(),t.maxAge&&O$(),t.max&&M$(),t.refCounter&&R$(),F$(e,t)};const Yie=mi(N$);var tP={exports:{}};/*!
41
+ Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}kn!==5&&(kn=2),s=iS(s,l),v=o;do{switch(v.tag){case 3:a=s,v.flags|=4096,t&=-t,v.lanes|=t;var F=wR(v,a,t);OA(v,F);break e;case 1:a=s;var L=v.type,V=v.stateNode;if(!(v.flags&64)&&(typeof L.getDerivedStateFromError=="function"||V!==null&&typeof V.componentDidCatch=="function"&&(ga===null||!ga.has(V)))){v.flags|=4096,t&=-t,v.lanes|=t;var j=_R(v,a,t);OA(v,j);break e}}v=v.return}while(v!==null)}kR(r)}catch(te){t=te,hn===r&&r!==null&&(hn=r=r.return);continue}break}while(1)}function OR(){var e=Em.current;return Em.current=Sm,e===null?Sm:e}function Dh(e,t){var r=er;er|=16;var n=OR();Hn===e&&Dn===t||cf(e,t);do try{bL();break}catch(i){TR(e,i)}while(1);if(Y2(),er=r,Em.current=n,hn!==null)throw Error(dt(261));return Hn=null,Dn=0,kn}function bL(){for(;hn!==null;)MR(hn)}function xL(){for(;hn!==null&&!tL();)MR(hn)}function MR(e){var t=PR(e.alternate,e,wl);e.memoizedProps=e.pendingProps,t===null?kR(e):hn=t,aS.current=null}function kR(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=cL(t),r!==null){r.flags&=2047,hn=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=fL(r,t,wl),r!==null){hn=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||wl&1073741824||!(r.mode&4)){for(var n=0,i=r.child;i!==null;)n|=i.lanes|i.childLanes,i=i.sibling;r.childLanes=n}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){hn=t;return}hn=t=e}while(t!==null);kn===0&&(kn=5)}function el(e){var t=wf();return xl(99,wL.bind(null,e,t)),null}function wL(e,t){do mu();while(Jh!==null);if(er&48)throw Error(dt(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(dt(177));e.callbackNode=null;var n=r.lanes|r.childLanes,i=n,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var o=e.eventTimes,l=e.expirationTimes;0<a;){var s=31-au(a),f=1<<s;i[s]=0,o[s]=-1,l[s]=-1,a&=~f}if(Ja!==null&&!(n&24)&&Ja.has(e)&&Ja.delete(e),e===Hn&&(hn=Hn=null,Dn=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,n!==null){if(i=er,er|=32,aS.current=null,v1=L0,o=pA(),Ew(o)){if("selectionStart"in o)l={start:o.selectionStart,end:o.selectionEnd};else e:if(l=(l=o.ownerDocument)&&l.defaultView||window,(f=l.getSelection&&l.getSelection())&&f.rangeCount!==0){l=f.anchorNode,a=f.anchorOffset,s=f.focusNode,f=f.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var d=0,g=-1,v=-1,y=0,E=0,M=o,x=null;t:for(;;){for(var w;M!==l||a!==0&&M.nodeType!==3||(g=d+a),M!==s||f!==0&&M.nodeType!==3||(v=d+f),M.nodeType===3&&(d+=M.nodeValue.length),(w=M.firstChild)!==null;)x=M,M=w;for(;;){if(M===o)break t;if(x===l&&++y===a&&(g=d),x===s&&++E===f&&(v=d),(w=M.nextSibling)!==null)break;M=x,x=M.parentNode}M=w}l=g===-1||v===-1?null:{start:g,end:v}}else l=null;l=l||{start:0,end:0}}else l=null;m1={focusedElem:o,selectionRange:l},L0=!1,td=null,G0=!1,$t=n;do try{_L()}catch(te){if($t===null)throw Error(dt(330));ru($t,te),$t=$t.nextEffect}while($t!==null);td=null,$t=n;do try{for(o=e;$t!==null;){var _=$t.flags;if(_&16&&dd($t.stateNode,""),_&128){var T=$t.alternate;if(T!==null){var C=T.ref;C!==null&&(typeof C=="function"?C(null):C.current=null)}}switch(_&1038){case 2:JA($t),$t.flags&=-3;break;case 6:JA($t),$t.flags&=-3,S1($t.alternate,$t);break;case 1024:$t.flags&=-1025;break;case 1028:$t.flags&=-1025,S1($t.alternate,$t);break;case 4:S1($t.alternate,$t);break;case 8:l=$t,SR(o,l);var F=l.alternate;QA(l),F!==null&&QA(F)}$t=$t.nextEffect}}catch(te){if($t===null)throw Error(dt(330));ru($t,te),$t=$t.nextEffect}while($t!==null);if(C=m1,T=pA(),_=C.focusedElem,o=C.selectionRange,T!==_&&_&&_.ownerDocument&&Uk(_.ownerDocument.documentElement,_)){for(o!==null&&Ew(_)&&(T=o.start,C=o.end,C===void 0&&(C=T),"selectionStart"in _?(_.selectionStart=T,_.selectionEnd=Math.min(C,_.value.length)):(C=(T=_.ownerDocument||document)&&T.defaultView||window,C.getSelection&&(C=C.getSelection(),l=_.textContent.length,F=Math.min(o.start,l),o=o.end===void 0?F:Math.min(o.end,l),!C.extend&&F>o&&(l=o,o=F,F=l),l=dA(_,F),a=dA(_,o),l&&a&&(C.rangeCount!==1||C.anchorNode!==l.node||C.anchorOffset!==l.offset||C.focusNode!==a.node||C.focusOffset!==a.offset)&&(T=T.createRange(),T.setStart(l.node,l.offset),C.removeAllRanges(),F>o?(C.addRange(T),C.extend(a.node,a.offset)):(T.setEnd(a.node,a.offset),C.addRange(T)))))),T=[],C=_;C=C.parentNode;)C.nodeType===1&&T.push({element:C,left:C.scrollLeft,top:C.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<T.length;_++)C=T[_],C.element.scrollLeft=C.left,C.element.scrollTop=C.top}L0=!!v1,m1=v1=null,e.current=r,$t=n;do try{for(_=e;$t!==null;){var L=$t.flags;if(L&36&&vL(_,$t.alternate,$t),L&128){T=void 0;var V=$t.ref;if(V!==null){var j=$t.stateNode;switch($t.tag){case 5:T=j;break;default:T=j}typeof V=="function"?V(T):V.current=T}}$t=$t.nextEffect}}catch(te){if($t===null)throw Error(dt(330));ru($t,te),$t=$t.nextEffect}while($t!==null);$t=null,nL(),er=i}else e.current=r;if(uu)uu=!1,Jh=e,Lh=t;else for($t=n;$t!==null;)t=$t.nextEffect,$t.nextEffect=null,$t.flags&8&&(L=$t,L.sibling=null,L.stateNode=null),$t=t;if(n=e.pendingLanes,n===0&&(ga=null),n===1?e===Vw?ed++:(ed=0,Vw=e):ed=0,r=r.stateNode,pl&&typeof pl.onCommitFiberRoot=="function")try{pl.onCommitFiberRoot(q2,r,void 0,(r.current.flags&64)===64)}catch{}if(Fi(e,Ln()),Am)throw Am=!1,e=Ww,Ww=null,e;return er&8||Ea(),null}function _L(){for(;$t!==null;){var e=$t.alternate;G0||td===null||($t.flags&8?JE($t,td)&&(G0=!0):$t.tag===13&&mL(e,$t)&&JE($t,td)&&(G0=!0));var t=$t.flags;t&256&&pL(e,$t),!(t&512)||uu||(uu=!0,wd(97,function(){return mu(),null})),$t=$t.nextEffect}}function mu(){if(Lh!==90){var e=97<Lh?97:Lh;return Lh=90,xl(e,EL)}return!1}function SL(e,t){Hw.push(t,e),uu||(uu=!0,wd(97,function(){return mu(),null}))}function RR(e,t){qw.push(t,e),uu||(uu=!0,wd(97,function(){return mu(),null}))}function EL(){if(Jh===null)return!1;var e=Jh;if(Jh=null,er&48)throw Error(dt(331));var t=er;er|=32;var r=qw;qw=[];for(var n=0;n<r.length;n+=2){var i=r[n],a=r[n+1],o=i.destroy;if(i.destroy=void 0,typeof o=="function")try{o()}catch(s){if(a===null)throw Error(dt(330));ru(a,s)}}for(r=Hw,Hw=[],n=0;n<r.length;n+=2){i=r[n],a=r[n+1];try{var l=i.create;i.destroy=l()}catch(s){if(a===null)throw Error(dt(330));ru(a,s)}}for(l=e.current.firstEffect;l!==null;)e=l.nextEffect,l.nextEffect=null,l.flags&8&&(l.sibling=null,l.stateNode=null),l=e;return er=t,Ea(),!0}function t3(e,t,r){t=iS(r,t),t=wR(e,t,1),Jo(e,t),t=vi(),e=xg(e,1),e!==null&&(hg(e,1,t),Fi(e,t))}function ru(e,t){if(e.tag===3)t3(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){t3(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ga===null||!ga.has(n))){e=iS(t,e);var i=_R(r,e,1);if(Jo(r,i),i=vi(),r=xg(r,1),r!==null)hg(r,1,i),Fi(r,i);else if(typeof n.componentDidCatch=="function"&&(ga===null||!ga.has(n)))try{n.componentDidCatch(t,e)}catch{}break}}r=r.return}}function AL(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=vi(),e.pingedLanes|=e.suspendedLanes&r,Hn===e&&(Dn&r)===r&&(kn===4||kn===3&&(Dn&62914560)===Dn&&500>Ln()-uS?cf(e,0):oS|=r),Fi(e,t)}function CL(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(Xa===0&&(Xa=Uf),t=Us(62914560&~Xa),t===0&&(t=4194304)):t=wf()===99?1:2:t=1),r=vi(),e=xg(e,t),e!==null&&(hg(e,t,r),Fi(e,r))}var PR;PR=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||ri.current)Ki=!0;else if(r&n)Ki=!!(e.flags&16384);else{switch(Ki=!1,t.tag){case 3:UA(t),x1();break;case 5:PA(t);break;case 1:ni(t.type)&&B0(t);break;case 4:Pw(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;Vr(dm,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?jA(e,t,r):(Vr(Hr,Hr.current&1),t=Qa(e,t,r),t!==null?t.sibling:null);Vr(Hr,Hr.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return VA(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Vr(Hr,Hr.current),n)break;return null;case 23:case 24:return t.lanes=0,w1(e,t,r)}return Qa(e,t,r)}else Ki=!1;switch(t.lanes=0,t.tag){case 2:if(n=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=xf(t,$n.current),lf(t,r),i=eS(null,t,n,e,i,r),t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,ni(n)){var a=!0;B0(t)}else a=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,K2(t);var o=n.getDerivedStateFromProps;typeof o=="function"&&mm(t,n,o,e),i.updater=yg,t.stateNode=i,i._reactInternals=t,Rw(t,n,e,r),t=Lw(null,t,n,!0,a,r)}else t.tag=0,Jn(null,t,i,r),t=t.child;return t;case 16:i=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=OL(i),e=Yi(i,e),a){case 0:t=Nw(null,t,i,e,r);break e;case 1:t=zA(null,t,i,e,r);break e;case 11:t=$A(null,t,i,e,r);break e;case 14:t=BA(null,t,i,Yi(i.type,e),n,r);break e}throw Error(dt(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yi(n,i),Nw(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yi(n,i),zA(e,t,n,i,r);case 3:if(UA(t),n=t.updateQueue,e===null||n===null)throw Error(dt(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,nR(e,t),_d(t,n,null,r),n=t.memoizedState.element,n===i)x1(),t=Qa(e,t,r);else{if(i=t.stateNode,(a=i.hydrate)&&(Ho=uf(t.stateNode.containerInfo.firstChild),Ka=t,a=xa=!0),a){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)a=e[i],a._workInProgressVersionPrimary=e[i+1],sf.push(a);for(r=uR(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else Jn(e,t,n,r),x1();t=t.child}return t;case 5:return PA(t),e===null&&Iw(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Tw(n,i)?o=null:a!==null&&Tw(n,a)&&(t.flags|=16),gR(e,t),Jn(e,t,o,r),t.child;case 6:return e===null&&Iw(t),null;case 13:return jA(e,t,r);case 4:return Pw(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=gm(t,null,n,r):Jn(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yi(n,i),$A(e,t,n,i,r);case 7:return Jn(e,t,t.pendingProps,r),t.child;case 8:return Jn(e,t,t.pendingProps.children,r),t.child;case 12:return Jn(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value;var l=t.type._context;if(Vr(dm,l._currentValue),l._currentValue=a,o!==null)if(l=o.value,a=Oi(l,a)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(l,a):1073741823)|0,a===0){if(o.children===i.children&&!ri.current){t=Qa(e,t,r);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var s=l.dependencies;if(s!==null){o=l.child;for(var f=s.firstContext;f!==null;){if(f.context===n&&f.observedBits&a){l.tag===1&&(f=Zo(-1,r&-r),f.tag=2,Jo(l,f)),l.lanes|=r,f=l.alternate,f!==null&&(f.lanes|=r),rR(l.return,r),s.lanes|=r;break}f=f.next}}else o=l.tag===10&&l.type===t.type?null:l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}Jn(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps,n=a.children,lf(t,r),i=Ii(i,a.unstable_observedBits),n=n(i),t.flags|=1,Jn(e,t,n,r),t.child;case 14:return i=t.type,a=Yi(i,t.pendingProps),a=Yi(i.type,a),BA(e,t,i,a,n,r);case 15:return mR(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:Yi(n,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ni(n)?(e=!0,B0(t)):e=!1,lf(t,r),aR(t,n,i),Rw(t,n,i,r),Lw(null,t,n,!0,e,r);case 19:return VA(e,t,r);case 23:return w1(e,t,r);case 24:return w1(e,t,r)}throw Error(dt(156,t.tag))};function TL(e,t,r,n){this.tag=e,this.key=r,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=n,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Mi(e,t,r,n){return new TL(e,t,r,n)}function sS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function OL(e){if(typeof e=="function")return sS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===sg)return 11;if(e===fg)return 14}return 2}function lu(e,t){var r=e.alternate;return r===null?(r=Mi(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function W0(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")sS(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Uo:return hf(r.children,i,a,t);case lk:o=8,i|=16;break;case A2:o=8,i|=1;break;case Wh:return e=Mi(12,r,t,i|8),e.elementType=Wh,e.type=Wh,e.lanes=a,e;case Hh:return e=Mi(13,r,t,i),e.type=Hh,e.elementType=Hh,e.lanes=a,e;case im:return e=Mi(19,r,t,i),e.elementType=im,e.lanes=a,e;case R2:return fS(r,i,a,t);case sw:return e=Mi(24,r,t,i),e.elementType=sw,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case C2:o=10;break e;case T2:o=9;break e;case sg:o=11;break e;case fg:o=14;break e;case O2:o=16,n=null;break e;case M2:o=22;break e}throw Error(dt(130,e==null?e:typeof e,""))}return t=Mi(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function hf(e,t,r,n){return e=Mi(7,e,n,t),e.lanes=r,e}function fS(e,t,r,n){return e=Mi(23,e,n,t),e.elementType=R2,e.lanes=r,e}function E1(e,t,r){return e=Mi(6,e,null,t),e.lanes=r,e}function A1(e,t,r){return t=Mi(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ML(e,t,r){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=l1(0),this.expirationTimes=l1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=l1(0),this.mutableSourceEagerHydrationData=null}function kL(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ol,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Cm(e,t,r,n){var i=t.current,a=vi(),o=eu(i);e:if(r){r=r._reactInternals;t:{if(Nl(r)!==r||r.tag!==1)throw Error(dt(170));var l=r;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ni(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(dt(171))}if(r.tag===1){var s=r.type;if(ni(s)){r=Xk(r,s,l);break e}}r=l}else r=ou;return t.context===null?t.context=r:t.pendingContext=r,t=Zo(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),Jo(i,t),tu(i,o,a),o}function C1(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function r3(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function cS(e,t){r3(e,t),(e=e.alternate)&&r3(e,t)}function RL(){return null}function hS(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new ML(e,t,r!=null&&r.hydrate===!0),t=Mi(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,K2(t),e[zf]=r.current,Wk(e.nodeType===8?e.parentNode:e),n)for(e=0;e<n.length;e++){t=n[e];var i=t._getVersion;i=i(t._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[t,i]:r.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=r}hS.prototype.render=function(e){Cm(e,this._internalRoot,null,null)};hS.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Cm(null,e,null,function(){t[zf]=null})};function Kd(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function PL(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new hS(e,0,t?{hydrate:!0}:void 0)}function wg(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a._internalRoot;if(typeof i=="function"){var l=i;i=function(){var f=C1(o);l.call(f)}}Cm(t,o,e,i)}else{if(a=r._reactRootContainer=PL(r,n),o=a._internalRoot,typeof i=="function"){var s=i;i=function(){var f=C1(o);s.call(f)}}CR(function(){Cm(t,o,e,i)})}return C1(o)}Sk=function(e){if(e.tag===13){var t=vi();tu(e,4,t),cS(e,4)}};L2=function(e){if(e.tag===13){var t=vi();tu(e,67108864,t),cS(e,67108864)}};Ek=function(e){if(e.tag===13){var t=vi(),r=eu(e);tu(e,r,t),cS(e,r)}};Ak=function(e,t){return t()};bw=function(e,t,r){switch(t){case"input":if(cw(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=mg(n);if(!i)throw Error(dt(90));fk(n),cw(n,i)}}}break;case"textarea":hk(e,r);break;case"select":t=r.value,t!=null&&nf(e,!!r.multiple,t,!1)}};I2=AR;bk=function(e,t,r,n,i){var a=er;er|=4;try{return xl(98,e.bind(null,t,r,n,i))}finally{er=a,er===0&&(Gf(),Ea())}};F2=function(){!(er&49)&&(yL(),mu())};xk=function(e,t){var r=er;er|=2;try{return e(t)}finally{er=r,er===0&&(Gf(),Ea())}};function IR(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Kd(t))throw Error(dt(200));return kL(e,t,null,r)}var IL={Events:[Vd,Ys,mg,gk,yk,mu,{current:!1}]},gh={findFiberByHostInstance:ll,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},FL={bundleType:gh.bundleType,version:gh.version,rendererPackageName:gh.rendererPackageName,rendererConfig:gh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Fl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=_k(e),e===null?null:e.stateNode},findFiberByHostInstance:gh.findFiberByHostInstance||RL,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vv.isDisabled&&Vv.supportsFiber)try{q2=Vv.inject(FL),pl=Vv}catch{}}Ni.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=IL;Ni.createPortal=IR;Ni.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(dt(188)):Error(dt(268,Object.keys(e)));return e=_k(t),e=e===null?null:e.stateNode,e};Ni.flushSync=function(e,t){var r=er;if(r&48)return e(t);er|=1;try{if(e)return xl(99,e.bind(null,t))}finally{er=r,Ea()}};Ni.hydrate=function(e,t,r){if(!Kd(t))throw Error(dt(200));return wg(null,e,t,!0,r)};Ni.render=function(e,t,r){if(!Kd(t))throw Error(dt(200));return wg(null,e,t,!1,r)};Ni.unmountComponentAtNode=function(e){if(!Kd(e))throw Error(dt(40));return e._reactRootContainer?(CR(function(){wg(null,null,e,!1,function(){e._reactRootContainer=null,e[zf]=null})}),!0):!1};Ni.unstable_batchedUpdates=AR;Ni.unstable_createPortal=function(e,t){return IR(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};Ni.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Kd(r))throw Error(dt(200));if(e==null||e._reactInternals===void 0)throw Error(dt(38));return wg(e,t,r,!1,n)};Ni.version="17.0.2";function FR(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(FR)}catch(e){console.error(e)}}FR(),ik.exports=Ni;var dS=ik.exports;const $h=mi(dS);var NR={exports:{}},NL="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",LL=NL,DL=LL;function LR(){}function DR(){}DR.resetWarningCache=LR;var $L=function(){function e(n,i,a,o,l,s){if(s!==DL){var f=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 f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var r={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:DR,resetWarningCache:LR};return r.PropTypes=r,r};NR.exports=$L();var BL=NR.exports;const dr=mi(BL);var zL=function(){},UL=zL(),oo=function(e){return e!==UL&&e!==null},jL=oo,GL=Array.prototype.forEach,WL=Object.create,HL=function(e,t){var r;for(r in e)t[r]=e[r]},pS=function(e){var t=WL(null);return GL.call(arguments,function(r){jL(r)&&HL(Object(r),t)}),t},qL=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},T1,n3;function VL(){return n3||(n3=1,T1=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),T1}var YL=qL()?Math.sign:VL(),XL=YL,KL=Math.abs,QL=Math.floor,ZL=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:XL(e)*QL(KL(e)))},JL=ZL,eD=Math.max,Dl=function(e){return eD(0,JL(e))},tD=Dl,$R=function(e,t,r){var n;return isNaN(e)?(n=t,n>=0?r&&n?n-1:n:1):e===!1?!1:tD(e)},Aa=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},rD=oo,Ji=function(e){if(!rD(e))throw new TypeError("Cannot use null or undefined");return e},nD=Aa,iD=Ji,aD=Function.prototype.bind,i3=Function.prototype.call,oD=Object.keys,uD=Object.prototype.propertyIsEnumerable,lD=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(iD(r)),nD(n),i=oD(r),o&&i.sort(typeof o=="function"?aD.call(o,r):void 0),typeof e!="function"&&(e=i[e]),i3.call(e,i,function(l,s){return uD.call(r,l)?i3.call(n,a,r[l],l,r,s):t})}},_g=lD("forEach"),$l={},BR={exports:{}},sD=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")},O1,a3;function fD(){return a3||(a3=1,O1=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),O1}var M1,o3;function cD(){if(o3)return M1;o3=1;var e=oo,t=Object.keys;return M1=function(r){return t(e(r)?Object(r):r)},M1}var k1,u3;function hD(){return u3||(u3=1,k1=fD()()?Object.keys:cD()),k1}var R1,l3;function dD(){if(l3)return R1;l3=1;var e=hD(),t=Ji,r=Math.max;return R1=function(n,i){var a,o,l=r(arguments.length,2),s;for(n=Object(t(n)),s=function(f){try{n[f]=i[f]}catch(d){a||(a=d)}},o=1;o<l;++o)i=arguments[o],e(i).forEach(s);if(a!==void 0)throw a;return n},R1}var Sg=sD()?Object.assign:dD(),pD=oo,vD={function:!0,object:!0},vS=function(e){return pD(e)&&vD[typeof e]||!1};(function(e){var t=Sg,r=vS,n=oo,i=Error.captureStackTrace;e.exports=function(a){var o=new Error(a),l=arguments[1],s=arguments[2];return n(s)||r(l)&&(s=l,l=null),n(s)&&t(o,s),n(l)&&(o.code=l),i&&i(o,e.exports),o}})(BR);var mD=BR.exports,Xw={exports:{}},P1,s3;function zR(){if(s3)return P1;s3=1;var e=Ji,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols;return P1=function(a,o){var l,s=Object(e(o));if(a=Object(e(a)),n(s).forEach(function(f){try{t(a,f,r(o,f))}catch(d){l=d}}),typeof i=="function"&&i(s).forEach(function(f){try{t(a,f,r(o,f))}catch(d){l=d}}),l!==void 0)throw l;return a},P1}var f3=Dl,UR=function(e,t){return t},I1,c3,h3,d3;try{Object.defineProperty(UR,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}UR.length===1?(I1={configurable:!0,writable:!1,enumerable:!1},c3=Object.defineProperty,Xw.exports=function(e,t){return t=f3(t),e.length===t?e:(I1.value=t,c3(e,"length",I1))}):(d3=zR(),h3=function(){var e=[];return function(t){var r,n=0;if(e[t])return e[t];for(r=[];t--;)r.push("a"+(++n).toString(36));return new Function("fn","return function ("+r.join(", ")+") { return fn.apply(this, arguments); };")}}(),Xw.exports=function(e,t){var r;if(t=f3(t),e.length===t)return e;r=h3(t)(e);try{d3(r,e)}catch{}return r});var jR=Xw.exports,GR={exports:{}},gD=void 0,Wf=function(e){return e!==gD&&e!==null},yD=Wf,bD={object:!0,function:!0,undefined:!0},mS=function(e){return yD(e)?hasOwnProperty.call(bD,typeof e):!1},xD=mS,wD=function(e){if(!xD(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}},_D=wD,SD=function(e){if(typeof e!="function"||!hasOwnProperty.call(e,"length"))return!1;try{if(typeof e.length!="number"||typeof e.call!="function"||typeof e.apply!="function")return!1}catch{return!1}return!_D(e)},ED=SD,AD=/^\s*class[\s{/}]/,CD=Function.prototype.toString,WR=function(e){return!(!ED(e)||AD.test(CD.call(e)))},F1="razdwatrzy",TD=function(){return typeof F1.contains!="function"?!1:F1.contains("dwa")===!0&&F1.contains("foo")===!1},N1,p3;function OD(){if(p3)return N1;p3=1;var e=String.prototype.indexOf;return N1=function(t){return e.call(this,t,arguments[1])>-1},N1}var HR=TD()?String.prototype.contains:OD(),H0=Wf,v3=WR,qR=Sg,VR=pS,rd=HR,MD=GR.exports=function(e,t){var r,n,i,a,o;return arguments.length<2||typeof e!="string"?(a=t,t=e,e=null):a=arguments[2],H0(e)?(r=rd.call(e,"c"),n=rd.call(e,"e"),i=rd.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?qR(VR(a),o):o};MD.gs=function(e,t,r){var n,i,a,o;return typeof e!="string"?(a=r,r=t,t=e,e=null):a=arguments[3],H0(t)?v3(t)?H0(r)?v3(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,H0(e)?(n=rd.call(e,"c"),i=rd.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?qR(VR(a),o):o};var ea=GR.exports,Kw={exports:{}};(function(e,t){var r=ea,n=Aa,i=Function.prototype.apply,a=Function.prototype.call,o=Object.create,l=Object.defineProperty,s=Object.defineProperties,f=Object.prototype.hasOwnProperty,d={configurable:!0,enumerable:!1,writable:!0},g,v,y,E,M,x,w;g=function(_,T){var C;return n(T),f.call(this,"__ee__")?C=this.__ee__:(C=d.value=o(null),l(this,"__ee__",d),d.value=null),C[_]?typeof C[_]=="object"?C[_].push(T):C[_]=[C[_],T]:C[_]=T,this},v=function(_,T){var C,F;return n(T),F=this,g.call(this,_,C=function(){y.call(F,_,C),i.call(T,this,arguments)}),C.__eeOnceListener__=T,this},y=function(_,T){var C,F,L,V;if(n(T),!f.call(this,"__ee__"))return this;if(C=this.__ee__,!C[_])return this;if(F=C[_],typeof F=="object")for(V=0;L=F[V];++V)(L===T||L.__eeOnceListener__===T)&&(F.length===2?C[_]=F[V?0:1]:F.splice(V,1));else(F===T||F.__eeOnceListener__===T)&&delete C[_];return this},E=function(_){var T,C,F,L,V;if(f.call(this,"__ee__")&&(L=this.__ee__[_],!!L))if(typeof L=="object"){for(C=arguments.length,V=new Array(C-1),T=1;T<C;++T)V[T-1]=arguments[T];for(L=L.slice(),T=0;F=L[T];++T)i.call(F,this,V)}else switch(arguments.length){case 1:a.call(L,this);break;case 2:a.call(L,this,arguments[1]);break;case 3:a.call(L,this,arguments[1],arguments[2]);break;default:for(C=arguments.length,V=new Array(C-1),T=1;T<C;++T)V[T-1]=arguments[T];i.call(L,this,V)}},M={on:g,once:v,off:y,emit:E},x={on:r(g),once:r(v),off:r(y),emit:r(E)},w=s({},x),e.exports=t=function(_){return _==null?o(w):s(Object(_),x)},t.methods=M})(Kw,Kw.exports);var kD=Kw.exports,L1,m3;function RD(){return m3||(m3=1,L1=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}),L1}var D1,g3;function PD(){return g3||(g3=1,D1=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),D1}var $1,y3;function ID(){if(y3)return $1;y3=1;var e=function(){if(typeof self=="object"&&self)return self;if(typeof window=="object"&&window)return window;throw new Error("Unable to resolve global `this`")};return $1=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch{return e()}try{return __global__||e()}finally{delete Object.prototype.__global__}}(),$1}var B1,b3;function Eg(){return b3||(b3=1,B1=PD()()?globalThis:ID()),B1}var z1,x3;function FD(){if(x3)return z1;x3=1;var e=Eg(),t={object:!0,symbol:!0};return z1=function(){var r=e.Symbol,n;if(typeof r!="function")return!1;n=r("test symbol");try{String(n)}catch{return!1}return!(!t[typeof r.iterator]||!t[typeof r.toPrimitive]||!t[typeof r.toStringTag])},z1}var U1,w3;function ND(){return w3||(w3=1,U1=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}),U1}var j1,_3;function YR(){if(_3)return j1;_3=1;var e=ND();return j1=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t},j1}var G1,S3;function LD(){if(S3)return G1;S3=1;var e=ea,t=Object.create,r=Object.defineProperty,n=Object.prototype,i=t(null);return G1=function(a){for(var o=0,l,s;i[a+(o||"")];)++o;return a+=o||"",i[a]=!0,l="@@"+a,r(n,l,e.gs(null,function(f){s||(s=!0,r(this,l,e(f)),s=!1)})),l},G1}var W1,E3;function DD(){if(E3)return W1;E3=1;var e=ea,t=Eg().Symbol;return W1=function(r){return Object.defineProperties(r,{hasInstance:e("",t&&t.hasInstance||r("hasInstance")),isConcatSpreadable:e("",t&&t.isConcatSpreadable||r("isConcatSpreadable")),iterator:e("",t&&t.iterator||r("iterator")),match:e("",t&&t.match||r("match")),replace:e("",t&&t.replace||r("replace")),search:e("",t&&t.search||r("search")),species:e("",t&&t.species||r("species")),split:e("",t&&t.split||r("split")),toPrimitive:e("",t&&t.toPrimitive||r("toPrimitive")),toStringTag:e("",t&&t.toStringTag||r("toStringTag")),unscopables:e("",t&&t.unscopables||r("unscopables"))})},W1}var H1,A3;function $D(){if(A3)return H1;A3=1;var e=ea,t=YR(),r=Object.create(null);return H1=function(n){return Object.defineProperties(n,{for:e(function(i){return r[i]?r[i]:r[i]=n(String(i))}),keyFor:e(function(i){var a;t(i);for(a in r)if(r[a]===i)return a})})},H1}var q1,C3;function BD(){if(C3)return q1;C3=1;var e=ea,t=YR(),r=Eg().Symbol,n=LD(),i=DD(),a=$D(),o=Object.create,l=Object.defineProperties,s=Object.defineProperty,f,d,g;if(typeof r=="function")try{String(r()),g=!0}catch{}else r=null;return d=function(y){if(this instanceof d)throw new TypeError("Symbol is not a constructor");return f(y)},q1=f=function v(y){var E;if(this instanceof v)throw new TypeError("Symbol is not a constructor");return g?r(y):(E=o(d.prototype),y=y===void 0?"":String(y),l(E,{__description__:e("",y),__name__:e("",n(y))}))},i(f),a(f),l(d.prototype,{constructor:e(f),toString:e("",function(){return this.__name__})}),l(f.prototype,{toString:e(function(){return"Symbol ("+t(this).__description__+")"}),valueOf:e(function(){return t(this)})}),s(f.prototype,f.toPrimitive,e("",function(){var v=t(this);return typeof v=="symbol"?v:v.toString()})),s(f.prototype,f.toStringTag,e("c","Symbol")),s(d.prototype,f.toStringTag,e("c",f.prototype[f.toStringTag])),s(d.prototype,f.toPrimitive,e("c",f.prototype[f.toPrimitive])),q1}var V1,T3;function Bl(){return T3||(T3=1,V1=FD()()?Eg().Symbol:BD()),V1}var Y1,O3;function Ag(){if(O3)return Y1;O3=1;var e=Object.prototype.toString,t=e.call(function(){return arguments}());return Y1=function(r){return e.call(r)===t},Y1}var X1,M3;function zD(){if(M3)return X1;M3=1;var e=Object.prototype.toString,t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return X1=function(r){return typeof r=="function"&&t(e.call(r))},X1}var K1,k3;function Cg(){if(k3)return K1;k3=1;var e=Object.prototype.toString,t=e.call("");return K1=function(r){return typeof r=="string"||r&&typeof r=="object"&&(r instanceof String||e.call(r)===t)||!1},K1}var Q1,R3;function UD(){if(R3)return Q1;R3=1;var e=Bl().iterator,t=Ag(),r=zD(),n=Dl,i=Aa,a=Ji,o=oo,l=Cg(),s=Array.isArray,f=Function.prototype.call,d={configurable:!0,enumerable:!0,writable:!0,value:null},g=Object.defineProperty;return Q1=function(v){var y=arguments[1],E=arguments[2],M,x,w,_,T,C,F,L,V,j;if(v=Object(a(v)),o(y)&&i(y),!this||this===Array||!r(this)){if(!y){if(t(v))return T=v.length,T!==1?Array.apply(null,v):(_=new Array(1),_[0]=v[0],_);if(s(v)){for(_=new Array(T=v.length),x=0;x<T;++x)_[x]=v[x];return _}}_=[]}else M=this;if(!s(v)){if((V=v[e])!==void 0){for(F=i(V).call(v),M&&(_=new M),L=F.next(),x=0;!L.done;)j=y?f.call(y,E,L.value,x):L.value,M?(d.value=j,g(_,x,d)):_[x]=j,L=F.next(),++x;T=x}else if(l(v)){for(T=v.length,M&&(_=new M),x=0,w=0;x<T;++x)j=v[x],x+1<T&&(C=j.charCodeAt(0),C>=55296&&C<=56319&&(j+=v[++x])),j=y?f.call(y,E,j,w):j,M?(d.value=j,g(_,w,d)):_[w]=j,++w;T=w}}if(T===void 0)for(T=n(v.length),M&&(_=new M(T)),x=0;x<T;++x)j=y?f.call(y,E,v[x],x):v[x],M?(d.value=j,g(_,x,d)):_[x]=j;return M&&(d.value=null,_.length=T),_},Q1}var Z1,P3;function Tg(){return P3||(P3=1,Z1=RD()()?Array.from:UD()),Z1}var jD=Tg(),GD=Array.isArray,WD=function(e){return GD(e)?e:jD(e)},HD=WD,qD=oo,VD=Aa,YD=Array.prototype.slice,XR;XR=function(e){return this.map(function(t,r){return t?t(e[r]):e[r]}).concat(YD.call(e,this.length))};var XD=function(e){return e=HD(e),e.forEach(function(t){qD(t)&&VD(t)}),XR.bind(e)},Yv=Aa,KD=function(e){var t;return typeof e=="function"?{set:e,get:e}:(t={get:Yv(e.get)},e.set!==void 0?(t.set=Yv(e.set),e.delete&&(t.delete=Yv(e.delete)),e.clear&&(t.clear=Yv(e.clear)),t):(t.set=t.get,t))},Xv=mD,Kv=jR,yh=ea,KR=kD.methods,QD=XD,ZD=KD,J1=Function.prototype.apply,eb=Function.prototype.call,I3=Object.create,JD=Object.defineProperties,e$=KR.on,t$=KR.emit,r$=function(e,t,r){var n=I3(null),i,a,o,l,s,f,d,g,v,y,E,M,x,w,_;return t!==!1?a=t:isNaN(e.length)?a=1:a=e.length,r.normalizer&&(y=ZD(r.normalizer),o=y.get,l=y.set,s=y.delete,f=y.clear),r.resolvers!=null&&(_=QD(r.resolvers)),o?w=Kv(function(T){var C,F,L=arguments;if(_&&(L=_(L)),C=o(L),C!==null&&hasOwnProperty.call(n,C))return E&&i.emit("get",C,L,this),n[C];if(L.length===1?F=eb.call(e,this,L[0]):F=J1.call(e,this,L),C===null){if(C=o(L),C!==null)throw Xv("Circular invocation","CIRCULAR_INVOCATION");C=l(L)}else if(hasOwnProperty.call(n,C))throw Xv("Circular invocation","CIRCULAR_INVOCATION");return n[C]=F,M&&i.emit("set",C,null,F),F},a):t===0?w=function(){var T;if(hasOwnProperty.call(n,"data"))return E&&i.emit("get","data",arguments,this),n.data;if(arguments.length?T=J1.call(e,this,arguments):T=eb.call(e,this),hasOwnProperty.call(n,"data"))throw Xv("Circular invocation","CIRCULAR_INVOCATION");return n.data=T,M&&i.emit("set","data",null,T),T}:w=function(T){var C,F=arguments,L;if(_&&(F=_(arguments)),L=String(F[0]),hasOwnProperty.call(n,L))return E&&i.emit("get",L,F,this),n[L];if(F.length===1?C=eb.call(e,this,F[0]):C=J1.call(e,this,F),hasOwnProperty.call(n,L))throw Xv("Circular invocation","CIRCULAR_INVOCATION");return n[L]=C,M&&i.emit("set",L,null,C),C},i={original:e,memoized:w,profileName:r.profileName,get:function(T){return _&&(T=_(T)),o?o(T):String(T[0])},has:function(T){return hasOwnProperty.call(n,T)},delete:function(T){var C;hasOwnProperty.call(n,T)&&(s&&s(T),C=n[T],delete n[T],x&&i.emit("delete",T,C))},clear:function(){var T=n;f&&f(),n=I3(null),i.emit("clear",T)},on:function(T,C){return T==="get"?E=!0:T==="set"?M=!0:T==="delete"&&(x=!0),e$.call(this,T,C)},emit:t$,updateEnv:function(){e=i.original}},o?d=Kv(function(T){var C,F=arguments;_&&(F=_(F)),C=o(F),C!==null&&i.delete(C)},a):t===0?d=function(){return i.delete("data")}:d=function(T){return _&&(T=_(arguments)[0]),i.delete(T)},g=Kv(function(){var T,C=arguments;return t===0?n.data:(_&&(C=_(C)),o?T=o(C):T=String(C[0]),n[T])}),v=Kv(function(){var T,C=arguments;return t===0?i.has("data"):(_&&(C=_(C)),o?T=o(C):T=String(C[0]),T===null?!1:i.has(T))}),JD(w,{__memoized__:yh(!0),delete:yh(d),clear:yh(i.clear),_get:yh(g),_has:yh(v)}),i},n$=Aa,i$=_g,F3=$l,a$=r$,o$=$R,u$=function e(t){var r,n,i;if(n$(t),r=Object(arguments[1]),r.async&&r.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!r.force?t:(n=o$(r.length,t.length,r.async&&F3.async),i=a$(t,n,r),i$(F3,function(a,o){r[o]&&a(r[o],i,r)}),e.__profiler__&&e.__profiler__(i),i.updateEnv(),i.memoized)},tb,N3;function l$(){return N3||(N3=1,tb=function(e){var t,r,n=e.length;if(!n)return"";for(t=String(e[r=0]);--n;)t+=""+e[++r];return t}),tb}var rb,L3;function s$(){return L3||(L3=1,rb=function(e){return e?function(t){for(var r=String(t[0]),n=0,i=e;--i;)r+=""+t[++n];return r}:function(){return""}}),rb}var nb,D3;function f$(){return D3||(D3=1,nb=function(){var e=Number.isNaN;return typeof e!="function"?!1:!e({})&&e(NaN)&&!e(34)}),nb}var ib,$3;function c$(){return $3||($3=1,ib=function(e){return e!==e}),ib}var ab,B3;function h$(){return B3||(B3=1,ab=f$()()?Number.isNaN:c$()),ab}var ob,z3;function gS(){if(z3)return ob;z3=1;var e=h$(),t=Dl,r=Ji,n=Array.prototype.indexOf,i=Object.prototype.hasOwnProperty,a=Math.abs,o=Math.floor;return ob=function(l){var s,f,d,g;if(!e(l))return n.apply(this,arguments);for(f=t(r(this).length),d=arguments[1],isNaN(d)?d=0:d>=0?d=o(d):d=t(this.length)-o(a(d)),s=d;s<f;++s)if(i.call(this,s)&&(g=this[s],e(g)))return s;return-1},ob}var ub,U3;function d$(){if(U3)return ub;U3=1;var e=gS(),t=Object.create;return ub=function(){var r=0,n=[],i=t(null);return{get:function(a){var o=0,l=n,s,f=a.length;if(f===0)return l[f]||null;if(l=l[f]){for(;o<f-1;){if(s=e.call(l[0],a[o]),s===-1)return null;l=l[1][s],++o}return s=e.call(l[0],a[o]),s===-1?null:l[1][s]||null}return null},set:function(a){var o=0,l=n,s,f=a.length;if(f===0)l[f]=++r;else{for(l[f]||(l[f]=[[],[]]),l=l[f];o<f-1;)s=e.call(l[0],a[o]),s===-1&&(s=l[0].push(a[o])-1,l[1].push([[],[]])),l=l[1][s],++o;s=e.call(l[0],a[o]),s===-1&&(s=l[0].push(a[o])-1),l[1][s]=++r}return i[r]=a,r},delete:function(a){var o=0,l=n,s,f=i[a],d=f.length,g=[];if(d===0)delete l[d];else if(l=l[d]){for(;o<d-1;){if(s=e.call(l[0],f[o]),s===-1)return;g.push(l,s),l=l[1][s],++o}if(s=e.call(l[0],f[o]),s===-1)return;for(a=l[1][s],l[0].splice(s,1),l[1].splice(s,1);!l[0].length&&g.length;)s=g.pop(),l=g.pop(),l[0].splice(s,1),l[1].splice(s,1)}delete i[a]},clear:function(){n=[],i=t(null)}}},ub}var lb,j3;function p$(){if(j3)return lb;j3=1;var e=gS();return lb=function(){var t=0,r=[],n=[];return{get:function(i){var a=e.call(r,i[0]);return a===-1?null:n[a]},set:function(i){return r.push(i[0]),n.push(++t),t},delete:function(i){var a=e.call(n,i);a!==-1&&(r.splice(a,1),n.splice(a,1))},clear:function(){r=[],n=[]}}},lb}var sb,G3;function v$(){if(G3)return sb;G3=1;var e=gS(),t=Object.create;return sb=function(r){var n=0,i=[[],[]],a=t(null);return{get:function(o){for(var l=0,s=i,f;l<r-1;){if(f=e.call(s[0],o[l]),f===-1)return null;s=s[1][f],++l}return f=e.call(s[0],o[l]),f===-1?null:s[1][f]||null},set:function(o){for(var l=0,s=i,f;l<r-1;)f=e.call(s[0],o[l]),f===-1&&(f=s[0].push(o[l])-1,s[1].push([[],[]])),s=s[1][f],++l;return f=e.call(s[0],o[l]),f===-1&&(f=s[0].push(o[l])-1),s[1][f]=++n,a[n]=o,n},delete:function(o){for(var l=0,s=i,f,d=[],g=a[o];l<r-1;){if(f=e.call(s[0],g[l]),f===-1)return;d.push(s,f),s=s[1][f],++l}if(f=e.call(s[0],g[l]),f!==-1){for(o=s[1][f],s[0].splice(f,1),s[1].splice(f,1);!s[0].length&&d.length;)f=d.pop(),s=d.pop(),s[0].splice(f,1),s[1].splice(f,1);delete a[o]}},clear:function(){i=[[],[]],a=t(null)}}},sb}var W3={},fb,H3;function yS(){if(H3)return fb;H3=1;var e=Aa,t=_g,r=Function.prototype.call;return fb=function(n,i){var a={},o=arguments[2];return e(i),t(n,function(l,s,f,d){a[s]=r.call(i,o,l,s,f,d)}),a},fb}var cb,q3;function bS(){if(q3)return cb;q3=1;var e=function(r){if(typeof r!="function")throw new TypeError(r+" is not a function");return r},t=function(r){var n=document.createTextNode(""),i,a,o=0;return new r(function(){var l;if(i)a&&(i=a.concat(i));else{if(!a)return;i=a}if(a=i,i=null,typeof a=="function"){l=a,a=null,l();return}for(n.data=o=++o%2;a;)l=a.shift(),a.length||(a=null),l()}).observe(n,{characterData:!0}),function(l){if(e(l),i){typeof i=="function"?i=[i,l]:i.push(l);return}i=l,n.data=o=++o%2}};return cb=function(){if(typeof process=="object"&&process&&typeof process.nextTick=="function")return process.nextTick;if(typeof queueMicrotask=="function")return function(r){queueMicrotask(e(r))};if(typeof document=="object"&&document){if(typeof MutationObserver=="function")return t(MutationObserver);if(typeof WebKitMutationObserver=="function")return t(WebKitMutationObserver)}return typeof setImmediate=="function"?function(r){setImmediate(e(r))}:typeof setTimeout=="function"||typeof setTimeout=="object"?function(r){setTimeout(e(r),0)}:null}(),cb}var V3;function m$(){if(V3)return W3;V3=1;var e=Tg(),t=yS(),r=zR(),n=jR,i=bS(),a=Array.prototype.slice,o=Function.prototype.apply,l=Object.create;return $l.async=function(s,f){var d=l(null),g=l(null),v=f.memoized,y=f.original,E,M,x;f.memoized=n(function(w){var _=arguments,T=_[_.length-1];return typeof T=="function"&&(E=T,_=a.call(_,0,-1)),v.apply(M=this,x=_)},v);try{r(f.memoized,v)}catch{}f.on("get",function(w){var _,T,C;if(E){if(d[w]){typeof d[w]=="function"?d[w]=[d[w],E]:d[w].push(E),E=null;return}_=E,T=M,C=x,E=M=x=null,i(function(){var F;hasOwnProperty.call(g,w)?(F=g[w],f.emit("getasync",w,C,T),o.call(_,F.context,F.args)):(E=_,M=T,x=C,v.apply(T,C))})}}),f.original=function(){var w,_,T,C;return E?(w=e(arguments),_=function F(L){var V,j,te=F.id;if(te==null){i(o.bind(F,this,arguments));return}if(delete F.id,V=d[te],delete d[te],!!V)return j=e(arguments),f.has(te)&&(L?f.delete(te):(g[te]={context:this,args:j},f.emit("setasync",te,typeof V=="function"?1:V.length))),typeof V=="function"?C=o.call(V,this,j):V.forEach(function(ge){C=o.call(ge,this,j)},this),C},T=E,E=M=x=null,w.push(_),C=o.call(y,this,w),_.cb=T,E=_,C):o.call(y,this,arguments)},f.on("set",function(w){if(!E){f.delete(w);return}d[w]?typeof d[w]=="function"?d[w]=[d[w],E.cb]:d[w].push(E.cb):d[w]=E.cb,delete E.cb,E.id=w,E=null}),f.on("delete",function(w){var _;hasOwnProperty.call(d,w)||g[w]&&(_=g[w],delete g[w],f.emit("deleteasync",w,a.call(_.args,1)))}),f.on("clear",function(){var w=g;g=l(null),f.emit("clearasync",t(w,function(_){return a.call(_.args,1)}))})},W3}var Y3={},hb,X3;function g$(){if(X3)return hb;X3=1;var e=Array.prototype.forEach,t=Object.create;return hb=function(r){var n=t(null);return e.call(arguments,function(i){n[i]=!0}),n},hb}var db,K3;function QR(){return K3||(K3=1,db=function(e){return typeof e=="function"}),db}var pb,Q3;function y$(){if(Q3)return pb;Q3=1;var e=QR();return pb=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{throw new TypeError("Passed argument cannot be stringifed")}},pb}var vb,Z3;function b$(){if(Z3)return vb;Z3=1;var e=Ji,t=y$();return vb=function(r){return t(e(r))},vb}var mb,J3;function x$(){if(J3)return mb;J3=1;var e=QR();return mb=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{return"<Non-coercible to string value>"}},mb}var gb,eC;function w$(){if(eC)return gb;eC=1;var e=x$(),t=/[\n\r\u2028\u2029]/g;return gb=function(r){var n=e(r);return n.length>100&&(n=n.slice(0,99)+"…"),n=n.replace(t,function(i){return JSON.stringify(i).slice(1,-1)}),n},gb}var Qv={exports:{}},tC;function ZR(){if(tC)return Qv.exports;tC=1,Qv.exports=e,Qv.exports.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return Qv.exports}var rC;function _$(){if(rC)return Y3;rC=1;var e=yS(),t=g$(),r=b$(),n=w$(),i=ZR(),a=bS(),o=Object.create,l=t("then","then:finally","done","done:finally");return $l.promise=function(s,f){var d=o(null),g=o(null),v=o(null);if(s===!0)s=null;else if(s=r(s),!l[s])throw new TypeError("'"+n(s)+"' is not valid promise mode");f.on("set",function(y,E,M){var x=!1;if(!i(M)){g[y]=M,f.emit("setasync",y,1);return}d[y]=1,v[y]=M;var w=function(F){var L=d[y];if(x)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)
42
+ Consider to rely on 'then' or 'done' mode instead.`);L&&(delete d[y],g[y]=F,f.emit("setasync",y,L))},_=function(){x=!0,d[y]&&(delete d[y],delete v[y],f.delete(y))},T=s;if(T||(T="then"),T==="then"){var C=function(){a(_)};M=M.then(function(F){a(w.bind(this,F))},C),typeof M.finally=="function"&&M.finally(C)}else if(T==="done"){if(typeof M.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");M.done(w,_)}else if(T==="done:finally"){if(typeof M.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof M.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");M.done(w),M.finally(_)}}),f.on("get",function(y,E,M){var x;if(d[y]){++d[y];return}x=v[y];var w=function(){f.emit("getasync",y,E,M)};i(x)?typeof x.done=="function"?x.done(w):x.then(function(){a(w)}):w()}),f.on("delete",function(y){if(delete v[y],d[y]){delete d[y];return}if(hasOwnProperty.call(g,y)){var E=g[y];delete g[y],f.emit("deleteasync",y,[E])}}),f.on("clear",function(){var y=g;g=o(null),d=o(null),v=o(null),f.emit("clearasync",e(y,function(E){return[E]}))})},Y3}var nC={},iC;function S$(){if(iC)return nC;iC=1;var e=Aa,t=_g,r=$l,n=Function.prototype.apply;return r.dispose=function(i,a,o){var l;if(e(i),o.async&&r.async||o.promise&&r.promise){a.on("deleteasync",l=function(s,f){n.call(i,null,f)}),a.on("clearasync",function(s){t(s,function(f,d){l(d,f)})});return}a.on("delete",l=function(s,f){i(f)}),a.on("clear",function(s){t(s,function(f,d){l(d,f)})})},nC}var aC={},yb,oC;function E$(){return oC||(oC=1,yb=2147483647),yb}var bb,uC;function A$(){if(uC)return bb;uC=1;var e=Dl,t=E$();return bb=function(r){if(r=e(r),r>t)throw new TypeError(r+" exceeds maximum possible timeout");return r},bb}var lC;function C$(){if(lC)return aC;lC=1;var e=Tg(),t=_g,r=bS(),n=ZR(),i=A$(),a=$l,o=Function.prototype,l=Math.max,s=Math.min,f=Object.create;return a.maxAge=function(d,g,v){var y,E,M,x;d=i(d),d&&(y=f(null),E=v.async&&a.async||v.promise&&a.promise?"async":"",g.on("set"+E,function(w){y[w]=setTimeout(function(){g.delete(w)},d),typeof y[w].unref=="function"&&y[w].unref(),x&&(x[w]&&x[w]!=="nextTick"&&clearTimeout(x[w]),x[w]=setTimeout(function(){delete x[w]},M),typeof x[w].unref=="function"&&x[w].unref())}),g.on("delete"+E,function(w){clearTimeout(y[w]),delete y[w],x&&(x[w]!=="nextTick"&&clearTimeout(x[w]),delete x[w])}),v.preFetch&&(v.preFetch===!0||isNaN(v.preFetch)?M=.333:M=l(s(Number(v.preFetch),1),0),M&&(x={},M=(1-M)*d,g.on("get"+E,function(w,_,T){x[w]||(x[w]="nextTick",r(function(){var C;x[w]==="nextTick"&&(delete x[w],g.delete(w),v.async&&(_=e(_),_.push(o)),C=g.memoized.apply(T,_),v.promise&&n(C)&&(typeof C.done=="function"?C.done(o,o):C.then(o,o)))}))}))),g.on("clear"+E,function(){t(y,function(w){clearTimeout(w)}),y={},x&&(t(x,function(w){w!=="nextTick"&&clearTimeout(w)}),x={})}))},aC}var sC={},xb,fC;function T$(){if(fC)return xb;fC=1;var e=Dl,t=Object.create,r=Object.prototype.hasOwnProperty;return xb=function(n){var i=0,a=1,o=t(null),l=t(null),s=0,f;return n=e(n),{hit:function(d){var g=l[d],v=++s;if(o[v]=d,l[d]=v,!g)return++i,i<=n?void 0:(d=o[a],f(d),d);if(delete o[g],a===g)for(;!r.call(o,++a););},delete:f=function(d){var g=l[d];if(g&&(delete o[g],delete l[d],--i,a===g)){if(!i){s=0,a=1;return}for(;!r.call(o,++a););}},clear:function(){i=0,a=1,o=t(null),l=t(null),s=0}}},xb}var cC;function O$(){if(cC)return sC;cC=1;var e=Dl,t=T$(),r=$l;return r.max=function(n,i,a){var o,l,s;n=e(n),n&&(l=t(n),o=a.async&&r.async||a.promise&&r.promise?"async":"",i.on("set"+o,s=function(f){f=l.hit(f),f!==void 0&&i.delete(f)}),i.on("get"+o,s),i.on("delete"+o,l.delete),i.on("clear"+o,l.clear))},sC}var hC={},dC;function M$(){if(dC)return hC;dC=1;var e=ea,t=$l,r=Object.create,n=Object.defineProperties;return t.refCounter=function(i,a,o){var l,s;l=r(null),s=o.async&&t.async||o.promise&&t.promise?"async":"",a.on("set"+s,function(f,d){l[f]=d||1}),a.on("get"+s,function(f){++l[f]}),a.on("delete"+s,function(f){delete l[f]}),a.on("clear"+s,function(){l={}}),n(a.memoized,{deleteRef:e(function(){var f=a.get(arguments);return f===null||!l[f]?null:--l[f]?!1:(a.delete(f),!0)}),getRefCount:e(function(){var f=a.get(arguments);return f===null||!l[f]?0:l[f]})})},hC}var k$=pS,R$=$R,P$=u$,I$=function(e){var t=k$(arguments[1]),r;return t.normalizer||(r=t.length=R$(t.length,e.length,t.async),r!==0&&(t.primitive?r===!1?t.normalizer=l$():r>1&&(t.normalizer=s$()(r)):r===!1?t.normalizer=d$()():r===1?t.normalizer=p$()():t.normalizer=v$()(r))),t.async&&m$(),t.promise&&_$(),t.dispose&&S$(),t.maxAge&&C$(),t.max&&O$(),t.refCounter&&M$(),P$(e,t)};const Hie=mi(I$);var JR={exports:{}};/*!
43
43
  Copyright (c) 2018 Jed Watson.
44
44
  Licensed under the MIT License (MIT), see
45
45
  http://jedwatson.github.io/classnames
46
- */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i<arguments.length;i++){var a=arguments[i];if(a){var o=typeof a;if(o==="string"||o==="number")n.push(a);else if(Array.isArray(a)){if(a.length){var l=r.apply(null,a);l&&n.push(l)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){n.push(a.toString());continue}for(var s in a)t.call(a,s)&&a[s]&&n.push(s)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(tP);var L$=tP.exports;const Xie=mi(L$);var D$="Expected a function",vT=0/0,$$="[object Symbol]",B$=/^\s+|\s+$/g,z$=/^[-+]0x[0-9a-f]+$/i,U$=/^0b[01]+$/i,j$=/^0o[0-7]+$/i,G$=parseInt,W$=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,H$=typeof self=="object"&&self&&self.Object===Object&&self,q$=W$||H$||Function("return this")(),V$=Object.prototype,Y$=V$.toString,X$=Math.max,K$=Math.min,_b=function(){return q$.Date.now()};function Q$(e,t,r){var n,i,a,o,l,s,f=0,d=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(D$);t=mT(t)||0,Zw(r)&&(d=!!r.leading,g="maxWait"in r,a=g?X$(mT(r.maxWait)||0,t):a,v="trailing"in r?!!r.trailing:v);function y(L){var V=n,j=i;return n=i=void 0,f=L,o=e.apply(j,V),o}function E(L){return f=L,l=setTimeout(w,t),d?y(L):o}function k(L){var V=L-s,j=L-f,te=t-V;return g?K$(te,a-j):te}function x(L){var V=L-s,j=L-f;return s===void 0||V>=t||V<0||g&&j>=a}function w(){var L=_b();if(x(L))return _(L);l=setTimeout(w,k(L))}function _(L){return l=void 0,v&&n?y(L):(n=i=void 0,o)}function C(){l!==void 0&&clearTimeout(l),f=0,n=s=i=l=void 0}function T(){return l===void 0?o:_(_b())}function F(){var L=_b(),V=x(L);if(n=arguments,i=this,s=L,V){if(l===void 0)return E(s);if(g)return l=setTimeout(w,t),y(s)}return l===void 0&&(l=setTimeout(w,t)),o}return F.cancel=C,F.flush=T,F}function Zw(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Z$(e){return!!e&&typeof e=="object"}function J$(e){return typeof e=="symbol"||Z$(e)&&Y$.call(e)==$$}function mT(e){if(typeof e=="number")return e;if(J$(e))return vT;if(Zw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Zw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(B$,"");var r=U$.test(e);return r||j$.test(e)?G$(e.slice(2),r?2:8):z$.test(e)?vT:+e}var eB=Q$;const Kie=mi(eB);function ti(){return ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ti.apply(this,arguments)}function Sf(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Jw(e,t){return Jw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jw(e,t)}function Zd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Jw(e,t)}function tB(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function rB(e,t){e.classList?e.classList.add(t):tB(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function gT(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function nB(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=gT(e.className,t):e.setAttribute("class",gT(e.className&&e.className.baseVal||"",t))}const yT={disabled:!1},rP=wr.createContext(null);var nP=function(t){return t.scrollTop},zh="unmounted",tl="exited",rl="entering",js="entered",e_="exiting",uo=function(e){Zd(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,l=o&&!o.isMounting?n.enter:n.appear,s;return a.appearStatus=null,n.in?l?(s=tl,a.appearStatus=rl):s=js:n.unmountOnExit||n.mountOnEnter?s=zh:s=tl,a.state={status:s},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===zh?{status:tl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==rl&&o!==js&&(a=rl):(o===rl||o===js)&&(a=e_)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,l;return a=o=l=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,l=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:l}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===rl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Bh.findDOMNode(this);o&&nP(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===tl&&this.setState({status:zh})},r.performEnter=function(i){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:i,s=this.props.nodeRef?[l]:[Bh.findDOMNode(this),l],f=s[0],d=s[1],g=this.getTimeouts(),v=l?g.appear:g.enter;if(!i&&!o||yT.disabled){this.safeSetState({status:js},function(){a.props.onEntered(f)});return}this.props.onEnter(f,d),this.safeSetState({status:rl},function(){a.props.onEntering(f,d),a.onTransitionEnd(v,function(){a.safeSetState({status:js},function(){a.props.onEntered(f,d)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:Bh.findDOMNode(this);if(!a||yT.disabled){this.safeSetState({status:tl},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:e_},function(){i.props.onExiting(l),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:tl},function(){i.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(l){o&&(o=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:Bh.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],f=s[0],d=s[1];this.props.addEndListener(f,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===zh)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=Sf(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return wr.createElement(rP.Provider,{value:null},typeof o=="function"?o(i,l):wr.cloneElement(wr.Children.only(o),l))},t}(wr.Component);uo.contextType=rP;uo.propTypes={};function Rs(){}uo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rs,onEntering:Rs,onEntered:Rs,onExit:Rs,onExiting:Rs,onExited:Rs};uo.UNMOUNTED=zh;uo.EXITED=tl;uo.ENTERING=rl;uo.ENTERED=js;uo.EXITING=e_;const iB=uo;var aB=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return rB(t,n)})},Sb=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return nB(t,n)})},wS=function(e){Zd(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(l,s){var f=n.resolveArguments(l,s),d=f[0],g=f[1];n.removeClasses(d,"exit"),n.addClass(d,g?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(l,s)},n.onEntering=function(l,s){var f=n.resolveArguments(l,s),d=f[0],g=f[1],v=g?"appear":"enter";n.addClass(d,v,"active"),n.props.onEntering&&n.props.onEntering(l,s)},n.onEntered=function(l,s){var f=n.resolveArguments(l,s),d=f[0],g=f[1],v=g?"appear":"enter";n.removeClasses(d,v),n.addClass(d,v,"done"),n.props.onEntered&&n.props.onEntered(l,s)},n.onExit=function(l){var s=n.resolveArguments(l),f=s[0];n.removeClasses(f,"appear"),n.removeClasses(f,"enter"),n.addClass(f,"exit","base"),n.props.onExit&&n.props.onExit(l)},n.onExiting=function(l){var s=n.resolveArguments(l),f=s[0];n.addClass(f,"exit","active"),n.props.onExiting&&n.props.onExiting(l)},n.onExited=function(l){var s=n.resolveArguments(l),f=s[0];n.removeClasses(f,"exit"),n.addClass(f,"exit","done"),n.props.onExited&&n.props.onExited(l)},n.resolveArguments=function(l,s){return n.props.nodeRef?[n.props.nodeRef.current,l]:[l,s]},n.getClassNames=function(l){var s=n.props.classNames,f=typeof s=="string",d=f&&s?s+"-":"",g=f?""+d+l:s[l],v=f?g+"-active":s[l+"Active"],y=f?g+"-done":s[l+"Done"];return{baseClassName:g,activeClassName:v,doneClassName:y}},n}var r=t.prototype;return r.addClass=function(i,a,o){var l=this.getClassNames(a)[o+"ClassName"],s=this.getClassNames("enter"),f=s.doneClassName;a==="appear"&&o==="done"&&f&&(l+=" "+f),o==="active"&&i&&nP(i),l&&(this.appliedClasses[a][o]=l,aB(i,l))},r.removeClasses=function(i,a){var o=this.appliedClasses[a],l=o.base,s=o.active,f=o.done;this.appliedClasses[a]={},l&&Sb(i,l),s&&Sb(i,s),f&&Sb(i,f)},r.render=function(){var i=this.props;i.classNames;var a=Sf(i,["classNames"]);return wr.createElement(iB,ti({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(wr.Component);wS.defaultProps={classNames:""};wS.propTypes={};const Qie=wS;function Jv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}/**!
46
+ */(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],i=0;i<arguments.length;i++){var a=arguments[i];if(a){var o=typeof a;if(o==="string"||o==="number")n.push(a);else if(Array.isArray(a)){if(a.length){var l=r.apply(null,a);l&&n.push(l)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){n.push(a.toString());continue}for(var s in a)t.call(a,s)&&a[s]&&n.push(s)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(JR);var F$=JR.exports;const qie=mi(F$);var N$="Expected a function",pC=0/0,L$="[object Symbol]",D$=/^\s+|\s+$/g,$$=/^[-+]0x[0-9a-f]+$/i,B$=/^0b[01]+$/i,z$=/^0o[0-7]+$/i,U$=parseInt,j$=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,G$=typeof self=="object"&&self&&self.Object===Object&&self,W$=j$||G$||Function("return this")(),H$=Object.prototype,q$=H$.toString,V$=Math.max,Y$=Math.min,wb=function(){return W$.Date.now()};function X$(e,t,r){var n,i,a,o,l,s,f=0,d=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(N$);t=vC(t)||0,Qw(r)&&(d=!!r.leading,g="maxWait"in r,a=g?V$(vC(r.maxWait)||0,t):a,v="trailing"in r?!!r.trailing:v);function y(L){var V=n,j=i;return n=i=void 0,f=L,o=e.apply(j,V),o}function E(L){return f=L,l=setTimeout(w,t),d?y(L):o}function M(L){var V=L-s,j=L-f,te=t-V;return g?Y$(te,a-j):te}function x(L){var V=L-s,j=L-f;return s===void 0||V>=t||V<0||g&&j>=a}function w(){var L=wb();if(x(L))return _(L);l=setTimeout(w,M(L))}function _(L){return l=void 0,v&&n?y(L):(n=i=void 0,o)}function T(){l!==void 0&&clearTimeout(l),f=0,n=s=i=l=void 0}function C(){return l===void 0?o:_(wb())}function F(){var L=wb(),V=x(L);if(n=arguments,i=this,s=L,V){if(l===void 0)return E(s);if(g)return l=setTimeout(w,t),y(s)}return l===void 0&&(l=setTimeout(w,t)),o}return F.cancel=T,F.flush=C,F}function Qw(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function K$(e){return!!e&&typeof e=="object"}function Q$(e){return typeof e=="symbol"||K$(e)&&q$.call(e)==L$}function vC(e){if(typeof e=="number")return e;if(Q$(e))return pC;if(Qw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Qw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(D$,"");var r=B$.test(e);return r||z$.test(e)?U$(e.slice(2),r?2:8):$$.test(e)?pC:+e}var Z$=X$;const Vie=mi(Z$);function ti(){return ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ti.apply(this,arguments)}function Sf(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Zw(e,t){return Zw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zw(e,t)}function Qd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Zw(e,t)}function J$(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function eB(e,t){e.classList?e.classList.add(t):J$(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function mC(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function tB(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=mC(e.className,t):e.setAttribute("class",mC(e.className&&e.className.baseVal||"",t))}const gC={disabled:!1},eP=wr.createContext(null);var tP=function(t){return t.scrollTop},Bh="unmounted",tl="exited",rl="entering",js="entered",Jw="exiting",uo=function(e){Qd(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,l=o&&!o.isMounting?n.enter:n.appear,s;return a.appearStatus=null,n.in?l?(s=tl,a.appearStatus=rl):s=js:n.unmountOnExit||n.mountOnEnter?s=Bh:s=tl,a.state={status:s},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Bh?{status:tl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==rl&&o!==js&&(a=rl):(o===rl||o===js)&&(a=Jw)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,l;return a=o=l=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,l=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:l}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===rl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:$h.findDOMNode(this);o&&tP(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===tl&&this.setState({status:Bh})},r.performEnter=function(i){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:i,s=this.props.nodeRef?[l]:[$h.findDOMNode(this),l],f=s[0],d=s[1],g=this.getTimeouts(),v=l?g.appear:g.enter;if(!i&&!o||gC.disabled){this.safeSetState({status:js},function(){a.props.onEntered(f)});return}this.props.onEnter(f,d),this.safeSetState({status:rl},function(){a.props.onEntering(f,d),a.onTransitionEnd(v,function(){a.safeSetState({status:js},function(){a.props.onEntered(f,d)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:$h.findDOMNode(this);if(!a||gC.disabled){this.safeSetState({status:tl},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Jw},function(){i.props.onExiting(l),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:tl},function(){i.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(l){o&&(o=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:$h.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],f=s[0],d=s[1];this.props.addEndListener(f,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Bh)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=Sf(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return wr.createElement(eP.Provider,{value:null},typeof o=="function"?o(i,l):wr.cloneElement(wr.Children.only(o),l))},t}(wr.Component);uo.contextType=eP;uo.propTypes={};function Rs(){}uo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rs,onEntering:Rs,onEntered:Rs,onExit:Rs,onExiting:Rs,onExited:Rs};uo.UNMOUNTED=Bh;uo.EXITED=tl;uo.ENTERING=rl;uo.ENTERED=js;uo.EXITING=Jw;const rB=uo;var nB=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return eB(t,n)})},_b=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return tB(t,n)})},xS=function(e){Qd(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(l,s){var f=n.resolveArguments(l,s),d=f[0],g=f[1];n.removeClasses(d,"exit"),n.addClass(d,g?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(l,s)},n.onEntering=function(l,s){var f=n.resolveArguments(l,s),d=f[0],g=f[1],v=g?"appear":"enter";n.addClass(d,v,"active"),n.props.onEntering&&n.props.onEntering(l,s)},n.onEntered=function(l,s){var f=n.resolveArguments(l,s),d=f[0],g=f[1],v=g?"appear":"enter";n.removeClasses(d,v),n.addClass(d,v,"done"),n.props.onEntered&&n.props.onEntered(l,s)},n.onExit=function(l){var s=n.resolveArguments(l),f=s[0];n.removeClasses(f,"appear"),n.removeClasses(f,"enter"),n.addClass(f,"exit","base"),n.props.onExit&&n.props.onExit(l)},n.onExiting=function(l){var s=n.resolveArguments(l),f=s[0];n.addClass(f,"exit","active"),n.props.onExiting&&n.props.onExiting(l)},n.onExited=function(l){var s=n.resolveArguments(l),f=s[0];n.removeClasses(f,"exit"),n.addClass(f,"exit","done"),n.props.onExited&&n.props.onExited(l)},n.resolveArguments=function(l,s){return n.props.nodeRef?[n.props.nodeRef.current,l]:[l,s]},n.getClassNames=function(l){var s=n.props.classNames,f=typeof s=="string",d=f&&s?s+"-":"",g=f?""+d+l:s[l],v=f?g+"-active":s[l+"Active"],y=f?g+"-done":s[l+"Done"];return{baseClassName:g,activeClassName:v,doneClassName:y}},n}var r=t.prototype;return r.addClass=function(i,a,o){var l=this.getClassNames(a)[o+"ClassName"],s=this.getClassNames("enter"),f=s.doneClassName;a==="appear"&&o==="done"&&f&&(l+=" "+f),o==="active"&&i&&tP(i),l&&(this.appliedClasses[a][o]=l,nB(i,l))},r.removeClasses=function(i,a){var o=this.appliedClasses[a],l=o.base,s=o.active,f=o.done;this.appliedClasses[a]={},l&&_b(i,l),s&&_b(i,s),f&&_b(i,f)},r.render=function(){var i=this.props;i.classNames;var a=Sf(i,["classNames"]);return wr.createElement(rB,ti({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(wr.Component);xS.defaultProps={classNames:""};xS.propTypes={};const Yie=xS;function Zv(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}/**!
47
47
  * @fileOverview Kickass library to create and place poppers near their reference elements.
48
48
  * @version 1.16.1
49
49
  * @license
@@ -66,10 +66,10 @@ Consider to rely on 'then' or 'done' mode instead.`);L&&(delete d[y],g[y]=F,f.em
66
66
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
67
67
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
68
68
  * SOFTWARE.
69
- */var Jd=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",oB=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Jd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function uB(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function lB(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},oB))}}var sB=Jd&&window.Promise,fB=sB?uB:lB;function iP(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function zl(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,n=r.getComputedStyle(e,null);return t?n[t]:n}function _S(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function ep(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=zl(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?e:ep(_S(e))}function aP(e){return e&&e.referenceNode?e.referenceNode:e}var bT=Jd&&!!(window.MSInputMethodContext&&document.documentMode),xT=Jd&&/MSIE 10/.test(navigator.userAgent);function Hf(e){return e===11?bT:e===10?xT:bT||xT}function Ef(e){if(!e)return document.documentElement;for(var t=Hf(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;return!n||n==="BODY"||n==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&zl(r,"position")==="static"?Ef(r):r}function cB(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Ef(e.firstElementChild)===e}function t_(e){return e.parentNode!==null?t_(e.parentNode):e}function Om(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?e:t,i=r?t:e,a=document.createRange();a.setStart(n,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||n.contains(i))return cB(o)?o:Ef(o);var l=t_(e);return l.host?Om(l.host,t):Om(e,t_(t).host)}function Af(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=t==="top"?"scrollTop":"scrollLeft",n=e.nodeName;if(n==="BODY"||n==="HTML"){var i=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||i;return a[r]}return e[r]}function hB(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Af(t,"top"),i=Af(t,"left"),a=r?-1:1;return e.top+=n*a,e.bottom+=n*a,e.left+=i*a,e.right+=i*a,e}function wT(e,t){var r=t==="x"?"Left":"Top",n=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+n+"Width"])}function _T(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],Hf(10)?parseInt(r["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function oP(e){var t=e.body,r=e.documentElement,n=Hf(10)&&getComputedStyle(r);return{height:_T("Height",t,r,n),width:_T("Width",t,r,n)}}var dB=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},pB=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),Tf=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},Mi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function su(e){return Mi({},e,{right:e.left+e.width,bottom:e.top+e.height})}function r_(e){var t={};try{if(Hf(10)){t=e.getBoundingClientRect();var r=Af(e,"top"),n=Af(e,"left");t.top+=r,t.left+=n,t.bottom+=r,t.right+=n}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a=e.nodeName==="HTML"?oP(e.ownerDocument):{},o=a.width||e.clientWidth||i.width,l=a.height||e.clientHeight||i.height,s=e.offsetWidth-o,f=e.offsetHeight-l;if(s||f){var d=zl(e);s-=wT(d,"x"),f-=wT(d,"y"),i.width-=s,i.height-=f}return su(i)}function SS(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Hf(10),i=t.nodeName==="HTML",a=r_(e),o=r_(t),l=ep(e),s=zl(t),f=parseFloat(s.borderTopWidth),d=parseFloat(s.borderLeftWidth);r&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var g=su({top:a.top-o.top-f,left:a.left-o.left-d,width:a.width,height:a.height});if(g.marginTop=0,g.marginLeft=0,!n&&i){var v=parseFloat(s.marginTop),y=parseFloat(s.marginLeft);g.top-=f-v,g.bottom-=f-v,g.left-=d-y,g.right-=d-y,g.marginTop=v,g.marginLeft=y}return(n&&!r?t.contains(l):t===l&&l.nodeName!=="BODY")&&(g=hB(g,t)),g}function vB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,n=SS(e,r),i=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),o=t?0:Af(r),l=t?0:Af(r,"left"),s={top:o-n.top+n.marginTop,left:l-n.left+n.marginLeft,width:i,height:a};return su(s)}function uP(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(zl(e,"position")==="fixed")return!0;var r=_S(e);return r?uP(r):!1}function lP(e){if(!e||!e.parentElement||Hf())return document.documentElement;for(var t=e.parentElement;t&&zl(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function ES(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?lP(e):Om(e,aP(t));if(n==="viewport")a=vB(o,i);else{var l=void 0;n==="scrollParent"?(l=ep(_S(t)),l.nodeName==="BODY"&&(l=e.ownerDocument.documentElement)):n==="window"?l=e.ownerDocument.documentElement:l=n;var s=SS(l,o,i);if(l.nodeName==="HTML"&&!uP(o)){var f=oP(e.ownerDocument),d=f.height,g=f.width;a.top+=s.top-s.marginTop,a.bottom=d+s.top,a.left+=s.left-s.marginLeft,a.right=g+s.left}else a=s}r=r||0;var v=typeof r=="number";return a.left+=v?r:r.left||0,a.top+=v?r:r.top||0,a.right-=v?r:r.right||0,a.bottom-=v?r:r.bottom||0,a}function mB(e){var t=e.width,r=e.height;return t*r}function sP(e,t,r,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var o=ES(r,n,a,i),l={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},s=Object.keys(l).map(function(v){return Mi({key:v},l[v],{area:mB(l[v])})}).sort(function(v,y){return y.area-v.area}),f=s.filter(function(v){var y=v.width,E=v.height;return y>=r.clientWidth&&E>=r.clientHeight}),d=f.length>0?f[0].key:s[0].key,g=e.split("-")[1];return d+(g?"-"+g:"")}function fP(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=n?lP(t):Om(t,aP(r));return SS(r,i,n)}function cP(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),i=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),a={width:e.offsetWidth+i,height:e.offsetHeight+n};return a}function km(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(r){return t[r]})}function hP(e,t,r){r=r.split("-")[0];var n=cP(e),i={width:n.width,height:n.height},a=["right","left"].indexOf(r)!==-1,o=a?"top":"left",l=a?"left":"top",s=a?"height":"width",f=a?"width":"height";return i[o]=t[o]+t[s]/2-n[s]/2,r===l?i[l]=t[l]-n[f]:i[l]=t[km(l)],i}function tp(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function gB(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===r});var n=tp(e,function(i){return i[t]===r});return e.indexOf(n)}function dP(e,t,r){var n=r===void 0?e:e.slice(0,gB(e,"name",r));return n.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=i.function||i.fn;i.enabled&&iP(a)&&(t.offsets.popper=su(t.offsets.popper),t.offsets.reference=su(t.offsets.reference),t=a(t,i))}),t}function yB(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=fP(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=sP(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=hP(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=dP(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function pP(e,t){return e.some(function(r){var n=r.name,i=r.enabled;return i&&n===t})}function AS(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],a=i?""+i+r:e;if(typeof document.body.style[a]<"u")return a}return null}function bB(){return this.state.isDestroyed=!0,pP(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[AS("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function vP(e){var t=e.ownerDocument;return t?t.defaultView:window}function mP(e,t,r,n){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,r,{passive:!0}),i||mP(ep(a.parentNode),t,r,n),n.push(a)}function xB(e,t,r,n){r.updateBound=n,vP(e).addEventListener("resize",r.updateBound,{passive:!0});var i=ep(e);return mP(i,"scroll",r.updateBound,r.scrollParents),r.scrollElement=i,r.eventsEnabled=!0,r}function wB(){this.state.eventsEnabled||(this.state=xB(this.reference,this.options,this.state,this.scheduleUpdate))}function _B(e,t){return vP(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(r){r.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function SB(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=_B(this.reference,this.state))}function TS(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function n_(e,t){Object.keys(t).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&TS(t[r])&&(n="px"),e.style[r]=t[r]+n})}function EB(e,t){Object.keys(t).forEach(function(r){var n=t[r];n!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function AB(e){return n_(e.instance.popper,e.styles),EB(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&n_(e.arrowElement,e.arrowStyles),e}function TB(e,t,r,n,i){var a=fP(i,t,e,r.positionFixed),o=sP(r.placement,a,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",o),n_(t,{position:r.positionFixed?"fixed":"absolute"}),r}function CB(e,t){var r=e.offsets,n=r.popper,i=r.reference,a=Math.round,o=Math.floor,l=function(w){return w},s=a(i.width),f=a(n.width),d=["left","right"].indexOf(e.placement)!==-1,g=e.placement.indexOf("-")!==-1,v=s%2===f%2,y=s%2===1&&f%2===1,E=t?d||g||v?a:o:l,k=t?a:l;return{left:E(y&&!g&&t?n.left-1:n.left),top:k(n.top),bottom:k(n.bottom),right:E(n.right)}}var OB=Jd&&/Firefox/i.test(navigator.userAgent);function kB(e,t){var r=t.x,n=t.y,i=e.offsets.popper,a=tp(e.instance.modifiers,function(C){return C.name==="applyStyle"}).gpuAcceleration;a!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=a!==void 0?a:t.gpuAcceleration,l=Ef(e.instance.popper),s=r_(l),f={position:i.position},d=CB(e,window.devicePixelRatio<2||!OB),g=r==="bottom"?"top":"bottom",v=n==="right"?"left":"right",y=AS("transform"),E=void 0,k=void 0;if(g==="bottom"?l.nodeName==="HTML"?k=-l.clientHeight+d.bottom:k=-s.height+d.bottom:k=d.top,v==="right"?l.nodeName==="HTML"?E=-l.clientWidth+d.right:E=-s.width+d.right:E=d.left,o&&y)f[y]="translate3d("+E+"px, "+k+"px, 0)",f[g]=0,f[v]=0,f.willChange="transform";else{var x=g==="bottom"?-1:1,w=v==="right"?-1:1;f[g]=k*x,f[v]=E*w,f.willChange=g+", "+v}var _={"x-placement":e.placement};return e.attributes=Mi({},_,e.attributes),e.styles=Mi({},f,e.styles),e.arrowStyles=Mi({},e.offsets.arrow,e.arrowStyles),e}function gP(e,t,r){var n=tp(e,function(l){var s=l.name;return s===t}),i=!!n&&e.some(function(l){return l.name===r&&l.enabled&&l.order<n.order});if(!i){var a="`"+t+"`",o="`"+r+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}function MB(e,t){var r;if(!gP(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if(typeof n=="string"){if(n=e.instance.popper.querySelector(n),!n)return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,o=a.popper,l=a.reference,s=["left","right"].indexOf(i)!==-1,f=s?"height":"width",d=s?"Top":"Left",g=d.toLowerCase(),v=s?"left":"top",y=s?"bottom":"right",E=cP(n)[f];l[y]-E<o[g]&&(e.offsets.popper[g]-=o[g]-(l[y]-E)),l[g]+E>o[y]&&(e.offsets.popper[g]+=l[g]+E-o[y]),e.offsets.popper=su(e.offsets.popper);var k=l[g]+l[f]/2-E/2,x=zl(e.instance.popper),w=parseFloat(x["margin"+d]),_=parseFloat(x["border"+d+"Width"]),C=k-e.offsets.popper[g]-w-_;return C=Math.max(Math.min(o[f]-E,C),0),e.arrowElement=n,e.offsets.arrow=(r={},Tf(r,g,Math.round(C)),Tf(r,v,""),r),e}function RB(e){return e==="end"?"start":e==="start"?"end":e}var yP=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Eb=yP.slice(3);function ST(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Eb.indexOf(e),n=Eb.slice(r+1).concat(Eb.slice(0,r));return t?n.reverse():n}var Ab={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function PB(e,t){if(pP(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=ES(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=km(n),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Ab.FLIP:o=[n,i];break;case Ab.CLOCKWISE:o=ST(n);break;case Ab.COUNTERCLOCKWISE:o=ST(n,!0);break;default:o=t.behavior}return o.forEach(function(l,s){if(n!==l||o.length===s+1)return e;n=e.placement.split("-")[0],i=km(n);var f=e.offsets.popper,d=e.offsets.reference,g=Math.floor,v=n==="left"&&g(f.right)>g(d.left)||n==="right"&&g(f.left)<g(d.right)||n==="top"&&g(f.bottom)>g(d.top)||n==="bottom"&&g(f.top)<g(d.bottom),y=g(f.left)<g(r.left),E=g(f.right)>g(r.right),k=g(f.top)<g(r.top),x=g(f.bottom)>g(r.bottom),w=n==="left"&&y||n==="right"&&E||n==="top"&&k||n==="bottom"&&x,_=["top","bottom"].indexOf(n)!==-1,C=!!t.flipVariations&&(_&&a==="start"&&y||_&&a==="end"&&E||!_&&a==="start"&&k||!_&&a==="end"&&x),T=!!t.flipVariationsByContent&&(_&&a==="start"&&E||_&&a==="end"&&y||!_&&a==="start"&&x||!_&&a==="end"&&k),F=C||T;(v||w||F)&&(e.flipped=!0,(v||w)&&(n=o[s+1]),F&&(a=RB(a)),e.placement=n+(a?"-"+a:""),e.offsets.popper=Mi({},e.offsets.popper,hP(e.instance.popper,e.offsets.reference,e.placement)),e=dP(e.instance.modifiers,e,"flip"))}),e}function IB(e){var t=e.offsets,r=t.popper,n=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=["top","bottom"].indexOf(i)!==-1,l=o?"right":"bottom",s=o?"left":"top",f=o?"width":"height";return r[l]<a(n[s])&&(e.offsets.popper[s]=a(n[s])-r[f]),r[s]>a(n[l])&&(e.offsets.popper[s]=a(n[l])),e}function FB(e,t,r,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(o.indexOf("%")===0){var l=void 0;switch(o){case"%p":l=r;break;case"%":case"%r":default:l=n}var s=su(l);return s[t]/100*a}else if(o==="vh"||o==="vw"){var f=void 0;return o==="vh"?f=Math.max(document.documentElement.clientHeight,window.innerHeight||0):f=Math.max(document.documentElement.clientWidth,window.innerWidth||0),f/100*a}else return a}function NB(e,t,r,n){var i=[0,0],a=["right","left"].indexOf(n)!==-1,o=e.split(/(\+|\-)/).map(function(d){return d.trim()}),l=o.indexOf(tp(o,function(d){return d.search(/,|\s/)!==-1}));o[l]&&o[l].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,f=l!==-1?[o.slice(0,l).concat([o[l].split(s)[0]]),[o[l].split(s)[1]].concat(o.slice(l+1))]:[o];return f=f.map(function(d,g){var v=(g===1?!a:a)?"height":"width",y=!1;return d.reduce(function(E,k){return E[E.length-1]===""&&["+","-"].indexOf(k)!==-1?(E[E.length-1]=k,y=!0,E):y?(E[E.length-1]+=k,y=!1,E):E.concat(k)},[]).map(function(E){return FB(E,v,t,r)})}),f.forEach(function(d,g){d.forEach(function(v,y){TS(v)&&(i[g]+=v*(d[y-1]==="-"?-1:1))})}),i}function LB(e,t){var r=t.offset,n=e.placement,i=e.offsets,a=i.popper,o=i.reference,l=n.split("-")[0],s=void 0;return TS(+r)?s=[+r,0]:s=NB(r,a,o,l),l==="left"?(a.top+=s[0],a.left-=s[1]):l==="right"?(a.top+=s[0],a.left+=s[1]):l==="top"?(a.left+=s[0],a.top-=s[1]):l==="bottom"&&(a.left+=s[0],a.top+=s[1]),e.popper=a,e}function DB(e,t){var r=t.boundariesElement||Ef(e.instance.popper);e.instance.reference===r&&(r=Ef(r));var n=AS("transform"),i=e.instance.popper.style,a=i.top,o=i.left,l=i[n];i.top="",i.left="",i[n]="";var s=ES(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);i.top=a,i.left=o,i[n]=l,t.boundaries=s;var f=t.priority,d=e.offsets.popper,g={primary:function(y){var E=d[y];return d[y]<s[y]&&!t.escapeWithReference&&(E=Math.max(d[y],s[y])),Tf({},y,E)},secondary:function(y){var E=y==="right"?"left":"top",k=d[E];return d[y]>s[y]&&!t.escapeWithReference&&(k=Math.min(d[E],s[y]-(y==="right"?d.width:d.height))),Tf({},E,k)}};return f.forEach(function(v){var y=["left","top"].indexOf(v)!==-1?"primary":"secondary";d=Mi({},d,g[y](v))}),e.offsets.popper=d,e}function $B(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var i=e.offsets,a=i.reference,o=i.popper,l=["bottom","top"].indexOf(r)!==-1,s=l?"left":"top",f=l?"width":"height",d={start:Tf({},s,a[s]),end:Tf({},s,a[s]+a[f]-o[f])};e.offsets.popper=Mi({},o,d[n])}return e}function BB(e){if(!gP(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=tp(e.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function zB(e){var t=e.placement,r=t.split("-")[0],n=e.offsets,i=n.popper,a=n.reference,o=["left","right"].indexOf(r)!==-1,l=["top","left"].indexOf(r)===-1;return i[o?"left":"top"]=a[r]-(l?i[o?"width":"height"]:0),e.placement=km(t),e.offsets.popper=su(i),e}var UB={shift:{order:100,enabled:!0,fn:$B},offset:{order:200,enabled:!0,fn:LB,offset:0},preventOverflow:{order:300,enabled:!0,fn:DB,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:IB},arrow:{order:500,enabled:!0,fn:MB,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:PB,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:zB},hide:{order:800,enabled:!0,fn:BB},computeStyle:{order:850,enabled:!0,fn:kB,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:AB,onLoad:TB,gpuAcceleration:void 0}},jB={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:UB},kg=function(){function e(t,r){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};dB(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=fB(this.update.bind(this)),this.options=Mi({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(Mi({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){n.options.modifiers[o]=Mi({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return Mi({name:o},n.options.modifiers[o])}).sort(function(o,l){return o.order-l.order}),this.modifiers.forEach(function(o){o.enabled&&iP(o.onLoad)&&o.onLoad(n.reference,n.popper,n.options,o,n.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return pB(e,[{key:"update",value:function(){return yB.call(this)}},{key:"destroy",value:function(){return bB.call(this)}},{key:"enableEventListeners",value:function(){return wB.call(this)}},{key:"disableEventListeners",value:function(){return SB.call(this)}}]),e}();kg.Utils=(typeof window<"u"?window:global).PopperUtils;kg.placements=yP;kg.Defaults=jB;const Zie=kg;function CS(e,t,...r){if(!e)throw new TypeError(bP(t,r))}function bP(e,t){let r=0;return e.replace(/%[os]/gu,()=>xP(t[r++]))}function xP(e){return typeof e!="object"||e===null?String(e):Object.prototype.toString.call(e)}let GB;function WB(e){try{const t=e instanceof Error?e:new Error(xP(e));if(typeof dispatchEvent=="function"&&typeof ErrorEvent=="function")dispatchEvent(new ErrorEvent("error",{error:t,message:t.message}));else if(typeof process<"u"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)}catch{}}const Zi=typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:typeof globalThis<"u"?globalThis:void 0;let HB;class gu{constructor(t,r){this.code=t,this.message=r}warn(...t){var r;try{const n=((r=new Error().stack)!==null&&r!==void 0?r:"").replace(/^(?:.+?\n){2}/gu,`
70
- `);console.warn(this.message,...t,n)}catch{}}}const qB=new gu("W01","Unable to initialize event under dispatching."),VB=new gu("W02","Assigning any falsy value to 'cancelBubble' property has no effect."),YB=new gu("W03","Assigning any truthy value to 'returnValue' property has no effect."),XB=new gu("W04","Unable to preventDefault on non-cancelable events."),KB=new gu("W05","Unable to preventDefault inside passive event listener invocation."),QB=new gu("W06","An event listener wasn't added because it has been added already: %o, %o"),Tb=new gu("W07","The %o option value was abandoned because the event listener wasn't added as duplicated."),ET=new gu("W08","The 'callback' argument must be a function or an object that has 'handleEvent' method: %o");class lo{static get NONE(){return AT}static get CAPTURING_PHASE(){return TT}static get AT_TARGET(){return CT}static get BUBBLING_PHASE(){return OT}constructor(t,r){Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=r??{};i_.set(this,{type:String(t),bubbles:!!n.bubbles,cancelable:!!n.cancelable,composed:!!n.composed,target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1,inPassiveListenerFlag:!1,dispatchFlag:!1,timeStamp:Date.now()})}get type(){return en(this).type}get target(){return en(this).target}get srcElement(){return en(this).target}get currentTarget(){return en(this).currentTarget}composedPath(){const t=en(this).currentTarget;return t?[t]:[]}get NONE(){return AT}get CAPTURING_PHASE(){return TT}get AT_TARGET(){return CT}get BUBBLING_PHASE(){return OT}get eventPhase(){return en(this).dispatchFlag?2:0}stopPropagation(){en(this).stopPropagationFlag=!0}get cancelBubble(){return en(this).stopPropagationFlag}set cancelBubble(t){t?en(this).stopPropagationFlag=!0:VB.warn()}stopImmediatePropagation(){const t=en(this);t.stopPropagationFlag=t.stopImmediatePropagationFlag=!0}get bubbles(){return en(this).bubbles}get cancelable(){return en(this).cancelable}get returnValue(){return!en(this).canceledFlag}set returnValue(t){t?YB.warn():kT(en(this))}preventDefault(){kT(en(this))}get defaultPrevented(){return en(this).canceledFlag}get composed(){return en(this).composed}get isTrusted(){return!1}get timeStamp(){return en(this).timeStamp}initEvent(t,r=!1,n=!1){const i=en(this);if(i.dispatchFlag){qB.warn();return}i_.set(this,{...i,type:String(t),bubbles:!!r,cancelable:!!n,target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1})}}const AT=0,TT=1,CT=2,OT=3,i_=new WeakMap;function en(e,t="this"){const r=i_.get(e);return CS(r!=null,"'%s' must be an object that Event constructor created, but got another one: %o",t,e),r}function kT(e){if(e.inPassiveListenerFlag){KB.warn();return}if(!e.cancelable){XB.warn();return}e.canceledFlag=!0}Object.defineProperty(lo,"NONE",{enumerable:!0});Object.defineProperty(lo,"CAPTURING_PHASE",{enumerable:!0});Object.defineProperty(lo,"AT_TARGET",{enumerable:!0});Object.defineProperty(lo,"BUBBLING_PHASE",{enumerable:!0});const Cb=Object.getOwnPropertyNames(lo.prototype);for(let e=0;e<Cb.length;++e)Cb[e]!=="constructor"&&Object.defineProperty(lo.prototype,Cb[e],{enumerable:!0});typeof Zi<"u"&&typeof Zi.Event<"u"&&Object.setPrototypeOf(lo.prototype,Zi.Event.prototype);function ZB(e){return Zi.DOMException?new Zi.DOMException(e,"InvalidStateError"):(Ps==null&&(Ps=class wP extends Error{constructor(r){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,wP)}get code(){return 11}get name(){return"InvalidStateError"}},Object.defineProperties(Ps.prototype,{code:{enumerable:!0},name:{enumerable:!0}}),RT(Ps),RT(Ps.prototype)),new Ps(e))}let Ps;const MT={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25};function RT(e){const t=Object.keys(MT);for(let r=0;r<t.length;++r){const n=t[r],i=MT[n];Object.defineProperty(e,n,{get(){return i},configurable:!0,enumerable:!0})}}class Mg extends lo{static wrap(t){return new(SP(t))(t)}constructor(t){super(t.type,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}),t.cancelBubble&&super.stopPropagation(),t.defaultPrevented&&super.preventDefault(),_P.set(this,{original:t});const r=Object.keys(t);for(let n=0;n<r.length;++n){const i=r[n];i in this||Object.defineProperty(this,i,EP(t,i))}}stopPropagation(){super.stopPropagation();const{original:t}=$o(this);"stopPropagation"in t&&t.stopPropagation()}get cancelBubble(){return super.cancelBubble}set cancelBubble(t){super.cancelBubble=t;const{original:r}=$o(this);"cancelBubble"in r&&(r.cancelBubble=t)}stopImmediatePropagation(){super.stopImmediatePropagation();const{original:t}=$o(this);"stopImmediatePropagation"in t&&t.stopImmediatePropagation()}get returnValue(){return super.returnValue}set returnValue(t){super.returnValue=t;const{original:r}=$o(this);"returnValue"in r&&(r.returnValue=t)}preventDefault(){super.preventDefault();const{original:t}=$o(this);"preventDefault"in t&&t.preventDefault()}get timeStamp(){const{original:t}=$o(this);return"timeStamp"in t?t.timeStamp:super.timeStamp}}const _P=new WeakMap;function $o(e){const t=_P.get(e);return CS(t!=null,"'this' is expected an Event object, but got",e),t}const Mm=new WeakMap;Mm.set(Object.prototype,Mg);typeof Zi<"u"&&typeof Zi.Event<"u"&&Mm.set(Zi.Event.prototype,Mg);function SP(e){const t=Object.getPrototypeOf(e);if(t==null)return Mg;let r=Mm.get(t);return r==null&&(r=JB(SP(t),t),Mm.set(t,r)),r}function JB(e,t){class r extends e{}const n=Object.keys(t);for(let i=0;i<n.length;++i)Object.defineProperty(r.prototype,n[i],EP(t,n[i]));return r}function EP(e,t){const r=Object.getOwnPropertyDescriptor(e,t);return{get(){const n=$o(this).original,i=n[t];return typeof i=="function"?i.bind(n):i},set(n){const i=$o(this).original;i[t]=n},configurable:r.configurable,enumerable:r.enumerable}}function ez(e,t,r,n,i,a){return{callback:e,flags:(t?1:0)|(r?2:0)|(n?4:0),signal:i,signalListener:a}}function tz(e){e.flags|=8}function AP(e){return(e.flags&1)===1}function TP(e){return(e.flags&2)===2}function CP(e){return(e.flags&4)===4}function rz(e){return(e.flags&8)===8}function nz({callback:e},t,r){try{typeof e=="function"?e.call(t,r):typeof e.handleEvent=="function"&&e.handleEvent(r)}catch(n){WB(n)}}function OP({listeners:e},t,r){for(let n=0;n<e.length;++n)if(e[n].callback===t&&AP(e[n])===r)return n;return-1}function iz(e,t,r,n,i,a){let o;a&&(o=kP.bind(null,e,t,r),a.addEventListener("abort",o));const l=ez(t,r,n,i,a,o);return e.cow?(e.cow=!1,e.listeners=[...e.listeners,l]):e.listeners.push(l),l}function kP(e,t,r){const n=OP(e,t,r);return n!==-1?MP(e,n):!1}function MP(e,t,r=!1){const n=e.listeners[t];return tz(n),n.signal&&n.signal.removeEventListener("abort",n.signalListener),e.cow&&!r?(e.cow=!1,e.listeners=e.listeners.filter((i,a)=>a!==t),!1):(e.listeners.splice(t,1),!0)}function az(){return Object.create(null)}function oz(e,t){var r;return(r=e[t])!==null&&r!==void 0?r:e[t]={attrCallback:void 0,attrListener:void 0,cow:!1,listeners:[]}}class OS{constructor(){RP.set(this,az())}addEventListener(t,r,n){const i=Ob(this),{callback:a,capture:o,once:l,passive:s,signal:f,type:d}=uz(t,r,n);if(a==null||f!=null&&f.aborted)return;const g=oz(i,d),v=OP(g,a,o);if(v!==-1){sz(g.listeners[v],s,l,f);return}iz(g,a,o,s,l,f)}removeEventListener(t,r,n){const i=Ob(this),{callback:a,capture:o,type:l}=lz(t,r,n),s=i[l];a!=null&&s&&kP(s,a,o)}dispatchEvent(t){const r=Ob(this)[String(t.type)];if(r==null)return!0;const n=t instanceof lo?t:Mg.wrap(t),i=en(n,"event");if(i.dispatchFlag)throw ZB("This event has been in dispatching.");if(i.dispatchFlag=!0,i.target=i.currentTarget=this,!i.stopPropagationFlag){const{cow:a,listeners:o}=r;r.cow=!0;for(let l=0;l<o.length;++l){const s=o[l];if(!rz(s)&&(CP(s)&&MP(r,l,!a)&&(l-=1),i.inPassiveListenerFlag=TP(s),nz(s,this,n),i.inPassiveListenerFlag=!1,i.stopImmediatePropagationFlag))break}a||(r.cow=!1)}return i.target=null,i.currentTarget=null,i.stopImmediatePropagationFlag=!1,i.stopPropagationFlag=!1,i.dispatchFlag=!1,!i.canceledFlag}}const RP=new WeakMap;function Ob(e,t="this"){const r=RP.get(e);return CS(r!=null,"'%s' must be an object that EventTarget constructor created, but got another one: %o",t,e),r}function uz(e,t,r){var n;return PP(t),typeof r=="object"&&r!==null?{type:String(e),callback:t??void 0,capture:!!r.capture,passive:!!r.passive,once:!!r.once,signal:(n=r.signal)!==null&&n!==void 0?n:void 0}:{type:String(e),callback:t??void 0,capture:!!r,passive:!1,once:!1,signal:void 0}}function lz(e,t,r){return PP(t),typeof r=="object"&&r!==null?{type:String(e),callback:t??void 0,capture:!!r.capture}:{type:String(e),callback:t??void 0,capture:!!r}}function PP(e){if(!(typeof e=="function"||typeof e=="object"&&e!==null&&typeof e.handleEvent=="function")){if(e==null||typeof e=="object"){ET.warn(e);return}throw new TypeError(bP(ET.message,[e]))}}function sz(e,t,r,n){QB.warn(AP(e)?"capture":"bubble",e.callback),TP(e)!==t&&Tb.warn("passive"),CP(e)!==r&&Tb.warn("once"),e.signal!==n&&Tb.warn("signal")}const kb=Object.getOwnPropertyNames(OS.prototype);for(let e=0;e<kb.length;++e)kb[e]!=="constructor"&&Object.defineProperty(OS.prototype,kb[e],{enumerable:!0});typeof Zi<"u"&&typeof Zi.EventTarget<"u"&&Object.setPrototypeOf(OS.prototype,Zi.EventTarget.prototype);function PT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PT(Object(r),!0).forEach(function(n){dn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rm(e){return Rm=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},Rm(e)}function fz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function cz(e,t,r){return t&&IT(e.prototype,t),r&&IT(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kS(e,t){return dz(e)||vz(e,t)||IP(e,t)||gz()}function rp(e){return hz(e)||pz(e)||IP(e)||mz()}function hz(e){if(Array.isArray(e))return a_(e)}function dz(e){if(Array.isArray(e))return e}function pz(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vz(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,l;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function IP(e,t){if(e){if(typeof e=="string")return a_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a_(e,t)}}function a_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function mz(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
71
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
72
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var FT=function(){},MS={},FP={},NP=null,LP={mark:FT,measure:FT};try{typeof window<"u"&&(MS=window),typeof document<"u"&&(FP=document),typeof MutationObserver<"u"&&(NP=MutationObserver),typeof performance<"u"&&(LP=performance)}catch{}var yz=MS.navigator||{},NT=yz.userAgent,LT=NT===void 0?"":NT,fu=MS,$r=FP,DT=NP,e0=LP;fu.document;var so=!!$r.documentElement&&!!$r.head&&typeof $r.addEventListener=="function"&&typeof $r.createElement=="function",DP=~LT.indexOf("MSIE")||~LT.indexOf("Trident/"),t0,r0,n0,i0,a0,to="___FONT_AWESOME___",o_=16,$P="fa",BP="svg-inline--fa",_l="data-fa-i2svg",u_="data-fa-pseudo-element",bz="data-fa-pseudo-element-pending",RS="data-prefix",PS="data-icon",$T="fontawesome-i2svg",xz="async",wz=["HTML","HEAD","STYLE","SCRIPT"],zP=function(){try{return!0}catch{return!1}}(),Lr="classic",qr="sharp",IS=[Lr,qr];function np(e){return new Proxy(e,{get:function(r,n){return n in r?r[n]:r[Lr]}})}var Cd=np((t0={},dn(t0,Lr,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),dn(t0,qr,{fa:"solid",fass:"solid","fa-solid":"solid"}),t0)),Od=np((r0={},dn(r0,Lr,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),dn(r0,qr,{solid:"fass"}),r0)),kd=np((n0={},dn(n0,Lr,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),dn(n0,qr,{fass:"fa-solid"}),n0)),_z=np((i0={},dn(i0,Lr,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),dn(i0,qr,{"fa-solid":"fass"}),i0)),Sz=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,UP="fa-layers-text",Ez=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Az=np((a0={},dn(a0,Lr,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),dn(a0,qr,{900:"fass"}),a0)),jP=[1,2,3,4,5,6,7,8,9,10],Tz=jP.concat([11,12,13,14,15,16,17,18,19,20]),Cz=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],cl={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Md=new Set;Object.keys(Od[Lr]).map(Md.add.bind(Md));Object.keys(Od[qr]).map(Md.add.bind(Md));var Oz=[].concat(IS,rp(Md),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",cl.GROUP,cl.SWAP_OPACITY,cl.PRIMARY,cl.SECONDARY]).concat(jP.map(function(e){return"".concat(e,"x")})).concat(Tz.map(function(e){return"w-".concat(e)})),id=fu.FontAwesomeConfig||{};function kz(e){var t=$r.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Mz(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if($r&&typeof $r.querySelector=="function"){var Rz=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Rz.forEach(function(e){var t=kS(e,2),r=t[0],n=t[1],i=Mz(kz(r));i!=null&&(id[n]=i)})}var GP={styleDefault:"solid",familyDefault:"classic",cssPrefix:$P,replacementClass:BP,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};id.familyPrefix&&(id.cssPrefix=id.familyPrefix);var Cf=Nt(Nt({},GP),id);Cf.autoReplaceSvg||(Cf.observeMutations=!1);var jt={};Object.keys(GP).forEach(function(e){Object.defineProperty(jt,e,{enumerable:!0,set:function(r){Cf[e]=r,ad.forEach(function(n){return n(jt)})},get:function(){return Cf[e]}})});Object.defineProperty(jt,"familyPrefix",{enumerable:!0,set:function(t){Cf.cssPrefix=t,ad.forEach(function(r){return r(jt)})},get:function(){return Cf.cssPrefix}});fu.FontAwesomeConfig=jt;var ad=[];function Pz(e){return ad.push(e),function(){ad.splice(ad.indexOf(e),1)}}var No=o_,ya={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Iz(e){if(!(!e||!so)){var t=$r.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=$r.head.childNodes,n=null,i=r.length-1;i>-1;i--){var a=r[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(n=a)}return $r.head.insertBefore(t,n),e}}var Fz="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Rd(){for(var e=12,t="";e-- >0;)t+=Fz[Math.random()*62|0];return t}function qf(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function FS(e){return e.classList?qf(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function WP(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Nz(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(WP(e[r]),'" ')},"").trim()}function Rg(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function NS(e){return e.size!==ya.size||e.x!==ya.x||e.y!==ya.y||e.rotate!==ya.rotate||e.flipX||e.flipY}function Lz(e){var t=e.transform,r=e.containerWidth,n=e.iconWidth,i={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(a," ").concat(o," ").concat(l)},f={transform:"translate(".concat(n/2*-1," -256)")};return{outer:i,inner:s,path:f}}function Dz(e){var t=e.transform,r=e.width,n=r===void 0?o_:r,i=e.height,a=i===void 0?o_:i,o=e.startCentered,l=o===void 0?!1:o,s="";return l&&DP?s+="translate(".concat(t.x/No-n/2,"em, ").concat(t.y/No-a/2,"em) "):l?s+="translate(calc(-50% + ".concat(t.x/No,"em), calc(-50% + ").concat(t.y/No,"em)) "):s+="translate(".concat(t.x/No,"em, ").concat(t.y/No,"em) "),s+="scale(".concat(t.size/No*(t.flipX?-1:1),", ").concat(t.size/No*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var $z=`:root, :host {
69
+ */var Zd=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",iB=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Zd&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function aB(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function oB(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},iB))}}var uB=Zd&&window.Promise,lB=uB?aB:oB;function rP(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function zl(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,n=r.getComputedStyle(e,null);return t?n[t]:n}function wS(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function Jd(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=zl(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?e:Jd(wS(e))}function nP(e){return e&&e.referenceNode?e.referenceNode:e}var yC=Zd&&!!(window.MSInputMethodContext&&document.documentMode),bC=Zd&&/MSIE 10/.test(navigator.userAgent);function Hf(e){return e===11?yC:e===10?bC:yC||bC}function Ef(e){if(!e)return document.documentElement;for(var t=Hf(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;return!n||n==="BODY"||n==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&zl(r,"position")==="static"?Ef(r):r}function sB(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||Ef(e.firstElementChild)===e}function e_(e){return e.parentNode!==null?e_(e.parentNode):e}function Tm(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?e:t,i=r?t:e,a=document.createRange();a.setStart(n,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||n.contains(i))return sB(o)?o:Ef(o);var l=e_(e);return l.host?Tm(l.host,t):Tm(e,e_(t).host)}function Af(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=t==="top"?"scrollTop":"scrollLeft",n=e.nodeName;if(n==="BODY"||n==="HTML"){var i=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||i;return a[r]}return e[r]}function fB(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Af(t,"top"),i=Af(t,"left"),a=r?-1:1;return e.top+=n*a,e.bottom+=n*a,e.left+=i*a,e.right+=i*a,e}function xC(e,t){var r=t==="x"?"Left":"Top",n=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+n+"Width"])}function wC(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],Hf(10)?parseInt(r["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function iP(e){var t=e.body,r=e.documentElement,n=Hf(10)&&getComputedStyle(r);return{height:wC("Height",t,r,n),width:wC("Width",t,r,n)}}var cB=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},hB=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),Cf=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},ki=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function su(e){return ki({},e,{right:e.left+e.width,bottom:e.top+e.height})}function t_(e){var t={};try{if(Hf(10)){t=e.getBoundingClientRect();var r=Af(e,"top"),n=Af(e,"left");t.top+=r,t.left+=n,t.bottom+=r,t.right+=n}else t=e.getBoundingClientRect()}catch{}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a=e.nodeName==="HTML"?iP(e.ownerDocument):{},o=a.width||e.clientWidth||i.width,l=a.height||e.clientHeight||i.height,s=e.offsetWidth-o,f=e.offsetHeight-l;if(s||f){var d=zl(e);s-=xC(d,"x"),f-=xC(d,"y"),i.width-=s,i.height-=f}return su(i)}function _S(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Hf(10),i=t.nodeName==="HTML",a=t_(e),o=t_(t),l=Jd(e),s=zl(t),f=parseFloat(s.borderTopWidth),d=parseFloat(s.borderLeftWidth);r&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var g=su({top:a.top-o.top-f,left:a.left-o.left-d,width:a.width,height:a.height});if(g.marginTop=0,g.marginLeft=0,!n&&i){var v=parseFloat(s.marginTop),y=parseFloat(s.marginLeft);g.top-=f-v,g.bottom-=f-v,g.left-=d-y,g.right-=d-y,g.marginTop=v,g.marginLeft=y}return(n&&!r?t.contains(l):t===l&&l.nodeName!=="BODY")&&(g=fB(g,t)),g}function dB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,n=_S(e,r),i=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),o=t?0:Af(r),l=t?0:Af(r,"left"),s={top:o-n.top+n.marginTop,left:l-n.left+n.marginLeft,width:i,height:a};return su(s)}function aP(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(zl(e,"position")==="fixed")return!0;var r=wS(e);return r?aP(r):!1}function oP(e){if(!e||!e.parentElement||Hf())return document.documentElement;for(var t=e.parentElement;t&&zl(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function SS(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?oP(e):Tm(e,nP(t));if(n==="viewport")a=dB(o,i);else{var l=void 0;n==="scrollParent"?(l=Jd(wS(t)),l.nodeName==="BODY"&&(l=e.ownerDocument.documentElement)):n==="window"?l=e.ownerDocument.documentElement:l=n;var s=_S(l,o,i);if(l.nodeName==="HTML"&&!aP(o)){var f=iP(e.ownerDocument),d=f.height,g=f.width;a.top+=s.top-s.marginTop,a.bottom=d+s.top,a.left+=s.left-s.marginLeft,a.right=g+s.left}else a=s}r=r||0;var v=typeof r=="number";return a.left+=v?r:r.left||0,a.top+=v?r:r.top||0,a.right-=v?r:r.right||0,a.bottom-=v?r:r.bottom||0,a}function pB(e){var t=e.width,r=e.height;return t*r}function uP(e,t,r,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var o=SS(r,n,a,i),l={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},s=Object.keys(l).map(function(v){return ki({key:v},l[v],{area:pB(l[v])})}).sort(function(v,y){return y.area-v.area}),f=s.filter(function(v){var y=v.width,E=v.height;return y>=r.clientWidth&&E>=r.clientHeight}),d=f.length>0?f[0].key:s[0].key,g=e.split("-")[1];return d+(g?"-"+g:"")}function lP(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=n?oP(t):Tm(t,nP(r));return _S(r,i,n)}function sP(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),i=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),a={width:e.offsetWidth+i,height:e.offsetHeight+n};return a}function Om(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(r){return t[r]})}function fP(e,t,r){r=r.split("-")[0];var n=sP(e),i={width:n.width,height:n.height},a=["right","left"].indexOf(r)!==-1,o=a?"top":"left",l=a?"left":"top",s=a?"height":"width",f=a?"width":"height";return i[o]=t[o]+t[s]/2-n[s]/2,r===l?i[l]=t[l]-n[f]:i[l]=t[Om(l)],i}function ep(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function vB(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===r});var n=ep(e,function(i){return i[t]===r});return e.indexOf(n)}function cP(e,t,r){var n=r===void 0?e:e.slice(0,vB(e,"name",r));return n.forEach(function(i){i.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var a=i.function||i.fn;i.enabled&&rP(a)&&(t.offsets.popper=su(t.offsets.popper),t.offsets.reference=su(t.offsets.reference),t=a(t,i))}),t}function mB(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=lP(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=uP(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=fP(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=cP(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function hP(e,t){return e.some(function(r){var n=r.name,i=r.enabled;return i&&n===t})}function ES(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<t.length;n++){var i=t[n],a=i?""+i+r:e;if(typeof document.body.style[a]<"u")return a}return null}function gB(){return this.state.isDestroyed=!0,hP(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ES("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function dP(e){var t=e.ownerDocument;return t?t.defaultView:window}function pP(e,t,r,n){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,r,{passive:!0}),i||pP(Jd(a.parentNode),t,r,n),n.push(a)}function yB(e,t,r,n){r.updateBound=n,dP(e).addEventListener("resize",r.updateBound,{passive:!0});var i=Jd(e);return pP(i,"scroll",r.updateBound,r.scrollParents),r.scrollElement=i,r.eventsEnabled=!0,r}function bB(){this.state.eventsEnabled||(this.state=yB(this.reference,this.options,this.state,this.scheduleUpdate))}function xB(e,t){return dP(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(r){r.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function wB(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=xB(this.reference,this.state))}function AS(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function r_(e,t){Object.keys(t).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&AS(t[r])&&(n="px"),e.style[r]=t[r]+n})}function _B(e,t){Object.keys(t).forEach(function(r){var n=t[r];n!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function SB(e){return r_(e.instance.popper,e.styles),_B(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&r_(e.arrowElement,e.arrowStyles),e}function EB(e,t,r,n,i){var a=lP(i,t,e,r.positionFixed),o=uP(r.placement,a,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",o),r_(t,{position:r.positionFixed?"fixed":"absolute"}),r}function AB(e,t){var r=e.offsets,n=r.popper,i=r.reference,a=Math.round,o=Math.floor,l=function(w){return w},s=a(i.width),f=a(n.width),d=["left","right"].indexOf(e.placement)!==-1,g=e.placement.indexOf("-")!==-1,v=s%2===f%2,y=s%2===1&&f%2===1,E=t?d||g||v?a:o:l,M=t?a:l;return{left:E(y&&!g&&t?n.left-1:n.left),top:M(n.top),bottom:M(n.bottom),right:E(n.right)}}var CB=Zd&&/Firefox/i.test(navigator.userAgent);function TB(e,t){var r=t.x,n=t.y,i=e.offsets.popper,a=ep(e.instance.modifiers,function(T){return T.name==="applyStyle"}).gpuAcceleration;a!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=a!==void 0?a:t.gpuAcceleration,l=Ef(e.instance.popper),s=t_(l),f={position:i.position},d=AB(e,window.devicePixelRatio<2||!CB),g=r==="bottom"?"top":"bottom",v=n==="right"?"left":"right",y=ES("transform"),E=void 0,M=void 0;if(g==="bottom"?l.nodeName==="HTML"?M=-l.clientHeight+d.bottom:M=-s.height+d.bottom:M=d.top,v==="right"?l.nodeName==="HTML"?E=-l.clientWidth+d.right:E=-s.width+d.right:E=d.left,o&&y)f[y]="translate3d("+E+"px, "+M+"px, 0)",f[g]=0,f[v]=0,f.willChange="transform";else{var x=g==="bottom"?-1:1,w=v==="right"?-1:1;f[g]=M*x,f[v]=E*w,f.willChange=g+", "+v}var _={"x-placement":e.placement};return e.attributes=ki({},_,e.attributes),e.styles=ki({},f,e.styles),e.arrowStyles=ki({},e.offsets.arrow,e.arrowStyles),e}function vP(e,t,r){var n=ep(e,function(l){var s=l.name;return s===t}),i=!!n&&e.some(function(l){return l.name===r&&l.enabled&&l.order<n.order});if(!i){var a="`"+t+"`",o="`"+r+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}function OB(e,t){var r;if(!vP(e.instance.modifiers,"arrow","keepTogether"))return e;var n=t.element;if(typeof n=="string"){if(n=e.instance.popper.querySelector(n),!n)return e}else if(!e.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,o=a.popper,l=a.reference,s=["left","right"].indexOf(i)!==-1,f=s?"height":"width",d=s?"Top":"Left",g=d.toLowerCase(),v=s?"left":"top",y=s?"bottom":"right",E=sP(n)[f];l[y]-E<o[g]&&(e.offsets.popper[g]-=o[g]-(l[y]-E)),l[g]+E>o[y]&&(e.offsets.popper[g]+=l[g]+E-o[y]),e.offsets.popper=su(e.offsets.popper);var M=l[g]+l[f]/2-E/2,x=zl(e.instance.popper),w=parseFloat(x["margin"+d]),_=parseFloat(x["border"+d+"Width"]),T=M-e.offsets.popper[g]-w-_;return T=Math.max(Math.min(o[f]-E,T),0),e.arrowElement=n,e.offsets.arrow=(r={},Cf(r,g,Math.round(T)),Cf(r,v,""),r),e}function MB(e){return e==="end"?"start":e==="start"?"end":e}var mP=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Sb=mP.slice(3);function _C(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Sb.indexOf(e),n=Sb.slice(r+1).concat(Sb.slice(0,r));return t?n.reverse():n}var Eb={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function kB(e,t){if(hP(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=SS(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=Om(n),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Eb.FLIP:o=[n,i];break;case Eb.CLOCKWISE:o=_C(n);break;case Eb.COUNTERCLOCKWISE:o=_C(n,!0);break;default:o=t.behavior}return o.forEach(function(l,s){if(n!==l||o.length===s+1)return e;n=e.placement.split("-")[0],i=Om(n);var f=e.offsets.popper,d=e.offsets.reference,g=Math.floor,v=n==="left"&&g(f.right)>g(d.left)||n==="right"&&g(f.left)<g(d.right)||n==="top"&&g(f.bottom)>g(d.top)||n==="bottom"&&g(f.top)<g(d.bottom),y=g(f.left)<g(r.left),E=g(f.right)>g(r.right),M=g(f.top)<g(r.top),x=g(f.bottom)>g(r.bottom),w=n==="left"&&y||n==="right"&&E||n==="top"&&M||n==="bottom"&&x,_=["top","bottom"].indexOf(n)!==-1,T=!!t.flipVariations&&(_&&a==="start"&&y||_&&a==="end"&&E||!_&&a==="start"&&M||!_&&a==="end"&&x),C=!!t.flipVariationsByContent&&(_&&a==="start"&&E||_&&a==="end"&&y||!_&&a==="start"&&x||!_&&a==="end"&&M),F=T||C;(v||w||F)&&(e.flipped=!0,(v||w)&&(n=o[s+1]),F&&(a=MB(a)),e.placement=n+(a?"-"+a:""),e.offsets.popper=ki({},e.offsets.popper,fP(e.instance.popper,e.offsets.reference,e.placement)),e=cP(e.instance.modifiers,e,"flip"))}),e}function RB(e){var t=e.offsets,r=t.popper,n=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=["top","bottom"].indexOf(i)!==-1,l=o?"right":"bottom",s=o?"left":"top",f=o?"width":"height";return r[l]<a(n[s])&&(e.offsets.popper[s]=a(n[s])-r[f]),r[s]>a(n[l])&&(e.offsets.popper[s]=a(n[l])),e}function PB(e,t,r,n){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(o.indexOf("%")===0){var l=void 0;switch(o){case"%p":l=r;break;case"%":case"%r":default:l=n}var s=su(l);return s[t]/100*a}else if(o==="vh"||o==="vw"){var f=void 0;return o==="vh"?f=Math.max(document.documentElement.clientHeight,window.innerHeight||0):f=Math.max(document.documentElement.clientWidth,window.innerWidth||0),f/100*a}else return a}function IB(e,t,r,n){var i=[0,0],a=["right","left"].indexOf(n)!==-1,o=e.split(/(\+|\-)/).map(function(d){return d.trim()}),l=o.indexOf(ep(o,function(d){return d.search(/,|\s/)!==-1}));o[l]&&o[l].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var s=/\s*,\s*|\s+/,f=l!==-1?[o.slice(0,l).concat([o[l].split(s)[0]]),[o[l].split(s)[1]].concat(o.slice(l+1))]:[o];return f=f.map(function(d,g){var v=(g===1?!a:a)?"height":"width",y=!1;return d.reduce(function(E,M){return E[E.length-1]===""&&["+","-"].indexOf(M)!==-1?(E[E.length-1]=M,y=!0,E):y?(E[E.length-1]+=M,y=!1,E):E.concat(M)},[]).map(function(E){return PB(E,v,t,r)})}),f.forEach(function(d,g){d.forEach(function(v,y){AS(v)&&(i[g]+=v*(d[y-1]==="-"?-1:1))})}),i}function FB(e,t){var r=t.offset,n=e.placement,i=e.offsets,a=i.popper,o=i.reference,l=n.split("-")[0],s=void 0;return AS(+r)?s=[+r,0]:s=IB(r,a,o,l),l==="left"?(a.top+=s[0],a.left-=s[1]):l==="right"?(a.top+=s[0],a.left+=s[1]):l==="top"?(a.left+=s[0],a.top-=s[1]):l==="bottom"&&(a.left+=s[0],a.top+=s[1]),e.popper=a,e}function NB(e,t){var r=t.boundariesElement||Ef(e.instance.popper);e.instance.reference===r&&(r=Ef(r));var n=ES("transform"),i=e.instance.popper.style,a=i.top,o=i.left,l=i[n];i.top="",i.left="",i[n]="";var s=SS(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);i.top=a,i.left=o,i[n]=l,t.boundaries=s;var f=t.priority,d=e.offsets.popper,g={primary:function(y){var E=d[y];return d[y]<s[y]&&!t.escapeWithReference&&(E=Math.max(d[y],s[y])),Cf({},y,E)},secondary:function(y){var E=y==="right"?"left":"top",M=d[E];return d[y]>s[y]&&!t.escapeWithReference&&(M=Math.min(d[E],s[y]-(y==="right"?d.width:d.height))),Cf({},E,M)}};return f.forEach(function(v){var y=["left","top"].indexOf(v)!==-1?"primary":"secondary";d=ki({},d,g[y](v))}),e.offsets.popper=d,e}function LB(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var i=e.offsets,a=i.reference,o=i.popper,l=["bottom","top"].indexOf(r)!==-1,s=l?"left":"top",f=l?"width":"height",d={start:Cf({},s,a[s]),end:Cf({},s,a[s]+a[f]-o[f])};e.offsets.popper=ki({},o,d[n])}return e}function DB(e){if(!vP(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=ep(e.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(t.bottom<r.top||t.left>r.right||t.top>r.bottom||t.right<r.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function $B(e){var t=e.placement,r=t.split("-")[0],n=e.offsets,i=n.popper,a=n.reference,o=["left","right"].indexOf(r)!==-1,l=["top","left"].indexOf(r)===-1;return i[o?"left":"top"]=a[r]-(l?i[o?"width":"height"]:0),e.placement=Om(t),e.offsets.popper=su(i),e}var BB={shift:{order:100,enabled:!0,fn:LB},offset:{order:200,enabled:!0,fn:FB,offset:0},preventOverflow:{order:300,enabled:!0,fn:NB,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:RB},arrow:{order:500,enabled:!0,fn:OB,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:kB,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:$B},hide:{order:800,enabled:!0,fn:DB},computeStyle:{order:850,enabled:!0,fn:TB,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:SB,onLoad:EB,gpuAcceleration:void 0}},zB={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:BB},Og=function(){function e(t,r){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};cB(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=lB(this.update.bind(this)),this.options=ki({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(ki({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){n.options.modifiers[o]=ki({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return ki({name:o},n.options.modifiers[o])}).sort(function(o,l){return o.order-l.order}),this.modifiers.forEach(function(o){o.enabled&&rP(o.onLoad)&&o.onLoad(n.reference,n.popper,n.options,o,n.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return hB(e,[{key:"update",value:function(){return mB.call(this)}},{key:"destroy",value:function(){return gB.call(this)}},{key:"enableEventListeners",value:function(){return bB.call(this)}},{key:"disableEventListeners",value:function(){return wB.call(this)}}]),e}();Og.Utils=(typeof window<"u"?window:global).PopperUtils;Og.placements=mP;Og.Defaults=zB;const Xie=Og;function CS(e,t,...r){if(!e)throw new TypeError(gP(t,r))}function gP(e,t){let r=0;return e.replace(/%[os]/gu,()=>yP(t[r++]))}function yP(e){return typeof e!="object"||e===null?String(e):Object.prototype.toString.call(e)}let UB;function jB(e){try{const t=e instanceof Error?e:new Error(yP(e));if(typeof dispatchEvent=="function"&&typeof ErrorEvent=="function")dispatchEvent(new ErrorEvent("error",{error:t,message:t.message}));else if(typeof process<"u"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)}catch{}}const Zi=typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:typeof globalThis<"u"?globalThis:void 0;let GB;class gu{constructor(t,r){this.code=t,this.message=r}warn(...t){var r;try{const n=((r=new Error().stack)!==null&&r!==void 0?r:"").replace(/^(?:.+?\n){2}/gu,`
70
+ `);console.warn(this.message,...t,n)}catch{}}}const WB=new gu("W01","Unable to initialize event under dispatching."),HB=new gu("W02","Assigning any falsy value to 'cancelBubble' property has no effect."),qB=new gu("W03","Assigning any truthy value to 'returnValue' property has no effect."),VB=new gu("W04","Unable to preventDefault on non-cancelable events."),YB=new gu("W05","Unable to preventDefault inside passive event listener invocation."),XB=new gu("W06","An event listener wasn't added because it has been added already: %o, %o"),Ab=new gu("W07","The %o option value was abandoned because the event listener wasn't added as duplicated."),SC=new gu("W08","The 'callback' argument must be a function or an object that has 'handleEvent' method: %o");class lo{static get NONE(){return EC}static get CAPTURING_PHASE(){return AC}static get AT_TARGET(){return CC}static get BUBBLING_PHASE(){return TC}constructor(t,r){Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=r??{};n_.set(this,{type:String(t),bubbles:!!n.bubbles,cancelable:!!n.cancelable,composed:!!n.composed,target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1,inPassiveListenerFlag:!1,dispatchFlag:!1,timeStamp:Date.now()})}get type(){return en(this).type}get target(){return en(this).target}get srcElement(){return en(this).target}get currentTarget(){return en(this).currentTarget}composedPath(){const t=en(this).currentTarget;return t?[t]:[]}get NONE(){return EC}get CAPTURING_PHASE(){return AC}get AT_TARGET(){return CC}get BUBBLING_PHASE(){return TC}get eventPhase(){return en(this).dispatchFlag?2:0}stopPropagation(){en(this).stopPropagationFlag=!0}get cancelBubble(){return en(this).stopPropagationFlag}set cancelBubble(t){t?en(this).stopPropagationFlag=!0:HB.warn()}stopImmediatePropagation(){const t=en(this);t.stopPropagationFlag=t.stopImmediatePropagationFlag=!0}get bubbles(){return en(this).bubbles}get cancelable(){return en(this).cancelable}get returnValue(){return!en(this).canceledFlag}set returnValue(t){t?qB.warn():OC(en(this))}preventDefault(){OC(en(this))}get defaultPrevented(){return en(this).canceledFlag}get composed(){return en(this).composed}get isTrusted(){return!1}get timeStamp(){return en(this).timeStamp}initEvent(t,r=!1,n=!1){const i=en(this);if(i.dispatchFlag){WB.warn();return}n_.set(this,{...i,type:String(t),bubbles:!!r,cancelable:!!n,target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1})}}const EC=0,AC=1,CC=2,TC=3,n_=new WeakMap;function en(e,t="this"){const r=n_.get(e);return CS(r!=null,"'%s' must be an object that Event constructor created, but got another one: %o",t,e),r}function OC(e){if(e.inPassiveListenerFlag){YB.warn();return}if(!e.cancelable){VB.warn();return}e.canceledFlag=!0}Object.defineProperty(lo,"NONE",{enumerable:!0});Object.defineProperty(lo,"CAPTURING_PHASE",{enumerable:!0});Object.defineProperty(lo,"AT_TARGET",{enumerable:!0});Object.defineProperty(lo,"BUBBLING_PHASE",{enumerable:!0});const Cb=Object.getOwnPropertyNames(lo.prototype);for(let e=0;e<Cb.length;++e)Cb[e]!=="constructor"&&Object.defineProperty(lo.prototype,Cb[e],{enumerable:!0});typeof Zi<"u"&&typeof Zi.Event<"u"&&Object.setPrototypeOf(lo.prototype,Zi.Event.prototype);function KB(e){return Zi.DOMException?new Zi.DOMException(e,"InvalidStateError"):(Ps==null&&(Ps=class bP extends Error{constructor(r){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,bP)}get code(){return 11}get name(){return"InvalidStateError"}},Object.defineProperties(Ps.prototype,{code:{enumerable:!0},name:{enumerable:!0}}),kC(Ps),kC(Ps.prototype)),new Ps(e))}let Ps;const MC={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25};function kC(e){const t=Object.keys(MC);for(let r=0;r<t.length;++r){const n=t[r],i=MC[n];Object.defineProperty(e,n,{get(){return i},configurable:!0,enumerable:!0})}}class Mg extends lo{static wrap(t){return new(wP(t))(t)}constructor(t){super(t.type,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}),t.cancelBubble&&super.stopPropagation(),t.defaultPrevented&&super.preventDefault(),xP.set(this,{original:t});const r=Object.keys(t);for(let n=0;n<r.length;++n){const i=r[n];i in this||Object.defineProperty(this,i,_P(t,i))}}stopPropagation(){super.stopPropagation();const{original:t}=$o(this);"stopPropagation"in t&&t.stopPropagation()}get cancelBubble(){return super.cancelBubble}set cancelBubble(t){super.cancelBubble=t;const{original:r}=$o(this);"cancelBubble"in r&&(r.cancelBubble=t)}stopImmediatePropagation(){super.stopImmediatePropagation();const{original:t}=$o(this);"stopImmediatePropagation"in t&&t.stopImmediatePropagation()}get returnValue(){return super.returnValue}set returnValue(t){super.returnValue=t;const{original:r}=$o(this);"returnValue"in r&&(r.returnValue=t)}preventDefault(){super.preventDefault();const{original:t}=$o(this);"preventDefault"in t&&t.preventDefault()}get timeStamp(){const{original:t}=$o(this);return"timeStamp"in t?t.timeStamp:super.timeStamp}}const xP=new WeakMap;function $o(e){const t=xP.get(e);return CS(t!=null,"'this' is expected an Event object, but got",e),t}const Mm=new WeakMap;Mm.set(Object.prototype,Mg);typeof Zi<"u"&&typeof Zi.Event<"u"&&Mm.set(Zi.Event.prototype,Mg);function wP(e){const t=Object.getPrototypeOf(e);if(t==null)return Mg;let r=Mm.get(t);return r==null&&(r=QB(wP(t),t),Mm.set(t,r)),r}function QB(e,t){class r extends e{}const n=Object.keys(t);for(let i=0;i<n.length;++i)Object.defineProperty(r.prototype,n[i],_P(t,n[i]));return r}function _P(e,t){const r=Object.getOwnPropertyDescriptor(e,t);return{get(){const n=$o(this).original,i=n[t];return typeof i=="function"?i.bind(n):i},set(n){const i=$o(this).original;i[t]=n},configurable:r.configurable,enumerable:r.enumerable}}function ZB(e,t,r,n,i,a){return{callback:e,flags:(t?1:0)|(r?2:0)|(n?4:0),signal:i,signalListener:a}}function JB(e){e.flags|=8}function SP(e){return(e.flags&1)===1}function EP(e){return(e.flags&2)===2}function AP(e){return(e.flags&4)===4}function ez(e){return(e.flags&8)===8}function tz({callback:e},t,r){try{typeof e=="function"?e.call(t,r):typeof e.handleEvent=="function"&&e.handleEvent(r)}catch(n){jB(n)}}function CP({listeners:e},t,r){for(let n=0;n<e.length;++n)if(e[n].callback===t&&SP(e[n])===r)return n;return-1}function rz(e,t,r,n,i,a){let o;a&&(o=TP.bind(null,e,t,r),a.addEventListener("abort",o));const l=ZB(t,r,n,i,a,o);return e.cow?(e.cow=!1,e.listeners=[...e.listeners,l]):e.listeners.push(l),l}function TP(e,t,r){const n=CP(e,t,r);return n!==-1?OP(e,n):!1}function OP(e,t,r=!1){const n=e.listeners[t];return JB(n),n.signal&&n.signal.removeEventListener("abort",n.signalListener),e.cow&&!r?(e.cow=!1,e.listeners=e.listeners.filter((i,a)=>a!==t),!1):(e.listeners.splice(t,1),!0)}function nz(){return Object.create(null)}function iz(e,t){var r;return(r=e[t])!==null&&r!==void 0?r:e[t]={attrCallback:void 0,attrListener:void 0,cow:!1,listeners:[]}}class TS{constructor(){MP.set(this,nz())}addEventListener(t,r,n){const i=Tb(this),{callback:a,capture:o,once:l,passive:s,signal:f,type:d}=az(t,r,n);if(a==null||f!=null&&f.aborted)return;const g=iz(i,d),v=CP(g,a,o);if(v!==-1){uz(g.listeners[v],s,l,f);return}rz(g,a,o,s,l,f)}removeEventListener(t,r,n){const i=Tb(this),{callback:a,capture:o,type:l}=oz(t,r,n),s=i[l];a!=null&&s&&TP(s,a,o)}dispatchEvent(t){const r=Tb(this)[String(t.type)];if(r==null)return!0;const n=t instanceof lo?t:Mg.wrap(t),i=en(n,"event");if(i.dispatchFlag)throw KB("This event has been in dispatching.");if(i.dispatchFlag=!0,i.target=i.currentTarget=this,!i.stopPropagationFlag){const{cow:a,listeners:o}=r;r.cow=!0;for(let l=0;l<o.length;++l){const s=o[l];if(!ez(s)&&(AP(s)&&OP(r,l,!a)&&(l-=1),i.inPassiveListenerFlag=EP(s),tz(s,this,n),i.inPassiveListenerFlag=!1,i.stopImmediatePropagationFlag))break}a||(r.cow=!1)}return i.target=null,i.currentTarget=null,i.stopImmediatePropagationFlag=!1,i.stopPropagationFlag=!1,i.dispatchFlag=!1,!i.canceledFlag}}const MP=new WeakMap;function Tb(e,t="this"){const r=MP.get(e);return CS(r!=null,"'%s' must be an object that EventTarget constructor created, but got another one: %o",t,e),r}function az(e,t,r){var n;return kP(t),typeof r=="object"&&r!==null?{type:String(e),callback:t??void 0,capture:!!r.capture,passive:!!r.passive,once:!!r.once,signal:(n=r.signal)!==null&&n!==void 0?n:void 0}:{type:String(e),callback:t??void 0,capture:!!r,passive:!1,once:!1,signal:void 0}}function oz(e,t,r){return kP(t),typeof r=="object"&&r!==null?{type:String(e),callback:t??void 0,capture:!!r.capture}:{type:String(e),callback:t??void 0,capture:!!r}}function kP(e){if(!(typeof e=="function"||typeof e=="object"&&e!==null&&typeof e.handleEvent=="function")){if(e==null||typeof e=="object"){SC.warn(e);return}throw new TypeError(gP(SC.message,[e]))}}function uz(e,t,r,n){XB.warn(SP(e)?"capture":"bubble",e.callback),EP(e)!==t&&Ab.warn("passive"),AP(e)!==r&&Ab.warn("once"),e.signal!==n&&Ab.warn("signal")}const Ob=Object.getOwnPropertyNames(TS.prototype);for(let e=0;e<Ob.length;++e)Ob[e]!=="constructor"&&Object.defineProperty(TS.prototype,Ob[e],{enumerable:!0});typeof Zi<"u"&&typeof Zi.EventTarget<"u"&&Object.setPrototypeOf(TS.prototype,Zi.EventTarget.prototype);function RC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RC(Object(r),!0).forEach(function(n){dn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function km(e){return km=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},km(e)}function lz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function sz(e,t,r){return t&&PC(e.prototype,t),r&&PC(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OS(e,t){return cz(e)||dz(e,t)||RP(e,t)||vz()}function tp(e){return fz(e)||hz(e)||RP(e)||pz()}function fz(e){if(Array.isArray(e))return i_(e)}function cz(e){if(Array.isArray(e))return e}function hz(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dz(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,l;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function RP(e,t){if(e){if(typeof e=="string")return i_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i_(e,t)}}function i_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function pz(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
71
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
72
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var IC=function(){},MS={},PP={},IP=null,FP={mark:IC,measure:IC};try{typeof window<"u"&&(MS=window),typeof document<"u"&&(PP=document),typeof MutationObserver<"u"&&(IP=MutationObserver),typeof performance<"u"&&(FP=performance)}catch{}var mz=MS.navigator||{},FC=mz.userAgent,NC=FC===void 0?"":FC,fu=MS,$r=PP,LC=IP,Jv=FP;fu.document;var so=!!$r.documentElement&&!!$r.head&&typeof $r.addEventListener=="function"&&typeof $r.createElement=="function",NP=~NC.indexOf("MSIE")||~NC.indexOf("Trident/"),e0,t0,r0,n0,i0,to="___FONT_AWESOME___",a_=16,LP="fa",DP="svg-inline--fa",_l="data-fa-i2svg",o_="data-fa-pseudo-element",gz="data-fa-pseudo-element-pending",kS="data-prefix",RS="data-icon",DC="fontawesome-i2svg",yz="async",bz=["HTML","HEAD","STYLE","SCRIPT"],$P=function(){try{return!0}catch{return!1}}(),Lr="classic",qr="sharp",PS=[Lr,qr];function rp(e){return new Proxy(e,{get:function(r,n){return n in r?r[n]:r[Lr]}})}var Cd=rp((e0={},dn(e0,Lr,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),dn(e0,qr,{fa:"solid",fass:"solid","fa-solid":"solid"}),e0)),Td=rp((t0={},dn(t0,Lr,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),dn(t0,qr,{solid:"fass"}),t0)),Od=rp((r0={},dn(r0,Lr,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),dn(r0,qr,{fass:"fa-solid"}),r0)),xz=rp((n0={},dn(n0,Lr,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),dn(n0,qr,{"fa-solid":"fass"}),n0)),wz=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,BP="fa-layers-text",_z=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Sz=rp((i0={},dn(i0,Lr,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),dn(i0,qr,{900:"fass"}),i0)),zP=[1,2,3,4,5,6,7,8,9,10],Ez=zP.concat([11,12,13,14,15,16,17,18,19,20]),Az=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],cl={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Md=new Set;Object.keys(Td[Lr]).map(Md.add.bind(Md));Object.keys(Td[qr]).map(Md.add.bind(Md));var Cz=[].concat(PS,tp(Md),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",cl.GROUP,cl.SWAP_OPACITY,cl.PRIMARY,cl.SECONDARY]).concat(zP.map(function(e){return"".concat(e,"x")})).concat(Ez.map(function(e){return"w-".concat(e)})),nd=fu.FontAwesomeConfig||{};function Tz(e){var t=$r.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Oz(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if($r&&typeof $r.querySelector=="function"){var Mz=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];Mz.forEach(function(e){var t=OS(e,2),r=t[0],n=t[1],i=Oz(Tz(r));i!=null&&(nd[n]=i)})}var UP={styleDefault:"solid",familyDefault:"classic",cssPrefix:LP,replacementClass:DP,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};nd.familyPrefix&&(nd.cssPrefix=nd.familyPrefix);var Tf=Nt(Nt({},UP),nd);Tf.autoReplaceSvg||(Tf.observeMutations=!1);var Ut={};Object.keys(UP).forEach(function(e){Object.defineProperty(Ut,e,{enumerable:!0,set:function(r){Tf[e]=r,id.forEach(function(n){return n(Ut)})},get:function(){return Tf[e]}})});Object.defineProperty(Ut,"familyPrefix",{enumerable:!0,set:function(t){Tf.cssPrefix=t,id.forEach(function(r){return r(Ut)})},get:function(){return Tf.cssPrefix}});fu.FontAwesomeConfig=Ut;var id=[];function kz(e){return id.push(e),function(){id.splice(id.indexOf(e),1)}}var No=a_,ya={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Rz(e){if(!(!e||!so)){var t=$r.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=$r.head.childNodes,n=null,i=r.length-1;i>-1;i--){var a=r[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(n=a)}return $r.head.insertBefore(t,n),e}}var Pz="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function kd(){for(var e=12,t="";e-- >0;)t+=Pz[Math.random()*62|0];return t}function qf(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function IS(e){return e.classList?qf(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function jP(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Iz(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(jP(e[r]),'" ')},"").trim()}function kg(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function FS(e){return e.size!==ya.size||e.x!==ya.x||e.y!==ya.y||e.rotate!==ya.rotate||e.flipX||e.flipY}function Fz(e){var t=e.transform,r=e.containerWidth,n=e.iconWidth,i={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),s={transform:"".concat(a," ").concat(o," ").concat(l)},f={transform:"translate(".concat(n/2*-1," -256)")};return{outer:i,inner:s,path:f}}function Nz(e){var t=e.transform,r=e.width,n=r===void 0?a_:r,i=e.height,a=i===void 0?a_:i,o=e.startCentered,l=o===void 0?!1:o,s="";return l&&NP?s+="translate(".concat(t.x/No-n/2,"em, ").concat(t.y/No-a/2,"em) "):l?s+="translate(calc(-50% + ".concat(t.x/No,"em), calc(-50% + ").concat(t.y/No,"em)) "):s+="translate(".concat(t.x/No,"em, ").concat(t.y/No,"em) "),s+="scale(".concat(t.size/No*(t.flipX?-1:1),", ").concat(t.size/No*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var Lz=`:root, :host {
73
73
  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
74
74
  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
75
75
  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
@@ -821,43 +821,43 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
821
821
  .fad.fa-inverse,
822
822
  .fa-duotone.fa-inverse {
823
823
  color: var(--fa-inverse, #fff);
824
- }`;function HP(){var e=$P,t=BP,r=jt.cssPrefix,n=jt.replacementClass,i=$z;if(r!==e||n!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(r,"-")).replace(o,"--".concat(r,"-")).replace(l,".".concat(n))}return i}var BT=!1;function Mb(){jt.autoAddCss&&!BT&&(Iz(HP()),BT=!0)}var Bz={mixout:function(){return{dom:{css:HP,insertCss:Mb}}},hooks:function(){return{beforeDOMElementCreation:function(){Mb()},beforeI2svg:function(){Mb()}}}},ro=fu||{};ro[to]||(ro[to]={});ro[to].styles||(ro[to].styles={});ro[to].hooks||(ro[to].hooks={});ro[to].shims||(ro[to].shims=[]);var Qi=ro[to],qP=[],zz=function e(){$r.removeEventListener("DOMContentLoaded",e),Pm=1,qP.map(function(t){return t()})},Pm=!1;so&&(Pm=($r.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test($r.readyState),Pm||$r.addEventListener("DOMContentLoaded",zz));function Uz(e){so&&(Pm?setTimeout(e,0):qP.push(e))}function ip(e){var t=e.tag,r=e.attributes,n=r===void 0?{}:r,i=e.children,a=i===void 0?[]:i;return typeof e=="string"?WP(e):"<".concat(t," ").concat(Nz(n),">").concat(a.map(ip).join(""),"</").concat(t,">")}function zT(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var jz=function(t,r){return function(n,i,a,o){return t.call(r,n,i,a,o)}},Rb=function(t,r,n,i){var a=Object.keys(t),o=a.length,l=i!==void 0?jz(r,i):r,s,f,d;for(n===void 0?(s=1,d=t[a[0]]):(s=0,d=n);s<o;s++)f=a[s],d=l(d,t[f],f,t);return d};function Gz(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var a=e.charCodeAt(r++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),r--)}else t.push(i)}return t}function l_(e){var t=Gz(e);return t.length===1?t[0].toString(16):null}function Wz(e,t){var r=e.length,n=e.charCodeAt(t),i;return n>=55296&&n<=56319&&r>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}function UT(e){return Object.keys(e).reduce(function(t,r){var n=e[r],i=!!n.icon;return i?t[n.iconName]=n.icon:t[r]=n,t},{})}function s_(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,i=n===void 0?!1:n,a=UT(t);typeof Qi.hooks.addPack=="function"&&!i?Qi.hooks.addPack(e,UT(t)):Qi.styles[e]=Nt(Nt({},Qi.styles[e]||{}),a),e==="fas"&&s_("fa",t)}var o0,u0,l0,Qs=Qi.styles,Hz=Qi.shims,qz=(o0={},dn(o0,Lr,Object.values(kd[Lr])),dn(o0,qr,Object.values(kd[qr])),o0),LS=null,VP={},YP={},XP={},KP={},QP={},Vz=(u0={},dn(u0,Lr,Object.keys(Cd[Lr])),dn(u0,qr,Object.keys(Cd[qr])),u0);function Yz(e){return~Oz.indexOf(e)}function Xz(e,t){var r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!Yz(i)?i:null}var ZP=function(){var t=function(a){return Rb(Qs,function(o,l,s){return o[s]=Rb(l,a,{}),o},{})};VP=t(function(i,a,o){if(a[3]&&(i[a[3]]=o),a[2]){var l=a[2].filter(function(s){return typeof s=="number"});l.forEach(function(s){i[s.toString(16)]=o})}return i}),YP=t(function(i,a,o){if(i[o]=o,a[2]){var l=a[2].filter(function(s){return typeof s=="string"});l.forEach(function(s){i[s]=o})}return i}),QP=t(function(i,a,o){var l=a[2];return i[o]=o,l.forEach(function(s){i[s]=o}),i});var r="far"in Qs||jt.autoFetchSvg,n=Rb(Hz,function(i,a){var o=a[0],l=a[1],s=a[2];return l==="far"&&!r&&(l="fas"),typeof o=="string"&&(i.names[o]={prefix:l,iconName:s}),typeof o=="number"&&(i.unicodes[o.toString(16)]={prefix:l,iconName:s}),i},{names:{},unicodes:{}});XP=n.names,KP=n.unicodes,LS=Pg(jt.styleDefault,{family:jt.familyDefault})};Pz(function(e){LS=Pg(e.styleDefault,{family:jt.familyDefault})});ZP();function DS(e,t){return(VP[e]||{})[t]}function Kz(e,t){return(YP[e]||{})[t]}function hl(e,t){return(QP[e]||{})[t]}function JP(e){return XP[e]||{prefix:null,iconName:null}}function Qz(e){var t=KP[e],r=DS("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function cu(){return LS}var $S=function(){return{prefix:null,iconName:null,rest:[]}};function Pg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.family,n=r===void 0?Lr:r,i=Cd[n][e],a=Od[n][e]||Od[n][i],o=e in Qi.styles?e:null;return a||o||null}var jT=(l0={},dn(l0,Lr,Object.keys(kd[Lr])),dn(l0,qr,Object.keys(kd[qr])),l0);function Ig(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.skipLookups,i=n===void 0?!1:n,a=(t={},dn(t,Lr,"".concat(jt.cssPrefix,"-").concat(Lr)),dn(t,qr,"".concat(jt.cssPrefix,"-").concat(qr)),t),o=null,l=Lr;(e.includes(a[Lr])||e.some(function(f){return jT[Lr].includes(f)}))&&(l=Lr),(e.includes(a[qr])||e.some(function(f){return jT[qr].includes(f)}))&&(l=qr);var s=e.reduce(function(f,d){var g=Xz(jt.cssPrefix,d);if(Qs[d]?(d=qz[l].includes(d)?_z[l][d]:d,o=d,f.prefix=d):Vz[l].indexOf(d)>-1?(o=d,f.prefix=Pg(d,{family:l})):g?f.iconName=g:d!==jt.replacementClass&&d!==a[Lr]&&d!==a[qr]&&f.rest.push(d),!i&&f.prefix&&f.iconName){var v=o==="fa"?JP(f.iconName):{},y=hl(f.prefix,f.iconName);v.prefix&&(o=null),f.iconName=v.iconName||y||f.iconName,f.prefix=v.prefix||f.prefix,f.prefix==="far"&&!Qs.far&&Qs.fas&&!jt.autoFetchSvg&&(f.prefix="fas")}return f},$S());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&l===qr&&(Qs.fass||jt.autoFetchSvg)&&(s.prefix="fass",s.iconName=hl(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||o==="fa")&&(s.prefix=cu()||"fas"),s}var Zz=function(){function e(){fz(this,e),this.definitions={}}return cz(e,[{key:"add",value:function(){for(var r=this,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(l){r.definitions[l]=Nt(Nt({},r.definitions[l]||{}),o[l]),s_(l,o[l]);var s=kd[Lr][l];s&&s_(s,o[l]),ZP()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(r,n){var i=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(i).map(function(a){var o=i[a],l=o.prefix,s=o.iconName,f=o.icon,d=f[2];r[l]||(r[l]={}),d.length>0&&d.forEach(function(g){typeof g=="string"&&(r[l][g]=f)}),r[l][s]=f}),r}}]),e}(),GT=[],Zs={},df={},Jz=Object.keys(df);function e7(e,t){var r=t.mixoutsTo;return GT=e,Zs={},Object.keys(df).forEach(function(n){Jz.indexOf(n)===-1&&delete df[n]}),GT.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(r[o]=i[o]),Rm(i[o])==="object"&&Object.keys(i[o]).forEach(function(l){r[o]||(r[o]={}),r[o][l]=i[o][l]})}),n.hooks){var a=n.hooks();Object.keys(a).forEach(function(o){Zs[o]||(Zs[o]=[]),Zs[o].push(a[o])})}n.provides&&n.provides(df)}),r}function f_(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];var a=Zs[e]||[];return a.forEach(function(o){t=o.apply(null,[t].concat(n))}),t}function Sl(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=Zs[e]||[];i.forEach(function(a){a.apply(null,r)})}function no(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return df[e]?df[e].apply(null,t):void 0}function c_(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,r=e.prefix||cu();if(t)return t=hl(r,t)||t,zT(eI.definitions,r,t)||zT(Qi.styles,r,t)}var eI=new Zz,t7=function(){jt.autoReplaceSvg=!1,jt.observeMutations=!1,Sl("noAuto")},r7={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return so?(Sl("beforeI2svg",t),no("pseudoElements2svg",t),no("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot;jt.autoReplaceSvg===!1&&(jt.autoReplaceSvg=!0),jt.observeMutations=!0,Uz(function(){i7({autoReplaceSvgRoot:r}),Sl("watch",t)})}},n7={icon:function(t){if(t===null)return null;if(Rm(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:hl(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var r=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],n=Pg(t[0]);return{prefix:n,iconName:hl(n,r)||r}}if(typeof t=="string"&&(t.indexOf("".concat(jt.cssPrefix,"-"))>-1||t.match(Sz))){var i=Ig(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||cu(),iconName:hl(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var a=cu();return{prefix:a,iconName:hl(a,t)||t}}}},yi={noAuto:t7,config:jt,dom:r7,parse:n7,library:eI,findIconDefinition:c_,toHtml:ip},i7=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot,n=r===void 0?$r:r;(Object.keys(Qi.styles).length>0||jt.autoFetchSvg)&&so&&jt.autoReplaceSvg&&yi.dom.i2svg({node:n})};function Fg(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return ip(n)})}}),Object.defineProperty(e,"node",{get:function(){if(so){var n=$r.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function a7(e){var t=e.children,r=e.main,n=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(NS(o)&&r.found&&!n.found){var l=r.width,s=r.height,f={x:l/s/2,y:.5};i.style=Rg(Nt(Nt({},a),{},{"transform-origin":"".concat(f.x+o.x/16,"em ").concat(f.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function o7(e){var t=e.prefix,r=e.iconName,n=e.children,i=e.attributes,a=e.symbol,o=a===!0?"".concat(t,"-").concat(jt.cssPrefix,"-").concat(r):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Nt(Nt({},i),{},{id:o}),children:n}]}]}function BS(e){var t=e.icons,r=t.main,n=t.mask,i=e.prefix,a=e.iconName,o=e.transform,l=e.symbol,s=e.title,f=e.maskId,d=e.titleId,g=e.extra,v=e.watchable,y=v===void 0?!1:v,E=n.found?n:r,k=E.width,x=E.height,w=i==="fak",_=[jt.replacementClass,a?"".concat(jt.cssPrefix,"-").concat(a):""].filter(function(te){return g.classes.indexOf(te)===-1}).filter(function(te){return te!==""||!!te}).concat(g.classes).join(" "),C={children:[],attributes:Nt(Nt({},g.attributes),{},{"data-prefix":i,"data-icon":a,class:_,role:g.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(k," ").concat(x)})},T=w&&!~g.classes.indexOf("fa-fw")?{width:"".concat(k/x*16*.0625,"em")}:{};y&&(C.attributes[_l]=""),s&&(C.children.push({tag:"title",attributes:{id:C.attributes["aria-labelledby"]||"title-".concat(d||Rd())},children:[s]}),delete C.attributes.title);var F=Nt(Nt({},C),{},{prefix:i,iconName:a,main:r,mask:n,maskId:f,transform:o,symbol:l,styles:Nt(Nt({},T),g.styles)}),L=n.found&&r.found?no("generateAbstractMask",F)||{children:[],attributes:{}}:no("generateAbstractIcon",F)||{children:[],attributes:{}},V=L.children,j=L.attributes;return F.children=V,F.attributes=j,l?o7(F):a7(F)}function WT(e){var t=e.content,r=e.width,n=e.height,i=e.transform,a=e.title,o=e.extra,l=e.watchable,s=l===void 0?!1:l,f=Nt(Nt(Nt({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});s&&(f[_l]="");var d=Nt({},o.styles);NS(i)&&(d.transform=Dz({transform:i,startCentered:!0,width:r,height:n}),d["-webkit-transform"]=d.transform);var g=Rg(d);g.length>0&&(f.style=g);var v=[];return v.push({tag:"span",attributes:f,children:[t]}),a&&v.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),v}function u7(e){var t=e.content,r=e.title,n=e.extra,i=Nt(Nt(Nt({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),a=Rg(n.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),r&&o.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),o}var Pb=Qi.styles;function h_(e){var t=e[0],r=e[1],n=e.slice(4),i=kS(n,1),a=i[0],o=null;return Array.isArray(a)?o={tag:"g",attributes:{class:"".concat(jt.cssPrefix,"-").concat(cl.GROUP)},children:[{tag:"path",attributes:{class:"".concat(jt.cssPrefix,"-").concat(cl.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(jt.cssPrefix,"-").concat(cl.PRIMARY),fill:"currentColor",d:a[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:r,icon:o}}var l7={found:!1,width:512,height:512};function s7(e,t){!zP&&!jt.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function d_(e,t){var r=t;return t==="fa"&&jt.styleDefault!==null&&(t=cu()),new Promise(function(n,i){if(no("missingIconAbstract"),r==="fa"){var a=JP(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&Pb[t]&&Pb[t][e]){var o=Pb[t][e];return n(h_(o))}s7(e,t),n(Nt(Nt({},l7),{},{icon:jt.showMissingIcons&&e?no("missingIconAbstract")||{}:{}}))})}var HT=function(){},p_=jt.measurePerformance&&e0&&e0.mark&&e0.measure?e0:{mark:HT,measure:HT},Uh='FA "6.2.1"',f7=function(t){return p_.mark("".concat(Uh," ").concat(t," begins")),function(){return tI(t)}},tI=function(t){p_.mark("".concat(Uh," ").concat(t," ends")),p_.measure("".concat(Uh," ").concat(t),"".concat(Uh," ").concat(t," begins"),"".concat(Uh," ").concat(t," ends"))},zS={begin:f7,end:tI},V0=function(){};function qT(e){var t=e.getAttribute?e.getAttribute(_l):null;return typeof t=="string"}function c7(e){var t=e.getAttribute?e.getAttribute(RS):null,r=e.getAttribute?e.getAttribute(PS):null;return t&&r}function h7(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(jt.replacementClass)}function d7(){if(jt.autoReplaceSvg===!0)return Y0.replace;var e=Y0[jt.autoReplaceSvg];return e||Y0.replace}function p7(e){return $r.createElementNS("http://www.w3.org/2000/svg",e)}function v7(e){return $r.createElement(e)}function rI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.ceFn,n=r===void 0?e.tag==="svg"?p7:v7:r;if(typeof e=="string")return $r.createTextNode(e);var i=n(e.tag);Object.keys(e.attributes||[]).forEach(function(o){i.setAttribute(o,e.attributes[o])});var a=e.children||[];return a.forEach(function(o){i.appendChild(rI(o,{ceFn:n}))}),i}function m7(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Y0={replace:function(t){var r=t[0];if(r.parentNode)if(t[1].forEach(function(i){r.parentNode.insertBefore(rI(i),r)}),r.getAttribute(_l)===null&&jt.keepOriginalSource){var n=$r.createComment(m7(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(t){var r=t[0],n=t[1];if(~FS(r).indexOf(jt.replacementClass))return Y0.replace(t);var i=new RegExp("".concat(jt.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce(function(l,s){return s===jt.replacementClass||s.match(i)?l.toSvg.push(s):l.toNode.push(s),l},{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?r.removeAttribute("class"):r.setAttribute("class",a.toNode.join(" "))}var o=n.map(function(l){return ip(l)}).join(`
825
- `);r.setAttribute(_l,""),r.innerHTML=o}};function VT(e){e()}function nI(e,t){var r=typeof t=="function"?t:V0;if(e.length===0)r();else{var n=VT;jt.mutateApproach===xz&&(n=fu.requestAnimationFrame||VT),n(function(){var i=d7(),a=zS.begin("mutate");e.map(i),a(),r()})}}var US=!1;function iI(){US=!0}function v_(){US=!1}var Im=null;function YT(e){if(DT&&jt.observeMutations){var t=e.treeCallback,r=t===void 0?V0:t,n=e.nodeCallback,i=n===void 0?V0:n,a=e.pseudoElementsCallback,o=a===void 0?V0:a,l=e.observeMutationsRoot,s=l===void 0?$r:l;Im=new DT(function(f){if(!US){var d=cu();qf(f).forEach(function(g){if(g.type==="childList"&&g.addedNodes.length>0&&!qT(g.addedNodes[0])&&(jt.searchPseudoElements&&o(g.target),r(g.target)),g.type==="attributes"&&g.target.parentNode&&jt.searchPseudoElements&&o(g.target.parentNode),g.type==="attributes"&&qT(g.target)&&~Cz.indexOf(g.attributeName))if(g.attributeName==="class"&&c7(g.target)){var v=Ig(FS(g.target)),y=v.prefix,E=v.iconName;g.target.setAttribute(RS,y||d),E&&g.target.setAttribute(PS,E)}else h7(g.target)&&i(g.target)})}}),so&&Im.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function g7(){Im&&Im.disconnect()}function y7(e){var t=e.getAttribute("style"),r=[];return t&&(r=t.split(";").reduce(function(n,i){var a=i.split(":"),o=a[0],l=a.slice(1);return o&&l.length>0&&(n[o]=l.join(":").trim()),n},{})),r}function b7(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=Ig(FS(e));return i.prefix||(i.prefix=cu()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=Kz(i.prefix,e.innerText)||DS(i.prefix,l_(e.innerText))),!i.iconName&&jt.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function x7(e){var t=qf(e.attributes).reduce(function(i,a){return i.name!=="class"&&i.name!=="style"&&(i[a.name]=a.value),i},{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return jt.autoA11y&&(r?t["aria-labelledby"]="".concat(jt.replacementClass,"-title-").concat(n||Rd()):(t["aria-hidden"]="true",t.focusable="false")),t}function w7(){return{iconName:null,title:null,titleId:null,prefix:null,transform:ya,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function XT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=b7(e),n=r.iconName,i=r.prefix,a=r.rest,o=x7(e),l=f_("parseNodeAttributes",{},e),s=t.styleParser?y7(e):[];return Nt({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:ya,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:s,attributes:o}},l)}var _7=Qi.styles;function aI(e){var t=jt.autoReplaceSvg==="nest"?XT(e,{styleParser:!1}):XT(e);return~t.extra.classes.indexOf(UP)?no("generateLayersText",e,t):no("generateSvgReplacementMutation",e,t)}var hu=new Set;IS.map(function(e){hu.add("fa-".concat(e))});Object.keys(Cd[Lr]).map(hu.add.bind(hu));Object.keys(Cd[qr]).map(hu.add.bind(hu));hu=rp(hu);function KT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!so)return Promise.resolve();var r=$r.documentElement.classList,n=function(g){return r.add("".concat($T,"-").concat(g))},i=function(g){return r.remove("".concat($T,"-").concat(g))},a=jt.autoFetchSvg?hu:IS.map(function(d){return"fa-".concat(d)}).concat(Object.keys(_7));a.includes("fa")||a.push("fa");var o=[".".concat(UP,":not([").concat(_l,"])")].concat(a.map(function(d){return".".concat(d,":not([").concat(_l,"])")})).join(", ");if(o.length===0)return Promise.resolve();var l=[];try{l=qf(e.querySelectorAll(o))}catch{}if(l.length>0)n("pending"),i("complete");else return Promise.resolve();var s=zS.begin("onTree"),f=l.reduce(function(d,g){try{var v=aI(g);v&&d.push(v)}catch(y){zP||y.name==="MissingIcon"&&console.error(y)}return d},[]);return new Promise(function(d,g){Promise.all(f).then(function(v){nI(v,function(){n("active"),n("complete"),i("pending"),typeof t=="function"&&t(),s(),d()})}).catch(function(v){s(),g(v)})})}function S7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;aI(e).then(function(r){r&&nI([r],t)})}function E7(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(t||{}).icon?t:c_(t||{}),i=r.mask;return i&&(i=(i||{}).icon?i:c_(i||{})),e(n,Nt(Nt({},r),{},{mask:i}))}}var A7=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,i=n===void 0?ya:n,a=r.symbol,o=a===void 0?!1:a,l=r.mask,s=l===void 0?null:l,f=r.maskId,d=f===void 0?null:f,g=r.title,v=g===void 0?null:g,y=r.titleId,E=y===void 0?null:y,k=r.classes,x=k===void 0?[]:k,w=r.attributes,_=w===void 0?{}:w,C=r.styles,T=C===void 0?{}:C;if(t){var F=t.prefix,L=t.iconName,V=t.icon;return Fg(Nt({type:"icon"},t),function(){return Sl("beforeDOMElementCreation",{iconDefinition:t,params:r}),jt.autoA11y&&(v?_["aria-labelledby"]="".concat(jt.replacementClass,"-title-").concat(E||Rd()):(_["aria-hidden"]="true",_.focusable="false")),BS({icons:{main:h_(V),mask:s?h_(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:F,iconName:L,transform:Nt(Nt({},ya),i),symbol:o,title:v,maskId:d,titleId:E,extra:{attributes:_,styles:T,classes:x}})})}},T7={mixout:function(){return{icon:E7(A7)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=KT,r.nodeCallback=S7,r}}},provides:function(t){t.i2svg=function(r){var n=r.node,i=n===void 0?$r:n,a=r.callback,o=a===void 0?function(){}:a;return KT(i,o)},t.generateSvgReplacementMutation=function(r,n){var i=n.iconName,a=n.title,o=n.titleId,l=n.prefix,s=n.transform,f=n.symbol,d=n.mask,g=n.maskId,v=n.extra;return new Promise(function(y,E){Promise.all([d_(i,l),d.iconName?d_(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(k){var x=kS(k,2),w=x[0],_=x[1];y([r,BS({icons:{main:w,mask:_},prefix:l,iconName:i,transform:s,symbol:f,maskId:g,title:a,titleId:o,extra:v,watchable:!0})])}).catch(E)})},t.generateAbstractIcon=function(r){var n=r.children,i=r.attributes,a=r.main,o=r.transform,l=r.styles,s=Rg(l);s.length>0&&(i.style=s);var f;return NS(o)&&(f=no("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),n.push(f||a.icon),{children:n,attributes:i}}}},C7={mixout:function(){return{layer:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.classes,a=i===void 0?[]:i;return Fg({type:"layer"},function(){Sl("beforeDOMElementCreation",{assembler:r,params:n});var o=[];return r(function(l){Array.isArray(l)?l.map(function(s){o=o.concat(s.abstract)}):o=o.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(jt.cssPrefix,"-layers")].concat(rp(a)).join(" ")},children:o}]})}}}},O7={mixout:function(){return{counter:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.title,a=i===void 0?null:i,o=n.classes,l=o===void 0?[]:o,s=n.attributes,f=s===void 0?{}:s,d=n.styles,g=d===void 0?{}:d;return Fg({type:"counter",content:r},function(){return Sl("beforeDOMElementCreation",{content:r,params:n}),u7({content:r.toString(),title:a,extra:{attributes:f,styles:g,classes:["".concat(jt.cssPrefix,"-layers-counter")].concat(rp(l))}})})}}}},k7={mixout:function(){return{text:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,a=i===void 0?ya:i,o=n.title,l=o===void 0?null:o,s=n.classes,f=s===void 0?[]:s,d=n.attributes,g=d===void 0?{}:d,v=n.styles,y=v===void 0?{}:v;return Fg({type:"text",content:r},function(){return Sl("beforeDOMElementCreation",{content:r,params:n}),WT({content:r,transform:Nt(Nt({},ya),a),title:l,extra:{attributes:g,styles:y,classes:["".concat(jt.cssPrefix,"-layers-text")].concat(rp(f))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var i=n.title,a=n.transform,o=n.extra,l=null,s=null;if(DP){var f=parseInt(getComputedStyle(r).fontSize,10),d=r.getBoundingClientRect();l=d.width/f,s=d.height/f}return jt.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([r,WT({content:r.innerHTML,width:l,height:s,transform:a,title:i,extra:o,watchable:!0})])}}},M7=new RegExp('"',"ug"),QT=[1105920,1112319];function R7(e){var t=e.replace(M7,""),r=Wz(t,0),n=r>=QT[0]&&r<=QT[1],i=t.length===2?t[0]===t[1]:!1;return{value:l_(i?t[0]:t),isSecondary:n||i}}function ZT(e,t){var r="".concat(bz).concat(t.replace(":","-"));return new Promise(function(n,i){if(e.getAttribute(r)!==null)return n();var a=qf(e.children),o=a.filter(function(V){return V.getAttribute(u_)===t})[0],l=fu.getComputedStyle(e,t),s=l.getPropertyValue("font-family").match(Ez),f=l.getPropertyValue("font-weight"),d=l.getPropertyValue("content");if(o&&!s)return e.removeChild(o),n();if(s&&d!=="none"&&d!==""){var g=l.getPropertyValue("content"),v=~["Sharp"].indexOf(s[2])?qr:Lr,y=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Od[v][s[2].toLowerCase()]:Az[v][f],E=R7(g),k=E.value,x=E.isSecondary,w=s[0].startsWith("FontAwesome"),_=DS(y,k),C=_;if(w){var T=Qz(k);T.iconName&&T.prefix&&(_=T.iconName,y=T.prefix)}if(_&&!x&&(!o||o.getAttribute(RS)!==y||o.getAttribute(PS)!==C)){e.setAttribute(r,C),o&&e.removeChild(o);var F=w7(),L=F.extra;L.attributes[u_]=t,d_(_,y).then(function(V){var j=BS(Nt(Nt({},F),{},{icons:{main:V,mask:$S()},prefix:y,iconName:C,extra:L,watchable:!0})),te=$r.createElement("svg");t==="::before"?e.insertBefore(te,e.firstChild):e.appendChild(te),te.outerHTML=j.map(function(ge){return ip(ge)}).join(`
826
- `),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function P7(e){return Promise.all([ZT(e,"::before"),ZT(e,"::after")])}function I7(e){return e.parentNode!==document.head&&!~wz.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(u_)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function JT(e){if(so)return new Promise(function(t,r){var n=qf(e.querySelectorAll("*")).filter(I7).map(P7),i=zS.begin("searchPseudoElements");iI(),Promise.all(n).then(function(){i(),v_(),t()}).catch(function(){i(),v_(),r()})})}var F7={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=JT,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node,i=n===void 0?$r:n;jt.searchPseudoElements&&JT(i)}}},eC=!1,N7={mixout:function(){return{dom:{unwatch:function(){iI(),eC=!0}}}},hooks:function(){return{bootstrap:function(){YT(f_("mutationObserverCallbacks",{}))},noAuto:function(){g7()},watch:function(r){var n=r.observeMutationsRoot;eC?v_():YT(f_("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},tC=function(t){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(n,i){var a=i.toLowerCase().split("-"),o=a[0],l=a.slice(1).join("-");if(o&&l==="h")return n.flipX=!0,n;if(o&&l==="v")return n.flipY=!0,n;if(l=parseFloat(l),isNaN(l))return n;switch(o){case"grow":n.size=n.size+l;break;case"shrink":n.size=n.size-l;break;case"left":n.x=n.x-l;break;case"right":n.x=n.x+l;break;case"up":n.y=n.y-l;break;case"down":n.y=n.y+l;break;case"rotate":n.rotate=n.rotate+l;break}return n},r)},L7={mixout:function(){return{parse:{transform:function(r){return tC(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=tC(i)),r}}},provides:function(t){t.generateAbstractTransformGrouping=function(r){var n=r.main,i=r.transform,a=r.containerWidth,o=r.iconWidth,l={transform:"translate(".concat(a/2," 256)")},s="translate(".concat(i.x*32,", ").concat(i.y*32,") "),f="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),d="rotate(".concat(i.rotate," 0 0)"),g={transform:"".concat(s," ").concat(f," ").concat(d)},v={transform:"translate(".concat(o/2*-1," -256)")},y={outer:l,inner:g,path:v};return{tag:"g",attributes:Nt({},y.outer),children:[{tag:"g",attributes:Nt({},y.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Nt(Nt({},n.icon.attributes),y.path)}]}]}}}},Ib={x:0,y:0,width:"100%",height:"100%"};function rC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function D7(e){return e.tag==="g"?e.children:[e]}var $7={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),a=i?Ig(i.split(" ").map(function(o){return o.trim()})):$S();return a.prefix||(a.prefix=cu()),r.mask=a,r.maskId=n.getAttribute("data-fa-mask-id"),r}}},provides:function(t){t.generateAbstractMask=function(r){var n=r.children,i=r.attributes,a=r.main,o=r.mask,l=r.maskId,s=r.transform,f=a.width,d=a.icon,g=o.width,v=o.icon,y=Lz({transform:s,containerWidth:g,iconWidth:f}),E={tag:"rect",attributes:Nt(Nt({},Ib),{},{fill:"white"})},k=d.children?{children:d.children.map(rC)}:{},x={tag:"g",attributes:Nt({},y.inner),children:[rC(Nt({tag:d.tag,attributes:Nt(Nt({},d.attributes),y.path)},k))]},w={tag:"g",attributes:Nt({},y.outer),children:[x]},_="mask-".concat(l||Rd()),C="clip-".concat(l||Rd()),T={tag:"mask",attributes:Nt(Nt({},Ib),{},{id:_,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[E,w]},F={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:D7(v)},T]};return n.push(F,{tag:"rect",attributes:Nt({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(_,")")},Ib)}),{children:n,attributes:i}}}},B7={provides:function(t){var r=!1;fu.matchMedia&&(r=fu.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var n=[],i={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:Nt(Nt({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=Nt(Nt({},a),{},{attributeName:"opacity"}),l={tag:"circle",attributes:Nt(Nt({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||l.children.push({tag:"animate",attributes:Nt(Nt({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Nt(Nt({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(l),n.push({tag:"path",attributes:Nt(Nt({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:r?[]:[{tag:"animate",attributes:Nt(Nt({},o),{},{values:"1;0;0;0;0;1;"})}]}),r||n.push({tag:"path",attributes:Nt(Nt({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Nt(Nt({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},z7={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-symbol"),a=i===null?!1:i===""?!0:i;return r.symbol=a,r}}}},U7=[Bz,T7,C7,O7,k7,F7,N7,L7,$7,B7,z7];e7(U7,{mixoutsTo:yi});yi.noAuto;yi.config;yi.library;yi.dom;var m_=yi.parse;yi.findIconDefinition;yi.toHtml;var j7=yi.icon;yi.layer;yi.text;yi.counter;function nC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nC(Object(r),!0).forEach(function(n){Js(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fm(e){return Fm=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},Fm(e)}function Js(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function G7(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function W7(e,t){if(e==null)return{};var r=G7(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function g_(e){return H7(e)||q7(e)||V7(e)||Y7()}function H7(e){if(Array.isArray(e))return y_(e)}function q7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function V7(e,t){if(e){if(typeof e=="string")return y_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return y_(e,t)}}function y_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Y7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
827
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X7(e){var t,r=e.beat,n=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,l=e.flash,s=e.spin,f=e.spinPulse,d=e.spinReverse,g=e.pulse,v=e.fixedWidth,y=e.inverse,E=e.border,k=e.listItem,x=e.flip,w=e.size,_=e.rotation,C=e.pull,T=(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":l,"fa-spin":s,"fa-spin-reverse":d,"fa-spin-pulse":f,"fa-pulse":g,"fa-fw":v,"fa-inverse":y,"fa-border":E,"fa-li":k,"fa-flip":x===!0,"fa-flip-horizontal":x==="horizontal"||x==="both","fa-flip-vertical":x==="vertical"||x==="both"},Js(t,"fa-".concat(w),typeof w<"u"&&w!==null),Js(t,"fa-rotate-".concat(_),typeof _<"u"&&_!==null&&_!==0),Js(t,"fa-pull-".concat(C),typeof C<"u"&&C!==null),Js(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(T).map(function(F){return T[F]?F:null}).filter(function(F){return F})}function K7(e){return e=e-0,e===e}function oI(e){return K7(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var Q7=["style"];function Z7(e){return e.charAt(0).toUpperCase()+e.slice(1)}function J7(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),i=oI(r.slice(0,n)),a=r.slice(n+1).trim();return i.startsWith("webkit")?t[Z7(i)]=a:t[i]=a,t},{})}function uI(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var n=(t.children||[]).map(function(s){return uI(e,s)}),i=Object.keys(t.attributes||{}).reduce(function(s,f){var d=t.attributes[f];switch(f){case"class":s.attrs.className=d,delete t.attributes.class;break;case"style":s.attrs.style=J7(d);break;default:f.indexOf("aria-")===0||f.indexOf("data-")===0?s.attrs[f.toLowerCase()]=d:s.attrs[oI(f)]=d}return s},{attrs:{}}),a=r.style,o=a===void 0?{}:a,l=W7(r,Q7);return i.attrs.style=qo(qo({},i.attrs.style),o),e.apply(void 0,[t.tag,qo(qo({},i.attrs),l)].concat(g_(n)))}var lI=!1;try{lI=!0}catch{}function e9(){if(!lI&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function iC(e){if(e&&Fm(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(m_.icon)return m_.icon(e);if(e===null)return null;if(e&&Fm(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Fb(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Js({},e,t):{}}var Ng=wr.forwardRef(function(e,t){var r=e.icon,n=e.mask,i=e.symbol,a=e.className,o=e.title,l=e.titleId,s=e.maskId,f=iC(r),d=Fb("classes",[].concat(g_(X7(e)),g_(a.split(" ")))),g=Fb("transform",typeof e.transform=="string"?m_.transform(e.transform):e.transform),v=Fb("mask",iC(n)),y=j7(f,qo(qo(qo(qo({},d),g),v),{},{symbol:i,title:o,titleId:l,maskId:s}));if(!y)return e9("Could not find icon",f),null;var E=y.abstract,k={ref:t};return Object.keys(e).forEach(function(x){Ng.defaultProps.hasOwnProperty(x)||(k[x]=e[x])}),t9(E[0],k)});Ng.displayName="FontAwesomeIcon";Ng.propTypes={beat:dr.bool,border:dr.bool,beatFade:dr.bool,bounce:dr.bool,className:dr.string,fade:dr.bool,flash:dr.bool,mask:dr.oneOfType([dr.object,dr.array,dr.string]),maskId:dr.string,fixedWidth:dr.bool,inverse:dr.bool,flip:dr.oneOf([!0,!1,"horizontal","vertical","both"]),icon:dr.oneOfType([dr.object,dr.array,dr.string]),listItem:dr.bool,pull:dr.oneOf(["right","left"]),pulse:dr.bool,rotation:dr.oneOf([0,90,180,270]),shake:dr.bool,size:dr.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:dr.bool,spinPulse:dr.bool,spinReverse:dr.bool,symbol:dr.oneOfType([dr.bool,dr.string]),title:dr.string,titleId:dr.string,transform:dr.oneOfType([dr.string,dr.object]),swapOpacity:dr.bool};Ng.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var t9=uI.bind(null,wr.createElement),sI={exports:{}},X0=1;function r9(){return X0=(X0*9301+49297)%233280,X0/233280}function n9(e){X0=e}var i9={nextValue:r9,seed:n9},b_=i9,il="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",Vo,aC,jh;function x_(){jh=!1}function fI(e){if(!e){Vo!==il&&(Vo=il,x_());return}if(e!==Vo){if(e.length!==il.length)throw new Error("Custom alphabet for shortid must be "+il.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter(function(r,n,i){return n!==i.lastIndexOf(r)});if(t.length)throw new Error("Custom alphabet for shortid must be "+il.length+" unique characters. These characters were not unique: "+t.join(", "));Vo=e,x_()}}function a9(e){return fI(e),Vo}function o9(e){b_.seed(e),aC!==e&&(x_(),aC=e)}function u9(){Vo||fI(il);for(var e=Vo.split(""),t=[],r=b_.nextValue(),n;e.length>0;)r=b_.nextValue(),n=Math.floor(r*e.length),t.push(e.splice(n,1)[0]);return t.join("")}function cI(){return jh||(jh=u9(),jh)}function l9(e){var t=cI();return t[e]}function s9(){return Vo||il}var jS={get:s9,characters:a9,seed:o9,lookup:l9,shuffled:cI},Nb=typeof window=="object"&&(window.crypto||window.msCrypto),w_;!Nb||!Nb.getRandomValues?w_=function(e){for(var t=[],r=0;r<e;r++)t.push(Math.floor(Math.random()*256));return t}:w_=function(e){return Nb.getRandomValues(new Uint8Array(e))};var f9=w_,c9=function(e,t,r){for(var n=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*n*r/t.length),a="";;)for(var o=e(i),l=i;l--;)if(a+=t[o[l]&n]||"",a.length===+r)return a},h9=jS,d9=f9,p9=c9;function v9(e){for(var t=0,r,n="";!r;)n=n+p9(d9,h9.get(),1),r=e<Math.pow(16,t+1),t++;return n}var m9=v9,s0=m9,g9=1567752802062,y9=7,f0,oC;function b9(e){var t="",r=Math.floor((Date.now()-g9)*.001);return r===oC?f0++:(f0=0,oC=r),t=t+s0(y9),t=t+s0(e),f0>0&&(t=t+s0(f0)),t=t+s0(r),t}var x9=b9,w9=jS;function _9(e){if(!e||typeof e!="string"||e.length<6)return!1;var t=new RegExp("[^"+w9.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!t.test(e)}var S9=_9;(function(e){var t=jS,r=x9,n=S9,i=0;function a(f){return t.seed(f),e.exports}function o(f){return i=f,e.exports}function l(f){return f!==void 0&&t.characters(f),t.shuffled()}function s(){return r(i)}e.exports=s,e.exports.generate=s,e.exports.seed=a,e.exports.worker=o,e.exports.characters=l,e.exports.isValid=n})(sI);var E9=sI.exports,A9=E9;const Jie=mi(A9);function Pd(e){return Pd=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},Pd(e)}function T9(e,t){if(Pd(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pd(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function C9(e){var t=T9(e,"string");return Pd(t)==="symbol"?t:String(t)}function O9(e,t,r){return t=C9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lC(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uC(Object(r),!0).forEach(function(n){O9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uC(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function On(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var sC=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Lb=function(){return Math.random().toString(36).substring(7).split("").join(".")},Id={INIT:"@@redux/INIT"+Lb(),REPLACE:"@@redux/REPLACE"+Lb(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Lb()}};function k9(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function GS(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(On(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(On(1));return r(GS)(e,t)}if(typeof e!="function")throw new Error(On(2));var i=e,a=t,o=[],l=o,s=!1;function f(){l===o&&(l=o.slice())}function d(){if(s)throw new Error(On(3));return a}function g(k){if(typeof k!="function")throw new Error(On(4));if(s)throw new Error(On(5));var x=!0;return f(),l.push(k),function(){if(x){if(s)throw new Error(On(6));x=!1,f();var _=l.indexOf(k);l.splice(_,1),o=null}}}function v(k){if(!k9(k))throw new Error(On(7));if(typeof k.type>"u")throw new Error(On(8));if(s)throw new Error(On(9));try{s=!0,a=i(a,k)}finally{s=!1}for(var x=o=l,w=0;w<x.length;w++){var _=x[w];_()}return k}function y(k){if(typeof k!="function")throw new Error(On(10));i=k,v({type:Id.REPLACE})}function E(){var k,x=g;return k={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(On(11));function C(){_.next&&_.next(d())}C();var T=x(C);return{unsubscribe:T}}},k[sC]=function(){return this},k}return v({type:Id.INIT}),n={dispatch:v,subscribe:g,getState:d,replaceReducer:y},n[sC]=E,n}var M9=GS;function R9(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Id.INIT});if(typeof n>"u")throw new Error(On(12));if(typeof r(void 0,{type:Id.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(On(13))})}function P9(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),o;try{R9(r)}catch(l){o=l}return function(s,f){if(s===void 0&&(s={}),o)throw o;for(var d=!1,g={},v=0;v<a.length;v++){var y=a[v],E=r[y],k=s[y],x=E(k,f);if(typeof x>"u")throw f&&f.type,new Error(On(14));g[y]=x,d=d||x!==k}return d=d||a.length!==Object.keys(s).length,d?g:s}}function fC(e,t){return function(){return t(e.apply(this,arguments))}}function I9(e,t){if(typeof e=="function")return fC(e,t);if(typeof e!="object"||e===null)throw new Error(On(16));var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=fC(i,t))}return r}function hI(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function F9(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(On(15))},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(s){return s(o)});return a=hI.apply(void 0,l)(i.dispatch),lC(lC({},i),{},{dispatch:a})}}}const eae=Object.freeze(Object.defineProperty({__proto__:null,__DO_NOT_USE__ActionTypes:Id,applyMiddleware:F9,bindActionCreators:I9,combineReducers:P9,compose:hI,createStore:GS,legacy_createStore:M9},Symbol.toStringTag,{value:"Module"}));var Sa=wr.createContext(null);function N9(e){e()}var dI=N9,L9=function(t){return dI=t},D9=function(){return dI};function $9(){var e=D9(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e(function(){for(var i=t;i;)i.callback(),i=i.next})},get:function(){for(var i=[],a=t;a;)i.push(a),a=a.next;return i},subscribe:function(i){var a=!0,o=r={callback:i,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!a||t===null||(a=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var cC={notify:function(){},get:function(){return[]}};function WS(e,t){var r,n=cC;function i(g){return s(),n.subscribe(g)}function a(){n.notify()}function o(){d.onStateChange&&d.onStateChange()}function l(){return!!r}function s(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=$9())}function f(){r&&(r(),r=void 0,n.clear(),n=cC)}var d={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:l,trySubscribe:s,tryUnsubscribe:f,getListeners:function(){return n}};return d}var Nm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?zt.useLayoutEffect:zt.useEffect;function B9(e){var t=e.store,r=e.context,n=e.children,i=zt.useMemo(function(){var l=WS(t);return l.onStateChange=l.notifyNestedSubs,{store:t,subscription:l}},[t]),a=zt.useMemo(function(){return t.getState()},[t]);Nm(function(){var l=i.subscription;return l.trySubscribe(),a!==t.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[i,a]);var o=r||Sa;return wr.createElement(o.Provider,{value:i},n)}var pI={exports:{}},Er={};/** @license React v16.13.1
824
+ }`;function GP(){var e=LP,t=DP,r=Ut.cssPrefix,n=Ut.replacementClass,i=Lz;if(r!==e||n!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(r,"-")).replace(o,"--".concat(r,"-")).replace(l,".".concat(n))}return i}var $C=!1;function Mb(){Ut.autoAddCss&&!$C&&(Rz(GP()),$C=!0)}var Dz={mixout:function(){return{dom:{css:GP,insertCss:Mb}}},hooks:function(){return{beforeDOMElementCreation:function(){Mb()},beforeI2svg:function(){Mb()}}}},ro=fu||{};ro[to]||(ro[to]={});ro[to].styles||(ro[to].styles={});ro[to].hooks||(ro[to].hooks={});ro[to].shims||(ro[to].shims=[]);var Qi=ro[to],WP=[],$z=function e(){$r.removeEventListener("DOMContentLoaded",e),Rm=1,WP.map(function(t){return t()})},Rm=!1;so&&(Rm=($r.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test($r.readyState),Rm||$r.addEventListener("DOMContentLoaded",$z));function Bz(e){so&&(Rm?setTimeout(e,0):WP.push(e))}function np(e){var t=e.tag,r=e.attributes,n=r===void 0?{}:r,i=e.children,a=i===void 0?[]:i;return typeof e=="string"?jP(e):"<".concat(t," ").concat(Iz(n),">").concat(a.map(np).join(""),"</").concat(t,">")}function BC(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var zz=function(t,r){return function(n,i,a,o){return t.call(r,n,i,a,o)}},kb=function(t,r,n,i){var a=Object.keys(t),o=a.length,l=i!==void 0?zz(r,i):r,s,f,d;for(n===void 0?(s=1,d=t[a[0]]):(s=0,d=n);s<o;s++)f=a[s],d=l(d,t[f],f,t);return d};function Uz(e){for(var t=[],r=0,n=e.length;r<n;){var i=e.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var a=e.charCodeAt(r++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),r--)}else t.push(i)}return t}function u_(e){var t=Uz(e);return t.length===1?t[0].toString(16):null}function jz(e,t){var r=e.length,n=e.charCodeAt(t),i;return n>=55296&&n<=56319&&r>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(n-55296)*1024+i-56320+65536:n}function zC(e){return Object.keys(e).reduce(function(t,r){var n=e[r],i=!!n.icon;return i?t[n.iconName]=n.icon:t[r]=n,t},{})}function l_(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,i=n===void 0?!1:n,a=zC(t);typeof Qi.hooks.addPack=="function"&&!i?Qi.hooks.addPack(e,zC(t)):Qi.styles[e]=Nt(Nt({},Qi.styles[e]||{}),a),e==="fas"&&l_("fa",t)}var a0,o0,u0,Qs=Qi.styles,Gz=Qi.shims,Wz=(a0={},dn(a0,Lr,Object.values(Od[Lr])),dn(a0,qr,Object.values(Od[qr])),a0),NS=null,HP={},qP={},VP={},YP={},XP={},Hz=(o0={},dn(o0,Lr,Object.keys(Cd[Lr])),dn(o0,qr,Object.keys(Cd[qr])),o0);function qz(e){return~Cz.indexOf(e)}function Vz(e,t){var r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!qz(i)?i:null}var KP=function(){var t=function(a){return kb(Qs,function(o,l,s){return o[s]=kb(l,a,{}),o},{})};HP=t(function(i,a,o){if(a[3]&&(i[a[3]]=o),a[2]){var l=a[2].filter(function(s){return typeof s=="number"});l.forEach(function(s){i[s.toString(16)]=o})}return i}),qP=t(function(i,a,o){if(i[o]=o,a[2]){var l=a[2].filter(function(s){return typeof s=="string"});l.forEach(function(s){i[s]=o})}return i}),XP=t(function(i,a,o){var l=a[2];return i[o]=o,l.forEach(function(s){i[s]=o}),i});var r="far"in Qs||Ut.autoFetchSvg,n=kb(Gz,function(i,a){var o=a[0],l=a[1],s=a[2];return l==="far"&&!r&&(l="fas"),typeof o=="string"&&(i.names[o]={prefix:l,iconName:s}),typeof o=="number"&&(i.unicodes[o.toString(16)]={prefix:l,iconName:s}),i},{names:{},unicodes:{}});VP=n.names,YP=n.unicodes,NS=Rg(Ut.styleDefault,{family:Ut.familyDefault})};kz(function(e){NS=Rg(e.styleDefault,{family:Ut.familyDefault})});KP();function LS(e,t){return(HP[e]||{})[t]}function Yz(e,t){return(qP[e]||{})[t]}function hl(e,t){return(XP[e]||{})[t]}function QP(e){return VP[e]||{prefix:null,iconName:null}}function Xz(e){var t=YP[e],r=LS("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function cu(){return NS}var DS=function(){return{prefix:null,iconName:null,rest:[]}};function Rg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.family,n=r===void 0?Lr:r,i=Cd[n][e],a=Td[n][e]||Td[n][i],o=e in Qi.styles?e:null;return a||o||null}var UC=(u0={},dn(u0,Lr,Object.keys(Od[Lr])),dn(u0,qr,Object.keys(Od[qr])),u0);function Pg(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.skipLookups,i=n===void 0?!1:n,a=(t={},dn(t,Lr,"".concat(Ut.cssPrefix,"-").concat(Lr)),dn(t,qr,"".concat(Ut.cssPrefix,"-").concat(qr)),t),o=null,l=Lr;(e.includes(a[Lr])||e.some(function(f){return UC[Lr].includes(f)}))&&(l=Lr),(e.includes(a[qr])||e.some(function(f){return UC[qr].includes(f)}))&&(l=qr);var s=e.reduce(function(f,d){var g=Vz(Ut.cssPrefix,d);if(Qs[d]?(d=Wz[l].includes(d)?xz[l][d]:d,o=d,f.prefix=d):Hz[l].indexOf(d)>-1?(o=d,f.prefix=Rg(d,{family:l})):g?f.iconName=g:d!==Ut.replacementClass&&d!==a[Lr]&&d!==a[qr]&&f.rest.push(d),!i&&f.prefix&&f.iconName){var v=o==="fa"?QP(f.iconName):{},y=hl(f.prefix,f.iconName);v.prefix&&(o=null),f.iconName=v.iconName||y||f.iconName,f.prefix=v.prefix||f.prefix,f.prefix==="far"&&!Qs.far&&Qs.fas&&!Ut.autoFetchSvg&&(f.prefix="fas")}return f},DS());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&l===qr&&(Qs.fass||Ut.autoFetchSvg)&&(s.prefix="fass",s.iconName=hl(s.prefix,s.iconName)||s.iconName),(s.prefix==="fa"||o==="fa")&&(s.prefix=cu()||"fas"),s}var Kz=function(){function e(){lz(this,e),this.definitions={}}return sz(e,[{key:"add",value:function(){for(var r=this,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(l){r.definitions[l]=Nt(Nt({},r.definitions[l]||{}),o[l]),l_(l,o[l]);var s=Od[Lr][l];s&&l_(s,o[l]),KP()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(r,n){var i=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(i).map(function(a){var o=i[a],l=o.prefix,s=o.iconName,f=o.icon,d=f[2];r[l]||(r[l]={}),d.length>0&&d.forEach(function(g){typeof g=="string"&&(r[l][g]=f)}),r[l][s]=f}),r}}]),e}(),jC=[],Zs={},df={},Qz=Object.keys(df);function Zz(e,t){var r=t.mixoutsTo;return jC=e,Zs={},Object.keys(df).forEach(function(n){Qz.indexOf(n)===-1&&delete df[n]}),jC.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(r[o]=i[o]),km(i[o])==="object"&&Object.keys(i[o]).forEach(function(l){r[o]||(r[o]={}),r[o][l]=i[o][l]})}),n.hooks){var a=n.hooks();Object.keys(a).forEach(function(o){Zs[o]||(Zs[o]=[]),Zs[o].push(a[o])})}n.provides&&n.provides(df)}),r}function s_(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];var a=Zs[e]||[];return a.forEach(function(o){t=o.apply(null,[t].concat(n))}),t}function Sl(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=Zs[e]||[];i.forEach(function(a){a.apply(null,r)})}function no(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return df[e]?df[e].apply(null,t):void 0}function f_(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,r=e.prefix||cu();if(t)return t=hl(r,t)||t,BC(ZP.definitions,r,t)||BC(Qi.styles,r,t)}var ZP=new Kz,Jz=function(){Ut.autoReplaceSvg=!1,Ut.observeMutations=!1,Sl("noAuto")},e7={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return so?(Sl("beforeI2svg",t),no("pseudoElements2svg",t),no("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot;Ut.autoReplaceSvg===!1&&(Ut.autoReplaceSvg=!0),Ut.observeMutations=!0,Bz(function(){r7({autoReplaceSvgRoot:r}),Sl("watch",t)})}},t7={icon:function(t){if(t===null)return null;if(km(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:hl(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var r=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],n=Rg(t[0]);return{prefix:n,iconName:hl(n,r)||r}}if(typeof t=="string"&&(t.indexOf("".concat(Ut.cssPrefix,"-"))>-1||t.match(wz))){var i=Pg(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||cu(),iconName:hl(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var a=cu();return{prefix:a,iconName:hl(a,t)||t}}}},yi={noAuto:Jz,config:Ut,dom:e7,parse:t7,library:ZP,findIconDefinition:f_,toHtml:np},r7=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot,n=r===void 0?$r:r;(Object.keys(Qi.styles).length>0||Ut.autoFetchSvg)&&so&&Ut.autoReplaceSvg&&yi.dom.i2svg({node:n})};function Ig(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return np(n)})}}),Object.defineProperty(e,"node",{get:function(){if(so){var n=$r.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function n7(e){var t=e.children,r=e.main,n=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(FS(o)&&r.found&&!n.found){var l=r.width,s=r.height,f={x:l/s/2,y:.5};i.style=kg(Nt(Nt({},a),{},{"transform-origin":"".concat(f.x+o.x/16,"em ").concat(f.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function i7(e){var t=e.prefix,r=e.iconName,n=e.children,i=e.attributes,a=e.symbol,o=a===!0?"".concat(t,"-").concat(Ut.cssPrefix,"-").concat(r):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Nt(Nt({},i),{},{id:o}),children:n}]}]}function $S(e){var t=e.icons,r=t.main,n=t.mask,i=e.prefix,a=e.iconName,o=e.transform,l=e.symbol,s=e.title,f=e.maskId,d=e.titleId,g=e.extra,v=e.watchable,y=v===void 0?!1:v,E=n.found?n:r,M=E.width,x=E.height,w=i==="fak",_=[Ut.replacementClass,a?"".concat(Ut.cssPrefix,"-").concat(a):""].filter(function(te){return g.classes.indexOf(te)===-1}).filter(function(te){return te!==""||!!te}).concat(g.classes).join(" "),T={children:[],attributes:Nt(Nt({},g.attributes),{},{"data-prefix":i,"data-icon":a,class:_,role:g.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(M," ").concat(x)})},C=w&&!~g.classes.indexOf("fa-fw")?{width:"".concat(M/x*16*.0625,"em")}:{};y&&(T.attributes[_l]=""),s&&(T.children.push({tag:"title",attributes:{id:T.attributes["aria-labelledby"]||"title-".concat(d||kd())},children:[s]}),delete T.attributes.title);var F=Nt(Nt({},T),{},{prefix:i,iconName:a,main:r,mask:n,maskId:f,transform:o,symbol:l,styles:Nt(Nt({},C),g.styles)}),L=n.found&&r.found?no("generateAbstractMask",F)||{children:[],attributes:{}}:no("generateAbstractIcon",F)||{children:[],attributes:{}},V=L.children,j=L.attributes;return F.children=V,F.attributes=j,l?i7(F):n7(F)}function GC(e){var t=e.content,r=e.width,n=e.height,i=e.transform,a=e.title,o=e.extra,l=e.watchable,s=l===void 0?!1:l,f=Nt(Nt(Nt({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});s&&(f[_l]="");var d=Nt({},o.styles);FS(i)&&(d.transform=Nz({transform:i,startCentered:!0,width:r,height:n}),d["-webkit-transform"]=d.transform);var g=kg(d);g.length>0&&(f.style=g);var v=[];return v.push({tag:"span",attributes:f,children:[t]}),a&&v.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),v}function a7(e){var t=e.content,r=e.title,n=e.extra,i=Nt(Nt(Nt({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),a=kg(n.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),r&&o.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),o}var Rb=Qi.styles;function c_(e){var t=e[0],r=e[1],n=e.slice(4),i=OS(n,1),a=i[0],o=null;return Array.isArray(a)?o={tag:"g",attributes:{class:"".concat(Ut.cssPrefix,"-").concat(cl.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ut.cssPrefix,"-").concat(cl.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(Ut.cssPrefix,"-").concat(cl.PRIMARY),fill:"currentColor",d:a[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:r,icon:o}}var o7={found:!1,width:512,height:512};function u7(e,t){!$P&&!Ut.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function h_(e,t){var r=t;return t==="fa"&&Ut.styleDefault!==null&&(t=cu()),new Promise(function(n,i){if(no("missingIconAbstract"),r==="fa"){var a=QP(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&Rb[t]&&Rb[t][e]){var o=Rb[t][e];return n(c_(o))}u7(e,t),n(Nt(Nt({},o7),{},{icon:Ut.showMissingIcons&&e?no("missingIconAbstract")||{}:{}}))})}var WC=function(){},d_=Ut.measurePerformance&&Jv&&Jv.mark&&Jv.measure?Jv:{mark:WC,measure:WC},zh='FA "6.2.1"',l7=function(t){return d_.mark("".concat(zh," ").concat(t," begins")),function(){return JP(t)}},JP=function(t){d_.mark("".concat(zh," ").concat(t," ends")),d_.measure("".concat(zh," ").concat(t),"".concat(zh," ").concat(t," begins"),"".concat(zh," ").concat(t," ends"))},BS={begin:l7,end:JP},q0=function(){};function HC(e){var t=e.getAttribute?e.getAttribute(_l):null;return typeof t=="string"}function s7(e){var t=e.getAttribute?e.getAttribute(kS):null,r=e.getAttribute?e.getAttribute(RS):null;return t&&r}function f7(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Ut.replacementClass)}function c7(){if(Ut.autoReplaceSvg===!0)return V0.replace;var e=V0[Ut.autoReplaceSvg];return e||V0.replace}function h7(e){return $r.createElementNS("http://www.w3.org/2000/svg",e)}function d7(e){return $r.createElement(e)}function eI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.ceFn,n=r===void 0?e.tag==="svg"?h7:d7:r;if(typeof e=="string")return $r.createTextNode(e);var i=n(e.tag);Object.keys(e.attributes||[]).forEach(function(o){i.setAttribute(o,e.attributes[o])});var a=e.children||[];return a.forEach(function(o){i.appendChild(eI(o,{ceFn:n}))}),i}function p7(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var V0={replace:function(t){var r=t[0];if(r.parentNode)if(t[1].forEach(function(i){r.parentNode.insertBefore(eI(i),r)}),r.getAttribute(_l)===null&&Ut.keepOriginalSource){var n=$r.createComment(p7(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(t){var r=t[0],n=t[1];if(~IS(r).indexOf(Ut.replacementClass))return V0.replace(t);var i=new RegExp("".concat(Ut.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce(function(l,s){return s===Ut.replacementClass||s.match(i)?l.toSvg.push(s):l.toNode.push(s),l},{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?r.removeAttribute("class"):r.setAttribute("class",a.toNode.join(" "))}var o=n.map(function(l){return np(l)}).join(`
825
+ `);r.setAttribute(_l,""),r.innerHTML=o}};function qC(e){e()}function tI(e,t){var r=typeof t=="function"?t:q0;if(e.length===0)r();else{var n=qC;Ut.mutateApproach===yz&&(n=fu.requestAnimationFrame||qC),n(function(){var i=c7(),a=BS.begin("mutate");e.map(i),a(),r()})}}var zS=!1;function rI(){zS=!0}function p_(){zS=!1}var Pm=null;function VC(e){if(LC&&Ut.observeMutations){var t=e.treeCallback,r=t===void 0?q0:t,n=e.nodeCallback,i=n===void 0?q0:n,a=e.pseudoElementsCallback,o=a===void 0?q0:a,l=e.observeMutationsRoot,s=l===void 0?$r:l;Pm=new LC(function(f){if(!zS){var d=cu();qf(f).forEach(function(g){if(g.type==="childList"&&g.addedNodes.length>0&&!HC(g.addedNodes[0])&&(Ut.searchPseudoElements&&o(g.target),r(g.target)),g.type==="attributes"&&g.target.parentNode&&Ut.searchPseudoElements&&o(g.target.parentNode),g.type==="attributes"&&HC(g.target)&&~Az.indexOf(g.attributeName))if(g.attributeName==="class"&&s7(g.target)){var v=Pg(IS(g.target)),y=v.prefix,E=v.iconName;g.target.setAttribute(kS,y||d),E&&g.target.setAttribute(RS,E)}else f7(g.target)&&i(g.target)})}}),so&&Pm.observe(s,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function v7(){Pm&&Pm.disconnect()}function m7(e){var t=e.getAttribute("style"),r=[];return t&&(r=t.split(";").reduce(function(n,i){var a=i.split(":"),o=a[0],l=a.slice(1);return o&&l.length>0&&(n[o]=l.join(":").trim()),n},{})),r}function g7(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=Pg(IS(e));return i.prefix||(i.prefix=cu()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=Yz(i.prefix,e.innerText)||LS(i.prefix,u_(e.innerText))),!i.iconName&&Ut.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function y7(e){var t=qf(e.attributes).reduce(function(i,a){return i.name!=="class"&&i.name!=="style"&&(i[a.name]=a.value),i},{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return Ut.autoA11y&&(r?t["aria-labelledby"]="".concat(Ut.replacementClass,"-title-").concat(n||kd()):(t["aria-hidden"]="true",t.focusable="false")),t}function b7(){return{iconName:null,title:null,titleId:null,prefix:null,transform:ya,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function YC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=g7(e),n=r.iconName,i=r.prefix,a=r.rest,o=y7(e),l=s_("parseNodeAttributes",{},e),s=t.styleParser?m7(e):[];return Nt({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:ya,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:s,attributes:o}},l)}var x7=Qi.styles;function nI(e){var t=Ut.autoReplaceSvg==="nest"?YC(e,{styleParser:!1}):YC(e);return~t.extra.classes.indexOf(BP)?no("generateLayersText",e,t):no("generateSvgReplacementMutation",e,t)}var hu=new Set;PS.map(function(e){hu.add("fa-".concat(e))});Object.keys(Cd[Lr]).map(hu.add.bind(hu));Object.keys(Cd[qr]).map(hu.add.bind(hu));hu=tp(hu);function XC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!so)return Promise.resolve();var r=$r.documentElement.classList,n=function(g){return r.add("".concat(DC,"-").concat(g))},i=function(g){return r.remove("".concat(DC,"-").concat(g))},a=Ut.autoFetchSvg?hu:PS.map(function(d){return"fa-".concat(d)}).concat(Object.keys(x7));a.includes("fa")||a.push("fa");var o=[".".concat(BP,":not([").concat(_l,"])")].concat(a.map(function(d){return".".concat(d,":not([").concat(_l,"])")})).join(", ");if(o.length===0)return Promise.resolve();var l=[];try{l=qf(e.querySelectorAll(o))}catch{}if(l.length>0)n("pending"),i("complete");else return Promise.resolve();var s=BS.begin("onTree"),f=l.reduce(function(d,g){try{var v=nI(g);v&&d.push(v)}catch(y){$P||y.name==="MissingIcon"&&console.error(y)}return d},[]);return new Promise(function(d,g){Promise.all(f).then(function(v){tI(v,function(){n("active"),n("complete"),i("pending"),typeof t=="function"&&t(),s(),d()})}).catch(function(v){s(),g(v)})})}function w7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;nI(e).then(function(r){r&&tI([r],t)})}function _7(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(t||{}).icon?t:f_(t||{}),i=r.mask;return i&&(i=(i||{}).icon?i:f_(i||{})),e(n,Nt(Nt({},r),{},{mask:i}))}}var S7=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,i=n===void 0?ya:n,a=r.symbol,o=a===void 0?!1:a,l=r.mask,s=l===void 0?null:l,f=r.maskId,d=f===void 0?null:f,g=r.title,v=g===void 0?null:g,y=r.titleId,E=y===void 0?null:y,M=r.classes,x=M===void 0?[]:M,w=r.attributes,_=w===void 0?{}:w,T=r.styles,C=T===void 0?{}:T;if(t){var F=t.prefix,L=t.iconName,V=t.icon;return Ig(Nt({type:"icon"},t),function(){return Sl("beforeDOMElementCreation",{iconDefinition:t,params:r}),Ut.autoA11y&&(v?_["aria-labelledby"]="".concat(Ut.replacementClass,"-title-").concat(E||kd()):(_["aria-hidden"]="true",_.focusable="false")),$S({icons:{main:c_(V),mask:s?c_(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:F,iconName:L,transform:Nt(Nt({},ya),i),symbol:o,title:v,maskId:d,titleId:E,extra:{attributes:_,styles:C,classes:x}})})}},E7={mixout:function(){return{icon:_7(S7)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=XC,r.nodeCallback=w7,r}}},provides:function(t){t.i2svg=function(r){var n=r.node,i=n===void 0?$r:n,a=r.callback,o=a===void 0?function(){}:a;return XC(i,o)},t.generateSvgReplacementMutation=function(r,n){var i=n.iconName,a=n.title,o=n.titleId,l=n.prefix,s=n.transform,f=n.symbol,d=n.mask,g=n.maskId,v=n.extra;return new Promise(function(y,E){Promise.all([h_(i,l),d.iconName?h_(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(M){var x=OS(M,2),w=x[0],_=x[1];y([r,$S({icons:{main:w,mask:_},prefix:l,iconName:i,transform:s,symbol:f,maskId:g,title:a,titleId:o,extra:v,watchable:!0})])}).catch(E)})},t.generateAbstractIcon=function(r){var n=r.children,i=r.attributes,a=r.main,o=r.transform,l=r.styles,s=kg(l);s.length>0&&(i.style=s);var f;return FS(o)&&(f=no("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),n.push(f||a.icon),{children:n,attributes:i}}}},A7={mixout:function(){return{layer:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.classes,a=i===void 0?[]:i;return Ig({type:"layer"},function(){Sl("beforeDOMElementCreation",{assembler:r,params:n});var o=[];return r(function(l){Array.isArray(l)?l.map(function(s){o=o.concat(s.abstract)}):o=o.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(Ut.cssPrefix,"-layers")].concat(tp(a)).join(" ")},children:o}]})}}}},C7={mixout:function(){return{counter:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.title,a=i===void 0?null:i,o=n.classes,l=o===void 0?[]:o,s=n.attributes,f=s===void 0?{}:s,d=n.styles,g=d===void 0?{}:d;return Ig({type:"counter",content:r},function(){return Sl("beforeDOMElementCreation",{content:r,params:n}),a7({content:r.toString(),title:a,extra:{attributes:f,styles:g,classes:["".concat(Ut.cssPrefix,"-layers-counter")].concat(tp(l))}})})}}}},T7={mixout:function(){return{text:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,a=i===void 0?ya:i,o=n.title,l=o===void 0?null:o,s=n.classes,f=s===void 0?[]:s,d=n.attributes,g=d===void 0?{}:d,v=n.styles,y=v===void 0?{}:v;return Ig({type:"text",content:r},function(){return Sl("beforeDOMElementCreation",{content:r,params:n}),GC({content:r,transform:Nt(Nt({},ya),a),title:l,extra:{attributes:g,styles:y,classes:["".concat(Ut.cssPrefix,"-layers-text")].concat(tp(f))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var i=n.title,a=n.transform,o=n.extra,l=null,s=null;if(NP){var f=parseInt(getComputedStyle(r).fontSize,10),d=r.getBoundingClientRect();l=d.width/f,s=d.height/f}return Ut.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([r,GC({content:r.innerHTML,width:l,height:s,transform:a,title:i,extra:o,watchable:!0})])}}},O7=new RegExp('"',"ug"),KC=[1105920,1112319];function M7(e){var t=e.replace(O7,""),r=jz(t,0),n=r>=KC[0]&&r<=KC[1],i=t.length===2?t[0]===t[1]:!1;return{value:u_(i?t[0]:t),isSecondary:n||i}}function QC(e,t){var r="".concat(gz).concat(t.replace(":","-"));return new Promise(function(n,i){if(e.getAttribute(r)!==null)return n();var a=qf(e.children),o=a.filter(function(V){return V.getAttribute(o_)===t})[0],l=fu.getComputedStyle(e,t),s=l.getPropertyValue("font-family").match(_z),f=l.getPropertyValue("font-weight"),d=l.getPropertyValue("content");if(o&&!s)return e.removeChild(o),n();if(s&&d!=="none"&&d!==""){var g=l.getPropertyValue("content"),v=~["Sharp"].indexOf(s[2])?qr:Lr,y=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?Td[v][s[2].toLowerCase()]:Sz[v][f],E=M7(g),M=E.value,x=E.isSecondary,w=s[0].startsWith("FontAwesome"),_=LS(y,M),T=_;if(w){var C=Xz(M);C.iconName&&C.prefix&&(_=C.iconName,y=C.prefix)}if(_&&!x&&(!o||o.getAttribute(kS)!==y||o.getAttribute(RS)!==T)){e.setAttribute(r,T),o&&e.removeChild(o);var F=b7(),L=F.extra;L.attributes[o_]=t,h_(_,y).then(function(V){var j=$S(Nt(Nt({},F),{},{icons:{main:V,mask:DS()},prefix:y,iconName:T,extra:L,watchable:!0})),te=$r.createElement("svg");t==="::before"?e.insertBefore(te,e.firstChild):e.appendChild(te),te.outerHTML=j.map(function(ge){return np(ge)}).join(`
826
+ `),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function k7(e){return Promise.all([QC(e,"::before"),QC(e,"::after")])}function R7(e){return e.parentNode!==document.head&&!~bz.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(o_)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function ZC(e){if(so)return new Promise(function(t,r){var n=qf(e.querySelectorAll("*")).filter(R7).map(k7),i=BS.begin("searchPseudoElements");rI(),Promise.all(n).then(function(){i(),p_(),t()}).catch(function(){i(),p_(),r()})})}var P7={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=ZC,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node,i=n===void 0?$r:n;Ut.searchPseudoElements&&ZC(i)}}},JC=!1,I7={mixout:function(){return{dom:{unwatch:function(){rI(),JC=!0}}}},hooks:function(){return{bootstrap:function(){VC(s_("mutationObserverCallbacks",{}))},noAuto:function(){v7()},watch:function(r){var n=r.observeMutationsRoot;JC?p_():VC(s_("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},eT=function(t){var r={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(n,i){var a=i.toLowerCase().split("-"),o=a[0],l=a.slice(1).join("-");if(o&&l==="h")return n.flipX=!0,n;if(o&&l==="v")return n.flipY=!0,n;if(l=parseFloat(l),isNaN(l))return n;switch(o){case"grow":n.size=n.size+l;break;case"shrink":n.size=n.size-l;break;case"left":n.x=n.x-l;break;case"right":n.x=n.x+l;break;case"up":n.y=n.y-l;break;case"down":n.y=n.y+l;break;case"rotate":n.rotate=n.rotate+l;break}return n},r)},F7={mixout:function(){return{parse:{transform:function(r){return eT(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=eT(i)),r}}},provides:function(t){t.generateAbstractTransformGrouping=function(r){var n=r.main,i=r.transform,a=r.containerWidth,o=r.iconWidth,l={transform:"translate(".concat(a/2," 256)")},s="translate(".concat(i.x*32,", ").concat(i.y*32,") "),f="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),d="rotate(".concat(i.rotate," 0 0)"),g={transform:"".concat(s," ").concat(f," ").concat(d)},v={transform:"translate(".concat(o/2*-1," -256)")},y={outer:l,inner:g,path:v};return{tag:"g",attributes:Nt({},y.outer),children:[{tag:"g",attributes:Nt({},y.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Nt(Nt({},n.icon.attributes),y.path)}]}]}}}},Pb={x:0,y:0,width:"100%",height:"100%"};function tT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function N7(e){return e.tag==="g"?e.children:[e]}var L7={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),a=i?Pg(i.split(" ").map(function(o){return o.trim()})):DS();return a.prefix||(a.prefix=cu()),r.mask=a,r.maskId=n.getAttribute("data-fa-mask-id"),r}}},provides:function(t){t.generateAbstractMask=function(r){var n=r.children,i=r.attributes,a=r.main,o=r.mask,l=r.maskId,s=r.transform,f=a.width,d=a.icon,g=o.width,v=o.icon,y=Fz({transform:s,containerWidth:g,iconWidth:f}),E={tag:"rect",attributes:Nt(Nt({},Pb),{},{fill:"white"})},M=d.children?{children:d.children.map(tT)}:{},x={tag:"g",attributes:Nt({},y.inner),children:[tT(Nt({tag:d.tag,attributes:Nt(Nt({},d.attributes),y.path)},M))]},w={tag:"g",attributes:Nt({},y.outer),children:[x]},_="mask-".concat(l||kd()),T="clip-".concat(l||kd()),C={tag:"mask",attributes:Nt(Nt({},Pb),{},{id:_,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[E,w]},F={tag:"defs",children:[{tag:"clipPath",attributes:{id:T},children:N7(v)},C]};return n.push(F,{tag:"rect",attributes:Nt({fill:"currentColor","clip-path":"url(#".concat(T,")"),mask:"url(#".concat(_,")")},Pb)}),{children:n,attributes:i}}}},D7={provides:function(t){var r=!1;fu.matchMedia&&(r=fu.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var n=[],i={fill:"currentColor"},a={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:Nt(Nt({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=Nt(Nt({},a),{},{attributeName:"opacity"}),l={tag:"circle",attributes:Nt(Nt({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||l.children.push({tag:"animate",attributes:Nt(Nt({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Nt(Nt({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(l),n.push({tag:"path",attributes:Nt(Nt({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:r?[]:[{tag:"animate",attributes:Nt(Nt({},o),{},{values:"1;0;0;0;0;1;"})}]}),r||n.push({tag:"path",attributes:Nt(Nt({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Nt(Nt({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},$7={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-symbol"),a=i===null?!1:i===""?!0:i;return r.symbol=a,r}}}},B7=[Dz,E7,A7,C7,T7,P7,I7,F7,L7,D7,$7];Zz(B7,{mixoutsTo:yi});yi.noAuto;yi.config;yi.library;yi.dom;var v_=yi.parse;yi.findIconDefinition;yi.toHtml;var z7=yi.icon;yi.layer;yi.text;yi.counter;function rT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rT(Object(r),!0).forEach(function(n){Js(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Im(e){return Im=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},Im(e)}function Js(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U7(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function j7(e,t){if(e==null)return{};var r=U7(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function m_(e){return G7(e)||W7(e)||H7(e)||q7()}function G7(e){if(Array.isArray(e))return g_(e)}function W7(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function H7(e,t){if(e){if(typeof e=="string")return g_(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g_(e,t)}}function g_(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function q7(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
827
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V7(e){var t,r=e.beat,n=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,l=e.flash,s=e.spin,f=e.spinPulse,d=e.spinReverse,g=e.pulse,v=e.fixedWidth,y=e.inverse,E=e.border,M=e.listItem,x=e.flip,w=e.size,_=e.rotation,T=e.pull,C=(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":l,"fa-spin":s,"fa-spin-reverse":d,"fa-spin-pulse":f,"fa-pulse":g,"fa-fw":v,"fa-inverse":y,"fa-border":E,"fa-li":M,"fa-flip":x===!0,"fa-flip-horizontal":x==="horizontal"||x==="both","fa-flip-vertical":x==="vertical"||x==="both"},Js(t,"fa-".concat(w),typeof w<"u"&&w!==null),Js(t,"fa-rotate-".concat(_),typeof _<"u"&&_!==null&&_!==0),Js(t,"fa-pull-".concat(T),typeof T<"u"&&T!==null),Js(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(C).map(function(F){return C[F]?F:null}).filter(function(F){return F})}function Y7(e){return e=e-0,e===e}function iI(e){return Y7(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var X7=["style"];function K7(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Q7(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),i=iI(r.slice(0,n)),a=r.slice(n+1).trim();return i.startsWith("webkit")?t[K7(i)]=a:t[i]=a,t},{})}function aI(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var n=(t.children||[]).map(function(s){return aI(e,s)}),i=Object.keys(t.attributes||{}).reduce(function(s,f){var d=t.attributes[f];switch(f){case"class":s.attrs.className=d,delete t.attributes.class;break;case"style":s.attrs.style=Q7(d);break;default:f.indexOf("aria-")===0||f.indexOf("data-")===0?s.attrs[f.toLowerCase()]=d:s.attrs[iI(f)]=d}return s},{attrs:{}}),a=r.style,o=a===void 0?{}:a,l=j7(r,X7);return i.attrs.style=qo(qo({},i.attrs.style),o),e.apply(void 0,[t.tag,qo(qo({},i.attrs),l)].concat(m_(n)))}var oI=!1;try{oI=!0}catch{}function Z7(){if(!oI&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function nT(e){if(e&&Im(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(v_.icon)return v_.icon(e);if(e===null)return null;if(e&&Im(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Ib(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Js({},e,t):{}}var Fg=wr.forwardRef(function(e,t){var r=e.icon,n=e.mask,i=e.symbol,a=e.className,o=e.title,l=e.titleId,s=e.maskId,f=nT(r),d=Ib("classes",[].concat(m_(V7(e)),m_(a.split(" ")))),g=Ib("transform",typeof e.transform=="string"?v_.transform(e.transform):e.transform),v=Ib("mask",nT(n)),y=z7(f,qo(qo(qo(qo({},d),g),v),{},{symbol:i,title:o,titleId:l,maskId:s}));if(!y)return Z7("Could not find icon",f),null;var E=y.abstract,M={ref:t};return Object.keys(e).forEach(function(x){Fg.defaultProps.hasOwnProperty(x)||(M[x]=e[x])}),J7(E[0],M)});Fg.displayName="FontAwesomeIcon";Fg.propTypes={beat:dr.bool,border:dr.bool,beatFade:dr.bool,bounce:dr.bool,className:dr.string,fade:dr.bool,flash:dr.bool,mask:dr.oneOfType([dr.object,dr.array,dr.string]),maskId:dr.string,fixedWidth:dr.bool,inverse:dr.bool,flip:dr.oneOf([!0,!1,"horizontal","vertical","both"]),icon:dr.oneOfType([dr.object,dr.array,dr.string]),listItem:dr.bool,pull:dr.oneOf(["right","left"]),pulse:dr.bool,rotation:dr.oneOf([0,90,180,270]),shake:dr.bool,size:dr.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:dr.bool,spinPulse:dr.bool,spinReverse:dr.bool,symbol:dr.oneOfType([dr.bool,dr.string]),title:dr.string,titleId:dr.string,transform:dr.oneOfType([dr.string,dr.object]),swapOpacity:dr.bool};Fg.defaultProps={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1};var J7=aI.bind(null,wr.createElement),uI={exports:{}},Y0=1;function e9(){return Y0=(Y0*9301+49297)%233280,Y0/233280}function t9(e){Y0=e}var r9={nextValue:e9,seed:t9},y_=r9,il="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",Vo,iT,Uh;function b_(){Uh=!1}function lI(e){if(!e){Vo!==il&&(Vo=il,b_());return}if(e!==Vo){if(e.length!==il.length)throw new Error("Custom alphabet for shortid must be "+il.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter(function(r,n,i){return n!==i.lastIndexOf(r)});if(t.length)throw new Error("Custom alphabet for shortid must be "+il.length+" unique characters. These characters were not unique: "+t.join(", "));Vo=e,b_()}}function n9(e){return lI(e),Vo}function i9(e){y_.seed(e),iT!==e&&(b_(),iT=e)}function a9(){Vo||lI(il);for(var e=Vo.split(""),t=[],r=y_.nextValue(),n;e.length>0;)r=y_.nextValue(),n=Math.floor(r*e.length),t.push(e.splice(n,1)[0]);return t.join("")}function sI(){return Uh||(Uh=a9(),Uh)}function o9(e){var t=sI();return t[e]}function u9(){return Vo||il}var US={get:u9,characters:n9,seed:i9,lookup:o9,shuffled:sI},Fb=typeof window=="object"&&(window.crypto||window.msCrypto),x_;!Fb||!Fb.getRandomValues?x_=function(e){for(var t=[],r=0;r<e;r++)t.push(Math.floor(Math.random()*256));return t}:x_=function(e){return Fb.getRandomValues(new Uint8Array(e))};var l9=x_,s9=function(e,t,r){for(var n=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*n*r/t.length),a="";;)for(var o=e(i),l=i;l--;)if(a+=t[o[l]&n]||"",a.length===+r)return a},f9=US,c9=l9,h9=s9;function d9(e){for(var t=0,r,n="";!r;)n=n+h9(c9,f9.get(),1),r=e<Math.pow(16,t+1),t++;return n}var p9=d9,l0=p9,v9=1567752802062,m9=7,s0,aT;function g9(e){var t="",r=Math.floor((Date.now()-v9)*.001);return r===aT?s0++:(s0=0,aT=r),t=t+l0(m9),t=t+l0(e),s0>0&&(t=t+l0(s0)),t=t+l0(r),t}var y9=g9,b9=US;function x9(e){if(!e||typeof e!="string"||e.length<6)return!1;var t=new RegExp("[^"+b9.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!t.test(e)}var w9=x9;(function(e){var t=US,r=y9,n=w9,i=0;function a(f){return t.seed(f),e.exports}function o(f){return i=f,e.exports}function l(f){return f!==void 0&&t.characters(f),t.shuffled()}function s(){return r(i)}e.exports=s,e.exports.generate=s,e.exports.seed=a,e.exports.worker=o,e.exports.characters=l,e.exports.isValid=n})(uI);var _9=uI.exports,S9=_9;const Kie=mi(S9);function Rd(e){return Rd=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},Rd(e)}function E9(e,t){if(Rd(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Rd(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A9(e){var t=E9(e,"string");return Rd(t)==="symbol"?t:String(t)}function C9(e,t,r){return t=A9(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function uT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oT(Object(r),!0).forEach(function(n){C9(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function On(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var lT=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Nb=function(){return Math.random().toString(36).substring(7).split("").join(".")},Pd={INIT:"@@redux/INIT"+Nb(),REPLACE:"@@redux/REPLACE"+Nb(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Nb()}};function T9(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function jS(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(On(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(On(1));return r(jS)(e,t)}if(typeof e!="function")throw new Error(On(2));var i=e,a=t,o=[],l=o,s=!1;function f(){l===o&&(l=o.slice())}function d(){if(s)throw new Error(On(3));return a}function g(M){if(typeof M!="function")throw new Error(On(4));if(s)throw new Error(On(5));var x=!0;return f(),l.push(M),function(){if(x){if(s)throw new Error(On(6));x=!1,f();var _=l.indexOf(M);l.splice(_,1),o=null}}}function v(M){if(!T9(M))throw new Error(On(7));if(typeof M.type>"u")throw new Error(On(8));if(s)throw new Error(On(9));try{s=!0,a=i(a,M)}finally{s=!1}for(var x=o=l,w=0;w<x.length;w++){var _=x[w];_()}return M}function y(M){if(typeof M!="function")throw new Error(On(10));i=M,v({type:Pd.REPLACE})}function E(){var M,x=g;return M={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(On(11));function T(){_.next&&_.next(d())}T();var C=x(T);return{unsubscribe:C}}},M[lT]=function(){return this},M}return v({type:Pd.INIT}),n={dispatch:v,subscribe:g,getState:d,replaceReducer:y},n[lT]=E,n}var O9=jS;function M9(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Pd.INIT});if(typeof n>"u")throw new Error(On(12));if(typeof r(void 0,{type:Pd.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(On(13))})}function k9(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var i=t[n];typeof e[i]=="function"&&(r[i]=e[i])}var a=Object.keys(r),o;try{M9(r)}catch(l){o=l}return function(s,f){if(s===void 0&&(s={}),o)throw o;for(var d=!1,g={},v=0;v<a.length;v++){var y=a[v],E=r[y],M=s[y],x=E(M,f);if(typeof x>"u")throw f&&f.type,new Error(On(14));g[y]=x,d=d||x!==M}return d=d||a.length!==Object.keys(s).length,d?g:s}}function sT(e,t){return function(){return t(e.apply(this,arguments))}}function R9(e,t){if(typeof e=="function")return sT(e,t);if(typeof e!="object"||e===null)throw new Error(On(16));var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=sT(i,t))}return r}function fI(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function P9(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(On(15))},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(s){return s(o)});return a=fI.apply(void 0,l)(i.dispatch),uT(uT({},i),{},{dispatch:a})}}}const Qie=Object.freeze(Object.defineProperty({__proto__:null,__DO_NOT_USE__ActionTypes:Pd,applyMiddleware:P9,bindActionCreators:R9,combineReducers:k9,compose:fI,createStore:jS,legacy_createStore:O9},Symbol.toStringTag,{value:"Module"}));var Sa=wr.createContext(null);function I9(e){e()}var cI=I9,F9=function(t){return cI=t},N9=function(){return cI};function L9(){var e=N9(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e(function(){for(var i=t;i;)i.callback(),i=i.next})},get:function(){for(var i=[],a=t;a;)i.push(a),a=a.next;return i},subscribe:function(i){var a=!0,o=r={callback:i,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!a||t===null||(a=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var fT={notify:function(){},get:function(){return[]}};function GS(e,t){var r,n=fT;function i(g){return s(),n.subscribe(g)}function a(){n.notify()}function o(){d.onStateChange&&d.onStateChange()}function l(){return!!r}function s(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=L9())}function f(){r&&(r(),r=void 0,n.clear(),n=fT)}var d={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:l,trySubscribe:s,tryUnsubscribe:f,getListeners:function(){return n}};return d}var Fm=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Gt.useLayoutEffect:Gt.useEffect;function D9(e){var t=e.store,r=e.context,n=e.children,i=Gt.useMemo(function(){var l=GS(t);return l.onStateChange=l.notifyNestedSubs,{store:t,subscription:l}},[t]),a=Gt.useMemo(function(){return t.getState()},[t]);Fm(function(){var l=i.subscription;return l.trySubscribe(),a!==t.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[i,a]);var o=r||Sa;return wr.createElement(o.Provider,{value:i},n)}var hI={exports:{}},Er={};/** @license React v16.13.1
828
828
  * react-is.production.min.js
829
829
  *
830
830
  * Copyright (c) Facebook, Inc. and its affiliates.
831
831
  *
832
832
  * This source code is licensed under the MIT license found in the
833
833
  * LICENSE file in the root directory of this source tree.
834
- */var _n=typeof Symbol=="function"&&Symbol.for,HS=_n?Symbol.for("react.element"):60103,qS=_n?Symbol.for("react.portal"):60106,Lg=_n?Symbol.for("react.fragment"):60107,Dg=_n?Symbol.for("react.strict_mode"):60108,$g=_n?Symbol.for("react.profiler"):60114,Bg=_n?Symbol.for("react.provider"):60109,zg=_n?Symbol.for("react.context"):60110,VS=_n?Symbol.for("react.async_mode"):60111,Ug=_n?Symbol.for("react.concurrent_mode"):60111,jg=_n?Symbol.for("react.forward_ref"):60112,Gg=_n?Symbol.for("react.suspense"):60113,z9=_n?Symbol.for("react.suspense_list"):60120,Wg=_n?Symbol.for("react.memo"):60115,Hg=_n?Symbol.for("react.lazy"):60116,U9=_n?Symbol.for("react.block"):60121,j9=_n?Symbol.for("react.fundamental"):60117,G9=_n?Symbol.for("react.responder"):60118,W9=_n?Symbol.for("react.scope"):60119;function bi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case HS:switch(e=e.type,e){case VS:case Ug:case Lg:case $g:case Dg:case Gg:return e;default:switch(e=e&&e.$$typeof,e){case zg:case jg:case Hg:case Wg:case Bg:return e;default:return t}}case qS:return t}}}function vI(e){return bi(e)===Ug}Er.AsyncMode=VS;Er.ConcurrentMode=Ug;Er.ContextConsumer=zg;Er.ContextProvider=Bg;Er.Element=HS;Er.ForwardRef=jg;Er.Fragment=Lg;Er.Lazy=Hg;Er.Memo=Wg;Er.Portal=qS;Er.Profiler=$g;Er.StrictMode=Dg;Er.Suspense=Gg;Er.isAsyncMode=function(e){return vI(e)||bi(e)===VS};Er.isConcurrentMode=vI;Er.isContextConsumer=function(e){return bi(e)===zg};Er.isContextProvider=function(e){return bi(e)===Bg};Er.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===HS};Er.isForwardRef=function(e){return bi(e)===jg};Er.isFragment=function(e){return bi(e)===Lg};Er.isLazy=function(e){return bi(e)===Hg};Er.isMemo=function(e){return bi(e)===Wg};Er.isPortal=function(e){return bi(e)===qS};Er.isProfiler=function(e){return bi(e)===$g};Er.isStrictMode=function(e){return bi(e)===Dg};Er.isSuspense=function(e){return bi(e)===Gg};Er.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Lg||e===Ug||e===$g||e===Dg||e===Gg||e===z9||typeof e=="object"&&e!==null&&(e.$$typeof===Hg||e.$$typeof===Wg||e.$$typeof===Bg||e.$$typeof===zg||e.$$typeof===jg||e.$$typeof===j9||e.$$typeof===G9||e.$$typeof===W9||e.$$typeof===U9)};Er.typeOf=bi;pI.exports=Er;var H9=pI.exports,YS=H9,q9={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},V9={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Y9={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mI={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},XS={};XS[YS.ForwardRef]=Y9;XS[YS.Memo]=mI;function hC(e){return YS.isMemo(e)?mI:XS[e.$$typeof]||q9}var X9=Object.defineProperty,K9=Object.getOwnPropertyNames,dC=Object.getOwnPropertySymbols,Q9=Object.getOwnPropertyDescriptor,Z9=Object.getPrototypeOf,pC=Object.prototype;function gI(e,t,r){if(typeof t!="string"){if(pC){var n=Z9(t);n&&n!==pC&&gI(e,n,r)}var i=K9(t);dC&&(i=i.concat(dC(t)));for(var a=hC(e),o=hC(t),l=0;l<i.length;++l){var s=i[l];if(!V9[s]&&!(r&&r[s])&&!(o&&o[s])&&!(a&&a[s])){var f=Q9(t,s);try{X9(e,s,f)}catch{}}}}return e}var J9=gI;const vC=mi(J9);var yI={exports:{}},kr={};/** @license React v17.0.2
834
+ */var _n=typeof Symbol=="function"&&Symbol.for,WS=_n?Symbol.for("react.element"):60103,HS=_n?Symbol.for("react.portal"):60106,Ng=_n?Symbol.for("react.fragment"):60107,Lg=_n?Symbol.for("react.strict_mode"):60108,Dg=_n?Symbol.for("react.profiler"):60114,$g=_n?Symbol.for("react.provider"):60109,Bg=_n?Symbol.for("react.context"):60110,qS=_n?Symbol.for("react.async_mode"):60111,zg=_n?Symbol.for("react.concurrent_mode"):60111,Ug=_n?Symbol.for("react.forward_ref"):60112,jg=_n?Symbol.for("react.suspense"):60113,$9=_n?Symbol.for("react.suspense_list"):60120,Gg=_n?Symbol.for("react.memo"):60115,Wg=_n?Symbol.for("react.lazy"):60116,B9=_n?Symbol.for("react.block"):60121,z9=_n?Symbol.for("react.fundamental"):60117,U9=_n?Symbol.for("react.responder"):60118,j9=_n?Symbol.for("react.scope"):60119;function bi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case WS:switch(e=e.type,e){case qS:case zg:case Ng:case Dg:case Lg:case jg:return e;default:switch(e=e&&e.$$typeof,e){case Bg:case Ug:case Wg:case Gg:case $g:return e;default:return t}}case HS:return t}}}function dI(e){return bi(e)===zg}Er.AsyncMode=qS;Er.ConcurrentMode=zg;Er.ContextConsumer=Bg;Er.ContextProvider=$g;Er.Element=WS;Er.ForwardRef=Ug;Er.Fragment=Ng;Er.Lazy=Wg;Er.Memo=Gg;Er.Portal=HS;Er.Profiler=Dg;Er.StrictMode=Lg;Er.Suspense=jg;Er.isAsyncMode=function(e){return dI(e)||bi(e)===qS};Er.isConcurrentMode=dI;Er.isContextConsumer=function(e){return bi(e)===Bg};Er.isContextProvider=function(e){return bi(e)===$g};Er.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===WS};Er.isForwardRef=function(e){return bi(e)===Ug};Er.isFragment=function(e){return bi(e)===Ng};Er.isLazy=function(e){return bi(e)===Wg};Er.isMemo=function(e){return bi(e)===Gg};Er.isPortal=function(e){return bi(e)===HS};Er.isProfiler=function(e){return bi(e)===Dg};Er.isStrictMode=function(e){return bi(e)===Lg};Er.isSuspense=function(e){return bi(e)===jg};Er.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ng||e===zg||e===Dg||e===Lg||e===jg||e===$9||typeof e=="object"&&e!==null&&(e.$$typeof===Wg||e.$$typeof===Gg||e.$$typeof===$g||e.$$typeof===Bg||e.$$typeof===Ug||e.$$typeof===z9||e.$$typeof===U9||e.$$typeof===j9||e.$$typeof===B9)};Er.typeOf=bi;hI.exports=Er;var G9=hI.exports,VS=G9,W9={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H9={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},q9={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pI={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},YS={};YS[VS.ForwardRef]=q9;YS[VS.Memo]=pI;function cT(e){return VS.isMemo(e)?pI:YS[e.$$typeof]||W9}var V9=Object.defineProperty,Y9=Object.getOwnPropertyNames,hT=Object.getOwnPropertySymbols,X9=Object.getOwnPropertyDescriptor,K9=Object.getPrototypeOf,dT=Object.prototype;function vI(e,t,r){if(typeof t!="string"){if(dT){var n=K9(t);n&&n!==dT&&vI(e,n,r)}var i=Y9(t);hT&&(i=i.concat(hT(t)));for(var a=cT(e),o=cT(t),l=0;l<i.length;++l){var s=i[l];if(!H9[s]&&!(r&&r[s])&&!(o&&o[s])&&!(a&&a[s])){var f=X9(t,s);try{V9(e,s,f)}catch{}}}}return e}var Q9=vI;const pT=mi(Q9);var mI={exports:{}},Mr={};/** @license React v17.0.2
835
835
  * react-is.production.min.js
836
836
  *
837
837
  * Copyright (c) Facebook, Inc. and its affiliates.
838
838
  *
839
839
  * This source code is licensed under the MIT license found in the
840
840
  * LICENSE file in the root directory of this source tree.
841
- */var qg=60103,Vg=60106,ap=60107,op=60108,up=60114,lp=60109,sp=60110,fp=60112,cp=60113,KS=60120,hp=60115,dp=60116,bI=60121,xI=60122,wI=60117,_I=60129,SI=60131;if(typeof Symbol=="function"&&Symbol.for){var Tn=Symbol.for;qg=Tn("react.element"),Vg=Tn("react.portal"),ap=Tn("react.fragment"),op=Tn("react.strict_mode"),up=Tn("react.profiler"),lp=Tn("react.provider"),sp=Tn("react.context"),fp=Tn("react.forward_ref"),cp=Tn("react.suspense"),KS=Tn("react.suspense_list"),hp=Tn("react.memo"),dp=Tn("react.lazy"),bI=Tn("react.block"),xI=Tn("react.server.block"),wI=Tn("react.fundamental"),_I=Tn("react.debug_trace_mode"),SI=Tn("react.legacy_hidden")}function ta(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case qg:switch(e=e.type,e){case ap:case up:case op:case cp:case KS:return e;default:switch(e=e&&e.$$typeof,e){case sp:case fp:case dp:case hp:case lp:return e;default:return t}}case Vg:return t}}}var eU=lp,tU=qg,rU=fp,nU=ap,iU=dp,aU=hp,oU=Vg,uU=up,lU=op,sU=cp;kr.ContextConsumer=sp;kr.ContextProvider=eU;kr.Element=tU;kr.ForwardRef=rU;kr.Fragment=nU;kr.Lazy=iU;kr.Memo=aU;kr.Portal=oU;kr.Profiler=uU;kr.StrictMode=lU;kr.Suspense=sU;kr.isAsyncMode=function(){return!1};kr.isConcurrentMode=function(){return!1};kr.isContextConsumer=function(e){return ta(e)===sp};kr.isContextProvider=function(e){return ta(e)===lp};kr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===qg};kr.isForwardRef=function(e){return ta(e)===fp};kr.isFragment=function(e){return ta(e)===ap};kr.isLazy=function(e){return ta(e)===dp};kr.isMemo=function(e){return ta(e)===hp};kr.isPortal=function(e){return ta(e)===Vg};kr.isProfiler=function(e){return ta(e)===up};kr.isStrictMode=function(e){return ta(e)===op};kr.isSuspense=function(e){return ta(e)===cp};kr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ap||e===up||e===_I||e===op||e===cp||e===KS||e===SI||typeof e=="object"&&e!==null&&(e.$$typeof===dp||e.$$typeof===hp||e.$$typeof===lp||e.$$typeof===sp||e.$$typeof===fp||e.$$typeof===wI||e.$$typeof===bI||e[0]===xI)};kr.typeOf=ta;yI.exports=kr;var fU=yI.exports,cU=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],hU=["reactReduxForwardedRef"],dU=[],pU=[null,null];function vU(e,t){var r=e[1];return[t.payload,r+1]}function mC(e,t,r){Nm(function(){return e.apply(void 0,t)},r)}function mU(e,t,r,n,i,a,o){e.current=n,t.current=i,r.current=!1,a.current&&(a.current=null,o())}function gU(e,t,r,n,i,a,o,l,s,f){if(e){var d=!1,g=null,v=function(){if(!d){var k=t.getState(),x,w;try{x=n(k,i.current)}catch(_){w=_,g=_}w||(g=null),x===a.current?o.current||s():(a.current=x,l.current=x,o.current=!0,f({type:"STORE_UPDATED",payload:{error:w}}))}};r.onStateChange=v,r.trySubscribe(),v();var y=function(){if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,g)throw g};return y}}var yU=function(){return[null,0]};function EI(e,t){t===void 0&&(t={});var r=t,n=r.getDisplayName,i=n===void 0?function(C){return"ConnectAdvanced("+C+")"}:n,a=r.methodName,o=a===void 0?"connectAdvanced":a,l=r.renderCountProp,s=l===void 0?void 0:l,f=r.shouldHandleStateChanges,d=f===void 0?!0:f,g=r.storeKey,v=g===void 0?"store":g;r.withRef;var y=r.forwardRef,E=y===void 0?!1:y,k=r.context,x=k===void 0?Sa:k,w=Sf(r,cU),_=x;return function(T){var F=T.displayName||T.name||"Component",L=i(F),V=ti({},w,{getDisplayName:i,methodName:o,renderCountProp:s,shouldHandleStateChanges:d,storeKey:v,displayName:L,wrappedComponentName:F,WrappedComponent:T}),j=w.pure;function te(Le){return e(Le.dispatch,V)}var ge=j?zt.useMemo:function(Le){return Le()};function me(Le){var ut=zt.useMemo(function(){var fe=Le.reactReduxForwardedRef,Ie=Sf(Le,hU);return[Le.context,fe,Ie]},[Le]),nt=ut[0],De=ut[1],We=ut[2],_t=zt.useMemo(function(){return nt&&nt.Consumer&&fU.isContextConsumer(wr.createElement(nt.Consumer,null))?nt:_},[nt,_]),He=zt.useContext(_t),we=!!Le.store&&!!Le.store.getState&&!!Le.store.dispatch;He&&He.store;var qe=we?Le.store:He.store,st=zt.useMemo(function(){return te(qe)},[qe]),Ke=zt.useMemo(function(){if(!d)return pU;var fe=WS(qe,we?null:He.subscription),Ie=fe.notifyNestedSubs.bind(fe);return[fe,Ie]},[qe,we,He]),ct=Ke[0],yt=Ke[1],qt=zt.useMemo(function(){return we?He:ti({},He,{subscription:ct})},[we,He,ct]),Yt=zt.useReducer(vU,dU,yU),Qe=Yt[0],At=Qe[0],Gt=Yt[1];if(At&&At.error)throw At.error;var Ce=zt.useRef(),W=zt.useRef(We),ae=zt.useRef(),R=zt.useRef(!1),A=ge(function(){return ae.current&&We===W.current?ae.current:st(qe.getState(),We)},[qe,At,We]);mC(mU,[W,Ce,R,We,A,ae,yt]),mC(gU,[d,qe,ct,st,W,Ce,R,ae,yt,Gt],[qe,ct,st]);var M=zt.useMemo(function(){return wr.createElement(T,ti({},A,{ref:De}))},[De,T,A]),$=zt.useMemo(function(){return d?wr.createElement(_t.Provider,{value:qt},M):M},[_t,M,qt]);return $}var ke=j?wr.memo(me):me;if(ke.WrappedComponent=T,ke.displayName=me.displayName=L,E){var Fe=wr.forwardRef(function(ut,nt){return wr.createElement(ke,ti({},ut,{reactReduxForwardedRef:nt}))});return Fe.displayName=L,Fe.WrappedComponent=T,vC(Fe,T)}return vC(ke,T)}}function gC(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function K0(e,t){if(gC(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!gC(e[r[i]],t[r[i]]))return!1;return!0}function bU(e,t){var r={},n=function(o){var l=e[o];typeof l=="function"&&(r[o]=function(){return t(l.apply(void 0,arguments))})};for(var i in e)n(i);return r}function QS(e){return function(r,n){var i=e(r,n);function a(){return i}return a.dependsOnOwnProps=!1,a}}function yC(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?!!e.dependsOnOwnProps:e.length!==1}function AI(e,t){return function(n,i){i.displayName;var a=function(l,s){return a.dependsOnOwnProps?a.mapToProps(l,s):a.mapToProps(l)};return a.dependsOnOwnProps=!0,a.mapToProps=function(l,s){a.mapToProps=e,a.dependsOnOwnProps=yC(e);var f=a(l,s);return typeof f=="function"&&(a.mapToProps=f,a.dependsOnOwnProps=yC(f),f=a(l,s)),f},a}}function xU(e){return typeof e=="function"?AI(e):void 0}function wU(e){return e?void 0:QS(function(t){return{dispatch:t}})}function _U(e){return e&&typeof e=="object"?QS(function(t){return bU(e,t)}):void 0}const SU=[xU,wU,_U];function EU(e){return typeof e=="function"?AI(e):void 0}function AU(e){return e?void 0:QS(function(){return{}})}const TU=[EU,AU];function CU(e,t,r){return ti({},r,e,t)}function OU(e){return function(r,n){n.displayName;var i=n.pure,a=n.areMergedPropsEqual,o=!1,l;return function(f,d,g){var v=e(f,d,g);return o?(!i||!a(v,l))&&(l=v):(o=!0,l=v),l}}}function kU(e){return typeof e=="function"?OU(e):void 0}function MU(e){return e?void 0:function(){return CU}}const RU=[kU,MU];var PU=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function IU(e,t,r,n){return function(a,o){return r(e(a,o),t(n,o),o)}}function FU(e,t,r,n,i){var a=i.areStatesEqual,o=i.areOwnPropsEqual,l=i.areStatePropsEqual,s=!1,f,d,g,v,y;function E(C,T){return f=C,d=T,g=e(f,d),v=t(n,d),y=r(g,v,d),s=!0,y}function k(){return g=e(f,d),t.dependsOnOwnProps&&(v=t(n,d)),y=r(g,v,d),y}function x(){return e.dependsOnOwnProps&&(g=e(f,d)),t.dependsOnOwnProps&&(v=t(n,d)),y=r(g,v,d),y}function w(){var C=e(f,d),T=!l(C,g);return g=C,T&&(y=r(g,v,d)),y}function _(C,T){var F=!o(T,d),L=!a(C,f);return f=C,d=T,F&&L?k():F?x():L?w():y}return function(T,F){return s?_(T,F):E(T,F)}}function NU(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,a=Sf(t,PU),o=r(e,a),l=n(e,a),s=i(e,a),f=a.pure?FU:IU;return f(o,l,s,e,a)}var LU=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Db(e,t,r){for(var n=t.length-1;n>=0;n--){var i=t[n](e);if(i)return i}return function(a,o){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+o.wrappedComponentName+".")}}function DU(e,t){return e===t}function $U(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?EI:r,i=t.mapStateToPropsFactories,a=i===void 0?TU:i,o=t.mapDispatchToPropsFactories,l=o===void 0?SU:o,s=t.mergePropsFactories,f=s===void 0?RU:s,d=t.selectorFactory,g=d===void 0?NU:d;return function(y,E,k,x){x===void 0&&(x={});var w=x,_=w.pure,C=_===void 0?!0:_,T=w.areStatesEqual,F=T===void 0?DU:T,L=w.areOwnPropsEqual,V=L===void 0?K0:L,j=w.areStatePropsEqual,te=j===void 0?K0:j,ge=w.areMergedPropsEqual,me=ge===void 0?K0:ge,ke=Sf(w,LU),Fe=Db(y,a,"mapStateToProps"),Le=Db(E,l,"mapDispatchToProps"),ut=Db(k,f,"mergeProps");return n(g,ti({methodName:"connect",getDisplayName:function(De){return"Connect("+De+")"},shouldHandleStateChanges:!!y,initMapStateToProps:Fe,initMapDispatchToProps:Le,initMergeProps:ut,pure:C,areStatesEqual:F,areOwnPropsEqual:V,areStatePropsEqual:te,areMergedPropsEqual:me},ke))}}const ZS=$U();function TI(){var e=zt.useContext(Sa);return e}function JS(e){e===void 0&&(e=Sa);var t=e===Sa?TI:function(){return zt.useContext(e)};return function(){var n=t(),i=n.store;return i}}var CI=JS();function OI(e){e===void 0&&(e=Sa);var t=e===Sa?CI:JS(e);return function(){var n=t();return n.dispatch}}var BU=OI(),zU=function(t,r){return t===r};function UU(e,t,r,n){var i=zt.useReducer(function(E){return E+1},0),a=i[1],o=zt.useMemo(function(){return WS(r,n)},[r,n]),l=zt.useRef(),s=zt.useRef(),f=zt.useRef(),d=zt.useRef(),g=r.getState(),v;try{if(e!==s.current||g!==f.current||l.current){var y=e(g);d.current===void 0||!t(y,d.current)?v=y:v=d.current}else v=d.current}catch(E){throw l.current&&(E.message+=`
841
+ */var Hg=60103,qg=60106,ip=60107,ap=60108,op=60114,up=60109,lp=60110,sp=60112,fp=60113,XS=60120,cp=60115,hp=60116,gI=60121,yI=60122,bI=60117,xI=60129,wI=60131;if(typeof Symbol=="function"&&Symbol.for){var Cn=Symbol.for;Hg=Cn("react.element"),qg=Cn("react.portal"),ip=Cn("react.fragment"),ap=Cn("react.strict_mode"),op=Cn("react.profiler"),up=Cn("react.provider"),lp=Cn("react.context"),sp=Cn("react.forward_ref"),fp=Cn("react.suspense"),XS=Cn("react.suspense_list"),cp=Cn("react.memo"),hp=Cn("react.lazy"),gI=Cn("react.block"),yI=Cn("react.server.block"),bI=Cn("react.fundamental"),xI=Cn("react.debug_trace_mode"),wI=Cn("react.legacy_hidden")}function ta(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Hg:switch(e=e.type,e){case ip:case op:case ap:case fp:case XS:return e;default:switch(e=e&&e.$$typeof,e){case lp:case sp:case hp:case cp:case up:return e;default:return t}}case qg:return t}}}var Z9=up,J9=Hg,eU=sp,tU=ip,rU=hp,nU=cp,iU=qg,aU=op,oU=ap,uU=fp;Mr.ContextConsumer=lp;Mr.ContextProvider=Z9;Mr.Element=J9;Mr.ForwardRef=eU;Mr.Fragment=tU;Mr.Lazy=rU;Mr.Memo=nU;Mr.Portal=iU;Mr.Profiler=aU;Mr.StrictMode=oU;Mr.Suspense=uU;Mr.isAsyncMode=function(){return!1};Mr.isConcurrentMode=function(){return!1};Mr.isContextConsumer=function(e){return ta(e)===lp};Mr.isContextProvider=function(e){return ta(e)===up};Mr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Hg};Mr.isForwardRef=function(e){return ta(e)===sp};Mr.isFragment=function(e){return ta(e)===ip};Mr.isLazy=function(e){return ta(e)===hp};Mr.isMemo=function(e){return ta(e)===cp};Mr.isPortal=function(e){return ta(e)===qg};Mr.isProfiler=function(e){return ta(e)===op};Mr.isStrictMode=function(e){return ta(e)===ap};Mr.isSuspense=function(e){return ta(e)===fp};Mr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ip||e===op||e===xI||e===ap||e===fp||e===XS||e===wI||typeof e=="object"&&e!==null&&(e.$$typeof===hp||e.$$typeof===cp||e.$$typeof===up||e.$$typeof===lp||e.$$typeof===sp||e.$$typeof===bI||e.$$typeof===gI||e[0]===yI)};Mr.typeOf=ta;mI.exports=Mr;var lU=mI.exports,sU=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],fU=["reactReduxForwardedRef"],cU=[],hU=[null,null];function dU(e,t){var r=e[1];return[t.payload,r+1]}function vT(e,t,r){Fm(function(){return e.apply(void 0,t)},r)}function pU(e,t,r,n,i,a,o){e.current=n,t.current=i,r.current=!1,a.current&&(a.current=null,o())}function vU(e,t,r,n,i,a,o,l,s,f){if(e){var d=!1,g=null,v=function(){if(!d){var M=t.getState(),x,w;try{x=n(M,i.current)}catch(_){w=_,g=_}w||(g=null),x===a.current?o.current||s():(a.current=x,l.current=x,o.current=!0,f({type:"STORE_UPDATED",payload:{error:w}}))}};r.onStateChange=v,r.trySubscribe(),v();var y=function(){if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,g)throw g};return y}}var mU=function(){return[null,0]};function _I(e,t){t===void 0&&(t={});var r=t,n=r.getDisplayName,i=n===void 0?function(T){return"ConnectAdvanced("+T+")"}:n,a=r.methodName,o=a===void 0?"connectAdvanced":a,l=r.renderCountProp,s=l===void 0?void 0:l,f=r.shouldHandleStateChanges,d=f===void 0?!0:f,g=r.storeKey,v=g===void 0?"store":g;r.withRef;var y=r.forwardRef,E=y===void 0?!1:y,M=r.context,x=M===void 0?Sa:M,w=Sf(r,sU),_=x;return function(C){var F=C.displayName||C.name||"Component",L=i(F),V=ti({},w,{getDisplayName:i,methodName:o,renderCountProp:s,shouldHandleStateChanges:d,storeKey:v,displayName:L,wrappedComponentName:F,WrappedComponent:C}),j=w.pure;function te(Le){return e(Le.dispatch,V)}var ge=j?Gt.useMemo:function(Le){return Le()};function me(Le){var ut=Gt.useMemo(function(){var fe=Le.reactReduxForwardedRef,Ie=Sf(Le,fU);return[Le.context,fe,Ie]},[Le]),nt=ut[0],De=ut[1],We=ut[2],_t=Gt.useMemo(function(){return nt&&nt.Consumer&&lU.isContextConsumer(wr.createElement(nt.Consumer,null))?nt:_},[nt,_]),He=Gt.useContext(_t),we=!!Le.store&&!!Le.store.getState&&!!Le.store.dispatch;He&&He.store;var qe=we?Le.store:He.store,st=Gt.useMemo(function(){return te(qe)},[qe]),Ke=Gt.useMemo(function(){if(!d)return hU;var fe=GS(qe,we?null:He.subscription),Ie=fe.notifyNestedSubs.bind(fe);return[fe,Ie]},[qe,we,He]),ct=Ke[0],yt=Ke[1],qt=Gt.useMemo(function(){return we?He:ti({},He,{subscription:ct})},[we,He,ct]),Yt=Gt.useReducer(dU,cU,mU),Qe=Yt[0],At=Qe[0],jt=Yt[1];if(At&&At.error)throw At.error;var Te=Gt.useRef(),W=Gt.useRef(We),ae=Gt.useRef(),R=Gt.useRef(!1),A=ge(function(){return ae.current&&We===W.current?ae.current:st(qe.getState(),We)},[qe,At,We]);vT(pU,[W,Te,R,We,A,ae,yt]),vT(vU,[d,qe,ct,st,W,Te,R,ae,yt,jt],[qe,ct,st]);var k=Gt.useMemo(function(){return wr.createElement(C,ti({},A,{ref:De}))},[De,C,A]),$=Gt.useMemo(function(){return d?wr.createElement(_t.Provider,{value:qt},k):k},[_t,k,qt]);return $}var Me=j?wr.memo(me):me;if(Me.WrappedComponent=C,Me.displayName=me.displayName=L,E){var Fe=wr.forwardRef(function(ut,nt){return wr.createElement(Me,ti({},ut,{reactReduxForwardedRef:nt}))});return Fe.displayName=L,Fe.WrappedComponent=C,pT(Fe,C)}return pT(Me,C)}}function mT(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function X0(e,t){if(mT(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!mT(e[r[i]],t[r[i]]))return!1;return!0}function gU(e,t){var r={},n=function(o){var l=e[o];typeof l=="function"&&(r[o]=function(){return t(l.apply(void 0,arguments))})};for(var i in e)n(i);return r}function KS(e){return function(r,n){var i=e(r,n);function a(){return i}return a.dependsOnOwnProps=!1,a}}function gT(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?!!e.dependsOnOwnProps:e.length!==1}function SI(e,t){return function(n,i){i.displayName;var a=function(l,s){return a.dependsOnOwnProps?a.mapToProps(l,s):a.mapToProps(l)};return a.dependsOnOwnProps=!0,a.mapToProps=function(l,s){a.mapToProps=e,a.dependsOnOwnProps=gT(e);var f=a(l,s);return typeof f=="function"&&(a.mapToProps=f,a.dependsOnOwnProps=gT(f),f=a(l,s)),f},a}}function yU(e){return typeof e=="function"?SI(e):void 0}function bU(e){return e?void 0:KS(function(t){return{dispatch:t}})}function xU(e){return e&&typeof e=="object"?KS(function(t){return gU(e,t)}):void 0}const wU=[yU,bU,xU];function _U(e){return typeof e=="function"?SI(e):void 0}function SU(e){return e?void 0:KS(function(){return{}})}const EU=[_U,SU];function AU(e,t,r){return ti({},r,e,t)}function CU(e){return function(r,n){n.displayName;var i=n.pure,a=n.areMergedPropsEqual,o=!1,l;return function(f,d,g){var v=e(f,d,g);return o?(!i||!a(v,l))&&(l=v):(o=!0,l=v),l}}}function TU(e){return typeof e=="function"?CU(e):void 0}function OU(e){return e?void 0:function(){return AU}}const MU=[TU,OU];var kU=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function RU(e,t,r,n){return function(a,o){return r(e(a,o),t(n,o),o)}}function PU(e,t,r,n,i){var a=i.areStatesEqual,o=i.areOwnPropsEqual,l=i.areStatePropsEqual,s=!1,f,d,g,v,y;function E(T,C){return f=T,d=C,g=e(f,d),v=t(n,d),y=r(g,v,d),s=!0,y}function M(){return g=e(f,d),t.dependsOnOwnProps&&(v=t(n,d)),y=r(g,v,d),y}function x(){return e.dependsOnOwnProps&&(g=e(f,d)),t.dependsOnOwnProps&&(v=t(n,d)),y=r(g,v,d),y}function w(){var T=e(f,d),C=!l(T,g);return g=T,C&&(y=r(g,v,d)),y}function _(T,C){var F=!o(C,d),L=!a(T,f);return f=T,d=C,F&&L?M():F?x():L?w():y}return function(C,F){return s?_(C,F):E(C,F)}}function IU(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,a=Sf(t,kU),o=r(e,a),l=n(e,a),s=i(e,a),f=a.pure?PU:RU;return f(o,l,s,e,a)}var FU=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function Lb(e,t,r){for(var n=t.length-1;n>=0;n--){var i=t[n](e);if(i)return i}return function(a,o){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+o.wrappedComponentName+".")}}function NU(e,t){return e===t}function LU(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?_I:r,i=t.mapStateToPropsFactories,a=i===void 0?EU:i,o=t.mapDispatchToPropsFactories,l=o===void 0?wU:o,s=t.mergePropsFactories,f=s===void 0?MU:s,d=t.selectorFactory,g=d===void 0?IU:d;return function(y,E,M,x){x===void 0&&(x={});var w=x,_=w.pure,T=_===void 0?!0:_,C=w.areStatesEqual,F=C===void 0?NU:C,L=w.areOwnPropsEqual,V=L===void 0?X0:L,j=w.areStatePropsEqual,te=j===void 0?X0:j,ge=w.areMergedPropsEqual,me=ge===void 0?X0:ge,Me=Sf(w,FU),Fe=Lb(y,a,"mapStateToProps"),Le=Lb(E,l,"mapDispatchToProps"),ut=Lb(M,f,"mergeProps");return n(g,ti({methodName:"connect",getDisplayName:function(De){return"Connect("+De+")"},shouldHandleStateChanges:!!y,initMapStateToProps:Fe,initMapDispatchToProps:Le,initMergeProps:ut,pure:T,areStatesEqual:F,areOwnPropsEqual:V,areStatePropsEqual:te,areMergedPropsEqual:me},Me))}}const QS=LU();function EI(){var e=Gt.useContext(Sa);return e}function ZS(e){e===void 0&&(e=Sa);var t=e===Sa?EI:function(){return Gt.useContext(e)};return function(){var n=t(),i=n.store;return i}}var AI=ZS();function CI(e){e===void 0&&(e=Sa);var t=e===Sa?AI:ZS(e);return function(){var n=t();return n.dispatch}}var DU=CI(),$U=function(t,r){return t===r};function BU(e,t,r,n){var i=Gt.useReducer(function(E){return E+1},0),a=i[1],o=Gt.useMemo(function(){return GS(r,n)},[r,n]),l=Gt.useRef(),s=Gt.useRef(),f=Gt.useRef(),d=Gt.useRef(),g=r.getState(),v;try{if(e!==s.current||g!==f.current||l.current){var y=e(g);d.current===void 0||!t(y,d.current)?v=y:v=d.current}else v=d.current}catch(E){throw l.current&&(E.message+=`
842
842
  The error may be correlated with this previous error:
843
843
  `+l.current.stack+`
844
844
 
845
- `),E}return Nm(function(){s.current=e,f.current=g,d.current=v,l.current=void 0}),Nm(function(){function E(){try{var k=r.getState();if(k===f.current)return;var x=s.current(k);if(t(x,d.current))return;d.current=x,f.current=k}catch(w){l.current=w}a()}return o.onStateChange=E,o.trySubscribe(),E(),function(){return o.tryUnsubscribe()}},[r,o]),v}function kI(e){e===void 0&&(e=Sa);var t=e===Sa?TI:function(){return zt.useContext(e)};return function(n,i){i===void 0&&(i=zU);var a=t(),o=a.store,l=a.subscription,s=UU(n,i,o,l);return zt.useDebugValue(s),s}}var jU=kI();L9(pS.unstable_batchedUpdates);const tae=Object.freeze(Object.defineProperty({__proto__:null,Provider:B9,ReactReduxContext:Sa,batch:pS.unstable_batchedUpdates,connect:ZS,connectAdvanced:EI,createDispatchHook:OI,createSelectorHook:kI,createStoreHook:JS,shallowEqual:K0,useDispatch:BU,useSelector:jU,useStore:CI},Symbol.toStringTag,{value:"Module"}));function GU(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function MI(e,t){var r=zt.useState(function(){return{inputs:t,result:e()}})[0],n=zt.useRef(!0),i=zt.useRef(r),a=n.current||!!(t&&i.current.inputs&&GU(t,i.current.inputs)),o=a?i.current:{inputs:t,result:e()};return zt.useEffect(function(){n.current=!1,i.current=o},[o]),o.result}function WU(e,t){return MI(function(){return e},t)}var Wn=MI,gn=WU,HU=!0,$b="Invariant failed";function qU(e,t){if(!e){if(HU)throw new Error($b);var r=typeof t=="function"?t():t,n=r?$b+": "+r:$b;throw new Error(n)}}var ef=function(t){var r=t.top,n=t.right,i=t.bottom,a=t.left,o=n-a,l=i-r,s={top:r,right:n,bottom:i,left:a,width:o,height:l,x:a,y:r,center:{x:(n+a)/2,y:(i+r)/2}};return s},RI=function(t,r){return{top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}},bC=function(t,r){return{top:t.top+r.top,left:t.left+r.left,bottom:t.bottom-r.bottom,right:t.right-r.right}},VU=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},Bb={top:0,right:0,bottom:0,left:0},eE=function(t){var r=t.borderBox,n=t.margin,i=n===void 0?Bb:n,a=t.border,o=a===void 0?Bb:a,l=t.padding,s=l===void 0?Bb:l,f=ef(RI(r,i)),d=ef(bC(r,o)),g=ef(bC(d,s));return{marginBox:f,borderBox:ef(r),paddingBox:d,contentBox:g,margin:i,border:o,padding:s}},Ai=function(t){var r=t.slice(0,-2),n=t.slice(-2);if(n!=="px")return 0;var i=Number(r);return isNaN(i)&&qU(!1),i},YU=function(){return{x:window.pageXOffset,y:window.pageYOffset}},XU=function(t,r){var n=t.borderBox,i=t.border,a=t.margin,o=t.padding,l=VU(n,r);return eE({borderBox:l,border:i,margin:a,padding:o})},__=function(t,r){return r===void 0&&(r=YU()),XU(t,r)},PI=function(t,r){var n={top:Ai(r.marginTop),right:Ai(r.marginRight),bottom:Ai(r.marginBottom),left:Ai(r.marginLeft)},i={top:Ai(r.paddingTop),right:Ai(r.paddingRight),bottom:Ai(r.paddingBottom),left:Ai(r.paddingLeft)},a={top:Ai(r.borderTopWidth),right:Ai(r.borderRightWidth),bottom:Ai(r.borderBottomWidth),left:Ai(r.borderLeftWidth)};return eE({borderBox:t,margin:n,padding:i,border:a})},II=function(t){var r=t.getBoundingClientRect(),n=window.getComputedStyle(t);return PI(r,n)},xC=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function KU(e,t){return!!(e===t||xC(e)&&xC(t))}function QU(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!KU(e[r],t[r]))return!1;return!0}function tn(e,t){t===void 0&&(t=QU);var r,n=[],i,a=!1;function o(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];return a&&r===this&&t(l,n)||(i=e.apply(this,l),a=!0,r=this,n=l),i}return o}var ZU=function(t){var r=[],n=null,i=function(){for(var o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];r=l,!n&&(n=requestAnimationFrame(function(){n=null,t.apply(void 0,r)}))};return i.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},i};const JU=ZU;function FI(e,t){}FI.bind(null,"warn");FI.bind(null,"error");function ej(){}function tj(e,t){return ti({},e,{},t)}function rj(e,t,r){var n=t.map(function(i){var a=tj(r,i.options);return e.addEventListener(i.eventName,i.fn,a),function(){e.removeEventListener(i.eventName,i.fn,a)}});return function(){n.forEach(function(a){a()})}}var nj="Invariant failed";function Lm(e){this.message=e}Lm.prototype.toString=function(){return this.message};function pi(e,t){if(!e)throw new Lm(nj)}(function(e){Zd(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.callbacks=null,n.unbind=ej,n.onWindowError=function(l){var s=n.getCallbacks();s.isDragging()&&s.tryAbort();var f=l.error;f instanceof Lm&&l.preventDefault()},n.getCallbacks=function(){if(!n.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return n.callbacks},n.setCallbacks=function(l){n.callbacks=l},n}var r=t.prototype;return r.componentDidMount=function(){this.unbind=rj(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(i){if(i instanceof Lm){this.setState({});return}throw i},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},t})(wr.Component);var El={x:0,y:0},ij=function(t,r){return{x:t.x-r.x,y:t.y-r.y}},aj=function(t,r){return t.x===r.x&&t.y===r.y},oj=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},uj=function(t,r,n){var i;return n===void 0&&(n=0),i={},i[t]=r,i[t==="x"?"y":"x"]=n,i},lj=function(e,t){var r=ef({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 r.width<=0||r.height<=0?null:r},sj=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},fj={top:0,right:0,bottom:0,left:0},cj=function(t,r){return r?sj(t,r.scroll.diff.displacement):t},hj=function(t,r,n){if(n&&n.increasedBy){var i;return ti({},t,(i={},i[r.end]=t[r.end]+n.increasedBy[r.line],i))}return t},dj=function(t,r){return r&&r.shouldClipSubject?lj(r.pageMarginBox,t):ef(t)},pj=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,i=e.frame,a=cj(t.marginBox,i),o=hj(a,n,r),l=dj(o,i);return{page:t,withPlaceholder:r,active:l}};function NI(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function vj(e,t){if(e.findIndex)return e.findIndex(t);for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function LI(e,t){if(e.find)return e.find(t);var r=vj(e,t);if(r!==-1)return e[r]}tn(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})});tn(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})});var mj=tn(function(e){return NI(e)}),gj=tn(function(e){return NI(e)});tn(function(e,t){var r=gj(t).filter(function(n){return e===n.descriptor.droppableId}).sort(function(n,i){return n.descriptor.index-i.descriptor.index});return r});function yj(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}tn(function(e,t){return t.filter(function(r){return r.descriptor.id!==e.descriptor.id})});var bj={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"};tn(function(t,r){var n=r[t.line];return{value:n,point:uj(t.line,n)}});var Q0=function(e){var t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null},wj=function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}},_j=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},tE={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Fd={opacity:{drop:0,combining:.7},scale:{drop:.75}},Sj={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Zu=Sj.outOfTheWay+"s "+tE.outOfTheWay,Z0={fluid:"opacity "+Zu,snap:"transform "+Zu+", opacity "+Zu,drop:function(t){var r=t+"s "+tE.drop;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+Zu,placeholder:"height "+Zu+", width "+Zu+", margin "+Zu},wC=function(t){return aj(t,El)?null:"translate("+t.x+"px, "+t.y+"px)"},S_={moveTo:wC,drop:function(t,r){var n=wC(t);return n?r?n+" scale("+Fd.scale.drop+")":n:null}},DI=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,i=e.width,a=ij({x:r,y:t},{x:i,y:n}),o={x:Math.max(0,a.x),y:Math.max(0,a.y)};return o},Ej=function(){var e=document.documentElement;return e||pi(!1),e},Aj=function(){var e=Ej(),t=DI({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t};tn(function(e){return mj(e).filter(function(t){return!(!t.isEnabled||!t.frame)})});var Tj="data-rbd",_C={contextId:Tj+"-scroll-container-context-id"},od=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?zt.useLayoutEffect:zt.useEffect,$I=wr.createContext(null),Cj=0,Oj={separator:"::"};function BI(e,t){return t===void 0&&(t=Oj),Wn(function(){return""+e+t.separator+Cj++},[t.separator,e])}var rE=wr.createContext(null);function kj(e){var t=zt.useRef(e);return zt.useEffect(function(){t.current=e}),t}var Mj=9,Rj=13,Pj=33,Ij=34,Fj=35,Nj=36,c0;c0={},c0[Rj]=!0,c0[Mj]=!0;(function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],r=LI(t,function(n){return"on"+n in document});return r||e})();var Is;Is={},Is[Ij]=!0,Is[Pj]=!0,Is[Nj]=!0,Is[Fj]=!0;(function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],r=LI(t,function(n){return n in Element.prototype});return r||e})();var zI=function(t){return function(r){return t===r}},Lj=zI("scroll"),Dj=zI("auto"),SC=function(t,r){return r(t.overflowX)||r(t.overflowY)},$j=function(t){var r=window.getComputedStyle(t),n={overflowX:r.overflowX,overflowY:r.overflowY};return SC(n,Lj)||SC(n,Dj)},Bj=function(){return!1},zj=function e(t){return t==null?null:t===document.body?Bj()?t:null:t===document.documentElement?null:$j(t)?t:e(t.parentElement)},E_=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Uj=function e(t){if(!t)return!1;var r=window.getComputedStyle(t);return r.position==="fixed"?!0:e(t.parentElement)},jj=function(e){var t=zj(e),r=Uj(e);return{closestScrollable:t,isFixedOnPage:r}},Gj=function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,a=e.direction,o=e.client,l=e.page,s=e.closest,f=function(){if(!s)return null;var y=s.scrollSize,E=s.client,k=DI({scrollHeight:y.scrollHeight,scrollWidth:y.scrollWidth,height:E.paddingBox.height,width:E.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:E,scrollSize:y,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:k,diff:{value:El,displacement:El}}}}(),d=a==="vertical"?bj:xj,g=pj({page:l,withPlaceholder:null,axis:d,frame:f}),v={descriptor:t,isCombineEnabled:n,isFixedOnPage:i,axis:d,isEnabled:r,client:o,page:l,frame:f,subject:g};return v},Wj=function(t,r){var n=II(t);if(!r||t!==r)return n;var i=n.paddingBox.top-r.scrollTop,a=n.paddingBox.left-r.scrollLeft,o=i+r.scrollHeight,l=a+r.scrollWidth,s={top:i,right:l,bottom:o,left:a},f=RI(s,n.border),d=eE({borderBox:f,margin:n.margin,border:n.border,padding:n.padding});return d},Hj=function(e){var t=e.ref,r=e.descriptor,n=e.env,i=e.windowScroll,a=e.direction,o=e.isDropDisabled,l=e.isCombineEnabled,s=e.shouldClipSubject,f=n.closestScrollable,d=Wj(t,f),g=__(d,i),v=function(){if(!f)return null;var E=II(f),k={scrollHeight:f.scrollHeight,scrollWidth:f.scrollWidth};return{client:E,page:__(E,i),scroll:E_(f),scrollSize:k,shouldClipSubject:s}}(),y=Gj({descriptor:r,isEnabled:!o,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:a,client:d,page:g,closest:v});return y},qj={passive:!1},Vj={passive:!0},EC=function(e){return e.shouldPublishImmediately?qj:Vj};function Dm(e){var t=zt.useContext(e);return t||pi(!1),t}var h0=function(t){return t&&t.env.closestScrollable||null};function Yj(e){var t=zt.useRef(null),r=Dm(rE),n=BI("droppable"),i=r.registry,a=r.marshal,o=kj(e),l=Wn(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),s=zt.useRef(l),f=Wn(function(){return tn(function(T,F){t.current||pi(!1);var L={x:T,y:F};a.updateDroppableScroll(l.id,L)})},[l.id,a]),d=gn(function(){var T=t.current;return!T||!T.env.closestScrollable?El:E_(T.env.closestScrollable)},[]),g=gn(function(){var T=d();f(T.x,T.y)},[d,f]),v=Wn(function(){return JU(g)},[g]),y=gn(function(){var T=t.current,F=h0(T);T&&F||pi(!1);var L=T.scrollOptions;if(L.shouldPublishImmediately){g();return}v()},[v,g]),E=gn(function(T,F){t.current&&pi(!1);var L=o.current,V=L.getDroppableRef();V||pi(!1);var j=jj(V),te={ref:V,descriptor:l,env:j,scrollOptions:F};t.current=te;var ge=Hj({ref:V,descriptor:l,env:j,windowScroll:T,direction:L.direction,isDropDisabled:L.isDropDisabled,isCombineEnabled:L.isCombineEnabled,shouldClipSubject:!L.ignoreContainerClipping}),me=j.closestScrollable;return me&&(me.setAttribute(_C.contextId,r.contextId),me.addEventListener("scroll",y,EC(te.scrollOptions))),ge},[r.contextId,l,y,o]),k=gn(function(){var T=t.current,F=h0(T);return T&&F||pi(!1),E_(F)},[]),x=gn(function(){var T=t.current;T||pi(!1);var F=h0(T);t.current=null,F&&(v.cancel(),F.removeAttribute(_C.contextId),F.removeEventListener("scroll",y,EC(T.scrollOptions)))},[y,v]),w=gn(function(T){var F=t.current;F||pi(!1);var L=h0(F);L||pi(!1),L.scrollTop+=T.y,L.scrollLeft+=T.x},[]),_=Wn(function(){return{getDimensionAndWatchScroll:E,getScrollWhileDragging:k,dragStopped:x,scroll:w}},[x,E,k,w]),C=Wn(function(){return{uniqueId:n,descriptor:l,callbacks:_}},[_,l,n]);od(function(){return s.current=C.descriptor,i.droppable.register(C),function(){t.current&&x(),i.droppable.unregister(C)}},[_,l,x,C,a,i.droppable]),od(function(){t.current&&a.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),od(function(){t.current&&a.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function zb(){}var AC={width:0,height:0,margin:fj},Xj=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate;return r||i==="close"?AC:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},Kj=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate,a=Xj({isAnimatingOpenOnMount:r,placeholder:n,animate:i});return{display:n.display,boxSizing:"border-box",width:a.width,height:a.height,marginTop:a.margin.top,marginRight:a.margin.right,marginBottom:a.margin.bottom,marginLeft:a.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?Z0.placeholder:null}};function Qj(e){var t=zt.useRef(null),r=gn(function(){t.current&&(clearTimeout(t.current),t.current=null)},[]),n=e.animate,i=e.onTransitionEnd,a=e.onClose,o=e.contextId,l=zt.useState(e.animate==="open"),s=l[0],f=l[1];zt.useEffect(function(){return s?n!=="open"?(r(),f(!1),zb):t.current?zb:(t.current=setTimeout(function(){t.current=null,f(!1)}),r):zb},[n,s,r]);var d=gn(function(v){v.propertyName==="height"&&(i(),n==="close"&&a())},[n,a,i]),g=Kj({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return wr.createElement(e.placeholder.tagName,{style:g,"data-rbd-placeholder-context-id":o,onTransitionEnd:d,ref:e.innerRef})}var Zj=wr.memo(Qj),nE=wr.createContext(null),Jj=function(e){Zd(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.state={isVisible:!!n.props.on,data:n.props.on,animate:n.props.shouldAnimate&&n.props.on?"open":"none"},n.onClose=function(){n.state.animate==="close"&&n.setState({isVisible:!1})},n}t.getDerivedStateFromProps=function(i,a){return i.shouldAnimate?i.on?{isVisible:!0,data:i.on,animate:"open"}:a.isVisible?{isVisible:!0,data:a.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!i.on,data:i.on,animate:"none"}};var r=t.prototype;return r.render=function(){if(!this.state.isVisible)return null;var i={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(i)},t}(wr.PureComponent),TC={dragging:5e3,dropAnimating:4500},eG=function(t,r){return r?Z0.drop(r.duration):t?Z0.snap:Z0.fluid},tG=function(t,r){return t?r?Fd.opacity.drop:Fd.opacity.combining:null},rG=function(t){return t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP"};function nG(e){var t=e.dimension,r=t.client,n=e.offset,i=e.combineWith,a=e.dropping,o=!!i,l=rG(e),s=!!a,f=s?S_.drop(n,o):S_.moveTo(n),d={position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:eG(l,a),transform:f,opacity:tG(o,s),zIndex:s?TC.dropAnimating:TC.dragging,pointerEvents:"none"};return d}function iG(e){return{transform:S_.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function aG(e){return e.type==="DRAGGING"?nG(e):iG(e)}function oG(e,t,r){r===void 0&&(r=El);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),a=PI(i,n),o=__(a,r),l={client:a,tagName:t.tagName.toLowerCase(),display:n.display},s={x:a.marginBox.width,y:a.marginBox.height},f={descriptor:e,placeholder:l,displaceBy:s,client:a,page:o};return f}function uG(e){var t=BI("draggable"),r=e.descriptor,n=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,o=e.shouldRespectForcePress,l=e.isEnabled,s=Wn(function(){return{canDragInteractiveElements:a,shouldRespectForcePress:o,isEnabled:l}},[a,l,o]),f=gn(function(y){var E=i();return E||pi(!1),oG(r,E,y)},[r,i]),d=Wn(function(){return{uniqueId:t,descriptor:r,options:s,getDimension:f}},[r,f,s,t]),g=zt.useRef(d),v=zt.useRef(!0);od(function(){return n.draggable.register(g.current),function(){return n.draggable.unregister(g.current)}},[n.draggable]),od(function(){if(v.current){v.current=!1;return}var y=g.current;g.current=d,n.draggable.update(d,y)},[d,n.draggable])}function lG(e){e.preventDefault()}function sG(e){var t=zt.useRef(null),r=gn(function(te){t.current=te},[]),n=gn(function(){return t.current},[]),i=Dm(rE),a=i.contextId,o=i.dragHandleUsageInstructionsId,l=i.registry,s=Dm(nE),f=s.type,d=s.droppableId,g=Wn(function(){return{id:e.draggableId,index:e.index,type:f,droppableId:d}},[e.draggableId,e.index,f,d]),v=e.children,y=e.draggableId,E=e.isEnabled,k=e.shouldRespectForcePress,x=e.canDragInteractiveElements,w=e.isClone,_=e.mapped,C=e.dropAnimationFinished;if(!w){var T=Wn(function(){return{descriptor:g,registry:l,getDraggableRef:n,canDragInteractiveElements:x,shouldRespectForcePress:k,isEnabled:E}},[g,l,n,x,k,E]);uG(T)}var F=Wn(function(){return E?{tabIndex:0,role:"button","aria-describedby":o,"data-rbd-drag-handle-draggable-id":y,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:lG}:null},[a,o,y,E]),L=gn(function(te){_.type==="DRAGGING"&&_.dropping&&te.propertyName==="transform"&&C()},[C,_]),V=Wn(function(){var te=aG(_),ge=_.type==="DRAGGING"&&_.dropping?L:null,me={innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":y,style:te,onTransitionEnd:ge},dragHandleProps:F};return me},[a,F,y,_,L,r]),j=Wn(function(){return{draggableId:g.id,type:g.type,source:{index:g.index,droppableId:g.droppableId}}},[g.droppableId,g.id,g.index,g.type]);return v(V,_.snapshot,j)}var UI=function(e,t){return e===t},jI=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null},fG=function(t){return t.combine?t.combine.draggableId:null},cG=function(t){return t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null};function hG(){var e=tn(function(i,a){return{x:i,y:a}}),t=tn(function(i,a,o,l,s){return{isDragging:!0,isClone:a,isDropAnimating:!!s,dropAnimation:s,mode:i,draggingOver:o,combineWith:l,combineTargetFor:null}}),r=tn(function(i,a,o,l,s,f,d){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:f,mode:a,offset:i,dimension:o,forceShouldAnimate:d,snapshot:t(a,l,s,f,null)}}}),n=function(a,o){if(a.isDragging){if(a.critical.draggable.id!==o.draggableId)return null;var l=a.current.client.offset,s=a.dimensions.draggables[o.draggableId],f=Q0(a.impact),d=cG(a.impact),g=a.forceShouldAnimate;return r(e(l.x,l.y),a.movementMode,s,o.isClone,f,d,g)}if(a.phase==="DROP_ANIMATING"){var v=a.completed;if(v.result.draggableId!==o.draggableId)return null;var y=o.isClone,E=a.dimensions.draggables[o.draggableId],k=v.result,x=k.mode,w=jI(k),_=fG(k),C=a.dropDuration,T={duration:C,curve:tE.drop,moveTo:a.newHomeClientOffset,opacity:_?Fd.opacity.drop:null,scale:_?Fd.scale.drop:null};return{mapped:{type:"DRAGGING",offset:a.newHomeClientOffset,dimension:E,dropping:T,draggingOver:w,combineWith:_,mode:x,forceShouldAnimate:null,snapshot:t(x,y,w,_,T)}}}return null};return n}function GI(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var dG={mapped:{type:"SECONDARY",offset:El,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:GI(null)}};function pG(){var e=tn(function(o,l){return{x:o,y:l}}),t=tn(GI),r=tn(function(o,l,s){return l===void 0&&(l=null),{mapped:{type:"SECONDARY",offset:o,combineTargetFor:l,shouldAnimateDisplacement:s,snapshot:t(l)}}}),n=function(l){return l?r(El,l,!0):null},i=function(l,s,f,d){var g=f.displaced.visible[l],v=!!(d.inVirtualList&&d.effected[l]),y=yj(f),E=y&&y.draggableId===l?s:null;if(!g){if(!v)return n(E);if(f.displaced.invisible[l])return null;var k=oj(d.displacedBy.point),x=e(k.x,k.y);return r(x,E,!0)}if(v)return n(E);var w=f.displacedBy.point,_=e(w.x,w.y);return r(_,E,g.shouldAnimate)},a=function(l,s){if(l.isDragging)return l.critical.draggable.id===s.draggableId?null:i(s.draggableId,l.critical.draggable.id,l.impact,l.afterCritical);if(l.phase==="DROP_ANIMATING"){var f=l.completed;return f.result.draggableId===s.draggableId?null:i(s.draggableId,f.result.draggableId,f.impact,f.afterCritical)}return null};return a}var vG=function(){var t=hG(),r=pG(),n=function(a,o){return t(a,o)||r(a,o)||dG};return n},mG={dropAnimationFinished:_j},gG=ZS(vG,mG,null,{context:$I,pure:!0,areStatePropsEqual:UI})(sG);function WI(e){var t=Dm(nE),r=t.isUsingCloneFor;return r===e.draggableId&&!e.isClone?null:wr.createElement(gG,e)}function rae(e){var t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,n=!!e.shouldRespectForcePress;return wr.createElement(WI,ti({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n}))}function yG(e){var t=zt.useContext(rE);t||pi(!1);var r=t.contextId,n=t.isMovementAllowed,i=zt.useRef(null),a=zt.useRef(null),o=e.children,l=e.droppableId,s=e.type,f=e.mode,d=e.direction,g=e.ignoreContainerClipping,v=e.isDropDisabled,y=e.isCombineEnabled,E=e.snapshot,k=e.useClone,x=e.updateViewportMaxScroll,w=e.getContainerForClone,_=gn(function(){return i.current},[]),C=gn(function(me){i.current=me},[]);gn(function(){return a.current},[]);var T=gn(function(me){a.current=me},[]),F=gn(function(){n()&&x({maxScroll:Aj()})},[n,x]);Yj({droppableId:l,type:s,mode:f,direction:d,isDropDisabled:v,isCombineEnabled:y,ignoreContainerClipping:g,getDroppableRef:_});var L=wr.createElement(Jj,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(me){var ke=me.onClose,Fe=me.data,Le=me.animate;return wr.createElement(Zj,{placeholder:Fe,onClose:ke,innerRef:T,animate:Le,contextId:r,onTransitionEnd:F})}),V=Wn(function(){return{innerRef:C,placeholder:L,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":r}}},[r,l,L,C]),j=k?k.dragging.draggableId:null,te=Wn(function(){return{droppableId:l,type:s,isUsingCloneFor:j}},[l,j,s]);function ge(){if(!k)return null;var me=k.dragging,ke=k.render,Fe=wr.createElement(WI,{draggableId:me.draggableId,index:me.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(Le,ut){return ke(Le,ut,me)});return Bh.createPortal(Fe,w())}return wr.createElement(nE.Provider,{value:te},o(V,E),ge())}var Ub=function(t,r){return t===r.droppable.type},CC=function(t,r){return r.draggables[t.draggable.id]},bG=function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=ti({},t,{shouldAnimatePlaceholder:!1}),n=tn(function(o){return{draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}}}),i=tn(function(o,l,s,f,d,g){var v=d.descriptor.id,y=d.descriptor.droppableId===o;if(y){var E=g?{render:g,dragging:n(d.descriptor)}:null,k={isDraggingOver:s,draggingOverWith:s?v:null,draggingFromThisWith:v,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!1,snapshot:k,useClone:E}}if(!l)return r;if(!f)return t;var x={isDraggingOver:s,draggingOverWith:v,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!0,snapshot:x,useClone:null}}),a=function(l,s){var f=s.droppableId,d=s.type,g=!s.isDropDisabled,v=s.renderClone;if(l.isDragging){var y=l.critical;if(!Ub(d,y))return r;var E=CC(y,l.dimensions),k=Q0(l.impact)===f;return i(f,g,k,k,E,v)}if(l.phase==="DROP_ANIMATING"){var x=l.completed;if(!Ub(d,x.critical))return r;var w=CC(x.critical,l.dimensions);return i(f,g,jI(x.result)===f,Q0(x.impact)===f,w,v)}if(l.phase==="IDLE"&&l.completed&&!l.shouldFlush){var _=l.completed;if(!Ub(d,_.critical))return r;var C=Q0(_.impact)===f,T=!!(_.impact.at&&_.impact.at.type==="COMBINE"),F=_.critical.droppable.id===f;return C?T?t:r:F?t:r}return r};return a},xG={updateViewportMaxScroll:wj};function wG(){return document.body||pi(!1),document.body}var _G={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:wG},SG=ZS(bG,xG,null,{context:$I,pure:!0,areStatePropsEqual:UI})(yG);SG.defaultProps=_G;var EG=typeof performance=="object"&&typeof performance.now=="function",OC=EG?function(){return performance.now()}:function(){return Date.now()};function kC(e){cancelAnimationFrame(e.id)}function AG(e,t){var r=OC();function n(){OC()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var Fs=null;function MC(e){if(e===void 0&&(e=!1),Fs===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?Fs="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Fs="negative":Fs="positive-ascending"),document.body.removeChild(t),Fs}return Fs}var TG=150,CG=function(t,r){return t};function OG(e){var t,r,n=e.getItemOffset,i=e.getEstimatedTotalSize,a=e.getItemSize,o=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,f=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return r=t=function(v){Zd(y,v);function y(k){var x;return x=v.call(this,k)||this,x._instanceProps=f(x.props,Jv(Jv(x))),x._outerRef=void 0,x._resetIsScrollingTimeoutId=null,x.state={instance:Jv(Jv(x)),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof x.props.initialScrollOffset=="number"?x.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},x._callOnItemsRendered=void 0,x._callOnItemsRendered=tn(function(w,_,C,T){return x.props.onItemsRendered({overscanStartIndex:w,overscanStopIndex:_,visibleStartIndex:C,visibleStopIndex:T})}),x._callOnScroll=void 0,x._callOnScroll=tn(function(w,_,C){return x.props.onScroll({scrollDirection:w,scrollOffset:_,scrollUpdateWasRequested:C})}),x._getItemStyle=void 0,x._getItemStyle=function(w){var _=x.props,C=_.direction,T=_.itemSize,F=_.layout,L=x._getItemStyleCache(d&&T,d&&F,d&&C),V;if(L.hasOwnProperty(w))V=L[w];else{var j=n(x.props,w,x._instanceProps),te=a(x.props,w,x._instanceProps),ge=C==="horizontal"||F==="horizontal",me=C==="rtl",ke=ge?j:0;L[w]=V={position:"absolute",left:me?void 0:ke,right:me?ke:void 0,top:ge?0:j,height:ge?"100%":te,width:ge?te:"100%"}}return V},x._getItemStyleCache=void 0,x._getItemStyleCache=tn(function(w,_,C){return{}}),x._onScrollHorizontal=function(w){var _=w.currentTarget,C=_.clientWidth,T=_.scrollLeft,F=_.scrollWidth;x.setState(function(L){if(L.scrollOffset===T)return null;var V=x.props.direction,j=T;if(V==="rtl")switch(MC()){case"negative":j=-T;break;case"positive-descending":j=F-C-T;break}return j=Math.max(0,Math.min(j,F-C)),{isScrolling:!0,scrollDirection:L.scrollOffset<T?"forward":"backward",scrollOffset:j,scrollUpdateWasRequested:!1}},x._resetIsScrollingDebounced)},x._onScrollVertical=function(w){var _=w.currentTarget,C=_.clientHeight,T=_.scrollHeight,F=_.scrollTop;x.setState(function(L){if(L.scrollOffset===F)return null;var V=Math.max(0,Math.min(F,T-C));return{isScrolling:!0,scrollDirection:L.scrollOffset<V?"forward":"backward",scrollOffset:V,scrollUpdateWasRequested:!1}},x._resetIsScrollingDebounced)},x._outerRefSetter=function(w){var _=x.props.outerRef;x._outerRef=w,typeof _=="function"?_(w):_!=null&&typeof _=="object"&&_.hasOwnProperty("current")&&(_.current=w)},x._resetIsScrollingDebounced=function(){x._resetIsScrollingTimeoutId!==null&&kC(x._resetIsScrollingTimeoutId),x._resetIsScrollingTimeoutId=AG(x._resetIsScrolling,TG)},x._resetIsScrolling=function(){x._resetIsScrollingTimeoutId=null,x.setState({isScrolling:!1},function(){x._getItemStyleCache(-1,null)})},x}y.getDerivedStateFromProps=function(x,w){return kG(x,w),g(x),null};var E=y.prototype;return E.scrollTo=function(x){x=Math.max(0,x),this.setState(function(w){return w.scrollOffset===x?null:{scrollDirection:w.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},E.scrollToItem=function(x,w){w===void 0&&(w="auto");var _=this.props.itemCount,C=this.state.scrollOffset;x=Math.max(0,Math.min(x,_-1)),this.scrollTo(o(this.props,x,w,C,this._instanceProps))},E.componentDidMount=function(){var x=this.props,w=x.direction,_=x.initialScrollOffset,C=x.layout;if(typeof _=="number"&&this._outerRef!=null){var T=this._outerRef;w==="horizontal"||C==="horizontal"?T.scrollLeft=_:T.scrollTop=_}this._callPropsCallbacks()},E.componentDidUpdate=function(){var x=this.props,w=x.direction,_=x.layout,C=this.state,T=C.scrollOffset,F=C.scrollUpdateWasRequested;if(F&&this._outerRef!=null){var L=this._outerRef;if(w==="horizontal"||_==="horizontal")if(w==="rtl")switch(MC()){case"negative":L.scrollLeft=-T;break;case"positive-ascending":L.scrollLeft=T;break;default:var V=L.clientWidth,j=L.scrollWidth;L.scrollLeft=j-V-T;break}else L.scrollLeft=T;else L.scrollTop=T}this._callPropsCallbacks()},E.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&kC(this._resetIsScrollingTimeoutId)},E.render=function(){var x=this.props,w=x.children,_=x.className,C=x.direction,T=x.height,F=x.innerRef,L=x.innerElementType,V=x.innerTagName,j=x.itemCount,te=x.itemData,ge=x.itemKey,me=ge===void 0?CG:ge,ke=x.layout,Fe=x.outerElementType,Le=x.outerTagName,ut=x.style,nt=x.useIsScrolling,De=x.width,We=this.state.isScrolling,_t=C==="horizontal"||ke==="horizontal",He=_t?this._onScrollHorizontal:this._onScrollVertical,we=this._getRangeToRender(),qe=we[0],st=we[1],Ke=[];if(j>0)for(var ct=qe;ct<=st;ct++)Ke.push(zt.createElement(w,{data:te,key:me(ct,te),index:ct,isScrolling:nt?We:void 0,style:this._getItemStyle(ct)}));var yt=i(this.props,this._instanceProps);return zt.createElement(Fe||Le||"div",{className:_,onScroll:He,ref:this._outerRefSetter,style:ti({position:"relative",height:T,width:De,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:C},ut)},zt.createElement(L||V||"div",{children:Ke,ref:F,style:{height:_t?"100%":yt,pointerEvents:We?"none":void 0,width:_t?yt:"100%"}}))},E._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var x=this.props.itemCount;if(x>0){var w=this._getRangeToRender(),_=w[0],C=w[1],T=w[2],F=w[3];this._callOnItemsRendered(_,C,T,F)}}if(typeof this.props.onScroll=="function"){var L=this.state,V=L.scrollDirection,j=L.scrollOffset,te=L.scrollUpdateWasRequested;this._callOnScroll(V,j,te)}},E._getRangeToRender=function(){var x=this.props,w=x.itemCount,_=x.overscanCount,C=this.state,T=C.isScrolling,F=C.scrollDirection,L=C.scrollOffset;if(w===0)return[0,0,0,0];var V=l(this.props,L,this._instanceProps),j=s(this.props,V,L,this._instanceProps),te=!T||F==="backward"?Math.max(1,_):1,ge=!T||F==="forward"?Math.max(1,_):1;return[Math.max(0,V-te),Math.max(0,Math.min(w-1,j+ge)),V,j]},y}(zt.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},r}var kG=function(t,r){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,r.instance},nae=OG({getItemOffset:function(t,r){var n=t.itemSize;return r*n},getItemSize:function(t,r){var n=t.itemSize;return n},getEstimatedTotalSize:function(t){var r=t.itemCount,n=t.itemSize;return n*r},getOffsetForIndexAndAlignment:function(t,r,n,i){var a=t.direction,o=t.height,l=t.itemCount,s=t.itemSize,f=t.layout,d=t.width,g=a==="horizontal"||f==="horizontal",v=g?d:o,y=Math.max(0,l*s-v),E=Math.min(y,r*s),k=Math.max(0,r*s-v+s);switch(n==="smart"&&(i>=k-v&&i<=E+v?n="auto":n="center"),n){case"start":return E;case"end":return k;case"center":{var x=Math.round(k+(E-k)/2);return x<Math.ceil(v/2)?0:x>y+Math.floor(v/2)?y:x}case"auto":default:return i>=k&&i<=E?i:i<k?k:E}},getStartIndexForOffset:function(t,r){var n=t.itemCount,i=t.itemSize;return Math.max(0,Math.min(n-1,Math.floor(r/i)))},getStopIndexForStartIndex:function(t,r,n){var i=t.direction,a=t.height,o=t.itemCount,l=t.itemSize,s=t.layout,f=t.width,d=i==="horizontal"||s==="horizontal",g=r*l,v=d?f:a,y=Math.ceil((v+n-g)/l);return Math.max(0,Math.min(o-1,r+y-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}}),MG=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},RG=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),PG=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IG=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},RC=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},FG=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var l=t[Symbol.iterator](),s;!(i=(s=l.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(f){a=!0,o=f}finally{try{!i&&l.return&&l.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Pi=void 0;typeof window<"u"?Pi=window:typeof self<"u"?Pi=self:Pi=global;var A_=null,T_=null,PC=20,jb=Pi.clearTimeout,IC=Pi.setTimeout,Gb=Pi.cancelAnimationFrame||Pi.mozCancelAnimationFrame||Pi.webkitCancelAnimationFrame,FC=Pi.requestAnimationFrame||Pi.mozRequestAnimationFrame||Pi.webkitRequestAnimationFrame;Gb==null||FC==null?(A_=jb,T_=function(t){return IC(t,PC)}):(A_=function(t){var r=FG(t,2),n=r[0],i=r[1];Gb(n),jb(i)},T_=function(t){var r=FC(function(){jb(n),t()}),n=IC(function(){Gb(r),t()},PC);return[r,n]});function NG(e){var t=void 0,r=void 0,n=void 0,i=void 0,a=void 0,o=void 0,l=void 0,s=typeof document<"u"&&document.attachEvent;if(!s){o=function(T){var F=T.__resizeTriggers__,L=F.firstElementChild,V=F.lastElementChild,j=L.firstElementChild;V.scrollLeft=V.scrollWidth,V.scrollTop=V.scrollHeight,j.style.width=L.offsetWidth+1+"px",j.style.height=L.offsetHeight+1+"px",L.scrollLeft=L.scrollWidth,L.scrollTop=L.scrollHeight},a=function(T){return T.offsetWidth!==T.__resizeLast__.width||T.offsetHeight!==T.__resizeLast__.height},l=function(T){if(!(T.target.className&&typeof T.target.className.indexOf=="function"&&T.target.className.indexOf("contract-trigger")<0&&T.target.className.indexOf("expand-trigger")<0)){var F=this;o(this),this.__resizeRAF__&&A_(this.__resizeRAF__),this.__resizeRAF__=T_(function(){a(F)&&(F.__resizeLast__.width=F.offsetWidth,F.__resizeLast__.height=F.offsetHeight,F.__resizeListeners__.forEach(function(j){j.call(F,T)}))})}};var f=!1,d="";n="animationstart";var g="Webkit Moz O ms".split(" "),v="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),y="";{var E=document.createElement("fakeelement");if(E.style.animationName!==void 0&&(f=!0),f===!1){for(var k=0;k<g.length;k++)if(E.style[g[k]+"AnimationName"]!==void 0){y=g[k],d="-"+y.toLowerCase()+"-",n=v[k],f=!0;break}}}r="resizeanim",t="@"+d+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",i=d+"animation: 1ms "+r+"; "}var x=function(T){if(!T.getElementById("detectElementResize")){var F=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > 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%; }',L=T.head||T.getElementsByTagName("head")[0],V=T.createElement("style");V.id="detectElementResize",V.type="text/css",e!=null&&V.setAttribute("nonce",e),V.styleSheet?V.styleSheet.cssText=F:V.appendChild(T.createTextNode(F)),L.appendChild(V)}},w=function(T,F){if(s)T.attachEvent("onresize",F);else{if(!T.__resizeTriggers__){var L=T.ownerDocument,V=Pi.getComputedStyle(T);V&&V.position==="static"&&(T.style.position="relative"),x(L),T.__resizeLast__={},T.__resizeListeners__=[],(T.__resizeTriggers__=L.createElement("div")).className="resize-triggers";var j=L.createElement("div");j.className="expand-trigger",j.appendChild(L.createElement("div"));var te=L.createElement("div");te.className="contract-trigger",T.__resizeTriggers__.appendChild(j),T.__resizeTriggers__.appendChild(te),T.appendChild(T.__resizeTriggers__),o(T),T.addEventListener("scroll",l,!0),n&&(T.__resizeTriggers__.__animationListener__=function(me){me.animationName===r&&o(T)},T.__resizeTriggers__.addEventListener(n,T.__resizeTriggers__.__animationListener__))}T.__resizeListeners__.push(F)}},_=function(T,F){if(s)T.detachEvent("onresize",F);else if(T.__resizeListeners__.splice(T.__resizeListeners__.indexOf(F),1),!T.__resizeListeners__.length){T.removeEventListener("scroll",l,!0),T.__resizeTriggers__.__animationListener__&&(T.__resizeTriggers__.removeEventListener(n,T.__resizeTriggers__.__animationListener__),T.__resizeTriggers__.__animationListener__=null);try{T.__resizeTriggers__=!T.removeChild(T.__resizeTriggers__)}catch{}}};return{addResizeListener:w,removeResizeListener:_}}var LG=function(e){IG(t,e);function t(){var r,n,i,a;MG(this,t);for(var o=arguments.length,l=Array(o),s=0;s<o;s++)l[s]=arguments[s];return a=(n=(i=RC(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(l))),i),i.state={height:i.props.defaultHeight||0,width:i.props.defaultWidth||0},i._onResize=function(){var f=i.props,d=f.disableHeight,g=f.disableWidth,v=f.onResize;if(i._parentNode){var y=i._parentNode.offsetHeight||0,E=i._parentNode.offsetWidth||0,k=window.getComputedStyle(i._parentNode)||{},x=parseInt(k.paddingLeft,10)||0,w=parseInt(k.paddingRight,10)||0,_=parseInt(k.paddingTop,10)||0,C=parseInt(k.paddingBottom,10)||0,T=y-_-C,F=E-x-w;(!d&&i.state.height!==T||!g&&i.state.width!==F)&&(i.setState({height:y-_-C,width:E-x-w}),v({height:y,width:E}))}},i._setRef=function(f){i._autoSizer=f},n),RC(i,a)}return RG(t,[{key:"componentDidMount",value:function(){var n=this.props.nonce;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._detectElementResize=NG(n),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var n=this.props,i=n.children,a=n.className,o=n.disableHeight,l=n.disableWidth,s=n.style,f=this.state,d=f.height,g=f.width,v={overflow:"visible"},y={},E=!1;return o||(d===0&&(E=!0),v.height=0,y.height=d),l||(g===0&&(E=!0),v.width=0,y.width=g),zt.createElement("div",{className:a,ref:this._setRef,style:PG({},v,s)},!E&&i(y))}}]),t}(zt.PureComponent);LG.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var DG=9007199254740991,$G="[object Arguments]",BG="[object Function]",zG="[object GeneratorFunction]",UG=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,jG=typeof self=="object"&&self&&self.Object===Object&&self,GG=UG||jG||Function("return this")();function WG(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var iE=Object.prototype,HG=iE.hasOwnProperty,HI=iE.toString,NC=GG.Symbol,qG=iE.propertyIsEnumerable,LC=NC?NC.isConcatSpreadable:void 0;function qI(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=VG),i||(i=[]);++a<o;){var l=e[a];t>0&&r(l)?t>1?qI(l,t-1,r,n,i):WG(i,l):n||(i[i.length]=l)}return i}function VG(e){return KG(e)||XG(e)||!!(LC&&e&&e[LC])}function YG(e){var t=e?e.length:0;return t?qI(e,1):[]}function XG(e){return ZG(e)&&HG.call(e,"callee")&&(!qG.call(e,"callee")||HI.call(e)==$G)}var KG=Array.isArray;function QG(e){return e!=null&&eW(e.length)&&!JG(e)}function ZG(e){return rW(e)&&QG(e)}function JG(e){var t=tW(e)?HI.call(e):"";return t==BG||t==zG}function eW(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=DG}function tW(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function rW(e){return!!e&&typeof e=="object"}var nW=YG;const iae=mi(nW);var DC=0/0,iW="[object Symbol]",aW=/^\s+|\s+$/g,oW=/^[-+]0x[0-9a-f]+$/i,uW=/^0b[01]+$/i,lW=/^0o[0-7]+$/i,sW=parseInt,fW=Object.prototype,cW=fW.toString;function hW(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}function $C(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function dW(e){return!!e&&typeof e=="object"}function pW(e){return typeof e=="symbol"||dW(e)&&cW.call(e)==iW}function Wb(e){if(typeof e=="number")return e;if(pW(e))return DC;if($C(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=$C(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(aW,"");var r=uW.test(e);return r||lW.test(e)?sW(e.slice(2),r?2:8):oW.test(e)?DC:+e}function vW(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=Wb(r),r=r===r?r:0),t!==void 0&&(t=Wb(t),t=t===t?t:0),hW(Wb(e),t,r)}var mW=vW;const aae=mi(mW);function bh(e){return e&&e.__esModule?e.default:e}function ra(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var VI={};ra(VI,"spectrum--darkest",()=>C_,e=>C_=e);var C_;C_="spectrum--darkest_256eeb";var yu={};ra(yu,"spectrum",()=>O_,e=>O_=e);ra(yu,"spectrum--medium",()=>k_,e=>k_=e);ra(yu,"spectrum--large",()=>M_,e=>M_=e);ra(yu,"spectrum--darkest",()=>R_,e=>R_=e);ra(yu,"spectrum--dark",()=>P_,e=>P_=e);ra(yu,"spectrum--light",()=>I_,e=>I_=e);ra(yu,"spectrum--lightest",()=>F_,e=>F_=e);var O_,k_,M_,R_,P_,I_,F_;O_="spectrum_9e130c";k_="spectrum--medium_9e130c";M_="spectrum--large_9e130c";R_="spectrum--darkest_9e130c";P_="spectrum--dark_9e130c";I_="spectrum--light_9e130c";F_="spectrum--lightest_9e130c";var YI={};ra(YI,"spectrum--large",()=>N_,e=>N_=e);var N_;N_="spectrum--large_c40598";var XI={};ra(XI,"spectrum--light",()=>L_,e=>L_=e);var L_;L_="spectrum--light_a40724";var KI={};ra(KI,"spectrum--medium",()=>D_,e=>D_=e);var D_;D_="spectrum--medium_4b172c";let oae={global:bh(yu),light:bh(XI),dark:bh(VI),medium:bh(KI),large:bh(YI)};var BC=Object.prototype.toString,QI=function(t){var r=BC.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&BC.call(t.callee)==="[object Function]"),n},Hb,zC;function gW(){if(zC)return Hb;zC=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=QI,i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),o=i.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(v){var y=v.constructor;return y&&y.prototype===v},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(typeof window>"u")return!1;for(var v in window)try{if(!f["$"+v]&&t.call(window,v)&&window[v]!==null&&typeof window[v]=="object")try{s(window[v])}catch{return!0}}catch{return!0}return!1}(),g=function(v){if(typeof window>"u"||!d)return s(v);try{return s(v)}catch{return!1}};e=function(y){var E=y!==null&&typeof y=="object",k=r.call(y)==="[object Function]",x=n(y),w=E&&r.call(y)==="[object String]",_=[];if(!E&&!k&&!x)throw new TypeError("Object.keys called on a non-object");var C=o&&k;if(w&&y.length>0&&!t.call(y,0))for(var T=0;T<y.length;++T)_.push(String(T));if(x&&y.length>0)for(var F=0;F<y.length;++F)_.push(String(F));else for(var L in y)!(C&&L==="prototype")&&t.call(y,L)&&_.push(String(L));if(a)for(var V=g(y),j=0;j<l.length;++j)!(V&&l[j]==="constructor")&&t.call(y,l[j])&&_.push(l[j]);return _}}return Hb=e,Hb}var yW=Array.prototype.slice,bW=QI,UC=Object.keys,J0=UC?function(t){return UC(t)}:gW(),jC=Object.keys;J0.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return bW(n)?jC(yW.call(n)):jC(n)})}else Object.keys=J0;return Object.keys||J0};var aE=J0,Yg=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==i||o.enumerable!==!0)return!1}return!0},xW=Yg,bu=function(){return xW()&&!!Symbol.toStringTag},GC=typeof Symbol<"u"&&Symbol,wW=Yg,oE=function(){return typeof GC!="function"||typeof Symbol!="function"||typeof GC("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:wW()},_W="Function.prototype.bind called on incompatible ",qb=Array.prototype.slice,SW=Object.prototype.toString,EW="[object Function]",AW=function(t){var r=this;if(typeof r!="function"||SW.call(r)!==EW)throw new TypeError(_W+r);for(var n=qb.call(arguments,1),i,a=function(){if(this instanceof i){var d=r.apply(this,n.concat(qb.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(qb.call(arguments)))},o=Math.max(0,r.length-n.length),l=[],s=0;s<o;s++)l.push("$"+s);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var f=function(){};f.prototype=r.prototype,i.prototype=new f,f.prototype=null}return i},TW=AW,uE=Function.prototype.bind||TW,CW=uE,OW=CW.call(Function.call,Object.prototype.hasOwnProperty),mr,Of=SyntaxError,ZI=Function,pf=TypeError,Vb=function(e){try{return ZI('"use strict"; return ('+e+").constructor;")()}catch{}},vl=Object.getOwnPropertyDescriptor;if(vl)try{vl({},"")}catch{vl=null}var Yb=function(){throw new pf},kW=vl?function(){try{return arguments.callee,Yb}catch{try{return vl(arguments,"callee").get}catch{return Yb}}}():Yb,Ns=oE(),Bo=Object.getPrototypeOf||function(e){return e.__proto__},Gs={},MW=typeof Uint8Array>"u"?mr:Bo(Uint8Array),vf={"%AggregateError%":typeof AggregateError>"u"?mr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?mr:ArrayBuffer,"%ArrayIteratorPrototype%":Ns?Bo([][Symbol.iterator]()):mr,"%AsyncFromSyncIteratorPrototype%":mr,"%AsyncFunction%":Gs,"%AsyncGenerator%":Gs,"%AsyncGeneratorFunction%":Gs,"%AsyncIteratorPrototype%":Gs,"%Atomics%":typeof Atomics>"u"?mr:Atomics,"%BigInt%":typeof BigInt>"u"?mr:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?mr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?mr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?mr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?mr:FinalizationRegistry,"%Function%":ZI,"%GeneratorFunction%":Gs,"%Int8Array%":typeof Int8Array>"u"?mr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?mr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?mr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ns?Bo(Bo([][Symbol.iterator]())):mr,"%JSON%":typeof JSON=="object"?JSON:mr,"%Map%":typeof Map>"u"?mr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ns?mr:Bo(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?mr:Promise,"%Proxy%":typeof Proxy>"u"?mr:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?mr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?mr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ns?mr:Bo(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?mr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ns?Bo(""[Symbol.iterator]()):mr,"%Symbol%":Ns?Symbol:mr,"%SyntaxError%":Of,"%ThrowTypeError%":kW,"%TypedArray%":MW,"%TypeError%":pf,"%Uint8Array%":typeof Uint8Array>"u"?mr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?mr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?mr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?mr:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?mr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?mr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?mr:WeakSet},RW=function e(t){var r;if(t==="%AsyncFunction%")r=Vb("async function () {}");else if(t==="%GeneratorFunction%")r=Vb("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Vb("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=Bo(i.prototype))}return vf[t]=r,r},WC={"%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"]},pp=uE,$m=OW,PW=pp.call(Function.call,Array.prototype.concat),IW=pp.call(Function.apply,Array.prototype.splice),HC=pp.call(Function.call,String.prototype.replace),Bm=pp.call(Function.call,String.prototype.slice),FW=pp.call(Function.call,RegExp.prototype.exec),NW=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,LW=/\\(\\)?/g,DW=function(t){var r=Bm(t,0,1),n=Bm(t,-1);if(r==="%"&&n!=="%")throw new Of("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Of("invalid intrinsic syntax, expected opening `%`");var i=[];return HC(t,NW,function(a,o,l,s){i[i.length]=l?HC(s,LW,"$1"):o||a}),i},$W=function(t,r){var n=t,i;if($m(WC,n)&&(i=WC[n],n="%"+i[0]+"%"),$m(vf,n)){var a=vf[n];if(a===Gs&&(a=RW(n)),typeof a>"u"&&!r)throw new pf("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new Of("intrinsic "+t+" does not exist!")},xu=function(t,r){if(typeof t!="string"||t.length===0)throw new pf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new pf('"allowMissing" argument must be a boolean');if(FW(/^%?[^%]*%?$/,t)===null)throw new Of("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=DW(t),i=n.length>0?n[0]:"",a=$W("%"+i+"%",r),o=a.name,l=a.value,s=!1,f=a.alias;f&&(i=f[0],IW(n,PW([0,1],f)));for(var d=1,g=!0;d<n.length;d+=1){var v=n[d],y=Bm(v,0,1),E=Bm(v,-1);if((y==='"'||y==="'"||y==="`"||E==='"'||E==="'"||E==="`")&&y!==E)throw new Of("property names with quotes must have matching quotes");if((v==="constructor"||!g)&&(s=!0),i+="."+v,o="%"+i+"%",$m(vf,o))l=vf[o];else if(l!=null){if(!(v in l)){if(!r)throw new pf("base intrinsic for "+t+" exists, but the property is not available.");return}if(vl&&d+1>=n.length){var k=vl(l,v);g=!!k,g&&"get"in k&&!("originalValue"in k.get)?l=k.get:l=l[v]}else g=$m(l,v),l=l[v];g&&!s&&(vf[o]=l)}}return l},JI={exports:{}};(function(e){var t=uE,r=xu,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(i,n),o=r("%Object.getOwnPropertyDescriptor%",!0),l=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(g){var v=a(t,i,arguments);if(o&&l){var y=o(v,"length");y.configurable&&l(v,"length",{value:1+s(0,g.length-(arguments.length-1))})}return v};var f=function(){return a(t,n,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f})(JI);var Xg=JI.exports,e4=xu,t4=Xg,BW=t4(e4("String.prototype.indexOf")),Ta=function(t,r){var n=e4(t,!!r);return typeof n=="function"&&BW(t,".prototype.")>-1?t4(n):n},zW=bu(),UW=Ta,$_=UW("Object.prototype.toString"),Kg=function(t){return zW&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:$_(t)==="[object Arguments]"},r4=function(t){return Kg(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&$_(t)!=="[object Array]"&&$_(t.callee)==="[object Function]"},jW=function(){return Kg(arguments)}();Kg.isLegacyArguments=r4;var n4=jW?Kg:r4,GW=xu,B_=GW("%Object.defineProperty%",!0),z_=function(){if(B_)try{return B_({},"a",{value:1}),!0}catch{return!1}return!1};z_.hasArrayLengthDefineBug=function(){if(!z_())return null;try{return B_([],"length",{value:1}).length!==1}catch{return!0}};var WW=z_,HW=aE,qW=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",VW=Object.prototype.toString,YW=Array.prototype.concat,i4=Object.defineProperty,XW=function(e){return typeof e=="function"&&VW.call(e)==="[object Function]"},KW=WW(),a4=i4&&KW,QW=function(e,t,r,n){t in e&&(!XW(n)||!n())||(a4?i4(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},o4=function(e,t){var r=arguments.length>2?arguments[2]:{},n=HW(t);qW&&(n=YW.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i<n.length;i+=1)QW(e,n[i],t[n[i]],r[n[i]])};o4.supportsDescriptors=!!a4;var Ul=o4,qC=function(e){return e!==e},u4=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||qC(t)&&qC(r))},ZW=u4,l4=function(){return typeof Object.is=="function"?Object.is:ZW},JW=l4,eH=Ul,tH=function(){var t=JW();return eH(Object,{is:t},{is:function(){return Object.is!==t}}),t},rH=Ul,nH=Xg,iH=u4,s4=l4,aH=tH,f4=nH(s4(),Object);rH(f4,{getPolyfill:s4,implementation:iH,shim:aH});var oH=f4,U_=Ta,c4=bu(),h4,d4,j_,G_;if(c4){h4=U_("Object.prototype.hasOwnProperty"),d4=U_("RegExp.prototype.exec"),j_={};var Xb=function(){throw j_};G_={toString:Xb,valueOf:Xb},typeof Symbol.toPrimitive=="symbol"&&(G_[Symbol.toPrimitive]=Xb)}var uH=U_("Object.prototype.toString"),lH=Object.getOwnPropertyDescriptor,sH="[object RegExp]",fH=c4?function(t){if(!t||typeof t!="object")return!1;var r=lH(t,"lastIndex"),n=r&&h4(r,"value");if(!n)return!1;try{d4(t,G_)}catch(i){return i===j_}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:uH(t)===sH},p4={exports:{}},Nd=function(){return typeof function(){}.name=="string"},ud=Object.getOwnPropertyDescriptor;if(ud)try{ud([],"length")}catch{ud=null}Nd.functionsHaveConfigurableNames=function(){if(!Nd()||!ud)return!1;var t=ud(function(){},"name");return!!t&&!!t.configurable};var cH=Function.prototype.bind;Nd.boundFunctionsHaveNames=function(){return Nd()&&typeof cH=="function"&&function(){}.bind().name!==""};var hH=Nd;(function(e){var t=hH.functionsHaveConfigurableNames(),r=Object,n=TypeError;e.exports=function(){if(this!=null&&this!==r(this))throw new n("RegExp.prototype.flags getter called on non-object");var a="";return this.hasIndices&&(a+="d"),this.global&&(a+="g"),this.ignoreCase&&(a+="i"),this.multiline&&(a+="m"),this.dotAll&&(a+="s"),this.unicode&&(a+="u"),this.sticky&&(a+="y"),a},t&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})})(p4);var v4=p4.exports,dH=v4,pH=Ul.supportsDescriptors,vH=Object.getOwnPropertyDescriptor,m4=function(){if(pH&&/a/mig.flags==="gim"){var t=vH(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var r="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){r+="d"}}),Object.defineProperty(n,"sticky",{get:function(){r+="y"}}),r==="dy")return t.get}}return dH},mH=Ul.supportsDescriptors,gH=m4,yH=Object.getOwnPropertyDescriptor,bH=Object.defineProperty,xH=TypeError,VC=Object.getPrototypeOf,wH=/a/,_H=function(){if(!mH||!VC)throw new xH("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=gH(),r=VC(wH),n=yH(r,"flags");return(!n||n.get!==t)&&bH(r,"flags",{configurable:!0,enumerable:!1,get:t}),t},SH=Ul,EH=Xg,AH=v4,g4=m4,TH=_H,y4=EH(g4());SH(y4,{getPolyfill:g4,implementation:AH,shim:TH});var CH=y4,OH={}.toString,b4=Array.isArray||function(e){return OH.call(e)=="[object Array]"},kH=Date.prototype.getDay,MH=function(t){try{return kH.call(t),!0}catch{return!1}},RH=Object.prototype.toString,PH="[object Date]",IH=bu(),FH=function(t){return typeof t!="object"||t===null?!1:IH?MH(t):RH.call(t)===PH},NH=String.prototype.valueOf,LH=function(t){try{return NH.call(t),!0}catch{return!1}},DH=Object.prototype.toString,$H="[object String]",BH=bu(),x4=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:BH?LH(t):DH.call(t)===$H},zH=Number.prototype.toString,UH=function(t){try{return zH.call(t),!0}catch{return!1}},jH=Object.prototype.toString,GH="[object Number]",WH=bu(),HH=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:WH?UH(t):jH.call(t)===GH},w4=Ta,qH=w4("Boolean.prototype.toString"),VH=w4("Object.prototype.toString"),YH=function(t){try{return qH(t),!0}catch{return!1}},XH="[object Boolean]",KH=bu(),QH=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:KH&&Symbol.toStringTag in t?YH(t):VH(t)===XH},W_={exports:{}},ZH=Object.prototype.toString,JH=oE();if(JH){var eq=Symbol.prototype.toString,tq=/^Symbol\(.*\)$/,rq=function(t){return typeof t.valueOf()!="symbol"?!1:tq.test(eq.call(t))};W_.exports=function(t){if(typeof t=="symbol")return!0;if(ZH.call(t)!=="[object Symbol]")return!1;try{return rq(t)}catch{return!1}}}else W_.exports=function(t){return!1};var nq=W_.exports,H_={exports:{}},YC=typeof BigInt<"u"&&BigInt,iq=function(){return typeof YC=="function"&&typeof BigInt=="function"&&typeof YC(42)=="bigint"&&typeof BigInt(42)=="bigint"},aq=iq();if(aq){var oq=BigInt.prototype.valueOf,uq=function(t){try{return oq.call(t),!0}catch{}return!1};H_.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:uq(t)}}else H_.exports=function(t){return!1};var lq=H_.exports,sq=x4,fq=HH,cq=QH,hq=nq,dq=lq,pq=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(sq(t))return"String";if(fq(t))return"Number";if(cq(t))return"Boolean";if(hq(t))return"Symbol";if(dq(t))return"BigInt"},lE=typeof Map=="function"&&Map.prototype?Map:null,vq=typeof Set=="function"&&Set.prototype?Set:null,zm;lE||(zm=function(t){return!1});var _4=lE?Map.prototype.has:null,XC=vq?Set.prototype.has:null;!zm&&!_4&&(zm=function(t){return!1});var S4=zm||function(t){if(!t||typeof t!="object")return!1;try{if(_4.call(t),XC)try{XC.call(t)}catch{return!0}return t instanceof lE}catch{}return!1},mq=typeof Map=="function"&&Map.prototype?Map:null,sE=typeof Set=="function"&&Set.prototype?Set:null,Um;sE||(Um=function(t){return!1});var KC=mq?Map.prototype.has:null,E4=sE?Set.prototype.has:null;!Um&&!E4&&(Um=function(t){return!1});var A4=Um||function(t){if(!t||typeof t!="object")return!1;try{if(E4.call(t),KC)try{KC.call(t)}catch{return!0}return t instanceof sE}catch{}return!1},jm=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,QC=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Gm;jm||(Gm=function(t){return!1});var q_=jm?jm.prototype.has:null,Kb=QC?QC.prototype.has:null;!Gm&&!q_&&(Gm=function(t){return!1});var gq=Gm||function(t){if(!t||typeof t!="object")return!1;try{if(q_.call(t,q_),Kb)try{Kb.call(t,Kb)}catch{return!0}return t instanceof jm}catch{}return!1},V_={exports:{}},yq=xu,T4=Ta,bq=yq("%WeakSet%",!0),Qb=T4("WeakSet.prototype.has",!0);if(Qb){var Zb=T4("WeakMap.prototype.has",!0);V_.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Qb(t,Qb),Zb)try{Zb(t,Zb)}catch{return!0}return t instanceof bq}catch{}return!1}}else V_.exports=function(t){return!1};var xq=V_.exports,wq=S4,_q=A4,Sq=gq,Eq=xq,Aq=function(t){if(t&&typeof t=="object"){if(wq(t))return"Map";if(_q(t))return"Set";if(Sq(t))return"WeakMap";if(Eq(t))return"WeakSet"}return!1},em={exports:{}},ZC=n4;if(oE()||Yg()){var Jb=Symbol.iterator;em.exports=function(t){if(t!=null&&typeof t[Jb]<"u")return t[Jb]();if(ZC(t))return Array.prototype[Jb].call(t)}}else{var Tq=b4,Cq=x4,JC=xu,Oq=JC("%Map%",!0),kq=JC("%Set%",!0),Vi=Ta,eO=Vi("Array.prototype.push"),tO=Vi("String.prototype.charCodeAt"),Mq=Vi("String.prototype.slice"),Rq=function(t,r){var n=t.length;if(r+1>=n)return r+1;var i=tO(t,r);if(i<55296||i>56319)return r+1;var a=tO(t,r+1);return a<56320||a>57343?r+1:r+2},ex=function(t){var r=0;return{next:function(){var i=r>=t.length,a;return i||(a=t[r],r+=1),{done:i,value:a}}}},rO=function(t,r){if(Tq(t)||ZC(t))return ex(t);if(Cq(t)){var n=0;return{next:function(){var a=Rq(t,n),o=Mq(t,n,a);return n=a,{done:a>t.length,value:o}}}}if(r&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!Oq&&!kq)em.exports=function(t){if(t!=null)return rO(t,!0)};else{var Pq=S4,Iq=A4,nO=Vi("Map.prototype.forEach",!0),iO=Vi("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var aO=Vi("Map.prototype.iterator",!0),oO=Vi("Set.prototype.iterator",!0),uO=function(e){var t=!1;return{next:function(){try{return{done:t,value:t?void 0:e.next()}}catch{return t=!0,{done:!0,value:void 0}}}}};var lO=Vi("Map.prototype.@@iterator",!0)||Vi("Map.prototype._es6-shim iterator_",!0),sO=Vi("Set.prototype.@@iterator",!0)||Vi("Set.prototype._es6-shim iterator_",!0),Fq=function(t){if(Pq(t)){if(aO)return uO(aO(t));if(lO)return lO(t);if(nO){var r=[];return nO(t,function(i,a){eO(r,[a,i])}),ex(r)}}if(Iq(t)){if(oO)return uO(oO(t));if(sO)return sO(t);if(iO){var n=[];return iO(t,function(i){eO(n,i)}),ex(n)}}};em.exports=function(t){return Fq(t)||rO(t)}}}var Nq=em.exports;const Lq={},Dq=Object.freeze(Object.defineProperty({__proto__:null,default:Lq},Symbol.toStringTag,{value:"Module"})),Y_=Rl(Dq);var fE=typeof Map=="function"&&Map.prototype,tx=Object.getOwnPropertyDescriptor&&fE?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Wm=fE&&tx&&typeof tx.get=="function"?tx.get:null,$q=fE&&Map.prototype.forEach,cE=typeof Set=="function"&&Set.prototype,rx=Object.getOwnPropertyDescriptor&&cE?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Hm=cE&&rx&&typeof rx.get=="function"?rx.get:null,Bq=cE&&Set.prototype.forEach,zq=typeof WeakMap=="function"&&WeakMap.prototype,ld=zq?WeakMap.prototype.has:null,Uq=typeof WeakSet=="function"&&WeakSet.prototype,sd=Uq?WeakSet.prototype.has:null,jq=typeof WeakRef=="function"&&WeakRef.prototype,fO=jq?WeakRef.prototype.deref:null,Gq=Boolean.prototype.valueOf,Wq=Object.prototype.toString,Hq=Function.prototype.toString,qq=String.prototype.match,hE=String.prototype.slice,Yo=String.prototype.replace,Vq=String.prototype.toUpperCase,cO=String.prototype.toLowerCase,C4=RegExp.prototype.test,hO=Array.prototype.concat,ha=Array.prototype.join,Yq=Array.prototype.slice,dO=Math.floor,X_=typeof BigInt=="function"?BigInt.prototype.valueOf:null,nx=Object.getOwnPropertySymbols,K_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,kf=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Bn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===kf||"symbol")?Symbol.toStringTag:null,O4=Object.prototype.propertyIsEnumerable,pO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function vO(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||C4.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-dO(-e):dO(e);if(n!==e){var i=String(n),a=hE.call(t,i.length+1);return Yo.call(i,r,"$&_")+"."+Yo.call(Yo.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Yo.call(t,r,"$&_")}var Q_=Y_,mO=Q_.custom,gO=M4(mO)?mO:null,Xq=function e(t,r,n,i){var a=r||{};if(zo(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(zo(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=zo(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(zo(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(zo(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.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 P4(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?vO(t,s):s}if(typeof t=="bigint"){var f=String(t)+"n";return l?vO(t,f):f}var d=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return Z_(t)?"[Array]":"[Object]";var g=dV(a,n);if(typeof i>"u")i=[];else if(R4(i,t)>=0)return"[Circular]";function v(Fe,Le,ut){if(Le&&(i=Yq.call(i),i.push(Le)),ut){var nt={depth:a.depth};return zo(a,"quoteStyle")&&(nt.quoteStyle=a.quoteStyle),e(Fe,nt,n+1,i)}return e(Fe,a,n+1,i)}if(typeof t=="function"&&!yO(t)){var y=iV(t),E=d0(t,v);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(E.length>0?" { "+ha.call(E,", ")+" }":"")}if(M4(t)){var k=kf?Yo.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):K_.call(t);return typeof t=="object"&&!kf?xh(k):k}if(fV(t)){for(var x="<"+cO.call(String(t.nodeName)),w=t.attributes||[],_=0;_<w.length;_++)x+=" "+w[_].name+"="+k4(Kq(w[_].value),"double",a);return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="</"+cO.call(String(t.nodeName))+">",x}if(Z_(t)){if(t.length===0)return"[]";var C=d0(t,v);return g&&!hV(C)?"["+J_(C,g)+"]":"[ "+ha.call(C,", ")+" ]"}if(Zq(t)){var T=d0(t,v);return!("cause"in Error.prototype)&&"cause"in t&&!O4.call(t,"cause")?"{ ["+String(t)+"] "+ha.call(hO.call("[cause]: "+v(t.cause),T),", ")+" }":T.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ha.call(T,", ")+" }"}if(typeof t=="object"&&o){if(gO&&typeof t[gO]=="function"&&Q_)return Q_(t,{depth:d-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(aV(t)){var F=[];return $q.call(t,function(Fe,Le){F.push(v(Le,t,!0)+" => "+v(Fe,t))}),bO("Map",Wm.call(t),F,g)}if(lV(t)){var L=[];return Bq.call(t,function(Fe){L.push(v(Fe,t))}),bO("Set",Hm.call(t),L,g)}if(oV(t))return ix("WeakMap");if(sV(t))return ix("WeakSet");if(uV(t))return ix("WeakRef");if(eV(t))return xh(v(Number(t)));if(rV(t))return xh(v(X_.call(t)));if(tV(t))return xh(Gq.call(t));if(Jq(t))return xh(v(String(t)));if(!Qq(t)&&!yO(t)){var V=d0(t,v),j=pO?pO(t)===Object.prototype:t instanceof Object||t.constructor===Object,te=t instanceof Object?"":"null prototype",ge=!j&&Bn&&Object(t)===t&&Bn in t?hE.call(wu(t),8,-1):te?"Object":"",me=j||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",ke=me+(ge||te?"["+ha.call(hO.call([],ge||[],te||[]),": ")+"] ":"");return V.length===0?ke+"{}":g?ke+"{"+J_(V,g)+"}":ke+"{ "+ha.call(V,", ")+" }"}return String(t)};function k4(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function Kq(e){return Yo.call(String(e),/"/g,"&quot;")}function Z_(e){return wu(e)==="[object Array]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function Qq(e){return wu(e)==="[object Date]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function yO(e){return wu(e)==="[object RegExp]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function Zq(e){return wu(e)==="[object Error]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function Jq(e){return wu(e)==="[object String]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function eV(e){return wu(e)==="[object Number]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function tV(e){return wu(e)==="[object Boolean]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function M4(e){if(kf)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!K_)return!1;try{return K_.call(e),!0}catch{}return!1}function rV(e){if(!e||typeof e!="object"||!X_)return!1;try{return X_.call(e),!0}catch{}return!1}var nV=Object.prototype.hasOwnProperty||function(e){return e in this};function zo(e,t){return nV.call(e,t)}function wu(e){return Wq.call(e)}function iV(e){if(e.name)return e.name;var t=qq.call(Hq.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function R4(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function aV(e){if(!Wm||!e||typeof e!="object")return!1;try{Wm.call(e);try{Hm.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function oV(e){if(!ld||!e||typeof e!="object")return!1;try{ld.call(e,ld);try{sd.call(e,sd)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function uV(e){if(!fO||!e||typeof e!="object")return!1;try{return fO.call(e),!0}catch{}return!1}function lV(e){if(!Hm||!e||typeof e!="object")return!1;try{Hm.call(e);try{Wm.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function sV(e){if(!sd||!e||typeof e!="object")return!1;try{sd.call(e,sd);try{ld.call(e,ld)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function fV(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function P4(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return P4(hE.call(e,0,t.maxStringLength),t)+n}var i=Yo.call(Yo.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,cV);return k4(i,"single",t)}function cV(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Vq.call(t.toString(16))}function xh(e){return"Object("+e+")"}function ix(e){return e+" { ? }"}function bO(e,t,r,n){var i=n?J_(r,n):ha.call(r,", ");return e+" ("+t+") {"+i+"}"}function hV(e){for(var t=0;t<e.length;t++)if(R4(e[t],`
846
- `)>=0)return!1;return!0}function dV(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=ha.call(Array(e.indent+1)," ");else return null;return{base:r,prev:ha.call(Array(t+1),r)}}function J_(e,t){if(e.length===0)return"";var r=`
845
+ `),E}return Fm(function(){s.current=e,f.current=g,d.current=v,l.current=void 0}),Fm(function(){function E(){try{var M=r.getState();if(M===f.current)return;var x=s.current(M);if(t(x,d.current))return;d.current=x,f.current=M}catch(w){l.current=w}a()}return o.onStateChange=E,o.trySubscribe(),E(),function(){return o.tryUnsubscribe()}},[r,o]),v}function TI(e){e===void 0&&(e=Sa);var t=e===Sa?EI:function(){return Gt.useContext(e)};return function(n,i){i===void 0&&(i=$U);var a=t(),o=a.store,l=a.subscription,s=BU(n,i,o,l);return Gt.useDebugValue(s),s}}var zU=TI();F9(dS.unstable_batchedUpdates);const Zie=Object.freeze(Object.defineProperty({__proto__:null,Provider:D9,ReactReduxContext:Sa,batch:dS.unstable_batchedUpdates,connect:QS,connectAdvanced:_I,createDispatchHook:CI,createSelectorHook:TI,createStoreHook:ZS,shallowEqual:X0,useDispatch:DU,useSelector:zU,useStore:AI},Symbol.toStringTag,{value:"Module"}));function UU(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}function OI(e,t){var r=Gt.useState(function(){return{inputs:t,result:e()}})[0],n=Gt.useRef(!0),i=Gt.useRef(r),a=n.current||!!(t&&i.current.inputs&&UU(t,i.current.inputs)),o=a?i.current:{inputs:t,result:e()};return Gt.useEffect(function(){n.current=!1,i.current=o},[o]),o.result}function jU(e,t){return OI(function(){return e},t)}var Wn=OI,gn=jU,GU=!0,Db="Invariant failed";function WU(e,t){if(!e){if(GU)throw new Error(Db);var r=typeof t=="function"?t():t,n=r?Db+": "+r:Db;throw new Error(n)}}var ef=function(t){var r=t.top,n=t.right,i=t.bottom,a=t.left,o=n-a,l=i-r,s={top:r,right:n,bottom:i,left:a,width:o,height:l,x:a,y:r,center:{x:(n+a)/2,y:(i+r)/2}};return s},MI=function(t,r){return{top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}},yT=function(t,r){return{top:t.top+r.top,left:t.left+r.left,bottom:t.bottom-r.bottom,right:t.right-r.right}},HU=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},$b={top:0,right:0,bottom:0,left:0},JS=function(t){var r=t.borderBox,n=t.margin,i=n===void 0?$b:n,a=t.border,o=a===void 0?$b:a,l=t.padding,s=l===void 0?$b:l,f=ef(MI(r,i)),d=ef(yT(r,o)),g=ef(yT(d,s));return{marginBox:f,borderBox:ef(r),paddingBox:d,contentBox:g,margin:i,border:o,padding:s}},Ai=function(t){var r=t.slice(0,-2),n=t.slice(-2);if(n!=="px")return 0;var i=Number(r);return isNaN(i)&&WU(!1),i},qU=function(){return{x:window.pageXOffset,y:window.pageYOffset}},VU=function(t,r){var n=t.borderBox,i=t.border,a=t.margin,o=t.padding,l=HU(n,r);return JS({borderBox:l,border:i,margin:a,padding:o})},w_=function(t,r){return r===void 0&&(r=qU()),VU(t,r)},kI=function(t,r){var n={top:Ai(r.marginTop),right:Ai(r.marginRight),bottom:Ai(r.marginBottom),left:Ai(r.marginLeft)},i={top:Ai(r.paddingTop),right:Ai(r.paddingRight),bottom:Ai(r.paddingBottom),left:Ai(r.paddingLeft)},a={top:Ai(r.borderTopWidth),right:Ai(r.borderRightWidth),bottom:Ai(r.borderBottomWidth),left:Ai(r.borderLeftWidth)};return JS({borderBox:t,margin:n,padding:i,border:a})},RI=function(t){var r=t.getBoundingClientRect(),n=window.getComputedStyle(t);return kI(r,n)},bT=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function YU(e,t){return!!(e===t||bT(e)&&bT(t))}function XU(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!YU(e[r],t[r]))return!1;return!0}function tn(e,t){t===void 0&&(t=XU);var r,n=[],i,a=!1;function o(){for(var l=[],s=0;s<arguments.length;s++)l[s]=arguments[s];return a&&r===this&&t(l,n)||(i=e.apply(this,l),a=!0,r=this,n=l),i}return o}var KU=function(t){var r=[],n=null,i=function(){for(var o=arguments.length,l=new Array(o),s=0;s<o;s++)l[s]=arguments[s];r=l,!n&&(n=requestAnimationFrame(function(){n=null,t.apply(void 0,r)}))};return i.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},i};const QU=KU;function PI(e,t){}PI.bind(null,"warn");PI.bind(null,"error");function ZU(){}function JU(e,t){return ti({},e,{},t)}function ej(e,t,r){var n=t.map(function(i){var a=JU(r,i.options);return e.addEventListener(i.eventName,i.fn,a),function(){e.removeEventListener(i.eventName,i.fn,a)}});return function(){n.forEach(function(a){a()})}}var tj="Invariant failed";function Nm(e){this.message=e}Nm.prototype.toString=function(){return this.message};function pi(e,t){if(!e)throw new Nm(tj)}(function(e){Qd(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.callbacks=null,n.unbind=ZU,n.onWindowError=function(l){var s=n.getCallbacks();s.isDragging()&&s.tryAbort();var f=l.error;f instanceof Nm&&l.preventDefault()},n.getCallbacks=function(){if(!n.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return n.callbacks},n.setCallbacks=function(l){n.callbacks=l},n}var r=t.prototype;return r.componentDidMount=function(){this.unbind=ej(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(i){if(i instanceof Nm){this.setState({});return}throw i},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},t})(wr.Component);var El={x:0,y:0},rj=function(t,r){return{x:t.x-r.x,y:t.y-r.y}},nj=function(t,r){return t.x===r.x&&t.y===r.y},ij=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},aj=function(t,r,n){var i;return n===void 0&&(n=0),i={},i[t]=r,i[t==="x"?"y":"x"]=n,i},oj=function(e,t){var r=ef({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 r.width<=0||r.height<=0?null:r},uj=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},lj={top:0,right:0,bottom:0,left:0},sj=function(t,r){return r?uj(t,r.scroll.diff.displacement):t},fj=function(t,r,n){if(n&&n.increasedBy){var i;return ti({},t,(i={},i[r.end]=t[r.end]+n.increasedBy[r.line],i))}return t},cj=function(t,r){return r&&r.shouldClipSubject?oj(r.pageMarginBox,t):ef(t)},hj=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,i=e.frame,a=sj(t.marginBox,i),o=fj(a,n,r),l=cj(o,i);return{page:t,withPlaceholder:r,active:l}};function II(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function dj(e,t){if(e.findIndex)return e.findIndex(t);for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function FI(e,t){if(e.find)return e.find(t);var r=dj(e,t);if(r!==-1)return e[r]}tn(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})});tn(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})});var pj=tn(function(e){return II(e)}),vj=tn(function(e){return II(e)});tn(function(e,t){var r=vj(t).filter(function(n){return e===n.descriptor.droppableId}).sort(function(n,i){return n.descriptor.index-i.descriptor.index});return r});function mj(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}tn(function(e,t){return t.filter(function(r){return r.descriptor.id!==e.descriptor.id})});var gj={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},yj={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};tn(function(t,r){var n=r[t.line];return{value:n,point:aj(t.line,n)}});var K0=function(e){var t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null},bj=function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}},xj=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},eE={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Id={opacity:{drop:0,combining:.7},scale:{drop:.75}},wj={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Zu=wj.outOfTheWay+"s "+eE.outOfTheWay,Q0={fluid:"opacity "+Zu,snap:"transform "+Zu+", opacity "+Zu,drop:function(t){var r=t+"s "+eE.drop;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+Zu,placeholder:"height "+Zu+", width "+Zu+", margin "+Zu},xT=function(t){return nj(t,El)?null:"translate("+t.x+"px, "+t.y+"px)"},__={moveTo:xT,drop:function(t,r){var n=xT(t);return n?r?n+" scale("+Id.scale.drop+")":n:null}},NI=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,i=e.width,a=rj({x:r,y:t},{x:i,y:n}),o={x:Math.max(0,a.x),y:Math.max(0,a.y)};return o},_j=function(){var e=document.documentElement;return e||pi(!1),e},Sj=function(){var e=_j(),t=NI({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t};tn(function(e){return pj(e).filter(function(t){return!(!t.isEnabled||!t.frame)})});var Ej="data-rbd",wT={contextId:Ej+"-scroll-container-context-id"},ad=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Gt.useLayoutEffect:Gt.useEffect,LI=wr.createContext(null),Aj=0,Cj={separator:"::"};function DI(e,t){return t===void 0&&(t=Cj),Wn(function(){return""+e+t.separator+Aj++},[t.separator,e])}var tE=wr.createContext(null);function Tj(e){var t=Gt.useRef(e);return Gt.useEffect(function(){t.current=e}),t}var Oj=9,Mj=13,kj=33,Rj=34,Pj=35,Ij=36,f0;f0={},f0[Mj]=!0,f0[Oj]=!0;(function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],r=FI(t,function(n){return"on"+n in document});return r||e})();var Is;Is={},Is[Rj]=!0,Is[kj]=!0,Is[Ij]=!0,Is[Pj]=!0;(function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],r=FI(t,function(n){return n in Element.prototype});return r||e})();var $I=function(t){return function(r){return t===r}},Fj=$I("scroll"),Nj=$I("auto"),_T=function(t,r){return r(t.overflowX)||r(t.overflowY)},Lj=function(t){var r=window.getComputedStyle(t),n={overflowX:r.overflowX,overflowY:r.overflowY};return _T(n,Fj)||_T(n,Nj)},Dj=function(){return!1},$j=function e(t){return t==null?null:t===document.body?Dj()?t:null:t===document.documentElement?null:Lj(t)?t:e(t.parentElement)},S_=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Bj=function e(t){if(!t)return!1;var r=window.getComputedStyle(t);return r.position==="fixed"?!0:e(t.parentElement)},zj=function(e){var t=$j(e),r=Bj(e);return{closestScrollable:t,isFixedOnPage:r}},Uj=function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,a=e.direction,o=e.client,l=e.page,s=e.closest,f=function(){if(!s)return null;var y=s.scrollSize,E=s.client,M=NI({scrollHeight:y.scrollHeight,scrollWidth:y.scrollWidth,height:E.paddingBox.height,width:E.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:E,scrollSize:y,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:M,diff:{value:El,displacement:El}}}}(),d=a==="vertical"?gj:yj,g=hj({page:l,withPlaceholder:null,axis:d,frame:f}),v={descriptor:t,isCombineEnabled:n,isFixedOnPage:i,axis:d,isEnabled:r,client:o,page:l,frame:f,subject:g};return v},jj=function(t,r){var n=RI(t);if(!r||t!==r)return n;var i=n.paddingBox.top-r.scrollTop,a=n.paddingBox.left-r.scrollLeft,o=i+r.scrollHeight,l=a+r.scrollWidth,s={top:i,right:l,bottom:o,left:a},f=MI(s,n.border),d=JS({borderBox:f,margin:n.margin,border:n.border,padding:n.padding});return d},Gj=function(e){var t=e.ref,r=e.descriptor,n=e.env,i=e.windowScroll,a=e.direction,o=e.isDropDisabled,l=e.isCombineEnabled,s=e.shouldClipSubject,f=n.closestScrollable,d=jj(t,f),g=w_(d,i),v=function(){if(!f)return null;var E=RI(f),M={scrollHeight:f.scrollHeight,scrollWidth:f.scrollWidth};return{client:E,page:w_(E,i),scroll:S_(f),scrollSize:M,shouldClipSubject:s}}(),y=Uj({descriptor:r,isEnabled:!o,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:a,client:d,page:g,closest:v});return y},Wj={passive:!1},Hj={passive:!0},ST=function(e){return e.shouldPublishImmediately?Wj:Hj};function Lm(e){var t=Gt.useContext(e);return t||pi(!1),t}var c0=function(t){return t&&t.env.closestScrollable||null};function qj(e){var t=Gt.useRef(null),r=Lm(tE),n=DI("droppable"),i=r.registry,a=r.marshal,o=Tj(e),l=Wn(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),s=Gt.useRef(l),f=Wn(function(){return tn(function(C,F){t.current||pi(!1);var L={x:C,y:F};a.updateDroppableScroll(l.id,L)})},[l.id,a]),d=gn(function(){var C=t.current;return!C||!C.env.closestScrollable?El:S_(C.env.closestScrollable)},[]),g=gn(function(){var C=d();f(C.x,C.y)},[d,f]),v=Wn(function(){return QU(g)},[g]),y=gn(function(){var C=t.current,F=c0(C);C&&F||pi(!1);var L=C.scrollOptions;if(L.shouldPublishImmediately){g();return}v()},[v,g]),E=gn(function(C,F){t.current&&pi(!1);var L=o.current,V=L.getDroppableRef();V||pi(!1);var j=zj(V),te={ref:V,descriptor:l,env:j,scrollOptions:F};t.current=te;var ge=Gj({ref:V,descriptor:l,env:j,windowScroll:C,direction:L.direction,isDropDisabled:L.isDropDisabled,isCombineEnabled:L.isCombineEnabled,shouldClipSubject:!L.ignoreContainerClipping}),me=j.closestScrollable;return me&&(me.setAttribute(wT.contextId,r.contextId),me.addEventListener("scroll",y,ST(te.scrollOptions))),ge},[r.contextId,l,y,o]),M=gn(function(){var C=t.current,F=c0(C);return C&&F||pi(!1),S_(F)},[]),x=gn(function(){var C=t.current;C||pi(!1);var F=c0(C);t.current=null,F&&(v.cancel(),F.removeAttribute(wT.contextId),F.removeEventListener("scroll",y,ST(C.scrollOptions)))},[y,v]),w=gn(function(C){var F=t.current;F||pi(!1);var L=c0(F);L||pi(!1),L.scrollTop+=C.y,L.scrollLeft+=C.x},[]),_=Wn(function(){return{getDimensionAndWatchScroll:E,getScrollWhileDragging:M,dragStopped:x,scroll:w}},[x,E,M,w]),T=Wn(function(){return{uniqueId:n,descriptor:l,callbacks:_}},[_,l,n]);ad(function(){return s.current=T.descriptor,i.droppable.register(T),function(){t.current&&x(),i.droppable.unregister(T)}},[_,l,x,T,a,i.droppable]),ad(function(){t.current&&a.updateDroppableIsEnabled(s.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),ad(function(){t.current&&a.updateDroppableIsCombineEnabled(s.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function Bb(){}var ET={width:0,height:0,margin:lj},Vj=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate;return r||i==="close"?ET:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},Yj=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate,a=Vj({isAnimatingOpenOnMount:r,placeholder:n,animate:i});return{display:n.display,boxSizing:"border-box",width:a.width,height:a.height,marginTop:a.margin.top,marginRight:a.margin.right,marginBottom:a.margin.bottom,marginLeft:a.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:i!=="none"?Q0.placeholder:null}};function Xj(e){var t=Gt.useRef(null),r=gn(function(){t.current&&(clearTimeout(t.current),t.current=null)},[]),n=e.animate,i=e.onTransitionEnd,a=e.onClose,o=e.contextId,l=Gt.useState(e.animate==="open"),s=l[0],f=l[1];Gt.useEffect(function(){return s?n!=="open"?(r(),f(!1),Bb):t.current?Bb:(t.current=setTimeout(function(){t.current=null,f(!1)}),r):Bb},[n,s,r]);var d=gn(function(v){v.propertyName==="height"&&(i(),n==="close"&&a())},[n,a,i]),g=Yj({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return wr.createElement(e.placeholder.tagName,{style:g,"data-rbd-placeholder-context-id":o,onTransitionEnd:d,ref:e.innerRef})}var Kj=wr.memo(Xj),rE=wr.createContext(null),Qj=function(e){Qd(t,e);function t(){for(var n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n=e.call.apply(e,[this].concat(a))||this,n.state={isVisible:!!n.props.on,data:n.props.on,animate:n.props.shouldAnimate&&n.props.on?"open":"none"},n.onClose=function(){n.state.animate==="close"&&n.setState({isVisible:!1})},n}t.getDerivedStateFromProps=function(i,a){return i.shouldAnimate?i.on?{isVisible:!0,data:i.on,animate:"open"}:a.isVisible?{isVisible:!0,data:a.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!i.on,data:i.on,animate:"none"}};var r=t.prototype;return r.render=function(){if(!this.state.isVisible)return null;var i={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(i)},t}(wr.PureComponent),AT={dragging:5e3,dropAnimating:4500},Zj=function(t,r){return r?Q0.drop(r.duration):t?Q0.snap:Q0.fluid},Jj=function(t,r){return t?r?Id.opacity.drop:Id.opacity.combining:null},eG=function(t){return t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP"};function tG(e){var t=e.dimension,r=t.client,n=e.offset,i=e.combineWith,a=e.dropping,o=!!i,l=eG(e),s=!!a,f=s?__.drop(n,o):__.moveTo(n),d={position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:Zj(l,a),transform:f,opacity:Jj(o,s),zIndex:s?AT.dropAnimating:AT.dragging,pointerEvents:"none"};return d}function rG(e){return{transform:__.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function nG(e){return e.type==="DRAGGING"?tG(e):rG(e)}function iG(e,t,r){r===void 0&&(r=El);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),a=kI(i,n),o=w_(a,r),l={client:a,tagName:t.tagName.toLowerCase(),display:n.display},s={x:a.marginBox.width,y:a.marginBox.height},f={descriptor:e,placeholder:l,displaceBy:s,client:a,page:o};return f}function aG(e){var t=DI("draggable"),r=e.descriptor,n=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,o=e.shouldRespectForcePress,l=e.isEnabled,s=Wn(function(){return{canDragInteractiveElements:a,shouldRespectForcePress:o,isEnabled:l}},[a,l,o]),f=gn(function(y){var E=i();return E||pi(!1),iG(r,E,y)},[r,i]),d=Wn(function(){return{uniqueId:t,descriptor:r,options:s,getDimension:f}},[r,f,s,t]),g=Gt.useRef(d),v=Gt.useRef(!0);ad(function(){return n.draggable.register(g.current),function(){return n.draggable.unregister(g.current)}},[n.draggable]),ad(function(){if(v.current){v.current=!1;return}var y=g.current;g.current=d,n.draggable.update(d,y)},[d,n.draggable])}function oG(e){e.preventDefault()}function uG(e){var t=Gt.useRef(null),r=gn(function(te){t.current=te},[]),n=gn(function(){return t.current},[]),i=Lm(tE),a=i.contextId,o=i.dragHandleUsageInstructionsId,l=i.registry,s=Lm(rE),f=s.type,d=s.droppableId,g=Wn(function(){return{id:e.draggableId,index:e.index,type:f,droppableId:d}},[e.draggableId,e.index,f,d]),v=e.children,y=e.draggableId,E=e.isEnabled,M=e.shouldRespectForcePress,x=e.canDragInteractiveElements,w=e.isClone,_=e.mapped,T=e.dropAnimationFinished;if(!w){var C=Wn(function(){return{descriptor:g,registry:l,getDraggableRef:n,canDragInteractiveElements:x,shouldRespectForcePress:M,isEnabled:E}},[g,l,n,x,M,E]);aG(C)}var F=Wn(function(){return E?{tabIndex:0,role:"button","aria-describedby":o,"data-rbd-drag-handle-draggable-id":y,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:oG}:null},[a,o,y,E]),L=gn(function(te){_.type==="DRAGGING"&&_.dropping&&te.propertyName==="transform"&&T()},[T,_]),V=Wn(function(){var te=nG(_),ge=_.type==="DRAGGING"&&_.dropping?L:null,me={innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":y,style:te,onTransitionEnd:ge},dragHandleProps:F};return me},[a,F,y,_,L,r]),j=Wn(function(){return{draggableId:g.id,type:g.type,source:{index:g.index,droppableId:g.droppableId}}},[g.droppableId,g.id,g.index,g.type]);return v(V,_.snapshot,j)}var BI=function(e,t){return e===t},zI=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null},lG=function(t){return t.combine?t.combine.draggableId:null},sG=function(t){return t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null};function fG(){var e=tn(function(i,a){return{x:i,y:a}}),t=tn(function(i,a,o,l,s){return{isDragging:!0,isClone:a,isDropAnimating:!!s,dropAnimation:s,mode:i,draggingOver:o,combineWith:l,combineTargetFor:null}}),r=tn(function(i,a,o,l,s,f,d){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:s,combineWith:f,mode:a,offset:i,dimension:o,forceShouldAnimate:d,snapshot:t(a,l,s,f,null)}}}),n=function(a,o){if(a.isDragging){if(a.critical.draggable.id!==o.draggableId)return null;var l=a.current.client.offset,s=a.dimensions.draggables[o.draggableId],f=K0(a.impact),d=sG(a.impact),g=a.forceShouldAnimate;return r(e(l.x,l.y),a.movementMode,s,o.isClone,f,d,g)}if(a.phase==="DROP_ANIMATING"){var v=a.completed;if(v.result.draggableId!==o.draggableId)return null;var y=o.isClone,E=a.dimensions.draggables[o.draggableId],M=v.result,x=M.mode,w=zI(M),_=lG(M),T=a.dropDuration,C={duration:T,curve:eE.drop,moveTo:a.newHomeClientOffset,opacity:_?Id.opacity.drop:null,scale:_?Id.scale.drop:null};return{mapped:{type:"DRAGGING",offset:a.newHomeClientOffset,dimension:E,dropping:C,draggingOver:w,combineWith:_,mode:x,forceShouldAnimate:null,snapshot:t(x,y,w,_,C)}}}return null};return n}function UI(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var cG={mapped:{type:"SECONDARY",offset:El,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:UI(null)}};function hG(){var e=tn(function(o,l){return{x:o,y:l}}),t=tn(UI),r=tn(function(o,l,s){return l===void 0&&(l=null),{mapped:{type:"SECONDARY",offset:o,combineTargetFor:l,shouldAnimateDisplacement:s,snapshot:t(l)}}}),n=function(l){return l?r(El,l,!0):null},i=function(l,s,f,d){var g=f.displaced.visible[l],v=!!(d.inVirtualList&&d.effected[l]),y=mj(f),E=y&&y.draggableId===l?s:null;if(!g){if(!v)return n(E);if(f.displaced.invisible[l])return null;var M=ij(d.displacedBy.point),x=e(M.x,M.y);return r(x,E,!0)}if(v)return n(E);var w=f.displacedBy.point,_=e(w.x,w.y);return r(_,E,g.shouldAnimate)},a=function(l,s){if(l.isDragging)return l.critical.draggable.id===s.draggableId?null:i(s.draggableId,l.critical.draggable.id,l.impact,l.afterCritical);if(l.phase==="DROP_ANIMATING"){var f=l.completed;return f.result.draggableId===s.draggableId?null:i(s.draggableId,f.result.draggableId,f.impact,f.afterCritical)}return null};return a}var dG=function(){var t=fG(),r=hG(),n=function(a,o){return t(a,o)||r(a,o)||cG};return n},pG={dropAnimationFinished:xj},vG=QS(dG,pG,null,{context:LI,pure:!0,areStatePropsEqual:BI})(uG);function jI(e){var t=Lm(rE),r=t.isUsingCloneFor;return r===e.draggableId&&!e.isClone?null:wr.createElement(vG,e)}function Jie(e){var t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,n=!!e.shouldRespectForcePress;return wr.createElement(jI,ti({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n}))}function mG(e){var t=Gt.useContext(tE);t||pi(!1);var r=t.contextId,n=t.isMovementAllowed,i=Gt.useRef(null),a=Gt.useRef(null),o=e.children,l=e.droppableId,s=e.type,f=e.mode,d=e.direction,g=e.ignoreContainerClipping,v=e.isDropDisabled,y=e.isCombineEnabled,E=e.snapshot,M=e.useClone,x=e.updateViewportMaxScroll,w=e.getContainerForClone,_=gn(function(){return i.current},[]),T=gn(function(me){i.current=me},[]);gn(function(){return a.current},[]);var C=gn(function(me){a.current=me},[]),F=gn(function(){n()&&x({maxScroll:Sj()})},[n,x]);qj({droppableId:l,type:s,mode:f,direction:d,isDropDisabled:v,isCombineEnabled:y,ignoreContainerClipping:g,getDroppableRef:_});var L=wr.createElement(Qj,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(me){var Me=me.onClose,Fe=me.data,Le=me.animate;return wr.createElement(Kj,{placeholder:Fe,onClose:Me,innerRef:C,animate:Le,contextId:r,onTransitionEnd:F})}),V=Wn(function(){return{innerRef:T,placeholder:L,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":r}}},[r,l,L,T]),j=M?M.dragging.draggableId:null,te=Wn(function(){return{droppableId:l,type:s,isUsingCloneFor:j}},[l,j,s]);function ge(){if(!M)return null;var me=M.dragging,Me=M.render,Fe=wr.createElement(jI,{draggableId:me.draggableId,index:me.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(Le,ut){return Me(Le,ut,me)});return $h.createPortal(Fe,w())}return wr.createElement(rE.Provider,{value:te},o(V,E),ge())}var zb=function(t,r){return t===r.droppable.type},CT=function(t,r){return r.draggables[t.draggable.id]},gG=function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=ti({},t,{shouldAnimatePlaceholder:!1}),n=tn(function(o){return{draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}}}),i=tn(function(o,l,s,f,d,g){var v=d.descriptor.id,y=d.descriptor.droppableId===o;if(y){var E=g?{render:g,dragging:n(d.descriptor)}:null,M={isDraggingOver:s,draggingOverWith:s?v:null,draggingFromThisWith:v,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!1,snapshot:M,useClone:E}}if(!l)return r;if(!f)return t;var x={isDraggingOver:s,draggingOverWith:v,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!0,snapshot:x,useClone:null}}),a=function(l,s){var f=s.droppableId,d=s.type,g=!s.isDropDisabled,v=s.renderClone;if(l.isDragging){var y=l.critical;if(!zb(d,y))return r;var E=CT(y,l.dimensions),M=K0(l.impact)===f;return i(f,g,M,M,E,v)}if(l.phase==="DROP_ANIMATING"){var x=l.completed;if(!zb(d,x.critical))return r;var w=CT(x.critical,l.dimensions);return i(f,g,zI(x.result)===f,K0(x.impact)===f,w,v)}if(l.phase==="IDLE"&&l.completed&&!l.shouldFlush){var _=l.completed;if(!zb(d,_.critical))return r;var T=K0(_.impact)===f,C=!!(_.impact.at&&_.impact.at.type==="COMBINE"),F=_.critical.droppable.id===f;return T?C?t:r:F?t:r}return r};return a},yG={updateViewportMaxScroll:bj};function bG(){return document.body||pi(!1),document.body}var xG={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:bG},wG=QS(gG,yG,null,{context:LI,pure:!0,areStatePropsEqual:BI})(mG);wG.defaultProps=xG;var _G=typeof performance=="object"&&typeof performance.now=="function",TT=_G?function(){return performance.now()}:function(){return Date.now()};function OT(e){cancelAnimationFrame(e.id)}function SG(e,t){var r=TT();function n(){TT()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var Fs=null;function MT(e){if(e===void 0&&(e=!1),Fs===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?Fs="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Fs="negative":Fs="positive-ascending"),document.body.removeChild(t),Fs}return Fs}var EG=150,AG=function(t,r){return t};function CG(e){var t,r,n=e.getItemOffset,i=e.getEstimatedTotalSize,a=e.getItemSize,o=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,f=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return r=t=function(v){Qd(y,v);function y(M){var x;return x=v.call(this,M)||this,x._instanceProps=f(x.props,Zv(Zv(x))),x._outerRef=void 0,x._resetIsScrollingTimeoutId=null,x.state={instance:Zv(Zv(x)),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof x.props.initialScrollOffset=="number"?x.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},x._callOnItemsRendered=void 0,x._callOnItemsRendered=tn(function(w,_,T,C){return x.props.onItemsRendered({overscanStartIndex:w,overscanStopIndex:_,visibleStartIndex:T,visibleStopIndex:C})}),x._callOnScroll=void 0,x._callOnScroll=tn(function(w,_,T){return x.props.onScroll({scrollDirection:w,scrollOffset:_,scrollUpdateWasRequested:T})}),x._getItemStyle=void 0,x._getItemStyle=function(w){var _=x.props,T=_.direction,C=_.itemSize,F=_.layout,L=x._getItemStyleCache(d&&C,d&&F,d&&T),V;if(L.hasOwnProperty(w))V=L[w];else{var j=n(x.props,w,x._instanceProps),te=a(x.props,w,x._instanceProps),ge=T==="horizontal"||F==="horizontal",me=T==="rtl",Me=ge?j:0;L[w]=V={position:"absolute",left:me?void 0:Me,right:me?Me:void 0,top:ge?0:j,height:ge?"100%":te,width:ge?te:"100%"}}return V},x._getItemStyleCache=void 0,x._getItemStyleCache=tn(function(w,_,T){return{}}),x._onScrollHorizontal=function(w){var _=w.currentTarget,T=_.clientWidth,C=_.scrollLeft,F=_.scrollWidth;x.setState(function(L){if(L.scrollOffset===C)return null;var V=x.props.direction,j=C;if(V==="rtl")switch(MT()){case"negative":j=-C;break;case"positive-descending":j=F-T-C;break}return j=Math.max(0,Math.min(j,F-T)),{isScrolling:!0,scrollDirection:L.scrollOffset<C?"forward":"backward",scrollOffset:j,scrollUpdateWasRequested:!1}},x._resetIsScrollingDebounced)},x._onScrollVertical=function(w){var _=w.currentTarget,T=_.clientHeight,C=_.scrollHeight,F=_.scrollTop;x.setState(function(L){if(L.scrollOffset===F)return null;var V=Math.max(0,Math.min(F,C-T));return{isScrolling:!0,scrollDirection:L.scrollOffset<V?"forward":"backward",scrollOffset:V,scrollUpdateWasRequested:!1}},x._resetIsScrollingDebounced)},x._outerRefSetter=function(w){var _=x.props.outerRef;x._outerRef=w,typeof _=="function"?_(w):_!=null&&typeof _=="object"&&_.hasOwnProperty("current")&&(_.current=w)},x._resetIsScrollingDebounced=function(){x._resetIsScrollingTimeoutId!==null&&OT(x._resetIsScrollingTimeoutId),x._resetIsScrollingTimeoutId=SG(x._resetIsScrolling,EG)},x._resetIsScrolling=function(){x._resetIsScrollingTimeoutId=null,x.setState({isScrolling:!1},function(){x._getItemStyleCache(-1,null)})},x}y.getDerivedStateFromProps=function(x,w){return TG(x,w),g(x),null};var E=y.prototype;return E.scrollTo=function(x){x=Math.max(0,x),this.setState(function(w){return w.scrollOffset===x?null:{scrollDirection:w.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},E.scrollToItem=function(x,w){w===void 0&&(w="auto");var _=this.props.itemCount,T=this.state.scrollOffset;x=Math.max(0,Math.min(x,_-1)),this.scrollTo(o(this.props,x,w,T,this._instanceProps))},E.componentDidMount=function(){var x=this.props,w=x.direction,_=x.initialScrollOffset,T=x.layout;if(typeof _=="number"&&this._outerRef!=null){var C=this._outerRef;w==="horizontal"||T==="horizontal"?C.scrollLeft=_:C.scrollTop=_}this._callPropsCallbacks()},E.componentDidUpdate=function(){var x=this.props,w=x.direction,_=x.layout,T=this.state,C=T.scrollOffset,F=T.scrollUpdateWasRequested;if(F&&this._outerRef!=null){var L=this._outerRef;if(w==="horizontal"||_==="horizontal")if(w==="rtl")switch(MT()){case"negative":L.scrollLeft=-C;break;case"positive-ascending":L.scrollLeft=C;break;default:var V=L.clientWidth,j=L.scrollWidth;L.scrollLeft=j-V-C;break}else L.scrollLeft=C;else L.scrollTop=C}this._callPropsCallbacks()},E.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&OT(this._resetIsScrollingTimeoutId)},E.render=function(){var x=this.props,w=x.children,_=x.className,T=x.direction,C=x.height,F=x.innerRef,L=x.innerElementType,V=x.innerTagName,j=x.itemCount,te=x.itemData,ge=x.itemKey,me=ge===void 0?AG:ge,Me=x.layout,Fe=x.outerElementType,Le=x.outerTagName,ut=x.style,nt=x.useIsScrolling,De=x.width,We=this.state.isScrolling,_t=T==="horizontal"||Me==="horizontal",He=_t?this._onScrollHorizontal:this._onScrollVertical,we=this._getRangeToRender(),qe=we[0],st=we[1],Ke=[];if(j>0)for(var ct=qe;ct<=st;ct++)Ke.push(Gt.createElement(w,{data:te,key:me(ct,te),index:ct,isScrolling:nt?We:void 0,style:this._getItemStyle(ct)}));var yt=i(this.props,this._instanceProps);return Gt.createElement(Fe||Le||"div",{className:_,onScroll:He,ref:this._outerRefSetter,style:ti({position:"relative",height:C,width:De,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:T},ut)},Gt.createElement(L||V||"div",{children:Ke,ref:F,style:{height:_t?"100%":yt,pointerEvents:We?"none":void 0,width:_t?yt:"100%"}}))},E._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var x=this.props.itemCount;if(x>0){var w=this._getRangeToRender(),_=w[0],T=w[1],C=w[2],F=w[3];this._callOnItemsRendered(_,T,C,F)}}if(typeof this.props.onScroll=="function"){var L=this.state,V=L.scrollDirection,j=L.scrollOffset,te=L.scrollUpdateWasRequested;this._callOnScroll(V,j,te)}},E._getRangeToRender=function(){var x=this.props,w=x.itemCount,_=x.overscanCount,T=this.state,C=T.isScrolling,F=T.scrollDirection,L=T.scrollOffset;if(w===0)return[0,0,0,0];var V=l(this.props,L,this._instanceProps),j=s(this.props,V,L,this._instanceProps),te=!C||F==="backward"?Math.max(1,_):1,ge=!C||F==="forward"?Math.max(1,_):1;return[Math.max(0,V-te),Math.max(0,Math.min(w-1,j+ge)),V,j]},y}(Gt.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},r}var TG=function(t,r){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,r.instance},eae=CG({getItemOffset:function(t,r){var n=t.itemSize;return r*n},getItemSize:function(t,r){var n=t.itemSize;return n},getEstimatedTotalSize:function(t){var r=t.itemCount,n=t.itemSize;return n*r},getOffsetForIndexAndAlignment:function(t,r,n,i){var a=t.direction,o=t.height,l=t.itemCount,s=t.itemSize,f=t.layout,d=t.width,g=a==="horizontal"||f==="horizontal",v=g?d:o,y=Math.max(0,l*s-v),E=Math.min(y,r*s),M=Math.max(0,r*s-v+s);switch(n==="smart"&&(i>=M-v&&i<=E+v?n="auto":n="center"),n){case"start":return E;case"end":return M;case"center":{var x=Math.round(M+(E-M)/2);return x<Math.ceil(v/2)?0:x>y+Math.floor(v/2)?y:x}case"auto":default:return i>=M&&i<=E?i:i<M?M:E}},getStartIndexForOffset:function(t,r){var n=t.itemCount,i=t.itemSize;return Math.max(0,Math.min(n-1,Math.floor(r/i)))},getStopIndexForStartIndex:function(t,r,n){var i=t.direction,a=t.height,o=t.itemCount,l=t.itemSize,s=t.layout,f=t.width,d=i==="horizontal"||s==="horizontal",g=r*l,v=d?f:a,y=Math.ceil((v+n-g)/l);return Math.max(0,Math.min(o-1,r+y-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}}),OG=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},MG=function(){function e(t,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),kG=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},RG=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},kT=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},PG=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var l=t[Symbol.iterator](),s;!(i=(s=l.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(f){a=!0,o=f}finally{try{!i&&l.return&&l.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Pi=void 0;typeof window<"u"?Pi=window:typeof self<"u"?Pi=self:Pi=global;var E_=null,A_=null,RT=20,Ub=Pi.clearTimeout,PT=Pi.setTimeout,jb=Pi.cancelAnimationFrame||Pi.mozCancelAnimationFrame||Pi.webkitCancelAnimationFrame,IT=Pi.requestAnimationFrame||Pi.mozRequestAnimationFrame||Pi.webkitRequestAnimationFrame;jb==null||IT==null?(E_=Ub,A_=function(t){return PT(t,RT)}):(E_=function(t){var r=PG(t,2),n=r[0],i=r[1];jb(n),Ub(i)},A_=function(t){var r=IT(function(){Ub(n),t()}),n=PT(function(){jb(r),t()},RT);return[r,n]});function IG(e){var t=void 0,r=void 0,n=void 0,i=void 0,a=void 0,o=void 0,l=void 0,s=typeof document<"u"&&document.attachEvent;if(!s){o=function(C){var F=C.__resizeTriggers__,L=F.firstElementChild,V=F.lastElementChild,j=L.firstElementChild;V.scrollLeft=V.scrollWidth,V.scrollTop=V.scrollHeight,j.style.width=L.offsetWidth+1+"px",j.style.height=L.offsetHeight+1+"px",L.scrollLeft=L.scrollWidth,L.scrollTop=L.scrollHeight},a=function(C){return C.offsetWidth!==C.__resizeLast__.width||C.offsetHeight!==C.__resizeLast__.height},l=function(C){if(!(C.target.className&&typeof C.target.className.indexOf=="function"&&C.target.className.indexOf("contract-trigger")<0&&C.target.className.indexOf("expand-trigger")<0)){var F=this;o(this),this.__resizeRAF__&&E_(this.__resizeRAF__),this.__resizeRAF__=A_(function(){a(F)&&(F.__resizeLast__.width=F.offsetWidth,F.__resizeLast__.height=F.offsetHeight,F.__resizeListeners__.forEach(function(j){j.call(F,C)}))})}};var f=!1,d="";n="animationstart";var g="Webkit Moz O ms".split(" "),v="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),y="";{var E=document.createElement("fakeelement");if(E.style.animationName!==void 0&&(f=!0),f===!1){for(var M=0;M<g.length;M++)if(E.style[g[M]+"AnimationName"]!==void 0){y=g[M],d="-"+y.toLowerCase()+"-",n=v[M],f=!0;break}}}r="resizeanim",t="@"+d+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",i=d+"animation: 1ms "+r+"; "}var x=function(C){if(!C.getElementById("detectElementResize")){var F=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > 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%; }',L=C.head||C.getElementsByTagName("head")[0],V=C.createElement("style");V.id="detectElementResize",V.type="text/css",e!=null&&V.setAttribute("nonce",e),V.styleSheet?V.styleSheet.cssText=F:V.appendChild(C.createTextNode(F)),L.appendChild(V)}},w=function(C,F){if(s)C.attachEvent("onresize",F);else{if(!C.__resizeTriggers__){var L=C.ownerDocument,V=Pi.getComputedStyle(C);V&&V.position==="static"&&(C.style.position="relative"),x(L),C.__resizeLast__={},C.__resizeListeners__=[],(C.__resizeTriggers__=L.createElement("div")).className="resize-triggers";var j=L.createElement("div");j.className="expand-trigger",j.appendChild(L.createElement("div"));var te=L.createElement("div");te.className="contract-trigger",C.__resizeTriggers__.appendChild(j),C.__resizeTriggers__.appendChild(te),C.appendChild(C.__resizeTriggers__),o(C),C.addEventListener("scroll",l,!0),n&&(C.__resizeTriggers__.__animationListener__=function(me){me.animationName===r&&o(C)},C.__resizeTriggers__.addEventListener(n,C.__resizeTriggers__.__animationListener__))}C.__resizeListeners__.push(F)}},_=function(C,F){if(s)C.detachEvent("onresize",F);else if(C.__resizeListeners__.splice(C.__resizeListeners__.indexOf(F),1),!C.__resizeListeners__.length){C.removeEventListener("scroll",l,!0),C.__resizeTriggers__.__animationListener__&&(C.__resizeTriggers__.removeEventListener(n,C.__resizeTriggers__.__animationListener__),C.__resizeTriggers__.__animationListener__=null);try{C.__resizeTriggers__=!C.removeChild(C.__resizeTriggers__)}catch{}}};return{addResizeListener:w,removeResizeListener:_}}var FG=function(e){RG(t,e);function t(){var r,n,i,a;OG(this,t);for(var o=arguments.length,l=Array(o),s=0;s<o;s++)l[s]=arguments[s];return a=(n=(i=kT(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(l))),i),i.state={height:i.props.defaultHeight||0,width:i.props.defaultWidth||0},i._onResize=function(){var f=i.props,d=f.disableHeight,g=f.disableWidth,v=f.onResize;if(i._parentNode){var y=i._parentNode.offsetHeight||0,E=i._parentNode.offsetWidth||0,M=window.getComputedStyle(i._parentNode)||{},x=parseInt(M.paddingLeft,10)||0,w=parseInt(M.paddingRight,10)||0,_=parseInt(M.paddingTop,10)||0,T=parseInt(M.paddingBottom,10)||0,C=y-_-T,F=E-x-w;(!d&&i.state.height!==C||!g&&i.state.width!==F)&&(i.setState({height:y-_-T,width:E-x-w}),v({height:y,width:E}))}},i._setRef=function(f){i._autoSizer=f},n),kT(i,a)}return MG(t,[{key:"componentDidMount",value:function(){var n=this.props.nonce;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._detectElementResize=IG(n),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var n=this.props,i=n.children,a=n.className,o=n.disableHeight,l=n.disableWidth,s=n.style,f=this.state,d=f.height,g=f.width,v={overflow:"visible"},y={},E=!1;return o||(d===0&&(E=!0),v.height=0,y.height=d),l||(g===0&&(E=!0),v.width=0,y.width=g),Gt.createElement("div",{className:a,ref:this._setRef,style:kG({},v,s)},!E&&i(y))}}]),t}(Gt.PureComponent);FG.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var NG=9007199254740991,LG="[object Arguments]",DG="[object Function]",$G="[object GeneratorFunction]",BG=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,zG=typeof self=="object"&&self&&self.Object===Object&&self,UG=BG||zG||Function("return this")();function jG(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var nE=Object.prototype,GG=nE.hasOwnProperty,GI=nE.toString,FT=UG.Symbol,WG=nE.propertyIsEnumerable,NT=FT?FT.isConcatSpreadable:void 0;function WI(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=HG),i||(i=[]);++a<o;){var l=e[a];t>0&&r(l)?t>1?WI(l,t-1,r,n,i):jG(i,l):n||(i[i.length]=l)}return i}function HG(e){return YG(e)||VG(e)||!!(NT&&e&&e[NT])}function qG(e){var t=e?e.length:0;return t?WI(e,1):[]}function VG(e){return KG(e)&&GG.call(e,"callee")&&(!WG.call(e,"callee")||GI.call(e)==LG)}var YG=Array.isArray;function XG(e){return e!=null&&ZG(e.length)&&!QG(e)}function KG(e){return eW(e)&&XG(e)}function QG(e){var t=JG(e)?GI.call(e):"";return t==DG||t==$G}function ZG(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=NG}function JG(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function eW(e){return!!e&&typeof e=="object"}var tW=qG;const tae=mi(tW);var LT=0/0,rW="[object Symbol]",nW=/^\s+|\s+$/g,iW=/^[-+]0x[0-9a-f]+$/i,aW=/^0b[01]+$/i,oW=/^0o[0-7]+$/i,uW=parseInt,lW=Object.prototype,sW=lW.toString;function fW(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}function DT(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function cW(e){return!!e&&typeof e=="object"}function hW(e){return typeof e=="symbol"||cW(e)&&sW.call(e)==rW}function Gb(e){if(typeof e=="number")return e;if(hW(e))return LT;if(DT(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=DT(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(nW,"");var r=aW.test(e);return r||oW.test(e)?uW(e.slice(2),r?2:8):iW.test(e)?LT:+e}function dW(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=Gb(r),r=r===r?r:0),t!==void 0&&(t=Gb(t),t=t===t?t:0),fW(Gb(e),t,r)}var pW=dW;const rae=mi(pW);function bh(e){return e&&e.__esModule?e.default:e}function ra(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var HI={};ra(HI,"spectrum--darkest",()=>C_,e=>C_=e);var C_;C_="spectrum--darkest_256eeb";var yu={};ra(yu,"spectrum",()=>T_,e=>T_=e);ra(yu,"spectrum--medium",()=>O_,e=>O_=e);ra(yu,"spectrum--large",()=>M_,e=>M_=e);ra(yu,"spectrum--darkest",()=>k_,e=>k_=e);ra(yu,"spectrum--dark",()=>R_,e=>R_=e);ra(yu,"spectrum--light",()=>P_,e=>P_=e);ra(yu,"spectrum--lightest",()=>I_,e=>I_=e);var T_,O_,M_,k_,R_,P_,I_;T_="spectrum_9e130c";O_="spectrum--medium_9e130c";M_="spectrum--large_9e130c";k_="spectrum--darkest_9e130c";R_="spectrum--dark_9e130c";P_="spectrum--light_9e130c";I_="spectrum--lightest_9e130c";var qI={};ra(qI,"spectrum--large",()=>F_,e=>F_=e);var F_;F_="spectrum--large_c40598";var VI={};ra(VI,"spectrum--light",()=>N_,e=>N_=e);var N_;N_="spectrum--light_a40724";var YI={};ra(YI,"spectrum--medium",()=>L_,e=>L_=e);var L_;L_="spectrum--medium_4b172c";let nae={global:bh(yu),light:bh(VI),dark:bh(HI),medium:bh(YI),large:bh(qI)};var $T=Object.prototype.toString,XI=function(t){var r=$T.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&$T.call(t.callee)==="[object Function]"),n},Wb,BT;function vW(){if(BT)return Wb;BT=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=XI,i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),o=i.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],s=function(v){var y=v.constructor;return y&&y.prototype===v},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},d=function(){if(typeof window>"u")return!1;for(var v in window)try{if(!f["$"+v]&&t.call(window,v)&&window[v]!==null&&typeof window[v]=="object")try{s(window[v])}catch{return!0}}catch{return!0}return!1}(),g=function(v){if(typeof window>"u"||!d)return s(v);try{return s(v)}catch{return!1}};e=function(y){var E=y!==null&&typeof y=="object",M=r.call(y)==="[object Function]",x=n(y),w=E&&r.call(y)==="[object String]",_=[];if(!E&&!M&&!x)throw new TypeError("Object.keys called on a non-object");var T=o&&M;if(w&&y.length>0&&!t.call(y,0))for(var C=0;C<y.length;++C)_.push(String(C));if(x&&y.length>0)for(var F=0;F<y.length;++F)_.push(String(F));else for(var L in y)!(T&&L==="prototype")&&t.call(y,L)&&_.push(String(L));if(a)for(var V=g(y),j=0;j<l.length;++j)!(V&&l[j]==="constructor")&&t.call(y,l[j])&&_.push(l[j]);return _}}return Wb=e,Wb}var mW=Array.prototype.slice,gW=XI,zT=Object.keys,Z0=zT?function(t){return zT(t)}:vW(),UT=Object.keys;Z0.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return gW(n)?UT(mW.call(n)):UT(n)})}else Object.keys=Z0;return Object.keys||Z0};var iE=Z0,Vg=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==i||o.enumerable!==!0)return!1}return!0},yW=Vg,bu=function(){return yW()&&!!Symbol.toStringTag},jT=typeof Symbol<"u"&&Symbol,bW=Vg,aE=function(){return typeof jT!="function"||typeof Symbol!="function"||typeof jT("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:bW()},xW="Function.prototype.bind called on incompatible ",Hb=Array.prototype.slice,wW=Object.prototype.toString,_W="[object Function]",SW=function(t){var r=this;if(typeof r!="function"||wW.call(r)!==_W)throw new TypeError(xW+r);for(var n=Hb.call(arguments,1),i,a=function(){if(this instanceof i){var d=r.apply(this,n.concat(Hb.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(Hb.call(arguments)))},o=Math.max(0,r.length-n.length),l=[],s=0;s<o;s++)l.push("$"+s);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var f=function(){};f.prototype=r.prototype,i.prototype=new f,f.prototype=null}return i},EW=SW,oE=Function.prototype.bind||EW,AW=oE,CW=AW.call(Function.call,Object.prototype.hasOwnProperty),mr,Of=SyntaxError,KI=Function,pf=TypeError,qb=function(e){try{return KI('"use strict"; return ('+e+").constructor;")()}catch{}},vl=Object.getOwnPropertyDescriptor;if(vl)try{vl({},"")}catch{vl=null}var Vb=function(){throw new pf},TW=vl?function(){try{return arguments.callee,Vb}catch{try{return vl(arguments,"callee").get}catch{return Vb}}}():Vb,Ns=aE(),Bo=Object.getPrototypeOf||function(e){return e.__proto__},Gs={},OW=typeof Uint8Array>"u"?mr:Bo(Uint8Array),vf={"%AggregateError%":typeof AggregateError>"u"?mr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?mr:ArrayBuffer,"%ArrayIteratorPrototype%":Ns?Bo([][Symbol.iterator]()):mr,"%AsyncFromSyncIteratorPrototype%":mr,"%AsyncFunction%":Gs,"%AsyncGenerator%":Gs,"%AsyncGeneratorFunction%":Gs,"%AsyncIteratorPrototype%":Gs,"%Atomics%":typeof Atomics>"u"?mr:Atomics,"%BigInt%":typeof BigInt>"u"?mr:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?mr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?mr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?mr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?mr:FinalizationRegistry,"%Function%":KI,"%GeneratorFunction%":Gs,"%Int8Array%":typeof Int8Array>"u"?mr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?mr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?mr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ns?Bo(Bo([][Symbol.iterator]())):mr,"%JSON%":typeof JSON=="object"?JSON:mr,"%Map%":typeof Map>"u"?mr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Ns?mr:Bo(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?mr:Promise,"%Proxy%":typeof Proxy>"u"?mr:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?mr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?mr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Ns?mr:Bo(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?mr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ns?Bo(""[Symbol.iterator]()):mr,"%Symbol%":Ns?Symbol:mr,"%SyntaxError%":Of,"%ThrowTypeError%":TW,"%TypedArray%":OW,"%TypeError%":pf,"%Uint8Array%":typeof Uint8Array>"u"?mr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?mr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?mr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?mr:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?mr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?mr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?mr:WeakSet},MW=function e(t){var r;if(t==="%AsyncFunction%")r=qb("async function () {}");else if(t==="%GeneratorFunction%")r=qb("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=qb("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=Bo(i.prototype))}return vf[t]=r,r},GT={"%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"]},dp=oE,Dm=CW,kW=dp.call(Function.call,Array.prototype.concat),RW=dp.call(Function.apply,Array.prototype.splice),WT=dp.call(Function.call,String.prototype.replace),$m=dp.call(Function.call,String.prototype.slice),PW=dp.call(Function.call,RegExp.prototype.exec),IW=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,FW=/\\(\\)?/g,NW=function(t){var r=$m(t,0,1),n=$m(t,-1);if(r==="%"&&n!=="%")throw new Of("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Of("invalid intrinsic syntax, expected opening `%`");var i=[];return WT(t,IW,function(a,o,l,s){i[i.length]=l?WT(s,FW,"$1"):o||a}),i},LW=function(t,r){var n=t,i;if(Dm(GT,n)&&(i=GT[n],n="%"+i[0]+"%"),Dm(vf,n)){var a=vf[n];if(a===Gs&&(a=MW(n)),typeof a>"u"&&!r)throw new pf("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new Of("intrinsic "+t+" does not exist!")},xu=function(t,r){if(typeof t!="string"||t.length===0)throw new pf("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new pf('"allowMissing" argument must be a boolean');if(PW(/^%?[^%]*%?$/,t)===null)throw new Of("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=NW(t),i=n.length>0?n[0]:"",a=LW("%"+i+"%",r),o=a.name,l=a.value,s=!1,f=a.alias;f&&(i=f[0],RW(n,kW([0,1],f)));for(var d=1,g=!0;d<n.length;d+=1){var v=n[d],y=$m(v,0,1),E=$m(v,-1);if((y==='"'||y==="'"||y==="`"||E==='"'||E==="'"||E==="`")&&y!==E)throw new Of("property names with quotes must have matching quotes");if((v==="constructor"||!g)&&(s=!0),i+="."+v,o="%"+i+"%",Dm(vf,o))l=vf[o];else if(l!=null){if(!(v in l)){if(!r)throw new pf("base intrinsic for "+t+" exists, but the property is not available.");return}if(vl&&d+1>=n.length){var M=vl(l,v);g=!!M,g&&"get"in M&&!("originalValue"in M.get)?l=M.get:l=l[v]}else g=Dm(l,v),l=l[v];g&&!s&&(vf[o]=l)}}return l},QI={exports:{}};(function(e){var t=oE,r=xu,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),a=r("%Reflect.apply%",!0)||t.call(i,n),o=r("%Object.getOwnPropertyDescriptor%",!0),l=r("%Object.defineProperty%",!0),s=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(g){var v=a(t,i,arguments);if(o&&l){var y=o(v,"length");y.configurable&&l(v,"length",{value:1+s(0,g.length-(arguments.length-1))})}return v};var f=function(){return a(t,n,arguments)};l?l(e.exports,"apply",{value:f}):e.exports.apply=f})(QI);var Yg=QI.exports,ZI=xu,JI=Yg,DW=JI(ZI("String.prototype.indexOf")),Ca=function(t,r){var n=ZI(t,!!r);return typeof n=="function"&&DW(t,".prototype.")>-1?JI(n):n},$W=bu(),BW=Ca,D_=BW("Object.prototype.toString"),Xg=function(t){return $W&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:D_(t)==="[object Arguments]"},e4=function(t){return Xg(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&D_(t)!=="[object Array]"&&D_(t.callee)==="[object Function]"},zW=function(){return Xg(arguments)}();Xg.isLegacyArguments=e4;var t4=zW?Xg:e4,UW=xu,$_=UW("%Object.defineProperty%",!0),B_=function(){if($_)try{return $_({},"a",{value:1}),!0}catch{return!1}return!1};B_.hasArrayLengthDefineBug=function(){if(!B_())return null;try{return $_([],"length",{value:1}).length!==1}catch{return!0}};var jW=B_,GW=iE,WW=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",HW=Object.prototype.toString,qW=Array.prototype.concat,r4=Object.defineProperty,VW=function(e){return typeof e=="function"&&HW.call(e)==="[object Function]"},YW=jW(),n4=r4&&YW,XW=function(e,t,r,n){t in e&&(!VW(n)||!n())||(n4?r4(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},i4=function(e,t){var r=arguments.length>2?arguments[2]:{},n=GW(t);WW&&(n=qW.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i<n.length;i+=1)XW(e,n[i],t[n[i]],r[n[i]])};i4.supportsDescriptors=!!n4;var Ul=i4,HT=function(e){return e!==e},a4=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||HT(t)&&HT(r))},KW=a4,o4=function(){return typeof Object.is=="function"?Object.is:KW},QW=o4,ZW=Ul,JW=function(){var t=QW();return ZW(Object,{is:t},{is:function(){return Object.is!==t}}),t},eH=Ul,tH=Yg,rH=a4,u4=o4,nH=JW,l4=tH(u4(),Object);eH(l4,{getPolyfill:u4,implementation:rH,shim:nH});var iH=l4,z_=Ca,s4=bu(),f4,c4,U_,j_;if(s4){f4=z_("Object.prototype.hasOwnProperty"),c4=z_("RegExp.prototype.exec"),U_={};var Yb=function(){throw U_};j_={toString:Yb,valueOf:Yb},typeof Symbol.toPrimitive=="symbol"&&(j_[Symbol.toPrimitive]=Yb)}var aH=z_("Object.prototype.toString"),oH=Object.getOwnPropertyDescriptor,uH="[object RegExp]",lH=s4?function(t){if(!t||typeof t!="object")return!1;var r=oH(t,"lastIndex"),n=r&&f4(r,"value");if(!n)return!1;try{c4(t,j_)}catch(i){return i===U_}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:aH(t)===uH},h4={exports:{}},Fd=function(){return typeof function(){}.name=="string"},od=Object.getOwnPropertyDescriptor;if(od)try{od([],"length")}catch{od=null}Fd.functionsHaveConfigurableNames=function(){if(!Fd()||!od)return!1;var t=od(function(){},"name");return!!t&&!!t.configurable};var sH=Function.prototype.bind;Fd.boundFunctionsHaveNames=function(){return Fd()&&typeof sH=="function"&&function(){}.bind().name!==""};var fH=Fd;(function(e){var t=fH.functionsHaveConfigurableNames(),r=Object,n=TypeError;e.exports=function(){if(this!=null&&this!==r(this))throw new n("RegExp.prototype.flags getter called on non-object");var a="";return this.hasIndices&&(a+="d"),this.global&&(a+="g"),this.ignoreCase&&(a+="i"),this.multiline&&(a+="m"),this.dotAll&&(a+="s"),this.unicode&&(a+="u"),this.sticky&&(a+="y"),a},t&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})})(h4);var d4=h4.exports,cH=d4,hH=Ul.supportsDescriptors,dH=Object.getOwnPropertyDescriptor,p4=function(){if(hH&&/a/mig.flags==="gim"){var t=dH(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var r="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){r+="d"}}),Object.defineProperty(n,"sticky",{get:function(){r+="y"}}),r==="dy")return t.get}}return cH},pH=Ul.supportsDescriptors,vH=p4,mH=Object.getOwnPropertyDescriptor,gH=Object.defineProperty,yH=TypeError,qT=Object.getPrototypeOf,bH=/a/,xH=function(){if(!pH||!qT)throw new yH("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=vH(),r=qT(bH),n=mH(r,"flags");return(!n||n.get!==t)&&gH(r,"flags",{configurable:!0,enumerable:!1,get:t}),t},wH=Ul,_H=Yg,SH=d4,v4=p4,EH=xH,m4=_H(v4());wH(m4,{getPolyfill:v4,implementation:SH,shim:EH});var AH=m4,CH={}.toString,g4=Array.isArray||function(e){return CH.call(e)=="[object Array]"},TH=Date.prototype.getDay,OH=function(t){try{return TH.call(t),!0}catch{return!1}},MH=Object.prototype.toString,kH="[object Date]",RH=bu(),PH=function(t){return typeof t!="object"||t===null?!1:RH?OH(t):MH.call(t)===kH},IH=String.prototype.valueOf,FH=function(t){try{return IH.call(t),!0}catch{return!1}},NH=Object.prototype.toString,LH="[object String]",DH=bu(),y4=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:DH?FH(t):NH.call(t)===LH},$H=Number.prototype.toString,BH=function(t){try{return $H.call(t),!0}catch{return!1}},zH=Object.prototype.toString,UH="[object Number]",jH=bu(),GH=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:jH?BH(t):zH.call(t)===UH},b4=Ca,WH=b4("Boolean.prototype.toString"),HH=b4("Object.prototype.toString"),qH=function(t){try{return WH(t),!0}catch{return!1}},VH="[object Boolean]",YH=bu(),XH=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:YH&&Symbol.toStringTag in t?qH(t):HH(t)===VH},G_={exports:{}},KH=Object.prototype.toString,QH=aE();if(QH){var ZH=Symbol.prototype.toString,JH=/^Symbol\(.*\)$/,eq=function(t){return typeof t.valueOf()!="symbol"?!1:JH.test(ZH.call(t))};G_.exports=function(t){if(typeof t=="symbol")return!0;if(KH.call(t)!=="[object Symbol]")return!1;try{return eq(t)}catch{return!1}}}else G_.exports=function(t){return!1};var tq=G_.exports,W_={exports:{}},VT=typeof BigInt<"u"&&BigInt,rq=function(){return typeof VT=="function"&&typeof BigInt=="function"&&typeof VT(42)=="bigint"&&typeof BigInt(42)=="bigint"},nq=rq();if(nq){var iq=BigInt.prototype.valueOf,aq=function(t){try{return iq.call(t),!0}catch{}return!1};W_.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:aq(t)}}else W_.exports=function(t){return!1};var oq=W_.exports,uq=y4,lq=GH,sq=XH,fq=tq,cq=oq,hq=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(uq(t))return"String";if(lq(t))return"Number";if(sq(t))return"Boolean";if(fq(t))return"Symbol";if(cq(t))return"BigInt"},uE=typeof Map=="function"&&Map.prototype?Map:null,dq=typeof Set=="function"&&Set.prototype?Set:null,Bm;uE||(Bm=function(t){return!1});var x4=uE?Map.prototype.has:null,YT=dq?Set.prototype.has:null;!Bm&&!x4&&(Bm=function(t){return!1});var w4=Bm||function(t){if(!t||typeof t!="object")return!1;try{if(x4.call(t),YT)try{YT.call(t)}catch{return!0}return t instanceof uE}catch{}return!1},pq=typeof Map=="function"&&Map.prototype?Map:null,lE=typeof Set=="function"&&Set.prototype?Set:null,zm;lE||(zm=function(t){return!1});var XT=pq?Map.prototype.has:null,_4=lE?Set.prototype.has:null;!zm&&!_4&&(zm=function(t){return!1});var S4=zm||function(t){if(!t||typeof t!="object")return!1;try{if(_4.call(t),XT)try{XT.call(t)}catch{return!0}return t instanceof lE}catch{}return!1},Um=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,KT=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,jm;Um||(jm=function(t){return!1});var H_=Um?Um.prototype.has:null,Xb=KT?KT.prototype.has:null;!jm&&!H_&&(jm=function(t){return!1});var vq=jm||function(t){if(!t||typeof t!="object")return!1;try{if(H_.call(t,H_),Xb)try{Xb.call(t,Xb)}catch{return!0}return t instanceof Um}catch{}return!1},q_={exports:{}},mq=xu,E4=Ca,gq=mq("%WeakSet%",!0),Kb=E4("WeakSet.prototype.has",!0);if(Kb){var Qb=E4("WeakMap.prototype.has",!0);q_.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Kb(t,Kb),Qb)try{Qb(t,Qb)}catch{return!0}return t instanceof gq}catch{}return!1}}else q_.exports=function(t){return!1};var yq=q_.exports,bq=w4,xq=S4,wq=vq,_q=yq,Sq=function(t){if(t&&typeof t=="object"){if(bq(t))return"Map";if(xq(t))return"Set";if(wq(t))return"WeakMap";if(_q(t))return"WeakSet"}return!1},J0={exports:{}},QT=t4;if(aE()||Vg()){var Zb=Symbol.iterator;J0.exports=function(t){if(t!=null&&typeof t[Zb]<"u")return t[Zb]();if(QT(t))return Array.prototype[Zb].call(t)}}else{var Eq=g4,Aq=y4,ZT=xu,Cq=ZT("%Map%",!0),Tq=ZT("%Set%",!0),Vi=Ca,JT=Vi("Array.prototype.push"),eO=Vi("String.prototype.charCodeAt"),Oq=Vi("String.prototype.slice"),Mq=function(t,r){var n=t.length;if(r+1>=n)return r+1;var i=eO(t,r);if(i<55296||i>56319)return r+1;var a=eO(t,r+1);return a<56320||a>57343?r+1:r+2},Jb=function(t){var r=0;return{next:function(){var i=r>=t.length,a;return i||(a=t[r],r+=1),{done:i,value:a}}}},tO=function(t,r){if(Eq(t)||QT(t))return Jb(t);if(Aq(t)){var n=0;return{next:function(){var a=Mq(t,n),o=Oq(t,n,a);return n=a,{done:a>t.length,value:o}}}}if(r&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!Cq&&!Tq)J0.exports=function(t){if(t!=null)return tO(t,!0)};else{var kq=w4,Rq=S4,rO=Vi("Map.prototype.forEach",!0),nO=Vi("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var iO=Vi("Map.prototype.iterator",!0),aO=Vi("Set.prototype.iterator",!0),oO=function(e){var t=!1;return{next:function(){try{return{done:t,value:t?void 0:e.next()}}catch{return t=!0,{done:!0,value:void 0}}}}};var uO=Vi("Map.prototype.@@iterator",!0)||Vi("Map.prototype._es6-shim iterator_",!0),lO=Vi("Set.prototype.@@iterator",!0)||Vi("Set.prototype._es6-shim iterator_",!0),Pq=function(t){if(kq(t)){if(iO)return oO(iO(t));if(uO)return uO(t);if(rO){var r=[];return rO(t,function(i,a){JT(r,[a,i])}),Jb(r)}}if(Rq(t)){if(aO)return oO(aO(t));if(lO)return lO(t);if(nO){var n=[];return nO(t,function(i){JT(n,i)}),Jb(n)}}};J0.exports=function(t){return Pq(t)||tO(t)}}}var Iq=J0.exports;const Fq={},Nq=Object.freeze(Object.defineProperty({__proto__:null,default:Fq},Symbol.toStringTag,{value:"Module"})),V_=Rl(Nq);var sE=typeof Map=="function"&&Map.prototype,ex=Object.getOwnPropertyDescriptor&&sE?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Gm=sE&&ex&&typeof ex.get=="function"?ex.get:null,Lq=sE&&Map.prototype.forEach,fE=typeof Set=="function"&&Set.prototype,tx=Object.getOwnPropertyDescriptor&&fE?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Wm=fE&&tx&&typeof tx.get=="function"?tx.get:null,Dq=fE&&Set.prototype.forEach,$q=typeof WeakMap=="function"&&WeakMap.prototype,ud=$q?WeakMap.prototype.has:null,Bq=typeof WeakSet=="function"&&WeakSet.prototype,ld=Bq?WeakSet.prototype.has:null,zq=typeof WeakRef=="function"&&WeakRef.prototype,sO=zq?WeakRef.prototype.deref:null,Uq=Boolean.prototype.valueOf,jq=Object.prototype.toString,Gq=Function.prototype.toString,Wq=String.prototype.match,cE=String.prototype.slice,Yo=String.prototype.replace,Hq=String.prototype.toUpperCase,fO=String.prototype.toLowerCase,A4=RegExp.prototype.test,cO=Array.prototype.concat,ha=Array.prototype.join,qq=Array.prototype.slice,hO=Math.floor,Y_=typeof BigInt=="function"?BigInt.prototype.valueOf:null,rx=Object.getOwnPropertySymbols,X_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Bn=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Mf||"symbol")?Symbol.toStringTag:null,C4=Object.prototype.propertyIsEnumerable,dO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function pO(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||A4.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-hO(-e):hO(e);if(n!==e){var i=String(n),a=cE.call(t,i.length+1);return Yo.call(i,r,"$&_")+"."+Yo.call(Yo.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Yo.call(t,r,"$&_")}var K_=V_,vO=K_.custom,mO=O4(vO)?vO:null,Vq=function e(t,r,n,i){var a=r||{};if(zo(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(zo(a,"maxStringLength")&&(typeof a.maxStringLength=="number"?a.maxStringLength<0&&a.maxStringLength!==1/0:a.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var o=zo(a,"customInspect")?a.customInspect:!0;if(typeof o!="boolean"&&o!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(zo(a,"indent")&&a.indent!==null&&a.indent!==" "&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(zo(a,"numericSeparator")&&typeof a.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var l=a.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 k4(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var s=String(t);return l?pO(t,s):s}if(typeof t=="bigint"){var f=String(t)+"n";return l?pO(t,f):f}var d=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return Q_(t)?"[Array]":"[Object]";var g=cV(a,n);if(typeof i>"u")i=[];else if(M4(i,t)>=0)return"[Circular]";function v(Fe,Le,ut){if(Le&&(i=qq.call(i),i.push(Le)),ut){var nt={depth:a.depth};return zo(a,"quoteStyle")&&(nt.quoteStyle=a.quoteStyle),e(Fe,nt,n+1,i)}return e(Fe,a,n+1,i)}if(typeof t=="function"&&!gO(t)){var y=rV(t),E=h0(t,v);return"[Function"+(y?": "+y:" (anonymous)")+"]"+(E.length>0?" { "+ha.call(E,", ")+" }":"")}if(O4(t)){var M=Mf?Yo.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):X_.call(t);return typeof t=="object"&&!Mf?xh(M):M}if(lV(t)){for(var x="<"+fO.call(String(t.nodeName)),w=t.attributes||[],_=0;_<w.length;_++)x+=" "+w[_].name+"="+T4(Yq(w[_].value),"double",a);return x+=">",t.childNodes&&t.childNodes.length&&(x+="..."),x+="</"+fO.call(String(t.nodeName))+">",x}if(Q_(t)){if(t.length===0)return"[]";var T=h0(t,v);return g&&!fV(T)?"["+Z_(T,g)+"]":"[ "+ha.call(T,", ")+" ]"}if(Kq(t)){var C=h0(t,v);return!("cause"in Error.prototype)&&"cause"in t&&!C4.call(t,"cause")?"{ ["+String(t)+"] "+ha.call(cO.call("[cause]: "+v(t.cause),C),", ")+" }":C.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+ha.call(C,", ")+" }"}if(typeof t=="object"&&o){if(mO&&typeof t[mO]=="function"&&K_)return K_(t,{depth:d-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(nV(t)){var F=[];return Lq.call(t,function(Fe,Le){F.push(v(Le,t,!0)+" => "+v(Fe,t))}),yO("Map",Gm.call(t),F,g)}if(oV(t)){var L=[];return Dq.call(t,function(Fe){L.push(v(Fe,t))}),yO("Set",Wm.call(t),L,g)}if(iV(t))return nx("WeakMap");if(uV(t))return nx("WeakSet");if(aV(t))return nx("WeakRef");if(Zq(t))return xh(v(Number(t)));if(eV(t))return xh(v(Y_.call(t)));if(Jq(t))return xh(Uq.call(t));if(Qq(t))return xh(v(String(t)));if(!Xq(t)&&!gO(t)){var V=h0(t,v),j=dO?dO(t)===Object.prototype:t instanceof Object||t.constructor===Object,te=t instanceof Object?"":"null prototype",ge=!j&&Bn&&Object(t)===t&&Bn in t?cE.call(wu(t),8,-1):te?"Object":"",me=j||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",Me=me+(ge||te?"["+ha.call(cO.call([],ge||[],te||[]),": ")+"] ":"");return V.length===0?Me+"{}":g?Me+"{"+Z_(V,g)+"}":Me+"{ "+ha.call(V,", ")+" }"}return String(t)};function T4(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function Yq(e){return Yo.call(String(e),/"/g,"&quot;")}function Q_(e){return wu(e)==="[object Array]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function Xq(e){return wu(e)==="[object Date]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function gO(e){return wu(e)==="[object RegExp]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function Kq(e){return wu(e)==="[object Error]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function Qq(e){return wu(e)==="[object String]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function Zq(e){return wu(e)==="[object Number]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function Jq(e){return wu(e)==="[object Boolean]"&&(!Bn||!(typeof e=="object"&&Bn in e))}function O4(e){if(Mf)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!X_)return!1;try{return X_.call(e),!0}catch{}return!1}function eV(e){if(!e||typeof e!="object"||!Y_)return!1;try{return Y_.call(e),!0}catch{}return!1}var tV=Object.prototype.hasOwnProperty||function(e){return e in this};function zo(e,t){return tV.call(e,t)}function wu(e){return jq.call(e)}function rV(e){if(e.name)return e.name;var t=Wq.call(Gq.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function M4(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function nV(e){if(!Gm||!e||typeof e!="object")return!1;try{Gm.call(e);try{Wm.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function iV(e){if(!ud||!e||typeof e!="object")return!1;try{ud.call(e,ud);try{ld.call(e,ld)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function aV(e){if(!sO||!e||typeof e!="object")return!1;try{return sO.call(e),!0}catch{}return!1}function oV(e){if(!Wm||!e||typeof e!="object")return!1;try{Wm.call(e);try{Gm.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function uV(e){if(!ld||!e||typeof e!="object")return!1;try{ld.call(e,ld);try{ud.call(e,ud)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function lV(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function k4(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return k4(cE.call(e,0,t.maxStringLength),t)+n}var i=Yo.call(Yo.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,sV);return T4(i,"single",t)}function sV(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+Hq.call(t.toString(16))}function xh(e){return"Object("+e+")"}function nx(e){return e+" { ? }"}function yO(e,t,r,n){var i=n?Z_(r,n):ha.call(r,", ");return e+" ("+t+") {"+i+"}"}function fV(e){for(var t=0;t<e.length;t++)if(M4(e[t],`
846
+ `)>=0)return!1;return!0}function cV(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=ha.call(Array(e.indent+1)," ");else return null;return{base:r,prev:ha.call(Array(t+1),r)}}function Z_(e,t){if(e.length===0)return"";var r=`
847
847
  `+t.prev+t.base;return r+ha.call(e,","+r)+`
848
- `+t.prev}function d0(e,t){var r=Z_(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=zo(e,i)?t(e[i],e):""}var a=typeof nx=="function"?nx(e):[],o;if(kf){o={};for(var l=0;l<a.length;l++)o["$"+a[l]]=a[l]}for(var s in e)zo(e,s)&&(r&&String(Number(s))===s&&s<e.length||kf&&o["$"+s]instanceof Symbol||(C4.call(/[^\w$]/,s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e))));if(typeof nx=="function")for(var f=0;f<a.length;f++)O4.call(e,a[f])&&n.push("["+t(a[f])+"]: "+t(e[a[f]],e));return n}var dE=xu,Vf=Ta,pV=Xq,vV=dE("%TypeError%"),p0=dE("%WeakMap%",!0),v0=dE("%Map%",!0),mV=Vf("WeakMap.prototype.get",!0),gV=Vf("WeakMap.prototype.set",!0),yV=Vf("WeakMap.prototype.has",!0),bV=Vf("Map.prototype.get",!0),xV=Vf("Map.prototype.set",!0),wV=Vf("Map.prototype.has",!0),pE=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},_V=function(e,t){var r=pE(e,t);return r&&r.value},SV=function(e,t,r){var n=pE(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},EV=function(e,t){return!!pE(e,t)},AV=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new vV("Side channel does not contain "+pV(a))},get:function(a){if(p0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return mV(t,a)}else if(v0){if(r)return bV(r,a)}else if(n)return _V(n,a)},has:function(a){if(p0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return yV(t,a)}else if(v0){if(r)return wV(r,a)}else if(n)return EV(n,a);return!1},set:function(a,o){p0&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new p0),gV(t,a,o)):v0?(r||(r=new v0),xV(r,a,o)):(n||(n={key:{},next:null}),SV(n,a,o))}};return i},TV=Object.prototype.hasOwnProperty,CV=Object.prototype.toString,I4=function(t,r,n){if(CV.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var a=0;a<i;a++)r.call(n,t[a],a,t);else for(var o in t)TV.call(t,o)&&r.call(n,t[o],o,t)},ax=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],OV=typeof globalThis>"u"?Jt:globalThis,F4=function(){for(var t=[],r=0;r<ax.length;r++)typeof OV[ax[r]]=="function"&&(t[t.length]=ax[r]);return t},ox,xO;function kV(){if(xO)return ox;xO=1;var e=xu,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return ox=t,ox}var ux,wO;function N4(){return wO||(wO=1,ux=kV()),ux}var lx,_O;function MV(){if(_O)return lx;_O=1;var e=I4,t=F4,r=Ta,n=r("Object.prototype.toString"),i=bu(),a=typeof globalThis>"u"?Jt:globalThis,o=t(),l=r("Array.prototype.indexOf",!0)||function(E,k){for(var x=0;x<E.length;x+=1)if(E[x]===k)return x;return-1},s=r("String.prototype.slice"),f={},d=N4(),g=Object.getPrototypeOf;i&&d&&g&&e(o,function(y){var E=new a[y];if(Symbol.toStringTag in E){var k=g(E),x=d(k,Symbol.toStringTag);if(!x){var w=g(k);x=d(w,Symbol.toStringTag)}f[y]=x.get}});var v=function(E){var k=!1;return e(f,function(x,w){if(!k)try{k=x.call(E)===w}catch{}}),k};return lx=function(E){if(!E||typeof E!="object")return!1;if(!i||!(Symbol.toStringTag in E)){var k=s(n(E),8,-1);return l(o,k)>-1}return d?v(E):!1},lx}var L4=I4,RV=F4,D4=Ta,PV=D4("Object.prototype.toString"),$4=bu(),SO=typeof globalThis>"u"?Jt:globalThis,IV=RV(),FV=D4("String.prototype.slice"),B4={},sx=N4(),fx=Object.getPrototypeOf;$4&&sx&&fx&&L4(IV,function(e){if(typeof SO[e]=="function"){var t=new SO[e];if(Symbol.toStringTag in t){var r=fx(t),n=sx(r,Symbol.toStringTag);if(!n){var i=fx(r);n=sx(i,Symbol.toStringTag)}B4[e]=n.get}}});var NV=function(t){var r=!1;return L4(B4,function(n,i){if(!r)try{var a=n.call(t);a===i&&(r=a)}catch{}}),r},LV=MV(),DV=function(t){return LV(t)?!$4||!(Symbol.toStringTag in t)?FV(PV(t),8,-1):NV(t):!1},$V=aE,z4=Yg(),U4=Ta,EO=Object,BV=U4("Array.prototype.push"),AO=U4("Object.prototype.propertyIsEnumerable"),zV=z4?Object.getOwnPropertySymbols:null,j4=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=EO(t);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var a=EO(arguments[i]),o=$V(a),l=z4&&(Object.getOwnPropertySymbols||zV);if(l)for(var s=l(a),f=0;f<s.length;++f){var d=s[f];AO(a,d)&&BV(o,d)}for(var g=0;g<o.length;++g){var v=o[g];if(AO(a,v)){var y=a[v];n[v]=y}}}return n},cx=j4,UV=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),a="";for(var o in i)a+=o;return e!==a},jV=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1},G4=function(){return!Object.assign||UV()||jV()?cx:Object.assign},GV=Ul,WV=G4,HV=function(){var t=WV();return GV(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},qV=Ul,VV=Xg,YV=j4,W4=G4,XV=HV,KV=VV.apply(W4()),H4=function(t,r){return KV(Object,arguments)};qV(H4,{getPolyfill:W4,implementation:YV,shim:XV});var QV=H4,TO=aE,CO=n4,OO=oH,kO=fH,MO=CH,RO=b4,PO=FH,IO=pq,ZV=xu,fo=Ta,FO=Aq,Mf=Nq,JV=AV,NO=DV,q4=QV,LO=fo("Date.prototype.getTime"),hx=Object.getPrototypeOf,DO=fo("Object.prototype.toString"),qm=ZV("%Set%",!0),e2=fo("Map.prototype.has",!0),Vm=fo("Map.prototype.get",!0),$O=fo("Map.prototype.size",!0),Ym=fo("Set.prototype.add",!0),V4=fo("Set.prototype.delete",!0),Xm=fo("Set.prototype.has",!0),tm=fo("Set.prototype.size",!0);function BO(e,t,r,n){for(var i=Mf(e),a;(a=i.next())&&!a.done;)if(io(t,a.value,r,n))return V4(e,a.value),!0;return!1}function Y4(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function eY(e,t,r,n,i,a){var o=Y4(r);if(o!=null)return o;var l=Vm(t,o),s=q4({},i,{strict:!1});return typeof l>"u"&&!e2(t,o)||!io(n,l,s,a)?!1:!e2(e,o)&&io(n,l,s,a)}function tY(e,t,r){var n=Y4(r);return n??(Xm(t,n)&&!Xm(e,n))}function zO(e,t,r,n,i,a){for(var o=Mf(e),l,s;(l=o.next())&&!l.done;)if(s=l.value,io(r,s,i,a)&&io(n,Vm(t,s),i,a))return V4(e,s),!0;return!1}function io(e,t,r,n){var i=r||{};if(i.strict?OO(e,t):e===t)return!0;var a=IO(e),o=IO(t);if(a!==o)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return i.strict?OO(e,t):e==t;var l=n.has(e),s=n.has(t),f;if(l&&s){if(n.get(e)===n.get(t))return!0}else f={};return l||n.set(e,f),s||n.set(t,f),iY(e,t,i,n)}function UO(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function rY(e,t,r,n){if(tm(e)!==tm(t))return!1;for(var i=Mf(e),a=Mf(t),o,l,s;(o=i.next())&&!o.done;)if(o.value&&typeof o.value=="object")s||(s=new qm),Ym(s,o.value);else if(!Xm(t,o.value)){if(r.strict||!tY(e,t,o.value))return!1;s||(s=new qm),Ym(s,o.value)}if(s){for(;(l=a.next())&&!l.done;)if(l.value&&typeof l.value=="object"){if(!BO(s,l.value,r.strict,n))return!1}else if(!r.strict&&!Xm(e,l.value)&&!BO(s,l.value,r.strict,n))return!1;return tm(s)===0}return!0}function nY(e,t,r,n){if($O(e)!==$O(t))return!1;for(var i=Mf(e),a=Mf(t),o,l,s,f,d,g;(o=i.next())&&!o.done;)if(f=o.value[0],d=o.value[1],f&&typeof f=="object")s||(s=new qm),Ym(s,f);else if(g=Vm(t,f),typeof g>"u"&&!e2(t,f)||!io(d,g,r,n)){if(r.strict||!eY(e,t,f,d,r,n))return!1;s||(s=new qm),Ym(s,f)}if(s){for(;(l=a.next())&&!l.done;)if(f=l.value[0],g=l.value[1],f&&typeof f=="object"){if(!zO(s,e,f,g,r,n))return!1}else if(!r.strict&&(!e.has(f)||!io(Vm(e,f),g,r,n))&&!zO(s,e,f,g,q4({},r,{strict:!1}),n))return!1;return tm(s)===0}return!0}function iY(e,t,r,n){var i,a;if(typeof e!=typeof t||e==null||t==null||DO(e)!==DO(t)||CO(e)!==CO(t))return!1;var o=RO(e),l=RO(t);if(o!==l)return!1;var s=e instanceof Error,f=t instanceof Error;if(s!==f||(s||f)&&(e.name!==t.name||e.message!==t.message))return!1;var d=kO(e),g=kO(t);if(d!==g||(d||g)&&(e.source!==t.source||MO(e)!==MO(t)))return!1;var v=PO(e),y=PO(t);if(v!==y||(v||y)&&LO(e)!==LO(t)||r.strict&&hx&&hx(e)!==hx(t)||NO(e)!==NO(t))return!1;var E=UO(e),k=UO(t);if(E!==k)return!1;if(E||k){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!=typeof t)return!1;var x=TO(e),w=TO(t);if(x.length!==w.length)return!1;for(x.sort(),w.sort(),i=x.length-1;i>=0;i--)if(x[i]!=w[i])return!1;for(i=x.length-1;i>=0;i--)if(a=x[i],!io(e[a],t[a],r,n))return!1;var _=FO(e),C=FO(t);return _!==C?!1:_==="Set"||C==="Set"?rY(e,t,r,n):_==="Map"?nY(e,t,r,n):!0}var aY=function(t,r,n){return io(t,r,n,JV())};const uae=mi(aY);var oY={exports:{}};/*! Native Promise Only
848
+ `+t.prev}function h0(e,t){var r=Q_(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=zo(e,i)?t(e[i],e):""}var a=typeof rx=="function"?rx(e):[],o;if(Mf){o={};for(var l=0;l<a.length;l++)o["$"+a[l]]=a[l]}for(var s in e)zo(e,s)&&(r&&String(Number(s))===s&&s<e.length||Mf&&o["$"+s]instanceof Symbol||(A4.call(/[^\w$]/,s)?n.push(t(s,e)+": "+t(e[s],e)):n.push(s+": "+t(e[s],e))));if(typeof rx=="function")for(var f=0;f<a.length;f++)C4.call(e,a[f])&&n.push("["+t(a[f])+"]: "+t(e[a[f]],e));return n}var hE=xu,Vf=Ca,hV=Vq,dV=hE("%TypeError%"),d0=hE("%WeakMap%",!0),p0=hE("%Map%",!0),pV=Vf("WeakMap.prototype.get",!0),vV=Vf("WeakMap.prototype.set",!0),mV=Vf("WeakMap.prototype.has",!0),gV=Vf("Map.prototype.get",!0),yV=Vf("Map.prototype.set",!0),bV=Vf("Map.prototype.has",!0),dE=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},xV=function(e,t){var r=dE(e,t);return r&&r.value},wV=function(e,t,r){var n=dE(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},_V=function(e,t){return!!dE(e,t)},SV=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new dV("Side channel does not contain "+hV(a))},get:function(a){if(d0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return pV(t,a)}else if(p0){if(r)return gV(r,a)}else if(n)return xV(n,a)},has:function(a){if(d0&&a&&(typeof a=="object"||typeof a=="function")){if(t)return mV(t,a)}else if(p0){if(r)return bV(r,a)}else if(n)return _V(n,a);return!1},set:function(a,o){d0&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new d0),vV(t,a,o)):p0?(r||(r=new p0),yV(r,a,o)):(n||(n={key:{},next:null}),wV(n,a,o))}};return i},EV=Object.prototype.hasOwnProperty,AV=Object.prototype.toString,R4=function(t,r,n){if(AV.call(r)!=="[object Function]")throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var a=0;a<i;a++)r.call(n,t[a],a,t);else for(var o in t)EV.call(t,o)&&r.call(n,t[o],o,t)},ix=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],CV=typeof globalThis>"u"?Jt:globalThis,P4=function(){for(var t=[],r=0;r<ix.length;r++)typeof CV[ix[r]]=="function"&&(t[t.length]=ix[r]);return t},ax,bO;function TV(){if(bO)return ax;bO=1;var e=xu,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return ax=t,ax}var ox,xO;function I4(){return xO||(xO=1,ox=TV()),ox}var ux,wO;function OV(){if(wO)return ux;wO=1;var e=R4,t=P4,r=Ca,n=r("Object.prototype.toString"),i=bu(),a=typeof globalThis>"u"?Jt:globalThis,o=t(),l=r("Array.prototype.indexOf",!0)||function(E,M){for(var x=0;x<E.length;x+=1)if(E[x]===M)return x;return-1},s=r("String.prototype.slice"),f={},d=I4(),g=Object.getPrototypeOf;i&&d&&g&&e(o,function(y){var E=new a[y];if(Symbol.toStringTag in E){var M=g(E),x=d(M,Symbol.toStringTag);if(!x){var w=g(M);x=d(w,Symbol.toStringTag)}f[y]=x.get}});var v=function(E){var M=!1;return e(f,function(x,w){if(!M)try{M=x.call(E)===w}catch{}}),M};return ux=function(E){if(!E||typeof E!="object")return!1;if(!i||!(Symbol.toStringTag in E)){var M=s(n(E),8,-1);return l(o,M)>-1}return d?v(E):!1},ux}var F4=R4,MV=P4,N4=Ca,kV=N4("Object.prototype.toString"),L4=bu(),_O=typeof globalThis>"u"?Jt:globalThis,RV=MV(),PV=N4("String.prototype.slice"),D4={},lx=I4(),sx=Object.getPrototypeOf;L4&&lx&&sx&&F4(RV,function(e){if(typeof _O[e]=="function"){var t=new _O[e];if(Symbol.toStringTag in t){var r=sx(t),n=lx(r,Symbol.toStringTag);if(!n){var i=sx(r);n=lx(i,Symbol.toStringTag)}D4[e]=n.get}}});var IV=function(t){var r=!1;return F4(D4,function(n,i){if(!r)try{var a=n.call(t);a===i&&(r=a)}catch{}}),r},FV=OV(),NV=function(t){return FV(t)?!L4||!(Symbol.toStringTag in t)?PV(kV(t),8,-1):IV(t):!1},LV=iE,$4=Vg(),B4=Ca,SO=Object,DV=B4("Array.prototype.push"),EO=B4("Object.prototype.propertyIsEnumerable"),$V=$4?Object.getOwnPropertySymbols:null,z4=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=SO(t);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var a=SO(arguments[i]),o=LV(a),l=$4&&(Object.getOwnPropertySymbols||$V);if(l)for(var s=l(a),f=0;f<s.length;++f){var d=s[f];EO(a,d)&&DV(o,d)}for(var g=0;g<o.length;++g){var v=o[g];if(EO(a,v)){var y=a[v];n[v]=y}}}return n},fx=z4,BV=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",t=e.split(""),r={},n=0;n<t.length;++n)r[t[n]]=t[n];var i=Object.assign({},r),a="";for(var o in i)a+=o;return e!==a},zV=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1},U4=function(){return!Object.assign||BV()||zV()?fx:Object.assign},UV=Ul,jV=U4,GV=function(){var t=jV();return UV(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},WV=Ul,HV=Yg,qV=z4,j4=U4,VV=GV,YV=HV.apply(j4()),G4=function(t,r){return YV(Object,arguments)};WV(G4,{getPolyfill:j4,implementation:qV,shim:VV});var XV=G4,AO=iE,CO=t4,TO=iH,OO=lH,MO=AH,kO=g4,RO=PH,PO=hq,KV=xu,fo=Ca,IO=Sq,kf=Iq,QV=SV,FO=NV,W4=XV,NO=fo("Date.prototype.getTime"),cx=Object.getPrototypeOf,LO=fo("Object.prototype.toString"),Hm=KV("%Set%",!0),J_=fo("Map.prototype.has",!0),qm=fo("Map.prototype.get",!0),DO=fo("Map.prototype.size",!0),Vm=fo("Set.prototype.add",!0),H4=fo("Set.prototype.delete",!0),Ym=fo("Set.prototype.has",!0),em=fo("Set.prototype.size",!0);function $O(e,t,r,n){for(var i=kf(e),a;(a=i.next())&&!a.done;)if(io(t,a.value,r,n))return H4(e,a.value),!0;return!1}function q4(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function ZV(e,t,r,n,i,a){var o=q4(r);if(o!=null)return o;var l=qm(t,o),s=W4({},i,{strict:!1});return typeof l>"u"&&!J_(t,o)||!io(n,l,s,a)?!1:!J_(e,o)&&io(n,l,s,a)}function JV(e,t,r){var n=q4(r);return n??(Ym(t,n)&&!Ym(e,n))}function BO(e,t,r,n,i,a){for(var o=kf(e),l,s;(l=o.next())&&!l.done;)if(s=l.value,io(r,s,i,a)&&io(n,qm(t,s),i,a))return H4(e,s),!0;return!1}function io(e,t,r,n){var i=r||{};if(i.strict?TO(e,t):e===t)return!0;var a=PO(e),o=PO(t);if(a!==o)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return i.strict?TO(e,t):e==t;var l=n.has(e),s=n.has(t),f;if(l&&s){if(n.get(e)===n.get(t))return!0}else f={};return l||n.set(e,f),s||n.set(t,f),rY(e,t,i,n)}function zO(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function eY(e,t,r,n){if(em(e)!==em(t))return!1;for(var i=kf(e),a=kf(t),o,l,s;(o=i.next())&&!o.done;)if(o.value&&typeof o.value=="object")s||(s=new Hm),Vm(s,o.value);else if(!Ym(t,o.value)){if(r.strict||!JV(e,t,o.value))return!1;s||(s=new Hm),Vm(s,o.value)}if(s){for(;(l=a.next())&&!l.done;)if(l.value&&typeof l.value=="object"){if(!$O(s,l.value,r.strict,n))return!1}else if(!r.strict&&!Ym(e,l.value)&&!$O(s,l.value,r.strict,n))return!1;return em(s)===0}return!0}function tY(e,t,r,n){if(DO(e)!==DO(t))return!1;for(var i=kf(e),a=kf(t),o,l,s,f,d,g;(o=i.next())&&!o.done;)if(f=o.value[0],d=o.value[1],f&&typeof f=="object")s||(s=new Hm),Vm(s,f);else if(g=qm(t,f),typeof g>"u"&&!J_(t,f)||!io(d,g,r,n)){if(r.strict||!ZV(e,t,f,d,r,n))return!1;s||(s=new Hm),Vm(s,f)}if(s){for(;(l=a.next())&&!l.done;)if(f=l.value[0],g=l.value[1],f&&typeof f=="object"){if(!BO(s,e,f,g,r,n))return!1}else if(!r.strict&&(!e.has(f)||!io(qm(e,f),g,r,n))&&!BO(s,e,f,g,W4({},r,{strict:!1}),n))return!1;return em(s)===0}return!0}function rY(e,t,r,n){var i,a;if(typeof e!=typeof t||e==null||t==null||LO(e)!==LO(t)||CO(e)!==CO(t))return!1;var o=kO(e),l=kO(t);if(o!==l)return!1;var s=e instanceof Error,f=t instanceof Error;if(s!==f||(s||f)&&(e.name!==t.name||e.message!==t.message))return!1;var d=OO(e),g=OO(t);if(d!==g||(d||g)&&(e.source!==t.source||MO(e)!==MO(t)))return!1;var v=RO(e),y=RO(t);if(v!==y||(v||y)&&NO(e)!==NO(t)||r.strict&&cx&&cx(e)!==cx(t)||FO(e)!==FO(t))return!1;var E=zO(e),M=zO(t);if(E!==M)return!1;if(E||M){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!=typeof t)return!1;var x=AO(e),w=AO(t);if(x.length!==w.length)return!1;for(x.sort(),w.sort(),i=x.length-1;i>=0;i--)if(x[i]!=w[i])return!1;for(i=x.length-1;i>=0;i--)if(a=x[i],!io(e[a],t[a],r,n))return!1;var _=IO(e),T=IO(t);return _!==T?!1:_==="Set"||T==="Set"?eY(e,t,r,n):_==="Map"?tY(e,t,r,n):!0}var nY=function(t,r,n){return io(t,r,n,QV())};const iae=mi(nY);var iY={exports:{}};/*! Native Promise Only
849
849
  v0.8.1 (c) Kyle Simpson
850
850
  MIT License: http://getify.mit-license.org
851
- */(function(e){(function(r,n,i){n[r]=n[r]||i(),e.exports&&(e.exports=n[r])})("Promise",typeof Jt<"u"?Jt:Jt,function(){var r,n,i,a=Object.prototype.toString,o=typeof setImmediate<"u"?function(C){return setImmediate(C)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(C,T,F,L){return Object.defineProperty(C,T,{value:F,writable:!0,configurable:L!==!1})}}catch{r=function(T,F,L){return T[F]=L,T}}i=function(){var C,T,F;function L(V,j){this.fn=V,this.self=j,this.next=void 0}return{add:function(j,te){F=new L(j,te),T?T.next=F:C=F,T=F,F=void 0},drain:function(){var j=C;for(C=T=n=void 0;j;)j.fn.call(j.self),j=j.next}}}();function l(_,C){i.add(_,C),n||(n=o(i.drain))}function s(_){var C,T=typeof _;return _!=null&&(T=="object"||T=="function")&&(C=_.then),typeof C=="function"?C:!1}function f(){for(var _=0;_<this.chain.length;_++)d(this,this.state===1?this.chain[_].success:this.chain[_].failure,this.chain[_]);this.chain.length=0}function d(_,C,T){var F,L;try{C===!1?T.reject(_.msg):(C===!0?F=_.msg:F=C.call(void 0,_.msg),F===T.promise?T.reject(TypeError("Promise-chain cycle")):(L=s(F))?L.call(F,T.resolve,T.reject):T.resolve(F))}catch(V){T.reject(V)}}function g(_){var C,T=this;if(!T.triggered){T.triggered=!0,T.def&&(T=T.def);try{(C=s(_))?l(function(){var F=new E(T);try{C.call(_,function(){g.apply(F,arguments)},function(){v.apply(F,arguments)})}catch(L){v.call(F,L)}}):(T.msg=_,T.state=1,T.chain.length>0&&l(f,T))}catch(F){v.call(new E(T),F)}}}function v(_){var C=this;C.triggered||(C.triggered=!0,C.def&&(C=C.def),C.msg=_,C.state=2,C.chain.length>0&&l(f,C))}function y(_,C,T,F){for(var L=0;L<C.length;L++)(function(j){_.resolve(C[j]).then(function(ge){T(j,ge)},F)})(L)}function E(_){this.def=_,this.triggered=!1}function k(_){this.promise=_,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function x(_){if(typeof _!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var C=new k(this);this.then=function(F,L){var V={success:typeof F=="function"?F:!0,failure:typeof L=="function"?L:!1};return V.promise=new this.constructor(function(te,ge){if(typeof te!="function"||typeof ge!="function")throw TypeError("Not a function");V.resolve=te,V.reject=ge}),C.chain.push(V),C.state!==0&&l(f,C),V.promise},this.catch=function(F){return this.then(void 0,F)};try{_.call(void 0,function(F){g.call(C,F)},function(F){v.call(C,F)})}catch(T){v.call(C,T)}}var w=r({},"constructor",x,!1);return x.prototype=w,r(w,"__NPO__",0,!1),r(x,"resolve",function(C){var T=this;return C&&typeof C=="object"&&C.__NPO__===1?C:new T(function(L,V){if(typeof L!="function"||typeof V!="function")throw TypeError("Not a function");L(C)})}),r(x,"reject",function(C){return new this(function(F,L){if(typeof F!="function"||typeof L!="function")throw TypeError("Not a function");L(C)})}),r(x,"all",function(C){var T=this;return a.call(C)!="[object Array]"?T.reject(TypeError("Not an array")):C.length===0?T.resolve([]):new T(function(L,V){if(typeof L!="function"||typeof V!="function")throw TypeError("Not a function");var j=C.length,te=Array(j),ge=0;y(T,C,function(ke,Fe){te[ke]=Fe,++ge===j&&L(te)},V)})}),r(x,"race",function(C){var T=this;return a.call(C)!="[object Array]"?T.reject(TypeError("Not an array")):new T(function(L,V){if(typeof L!="function"||typeof V!="function")throw TypeError("Not a function");y(T,C,function(te,ge){L(ge)},V)})}),x})})(oY);var X4={exports:{}};(function(e){(function(){var t={version:"3.8.0"},r=[].slice,n=function(u){return r.call(u)},i=self.document;function a(u){return u&&(u.ownerDocument||u.document||u).documentElement}function o(u){return u&&(u.ownerDocument&&u.ownerDocument.defaultView||u.document&&u||u.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch{n=function(c){for(var h=c.length,p=new Array(h);h--;)p[h]=c[h];return p}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch{var l=this.Element.prototype,s=l.setAttribute,f=l.setAttributeNS,d=this.CSSStyleDeclaration.prototype,g=d.setProperty;l.setAttribute=function(c,h){s.call(this,c,h+"")},l.setAttributeNS=function(c,h,p){f.call(this,c,h,p+"")},d.setProperty=function(c,h,p){g.call(this,c,h+"",p)}}t.ascending=v;function v(u,c){return u<c?-1:u>c?1:u>=c?0:NaN}t.descending=function(u,c){return c<u?-1:c>u?1:c>=u?0:NaN},t.min=function(u,c){var h=-1,p=u.length,m,b;if(arguments.length===1){for(;++h<p;)if((b=u[h])!=null&&b>=b){m=b;break}for(;++h<p;)(b=u[h])!=null&&m>b&&(m=b)}else{for(;++h<p;)if((b=c.call(u,u[h],h))!=null&&b>=b){m=b;break}for(;++h<p;)(b=c.call(u,u[h],h))!=null&&m>b&&(m=b)}return m},t.max=function(u,c){var h=-1,p=u.length,m,b;if(arguments.length===1){for(;++h<p;)if((b=u[h])!=null&&b>=b){m=b;break}for(;++h<p;)(b=u[h])!=null&&b>m&&(m=b)}else{for(;++h<p;)if((b=c.call(u,u[h],h))!=null&&b>=b){m=b;break}for(;++h<p;)(b=c.call(u,u[h],h))!=null&&b>m&&(m=b)}return m},t.extent=function(u,c){var h=-1,p=u.length,m,b,O;if(arguments.length===1){for(;++h<p;)if((b=u[h])!=null&&b>=b){m=O=b;break}for(;++h<p;)(b=u[h])!=null&&(m>b&&(m=b),O<b&&(O=b))}else{for(;++h<p;)if((b=c.call(u,u[h],h))!=null&&b>=b){m=O=b;break}for(;++h<p;)(b=c.call(u,u[h],h))!=null&&(m>b&&(m=b),O<b&&(O=b))}return[m,O]};function y(u){return u===null?NaN:+u}function E(u){return!isNaN(u)}t.sum=function(u,c){var h=0,p=u.length,m,b=-1;if(arguments.length===1)for(;++b<p;)E(m=+u[b])&&(h+=m);else for(;++b<p;)E(m=+c.call(u,u[b],b))&&(h+=m);return h},t.mean=function(u,c){var h=0,p=u.length,m,b=-1,O=p;if(arguments.length===1)for(;++b<p;)E(m=y(u[b]))?h+=m:--O;else for(;++b<p;)E(m=y(c.call(u,u[b],b)))?h+=m:--O;if(O)return h/O},t.quantile=function(u,c){var h=(u.length-1)*c+1,p=Math.floor(h),m=+u[p-1],b=h-p;return b?m+b*(u[p]-m):m},t.median=function(u,c){var h=[],p=u.length,m,b=-1;if(arguments.length===1)for(;++b<p;)E(m=y(u[b]))&&h.push(m);else for(;++b<p;)E(m=y(c.call(u,u[b],b)))&&h.push(m);if(h.length)return t.quantile(h.sort(v),.5)},t.variance=function(u,c){var h=u.length,p=0,m,b,O=0,S=-1,P=0;if(arguments.length===1)for(;++S<h;)E(m=y(u[S]))&&(b=m-p,p+=b/++P,O+=b*(m-p));else for(;++S<h;)E(m=y(c.call(u,u[S],S)))&&(b=m-p,p+=b/++P,O+=b*(m-p));if(P>1)return O/(P-1)},t.deviation=function(){var u=t.variance.apply(this,arguments);return u&&Math.sqrt(u)};function k(u){return{left:function(c,h,p,m){for(arguments.length<3&&(p=0),arguments.length<4&&(m=c.length);p<m;){var b=p+m>>>1;u(c[b],h)<0?p=b+1:m=b}return p},right:function(c,h,p,m){for(arguments.length<3&&(p=0),arguments.length<4&&(m=c.length);p<m;){var b=p+m>>>1;u(c[b],h)>0?m=b:p=b+1}return p}}}var x=k(v);t.bisectLeft=x.left,t.bisect=t.bisectRight=x.right,t.bisector=function(u){return k(u.length===1?function(c,h){return v(u(c),h)}:u)},t.shuffle=function(u,c,h){(p=arguments.length)<3&&(h=u.length,p<2&&(c=0));for(var p=h-c,m,b;p;)b=Math.random()*p--|0,m=u[p+c],u[p+c]=u[b+c],u[b+c]=m;return u},t.permute=function(u,c){for(var h=c.length,p=new Array(h);h--;)p[h]=u[c[h]];return p},t.pairs=function(u){for(var c=0,h=u.length-1,p=u[0],m=new Array(h<0?0:h);c<h;)m[c]=[p,p=u[++c]];return m},t.transpose=function(u){if(!(b=u.length))return[];for(var c=-1,h=t.min(u,w),p=new Array(h);++c<h;)for(var m=-1,b,O=p[c]=new Array(b);++m<b;)O[m]=u[m][c];return p};function w(u){return u.length}t.zip=function(){return t.transpose(arguments)},t.keys=function(u){var c=[];for(var h in u)c.push(h);return c},t.values=function(u){var c=[];for(var h in u)c.push(u[h]);return c},t.entries=function(u){var c=[];for(var h in u)c.push({key:h,value:u[h]});return c},t.merge=function(u){for(var c=u.length,h,p=-1,m=0,b,O;++p<c;)m+=u[p].length;for(b=new Array(m);--c>=0;)for(O=u[c],h=O.length;--h>=0;)b[--m]=O[h];return b};var _=Math.abs;t.range=function(u,c,h){if(arguments.length<3&&(h=1,arguments.length<2&&(c=u,u=0)),(c-u)/h===1/0)throw new Error("infinite range");var p=[],m=C(_(h)),b=-1,O;if(u*=m,c*=m,h*=m,h<0)for(;(O=u+h*++b)>c;)p.push(O/m);else for(;(O=u+h*++b)<c;)p.push(O/m);return p};function C(u){for(var c=1;u*c%1;)c*=10;return c}function T(u,c){for(var h in c)Object.defineProperty(u.prototype,h,{value:c[h],enumerable:!1})}t.map=function(u,c){var h=new F;if(u instanceof F)u.forEach(function(S,P){h.set(S,P)});else if(Array.isArray(u)){var p=-1,m=u.length,b;if(arguments.length===1)for(;++p<m;)h.set(p,u[p]);else for(;++p<m;)h.set(c.call(u,b=u[p],p),b)}else for(var O in u)h.set(O,u[O]);return h};function F(){this._=Object.create(null)}var L="__proto__",V="\0";T(F,{has:ge,get:function(u){return this._[j(u)]},set:function(u,c){return this._[j(u)]=c},remove:me,keys:ke,values:function(){var u=[];for(var c in this._)u.push(this._[c]);return u},entries:function(){var u=[];for(var c in this._)u.push({key:te(c),value:this._[c]});return u},size:Fe,empty:Le,forEach:function(u){for(var c in this._)u.call(this,te(c),this._[c])}});function j(u){return(u+="")===L||u[0]===V?V+u:u}function te(u){return(u+="")[0]===V?u.slice(1):u}function ge(u){return j(u)in this._}function me(u){return(u=j(u))in this._&&delete this._[u]}function ke(){var u=[];for(var c in this._)u.push(te(c));return u}function Fe(){var u=0;for(var c in this._)++u;return u}function Le(){for(var u in this._)return!1;return!0}t.nest=function(){var u={},c=[],h=[],p,m;function b(S,P,N){if(N>=c.length)return m?m.call(u,P):p?P.sort(p):P;for(var D=-1,B=P.length,z=c[N++],ie,oe,G,X=new F,J;++D<B;)(J=X.get(ie=z(oe=P[D])))?J.push(oe):X.set(ie,[oe]);return S?(oe=S(),G=function(ue,le){oe.set(ue,b(S,le,N))}):(oe={},G=function(ue,le){oe[ue]=b(S,le,N)}),X.forEach(G),oe}function O(S,P){if(P>=c.length)return S;var N=[],D=h[P++];return S.forEach(function(B,z){N.push({key:B,values:O(z,P)})}),D?N.sort(function(B,z){return D(B.key,z.key)}):N}return u.map=function(S,P){return b(P,S,0)},u.entries=function(S){return O(b(t.map,S,0),0)},u.key=function(S){return c.push(S),u},u.sortKeys=function(S){return h[c.length-1]=S,u},u.sortValues=function(S){return p=S,u},u.rollup=function(S){return m=S,u},u},t.set=function(u){var c=new ut;if(u)for(var h=0,p=u.length;h<p;++h)c.add(u[h]);return c};function ut(){this._=Object.create(null)}T(ut,{has:ge,add:function(u){return this._[j(u+="")]=!0,u},remove:me,values:ke,size:Fe,empty:Le,forEach:function(u){for(var c in this._)u.call(this,te(c))}}),t.behavior={};function nt(u){return u}t.rebind=function(u,c){for(var h=1,p=arguments.length,m;++h<p;)u[m=arguments[h]]=De(u,c,c[m]);return u};function De(u,c,h){return function(){var p=h.apply(c,arguments);return p===c?u:p}}function We(u,c){if(c in u)return c;c=c.charAt(0).toUpperCase()+c.slice(1);for(var h=0,p=_t.length;h<p;++h){var m=_t[h]+c;if(m in u)return m}}var _t=["webkit","ms","moz","Moz","o","O"];function He(){}t.dispatch=function(){for(var u=new we,c=-1,h=arguments.length;++c<h;)u[arguments[c]]=qe(u);return u};function we(){}we.prototype.on=function(u,c){var h=u.indexOf("."),p="";if(h>=0&&(p=u.slice(h+1),u=u.slice(0,h)),u)return arguments.length<2?this[u].on(p):this[u].on(p,c);if(arguments.length===2){if(c==null)for(u in this)this.hasOwnProperty(u)&&this[u].on(p,null);return this}};function qe(u){var c=[],h=new F;function p(){for(var m=c,b=-1,O=m.length,S;++b<O;)(S=m[b].on)&&S.apply(this,arguments);return u}return p.on=function(m,b){var O=h.get(m),S;return arguments.length<2?O&&O.on:(O&&(O.on=null,c=c.slice(0,S=c.indexOf(O)).concat(c.slice(S+1)),h.remove(m)),b&&c.push(h.set(m,{on:b})),u)},p}t.event=null;function st(){t.event.preventDefault()}function Ke(){for(var u=t.event,c;c=u.sourceEvent;)u=c;return u}function ct(u){for(var c=new we,h=0,p=arguments.length;++h<p;)c[arguments[h]]=qe(c);return c.of=function(m,b){return function(O){try{var S=O.sourceEvent=t.event;O.target=u,t.event=O,c[O.type].apply(m,b)}finally{t.event=S}}},c}t.requote=function(u){return u.replace(yt,"\\$&")};var yt=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,qt={}.__proto__?function(u,c){u.__proto__=c}:function(u,c){for(var h in c)u[h]=c[h]};function Yt(u){return qt(u,Ce),u}var Qe=function(u,c){return c.querySelector(u)},At=function(u,c){return c.querySelectorAll(u)},Gt=function(u,c){var h=u.matches||u[We(u,"matchesSelector")];return Gt=function(p,m){return h.call(p,m)},Gt(u,c)};typeof Sizzle=="function"&&(Qe=function(u,c){return Sizzle(u,c)[0]||null},At=Sizzle,Gt=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Ce=t.selection.prototype=[];Ce.select=function(u){var c=[],h,p,m,b;u=W(u);for(var O=-1,S=this.length;++O<S;){c.push(h=[]),h.parentNode=(m=this[O]).parentNode;for(var P=-1,N=m.length;++P<N;)(b=m[P])?(h.push(p=u.call(b,b.__data__,P,O)),p&&"__data__"in b&&(p.__data__=b.__data__)):h.push(null)}return Yt(c)};function W(u){return typeof u=="function"?u:function(){return Qe(u,this)}}Ce.selectAll=function(u){var c=[],h,p;u=ae(u);for(var m=-1,b=this.length;++m<b;)for(var O=this[m],S=-1,P=O.length;++S<P;)(p=O[S])&&(c.push(h=n(u.call(p,p.__data__,S,m))),h.parentNode=p);return Yt(c)};function ae(u){return typeof u=="function"?u:function(){return At(u,this)}}var R="http://www.w3.org/1999/xhtml",A={svg:"http://www.w3.org/2000/svg",xhtml:R,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};t.ns={prefix:A,qualify:function(u){var c=u.indexOf(":"),h=u;return c>=0&&(h=u.slice(0,c))!=="xmlns"&&(u=u.slice(c+1)),A.hasOwnProperty(h)?{space:A[h],local:u}:u}},Ce.attr=function(u,c){if(arguments.length<2){if(typeof u=="string"){var h=this.node();return u=t.ns.qualify(u),u.local?h.getAttributeNS(u.space,u.local):h.getAttribute(u)}for(c in u)this.each(M(c,u[c]));return this}return this.each(M(u,c))};function M(u,c){u=t.ns.qualify(u);function h(){this.removeAttribute(u)}function p(){this.removeAttributeNS(u.space,u.local)}function m(){this.setAttribute(u,c)}function b(){this.setAttributeNS(u.space,u.local,c)}function O(){var P=c.apply(this,arguments);P==null?this.removeAttribute(u):this.setAttribute(u,P)}function S(){var P=c.apply(this,arguments);P==null?this.removeAttributeNS(u.space,u.local):this.setAttributeNS(u.space,u.local,P)}return c==null?u.local?p:h:typeof c=="function"?u.local?S:O:u.local?b:m}function $(u){return u.trim().replace(/\s+/g," ")}Ce.classed=function(u,c){if(arguments.length<2){if(typeof u=="string"){var h=this.node(),p=(u=Ie(u)).length,m=-1;if(c=h.classList){for(;++m<p;)if(!c.contains(u[m]))return!1}else for(c=h.getAttribute("class");++m<p;)if(!fe(u[m]).test(c))return!1;return!0}for(c in u)this.each(ze(c,u[c]));return this}return this.each(ze(u,c))};function fe(u){return new RegExp("(?:^|\\s+)"+t.requote(u)+"(?:\\s+|$)","g")}function Ie(u){return(u+"").trim().split(/^|\s+/)}function ze(u,c){u=Ie(u).map(Qt);var h=u.length;function p(){for(var b=-1;++b<h;)u[b](this,c)}function m(){for(var b=-1,O=c.apply(this,arguments);++b<h;)u[b](this,O)}return typeof c=="function"?m:p}function Qt(u){var c=fe(u);return function(h,p){if(m=h.classList)return p?m.add(u):m.remove(u);var m=h.getAttribute("class")||"";p?(c.lastIndex=0,c.test(m)||h.setAttribute("class",$(m+" "+u))):h.setAttribute("class",$(m.replace(c," ")))}}Ce.style=function(u,c,h){var p=arguments.length;if(p<3){if(typeof u!="string"){p<2&&(c="");for(h in u)this.each(fr(h,u[h],c));return this}if(p<2){var m=this.node();return o(m).getComputedStyle(m,null).getPropertyValue(u)}h=""}return this.each(fr(u,c,h))};function fr(u,c,h){function p(){this.style.removeProperty(u)}function m(){this.style.setProperty(u,c,h)}function b(){var O=c.apply(this,arguments);O==null?this.style.removeProperty(u):this.style.setProperty(u,O,h)}return c==null?p:typeof c=="function"?b:m}Ce.property=function(u,c){if(arguments.length<2){if(typeof u=="string")return this.node()[u];for(c in u)this.each(ir(c,u[c]));return this}return this.each(ir(u,c))};function ir(u,c){function h(){delete this[u]}function p(){this[u]=c}function m(){var b=c.apply(this,arguments);b==null?delete this[u]:this[u]=b}return c==null?h:typeof c=="function"?m:p}Ce.text=function(u){return arguments.length?this.each(typeof u=="function"?function(){var c=u.apply(this,arguments);this.textContent=c??""}:u==null?function(){this.textContent=""}:function(){this.textContent=u}):this.node().textContent},Ce.html=function(u){return arguments.length?this.each(typeof u=="function"?function(){var c=u.apply(this,arguments);this.innerHTML=c??""}:u==null?function(){this.innerHTML=""}:function(){this.innerHTML=u}):this.node().innerHTML},Ce.append=function(u){return u=Yr(u),this.select(function(){return this.appendChild(u.apply(this,arguments))})};function Yr(u){function c(){var p=this.ownerDocument,m=this.namespaceURI;return m===R&&p.documentElement.namespaceURI===R?p.createElement(u):p.createElementNS(m,u)}function h(){return this.ownerDocument.createElementNS(u.space,u.local)}return typeof u=="function"?u:(u=t.ns.qualify(u)).local?h:c}Ce.insert=function(u,c){return u=Yr(u),c=W(c),this.select(function(){return this.insertBefore(u.apply(this,arguments),c.apply(this,arguments)||null)})},Ce.remove=function(){return this.each(Mr)};function Mr(){var u=this.parentNode;u&&u.removeChild(this)}Ce.data=function(u,c){var h=-1,p=this.length,m,b;if(!arguments.length){for(u=new Array(p=(m=this[0]).length);++h<p;)(b=m[h])&&(u[h]=b.__data__);return u}function O(D,B){var z,ie=D.length,oe=B.length,G=Math.min(ie,oe),X=new Array(oe),J=new Array(oe),ue=new Array(ie),le,re;if(c){var Pe=new F,Ue=new Array(ie),tt;for(z=-1;++z<ie;)(le=D[z])&&(Pe.has(tt=c.call(le,le.__data__,z))?ue[z]=le:Pe.set(tt,le),Ue[z]=tt);for(z=-1;++z<oe;)(le=Pe.get(tt=c.call(B,re=B[z],z)))?le!==!0&&(X[z]=le,le.__data__=re):J[z]=na(re),Pe.set(tt,!0);for(z=-1;++z<ie;)z in Ue&&Pe.get(Ue[z])!==!0&&(ue[z]=D[z])}else{for(z=-1;++z<G;)le=D[z],re=B[z],le?(le.__data__=re,X[z]=le):J[z]=na(re);for(;z<oe;++z)J[z]=na(B[z]);for(;z<ie;++z)ue[z]=D[z]}J.update=X,J.parentNode=X.parentNode=ue.parentNode=D.parentNode,S.push(J),P.push(X),N.push(ue)}var S=Ap([]),P=Yt([]),N=Yt([]);if(typeof u=="function")for(;++h<p;)O(m=this[h],u.call(m,m.parentNode.__data__,h));else for(;++h<p;)O(m=this[h],u);return P.enter=function(){return S},P.exit=function(){return N},P};function na(u){return{__data__:u}}Ce.datum=function(u){return arguments.length?this.property("__data__",u):this.property("__data__")},Ce.filter=function(u){var c=[],h,p,m;typeof u!="function"&&(u=Eu(u));for(var b=0,O=this.length;b<O;b++){c.push(h=[]),h.parentNode=(p=this[b]).parentNode;for(var S=0,P=p.length;S<P;S++)(m=p[S])&&u.call(m,m.__data__,S,b)&&h.push(m)}return Yt(c)};function Eu(u){return function(){return Gt(this,u)}}Ce.order=function(){for(var u=-1,c=this.length;++u<c;)for(var h=this[u],p=h.length-1,m=h[p],b;--p>=0;)(b=h[p])&&(m&&m!==b.nextSibling&&m.parentNode.insertBefore(b,m),m=b);return this},Ce.sort=function(u){u=Ca.apply(this,arguments);for(var c=-1,h=this.length;++c<h;)this[c].sort(u);return this.order()};function Ca(u){return arguments.length||(u=v),function(c,h){return c&&h?u(c.__data__,h.__data__):!c-!h}}Ce.each=function(u){return xi(this,function(c,h,p){u.call(c,c.__data__,h,p)})};function xi(u,c){for(var h=0,p=u.length;h<p;h++)for(var m=u[h],b=0,O=m.length,S;b<O;b++)(S=m[b])&&c(S,b,h);return u}Ce.call=function(u){var c=n(arguments);return u.apply(c[0]=this,c),this},Ce.empty=function(){return!this.node()},Ce.node=function(){for(var u=0,c=this.length;u<c;u++)for(var h=this[u],p=0,m=h.length;p<m;p++){var b=h[p];if(b)return b}return null},Ce.size=function(){var u=0;return xi(this,function(){++u}),u};function Ap(u){return qt(u,Li),u}var Li=[];t.selection.enter=Ap,t.selection.enter.prototype=Li,Li.append=Ce.append,Li.empty=Ce.empty,Li.node=Ce.node,Li.call=Ce.call,Li.size=Ce.size,Li.select=function(u){for(var c=[],h,p,m,b,O,S=-1,P=this.length;++S<P;){m=(b=this[S]).update,c.push(h=[]),h.parentNode=b.parentNode;for(var N=-1,D=b.length;++N<D;)(O=b[N])?(h.push(m[N]=p=u.call(b.parentNode,O.__data__,N,S)),p.__data__=O.__data__):h.push(null)}return Yt(c)},Li.insert=function(u,c){return arguments.length<2&&(c=Au(this)),Ce.insert.call(this,u,c)};function Au(u){var c,h;return function(p,m,b){var O=u[b].update,S=O.length,P;for(b!=h&&(h=b,c=0),m>=c&&(c=m+1);!(P=O[c])&&++c<S;);return P}}t.select=function(u){var c;return typeof u=="string"?(c=[Qe(u,i)],c.parentNode=i.documentElement):(c=[u],c.parentNode=a(u)),Yt([c])},t.selectAll=function(u){var c;return typeof u=="string"?(c=n(At(u,i)),c.parentNode=i.documentElement):(c=n(u),c.parentNode=null),Yt([c])},Ce.on=function(u,c,h){var p=arguments.length;if(p<3){if(typeof u!="string"){p<2&&(c=!1);for(h in u)this.each(Hl(h,u[h],c));return this}if(p<2)return(p=this.node()["__on"+u])&&p._;h=!1}return this.each(Hl(u,c,h))};function Hl(u,c,h){var p="__on"+u,m=u.indexOf("."),b=Vl;m>0&&(u=u.slice(0,m));var O=ql.get(u);O&&(u=O,b=_y);function S(){var D=this[p];D&&(this.removeEventListener(u,D,D.$),delete this[p])}function P(){var D=b(c,n(arguments));S.call(this),this.addEventListener(u,this[p]=D,D.$=h),D._=c}function N(){var D=new RegExp("^__on([^.]+)"+t.requote(u)+"$"),B;for(var z in this)if(B=z.match(D)){var ie=this[z];this.removeEventListener(B[1],ie,ie.$),delete this[z]}}return m?c?P:S:c?He:N}var ql=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&ql.forEach(function(u){"on"+u in i&&ql.remove(u)});function Vl(u,c){return function(h){var p=t.event;t.event=h,c[0]=this.__data__;try{u.apply(this,c)}finally{t.event=p}}}function _y(u,c){var h=Vl(u,c);return function(p){var m=this,b=p.relatedTarget;(!b||b!==m&&!(b.compareDocumentPosition(m)&8))&&h.call(m,p)}}var Oa,Sy=0;function Yl(u){var c=".dragsuppress-"+ ++Sy,h="click"+c,p=t.select(o(u)).on("touchmove"+c,st).on("dragstart"+c,st).on("selectstart"+c,st);if(Oa==null&&(Oa="onselectstart"in u?!1:We(u.style,"userSelect")),Oa){var m=a(u).style,b=m[Oa];m[Oa]="none"}return function(O){if(p.on(c,null),Oa&&(m[Oa]=b),O){var S=function(){p.on(h,null)};p.on(h,function(){st(),S()},!0),setTimeout(S,0)}}}t.mouse=function(u){return ai(u,Ke())};var rn=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ai(u,c){c.changedTouches&&(c=c.changedTouches[0]);var h=u.ownerSVGElement||u;if(h.createSVGPoint){var p=h.createSVGPoint();if(rn<0){var m=o(u);if(m.scrollX||m.scrollY){h=t.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var b=h[0][0].getScreenCTM();rn=!(b.f||b.e),h.remove()}}return rn?(p.x=c.pageX,p.y=c.pageY):(p.x=c.clientX,p.y=c.clientY),p=p.matrixTransform(u.getScreenCTM().inverse()),[p.x,p.y]}var O=u.getBoundingClientRect();return[c.clientX-O.left-u.clientLeft,c.clientY-O.top-u.clientTop]}t.touch=function(u,c,h){if(arguments.length<3&&(h=c,c=Ke().changedTouches),c){for(var p=0,m=c.length,b;p<m;++p)if((b=c[p]).identifier===h)return ai(u,b)}},t.behavior.drag=function(){var u=ct(m,"drag","dragstart","dragend"),c=null,h=b(He,t.mouse,o,"mousemove","mouseup"),p=b(zn,t.touch,nt,"touchmove","touchend");function m(){this.on("mousedown.drag",h).on("touchstart.drag",p)}function b(O,S,P,N,D){return function(){var B=this,z=t.event.target.correspondingElement||t.event.target,ie=B.parentNode,oe=u.of(B,arguments),G=0,X=O(),J=".drag"+(X==null?"":"-"+X),ue,le=t.select(P(z)).on(N+J,Ue).on(D+J,tt),re=Yl(z),Pe=S(ie,X);c?(ue=c.apply(B,arguments),ue=[ue.x-Pe[0],ue.y-Pe[1]]):ue=[0,0],oe({type:"dragstart"});function Ue(){var je=S(ie,X),at,vt;je&&(at=je[0]-Pe[0],vt=je[1]-Pe[1],G|=at|vt,Pe=je,oe({type:"drag",x:je[0]+ue[0],y:je[1]+ue[1],dx:at,dy:vt}))}function tt(){S(ie,X)&&(le.on(N+J,null).on(D+J,null),re(G),oe({type:"dragend"}))}}}return m.origin=function(O){return arguments.length?(c=O,m):c},t.rebind(m,u,"on")};function zn(){return t.event.changedTouches[0].identifier}t.touches=function(u,c){return arguments.length<2&&(c=Ke().touches),c?n(c).map(function(h){var p=ai(u,h);return p.identifier=h.identifier,p}):[]};var ar=1e-6,Tp=ar*ar,Di=Math.PI,co=2*Di,Cp=co-ar,wi=Di/2,Op=Di/180,Tu=180/Di;function Ey(u,c,h){return(c[0]-u[0])*(h[1]-u[1])-(c[1]-u[1])*(h[0]-u[0])}function kp(u){return u>1?wi:u<-1?-wi:Math.asin(u)}function Ay(u){return((u=Math.exp(u))-1/u)/2}function Mp(u){return((u=Math.exp(u))+1/u)/2}function Ty(u){return((u=Math.exp(2*u))-1)/(u+1)}var Cu=Math.SQRT2,Kf=2,Rp=4;t.interpolateZoom=function(u,c){var h=u[0],p=u[1],m=u[2],b=c[0],O=c[1],S=c[2],P=b-h,N=O-p,D=P*P+N*N,B,z;if(D<Tp)z=Math.log(S/m)/Cu,B=function(ue){return[h+ue*P,p+ue*N,m*Math.exp(Cu*ue*z)]};else{var ie=Math.sqrt(D),oe=(S*S-m*m+Rp*D)/(2*m*Kf*ie),G=(S*S-m*m-Rp*D)/(2*S*Kf*ie),X=Math.log(Math.sqrt(oe*oe+1)-oe),J=Math.log(Math.sqrt(G*G+1)-G);z=(J-X)/Cu,B=function(ue){var le=ue*z,re=Mp(X),Pe=m/(Kf*ie)*(re*Ty(Cu*le+X)-Ay(X));return[h+Pe*P,p+Pe*N,m*re/Mp(Cu*le+X)]}}return B.duration=z*1e3,B},t.behavior.zoom=function(){var u={x:0,y:0,k:1},c,h,p,m=[960,500],b=Ou,O=250,S=0,P="mousedown.zoom",N="mousemove.zoom",D="mouseup.zoom",B,z="touchstart.zoom",ie,oe=ct(le,"zoomstart","zoom","zoomend"),G,X,J,ue;Qf||(Qf="onwheel"in i?(Xl=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},"wheel"):"onmousewheel"in i?(Xl=function(){return t.event.wheelDelta},"mousewheel"):(Xl=function(){return-t.event.detail},"MozMousePixelScroll"));function le(rt){rt.on(P,Ut).on(Qf+".zoom",Rr).on("dblclick.zoom",pr).on(z,or)}le.event=function(rt){rt.each(function(){var Ht=oe.of(this,arguments),Xt=u;Wi?t.select(this).transition().each("start.zoom",function(){u=this.__chart__||{x:0,y:0,k:1},vt(Ht)}).tween("zoom:zoom",function(){var ur=m[0],Ar=m[1],zr=h?h[0]:ur/2,Xr=h?h[1]:Ar/2,vn=t.interpolateZoom([(zr-u.x)/u.k,(Xr-u.y)/u.k,ur/u.k],[(zr-Xt.x)/Xt.k,(Xr-Xt.y)/Xt.k,ur/Xt.k]);return function(En){var on=vn(En),In=ur/on[2];this.__chart__=u={x:zr-on[0]*In,y:Xr-on[1]*In,k:In},Wt(Ht)}}).each("interrupt.zoom",function(){xt(Ht)}).each("end.zoom",function(){xt(Ht)}):(this.__chart__=u,vt(Ht),Wt(Ht),xt(Ht))})},le.translate=function(rt){return arguments.length?(u={x:+rt[0],y:+rt[1],k:u.k},at(),le):[u.x,u.y]},le.scale=function(rt){return arguments.length?(u={x:u.x,y:u.y,k:null},Ue(+rt),at(),le):u.k},le.scaleExtent=function(rt){return arguments.length?(b=rt==null?Ou:[+rt[0],+rt[1]],le):b},le.center=function(rt){return arguments.length?(p=rt&&[+rt[0],+rt[1]],le):p},le.size=function(rt){return arguments.length?(m=rt&&[+rt[0],+rt[1]],le):m},le.duration=function(rt){return arguments.length?(O=+rt,le):O},le.x=function(rt){return arguments.length?(X=rt,G=rt.copy(),u={x:0,y:0,k:1},le):X},le.y=function(rt){return arguments.length?(ue=rt,J=rt.copy(),u={x:0,y:0,k:1},le):ue};function re(rt){return[(rt[0]-u.x)/u.k,(rt[1]-u.y)/u.k]}function Pe(rt){return[rt[0]*u.k+u.x,rt[1]*u.k+u.y]}function Ue(rt){u.k=Math.max(b[0],Math.min(b[1],rt))}function tt(rt,Ht){Ht=Pe(Ht),u.x+=rt[0]-Ht[0],u.y+=rt[1]-Ht[1]}function je(rt,Ht,Xt,ur){rt.__chart__={x:u.x,y:u.y,k:u.k},Ue(Math.pow(2,ur)),tt(h=Ht,Xt),rt=t.select(rt),O>0&&(rt=rt.transition().duration(O)),rt.call(le.event)}function at(){X&&X.domain(G.range().map(function(rt){return(rt-u.x)/u.k}).map(G.invert)),ue&&ue.domain(J.range().map(function(rt){return(rt-u.y)/u.k}).map(J.invert))}function vt(rt){S++||rt({type:"zoomstart"})}function Wt(rt){at(),rt({type:"zoom",scale:u.k,translate:[u.x,u.y]})}function xt(rt){--S||(rt({type:"zoomend"}),h=null)}function Ut(){var rt=this,Ht=oe.of(rt,arguments),Xt=0,ur=t.select(o(rt)).on(N,Xr).on(D,vn),Ar=re(t.mouse(rt)),zr=Yl(rt);Cs.call(rt),vt(Ht);function Xr(){Xt=1,tt(t.mouse(rt),Ar),Wt(Ht)}function vn(){ur.on(N,null).on(D,null),zr(Xt),xt(Ht)}}function or(){var rt=this,Ht=oe.of(rt,arguments),Xt={},ur=0,Ar,zr=".zoom-"+t.event.changedTouches[0].identifier,Xr="touchmove"+zr,vn="touchend"+zr,En=[],on=t.select(rt),In=Yl(rt);H(),vt(Ht),on.on(P,null).on(z,H);function I(){var Me=t.touches(rt);return Ar=u.k,Me.forEach(function(be){be.identifier in Xt&&(Xt[be.identifier]=re(be))}),Me}function H(){var Me=t.event.target;t.select(Me).on(Xr,Z).on(vn,Ee),En.push(Me);for(var be=t.event.changedTouches,_e=0,Ye=be.length;_e<Ye;++_e)Xt[be[_e].identifier]=null;var Xe=I(),et=Date.now();if(Xe.length===1){if(et-ie<500){var ft=Xe[0];je(rt,ft,Xt[ft.identifier],Math.floor(Math.log(u.k)/Math.LN2)+1),st()}ie=et}else if(Xe.length>1){var ft=Xe[0],Rt=Xe[1],St=ft[0]-Rt[0],it=ft[1]-Rt[1];ur=St*St+it*it}}function Z(){var Me=t.touches(rt),be,_e,Ye,Xe;Cs.call(rt);for(var et=0,ft=Me.length;et<ft;++et,Xe=null)if(Ye=Me[et],Xe=Xt[Ye.identifier]){if(_e)break;be=Ye,_e=Xe}if(Xe){var Rt=(Rt=Ye[0]-be[0])*Rt+(Rt=Ye[1]-be[1])*Rt,St=ur&&Math.sqrt(Rt/ur);be=[(be[0]+Ye[0])/2,(be[1]+Ye[1])/2],_e=[(_e[0]+Xe[0])/2,(_e[1]+Xe[1])/2],Ue(St*Ar)}ie=null,tt(be,_e),Wt(Ht)}function Ee(){if(t.event.touches.length){for(var Me=t.event.changedTouches,be=0,_e=Me.length;be<_e;++be)delete Xt[Me[be].identifier];for(var Ye in Xt)return void I()}t.selectAll(En).on(zr,null),on.on(P,Ut).on(z,or),In(),xt(Ht)}}function Rr(){var rt=oe.of(this,arguments);B?clearTimeout(B):(Cs.call(this),c=re(h=p||t.mouse(this)),vt(rt)),B=setTimeout(function(){B=null,xt(rt)},50),st(),Ue(Math.pow(2,Xl()*.002)*u.k),tt(h,c),Wt(rt)}function pr(){var rt=t.mouse(this),Ht=Math.log(u.k)/Math.LN2;je(this,rt,re(rt),t.event.shiftKey?Math.ceil(Ht)-1:Math.floor(Ht)+1)}return t.rebind(le,oe,"on")};var Ou=[0,1/0],Xl,Qf;t.color=ia;function ia(){}ia.prototype.toString=function(){return this.rgb()+""},t.hsl=Vn;function Vn(u,c,h){return this instanceof Vn?(this.h=+u,this.s=+c,void(this.l=+h)):arguments.length<2?u instanceof Vn?new Vn(u.h,u.s,u.l):Ma(""+u,ic,Vn):new Vn(u,c,h)}var Kl=Vn.prototype=new ia;Kl.brighter=function(u){return u=Math.pow(.7,arguments.length?u:1),new Vn(this.h,this.s,this.l/u)},Kl.darker=function(u){return u=Math.pow(.7,arguments.length?u:1),new Vn(this.h,this.s,u*this.l)},Kl.rgb=function(){return Ql(this.h,this.s,this.l)};function Ql(u,c,h){var p,m;u=isNaN(u)?0:(u%=360)<0?u+360:u,c=isNaN(c)||c<0?0:c>1?1:c,h=h<0?0:h>1?1:h,m=h<=.5?h*(1+c):h+c-h*c,p=2*h-m;function b(S){return S>360?S-=360:S<0&&(S+=360),S<60?p+(m-p)*S/60:S<180?m:S<240?p+(m-p)*(240-S)/60:p}function O(S){return Math.round(b(S)*255)}return new nn(O(u+120),O(u),O(u-120))}t.hcl=oi;function oi(u,c,h){return this instanceof oi?(this.h=+u,this.c=+c,void(this.l=+h)):arguments.length<2?u instanceof oi?new oi(u.h,u.c,u.l):u instanceof Zr?Fp(u.l,u.a,u.b):Fp((u=Ra((u=t.rgb(u)).r,u.g,u.b)).l,u.a,u.b):new oi(u,c,h)}var ku=oi.prototype=new ia;ku.brighter=function(u){return new oi(this.h,this.c,Math.min(100,this.l+ka*(arguments.length?u:1)))},ku.darker=function(u){return new oi(this.h,this.c,Math.max(0,this.l-ka*(arguments.length?u:1)))},ku.rgb=function(){return Mu(this.h,this.c,this.l).rgb()};function Mu(u,c,h){return isNaN(u)&&(u=0),isNaN(c)&&(c=0),new Zr(h,Math.cos(u*=Op)*c,Math.sin(u)*c)}t.lab=Zr;function Zr(u,c,h){return this instanceof Zr?(this.l=+u,this.a=+c,void(this.b=+h)):arguments.length<2?u instanceof Zr?new Zr(u.l,u.a,u.b):u instanceof oi?Mu(u.h,u.c,u.l):Ra((u=nn(u)).r,u.g,u.b):new Zr(u,c,h)}var ka=18,Zf=.95047,Jf=1,Pp=1.08883,ec=Zr.prototype=new ia;ec.brighter=function(u){return new Zr(Math.min(100,this.l+ka*(arguments.length?u:1)),this.a,this.b)},ec.darker=function(u){return new Zr(Math.max(0,this.l-ka*(arguments.length?u:1)),this.a,this.b)},ec.rgb=function(){return Ip(this.l,this.a,this.b)};function Ip(u,c,h){var p=(u+16)/116,m=p+c/500,b=p-h/200;return m=tc(m)*Zf,p=tc(p)*Jf,b=tc(b)*Pp,new nn(nc(3.2404542*m-1.5371385*p-.4985314*b),nc(-.969266*m+1.8760108*p+.041556*b),nc(.0556434*m-.2040259*p+1.0572252*b))}function Fp(u,c,h){return u>0?new oi(Math.atan2(h,c)*Tu,Math.sqrt(c*c+h*h),u):new oi(NaN,NaN,u)}function tc(u){return u>.206893034?u*u*u:(u-4/29)/7.787037}function rc(u){return u>.008856?Math.pow(u,1/3):7.787037*u+4/29}function nc(u){return Math.round(255*(u<=.00304?12.92*u:1.055*Math.pow(u,1/2.4)-.055))}t.rgb=nn;function nn(u,c,h){return this instanceof nn?(this.r=~~u,this.g=~~c,void(this.b=~~h)):arguments.length<2?u instanceof nn?new nn(u.r,u.g,u.b):Ma(""+u,nn,Ql):new nn(u,c,h)}function Np(u){return new nn(u>>16,u>>8&255,u&255)}function Zl(u){return Np(u)+""}var aa=nn.prototype=new ia;aa.brighter=function(u){u=Math.pow(.7,arguments.length?u:1);var c=this.r,h=this.g,p=this.b,m=30;return!c&&!h&&!p?new nn(m,m,m):(c&&c<m&&(c=m),h&&h<m&&(h=m),p&&p<m&&(p=m),new nn(Math.min(255,c/u),Math.min(255,h/u),Math.min(255,p/u)))},aa.darker=function(u){return u=Math.pow(.7,arguments.length?u:1),new nn(u*this.r,u*this.g,u*this.b)},aa.hsl=function(){return ic(this.r,this.g,this.b)},aa.toString=function(){return"#"+ho(this.r)+ho(this.g)+ho(this.b)};function ho(u){return u<16?"0"+Math.max(0,u).toString(16):Math.min(255,u).toString(16)}function Ma(u,c,h){var p=0,m=0,b=0,O,S,P;if(O=/([a-z]+)\((.*)\)/.exec(u=u.toLowerCase()),O)switch(S=O[2].split(","),O[1]){case"hsl":return h(parseFloat(S[0]),parseFloat(S[1])/100,parseFloat(S[2])/100);case"rgb":return c(oa(S[0]),oa(S[1]),oa(S[2]))}return(P=po.get(u))?c(P.r,P.g,P.b):(u!=null&&u.charAt(0)==="#"&&!isNaN(P=parseInt(u.slice(1),16))&&(u.length===4?(p=(P&3840)>>4,p=p>>4|p,m=P&240,m=m>>4|m,b=P&15,b=b<<4|b):u.length===7&&(p=(P&16711680)>>16,m=(P&65280)>>8,b=P&255)),c(p,m,b))}function ic(u,c,h){var p=Math.min(u/=255,c/=255,h/=255),m=Math.max(u,c,h),b=m-p,O,S,P=(m+p)/2;return b?(S=P<.5?b/(m+p):b/(2-m-p),u==m?O=(c-h)/b+(c<h?6:0):c==m?O=(h-u)/b+2:O=(u-c)/b+4,O*=60):(O=NaN,S=P>0&&P<1?0:O),new Vn(O,S,P)}function Ra(u,c,h){u=Jl(u),c=Jl(c),h=Jl(h);var p=rc((.4124564*u+.3575761*c+.1804375*h)/Zf),m=rc((.2126729*u+.7151522*c+.072175*h)/Jf),b=rc((.0193339*u+.119192*c+.9503041*h)/Pp);return Zr(116*m-16,500*(p-m),200*(m-b))}function Jl(u){return(u/=255)<=.04045?u/12.92:Math.pow((u+.055)/1.055,2.4)}function oa(u){var c=parseFloat(u);return u.charAt(u.length-1)==="%"?Math.round(c*2.55):c}var po=t.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});po.forEach(function(u,c){po.set(u,Np(c))});function gr(u){return typeof u=="function"?u:function(){return u}}t.functor=gr,t.xhr=ac(nt);function ac(u){return function(c,h,p){return arguments.length===2&&typeof h=="function"&&(p=h,h=null),es(c,h,u,p)}}function es(u,c,h,p){var m={},b=t.dispatch("beforesend","progress","load","error"),O={},S=new XMLHttpRequest,P=null;self.XDomainRequest&&!("withCredentials"in S)&&/^(http(s)?:)?\/\//.test(u)&&(S=new XDomainRequest),"onload"in S?S.onload=S.onerror=N:S.onreadystatechange=function(){S.readyState>3&&N()};function N(){var D=S.status,B;if(!D&&Cy(S)||D>=200&&D<300||D===304){try{B=h.call(m,S)}catch(z){b.error.call(m,z);return}b.load.call(m,B)}else b.error.call(m,S)}return S.onprogress=function(D){var B=t.event;t.event=D;try{b.progress.call(m,S)}finally{t.event=B}},m.header=function(D,B){return D=(D+"").toLowerCase(),arguments.length<2?O[D]:(B==null?delete O[D]:O[D]=B+"",m)},m.mimeType=function(D){return arguments.length?(c=D==null?null:D+"",m):c},m.responseType=function(D){return arguments.length?(P=D,m):P},m.response=function(D){return h=D,m},["get","post"].forEach(function(D){m[D]=function(){return m.send.apply(m,[D].concat(n(arguments)))}}),m.send=function(D,B,z){if(arguments.length===2&&typeof B=="function"&&(z=B,B=null),S.open(D,u,!0),c!=null&&!("accept"in O)&&(O.accept=c+",*/*"),S.setRequestHeader)for(var ie in O)S.setRequestHeader(ie,O[ie]);return c!=null&&S.overrideMimeType&&S.overrideMimeType(c),P!=null&&(S.responseType=P),z!=null&&m.on("error",z).on("load",function(oe){z(null,oe)}),b.beforesend.call(m,S),S.send(B??null),m},m.abort=function(){return S.abort(),m},t.rebind(m,b,"on"),p==null?m:m.get(Lp(p))}function Lp(u){return u.length===1?function(c,h){u(c==null?h:null)}:u}function Cy(u){var c=u.responseType;return c&&c!=="text"?u.response:u.responseText}t.dsv=function(u,c){var h=new RegExp('["'+u+`
851
+ */(function(e){(function(r,n,i){n[r]=n[r]||i(),e.exports&&(e.exports=n[r])})("Promise",typeof Jt<"u"?Jt:Jt,function(){var r,n,i,a=Object.prototype.toString,o=typeof setImmediate<"u"?function(T){return setImmediate(T)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(T,C,F,L){return Object.defineProperty(T,C,{value:F,writable:!0,configurable:L!==!1})}}catch{r=function(C,F,L){return C[F]=L,C}}i=function(){var T,C,F;function L(V,j){this.fn=V,this.self=j,this.next=void 0}return{add:function(j,te){F=new L(j,te),C?C.next=F:T=F,C=F,F=void 0},drain:function(){var j=T;for(T=C=n=void 0;j;)j.fn.call(j.self),j=j.next}}}();function l(_,T){i.add(_,T),n||(n=o(i.drain))}function s(_){var T,C=typeof _;return _!=null&&(C=="object"||C=="function")&&(T=_.then),typeof T=="function"?T:!1}function f(){for(var _=0;_<this.chain.length;_++)d(this,this.state===1?this.chain[_].success:this.chain[_].failure,this.chain[_]);this.chain.length=0}function d(_,T,C){var F,L;try{T===!1?C.reject(_.msg):(T===!0?F=_.msg:F=T.call(void 0,_.msg),F===C.promise?C.reject(TypeError("Promise-chain cycle")):(L=s(F))?L.call(F,C.resolve,C.reject):C.resolve(F))}catch(V){C.reject(V)}}function g(_){var T,C=this;if(!C.triggered){C.triggered=!0,C.def&&(C=C.def);try{(T=s(_))?l(function(){var F=new E(C);try{T.call(_,function(){g.apply(F,arguments)},function(){v.apply(F,arguments)})}catch(L){v.call(F,L)}}):(C.msg=_,C.state=1,C.chain.length>0&&l(f,C))}catch(F){v.call(new E(C),F)}}}function v(_){var T=this;T.triggered||(T.triggered=!0,T.def&&(T=T.def),T.msg=_,T.state=2,T.chain.length>0&&l(f,T))}function y(_,T,C,F){for(var L=0;L<T.length;L++)(function(j){_.resolve(T[j]).then(function(ge){C(j,ge)},F)})(L)}function E(_){this.def=_,this.triggered=!1}function M(_){this.promise=_,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function x(_){if(typeof _!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var T=new M(this);this.then=function(F,L){var V={success:typeof F=="function"?F:!0,failure:typeof L=="function"?L:!1};return V.promise=new this.constructor(function(te,ge){if(typeof te!="function"||typeof ge!="function")throw TypeError("Not a function");V.resolve=te,V.reject=ge}),T.chain.push(V),T.state!==0&&l(f,T),V.promise},this.catch=function(F){return this.then(void 0,F)};try{_.call(void 0,function(F){g.call(T,F)},function(F){v.call(T,F)})}catch(C){v.call(T,C)}}var w=r({},"constructor",x,!1);return x.prototype=w,r(w,"__NPO__",0,!1),r(x,"resolve",function(T){var C=this;return T&&typeof T=="object"&&T.__NPO__===1?T:new C(function(L,V){if(typeof L!="function"||typeof V!="function")throw TypeError("Not a function");L(T)})}),r(x,"reject",function(T){return new this(function(F,L){if(typeof F!="function"||typeof L!="function")throw TypeError("Not a function");L(T)})}),r(x,"all",function(T){var C=this;return a.call(T)!="[object Array]"?C.reject(TypeError("Not an array")):T.length===0?C.resolve([]):new C(function(L,V){if(typeof L!="function"||typeof V!="function")throw TypeError("Not a function");var j=T.length,te=Array(j),ge=0;y(C,T,function(Me,Fe){te[Me]=Fe,++ge===j&&L(te)},V)})}),r(x,"race",function(T){var C=this;return a.call(T)!="[object Array]"?C.reject(TypeError("Not an array")):new C(function(L,V){if(typeof L!="function"||typeof V!="function")throw TypeError("Not a function");y(C,T,function(te,ge){L(ge)},V)})}),x})})(iY);var V4={exports:{}};(function(e){(function(){var t={version:"3.8.0"},r=[].slice,n=function(u){return r.call(u)},i=self.document;function a(u){return u&&(u.ownerDocument||u.document||u).documentElement}function o(u){return u&&(u.ownerDocument&&u.ownerDocument.defaultView||u.document&&u||u.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch{n=function(c){for(var h=c.length,p=new Array(h);h--;)p[h]=c[h];return p}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch{var l=this.Element.prototype,s=l.setAttribute,f=l.setAttributeNS,d=this.CSSStyleDeclaration.prototype,g=d.setProperty;l.setAttribute=function(c,h){s.call(this,c,h+"")},l.setAttributeNS=function(c,h,p){f.call(this,c,h,p+"")},d.setProperty=function(c,h,p){g.call(this,c,h+"",p)}}t.ascending=v;function v(u,c){return u<c?-1:u>c?1:u>=c?0:NaN}t.descending=function(u,c){return c<u?-1:c>u?1:c>=u?0:NaN},t.min=function(u,c){var h=-1,p=u.length,m,b;if(arguments.length===1){for(;++h<p;)if((b=u[h])!=null&&b>=b){m=b;break}for(;++h<p;)(b=u[h])!=null&&m>b&&(m=b)}else{for(;++h<p;)if((b=c.call(u,u[h],h))!=null&&b>=b){m=b;break}for(;++h<p;)(b=c.call(u,u[h],h))!=null&&m>b&&(m=b)}return m},t.max=function(u,c){var h=-1,p=u.length,m,b;if(arguments.length===1){for(;++h<p;)if((b=u[h])!=null&&b>=b){m=b;break}for(;++h<p;)(b=u[h])!=null&&b>m&&(m=b)}else{for(;++h<p;)if((b=c.call(u,u[h],h))!=null&&b>=b){m=b;break}for(;++h<p;)(b=c.call(u,u[h],h))!=null&&b>m&&(m=b)}return m},t.extent=function(u,c){var h=-1,p=u.length,m,b,O;if(arguments.length===1){for(;++h<p;)if((b=u[h])!=null&&b>=b){m=O=b;break}for(;++h<p;)(b=u[h])!=null&&(m>b&&(m=b),O<b&&(O=b))}else{for(;++h<p;)if((b=c.call(u,u[h],h))!=null&&b>=b){m=O=b;break}for(;++h<p;)(b=c.call(u,u[h],h))!=null&&(m>b&&(m=b),O<b&&(O=b))}return[m,O]};function y(u){return u===null?NaN:+u}function E(u){return!isNaN(u)}t.sum=function(u,c){var h=0,p=u.length,m,b=-1;if(arguments.length===1)for(;++b<p;)E(m=+u[b])&&(h+=m);else for(;++b<p;)E(m=+c.call(u,u[b],b))&&(h+=m);return h},t.mean=function(u,c){var h=0,p=u.length,m,b=-1,O=p;if(arguments.length===1)for(;++b<p;)E(m=y(u[b]))?h+=m:--O;else for(;++b<p;)E(m=y(c.call(u,u[b],b)))?h+=m:--O;if(O)return h/O},t.quantile=function(u,c){var h=(u.length-1)*c+1,p=Math.floor(h),m=+u[p-1],b=h-p;return b?m+b*(u[p]-m):m},t.median=function(u,c){var h=[],p=u.length,m,b=-1;if(arguments.length===1)for(;++b<p;)E(m=y(u[b]))&&h.push(m);else for(;++b<p;)E(m=y(c.call(u,u[b],b)))&&h.push(m);if(h.length)return t.quantile(h.sort(v),.5)},t.variance=function(u,c){var h=u.length,p=0,m,b,O=0,S=-1,P=0;if(arguments.length===1)for(;++S<h;)E(m=y(u[S]))&&(b=m-p,p+=b/++P,O+=b*(m-p));else for(;++S<h;)E(m=y(c.call(u,u[S],S)))&&(b=m-p,p+=b/++P,O+=b*(m-p));if(P>1)return O/(P-1)},t.deviation=function(){var u=t.variance.apply(this,arguments);return u&&Math.sqrt(u)};function M(u){return{left:function(c,h,p,m){for(arguments.length<3&&(p=0),arguments.length<4&&(m=c.length);p<m;){var b=p+m>>>1;u(c[b],h)<0?p=b+1:m=b}return p},right:function(c,h,p,m){for(arguments.length<3&&(p=0),arguments.length<4&&(m=c.length);p<m;){var b=p+m>>>1;u(c[b],h)>0?m=b:p=b+1}return p}}}var x=M(v);t.bisectLeft=x.left,t.bisect=t.bisectRight=x.right,t.bisector=function(u){return M(u.length===1?function(c,h){return v(u(c),h)}:u)},t.shuffle=function(u,c,h){(p=arguments.length)<3&&(h=u.length,p<2&&(c=0));for(var p=h-c,m,b;p;)b=Math.random()*p--|0,m=u[p+c],u[p+c]=u[b+c],u[b+c]=m;return u},t.permute=function(u,c){for(var h=c.length,p=new Array(h);h--;)p[h]=u[c[h]];return p},t.pairs=function(u){for(var c=0,h=u.length-1,p=u[0],m=new Array(h<0?0:h);c<h;)m[c]=[p,p=u[++c]];return m},t.transpose=function(u){if(!(b=u.length))return[];for(var c=-1,h=t.min(u,w),p=new Array(h);++c<h;)for(var m=-1,b,O=p[c]=new Array(b);++m<b;)O[m]=u[m][c];return p};function w(u){return u.length}t.zip=function(){return t.transpose(arguments)},t.keys=function(u){var c=[];for(var h in u)c.push(h);return c},t.values=function(u){var c=[];for(var h in u)c.push(u[h]);return c},t.entries=function(u){var c=[];for(var h in u)c.push({key:h,value:u[h]});return c},t.merge=function(u){for(var c=u.length,h,p=-1,m=0,b,O;++p<c;)m+=u[p].length;for(b=new Array(m);--c>=0;)for(O=u[c],h=O.length;--h>=0;)b[--m]=O[h];return b};var _=Math.abs;t.range=function(u,c,h){if(arguments.length<3&&(h=1,arguments.length<2&&(c=u,u=0)),(c-u)/h===1/0)throw new Error("infinite range");var p=[],m=T(_(h)),b=-1,O;if(u*=m,c*=m,h*=m,h<0)for(;(O=u+h*++b)>c;)p.push(O/m);else for(;(O=u+h*++b)<c;)p.push(O/m);return p};function T(u){for(var c=1;u*c%1;)c*=10;return c}function C(u,c){for(var h in c)Object.defineProperty(u.prototype,h,{value:c[h],enumerable:!1})}t.map=function(u,c){var h=new F;if(u instanceof F)u.forEach(function(S,P){h.set(S,P)});else if(Array.isArray(u)){var p=-1,m=u.length,b;if(arguments.length===1)for(;++p<m;)h.set(p,u[p]);else for(;++p<m;)h.set(c.call(u,b=u[p],p),b)}else for(var O in u)h.set(O,u[O]);return h};function F(){this._=Object.create(null)}var L="__proto__",V="\0";C(F,{has:ge,get:function(u){return this._[j(u)]},set:function(u,c){return this._[j(u)]=c},remove:me,keys:Me,values:function(){var u=[];for(var c in this._)u.push(this._[c]);return u},entries:function(){var u=[];for(var c in this._)u.push({key:te(c),value:this._[c]});return u},size:Fe,empty:Le,forEach:function(u){for(var c in this._)u.call(this,te(c),this._[c])}});function j(u){return(u+="")===L||u[0]===V?V+u:u}function te(u){return(u+="")[0]===V?u.slice(1):u}function ge(u){return j(u)in this._}function me(u){return(u=j(u))in this._&&delete this._[u]}function Me(){var u=[];for(var c in this._)u.push(te(c));return u}function Fe(){var u=0;for(var c in this._)++u;return u}function Le(){for(var u in this._)return!1;return!0}t.nest=function(){var u={},c=[],h=[],p,m;function b(S,P,N){if(N>=c.length)return m?m.call(u,P):p?P.sort(p):P;for(var D=-1,B=P.length,z=c[N++],ie,oe,G,X=new F,J;++D<B;)(J=X.get(ie=z(oe=P[D])))?J.push(oe):X.set(ie,[oe]);return S?(oe=S(),G=function(ue,le){oe.set(ue,b(S,le,N))}):(oe={},G=function(ue,le){oe[ue]=b(S,le,N)}),X.forEach(G),oe}function O(S,P){if(P>=c.length)return S;var N=[],D=h[P++];return S.forEach(function(B,z){N.push({key:B,values:O(z,P)})}),D?N.sort(function(B,z){return D(B.key,z.key)}):N}return u.map=function(S,P){return b(P,S,0)},u.entries=function(S){return O(b(t.map,S,0),0)},u.key=function(S){return c.push(S),u},u.sortKeys=function(S){return h[c.length-1]=S,u},u.sortValues=function(S){return p=S,u},u.rollup=function(S){return m=S,u},u},t.set=function(u){var c=new ut;if(u)for(var h=0,p=u.length;h<p;++h)c.add(u[h]);return c};function ut(){this._=Object.create(null)}C(ut,{has:ge,add:function(u){return this._[j(u+="")]=!0,u},remove:me,values:Me,size:Fe,empty:Le,forEach:function(u){for(var c in this._)u.call(this,te(c))}}),t.behavior={};function nt(u){return u}t.rebind=function(u,c){for(var h=1,p=arguments.length,m;++h<p;)u[m=arguments[h]]=De(u,c,c[m]);return u};function De(u,c,h){return function(){var p=h.apply(c,arguments);return p===c?u:p}}function We(u,c){if(c in u)return c;c=c.charAt(0).toUpperCase()+c.slice(1);for(var h=0,p=_t.length;h<p;++h){var m=_t[h]+c;if(m in u)return m}}var _t=["webkit","ms","moz","Moz","o","O"];function He(){}t.dispatch=function(){for(var u=new we,c=-1,h=arguments.length;++c<h;)u[arguments[c]]=qe(u);return u};function we(){}we.prototype.on=function(u,c){var h=u.indexOf("."),p="";if(h>=0&&(p=u.slice(h+1),u=u.slice(0,h)),u)return arguments.length<2?this[u].on(p):this[u].on(p,c);if(arguments.length===2){if(c==null)for(u in this)this.hasOwnProperty(u)&&this[u].on(p,null);return this}};function qe(u){var c=[],h=new F;function p(){for(var m=c,b=-1,O=m.length,S;++b<O;)(S=m[b].on)&&S.apply(this,arguments);return u}return p.on=function(m,b){var O=h.get(m),S;return arguments.length<2?O&&O.on:(O&&(O.on=null,c=c.slice(0,S=c.indexOf(O)).concat(c.slice(S+1)),h.remove(m)),b&&c.push(h.set(m,{on:b})),u)},p}t.event=null;function st(){t.event.preventDefault()}function Ke(){for(var u=t.event,c;c=u.sourceEvent;)u=c;return u}function ct(u){for(var c=new we,h=0,p=arguments.length;++h<p;)c[arguments[h]]=qe(c);return c.of=function(m,b){return function(O){try{var S=O.sourceEvent=t.event;O.target=u,t.event=O,c[O.type].apply(m,b)}finally{t.event=S}}},c}t.requote=function(u){return u.replace(yt,"\\$&")};var yt=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,qt={}.__proto__?function(u,c){u.__proto__=c}:function(u,c){for(var h in c)u[h]=c[h]};function Yt(u){return qt(u,Te),u}var Qe=function(u,c){return c.querySelector(u)},At=function(u,c){return c.querySelectorAll(u)},jt=function(u,c){var h=u.matches||u[We(u,"matchesSelector")];return jt=function(p,m){return h.call(p,m)},jt(u,c)};typeof Sizzle=="function"&&(Qe=function(u,c){return Sizzle(u,c)[0]||null},At=Sizzle,jt=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Te=t.selection.prototype=[];Te.select=function(u){var c=[],h,p,m,b;u=W(u);for(var O=-1,S=this.length;++O<S;){c.push(h=[]),h.parentNode=(m=this[O]).parentNode;for(var P=-1,N=m.length;++P<N;)(b=m[P])?(h.push(p=u.call(b,b.__data__,P,O)),p&&"__data__"in b&&(p.__data__=b.__data__)):h.push(null)}return Yt(c)};function W(u){return typeof u=="function"?u:function(){return Qe(u,this)}}Te.selectAll=function(u){var c=[],h,p;u=ae(u);for(var m=-1,b=this.length;++m<b;)for(var O=this[m],S=-1,P=O.length;++S<P;)(p=O[S])&&(c.push(h=n(u.call(p,p.__data__,S,m))),h.parentNode=p);return Yt(c)};function ae(u){return typeof u=="function"?u:function(){return At(u,this)}}var R="http://www.w3.org/1999/xhtml",A={svg:"http://www.w3.org/2000/svg",xhtml:R,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};t.ns={prefix:A,qualify:function(u){var c=u.indexOf(":"),h=u;return c>=0&&(h=u.slice(0,c))!=="xmlns"&&(u=u.slice(c+1)),A.hasOwnProperty(h)?{space:A[h],local:u}:u}},Te.attr=function(u,c){if(arguments.length<2){if(typeof u=="string"){var h=this.node();return u=t.ns.qualify(u),u.local?h.getAttributeNS(u.space,u.local):h.getAttribute(u)}for(c in u)this.each(k(c,u[c]));return this}return this.each(k(u,c))};function k(u,c){u=t.ns.qualify(u);function h(){this.removeAttribute(u)}function p(){this.removeAttributeNS(u.space,u.local)}function m(){this.setAttribute(u,c)}function b(){this.setAttributeNS(u.space,u.local,c)}function O(){var P=c.apply(this,arguments);P==null?this.removeAttribute(u):this.setAttribute(u,P)}function S(){var P=c.apply(this,arguments);P==null?this.removeAttributeNS(u.space,u.local):this.setAttributeNS(u.space,u.local,P)}return c==null?u.local?p:h:typeof c=="function"?u.local?S:O:u.local?b:m}function $(u){return u.trim().replace(/\s+/g," ")}Te.classed=function(u,c){if(arguments.length<2){if(typeof u=="string"){var h=this.node(),p=(u=Ie(u)).length,m=-1;if(c=h.classList){for(;++m<p;)if(!c.contains(u[m]))return!1}else for(c=h.getAttribute("class");++m<p;)if(!fe(u[m]).test(c))return!1;return!0}for(c in u)this.each(ze(c,u[c]));return this}return this.each(ze(u,c))};function fe(u){return new RegExp("(?:^|\\s+)"+t.requote(u)+"(?:\\s+|$)","g")}function Ie(u){return(u+"").trim().split(/^|\s+/)}function ze(u,c){u=Ie(u).map(Qt);var h=u.length;function p(){for(var b=-1;++b<h;)u[b](this,c)}function m(){for(var b=-1,O=c.apply(this,arguments);++b<h;)u[b](this,O)}return typeof c=="function"?m:p}function Qt(u){var c=fe(u);return function(h,p){if(m=h.classList)return p?m.add(u):m.remove(u);var m=h.getAttribute("class")||"";p?(c.lastIndex=0,c.test(m)||h.setAttribute("class",$(m+" "+u))):h.setAttribute("class",$(m.replace(c," ")))}}Te.style=function(u,c,h){var p=arguments.length;if(p<3){if(typeof u!="string"){p<2&&(c="");for(h in u)this.each(fr(h,u[h],c));return this}if(p<2){var m=this.node();return o(m).getComputedStyle(m,null).getPropertyValue(u)}h=""}return this.each(fr(u,c,h))};function fr(u,c,h){function p(){this.style.removeProperty(u)}function m(){this.style.setProperty(u,c,h)}function b(){var O=c.apply(this,arguments);O==null?this.style.removeProperty(u):this.style.setProperty(u,O,h)}return c==null?p:typeof c=="function"?b:m}Te.property=function(u,c){if(arguments.length<2){if(typeof u=="string")return this.node()[u];for(c in u)this.each(ir(c,u[c]));return this}return this.each(ir(u,c))};function ir(u,c){function h(){delete this[u]}function p(){this[u]=c}function m(){var b=c.apply(this,arguments);b==null?delete this[u]:this[u]=b}return c==null?h:typeof c=="function"?m:p}Te.text=function(u){return arguments.length?this.each(typeof u=="function"?function(){var c=u.apply(this,arguments);this.textContent=c??""}:u==null?function(){this.textContent=""}:function(){this.textContent=u}):this.node().textContent},Te.html=function(u){return arguments.length?this.each(typeof u=="function"?function(){var c=u.apply(this,arguments);this.innerHTML=c??""}:u==null?function(){this.innerHTML=""}:function(){this.innerHTML=u}):this.node().innerHTML},Te.append=function(u){return u=Yr(u),this.select(function(){return this.appendChild(u.apply(this,arguments))})};function Yr(u){function c(){var p=this.ownerDocument,m=this.namespaceURI;return m===R&&p.documentElement.namespaceURI===R?p.createElement(u):p.createElementNS(m,u)}function h(){return this.ownerDocument.createElementNS(u.space,u.local)}return typeof u=="function"?u:(u=t.ns.qualify(u)).local?h:c}Te.insert=function(u,c){return u=Yr(u),c=W(c),this.select(function(){return this.insertBefore(u.apply(this,arguments),c.apply(this,arguments)||null)})},Te.remove=function(){return this.each(kr)};function kr(){var u=this.parentNode;u&&u.removeChild(this)}Te.data=function(u,c){var h=-1,p=this.length,m,b;if(!arguments.length){for(u=new Array(p=(m=this[0]).length);++h<p;)(b=m[h])&&(u[h]=b.__data__);return u}function O(D,B){var z,ie=D.length,oe=B.length,G=Math.min(ie,oe),X=new Array(oe),J=new Array(oe),ue=new Array(ie),le,re;if(c){var Pe=new F,Ue=new Array(ie),tt;for(z=-1;++z<ie;)(le=D[z])&&(Pe.has(tt=c.call(le,le.__data__,z))?ue[z]=le:Pe.set(tt,le),Ue[z]=tt);for(z=-1;++z<oe;)(le=Pe.get(tt=c.call(B,re=B[z],z)))?le!==!0&&(X[z]=le,le.__data__=re):J[z]=na(re),Pe.set(tt,!0);for(z=-1;++z<ie;)z in Ue&&Pe.get(Ue[z])!==!0&&(ue[z]=D[z])}else{for(z=-1;++z<G;)le=D[z],re=B[z],le?(le.__data__=re,X[z]=le):J[z]=na(re);for(;z<oe;++z)J[z]=na(B[z]);for(;z<ie;++z)ue[z]=D[z]}J.update=X,J.parentNode=X.parentNode=ue.parentNode=D.parentNode,S.push(J),P.push(X),N.push(ue)}var S=Ep([]),P=Yt([]),N=Yt([]);if(typeof u=="function")for(;++h<p;)O(m=this[h],u.call(m,m.parentNode.__data__,h));else for(;++h<p;)O(m=this[h],u);return P.enter=function(){return S},P.exit=function(){return N},P};function na(u){return{__data__:u}}Te.datum=function(u){return arguments.length?this.property("__data__",u):this.property("__data__")},Te.filter=function(u){var c=[],h,p,m;typeof u!="function"&&(u=Eu(u));for(var b=0,O=this.length;b<O;b++){c.push(h=[]),h.parentNode=(p=this[b]).parentNode;for(var S=0,P=p.length;S<P;S++)(m=p[S])&&u.call(m,m.__data__,S,b)&&h.push(m)}return Yt(c)};function Eu(u){return function(){return jt(this,u)}}Te.order=function(){for(var u=-1,c=this.length;++u<c;)for(var h=this[u],p=h.length-1,m=h[p],b;--p>=0;)(b=h[p])&&(m&&m!==b.nextSibling&&m.parentNode.insertBefore(b,m),m=b);return this},Te.sort=function(u){u=Ta.apply(this,arguments);for(var c=-1,h=this.length;++c<h;)this[c].sort(u);return this.order()};function Ta(u){return arguments.length||(u=v),function(c,h){return c&&h?u(c.__data__,h.__data__):!c-!h}}Te.each=function(u){return xi(this,function(c,h,p){u.call(c,c.__data__,h,p)})};function xi(u,c){for(var h=0,p=u.length;h<p;h++)for(var m=u[h],b=0,O=m.length,S;b<O;b++)(S=m[b])&&c(S,b,h);return u}Te.call=function(u){var c=n(arguments);return u.apply(c[0]=this,c),this},Te.empty=function(){return!this.node()},Te.node=function(){for(var u=0,c=this.length;u<c;u++)for(var h=this[u],p=0,m=h.length;p<m;p++){var b=h[p];if(b)return b}return null},Te.size=function(){var u=0;return xi(this,function(){++u}),u};function Ep(u){return qt(u,Li),u}var Li=[];t.selection.enter=Ep,t.selection.enter.prototype=Li,Li.append=Te.append,Li.empty=Te.empty,Li.node=Te.node,Li.call=Te.call,Li.size=Te.size,Li.select=function(u){for(var c=[],h,p,m,b,O,S=-1,P=this.length;++S<P;){m=(b=this[S]).update,c.push(h=[]),h.parentNode=b.parentNode;for(var N=-1,D=b.length;++N<D;)(O=b[N])?(h.push(m[N]=p=u.call(b.parentNode,O.__data__,N,S)),p.__data__=O.__data__):h.push(null)}return Yt(c)},Li.insert=function(u,c){return arguments.length<2&&(c=Au(this)),Te.insert.call(this,u,c)};function Au(u){var c,h;return function(p,m,b){var O=u[b].update,S=O.length,P;for(b!=h&&(h=b,c=0),m>=c&&(c=m+1);!(P=O[c])&&++c<S;);return P}}t.select=function(u){var c;return typeof u=="string"?(c=[Qe(u,i)],c.parentNode=i.documentElement):(c=[u],c.parentNode=a(u)),Yt([c])},t.selectAll=function(u){var c;return typeof u=="string"?(c=n(At(u,i)),c.parentNode=i.documentElement):(c=n(u),c.parentNode=null),Yt([c])},Te.on=function(u,c,h){var p=arguments.length;if(p<3){if(typeof u!="string"){p<2&&(c=!1);for(h in u)this.each(Hl(h,u[h],c));return this}if(p<2)return(p=this.node()["__on"+u])&&p._;h=!1}return this.each(Hl(u,c,h))};function Hl(u,c,h){var p="__on"+u,m=u.indexOf("."),b=Vl;m>0&&(u=u.slice(0,m));var O=ql.get(u);O&&(u=O,b=wy);function S(){var D=this[p];D&&(this.removeEventListener(u,D,D.$),delete this[p])}function P(){var D=b(c,n(arguments));S.call(this),this.addEventListener(u,this[p]=D,D.$=h),D._=c}function N(){var D=new RegExp("^__on([^.]+)"+t.requote(u)+"$"),B;for(var z in this)if(B=z.match(D)){var ie=this[z];this.removeEventListener(B[1],ie,ie.$),delete this[z]}}return m?c?P:S:c?He:N}var ql=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&ql.forEach(function(u){"on"+u in i&&ql.remove(u)});function Vl(u,c){return function(h){var p=t.event;t.event=h,c[0]=this.__data__;try{u.apply(this,c)}finally{t.event=p}}}function wy(u,c){var h=Vl(u,c);return function(p){var m=this,b=p.relatedTarget;(!b||b!==m&&!(b.compareDocumentPosition(m)&8))&&h.call(m,p)}}var Oa,_y=0;function Yl(u){var c=".dragsuppress-"+ ++_y,h="click"+c,p=t.select(o(u)).on("touchmove"+c,st).on("dragstart"+c,st).on("selectstart"+c,st);if(Oa==null&&(Oa="onselectstart"in u?!1:We(u.style,"userSelect")),Oa){var m=a(u).style,b=m[Oa];m[Oa]="none"}return function(O){if(p.on(c,null),Oa&&(m[Oa]=b),O){var S=function(){p.on(h,null)};p.on(h,function(){st(),S()},!0),setTimeout(S,0)}}}t.mouse=function(u){return ai(u,Ke())};var rn=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ai(u,c){c.changedTouches&&(c=c.changedTouches[0]);var h=u.ownerSVGElement||u;if(h.createSVGPoint){var p=h.createSVGPoint();if(rn<0){var m=o(u);if(m.scrollX||m.scrollY){h=t.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var b=h[0][0].getScreenCTM();rn=!(b.f||b.e),h.remove()}}return rn?(p.x=c.pageX,p.y=c.pageY):(p.x=c.clientX,p.y=c.clientY),p=p.matrixTransform(u.getScreenCTM().inverse()),[p.x,p.y]}var O=u.getBoundingClientRect();return[c.clientX-O.left-u.clientLeft,c.clientY-O.top-u.clientTop]}t.touch=function(u,c,h){if(arguments.length<3&&(h=c,c=Ke().changedTouches),c){for(var p=0,m=c.length,b;p<m;++p)if((b=c[p]).identifier===h)return ai(u,b)}},t.behavior.drag=function(){var u=ct(m,"drag","dragstart","dragend"),c=null,h=b(He,t.mouse,o,"mousemove","mouseup"),p=b(zn,t.touch,nt,"touchmove","touchend");function m(){this.on("mousedown.drag",h).on("touchstart.drag",p)}function b(O,S,P,N,D){return function(){var B=this,z=t.event.target.correspondingElement||t.event.target,ie=B.parentNode,oe=u.of(B,arguments),G=0,X=O(),J=".drag"+(X==null?"":"-"+X),ue,le=t.select(P(z)).on(N+J,Ue).on(D+J,tt),re=Yl(z),Pe=S(ie,X);c?(ue=c.apply(B,arguments),ue=[ue.x-Pe[0],ue.y-Pe[1]]):ue=[0,0],oe({type:"dragstart"});function Ue(){var je=S(ie,X),at,vt;je&&(at=je[0]-Pe[0],vt=je[1]-Pe[1],G|=at|vt,Pe=je,oe({type:"drag",x:je[0]+ue[0],y:je[1]+ue[1],dx:at,dy:vt}))}function tt(){S(ie,X)&&(le.on(N+J,null).on(D+J,null),re(G),oe({type:"dragend"}))}}}return m.origin=function(O){return arguments.length?(c=O,m):c},t.rebind(m,u,"on")};function zn(){return t.event.changedTouches[0].identifier}t.touches=function(u,c){return arguments.length<2&&(c=Ke().touches),c?n(c).map(function(h){var p=ai(u,h);return p.identifier=h.identifier,p}):[]};var ar=1e-6,Ap=ar*ar,Di=Math.PI,co=2*Di,Cp=co-ar,wi=Di/2,Tp=Di/180,Cu=180/Di;function Sy(u,c,h){return(c[0]-u[0])*(h[1]-u[1])-(c[1]-u[1])*(h[0]-u[0])}function Op(u){return u>1?wi:u<-1?-wi:Math.asin(u)}function Ey(u){return((u=Math.exp(u))-1/u)/2}function Mp(u){return((u=Math.exp(u))+1/u)/2}function Ay(u){return((u=Math.exp(2*u))-1)/(u+1)}var Tu=Math.SQRT2,Kf=2,kp=4;t.interpolateZoom=function(u,c){var h=u[0],p=u[1],m=u[2],b=c[0],O=c[1],S=c[2],P=b-h,N=O-p,D=P*P+N*N,B,z;if(D<Ap)z=Math.log(S/m)/Tu,B=function(ue){return[h+ue*P,p+ue*N,m*Math.exp(Tu*ue*z)]};else{var ie=Math.sqrt(D),oe=(S*S-m*m+kp*D)/(2*m*Kf*ie),G=(S*S-m*m-kp*D)/(2*S*Kf*ie),X=Math.log(Math.sqrt(oe*oe+1)-oe),J=Math.log(Math.sqrt(G*G+1)-G);z=(J-X)/Tu,B=function(ue){var le=ue*z,re=Mp(X),Pe=m/(Kf*ie)*(re*Ay(Tu*le+X)-Ey(X));return[h+Pe*P,p+Pe*N,m*re/Mp(Tu*le+X)]}}return B.duration=z*1e3,B},t.behavior.zoom=function(){var u={x:0,y:0,k:1},c,h,p,m=[960,500],b=Ou,O=250,S=0,P="mousedown.zoom",N="mousemove.zoom",D="mouseup.zoom",B,z="touchstart.zoom",ie,oe=ct(le,"zoomstart","zoom","zoomend"),G,X,J,ue;Qf||(Qf="onwheel"in i?(Xl=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},"wheel"):"onmousewheel"in i?(Xl=function(){return t.event.wheelDelta},"mousewheel"):(Xl=function(){return-t.event.detail},"MozMousePixelScroll"));function le(rt){rt.on(P,zt).on(Qf+".zoom",Rr).on("dblclick.zoom",pr).on(z,or)}le.event=function(rt){rt.each(function(){var Ht=oe.of(this,arguments),Xt=u;Wi?t.select(this).transition().each("start.zoom",function(){u=this.__chart__||{x:0,y:0,k:1},vt(Ht)}).tween("zoom:zoom",function(){var ur=m[0],Ar=m[1],zr=h?h[0]:ur/2,Xr=h?h[1]:Ar/2,vn=t.interpolateZoom([(zr-u.x)/u.k,(Xr-u.y)/u.k,ur/u.k],[(zr-Xt.x)/Xt.k,(Xr-Xt.y)/Xt.k,ur/Xt.k]);return function(En){var on=vn(En),In=ur/on[2];this.__chart__=u={x:zr-on[0]*In,y:Xr-on[1]*In,k:In},Wt(Ht)}}).each("interrupt.zoom",function(){xt(Ht)}).each("end.zoom",function(){xt(Ht)}):(this.__chart__=u,vt(Ht),Wt(Ht),xt(Ht))})},le.translate=function(rt){return arguments.length?(u={x:+rt[0],y:+rt[1],k:u.k},at(),le):[u.x,u.y]},le.scale=function(rt){return arguments.length?(u={x:u.x,y:u.y,k:null},Ue(+rt),at(),le):u.k},le.scaleExtent=function(rt){return arguments.length?(b=rt==null?Ou:[+rt[0],+rt[1]],le):b},le.center=function(rt){return arguments.length?(p=rt&&[+rt[0],+rt[1]],le):p},le.size=function(rt){return arguments.length?(m=rt&&[+rt[0],+rt[1]],le):m},le.duration=function(rt){return arguments.length?(O=+rt,le):O},le.x=function(rt){return arguments.length?(X=rt,G=rt.copy(),u={x:0,y:0,k:1},le):X},le.y=function(rt){return arguments.length?(ue=rt,J=rt.copy(),u={x:0,y:0,k:1},le):ue};function re(rt){return[(rt[0]-u.x)/u.k,(rt[1]-u.y)/u.k]}function Pe(rt){return[rt[0]*u.k+u.x,rt[1]*u.k+u.y]}function Ue(rt){u.k=Math.max(b[0],Math.min(b[1],rt))}function tt(rt,Ht){Ht=Pe(Ht),u.x+=rt[0]-Ht[0],u.y+=rt[1]-Ht[1]}function je(rt,Ht,Xt,ur){rt.__chart__={x:u.x,y:u.y,k:u.k},Ue(Math.pow(2,ur)),tt(h=Ht,Xt),rt=t.select(rt),O>0&&(rt=rt.transition().duration(O)),rt.call(le.event)}function at(){X&&X.domain(G.range().map(function(rt){return(rt-u.x)/u.k}).map(G.invert)),ue&&ue.domain(J.range().map(function(rt){return(rt-u.y)/u.k}).map(J.invert))}function vt(rt){S++||rt({type:"zoomstart"})}function Wt(rt){at(),rt({type:"zoom",scale:u.k,translate:[u.x,u.y]})}function xt(rt){--S||(rt({type:"zoomend"}),h=null)}function zt(){var rt=this,Ht=oe.of(rt,arguments),Xt=0,ur=t.select(o(rt)).on(N,Xr).on(D,vn),Ar=re(t.mouse(rt)),zr=Yl(rt);Ts.call(rt),vt(Ht);function Xr(){Xt=1,tt(t.mouse(rt),Ar),Wt(Ht)}function vn(){ur.on(N,null).on(D,null),zr(Xt),xt(Ht)}}function or(){var rt=this,Ht=oe.of(rt,arguments),Xt={},ur=0,Ar,zr=".zoom-"+t.event.changedTouches[0].identifier,Xr="touchmove"+zr,vn="touchend"+zr,En=[],on=t.select(rt),In=Yl(rt);H(),vt(Ht),on.on(P,null).on(z,H);function I(){var ke=t.touches(rt);return Ar=u.k,ke.forEach(function(be){be.identifier in Xt&&(Xt[be.identifier]=re(be))}),ke}function H(){var ke=t.event.target;t.select(ke).on(Xr,Z).on(vn,Ee),En.push(ke);for(var be=t.event.changedTouches,_e=0,Ye=be.length;_e<Ye;++_e)Xt[be[_e].identifier]=null;var Xe=I(),et=Date.now();if(Xe.length===1){if(et-ie<500){var ft=Xe[0];je(rt,ft,Xt[ft.identifier],Math.floor(Math.log(u.k)/Math.LN2)+1),st()}ie=et}else if(Xe.length>1){var ft=Xe[0],Rt=Xe[1],St=ft[0]-Rt[0],it=ft[1]-Rt[1];ur=St*St+it*it}}function Z(){var ke=t.touches(rt),be,_e,Ye,Xe;Ts.call(rt);for(var et=0,ft=ke.length;et<ft;++et,Xe=null)if(Ye=ke[et],Xe=Xt[Ye.identifier]){if(_e)break;be=Ye,_e=Xe}if(Xe){var Rt=(Rt=Ye[0]-be[0])*Rt+(Rt=Ye[1]-be[1])*Rt,St=ur&&Math.sqrt(Rt/ur);be=[(be[0]+Ye[0])/2,(be[1]+Ye[1])/2],_e=[(_e[0]+Xe[0])/2,(_e[1]+Xe[1])/2],Ue(St*Ar)}ie=null,tt(be,_e),Wt(Ht)}function Ee(){if(t.event.touches.length){for(var ke=t.event.changedTouches,be=0,_e=ke.length;be<_e;++be)delete Xt[ke[be].identifier];for(var Ye in Xt)return void I()}t.selectAll(En).on(zr,null),on.on(P,zt).on(z,or),In(),xt(Ht)}}function Rr(){var rt=oe.of(this,arguments);B?clearTimeout(B):(Ts.call(this),c=re(h=p||t.mouse(this)),vt(rt)),B=setTimeout(function(){B=null,xt(rt)},50),st(),Ue(Math.pow(2,Xl()*.002)*u.k),tt(h,c),Wt(rt)}function pr(){var rt=t.mouse(this),Ht=Math.log(u.k)/Math.LN2;je(this,rt,re(rt),t.event.shiftKey?Math.ceil(Ht)-1:Math.floor(Ht)+1)}return t.rebind(le,oe,"on")};var Ou=[0,1/0],Xl,Qf;t.color=ia;function ia(){}ia.prototype.toString=function(){return this.rgb()+""},t.hsl=Vn;function Vn(u,c,h){return this instanceof Vn?(this.h=+u,this.s=+c,void(this.l=+h)):arguments.length<2?u instanceof Vn?new Vn(u.h,u.s,u.l):ka(""+u,ic,Vn):new Vn(u,c,h)}var Kl=Vn.prototype=new ia;Kl.brighter=function(u){return u=Math.pow(.7,arguments.length?u:1),new Vn(this.h,this.s,this.l/u)},Kl.darker=function(u){return u=Math.pow(.7,arguments.length?u:1),new Vn(this.h,this.s,u*this.l)},Kl.rgb=function(){return Ql(this.h,this.s,this.l)};function Ql(u,c,h){var p,m;u=isNaN(u)?0:(u%=360)<0?u+360:u,c=isNaN(c)||c<0?0:c>1?1:c,h=h<0?0:h>1?1:h,m=h<=.5?h*(1+c):h+c-h*c,p=2*h-m;function b(S){return S>360?S-=360:S<0&&(S+=360),S<60?p+(m-p)*S/60:S<180?m:S<240?p+(m-p)*(240-S)/60:p}function O(S){return Math.round(b(S)*255)}return new nn(O(u+120),O(u),O(u-120))}t.hcl=oi;function oi(u,c,h){return this instanceof oi?(this.h=+u,this.c=+c,void(this.l=+h)):arguments.length<2?u instanceof oi?new oi(u.h,u.c,u.l):u instanceof Zr?Ip(u.l,u.a,u.b):Ip((u=Ra((u=t.rgb(u)).r,u.g,u.b)).l,u.a,u.b):new oi(u,c,h)}var Mu=oi.prototype=new ia;Mu.brighter=function(u){return new oi(this.h,this.c,Math.min(100,this.l+Ma*(arguments.length?u:1)))},Mu.darker=function(u){return new oi(this.h,this.c,Math.max(0,this.l-Ma*(arguments.length?u:1)))},Mu.rgb=function(){return ku(this.h,this.c,this.l).rgb()};function ku(u,c,h){return isNaN(u)&&(u=0),isNaN(c)&&(c=0),new Zr(h,Math.cos(u*=Tp)*c,Math.sin(u)*c)}t.lab=Zr;function Zr(u,c,h){return this instanceof Zr?(this.l=+u,this.a=+c,void(this.b=+h)):arguments.length<2?u instanceof Zr?new Zr(u.l,u.a,u.b):u instanceof oi?ku(u.h,u.c,u.l):Ra((u=nn(u)).r,u.g,u.b):new Zr(u,c,h)}var Ma=18,Zf=.95047,Jf=1,Rp=1.08883,ec=Zr.prototype=new ia;ec.brighter=function(u){return new Zr(Math.min(100,this.l+Ma*(arguments.length?u:1)),this.a,this.b)},ec.darker=function(u){return new Zr(Math.max(0,this.l-Ma*(arguments.length?u:1)),this.a,this.b)},ec.rgb=function(){return Pp(this.l,this.a,this.b)};function Pp(u,c,h){var p=(u+16)/116,m=p+c/500,b=p-h/200;return m=tc(m)*Zf,p=tc(p)*Jf,b=tc(b)*Rp,new nn(nc(3.2404542*m-1.5371385*p-.4985314*b),nc(-.969266*m+1.8760108*p+.041556*b),nc(.0556434*m-.2040259*p+1.0572252*b))}function Ip(u,c,h){return u>0?new oi(Math.atan2(h,c)*Cu,Math.sqrt(c*c+h*h),u):new oi(NaN,NaN,u)}function tc(u){return u>.206893034?u*u*u:(u-4/29)/7.787037}function rc(u){return u>.008856?Math.pow(u,1/3):7.787037*u+4/29}function nc(u){return Math.round(255*(u<=.00304?12.92*u:1.055*Math.pow(u,1/2.4)-.055))}t.rgb=nn;function nn(u,c,h){return this instanceof nn?(this.r=~~u,this.g=~~c,void(this.b=~~h)):arguments.length<2?u instanceof nn?new nn(u.r,u.g,u.b):ka(""+u,nn,Ql):new nn(u,c,h)}function Fp(u){return new nn(u>>16,u>>8&255,u&255)}function Zl(u){return Fp(u)+""}var aa=nn.prototype=new ia;aa.brighter=function(u){u=Math.pow(.7,arguments.length?u:1);var c=this.r,h=this.g,p=this.b,m=30;return!c&&!h&&!p?new nn(m,m,m):(c&&c<m&&(c=m),h&&h<m&&(h=m),p&&p<m&&(p=m),new nn(Math.min(255,c/u),Math.min(255,h/u),Math.min(255,p/u)))},aa.darker=function(u){return u=Math.pow(.7,arguments.length?u:1),new nn(u*this.r,u*this.g,u*this.b)},aa.hsl=function(){return ic(this.r,this.g,this.b)},aa.toString=function(){return"#"+ho(this.r)+ho(this.g)+ho(this.b)};function ho(u){return u<16?"0"+Math.max(0,u).toString(16):Math.min(255,u).toString(16)}function ka(u,c,h){var p=0,m=0,b=0,O,S,P;if(O=/([a-z]+)\((.*)\)/.exec(u=u.toLowerCase()),O)switch(S=O[2].split(","),O[1]){case"hsl":return h(parseFloat(S[0]),parseFloat(S[1])/100,parseFloat(S[2])/100);case"rgb":return c(oa(S[0]),oa(S[1]),oa(S[2]))}return(P=po.get(u))?c(P.r,P.g,P.b):(u!=null&&u.charAt(0)==="#"&&!isNaN(P=parseInt(u.slice(1),16))&&(u.length===4?(p=(P&3840)>>4,p=p>>4|p,m=P&240,m=m>>4|m,b=P&15,b=b<<4|b):u.length===7&&(p=(P&16711680)>>16,m=(P&65280)>>8,b=P&255)),c(p,m,b))}function ic(u,c,h){var p=Math.min(u/=255,c/=255,h/=255),m=Math.max(u,c,h),b=m-p,O,S,P=(m+p)/2;return b?(S=P<.5?b/(m+p):b/(2-m-p),u==m?O=(c-h)/b+(c<h?6:0):c==m?O=(h-u)/b+2:O=(u-c)/b+4,O*=60):(O=NaN,S=P>0&&P<1?0:O),new Vn(O,S,P)}function Ra(u,c,h){u=Jl(u),c=Jl(c),h=Jl(h);var p=rc((.4124564*u+.3575761*c+.1804375*h)/Zf),m=rc((.2126729*u+.7151522*c+.072175*h)/Jf),b=rc((.0193339*u+.119192*c+.9503041*h)/Rp);return Zr(116*m-16,500*(p-m),200*(m-b))}function Jl(u){return(u/=255)<=.04045?u/12.92:Math.pow((u+.055)/1.055,2.4)}function oa(u){var c=parseFloat(u);return u.charAt(u.length-1)==="%"?Math.round(c*2.55):c}var po=t.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});po.forEach(function(u,c){po.set(u,Fp(c))});function gr(u){return typeof u=="function"?u:function(){return u}}t.functor=gr,t.xhr=ac(nt);function ac(u){return function(c,h,p){return arguments.length===2&&typeof h=="function"&&(p=h,h=null),es(c,h,u,p)}}function es(u,c,h,p){var m={},b=t.dispatch("beforesend","progress","load","error"),O={},S=new XMLHttpRequest,P=null;self.XDomainRequest&&!("withCredentials"in S)&&/^(http(s)?:)?\/\//.test(u)&&(S=new XDomainRequest),"onload"in S?S.onload=S.onerror=N:S.onreadystatechange=function(){S.readyState>3&&N()};function N(){var D=S.status,B;if(!D&&Cy(S)||D>=200&&D<300||D===304){try{B=h.call(m,S)}catch(z){b.error.call(m,z);return}b.load.call(m,B)}else b.error.call(m,S)}return S.onprogress=function(D){var B=t.event;t.event=D;try{b.progress.call(m,S)}finally{t.event=B}},m.header=function(D,B){return D=(D+"").toLowerCase(),arguments.length<2?O[D]:(B==null?delete O[D]:O[D]=B+"",m)},m.mimeType=function(D){return arguments.length?(c=D==null?null:D+"",m):c},m.responseType=function(D){return arguments.length?(P=D,m):P},m.response=function(D){return h=D,m},["get","post"].forEach(function(D){m[D]=function(){return m.send.apply(m,[D].concat(n(arguments)))}}),m.send=function(D,B,z){if(arguments.length===2&&typeof B=="function"&&(z=B,B=null),S.open(D,u,!0),c!=null&&!("accept"in O)&&(O.accept=c+",*/*"),S.setRequestHeader)for(var ie in O)S.setRequestHeader(ie,O[ie]);return c!=null&&S.overrideMimeType&&S.overrideMimeType(c),P!=null&&(S.responseType=P),z!=null&&m.on("error",z).on("load",function(oe){z(null,oe)}),b.beforesend.call(m,S),S.send(B??null),m},m.abort=function(){return S.abort(),m},t.rebind(m,b,"on"),p==null?m:m.get(Np(p))}function Np(u){return u.length===1?function(c,h){u(c==null?h:null)}:u}function Cy(u){var c=u.responseType;return c&&c!=="text"?u.response:u.responseText}t.dsv=function(u,c){var h=new RegExp('["'+u+`
852
852
  ]`),p=u.charCodeAt(0);function m(N,D,B){arguments.length<3&&(B=D,D=null);var z=es(N,c,D==null?b:O(D),B);return z.row=function(ie){return arguments.length?z.response((D=ie)==null?b:O(ie)):D},z}function b(N){return m.parse(N.responseText)}function O(N){return function(D){return m.parse(D.responseText,N)}}m.parse=function(N,D){var B;return m.parseRows(N,function(z,ie){if(B)return B(z,ie-1);var oe=function(G){for(var X={},J=z.length,ue=0;ue<J;++ue)X[z[ue]]=G[ue];return X};B=D?function(G,X){return D(oe(G),X)}:oe})},m.parseRows=function(N,D){var B={},z={},ie=[],oe=N.length,G=0,X=0,J,ue;function le(){if(G>=oe)return z;if(ue)return ue=!1,B;var Pe=G;if(N.charCodeAt(Pe)===34){for(var Ue=Pe;Ue++<oe;)if(N.charCodeAt(Ue)===34){if(N.charCodeAt(Ue+1)!==34)break;++Ue}G=Ue+2;var tt=N.charCodeAt(Ue+1);return tt===13?(ue=!0,N.charCodeAt(Ue+2)===10&&++G):tt===10&&(ue=!0),N.slice(Pe+1,Ue).replace(/""/g,'"')}for(;G<oe;){var tt=N.charCodeAt(G++),je=1;if(tt===10)ue=!0;else if(tt===13)ue=!0,N.charCodeAt(G)===10&&(++G,++je);else if(tt!==p)continue;return N.slice(Pe,G-je)}return N.slice(Pe)}for(;(J=le())!==z;){for(var re=[];J!==B&&J!==z;)re.push(J),J=le();D&&(re=D(re,X++))==null||ie.push(re)}return ie},m.format=function(N){if(Array.isArray(N[0]))return m.formatRows(N);var D=new ut,B=[];return N.forEach(function(z){for(var ie in z)D.has(ie)||B.push(D.add(ie))}),[B.map(P).join(u)].concat(N.map(function(z){return B.map(function(ie){return P(z[ie])}).join(u)})).join(`
853
853
  `)},m.formatRows=function(N){return N.map(S).join(`
854
- `)};function S(N){return N.map(P).join(u)}function P(N){return h.test(N)?'"'+N.replace(/\"/g,'""')+'"':N}return m},t.csv=t.dsv(",","text/csv"),t.tsv=t.dsv(" ","text/tab-separated-values");var ts,Ru,ui,rs,li=this[We(this,"requestAnimationFrame")]||function(u){setTimeout(u,17)};t.timer=function(){vo.apply(this,arguments)};function vo(u,c,h){var p=arguments.length;p<2&&(c=0),p<3&&(h=Date.now());var m=h+c,b={c:u,t:m,n:null};return Ru?Ru.n=b:ts=b,Ru=b,ui||(rs=clearTimeout(rs),ui=1,li(mo)),b}function mo(){var u=ua(),c=ns()-u;c>24?(isFinite(c)&&(clearTimeout(rs),rs=setTimeout(mo,c)),ui=0):(ui=1,li(mo))}t.timer.flush=function(){ua(),ns()};function ua(){for(var u=Date.now(),c=ts;c;)u>=c.t&&c.c(u-c.t)&&(c.c=null),c=c.n;return u}function ns(){for(var u,c=ts,h=1/0;c;)c.c?(c.t<h&&(h=c.t),c=(u=c).n):c=u?u.n=c.n:ts=c.n;return Ru=u,h}t.round=function(u,c){return c?Math.round(u*(c=Math.pow(10,c)))/c:Math.round(u)},t.geom={};function $i(u){return u[0]}function Bi(u){return u[1]}t.geom.hull=function(u){var c=$i,h=Bi;if(arguments.length)return p(u);function p(m){if(m.length<3)return[];var b=gr(c),O=gr(h),S,P=m.length,N=[],D=[];for(S=0;S<P;S++)N.push([+b.call(this,m[S],S),+O.call(this,m[S],S),S]);for(N.sort(Dp),S=0;S<P;S++)D.push([N[S][0],-N[S][1]]);var B=Pu(N),z=Pu(D),ie=z[0]===B[0],oe=z[z.length-1]===B[B.length-1],G=[];for(S=B.length-1;S>=0;--S)G.push(m[N[B[S]][2]]);for(S=+ie;S<z.length-oe;++S)G.push(m[N[z[S]][2]]);return G}return p.x=function(m){return arguments.length?(c=m,p):c},p.y=function(m){return arguments.length?(h=m,p):h},p};function Pu(u){for(var c=u.length,h=[0,1],p=2,m=2;m<c;m++){for(;p>1&&Ey(u[h[p-2]],u[h[p-1]],u[m])<=0;)--p;h[p++]=m}return h.slice(0,p)}function Dp(u,c){return u[0]-c[0]||u[1]-c[1]}t.geom.polygon=function(u){return qt(u,go),u};var go=t.geom.polygon.prototype=[];go.area=function(){for(var u=-1,c=this.length,h,p=this[c-1],m=0;++u<c;)h=p,p=this[u],m+=h[1]*p[0]-h[0]*p[1];return m*.5},go.centroid=function(u){var c=-1,h=this.length,p=0,m=0,b,O=this[h-1],S;for(arguments.length||(u=-1/(6*this.area()));++c<h;)b=O,O=this[c],S=b[0]*O[1]-O[0]*b[1],p+=(b[0]+O[0])*S,m+=(b[1]+O[1])*S;return[p*u,m*u]},go.clip=function(u){for(var c,h=$p(u),p=-1,m=this.length-$p(this),b,O,S=this[m-1],P,N,D;++p<m;){for(c=u.slice(),u.length=0,P=this[p],N=c[(O=c.length-h)-1],b=-1;++b<O;)D=c[b],is(D,S,P)?(is(N,S,P)||u.push(oc(N,D,S,P)),u.push(D)):is(N,S,P)&&u.push(oc(N,D,S,P)),N=D;h&&u.push(u[0]),S=P}return u};function is(u,c,h){return(h[0]-c[0])*(u[1]-c[1])<(h[1]-c[1])*(u[0]-c[0])}function oc(u,c,h,p){var m=u[0],b=h[0],O=c[0]-m,S=p[0]-b,P=u[1],N=h[1],D=c[1]-P,B=p[1]-N,z=(S*(P-N)-B*(m-b))/(B*O-S*D);return[m+z*O,P+z*D]}function $p(u){var c=u[0],h=u[u.length-1];return!(c[0]-h[0]||c[1]-h[1])}var yo,Pa,la,Iu=[],Fu,Ia,Fa=[];function uc(){us(this),this.edge=this.site=this.circle=null}function as(u){var c=Iu.pop()||new uc;return c.site=u,c}function Nu(u){si(u),la.remove(u),Iu.push(u),us(u)}function lc(u){var c=u.circle,h=c.x,p=c.cy,m={x:h,y:p},b=u.P,O=u.N,S=[u];Nu(u);for(var P=b;P.circle&&_(h-P.circle.x)<ar&&_(p-P.circle.cy)<ar;)b=P.P,S.unshift(P),Nu(P),P=b;S.unshift(P),si(P);for(var N=O;N.circle&&_(h-N.circle.x)<ar&&_(p-N.circle.cy)<ar;)O=N.N,S.push(N),Nu(N),N=O;S.push(N),si(N);var D=S.length,B;for(B=1;B<D;++B)N=S[B],P=S[B-1],bo(N.edge,P.site,N.site,m);P=S[0],N=S[D-1],N.edge=Du(P.site,N.site,null,m),Na(P),Na(N)}function Bp(u){for(var c=u.x,h=u.y,p,m,b,O,S=la._;S;)if(b=sc(S,h)-c,b>ar)S=S.L;else if(O=c-zp(S,h),O>ar){if(!S.R){p=S;break}S=S.R}else{b>-ar?(p=S.P,m=S):O>-ar?(p=S,m=S.N):p=m=S;break}var P=as(u);if(la.insert(p,P),!(!p&&!m)){if(p===m){si(p),m=as(p.site),la.insert(P,m),P.edge=m.edge=Du(p.site,P.site),Na(p),Na(m);return}if(!m){P.edge=Du(p.site,P.site);return}si(p),si(m);var N=p.site,D=N.x,B=N.y,z=u.x-D,ie=u.y-B,oe=m.site,G=oe.x-D,X=oe.y-B,J=2*(z*X-ie*G),ue=z*z+ie*ie,le=G*G+X*X,re={x:(X*ue-ie*le)/J+D,y:(z*le-G*ue)/J+B};bo(m.edge,N,oe,re),P.edge=Du(N,u,null,re),m.edge=Du(u,oe,null,re),Na(p),Na(m)}}function sc(u,c){var h=u.site,p=h.x,m=h.y,b=m-c;if(!b)return p;var O=u.P;if(!O)return-1/0;h=O.site;var S=h.x,P=h.y,N=P-c;if(!N)return S;var D=S-p,B=1/b-1/N,z=D/N;return B?(-z+Math.sqrt(z*z-2*B*(D*D/(-2*N)-P+N/2+m-b/2)))/B+p:(p+S)/2}function zp(u,c){var h=u.N;if(h)return sc(h,c);var p=u.site;return p.y===c?p.x:1/0}function fc(u){this.site=u,this.edges=[]}fc.prototype.prepare=function(){for(var u=this.edges,c=u.length,h;c--;)h=u[c].edge,(!h.b||!h.a)&&u.splice(c,1);return u.sort(cc),u.length};function Up(u){for(var c=u[0][0],h=u[1][0],p=u[0][1],m=u[1][1],b,O,S,P,N=Pa,D=N.length,B,z,ie,oe,G,X;D--;)if(B=N[D],!(!B||!B.prepare()))for(ie=B.edges,oe=ie.length,z=0;z<oe;)X=ie[z].end(),S=X.x,P=X.y,G=ie[++z%oe].start(),b=G.x,O=G.y,(_(S-b)>ar||_(P-O)>ar)&&(ie.splice(z,0,new os(Oy(B.site,X,_(S-c)<ar&&m-P>ar?{x:c,y:_(b-c)<ar?O:m}:_(P-m)<ar&&h-S>ar?{x:_(O-m)<ar?b:h,y:m}:_(S-h)<ar&&P-p>ar?{x:h,y:_(b-h)<ar?O:p}:_(P-p)<ar&&S-c>ar?{x:_(O-p)<ar?b:c,y:p}:null),B.site,null)),++oe)}function cc(u,c){return c.angle-u.angle}function jp(){us(this),this.x=this.y=this.arc=this.site=this.cy=null}function Na(u){var c=u.P,h=u.N;if(!(!c||!h)){var p=c.site,m=u.site,b=h.site;if(p!==b){var O=m.x,S=m.y,P=p.x-O,N=p.y-S,D=b.x-O,X=b.y-S,B=2*(P*X-N*D);if(!(B>=-Tp)){var z=P*P+N*N,ie=D*D+X*X,oe=(X*z-N*ie)/B,G=(P*ie-D*z)/B,X=G+S,J=Fa.pop()||new jp;J.arc=u,J.site=m,J.x=oe+O,J.y=X+Math.sqrt(oe*oe+G*G),J.cy=X,u.circle=J;for(var ue=null,le=Ia._;le;)if(J.y<le.y||J.y===le.y&&J.x<=le.x)if(le.L)le=le.L;else{ue=le.P;break}else if(le.R)le=le.R;else{ue=le;break}Ia.insert(ue,J),ue||(Fu=J)}}}}function si(u){var c=u.circle;c&&(c.P||(Fu=c.N),Ia.remove(c),Fa.push(c),us(c),u.circle=null)}function hc(u,c,h,p){return function(m){var b=m.a,O=m.b,S=b.x,P=b.y,N=O.x,D=O.y,B=0,z=1,ie=N-S,oe=D-P,G;if(G=u-S,!(!ie&&G>0)){if(G/=ie,ie<0){if(G<B)return;G<z&&(z=G)}else if(ie>0){if(G>z)return;G>B&&(B=G)}if(G=h-S,!(!ie&&G<0)){if(G/=ie,ie<0){if(G>z)return;G>B&&(B=G)}else if(ie>0){if(G<B)return;G<z&&(z=G)}if(G=c-P,!(!oe&&G>0)){if(G/=oe,oe<0){if(G<B)return;G<z&&(z=G)}else if(oe>0){if(G>z)return;G>B&&(B=G)}if(G=p-P,!(!oe&&G<0)){if(G/=oe,oe<0){if(G>z)return;G>B&&(B=G)}else if(oe>0){if(G<B)return;G<z&&(z=G)}return B>0&&(m.a={x:S+B*ie,y:P+B*oe}),z<1&&(m.b={x:S+z*ie,y:P+z*oe}),m}}}}}}function dc(u){for(var c=yo,h=hc(u[0][0],u[0][1],u[1][0],u[1][1]),p=c.length,m;p--;)m=c[p],(!Lu(m,u)||!h(m)||_(m.a.x-m.b.x)<ar&&_(m.a.y-m.b.y)<ar)&&(m.a=m.b=null,c.splice(p,1))}function Lu(u,c){var h=u.b;if(h)return!0;var p=u.a,m=c[0][0],b=c[1][0],O=c[0][1],S=c[1][1],P=u.l,N=u.r,D=P.x,B=P.y,z=N.x,ie=N.y,oe=(D+z)/2,G=(B+ie)/2,X,J;if(ie===B){if(oe<m||oe>=b)return;if(D>z){if(!p)p={x:oe,y:O};else if(p.y>=S)return;h={x:oe,y:S}}else{if(!p)p={x:oe,y:S};else if(p.y<O)return;h={x:oe,y:O}}}else if(X=(D-z)/(ie-B),J=G-X*oe,X<-1||X>1)if(D>z){if(!p)p={x:(O-J)/X,y:O};else if(p.y>=S)return;h={x:(S-J)/X,y:S}}else{if(!p)p={x:(S-J)/X,y:S};else if(p.y<O)return;h={x:(O-J)/X,y:O}}else if(B<ie){if(!p)p={x:m,y:X*m+J};else if(p.x>=b)return;h={x:b,y:X*b+J}}else{if(!p)p={x:b,y:X*b+J};else if(p.x<m)return;h={x:m,y:X*m+J}}return u.a=p,u.b=h,!0}function Gp(u,c){this.l=u,this.r=c,this.a=this.b=null}function Du(u,c,h,p){var m=new Gp(u,c);return yo.push(m),h&&bo(m,u,c,h),p&&bo(m,c,u,p),Pa[u.i].edges.push(new os(m,u,c)),Pa[c.i].edges.push(new os(m,c,u)),m}function Oy(u,c,h){var p=new Gp(u,null);return p.a=c,p.b=h,yo.push(p),p}function bo(u,c,h,p){!u.a&&!u.b?(u.a=p,u.l=c,u.r=h):u.l===h?u.b=p:u.a=p}function os(u,c,h){var p=u.a,m=u.b;this.edge=u,this.site=c,this.angle=h?Math.atan2(h.y-c.y,h.x-c.x):u.l===c?Math.atan2(m.x-p.x,p.y-m.y):Math.atan2(p.x-m.x,m.y-p.y)}os.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function pc(){this._=null}function us(u){u.U=u.C=u.L=u.R=u.P=u.N=null}pc.prototype={insert:function(u,c){var h,p,m;if(u){if(c.P=u,c.N=u.N,u.N&&(u.N.P=c),u.N=c,u.R){for(u=u.R;u.L;)u=u.L;u.L=c}else u.R=c;h=u}else this._?(u=ls(this._),c.P=null,c.N=u,u.P=u.L=c,h=u):(c.P=c.N=null,this._=c,h=null);for(c.L=c.R=null,c.U=h,c.C=!0,u=c;h&&h.C;)p=h.U,h===p.L?(m=p.R,m&&m.C?(h.C=m.C=!1,p.C=!0,u=p):(u===h.R&&(La(this,h),u=h,h=u.U),h.C=!1,p.C=!0,$u(this,p))):(m=p.L,m&&m.C?(h.C=m.C=!1,p.C=!0,u=p):(u===h.L&&($u(this,h),u=h,h=u.U),h.C=!1,p.C=!0,La(this,p))),h=u.U;this._.C=!1},remove:function(u){u.N&&(u.N.P=u.P),u.P&&(u.P.N=u.N),u.N=u.P=null;var c=u.U,h,p=u.L,m=u.R,b,O;if(p?m?b=ls(m):b=p:b=m,c?c.L===u?c.L=b:c.R=b:this._=b,p&&m?(O=b.C,b.C=u.C,b.L=p,p.U=b,b!==m?(c=b.U,b.U=u.U,u=b.R,c.L=u,b.R=m,m.U=b):(b.U=c,c=b,u=b.R)):(O=u.C,u=b),u&&(u.U=c),!O){if(u&&u.C){u.C=!1;return}do{if(u===this._)break;if(u===c.L){if(h=c.R,h.C&&(h.C=!1,c.C=!0,La(this,c),h=c.R),h.L&&h.L.C||h.R&&h.R.C){(!h.R||!h.R.C)&&(h.L.C=!1,h.C=!0,$u(this,h),h=c.R),h.C=c.C,c.C=h.R.C=!1,La(this,c),u=this._;break}}else if(h=c.L,h.C&&(h.C=!1,c.C=!0,$u(this,c),h=c.L),h.L&&h.L.C||h.R&&h.R.C){(!h.L||!h.L.C)&&(h.R.C=!1,h.C=!0,La(this,h),h=c.L),h.C=c.C,c.C=h.L.C=!1,$u(this,c),u=this._;break}h.C=!0,u=c,c=c.U}while(!u.C);u&&(u.C=!1)}}};function La(u,c){var h=c,p=c.R,m=h.U;m?m.L===h?m.L=p:m.R=p:u._=p,p.U=m,h.U=p,h.R=p.L,h.R&&(h.R.U=h),p.L=h}function $u(u,c){var h=c,p=c.L,m=h.U;m?m.L===h?m.L=p:m.R=p:u._=p,p.U=m,h.U=p,h.L=p.R,h.L&&(h.L.U=h),p.R=h}function ls(u){for(;u.L;)u=u.L;return u}function ss(u,c){var h=u.sort(Wp).pop(),p,m,b;for(yo=[],Pa=new Array(u.length),la=new pc,Ia=new pc;;)if(b=Fu,h&&(!b||h.y<b.y||h.y===b.y&&h.x<b.x))(h.x!==p||h.y!==m)&&(Pa[h.i]=new fc(h),Bp(h),p=h.x,m=h.y),h=u.pop();else if(b)lc(b.arc);else break;c&&(dc(c),Up(c));var O={cells:Pa,edges:yo};return la=Ia=yo=Pa=null,O}function Wp(u,c){return c.y-u.y||c.x-u.x}t.geom.voronoi=function(u){var c=$i,h=Bi,p=c,m=h,b=xo;if(u)return O(u);function O(P){var N=new Array(P.length),D=b[0][0],B=b[0][1],z=b[1][0],ie=b[1][1];return ss(S(P),b).cells.forEach(function(oe,G){var X=oe.edges,J=oe.site,ue=N[G]=X.length?X.map(function(le){var re=le.start();return[re.x,re.y]}):J.x>=D&&J.x<=z&&J.y>=B&&J.y<=ie?[[D,ie],[z,ie],[z,B],[D,B]]:[];ue.point=P[G]}),N}function S(P){return P.map(function(N,D){return{x:Math.round(p(N,D)/ar)*ar,y:Math.round(m(N,D)/ar)*ar,i:D}})}return O.links=function(P){return ss(S(P)).edges.filter(function(N){return N.l&&N.r}).map(function(N){return{source:P[N.l.i],target:P[N.r.i]}})},O.triangles=function(P){var N=[];return ss(S(P)).cells.forEach(function(D,B){for(var z=D.site,ie=D.edges.sort(cc),oe=-1,G=ie.length,X,J=ie[G-1].edge,ue=J.l===z?J.r:J.l;++oe<G;)X=ue,J=ie[oe].edge,ue=J.l===z?J.r:J.l,B<X.i&&B<ue.i&&ky(z,X,ue)<0&&N.push([P[B],P[X.i],P[ue.i]])}),N},O.x=function(P){return arguments.length?(p=gr(c=P),O):c},O.y=function(P){return arguments.length?(m=gr(h=P),O):h},O.clipExtent=function(P){return arguments.length?(b=P??xo,O):b===xo?null:b},O.size=function(P){return arguments.length?O.clipExtent(P&&[[0,0],P]):b===xo?null:b&&b[1]},O};var xo=[[-1e6,-1e6],[1e6,1e6]];function ky(u,c,h){return(u.x-h.x)*(c.y-u.y)-(u.x-c.x)*(h.y-u.y)}t.geom.delaunay=function(u){return t.geom.voronoi().triangles(u)},t.geom.quadtree=function(u,c,h,p,m){var b=$i,O=Bi,S;if(S=arguments.length)return b=fs,O=My,S===3&&(m=h,p=c,h=c=0),P(u);function P(N){var D,B=gr(b),z=gr(O),ie,oe,G,X,J,ue,le,re;if(c!=null)J=c,ue=h,le=p,re=m;else if(le=re=-(J=ue=1/0),ie=[],oe=[],X=N.length,S)for(G=0;G<X;++G)D=N[G],D.x<J&&(J=D.x),D.y<ue&&(ue=D.y),D.x>le&&(le=D.x),D.y>re&&(re=D.y),ie.push(D.x),oe.push(D.y);else for(G=0;G<X;++G){var Pe=+B(D=N[G],G),Ue=+z(D,G);Pe<J&&(J=Pe),Ue<ue&&(ue=Ue),Pe>le&&(le=Pe),Ue>re&&(re=Ue),ie.push(Pe),oe.push(Ue)}var tt=le-J,je=re-ue;tt>je?re=ue+tt:le=J+je;function at(xt,Ut,or,Rr,pr,rt,Ht,Xt){if(!(isNaN(or)||isNaN(Rr)))if(xt.leaf){var ur=xt.x,Ar=xt.y;if(ur!=null)if(_(ur-or)+_(Ar-Rr)<.01)vt(xt,Ut,or,Rr,pr,rt,Ht,Xt);else{var zr=xt.point;xt.x=xt.y=xt.point=null,vt(xt,zr,ur,Ar,pr,rt,Ht,Xt),vt(xt,Ut,or,Rr,pr,rt,Ht,Xt)}else xt.x=or,xt.y=Rr,xt.point=Ut}else vt(xt,Ut,or,Rr,pr,rt,Ht,Xt)}function vt(xt,Ut,or,Rr,pr,rt,Ht,Xt){var ur=(pr+Ht)*.5,Ar=(rt+Xt)*.5,zr=or>=ur,Xr=Rr>=Ar,vn=Xr<<1|zr;xt.leaf=!1,xt=xt.nodes[vn]||(xt.nodes[vn]=Hp()),zr?pr=ur:Ht=ur,Xr?rt=Ar:Xt=Ar,at(xt,Ut,or,Rr,pr,rt,Ht,Xt)}var Wt=Hp();if(Wt.add=function(xt){at(Wt,xt,+B(xt,++G),+z(xt,G),J,ue,le,re)},Wt.visit=function(xt){Bu(xt,Wt,J,ue,le,re)},Wt.find=function(xt){return Ry(Wt,xt[0],xt[1],J,ue,le,re)},G=-1,c==null){for(;++G<X;)at(Wt,N[G],ie[G],oe[G],J,ue,le,re);--G}else N.forEach(Wt.add);return ie=oe=N=D=null,Wt}return P.x=function(N){return arguments.length?(b=N,P):b},P.y=function(N){return arguments.length?(O=N,P):O},P.extent=function(N){return arguments.length?(N==null?c=h=p=m=null:(c=+N[0][0],h=+N[0][1],p=+N[1][0],m=+N[1][1]),P):c==null?null:[[c,h],[p,m]]},P.size=function(N){return arguments.length?(N==null?c=h=p=m=null:(c=h=0,p=+N[0],m=+N[1]),P):c==null?null:[p-c,m-h]},P};function fs(u){return u.x}function My(u){return u.y}function Hp(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Bu(u,c,h,p,m,b){if(!u(c,h,p,m,b)){var O=(h+m)*.5,S=(p+b)*.5,P=c.nodes;P[0]&&Bu(u,P[0],h,p,O,S),P[1]&&Bu(u,P[1],O,p,m,S),P[2]&&Bu(u,P[2],h,S,O,b),P[3]&&Bu(u,P[3],O,S,m,b)}}function Ry(u,c,h,p,m,b,O){var S=1/0,P;return function N(D,B,z,ie,oe){if(!(B>b||z>O||ie<p||oe<m)){if(G=D.point){var G,X=c-D.x,J=h-D.y,ue=X*X+J*J;if(ue<S){var le=Math.sqrt(S=ue);p=c-le,m=h-le,b=c+le,O=h+le,P=G}}for(var re=D.nodes,Pe=(B+ie)*.5,Ue=(z+oe)*.5,tt=c>=Pe,je=h>=Ue,at=je<<1|tt,vt=at+4;at<vt;++at)if(D=re[at&3])switch(at&3){case 0:N(D,B,z,Pe,Ue);break;case 1:N(D,Pe,z,ie,Ue);break;case 2:N(D,B,Ue,Pe,oe);break;case 3:N(D,Pe,Ue,ie,oe);break}}}(u,p,m,b,O),P}t.interpolateRgb=vc;function vc(u,c){u=t.rgb(u),c=t.rgb(c);var h=u.r,p=u.g,m=u.b,b=c.r-h,O=c.g-p,S=c.b-m;return function(P){return"#"+ho(Math.round(h+b*P))+ho(Math.round(p+O*P))+ho(Math.round(m+S*P))}}t.interpolateObject=qp;function qp(u,c){var h={},p={},m;for(m in u)m in c?h[m]=_i(u[m],c[m]):p[m]=u[m];for(m in c)m in u||(p[m]=c[m]);return function(b){for(m in h)p[m]=h[m](b);return p}}t.interpolateNumber=zi;function zi(u,c){return u=+u,c=+c,function(h){return u*(1-h)+c*h}}t.interpolateString=mc;function mc(u,c){var h=Da.lastIndex=gc.lastIndex=0,p,m,b,O=-1,S=[],P=[];for(u=u+"",c=c+"";(p=Da.exec(u))&&(m=gc.exec(c));)(b=m.index)>h&&(b=c.slice(h,b),S[O]?S[O]+=b:S[++O]=b),(p=p[0])===(m=m[0])?S[O]?S[O]+=m:S[++O]=m:(S[++O]=null,P.push({i:O,x:zi(p,m)})),h=gc.lastIndex;return h<c.length&&(b=c.slice(h),S[O]?S[O]+=b:S[++O]=b),S.length<2?P[0]?(c=P[0].x,function(N){return c(N)+""}):function(){return c}:(c=P.length,function(N){for(var D=0,B;D<c;++D)S[(B=P[D]).i]=B.x(N);return S.join("")})}var Da=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gc=new RegExp(Da.source,"g");t.interpolate=_i;function _i(u,c){for(var h=t.interpolators.length,p;--h>=0&&!(p=t.interpolators[h](u,c)););return p}t.interpolators=[function(u,c){var h=typeof c;return(h==="string"?po.has(c.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(c)?vc:mc:c instanceof ia?vc:Array.isArray(c)?Pn:h==="object"&&isNaN(c)?qp:zi)(u,c)}],t.interpolateArray=Pn;function Pn(u,c){var h=[],p=[],m=u.length,b=c.length,O=Math.min(u.length,c.length),S;for(S=0;S<O;++S)h.push(_i(u[S],c[S]));for(;S<m;++S)p[S]=u[S];for(;S<b;++S)p[S]=c[S];return function(P){for(S=0;S<O;++S)p[S]=h[S](P);return p}}var $a=function(){return nt},Vp=t.map({linear:$a,poly:Jr,quad:function(){return Kp},cubic:function(){return Py},sin:function(){return Qp},exp:function(){return Zp},circle:function(){return Ba},elastic:Jp,back:ev,bounce:function(){return Iy}}),Yp=t.map({in:nt,out:yc,"in-out":bc,"out-in":function(u){return bc(yc(u))}});t.ease=function(u){var c=u.indexOf("-"),h=c>=0?u.slice(0,c):u,p=c>=0?u.slice(c+1):"in";return h=Vp.get(h)||$a,p=Yp.get(p)||nt,Xp(p(h.apply(null,r.call(arguments,1))))};function Xp(u){return function(c){return c<=0?0:c>=1?1:u(c)}}function yc(u){return function(c){return 1-u(1-c)}}function bc(u){return function(c){return .5*(c<.5?u(2*c):2-u(2-2*c))}}function Kp(u){return u*u}function Py(u){return u*u*u}function wo(u){if(u<=0)return 0;if(u>=1)return 1;var c=u*u,h=c*u;return 4*(u<.5?h:3*(u-c)+h-.75)}function Jr(u){return function(c){return Math.pow(c,u)}}function Qp(u){return 1-Math.cos(u*wi)}function Zp(u){return Math.pow(2,10*(u-1))}function Ba(u){return 1-Math.sqrt(1-u*u)}function Jp(u,c){var h;return arguments.length<2&&(c=.45),arguments.length?h=c/co*Math.asin(1/u):(u=1,h=c/4),function(p){return 1+u*Math.pow(2,-10*p)*Math.sin((p-h)*co/c)}}function ev(u){return u||(u=1.70158),function(c){return c*c*((u+1)*c-u)}}function Iy(u){return u<1/2.75?7.5625*u*u:u<2/2.75?7.5625*(u-=1.5/2.75)*u+.75:u<2.5/2.75?7.5625*(u-=2.25/2.75)*u+.9375:7.5625*(u-=2.625/2.75)*u+.984375}t.interpolateHcl=Fy;function Fy(u,c){u=t.hcl(u),c=t.hcl(c);var h=u.h,p=u.c,m=u.l,b=c.h-h,O=c.c-p,S=c.l-m;return isNaN(O)&&(O=0,p=isNaN(p)?c.c:p),isNaN(b)?(b=0,h=isNaN(h)?c.h:h):b>180?b-=360:b<-180&&(b+=360),function(P){return Mu(h+b*P,p+O*P,m+S*P)+""}}t.interpolateHsl=Ny;function Ny(u,c){u=t.hsl(u),c=t.hsl(c);var h=u.h,p=u.s,m=u.l,b=c.h-h,O=c.s-p,S=c.l-m;return isNaN(O)&&(O=0,p=isNaN(p)?c.s:p),isNaN(b)?(b=0,h=isNaN(h)?c.h:h):b>180?b-=360:b<-180&&(b+=360),function(P){return Ql(h+b*P,p+O*P,m+S*P)+""}}t.interpolateLab=Ly;function Ly(u,c){u=t.lab(u),c=t.lab(c);var h=u.l,p=u.a,m=u.b,b=c.l-h,O=c.a-p,S=c.b-m;return function(P){return Ip(h+b*P,p+O*P,m+S*P)+""}}t.interpolateRound=cs;function cs(u,c){return c-=u,function(h){return Math.round(u+c*h)}}t.transform=function(u){var c=i.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(h){if(h!=null){c.setAttribute("transform",h);var p=c.transform.baseVal.consolidate()}return new xc(p?p.matrix:Dy)})(u)};function xc(u){var c=[u.a,u.b],h=[u.c,u.d],p=wc(c),m=tv(c,h),b=wc(rv(h,c,-m))||0;c[0]*h[1]<h[0]*c[1]&&(c[0]*=-1,c[1]*=-1,p*=-1,m*=-1),this.rotate=(p?Math.atan2(c[1],c[0]):Math.atan2(-h[0],h[1]))*Tu,this.translate=[u.e,u.f],this.scale=[p,b],this.skew=b?Math.atan2(m,b)*Tu:0}xc.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function tv(u,c){return u[0]*c[0]+u[1]*c[1]}function wc(u){var c=Math.sqrt(tv(u,u));return c&&(u[0]/=c,u[1]/=c),c}function rv(u,c,h){return u[0]+=h*c[0],u[1]+=h*c[1],u}var Dy={a:1,b:0,c:0,d:1,e:0,f:0};t.interpolateTransform=_c;function Ui(u){return u.length?u.pop()+",":""}function $y(u,c,h,p){if(u[0]!==c[0]||u[1]!==c[1]){var m=h.push("translate(",null,",",null,")");p.push({i:m-4,x:zi(u[0],c[0])},{i:m-2,x:zi(u[1],c[1])})}else(c[0]||c[1])&&h.push("translate("+c+")")}function sa(u,c,h,p){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),p.push({i:h.push(Ui(h)+"rotate(",null,")")-2,x:zi(u,c)})):c&&h.push(Ui(h)+"rotate("+c+")")}function hs(u,c,h,p){u!==c?p.push({i:h.push(Ui(h)+"skewX(",null,")")-2,x:zi(u,c)}):c&&h.push(Ui(h)+"skewX("+c+")")}function nv(u,c,h,p){if(u[0]!==c[0]||u[1]!==c[1]){var m=h.push(Ui(h)+"scale(",null,",",null,")");p.push({i:m-4,x:zi(u[0],c[0])},{i:m-2,x:zi(u[1],c[1])})}else(c[0]!==1||c[1]!==1)&&h.push(Ui(h)+"scale("+c+")")}function _c(u,c){var h=[],p=[];return u=t.transform(u),c=t.transform(c),$y(u.translate,c.translate,h,p),sa(u.rotate,c.rotate,h,p),hs(u.skew,c.skew,h,p),nv(u.scale,c.scale,h,p),u=c=null,function(m){for(var b=-1,O=p.length,S;++b<O;)h[(S=p[b]).i]=S.x(m);return h.join("")}}function iv(u,c){return c=(c-=u=+u)||1/c,function(h){return(h-u)/c}}function av(u,c){return c=(c-=u=+u)||1/c,function(h){return Math.max(0,Math.min(1,(h-u)/c))}}t.layout={},t.layout.bundle=function(){return function(u){for(var c=[],h=-1,p=u.length;++h<p;)c.push(ov(u[h]));return c}};function ov(u){for(var c=u.source,h=u.target,p=uv(c,h),m=[c];c!==p;)c=c.parent,m.push(c);for(var b=m.length;h!==p;)m.splice(b,0,h),h=h.parent;return m}function Sc(u){for(var c=[],h=u.parent;h!=null;)c.push(u),u=h,h=h.parent;return c.push(u),c}function uv(u,c){if(u===c)return u;for(var h=Sc(u),p=Sc(c),m=h.pop(),b=p.pop(),O=null;m===b;)O=m,m=h.pop(),b=p.pop();return O}t.layout.chord=function(){var u={},c,h,p,m,b=0,O,S,P;function N(){var B={},z=[],ie=t.range(m),oe=[],G,X,J,ue,le;for(c=[],h=[],G=0,ue=-1;++ue<m;){for(X=0,le=-1;++le<m;)X+=p[ue][le];z.push(X),oe.push(t.range(m)),G+=X}for(O&&ie.sort(function(Wt,xt){return O(z[Wt],z[xt])}),S&&oe.forEach(function(Wt,xt){Wt.sort(function(Ut,or){return S(p[xt][Ut],p[xt][or])})}),G=(co-b*m)/G,X=0,ue=-1;++ue<m;){for(J=X,le=-1;++le<m;){var re=ie[ue],Pe=oe[re][le],Ue=p[re][Pe],tt=X,je=X+=Ue*G;B[re+"-"+Pe]={index:re,subindex:Pe,startAngle:tt,endAngle:je,value:Ue}}h[re]={index:re,startAngle:J,endAngle:X,value:z[re]},X+=b}for(ue=-1;++ue<m;)for(le=ue-1;++le<m;){var at=B[ue+"-"+le],vt=B[le+"-"+ue];(at.value||vt.value)&&c.push(at.value<vt.value?{source:vt,target:at}:{source:at,target:vt})}P&&D()}function D(){c.sort(function(B,z){return P((B.source.value+B.target.value)/2,(z.source.value+z.target.value)/2)})}return u.matrix=function(B){return arguments.length?(m=(p=B)&&p.length,c=h=null,u):p},u.padding=function(B){return arguments.length?(b=B,c=h=null,u):b},u.sortGroups=function(B){return arguments.length?(O=B,c=h=null,u):O},u.sortSubgroups=function(B){return arguments.length?(S=B,c=null,u):S},u.sortChords=function(B){return arguments.length?(P=B,c&&D(),u):P},u.chords=function(){return c||N(),c},u.groups=function(){return h||N(),h},u},t.layout.force=function(){var u={},c=t.dispatch("start","tick","end"),h,p=[1,1],m,b,O=.9,S=ji,P=Ec,N=-30,D=_o,B=.1,z=.64,ie=[],oe=[],G,X,J;function ue(re){return function(Pe,Ue,tt,je){if(Pe.point!==re){var at=Pe.cx-re.x,vt=Pe.cy-re.y,Wt=je-Ue,xt=at*at+vt*vt;if(Wt*Wt/z<xt){if(xt<D){var Ut=Pe.charge/xt;re.px-=at*Ut,re.py-=vt*Ut}return!0}if(Pe.point&&xt&&xt<D){var Ut=Pe.pointCharge/xt;re.px-=at*Ut,re.py-=vt*Ut}}return!Pe.charge}}u.tick=function(){if((b*=.99)<.005)return h=null,c.end({type:"end",alpha:b=0}),!0;var re=ie.length,Pe=oe.length,Ue,tt,je,at,vt,Wt,xt,Ut,or;for(tt=0;tt<Pe;++tt)je=oe[tt],at=je.source,vt=je.target,Ut=vt.x-at.x,or=vt.y-at.y,(Wt=Ut*Ut+or*or)&&(Wt=b*X[tt]*((Wt=Math.sqrt(Wt))-G[tt])/Wt,Ut*=Wt,or*=Wt,vt.x-=Ut*(xt=at.weight+vt.weight?at.weight/(at.weight+vt.weight):.5),vt.y-=or*xt,at.x+=Ut*(xt=1-xt),at.y+=or*xt);if((xt=b*B)&&(Ut=p[0]/2,or=p[1]/2,tt=-1,xt))for(;++tt<re;)je=ie[tt],je.x+=(Ut-je.x)*xt,je.y+=(or-je.y)*xt;if(N)for(cv(Ue=t.geom.quadtree(ie),b,J),tt=-1;++tt<re;)(je=ie[tt]).fixed||Ue.visit(ue(je));for(tt=-1;++tt<re;)je=ie[tt],je.fixed?(je.x=je.px,je.y=je.py):(je.x-=(je.px-(je.px=je.x))*O,je.y-=(je.py-(je.py=je.y))*O);c.tick({type:"tick",alpha:b})},u.nodes=function(re){return arguments.length?(ie=re,u):ie},u.links=function(re){return arguments.length?(oe=re,u):oe},u.size=function(re){return arguments.length?(p=re,u):p},u.linkDistance=function(re){return arguments.length?(S=typeof re=="function"?re:+re,u):S},u.distance=u.linkDistance,u.linkStrength=function(re){return arguments.length?(P=typeof re=="function"?re:+re,u):P},u.friction=function(re){return arguments.length?(O=+re,u):O},u.charge=function(re){return arguments.length?(N=typeof re=="function"?re:+re,u):N},u.chargeDistance=function(re){return arguments.length?(D=re*re,u):Math.sqrt(D)},u.gravity=function(re){return arguments.length?(B=+re,u):B},u.theta=function(re){return arguments.length?(z=re*re,u):Math.sqrt(z)},u.alpha=function(re){return arguments.length?(re=+re,b?re>0?b=re:(h.c=null,h.t=NaN,h=null,c.end({type:"end",alpha:b=0})):re>0&&(c.start({type:"start",alpha:b=re}),h=vo(u.tick)),u):b},u.start=function(){var re,Pe=ie.length,Ue=oe.length,tt=p[0],je=p[1],at,vt;for(re=0;re<Pe;++re)(vt=ie[re]).index=re,vt.weight=0;for(re=0;re<Ue;++re)vt=oe[re],typeof vt.source=="number"&&(vt.source=ie[vt.source]),typeof vt.target=="number"&&(vt.target=ie[vt.target]),++vt.source.weight,++vt.target.weight;for(re=0;re<Pe;++re)vt=ie[re],isNaN(vt.x)&&(vt.x=Wt("x",tt)),isNaN(vt.y)&&(vt.y=Wt("y",je)),isNaN(vt.px)&&(vt.px=vt.x),isNaN(vt.py)&&(vt.py=vt.y);if(G=[],typeof S=="function")for(re=0;re<Ue;++re)G[re]=+S.call(this,oe[re],re);else for(re=0;re<Ue;++re)G[re]=S;if(X=[],typeof P=="function")for(re=0;re<Ue;++re)X[re]=+P.call(this,oe[re],re);else for(re=0;re<Ue;++re)X[re]=P;if(J=[],typeof N=="function")for(re=0;re<Pe;++re)J[re]=+N.call(this,ie[re],re);else for(re=0;re<Pe;++re)J[re]=N;function Wt(xt,Ut){if(!at){for(at=new Array(Pe),pr=0;pr<Pe;++pr)at[pr]=[];for(pr=0;pr<Ue;++pr){var or=oe[pr];at[or.source.index].push(or.target),at[or.target.index].push(or.source)}}for(var Rr=at[re],pr=-1,rt=Rr.length,Ht;++pr<rt;)if(!isNaN(Ht=Rr[pr][xt]))return Ht;return Math.random()*Ut}return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){if(m||(m=t.behavior.drag().origin(nt).on("dragstart.force",lv).on("drag.force",le).on("dragend.force",sv)),!arguments.length)return m;this.on("mouseover.force",fi).on("mouseout.force",fv).call(m)};function le(re){re.px=t.event.x,re.py=t.event.y,u.resume()}return t.rebind(u,c,"on")};function lv(u){u.fixed|=2}function sv(u){u.fixed&=-7}function fi(u){u.fixed|=4,u.px=u.x,u.py=u.y}function fv(u){u.fixed&=-5}function cv(u,c,h){var p=0,m=0;if(u.charge=0,!u.leaf)for(var b=u.nodes,O=b.length,S=-1,P;++S<O;)P=b[S],P!=null&&(cv(P,c,h),u.charge+=P.charge,p+=P.charge*P.cx,m+=P.charge*P.cy);if(u.point){u.leaf||(u.point.x+=Math.random()-.5,u.point.y+=Math.random()-.5);var N=c*h[u.point.index];u.charge+=u.pointCharge=N,p+=N*u.point.x,m+=N*u.point.y}u.cx=p/u.charge,u.cy=m/u.charge}var ji=20,Ec=1,_o=1/0;t.layout.hierarchy=function(){var u=By,c=hv,h=dv;function p(m){var b=[m],O=[],S;for(m.depth=0;(S=b.pop())!=null;)if(O.push(S),(N=c.call(p,S,S.depth))&&(P=N.length)){for(var P,N,D;--P>=0;)b.push(D=N[P]),D.parent=S,D.depth=S.depth+1;h&&(S.value=0),S.children=N}else h&&(S.value=+h.call(p,S,S.depth)||0),delete S.children;return ci(m,function(B){var z,ie;u&&(z=B.children)&&z.sort(u),h&&(ie=B.parent)&&(ie.value+=B.value)}),O}return p.sort=function(m){return arguments.length?(u=m,p):u},p.children=function(m){return arguments.length?(c=m,p):c},p.value=function(m){return arguments.length?(h=m,p):h},p.revalue=function(m){return h&&(Eo(m,function(b){b.children&&(b.value=0)}),ci(m,function(b){var O;b.children||(b.value=+h.call(p,b,b.depth)||0),(O=b.parent)&&(O.value+=b.value)})),m},p};function So(u,c){return t.rebind(u,c,"sort","children","value"),u.nodes=u,u.links=zy,u}function Eo(u,c){for(var h=[u];(u=h.pop())!=null;)if(c(u),(m=u.children)&&(p=m.length))for(var p,m;--p>=0;)h.push(m[p])}function ci(u,c){for(var h=[u],p=[];(u=h.pop())!=null;)if(p.push(u),(O=u.children)&&(b=O.length))for(var m=-1,b,O;++m<b;)h.push(O[m]);for(;(u=p.pop())!=null;)c(u)}function hv(u){return u.children}function dv(u){return u.value}function By(u,c){return c.value-u.value}function zy(u){return t.merge(u.map(function(c){return(c.children||[]).map(function(h){return{source:c,target:h}})}))}t.layout.partition=function(){var u=t.layout.hierarchy(),c=[1,1];function h(b,O,S,P){var N=b.children;if(b.x=O,b.y=b.depth*P,b.dx=S,b.dy=P,N&&(B=N.length)){var D=-1,B,z,ie;for(S=b.value?S/b.value:0;++D<B;)h(z=N[D],O,ie=z.value*S,P),O+=ie}}function p(b){var O=b.children,S=0;if(O&&(N=O.length))for(var P=-1,N;++P<N;)S=Math.max(S,p(O[P]));return 1+S}function m(b,O){var S=u.call(this,b,O);return h(S[0],0,c[0],c[1]/p(S[0])),S}return m.size=function(b){return arguments.length?(c=b,m):c},So(m,u)},t.layout.pie=function(){var u=Number,c=pv,h=0,p=co,m=0;function b(O){var S=O.length,P=O.map(function(ue,le){return+u.call(b,ue,le)}),N=+(typeof h=="function"?h.apply(this,arguments):h),D=(typeof p=="function"?p.apply(this,arguments):p)-N,B=Math.min(Math.abs(D)/S,+(typeof m=="function"?m.apply(this,arguments):m)),z=B*(D<0?-1:1),ie=t.sum(P),oe=ie?(D-S*z)/ie:0,G=t.range(S),X=[],J;return c!=null&&G.sort(c===pv?function(ue,le){return P[le]-P[ue]}:function(ue,le){return c(O[ue],O[le])}),G.forEach(function(ue){X[ue]={data:O[ue],value:J=P[ue],startAngle:N,endAngle:N+=J*oe+z,padAngle:B}}),X}return b.value=function(O){return arguments.length?(u=O,b):u},b.sort=function(O){return arguments.length?(c=O,b):c},b.startAngle=function(O){return arguments.length?(h=O,b):h},b.endAngle=function(O){return arguments.length?(p=O,b):p},b.padAngle=function(O){return arguments.length?(m=O,b):m},b};var pv={};t.layout.stack=function(){var u=nt,c=Tc,h=Cc,p=Gy,m=Uy,b=jy;function O(S,P){if(!(oe=S.length))return S;var N=S.map(function(ue,le){return u.call(O,ue,le)}),D=N.map(function(ue){return ue.map(function(le,re){return[m.call(O,le,re),b.call(O,le,re)]})}),B=c.call(O,D,P);N=t.permute(N,B),D=t.permute(D,B);var z=h.call(O,D,P),ie=N[0].length,oe,G,X,J;for(X=0;X<ie;++X)for(p.call(O,N[0][X],J=z[X],D[0][X][1]),G=1;G<oe;++G)p.call(O,N[G][X],J+=D[G-1][X][1],D[G][X][1]);return S}return O.values=function(S){return arguments.length?(u=S,O):u},O.order=function(S){return arguments.length?(c=typeof S=="function"?S:Ac.get(S)||Tc,O):c},O.offset=function(S){return arguments.length?(h=typeof S=="function"?S:ds.get(S)||Cc,O):h},O.x=function(S){return arguments.length?(m=S,O):m},O.y=function(S){return arguments.length?(b=S,O):b},O.out=function(S){return arguments.length?(p=S,O):p},O};function Uy(u){return u.x}function jy(u){return u.y}function Gy(u,c,h){u.y0=c,u.y=h}var Ac=t.map({"inside-out":function(u){var c=u.length,h,p,m=u.map(vv),b=u.map(ps),O=t.range(c).sort(function(B,z){return m[B]-m[z]}),S=0,P=0,N=[],D=[];for(h=0;h<c;++h)p=O[h],S<P?(S+=b[p],N.push(p)):(P+=b[p],D.push(p));return D.reverse().concat(N)},reverse:function(u){return t.range(u.length).reverse()},default:Tc}),ds=t.map({silhouette:function(u){var c=u.length,h=u[0].length,p=[],m=0,b,O,S,P=[];for(O=0;O<h;++O){for(b=0,S=0;b<c;b++)S+=u[b][O][1];S>m&&(m=S),p.push(S)}for(O=0;O<h;++O)P[O]=(m-p[O])/2;return P},wiggle:function(u){var c=u.length,h=u[0],p=h.length,m,b,O,S,P,N,D,B,z,ie=[];for(ie[0]=B=z=0,b=1;b<p;++b){for(m=0,S=0;m<c;++m)S+=u[m][b][1];for(m=0,P=0,D=h[b][0]-h[b-1][0];m<c;++m){for(O=0,N=(u[m][b][1]-u[m][b-1][1])/(2*D);O<m;++O)N+=(u[O][b][1]-u[O][b-1][1])/D;P+=N*u[m][b][1]}ie[b]=B-=S?P/S*D:0,B<z&&(z=B)}for(b=0;b<p;++b)ie[b]-=z;return ie},expand:function(u){var c=u.length,h=u[0].length,p=1/c,m,b,O,S=[];for(b=0;b<h;++b){for(m=0,O=0;m<c;m++)O+=u[m][b][1];if(O)for(m=0;m<c;m++)u[m][b][1]/=O;else for(m=0;m<c;m++)u[m][b][1]=p}for(b=0;b<h;++b)S[b]=0;return S},zero:Cc});function Tc(u){return t.range(u.length)}function Cc(u){for(var c=-1,h=u[0].length,p=[];++c<h;)p[c]=0;return p}function vv(u){for(var c=1,h=0,p=u[0][1],m,b=u.length;c<b;++c)(m=u[c][1])>p&&(h=c,p=m);return h}function ps(u){return u.reduce(Oc,0)}function Oc(u,c){return u+c[1]}t.layout.histogram=function(){var u=!0,c=Number,h=Hy,p=Wy;function m(b,z){for(var S=[],P=b.map(c,this),N=h.call(this,P,z),D=p.call(this,N,P,z),B,z=-1,ie=P.length,oe=D.length-1,G=u?1:1/ie,X;++z<oe;)B=S[z]=[],B.dx=D[z+1]-(B.x=D[z]),B.y=0;if(oe>0)for(z=-1;++z<ie;)X=P[z],X>=N[0]&&X<=N[1]&&(B=S[t.bisect(D,X,1,oe)-1],B.y+=G,B.push(b[z]));return S}return m.value=function(b){return arguments.length?(c=b,m):c},m.range=function(b){return arguments.length?(h=gr(b),m):h},m.bins=function(b){return arguments.length?(p=typeof b=="number"?function(O){return kc(O,b)}:gr(b),m):p},m.frequency=function(b){return arguments.length?(u=!!b,m):u},m};function Wy(u,c){return kc(u,Math.ceil(Math.log(c.length)/Math.LN2+1))}function kc(u,c){for(var h=-1,p=+u[0],m=(u[1]-p)/c,b=[];++h<=c;)b[h]=m*h+p;return b}function Hy(u){return[t.min(u),t.max(u)]}t.layout.pack=function(){var u=t.layout.hierarchy().sort(qy),c=0,h=[1,1],p;function m(b,O){var S=u.call(this,b,O),P=S[0],N=h[0],D=h[1],B=p==null?Math.sqrt:typeof p=="function"?p:function(){return p};if(P.x=P.y=0,ci(P,function(ie){ie.r=+B(ie.value)}),ci(P,Rc),c){var z=c*(p?1:Math.max(2*P.r/N,2*P.r/D))/2;ci(P,function(ie){ie.r+=z}),ci(P,Rc),ci(P,function(ie){ie.r-=z})}return yv(P,N/2,D/2,p?1:1/Math.max(2*P.r/N,2*P.r/D)),S}return m.size=function(b){return arguments.length?(h=b,m):h},m.radius=function(b){return arguments.length?(p=b==null||typeof b=="function"?b:+b,m):p},m.padding=function(b){return arguments.length?(c=+b,m):c},So(m,u)};function qy(u,c){return u.value-c.value}function Mc(u,c){var h=u._pack_next;u._pack_next=c,c._pack_prev=u,c._pack_next=h,h._pack_prev=c}function mv(u,c){u._pack_next=c,c._pack_prev=u}function gv(u,c){var h=c.x-u.x,p=c.y-u.y,m=u.r+c.r;return .999*m*m>h*h+p*p}function Rc(u){if(!(c=u.children)||!(z=c.length))return;var c,h=1/0,p=-1/0,m=1/0,b=-1/0,O,S,P,N,D,B,z;function ie(re){h=Math.min(re.x-re.r,h),p=Math.max(re.x+re.r,p),m=Math.min(re.y-re.r,m),b=Math.max(re.y+re.r,b)}if(c.forEach(Vy),O=c[0],O.x=-O.r,O.y=0,ie(O),z>1&&(S=c[1],S.x=S.r,S.y=0,ie(S),z>2))for(P=c[2],bv(O,S,P),ie(P),Mc(O,P),O._pack_prev=P,Mc(P,S),S=O._pack_next,N=3;N<z;N++){bv(O,S,P=c[N]);var oe=0,G=1,X=1;for(D=S._pack_next;D!==S;D=D._pack_next,G++)if(gv(D,P)){oe=1;break}if(oe==1)for(B=O._pack_prev;B!==D._pack_prev&&!gv(B,P);B=B._pack_prev,X++);oe?(G<X||G==X&&S.r<O.r?mv(O,S=D):mv(O=B,S),N--):(Mc(O,P),S=P,ie(P))}var J=(h+p)/2,ue=(m+b)/2,le=0;for(N=0;N<z;N++)P=c[N],P.x-=J,P.y-=ue,le=Math.max(le,P.r+Math.sqrt(P.x*P.x+P.y*P.y));u.r=le,c.forEach(Yy)}function Vy(u){u._pack_next=u._pack_prev=u}function Yy(u){delete u._pack_next,delete u._pack_prev}function yv(u,c,h,p){var m=u.children;if(u.x=c+=p*u.x,u.y=h+=p*u.y,u.r*=p,m)for(var b=-1,O=m.length;++b<O;)yv(m[b],c,h,p)}function bv(u,c,h){var p=u.r+h.r,m=c.x-u.x,b=c.y-u.y;if(p&&(m||b)){var O=c.r+h.r,S=m*m+b*b;O*=O,p*=p;var P=.5+(p-O)/(2*S),N=Math.sqrt(Math.max(0,2*O*(p+S)-(p-=S)*p-O*O))/(2*S);h.x=u.x+P*m+N*b,h.y=u.y+P*b-N*m}else h.x=u.x+p,h.y=u.y}t.layout.tree=function(){var u=t.layout.hierarchy().sort(null).value(null),c=xv,h=[1,1],p=null;function m(D,B){var z=u.call(this,D,B),ie=z[0],oe=b(ie);if(ci(oe,O),oe.parent.m=-oe.z,Eo(oe,S),p)Eo(ie,N);else{var G=ie,X=ie,J=ie;Eo(ie,function(Pe){Pe.x<G.x&&(G=Pe),Pe.x>X.x&&(X=Pe),Pe.depth>J.depth&&(J=Pe)});var ue=c(G,X)/2-G.x,le=h[0]/(X.x+c(X,G)/2+ue),re=h[1]/(J.depth||1);Eo(ie,function(Pe){Pe.x=(Pe.x+ue)*le,Pe.y=Pe.depth*re})}return z}function b(D){for(var B={A:null,children:[D]},z=[B],ie;(ie=z.pop())!=null;)for(var oe=ie.children,G,X=0,J=oe.length;X<J;++X)z.push((oe[X]=G={_:oe[X],parent:ie,children:(G=oe[X].children)&&G.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:X}).a=G);return B.children[0]}function O(D){var B=D.children,z=D.parent.children,ie=D.i?z[D.i-1]:null;if(B.length){Ky(D);var oe=(B[0].z+B[B.length-1].z)/2;ie?(D.z=ie.z+c(D._,ie._),D.m=D.z-oe):D.z=oe}else ie&&(D.z=ie.z+c(D._,ie._));D.parent.A=P(D,ie,D.parent.A||z[0])}function S(D){D._.x=D.z+D.parent.m,D.m+=D.parent.m}function P(D,B,z){if(B){for(var ie=D,oe=D,G=B,X=ie.parent.children[0],J=ie.m,ue=oe.m,le=G.m,re=X.m,Pe;G=Ic(G),ie=Pc(ie),G&&ie;)X=Pc(X),oe=Ic(oe),oe.a=D,Pe=G.z+le-ie.z-J+c(G._,ie._),Pe>0&&(Xy(Si(G,D,z),D,Pe),J+=Pe,ue+=Pe),le+=G.m,J+=ie.m,re+=X.m,ue+=oe.m;G&&!Ic(oe)&&(oe.t=G,oe.m+=le-ue),ie&&!Pc(X)&&(X.t=ie,X.m+=J-re,z=D)}return z}function N(D){D.x*=h[0],D.y=D.depth*h[1]}return m.separation=function(D){return arguments.length?(c=D,m):c},m.size=function(D){return arguments.length?(p=(h=D)==null?N:null,m):p?null:h},m.nodeSize=function(D){return arguments.length?(p=(h=D)==null?null:N,m):p?h:null},So(m,u)};function xv(u,c){return u.parent==c.parent?1:2}function Pc(u){var c=u.children;return c.length?c[0]:u.t}function Ic(u){var c=u.children,h;return(h=c.length)?c[h-1]:u.t}function Xy(u,c,h){var p=h/(c.i-u.i);c.c-=p,c.s+=h,u.c+=p,c.z+=h,c.m+=h}function Ky(u){for(var c=0,h=0,p=u.children,m=p.length,b;--m>=0;)b=p[m],b.z+=c,b.m+=c,c+=b.s+(h+=b.c)}function Si(u,c,h){return u.a.parent===c.parent?u.a:h}t.layout.cluster=function(){var u=t.layout.hierarchy().sort(null).value(null),c=xv,h=[1,1],p=!1;function m(b,O){var S=u.call(this,b,O),P=S[0],N,D=0;ci(P,function(G){var X=G.children;X&&X.length?(G.x=Qy(X),G.y=wv(X)):(G.x=N?D+=c(G,N):0,G.y=0,N=G)});var B=_v(P),z=Sv(P),ie=B.x-c(B,z)/2,oe=z.x+c(z,B)/2;return ci(P,p?function(G){G.x=(G.x-P.x)*h[0],G.y=(P.y-G.y)*h[1]}:function(G){G.x=(G.x-ie)/(oe-ie)*h[0],G.y=(1-(P.y?G.y/P.y:1))*h[1]}),S}return m.separation=function(b){return arguments.length?(c=b,m):c},m.size=function(b){return arguments.length?(p=(h=b)==null,m):p?null:h},m.nodeSize=function(b){return arguments.length?(p=(h=b)!=null,m):p?h:null},So(m,u)};function wv(u){return 1+t.max(u,function(c){return c.y})}function Qy(u){return u.reduce(function(c,h){return c+h.x},0)/u.length}function _v(u){var c=u.children;return c&&c.length?_v(c[0]):u}function Sv(u){var c=u.children,h;return c&&(h=c.length)?Sv(c[h-1]):u}t.layout.treemap=function(){var u=t.layout.hierarchy(),c=Math.round,h=[1,1],p=null,m=Fc,b=!1,O,S="squarify",P=.5*(1+Math.sqrt(5));function N(G,X){for(var J=-1,ue=G.length,le,re;++J<ue;)re=(le=G[J]).value*(X<0?0:X),le.area=isNaN(re)||re<=0?0:re}function D(G){var X=G.children;if(X&&X.length){var J=m(G),ue=[],le=X.slice(),re,Pe=1/0,Ue,tt=S==="slice"?J.dx:S==="dice"?J.dy:S==="slice-dice"?G.depth&1?J.dy:J.dx:Math.min(J.dx,J.dy),je;for(N(le,J.dx*J.dy/G.value),ue.area=0;(je=le.length)>0;)ue.push(re=le[je-1]),ue.area+=re.area,S!=="squarify"||(Ue=z(ue,tt))<=Pe?(le.pop(),Pe=Ue):(ue.area-=ue.pop().area,ie(ue,tt,J,!1),tt=Math.min(J.dx,J.dy),ue.length=ue.area=0,Pe=1/0);ue.length&&(ie(ue,tt,J,!0),ue.length=ue.area=0),X.forEach(D)}}function B(G){var X=G.children;if(X&&X.length){var J=m(G),ue=X.slice(),le,re=[];for(N(ue,J.dx*J.dy/G.value),re.area=0;le=ue.pop();)re.push(le),re.area+=le.area,le.z!=null&&(ie(re,le.z?J.dx:J.dy,J,!ue.length),re.length=re.area=0);X.forEach(B)}}function z(G,X){for(var J=G.area,ue,le=0,re=1/0,Pe=-1,Ue=G.length;++Pe<Ue;)(ue=G[Pe].area)&&(ue<re&&(re=ue),ue>le&&(le=ue));return J*=J,X*=X,J?Math.max(X*le*P/J,J/(X*re*P)):1/0}function ie(G,X,J,ue){var le=-1,re=G.length,Pe=J.x,Ue=J.y,tt=X?c(G.area/X):0,je;if(X==J.dx){for((ue||tt>J.dy)&&(tt=J.dy);++le<re;)je=G[le],je.x=Pe,je.y=Ue,je.dy=tt,Pe+=je.dx=Math.min(J.x+J.dx-Pe,tt?c(je.area/tt):0);je.z=!0,je.dx+=J.x+J.dx-Pe,J.y+=tt,J.dy-=tt}else{for((ue||tt>J.dx)&&(tt=J.dx);++le<re;)je=G[le],je.x=Pe,je.y=Ue,je.dx=tt,Ue+=je.dy=Math.min(J.y+J.dy-Ue,tt?c(je.area/tt):0);je.z=!1,je.dy+=J.y+J.dy-Ue,J.x+=tt,J.dx-=tt}}function oe(G){var X=O||u(G),J=X[0];return J.x=J.y=0,J.value?(J.dx=h[0],J.dy=h[1]):J.dx=J.dy=0,O&&u.revalue(J),N([J],J.dx*J.dy/J.value),(O?B:D)(J),b&&(O=X),X}return oe.size=function(G){return arguments.length?(h=G,oe):h},oe.padding=function(G){if(!arguments.length)return p;function X(le){var re=G.call(oe,le,le.depth);return re==null?Fc(le):Ev(le,typeof re=="number"?[re,re,re,re]:re)}function J(le){return Ev(le,G)}var ue;return m=(p=G)==null?Fc:(ue=typeof G)=="function"?X:(ue==="number"&&(G=[G,G,G,G]),J),oe},oe.round=function(G){return arguments.length?(c=G?Math.round:Number,oe):c!=Number},oe.sticky=function(G){return arguments.length?(b=G,O=null,oe):b},oe.ratio=function(G){return arguments.length?(P=G,oe):P},oe.mode=function(G){return arguments.length?(S=G+"",oe):S},So(oe,u)};function Fc(u){return{x:u.x,y:u.y,dx:u.dx,dy:u.dy}}function Ev(u,c){var h=u.x+c[3],p=u.y+c[0],m=u.dx-c[1]-c[3],b=u.dy-c[0]-c[2];return m<0&&(h+=m/2,m=0),b<0&&(p+=b/2,b=0),{x:h,y:p,dx:m,dy:b}}t.random={normal:function(u,c){var h=arguments.length;return h<2&&(c=1),h<1&&(u=0),function(){var p,m,b;do p=Math.random()*2-1,m=Math.random()*2-1,b=p*p+m*m;while(!b||b>1);return u+c*p*Math.sqrt(-2*Math.log(b)/b)}},logNormal:function(){var u=t.random.normal.apply(t,arguments);return function(){return Math.exp(u())}},bates:function(u){var c=t.random.irwinHall(u);return function(){return c()/u}},irwinHall:function(u){return function(){for(var c=0,h=0;h<u;h++)c+=Math.random();return c}}},t.scale={};function vs(u){var c=u[0],h=u[u.length-1];return c<h?[c,h]:[h,c]}function ms(u){return u.rangeExtent?u.rangeExtent():vs(u.range())}function Zy(u,c,h,p){var m=h(u[0],u[1]),b=p(c[0],c[1]);return function(O){return b(m(O))}}function Wr(u,c){var h=0,p=u.length-1,m=u[h],b=u[p],O;return b<m&&(O=h,h=p,p=O,O=m,m=b,b=O),u[h]=c.floor(m),u[p]=c.ceil(b),u}function za(u){return u?{floor:function(c){return Math.floor(c/u)*u},ceil:function(c){return Math.ceil(c/u)*u}}:Ao}var Ao={floor:nt,ceil:nt};function Jy(u,c,h,p){var m=[],b=[],O=0,S=Math.min(u.length,c.length)-1;for(u[S]<u[0]&&(u=u.slice().reverse(),c=c.slice().reverse());++O<=S;)m.push(h(u[O-1],u[O])),b.push(p(c[O-1],c[O]));return function(P){var N=t.bisect(u,P,1,S)-1;return b[N](m[N](P))}}t.scale.linear=function(){return Ua([0,1],[0,1],_i,!1)};function Ua(u,c,h,p){var m,b;function O(){var P=Math.min(u.length,c.length)>2?Jy:Zy,N=p?av:iv;return m=P(u,c,N,h),b=P(c,u,N,_i),S}function S(P){return m(P)}return S.invert=function(P){return b(P)},S.domain=function(P){return arguments.length?(u=P.map(Number),O()):u},S.range=function(P){return arguments.length?(c=P,O()):c},S.rangeRound=function(P){return S.range(P).interpolate(cs)},S.clamp=function(P){return arguments.length?(p=P,O()):p},S.interpolate=function(P){return arguments.length?(h=P,O()):h},S.ticks=function(P){return Uu(u,P)},S.tickFormat=function(P,N){return d3_scale_linearTickFormat(u,P,N)},S.nice=function(P){return ja(u,P),O()},S.copy=function(){return Ua(u,c,h,p)},O()}function Nc(u,c){return t.rebind(u,c,"range","rangeRound","interpolate","clamp")}function ja(u,c){return Wr(u,za(zu(u,c)[2])),Wr(u,za(zu(u,c)[2])),u}function zu(u,c){c==null&&(c=10);var h=vs(u),p=h[1]-h[0],m=Math.pow(10,Math.floor(Math.log(p/c)/Math.LN10)),b=c/p*m;return b<=.15?m*=10:b<=.35?m*=5:b<=.75&&(m*=2),h[0]=Math.ceil(h[0]/m)*m,h[1]=Math.floor(h[1]/m)*m+m*.5,h[2]=m,h}function Uu(u,c){return t.range.apply(t,zu(u,c))}t.scale.log=function(){return gs(t.scale.linear().domain([0,1]),10,!0,[1,10])};function gs(u,c,h,p){function m(S){return(h?Math.log(S<0?0:S):-Math.log(S>0?0:-S))/Math.log(c)}function b(S){return h?Math.pow(c,S):-Math.pow(c,-S)}function O(S){return u(m(S))}return O.invert=function(S){return b(u.invert(S))},O.domain=function(S){return arguments.length?(h=S[0]>=0,u.domain((p=S.map(Number)).map(m)),O):p},O.base=function(S){return arguments.length?(c=+S,u.domain(p.map(m)),O):c},O.nice=function(){var S=Wr(p.map(m),h?Math:Lc);return u.domain(S),p=S.map(b),O},O.ticks=function(){var S=vs(p),P=[],N=S[0],D=S[1],B=Math.floor(m(N)),z=Math.ceil(m(D)),ie=c%1?2:c;if(isFinite(z-B)){if(h){for(;B<z;B++)for(var oe=1;oe<ie;oe++)P.push(b(B)*oe);P.push(b(B))}else for(P.push(b(B));B++<z;)for(var oe=ie-1;oe>0;oe--)P.push(b(B)*oe);for(B=0;P[B]<N;B++);for(z=P.length;P[z-1]>D;z--);P=P.slice(B,z)}return P},O.copy=function(){return gs(u.copy(),c,h,p)},Nc(O,u)}var Lc={floor:function(u){return-Math.ceil(-u)},ceil:function(u){return-Math.floor(-u)}};t.scale.pow=function(){return ys(t.scale.linear(),1,[0,1])};function ys(u,c,h){var p=Ga(c),m=Ga(1/c);function b(O){return u(p(O))}return b.invert=function(O){return m(u.invert(O))},b.domain=function(O){return arguments.length?(u.domain((h=O.map(Number)).map(p)),b):h},b.ticks=function(O){return Uu(h,O)},b.tickFormat=function(O,S){return d3_scale_linearTickFormat(h,O,S)},b.nice=function(O){return b.domain(ja(h,O))},b.exponent=function(O){return arguments.length?(p=Ga(c=O),m=Ga(1/c),u.domain(h.map(p)),b):c},b.copy=function(){return ys(u.copy(),c,h)},Nc(b,u)}function Ga(u){return function(c){return c<0?-Math.pow(-c,u):Math.pow(c,u)}}t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return Dc([],{t:"range",a:[[]]})};function Dc(u,c){var h,p,m;function b(S){return p[((h.get(S)||(c.t==="range"?h.set(S,u.push(S)):NaN))-1)%p.length]}function O(S,P){return t.range(u.length).map(function(N){return S+P*N})}return b.domain=function(S){if(!arguments.length)return u;u=[],h=new F;for(var P=-1,N=S.length,D;++P<N;)h.has(D=S[P])||h.set(D,u.push(D));return b[c.t].apply(b,c.a)},b.range=function(S){return arguments.length?(p=S,m=0,c={t:"range",a:arguments},b):p},b.rangePoints=function(S,P){arguments.length<2&&(P=0);var N=S[0],D=S[1],B=u.length<2?(N=(N+D)/2,0):(D-N)/(u.length-1+P);return p=O(N+B*P/2,B),m=0,c={t:"rangePoints",a:arguments},b},b.rangeRoundPoints=function(S,P){arguments.length<2&&(P=0);var N=S[0],D=S[1],B=u.length<2?(N=D=Math.round((N+D)/2),0):(D-N)/(u.length-1+P)|0;return p=O(N+Math.round(B*P/2+(D-N-(u.length-1+P)*B)/2),B),m=0,c={t:"rangeRoundPoints",a:arguments},b},b.rangeBands=function(S,P,N){arguments.length<2&&(P=0),arguments.length<3&&(N=P);var D=S[1]<S[0],B=S[D-0],z=S[1-D],ie=(z-B)/(u.length-P+2*N);return p=O(B+ie*N,ie),D&&p.reverse(),m=ie*(1-P),c={t:"rangeBands",a:arguments},b},b.rangeRoundBands=function(S,P,N){arguments.length<2&&(P=0),arguments.length<3&&(N=P);var D=S[1]<S[0],B=S[D-0],z=S[1-D],ie=Math.floor((z-B)/(u.length-P+2*N));return p=O(B+Math.round((z-B-(u.length-P)*ie)/2),ie),D&&p.reverse(),m=Math.round(ie*(1-P)),c={t:"rangeRoundBands",a:arguments},b},b.rangeBand=function(){return m},b.rangeExtent=function(){return vs(c.a[0])},b.copy=function(){return Dc(u,c)},b.domain(u)}t.scale.category10=function(){return t.scale.ordinal().range(Av)},t.scale.category20=function(){return t.scale.ordinal().range(Tv)},t.scale.category20b=function(){return t.scale.ordinal().range(Cv)},t.scale.category20c=function(){return t.scale.ordinal().range(Ov)};var Av=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Zl),Tv=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Zl),Cv=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Zl),Ov=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Zl);t.scale.quantile=function(){return bs([],[])};function bs(u,c){var h;function p(){var b=0,O=c.length;for(h=[];++b<O;)h[b-1]=t.quantile(u,b/O);return m}function m(b){if(!isNaN(b=+b))return c[t.bisect(h,b)]}return m.domain=function(b){return arguments.length?(u=b.map(y).filter(E).sort(v),p()):u},m.range=function(b){return arguments.length?(c=b,p()):c},m.quantiles=function(){return h},m.invertExtent=function(b){return b=c.indexOf(b),b<0?[NaN,NaN]:[b>0?h[b-1]:u[0],b<h.length?h[b]:u[u.length-1]]},m.copy=function(){return bs(u,c)},p()}t.scale.quantize=function(){return xs(0,1,[0,1])};function xs(u,c,h){var p,m;function b(S){return h[Math.max(0,Math.min(m,Math.floor(p*(S-u))))]}function O(){return p=h.length/(c-u),m=h.length-1,b}return b.domain=function(S){return arguments.length?(u=+S[0],c=+S[S.length-1],O()):[u,c]},b.range=function(S){return arguments.length?(h=S,O()):h},b.invertExtent=function(S){return S=h.indexOf(S),S=S<0?NaN:S/p+u,[S,S+1/p]},b.copy=function(){return xs(u,c,h)},O()}t.scale.threshold=function(){return $c([.5],[0,1])};function $c(u,c){function h(p){if(p<=p)return c[t.bisect(u,p)]}return h.domain=function(p){return arguments.length?(u=p,h):u},h.range=function(p){return arguments.length?(c=p,h):c},h.invertExtent=function(p){return p=c.indexOf(p),[u[p-1],u[p]]},h.copy=function(){return $c(u,c)},h}t.scale.identity=function(){return Bc([0,1])};function Bc(u){function c(h){return+h}return c.invert=c,c.domain=c.range=function(h){return arguments.length?(u=h.map(c),c):u},c.ticks=function(h){return Uu(u,h)},c.tickFormat=function(h,p){return d3_scale_linearTickFormat(u,h,p)},c.copy=function(){return Bc(u)},c}t.svg={};function kv(){return 0}t.svg.arc=function(){var u=zc,c=Mv,h=kv,p=ju,m=Uc,b=ws,O=jc;function S(){var N=Math.max(0,+u.apply(this,arguments)),D=Math.max(0,+c.apply(this,arguments)),B=m.apply(this,arguments)-wi,z=b.apply(this,arguments)-wi,ie=Math.abs(z-B),oe=B>z?0:1;if(D<N&&(G=D,D=N,N=G),ie>=Cp)return P(D,oe)+(N?P(N,1-oe):"")+"Z";var G,X,J,ue,le=0,re=0,Pe,Ue,tt,je,at,vt,Wt,xt,Ut=[];if((ue=(+O.apply(this,arguments)||0)/2)&&(J=p===ju?Math.sqrt(N*N+D*D):+p.apply(this,arguments),oe||(re*=-1),D&&(re=kp(J/D*Math.sin(ue))),N&&(le=kp(J/N*Math.sin(ue)))),D){Pe=D*Math.cos(B+re),Ue=D*Math.sin(B+re),tt=D*Math.cos(z-re),je=D*Math.sin(z-re);var or=Math.abs(z-B-2*re)<=Di?0:1;if(re&&Gu(Pe,Ue,tt,je)===oe^or){var Rr=(B+z)/2;Pe=D*Math.cos(Rr),Ue=D*Math.sin(Rr),tt=je=null}}else Pe=Ue=0;if(N){at=N*Math.cos(z-le),vt=N*Math.sin(z-le),Wt=N*Math.cos(B+le),xt=N*Math.sin(B+le);var pr=Math.abs(B-z+2*le)<=Di?0:1;if(le&&Gu(at,vt,Wt,xt)===1-oe^pr){var rt=(B+z)/2;at=N*Math.cos(rt),vt=N*Math.sin(rt),Wt=xt=null}}else at=vt=0;if(ie>ar&&(G=Math.min(Math.abs(D-N)/2,+h.apply(this,arguments)))>.001){X=N<D^oe?0:1;var Ht=G,Xt=G;if(ie<Di){var ur=Wt==null?[at,vt]:tt==null?[Pe,Ue]:oc([Pe,Ue],[Wt,xt],[tt,je],[at,vt]),Ar=Pe-ur[0],zr=Ue-ur[1],Xr=tt-ur[0],vn=je-ur[1],En=1/Math.sin(Math.acos((Ar*Xr+zr*vn)/(Math.sqrt(Ar*Ar+zr*zr)*Math.sqrt(Xr*Xr+vn*vn)))/2),on=Math.sqrt(ur[0]*ur[0]+ur[1]*ur[1]);Xt=Math.min(G,(N-on)/(En-1)),Ht=Math.min(G,(D-on)/(En+1))}if(tt!=null){var In=To(Wt==null?[at,vt]:[Wt,xt],[Pe,Ue],D,Ht,oe),I=To([tt,je],[at,vt],D,Ht,oe);G===Ht?Ut.push("M",In[0],"A",Ht,",",Ht," 0 0,",X," ",In[1],"A",D,",",D," 0 ",1-oe^Gu(In[1][0],In[1][1],I[1][0],I[1][1]),",",oe," ",I[1],"A",Ht,",",Ht," 0 0,",X," ",I[0]):Ut.push("M",In[0],"A",Ht,",",Ht," 0 1,",X," ",I[0])}else Ut.push("M",Pe,",",Ue);if(Wt!=null){var H=To([Pe,Ue],[Wt,xt],N,-Xt,oe),Z=To([at,vt],tt==null?[Pe,Ue]:[tt,je],N,-Xt,oe);G===Xt?Ut.push("L",Z[0],"A",Xt,",",Xt," 0 0,",X," ",Z[1],"A",N,",",N," 0 ",oe^Gu(Z[1][0],Z[1][1],H[1][0],H[1][1]),",",1-oe," ",H[1],"A",Xt,",",Xt," 0 0,",X," ",H[0]):Ut.push("L",Z[0],"A",Xt,",",Xt," 0 0,",X," ",H[0])}else Ut.push("L",at,",",vt)}else Ut.push("M",Pe,",",Ue),tt!=null&&Ut.push("A",D,",",D," 0 ",or,",",oe," ",tt,",",je),Ut.push("L",at,",",vt),Wt!=null&&Ut.push("A",N,",",N," 0 ",pr,",",1-oe," ",Wt,",",xt);return Ut.push("Z"),Ut.join("")}function P(N,D){return"M0,"+N+"A"+N+","+N+" 0 1,"+D+" 0,"+-N+"A"+N+","+N+" 0 1,"+D+" 0,"+N}return S.innerRadius=function(N){return arguments.length?(u=gr(N),S):u},S.outerRadius=function(N){return arguments.length?(c=gr(N),S):c},S.cornerRadius=function(N){return arguments.length?(h=gr(N),S):h},S.padRadius=function(N){return arguments.length?(p=N==ju?ju:gr(N),S):p},S.startAngle=function(N){return arguments.length?(m=gr(N),S):m},S.endAngle=function(N){return arguments.length?(b=gr(N),S):b},S.padAngle=function(N){return arguments.length?(O=gr(N),S):O},S.centroid=function(){var N=(+u.apply(this,arguments)+ +c.apply(this,arguments))/2,D=(+m.apply(this,arguments)+ +b.apply(this,arguments))/2-wi;return[Math.cos(D)*N,Math.sin(D)*N]},S};var ju="auto";function zc(u){return u.innerRadius}function Mv(u){return u.outerRadius}function Uc(u){return u.startAngle}function ws(u){return u.endAngle}function jc(u){return u&&u.padAngle}function Gu(u,c,h,p){return(u-h)*c-(c-p)*u>0?0:1}function To(u,c,h,p,m){var b=u[0]-c[0],O=u[1]-c[1],S=(m?p:-p)/Math.sqrt(b*b+O*O),P=S*O,N=-S*b,D=u[0]+P,B=u[1]+N,z=c[0]+P,ie=c[1]+N,oe=(D+z)/2,G=(B+ie)/2,X=z-D,J=ie-B,ue=X*X+J*J,le=h-p,re=D*ie-z*B,Pe=(J<0?-1:1)*Math.sqrt(Math.max(0,le*le*ue-re*re)),Ue=(re*J-X*Pe)/ue,tt=(-re*X-J*Pe)/ue,je=(re*J+X*Pe)/ue,at=(-re*X+J*Pe)/ue,vt=Ue-oe,Wt=tt-G,xt=je-oe,Ut=at-G;return vt*vt+Wt*Wt>xt*xt+Ut*Ut&&(Ue=je,tt=at),[[Ue-P,tt-N],[Ue*h/le,tt*h/le]]}function Gc(){return!0}function Wc(u){var c=$i,h=Bi,p=Gc,m=Yn,b=m.key,O=.7;function S(P){var N=[],D=[],B=-1,z=P.length,ie,oe=gr(c),G=gr(h);function X(){N.push("M",m(u(D),O))}for(;++B<z;)p.call(this,ie=P[B],B)?D.push([+oe.call(this,ie,B),+G.call(this,ie,B)]):D.length&&(X(),D=[]);return D.length&&X(),N.length?N.join(""):null}return S.x=function(P){return arguments.length?(c=P,S):c},S.y=function(P){return arguments.length?(h=P,S):h},S.defined=function(P){return arguments.length?(p=P,S):p},S.interpolate=function(P){return arguments.length?(typeof P=="function"?b=m=P:b=(m=Wu.get(P)||Yn).key,S):b},S.tension=function(P){return arguments.length?(O=P,S):O},S}t.svg.line=function(){return Wc(nt)};var Wu=t.map({linear:Yn,"linear-closed":Hc,step:qc,"step-before":Hu,"step-after":Wa,basis:qu,"basis-open":Ss,"basis-closed":Co,bundle:Oo,cardinal:Gi,"cardinal-open":Rv,"cardinal-closed":_s,monotone:e1});Wu.forEach(function(u,c){c.key=u,c.closed=/-closed$/.test(u)});function Yn(u){return u.length>1?u.join("L"):u+"Z"}function Hc(u){return u.join("L")+"Z"}function qc(u){for(var c=0,h=u.length,p=u[0],m=[p[0],",",p[1]];++c<h;)m.push("H",(p[0]+(p=u[c])[0])/2,"V",p[1]);return h>1&&m.push("H",p[0]),m.join("")}function Hu(u){for(var c=0,h=u.length,p=u[0],m=[p[0],",",p[1]];++c<h;)m.push("V",(p=u[c])[1],"H",p[0]);return m.join("")}function Wa(u){for(var c=0,h=u.length,p=u[0],m=[p[0],",",p[1]];++c<h;)m.push("H",(p=u[c])[0],"V",p[1]);return m.join("")}function Rv(u,c){return u.length<4?Yn(u):u[1]+Ha(u.slice(1,-1),fa(u,c))}function _s(u,c){return u.length<3?Hc(u):u[0]+Ha((u.push(u[0]),u),fa([u[u.length-2]].concat(u,[u[1]]),c))}function Gi(u,c){return u.length<3?Yn(u):u[0]+Ha(u,fa(u,c))}function Ha(u,c){if(c.length<1||u.length!=c.length&&u.length!=c.length+2)return Yn(u);var h=u.length!=c.length,p="",m=u[0],b=u[1],O=c[0],S=O,P=1;if(h&&(p+="Q"+(b[0]-O[0]*2/3)+","+(b[1]-O[1]*2/3)+","+b[0]+","+b[1],m=u[1],P=2),c.length>1){S=c[1],b=u[P],P++,p+="C"+(m[0]+O[0])+","+(m[1]+O[1])+","+(b[0]-S[0])+","+(b[1]-S[1])+","+b[0]+","+b[1];for(var N=2;N<c.length;N++,P++)b=u[P],S=c[N],p+="S"+(b[0]-S[0])+","+(b[1]-S[1])+","+b[0]+","+b[1]}if(h){var D=u[P];p+="Q"+(b[0]+S[0]*2/3)+","+(b[1]+S[1]*2/3)+","+D[0]+","+D[1]}return p}function fa(u,c){for(var h=[],p=(1-c)/2,m,b=u[0],O=u[1],S=1,P=u.length;++S<P;)m=b,b=O,O=u[S],h.push([p*(O[0]-m[0]),p*(O[1]-m[1])]);return h}function qu(u){if(u.length<3)return Yn(u);var c=1,h=u.length,p=u[0],m=p[0],b=p[1],O=[m,m,m,(p=u[1])[0]],S=[b,b,b,p[1]],P=[m,",",b,"L",an(hi,O),",",an(hi,S)];for(u.push(u[h-1]);++c<=h;)p=u[c],O.shift(),O.push(p[0]),S.shift(),S.push(p[1]),Vu(P,O,S);return u.pop(),P.push("L",p),P.join("")}function Ss(u){if(u.length<4)return Yn(u);for(var c=[],h=-1,p=u.length,m,b=[0],O=[0];++h<3;)m=u[h],b.push(m[0]),O.push(m[1]);for(c.push(an(hi,b)+","+an(hi,O)),--h;++h<p;)m=u[h],b.shift(),b.push(m[0]),O.shift(),O.push(m[1]),Vu(c,b,O);return c.join("")}function Co(u){for(var c,h=-1,p=u.length,m=p+4,b,O=[],S=[];++h<4;)b=u[h%p],O.push(b[0]),S.push(b[1]);for(c=[an(hi,O),",",an(hi,S)],--h;++h<m;)b=u[h%p],O.shift(),O.push(b[0]),S.shift(),S.push(b[1]),Vu(c,O,S);return c.join("")}function Oo(u,c){var h=u.length-1;if(h)for(var p=u[0][0],m=u[0][1],b=u[h][0]-p,O=u[h][1]-m,S=-1,P,N;++S<=h;)P=u[S],N=S/h,P[0]=c*P[0]+(1-c)*(p+N*b),P[1]=c*P[1]+(1-c)*(m+N*O);return qu(u)}function an(u,c){return u[0]*c[0]+u[1]*c[1]+u[2]*c[2]+u[3]*c[3]}var Es=[0,2/3,1/3,0],As=[0,1/3,2/3,0],hi=[0,1/6,2/3,1/6];function Vu(u,c,h){u.push("C",an(Es,c),",",an(Es,h),",",an(As,c),",",an(As,h),",",an(hi,c),",",an(hi,h))}function Yu(u,c){return(c[1]-u[1])/(c[0]-u[0])}function ko(u){for(var c=0,h=u.length-1,p=[],m=u[0],b=u[1],O=p[0]=Yu(m,b);++c<h;)p[c]=(O+(O=Yu(m=b,b=u[c+1])))/2;return p[c]=O,p}function Mo(u){for(var c=[],h,p,m,b,O=ko(u),S=-1,P=u.length-1;++S<P;)h=Yu(u[S],u[S+1]),_(h)<ar?O[S]=O[S+1]=0:(p=O[S]/h,m=O[S+1]/h,b=p*p+m*m,b>9&&(b=h*3/Math.sqrt(b),O[S]=b*p,O[S+1]=b*m));for(S=-1;++S<=P;)b=(u[Math.min(P,S+1)][0]-u[Math.max(0,S-1)][0])/(6*(1+O[S]*O[S])),c.push([b||0,O[S]*b||0]);return c}function e1(u){return u.length<3?Yn(u):u[0]+Ha(u,Mo(u))}t.svg.line.radial=function(){var u=Wc(Pv);return u.radius=u.x,delete u.x,u.angle=u.y,delete u.y,u};function Pv(u){for(var c,h=-1,p=u.length,m,b;++h<p;)c=u[h],m=c[0],b=c[1]-wi,c[0]=m*Math.cos(b),c[1]=m*Math.sin(b);return u}function Vc(u){var c=$i,h=$i,p=0,m=Bi,b=Gc,O=Yn,S=O.key,P=O,N="L",D=.7;function B(z){var ie=[],oe=[],G=[],X=-1,J=z.length,ue,le=gr(c),re=gr(p),Pe=c===h?function(){return tt}:gr(h),Ue=p===m?function(){return je}:gr(m),tt,je;function at(){ie.push("M",O(u(G),D),N,P(u(oe.reverse()),D),"Z")}for(;++X<J;)b.call(this,ue=z[X],X)?(oe.push([tt=+le.call(this,ue,X),je=+re.call(this,ue,X)]),G.push([+Pe.call(this,ue,X),+Ue.call(this,ue,X)])):oe.length&&(at(),oe=[],G=[]);return oe.length&&at(),ie.length?ie.join(""):null}return B.x=function(z){return arguments.length?(c=h=z,B):h},B.x0=function(z){return arguments.length?(c=z,B):c},B.x1=function(z){return arguments.length?(h=z,B):h},B.y=function(z){return arguments.length?(p=m=z,B):m},B.y0=function(z){return arguments.length?(p=z,B):p},B.y1=function(z){return arguments.length?(m=z,B):m},B.defined=function(z){return arguments.length?(b=z,B):b},B.interpolate=function(z){return arguments.length?(typeof z=="function"?S=O=z:S=(O=Wu.get(z)||Yn).key,P=O.reverse||O,N=O.closed?"M":"L",B):S},B.tension=function(z){return arguments.length?(D=z,B):D},B}Hu.reverse=Wa,Wa.reverse=Hu,t.svg.area=function(){return Vc(nt)},t.svg.area.radial=function(){var u=Vc(Pv);return u.radius=u.x,delete u.x,u.innerRadius=u.x0,delete u.x0,u.outerRadius=u.x1,delete u.x1,u.angle=u.y,delete u.y,u.startAngle=u.y0,delete u.y0,u.endAngle=u.y1,delete u.y1,u};function Yc(u){return u.source}function Xc(u){return u.target}t.svg.chord=function(){var u=Yc,c=Xc,h=t1,p=Uc,m=ws;function b(D,B){var z=O(this,u,D,B),ie=O(this,c,D,B);return"M"+z.p0+P(z.r,z.p1,z.a1-z.a0)+(S(z,ie)?N(z.r,z.p1,z.r,z.p0):N(z.r,z.p1,ie.r,ie.p0)+P(ie.r,ie.p1,ie.a1-ie.a0)+N(ie.r,ie.p1,z.r,z.p0))+"Z"}function O(D,B,z,ie){var oe=B.call(D,z,ie),G=h.call(D,oe,ie),X=p.call(D,oe,ie)-wi,J=m.call(D,oe,ie)-wi;return{r:G,a0:X,a1:J,p0:[G*Math.cos(X),G*Math.sin(X)],p1:[G*Math.cos(J),G*Math.sin(J)]}}function S(D,B){return D.a0==B.a0&&D.a1==B.a1}function P(D,B,z){return"A"+D+","+D+" 0 "+ +(z>Di)+",1 "+B}function N(D,B,z,ie){return"Q 0,0 "+ie}return b.radius=function(D){return arguments.length?(h=gr(D),b):h},b.source=function(D){return arguments.length?(u=gr(D),b):u},b.target=function(D){return arguments.length?(c=gr(D),b):c},b.startAngle=function(D){return arguments.length?(p=gr(D),b):p},b.endAngle=function(D){return arguments.length?(m=gr(D),b):m},b};function t1(u){return u.radius}t.svg.diagonal=function(){var u=Yc,c=Xc,h=qa;function p(m,b){var O=u.call(this,m,b),S=c.call(this,m,b),P=(O.y+S.y)/2,N=[O,{x:O.x,y:P},{x:S.x,y:P},S];return N=N.map(h),"M"+N[0]+"C"+N[1]+" "+N[2]+" "+N[3]}return p.source=function(m){return arguments.length?(u=gr(m),p):u},p.target=function(m){return arguments.length?(c=gr(m),p):c},p.projection=function(m){return arguments.length?(h=m,p):h},p};function qa(u){return[u.x,u.y]}t.svg.diagonal.radial=function(){var u=t.svg.diagonal(),c=qa,h=u.projection;return u.projection=function(p){return arguments.length?h(Kc(c=p)):c},u};function Kc(u){return function(){var c=u.apply(this,arguments),h=c[0],p=c[1]-wi;return[h*Math.cos(p),h*Math.sin(p)]}}t.svg.symbol=function(){var u=n1,c=r1;function h(p,m){return(Fv.get(u.call(this,p,m))||Iv)(c.call(this,p,m))}return h.type=function(p){return arguments.length?(u=gr(p),h):u},h.size=function(p){return arguments.length?(c=gr(p),h):c},h};function r1(){return 64}function n1(){return"circle"}function Iv(u){var c=Math.sqrt(u/Di);return"M0,"+c+"A"+c+","+c+" 0 1,1 0,"+-c+"A"+c+","+c+" 0 1,1 0,"+c+"Z"}var Fv=t.map({circle:Iv,cross:function(u){var c=Math.sqrt(u/5)/2;return"M"+-3*c+","+-c+"H"+-c+"V"+-3*c+"H"+c+"V"+-c+"H"+3*c+"V"+c+"H"+c+"V"+3*c+"H"+-c+"V"+c+"H"+-3*c+"Z"},diamond:function(u){var c=Math.sqrt(u/(2*Nv)),h=c*Nv;return"M0,"+-c+"L"+h+",0 0,"+c+" "+-h+",0Z"},square:function(u){var c=Math.sqrt(u)/2;return"M"+-c+","+-c+"L"+c+","+-c+" "+c+","+c+" "+-c+","+c+"Z"},"triangle-down":function(u){var c=Math.sqrt(u/Ts),h=c*Ts/2;return"M0,"+h+"L"+c+","+-h+" "+-c+","+-h+"Z"},"triangle-up":function(u){var c=Math.sqrt(u/Ts),h=c*Ts/2;return"M0,"+-h+"L"+c+","+h+" "+-c+","+h+"Z"}});t.svg.symbolTypes=Fv.keys();var Ts=Math.sqrt(3),Nv=Math.tan(30*Op);Ce.transition=function(u){for(var c=Wi||++Os,h=Ku(u),p=[],m,b,O=Ro||{time:Date.now(),ease:wo,delay:0,duration:250},S=-1,P=this.length;++S<P;){p.push(m=[]);for(var N=this[S],D=-1,B=N.length;++D<B;)(b=N[D])&&Po(b,D,h,c,O),m.push(b)}return Xu(p,h,c)},Ce.interrupt=function(u){return this.each(u==null?Cs:Lv(Ku(u)))};var Cs=Lv(Ku());function Lv(u){return function(){var c,h,p;(c=this[u])&&(p=c[h=c.active])&&(p.timer.c=null,p.timer.t=NaN,--c.count?delete c[h]:delete this[u],c.active+=.5,p.event&&p.event.interrupt.call(this,this.__data__,p.index))}}function Xu(u,c,h){return qt(u,Br),u.namespace=c,u.id=h,u}var Br=[],Os=0,Wi,Ro;Br.call=Ce.call,Br.empty=Ce.empty,Br.node=Ce.node,Br.size=Ce.size,t.transition=function(u,c){return u&&u.transition?Wi?u.transition(c):u:t.selection().transition(u)},t.transition.prototype=Br,Br.select=function(u){var c=this.id,h=this.namespace,p=[],m,b,O;u=W(u);for(var S=-1,P=this.length;++S<P;){p.push(m=[]);for(var N=this[S],D=-1,B=N.length;++D<B;)(O=N[D])&&(b=u.call(O,O.__data__,D,S))?("__data__"in O&&(b.__data__=O.__data__),Po(b,D,h,c,O[h][c]),m.push(b)):m.push(null)}return Xu(p,h,c)},Br.selectAll=function(u){var c=this.id,h=this.namespace,p=[],m,b,O,S,P;u=ae(u);for(var N=-1,D=this.length;++N<D;)for(var B=this[N],z=-1,ie=B.length;++z<ie;)if(O=B[z]){P=O[h][c],b=u.call(O,O.__data__,z,N),p.push(m=[]);for(var oe=-1,G=b.length;++oe<G;)(S=b[oe])&&Po(S,oe,h,c,P),m.push(S)}return Xu(p,h,c)},Br.filter=function(u){var c=[],h,p,m;typeof u!="function"&&(u=Eu(u));for(var b=0,O=this.length;b<O;b++){c.push(h=[]);for(var p=this[b],S=0,P=p.length;S<P;S++)(m=p[S])&&u.call(m,m.__data__,S,b)&&h.push(m)}return Xu(c,this.namespace,this.id)},Br.tween=function(u,c){var h=this.id,p=this.namespace;return arguments.length<2?this.node()[p][h].tween.get(u):xi(this,c==null?function(m){m[p][h].tween.remove(u)}:function(m){m[p][h].tween.set(u,c)})};function ks(u,c,h,p){var m=u.id,b=u.namespace;return xi(u,typeof h=="function"?function(O,S,P){O[b][m].tween.set(c,p(h.call(O,O.__data__,S,P)))}:(h=p(h),function(O){O[b][m].tween.set(c,h)}))}Br.attr=function(u,c){if(arguments.length<2){for(c in u)this.attr(c,u[c]);return this}var h=u=="transform"?_c:_i,p=t.ns.qualify(u);function m(){this.removeAttribute(p)}function b(){this.removeAttributeNS(p.space,p.local)}function O(P){return P==null?m:(P+="",function(){var N=this.getAttribute(p),D;return N!==P&&(D=h(N,P),function(B){this.setAttribute(p,D(B))})})}function S(P){return P==null?b:(P+="",function(){var N=this.getAttributeNS(p.space,p.local),D;return N!==P&&(D=h(N,P),function(B){this.setAttributeNS(p.space,p.local,D(B))})})}return ks(this,"attr."+u,c,p.local?S:O)},Br.attrTween=function(u,c){var h=t.ns.qualify(u);function p(b,O){var S=c.call(this,b,O,this.getAttribute(h));return S&&function(P){this.setAttribute(h,S(P))}}function m(b,O){var S=c.call(this,b,O,this.getAttributeNS(h.space,h.local));return S&&function(P){this.setAttributeNS(h.space,h.local,S(P))}}return this.tween("attr."+u,h.local?m:p)},Br.style=function(u,c,h){var p=arguments.length;if(p<3){if(typeof u!="string"){p<2&&(c="");for(h in u)this.style(h,u[h],c);return this}h=""}function m(){this.style.removeProperty(u)}function b(O){return O==null?m:(O+="",function(){var S=o(this).getComputedStyle(this,null).getPropertyValue(u),P;return S!==O&&(P=_i(S,O),function(N){this.style.setProperty(u,P(N),h)})})}return ks(this,"style."+u,c,b)},Br.styleTween=function(u,c,h){arguments.length<3&&(h="");function p(m,b){var O=c.call(this,m,b,o(this).getComputedStyle(this,null).getPropertyValue(u));return O&&function(S){this.style.setProperty(u,O(S),h)}}return this.tween("style."+u,p)},Br.text=function(u){return ks(this,"text",u,Qc)};function Qc(u){return u==null&&(u=""),function(){this.textContent=u}}Br.remove=function(){var u=this.namespace;return this.each("end.transition",function(){var c;this[u].count<2&&(c=this.parentNode)&&c.removeChild(this)})},Br.ease=function(u){var c=this.id,h=this.namespace;return arguments.length<1?this.node()[h][c].ease:(typeof u!="function"&&(u=t.ease.apply(t,arguments)),xi(this,function(p){p[h][c].ease=u}))},Br.delay=function(u){var c=this.id,h=this.namespace;return arguments.length<1?this.node()[h][c].delay:xi(this,typeof u=="function"?function(p,m,b){p[h][c].delay=+u.call(p,p.__data__,m,b)}:(u=+u,function(p){p[h][c].delay=u}))},Br.duration=function(u){var c=this.id,h=this.namespace;return arguments.length<1?this.node()[h][c].duration:xi(this,typeof u=="function"?function(p,m,b){p[h][c].duration=Math.max(1,u.call(p,p.__data__,m,b))}:(u=Math.max(1,u),function(p){p[h][c].duration=u}))},Br.each=function(u,c){var h=this.id,p=this.namespace;if(arguments.length<2){var m=Ro,b=Wi;try{Wi=h,xi(this,function(O,S,P){Ro=O[p][h],u.call(O,O.__data__,S,P)})}finally{Ro=m,Wi=b}}else xi(this,function(O){var S=O[p][h];(S.event||(S.event=t.dispatch("start","end","interrupt"))).on(u,c)});return this},Br.transition=function(){for(var u=this.id,c=++Os,h=this.namespace,p=[],m,b,O,S,P=0,N=this.length;P<N;P++){p.push(m=[]);for(var b=this[P],D=0,B=b.length;D<B;D++)(O=b[D])&&(S=O[h][u],Po(O,D,h,c,{time:S.time,ease:S.ease,delay:S.delay+S.duration,duration:S.duration})),m.push(O)}return Xu(p,h,c)};function Ku(u){return u==null?"__transition__":"__transition_"+u+"__"}function Po(u,c,h,p,m){var b=u[h]||(u[h]={active:0,count:0}),O=b[p],S,P,N,D,B;function z(G){var X=O.delay;if(P.t=X+S,X<=G)return ie(G-X);P.c=ie}function ie(G){var X=b.active,J=b[X];J&&(J.timer.c=null,J.timer.t=NaN,--b.count,delete b[X],J.event&&J.event.interrupt.call(u,u.__data__,J.index));for(var ue in b)if(+ue<p){var le=b[ue];le.timer.c=null,le.timer.t=NaN,--b.count,delete b[ue]}P.c=oe,vo(function(){return P.c&&oe(G||1)&&(P.c=null,P.t=NaN),1},0,S),b.active=p,O.event&&O.event.start.call(u,u.__data__,c),B=[],O.tween.forEach(function(re,Pe){(Pe=Pe.call(u,u.__data__,c))&&B.push(Pe)}),D=O.ease,N=O.duration}function oe(G){for(var X=G/N,J=D(X),ue=B.length;ue>0;)B[--ue].call(u,J);if(X>=1)return O.event&&O.event.end.call(u,u.__data__,c),--b.count?delete b[p]:delete u[h],1}O||(S=m.time,P=vo(z,0,S),O=b[p]={tween:new F,time:S,timer:P,delay:m.delay,duration:m.duration,ease:m.ease,index:c},m=null,++b.count)}t.svg.axis=function(){var u=t.scale.linear(),c=Zc,h=6,p=6,m=3,b=[10],O=null,S;function P(N){N.each(function(){var D=t.select(this),B=this.__chart__||u,z=this.__chart__=u.copy(),ie=O??(z.ticks?z.ticks.apply(z,b):z.domain()),oe=S??(z.tickFormat?z.tickFormat.apply(z,b):nt),G=D.selectAll(".tick").data(ie,z),X=G.enter().insert("g",".domain").attr("class","tick").style("opacity",ar),J=t.transition(G.exit()).style("opacity",ar).remove(),ue=t.transition(G.order()).style("opacity",1),le=Math.max(h,0)+m,re,Pe=ms(z),Ue=D.selectAll(".domain").data([0]),tt=(Ue.enter().append("path").attr("class","domain"),t.transition(Ue));X.append("line"),X.append("text");var je=X.select("line"),at=ue.select("line"),vt=G.select("text").text(oe),Wt=X.select("text"),xt=ue.select("text"),Ut=c==="top"||c==="left"?-1:1,or,Rr,pr,rt;if(c==="bottom"||c==="top"?(re=eh,or="x",pr="y",Rr="x2",rt="y2",vt.attr("dy",Ut<0?"0em":".71em").style("text-anchor","middle"),tt.attr("d","M"+Pe[0]+","+Ut*p+"V0H"+Pe[1]+"V"+Ut*p)):(re=th,or="y",pr="x",Rr="y2",rt="x2",vt.attr("dy",".32em").style("text-anchor",Ut<0?"end":"start"),tt.attr("d","M"+Ut*p+","+Pe[0]+"H0V"+Pe[1]+"H"+Ut*p)),je.attr(rt,Ut*h),Wt.attr(pr,Ut*le),at.attr(Rr,0).attr(rt,Ut*h),xt.attr(or,0).attr(pr,Ut*le),z.rangeBand){var Ht=z,Xt=Ht.rangeBand()/2;B=z=function(ur){return Ht(ur)+Xt}}else B.rangeBand?B=z:J.call(re,z,B);X.call(re,B,z),ue.call(re,z,z)})}return P.scale=function(N){return arguments.length?(u=N,P):u},P.orient=function(N){return arguments.length?(c=N in Jc?N+"":Zc,P):c},P.ticks=function(){return arguments.length?(b=n(arguments),P):b},P.tickValues=function(N){return arguments.length?(O=N,P):O},P.tickFormat=function(N){return arguments.length?(S=N,P):S},P.tickSize=function(N){var D=arguments.length;return D?(h=+N,p=+arguments[D-1],P):h},P.innerTickSize=function(N){return arguments.length?(h=+N,P):h},P.outerTickSize=function(N){return arguments.length?(p=+N,P):p},P.tickPadding=function(N){return arguments.length?(m=+N,P):m},P.tickSubdivide=function(){return arguments.length&&P},P};var Zc="bottom",Jc={top:1,right:1,bottom:1,left:1};function eh(u,c,h){u.attr("transform",function(p){var m=c(p);return"translate("+(isFinite(m)?m:h(p))+",0)"})}function th(u,c,h){u.attr("transform",function(p){var m=c(p);return"translate(0,"+(isFinite(m)?m:h(p))+")"})}t.svg.brush=function(){var u=ct(D,"brushstart","brush","brushend"),c=null,h=null,p=[0,0],m=[0,0],b,O,S=!0,P=!0,N=Qu[0];function D(G){G.each(function(){var X=t.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",oe).on("touchstart.brush",oe),J=X.selectAll(".background").data([0]);J.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),X.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ue=X.selectAll(".resize").data(N,nt);ue.exit().remove(),ue.enter().append("g").attr("class",function(Ue){return"resize "+Ue}).style("cursor",function(Ue){return rh[Ue]}).append("rect").attr("x",function(Ue){return/[ew]$/.test(Ue)?-3:null}).attr("y",function(Ue){return/^[ns]/.test(Ue)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ue.style("display",D.empty()?"none":null);var le=t.transition(X),re=t.transition(J),Pe;c&&(Pe=ms(c),re.attr("x",Pe[0]).attr("width",Pe[1]-Pe[0]),z(le)),h&&(Pe=ms(h),re.attr("y",Pe[0]).attr("height",Pe[1]-Pe[0]),ie(le)),B(le)})}D.event=function(G){G.each(function(){var X=u.of(this,arguments),J={x:p,y:m,i:b,j:O},ue=this.__chart__||J;this.__chart__=J,Wi?t.select(this).transition().each("start.brush",function(){b=ue.i,O=ue.j,p=ue.x,m=ue.y,X({type:"brushstart"})}).tween("brush:brush",function(){var le=Pn(p,J.x),re=Pn(m,J.y);return b=O=null,function(Pe){p=J.x=le(Pe),m=J.y=re(Pe),X({type:"brush",mode:"resize"})}}).each("end.brush",function(){b=J.i,O=J.j,X({type:"brush",mode:"resize"}),X({type:"brushend"})}):(X({type:"brushstart"}),X({type:"brush",mode:"resize"}),X({type:"brushend"}))})};function B(G){G.selectAll(".resize").attr("transform",function(X){return"translate("+p[+/e$/.test(X)]+","+m[+/^s/.test(X)]+")"})}function z(G){G.select(".extent").attr("x",p[0]),G.selectAll(".extent,.n>rect,.s>rect").attr("width",p[1]-p[0])}function ie(G){G.select(".extent").attr("y",m[0]),G.selectAll(".extent,.e>rect,.w>rect").attr("height",m[1]-m[0])}function oe(){var G=this,X=t.select(t.event.target),J=u.of(G,arguments),ue=t.select(G),le=X.datum(),re=!/^(n|s)$/.test(le)&&c,Pe=!/^(e|w)$/.test(le)&&h,Ue=X.classed("extent"),tt=Yl(G),je,at=t.mouse(G),vt,Wt=t.select(o(G)).on("keydown.brush",or).on("keyup.brush",Rr);if(t.event.changedTouches?Wt.on("touchmove.brush",pr).on("touchend.brush",Ht):Wt.on("mousemove.brush",pr).on("mouseup.brush",Ht),ue.interrupt().selectAll("*").interrupt(),Ue)at[0]=p[0]-at[0],at[1]=m[0]-at[1];else if(le){var xt=+/w$/.test(le),Ut=+/^n/.test(le);vt=[p[1-xt]-at[0],m[1-Ut]-at[1]],at[0]=p[xt],at[1]=m[Ut]}else t.event.altKey&&(je=at.slice());ue.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",X.style("cursor")),J({type:"brushstart"}),pr();function or(){t.event.keyCode==32&&(Ue||(je=null,at[0]-=p[1],at[1]-=m[1],Ue=2),st())}function Rr(){t.event.keyCode==32&&Ue==2&&(at[0]+=p[1],at[1]+=m[1],Ue=0,st())}function pr(){var Xt=t.mouse(G),ur=!1;vt&&(Xt[0]+=vt[0],Xt[1]+=vt[1]),Ue||(t.event.altKey?(je||(je=[(p[0]+p[1])/2,(m[0]+m[1])/2]),at[0]=p[+(Xt[0]<je[0])],at[1]=m[+(Xt[1]<je[1])]):je=null),re&&rt(Xt,c,0)&&(z(ue),ur=!0),Pe&&rt(Xt,h,1)&&(ie(ue),ur=!0),ur&&(B(ue),J({type:"brush",mode:Ue?"move":"resize"}))}function rt(Xt,ur,Ar){var zr=ms(ur),Xr=zr[0],vn=zr[1],En=at[Ar],on=Ar?m:p,In=on[1]-on[0],I,H;if(Ue&&(Xr-=En,vn-=In+En),I=(Ar?P:S)?Math.max(Xr,Math.min(vn,Xt[Ar])):Xt[Ar],Ue?H=(I+=En)+In:(je&&(En=Math.max(Xr,Math.min(vn,2*je[Ar]-I))),En<I?(H=I,I=En):H=En),on[0]!=I||on[1]!=H)return Ar?O=null:b=null,on[0]=I,on[1]=H,!0}function Ht(){pr(),ue.style("pointer-events","all").selectAll(".resize").style("display",D.empty()?"none":null),t.select("body").style("cursor",null),Wt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),tt(),J({type:"brushend"})}}return D.x=function(G){return arguments.length?(c=G,N=Qu[!c<<1|!h],D):c},D.y=function(G){return arguments.length?(h=G,N=Qu[!c<<1|!h],D):h},D.clamp=function(G){return arguments.length?(c&&h?(S=!!G[0],P=!!G[1]):c?S=!!G:h&&(P=!!G),D):c&&h?[S,P]:c?S:h?P:null},D.extent=function(G){var X,J,ue,le,re;return arguments.length?(c&&(X=G[0],J=G[1],h&&(X=X[0],J=J[0]),b=[X,J],c.invert&&(X=c(X),J=c(J)),J<X&&(re=X,X=J,J=re),(X!=p[0]||J!=p[1])&&(p=[X,J])),h&&(ue=G[0],le=G[1],c&&(ue=ue[1],le=le[1]),O=[ue,le],h.invert&&(ue=h(ue),le=h(le)),le<ue&&(re=ue,ue=le,le=re),(ue!=m[0]||le!=m[1])&&(m=[ue,le])),D):(c&&(b?(X=b[0],J=b[1]):(X=p[0],J=p[1],c.invert&&(X=c.invert(X),J=c.invert(J)),J<X&&(re=X,X=J,J=re))),h&&(O?(ue=O[0],le=O[1]):(ue=m[0],le=m[1],h.invert&&(ue=h.invert(ue),le=h.invert(le)),le<ue&&(re=ue,ue=le,le=re))),c&&h?[[X,ue],[J,le]]:c?[X,J]:h&&[ue,le])},D.clear=function(){return D.empty()||(p=[0,0],m=[0,0],b=O=null),D},D.empty=function(){return!!c&&p[0]==p[1]||!!h&&m[0]==m[1]},t.rebind(D,u,"on")};var rh={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Qu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];t.text=ac(function(u){return u.responseText}),t.json=function(u,c){return es(u,"application/json",nh,c)};function nh(u){return JSON.parse(u.responseText)}t.html=function(u,c){return es(u,"text/html",ih,c)};function ih(u){var c=i.createRange();return c.selectNode(i.body),c.createContextualFragment(u.responseText)}t.xml=ac(function(u){return u.responseXML}),e.exports?e.exports=t:this.d3=t}).apply(self)})(X4);var lae=X4.exports,dx=new Date,px=new Date;function pn(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,l){var s=[],f;if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return s;do s.push(f=new Date(+a)),t(a,l),e(a);while(f<a&&a<o);return s},i.filter=function(a){return pn(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,l){if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););})},r&&(i.count=function(a,o){return dx.setTime(+a),px.setTime(+o),e(dx),e(px),Math.floor(r(dx,px))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?function(o){return n(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var Km=pn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Km.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?pn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):Km};const jO=Km;var GO=Km.range,Qm=1e3,Al=6e4,Zm=36e5,K4=864e5,Q4=6048e5,Z4=pn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Qm)},function(e,t){return(t-e)/Qm},function(e){return e.getUTCSeconds()});const WO=Z4;var HO=Z4.range,J4=pn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qm)},function(e,t){e.setTime(+e+t*Al)},function(e,t){return(t-e)/Al},function(e){return e.getMinutes()});const uY=J4;var lY=J4.range,eF=pn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qm-e.getMinutes()*Al)},function(e,t){e.setTime(+e+t*Zm)},function(e,t){return(t-e)/Zm},function(e){return e.getHours()});const sY=eF;var fY=eF.range,tF=pn(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Al)/K4},function(e){return e.getDate()-1});const vE=tF;var cY=tF.range;function jl(e){return pn(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Al)/Q4})}var Jm=jl(0),Ld=jl(1),rF=jl(2),nF=jl(3),Tl=jl(4),iF=jl(5),aF=jl(6),qO=Jm.range,hY=Ld.range,dY=rF.range,pY=nF.range,vY=Tl.range,mY=iF.range,gY=aF.range,oF=pn(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const yY=oF;var bY=oF.range,mE=pn(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});mE.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:pn(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};const Rf=mE;var xY=mE.range,uF=pn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Al)},function(e,t){return(t-e)/Al},function(e){return e.getUTCMinutes()});const wY=uF;var _Y=uF.range,lF=pn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Zm)},function(e,t){return(t-e)/Zm},function(e){return e.getUTCHours()});const SY=lF;var EY=lF.range,sF=pn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/K4},function(e){return e.getUTCDate()-1});const gE=sF;var AY=sF.range;function Gl(e){return pn(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/Q4})}var eg=Gl(0),Dd=Gl(1),fF=Gl(2),cF=Gl(3),Cl=Gl(4),hF=Gl(5),dF=Gl(6),VO=eg.range,TY=Dd.range,CY=fF.range,OY=cF.range,kY=Cl.range,MY=hF.range,RY=dF.range,pF=pn(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const PY=pF;var IY=pF.range,yE=pn(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});yE.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:pn(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};const Pf=yE;var FY=yE.range;const NY=Object.freeze(Object.defineProperty({__proto__:null,timeDay:vE,timeDays:cY,timeFriday:iF,timeFridays:mY,timeHour:sY,timeHours:fY,timeInterval:pn,timeMillisecond:jO,timeMilliseconds:GO,timeMinute:uY,timeMinutes:lY,timeMonday:Ld,timeMondays:hY,timeMonth:yY,timeMonths:bY,timeSaturday:aF,timeSaturdays:gY,timeSecond:WO,timeSeconds:HO,timeSunday:Jm,timeSundays:qO,timeThursday:Tl,timeThursdays:vY,timeTuesday:rF,timeTuesdays:dY,timeWednesday:nF,timeWednesdays:pY,timeWeek:Jm,timeWeeks:qO,timeYear:Rf,timeYears:xY,utcDay:gE,utcDays:AY,utcFriday:hF,utcFridays:MY,utcHour:SY,utcHours:EY,utcMillisecond:jO,utcMilliseconds:GO,utcMinute:wY,utcMinutes:_Y,utcMonday:Dd,utcMondays:TY,utcMonth:PY,utcMonths:IY,utcSaturday:dF,utcSaturdays:RY,utcSecond:WO,utcSeconds:HO,utcSunday:eg,utcSundays:VO,utcThursday:Cl,utcThursdays:kY,utcTuesday:fF,utcTuesdays:CY,utcWednesday:cF,utcWednesdays:OY,utcWeek:eg,utcWeeks:VO,utcYear:Pf,utcYears:FY},Symbol.toStringTag,{value:"Module"}));function vx(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function mx(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function wh(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function vF(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,f=_h(i),d=Sh(i),g=_h(a),v=Sh(a),y=_h(o),E=Sh(o),k=_h(l),x=Sh(l),w=_h(s),_=Sh(s),C={a:De,A:We,b:_t,B:He,c:null,d:JO,e:JO,f:iX,g:pX,G:mX,H:tX,I:rX,j:nX,L:mF,m:aX,M:oX,p:we,q:qe,Q:r5,s:n5,S:uX,u:lX,U:sX,V:fX,w:cX,W:hX,x:null,X:null,y:dX,Y:vX,Z:gX,"%":t5},T={a:st,A:Ke,b:ct,B:yt,c:null,d:e5,e:e5,f:wX,g:RX,G:IX,H:yX,I:bX,j:xX,L:yF,m:_X,M:SX,p:qt,q:Yt,Q:r5,s:n5,S:EX,u:AX,U:TX,V:CX,w:OX,W:kX,x:null,X:null,y:MX,Y:PX,Z:FX,"%":t5},F={a:ge,A:me,b:ke,B:Fe,c:Le,d:QO,e:QO,f:QY,g:KO,G:XO,H:ZO,I:ZO,j:VY,L:KY,m:qY,M:YY,p:te,q:HY,Q:JY,s:eX,S:XY,u:zY,U:UY,V:jY,w:BY,W:GY,x:ut,X:nt,y:KO,Y:XO,Z:WY,"%":ZY};C.x=L(r,C),C.X=L(n,C),C.c=L(t,C),T.x=L(r,T),T.X=L(n,T),T.c=L(t,T);function L(Qe,At){return function(Gt){var Ce=[],W=-1,ae=0,R=Qe.length,A,M,$;for(Gt instanceof Date||(Gt=new Date(+Gt));++W<R;)Qe.charCodeAt(W)===37&&(Ce.push(Qe.slice(ae,W)),(M=YO[A=Qe.charAt(++W)])!=null?A=Qe.charAt(++W):M=A==="e"?" ":"0",($=At[A])&&(A=$(Gt,M)),Ce.push(A),ae=W+1);return Ce.push(Qe.slice(ae,W)),Ce.join("")}}function V(Qe,At){return function(Gt){var Ce=wh(1900,void 0,1),W=j(Ce,Qe,Gt+="",0),ae,R;if(W!=Gt.length)return null;if("Q"in Ce)return new Date(Ce.Q);if("s"in Ce)return new Date(Ce.s*1e3+("L"in Ce?Ce.L:0));if(At&&!("Z"in Ce)&&(Ce.Z=0),"p"in Ce&&(Ce.H=Ce.H%12+Ce.p*12),Ce.m===void 0&&(Ce.m="q"in Ce?Ce.q:0),"V"in Ce){if(Ce.V<1||Ce.V>53)return null;"w"in Ce||(Ce.w=1),"Z"in Ce?(ae=mx(wh(Ce.y,0,1)),R=ae.getUTCDay(),ae=R>4||R===0?Dd.ceil(ae):Dd(ae),ae=gE.offset(ae,(Ce.V-1)*7),Ce.y=ae.getUTCFullYear(),Ce.m=ae.getUTCMonth(),Ce.d=ae.getUTCDate()+(Ce.w+6)%7):(ae=vx(wh(Ce.y,0,1)),R=ae.getDay(),ae=R>4||R===0?Ld.ceil(ae):Ld(ae),ae=vE.offset(ae,(Ce.V-1)*7),Ce.y=ae.getFullYear(),Ce.m=ae.getMonth(),Ce.d=ae.getDate()+(Ce.w+6)%7)}else("W"in Ce||"U"in Ce)&&("w"in Ce||(Ce.w="u"in Ce?Ce.u%7:"W"in Ce?1:0),R="Z"in Ce?mx(wh(Ce.y,0,1)).getUTCDay():vx(wh(Ce.y,0,1)).getDay(),Ce.m=0,Ce.d="W"in Ce?(Ce.w+6)%7+Ce.W*7-(R+5)%7:Ce.w+Ce.U*7-(R+6)%7);return"Z"in Ce?(Ce.H+=Ce.Z/100|0,Ce.M+=Ce.Z%100,mx(Ce)):vx(Ce)}}function j(Qe,At,Gt,Ce){for(var W=0,ae=At.length,R=Gt.length,A,M;W<ae;){if(Ce>=R)return-1;if(A=At.charCodeAt(W++),A===37){if(A=At.charAt(W++),M=F[A in YO?At.charAt(W++):A],!M||(Ce=M(Qe,Gt,Ce))<0)return-1}else if(A!=Gt.charCodeAt(Ce++))return-1}return Ce}function te(Qe,At,Gt){var Ce=f.exec(At.slice(Gt));return Ce?(Qe.p=d[Ce[0].toLowerCase()],Gt+Ce[0].length):-1}function ge(Qe,At,Gt){var Ce=y.exec(At.slice(Gt));return Ce?(Qe.w=E[Ce[0].toLowerCase()],Gt+Ce[0].length):-1}function me(Qe,At,Gt){var Ce=g.exec(At.slice(Gt));return Ce?(Qe.w=v[Ce[0].toLowerCase()],Gt+Ce[0].length):-1}function ke(Qe,At,Gt){var Ce=w.exec(At.slice(Gt));return Ce?(Qe.m=_[Ce[0].toLowerCase()],Gt+Ce[0].length):-1}function Fe(Qe,At,Gt){var Ce=k.exec(At.slice(Gt));return Ce?(Qe.m=x[Ce[0].toLowerCase()],Gt+Ce[0].length):-1}function Le(Qe,At,Gt){return j(Qe,t,At,Gt)}function ut(Qe,At,Gt){return j(Qe,r,At,Gt)}function nt(Qe,At,Gt){return j(Qe,n,At,Gt)}function De(Qe){return o[Qe.getDay()]}function We(Qe){return a[Qe.getDay()]}function _t(Qe){return s[Qe.getMonth()]}function He(Qe){return l[Qe.getMonth()]}function we(Qe){return i[+(Qe.getHours()>=12)]}function qe(Qe){return 1+~~(Qe.getMonth()/3)}function st(Qe){return o[Qe.getUTCDay()]}function Ke(Qe){return a[Qe.getUTCDay()]}function ct(Qe){return s[Qe.getUTCMonth()]}function yt(Qe){return l[Qe.getUTCMonth()]}function qt(Qe){return i[+(Qe.getUTCHours()>=12)]}function Yt(Qe){return 1+~~(Qe.getUTCMonth()/3)}return{format:function(Qe){var At=L(Qe+="",C);return At.toString=function(){return Qe},At},parse:function(Qe){var At=V(Qe+="",!1);return At.toString=function(){return Qe},At},utcFormat:function(Qe){var At=L(Qe+="",T);return At.toString=function(){return Qe},At},utcParse:function(Qe){var At=V(Qe+="",!0);return At.toString=function(){return Qe},At}}}var YO={"-":"",_:" ",0:"0"},Sn=/^\s*\d+/,LY=/^%/,DY=/[\\^$*+?|[\]().{}]/g;function br(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function $Y(e){return e.replace(DY,"\\$&")}function _h(e){return new RegExp("^(?:"+e.map($Y).join("|")+")","i")}function Sh(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function BY(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function zY(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function UY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function jY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function GY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function XO(e,t,r){var n=Sn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function KO(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function WY(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function HY(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function qY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function QO(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function VY(e,t,r){var n=Sn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function ZO(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function YY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function XY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function KY(e,t,r){var n=Sn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function QY(e,t,r){var n=Sn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function ZY(e,t,r){var n=LY.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function JY(e,t,r){var n=Sn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function eX(e,t,r){var n=Sn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function JO(e,t){return br(e.getDate(),t,2)}function tX(e,t){return br(e.getHours(),t,2)}function rX(e,t){return br(e.getHours()%12||12,t,2)}function nX(e,t){return br(1+vE.count(Rf(e),e),t,3)}function mF(e,t){return br(e.getMilliseconds(),t,3)}function iX(e,t){return mF(e,t)+"000"}function aX(e,t){return br(e.getMonth()+1,t,2)}function oX(e,t){return br(e.getMinutes(),t,2)}function uX(e,t){return br(e.getSeconds(),t,2)}function lX(e){var t=e.getDay();return t===0?7:t}function sX(e,t){return br(Jm.count(Rf(e)-1,e),t,2)}function gF(e){var t=e.getDay();return t>=4||t===0?Tl(e):Tl.ceil(e)}function fX(e,t){return e=gF(e),br(Tl.count(Rf(e),e)+(Rf(e).getDay()===4),t,2)}function cX(e){return e.getDay()}function hX(e,t){return br(Ld.count(Rf(e)-1,e),t,2)}function dX(e,t){return br(e.getFullYear()%100,t,2)}function pX(e,t){return e=gF(e),br(e.getFullYear()%100,t,2)}function vX(e,t){return br(e.getFullYear()%1e4,t,4)}function mX(e,t){var r=e.getDay();return e=r>=4||r===0?Tl(e):Tl.ceil(e),br(e.getFullYear()%1e4,t,4)}function gX(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+br(t/60|0,"0",2)+br(t%60,"0",2)}function e5(e,t){return br(e.getUTCDate(),t,2)}function yX(e,t){return br(e.getUTCHours(),t,2)}function bX(e,t){return br(e.getUTCHours()%12||12,t,2)}function xX(e,t){return br(1+gE.count(Pf(e),e),t,3)}function yF(e,t){return br(e.getUTCMilliseconds(),t,3)}function wX(e,t){return yF(e,t)+"000"}function _X(e,t){return br(e.getUTCMonth()+1,t,2)}function SX(e,t){return br(e.getUTCMinutes(),t,2)}function EX(e,t){return br(e.getUTCSeconds(),t,2)}function AX(e){var t=e.getUTCDay();return t===0?7:t}function TX(e,t){return br(eg.count(Pf(e)-1,e),t,2)}function bF(e){var t=e.getUTCDay();return t>=4||t===0?Cl(e):Cl.ceil(e)}function CX(e,t){return e=bF(e),br(Cl.count(Pf(e),e)+(Pf(e).getUTCDay()===4),t,2)}function OX(e){return e.getUTCDay()}function kX(e,t){return br(Dd.count(Pf(e)-1,e),t,2)}function MX(e,t){return br(e.getUTCFullYear()%100,t,2)}function RX(e,t){return e=bF(e),br(e.getUTCFullYear()%100,t,2)}function PX(e,t){return br(e.getUTCFullYear()%1e4,t,4)}function IX(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Cl(e):Cl.ceil(e),br(e.getUTCFullYear()%1e4,t,4)}function FX(){return"+0000"}function t5(){return"%"}function r5(e){return+e}function n5(e){return Math.floor(+e/1e3)}var Ls,xF,wF,bE,xE;_F({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function _F(e){return Ls=vF(e),xF=Ls.format,wF=Ls.parse,bE=Ls.utcFormat,xE=Ls.utcParse,Ls}var SF="%Y-%m-%dT%H:%M:%S.%LZ";function NX(e){return e.toISOString()}var LX=Date.prototype.toISOString?NX:bE(SF);const DX=LX;function $X(e){var t=new Date(e);return isNaN(t)?null:t}var BX=+new Date("2000-01-01T00:00:00.000Z")?$X:xE(SF);const zX=BX,UX=Object.freeze(Object.defineProperty({__proto__:null,isoFormat:DX,isoParse:zX,get timeFormat(){return xF},timeFormatDefaultLocale:_F,timeFormatLocale:vF,get timeParse(){return wF},get utcFormat(){return bE},get utcParse(){return xE}},Symbol.toStringTag,{value:"Module"})),sae=Rl(UX);function jX(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function tg(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function If(e){return e=tg(Math.abs(e)),e?e[1]:NaN}function GX(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),a.push(r.substring(i-=l,i+l)),!((s+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function WX(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var HX=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function rg(e){if(!(t=HX.exec(e)))throw new Error("invalid format: "+e);var t;return new Qg({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}rg.prototype=Qg.prototype;function Qg(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Qg.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function qX(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var EF;function VX(e,t){var r=tg(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(EF=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+tg(e,Math.max(0,t+a-1))[0]}function i5(e,t){var r=tg(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const a5={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:jX,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return i5(e*100,t)},r:i5,s:VX,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function o5(e){return e}var u5=Array.prototype.map,l5=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function AF(e){var t=e.grouping===void 0||e.thousands===void 0?o5:GX(u5.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?o5:WX(u5.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function f(g){g=rg(g);var v=g.fill,y=g.align,E=g.sign,k=g.symbol,x=g.zero,w=g.width,_=g.comma,C=g.precision,T=g.trim,F=g.type;F==="n"?(_=!0,F="g"):a5[F]||(C===void 0&&(C=12),T=!0,F="g"),(x||v==="0"&&y==="=")&&(x=!0,v="0",y="=");var L=k==="$"?r:k==="#"&&/[boxX]/.test(F)?"0"+F.toLowerCase():"",V=k==="$"?n:/[%p]/.test(F)?o:"",j=a5[F],te=/[defgprs%]/.test(F);C=C===void 0?6:/[gprs]/.test(F)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function ge(me){var ke=L,Fe=V,Le,ut,nt;if(F==="c")Fe=j(me)+Fe,me="";else{me=+me;var De=me<0||1/me<0;if(me=isNaN(me)?s:j(Math.abs(me),C),T&&(me=qX(me)),De&&+me==0&&E!=="+"&&(De=!1),ke=(De?E==="("?E:l:E==="-"||E==="("?"":E)+ke,Fe=(F==="s"?l5[8+EF/3]:"")+Fe+(De&&E==="("?")":""),te){for(Le=-1,ut=me.length;++Le<ut;)if(nt=me.charCodeAt(Le),48>nt||nt>57){Fe=(nt===46?i+me.slice(Le+1):me.slice(Le))+Fe,me=me.slice(0,Le);break}}}_&&!x&&(me=t(me,1/0));var We=ke.length+me.length+Fe.length,_t=We<w?new Array(w-We+1).join(v):"";switch(_&&x&&(me=t(_t+me,_t.length?w-Fe.length:1/0),_t=""),y){case"<":me=ke+me+Fe+_t;break;case"=":me=ke+_t+me+Fe;break;case"^":me=_t.slice(0,We=_t.length>>1)+ke+me+Fe+_t.slice(We);break;default:me=_t+ke+me+Fe;break}return a(me)}return ge.toString=function(){return g+""},ge}function d(g,v){var y=f((g=rg(g),g.type="f",g)),E=Math.max(-8,Math.min(8,Math.floor(If(v)/3)))*3,k=Math.pow(10,-E),x=l5[8+E/3];return function(w){return y(k*w)+x}}return{format:f,formatPrefix:d}}var m0,TF,CF;OF({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function OF(e){return m0=AF(e),TF=m0.format,CF=m0.formatPrefix,m0}function YX(e){return Math.max(0,-If(Math.abs(e)))}function XX(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(If(t)/3)))*3-If(Math.abs(e)))}function KX(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,If(t)-If(e))+1}const QX=Object.freeze(Object.defineProperty({__proto__:null,FormatSpecifier:Qg,get format(){return TF},formatDefaultLocale:OF,formatLocale:AF,get formatPrefix(){return CF},formatSpecifier:rg,precisionFixed:YX,precisionPrefix:XX,precisionRound:KX},Symbol.toStringTag,{value:"Module"})),fae=Rl(QX);var ZX=function(e){for(var t=e.length,r,n=0;n<t;n++)if(r=e.charCodeAt(n),(r<9||r>13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0},JX=ZX,cae=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&JX(r))return!1}else if(t!=="number")return!1;return e-e<1},kF={exports:{}};(function(e){(function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,l=t.max,s=t.random;function f(W,ae){if(W=W||"",ae=ae||{},W instanceof f)return W;if(!(this instanceof f))return new f(W,ae);var R=d(W);this._originalInput=W,this._r=R.r,this._g=R.g,this._b=R.b,this._a=R.a,this._roundA=a(100*this._a)/100,this._format=ae.format||R.format,this._gradientType=ae.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=R.ok,this._tc_id=i++}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var W=this.toRgb();return(W.r*299+W.g*587+W.b*114)/1e3},getLuminance:function(){var W=this.toRgb(),ae,R,A,M,$,fe;return ae=W.r/255,R=W.g/255,A=W.b/255,ae<=.03928?M=ae/12.92:M=t.pow((ae+.055)/1.055,2.4),R<=.03928?$=R/12.92:$=t.pow((R+.055)/1.055,2.4),A<=.03928?fe=A/12.92:fe=t.pow((A+.055)/1.055,2.4),.2126*M+.7152*$+.0722*fe},setAlpha:function(W){return this._a=_t(W),this._roundA=a(100*this._a)/100,this},toHsv:function(){var W=E(this._r,this._g,this._b);return{h:W.h*360,s:W.s,v:W.v,a:this._a}},toHsvString:function(){var W=E(this._r,this._g,this._b),ae=a(W.h*360),R=a(W.s*100),A=a(W.v*100);return this._a==1?"hsv("+ae+", "+R+"%, "+A+"%)":"hsva("+ae+", "+R+"%, "+A+"%, "+this._roundA+")"},toHsl:function(){var W=v(this._r,this._g,this._b);return{h:W.h*360,s:W.s,l:W.l,a:this._a}},toHslString:function(){var W=v(this._r,this._g,this._b),ae=a(W.h*360),R=a(W.s*100),A=a(W.l*100);return this._a==1?"hsl("+ae+", "+R+"%, "+A+"%)":"hsla("+ae+", "+R+"%, "+A+"%, "+this._roundA+")"},toHex:function(W){return x(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return w(this._r,this._g,this._b,this._a,W)},toHex8String:function(W){return"#"+this.toHex8(W)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(He(this._r,255)*100)+"%",g:a(He(this._g,255)*100)+"%",b:a(He(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(He(this._r,255)*100)+"%, "+a(He(this._g,255)*100)+"%, "+a(He(this._b,255)*100)+"%)":"rgba("+a(He(this._r,255)*100)+"%, "+a(He(this._g,255)*100)+"%, "+a(He(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:De[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(W){var ae="#"+_(this._r,this._g,this._b,this._a),R=ae,A=this._gradientType?"GradientType = 1, ":"";if(W){var M=f(W);R="#"+_(M._r,M._g,M._b,M._a)}return"progid:DXImageTransform.Microsoft.gradient("+A+"startColorstr="+ae+",endColorstr="+R+")"},toString:function(W){var ae=!!W;W=W||this._format;var R=!1,A=this._a<1&&this._a>=0,M=!ae&&A&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return M?W==="name"&&this._a===0?this.toName():this.toRgbString():(W==="rgb"&&(R=this.toRgbString()),W==="prgb"&&(R=this.toPercentageRgbString()),(W==="hex"||W==="hex6")&&(R=this.toHexString()),W==="hex3"&&(R=this.toHexString(!0)),W==="hex4"&&(R=this.toHex8String(!0)),W==="hex8"&&(R=this.toHex8String()),W==="name"&&(R=this.toName()),W==="hsl"&&(R=this.toHslString()),W==="hsv"&&(R=this.toHsvString()),R||this.toHexString())},clone:function(){return f(this.toString())},_applyModification:function(W,ae){var R=W.apply(null,[this].concat([].slice.call(ae)));return this._r=R._r,this._g=R._g,this._b=R._b,this.setAlpha(R._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(V,arguments)},darken:function(){return this._applyModification(j,arguments)},desaturate:function(){return this._applyModification(C,arguments)},saturate:function(){return this._applyModification(T,arguments)},greyscale:function(){return this._applyModification(F,arguments)},spin:function(){return this._applyModification(te,arguments)},_applyCombination:function(W,ae){return W.apply(null,[this].concat([].slice.call(ae)))},analogous:function(){return this._applyCombination(Le,arguments)},complement:function(){return this._applyCombination(ge,arguments)},monochromatic:function(){return this._applyCombination(ut,arguments)},splitcomplement:function(){return this._applyCombination(Fe,arguments)},triad:function(){return this._applyCombination(me,arguments)},tetrad:function(){return this._applyCombination(ke,arguments)}},f.fromRatio=function(W,ae){if(typeof W=="object"){var R={};for(var A in W)W.hasOwnProperty(A)&&(A==="a"?R[A]=W[A]:R[A]=yt(W[A]));W=R}return f(W,ae)};function d(W){var ae={r:0,g:0,b:0},R=1,A=null,M=null,$=null,fe=!1,Ie=!1;return typeof W=="string"&&(W=Gt(W)),typeof W=="object"&&(At(W.r)&&At(W.g)&&At(W.b)?(ae=g(W.r,W.g,W.b),fe=!0,Ie=String(W.r).substr(-1)==="%"?"prgb":"rgb"):At(W.h)&&At(W.s)&&At(W.v)?(A=yt(W.s),M=yt(W.v),ae=k(W.h,A,M),fe=!0,Ie="hsv"):At(W.h)&&At(W.s)&&At(W.l)&&(A=yt(W.s),$=yt(W.l),ae=y(W.h,A,$),fe=!0,Ie="hsl"),W.hasOwnProperty("a")&&(R=W.a)),R=_t(R),{ok:fe,format:W.format||Ie,r:o(255,l(ae.r,0)),g:o(255,l(ae.g,0)),b:o(255,l(ae.b,0)),a:R}}function g(W,ae,R){return{r:He(W,255)*255,g:He(ae,255)*255,b:He(R,255)*255}}function v(W,ae,R){W=He(W,255),ae=He(ae,255),R=He(R,255);var A=l(W,ae,R),M=o(W,ae,R),$,fe,Ie=(A+M)/2;if(A==M)$=fe=0;else{var ze=A-M;switch(fe=Ie>.5?ze/(2-A-M):ze/(A+M),A){case W:$=(ae-R)/ze+(ae<R?6:0);break;case ae:$=(R-W)/ze+2;break;case R:$=(W-ae)/ze+4;break}$/=6}return{h:$,s:fe,l:Ie}}function y(W,ae,R){var A,M,$;W=He(W,360),ae=He(ae,100),R=He(R,100);function fe(Qt,fr,ir){return ir<0&&(ir+=1),ir>1&&(ir-=1),ir<1/6?Qt+(fr-Qt)*6*ir:ir<1/2?fr:ir<2/3?Qt+(fr-Qt)*(2/3-ir)*6:Qt}if(ae===0)A=M=$=R;else{var Ie=R<.5?R*(1+ae):R+ae-R*ae,ze=2*R-Ie;A=fe(ze,Ie,W+1/3),M=fe(ze,Ie,W),$=fe(ze,Ie,W-1/3)}return{r:A*255,g:M*255,b:$*255}}function E(W,ae,R){W=He(W,255),ae=He(ae,255),R=He(R,255);var A=l(W,ae,R),M=o(W,ae,R),$,fe,Ie=A,ze=A-M;if(fe=A===0?0:ze/A,A==M)$=0;else{switch(A){case W:$=(ae-R)/ze+(ae<R?6:0);break;case ae:$=(R-W)/ze+2;break;case R:$=(W-ae)/ze+4;break}$/=6}return{h:$,s:fe,v:Ie}}function k(W,ae,R){W=He(W,360)*6,ae=He(ae,100),R=He(R,100);var A=t.floor(W),M=W-A,$=R*(1-ae),fe=R*(1-M*ae),Ie=R*(1-(1-M)*ae),ze=A%6,Qt=[R,fe,$,$,Ie,R][ze],fr=[Ie,R,R,fe,$,$][ze],ir=[$,$,Ie,R,R,fe][ze];return{r:Qt*255,g:fr*255,b:ir*255}}function x(W,ae,R,A){var M=[ct(a(W).toString(16)),ct(a(ae).toString(16)),ct(a(R).toString(16))];return A&&M[0].charAt(0)==M[0].charAt(1)&&M[1].charAt(0)==M[1].charAt(1)&&M[2].charAt(0)==M[2].charAt(1)?M[0].charAt(0)+M[1].charAt(0)+M[2].charAt(0):M.join("")}function w(W,ae,R,A,M){var $=[ct(a(W).toString(16)),ct(a(ae).toString(16)),ct(a(R).toString(16)),ct(qt(A))];return M&&$[0].charAt(0)==$[0].charAt(1)&&$[1].charAt(0)==$[1].charAt(1)&&$[2].charAt(0)==$[2].charAt(1)&&$[3].charAt(0)==$[3].charAt(1)?$[0].charAt(0)+$[1].charAt(0)+$[2].charAt(0)+$[3].charAt(0):$.join("")}function _(W,ae,R,A){var M=[ct(qt(A)),ct(a(W).toString(16)),ct(a(ae).toString(16)),ct(a(R).toString(16))];return M.join("")}f.equals=function(W,ae){return!W||!ae?!1:f(W).toRgbString()==f(ae).toRgbString()},f.random=function(){return f.fromRatio({r:s(),g:s(),b:s()})};function C(W,ae){ae=ae===0?0:ae||10;var R=f(W).toHsl();return R.s-=ae/100,R.s=we(R.s),f(R)}function T(W,ae){ae=ae===0?0:ae||10;var R=f(W).toHsl();return R.s+=ae/100,R.s=we(R.s),f(R)}function F(W){return f(W).desaturate(100)}function L(W,ae){ae=ae===0?0:ae||10;var R=f(W).toHsl();return R.l+=ae/100,R.l=we(R.l),f(R)}function V(W,ae){ae=ae===0?0:ae||10;var R=f(W).toRgb();return R.r=l(0,o(255,R.r-a(255*-(ae/100)))),R.g=l(0,o(255,R.g-a(255*-(ae/100)))),R.b=l(0,o(255,R.b-a(255*-(ae/100)))),f(R)}function j(W,ae){ae=ae===0?0:ae||10;var R=f(W).toHsl();return R.l-=ae/100,R.l=we(R.l),f(R)}function te(W,ae){var R=f(W).toHsl(),A=(R.h+ae)%360;return R.h=A<0?360+A:A,f(R)}function ge(W){var ae=f(W).toHsl();return ae.h=(ae.h+180)%360,f(ae)}function me(W){var ae=f(W).toHsl(),R=ae.h;return[f(W),f({h:(R+120)%360,s:ae.s,l:ae.l}),f({h:(R+240)%360,s:ae.s,l:ae.l})]}function ke(W){var ae=f(W).toHsl(),R=ae.h;return[f(W),f({h:(R+90)%360,s:ae.s,l:ae.l}),f({h:(R+180)%360,s:ae.s,l:ae.l}),f({h:(R+270)%360,s:ae.s,l:ae.l})]}function Fe(W){var ae=f(W).toHsl(),R=ae.h;return[f(W),f({h:(R+72)%360,s:ae.s,l:ae.l}),f({h:(R+216)%360,s:ae.s,l:ae.l})]}function Le(W,ae,R){ae=ae||6,R=R||30;var A=f(W).toHsl(),M=360/R,$=[f(W)];for(A.h=(A.h-(M*ae>>1)+720)%360;--ae;)A.h=(A.h+M)%360,$.push(f(A));return $}function ut(W,ae){ae=ae||6;for(var R=f(W).toHsv(),A=R.h,M=R.s,$=R.v,fe=[],Ie=1/ae;ae--;)fe.push(f({h:A,s:M,v:$})),$=($+Ie)%1;return fe}f.mix=function(W,ae,R){R=R===0?0:R||50;var A=f(W).toRgb(),M=f(ae).toRgb(),$=R/100,fe={r:(M.r-A.r)*$+A.r,g:(M.g-A.g)*$+A.g,b:(M.b-A.b)*$+A.b,a:(M.a-A.a)*$+A.a};return f(fe)},f.readability=function(W,ae){var R=f(W),A=f(ae);return(t.max(R.getLuminance(),A.getLuminance())+.05)/(t.min(R.getLuminance(),A.getLuminance())+.05)},f.isReadable=function(W,ae,R){var A=f.readability(W,ae),M,$;switch($=!1,M=Ce(R),M.level+M.size){case"AAsmall":case"AAAlarge":$=A>=4.5;break;case"AAlarge":$=A>=3;break;case"AAAsmall":$=A>=7;break}return $},f.mostReadable=function(W,ae,R){var A=null,M=0,$,fe,Ie,ze;R=R||{},fe=R.includeFallbackColors,Ie=R.level,ze=R.size;for(var Qt=0;Qt<ae.length;Qt++)$=f.readability(W,ae[Qt]),$>M&&(M=$,A=f(ae[Qt]));return f.isReadable(W,A,{level:Ie,size:ze})||!fe?A:(R.includeFallbackColors=!1,f.mostReadable(W,["#fff","#000"],R))};var nt=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},De=f.hexNames=We(nt);function We(W){var ae={};for(var R in W)W.hasOwnProperty(R)&&(ae[W[R]]=R);return ae}function _t(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function He(W,ae){st(W)&&(W="100%");var R=Ke(W);return W=o(ae,l(0,parseFloat(W))),R&&(W=parseInt(W*ae,10)/100),t.abs(W-ae)<1e-6?1:W%ae/parseFloat(ae)}function we(W){return o(1,l(0,W))}function qe(W){return parseInt(W,16)}function st(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function Ke(W){return typeof W=="string"&&W.indexOf("%")!=-1}function ct(W){return W.length==1?"0"+W:""+W}function yt(W){return W<=1&&(W=W*100+"%"),W}function qt(W){return t.round(parseFloat(W)*255).toString(16)}function Yt(W){return qe(W)/255}var Qe=function(){var W="[-\\+]?\\d+%?",ae="[-\\+]?\\d*\\.\\d+%?",R="(?:"+ae+")|(?:"+W+")",A="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",M="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?";return{CSS_UNIT:new RegExp(R),rgb:new RegExp("rgb"+A),rgba:new RegExp("rgba"+M),hsl:new RegExp("hsl"+A),hsla:new RegExp("hsla"+M),hsv:new RegExp("hsv"+A),hsva:new RegExp("hsva"+M),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function At(W){return!!Qe.CSS_UNIT.exec(W)}function Gt(W){W=W.replace(r,"").replace(n,"").toLowerCase();var ae=!1;if(nt[W])W=nt[W],ae=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var R;return(R=Qe.rgb.exec(W))?{r:R[1],g:R[2],b:R[3]}:(R=Qe.rgba.exec(W))?{r:R[1],g:R[2],b:R[3],a:R[4]}:(R=Qe.hsl.exec(W))?{h:R[1],s:R[2],l:R[3]}:(R=Qe.hsla.exec(W))?{h:R[1],s:R[2],l:R[3],a:R[4]}:(R=Qe.hsv.exec(W))?{h:R[1],s:R[2],v:R[3]}:(R=Qe.hsva.exec(W))?{h:R[1],s:R[2],v:R[3],a:R[4]}:(R=Qe.hex8.exec(W))?{r:qe(R[1]),g:qe(R[2]),b:qe(R[3]),a:Yt(R[4]),format:ae?"name":"hex8"}:(R=Qe.hex6.exec(W))?{r:qe(R[1]),g:qe(R[2]),b:qe(R[3]),format:ae?"name":"hex"}:(R=Qe.hex4.exec(W))?{r:qe(R[1]+""+R[1]),g:qe(R[2]+""+R[2]),b:qe(R[3]+""+R[3]),a:Yt(R[4]+""+R[4]),format:ae?"name":"hex8"}:(R=Qe.hex3.exec(W))?{r:qe(R[1]+""+R[1]),g:qe(R[2]+""+R[2]),b:qe(R[3]+""+R[3]),format:ae?"name":"hex"}:!1}function Ce(W){var ae,R;return W=W||{level:"AA",size:"small"},ae=(W.level||"AA").toUpperCase(),R=(W.size||"small").toLowerCase(),ae!=="AA"&&ae!=="AAA"&&(ae="AA"),R!=="small"&&R!=="large"&&(R="small"),{level:ae,size:R}}e.exports?e.exports=f:window.tinycolor=f})(Math)})(kF);var hae=kF.exports,eK=tK;function tK(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var rK=nK;function nK(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}var iK=aK;function aK(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var MF=oK;function oK(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var uK=lK;function lK(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}var sK=fK;function fK(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],l=t[5],s=t[6],f=t[7],d=t[8],g=t[9],v=t[10],y=t[11],E=t[12],k=t[13],x=t[14],w=t[15],_=r*l-n*o,C=r*s-i*o,T=r*f-a*o,F=n*s-i*l,L=n*f-a*l,V=i*f-a*s,j=d*k-g*E,te=d*x-v*E,ge=d*w-y*E,me=g*x-v*k,ke=g*w-y*k,Fe=v*w-y*x,Le=_*Fe-C*ke+T*me+F*ge-L*te+V*j;return Le?(Le=1/Le,e[0]=(l*Fe-s*ke+f*me)*Le,e[1]=(i*ke-n*Fe-a*me)*Le,e[2]=(k*V-x*L+w*F)*Le,e[3]=(v*L-g*V-y*F)*Le,e[4]=(s*ge-o*Fe-f*te)*Le,e[5]=(r*Fe-i*ge+a*te)*Le,e[6]=(x*T-E*V-w*C)*Le,e[7]=(d*V-v*T+y*C)*Le,e[8]=(o*ke-l*ge+f*j)*Le,e[9]=(n*ge-r*ke-a*j)*Le,e[10]=(E*L-k*T+w*_)*Le,e[11]=(g*T-d*L-y*_)*Le,e[12]=(l*te-o*me-s*j)*Le,e[13]=(r*me-n*te+i*j)*Le,e[14]=(k*C-E*F-x*_)*Le,e[15]=(d*F-g*C+v*_)*Le,e):null}var cK=hK;function hK(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],l=t[5],s=t[6],f=t[7],d=t[8],g=t[9],v=t[10],y=t[11],E=t[12],k=t[13],x=t[14],w=t[15];return e[0]=l*(v*w-y*x)-g*(s*w-f*x)+k*(s*y-f*v),e[1]=-(n*(v*w-y*x)-g*(i*w-a*x)+k*(i*y-a*v)),e[2]=n*(s*w-f*x)-l*(i*w-a*x)+k*(i*f-a*s),e[3]=-(n*(s*y-f*v)-l*(i*y-a*v)+g*(i*f-a*s)),e[4]=-(o*(v*w-y*x)-d*(s*w-f*x)+E*(s*y-f*v)),e[5]=r*(v*w-y*x)-d*(i*w-a*x)+E*(i*y-a*v),e[6]=-(r*(s*w-f*x)-o*(i*w-a*x)+E*(i*f-a*s)),e[7]=r*(s*y-f*v)-o*(i*y-a*v)+d*(i*f-a*s),e[8]=o*(g*w-y*k)-d*(l*w-f*k)+E*(l*y-f*g),e[9]=-(r*(g*w-y*k)-d*(n*w-a*k)+E*(n*y-a*g)),e[10]=r*(l*w-f*k)-o*(n*w-a*k)+E*(n*f-a*l),e[11]=-(r*(l*y-f*g)-o*(n*y-a*g)+d*(n*f-a*l)),e[12]=-(o*(g*x-v*k)-d*(l*x-s*k)+E*(l*v-s*g)),e[13]=r*(g*x-v*k)-d*(n*x-i*k)+E*(n*v-i*g),e[14]=-(r*(l*x-s*k)-o*(n*x-i*k)+E*(n*s-i*l)),e[15]=r*(l*v-s*g)-o*(n*v-i*g)+d*(n*s-i*l),e}var dK=pK;function pK(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],l=e[6],s=e[7],f=e[8],d=e[9],g=e[10],v=e[11],y=e[12],E=e[13],k=e[14],x=e[15],w=t*o-r*a,_=t*l-n*a,C=t*s-i*a,T=r*l-n*o,F=r*s-i*o,L=n*s-i*l,V=f*E-d*y,j=f*k-g*y,te=f*x-v*y,ge=d*k-g*E,me=d*x-v*E,ke=g*x-v*k;return w*ke-_*me+C*ge+T*te-F*j+L*V}var vK=mK;function mK(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],l=t[4],s=t[5],f=t[6],d=t[7],g=t[8],v=t[9],y=t[10],E=t[11],k=t[12],x=t[13],w=t[14],_=t[15],C=r[0],T=r[1],F=r[2],L=r[3];return e[0]=C*n+T*l+F*g+L*k,e[1]=C*i+T*s+F*v+L*x,e[2]=C*a+T*f+F*y+L*w,e[3]=C*o+T*d+F*E+L*_,C=r[4],T=r[5],F=r[6],L=r[7],e[4]=C*n+T*l+F*g+L*k,e[5]=C*i+T*s+F*v+L*x,e[6]=C*a+T*f+F*y+L*w,e[7]=C*o+T*d+F*E+L*_,C=r[8],T=r[9],F=r[10],L=r[11],e[8]=C*n+T*l+F*g+L*k,e[9]=C*i+T*s+F*v+L*x,e[10]=C*a+T*f+F*y+L*w,e[11]=C*o+T*d+F*E+L*_,C=r[12],T=r[13],F=r[14],L=r[15],e[12]=C*n+T*l+F*g+L*k,e[13]=C*i+T*s+F*v+L*x,e[14]=C*a+T*f+F*y+L*w,e[15]=C*o+T*d+F*E+L*_,e}var gK=yK;function yK(e,t,r){var n=r[0],i=r[1],a=r[2],o,l,s,f,d,g,v,y,E,k,x,w;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],l=t[1],s=t[2],f=t[3],d=t[4],g=t[5],v=t[6],y=t[7],E=t[8],k=t[9],x=t[10],w=t[11],e[0]=o,e[1]=l,e[2]=s,e[3]=f,e[4]=d,e[5]=g,e[6]=v,e[7]=y,e[8]=E,e[9]=k,e[10]=x,e[11]=w,e[12]=o*n+d*i+E*a+t[12],e[13]=l*n+g*i+k*a+t[13],e[14]=s*n+v*i+x*a+t[14],e[15]=f*n+y*i+w*a+t[15]),e}var bK=xK;function xK(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var wK=_K;function _K(e,t,r,n){var i=n[0],a=n[1],o=n[2],l=Math.sqrt(i*i+a*a+o*o),s,f,d,g,v,y,E,k,x,w,_,C,T,F,L,V,j,te,ge,me,ke,Fe,Le,ut;return Math.abs(l)<1e-6?null:(l=1/l,i*=l,a*=l,o*=l,s=Math.sin(r),f=Math.cos(r),d=1-f,g=t[0],v=t[1],y=t[2],E=t[3],k=t[4],x=t[5],w=t[6],_=t[7],C=t[8],T=t[9],F=t[10],L=t[11],V=i*i*d+f,j=a*i*d+o*s,te=o*i*d-a*s,ge=i*a*d-o*s,me=a*a*d+f,ke=o*a*d+i*s,Fe=i*o*d+a*s,Le=a*o*d-i*s,ut=o*o*d+f,e[0]=g*V+k*j+C*te,e[1]=v*V+x*j+T*te,e[2]=y*V+w*j+F*te,e[3]=E*V+_*j+L*te,e[4]=g*ge+k*me+C*ke,e[5]=v*ge+x*me+T*ke,e[6]=y*ge+w*me+F*ke,e[7]=E*ge+_*me+L*ke,e[8]=g*Fe+k*Le+C*ut,e[9]=v*Fe+x*Le+T*ut,e[10]=y*Fe+w*Le+F*ut,e[11]=E*Fe+_*Le+L*ut,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}var SK=EK;function EK(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],l=t[6],s=t[7],f=t[8],d=t[9],g=t[10],v=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+f*n,e[5]=o*i+d*n,e[6]=l*i+g*n,e[7]=s*i+v*n,e[8]=f*i-a*n,e[9]=d*i-o*n,e[10]=g*i-l*n,e[11]=v*i-s*n,e}var AK=TK;function TK(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],l=t[2],s=t[3],f=t[8],d=t[9],g=t[10],v=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-f*n,e[1]=o*i-d*n,e[2]=l*i-g*n,e[3]=s*i-v*n,e[8]=a*n+f*i,e[9]=o*n+d*i,e[10]=l*n+g*i,e[11]=s*n+v*i,e}var CK=OK;function OK(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],l=t[2],s=t[3],f=t[4],d=t[5],g=t[6],v=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+f*n,e[1]=o*i+d*n,e[2]=l*i+g*n,e[3]=s*i+v*n,e[4]=f*i-a*n,e[5]=d*i-o*n,e[6]=g*i-l*n,e[7]=v*i-s*n,e}var kK=MK;function MK(e,t,r){var n,i,a,o=r[0],l=r[1],s=r[2],f=Math.sqrt(o*o+l*l+s*s);return Math.abs(f)<1e-6?null:(f=1/f,o*=f,l*=f,s*=f,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=l*o*a+s*n,e[2]=s*o*a-l*n,e[3]=0,e[4]=o*l*a-s*n,e[5]=l*l*a+i,e[6]=s*l*a+o*n,e[7]=0,e[8]=o*s*a+l*n,e[9]=l*s*a-o*n,e[10]=s*s*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}var RK=PK;function PK(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],l=n+n,s=i+i,f=a+a,d=n*l,g=n*s,v=n*f,y=i*s,E=i*f,k=a*f,x=o*l,w=o*s,_=o*f;return e[0]=1-(y+k),e[1]=g+_,e[2]=v-w,e[3]=0,e[4]=g-_,e[5]=1-(d+k),e[6]=E+x,e[7]=0,e[8]=v+w,e[9]=E-x,e[10]=1-(d+y),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}var IK=FK;function FK(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var NK=LK;function LK(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}var DK=$K;function $K(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var BK=zK;function zK(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var UK=jK;function jK(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var GK=WK;function WK(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,l=n+n,s=i+i,f=r*o,d=n*o,g=n*l,v=i*o,y=i*l,E=i*s,k=a*o,x=a*l,w=a*s;return e[0]=1-g-E,e[1]=d+w,e[2]=v-x,e[3]=0,e[4]=d-w,e[5]=1-f-E,e[6]=y+k,e[7]=0,e[8]=v+x,e[9]=y-k,e[10]=1-f-g,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var HK=qK;function qK(e,t,r,n,i,a,o){var l=1/(r-t),s=1/(i-n),f=1/(a-o);return e[0]=a*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*s,e[6]=0,e[7]=0,e[8]=(r+t)*l,e[9]=(i+n)*s,e[10]=(o+a)*f,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*f,e[15]=0,e}var VK=YK;function YK(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}var XK=KK;function KK(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),s=2/(o+l),f=2/(i+a);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=f,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(i-a)*f*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}var QK=ZK;function ZK(e,t,r,n,i,a,o){var l=1/(t-r),s=1/(n-i),f=1/(a-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*f,e[11]=0,e[12]=(t+r)*l,e[13]=(i+n)*s,e[14]=(o+a)*f,e[15]=1,e}var JK=MF,eQ=tQ;function tQ(e,t,r,n){var i,a,o,l,s,f,d,g,v,y,E=t[0],k=t[1],x=t[2],w=n[0],_=n[1],C=n[2],T=r[0],F=r[1],L=r[2];return Math.abs(E-T)<1e-6&&Math.abs(k-F)<1e-6&&Math.abs(x-L)<1e-6?JK(e):(d=E-T,g=k-F,v=x-L,y=1/Math.sqrt(d*d+g*g+v*v),d*=y,g*=y,v*=y,i=_*v-C*g,a=C*d-w*v,o=w*g-_*d,y=Math.sqrt(i*i+a*a+o*o),y?(y=1/y,i*=y,a*=y,o*=y):(i=0,a=0,o=0),l=g*o-v*a,s=v*i-d*o,f=d*a-g*i,y=Math.sqrt(l*l+s*s+f*f),y?(y=1/y,l*=y,s*=y,f*=y):(l=0,s=0,f=0),e[0]=i,e[1]=l,e[2]=d,e[3]=0,e[4]=a,e[5]=s,e[6]=g,e[7]=0,e[8]=o,e[9]=f,e[10]=v,e[11]=0,e[12]=-(i*E+a*k+o*x),e[13]=-(l*E+s*k+f*x),e[14]=-(d*E+g*k+v*x),e[15]=1,e)}var rQ=nQ;function nQ(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}var dae={create:eK,clone:rK,copy:iK,identity:MF,transpose:uK,invert:sK,adjoint:cK,determinant:dK,multiply:vK,translate:gK,scale:bK,rotate:wK,rotateX:SK,rotateY:AK,rotateZ:CK,fromRotation:kK,fromRotationTranslation:RK,fromScaling:IK,fromTranslation:NK,fromXRotation:DK,fromYRotation:BK,fromZRotation:UK,fromQuat:GK,frustum:HK,perspective:VK,perspectiveFromFieldOfView:XK,ortho:QK,lookAt:eQ,str:rQ},Zg={exports:{}};Zg.exports=wE;Zg.exports.isMobile=wE;Zg.exports.default=wE;const iQ=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,aQ=/CrOS/,oQ=/android|ipad|playbook|silk/i;function wE(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=iQ.test(t)&&!aQ.test(t)||!!e.tablet&&oQ.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var pae=Zg.exports,uQ=!0,lQ=uQ,t2;typeof Jt.matchMedia=="function"?t2=!Jt.matchMedia("(hover: none)").matches:t2=lQ;var vae=t2,_E={exports:{}},mf=typeof Reflect=="object"?Reflect:null,s5=mf&&typeof mf.apply=="function"?mf.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},rm;mf&&typeof mf.ownKeys=="function"?rm=mf.ownKeys:Object.getOwnPropertySymbols?rm=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:rm=function(t){return Object.getOwnPropertyNames(t)};function sQ(e){console&&console.warn&&console.warn(e)}var RF=Number.isNaN||function(t){return t!==t};function Cr(){Cr.init.call(this)}_E.exports=Cr;_E.exports.once=dQ;Cr.EventEmitter=Cr;Cr.prototype._events=void 0;Cr.prototype._eventsCount=0;Cr.prototype._maxListeners=void 0;var f5=10;function Jg(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Cr,"defaultMaxListeners",{enumerable:!0,get:function(){return f5},set:function(e){if(typeof e!="number"||e<0||RF(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");f5=e}});Cr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Cr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||RF(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function PF(e){return e._maxListeners===void 0?Cr.defaultMaxListeners:e._maxListeners}Cr.prototype.getMaxListeners=function(){return PF(this)};Cr.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=a[t];if(s===void 0)return!1;if(typeof s=="function")s5(s,this,r);else for(var f=s.length,d=DF(s,f),n=0;n<f;++n)s5(d[n],this,r);return!0};function IF(e,t,r,n){var i,a,o;if(Jg(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),o===void 0)o=a[t]=r,++e._eventsCount;else if(typeof o=="function"?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),i=PF(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,sQ(l)}return e}Cr.prototype.addListener=function(t,r){return IF(this,t,r,!1)};Cr.prototype.on=Cr.prototype.addListener;Cr.prototype.prependListener=function(t,r){return IF(this,t,r,!0)};function fQ(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function FF(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=fQ.bind(n);return i.listener=r,n.wrapFn=i,i}Cr.prototype.once=function(t,r){return Jg(r),this.on(t,FF(this,t,r)),this};Cr.prototype.prependOnceListener=function(t,r){return Jg(r),this.prependListener(t,FF(this,t,r)),this};Cr.prototype.removeListener=function(t,r){var n,i,a,o,l;if(Jg(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){l=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():cQ(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,l||r)}return this};Cr.prototype.off=Cr.prototype.removeListener;Cr.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i<a.length;++i)o=a[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function NF(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?hQ(i):DF(i,i.length)}Cr.prototype.listeners=function(t){return NF(this,t,!0)};Cr.prototype.rawListeners=function(t){return NF(this,t,!1)};Cr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):LF.call(e,t)};Cr.prototype.listenerCount=LF;function LF(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Cr.prototype.eventNames=function(){return this._eventsCount>0?rm(this._events):[]};function DF(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function cQ(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function hQ(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function dQ(e,t){return new Promise(function(r,n){function i(o){e.removeListener(t,a),n(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}$F(e,t,a,{once:!0}),t!=="error"&&pQ(e,i,{once:!0})})}function pQ(e,t,r){typeof e.on=="function"&&$F(e,"error",t,r)}function $F(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(a){n.once&&e.removeEventListener(t,i),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var mae=_E.exports,BF=mQ,gx={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},vQ=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function mQ(e){var t=[];return e.replace(vQ,function(r,n,i){var a=n.toLowerCase();for(i=yQ(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==gx[a])return i.unshift(n),t.push(i);if(i.length<gx[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,gx[a])))}}),t}var gQ=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function yQ(e){var t=e.match(gQ);return t?t.map(Number):[]}var bQ={left:0,top:0},gae=xQ;function xQ(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=wQ(t);return r[0]=n-a.left,r[1]=i-a.top,r}function wQ(e){return e===window||e===document||e===document.body?bQ:e.getBoundingClientRect()}function _Q(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{e=!1}return e}var yae=_Q();function SQ(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}var EQ=SQ;function AQ(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],l=i[0],s=i[1],f=r[0],d=r[1];return(l-a)*(d-o)-(s-o)*(f-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],l=r[0]-n[0],s=i[1]-n[1],f=l*o+a*s;if(f<e)return!1;var d=o*o+s*s;return!(f-d>-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])<e},pointsSameY:function(r,n){return Math.abs(r[1]-n[1])<e},pointsSame:function(r,n){return t.pointsSameX(r,n)&&t.pointsSameY(r,n)},pointsCompare:function(r,n){return t.pointsSameX(r,n)?t.pointsSameY(r,n)?0:r[1]<n[1]?-1:1:r[0]<n[0]?-1:1},pointsCollinear:function(r,n,i){var a=r[0]-n[0],o=r[1]-n[1],l=n[0]-i[0],s=n[1]-i[1];return Math.abs(a*s-l*o)<e},linesIntersect:function(r,n,i,a){var o=n[0]-r[0],l=n[1]-r[1],s=a[0]-i[0],f=a[1]-i[1],d=o*f-l*s;if(Math.abs(d)<e)return!1;var g=r[0]-i[0],v=r[1]-i[1],y=(s*v-f*g)/d,E=(o*v-l*g)/d,k={alongA:0,alongB:0,pt:[r[0]+y*o,r[1]+y*l]};return y<=-e?k.alongA=-2:y<e?k.alongA=-1:y-1<=-e?k.alongA=0:y-1<e?k.alongA=1:k.alongA=2,E<=-e?k.alongB=-2:E<e?k.alongB=-1:E-1<=-e?k.alongB=0:E-1<e?k.alongB=1:k.alongB=2,k},pointInsideRegion:function(r,n){for(var i=r[0],a=r[1],o=n[n.length-1][0],l=n[n.length-1][1],s=!1,f=0;f<n.length;f++){var d=n[f][0],g=n[f][1];g-a>e!=l-a>e&&(o-d)*(a-g)/(l-g)+d-i>e&&(s=!s),o=d,l=g}return s}};return t}var TQ=AQ,CQ={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}},OQ=CQ,Eh=OQ;function kQ(e,t,r){function n(E,k){return{id:r?r.segmentId():-1,start:E,end:k,myFill:{above:null,below:null},otherFill:null}}function i(E,k,x){return{id:r?r.segmentId():-1,start:E,end:k,myFill:{above:x.myFill.above,below:x.myFill.below},otherFill:null}}var a=Eh.create();function o(E,k,x,w,_,C){var T=t.pointsCompare(k,_);return T!==0?T:t.pointsSame(x,C)?0:E!==w?E?1:-1:t.pointAboveOrOnLine(x,w?_:C,w?C:_)?1:-1}function l(E,k){a.insertBefore(E,function(x){var w=o(E.isStart,E.pt,k,x.isStart,x.pt,x.other.pt);return w<0})}function s(E,k){var x=Eh.node({isStart:!0,pt:E.start,seg:E,primary:k,other:null,status:null});return l(x,E.end),x}function f(E,k,x){var w=Eh.node({isStart:!1,pt:k.end,seg:k,primary:x,other:E,status:null});E.other=w,l(w,E.pt)}function d(E,k){var x=s(E,k);return f(x,E,k),x}function g(E,k){r&&r.segmentChop(E.seg,k),E.other.remove(),E.seg.end=k,E.other.pt=k,l(E.other,E.pt)}function v(E,k){var x=i(k,E.seg.end,E.seg);return g(E,k),d(x,E.primary)}function y(E,k){var x=Eh.create();function w(Le,ut){var nt=Le.seg.start,De=Le.seg.end,We=ut.seg.start,_t=ut.seg.end;return t.pointsCollinear(nt,We,_t)?t.pointsCollinear(De,We,_t)||t.pointAboveOrOnLine(De,We,_t)?1:-1:t.pointAboveOrOnLine(nt,We,_t)?1:-1}function _(Le){return x.findTransition(function(ut){var nt=w(Le,ut.ev);return nt>0})}function C(Le,ut){var nt=Le.seg,De=ut.seg,We=nt.start,_t=nt.end,He=De.start,we=De.end;r&&r.checkIntersection(nt,De);var qe=t.linesIntersect(We,_t,He,we);if(qe===!1){if(!t.pointsCollinear(We,_t,He)||t.pointsSame(We,we)||t.pointsSame(_t,He))return!1;var st=t.pointsSame(We,He),Ke=t.pointsSame(_t,we);if(st&&Ke)return ut;var ct=!st&&t.pointBetween(We,He,we),yt=!Ke&&t.pointBetween(_t,He,we);if(st)return yt?v(ut,_t):v(Le,we),ut;ct&&(Ke||(yt?v(ut,_t):v(Le,we)),v(ut,We))}else qe.alongA===0&&(qe.alongB===-1?v(Le,He):qe.alongB===0?v(Le,qe.pt):qe.alongB===1&&v(Le,we)),qe.alongB===0&&(qe.alongA===-1?v(ut,We):qe.alongA===0?v(ut,qe.pt):qe.alongA===1&&v(ut,_t));return!1}for(var T=[];!a.isEmpty();){var F=a.getHead();if(r&&r.vert(F.pt[0]),F.isStart){let Le=function(){if(V){var ut=C(F,V);if(ut)return ut}return j?C(F,j):!1};r&&r.segmentNew(F.seg,F.primary);var L=_(F),V=L.before?L.before.ev:null,j=L.after?L.after.ev:null;r&&r.tempStatus(F.seg,V?V.seg:!1,j?j.seg:!1);var te=Le();if(te){if(e){var ge;F.seg.myFill.below===null?ge=!0:ge=F.seg.myFill.above!==F.seg.myFill.below,ge&&(te.seg.myFill.above=!te.seg.myFill.above)}else te.seg.otherFill=F.seg.myFill;r&&r.segmentUpdate(te.seg),F.other.remove(),F.remove()}if(a.getHead()!==F){r&&r.rewind(F.seg);continue}if(e){var ge;F.seg.myFill.below===null?ge=!0:ge=F.seg.myFill.above!==F.seg.myFill.below,j?F.seg.myFill.below=j.seg.myFill.above:F.seg.myFill.below=E,ge?F.seg.myFill.above=!F.seg.myFill.below:F.seg.myFill.above=F.seg.myFill.below}else if(F.seg.otherFill===null){var me;j?F.primary===j.primary?me=j.seg.otherFill.above:me=j.seg.myFill.above:me=F.primary?k:E,F.seg.otherFill={above:me,below:me}}r&&r.status(F.seg,V?V.seg:!1,j?j.seg:!1),F.other.status=L.insert(Eh.node({ev:F}))}else{var ke=F.status;if(ke===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(x.exists(ke.prev)&&x.exists(ke.next)&&C(ke.prev.ev,ke.next.ev),r&&r.statusRemove(ke.ev.seg),ke.remove(),!F.primary){var Fe=F.seg.myFill;F.seg.myFill=F.seg.otherFill,F.seg.otherFill=Fe}T.push(F.seg)}a.getHead().remove()}return r&&r.done(),T}return e?{addRegion:function(E){for(var k,x=E[E.length-1],w=0;w<E.length;w++){k=x,x=E[w];var _=t.pointsCompare(k,x);_!==0&&d(n(_<0?k:x,_<0?x:k),!0)}},calculate:function(E){return y(E,!1)}}:{calculate:function(E,k,x,w){return E.forEach(function(_){d(i(_.start,_.end,_),!0)}),x.forEach(function(_){d(i(_.start,_.end,_),!1)}),y(k,w)}}}var MQ=kQ;function RQ(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,l=a.end;if(t.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var s={index:0,matches_head:!1,matches_pt1:!1},f={index:0,matches_head:!1,matches_pt1:!1},d=s;function g(ke,Fe,Le){return d.index=ke,d.matches_head=Fe,d.matches_pt1=Le,d===s?(d=f,!1):(d=null,!0)}for(var v=0;v<n.length;v++){var y=n[v],E=y[0];y[1];var k=y[y.length-1];if(y[y.length-2],t.pointsSame(E,o)){if(g(v,!0,!0))break}else if(t.pointsSame(E,l)){if(g(v,!0,!1))break}else if(t.pointsSame(k,o)){if(g(v,!1,!0))break}else if(t.pointsSame(k,l)&&g(v,!1,!1))break}if(d===s){n.push([o,l]),r&&r.chainNew(o,l);return}if(d===f){r&&r.chainMatch(s.index);var x=s.index,w=s.matches_pt1?l:o,_=s.matches_head,y=n[x],C=_?y[0]:y[y.length-1],T=_?y[1]:y[y.length-2],F=_?y[y.length-1]:y[0],L=_?y[y.length-2]:y[1];if(t.pointsCollinear(T,C,w)&&(_?(r&&r.chainRemoveHead(s.index,w),y.shift()):(r&&r.chainRemoveTail(s.index,w),y.pop()),C=T),t.pointsSame(F,w)){n.splice(x,1),t.pointsCollinear(L,F,C)&&(_?(r&&r.chainRemoveTail(s.index,C),y.pop()):(r&&r.chainRemoveHead(s.index,C),y.shift())),r&&r.chainClose(s.index),i.push(y);return}_?(r&&r.chainAddHead(s.index,w),y.unshift(w)):(r&&r.chainAddTail(s.index,w),y.push(w));return}function V(ke){r&&r.chainReverse(ke),n[ke].reverse()}function j(ke,Fe){var Le=n[ke],ut=n[Fe],nt=Le[Le.length-1],De=Le[Le.length-2],We=ut[0],_t=ut[1];t.pointsCollinear(De,nt,We)&&(r&&r.chainRemoveTail(ke,nt),Le.pop(),nt=De),t.pointsCollinear(nt,We,_t)&&(r&&r.chainRemoveHead(Fe,We),ut.shift()),r&&r.chainJoin(ke,Fe),n[ke]=Le.concat(ut),n.splice(Fe,1)}var te=s.index,ge=f.index;r&&r.chainConnect(te,ge);var me=n[te].length<n[ge].length;s.matches_head?f.matches_head?me?(V(te),j(te,ge)):(V(ge),j(ge,te)):j(ge,te):f.matches_head?j(te,ge):me?(V(te),j(ge,te)):(V(ge),j(te,ge))}),i}var PQ=RQ;function Ah(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var IQ={union:function(e,t){return Ah(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return Ah(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return Ah(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return Ah(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return Ah(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},FQ=IQ,NQ={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(f){var d=f.slice(0,f.length-1);return e.segments({inverted:!1,regions:[d]})}for(var l=o(a[0]),s=1;s<a.length;s++)l=e.selectDifference(e.combine(l,o(a[s])));return l}if(t.type==="Polygon")return e.polygon(r(t.coordinates));if(t.type==="MultiPolygon"){for(var n=e.segments({inverted:!1,regions:[]}),i=0;i<t.coordinates.length;i++)n=e.selectUnion(e.combine(n,r(t.coordinates[i])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,r){r=e.polygon(e.segments(r));function n(y,E){return t.pointInsideRegion([(y[0][0]+y[1][0])*.5,(y[0][1]+y[1][1])*.5],E)}function i(y){return{region:y,children:[]}}var a=i(null);function o(y,E){for(var k=0;k<y.children.length;k++){var x=y.children[k];if(n(E,x.region)){o(x,E);return}}for(var w=i(E),k=0;k<y.children.length;k++){var x=y.children[k];n(x.region,E)&&(w.children.push(x),y.children.splice(k,1),k--)}y.children.push(w)}for(var l=0;l<r.regions.length;l++){var s=r.regions[l];s.length<3||o(a,s)}function f(y,E){for(var k=0,x=y[y.length-1][0],w=y[y.length-1][1],_=[],C=0;C<y.length;C++){var T=y[C][0],F=y[C][1];_.push([T,F]),k+=F*x-T*w,x=T,w=F}var L=k<0;return L!==E&&_.reverse(),_.push([_[0][0],_[0][1]]),_}var d=[];function g(y){var E=[f(y.region,!1)];d.push(E);for(var k=0;k<y.children.length;k++)E.push(v(y.children[k]))}function v(y){for(var E=0;E<y.children.length;E++)g(y.children[E]);return f(y.region,!0)}for(var l=0;l<a.children.length;l++)g(a.children[l]);return d.length<=0?{type:"Polygon",coordinates:[]}:d.length==1?{type:"Polygon",coordinates:d[0]}:{type:"MultiPolygon",coordinates:d}}},LQ=NQ;/*
854
+ `)};function S(N){return N.map(P).join(u)}function P(N){return h.test(N)?'"'+N.replace(/\"/g,'""')+'"':N}return m},t.csv=t.dsv(",","text/csv"),t.tsv=t.dsv(" ","text/tab-separated-values");var ts,Ru,ui,rs,li=this[We(this,"requestAnimationFrame")]||function(u){setTimeout(u,17)};t.timer=function(){vo.apply(this,arguments)};function vo(u,c,h){var p=arguments.length;p<2&&(c=0),p<3&&(h=Date.now());var m=h+c,b={c:u,t:m,n:null};return Ru?Ru.n=b:ts=b,Ru=b,ui||(rs=clearTimeout(rs),ui=1,li(mo)),b}function mo(){var u=ua(),c=ns()-u;c>24?(isFinite(c)&&(clearTimeout(rs),rs=setTimeout(mo,c)),ui=0):(ui=1,li(mo))}t.timer.flush=function(){ua(),ns()};function ua(){for(var u=Date.now(),c=ts;c;)u>=c.t&&c.c(u-c.t)&&(c.c=null),c=c.n;return u}function ns(){for(var u,c=ts,h=1/0;c;)c.c?(c.t<h&&(h=c.t),c=(u=c).n):c=u?u.n=c.n:ts=c.n;return Ru=u,h}t.round=function(u,c){return c?Math.round(u*(c=Math.pow(10,c)))/c:Math.round(u)},t.geom={};function $i(u){return u[0]}function Bi(u){return u[1]}t.geom.hull=function(u){var c=$i,h=Bi;if(arguments.length)return p(u);function p(m){if(m.length<3)return[];var b=gr(c),O=gr(h),S,P=m.length,N=[],D=[];for(S=0;S<P;S++)N.push([+b.call(this,m[S],S),+O.call(this,m[S],S),S]);for(N.sort(Lp),S=0;S<P;S++)D.push([N[S][0],-N[S][1]]);var B=Pu(N),z=Pu(D),ie=z[0]===B[0],oe=z[z.length-1]===B[B.length-1],G=[];for(S=B.length-1;S>=0;--S)G.push(m[N[B[S]][2]]);for(S=+ie;S<z.length-oe;++S)G.push(m[N[z[S]][2]]);return G}return p.x=function(m){return arguments.length?(c=m,p):c},p.y=function(m){return arguments.length?(h=m,p):h},p};function Pu(u){for(var c=u.length,h=[0,1],p=2,m=2;m<c;m++){for(;p>1&&Sy(u[h[p-2]],u[h[p-1]],u[m])<=0;)--p;h[p++]=m}return h.slice(0,p)}function Lp(u,c){return u[0]-c[0]||u[1]-c[1]}t.geom.polygon=function(u){return qt(u,go),u};var go=t.geom.polygon.prototype=[];go.area=function(){for(var u=-1,c=this.length,h,p=this[c-1],m=0;++u<c;)h=p,p=this[u],m+=h[1]*p[0]-h[0]*p[1];return m*.5},go.centroid=function(u){var c=-1,h=this.length,p=0,m=0,b,O=this[h-1],S;for(arguments.length||(u=-1/(6*this.area()));++c<h;)b=O,O=this[c],S=b[0]*O[1]-O[0]*b[1],p+=(b[0]+O[0])*S,m+=(b[1]+O[1])*S;return[p*u,m*u]},go.clip=function(u){for(var c,h=Dp(u),p=-1,m=this.length-Dp(this),b,O,S=this[m-1],P,N,D;++p<m;){for(c=u.slice(),u.length=0,P=this[p],N=c[(O=c.length-h)-1],b=-1;++b<O;)D=c[b],is(D,S,P)?(is(N,S,P)||u.push(oc(N,D,S,P)),u.push(D)):is(N,S,P)&&u.push(oc(N,D,S,P)),N=D;h&&u.push(u[0]),S=P}return u};function is(u,c,h){return(h[0]-c[0])*(u[1]-c[1])<(h[1]-c[1])*(u[0]-c[0])}function oc(u,c,h,p){var m=u[0],b=h[0],O=c[0]-m,S=p[0]-b,P=u[1],N=h[1],D=c[1]-P,B=p[1]-N,z=(S*(P-N)-B*(m-b))/(B*O-S*D);return[m+z*O,P+z*D]}function Dp(u){var c=u[0],h=u[u.length-1];return!(c[0]-h[0]||c[1]-h[1])}var yo,Pa,la,Iu=[],Fu,Ia,Fa=[];function uc(){us(this),this.edge=this.site=this.circle=null}function as(u){var c=Iu.pop()||new uc;return c.site=u,c}function Nu(u){si(u),la.remove(u),Iu.push(u),us(u)}function lc(u){var c=u.circle,h=c.x,p=c.cy,m={x:h,y:p},b=u.P,O=u.N,S=[u];Nu(u);for(var P=b;P.circle&&_(h-P.circle.x)<ar&&_(p-P.circle.cy)<ar;)b=P.P,S.unshift(P),Nu(P),P=b;S.unshift(P),si(P);for(var N=O;N.circle&&_(h-N.circle.x)<ar&&_(p-N.circle.cy)<ar;)O=N.N,S.push(N),Nu(N),N=O;S.push(N),si(N);var D=S.length,B;for(B=1;B<D;++B)N=S[B],P=S[B-1],bo(N.edge,P.site,N.site,m);P=S[0],N=S[D-1],N.edge=Du(P.site,N.site,null,m),Na(P),Na(N)}function $p(u){for(var c=u.x,h=u.y,p,m,b,O,S=la._;S;)if(b=sc(S,h)-c,b>ar)S=S.L;else if(O=c-Bp(S,h),O>ar){if(!S.R){p=S;break}S=S.R}else{b>-ar?(p=S.P,m=S):O>-ar?(p=S,m=S.N):p=m=S;break}var P=as(u);if(la.insert(p,P),!(!p&&!m)){if(p===m){si(p),m=as(p.site),la.insert(P,m),P.edge=m.edge=Du(p.site,P.site),Na(p),Na(m);return}if(!m){P.edge=Du(p.site,P.site);return}si(p),si(m);var N=p.site,D=N.x,B=N.y,z=u.x-D,ie=u.y-B,oe=m.site,G=oe.x-D,X=oe.y-B,J=2*(z*X-ie*G),ue=z*z+ie*ie,le=G*G+X*X,re={x:(X*ue-ie*le)/J+D,y:(z*le-G*ue)/J+B};bo(m.edge,N,oe,re),P.edge=Du(N,u,null,re),m.edge=Du(u,oe,null,re),Na(p),Na(m)}}function sc(u,c){var h=u.site,p=h.x,m=h.y,b=m-c;if(!b)return p;var O=u.P;if(!O)return-1/0;h=O.site;var S=h.x,P=h.y,N=P-c;if(!N)return S;var D=S-p,B=1/b-1/N,z=D/N;return B?(-z+Math.sqrt(z*z-2*B*(D*D/(-2*N)-P+N/2+m-b/2)))/B+p:(p+S)/2}function Bp(u,c){var h=u.N;if(h)return sc(h,c);var p=u.site;return p.y===c?p.x:1/0}function fc(u){this.site=u,this.edges=[]}fc.prototype.prepare=function(){for(var u=this.edges,c=u.length,h;c--;)h=u[c].edge,(!h.b||!h.a)&&u.splice(c,1);return u.sort(cc),u.length};function zp(u){for(var c=u[0][0],h=u[1][0],p=u[0][1],m=u[1][1],b,O,S,P,N=Pa,D=N.length,B,z,ie,oe,G,X;D--;)if(B=N[D],!(!B||!B.prepare()))for(ie=B.edges,oe=ie.length,z=0;z<oe;)X=ie[z].end(),S=X.x,P=X.y,G=ie[++z%oe].start(),b=G.x,O=G.y,(_(S-b)>ar||_(P-O)>ar)&&(ie.splice(z,0,new os(Ty(B.site,X,_(S-c)<ar&&m-P>ar?{x:c,y:_(b-c)<ar?O:m}:_(P-m)<ar&&h-S>ar?{x:_(O-m)<ar?b:h,y:m}:_(S-h)<ar&&P-p>ar?{x:h,y:_(b-h)<ar?O:p}:_(P-p)<ar&&S-c>ar?{x:_(O-p)<ar?b:c,y:p}:null),B.site,null)),++oe)}function cc(u,c){return c.angle-u.angle}function Up(){us(this),this.x=this.y=this.arc=this.site=this.cy=null}function Na(u){var c=u.P,h=u.N;if(!(!c||!h)){var p=c.site,m=u.site,b=h.site;if(p!==b){var O=m.x,S=m.y,P=p.x-O,N=p.y-S,D=b.x-O,X=b.y-S,B=2*(P*X-N*D);if(!(B>=-Ap)){var z=P*P+N*N,ie=D*D+X*X,oe=(X*z-N*ie)/B,G=(P*ie-D*z)/B,X=G+S,J=Fa.pop()||new Up;J.arc=u,J.site=m,J.x=oe+O,J.y=X+Math.sqrt(oe*oe+G*G),J.cy=X,u.circle=J;for(var ue=null,le=Ia._;le;)if(J.y<le.y||J.y===le.y&&J.x<=le.x)if(le.L)le=le.L;else{ue=le.P;break}else if(le.R)le=le.R;else{ue=le;break}Ia.insert(ue,J),ue||(Fu=J)}}}}function si(u){var c=u.circle;c&&(c.P||(Fu=c.N),Ia.remove(c),Fa.push(c),us(c),u.circle=null)}function hc(u,c,h,p){return function(m){var b=m.a,O=m.b,S=b.x,P=b.y,N=O.x,D=O.y,B=0,z=1,ie=N-S,oe=D-P,G;if(G=u-S,!(!ie&&G>0)){if(G/=ie,ie<0){if(G<B)return;G<z&&(z=G)}else if(ie>0){if(G>z)return;G>B&&(B=G)}if(G=h-S,!(!ie&&G<0)){if(G/=ie,ie<0){if(G>z)return;G>B&&(B=G)}else if(ie>0){if(G<B)return;G<z&&(z=G)}if(G=c-P,!(!oe&&G>0)){if(G/=oe,oe<0){if(G<B)return;G<z&&(z=G)}else if(oe>0){if(G>z)return;G>B&&(B=G)}if(G=p-P,!(!oe&&G<0)){if(G/=oe,oe<0){if(G>z)return;G>B&&(B=G)}else if(oe>0){if(G<B)return;G<z&&(z=G)}return B>0&&(m.a={x:S+B*ie,y:P+B*oe}),z<1&&(m.b={x:S+z*ie,y:P+z*oe}),m}}}}}}function dc(u){for(var c=yo,h=hc(u[0][0],u[0][1],u[1][0],u[1][1]),p=c.length,m;p--;)m=c[p],(!Lu(m,u)||!h(m)||_(m.a.x-m.b.x)<ar&&_(m.a.y-m.b.y)<ar)&&(m.a=m.b=null,c.splice(p,1))}function Lu(u,c){var h=u.b;if(h)return!0;var p=u.a,m=c[0][0],b=c[1][0],O=c[0][1],S=c[1][1],P=u.l,N=u.r,D=P.x,B=P.y,z=N.x,ie=N.y,oe=(D+z)/2,G=(B+ie)/2,X,J;if(ie===B){if(oe<m||oe>=b)return;if(D>z){if(!p)p={x:oe,y:O};else if(p.y>=S)return;h={x:oe,y:S}}else{if(!p)p={x:oe,y:S};else if(p.y<O)return;h={x:oe,y:O}}}else if(X=(D-z)/(ie-B),J=G-X*oe,X<-1||X>1)if(D>z){if(!p)p={x:(O-J)/X,y:O};else if(p.y>=S)return;h={x:(S-J)/X,y:S}}else{if(!p)p={x:(S-J)/X,y:S};else if(p.y<O)return;h={x:(O-J)/X,y:O}}else if(B<ie){if(!p)p={x:m,y:X*m+J};else if(p.x>=b)return;h={x:b,y:X*b+J}}else{if(!p)p={x:b,y:X*b+J};else if(p.x<m)return;h={x:m,y:X*m+J}}return u.a=p,u.b=h,!0}function jp(u,c){this.l=u,this.r=c,this.a=this.b=null}function Du(u,c,h,p){var m=new jp(u,c);return yo.push(m),h&&bo(m,u,c,h),p&&bo(m,c,u,p),Pa[u.i].edges.push(new os(m,u,c)),Pa[c.i].edges.push(new os(m,c,u)),m}function Ty(u,c,h){var p=new jp(u,null);return p.a=c,p.b=h,yo.push(p),p}function bo(u,c,h,p){!u.a&&!u.b?(u.a=p,u.l=c,u.r=h):u.l===h?u.b=p:u.a=p}function os(u,c,h){var p=u.a,m=u.b;this.edge=u,this.site=c,this.angle=h?Math.atan2(h.y-c.y,h.x-c.x):u.l===c?Math.atan2(m.x-p.x,p.y-m.y):Math.atan2(p.x-m.x,m.y-p.y)}os.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}};function pc(){this._=null}function us(u){u.U=u.C=u.L=u.R=u.P=u.N=null}pc.prototype={insert:function(u,c){var h,p,m;if(u){if(c.P=u,c.N=u.N,u.N&&(u.N.P=c),u.N=c,u.R){for(u=u.R;u.L;)u=u.L;u.L=c}else u.R=c;h=u}else this._?(u=ls(this._),c.P=null,c.N=u,u.P=u.L=c,h=u):(c.P=c.N=null,this._=c,h=null);for(c.L=c.R=null,c.U=h,c.C=!0,u=c;h&&h.C;)p=h.U,h===p.L?(m=p.R,m&&m.C?(h.C=m.C=!1,p.C=!0,u=p):(u===h.R&&(La(this,h),u=h,h=u.U),h.C=!1,p.C=!0,$u(this,p))):(m=p.L,m&&m.C?(h.C=m.C=!1,p.C=!0,u=p):(u===h.L&&($u(this,h),u=h,h=u.U),h.C=!1,p.C=!0,La(this,p))),h=u.U;this._.C=!1},remove:function(u){u.N&&(u.N.P=u.P),u.P&&(u.P.N=u.N),u.N=u.P=null;var c=u.U,h,p=u.L,m=u.R,b,O;if(p?m?b=ls(m):b=p:b=m,c?c.L===u?c.L=b:c.R=b:this._=b,p&&m?(O=b.C,b.C=u.C,b.L=p,p.U=b,b!==m?(c=b.U,b.U=u.U,u=b.R,c.L=u,b.R=m,m.U=b):(b.U=c,c=b,u=b.R)):(O=u.C,u=b),u&&(u.U=c),!O){if(u&&u.C){u.C=!1;return}do{if(u===this._)break;if(u===c.L){if(h=c.R,h.C&&(h.C=!1,c.C=!0,La(this,c),h=c.R),h.L&&h.L.C||h.R&&h.R.C){(!h.R||!h.R.C)&&(h.L.C=!1,h.C=!0,$u(this,h),h=c.R),h.C=c.C,c.C=h.R.C=!1,La(this,c),u=this._;break}}else if(h=c.L,h.C&&(h.C=!1,c.C=!0,$u(this,c),h=c.L),h.L&&h.L.C||h.R&&h.R.C){(!h.L||!h.L.C)&&(h.R.C=!1,h.C=!0,La(this,h),h=c.L),h.C=c.C,c.C=h.L.C=!1,$u(this,c),u=this._;break}h.C=!0,u=c,c=c.U}while(!u.C);u&&(u.C=!1)}}};function La(u,c){var h=c,p=c.R,m=h.U;m?m.L===h?m.L=p:m.R=p:u._=p,p.U=m,h.U=p,h.R=p.L,h.R&&(h.R.U=h),p.L=h}function $u(u,c){var h=c,p=c.L,m=h.U;m?m.L===h?m.L=p:m.R=p:u._=p,p.U=m,h.U=p,h.L=p.R,h.L&&(h.L.U=h),p.R=h}function ls(u){for(;u.L;)u=u.L;return u}function ss(u,c){var h=u.sort(Gp).pop(),p,m,b;for(yo=[],Pa=new Array(u.length),la=new pc,Ia=new pc;;)if(b=Fu,h&&(!b||h.y<b.y||h.y===b.y&&h.x<b.x))(h.x!==p||h.y!==m)&&(Pa[h.i]=new fc(h),$p(h),p=h.x,m=h.y),h=u.pop();else if(b)lc(b.arc);else break;c&&(dc(c),zp(c));var O={cells:Pa,edges:yo};return la=Ia=yo=Pa=null,O}function Gp(u,c){return c.y-u.y||c.x-u.x}t.geom.voronoi=function(u){var c=$i,h=Bi,p=c,m=h,b=xo;if(u)return O(u);function O(P){var N=new Array(P.length),D=b[0][0],B=b[0][1],z=b[1][0],ie=b[1][1];return ss(S(P),b).cells.forEach(function(oe,G){var X=oe.edges,J=oe.site,ue=N[G]=X.length?X.map(function(le){var re=le.start();return[re.x,re.y]}):J.x>=D&&J.x<=z&&J.y>=B&&J.y<=ie?[[D,ie],[z,ie],[z,B],[D,B]]:[];ue.point=P[G]}),N}function S(P){return P.map(function(N,D){return{x:Math.round(p(N,D)/ar)*ar,y:Math.round(m(N,D)/ar)*ar,i:D}})}return O.links=function(P){return ss(S(P)).edges.filter(function(N){return N.l&&N.r}).map(function(N){return{source:P[N.l.i],target:P[N.r.i]}})},O.triangles=function(P){var N=[];return ss(S(P)).cells.forEach(function(D,B){for(var z=D.site,ie=D.edges.sort(cc),oe=-1,G=ie.length,X,J=ie[G-1].edge,ue=J.l===z?J.r:J.l;++oe<G;)X=ue,J=ie[oe].edge,ue=J.l===z?J.r:J.l,B<X.i&&B<ue.i&&Oy(z,X,ue)<0&&N.push([P[B],P[X.i],P[ue.i]])}),N},O.x=function(P){return arguments.length?(p=gr(c=P),O):c},O.y=function(P){return arguments.length?(m=gr(h=P),O):h},O.clipExtent=function(P){return arguments.length?(b=P??xo,O):b===xo?null:b},O.size=function(P){return arguments.length?O.clipExtent(P&&[[0,0],P]):b===xo?null:b&&b[1]},O};var xo=[[-1e6,-1e6],[1e6,1e6]];function Oy(u,c,h){return(u.x-h.x)*(c.y-u.y)-(u.x-c.x)*(h.y-u.y)}t.geom.delaunay=function(u){return t.geom.voronoi().triangles(u)},t.geom.quadtree=function(u,c,h,p,m){var b=$i,O=Bi,S;if(S=arguments.length)return b=fs,O=My,S===3&&(m=h,p=c,h=c=0),P(u);function P(N){var D,B=gr(b),z=gr(O),ie,oe,G,X,J,ue,le,re;if(c!=null)J=c,ue=h,le=p,re=m;else if(le=re=-(J=ue=1/0),ie=[],oe=[],X=N.length,S)for(G=0;G<X;++G)D=N[G],D.x<J&&(J=D.x),D.y<ue&&(ue=D.y),D.x>le&&(le=D.x),D.y>re&&(re=D.y),ie.push(D.x),oe.push(D.y);else for(G=0;G<X;++G){var Pe=+B(D=N[G],G),Ue=+z(D,G);Pe<J&&(J=Pe),Ue<ue&&(ue=Ue),Pe>le&&(le=Pe),Ue>re&&(re=Ue),ie.push(Pe),oe.push(Ue)}var tt=le-J,je=re-ue;tt>je?re=ue+tt:le=J+je;function at(xt,zt,or,Rr,pr,rt,Ht,Xt){if(!(isNaN(or)||isNaN(Rr)))if(xt.leaf){var ur=xt.x,Ar=xt.y;if(ur!=null)if(_(ur-or)+_(Ar-Rr)<.01)vt(xt,zt,or,Rr,pr,rt,Ht,Xt);else{var zr=xt.point;xt.x=xt.y=xt.point=null,vt(xt,zr,ur,Ar,pr,rt,Ht,Xt),vt(xt,zt,or,Rr,pr,rt,Ht,Xt)}else xt.x=or,xt.y=Rr,xt.point=zt}else vt(xt,zt,or,Rr,pr,rt,Ht,Xt)}function vt(xt,zt,or,Rr,pr,rt,Ht,Xt){var ur=(pr+Ht)*.5,Ar=(rt+Xt)*.5,zr=or>=ur,Xr=Rr>=Ar,vn=Xr<<1|zr;xt.leaf=!1,xt=xt.nodes[vn]||(xt.nodes[vn]=Wp()),zr?pr=ur:Ht=ur,Xr?rt=Ar:Xt=Ar,at(xt,zt,or,Rr,pr,rt,Ht,Xt)}var Wt=Wp();if(Wt.add=function(xt){at(Wt,xt,+B(xt,++G),+z(xt,G),J,ue,le,re)},Wt.visit=function(xt){Bu(xt,Wt,J,ue,le,re)},Wt.find=function(xt){return ky(Wt,xt[0],xt[1],J,ue,le,re)},G=-1,c==null){for(;++G<X;)at(Wt,N[G],ie[G],oe[G],J,ue,le,re);--G}else N.forEach(Wt.add);return ie=oe=N=D=null,Wt}return P.x=function(N){return arguments.length?(b=N,P):b},P.y=function(N){return arguments.length?(O=N,P):O},P.extent=function(N){return arguments.length?(N==null?c=h=p=m=null:(c=+N[0][0],h=+N[0][1],p=+N[1][0],m=+N[1][1]),P):c==null?null:[[c,h],[p,m]]},P.size=function(N){return arguments.length?(N==null?c=h=p=m=null:(c=h=0,p=+N[0],m=+N[1]),P):c==null?null:[p-c,m-h]},P};function fs(u){return u.x}function My(u){return u.y}function Wp(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function Bu(u,c,h,p,m,b){if(!u(c,h,p,m,b)){var O=(h+m)*.5,S=(p+b)*.5,P=c.nodes;P[0]&&Bu(u,P[0],h,p,O,S),P[1]&&Bu(u,P[1],O,p,m,S),P[2]&&Bu(u,P[2],h,S,O,b),P[3]&&Bu(u,P[3],O,S,m,b)}}function ky(u,c,h,p,m,b,O){var S=1/0,P;return function N(D,B,z,ie,oe){if(!(B>b||z>O||ie<p||oe<m)){if(G=D.point){var G,X=c-D.x,J=h-D.y,ue=X*X+J*J;if(ue<S){var le=Math.sqrt(S=ue);p=c-le,m=h-le,b=c+le,O=h+le,P=G}}for(var re=D.nodes,Pe=(B+ie)*.5,Ue=(z+oe)*.5,tt=c>=Pe,je=h>=Ue,at=je<<1|tt,vt=at+4;at<vt;++at)if(D=re[at&3])switch(at&3){case 0:N(D,B,z,Pe,Ue);break;case 1:N(D,Pe,z,ie,Ue);break;case 2:N(D,B,Ue,Pe,oe);break;case 3:N(D,Pe,Ue,ie,oe);break}}}(u,p,m,b,O),P}t.interpolateRgb=vc;function vc(u,c){u=t.rgb(u),c=t.rgb(c);var h=u.r,p=u.g,m=u.b,b=c.r-h,O=c.g-p,S=c.b-m;return function(P){return"#"+ho(Math.round(h+b*P))+ho(Math.round(p+O*P))+ho(Math.round(m+S*P))}}t.interpolateObject=Hp;function Hp(u,c){var h={},p={},m;for(m in u)m in c?h[m]=_i(u[m],c[m]):p[m]=u[m];for(m in c)m in u||(p[m]=c[m]);return function(b){for(m in h)p[m]=h[m](b);return p}}t.interpolateNumber=zi;function zi(u,c){return u=+u,c=+c,function(h){return u*(1-h)+c*h}}t.interpolateString=mc;function mc(u,c){var h=Da.lastIndex=gc.lastIndex=0,p,m,b,O=-1,S=[],P=[];for(u=u+"",c=c+"";(p=Da.exec(u))&&(m=gc.exec(c));)(b=m.index)>h&&(b=c.slice(h,b),S[O]?S[O]+=b:S[++O]=b),(p=p[0])===(m=m[0])?S[O]?S[O]+=m:S[++O]=m:(S[++O]=null,P.push({i:O,x:zi(p,m)})),h=gc.lastIndex;return h<c.length&&(b=c.slice(h),S[O]?S[O]+=b:S[++O]=b),S.length<2?P[0]?(c=P[0].x,function(N){return c(N)+""}):function(){return c}:(c=P.length,function(N){for(var D=0,B;D<c;++D)S[(B=P[D]).i]=B.x(N);return S.join("")})}var Da=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gc=new RegExp(Da.source,"g");t.interpolate=_i;function _i(u,c){for(var h=t.interpolators.length,p;--h>=0&&!(p=t.interpolators[h](u,c)););return p}t.interpolators=[function(u,c){var h=typeof c;return(h==="string"?po.has(c.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(c)?vc:mc:c instanceof ia?vc:Array.isArray(c)?Pn:h==="object"&&isNaN(c)?Hp:zi)(u,c)}],t.interpolateArray=Pn;function Pn(u,c){var h=[],p=[],m=u.length,b=c.length,O=Math.min(u.length,c.length),S;for(S=0;S<O;++S)h.push(_i(u[S],c[S]));for(;S<m;++S)p[S]=u[S];for(;S<b;++S)p[S]=c[S];return function(P){for(S=0;S<O;++S)p[S]=h[S](P);return p}}var $a=function(){return nt},qp=t.map({linear:$a,poly:Jr,quad:function(){return Xp},cubic:function(){return Ry},sin:function(){return Kp},exp:function(){return Qp},circle:function(){return Ba},elastic:Zp,back:Jp,bounce:function(){return Py}}),Vp=t.map({in:nt,out:yc,"in-out":bc,"out-in":function(u){return bc(yc(u))}});t.ease=function(u){var c=u.indexOf("-"),h=c>=0?u.slice(0,c):u,p=c>=0?u.slice(c+1):"in";return h=qp.get(h)||$a,p=Vp.get(p)||nt,Yp(p(h.apply(null,r.call(arguments,1))))};function Yp(u){return function(c){return c<=0?0:c>=1?1:u(c)}}function yc(u){return function(c){return 1-u(1-c)}}function bc(u){return function(c){return .5*(c<.5?u(2*c):2-u(2-2*c))}}function Xp(u){return u*u}function Ry(u){return u*u*u}function wo(u){if(u<=0)return 0;if(u>=1)return 1;var c=u*u,h=c*u;return 4*(u<.5?h:3*(u-c)+h-.75)}function Jr(u){return function(c){return Math.pow(c,u)}}function Kp(u){return 1-Math.cos(u*wi)}function Qp(u){return Math.pow(2,10*(u-1))}function Ba(u){return 1-Math.sqrt(1-u*u)}function Zp(u,c){var h;return arguments.length<2&&(c=.45),arguments.length?h=c/co*Math.asin(1/u):(u=1,h=c/4),function(p){return 1+u*Math.pow(2,-10*p)*Math.sin((p-h)*co/c)}}function Jp(u){return u||(u=1.70158),function(c){return c*c*((u+1)*c-u)}}function Py(u){return u<1/2.75?7.5625*u*u:u<2/2.75?7.5625*(u-=1.5/2.75)*u+.75:u<2.5/2.75?7.5625*(u-=2.25/2.75)*u+.9375:7.5625*(u-=2.625/2.75)*u+.984375}t.interpolateHcl=Iy;function Iy(u,c){u=t.hcl(u),c=t.hcl(c);var h=u.h,p=u.c,m=u.l,b=c.h-h,O=c.c-p,S=c.l-m;return isNaN(O)&&(O=0,p=isNaN(p)?c.c:p),isNaN(b)?(b=0,h=isNaN(h)?c.h:h):b>180?b-=360:b<-180&&(b+=360),function(P){return ku(h+b*P,p+O*P,m+S*P)+""}}t.interpolateHsl=Fy;function Fy(u,c){u=t.hsl(u),c=t.hsl(c);var h=u.h,p=u.s,m=u.l,b=c.h-h,O=c.s-p,S=c.l-m;return isNaN(O)&&(O=0,p=isNaN(p)?c.s:p),isNaN(b)?(b=0,h=isNaN(h)?c.h:h):b>180?b-=360:b<-180&&(b+=360),function(P){return Ql(h+b*P,p+O*P,m+S*P)+""}}t.interpolateLab=Ny;function Ny(u,c){u=t.lab(u),c=t.lab(c);var h=u.l,p=u.a,m=u.b,b=c.l-h,O=c.a-p,S=c.b-m;return function(P){return Pp(h+b*P,p+O*P,m+S*P)+""}}t.interpolateRound=cs;function cs(u,c){return c-=u,function(h){return Math.round(u+c*h)}}t.transform=function(u){var c=i.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(h){if(h!=null){c.setAttribute("transform",h);var p=c.transform.baseVal.consolidate()}return new xc(p?p.matrix:Ly)})(u)};function xc(u){var c=[u.a,u.b],h=[u.c,u.d],p=wc(c),m=ev(c,h),b=wc(tv(h,c,-m))||0;c[0]*h[1]<h[0]*c[1]&&(c[0]*=-1,c[1]*=-1,p*=-1,m*=-1),this.rotate=(p?Math.atan2(c[1],c[0]):Math.atan2(-h[0],h[1]))*Cu,this.translate=[u.e,u.f],this.scale=[p,b],this.skew=b?Math.atan2(m,b)*Cu:0}xc.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function ev(u,c){return u[0]*c[0]+u[1]*c[1]}function wc(u){var c=Math.sqrt(ev(u,u));return c&&(u[0]/=c,u[1]/=c),c}function tv(u,c,h){return u[0]+=h*c[0],u[1]+=h*c[1],u}var Ly={a:1,b:0,c:0,d:1,e:0,f:0};t.interpolateTransform=_c;function Ui(u){return u.length?u.pop()+",":""}function Dy(u,c,h,p){if(u[0]!==c[0]||u[1]!==c[1]){var m=h.push("translate(",null,",",null,")");p.push({i:m-4,x:zi(u[0],c[0])},{i:m-2,x:zi(u[1],c[1])})}else(c[0]||c[1])&&h.push("translate("+c+")")}function sa(u,c,h,p){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),p.push({i:h.push(Ui(h)+"rotate(",null,")")-2,x:zi(u,c)})):c&&h.push(Ui(h)+"rotate("+c+")")}function hs(u,c,h,p){u!==c?p.push({i:h.push(Ui(h)+"skewX(",null,")")-2,x:zi(u,c)}):c&&h.push(Ui(h)+"skewX("+c+")")}function rv(u,c,h,p){if(u[0]!==c[0]||u[1]!==c[1]){var m=h.push(Ui(h)+"scale(",null,",",null,")");p.push({i:m-4,x:zi(u[0],c[0])},{i:m-2,x:zi(u[1],c[1])})}else(c[0]!==1||c[1]!==1)&&h.push(Ui(h)+"scale("+c+")")}function _c(u,c){var h=[],p=[];return u=t.transform(u),c=t.transform(c),Dy(u.translate,c.translate,h,p),sa(u.rotate,c.rotate,h,p),hs(u.skew,c.skew,h,p),rv(u.scale,c.scale,h,p),u=c=null,function(m){for(var b=-1,O=p.length,S;++b<O;)h[(S=p[b]).i]=S.x(m);return h.join("")}}function nv(u,c){return c=(c-=u=+u)||1/c,function(h){return(h-u)/c}}function iv(u,c){return c=(c-=u=+u)||1/c,function(h){return Math.max(0,Math.min(1,(h-u)/c))}}t.layout={},t.layout.bundle=function(){return function(u){for(var c=[],h=-1,p=u.length;++h<p;)c.push(av(u[h]));return c}};function av(u){for(var c=u.source,h=u.target,p=ov(c,h),m=[c];c!==p;)c=c.parent,m.push(c);for(var b=m.length;h!==p;)m.splice(b,0,h),h=h.parent;return m}function Sc(u){for(var c=[],h=u.parent;h!=null;)c.push(u),u=h,h=h.parent;return c.push(u),c}function ov(u,c){if(u===c)return u;for(var h=Sc(u),p=Sc(c),m=h.pop(),b=p.pop(),O=null;m===b;)O=m,m=h.pop(),b=p.pop();return O}t.layout.chord=function(){var u={},c,h,p,m,b=0,O,S,P;function N(){var B={},z=[],ie=t.range(m),oe=[],G,X,J,ue,le;for(c=[],h=[],G=0,ue=-1;++ue<m;){for(X=0,le=-1;++le<m;)X+=p[ue][le];z.push(X),oe.push(t.range(m)),G+=X}for(O&&ie.sort(function(Wt,xt){return O(z[Wt],z[xt])}),S&&oe.forEach(function(Wt,xt){Wt.sort(function(zt,or){return S(p[xt][zt],p[xt][or])})}),G=(co-b*m)/G,X=0,ue=-1;++ue<m;){for(J=X,le=-1;++le<m;){var re=ie[ue],Pe=oe[re][le],Ue=p[re][Pe],tt=X,je=X+=Ue*G;B[re+"-"+Pe]={index:re,subindex:Pe,startAngle:tt,endAngle:je,value:Ue}}h[re]={index:re,startAngle:J,endAngle:X,value:z[re]},X+=b}for(ue=-1;++ue<m;)for(le=ue-1;++le<m;){var at=B[ue+"-"+le],vt=B[le+"-"+ue];(at.value||vt.value)&&c.push(at.value<vt.value?{source:vt,target:at}:{source:at,target:vt})}P&&D()}function D(){c.sort(function(B,z){return P((B.source.value+B.target.value)/2,(z.source.value+z.target.value)/2)})}return u.matrix=function(B){return arguments.length?(m=(p=B)&&p.length,c=h=null,u):p},u.padding=function(B){return arguments.length?(b=B,c=h=null,u):b},u.sortGroups=function(B){return arguments.length?(O=B,c=h=null,u):O},u.sortSubgroups=function(B){return arguments.length?(S=B,c=null,u):S},u.sortChords=function(B){return arguments.length?(P=B,c&&D(),u):P},u.chords=function(){return c||N(),c},u.groups=function(){return h||N(),h},u},t.layout.force=function(){var u={},c=t.dispatch("start","tick","end"),h,p=[1,1],m,b,O=.9,S=ji,P=Ec,N=-30,D=_o,B=.1,z=.64,ie=[],oe=[],G,X,J;function ue(re){return function(Pe,Ue,tt,je){if(Pe.point!==re){var at=Pe.cx-re.x,vt=Pe.cy-re.y,Wt=je-Ue,xt=at*at+vt*vt;if(Wt*Wt/z<xt){if(xt<D){var zt=Pe.charge/xt;re.px-=at*zt,re.py-=vt*zt}return!0}if(Pe.point&&xt&&xt<D){var zt=Pe.pointCharge/xt;re.px-=at*zt,re.py-=vt*zt}}return!Pe.charge}}u.tick=function(){if((b*=.99)<.005)return h=null,c.end({type:"end",alpha:b=0}),!0;var re=ie.length,Pe=oe.length,Ue,tt,je,at,vt,Wt,xt,zt,or;for(tt=0;tt<Pe;++tt)je=oe[tt],at=je.source,vt=je.target,zt=vt.x-at.x,or=vt.y-at.y,(Wt=zt*zt+or*or)&&(Wt=b*X[tt]*((Wt=Math.sqrt(Wt))-G[tt])/Wt,zt*=Wt,or*=Wt,vt.x-=zt*(xt=at.weight+vt.weight?at.weight/(at.weight+vt.weight):.5),vt.y-=or*xt,at.x+=zt*(xt=1-xt),at.y+=or*xt);if((xt=b*B)&&(zt=p[0]/2,or=p[1]/2,tt=-1,xt))for(;++tt<re;)je=ie[tt],je.x+=(zt-je.x)*xt,je.y+=(or-je.y)*xt;if(N)for(fv(Ue=t.geom.quadtree(ie),b,J),tt=-1;++tt<re;)(je=ie[tt]).fixed||Ue.visit(ue(je));for(tt=-1;++tt<re;)je=ie[tt],je.fixed?(je.x=je.px,je.y=je.py):(je.x-=(je.px-(je.px=je.x))*O,je.y-=(je.py-(je.py=je.y))*O);c.tick({type:"tick",alpha:b})},u.nodes=function(re){return arguments.length?(ie=re,u):ie},u.links=function(re){return arguments.length?(oe=re,u):oe},u.size=function(re){return arguments.length?(p=re,u):p},u.linkDistance=function(re){return arguments.length?(S=typeof re=="function"?re:+re,u):S},u.distance=u.linkDistance,u.linkStrength=function(re){return arguments.length?(P=typeof re=="function"?re:+re,u):P},u.friction=function(re){return arguments.length?(O=+re,u):O},u.charge=function(re){return arguments.length?(N=typeof re=="function"?re:+re,u):N},u.chargeDistance=function(re){return arguments.length?(D=re*re,u):Math.sqrt(D)},u.gravity=function(re){return arguments.length?(B=+re,u):B},u.theta=function(re){return arguments.length?(z=re*re,u):Math.sqrt(z)},u.alpha=function(re){return arguments.length?(re=+re,b?re>0?b=re:(h.c=null,h.t=NaN,h=null,c.end({type:"end",alpha:b=0})):re>0&&(c.start({type:"start",alpha:b=re}),h=vo(u.tick)),u):b},u.start=function(){var re,Pe=ie.length,Ue=oe.length,tt=p[0],je=p[1],at,vt;for(re=0;re<Pe;++re)(vt=ie[re]).index=re,vt.weight=0;for(re=0;re<Ue;++re)vt=oe[re],typeof vt.source=="number"&&(vt.source=ie[vt.source]),typeof vt.target=="number"&&(vt.target=ie[vt.target]),++vt.source.weight,++vt.target.weight;for(re=0;re<Pe;++re)vt=ie[re],isNaN(vt.x)&&(vt.x=Wt("x",tt)),isNaN(vt.y)&&(vt.y=Wt("y",je)),isNaN(vt.px)&&(vt.px=vt.x),isNaN(vt.py)&&(vt.py=vt.y);if(G=[],typeof S=="function")for(re=0;re<Ue;++re)G[re]=+S.call(this,oe[re],re);else for(re=0;re<Ue;++re)G[re]=S;if(X=[],typeof P=="function")for(re=0;re<Ue;++re)X[re]=+P.call(this,oe[re],re);else for(re=0;re<Ue;++re)X[re]=P;if(J=[],typeof N=="function")for(re=0;re<Pe;++re)J[re]=+N.call(this,ie[re],re);else for(re=0;re<Pe;++re)J[re]=N;function Wt(xt,zt){if(!at){for(at=new Array(Pe),pr=0;pr<Pe;++pr)at[pr]=[];for(pr=0;pr<Ue;++pr){var or=oe[pr];at[or.source.index].push(or.target),at[or.target.index].push(or.source)}}for(var Rr=at[re],pr=-1,rt=Rr.length,Ht;++pr<rt;)if(!isNaN(Ht=Rr[pr][xt]))return Ht;return Math.random()*zt}return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){if(m||(m=t.behavior.drag().origin(nt).on("dragstart.force",uv).on("drag.force",le).on("dragend.force",lv)),!arguments.length)return m;this.on("mouseover.force",fi).on("mouseout.force",sv).call(m)};function le(re){re.px=t.event.x,re.py=t.event.y,u.resume()}return t.rebind(u,c,"on")};function uv(u){u.fixed|=2}function lv(u){u.fixed&=-7}function fi(u){u.fixed|=4,u.px=u.x,u.py=u.y}function sv(u){u.fixed&=-5}function fv(u,c,h){var p=0,m=0;if(u.charge=0,!u.leaf)for(var b=u.nodes,O=b.length,S=-1,P;++S<O;)P=b[S],P!=null&&(fv(P,c,h),u.charge+=P.charge,p+=P.charge*P.cx,m+=P.charge*P.cy);if(u.point){u.leaf||(u.point.x+=Math.random()-.5,u.point.y+=Math.random()-.5);var N=c*h[u.point.index];u.charge+=u.pointCharge=N,p+=N*u.point.x,m+=N*u.point.y}u.cx=p/u.charge,u.cy=m/u.charge}var ji=20,Ec=1,_o=1/0;t.layout.hierarchy=function(){var u=$y,c=cv,h=hv;function p(m){var b=[m],O=[],S;for(m.depth=0;(S=b.pop())!=null;)if(O.push(S),(N=c.call(p,S,S.depth))&&(P=N.length)){for(var P,N,D;--P>=0;)b.push(D=N[P]),D.parent=S,D.depth=S.depth+1;h&&(S.value=0),S.children=N}else h&&(S.value=+h.call(p,S,S.depth)||0),delete S.children;return ci(m,function(B){var z,ie;u&&(z=B.children)&&z.sort(u),h&&(ie=B.parent)&&(ie.value+=B.value)}),O}return p.sort=function(m){return arguments.length?(u=m,p):u},p.children=function(m){return arguments.length?(c=m,p):c},p.value=function(m){return arguments.length?(h=m,p):h},p.revalue=function(m){return h&&(Eo(m,function(b){b.children&&(b.value=0)}),ci(m,function(b){var O;b.children||(b.value=+h.call(p,b,b.depth)||0),(O=b.parent)&&(O.value+=b.value)})),m},p};function So(u,c){return t.rebind(u,c,"sort","children","value"),u.nodes=u,u.links=By,u}function Eo(u,c){for(var h=[u];(u=h.pop())!=null;)if(c(u),(m=u.children)&&(p=m.length))for(var p,m;--p>=0;)h.push(m[p])}function ci(u,c){for(var h=[u],p=[];(u=h.pop())!=null;)if(p.push(u),(O=u.children)&&(b=O.length))for(var m=-1,b,O;++m<b;)h.push(O[m]);for(;(u=p.pop())!=null;)c(u)}function cv(u){return u.children}function hv(u){return u.value}function $y(u,c){return c.value-u.value}function By(u){return t.merge(u.map(function(c){return(c.children||[]).map(function(h){return{source:c,target:h}})}))}t.layout.partition=function(){var u=t.layout.hierarchy(),c=[1,1];function h(b,O,S,P){var N=b.children;if(b.x=O,b.y=b.depth*P,b.dx=S,b.dy=P,N&&(B=N.length)){var D=-1,B,z,ie;for(S=b.value?S/b.value:0;++D<B;)h(z=N[D],O,ie=z.value*S,P),O+=ie}}function p(b){var O=b.children,S=0;if(O&&(N=O.length))for(var P=-1,N;++P<N;)S=Math.max(S,p(O[P]));return 1+S}function m(b,O){var S=u.call(this,b,O);return h(S[0],0,c[0],c[1]/p(S[0])),S}return m.size=function(b){return arguments.length?(c=b,m):c},So(m,u)},t.layout.pie=function(){var u=Number,c=dv,h=0,p=co,m=0;function b(O){var S=O.length,P=O.map(function(ue,le){return+u.call(b,ue,le)}),N=+(typeof h=="function"?h.apply(this,arguments):h),D=(typeof p=="function"?p.apply(this,arguments):p)-N,B=Math.min(Math.abs(D)/S,+(typeof m=="function"?m.apply(this,arguments):m)),z=B*(D<0?-1:1),ie=t.sum(P),oe=ie?(D-S*z)/ie:0,G=t.range(S),X=[],J;return c!=null&&G.sort(c===dv?function(ue,le){return P[le]-P[ue]}:function(ue,le){return c(O[ue],O[le])}),G.forEach(function(ue){X[ue]={data:O[ue],value:J=P[ue],startAngle:N,endAngle:N+=J*oe+z,padAngle:B}}),X}return b.value=function(O){return arguments.length?(u=O,b):u},b.sort=function(O){return arguments.length?(c=O,b):c},b.startAngle=function(O){return arguments.length?(h=O,b):h},b.endAngle=function(O){return arguments.length?(p=O,b):p},b.padAngle=function(O){return arguments.length?(m=O,b):m},b};var dv={};t.layout.stack=function(){var u=nt,c=Cc,h=Tc,p=jy,m=zy,b=Uy;function O(S,P){if(!(oe=S.length))return S;var N=S.map(function(ue,le){return u.call(O,ue,le)}),D=N.map(function(ue){return ue.map(function(le,re){return[m.call(O,le,re),b.call(O,le,re)]})}),B=c.call(O,D,P);N=t.permute(N,B),D=t.permute(D,B);var z=h.call(O,D,P),ie=N[0].length,oe,G,X,J;for(X=0;X<ie;++X)for(p.call(O,N[0][X],J=z[X],D[0][X][1]),G=1;G<oe;++G)p.call(O,N[G][X],J+=D[G-1][X][1],D[G][X][1]);return S}return O.values=function(S){return arguments.length?(u=S,O):u},O.order=function(S){return arguments.length?(c=typeof S=="function"?S:Ac.get(S)||Cc,O):c},O.offset=function(S){return arguments.length?(h=typeof S=="function"?S:ds.get(S)||Tc,O):h},O.x=function(S){return arguments.length?(m=S,O):m},O.y=function(S){return arguments.length?(b=S,O):b},O.out=function(S){return arguments.length?(p=S,O):p},O};function zy(u){return u.x}function Uy(u){return u.y}function jy(u,c,h){u.y0=c,u.y=h}var Ac=t.map({"inside-out":function(u){var c=u.length,h,p,m=u.map(pv),b=u.map(ps),O=t.range(c).sort(function(B,z){return m[B]-m[z]}),S=0,P=0,N=[],D=[];for(h=0;h<c;++h)p=O[h],S<P?(S+=b[p],N.push(p)):(P+=b[p],D.push(p));return D.reverse().concat(N)},reverse:function(u){return t.range(u.length).reverse()},default:Cc}),ds=t.map({silhouette:function(u){var c=u.length,h=u[0].length,p=[],m=0,b,O,S,P=[];for(O=0;O<h;++O){for(b=0,S=0;b<c;b++)S+=u[b][O][1];S>m&&(m=S),p.push(S)}for(O=0;O<h;++O)P[O]=(m-p[O])/2;return P},wiggle:function(u){var c=u.length,h=u[0],p=h.length,m,b,O,S,P,N,D,B,z,ie=[];for(ie[0]=B=z=0,b=1;b<p;++b){for(m=0,S=0;m<c;++m)S+=u[m][b][1];for(m=0,P=0,D=h[b][0]-h[b-1][0];m<c;++m){for(O=0,N=(u[m][b][1]-u[m][b-1][1])/(2*D);O<m;++O)N+=(u[O][b][1]-u[O][b-1][1])/D;P+=N*u[m][b][1]}ie[b]=B-=S?P/S*D:0,B<z&&(z=B)}for(b=0;b<p;++b)ie[b]-=z;return ie},expand:function(u){var c=u.length,h=u[0].length,p=1/c,m,b,O,S=[];for(b=0;b<h;++b){for(m=0,O=0;m<c;m++)O+=u[m][b][1];if(O)for(m=0;m<c;m++)u[m][b][1]/=O;else for(m=0;m<c;m++)u[m][b][1]=p}for(b=0;b<h;++b)S[b]=0;return S},zero:Tc});function Cc(u){return t.range(u.length)}function Tc(u){for(var c=-1,h=u[0].length,p=[];++c<h;)p[c]=0;return p}function pv(u){for(var c=1,h=0,p=u[0][1],m,b=u.length;c<b;++c)(m=u[c][1])>p&&(h=c,p=m);return h}function ps(u){return u.reduce(Oc,0)}function Oc(u,c){return u+c[1]}t.layout.histogram=function(){var u=!0,c=Number,h=Wy,p=Gy;function m(b,z){for(var S=[],P=b.map(c,this),N=h.call(this,P,z),D=p.call(this,N,P,z),B,z=-1,ie=P.length,oe=D.length-1,G=u?1:1/ie,X;++z<oe;)B=S[z]=[],B.dx=D[z+1]-(B.x=D[z]),B.y=0;if(oe>0)for(z=-1;++z<ie;)X=P[z],X>=N[0]&&X<=N[1]&&(B=S[t.bisect(D,X,1,oe)-1],B.y+=G,B.push(b[z]));return S}return m.value=function(b){return arguments.length?(c=b,m):c},m.range=function(b){return arguments.length?(h=gr(b),m):h},m.bins=function(b){return arguments.length?(p=typeof b=="number"?function(O){return Mc(O,b)}:gr(b),m):p},m.frequency=function(b){return arguments.length?(u=!!b,m):u},m};function Gy(u,c){return Mc(u,Math.ceil(Math.log(c.length)/Math.LN2+1))}function Mc(u,c){for(var h=-1,p=+u[0],m=(u[1]-p)/c,b=[];++h<=c;)b[h]=m*h+p;return b}function Wy(u){return[t.min(u),t.max(u)]}t.layout.pack=function(){var u=t.layout.hierarchy().sort(Hy),c=0,h=[1,1],p;function m(b,O){var S=u.call(this,b,O),P=S[0],N=h[0],D=h[1],B=p==null?Math.sqrt:typeof p=="function"?p:function(){return p};if(P.x=P.y=0,ci(P,function(ie){ie.r=+B(ie.value)}),ci(P,Rc),c){var z=c*(p?1:Math.max(2*P.r/N,2*P.r/D))/2;ci(P,function(ie){ie.r+=z}),ci(P,Rc),ci(P,function(ie){ie.r-=z})}return gv(P,N/2,D/2,p?1:1/Math.max(2*P.r/N,2*P.r/D)),S}return m.size=function(b){return arguments.length?(h=b,m):h},m.radius=function(b){return arguments.length?(p=b==null||typeof b=="function"?b:+b,m):p},m.padding=function(b){return arguments.length?(c=+b,m):c},So(m,u)};function Hy(u,c){return u.value-c.value}function kc(u,c){var h=u._pack_next;u._pack_next=c,c._pack_prev=u,c._pack_next=h,h._pack_prev=c}function vv(u,c){u._pack_next=c,c._pack_prev=u}function mv(u,c){var h=c.x-u.x,p=c.y-u.y,m=u.r+c.r;return .999*m*m>h*h+p*p}function Rc(u){if(!(c=u.children)||!(z=c.length))return;var c,h=1/0,p=-1/0,m=1/0,b=-1/0,O,S,P,N,D,B,z;function ie(re){h=Math.min(re.x-re.r,h),p=Math.max(re.x+re.r,p),m=Math.min(re.y-re.r,m),b=Math.max(re.y+re.r,b)}if(c.forEach(qy),O=c[0],O.x=-O.r,O.y=0,ie(O),z>1&&(S=c[1],S.x=S.r,S.y=0,ie(S),z>2))for(P=c[2],yv(O,S,P),ie(P),kc(O,P),O._pack_prev=P,kc(P,S),S=O._pack_next,N=3;N<z;N++){yv(O,S,P=c[N]);var oe=0,G=1,X=1;for(D=S._pack_next;D!==S;D=D._pack_next,G++)if(mv(D,P)){oe=1;break}if(oe==1)for(B=O._pack_prev;B!==D._pack_prev&&!mv(B,P);B=B._pack_prev,X++);oe?(G<X||G==X&&S.r<O.r?vv(O,S=D):vv(O=B,S),N--):(kc(O,P),S=P,ie(P))}var J=(h+p)/2,ue=(m+b)/2,le=0;for(N=0;N<z;N++)P=c[N],P.x-=J,P.y-=ue,le=Math.max(le,P.r+Math.sqrt(P.x*P.x+P.y*P.y));u.r=le,c.forEach(Vy)}function qy(u){u._pack_next=u._pack_prev=u}function Vy(u){delete u._pack_next,delete u._pack_prev}function gv(u,c,h,p){var m=u.children;if(u.x=c+=p*u.x,u.y=h+=p*u.y,u.r*=p,m)for(var b=-1,O=m.length;++b<O;)gv(m[b],c,h,p)}function yv(u,c,h){var p=u.r+h.r,m=c.x-u.x,b=c.y-u.y;if(p&&(m||b)){var O=c.r+h.r,S=m*m+b*b;O*=O,p*=p;var P=.5+(p-O)/(2*S),N=Math.sqrt(Math.max(0,2*O*(p+S)-(p-=S)*p-O*O))/(2*S);h.x=u.x+P*m+N*b,h.y=u.y+P*b-N*m}else h.x=u.x+p,h.y=u.y}t.layout.tree=function(){var u=t.layout.hierarchy().sort(null).value(null),c=bv,h=[1,1],p=null;function m(D,B){var z=u.call(this,D,B),ie=z[0],oe=b(ie);if(ci(oe,O),oe.parent.m=-oe.z,Eo(oe,S),p)Eo(ie,N);else{var G=ie,X=ie,J=ie;Eo(ie,function(Pe){Pe.x<G.x&&(G=Pe),Pe.x>X.x&&(X=Pe),Pe.depth>J.depth&&(J=Pe)});var ue=c(G,X)/2-G.x,le=h[0]/(X.x+c(X,G)/2+ue),re=h[1]/(J.depth||1);Eo(ie,function(Pe){Pe.x=(Pe.x+ue)*le,Pe.y=Pe.depth*re})}return z}function b(D){for(var B={A:null,children:[D]},z=[B],ie;(ie=z.pop())!=null;)for(var oe=ie.children,G,X=0,J=oe.length;X<J;++X)z.push((oe[X]=G={_:oe[X],parent:ie,children:(G=oe[X].children)&&G.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:X}).a=G);return B.children[0]}function O(D){var B=D.children,z=D.parent.children,ie=D.i?z[D.i-1]:null;if(B.length){Xy(D);var oe=(B[0].z+B[B.length-1].z)/2;ie?(D.z=ie.z+c(D._,ie._),D.m=D.z-oe):D.z=oe}else ie&&(D.z=ie.z+c(D._,ie._));D.parent.A=P(D,ie,D.parent.A||z[0])}function S(D){D._.x=D.z+D.parent.m,D.m+=D.parent.m}function P(D,B,z){if(B){for(var ie=D,oe=D,G=B,X=ie.parent.children[0],J=ie.m,ue=oe.m,le=G.m,re=X.m,Pe;G=Ic(G),ie=Pc(ie),G&&ie;)X=Pc(X),oe=Ic(oe),oe.a=D,Pe=G.z+le-ie.z-J+c(G._,ie._),Pe>0&&(Yy(Si(G,D,z),D,Pe),J+=Pe,ue+=Pe),le+=G.m,J+=ie.m,re+=X.m,ue+=oe.m;G&&!Ic(oe)&&(oe.t=G,oe.m+=le-ue),ie&&!Pc(X)&&(X.t=ie,X.m+=J-re,z=D)}return z}function N(D){D.x*=h[0],D.y=D.depth*h[1]}return m.separation=function(D){return arguments.length?(c=D,m):c},m.size=function(D){return arguments.length?(p=(h=D)==null?N:null,m):p?null:h},m.nodeSize=function(D){return arguments.length?(p=(h=D)==null?null:N,m):p?h:null},So(m,u)};function bv(u,c){return u.parent==c.parent?1:2}function Pc(u){var c=u.children;return c.length?c[0]:u.t}function Ic(u){var c=u.children,h;return(h=c.length)?c[h-1]:u.t}function Yy(u,c,h){var p=h/(c.i-u.i);c.c-=p,c.s+=h,u.c+=p,c.z+=h,c.m+=h}function Xy(u){for(var c=0,h=0,p=u.children,m=p.length,b;--m>=0;)b=p[m],b.z+=c,b.m+=c,c+=b.s+(h+=b.c)}function Si(u,c,h){return u.a.parent===c.parent?u.a:h}t.layout.cluster=function(){var u=t.layout.hierarchy().sort(null).value(null),c=bv,h=[1,1],p=!1;function m(b,O){var S=u.call(this,b,O),P=S[0],N,D=0;ci(P,function(G){var X=G.children;X&&X.length?(G.x=Ky(X),G.y=xv(X)):(G.x=N?D+=c(G,N):0,G.y=0,N=G)});var B=wv(P),z=_v(P),ie=B.x-c(B,z)/2,oe=z.x+c(z,B)/2;return ci(P,p?function(G){G.x=(G.x-P.x)*h[0],G.y=(P.y-G.y)*h[1]}:function(G){G.x=(G.x-ie)/(oe-ie)*h[0],G.y=(1-(P.y?G.y/P.y:1))*h[1]}),S}return m.separation=function(b){return arguments.length?(c=b,m):c},m.size=function(b){return arguments.length?(p=(h=b)==null,m):p?null:h},m.nodeSize=function(b){return arguments.length?(p=(h=b)!=null,m):p?h:null},So(m,u)};function xv(u){return 1+t.max(u,function(c){return c.y})}function Ky(u){return u.reduce(function(c,h){return c+h.x},0)/u.length}function wv(u){var c=u.children;return c&&c.length?wv(c[0]):u}function _v(u){var c=u.children,h;return c&&(h=c.length)?_v(c[h-1]):u}t.layout.treemap=function(){var u=t.layout.hierarchy(),c=Math.round,h=[1,1],p=null,m=Fc,b=!1,O,S="squarify",P=.5*(1+Math.sqrt(5));function N(G,X){for(var J=-1,ue=G.length,le,re;++J<ue;)re=(le=G[J]).value*(X<0?0:X),le.area=isNaN(re)||re<=0?0:re}function D(G){var X=G.children;if(X&&X.length){var J=m(G),ue=[],le=X.slice(),re,Pe=1/0,Ue,tt=S==="slice"?J.dx:S==="dice"?J.dy:S==="slice-dice"?G.depth&1?J.dy:J.dx:Math.min(J.dx,J.dy),je;for(N(le,J.dx*J.dy/G.value),ue.area=0;(je=le.length)>0;)ue.push(re=le[je-1]),ue.area+=re.area,S!=="squarify"||(Ue=z(ue,tt))<=Pe?(le.pop(),Pe=Ue):(ue.area-=ue.pop().area,ie(ue,tt,J,!1),tt=Math.min(J.dx,J.dy),ue.length=ue.area=0,Pe=1/0);ue.length&&(ie(ue,tt,J,!0),ue.length=ue.area=0),X.forEach(D)}}function B(G){var X=G.children;if(X&&X.length){var J=m(G),ue=X.slice(),le,re=[];for(N(ue,J.dx*J.dy/G.value),re.area=0;le=ue.pop();)re.push(le),re.area+=le.area,le.z!=null&&(ie(re,le.z?J.dx:J.dy,J,!ue.length),re.length=re.area=0);X.forEach(B)}}function z(G,X){for(var J=G.area,ue,le=0,re=1/0,Pe=-1,Ue=G.length;++Pe<Ue;)(ue=G[Pe].area)&&(ue<re&&(re=ue),ue>le&&(le=ue));return J*=J,X*=X,J?Math.max(X*le*P/J,J/(X*re*P)):1/0}function ie(G,X,J,ue){var le=-1,re=G.length,Pe=J.x,Ue=J.y,tt=X?c(G.area/X):0,je;if(X==J.dx){for((ue||tt>J.dy)&&(tt=J.dy);++le<re;)je=G[le],je.x=Pe,je.y=Ue,je.dy=tt,Pe+=je.dx=Math.min(J.x+J.dx-Pe,tt?c(je.area/tt):0);je.z=!0,je.dx+=J.x+J.dx-Pe,J.y+=tt,J.dy-=tt}else{for((ue||tt>J.dx)&&(tt=J.dx);++le<re;)je=G[le],je.x=Pe,je.y=Ue,je.dx=tt,Ue+=je.dy=Math.min(J.y+J.dy-Ue,tt?c(je.area/tt):0);je.z=!1,je.dy+=J.y+J.dy-Ue,J.x+=tt,J.dx-=tt}}function oe(G){var X=O||u(G),J=X[0];return J.x=J.y=0,J.value?(J.dx=h[0],J.dy=h[1]):J.dx=J.dy=0,O&&u.revalue(J),N([J],J.dx*J.dy/J.value),(O?B:D)(J),b&&(O=X),X}return oe.size=function(G){return arguments.length?(h=G,oe):h},oe.padding=function(G){if(!arguments.length)return p;function X(le){var re=G.call(oe,le,le.depth);return re==null?Fc(le):Sv(le,typeof re=="number"?[re,re,re,re]:re)}function J(le){return Sv(le,G)}var ue;return m=(p=G)==null?Fc:(ue=typeof G)=="function"?X:(ue==="number"&&(G=[G,G,G,G]),J),oe},oe.round=function(G){return arguments.length?(c=G?Math.round:Number,oe):c!=Number},oe.sticky=function(G){return arguments.length?(b=G,O=null,oe):b},oe.ratio=function(G){return arguments.length?(P=G,oe):P},oe.mode=function(G){return arguments.length?(S=G+"",oe):S},So(oe,u)};function Fc(u){return{x:u.x,y:u.y,dx:u.dx,dy:u.dy}}function Sv(u,c){var h=u.x+c[3],p=u.y+c[0],m=u.dx-c[1]-c[3],b=u.dy-c[0]-c[2];return m<0&&(h+=m/2,m=0),b<0&&(p+=b/2,b=0),{x:h,y:p,dx:m,dy:b}}t.random={normal:function(u,c){var h=arguments.length;return h<2&&(c=1),h<1&&(u=0),function(){var p,m,b;do p=Math.random()*2-1,m=Math.random()*2-1,b=p*p+m*m;while(!b||b>1);return u+c*p*Math.sqrt(-2*Math.log(b)/b)}},logNormal:function(){var u=t.random.normal.apply(t,arguments);return function(){return Math.exp(u())}},bates:function(u){var c=t.random.irwinHall(u);return function(){return c()/u}},irwinHall:function(u){return function(){for(var c=0,h=0;h<u;h++)c+=Math.random();return c}}},t.scale={};function vs(u){var c=u[0],h=u[u.length-1];return c<h?[c,h]:[h,c]}function ms(u){return u.rangeExtent?u.rangeExtent():vs(u.range())}function Qy(u,c,h,p){var m=h(u[0],u[1]),b=p(c[0],c[1]);return function(O){return b(m(O))}}function Wr(u,c){var h=0,p=u.length-1,m=u[h],b=u[p],O;return b<m&&(O=h,h=p,p=O,O=m,m=b,b=O),u[h]=c.floor(m),u[p]=c.ceil(b),u}function za(u){return u?{floor:function(c){return Math.floor(c/u)*u},ceil:function(c){return Math.ceil(c/u)*u}}:Ao}var Ao={floor:nt,ceil:nt};function Zy(u,c,h,p){var m=[],b=[],O=0,S=Math.min(u.length,c.length)-1;for(u[S]<u[0]&&(u=u.slice().reverse(),c=c.slice().reverse());++O<=S;)m.push(h(u[O-1],u[O])),b.push(p(c[O-1],c[O]));return function(P){var N=t.bisect(u,P,1,S)-1;return b[N](m[N](P))}}t.scale.linear=function(){return Ua([0,1],[0,1],_i,!1)};function Ua(u,c,h,p){var m,b;function O(){var P=Math.min(u.length,c.length)>2?Zy:Qy,N=p?iv:nv;return m=P(u,c,N,h),b=P(c,u,N,_i),S}function S(P){return m(P)}return S.invert=function(P){return b(P)},S.domain=function(P){return arguments.length?(u=P.map(Number),O()):u},S.range=function(P){return arguments.length?(c=P,O()):c},S.rangeRound=function(P){return S.range(P).interpolate(cs)},S.clamp=function(P){return arguments.length?(p=P,O()):p},S.interpolate=function(P){return arguments.length?(h=P,O()):h},S.ticks=function(P){return Uu(u,P)},S.tickFormat=function(P,N){return d3_scale_linearTickFormat(u,P,N)},S.nice=function(P){return ja(u,P),O()},S.copy=function(){return Ua(u,c,h,p)},O()}function Nc(u,c){return t.rebind(u,c,"range","rangeRound","interpolate","clamp")}function ja(u,c){return Wr(u,za(zu(u,c)[2])),Wr(u,za(zu(u,c)[2])),u}function zu(u,c){c==null&&(c=10);var h=vs(u),p=h[1]-h[0],m=Math.pow(10,Math.floor(Math.log(p/c)/Math.LN10)),b=c/p*m;return b<=.15?m*=10:b<=.35?m*=5:b<=.75&&(m*=2),h[0]=Math.ceil(h[0]/m)*m,h[1]=Math.floor(h[1]/m)*m+m*.5,h[2]=m,h}function Uu(u,c){return t.range.apply(t,zu(u,c))}t.scale.log=function(){return gs(t.scale.linear().domain([0,1]),10,!0,[1,10])};function gs(u,c,h,p){function m(S){return(h?Math.log(S<0?0:S):-Math.log(S>0?0:-S))/Math.log(c)}function b(S){return h?Math.pow(c,S):-Math.pow(c,-S)}function O(S){return u(m(S))}return O.invert=function(S){return b(u.invert(S))},O.domain=function(S){return arguments.length?(h=S[0]>=0,u.domain((p=S.map(Number)).map(m)),O):p},O.base=function(S){return arguments.length?(c=+S,u.domain(p.map(m)),O):c},O.nice=function(){var S=Wr(p.map(m),h?Math:Lc);return u.domain(S),p=S.map(b),O},O.ticks=function(){var S=vs(p),P=[],N=S[0],D=S[1],B=Math.floor(m(N)),z=Math.ceil(m(D)),ie=c%1?2:c;if(isFinite(z-B)){if(h){for(;B<z;B++)for(var oe=1;oe<ie;oe++)P.push(b(B)*oe);P.push(b(B))}else for(P.push(b(B));B++<z;)for(var oe=ie-1;oe>0;oe--)P.push(b(B)*oe);for(B=0;P[B]<N;B++);for(z=P.length;P[z-1]>D;z--);P=P.slice(B,z)}return P},O.copy=function(){return gs(u.copy(),c,h,p)},Nc(O,u)}var Lc={floor:function(u){return-Math.ceil(-u)},ceil:function(u){return-Math.floor(-u)}};t.scale.pow=function(){return ys(t.scale.linear(),1,[0,1])};function ys(u,c,h){var p=Ga(c),m=Ga(1/c);function b(O){return u(p(O))}return b.invert=function(O){return m(u.invert(O))},b.domain=function(O){return arguments.length?(u.domain((h=O.map(Number)).map(p)),b):h},b.ticks=function(O){return Uu(h,O)},b.tickFormat=function(O,S){return d3_scale_linearTickFormat(h,O,S)},b.nice=function(O){return b.domain(ja(h,O))},b.exponent=function(O){return arguments.length?(p=Ga(c=O),m=Ga(1/c),u.domain(h.map(p)),b):c},b.copy=function(){return ys(u.copy(),c,h)},Nc(b,u)}function Ga(u){return function(c){return c<0?-Math.pow(-c,u):Math.pow(c,u)}}t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return Dc([],{t:"range",a:[[]]})};function Dc(u,c){var h,p,m;function b(S){return p[((h.get(S)||(c.t==="range"?h.set(S,u.push(S)):NaN))-1)%p.length]}function O(S,P){return t.range(u.length).map(function(N){return S+P*N})}return b.domain=function(S){if(!arguments.length)return u;u=[],h=new F;for(var P=-1,N=S.length,D;++P<N;)h.has(D=S[P])||h.set(D,u.push(D));return b[c.t].apply(b,c.a)},b.range=function(S){return arguments.length?(p=S,m=0,c={t:"range",a:arguments},b):p},b.rangePoints=function(S,P){arguments.length<2&&(P=0);var N=S[0],D=S[1],B=u.length<2?(N=(N+D)/2,0):(D-N)/(u.length-1+P);return p=O(N+B*P/2,B),m=0,c={t:"rangePoints",a:arguments},b},b.rangeRoundPoints=function(S,P){arguments.length<2&&(P=0);var N=S[0],D=S[1],B=u.length<2?(N=D=Math.round((N+D)/2),0):(D-N)/(u.length-1+P)|0;return p=O(N+Math.round(B*P/2+(D-N-(u.length-1+P)*B)/2),B),m=0,c={t:"rangeRoundPoints",a:arguments},b},b.rangeBands=function(S,P,N){arguments.length<2&&(P=0),arguments.length<3&&(N=P);var D=S[1]<S[0],B=S[D-0],z=S[1-D],ie=(z-B)/(u.length-P+2*N);return p=O(B+ie*N,ie),D&&p.reverse(),m=ie*(1-P),c={t:"rangeBands",a:arguments},b},b.rangeRoundBands=function(S,P,N){arguments.length<2&&(P=0),arguments.length<3&&(N=P);var D=S[1]<S[0],B=S[D-0],z=S[1-D],ie=Math.floor((z-B)/(u.length-P+2*N));return p=O(B+Math.round((z-B-(u.length-P)*ie)/2),ie),D&&p.reverse(),m=Math.round(ie*(1-P)),c={t:"rangeRoundBands",a:arguments},b},b.rangeBand=function(){return m},b.rangeExtent=function(){return vs(c.a[0])},b.copy=function(){return Dc(u,c)},b.domain(u)}t.scale.category10=function(){return t.scale.ordinal().range(Ev)},t.scale.category20=function(){return t.scale.ordinal().range(Av)},t.scale.category20b=function(){return t.scale.ordinal().range(Cv)},t.scale.category20c=function(){return t.scale.ordinal().range(Tv)};var Ev=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Zl),Av=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Zl),Cv=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Zl),Tv=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Zl);t.scale.quantile=function(){return bs([],[])};function bs(u,c){var h;function p(){var b=0,O=c.length;for(h=[];++b<O;)h[b-1]=t.quantile(u,b/O);return m}function m(b){if(!isNaN(b=+b))return c[t.bisect(h,b)]}return m.domain=function(b){return arguments.length?(u=b.map(y).filter(E).sort(v),p()):u},m.range=function(b){return arguments.length?(c=b,p()):c},m.quantiles=function(){return h},m.invertExtent=function(b){return b=c.indexOf(b),b<0?[NaN,NaN]:[b>0?h[b-1]:u[0],b<h.length?h[b]:u[u.length-1]]},m.copy=function(){return bs(u,c)},p()}t.scale.quantize=function(){return xs(0,1,[0,1])};function xs(u,c,h){var p,m;function b(S){return h[Math.max(0,Math.min(m,Math.floor(p*(S-u))))]}function O(){return p=h.length/(c-u),m=h.length-1,b}return b.domain=function(S){return arguments.length?(u=+S[0],c=+S[S.length-1],O()):[u,c]},b.range=function(S){return arguments.length?(h=S,O()):h},b.invertExtent=function(S){return S=h.indexOf(S),S=S<0?NaN:S/p+u,[S,S+1/p]},b.copy=function(){return xs(u,c,h)},O()}t.scale.threshold=function(){return $c([.5],[0,1])};function $c(u,c){function h(p){if(p<=p)return c[t.bisect(u,p)]}return h.domain=function(p){return arguments.length?(u=p,h):u},h.range=function(p){return arguments.length?(c=p,h):c},h.invertExtent=function(p){return p=c.indexOf(p),[u[p-1],u[p]]},h.copy=function(){return $c(u,c)},h}t.scale.identity=function(){return Bc([0,1])};function Bc(u){function c(h){return+h}return c.invert=c,c.domain=c.range=function(h){return arguments.length?(u=h.map(c),c):u},c.ticks=function(h){return Uu(u,h)},c.tickFormat=function(h,p){return d3_scale_linearTickFormat(u,h,p)},c.copy=function(){return Bc(u)},c}t.svg={};function Ov(){return 0}t.svg.arc=function(){var u=zc,c=Mv,h=Ov,p=ju,m=Uc,b=ws,O=jc;function S(){var N=Math.max(0,+u.apply(this,arguments)),D=Math.max(0,+c.apply(this,arguments)),B=m.apply(this,arguments)-wi,z=b.apply(this,arguments)-wi,ie=Math.abs(z-B),oe=B>z?0:1;if(D<N&&(G=D,D=N,N=G),ie>=Cp)return P(D,oe)+(N?P(N,1-oe):"")+"Z";var G,X,J,ue,le=0,re=0,Pe,Ue,tt,je,at,vt,Wt,xt,zt=[];if((ue=(+O.apply(this,arguments)||0)/2)&&(J=p===ju?Math.sqrt(N*N+D*D):+p.apply(this,arguments),oe||(re*=-1),D&&(re=Op(J/D*Math.sin(ue))),N&&(le=Op(J/N*Math.sin(ue)))),D){Pe=D*Math.cos(B+re),Ue=D*Math.sin(B+re),tt=D*Math.cos(z-re),je=D*Math.sin(z-re);var or=Math.abs(z-B-2*re)<=Di?0:1;if(re&&Gu(Pe,Ue,tt,je)===oe^or){var Rr=(B+z)/2;Pe=D*Math.cos(Rr),Ue=D*Math.sin(Rr),tt=je=null}}else Pe=Ue=0;if(N){at=N*Math.cos(z-le),vt=N*Math.sin(z-le),Wt=N*Math.cos(B+le),xt=N*Math.sin(B+le);var pr=Math.abs(B-z+2*le)<=Di?0:1;if(le&&Gu(at,vt,Wt,xt)===1-oe^pr){var rt=(B+z)/2;at=N*Math.cos(rt),vt=N*Math.sin(rt),Wt=xt=null}}else at=vt=0;if(ie>ar&&(G=Math.min(Math.abs(D-N)/2,+h.apply(this,arguments)))>.001){X=N<D^oe?0:1;var Ht=G,Xt=G;if(ie<Di){var ur=Wt==null?[at,vt]:tt==null?[Pe,Ue]:oc([Pe,Ue],[Wt,xt],[tt,je],[at,vt]),Ar=Pe-ur[0],zr=Ue-ur[1],Xr=tt-ur[0],vn=je-ur[1],En=1/Math.sin(Math.acos((Ar*Xr+zr*vn)/(Math.sqrt(Ar*Ar+zr*zr)*Math.sqrt(Xr*Xr+vn*vn)))/2),on=Math.sqrt(ur[0]*ur[0]+ur[1]*ur[1]);Xt=Math.min(G,(N-on)/(En-1)),Ht=Math.min(G,(D-on)/(En+1))}if(tt!=null){var In=Co(Wt==null?[at,vt]:[Wt,xt],[Pe,Ue],D,Ht,oe),I=Co([tt,je],[at,vt],D,Ht,oe);G===Ht?zt.push("M",In[0],"A",Ht,",",Ht," 0 0,",X," ",In[1],"A",D,",",D," 0 ",1-oe^Gu(In[1][0],In[1][1],I[1][0],I[1][1]),",",oe," ",I[1],"A",Ht,",",Ht," 0 0,",X," ",I[0]):zt.push("M",In[0],"A",Ht,",",Ht," 0 1,",X," ",I[0])}else zt.push("M",Pe,",",Ue);if(Wt!=null){var H=Co([Pe,Ue],[Wt,xt],N,-Xt,oe),Z=Co([at,vt],tt==null?[Pe,Ue]:[tt,je],N,-Xt,oe);G===Xt?zt.push("L",Z[0],"A",Xt,",",Xt," 0 0,",X," ",Z[1],"A",N,",",N," 0 ",oe^Gu(Z[1][0],Z[1][1],H[1][0],H[1][1]),",",1-oe," ",H[1],"A",Xt,",",Xt," 0 0,",X," ",H[0]):zt.push("L",Z[0],"A",Xt,",",Xt," 0 0,",X," ",H[0])}else zt.push("L",at,",",vt)}else zt.push("M",Pe,",",Ue),tt!=null&&zt.push("A",D,",",D," 0 ",or,",",oe," ",tt,",",je),zt.push("L",at,",",vt),Wt!=null&&zt.push("A",N,",",N," 0 ",pr,",",1-oe," ",Wt,",",xt);return zt.push("Z"),zt.join("")}function P(N,D){return"M0,"+N+"A"+N+","+N+" 0 1,"+D+" 0,"+-N+"A"+N+","+N+" 0 1,"+D+" 0,"+N}return S.innerRadius=function(N){return arguments.length?(u=gr(N),S):u},S.outerRadius=function(N){return arguments.length?(c=gr(N),S):c},S.cornerRadius=function(N){return arguments.length?(h=gr(N),S):h},S.padRadius=function(N){return arguments.length?(p=N==ju?ju:gr(N),S):p},S.startAngle=function(N){return arguments.length?(m=gr(N),S):m},S.endAngle=function(N){return arguments.length?(b=gr(N),S):b},S.padAngle=function(N){return arguments.length?(O=gr(N),S):O},S.centroid=function(){var N=(+u.apply(this,arguments)+ +c.apply(this,arguments))/2,D=(+m.apply(this,arguments)+ +b.apply(this,arguments))/2-wi;return[Math.cos(D)*N,Math.sin(D)*N]},S};var ju="auto";function zc(u){return u.innerRadius}function Mv(u){return u.outerRadius}function Uc(u){return u.startAngle}function ws(u){return u.endAngle}function jc(u){return u&&u.padAngle}function Gu(u,c,h,p){return(u-h)*c-(c-p)*u>0?0:1}function Co(u,c,h,p,m){var b=u[0]-c[0],O=u[1]-c[1],S=(m?p:-p)/Math.sqrt(b*b+O*O),P=S*O,N=-S*b,D=u[0]+P,B=u[1]+N,z=c[0]+P,ie=c[1]+N,oe=(D+z)/2,G=(B+ie)/2,X=z-D,J=ie-B,ue=X*X+J*J,le=h-p,re=D*ie-z*B,Pe=(J<0?-1:1)*Math.sqrt(Math.max(0,le*le*ue-re*re)),Ue=(re*J-X*Pe)/ue,tt=(-re*X-J*Pe)/ue,je=(re*J+X*Pe)/ue,at=(-re*X+J*Pe)/ue,vt=Ue-oe,Wt=tt-G,xt=je-oe,zt=at-G;return vt*vt+Wt*Wt>xt*xt+zt*zt&&(Ue=je,tt=at),[[Ue-P,tt-N],[Ue*h/le,tt*h/le]]}function Gc(){return!0}function Wc(u){var c=$i,h=Bi,p=Gc,m=Yn,b=m.key,O=.7;function S(P){var N=[],D=[],B=-1,z=P.length,ie,oe=gr(c),G=gr(h);function X(){N.push("M",m(u(D),O))}for(;++B<z;)p.call(this,ie=P[B],B)?D.push([+oe.call(this,ie,B),+G.call(this,ie,B)]):D.length&&(X(),D=[]);return D.length&&X(),N.length?N.join(""):null}return S.x=function(P){return arguments.length?(c=P,S):c},S.y=function(P){return arguments.length?(h=P,S):h},S.defined=function(P){return arguments.length?(p=P,S):p},S.interpolate=function(P){return arguments.length?(typeof P=="function"?b=m=P:b=(m=Wu.get(P)||Yn).key,S):b},S.tension=function(P){return arguments.length?(O=P,S):O},S}t.svg.line=function(){return Wc(nt)};var Wu=t.map({linear:Yn,"linear-closed":Hc,step:qc,"step-before":Hu,"step-after":Wa,basis:qu,"basis-open":Ss,"basis-closed":To,bundle:Oo,cardinal:Gi,"cardinal-open":kv,"cardinal-closed":_s,monotone:Jy});Wu.forEach(function(u,c){c.key=u,c.closed=/-closed$/.test(u)});function Yn(u){return u.length>1?u.join("L"):u+"Z"}function Hc(u){return u.join("L")+"Z"}function qc(u){for(var c=0,h=u.length,p=u[0],m=[p[0],",",p[1]];++c<h;)m.push("H",(p[0]+(p=u[c])[0])/2,"V",p[1]);return h>1&&m.push("H",p[0]),m.join("")}function Hu(u){for(var c=0,h=u.length,p=u[0],m=[p[0],",",p[1]];++c<h;)m.push("V",(p=u[c])[1],"H",p[0]);return m.join("")}function Wa(u){for(var c=0,h=u.length,p=u[0],m=[p[0],",",p[1]];++c<h;)m.push("H",(p=u[c])[0],"V",p[1]);return m.join("")}function kv(u,c){return u.length<4?Yn(u):u[1]+Ha(u.slice(1,-1),fa(u,c))}function _s(u,c){return u.length<3?Hc(u):u[0]+Ha((u.push(u[0]),u),fa([u[u.length-2]].concat(u,[u[1]]),c))}function Gi(u,c){return u.length<3?Yn(u):u[0]+Ha(u,fa(u,c))}function Ha(u,c){if(c.length<1||u.length!=c.length&&u.length!=c.length+2)return Yn(u);var h=u.length!=c.length,p="",m=u[0],b=u[1],O=c[0],S=O,P=1;if(h&&(p+="Q"+(b[0]-O[0]*2/3)+","+(b[1]-O[1]*2/3)+","+b[0]+","+b[1],m=u[1],P=2),c.length>1){S=c[1],b=u[P],P++,p+="C"+(m[0]+O[0])+","+(m[1]+O[1])+","+(b[0]-S[0])+","+(b[1]-S[1])+","+b[0]+","+b[1];for(var N=2;N<c.length;N++,P++)b=u[P],S=c[N],p+="S"+(b[0]-S[0])+","+(b[1]-S[1])+","+b[0]+","+b[1]}if(h){var D=u[P];p+="Q"+(b[0]+S[0]*2/3)+","+(b[1]+S[1]*2/3)+","+D[0]+","+D[1]}return p}function fa(u,c){for(var h=[],p=(1-c)/2,m,b=u[0],O=u[1],S=1,P=u.length;++S<P;)m=b,b=O,O=u[S],h.push([p*(O[0]-m[0]),p*(O[1]-m[1])]);return h}function qu(u){if(u.length<3)return Yn(u);var c=1,h=u.length,p=u[0],m=p[0],b=p[1],O=[m,m,m,(p=u[1])[0]],S=[b,b,b,p[1]],P=[m,",",b,"L",an(hi,O),",",an(hi,S)];for(u.push(u[h-1]);++c<=h;)p=u[c],O.shift(),O.push(p[0]),S.shift(),S.push(p[1]),Vu(P,O,S);return u.pop(),P.push("L",p),P.join("")}function Ss(u){if(u.length<4)return Yn(u);for(var c=[],h=-1,p=u.length,m,b=[0],O=[0];++h<3;)m=u[h],b.push(m[0]),O.push(m[1]);for(c.push(an(hi,b)+","+an(hi,O)),--h;++h<p;)m=u[h],b.shift(),b.push(m[0]),O.shift(),O.push(m[1]),Vu(c,b,O);return c.join("")}function To(u){for(var c,h=-1,p=u.length,m=p+4,b,O=[],S=[];++h<4;)b=u[h%p],O.push(b[0]),S.push(b[1]);for(c=[an(hi,O),",",an(hi,S)],--h;++h<m;)b=u[h%p],O.shift(),O.push(b[0]),S.shift(),S.push(b[1]),Vu(c,O,S);return c.join("")}function Oo(u,c){var h=u.length-1;if(h)for(var p=u[0][0],m=u[0][1],b=u[h][0]-p,O=u[h][1]-m,S=-1,P,N;++S<=h;)P=u[S],N=S/h,P[0]=c*P[0]+(1-c)*(p+N*b),P[1]=c*P[1]+(1-c)*(m+N*O);return qu(u)}function an(u,c){return u[0]*c[0]+u[1]*c[1]+u[2]*c[2]+u[3]*c[3]}var Es=[0,2/3,1/3,0],As=[0,1/3,2/3,0],hi=[0,1/6,2/3,1/6];function Vu(u,c,h){u.push("C",an(Es,c),",",an(Es,h),",",an(As,c),",",an(As,h),",",an(hi,c),",",an(hi,h))}function Yu(u,c){return(c[1]-u[1])/(c[0]-u[0])}function Mo(u){for(var c=0,h=u.length-1,p=[],m=u[0],b=u[1],O=p[0]=Yu(m,b);++c<h;)p[c]=(O+(O=Yu(m=b,b=u[c+1])))/2;return p[c]=O,p}function ko(u){for(var c=[],h,p,m,b,O=Mo(u),S=-1,P=u.length-1;++S<P;)h=Yu(u[S],u[S+1]),_(h)<ar?O[S]=O[S+1]=0:(p=O[S]/h,m=O[S+1]/h,b=p*p+m*m,b>9&&(b=h*3/Math.sqrt(b),O[S]=b*p,O[S+1]=b*m));for(S=-1;++S<=P;)b=(u[Math.min(P,S+1)][0]-u[Math.max(0,S-1)][0])/(6*(1+O[S]*O[S])),c.push([b||0,O[S]*b||0]);return c}function Jy(u){return u.length<3?Yn(u):u[0]+Ha(u,ko(u))}t.svg.line.radial=function(){var u=Wc(Rv);return u.radius=u.x,delete u.x,u.angle=u.y,delete u.y,u};function Rv(u){for(var c,h=-1,p=u.length,m,b;++h<p;)c=u[h],m=c[0],b=c[1]-wi,c[0]=m*Math.cos(b),c[1]=m*Math.sin(b);return u}function Vc(u){var c=$i,h=$i,p=0,m=Bi,b=Gc,O=Yn,S=O.key,P=O,N="L",D=.7;function B(z){var ie=[],oe=[],G=[],X=-1,J=z.length,ue,le=gr(c),re=gr(p),Pe=c===h?function(){return tt}:gr(h),Ue=p===m?function(){return je}:gr(m),tt,je;function at(){ie.push("M",O(u(G),D),N,P(u(oe.reverse()),D),"Z")}for(;++X<J;)b.call(this,ue=z[X],X)?(oe.push([tt=+le.call(this,ue,X),je=+re.call(this,ue,X)]),G.push([+Pe.call(this,ue,X),+Ue.call(this,ue,X)])):oe.length&&(at(),oe=[],G=[]);return oe.length&&at(),ie.length?ie.join(""):null}return B.x=function(z){return arguments.length?(c=h=z,B):h},B.x0=function(z){return arguments.length?(c=z,B):c},B.x1=function(z){return arguments.length?(h=z,B):h},B.y=function(z){return arguments.length?(p=m=z,B):m},B.y0=function(z){return arguments.length?(p=z,B):p},B.y1=function(z){return arguments.length?(m=z,B):m},B.defined=function(z){return arguments.length?(b=z,B):b},B.interpolate=function(z){return arguments.length?(typeof z=="function"?S=O=z:S=(O=Wu.get(z)||Yn).key,P=O.reverse||O,N=O.closed?"M":"L",B):S},B.tension=function(z){return arguments.length?(D=z,B):D},B}Hu.reverse=Wa,Wa.reverse=Hu,t.svg.area=function(){return Vc(nt)},t.svg.area.radial=function(){var u=Vc(Rv);return u.radius=u.x,delete u.x,u.innerRadius=u.x0,delete u.x0,u.outerRadius=u.x1,delete u.x1,u.angle=u.y,delete u.y,u.startAngle=u.y0,delete u.y0,u.endAngle=u.y1,delete u.y1,u};function Yc(u){return u.source}function Xc(u){return u.target}t.svg.chord=function(){var u=Yc,c=Xc,h=e1,p=Uc,m=ws;function b(D,B){var z=O(this,u,D,B),ie=O(this,c,D,B);return"M"+z.p0+P(z.r,z.p1,z.a1-z.a0)+(S(z,ie)?N(z.r,z.p1,z.r,z.p0):N(z.r,z.p1,ie.r,ie.p0)+P(ie.r,ie.p1,ie.a1-ie.a0)+N(ie.r,ie.p1,z.r,z.p0))+"Z"}function O(D,B,z,ie){var oe=B.call(D,z,ie),G=h.call(D,oe,ie),X=p.call(D,oe,ie)-wi,J=m.call(D,oe,ie)-wi;return{r:G,a0:X,a1:J,p0:[G*Math.cos(X),G*Math.sin(X)],p1:[G*Math.cos(J),G*Math.sin(J)]}}function S(D,B){return D.a0==B.a0&&D.a1==B.a1}function P(D,B,z){return"A"+D+","+D+" 0 "+ +(z>Di)+",1 "+B}function N(D,B,z,ie){return"Q 0,0 "+ie}return b.radius=function(D){return arguments.length?(h=gr(D),b):h},b.source=function(D){return arguments.length?(u=gr(D),b):u},b.target=function(D){return arguments.length?(c=gr(D),b):c},b.startAngle=function(D){return arguments.length?(p=gr(D),b):p},b.endAngle=function(D){return arguments.length?(m=gr(D),b):m},b};function e1(u){return u.radius}t.svg.diagonal=function(){var u=Yc,c=Xc,h=qa;function p(m,b){var O=u.call(this,m,b),S=c.call(this,m,b),P=(O.y+S.y)/2,N=[O,{x:O.x,y:P},{x:S.x,y:P},S];return N=N.map(h),"M"+N[0]+"C"+N[1]+" "+N[2]+" "+N[3]}return p.source=function(m){return arguments.length?(u=gr(m),p):u},p.target=function(m){return arguments.length?(c=gr(m),p):c},p.projection=function(m){return arguments.length?(h=m,p):h},p};function qa(u){return[u.x,u.y]}t.svg.diagonal.radial=function(){var u=t.svg.diagonal(),c=qa,h=u.projection;return u.projection=function(p){return arguments.length?h(Kc(c=p)):c},u};function Kc(u){return function(){var c=u.apply(this,arguments),h=c[0],p=c[1]-wi;return[h*Math.cos(p),h*Math.sin(p)]}}t.svg.symbol=function(){var u=r1,c=t1;function h(p,m){return(Iv.get(u.call(this,p,m))||Pv)(c.call(this,p,m))}return h.type=function(p){return arguments.length?(u=gr(p),h):u},h.size=function(p){return arguments.length?(c=gr(p),h):c},h};function t1(){return 64}function r1(){return"circle"}function Pv(u){var c=Math.sqrt(u/Di);return"M0,"+c+"A"+c+","+c+" 0 1,1 0,"+-c+"A"+c+","+c+" 0 1,1 0,"+c+"Z"}var Iv=t.map({circle:Pv,cross:function(u){var c=Math.sqrt(u/5)/2;return"M"+-3*c+","+-c+"H"+-c+"V"+-3*c+"H"+c+"V"+-c+"H"+3*c+"V"+c+"H"+c+"V"+3*c+"H"+-c+"V"+c+"H"+-3*c+"Z"},diamond:function(u){var c=Math.sqrt(u/(2*Fv)),h=c*Fv;return"M0,"+-c+"L"+h+",0 0,"+c+" "+-h+",0Z"},square:function(u){var c=Math.sqrt(u)/2;return"M"+-c+","+-c+"L"+c+","+-c+" "+c+","+c+" "+-c+","+c+"Z"},"triangle-down":function(u){var c=Math.sqrt(u/Cs),h=c*Cs/2;return"M0,"+h+"L"+c+","+-h+" "+-c+","+-h+"Z"},"triangle-up":function(u){var c=Math.sqrt(u/Cs),h=c*Cs/2;return"M0,"+-h+"L"+c+","+h+" "+-c+","+h+"Z"}});t.svg.symbolTypes=Iv.keys();var Cs=Math.sqrt(3),Fv=Math.tan(30*Tp);Te.transition=function(u){for(var c=Wi||++Os,h=Ku(u),p=[],m,b,O=Ro||{time:Date.now(),ease:wo,delay:0,duration:250},S=-1,P=this.length;++S<P;){p.push(m=[]);for(var N=this[S],D=-1,B=N.length;++D<B;)(b=N[D])&&Po(b,D,h,c,O),m.push(b)}return Xu(p,h,c)},Te.interrupt=function(u){return this.each(u==null?Ts:Nv(Ku(u)))};var Ts=Nv(Ku());function Nv(u){return function(){var c,h,p;(c=this[u])&&(p=c[h=c.active])&&(p.timer.c=null,p.timer.t=NaN,--c.count?delete c[h]:delete this[u],c.active+=.5,p.event&&p.event.interrupt.call(this,this.__data__,p.index))}}function Xu(u,c,h){return qt(u,Br),u.namespace=c,u.id=h,u}var Br=[],Os=0,Wi,Ro;Br.call=Te.call,Br.empty=Te.empty,Br.node=Te.node,Br.size=Te.size,t.transition=function(u,c){return u&&u.transition?Wi?u.transition(c):u:t.selection().transition(u)},t.transition.prototype=Br,Br.select=function(u){var c=this.id,h=this.namespace,p=[],m,b,O;u=W(u);for(var S=-1,P=this.length;++S<P;){p.push(m=[]);for(var N=this[S],D=-1,B=N.length;++D<B;)(O=N[D])&&(b=u.call(O,O.__data__,D,S))?("__data__"in O&&(b.__data__=O.__data__),Po(b,D,h,c,O[h][c]),m.push(b)):m.push(null)}return Xu(p,h,c)},Br.selectAll=function(u){var c=this.id,h=this.namespace,p=[],m,b,O,S,P;u=ae(u);for(var N=-1,D=this.length;++N<D;)for(var B=this[N],z=-1,ie=B.length;++z<ie;)if(O=B[z]){P=O[h][c],b=u.call(O,O.__data__,z,N),p.push(m=[]);for(var oe=-1,G=b.length;++oe<G;)(S=b[oe])&&Po(S,oe,h,c,P),m.push(S)}return Xu(p,h,c)},Br.filter=function(u){var c=[],h,p,m;typeof u!="function"&&(u=Eu(u));for(var b=0,O=this.length;b<O;b++){c.push(h=[]);for(var p=this[b],S=0,P=p.length;S<P;S++)(m=p[S])&&u.call(m,m.__data__,S,b)&&h.push(m)}return Xu(c,this.namespace,this.id)},Br.tween=function(u,c){var h=this.id,p=this.namespace;return arguments.length<2?this.node()[p][h].tween.get(u):xi(this,c==null?function(m){m[p][h].tween.remove(u)}:function(m){m[p][h].tween.set(u,c)})};function Ms(u,c,h,p){var m=u.id,b=u.namespace;return xi(u,typeof h=="function"?function(O,S,P){O[b][m].tween.set(c,p(h.call(O,O.__data__,S,P)))}:(h=p(h),function(O){O[b][m].tween.set(c,h)}))}Br.attr=function(u,c){if(arguments.length<2){for(c in u)this.attr(c,u[c]);return this}var h=u=="transform"?_c:_i,p=t.ns.qualify(u);function m(){this.removeAttribute(p)}function b(){this.removeAttributeNS(p.space,p.local)}function O(P){return P==null?m:(P+="",function(){var N=this.getAttribute(p),D;return N!==P&&(D=h(N,P),function(B){this.setAttribute(p,D(B))})})}function S(P){return P==null?b:(P+="",function(){var N=this.getAttributeNS(p.space,p.local),D;return N!==P&&(D=h(N,P),function(B){this.setAttributeNS(p.space,p.local,D(B))})})}return Ms(this,"attr."+u,c,p.local?S:O)},Br.attrTween=function(u,c){var h=t.ns.qualify(u);function p(b,O){var S=c.call(this,b,O,this.getAttribute(h));return S&&function(P){this.setAttribute(h,S(P))}}function m(b,O){var S=c.call(this,b,O,this.getAttributeNS(h.space,h.local));return S&&function(P){this.setAttributeNS(h.space,h.local,S(P))}}return this.tween("attr."+u,h.local?m:p)},Br.style=function(u,c,h){var p=arguments.length;if(p<3){if(typeof u!="string"){p<2&&(c="");for(h in u)this.style(h,u[h],c);return this}h=""}function m(){this.style.removeProperty(u)}function b(O){return O==null?m:(O+="",function(){var S=o(this).getComputedStyle(this,null).getPropertyValue(u),P;return S!==O&&(P=_i(S,O),function(N){this.style.setProperty(u,P(N),h)})})}return Ms(this,"style."+u,c,b)},Br.styleTween=function(u,c,h){arguments.length<3&&(h="");function p(m,b){var O=c.call(this,m,b,o(this).getComputedStyle(this,null).getPropertyValue(u));return O&&function(S){this.style.setProperty(u,O(S),h)}}return this.tween("style."+u,p)},Br.text=function(u){return Ms(this,"text",u,Qc)};function Qc(u){return u==null&&(u=""),function(){this.textContent=u}}Br.remove=function(){var u=this.namespace;return this.each("end.transition",function(){var c;this[u].count<2&&(c=this.parentNode)&&c.removeChild(this)})},Br.ease=function(u){var c=this.id,h=this.namespace;return arguments.length<1?this.node()[h][c].ease:(typeof u!="function"&&(u=t.ease.apply(t,arguments)),xi(this,function(p){p[h][c].ease=u}))},Br.delay=function(u){var c=this.id,h=this.namespace;return arguments.length<1?this.node()[h][c].delay:xi(this,typeof u=="function"?function(p,m,b){p[h][c].delay=+u.call(p,p.__data__,m,b)}:(u=+u,function(p){p[h][c].delay=u}))},Br.duration=function(u){var c=this.id,h=this.namespace;return arguments.length<1?this.node()[h][c].duration:xi(this,typeof u=="function"?function(p,m,b){p[h][c].duration=Math.max(1,u.call(p,p.__data__,m,b))}:(u=Math.max(1,u),function(p){p[h][c].duration=u}))},Br.each=function(u,c){var h=this.id,p=this.namespace;if(arguments.length<2){var m=Ro,b=Wi;try{Wi=h,xi(this,function(O,S,P){Ro=O[p][h],u.call(O,O.__data__,S,P)})}finally{Ro=m,Wi=b}}else xi(this,function(O){var S=O[p][h];(S.event||(S.event=t.dispatch("start","end","interrupt"))).on(u,c)});return this},Br.transition=function(){for(var u=this.id,c=++Os,h=this.namespace,p=[],m,b,O,S,P=0,N=this.length;P<N;P++){p.push(m=[]);for(var b=this[P],D=0,B=b.length;D<B;D++)(O=b[D])&&(S=O[h][u],Po(O,D,h,c,{time:S.time,ease:S.ease,delay:S.delay+S.duration,duration:S.duration})),m.push(O)}return Xu(p,h,c)};function Ku(u){return u==null?"__transition__":"__transition_"+u+"__"}function Po(u,c,h,p,m){var b=u[h]||(u[h]={active:0,count:0}),O=b[p],S,P,N,D,B;function z(G){var X=O.delay;if(P.t=X+S,X<=G)return ie(G-X);P.c=ie}function ie(G){var X=b.active,J=b[X];J&&(J.timer.c=null,J.timer.t=NaN,--b.count,delete b[X],J.event&&J.event.interrupt.call(u,u.__data__,J.index));for(var ue in b)if(+ue<p){var le=b[ue];le.timer.c=null,le.timer.t=NaN,--b.count,delete b[ue]}P.c=oe,vo(function(){return P.c&&oe(G||1)&&(P.c=null,P.t=NaN),1},0,S),b.active=p,O.event&&O.event.start.call(u,u.__data__,c),B=[],O.tween.forEach(function(re,Pe){(Pe=Pe.call(u,u.__data__,c))&&B.push(Pe)}),D=O.ease,N=O.duration}function oe(G){for(var X=G/N,J=D(X),ue=B.length;ue>0;)B[--ue].call(u,J);if(X>=1)return O.event&&O.event.end.call(u,u.__data__,c),--b.count?delete b[p]:delete u[h],1}O||(S=m.time,P=vo(z,0,S),O=b[p]={tween:new F,time:S,timer:P,delay:m.delay,duration:m.duration,ease:m.ease,index:c},m=null,++b.count)}t.svg.axis=function(){var u=t.scale.linear(),c=Zc,h=6,p=6,m=3,b=[10],O=null,S;function P(N){N.each(function(){var D=t.select(this),B=this.__chart__||u,z=this.__chart__=u.copy(),ie=O??(z.ticks?z.ticks.apply(z,b):z.domain()),oe=S??(z.tickFormat?z.tickFormat.apply(z,b):nt),G=D.selectAll(".tick").data(ie,z),X=G.enter().insert("g",".domain").attr("class","tick").style("opacity",ar),J=t.transition(G.exit()).style("opacity",ar).remove(),ue=t.transition(G.order()).style("opacity",1),le=Math.max(h,0)+m,re,Pe=ms(z),Ue=D.selectAll(".domain").data([0]),tt=(Ue.enter().append("path").attr("class","domain"),t.transition(Ue));X.append("line"),X.append("text");var je=X.select("line"),at=ue.select("line"),vt=G.select("text").text(oe),Wt=X.select("text"),xt=ue.select("text"),zt=c==="top"||c==="left"?-1:1,or,Rr,pr,rt;if(c==="bottom"||c==="top"?(re=eh,or="x",pr="y",Rr="x2",rt="y2",vt.attr("dy",zt<0?"0em":".71em").style("text-anchor","middle"),tt.attr("d","M"+Pe[0]+","+zt*p+"V0H"+Pe[1]+"V"+zt*p)):(re=th,or="y",pr="x",Rr="y2",rt="x2",vt.attr("dy",".32em").style("text-anchor",zt<0?"end":"start"),tt.attr("d","M"+zt*p+","+Pe[0]+"H0V"+Pe[1]+"H"+zt*p)),je.attr(rt,zt*h),Wt.attr(pr,zt*le),at.attr(Rr,0).attr(rt,zt*h),xt.attr(or,0).attr(pr,zt*le),z.rangeBand){var Ht=z,Xt=Ht.rangeBand()/2;B=z=function(ur){return Ht(ur)+Xt}}else B.rangeBand?B=z:J.call(re,z,B);X.call(re,B,z),ue.call(re,z,z)})}return P.scale=function(N){return arguments.length?(u=N,P):u},P.orient=function(N){return arguments.length?(c=N in Jc?N+"":Zc,P):c},P.ticks=function(){return arguments.length?(b=n(arguments),P):b},P.tickValues=function(N){return arguments.length?(O=N,P):O},P.tickFormat=function(N){return arguments.length?(S=N,P):S},P.tickSize=function(N){var D=arguments.length;return D?(h=+N,p=+arguments[D-1],P):h},P.innerTickSize=function(N){return arguments.length?(h=+N,P):h},P.outerTickSize=function(N){return arguments.length?(p=+N,P):p},P.tickPadding=function(N){return arguments.length?(m=+N,P):m},P.tickSubdivide=function(){return arguments.length&&P},P};var Zc="bottom",Jc={top:1,right:1,bottom:1,left:1};function eh(u,c,h){u.attr("transform",function(p){var m=c(p);return"translate("+(isFinite(m)?m:h(p))+",0)"})}function th(u,c,h){u.attr("transform",function(p){var m=c(p);return"translate(0,"+(isFinite(m)?m:h(p))+")"})}t.svg.brush=function(){var u=ct(D,"brushstart","brush","brushend"),c=null,h=null,p=[0,0],m=[0,0],b,O,S=!0,P=!0,N=Qu[0];function D(G){G.each(function(){var X=t.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",oe).on("touchstart.brush",oe),J=X.selectAll(".background").data([0]);J.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),X.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var ue=X.selectAll(".resize").data(N,nt);ue.exit().remove(),ue.enter().append("g").attr("class",function(Ue){return"resize "+Ue}).style("cursor",function(Ue){return rh[Ue]}).append("rect").attr("x",function(Ue){return/[ew]$/.test(Ue)?-3:null}).attr("y",function(Ue){return/^[ns]/.test(Ue)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),ue.style("display",D.empty()?"none":null);var le=t.transition(X),re=t.transition(J),Pe;c&&(Pe=ms(c),re.attr("x",Pe[0]).attr("width",Pe[1]-Pe[0]),z(le)),h&&(Pe=ms(h),re.attr("y",Pe[0]).attr("height",Pe[1]-Pe[0]),ie(le)),B(le)})}D.event=function(G){G.each(function(){var X=u.of(this,arguments),J={x:p,y:m,i:b,j:O},ue=this.__chart__||J;this.__chart__=J,Wi?t.select(this).transition().each("start.brush",function(){b=ue.i,O=ue.j,p=ue.x,m=ue.y,X({type:"brushstart"})}).tween("brush:brush",function(){var le=Pn(p,J.x),re=Pn(m,J.y);return b=O=null,function(Pe){p=J.x=le(Pe),m=J.y=re(Pe),X({type:"brush",mode:"resize"})}}).each("end.brush",function(){b=J.i,O=J.j,X({type:"brush",mode:"resize"}),X({type:"brushend"})}):(X({type:"brushstart"}),X({type:"brush",mode:"resize"}),X({type:"brushend"}))})};function B(G){G.selectAll(".resize").attr("transform",function(X){return"translate("+p[+/e$/.test(X)]+","+m[+/^s/.test(X)]+")"})}function z(G){G.select(".extent").attr("x",p[0]),G.selectAll(".extent,.n>rect,.s>rect").attr("width",p[1]-p[0])}function ie(G){G.select(".extent").attr("y",m[0]),G.selectAll(".extent,.e>rect,.w>rect").attr("height",m[1]-m[0])}function oe(){var G=this,X=t.select(t.event.target),J=u.of(G,arguments),ue=t.select(G),le=X.datum(),re=!/^(n|s)$/.test(le)&&c,Pe=!/^(e|w)$/.test(le)&&h,Ue=X.classed("extent"),tt=Yl(G),je,at=t.mouse(G),vt,Wt=t.select(o(G)).on("keydown.brush",or).on("keyup.brush",Rr);if(t.event.changedTouches?Wt.on("touchmove.brush",pr).on("touchend.brush",Ht):Wt.on("mousemove.brush",pr).on("mouseup.brush",Ht),ue.interrupt().selectAll("*").interrupt(),Ue)at[0]=p[0]-at[0],at[1]=m[0]-at[1];else if(le){var xt=+/w$/.test(le),zt=+/^n/.test(le);vt=[p[1-xt]-at[0],m[1-zt]-at[1]],at[0]=p[xt],at[1]=m[zt]}else t.event.altKey&&(je=at.slice());ue.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",X.style("cursor")),J({type:"brushstart"}),pr();function or(){t.event.keyCode==32&&(Ue||(je=null,at[0]-=p[1],at[1]-=m[1],Ue=2),st())}function Rr(){t.event.keyCode==32&&Ue==2&&(at[0]+=p[1],at[1]+=m[1],Ue=0,st())}function pr(){var Xt=t.mouse(G),ur=!1;vt&&(Xt[0]+=vt[0],Xt[1]+=vt[1]),Ue||(t.event.altKey?(je||(je=[(p[0]+p[1])/2,(m[0]+m[1])/2]),at[0]=p[+(Xt[0]<je[0])],at[1]=m[+(Xt[1]<je[1])]):je=null),re&&rt(Xt,c,0)&&(z(ue),ur=!0),Pe&&rt(Xt,h,1)&&(ie(ue),ur=!0),ur&&(B(ue),J({type:"brush",mode:Ue?"move":"resize"}))}function rt(Xt,ur,Ar){var zr=ms(ur),Xr=zr[0],vn=zr[1],En=at[Ar],on=Ar?m:p,In=on[1]-on[0],I,H;if(Ue&&(Xr-=En,vn-=In+En),I=(Ar?P:S)?Math.max(Xr,Math.min(vn,Xt[Ar])):Xt[Ar],Ue?H=(I+=En)+In:(je&&(En=Math.max(Xr,Math.min(vn,2*je[Ar]-I))),En<I?(H=I,I=En):H=En),on[0]!=I||on[1]!=H)return Ar?O=null:b=null,on[0]=I,on[1]=H,!0}function Ht(){pr(),ue.style("pointer-events","all").selectAll(".resize").style("display",D.empty()?"none":null),t.select("body").style("cursor",null),Wt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),tt(),J({type:"brushend"})}}return D.x=function(G){return arguments.length?(c=G,N=Qu[!c<<1|!h],D):c},D.y=function(G){return arguments.length?(h=G,N=Qu[!c<<1|!h],D):h},D.clamp=function(G){return arguments.length?(c&&h?(S=!!G[0],P=!!G[1]):c?S=!!G:h&&(P=!!G),D):c&&h?[S,P]:c?S:h?P:null},D.extent=function(G){var X,J,ue,le,re;return arguments.length?(c&&(X=G[0],J=G[1],h&&(X=X[0],J=J[0]),b=[X,J],c.invert&&(X=c(X),J=c(J)),J<X&&(re=X,X=J,J=re),(X!=p[0]||J!=p[1])&&(p=[X,J])),h&&(ue=G[0],le=G[1],c&&(ue=ue[1],le=le[1]),O=[ue,le],h.invert&&(ue=h(ue),le=h(le)),le<ue&&(re=ue,ue=le,le=re),(ue!=m[0]||le!=m[1])&&(m=[ue,le])),D):(c&&(b?(X=b[0],J=b[1]):(X=p[0],J=p[1],c.invert&&(X=c.invert(X),J=c.invert(J)),J<X&&(re=X,X=J,J=re))),h&&(O?(ue=O[0],le=O[1]):(ue=m[0],le=m[1],h.invert&&(ue=h.invert(ue),le=h.invert(le)),le<ue&&(re=ue,ue=le,le=re))),c&&h?[[X,ue],[J,le]]:c?[X,J]:h&&[ue,le])},D.clear=function(){return D.empty()||(p=[0,0],m=[0,0],b=O=null),D},D.empty=function(){return!!c&&p[0]==p[1]||!!h&&m[0]==m[1]},t.rebind(D,u,"on")};var rh={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Qu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];t.text=ac(function(u){return u.responseText}),t.json=function(u,c){return es(u,"application/json",nh,c)};function nh(u){return JSON.parse(u.responseText)}t.html=function(u,c){return es(u,"text/html",ih,c)};function ih(u){var c=i.createRange();return c.selectNode(i.body),c.createContextualFragment(u.responseText)}t.xml=ac(function(u){return u.responseXML}),e.exports?e.exports=t:this.d3=t}).apply(self)})(V4);var aae=V4.exports,hx=new Date,dx=new Date;function pn(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=function(a){return e(a=new Date(+a)),a},i.ceil=function(a){return e(a=new Date(a-1)),t(a,1),e(a),a},i.round=function(a){var o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=function(a,o){return t(a=new Date(+a),o==null?1:Math.floor(o)),a},i.range=function(a,o,l){var s=[],f;if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return s;do s.push(f=new Date(+a)),t(a,l),e(a);while(f<a&&a<o);return s},i.filter=function(a){return pn(function(o){if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},function(o,l){if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););})},r&&(i.count=function(a,o){return hx.setTime(+a),dx.setTime(+o),e(hx),e(dx),Math.floor(r(hx,dx))},i.every=function(a){return a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?function(o){return n(o)%a===0}:function(o){return i.count(0,o)%a===0}):i}),i}var Xm=pn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Xm.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?pn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):Xm};const UO=Xm;var jO=Xm.range,Km=1e3,Al=6e4,Qm=36e5,Y4=864e5,X4=6048e5,K4=pn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Km)},function(e,t){return(t-e)/Km},function(e){return e.getUTCSeconds()});const GO=K4;var WO=K4.range,Q4=pn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Km)},function(e,t){e.setTime(+e+t*Al)},function(e,t){return(t-e)/Al},function(e){return e.getMinutes()});const aY=Q4;var oY=Q4.range,Z4=pn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Km-e.getMinutes()*Al)},function(e,t){e.setTime(+e+t*Qm)},function(e,t){return(t-e)/Qm},function(e){return e.getHours()});const uY=Z4;var lY=Z4.range,J4=pn(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Al)/Y4},function(e){return e.getDate()-1});const pE=J4;var sY=J4.range;function jl(e){return pn(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,r){t.setDate(t.getDate()+r*7)},function(t,r){return(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Al)/X4})}var Zm=jl(0),Nd=jl(1),eF=jl(2),tF=jl(3),Cl=jl(4),rF=jl(5),nF=jl(6),HO=Zm.range,fY=Nd.range,cY=eF.range,hY=tF.range,dY=Cl.range,pY=rF.range,vY=nF.range,iF=pn(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});const mY=iF;var gY=iF.range,vE=pn(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});vE.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:pn(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,r){t.setFullYear(t.getFullYear()+r*e)})};const Rf=vE;var yY=vE.range,aF=pn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Al)},function(e,t){return(t-e)/Al},function(e){return e.getUTCMinutes()});const bY=aF;var xY=aF.range,oF=pn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Qm)},function(e,t){return(t-e)/Qm},function(e){return e.getUTCHours()});const wY=oF;var _Y=oF.range,uF=pn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Y4},function(e){return e.getUTCDate()-1});const mE=uF;var SY=uF.range;function Gl(e){return pn(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCDate(t.getUTCDate()+r*7)},function(t,r){return(r-t)/X4})}var Jm=Gl(0),Ld=Gl(1),lF=Gl(2),sF=Gl(3),Tl=Gl(4),fF=Gl(5),cF=Gl(6),qO=Jm.range,EY=Ld.range,AY=lF.range,CY=sF.range,TY=Tl.range,OY=fF.range,MY=cF.range,hF=pn(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});const kY=hF;var RY=hF.range,gE=pn(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});gE.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:pn(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})};const Pf=gE;var PY=gE.range;const IY=Object.freeze(Object.defineProperty({__proto__:null,timeDay:pE,timeDays:sY,timeFriday:rF,timeFridays:pY,timeHour:uY,timeHours:lY,timeInterval:pn,timeMillisecond:UO,timeMilliseconds:jO,timeMinute:aY,timeMinutes:oY,timeMonday:Nd,timeMondays:fY,timeMonth:mY,timeMonths:gY,timeSaturday:nF,timeSaturdays:vY,timeSecond:GO,timeSeconds:WO,timeSunday:Zm,timeSundays:HO,timeThursday:Cl,timeThursdays:dY,timeTuesday:eF,timeTuesdays:cY,timeWednesday:tF,timeWednesdays:hY,timeWeek:Zm,timeWeeks:HO,timeYear:Rf,timeYears:yY,utcDay:mE,utcDays:SY,utcFriday:fF,utcFridays:OY,utcHour:wY,utcHours:_Y,utcMillisecond:UO,utcMilliseconds:jO,utcMinute:bY,utcMinutes:xY,utcMonday:Ld,utcMondays:EY,utcMonth:kY,utcMonths:RY,utcSaturday:cF,utcSaturdays:MY,utcSecond:GO,utcSeconds:WO,utcSunday:Jm,utcSundays:qO,utcThursday:Tl,utcThursdays:TY,utcTuesday:lF,utcTuesdays:AY,utcWednesday:sF,utcWednesdays:CY,utcWeek:Jm,utcWeeks:qO,utcYear:Pf,utcYears:PY},Symbol.toStringTag,{value:"Module"}));function px(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function vx(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function wh(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function dF(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,f=_h(i),d=Sh(i),g=_h(a),v=Sh(a),y=_h(o),E=Sh(o),M=_h(l),x=Sh(l),w=_h(s),_=Sh(s),T={a:De,A:We,b:_t,B:He,c:null,d:ZO,e:ZO,f:rX,g:hX,G:pX,H:JY,I:eX,j:tX,L:pF,m:nX,M:iX,p:we,q:qe,Q:t5,s:r5,S:aX,u:oX,U:uX,V:lX,w:sX,W:fX,x:null,X:null,y:cX,Y:dX,Z:vX,"%":e5},C={a:st,A:Ke,b:ct,B:yt,c:null,d:JO,e:JO,f:bX,g:MX,G:RX,H:mX,I:gX,j:yX,L:mF,m:xX,M:wX,p:qt,q:Yt,Q:t5,s:r5,S:_X,u:SX,U:EX,V:AX,w:CX,W:TX,x:null,X:null,y:OX,Y:kX,Z:PX,"%":e5},F={a:ge,A:me,b:Me,B:Fe,c:Le,d:KO,e:KO,f:XY,g:XO,G:YO,H:QO,I:QO,j:HY,L:YY,m:WY,M:qY,p:te,q:GY,Q:QY,s:ZY,S:VY,u:$Y,U:BY,V:zY,w:DY,W:UY,x:ut,X:nt,y:XO,Y:YO,Z:jY,"%":KY};T.x=L(r,T),T.X=L(n,T),T.c=L(t,T),C.x=L(r,C),C.X=L(n,C),C.c=L(t,C);function L(Qe,At){return function(jt){var Te=[],W=-1,ae=0,R=Qe.length,A,k,$;for(jt instanceof Date||(jt=new Date(+jt));++W<R;)Qe.charCodeAt(W)===37&&(Te.push(Qe.slice(ae,W)),(k=VO[A=Qe.charAt(++W)])!=null?A=Qe.charAt(++W):k=A==="e"?" ":"0",($=At[A])&&(A=$(jt,k)),Te.push(A),ae=W+1);return Te.push(Qe.slice(ae,W)),Te.join("")}}function V(Qe,At){return function(jt){var Te=wh(1900,void 0,1),W=j(Te,Qe,jt+="",0),ae,R;if(W!=jt.length)return null;if("Q"in Te)return new Date(Te.Q);if("s"in Te)return new Date(Te.s*1e3+("L"in Te?Te.L:0));if(At&&!("Z"in Te)&&(Te.Z=0),"p"in Te&&(Te.H=Te.H%12+Te.p*12),Te.m===void 0&&(Te.m="q"in Te?Te.q:0),"V"in Te){if(Te.V<1||Te.V>53)return null;"w"in Te||(Te.w=1),"Z"in Te?(ae=vx(wh(Te.y,0,1)),R=ae.getUTCDay(),ae=R>4||R===0?Ld.ceil(ae):Ld(ae),ae=mE.offset(ae,(Te.V-1)*7),Te.y=ae.getUTCFullYear(),Te.m=ae.getUTCMonth(),Te.d=ae.getUTCDate()+(Te.w+6)%7):(ae=px(wh(Te.y,0,1)),R=ae.getDay(),ae=R>4||R===0?Nd.ceil(ae):Nd(ae),ae=pE.offset(ae,(Te.V-1)*7),Te.y=ae.getFullYear(),Te.m=ae.getMonth(),Te.d=ae.getDate()+(Te.w+6)%7)}else("W"in Te||"U"in Te)&&("w"in Te||(Te.w="u"in Te?Te.u%7:"W"in Te?1:0),R="Z"in Te?vx(wh(Te.y,0,1)).getUTCDay():px(wh(Te.y,0,1)).getDay(),Te.m=0,Te.d="W"in Te?(Te.w+6)%7+Te.W*7-(R+5)%7:Te.w+Te.U*7-(R+6)%7);return"Z"in Te?(Te.H+=Te.Z/100|0,Te.M+=Te.Z%100,vx(Te)):px(Te)}}function j(Qe,At,jt,Te){for(var W=0,ae=At.length,R=jt.length,A,k;W<ae;){if(Te>=R)return-1;if(A=At.charCodeAt(W++),A===37){if(A=At.charAt(W++),k=F[A in VO?At.charAt(W++):A],!k||(Te=k(Qe,jt,Te))<0)return-1}else if(A!=jt.charCodeAt(Te++))return-1}return Te}function te(Qe,At,jt){var Te=f.exec(At.slice(jt));return Te?(Qe.p=d[Te[0].toLowerCase()],jt+Te[0].length):-1}function ge(Qe,At,jt){var Te=y.exec(At.slice(jt));return Te?(Qe.w=E[Te[0].toLowerCase()],jt+Te[0].length):-1}function me(Qe,At,jt){var Te=g.exec(At.slice(jt));return Te?(Qe.w=v[Te[0].toLowerCase()],jt+Te[0].length):-1}function Me(Qe,At,jt){var Te=w.exec(At.slice(jt));return Te?(Qe.m=_[Te[0].toLowerCase()],jt+Te[0].length):-1}function Fe(Qe,At,jt){var Te=M.exec(At.slice(jt));return Te?(Qe.m=x[Te[0].toLowerCase()],jt+Te[0].length):-1}function Le(Qe,At,jt){return j(Qe,t,At,jt)}function ut(Qe,At,jt){return j(Qe,r,At,jt)}function nt(Qe,At,jt){return j(Qe,n,At,jt)}function De(Qe){return o[Qe.getDay()]}function We(Qe){return a[Qe.getDay()]}function _t(Qe){return s[Qe.getMonth()]}function He(Qe){return l[Qe.getMonth()]}function we(Qe){return i[+(Qe.getHours()>=12)]}function qe(Qe){return 1+~~(Qe.getMonth()/3)}function st(Qe){return o[Qe.getUTCDay()]}function Ke(Qe){return a[Qe.getUTCDay()]}function ct(Qe){return s[Qe.getUTCMonth()]}function yt(Qe){return l[Qe.getUTCMonth()]}function qt(Qe){return i[+(Qe.getUTCHours()>=12)]}function Yt(Qe){return 1+~~(Qe.getUTCMonth()/3)}return{format:function(Qe){var At=L(Qe+="",T);return At.toString=function(){return Qe},At},parse:function(Qe){var At=V(Qe+="",!1);return At.toString=function(){return Qe},At},utcFormat:function(Qe){var At=L(Qe+="",C);return At.toString=function(){return Qe},At},utcParse:function(Qe){var At=V(Qe+="",!0);return At.toString=function(){return Qe},At}}}var VO={"-":"",_:" ",0:"0"},Sn=/^\s*\d+/,FY=/^%/,NY=/[\\^$*+?|[\]().{}]/g;function br(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function LY(e){return e.replace(NY,"\\$&")}function _h(e){return new RegExp("^(?:"+e.map(LY).join("|")+")","i")}function Sh(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function DY(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function $Y(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function BY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function zY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function UY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function YO(e,t,r){var n=Sn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function XO(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function jY(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function GY(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function WY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function KO(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function HY(e,t,r){var n=Sn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function QO(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function qY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function VY(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function YY(e,t,r){var n=Sn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function XY(e,t,r){var n=Sn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function KY(e,t,r){var n=FY.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function QY(e,t,r){var n=Sn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function ZY(e,t,r){var n=Sn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function ZO(e,t){return br(e.getDate(),t,2)}function JY(e,t){return br(e.getHours(),t,2)}function eX(e,t){return br(e.getHours()%12||12,t,2)}function tX(e,t){return br(1+pE.count(Rf(e),e),t,3)}function pF(e,t){return br(e.getMilliseconds(),t,3)}function rX(e,t){return pF(e,t)+"000"}function nX(e,t){return br(e.getMonth()+1,t,2)}function iX(e,t){return br(e.getMinutes(),t,2)}function aX(e,t){return br(e.getSeconds(),t,2)}function oX(e){var t=e.getDay();return t===0?7:t}function uX(e,t){return br(Zm.count(Rf(e)-1,e),t,2)}function vF(e){var t=e.getDay();return t>=4||t===0?Cl(e):Cl.ceil(e)}function lX(e,t){return e=vF(e),br(Cl.count(Rf(e),e)+(Rf(e).getDay()===4),t,2)}function sX(e){return e.getDay()}function fX(e,t){return br(Nd.count(Rf(e)-1,e),t,2)}function cX(e,t){return br(e.getFullYear()%100,t,2)}function hX(e,t){return e=vF(e),br(e.getFullYear()%100,t,2)}function dX(e,t){return br(e.getFullYear()%1e4,t,4)}function pX(e,t){var r=e.getDay();return e=r>=4||r===0?Cl(e):Cl.ceil(e),br(e.getFullYear()%1e4,t,4)}function vX(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+br(t/60|0,"0",2)+br(t%60,"0",2)}function JO(e,t){return br(e.getUTCDate(),t,2)}function mX(e,t){return br(e.getUTCHours(),t,2)}function gX(e,t){return br(e.getUTCHours()%12||12,t,2)}function yX(e,t){return br(1+mE.count(Pf(e),e),t,3)}function mF(e,t){return br(e.getUTCMilliseconds(),t,3)}function bX(e,t){return mF(e,t)+"000"}function xX(e,t){return br(e.getUTCMonth()+1,t,2)}function wX(e,t){return br(e.getUTCMinutes(),t,2)}function _X(e,t){return br(e.getUTCSeconds(),t,2)}function SX(e){var t=e.getUTCDay();return t===0?7:t}function EX(e,t){return br(Jm.count(Pf(e)-1,e),t,2)}function gF(e){var t=e.getUTCDay();return t>=4||t===0?Tl(e):Tl.ceil(e)}function AX(e,t){return e=gF(e),br(Tl.count(Pf(e),e)+(Pf(e).getUTCDay()===4),t,2)}function CX(e){return e.getUTCDay()}function TX(e,t){return br(Ld.count(Pf(e)-1,e),t,2)}function OX(e,t){return br(e.getUTCFullYear()%100,t,2)}function MX(e,t){return e=gF(e),br(e.getUTCFullYear()%100,t,2)}function kX(e,t){return br(e.getUTCFullYear()%1e4,t,4)}function RX(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Tl(e):Tl.ceil(e),br(e.getUTCFullYear()%1e4,t,4)}function PX(){return"+0000"}function e5(){return"%"}function t5(e){return+e}function r5(e){return Math.floor(+e/1e3)}var Ls,yF,bF,yE,bE;xF({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function xF(e){return Ls=dF(e),yF=Ls.format,bF=Ls.parse,yE=Ls.utcFormat,bE=Ls.utcParse,Ls}var wF="%Y-%m-%dT%H:%M:%S.%LZ";function IX(e){return e.toISOString()}var FX=Date.prototype.toISOString?IX:yE(wF);const NX=FX;function LX(e){var t=new Date(e);return isNaN(t)?null:t}var DX=+new Date("2000-01-01T00:00:00.000Z")?LX:bE(wF);const $X=DX,BX=Object.freeze(Object.defineProperty({__proto__:null,isoFormat:NX,isoParse:$X,get timeFormat(){return yF},timeFormatDefaultLocale:xF,timeFormatLocale:dF,get timeParse(){return bF},get utcFormat(){return yE},get utcParse(){return bE}},Symbol.toStringTag,{value:"Module"})),oae=Rl(BX);function zX(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function eg(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function If(e){return e=eg(Math.abs(e)),e?e[1]:NaN}function UX(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>n&&(l=Math.max(1,n-s)),a.push(r.substring(i-=l,i+l)),!((s+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function jX(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var GX=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tg(e){if(!(t=GX.exec(e)))throw new Error("invalid format: "+e);var t;return new Kg({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}tg.prototype=Kg.prototype;function Kg(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Kg.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function WX(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var _F;function HX(e,t){var r=eg(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(_F=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+eg(e,Math.max(0,t+a-1))[0]}function n5(e,t){var r=eg(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const i5={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:zX,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return n5(e*100,t)},r:n5,s:HX,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function a5(e){return e}var o5=Array.prototype.map,u5=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function SF(e){var t=e.grouping===void 0||e.thousands===void 0?a5:UX(o5.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?a5:jX(o5.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"-":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function f(g){g=tg(g);var v=g.fill,y=g.align,E=g.sign,M=g.symbol,x=g.zero,w=g.width,_=g.comma,T=g.precision,C=g.trim,F=g.type;F==="n"?(_=!0,F="g"):i5[F]||(T===void 0&&(T=12),C=!0,F="g"),(x||v==="0"&&y==="=")&&(x=!0,v="0",y="=");var L=M==="$"?r:M==="#"&&/[boxX]/.test(F)?"0"+F.toLowerCase():"",V=M==="$"?n:/[%p]/.test(F)?o:"",j=i5[F],te=/[defgprs%]/.test(F);T=T===void 0?6:/[gprs]/.test(F)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function ge(me){var Me=L,Fe=V,Le,ut,nt;if(F==="c")Fe=j(me)+Fe,me="";else{me=+me;var De=me<0||1/me<0;if(me=isNaN(me)?s:j(Math.abs(me),T),C&&(me=WX(me)),De&&+me==0&&E!=="+"&&(De=!1),Me=(De?E==="("?E:l:E==="-"||E==="("?"":E)+Me,Fe=(F==="s"?u5[8+_F/3]:"")+Fe+(De&&E==="("?")":""),te){for(Le=-1,ut=me.length;++Le<ut;)if(nt=me.charCodeAt(Le),48>nt||nt>57){Fe=(nt===46?i+me.slice(Le+1):me.slice(Le))+Fe,me=me.slice(0,Le);break}}}_&&!x&&(me=t(me,1/0));var We=Me.length+me.length+Fe.length,_t=We<w?new Array(w-We+1).join(v):"";switch(_&&x&&(me=t(_t+me,_t.length?w-Fe.length:1/0),_t=""),y){case"<":me=Me+me+Fe+_t;break;case"=":me=Me+_t+me+Fe;break;case"^":me=_t.slice(0,We=_t.length>>1)+Me+me+Fe+_t.slice(We);break;default:me=_t+Me+me+Fe;break}return a(me)}return ge.toString=function(){return g+""},ge}function d(g,v){var y=f((g=tg(g),g.type="f",g)),E=Math.max(-8,Math.min(8,Math.floor(If(v)/3)))*3,M=Math.pow(10,-E),x=u5[8+E/3];return function(w){return y(M*w)+x}}return{format:f,formatPrefix:d}}var v0,EF,AF;CF({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function CF(e){return v0=SF(e),EF=v0.format,AF=v0.formatPrefix,v0}function qX(e){return Math.max(0,-If(Math.abs(e)))}function VX(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(If(t)/3)))*3-If(Math.abs(e)))}function YX(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,If(t)-If(e))+1}const XX=Object.freeze(Object.defineProperty({__proto__:null,FormatSpecifier:Kg,get format(){return EF},formatDefaultLocale:CF,formatLocale:SF,get formatPrefix(){return AF},formatSpecifier:tg,precisionFixed:qX,precisionPrefix:VX,precisionRound:YX},Symbol.toStringTag,{value:"Module"})),uae=Rl(XX);var KX=function(e){for(var t=e.length,r,n=0;n<t;n++)if(r=e.charCodeAt(n),(r<9||r>13)&&r!==32&&r!==133&&r!==160&&r!==5760&&r!==6158&&(r<8192||r>8205)&&r!==8232&&r!==8233&&r!==8239&&r!==8287&&r!==8288&&r!==12288&&r!==65279)return!1;return!0},QX=KX,lae=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&QX(r))return!1}else if(t!=="number")return!1;return e-e<1},TF={exports:{}};(function(e){(function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,l=t.max,s=t.random;function f(W,ae){if(W=W||"",ae=ae||{},W instanceof f)return W;if(!(this instanceof f))return new f(W,ae);var R=d(W);this._originalInput=W,this._r=R.r,this._g=R.g,this._b=R.b,this._a=R.a,this._roundA=a(100*this._a)/100,this._format=ae.format||R.format,this._gradientType=ae.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=R.ok,this._tc_id=i++}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var W=this.toRgb();return(W.r*299+W.g*587+W.b*114)/1e3},getLuminance:function(){var W=this.toRgb(),ae,R,A,k,$,fe;return ae=W.r/255,R=W.g/255,A=W.b/255,ae<=.03928?k=ae/12.92:k=t.pow((ae+.055)/1.055,2.4),R<=.03928?$=R/12.92:$=t.pow((R+.055)/1.055,2.4),A<=.03928?fe=A/12.92:fe=t.pow((A+.055)/1.055,2.4),.2126*k+.7152*$+.0722*fe},setAlpha:function(W){return this._a=_t(W),this._roundA=a(100*this._a)/100,this},toHsv:function(){var W=E(this._r,this._g,this._b);return{h:W.h*360,s:W.s,v:W.v,a:this._a}},toHsvString:function(){var W=E(this._r,this._g,this._b),ae=a(W.h*360),R=a(W.s*100),A=a(W.v*100);return this._a==1?"hsv("+ae+", "+R+"%, "+A+"%)":"hsva("+ae+", "+R+"%, "+A+"%, "+this._roundA+")"},toHsl:function(){var W=v(this._r,this._g,this._b);return{h:W.h*360,s:W.s,l:W.l,a:this._a}},toHslString:function(){var W=v(this._r,this._g,this._b),ae=a(W.h*360),R=a(W.s*100),A=a(W.l*100);return this._a==1?"hsl("+ae+", "+R+"%, "+A+"%)":"hsla("+ae+", "+R+"%, "+A+"%, "+this._roundA+")"},toHex:function(W){return x(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return w(this._r,this._g,this._b,this._a,W)},toHex8String:function(W){return"#"+this.toHex8(W)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(He(this._r,255)*100)+"%",g:a(He(this._g,255)*100)+"%",b:a(He(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(He(this._r,255)*100)+"%, "+a(He(this._g,255)*100)+"%, "+a(He(this._b,255)*100)+"%)":"rgba("+a(He(this._r,255)*100)+"%, "+a(He(this._g,255)*100)+"%, "+a(He(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:De[x(this._r,this._g,this._b,!0)]||!1},toFilter:function(W){var ae="#"+_(this._r,this._g,this._b,this._a),R=ae,A=this._gradientType?"GradientType = 1, ":"";if(W){var k=f(W);R="#"+_(k._r,k._g,k._b,k._a)}return"progid:DXImageTransform.Microsoft.gradient("+A+"startColorstr="+ae+",endColorstr="+R+")"},toString:function(W){var ae=!!W;W=W||this._format;var R=!1,A=this._a<1&&this._a>=0,k=!ae&&A&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return k?W==="name"&&this._a===0?this.toName():this.toRgbString():(W==="rgb"&&(R=this.toRgbString()),W==="prgb"&&(R=this.toPercentageRgbString()),(W==="hex"||W==="hex6")&&(R=this.toHexString()),W==="hex3"&&(R=this.toHexString(!0)),W==="hex4"&&(R=this.toHex8String(!0)),W==="hex8"&&(R=this.toHex8String()),W==="name"&&(R=this.toName()),W==="hsl"&&(R=this.toHslString()),W==="hsv"&&(R=this.toHsvString()),R||this.toHexString())},clone:function(){return f(this.toString())},_applyModification:function(W,ae){var R=W.apply(null,[this].concat([].slice.call(ae)));return this._r=R._r,this._g=R._g,this._b=R._b,this.setAlpha(R._a),this},lighten:function(){return this._applyModification(L,arguments)},brighten:function(){return this._applyModification(V,arguments)},darken:function(){return this._applyModification(j,arguments)},desaturate:function(){return this._applyModification(T,arguments)},saturate:function(){return this._applyModification(C,arguments)},greyscale:function(){return this._applyModification(F,arguments)},spin:function(){return this._applyModification(te,arguments)},_applyCombination:function(W,ae){return W.apply(null,[this].concat([].slice.call(ae)))},analogous:function(){return this._applyCombination(Le,arguments)},complement:function(){return this._applyCombination(ge,arguments)},monochromatic:function(){return this._applyCombination(ut,arguments)},splitcomplement:function(){return this._applyCombination(Fe,arguments)},triad:function(){return this._applyCombination(me,arguments)},tetrad:function(){return this._applyCombination(Me,arguments)}},f.fromRatio=function(W,ae){if(typeof W=="object"){var R={};for(var A in W)W.hasOwnProperty(A)&&(A==="a"?R[A]=W[A]:R[A]=yt(W[A]));W=R}return f(W,ae)};function d(W){var ae={r:0,g:0,b:0},R=1,A=null,k=null,$=null,fe=!1,Ie=!1;return typeof W=="string"&&(W=jt(W)),typeof W=="object"&&(At(W.r)&&At(W.g)&&At(W.b)?(ae=g(W.r,W.g,W.b),fe=!0,Ie=String(W.r).substr(-1)==="%"?"prgb":"rgb"):At(W.h)&&At(W.s)&&At(W.v)?(A=yt(W.s),k=yt(W.v),ae=M(W.h,A,k),fe=!0,Ie="hsv"):At(W.h)&&At(W.s)&&At(W.l)&&(A=yt(W.s),$=yt(W.l),ae=y(W.h,A,$),fe=!0,Ie="hsl"),W.hasOwnProperty("a")&&(R=W.a)),R=_t(R),{ok:fe,format:W.format||Ie,r:o(255,l(ae.r,0)),g:o(255,l(ae.g,0)),b:o(255,l(ae.b,0)),a:R}}function g(W,ae,R){return{r:He(W,255)*255,g:He(ae,255)*255,b:He(R,255)*255}}function v(W,ae,R){W=He(W,255),ae=He(ae,255),R=He(R,255);var A=l(W,ae,R),k=o(W,ae,R),$,fe,Ie=(A+k)/2;if(A==k)$=fe=0;else{var ze=A-k;switch(fe=Ie>.5?ze/(2-A-k):ze/(A+k),A){case W:$=(ae-R)/ze+(ae<R?6:0);break;case ae:$=(R-W)/ze+2;break;case R:$=(W-ae)/ze+4;break}$/=6}return{h:$,s:fe,l:Ie}}function y(W,ae,R){var A,k,$;W=He(W,360),ae=He(ae,100),R=He(R,100);function fe(Qt,fr,ir){return ir<0&&(ir+=1),ir>1&&(ir-=1),ir<1/6?Qt+(fr-Qt)*6*ir:ir<1/2?fr:ir<2/3?Qt+(fr-Qt)*(2/3-ir)*6:Qt}if(ae===0)A=k=$=R;else{var Ie=R<.5?R*(1+ae):R+ae-R*ae,ze=2*R-Ie;A=fe(ze,Ie,W+1/3),k=fe(ze,Ie,W),$=fe(ze,Ie,W-1/3)}return{r:A*255,g:k*255,b:$*255}}function E(W,ae,R){W=He(W,255),ae=He(ae,255),R=He(R,255);var A=l(W,ae,R),k=o(W,ae,R),$,fe,Ie=A,ze=A-k;if(fe=A===0?0:ze/A,A==k)$=0;else{switch(A){case W:$=(ae-R)/ze+(ae<R?6:0);break;case ae:$=(R-W)/ze+2;break;case R:$=(W-ae)/ze+4;break}$/=6}return{h:$,s:fe,v:Ie}}function M(W,ae,R){W=He(W,360)*6,ae=He(ae,100),R=He(R,100);var A=t.floor(W),k=W-A,$=R*(1-ae),fe=R*(1-k*ae),Ie=R*(1-(1-k)*ae),ze=A%6,Qt=[R,fe,$,$,Ie,R][ze],fr=[Ie,R,R,fe,$,$][ze],ir=[$,$,Ie,R,R,fe][ze];return{r:Qt*255,g:fr*255,b:ir*255}}function x(W,ae,R,A){var k=[ct(a(W).toString(16)),ct(a(ae).toString(16)),ct(a(R).toString(16))];return A&&k[0].charAt(0)==k[0].charAt(1)&&k[1].charAt(0)==k[1].charAt(1)&&k[2].charAt(0)==k[2].charAt(1)?k[0].charAt(0)+k[1].charAt(0)+k[2].charAt(0):k.join("")}function w(W,ae,R,A,k){var $=[ct(a(W).toString(16)),ct(a(ae).toString(16)),ct(a(R).toString(16)),ct(qt(A))];return k&&$[0].charAt(0)==$[0].charAt(1)&&$[1].charAt(0)==$[1].charAt(1)&&$[2].charAt(0)==$[2].charAt(1)&&$[3].charAt(0)==$[3].charAt(1)?$[0].charAt(0)+$[1].charAt(0)+$[2].charAt(0)+$[3].charAt(0):$.join("")}function _(W,ae,R,A){var k=[ct(qt(A)),ct(a(W).toString(16)),ct(a(ae).toString(16)),ct(a(R).toString(16))];return k.join("")}f.equals=function(W,ae){return!W||!ae?!1:f(W).toRgbString()==f(ae).toRgbString()},f.random=function(){return f.fromRatio({r:s(),g:s(),b:s()})};function T(W,ae){ae=ae===0?0:ae||10;var R=f(W).toHsl();return R.s-=ae/100,R.s=we(R.s),f(R)}function C(W,ae){ae=ae===0?0:ae||10;var R=f(W).toHsl();return R.s+=ae/100,R.s=we(R.s),f(R)}function F(W){return f(W).desaturate(100)}function L(W,ae){ae=ae===0?0:ae||10;var R=f(W).toHsl();return R.l+=ae/100,R.l=we(R.l),f(R)}function V(W,ae){ae=ae===0?0:ae||10;var R=f(W).toRgb();return R.r=l(0,o(255,R.r-a(255*-(ae/100)))),R.g=l(0,o(255,R.g-a(255*-(ae/100)))),R.b=l(0,o(255,R.b-a(255*-(ae/100)))),f(R)}function j(W,ae){ae=ae===0?0:ae||10;var R=f(W).toHsl();return R.l-=ae/100,R.l=we(R.l),f(R)}function te(W,ae){var R=f(W).toHsl(),A=(R.h+ae)%360;return R.h=A<0?360+A:A,f(R)}function ge(W){var ae=f(W).toHsl();return ae.h=(ae.h+180)%360,f(ae)}function me(W){var ae=f(W).toHsl(),R=ae.h;return[f(W),f({h:(R+120)%360,s:ae.s,l:ae.l}),f({h:(R+240)%360,s:ae.s,l:ae.l})]}function Me(W){var ae=f(W).toHsl(),R=ae.h;return[f(W),f({h:(R+90)%360,s:ae.s,l:ae.l}),f({h:(R+180)%360,s:ae.s,l:ae.l}),f({h:(R+270)%360,s:ae.s,l:ae.l})]}function Fe(W){var ae=f(W).toHsl(),R=ae.h;return[f(W),f({h:(R+72)%360,s:ae.s,l:ae.l}),f({h:(R+216)%360,s:ae.s,l:ae.l})]}function Le(W,ae,R){ae=ae||6,R=R||30;var A=f(W).toHsl(),k=360/R,$=[f(W)];for(A.h=(A.h-(k*ae>>1)+720)%360;--ae;)A.h=(A.h+k)%360,$.push(f(A));return $}function ut(W,ae){ae=ae||6;for(var R=f(W).toHsv(),A=R.h,k=R.s,$=R.v,fe=[],Ie=1/ae;ae--;)fe.push(f({h:A,s:k,v:$})),$=($+Ie)%1;return fe}f.mix=function(W,ae,R){R=R===0?0:R||50;var A=f(W).toRgb(),k=f(ae).toRgb(),$=R/100,fe={r:(k.r-A.r)*$+A.r,g:(k.g-A.g)*$+A.g,b:(k.b-A.b)*$+A.b,a:(k.a-A.a)*$+A.a};return f(fe)},f.readability=function(W,ae){var R=f(W),A=f(ae);return(t.max(R.getLuminance(),A.getLuminance())+.05)/(t.min(R.getLuminance(),A.getLuminance())+.05)},f.isReadable=function(W,ae,R){var A=f.readability(W,ae),k,$;switch($=!1,k=Te(R),k.level+k.size){case"AAsmall":case"AAAlarge":$=A>=4.5;break;case"AAlarge":$=A>=3;break;case"AAAsmall":$=A>=7;break}return $},f.mostReadable=function(W,ae,R){var A=null,k=0,$,fe,Ie,ze;R=R||{},fe=R.includeFallbackColors,Ie=R.level,ze=R.size;for(var Qt=0;Qt<ae.length;Qt++)$=f.readability(W,ae[Qt]),$>k&&(k=$,A=f(ae[Qt]));return f.isReadable(W,A,{level:Ie,size:ze})||!fe?A:(R.includeFallbackColors=!1,f.mostReadable(W,["#fff","#000"],R))};var nt=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},De=f.hexNames=We(nt);function We(W){var ae={};for(var R in W)W.hasOwnProperty(R)&&(ae[W[R]]=R);return ae}function _t(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function He(W,ae){st(W)&&(W="100%");var R=Ke(W);return W=o(ae,l(0,parseFloat(W))),R&&(W=parseInt(W*ae,10)/100),t.abs(W-ae)<1e-6?1:W%ae/parseFloat(ae)}function we(W){return o(1,l(0,W))}function qe(W){return parseInt(W,16)}function st(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function Ke(W){return typeof W=="string"&&W.indexOf("%")!=-1}function ct(W){return W.length==1?"0"+W:""+W}function yt(W){return W<=1&&(W=W*100+"%"),W}function qt(W){return t.round(parseFloat(W)*255).toString(16)}function Yt(W){return qe(W)/255}var Qe=function(){var W="[-\\+]?\\d+%?",ae="[-\\+]?\\d*\\.\\d+%?",R="(?:"+ae+")|(?:"+W+")",A="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",k="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?";return{CSS_UNIT:new RegExp(R),rgb:new RegExp("rgb"+A),rgba:new RegExp("rgba"+k),hsl:new RegExp("hsl"+A),hsla:new RegExp("hsla"+k),hsv:new RegExp("hsv"+A),hsva:new RegExp("hsva"+k),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function At(W){return!!Qe.CSS_UNIT.exec(W)}function jt(W){W=W.replace(r,"").replace(n,"").toLowerCase();var ae=!1;if(nt[W])W=nt[W],ae=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var R;return(R=Qe.rgb.exec(W))?{r:R[1],g:R[2],b:R[3]}:(R=Qe.rgba.exec(W))?{r:R[1],g:R[2],b:R[3],a:R[4]}:(R=Qe.hsl.exec(W))?{h:R[1],s:R[2],l:R[3]}:(R=Qe.hsla.exec(W))?{h:R[1],s:R[2],l:R[3],a:R[4]}:(R=Qe.hsv.exec(W))?{h:R[1],s:R[2],v:R[3]}:(R=Qe.hsva.exec(W))?{h:R[1],s:R[2],v:R[3],a:R[4]}:(R=Qe.hex8.exec(W))?{r:qe(R[1]),g:qe(R[2]),b:qe(R[3]),a:Yt(R[4]),format:ae?"name":"hex8"}:(R=Qe.hex6.exec(W))?{r:qe(R[1]),g:qe(R[2]),b:qe(R[3]),format:ae?"name":"hex"}:(R=Qe.hex4.exec(W))?{r:qe(R[1]+""+R[1]),g:qe(R[2]+""+R[2]),b:qe(R[3]+""+R[3]),a:Yt(R[4]+""+R[4]),format:ae?"name":"hex8"}:(R=Qe.hex3.exec(W))?{r:qe(R[1]+""+R[1]),g:qe(R[2]+""+R[2]),b:qe(R[3]+""+R[3]),format:ae?"name":"hex"}:!1}function Te(W){var ae,R;return W=W||{level:"AA",size:"small"},ae=(W.level||"AA").toUpperCase(),R=(W.size||"small").toLowerCase(),ae!=="AA"&&ae!=="AAA"&&(ae="AA"),R!=="small"&&R!=="large"&&(R="small"),{level:ae,size:R}}e.exports?e.exports=f:window.tinycolor=f})(Math)})(TF);var sae=TF.exports,ZX=JX;function JX(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var eK=tK;function tK(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}var rK=nK;function nK(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var OF=iK;function iK(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var aK=oK;function oK(e,t){if(e===t){var r=t[1],n=t[2],i=t[3],a=t[6],o=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=r,e[6]=t[9],e[7]=t[13],e[8]=n,e[9]=a,e[11]=t[14],e[12]=i,e[13]=o,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}var uK=lK;function lK(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],l=t[5],s=t[6],f=t[7],d=t[8],g=t[9],v=t[10],y=t[11],E=t[12],M=t[13],x=t[14],w=t[15],_=r*l-n*o,T=r*s-i*o,C=r*f-a*o,F=n*s-i*l,L=n*f-a*l,V=i*f-a*s,j=d*M-g*E,te=d*x-v*E,ge=d*w-y*E,me=g*x-v*M,Me=g*w-y*M,Fe=v*w-y*x,Le=_*Fe-T*Me+C*me+F*ge-L*te+V*j;return Le?(Le=1/Le,e[0]=(l*Fe-s*Me+f*me)*Le,e[1]=(i*Me-n*Fe-a*me)*Le,e[2]=(M*V-x*L+w*F)*Le,e[3]=(v*L-g*V-y*F)*Le,e[4]=(s*ge-o*Fe-f*te)*Le,e[5]=(r*Fe-i*ge+a*te)*Le,e[6]=(x*C-E*V-w*T)*Le,e[7]=(d*V-v*C+y*T)*Le,e[8]=(o*Me-l*ge+f*j)*Le,e[9]=(n*ge-r*Me-a*j)*Le,e[10]=(E*L-M*C+w*_)*Le,e[11]=(g*C-d*L-y*_)*Le,e[12]=(l*te-o*me-s*j)*Le,e[13]=(r*me-n*te+i*j)*Le,e[14]=(M*T-E*F-x*_)*Le,e[15]=(d*F-g*T+v*_)*Le,e):null}var sK=fK;function fK(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],l=t[5],s=t[6],f=t[7],d=t[8],g=t[9],v=t[10],y=t[11],E=t[12],M=t[13],x=t[14],w=t[15];return e[0]=l*(v*w-y*x)-g*(s*w-f*x)+M*(s*y-f*v),e[1]=-(n*(v*w-y*x)-g*(i*w-a*x)+M*(i*y-a*v)),e[2]=n*(s*w-f*x)-l*(i*w-a*x)+M*(i*f-a*s),e[3]=-(n*(s*y-f*v)-l*(i*y-a*v)+g*(i*f-a*s)),e[4]=-(o*(v*w-y*x)-d*(s*w-f*x)+E*(s*y-f*v)),e[5]=r*(v*w-y*x)-d*(i*w-a*x)+E*(i*y-a*v),e[6]=-(r*(s*w-f*x)-o*(i*w-a*x)+E*(i*f-a*s)),e[7]=r*(s*y-f*v)-o*(i*y-a*v)+d*(i*f-a*s),e[8]=o*(g*w-y*M)-d*(l*w-f*M)+E*(l*y-f*g),e[9]=-(r*(g*w-y*M)-d*(n*w-a*M)+E*(n*y-a*g)),e[10]=r*(l*w-f*M)-o*(n*w-a*M)+E*(n*f-a*l),e[11]=-(r*(l*y-f*g)-o*(n*y-a*g)+d*(n*f-a*l)),e[12]=-(o*(g*x-v*M)-d*(l*x-s*M)+E*(l*v-s*g)),e[13]=r*(g*x-v*M)-d*(n*x-i*M)+E*(n*v-i*g),e[14]=-(r*(l*x-s*M)-o*(n*x-i*M)+E*(n*s-i*l)),e[15]=r*(l*v-s*g)-o*(n*v-i*g)+d*(n*s-i*l),e}var cK=hK;function hK(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],l=e[6],s=e[7],f=e[8],d=e[9],g=e[10],v=e[11],y=e[12],E=e[13],M=e[14],x=e[15],w=t*o-r*a,_=t*l-n*a,T=t*s-i*a,C=r*l-n*o,F=r*s-i*o,L=n*s-i*l,V=f*E-d*y,j=f*M-g*y,te=f*x-v*y,ge=d*M-g*E,me=d*x-v*E,Me=g*x-v*M;return w*Me-_*me+T*ge+C*te-F*j+L*V}var dK=pK;function pK(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],l=t[4],s=t[5],f=t[6],d=t[7],g=t[8],v=t[9],y=t[10],E=t[11],M=t[12],x=t[13],w=t[14],_=t[15],T=r[0],C=r[1],F=r[2],L=r[3];return e[0]=T*n+C*l+F*g+L*M,e[1]=T*i+C*s+F*v+L*x,e[2]=T*a+C*f+F*y+L*w,e[3]=T*o+C*d+F*E+L*_,T=r[4],C=r[5],F=r[6],L=r[7],e[4]=T*n+C*l+F*g+L*M,e[5]=T*i+C*s+F*v+L*x,e[6]=T*a+C*f+F*y+L*w,e[7]=T*o+C*d+F*E+L*_,T=r[8],C=r[9],F=r[10],L=r[11],e[8]=T*n+C*l+F*g+L*M,e[9]=T*i+C*s+F*v+L*x,e[10]=T*a+C*f+F*y+L*w,e[11]=T*o+C*d+F*E+L*_,T=r[12],C=r[13],F=r[14],L=r[15],e[12]=T*n+C*l+F*g+L*M,e[13]=T*i+C*s+F*v+L*x,e[14]=T*a+C*f+F*y+L*w,e[15]=T*o+C*d+F*E+L*_,e}var vK=mK;function mK(e,t,r){var n=r[0],i=r[1],a=r[2],o,l,s,f,d,g,v,y,E,M,x,w;return t===e?(e[12]=t[0]*n+t[4]*i+t[8]*a+t[12],e[13]=t[1]*n+t[5]*i+t[9]*a+t[13],e[14]=t[2]*n+t[6]*i+t[10]*a+t[14],e[15]=t[3]*n+t[7]*i+t[11]*a+t[15]):(o=t[0],l=t[1],s=t[2],f=t[3],d=t[4],g=t[5],v=t[6],y=t[7],E=t[8],M=t[9],x=t[10],w=t[11],e[0]=o,e[1]=l,e[2]=s,e[3]=f,e[4]=d,e[5]=g,e[6]=v,e[7]=y,e[8]=E,e[9]=M,e[10]=x,e[11]=w,e[12]=o*n+d*i+E*a+t[12],e[13]=l*n+g*i+M*a+t[13],e[14]=s*n+v*i+x*a+t[14],e[15]=f*n+y*i+w*a+t[15]),e}var gK=yK;function yK(e,t,r){var n=r[0],i=r[1],a=r[2];return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*i,e[6]=t[6]*i,e[7]=t[7]*i,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}var bK=xK;function xK(e,t,r,n){var i=n[0],a=n[1],o=n[2],l=Math.sqrt(i*i+a*a+o*o),s,f,d,g,v,y,E,M,x,w,_,T,C,F,L,V,j,te,ge,me,Me,Fe,Le,ut;return Math.abs(l)<1e-6?null:(l=1/l,i*=l,a*=l,o*=l,s=Math.sin(r),f=Math.cos(r),d=1-f,g=t[0],v=t[1],y=t[2],E=t[3],M=t[4],x=t[5],w=t[6],_=t[7],T=t[8],C=t[9],F=t[10],L=t[11],V=i*i*d+f,j=a*i*d+o*s,te=o*i*d-a*s,ge=i*a*d-o*s,me=a*a*d+f,Me=o*a*d+i*s,Fe=i*o*d+a*s,Le=a*o*d-i*s,ut=o*o*d+f,e[0]=g*V+M*j+T*te,e[1]=v*V+x*j+C*te,e[2]=y*V+w*j+F*te,e[3]=E*V+_*j+L*te,e[4]=g*ge+M*me+T*Me,e[5]=v*ge+x*me+C*Me,e[6]=y*ge+w*me+F*Me,e[7]=E*ge+_*me+L*Me,e[8]=g*Fe+M*Le+T*ut,e[9]=v*Fe+x*Le+C*ut,e[10]=y*Fe+w*Le+F*ut,e[11]=E*Fe+_*Le+L*ut,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}var wK=_K;function _K(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],l=t[6],s=t[7],f=t[8],d=t[9],g=t[10],v=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*i+f*n,e[5]=o*i+d*n,e[6]=l*i+g*n,e[7]=s*i+v*n,e[8]=f*i-a*n,e[9]=d*i-o*n,e[10]=g*i-l*n,e[11]=v*i-s*n,e}var SK=EK;function EK(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],l=t[2],s=t[3],f=t[8],d=t[9],g=t[10],v=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i-f*n,e[1]=o*i-d*n,e[2]=l*i-g*n,e[3]=s*i-v*n,e[8]=a*n+f*i,e[9]=o*n+d*i,e[10]=l*n+g*i,e[11]=s*n+v*i,e}var AK=CK;function CK(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],l=t[2],s=t[3],f=t[4],d=t[5],g=t[6],v=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*i+f*n,e[1]=o*i+d*n,e[2]=l*i+g*n,e[3]=s*i+v*n,e[4]=f*i-a*n,e[5]=d*i-o*n,e[6]=g*i-l*n,e[7]=v*i-s*n,e}var TK=OK;function OK(e,t,r){var n,i,a,o=r[0],l=r[1],s=r[2],f=Math.sqrt(o*o+l*l+s*s);return Math.abs(f)<1e-6?null:(f=1/f,o*=f,l*=f,s*=f,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=l*o*a+s*n,e[2]=s*o*a-l*n,e[3]=0,e[4]=o*l*a-s*n,e[5]=l*l*a+i,e[6]=s*l*a+o*n,e[7]=0,e[8]=o*s*a+l*n,e[9]=l*s*a-o*n,e[10]=s*s*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}var MK=kK;function kK(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],l=n+n,s=i+i,f=a+a,d=n*l,g=n*s,v=n*f,y=i*s,E=i*f,M=a*f,x=o*l,w=o*s,_=o*f;return e[0]=1-(y+M),e[1]=g+_,e[2]=v-w,e[3]=0,e[4]=g-_,e[5]=1-(d+M),e[6]=E+x,e[7]=0,e[8]=v+w,e[9]=E-x,e[10]=1-(d+y),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}var RK=PK;function PK(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var IK=FK;function FK(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}var NK=LK;function LK(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=r,e[7]=0,e[8]=0,e[9]=-r,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var DK=$K;function $K(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=0,e[2]=-r,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=r,e[9]=0,e[10]=n,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var BK=zK;function zK(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=0,e[4]=-r,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var UK=jK;function jK(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,l=n+n,s=i+i,f=r*o,d=n*o,g=n*l,v=i*o,y=i*l,E=i*s,M=a*o,x=a*l,w=a*s;return e[0]=1-g-E,e[1]=d+w,e[2]=v-x,e[3]=0,e[4]=d-w,e[5]=1-f-E,e[6]=y+M,e[7]=0,e[8]=v+x,e[9]=y-M,e[10]=1-f-g,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var GK=WK;function WK(e,t,r,n,i,a,o){var l=1/(r-t),s=1/(i-n),f=1/(a-o);return e[0]=a*2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*s,e[6]=0,e[7]=0,e[8]=(r+t)*l,e[9]=(i+n)*s,e[10]=(o+a)*f,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*f,e[15]=0,e}var HK=qK;function qK(e,t,r,n,i){var a=1/Math.tan(t/2),o=1/(n-i);return e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(i+n)*o,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*i*n*o,e[15]=0,e}var VK=YK;function YK(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),l=Math.tan(t.rightDegrees*Math.PI/180),s=2/(o+l),f=2/(i+a);return e[0]=s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=f,e[6]=0,e[7]=0,e[8]=-((o-l)*s*.5),e[9]=(i-a)*f*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}var XK=KK;function KK(e,t,r,n,i,a,o){var l=1/(t-r),s=1/(n-i),f=1/(a-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*f,e[11]=0,e[12]=(t+r)*l,e[13]=(i+n)*s,e[14]=(o+a)*f,e[15]=1,e}var QK=OF,ZK=JK;function JK(e,t,r,n){var i,a,o,l,s,f,d,g,v,y,E=t[0],M=t[1],x=t[2],w=n[0],_=n[1],T=n[2],C=r[0],F=r[1],L=r[2];return Math.abs(E-C)<1e-6&&Math.abs(M-F)<1e-6&&Math.abs(x-L)<1e-6?QK(e):(d=E-C,g=M-F,v=x-L,y=1/Math.sqrt(d*d+g*g+v*v),d*=y,g*=y,v*=y,i=_*v-T*g,a=T*d-w*v,o=w*g-_*d,y=Math.sqrt(i*i+a*a+o*o),y?(y=1/y,i*=y,a*=y,o*=y):(i=0,a=0,o=0),l=g*o-v*a,s=v*i-d*o,f=d*a-g*i,y=Math.sqrt(l*l+s*s+f*f),y?(y=1/y,l*=y,s*=y,f*=y):(l=0,s=0,f=0),e[0]=i,e[1]=l,e[2]=d,e[3]=0,e[4]=a,e[5]=s,e[6]=g,e[7]=0,e[8]=o,e[9]=f,e[10]=v,e[11]=0,e[12]=-(i*E+a*M+o*x),e[13]=-(l*E+s*M+f*x),e[14]=-(d*E+g*M+v*x),e[15]=1,e)}var eQ=tQ;function tQ(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}var fae={create:ZX,clone:eK,copy:rK,identity:OF,transpose:aK,invert:uK,adjoint:sK,determinant:cK,multiply:dK,translate:vK,scale:gK,rotate:bK,rotateX:wK,rotateY:SK,rotateZ:AK,fromRotation:TK,fromRotationTranslation:MK,fromScaling:RK,fromTranslation:IK,fromXRotation:NK,fromYRotation:DK,fromZRotation:BK,fromQuat:UK,frustum:GK,perspective:HK,perspectiveFromFieldOfView:VK,ortho:XK,lookAt:ZK,str:eQ},Qg={exports:{}};Qg.exports=xE;Qg.exports.isMobile=xE;Qg.exports.default=xE;const rQ=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,nQ=/CrOS/,iQ=/android|ipad|playbook|silk/i;function xE(e){e||(e={});let t=e.ua;if(!t&&typeof navigator<"u"&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers["user-agent"]=="string"&&(t=t.headers["user-agent"]),typeof t!="string")return!1;let r=rQ.test(t)&&!nQ.test(t)||!!e.tablet&&iQ.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var cae=Qg.exports,aQ=!0,oQ=aQ,e2;typeof Jt.matchMedia=="function"?e2=!Jt.matchMedia("(hover: none)").matches:e2=oQ;var hae=e2,wE={exports:{}},mf=typeof Reflect=="object"?Reflect:null,l5=mf&&typeof mf.apply=="function"?mf.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},tm;mf&&typeof mf.ownKeys=="function"?tm=mf.ownKeys:Object.getOwnPropertySymbols?tm=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:tm=function(t){return Object.getOwnPropertyNames(t)};function uQ(e){console&&console.warn&&console.warn(e)}var MF=Number.isNaN||function(t){return t!==t};function Tr(){Tr.init.call(this)}wE.exports=Tr;wE.exports.once=cQ;Tr.EventEmitter=Tr;Tr.prototype._events=void 0;Tr.prototype._eventsCount=0;Tr.prototype._maxListeners=void 0;var s5=10;function Zg(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Tr,"defaultMaxListeners",{enumerable:!0,get:function(){return s5},set:function(e){if(typeof e!="number"||e<0||MF(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");s5=e}});Tr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};Tr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||MF(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function kF(e){return e._maxListeners===void 0?Tr.defaultMaxListeners:e._maxListeners}Tr.prototype.getMaxListeners=function(){return kF(this)};Tr.prototype.emit=function(t){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i=t==="error",a=this._events;if(a!==void 0)i=i&&a.error===void 0;else if(!i)return!1;if(i){var o;if(r.length>0&&(o=r[0]),o instanceof Error)throw o;var l=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw l.context=o,l}var s=a[t];if(s===void 0)return!1;if(typeof s=="function")l5(s,this,r);else for(var f=s.length,d=NF(s,f),n=0;n<f;++n)l5(d[n],this,r);return!0};function RF(e,t,r,n){var i,a,o;if(Zg(r),a=e._events,a===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),o=a[t]),o===void 0)o=a[t]=r,++e._eventsCount;else if(typeof o=="function"?o=a[t]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),i=kF(e),i>0&&o.length>i&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,uQ(l)}return e}Tr.prototype.addListener=function(t,r){return RF(this,t,r,!1)};Tr.prototype.on=Tr.prototype.addListener;Tr.prototype.prependListener=function(t,r){return RF(this,t,r,!0)};function lQ(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function PF(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=lQ.bind(n);return i.listener=r,n.wrapFn=i,i}Tr.prototype.once=function(t,r){return Zg(r),this.on(t,PF(this,t,r)),this};Tr.prototype.prependOnceListener=function(t,r){return Zg(r),this.prependListener(t,PF(this,t,r)),this};Tr.prototype.removeListener=function(t,r){var n,i,a,o,l;if(Zg(r),i=this._events,i===void 0)return this;if(n=i[t],n===void 0)return this;if(n===r||n.listener===r)--this._eventsCount===0?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||r));else if(typeof n!="function"){for(a=-1,o=n.length-1;o>=0;o--)if(n[o]===r||n[o].listener===r){l=n[o].listener,a=o;break}if(a<0)return this;a===0?n.shift():sQ(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,l||r)}return this};Tr.prototype.off=Tr.prototype.removeListener;Tr.prototype.removeAllListeners=function(t){var r,n,i;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[t]),this;if(arguments.length===0){var a=Object.keys(n),o;for(i=0;i<a.length;++i)o=a[i],o!=="removeListener"&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(r=n[t],typeof r=="function")this.removeListener(t,r);else if(r!==void 0)for(i=r.length-1;i>=0;i--)this.removeListener(t,r[i]);return this};function IF(e,t,r){var n=e._events;if(n===void 0)return[];var i=n[t];return i===void 0?[]:typeof i=="function"?r?[i.listener||i]:[i]:r?fQ(i):NF(i,i.length)}Tr.prototype.listeners=function(t){return IF(this,t,!0)};Tr.prototype.rawListeners=function(t){return IF(this,t,!1)};Tr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):FF.call(e,t)};Tr.prototype.listenerCount=FF;function FF(e){var t=this._events;if(t!==void 0){var r=t[e];if(typeof r=="function")return 1;if(r!==void 0)return r.length}return 0}Tr.prototype.eventNames=function(){return this._eventsCount>0?tm(this._events):[]};function NF(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function sQ(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function fQ(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function cQ(e,t){return new Promise(function(r,n){function i(o){e.removeListener(t,a),n(o)}function a(){typeof e.removeListener=="function"&&e.removeListener("error",i),r([].slice.call(arguments))}LF(e,t,a,{once:!0}),t!=="error"&&hQ(e,i,{once:!0})})}function hQ(e,t,r){typeof e.on=="function"&&LF(e,"error",t,r)}function LF(e,t,r,n){if(typeof e.on=="function")n.once?e.once(t,r):e.on(t,r);else if(typeof e.addEventListener=="function")e.addEventListener(t,function i(a){n.once&&e.removeEventListener(t,i),r(a)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var dae=wE.exports,DF=pQ,mx={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},dQ=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function pQ(e){var t=[];return e.replace(dQ,function(r,n,i){var a=n.toLowerCase();for(i=mQ(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==mx[a])return i.unshift(n),t.push(i);if(i.length<mx[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,mx[a])))}}),t}var vQ=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function mQ(e){var t=e.match(vQ);return t?t.map(Number):[]}var gQ={left:0,top:0},pae=yQ;function yQ(e,t,r){t=t||e.currentTarget||e.srcElement,Array.isArray(r)||(r=[0,0]);var n=e.clientX||0,i=e.clientY||0,a=bQ(t);return r[0]=n-a.left,r[1]=i-a.top,r}function bQ(e){return e===window||e===document||e===document.body?gQ:e.getBoundingClientRect()}function xQ(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{e=!1}return e}var vae=xQ();function wQ(){var e,t=0,r=!1;function n(i,a){return e.list.push({type:i,data:a?JSON.parse(JSON.stringify(a)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(i,a){return n("check",{seg1:i,seg2:a})},segmentChop:function(i,a){return n("div_seg",{seg:i,pt:a}),n("chop",{seg:i,pt:a})},statusRemove:function(i){return n("pop_seg",{seg:i})},segmentUpdate:function(i){return n("seg_update",{seg:i})},segmentNew:function(i,a){return n("new_seg",{seg:i,primary:a})},segmentRemove:function(i){return n("rem_seg",{seg:i})},tempStatus:function(i,a,o){return n("temp_status",{seg:i,above:a,below:o})},rewind:function(i){return n("rewind",{seg:i})},status:function(i,a,o){return n("status",{seg:i,above:a,below:o})},vert:function(i){return i===r?e:(r=i,n("vert",{x:i}))},log:function(i){return typeof i!="string"&&(i=JSON.stringify(i,!1," ")),n("log",{txt:i})},reset:function(){return n("reset")},selected:function(i){return n("selected",{segs:i})},chainStart:function(i){return n("chain_start",{seg:i})},chainRemoveHead:function(i,a){return n("chain_rem_head",{index:i,pt:a})},chainRemoveTail:function(i,a){return n("chain_rem_tail",{index:i,pt:a})},chainNew:function(i,a){return n("chain_new",{pt1:i,pt2:a})},chainMatch:function(i){return n("chain_match",{index:i})},chainClose:function(i){return n("chain_close",{index:i})},chainAddHead:function(i,a){return n("chain_add_head",{index:i,pt:a})},chainAddTail:function(i,a){return n("chain_add_tail",{index:i,pt:a})},chainConnect:function(i,a){return n("chain_con",{index1:i,index2:a})},chainReverse:function(i){return n("chain_rev",{index:i})},chainJoin:function(i,a){return n("chain_join",{index1:i,index2:a})},done:function(){return n("done")}},e}var _Q=wQ;function SQ(e){typeof e!="number"&&(e=1e-10);var t={epsilon:function(r){return typeof r=="number"&&(e=r),e},pointAboveOrOnLine:function(r,n,i){var a=n[0],o=n[1],l=i[0],s=i[1],f=r[0],d=r[1];return(l-a)*(d-o)-(s-o)*(f-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],l=r[0]-n[0],s=i[1]-n[1],f=l*o+a*s;if(f<e)return!1;var d=o*o+s*s;return!(f-d>-e)},pointsSameX:function(r,n){return Math.abs(r[0]-n[0])<e},pointsSameY:function(r,n){return Math.abs(r[1]-n[1])<e},pointsSame:function(r,n){return t.pointsSameX(r,n)&&t.pointsSameY(r,n)},pointsCompare:function(r,n){return t.pointsSameX(r,n)?t.pointsSameY(r,n)?0:r[1]<n[1]?-1:1:r[0]<n[0]?-1:1},pointsCollinear:function(r,n,i){var a=r[0]-n[0],o=r[1]-n[1],l=n[0]-i[0],s=n[1]-i[1];return Math.abs(a*s-l*o)<e},linesIntersect:function(r,n,i,a){var o=n[0]-r[0],l=n[1]-r[1],s=a[0]-i[0],f=a[1]-i[1],d=o*f-l*s;if(Math.abs(d)<e)return!1;var g=r[0]-i[0],v=r[1]-i[1],y=(s*v-f*g)/d,E=(o*v-l*g)/d,M={alongA:0,alongB:0,pt:[r[0]+y*o,r[1]+y*l]};return y<=-e?M.alongA=-2:y<e?M.alongA=-1:y-1<=-e?M.alongA=0:y-1<e?M.alongA=1:M.alongA=2,E<=-e?M.alongB=-2:E<e?M.alongB=-1:E-1<=-e?M.alongB=0:E-1<e?M.alongB=1:M.alongB=2,M},pointInsideRegion:function(r,n){for(var i=r[0],a=r[1],o=n[n.length-1][0],l=n[n.length-1][1],s=!1,f=0;f<n.length;f++){var d=n[f][0],g=n[f][1];g-a>e!=l-a>e&&(o-d)*(a-g)/(l-g)+d-i>e&&(s=!s),o=d,l=g}return s}};return t}var EQ=SQ,AQ={create:function(){var e={root:{root:!0,next:null},exists:function(t){return!(t===null||t===e.root)},isEmpty:function(){return e.root.next===null},getHead:function(){return e.root.next},insertBefore:function(t,r){for(var n=e.root,i=e.root.next;i!==null;){if(r(i)){t.prev=i.prev,t.next=i,i.prev.next=t,i.prev=t;return}n=i,i=i.next}n.next=t,t.prev=n,t.next=null},findTransition:function(t){for(var r=e.root,n=e.root.next;n!==null&&!t(n);)r=n,n=n.next;return{before:r===e.root?null:r,after:n,insert:function(i){return i.prev=r,i.next=n,r.next=i,n!==null&&(n.prev=i),i}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}},CQ=AQ,Eh=CQ;function TQ(e,t,r){function n(E,M){return{id:r?r.segmentId():-1,start:E,end:M,myFill:{above:null,below:null},otherFill:null}}function i(E,M,x){return{id:r?r.segmentId():-1,start:E,end:M,myFill:{above:x.myFill.above,below:x.myFill.below},otherFill:null}}var a=Eh.create();function o(E,M,x,w,_,T){var C=t.pointsCompare(M,_);return C!==0?C:t.pointsSame(x,T)?0:E!==w?E?1:-1:t.pointAboveOrOnLine(x,w?_:T,w?T:_)?1:-1}function l(E,M){a.insertBefore(E,function(x){var w=o(E.isStart,E.pt,M,x.isStart,x.pt,x.other.pt);return w<0})}function s(E,M){var x=Eh.node({isStart:!0,pt:E.start,seg:E,primary:M,other:null,status:null});return l(x,E.end),x}function f(E,M,x){var w=Eh.node({isStart:!1,pt:M.end,seg:M,primary:x,other:E,status:null});E.other=w,l(w,E.pt)}function d(E,M){var x=s(E,M);return f(x,E,M),x}function g(E,M){r&&r.segmentChop(E.seg,M),E.other.remove(),E.seg.end=M,E.other.pt=M,l(E.other,E.pt)}function v(E,M){var x=i(M,E.seg.end,E.seg);return g(E,M),d(x,E.primary)}function y(E,M){var x=Eh.create();function w(Le,ut){var nt=Le.seg.start,De=Le.seg.end,We=ut.seg.start,_t=ut.seg.end;return t.pointsCollinear(nt,We,_t)?t.pointsCollinear(De,We,_t)||t.pointAboveOrOnLine(De,We,_t)?1:-1:t.pointAboveOrOnLine(nt,We,_t)?1:-1}function _(Le){return x.findTransition(function(ut){var nt=w(Le,ut.ev);return nt>0})}function T(Le,ut){var nt=Le.seg,De=ut.seg,We=nt.start,_t=nt.end,He=De.start,we=De.end;r&&r.checkIntersection(nt,De);var qe=t.linesIntersect(We,_t,He,we);if(qe===!1){if(!t.pointsCollinear(We,_t,He)||t.pointsSame(We,we)||t.pointsSame(_t,He))return!1;var st=t.pointsSame(We,He),Ke=t.pointsSame(_t,we);if(st&&Ke)return ut;var ct=!st&&t.pointBetween(We,He,we),yt=!Ke&&t.pointBetween(_t,He,we);if(st)return yt?v(ut,_t):v(Le,we),ut;ct&&(Ke||(yt?v(ut,_t):v(Le,we)),v(ut,We))}else qe.alongA===0&&(qe.alongB===-1?v(Le,He):qe.alongB===0?v(Le,qe.pt):qe.alongB===1&&v(Le,we)),qe.alongB===0&&(qe.alongA===-1?v(ut,We):qe.alongA===0?v(ut,qe.pt):qe.alongA===1&&v(ut,_t));return!1}for(var C=[];!a.isEmpty();){var F=a.getHead();if(r&&r.vert(F.pt[0]),F.isStart){let Le=function(){if(V){var ut=T(F,V);if(ut)return ut}return j?T(F,j):!1};r&&r.segmentNew(F.seg,F.primary);var L=_(F),V=L.before?L.before.ev:null,j=L.after?L.after.ev:null;r&&r.tempStatus(F.seg,V?V.seg:!1,j?j.seg:!1);var te=Le();if(te){if(e){var ge;F.seg.myFill.below===null?ge=!0:ge=F.seg.myFill.above!==F.seg.myFill.below,ge&&(te.seg.myFill.above=!te.seg.myFill.above)}else te.seg.otherFill=F.seg.myFill;r&&r.segmentUpdate(te.seg),F.other.remove(),F.remove()}if(a.getHead()!==F){r&&r.rewind(F.seg);continue}if(e){var ge;F.seg.myFill.below===null?ge=!0:ge=F.seg.myFill.above!==F.seg.myFill.below,j?F.seg.myFill.below=j.seg.myFill.above:F.seg.myFill.below=E,ge?F.seg.myFill.above=!F.seg.myFill.below:F.seg.myFill.above=F.seg.myFill.below}else if(F.seg.otherFill===null){var me;j?F.primary===j.primary?me=j.seg.otherFill.above:me=j.seg.myFill.above:me=F.primary?M:E,F.seg.otherFill={above:me,below:me}}r&&r.status(F.seg,V?V.seg:!1,j?j.seg:!1),F.other.status=L.insert(Eh.node({ev:F}))}else{var Me=F.status;if(Me===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(x.exists(Me.prev)&&x.exists(Me.next)&&T(Me.prev.ev,Me.next.ev),r&&r.statusRemove(Me.ev.seg),Me.remove(),!F.primary){var Fe=F.seg.myFill;F.seg.myFill=F.seg.otherFill,F.seg.otherFill=Fe}C.push(F.seg)}a.getHead().remove()}return r&&r.done(),C}return e?{addRegion:function(E){for(var M,x=E[E.length-1],w=0;w<E.length;w++){M=x,x=E[w];var _=t.pointsCompare(M,x);_!==0&&d(n(_<0?M:x,_<0?x:M),!0)}},calculate:function(E){return y(E,!1)}}:{calculate:function(E,M,x,w){return E.forEach(function(_){d(i(_.start,_.end,_),!0)}),x.forEach(function(_){d(i(_.start,_.end,_),!1)}),y(M,w)}}}var OQ=TQ;function MQ(e,t,r){var n=[],i=[];return e.forEach(function(a){var o=a.start,l=a.end;if(t.pointsSame(o,l)){console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");return}r&&r.chainStart(a);var s={index:0,matches_head:!1,matches_pt1:!1},f={index:0,matches_head:!1,matches_pt1:!1},d=s;function g(Me,Fe,Le){return d.index=Me,d.matches_head=Fe,d.matches_pt1=Le,d===s?(d=f,!1):(d=null,!0)}for(var v=0;v<n.length;v++){var y=n[v],E=y[0];y[1];var M=y[y.length-1];if(y[y.length-2],t.pointsSame(E,o)){if(g(v,!0,!0))break}else if(t.pointsSame(E,l)){if(g(v,!0,!1))break}else if(t.pointsSame(M,o)){if(g(v,!1,!0))break}else if(t.pointsSame(M,l)&&g(v,!1,!1))break}if(d===s){n.push([o,l]),r&&r.chainNew(o,l);return}if(d===f){r&&r.chainMatch(s.index);var x=s.index,w=s.matches_pt1?l:o,_=s.matches_head,y=n[x],T=_?y[0]:y[y.length-1],C=_?y[1]:y[y.length-2],F=_?y[y.length-1]:y[0],L=_?y[y.length-2]:y[1];if(t.pointsCollinear(C,T,w)&&(_?(r&&r.chainRemoveHead(s.index,w),y.shift()):(r&&r.chainRemoveTail(s.index,w),y.pop()),T=C),t.pointsSame(F,w)){n.splice(x,1),t.pointsCollinear(L,F,T)&&(_?(r&&r.chainRemoveTail(s.index,T),y.pop()):(r&&r.chainRemoveHead(s.index,T),y.shift())),r&&r.chainClose(s.index),i.push(y);return}_?(r&&r.chainAddHead(s.index,w),y.unshift(w)):(r&&r.chainAddTail(s.index,w),y.push(w));return}function V(Me){r&&r.chainReverse(Me),n[Me].reverse()}function j(Me,Fe){var Le=n[Me],ut=n[Fe],nt=Le[Le.length-1],De=Le[Le.length-2],We=ut[0],_t=ut[1];t.pointsCollinear(De,nt,We)&&(r&&r.chainRemoveTail(Me,nt),Le.pop(),nt=De),t.pointsCollinear(nt,We,_t)&&(r&&r.chainRemoveHead(Fe,We),ut.shift()),r&&r.chainJoin(Me,Fe),n[Me]=Le.concat(ut),n.splice(Fe,1)}var te=s.index,ge=f.index;r&&r.chainConnect(te,ge);var me=n[te].length<n[ge].length;s.matches_head?f.matches_head?me?(V(te),j(te,ge)):(V(ge),j(ge,te)):j(ge,te):f.matches_head?j(te,ge):me?(V(te),j(ge,te)):(V(ge),j(te,ge))}),i}var kQ=MQ;function Ah(e,t,r){var n=[];return e.forEach(function(i){var a=(i.myFill.above?8:0)+(i.myFill.below?4:0)+(i.otherFill&&i.otherFill.above?2:0)+(i.otherFill&&i.otherFill.below?1:0);t[a]!==0&&n.push({id:r?r.segmentId():-1,start:i.start,end:i.end,myFill:{above:t[a]===1,below:t[a]===2},otherFill:null})}),r&&r.selected(n),n}var RQ={union:function(e,t){return Ah(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return Ah(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return Ah(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return Ah(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return Ah(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},PQ=RQ,IQ={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(f){var d=f.slice(0,f.length-1);return e.segments({inverted:!1,regions:[d]})}for(var l=o(a[0]),s=1;s<a.length;s++)l=e.selectDifference(e.combine(l,o(a[s])));return l}if(t.type==="Polygon")return e.polygon(r(t.coordinates));if(t.type==="MultiPolygon"){for(var n=e.segments({inverted:!1,regions:[]}),i=0;i<t.coordinates.length;i++)n=e.selectUnion(e.combine(n,r(t.coordinates[i])));return e.polygon(n)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,r){r=e.polygon(e.segments(r));function n(y,E){return t.pointInsideRegion([(y[0][0]+y[1][0])*.5,(y[0][1]+y[1][1])*.5],E)}function i(y){return{region:y,children:[]}}var a=i(null);function o(y,E){for(var M=0;M<y.children.length;M++){var x=y.children[M];if(n(E,x.region)){o(x,E);return}}for(var w=i(E),M=0;M<y.children.length;M++){var x=y.children[M];n(x.region,E)&&(w.children.push(x),y.children.splice(M,1),M--)}y.children.push(w)}for(var l=0;l<r.regions.length;l++){var s=r.regions[l];s.length<3||o(a,s)}function f(y,E){for(var M=0,x=y[y.length-1][0],w=y[y.length-1][1],_=[],T=0;T<y.length;T++){var C=y[T][0],F=y[T][1];_.push([C,F]),M+=F*x-C*w,x=C,w=F}var L=M<0;return L!==E&&_.reverse(),_.push([_[0][0],_[0][1]]),_}var d=[];function g(y){var E=[f(y.region,!1)];d.push(E);for(var M=0;M<y.children.length;M++)E.push(v(y.children[M]))}function v(y){for(var E=0;E<y.children.length;E++)g(y.children[E]);return f(y.region,!0)}for(var l=0;l<a.children.length;l++)g(a.children[l]);return d.length<=0?{type:"Polygon",coordinates:[]}:d.length==1?{type:"Polygon",coordinates:d[0]}:{type:"MultiPolygon",coordinates:d}}},FQ=IQ;/*
855
855
  * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
856
856
  * @license MIT
857
857
  * @preserve Project Home: https://github.com/voidqk/polybooljs
858
- */var DQ=EQ,$Q=TQ,c5=MQ,BQ=PQ,Th=FQ,h5=LQ,Ti=!1,Ch=$Q(),ei;ei={buildLog:function(e){return e===!0?Ti=DQ():e===!1&&(Ti=!1),Ti===!1?!1:Ti.list},epsilon:function(e){return Ch.epsilon(e)},segments:function(e){var t=c5(!0,Ch,Ti);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=c5(!1,Ch,Ti);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:Th.union(e.combined,Ti),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Th.intersect(e.combined,Ti),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Th.difference(e.combined,Ti),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Th.differenceRev(e.combined,Ti),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Th.xor(e.combined,Ti),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:BQ(e.segments,Ch,Ti),inverted:e.inverted}},polygonFromGeoJSON:function(e){return h5.toPolygon(ei,e)},polygonToGeoJSON:function(e){return h5.fromPolygon(ei,Ch,e)},union:function(e,t){return Oh(e,t,ei.selectUnion)},intersect:function(e,t){return Oh(e,t,ei.selectIntersect)},difference:function(e,t){return Oh(e,t,ei.selectDifference)},differenceRev:function(e,t){return Oh(e,t,ei.selectDifferenceRev)},xor:function(e,t){return Oh(e,t,ei.selectXor)}};function Oh(e,t,r){var n=ei.segments(e),i=ei.segments(t),a=ei.combine(n,i),o=r(a);return ei.polygon(o)}typeof window=="object"&&(window.PolyBool=ei);var bae=ei,xae=function(t,r,n,i){var a=t[0],o=t[1],l=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var s=i-n,f=0,d=s-1;f<s;d=f++){var g=r[f+n][0],v=r[f+n][1],y=r[d+n][0],E=r[d+n][1],k=v>o!=E>o&&a<(y-g)*(o-v)/(E-v)+g;k&&(l=!l)}return l};const wae=Rl(NY);function zQ(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s>=0?(a=o,i=o-1):n=o+1}return a}function UQ(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s>0?(a=o,i=o-1):n=o+1}return a}function jQ(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s<0?(a=o,n=o+1):i=o-1}return a}function GQ(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s<=0?(a=o,n=o+1):i=o-1}return a}function WQ(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],l=r!==void 0?r(o,t):o-t;if(l===0)return a;l<=0?n=a+1:i=a-1}return-1}function kh(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}var HQ={ge:function(e,t,r,n,i){return kh(e,t,r,n,i,zQ)},gt:function(e,t,r,n,i){return kh(e,t,r,n,i,UQ)},lt:function(e,t,r,n,i){return kh(e,t,r,n,i,jQ)},le:function(e,t,r,n,i){return kh(e,t,r,n,i,GQ)},eq:function(e,t,r,n,i){return kh(e,t,r,n,i,WQ)}},vp=qQ;function qQ(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}var _u=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=d5(r)),Array.isArray(r)){var l={};for(o=0;o<r.length;o++)l[r[o]]=!0;r=l}for(a in r)r[a]=d5(r[a]);var s={};for(a in r){var f=r[a];if(Array.isArray(f))for(o=0;o<f.length;o++){var d=f[o];if(n&&(s[d]=!0),d in t){if(i[a]=t[d],n)for(var g=o;g<f.length;g++)s[f[g]]=!0;break}}else a in t&&(r[a]&&(i[a]=t[a]),n&&(s[a]=!0))}if(n)for(a in t)s[a]||(i[a]=t[a]);return i},yx={};function d5(e){return yx[e]?yx[e]:(typeof e=="string"&&(e=yx[e]=e.split(/\s*,\s*|\s+/)),e)}var VQ=_u,ey=YQ;function YQ(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=VQ(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}var mp=XQ;function XQ(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;n<t;n++){for(var i=-1/0,a=1/0,o=n,l=e.length;o<l;o+=t)e[o]>i&&(i=e[o]),e[o]<a&&(a=e[o]);r[n]=a,r[t+n]=i}return r}var zF=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]},SE=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}},p5=SE,gp=KQ;function KQ(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,l,s;(!t||typeof t=="string")&&(t=new(p5(t||"float32"))(i+r));var f=t.length-r;if(i!==f)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+f);for(a=0,l=r;a<e.length;a++)for(o=0;o<n;o++)t[l++]=e[a][o]===null?NaN:e[a][o]}else if(!t||typeof t=="string"){var d=p5(t||"float32");if(Array.isArray(e)||t==="array")for(t=new d(e.length+r),a=0,l=r,s=t.length;l<s;l++,a++)t[l]=e[a]===null?NaN:e[a];else r===0?t=new d(e):(t=new d(e.length+r),t.set(e,r))}else t.set(e,r);return t}var QQ=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},ZQ=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const v5=HQ,m5=vp,JQ=ey,eZ=mp,g5=_u,bx=zF,tZ=gp,rZ=QQ,nZ=SE,y5=ZQ,iZ=1073741824;var aZ=function(t,r){r||(r={}),t=tZ(t,"float64"),r=g5(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=bx(r.maxDepth,255),i=bx(r.bounds,eZ(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=b5(t,i),o=t.length>>>1,l;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?l=new(nZ(r.dtype))(o):r.dtype&&(l=r.dtype,Array.isArray(l)&&(l.length=o));for(let w=0;w<o;++w)l[w]=w;let s=[],f=[],d=[],g=[];y(0,0,1,l,0,1);let v=0;for(let w=0;w<s.length;w++){let _=s[w];if(l.set)l.set(_,v);else for(let T=0,F=_.length;T<F;T++)l[T+v]=_[T];let C=v+s[w].length;g[w]=[v,C],v=C}return l.range=E,l;function y(w,_,C,T,F,L){if(!T.length)return null;let V=s[F]||(s[F]=[]),j=d[F]||(d[F]=[]),te=f[F]||(f[F]=[]),ge=V.length;if(F++,F>n||L>iZ){for(let We=0;We<T.length;We++)V.push(T[We]),j.push(L),te.push(null,null,null,null);return ge}if(V.push(T[0]),j.push(L),T.length<=1)return te.push(null,null,null,null),ge;let me=C*.5,ke=w+me,Fe=_+me,Le=[],ut=[],nt=[],De=[];for(let We=1,_t=T.length;We<_t;We++){let He=T[We],we=a[He*2],qe=a[He*2+1];we<ke?qe<Fe?Le.push(He):ut.push(He):qe<Fe?nt.push(He):De.push(He)}return L<<=2,te.push(y(w,_,me,Le,F,L),y(w,Fe,me,ut,F,L+1),y(ke,_,me,nt,F,L+2),y(ke,Fe,me,De,F,L+3)),ge}function E(...w){let _;if(rZ(w[w.length-1])){let nt=w.pop();!w.length&&(nt.x!=null||nt.l!=null||nt.left!=null)&&(w=[nt],_={}),_=g5(nt,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else _={};w.length||(w=i);let C=JQ(...w),[T,F,L,V]=[Math.min(C.x,C.x+C.width),Math.min(C.y,C.y+C.height),Math.max(C.x,C.x+C.width),Math.max(C.y,C.y+C.height)],[j,te,ge,me]=b5([T,F,L,V],i),ke=bx(_.level,s.length);if(_.d!=null){let nt;typeof _.d=="number"?nt=[_.d,_.d]:_.d.length&&(nt=_.d),ke=Math.min(Math.max(Math.ceil(-y5(Math.abs(nt[0])/(i[2]-i[0]))),Math.ceil(-y5(Math.abs(nt[1])/(i[3]-i[1])))),ke)}if(ke=Math.min(ke,s.length),_.lod)return k(j,te,ge,me,ke);let Fe=[];Le(0,0,1,0,0,1);function Le(nt,De,We,_t,He,we){if(He===null||we===null)return;let qe=nt+We,st=De+We;if(j>qe||te>st||ge<nt||me<De||_t>=ke||He===we)return;let Ke=s[_t];we===void 0&&(we=Ke.length);for(let W=He;W<we;W++){let ae=Ke[W],R=t[ae*2],A=t[ae*2+1];R>=T&&R<=L&&A>=F&&A<=V&&Fe.push(ae)}let ct=f[_t],yt=ct[He*4+0],qt=ct[He*4+1],Yt=ct[He*4+2],Qe=ct[He*4+3],At=ut(ct,He+1),Gt=We*.5,Ce=_t+1;Le(nt,De,Gt,Ce,yt,qt||Yt||Qe||At),Le(nt,De+Gt,Gt,Ce,qt,Yt||Qe||At),Le(nt+Gt,De,Gt,Ce,Yt,Qe||At),Le(nt+Gt,De+Gt,Gt,Ce,Qe,At)}function ut(nt,De){let We=null,_t=0;for(;We===null;)if(We=nt[De*4+_t],_t++,_t>nt.length)return null;return We}return Fe}function k(w,_,C,T,F){let L=[];for(let V=0;V<F;V++){let j=d[V],te=g[V][0],ge=x(w,_,V),me=x(C,T,V),ke=v5.ge(j,ge),Fe=v5.gt(j,me,ke,j.length-1);L[V]=[ke+te,Fe+te]}return L}function x(w,_,C){let T=1,F=.5,L=.5,V=.5;for(let j=0;j<C;j++)T<<=2,T+=w<F?_<L?0:1:_<L?2:3,V*=.5,F+=w<F?-V:V,L+=_<L?-V:V;return T}};function b5(e,t){let[r,n,i,a]=t,o=1/(i-r),l=1/(a-n),s=new Array(e.length);for(let f=0,d=e.length/2;f<d;f++)s[2*f]=m5((e[2*f]-r)*o,0,1),s[2*f+1]=m5((e[2*f+1]-n)*l,0,1);return s}var oZ=aZ,UF=uZ;function uZ(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],l=o.toUpperCase();if(o!=l)switch(a[0]=l,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var s=1;s<a.length;)a[s++]+=n,a[s++]+=i}switch(l){case"Z":n=t,i=r;break;case"H":n=a[1];break;case"V":i=a[1];break;case"M":n=t=a[1],i=r=a[2];break;default:n=a[a.length-2],i=a[a.length-1]}return a})}var lZ=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var l=t[Symbol.iterator](),s;!(i=(s=l.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(f){a=!0,o=f}finally{try{!i&&l.return&&l.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),fd=Math.PI*2,xx=function(t,r,n,i,a,o,l){var s=t.x,f=t.y;s*=r,f*=n;var d=i*s-a*f,g=a*s+i*f;return{x:d+o,y:g+l}},sZ=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),l=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+l*n,y:l-o*n},{x:o,y:l}]},x5=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},fZ=function(t,r,n,i,a,o,l,s,f,d,g,v){var y=Math.pow(a,2),E=Math.pow(o,2),k=Math.pow(g,2),x=Math.pow(v,2),w=y*E-y*x-E*k;w<0&&(w=0),w/=y*x+E*k,w=Math.sqrt(w)*(l===s?-1:1);var _=w*a/o*v,C=w*-o/a*g,T=d*_-f*C+(t+n)/2,F=f*_+d*C+(r+i)/2,L=(g-_)/a,V=(v-C)/o,j=(-g-_)/a,te=(-v-C)/o,ge=x5(1,0,L,V),me=x5(L,V,j,te);return s===0&&me>0&&(me-=fd),s===1&&me<0&&(me+=fd),[T,F,ge,me]},cZ=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,l=t.ry,s=t.xAxisRotation,f=s===void 0?0:s,d=t.largeArcFlag,g=d===void 0?0:d,v=t.sweepFlag,y=v===void 0?0:v,E=[];if(o===0||l===0)return[];var k=Math.sin(f*fd/360),x=Math.cos(f*fd/360),w=x*(r-i)/2+k*(n-a)/2,_=-k*(r-i)/2+x*(n-a)/2;if(w===0&&_===0)return[];o=Math.abs(o),l=Math.abs(l);var C=Math.pow(w,2)/Math.pow(o,2)+Math.pow(_,2)/Math.pow(l,2);C>1&&(o*=Math.sqrt(C),l*=Math.sqrt(C));var T=fZ(r,n,i,a,o,l,g,y,k,x,w,_),F=lZ(T,4),L=F[0],V=F[1],j=F[2],te=F[3],ge=Math.abs(te)/(fd/4);Math.abs(1-ge)<1e-7&&(ge=1);var me=Math.max(Math.ceil(ge),1);te/=me;for(var ke=0;ke<me;ke++)E.push(sZ(j,te)),j+=te;return E.map(function(Fe){var Le=xx(Fe[0],o,l,x,k,L,V),ut=Le.x,nt=Le.y,De=xx(Fe[1],o,l,x,k,L,V),We=De.x,_t=De.y,He=xx(Fe[2],o,l,x,k,L,V),we=He.x,qe=He.y;return{x1:ut,y1:nt,x2:We,y2:_t,x:we,y:qe}})};const hZ=Object.freeze(Object.defineProperty({__proto__:null,default:cZ},Symbol.toStringTag,{value:"Module"})),dZ=Rl(hZ);var pZ=mZ,vZ=dZ;function mZ(e){for(var t,r=[],n=0,i=0,a=0,o=0,l=null,s=null,f=0,d=0,g=0,v=e.length;g<v;g++){var y=e[g],E=y[0];switch(E){case"M":a=y[1],o=y[2];break;case"A":var k=vZ({px:f,py:d,cx:y[6],cy:y[7],rx:y[1],ry:y[2],xAxisRotation:y[3],largeArcFlag:y[4],sweepFlag:y[5]});if(!k.length)continue;for(var x=0,w;x<k.length;x++)w=k[x],y=["C",w.x1,w.y1,w.x2,w.y2,w.x,w.y],x<k.length-1&&r.push(y);break;case"S":var _=f,C=d;(t=="C"||t=="S")&&(_+=_-n,C+=C-i),y=["C",_,C,y[1],y[2],y[3],y[4]];break;case"T":t=="Q"||t=="T"?(l=f*2-l,s=d*2-s):(l=f,s=d),y=w5(f,d,l,s,y[1],y[2]);break;case"Q":l=y[1],s=y[2],y=w5(f,d,y[1],y[2],y[3],y[4]);break;case"L":y=g0(f,d,y[1],y[2]);break;case"H":y=g0(f,d,y[1],d);break;case"V":y=g0(f,d,f,y[1]);break;case"Z":y=g0(f,d,a,o);break}t=E,f=y[y.length-2],d=y[y.length-1],y.length>4?(n=y[y.length-4],i=y[y.length-3]):(n=f,i=d),r.push(y)}return r}function g0(e,t,r,n){return["C",e,t,r,n,r,n]}function w5(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}var jF=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))},gZ=BF,yZ=UF,bZ=pZ,xZ=jF,wZ=_Z;function _Z(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!xZ(e))throw Error("String is not an SVG path.");e=gZ(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=yZ(e),e=bZ(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;r<n;r++)for(var i=e[r].slice(1),a=0;a<i.length;a+=2)i[a+0]<t[0]&&(t[0]=i[a+0]),i[a+1]<t[1]&&(t[1]=i[a+1]),i[a+0]>t[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}var nl=Math.PI,_5=WF(120),SZ=EZ;function EZ(e){for(var t,r=[],n=0,i=0,a=0,o=0,l=null,s=null,f=0,d=0,g=0,v=e.length;g<v;g++){var y=e[g],E=y[0];switch(E){case"M":a=y[1],o=y[2];break;case"A":y=GF(f,d,y[1],y[2],WF(y[3]),y[4],y[5],y[6],y[7]),y.unshift("C"),y.length>7&&(r.push(y.splice(0,7)),y.unshift("C"));break;case"S":var k=f,x=d;(t=="C"||t=="S")&&(k+=k-n,x+=x-i),y=["C",k,x,y[1],y[2],y[3],y[4]];break;case"T":t=="Q"||t=="T"?(l=f*2-l,s=d*2-s):(l=f,s=d),y=S5(f,d,l,s,y[1],y[2]);break;case"Q":l=y[1],s=y[2],y=S5(f,d,y[1],y[2],y[3],y[4]);break;case"L":y=y0(f,d,y[1],y[2]);break;case"H":y=y0(f,d,y[1],d);break;case"V":y=y0(f,d,f,y[1]);break;case"Z":y=y0(f,d,a,o);break}t=E,f=y[y.length-2],d=y[y.length-1],y.length>4?(n=y[y.length-4],i=y[y.length-3]):(n=f,i=d),r.push(y)}return r}function y0(e,t,r,n){return["C",e,t,r,n,r,n]}function S5(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function GF(e,t,r,n,i,a,o,l,s,f){if(f)C=f[0],T=f[1],w=f[2],_=f[3];else{var d=wx(e,t,-i);e=d.x,t=d.y,d=wx(l,s,-i),l=d.x,s=d.y;var g=(e-l)/2,v=(t-s)/2,y=g*g/(r*r)+v*v/(n*n);y>1&&(y=Math.sqrt(y),r=y*r,n=y*n);var E=r*r,k=n*n,x=(a==o?-1:1)*Math.sqrt(Math.abs((E*k-E*v*v-k*g*g)/(E*v*v+k*g*g)));x==1/0&&(x=1);var w=x*r*v/n+(e+l)/2,_=x*-n*g/r+(t+s)/2,C=Math.asin(((t-_)/n).toFixed(9)),T=Math.asin(((s-_)/n).toFixed(9));C=e<w?nl-C:C,T=l<w?nl-T:T,C<0&&(C=nl*2+C),T<0&&(T=nl*2+T),o&&C>T&&(C=C-nl*2),!o&&T>C&&(T=T-nl*2)}if(Math.abs(T-C)>_5){var F=T,L=l,V=s;T=C+_5*(o&&T>C?1:-1),l=w+r*Math.cos(T),s=_+n*Math.sin(T);var j=GF(l,s,r,n,i,0,o,L,V,[T,F,w,_])}var te=Math.tan((T-C)/4),ge=4/3*r*te,me=4/3*n*te,ke=[2*e-(e+ge*Math.sin(C)),2*t-(t-me*Math.cos(C)),l+ge*Math.sin(T),s-me*Math.cos(T),l,s];if(f)return ke;j&&(ke=ke.concat(j));for(var Fe=0;Fe<ke.length;){var Le=wx(ke[Fe],ke[Fe+1],i);ke[Fe++]=Le.x,ke[Fe++]=Le.y}return ke}function wx(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function WF(e){return e*(nl/180)}var AZ=UF,TZ=SZ,CZ={M:"moveTo",C:"bezierCurveTo"},OZ=function(e,t){e.beginPath(),TZ(AZ(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[CZ[n]].apply(e,i)}),e.closePath()},kZ=vp,MZ=RZ,cd=1e20;function RZ(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,l,s,f,d,g,v,y,E,k;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,s=e,t.stride?d=t.stride:d=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(v=e,g=v.getContext("2d"),a=v.width,o=v.height,y=g.getImageData(0,0,a,o),s=y.data,d=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(v=e.canvas,g=e,a=v.width,o=v.height,y=g.getImageData(0,0,a,o),s=y.data,d=4):window.ImageData&&e instanceof window.ImageData&&(y=e,a=e.width,o=e.height,s=y.data,d=4);if(l=Math.max(a,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(f=s,s=Array(a*o),E=0,k=f.length;E<k;E++)s[E]=f[E*d+i]/255;else if(d!==1)throw Error("Raw data can have only 1 value per pixel");var x=Array(a*o),w=Array(a*o),_=Array(l),C=Array(l),T=Array(l+1),F=Array(l);for(E=0,k=a*o;E<k;E++){var L=s[E];x[E]=L===1?0:L===0?cd:Math.pow(Math.max(0,.5-L),2),w[E]=L===1?cd:L===0?0:Math.pow(Math.max(0,L-.5),2)}E5(x,a,o,_,C,F,T),E5(w,a,o,_,C,F,T);var V=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(E=0,k=a*o;E<k;E++)V[E]=kZ(1-((x[E]-w[E])/n+r),0,1);return V}function E5(e,t,r,n,i,a,o){for(var l=0;l<t;l++){for(var s=0;s<r;s++)n[s]=e[s*t+l];for(A5(n,i,a,o,r),s=0;s<r;s++)e[s*t+l]=i[s]}for(s=0;s<r;s++){for(l=0;l<t;l++)n[l]=e[s*t+l];for(A5(n,i,a,o,t),l=0;l<t;l++)e[s*t+l]=Math.sqrt(i[l])}}function A5(e,t,r,n,i){r[0]=0,n[0]=-cd,n[1]=+cd;for(var a=1,o=0;a<i;a++){for(var l=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);l<=n[o];)o--,l=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);o++,r[o]=a,n[o]=l,n[o+1]=+cd}for(a=0,o=0;a<i;a++){for(;n[o+1]<a;)o++;t[a]=(a-r[o])*(a-r[o])+e[r[o]]}}var PZ=wZ,IZ=BF,FZ=OZ,NZ=jF,LZ=MZ,r2=document.createElement("canvas"),Gn=r2.getContext("2d"),_ae=DZ;function DZ(e,t){if(!NZ(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=r2.width=t.w||t.width||200,n=r2.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||PZ(e),l=[r/(o[2]-o[0]),n/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;if(Gn.fillStyle="black",Gn.fillRect(0,0,r,n),Gn.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?Gn.strokeStyle="white":Gn.strokeStyle="black",Gn.lineWidth=Math.abs(a)),Gn.translate(r*.5,n*.5),Gn.scale(s,s),$Z()){var f=new Path2D(e);Gn.fill(f),a&&Gn.stroke(f)}else{var d=IZ(e);FZ(Gn,d),Gn.fill(),a&&Gn.stroke()}Gn.setTransform(1,0,0,1,0,0);var g=LZ(Gn,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return g}var b0;function $Z(){if(b0!=null)return b0;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return b0=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return b0=r&&r.data&&r.data[3]===255}var BZ={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},zZ=Object.prototype.toString,HF=function(e){var t;return zZ.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},T5=BZ,UZ=HF,Ju=zF,jZ=GZ,C5={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function GZ(e){var t,r=[],n=1,i;if(typeof e=="string")if(T5[e])r=T5[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,l=o<=4;n=1,l?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=t[1],f=s==="rgb",a=s.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*,\s*/).map(function(y,E){if(/%$/.test(y))return E===o?parseFloat(y)/100:a==="rgb"?parseFloat(y)*255/100:parseFloat(y);if(a[E]==="h"){if(/deg$/.test(y))return parseFloat(y);if(C5[y]!==void 0)return C5[y]}return parseFloat(y)}),s===a&&r.push(1),n=f||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(g){return parseFloat(g)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else if(!isNaN(e))i="rgb",r=[e>>>16,(e&65280)>>>8,e&255];else if(UZ(e)){var d=Ju(e.r,e.red,e.R,null);d!==null?(i="rgb",r=[d,Ju(e.g,e.green,e.G),Ju(e.b,e.blue,e.B)]):(i="hsl",r=[Ju(e.h,e.hue,e.H),Ju(e.s,e.saturation,e.S),Ju(e.l,e.lightness,e.L,e.b,e.brightness)]),n=Ju(e.a,e.alpha,e.opacity,1),e.opacity!=null&&(n/=100)}else(Array.isArray(e)||Jt.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e))&&(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1);return{space:i,values:r,alpha:n}}var WZ={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},HZ=WZ,qZ={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,l,s;if(r===0)return s=n*255,[s,s,s];n<.5?a=n*(1+r):a=n+r-n*r,i=2*n-a,l=[0,0,0];for(var f=0;f<3;f++)o=t+1/3*-(f-1),o<0?o++:o>1&&o--,6*o<1?s=i+(a-i)*6*o:2*o<1?s=a:3*o<2?s=i+(a-i)*(2/3-o)*6:s=i,l[f]=s*255;return l}};HZ.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,l,s,f;return a===i?l=0:t===a?l=(r-n)/o:r===a?l=2+(n-t)/o:n===a&&(l=4+(t-r)/o),l=Math.min(l*60,360),l<0&&(l+=360),f=(i+a)/2,a===i?s=0:f<=.5?s=o/(a+i):s=o/(2-a-i),[l,s*100,f*100]};var VZ=jZ,YZ=qZ,x0=vp,XZ=function(t){var r,n=VZ(t);return n.space?(r=Array(3),r[0]=x0(n.values[0],0,255),r[1]=x0(n.values[1],0,255),r[2]=x0(n.values[2],0,255),n.space[0]==="h"&&(r=YZ.rgb(r)),r.push(x0(n.alpha,0,1)),r):[]},KZ=XZ,w0=vp,QZ=SE,ty=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=QZ(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=KZ(t),t[0]/=255,t[1]/=255,t[2]/=255),ZZ(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=w0(Math.floor(t[0]*255),0,255),i[1]=w0(Math.floor(t[1]*255),0,255),i[2]=w0(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:w0(Math.floor(t[3]*255),0,255)),i)};function ZZ(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}var ry={exports:{}},_0=vp;ry.exports=qF;ry.exports.to=qF;ry.exports.from=JZ;function qF(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=_0(r,0,255)&255,n=_0(n,0,255)&255,i=_0(i,0,255)&255,a=_0(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function JZ(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}var eJ=ry.exports,VF=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n<e.length-1;n++)r.push(e[n],t[n]||"");return r.push(e[n]),r.join("")},YF=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i<a;i++){var o=n[i];for(var l in o)if(!(r[l]!==void 0&&!Array.isArray(r[l])&&t[l]===r[l])&&l in r){var s;if(o[l]===!0)s=r[l];else{if(o[l]===!1)continue;if(typeof o[l]=="function"&&(s=o[l](r[l],t,r),s===void 0))continue}t[l]=s}}return t},tJ=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)),Ff={exports:{}};Ff.exports=hd;Ff.exports.float32=Ff.exports.float=hd;Ff.exports.fract32=Ff.exports.fract=rJ;var O5=new Float32Array(1);function rJ(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=hd(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return hd(e-hd(e))}function hd(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(O5[0]=e,O5[0])}var EE=Ff.exports;function nJ(e,t){return oJ(e)||lJ(e,t)||XF(e,t)||fJ()}function iJ(e){return aJ(e)||uJ(e)||XF(e)||sJ()}function aJ(e){if(Array.isArray(e))return n2(e)}function oJ(e){if(Array.isArray(e))return e}function uJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lJ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,l;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function XF(e,t){if(e){if(typeof e=="string")return n2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n2(e,t)}}function n2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
859
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
860
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var cJ=ty,hJ=mp,dJ=eJ,pJ=oZ,ml=Pl,S0=VF,vJ=_u,mJ=YF,gJ=gp,k5=tJ,E0=EE,yJ=ey,bJ=yn;function yn(e,t){var r=this;if(!(this instanceof yn))return new yn(e,t);typeof e=="function"?(t||(t={}),t.regl=e):(t=e,e=null),t&&t.length&&(t.positions=t),e=t.regl;var n=e._gl,i,a=[],o={},l=[],s=[null],f=[null],d=255,g=100;this.tooManyColors=k5,i=e.texture({data:new Uint8Array(d*4),width:d,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),ml(this,{regl:e,gl:n,groups:l,markerCache:f,markerTextures:s,palette:a,paletteIds:o,paletteTexture:i,maxColors:d,maxSize:g,canvas:n.canvas}),this.update(t);var v={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:function(x,w){return[r.tooManyColors?0:d,i.height]},pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:i},attributes:{x:function(x,w){return w.xAttr||{buffer:w.positionBuffer,stride:8,offset:0}},y:function(x,w){return w.yAttr||{buffer:w.positionBuffer,stride:8,offset:4}},xFract:function(x,w){return w.xAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:0}},yFract:function(x,w){return w.yAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:4}},size:function(x,w){return w.size.length?{buffer:w.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(w.size*255/r.maxSize)]}},borderSize:function(x,w){return w.borderSize.length?{buffer:w.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(w.borderSize*255/r.maxSize)]}},colorId:function(x,w){return w.color.length?{buffer:w.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(w.color*4,w.color*4+4):[w.color]}},borderColorId:function(x,w){return w.borderColor.length?{buffer:w.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(w.borderColor*4,w.borderColor*4+4):[w.borderColor]}},isActive:function(x,w){return w.activation===!0?{constant:[1]}:w.activation?w.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},y=ml({},v);y.frag=S0([`precision highp float;
858
+ */var NQ=_Q,LQ=EQ,f5=OQ,DQ=kQ,Ch=PQ,c5=FQ,Ci=!1,Th=LQ(),ei;ei={buildLog:function(e){return e===!0?Ci=NQ():e===!1&&(Ci=!1),Ci===!1?!1:Ci.list},epsilon:function(e){return Th.epsilon(e)},segments:function(e){var t=f5(!0,Th,Ci);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=f5(!1,Th,Ci);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:Ch.union(e.combined,Ci),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Ch.intersect(e.combined,Ci),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Ch.difference(e.combined,Ci),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Ch.differenceRev(e.combined,Ci),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Ch.xor(e.combined,Ci),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:DQ(e.segments,Th,Ci),inverted:e.inverted}},polygonFromGeoJSON:function(e){return c5.toPolygon(ei,e)},polygonToGeoJSON:function(e){return c5.fromPolygon(ei,Th,e)},union:function(e,t){return Oh(e,t,ei.selectUnion)},intersect:function(e,t){return Oh(e,t,ei.selectIntersect)},difference:function(e,t){return Oh(e,t,ei.selectDifference)},differenceRev:function(e,t){return Oh(e,t,ei.selectDifferenceRev)},xor:function(e,t){return Oh(e,t,ei.selectXor)}};function Oh(e,t,r){var n=ei.segments(e),i=ei.segments(t),a=ei.combine(n,i),o=r(a);return ei.polygon(o)}typeof window=="object"&&(window.PolyBool=ei);var mae=ei,gae=function(t,r,n,i){var a=t[0],o=t[1],l=!1;n===void 0&&(n=0),i===void 0&&(i=r.length);for(var s=i-n,f=0,d=s-1;f<s;d=f++){var g=r[f+n][0],v=r[f+n][1],y=r[d+n][0],E=r[d+n][1],M=v>o!=E>o&&a<(y-g)*(o-v)/(E-v)+g;M&&(l=!l)}return l};const yae=Rl(IY);function $Q(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s>=0?(a=o,i=o-1):n=o+1}return a}function BQ(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s>0?(a=o,i=o-1):n=o+1}return a}function zQ(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s<0?(a=o,n=o+1):i=o-1}return a}function UQ(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,l=e[o],s=r!==void 0?r(l,t):l-t;s<=0?(a=o,n=o+1):i=o-1}return a}function jQ(e,t,r,n,i){for(;n<=i;){var a=n+i>>>1,o=e[a],l=r!==void 0?r(o,t):o-t;if(l===0)return a;l<=0?n=a+1:i=a-1}return-1}function Mh(e,t,r,n,i,a){return typeof r=="function"?a(e,t,r,n===void 0?0:n|0,i===void 0?e.length-1:i|0):a(e,t,void 0,r===void 0?0:r|0,n===void 0?e.length-1:n|0)}var GQ={ge:function(e,t,r,n,i){return Mh(e,t,r,n,i,$Q)},gt:function(e,t,r,n,i){return Mh(e,t,r,n,i,BQ)},lt:function(e,t,r,n,i){return Mh(e,t,r,n,i,zQ)},le:function(e,t,r,n,i){return Mh(e,t,r,n,i,UQ)},eq:function(e,t,r,n,i){return Mh(e,t,r,n,i,jQ)}},pp=WQ;function WQ(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}var _u=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=h5(r)),Array.isArray(r)){var l={};for(o=0;o<r.length;o++)l[r[o]]=!0;r=l}for(a in r)r[a]=h5(r[a]);var s={};for(a in r){var f=r[a];if(Array.isArray(f))for(o=0;o<f.length;o++){var d=f[o];if(n&&(s[d]=!0),d in t){if(i[a]=t[d],n)for(var g=o;g<f.length;g++)s[f[g]]=!0;break}}else a in t&&(r[a]&&(i[a]=t[a]),n&&(s[a]=!0))}if(n)for(a in t)s[a]||(i[a]=t[a]);return i},gx={};function h5(e){return gx[e]?gx[e]:(typeof e=="string"&&(e=gx[e]=e.split(/\s*,\s*|\s+/)),e)}var HQ=_u,Jg=qQ;function qQ(e){var t;return arguments.length>1&&(e=arguments),typeof e=="string"?e=e.split(/\s/).map(parseFloat):typeof e=="number"&&(e=[e]),e.length&&typeof e[0]=="number"?e.length===1?t={width:e[0],height:e[0],x:0,y:0}:e.length===2?t={width:e[0],height:e[1],x:0,y:0}:t={x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=HQ(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},e.width==null?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,e.height==null?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}var vp=VQ;function VQ(e,t){if(!e||e.length==null)throw Error("Argument should be an array");t==null?t=1:t=Math.floor(t);for(var r=Array(t*2),n=0;n<t;n++){for(var i=-1/0,a=1/0,o=n,l=e.length;o<l;o+=t)e[o]>i&&(i=e[o]),e[o]<a&&(a=e[o]);r[n]=a,r[t+n]=i}return r}var $F=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]},_E=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}},d5=_E,mp=YQ;function YQ(e,t,r){if(!e)throw new TypeError("must specify data as first parameter");if(r=+(r||0)|0,Array.isArray(e)&&e[0]&&typeof e[0][0]=="number"){var n=e[0].length,i=e.length*n,a,o,l,s;(!t||typeof t=="string")&&(t=new(d5(t||"float32"))(i+r));var f=t.length-r;if(i!==f)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+f);for(a=0,l=r;a<e.length;a++)for(o=0;o<n;o++)t[l++]=e[a][o]===null?NaN:e[a][o]}else if(!t||typeof t=="string"){var d=d5(t||"float32");if(Array.isArray(e)||t==="array")for(t=new d(e.length+r),a=0,l=r,s=t.length;l<s;l++,a++)t[l]=e[a]===null?NaN:e[a];else r===0?t=new d(e):(t=new d(e.length+r),t.set(e,r))}else t.set(e,r);return t}var XQ=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},KQ=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const p5=GQ,v5=pp,QQ=Jg,ZQ=vp,m5=_u,yx=$F,JQ=mp,eZ=XQ,tZ=_E,g5=KQ,rZ=1073741824;var nZ=function(t,r){r||(r={}),t=JQ(t,"float64"),r=m5(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=yx(r.maxDepth,255),i=yx(r.bounds,ZQ(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=y5(t,i),o=t.length>>>1,l;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?l=new(tZ(r.dtype))(o):r.dtype&&(l=r.dtype,Array.isArray(l)&&(l.length=o));for(let w=0;w<o;++w)l[w]=w;let s=[],f=[],d=[],g=[];y(0,0,1,l,0,1);let v=0;for(let w=0;w<s.length;w++){let _=s[w];if(l.set)l.set(_,v);else for(let C=0,F=_.length;C<F;C++)l[C+v]=_[C];let T=v+s[w].length;g[w]=[v,T],v=T}return l.range=E,l;function y(w,_,T,C,F,L){if(!C.length)return null;let V=s[F]||(s[F]=[]),j=d[F]||(d[F]=[]),te=f[F]||(f[F]=[]),ge=V.length;if(F++,F>n||L>rZ){for(let We=0;We<C.length;We++)V.push(C[We]),j.push(L),te.push(null,null,null,null);return ge}if(V.push(C[0]),j.push(L),C.length<=1)return te.push(null,null,null,null),ge;let me=T*.5,Me=w+me,Fe=_+me,Le=[],ut=[],nt=[],De=[];for(let We=1,_t=C.length;We<_t;We++){let He=C[We],we=a[He*2],qe=a[He*2+1];we<Me?qe<Fe?Le.push(He):ut.push(He):qe<Fe?nt.push(He):De.push(He)}return L<<=2,te.push(y(w,_,me,Le,F,L),y(w,Fe,me,ut,F,L+1),y(Me,_,me,nt,F,L+2),y(Me,Fe,me,De,F,L+3)),ge}function E(...w){let _;if(eZ(w[w.length-1])){let nt=w.pop();!w.length&&(nt.x!=null||nt.l!=null||nt.left!=null)&&(w=[nt],_={}),_=m5(nt,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else _={};w.length||(w=i);let T=QQ(...w),[C,F,L,V]=[Math.min(T.x,T.x+T.width),Math.min(T.y,T.y+T.height),Math.max(T.x,T.x+T.width),Math.max(T.y,T.y+T.height)],[j,te,ge,me]=y5([C,F,L,V],i),Me=yx(_.level,s.length);if(_.d!=null){let nt;typeof _.d=="number"?nt=[_.d,_.d]:_.d.length&&(nt=_.d),Me=Math.min(Math.max(Math.ceil(-g5(Math.abs(nt[0])/(i[2]-i[0]))),Math.ceil(-g5(Math.abs(nt[1])/(i[3]-i[1])))),Me)}if(Me=Math.min(Me,s.length),_.lod)return M(j,te,ge,me,Me);let Fe=[];Le(0,0,1,0,0,1);function Le(nt,De,We,_t,He,we){if(He===null||we===null)return;let qe=nt+We,st=De+We;if(j>qe||te>st||ge<nt||me<De||_t>=Me||He===we)return;let Ke=s[_t];we===void 0&&(we=Ke.length);for(let W=He;W<we;W++){let ae=Ke[W],R=t[ae*2],A=t[ae*2+1];R>=C&&R<=L&&A>=F&&A<=V&&Fe.push(ae)}let ct=f[_t],yt=ct[He*4+0],qt=ct[He*4+1],Yt=ct[He*4+2],Qe=ct[He*4+3],At=ut(ct,He+1),jt=We*.5,Te=_t+1;Le(nt,De,jt,Te,yt,qt||Yt||Qe||At),Le(nt,De+jt,jt,Te,qt,Yt||Qe||At),Le(nt+jt,De,jt,Te,Yt,Qe||At),Le(nt+jt,De+jt,jt,Te,Qe,At)}function ut(nt,De){let We=null,_t=0;for(;We===null;)if(We=nt[De*4+_t],_t++,_t>nt.length)return null;return We}return Fe}function M(w,_,T,C,F){let L=[];for(let V=0;V<F;V++){let j=d[V],te=g[V][0],ge=x(w,_,V),me=x(T,C,V),Me=p5.ge(j,ge),Fe=p5.gt(j,me,Me,j.length-1);L[V]=[Me+te,Fe+te]}return L}function x(w,_,T){let C=1,F=.5,L=.5,V=.5;for(let j=0;j<T;j++)C<<=2,C+=w<F?_<L?0:1:_<L?2:3,V*=.5,F+=w<F?-V:V,L+=_<L?-V:V;return C}};function y5(e,t){let[r,n,i,a]=t,o=1/(i-r),l=1/(a-n),s=new Array(e.length);for(let f=0,d=e.length/2;f<d;f++)s[2*f]=v5((e[2*f]-r)*o,0,1),s[2*f+1]=v5((e[2*f+1]-n)*l,0,1);return s}var iZ=nZ,BF=aZ;function aZ(e){var t=0,r=0,n=0,i=0;return e.map(function(a){a=a.slice();var o=a[0],l=o.toUpperCase();if(o!=l)switch(a[0]=l,o){case"a":a[6]+=n,a[7]+=i;break;case"v":a[1]+=i;break;case"h":a[1]+=n;break;default:for(var s=1;s<a.length;)a[s++]+=n,a[s++]+=i}switch(l){case"Z":n=t,i=r;break;case"H":n=a[1];break;case"V":i=a[1];break;case"M":n=t=a[1],i=r=a[2];break;default:n=a[a.length-2],i=a[a.length-1]}return a})}var oZ=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var l=t[Symbol.iterator](),s;!(i=(s=l.next()).done)&&(n.push(s.value),!(r&&n.length===r));i=!0);}catch(f){a=!0,o=f}finally{try{!i&&l.return&&l.return()}finally{if(a)throw o}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),sd=Math.PI*2,bx=function(t,r,n,i,a,o,l){var s=t.x,f=t.y;s*=r,f*=n;var d=i*s-a*f,g=a*s+i*f;return{x:d+o,y:g+l}},uZ=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),a=Math.sin(t),o=Math.cos(t+r),l=Math.sin(t+r);return[{x:i-a*n,y:a+i*n},{x:o+l*n,y:l-o*n},{x:o,y:l}]},b5=function(t,r,n,i){var a=t*i-r*n<0?-1:1,o=t*n+r*i;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},lZ=function(t,r,n,i,a,o,l,s,f,d,g,v){var y=Math.pow(a,2),E=Math.pow(o,2),M=Math.pow(g,2),x=Math.pow(v,2),w=y*E-y*x-E*M;w<0&&(w=0),w/=y*x+E*M,w=Math.sqrt(w)*(l===s?-1:1);var _=w*a/o*v,T=w*-o/a*g,C=d*_-f*T+(t+n)/2,F=f*_+d*T+(r+i)/2,L=(g-_)/a,V=(v-T)/o,j=(-g-_)/a,te=(-v-T)/o,ge=b5(1,0,L,V),me=b5(L,V,j,te);return s===0&&me>0&&(me-=sd),s===1&&me<0&&(me+=sd),[C,F,ge,me]},sZ=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,l=t.ry,s=t.xAxisRotation,f=s===void 0?0:s,d=t.largeArcFlag,g=d===void 0?0:d,v=t.sweepFlag,y=v===void 0?0:v,E=[];if(o===0||l===0)return[];var M=Math.sin(f*sd/360),x=Math.cos(f*sd/360),w=x*(r-i)/2+M*(n-a)/2,_=-M*(r-i)/2+x*(n-a)/2;if(w===0&&_===0)return[];o=Math.abs(o),l=Math.abs(l);var T=Math.pow(w,2)/Math.pow(o,2)+Math.pow(_,2)/Math.pow(l,2);T>1&&(o*=Math.sqrt(T),l*=Math.sqrt(T));var C=lZ(r,n,i,a,o,l,g,y,M,x,w,_),F=oZ(C,4),L=F[0],V=F[1],j=F[2],te=F[3],ge=Math.abs(te)/(sd/4);Math.abs(1-ge)<1e-7&&(ge=1);var me=Math.max(Math.ceil(ge),1);te/=me;for(var Me=0;Me<me;Me++)E.push(uZ(j,te)),j+=te;return E.map(function(Fe){var Le=bx(Fe[0],o,l,x,M,L,V),ut=Le.x,nt=Le.y,De=bx(Fe[1],o,l,x,M,L,V),We=De.x,_t=De.y,He=bx(Fe[2],o,l,x,M,L,V),we=He.x,qe=He.y;return{x1:ut,y1:nt,x2:We,y2:_t,x:we,y:qe}})};const fZ=Object.freeze(Object.defineProperty({__proto__:null,default:sZ},Symbol.toStringTag,{value:"Module"})),cZ=Rl(fZ);var hZ=pZ,dZ=cZ;function pZ(e){for(var t,r=[],n=0,i=0,a=0,o=0,l=null,s=null,f=0,d=0,g=0,v=e.length;g<v;g++){var y=e[g],E=y[0];switch(E){case"M":a=y[1],o=y[2];break;case"A":var M=dZ({px:f,py:d,cx:y[6],cy:y[7],rx:y[1],ry:y[2],xAxisRotation:y[3],largeArcFlag:y[4],sweepFlag:y[5]});if(!M.length)continue;for(var x=0,w;x<M.length;x++)w=M[x],y=["C",w.x1,w.y1,w.x2,w.y2,w.x,w.y],x<M.length-1&&r.push(y);break;case"S":var _=f,T=d;(t=="C"||t=="S")&&(_+=_-n,T+=T-i),y=["C",_,T,y[1],y[2],y[3],y[4]];break;case"T":t=="Q"||t=="T"?(l=f*2-l,s=d*2-s):(l=f,s=d),y=x5(f,d,l,s,y[1],y[2]);break;case"Q":l=y[1],s=y[2],y=x5(f,d,y[1],y[2],y[3],y[4]);break;case"L":y=m0(f,d,y[1],y[2]);break;case"H":y=m0(f,d,y[1],d);break;case"V":y=m0(f,d,f,y[1]);break;case"Z":y=m0(f,d,a,o);break}t=E,f=y[y.length-2],d=y[y.length-1],y.length>4?(n=y[y.length-4],i=y[y.length-3]):(n=f,i=d),r.push(y)}return r}function m0(e,t,r,n){return["C",e,t,r,n,r,n]}function x5(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}var zF=function(t){return typeof t!="string"?!1:(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&&/[\dz]$/i.test(t)&&t.length>4))},vZ=DF,mZ=BF,gZ=hZ,yZ=zF,bZ=xZ;function xZ(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!yZ(e))throw Error("String is not an SVG path.");e=vZ(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=mZ(e),e=gZ(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],r=0,n=e.length;r<n;r++)for(var i=e[r].slice(1),a=0;a<i.length;a+=2)i[a+0]<t[0]&&(t[0]=i[a+0]),i[a+1]<t[1]&&(t[1]=i[a+1]),i[a+0]>t[2]&&(t[2]=i[a+0]),i[a+1]>t[3]&&(t[3]=i[a+1]);return t}var nl=Math.PI,w5=jF(120),wZ=_Z;function _Z(e){for(var t,r=[],n=0,i=0,a=0,o=0,l=null,s=null,f=0,d=0,g=0,v=e.length;g<v;g++){var y=e[g],E=y[0];switch(E){case"M":a=y[1],o=y[2];break;case"A":y=UF(f,d,y[1],y[2],jF(y[3]),y[4],y[5],y[6],y[7]),y.unshift("C"),y.length>7&&(r.push(y.splice(0,7)),y.unshift("C"));break;case"S":var M=f,x=d;(t=="C"||t=="S")&&(M+=M-n,x+=x-i),y=["C",M,x,y[1],y[2],y[3],y[4]];break;case"T":t=="Q"||t=="T"?(l=f*2-l,s=d*2-s):(l=f,s=d),y=_5(f,d,l,s,y[1],y[2]);break;case"Q":l=y[1],s=y[2],y=_5(f,d,y[1],y[2],y[3],y[4]);break;case"L":y=g0(f,d,y[1],y[2]);break;case"H":y=g0(f,d,y[1],d);break;case"V":y=g0(f,d,f,y[1]);break;case"Z":y=g0(f,d,a,o);break}t=E,f=y[y.length-2],d=y[y.length-1],y.length>4?(n=y[y.length-4],i=y[y.length-3]):(n=f,i=d),r.push(y)}return r}function g0(e,t,r,n){return["C",e,t,r,n,r,n]}function _5(e,t,r,n,i,a){return["C",e/3+2/3*r,t/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function UF(e,t,r,n,i,a,o,l,s,f){if(f)T=f[0],C=f[1],w=f[2],_=f[3];else{var d=xx(e,t,-i);e=d.x,t=d.y,d=xx(l,s,-i),l=d.x,s=d.y;var g=(e-l)/2,v=(t-s)/2,y=g*g/(r*r)+v*v/(n*n);y>1&&(y=Math.sqrt(y),r=y*r,n=y*n);var E=r*r,M=n*n,x=(a==o?-1:1)*Math.sqrt(Math.abs((E*M-E*v*v-M*g*g)/(E*v*v+M*g*g)));x==1/0&&(x=1);var w=x*r*v/n+(e+l)/2,_=x*-n*g/r+(t+s)/2,T=Math.asin(((t-_)/n).toFixed(9)),C=Math.asin(((s-_)/n).toFixed(9));T=e<w?nl-T:T,C=l<w?nl-C:C,T<0&&(T=nl*2+T),C<0&&(C=nl*2+C),o&&T>C&&(T=T-nl*2),!o&&C>T&&(C=C-nl*2)}if(Math.abs(C-T)>w5){var F=C,L=l,V=s;C=T+w5*(o&&C>T?1:-1),l=w+r*Math.cos(C),s=_+n*Math.sin(C);var j=UF(l,s,r,n,i,0,o,L,V,[C,F,w,_])}var te=Math.tan((C-T)/4),ge=4/3*r*te,me=4/3*n*te,Me=[2*e-(e+ge*Math.sin(T)),2*t-(t-me*Math.cos(T)),l+ge*Math.sin(C),s-me*Math.cos(C),l,s];if(f)return Me;j&&(Me=Me.concat(j));for(var Fe=0;Fe<Me.length;){var Le=xx(Me[Fe],Me[Fe+1],i);Me[Fe++]=Le.x,Me[Fe++]=Le.y}return Me}function xx(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function jF(e){return e*(nl/180)}var SZ=BF,EZ=wZ,AZ={M:"moveTo",C:"bezierCurveTo"},CZ=function(e,t){e.beginPath(),EZ(SZ(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[AZ[n]].apply(e,i)}),e.closePath()},TZ=pp,OZ=MZ,fd=1e20;function MZ(e,t){t||(t={});var r=t.cutoff==null?.25:t.cutoff,n=t.radius==null?8:t.radius,i=t.channel||0,a,o,l,s,f,d,g,v,y,E,M;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");a=t.width,o=t.height,s=e,t.stride?d=t.stride:d=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(v=e,g=v.getContext("2d"),a=v.width,o=v.height,y=g.getImageData(0,0,a,o),s=y.data,d=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(v=e.canvas,g=e,a=v.width,o=v.height,y=g.getImageData(0,0,a,o),s=y.data,d=4):window.ImageData&&e instanceof window.ImageData&&(y=e,a=e.width,o=e.height,s=y.data,d=4);if(l=Math.max(a,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(f=s,s=Array(a*o),E=0,M=f.length;E<M;E++)s[E]=f[E*d+i]/255;else if(d!==1)throw Error("Raw data can have only 1 value per pixel");var x=Array(a*o),w=Array(a*o),_=Array(l),T=Array(l),C=Array(l+1),F=Array(l);for(E=0,M=a*o;E<M;E++){var L=s[E];x[E]=L===1?0:L===0?fd:Math.pow(Math.max(0,.5-L),2),w[E]=L===1?fd:L===0?0:Math.pow(Math.max(0,L-.5),2)}S5(x,a,o,_,T,F,C),S5(w,a,o,_,T,F,C);var V=window.Float32Array?new Float32Array(a*o):new Array(a*o);for(E=0,M=a*o;E<M;E++)V[E]=TZ(1-((x[E]-w[E])/n+r),0,1);return V}function S5(e,t,r,n,i,a,o){for(var l=0;l<t;l++){for(var s=0;s<r;s++)n[s]=e[s*t+l];for(E5(n,i,a,o,r),s=0;s<r;s++)e[s*t+l]=i[s]}for(s=0;s<r;s++){for(l=0;l<t;l++)n[l]=e[s*t+l];for(E5(n,i,a,o,t),l=0;l<t;l++)e[s*t+l]=Math.sqrt(i[l])}}function E5(e,t,r,n,i){r[0]=0,n[0]=-fd,n[1]=+fd;for(var a=1,o=0;a<i;a++){for(var l=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);l<=n[o];)o--,l=(e[a]+a*a-(e[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);o++,r[o]=a,n[o]=l,n[o+1]=+fd}for(a=0,o=0;a<i;a++){for(;n[o+1]<a;)o++;t[a]=(a-r[o])*(a-r[o])+e[r[o]]}}var kZ=bZ,RZ=DF,PZ=CZ,IZ=zF,FZ=OZ,t2=document.createElement("canvas"),Gn=t2.getContext("2d"),bae=NZ;function NZ(e,t){if(!IZ(e))throw Error("Argument should be valid svg path string");t||(t={});var r,n;t.shape?(r=t.shape[0],n=t.shape[1]):(r=t2.width=t.w||t.width||200,n=t2.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||kZ(e),l=[r/(o[2]-o[0]),n/(o[3]-o[1])],s=Math.min(l[0]||0,l[1]||0)/2;if(Gn.fillStyle="black",Gn.fillRect(0,0,r,n),Gn.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?Gn.strokeStyle="white":Gn.strokeStyle="black",Gn.lineWidth=Math.abs(a)),Gn.translate(r*.5,n*.5),Gn.scale(s,s),LZ()){var f=new Path2D(e);Gn.fill(f),a&&Gn.stroke(f)}else{var d=RZ(e);PZ(Gn,d),Gn.fill(),a&&Gn.stroke()}Gn.setTransform(1,0,0,1,0,0);var g=FZ(Gn,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return g}var y0;function LZ(){if(y0!=null)return y0;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return y0=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return y0=r&&r.data&&r.data[3]===255}var DZ={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},$Z=Object.prototype.toString,GF=function(e){var t;return $Z.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},A5=DZ,BZ=GF,Ju=$F,zZ=UZ,C5={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function UZ(e){var t,r=[],n=1,i;if(typeof e=="string")if(A5[e])r=A5[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var a=e.slice(1),o=a.length,l=o<=4;n=1,l?(r=[parseInt(a[0]+a[0],16),parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16)],o===4&&(n=parseInt(a[3]+a[3],16)/255)):(r=[parseInt(a[0]+a[1],16),parseInt(a[2]+a[3],16),parseInt(a[4]+a[5],16)],o===8&&(n=parseInt(a[6]+a[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var s=t[1],f=s==="rgb",a=s.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*,\s*/).map(function(y,E){if(/%$/.test(y))return E===o?parseFloat(y)/100:a==="rgb"?parseFloat(y)*255/100:parseFloat(y);if(a[E]==="h"){if(/deg$/.test(y))return parseFloat(y);if(C5[y]!==void 0)return C5[y]}return parseFloat(y)}),s===a&&r.push(1),n=f||r[o]===void 0?1:r[o],r=r.slice(0,o)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(g){return parseFloat(g)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else if(!isNaN(e))i="rgb",r=[e>>>16,(e&65280)>>>8,e&255];else if(BZ(e)){var d=Ju(e.r,e.red,e.R,null);d!==null?(i="rgb",r=[d,Ju(e.g,e.green,e.G),Ju(e.b,e.blue,e.B)]):(i="hsl",r=[Ju(e.h,e.hue,e.H),Ju(e.s,e.saturation,e.S),Ju(e.l,e.lightness,e.L,e.b,e.brightness)]),n=Ju(e.a,e.alpha,e.opacity,1),e.opacity!=null&&(n/=100)}else(Array.isArray(e)||Jt.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e))&&(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1);return{space:i,values:r,alpha:n}}var jZ={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},GZ=jZ,WZ={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,a,o,l,s;if(r===0)return s=n*255,[s,s,s];n<.5?a=n*(1+r):a=n+r-n*r,i=2*n-a,l=[0,0,0];for(var f=0;f<3;f++)o=t+1/3*-(f-1),o<0?o++:o>1&&o--,6*o<1?s=i+(a-i)*6*o:2*o<1?s=a:3*o<2?s=i+(a-i)*(2/3-o)*6:s=i,l[f]=s*255;return l}};GZ.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,l,s,f;return a===i?l=0:t===a?l=(r-n)/o:r===a?l=2+(n-t)/o:n===a&&(l=4+(t-r)/o),l=Math.min(l*60,360),l<0&&(l+=360),f=(i+a)/2,a===i?s=0:f<=.5?s=o/(a+i):s=o/(2-a-i),[l,s*100,f*100]};var HZ=zZ,qZ=WZ,b0=pp,VZ=function(t){var r,n=HZ(t);return n.space?(r=Array(3),r[0]=b0(n.values[0],0,255),r[1]=b0(n.values[1],0,255),r[2]=b0(n.values[2],0,255),n.space[0]==="h"&&(r=qZ.rgb(r)),r.push(b0(n.alpha,0,1)),r):[]},YZ=VZ,x0=pp,XZ=_E,ey=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=XZ(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=YZ(t),t[0]/=255,t[1]/=255,t[2]/=255),KZ(t)?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:255,a&&(i[0]/=255,i[1]/=255,i[2]/=255,i[3]/=255),i):(a?(i[0]=t[0],i[1]=t[1],i[2]=t[2],i[3]=t[3]!=null?t[3]:1):(i[0]=x0(Math.floor(t[0]*255),0,255),i[1]=x0(Math.floor(t[1]*255),0,255),i[2]=x0(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:x0(Math.floor(t[3]*255),0,255)),i)};function KZ(e){return!!(e instanceof Uint8Array||e instanceof Uint8ClampedArray||Array.isArray(e)&&(e[0]>1||e[0]===0)&&(e[1]>1||e[1]===0)&&(e[2]>1||e[2]===0)&&(!e[3]||e[3]>1))}var ty={exports:{}},w0=pp;ty.exports=WF;ty.exports.to=WF;ty.exports.from=QZ;function WF(e,t){t==null&&(t=!0);var r=e[0],n=e[1],i=e[2],a=e[3];a==null&&(a=t?1:255),t&&(r*=255,n*=255,i*=255,a*=255),r=w0(r,0,255)&255,n=w0(n,0,255)&255,i=w0(i,0,255)&255,a=w0(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function QZ(e,t){e=+e;var r=e>>>24,n=(e&16711680)>>>16,i=(e&65280)>>>8,a=e&255;return t===!1?[r,n,i,a]:[r/255,n/255,i/255,a/255]}var ZZ=ty.exports,HF=function(e){typeof e=="string"&&(e=[e]);for(var t=[].slice.call(arguments,1),r=[],n=0;n<e.length-1;n++)r.push(e[n],t[n]||"");return r.push(e[n]),r.join("")},qF=function(t,r,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var i=0,a=n.length;i<a;i++){var o=n[i];for(var l in o)if(!(r[l]!==void 0&&!Array.isArray(r[l])&&t[l]===r[l])&&l in r){var s;if(o[l]===!0)s=r[l];else{if(o[l]===!1)continue;if(typeof o[l]=="function"&&(s=o[l](r[l],t,r),s===void 0))continue}t[l]=s}}return t},JZ=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)),Ff={exports:{}};Ff.exports=cd;Ff.exports.float32=Ff.exports.float=cd;Ff.exports.fract32=Ff.exports.fract=eJ;var T5=new Float32Array(1);function eJ(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=cd(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return cd(e-cd(e))}function cd(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(T5[0]=e,T5[0])}var SE=Ff.exports;function tJ(e,t){return iJ(e)||oJ(e,t)||VF(e,t)||lJ()}function rJ(e){return nJ(e)||aJ(e)||VF(e)||uJ()}function nJ(e){if(Array.isArray(e))return r2(e)}function iJ(e){if(Array.isArray(e))return e}function aJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function oJ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,a=!1,o,l;try{for(r=r.call(e);!(i=(o=r.next()).done)&&(n.push(o.value),!(t&&n.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function VF(e,t){if(e){if(typeof e=="string")return r2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return r2(e,t)}}function r2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
859
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
860
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var sJ=ey,fJ=vp,cJ=ZZ,hJ=iZ,ml=Pl,_0=HF,dJ=_u,pJ=qF,vJ=mp,O5=JZ,S0=SE,mJ=Jg,gJ=yn;function yn(e,t){var r=this;if(!(this instanceof yn))return new yn(e,t);typeof e=="function"?(t||(t={}),t.regl=e):(t=e,e=null),t&&t.length&&(t.positions=t),e=t.regl;var n=e._gl,i,a=[],o={},l=[],s=[null],f=[null],d=255,g=100;this.tooManyColors=O5,i=e.texture({data:new Uint8Array(d*4),width:d,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),ml(this,{regl:e,gl:n,groups:l,markerCache:f,markerTextures:s,palette:a,paletteIds:o,paletteTexture:i,maxColors:d,maxSize:g,canvas:n.canvas}),this.update(t);var v={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:function(x,w){return[r.tooManyColors?0:d,i.height]},pixelRatio:e.context("pixelRatio"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),markerTexture:e.prop("markerTexture"),paletteTexture:i},attributes:{x:function(x,w){return w.xAttr||{buffer:w.positionBuffer,stride:8,offset:0}},y:function(x,w){return w.yAttr||{buffer:w.positionBuffer,stride:8,offset:4}},xFract:function(x,w){return w.xAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:0}},yFract:function(x,w){return w.yAttr?{constant:[0,0]}:{buffer:w.positionFractBuffer,stride:8,offset:4}},size:function(x,w){return w.size.length?{buffer:w.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(w.size*255/r.maxSize)]}},borderSize:function(x,w){return w.borderSize.length?{buffer:w.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(w.borderSize*255/r.maxSize)]}},colorId:function(x,w){return w.color.length?{buffer:w.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(w.color*4,w.color*4+4):[w.color]}},borderColorId:function(x,w){return w.borderColor.length?{buffer:w.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(w.borderColor*4,w.borderColor*4+4):[w.borderColor]}},isActive:function(x,w){return w.activation===!0?{constant:[1]}:w.activation?w.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},y=ml({},v);y.frag=_0([`precision highp float;
861
861
  #define GLSLIFY 1
862
862
 
863
863
  uniform float opacity;
@@ -894,7 +894,7 @@ void main() {
894
894
  }
895
895
 
896
896
  }
897
- `]),y.vert=S0([`precision highp float;
897
+ `]),y.vert=_0([`precision highp float;
898
898
  #define GLSLIFY 1
899
899
 
900
900
  attribute float x, y, xFract, yFract;
@@ -955,7 +955,7 @@ void main() {
955
955
 
956
956
  fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);
957
957
  fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);
958
- }`]),this.drawMarker=e(y);var E=ml({},v);E.frag=S0([`precision highp float;
958
+ }`]),this.drawMarker=e(y);var E=ml({},v);E.frag=_0([`precision highp float;
959
959
  #define GLSLIFY 1
960
960
 
961
961
  varying vec4 fragColor, fragBorderColor;
@@ -986,7 +986,7 @@ void main() {
986
986
  color.a *= alpha * opacity;
987
987
  gl_FragColor = color;
988
988
  }
989
- `]),E.vert=S0([`precision highp float;
989
+ `]),E.vert=_0([`precision highp float;
990
990
  #define GLSLIFY 1
991
991
 
992
992
  attribute float x, y, xFract, yFract;
@@ -1044,8 +1044,8 @@ void main() {
1044
1044
  fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;
1045
1045
  fragWidth = 1. / gl_PointSize;
1046
1046
  }
1047
- `]),k5&&(E.frag=E.frag.replace("smoothstep","smoothStep"),y.frag=y.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(E)}yn.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};yn.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};yn.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=this.groups;if(r.length===1&&Array.isArray(r[0])&&(r[0][0]===null||Array.isArray(r[0][0]))&&(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a<r.length;a++)this.drawItem(a,r[a]);else i.forEach(function(o,l){e.drawItem(l)});return this};yn.prototype.drawItem=function(e,t){var r=this.groups,n=r[e];if(typeof t=="number"&&(e=t,n=r[t],t=null),!!(n&&n.count&&n.opacity)){n.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,n,t));for(var i=[],a=1;a<n.activation.length;a++)!n.activation[a]||n.activation[a]!==!0&&!n.activation[a].data.length||i.push.apply(i,iJ(this.getMarkerDrawOptions(a,n,t)));i.length&&this.drawMarker(i)}};yn.prototype.getMarkerDrawOptions=function(e,t,r){var n=t.range,i=t.tree,a=t.viewport,o=t.activation,l=t.selectionBuffer,s=t.count;if(this.regl,!i)return r?[ml({},t,{markerTexture:this.markerTextures[e],activation:o[e],count:r.length,elements:r,offset:0})]:[ml({},t,{markerTexture:this.markerTextures[e],activation:o[e],offset:0})];var f=[],d=i.range(n,{lod:!0,px:[(n[2]-n[0])/a.width,(n[3]-n[1])/a.height]});if(r){for(var g=o[e],v=g.data,y=new Uint8Array(s),E=0;E<r.length;E++){var k=r[E];y[k]=v?v[k]:1}l.subdata(y)}for(var x=d.length;x--;){var w=nJ(d[x],2),_=w[0],C=w[1];f.push(ml({},t,{markerTexture:this.markerTextures[e],activation:r?l:o[e],offset:_,count:C-_}))}return f};yn.prototype.update=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length){r.length===1&&Array.isArray(r[0])&&(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,l=this.maxSize,s=this.maxColors,f=this.palette;this.groups=i=r.map(function(d,g){var v=i[g];if(d===void 0)return v;d===null?d={positions:null}:typeof d=="function"?d={ondraw:d}:typeof d[0]=="number"&&(d={positions:d}),d=vJ(d,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),d.positions===null&&(d.positions=[]),d.tooManyColors!=null&&(e.tooManyColors=d.tooManyColors),v||(i[g]=v={id:g,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},d=ml({},yn.defaults,d)),d.positions&&!("marker"in d)&&(d.marker=v.marker,delete v.marker),d.marker&&!("positions"in d)&&(d.positions=v.positions,delete v.positions);var y=0,E=0;if(mJ(v,d,[{snap:!0,size:function(De,We){return De==null&&(De=yn.defaults.size),y+=De&&De.length?1:0,De},borderSize:function(De,We){return De==null&&(De=yn.defaults.borderSize),y+=De&&De.length?1:0,De},opacity:parseFloat,color:function(De,We){return De==null&&(De=yn.defaults.color),De=e.updateColor(De),E++,De},borderColor:function(De,We){return De==null&&(De=yn.defaults.borderColor),De=e.updateColor(De),E++,De},bounds:function(De,We,_t){return"range"in _t||(_t.range=null),De},positions:function(De,We,_t){var He=We.snap,we=We.positionBuffer,qe=We.positionFractBuffer,st=We.selectionBuffer;if(De.x||De.y)return De.x.length?We.xAttr={buffer:o.buffer(De.x),offset:0,stride:4,count:De.x.length}:We.xAttr={buffer:De.x.buffer,offset:De.x.offset*4||0,stride:(De.x.stride||1)*4,count:De.x.count},De.y.length?We.yAttr={buffer:o.buffer(De.y),offset:0,stride:4,count:De.y.length}:We.yAttr={buffer:De.y.buffer,offset:De.y.offset*4||0,stride:(De.y.stride||1)*4,count:De.y.count},We.count=Math.max(We.xAttr.count,We.yAttr.count),De;De=gJ(De,"float64");var Ke=We.count=Math.floor(De.length/2),ct=We.bounds=Ke?hJ(De,2):null;if(!_t.range&&!We.range&&(delete We.range,_t.range=ct),!_t.marker&&!We.marker&&(delete We.marker,_t.marker=null),He&&(He===!0||Ke>He)?We.tree=pJ(De,{bounds:ct}):He&&He.length&&(We.tree=He),We.tree){var yt={primitive:"points",usage:"static",data:We.tree,type:"uint32"};We.elements?We.elements(yt):We.elements=o.elements(yt)}var qt=E0.float32(De);we({data:qt,usage:"dynamic"});var Yt=E0.fract32(De,qt);return qe({data:Yt,usage:"dynamic"}),st({data:new Uint8Array(Ke),type:"uint8",usage:"stream"}),De}},{marker:function(De,We,_t){var He=We.activation;if(He.forEach(function(Yt){return Yt&&Yt.destroy&&Yt.destroy()}),He.length=0,!De||typeof De[0]=="number"){var we=e.addMarker(De);He[we]=!0}else{for(var qe=[],st=0,Ke=Math.min(De.length,We.count);st<Ke;st++){var ct=e.addMarker(De[st]);qe[ct]||(qe[ct]=new Uint8Array(We.count)),qe[ct][st]=1}for(var yt=0;yt<qe.length;yt++)if(qe[yt]){var qt={data:qe[yt],type:"uint8",usage:"static"};He[yt]?He[yt](qt):He[yt]=o.buffer(qt),He[yt].data=qe[yt]}}return De},range:function(De,We,_t){var He=We.bounds;if(He)return De||(De=He),We.scale=[1/(De[2]-De[0]),1/(De[3]-De[1])],We.translate=[-De[0],-De[1]],We.scaleFract=E0.fract(We.scale),We.translateFract=E0.fract(We.translate),De},viewport:function(De){var We=yJ(De||[a.drawingBufferWidth,a.drawingBufferHeight]);return We}}]),y){var k=v,x=k.count,w=k.size,_=k.borderSize,C=k.sizeBuffer,T=new Uint8Array(x*2);if(w.length||_.length)for(var F=0;F<x;F++)T[F*2]=Math.round((w[F]==null?w:w[F])*255/l),T[F*2+1]=Math.round((_[F]==null?_:_[F])*255/l);C({data:T,usage:"dynamic"})}if(E){var L=v,V=L.count,j=L.color,te=L.borderColor,ge=L.colorBuffer,me;if(e.tooManyColors){if(j.length||te.length){me=new Uint8Array(V*8);for(var ke=0;ke<V;ke++){var Fe=j[ke];me[ke*8]=f[Fe*4],me[ke*8+1]=f[Fe*4+1],me[ke*8+2]=f[Fe*4+2],me[ke*8+3]=f[Fe*4+3];var Le=te[ke];me[ke*8+4]=f[Le*4],me[ke*8+5]=f[Le*4+1],me[ke*8+6]=f[Le*4+2],me[ke*8+7]=f[Le*4+3]}}}else if(j.length||te.length){me=new Uint8Array(V*4+2);for(var ut=0;ut<V;ut++)j[ut]!=null&&(me[ut*4]=j[ut]%s,me[ut*4+1]=Math.floor(j[ut]/s)),te[ut]!=null&&(me[ut*4+2]=te[ut]%s,me[ut*4+3]=Math.floor(te[ut]/s))}ge({data:me||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return v})}};yn.prototype.addMarker=function(e){var t=this.markerTextures,r=this.regl,n=this.markerCache,i=e==null?0:n.indexOf(e);if(i>=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,l=e.length;o<l;o++)a[o]=e[o]*255}var s=Math.floor(Math.sqrt(a.length));return i=t.length,n.push(e),t.push(r.texture({channels:1,data:a,radius:s,mag:"linear",min:"linear"})),i};yn.prototype.updateColor=function(e){var t=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(e)||(e=[e]);var i=[];if(typeof e[0]=="number"){var a=[];if(Array.isArray(e))for(var o=0;o<e.length;o+=4)a.push(e.slice(o,o+4));else for(var l=0;l<e.length;l+=4)a.push(e.subarray(l,l+4));e=a}for(var s=0;s<e.length;s++){var f=e[s];f=cJ(f,"uint8");var d=dJ(f,!1);if(t[d]==null){var g=r.length;t[d]=Math.floor(g/4),r[g]=f[0],r[g+1]=f[1],r[g+2]=f[2],r[g+3]=f[3]}i[s]=t[d]}return!this.tooManyColors&&r.length>n*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};yn.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i<n*t;i++)e.push(0,0,0,0)}r.height<n&&r.resize(t,n),r.subimage({width:Math.min(e.length*.25,t),height:n,data:e},0,0)}};yn.prototype.destroy=function(){return this.groups.forEach(function(e){e.sizeBuffer.destroy(),e.positionBuffer.destroy(),e.positionFractBuffer.destroy(),e.colorBuffer.destroy(),e.activation.forEach(function(t){return t&&t.destroy&&t.destroy()}),e.selectionBuffer.destroy(),e.elements&&e.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(function(e){return e&&e.destroy&&e.destroy()}),this};var xJ=Pl,wJ=function(t,r){var n=new bJ(t,r),i=n.render.bind(n);return xJ(i,{render:i,update:n.update.bind(n),draw:n.draw.bind(n),destroy:n.destroy.bind(n),regl:n.regl,gl:n.gl,canvas:n.gl.canvas,groups:n.groups,markers:n.markerCache,palette:n.palette}),i},Sae=wJ,AE={exports:{}};AE.exports=ny;AE.exports.default=ny;function ny(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=KF(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var l,s,f,d,g,v,y;if(n&&(a=TJ(e,t,a,r)),e.length>80*r){l=f=e[0],s=d=e[1];for(var E=r;E<i;E+=r)g=e[E],v=e[E+1],g<l&&(l=g),v<s&&(s=v),g>f&&(f=g),v>d&&(d=v);y=Math.max(f-l,d-s),y=y!==0?1/y:0}return $d(a,o,r,l,s,y),o}function KF(e,t,r,n,i){var a,o;if(i===o2(e,t,r,n)>0)for(a=t;a<r;a+=n)o=M5(a,e[a],e[a+1],o);else for(a=r-n;a>=t;a-=n)o=M5(a,e[a],e[a+1],o);return o&&iy(o,o.next)&&(zd(o),o=o.next),o}function du(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(iy(r,r.next)||jr(r.prev,r,r.next)===0)){if(zd(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function $d(e,t,r,n,i,a,o){if(e){!o&&a&&RJ(e,n,i,a);for(var l=e,s,f;e.prev!==e.next;){if(s=e.prev,f=e.next,a?SJ(e,n,i,a):_J(e)){t.push(s.i/r),t.push(e.i/r),t.push(f.i/r),zd(e),e=f.next,l=f.next;continue}if(e=f,e===l){o?o===1?(e=EJ(du(e),t,r),$d(e,t,r,n,i,a,2)):o===2&&AJ(e,t,r,n,i,a):$d(du(e),t,r,n,i,a,1);break}}}}function _J(e){var t=e.prev,r=e,n=e.next;if(jr(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(tf(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&jr(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function SJ(e,t,r,n){var i=e.prev,a=e,o=e.next;if(jr(i,a,o)>=0)return!1;for(var l=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,s=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,f=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,d=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,g=i2(l,s,t,r,n),v=i2(f,d,t,r,n),y=e.prevZ,E=e.nextZ;y&&y.z>=g&&E&&E.z<=v;){if(y!==e.prev&&y!==e.next&&tf(i.x,i.y,a.x,a.y,o.x,o.y,y.x,y.y)&&jr(y.prev,y,y.next)>=0||(y=y.prevZ,E!==e.prev&&E!==e.next&&tf(i.x,i.y,a.x,a.y,o.x,o.y,E.x,E.y)&&jr(E.prev,E,E.next)>=0))return!1;E=E.nextZ}for(;y&&y.z>=g;){if(y!==e.prev&&y!==e.next&&tf(i.x,i.y,a.x,a.y,o.x,o.y,y.x,y.y)&&jr(y.prev,y,y.next)>=0)return!1;y=y.prevZ}for(;E&&E.z<=v;){if(E!==e.prev&&E!==e.next&&tf(i.x,i.y,a.x,a.y,o.x,o.y,E.x,E.y)&&jr(E.prev,E,E.next)>=0)return!1;E=E.nextZ}return!0}function EJ(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!iy(i,a)&&QF(i,n,n.next,a)&&Bd(i,a)&&Bd(a,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(a.i/r),zd(n),zd(n.next),n=e=a),n=n.next}while(n!==e);return du(n)}function AJ(e,t,r,n,i,a){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&FJ(o,l)){var s=ZF(o,l);o=du(o,o.next),s=du(s,s.next),$d(o,t,r,n,i,a),$d(s,t,r,n,i,a);return}l=l.next}o=o.next}while(o!==e)}function TJ(e,t,r,n){var i=[],a,o,l,s,f;for(a=0,o=t.length;a<o;a++)l=t[a]*n,s=a<o-1?t[a+1]*n:e.length,f=KF(e,l,s,n,!1),f===f.next&&(f.steiner=!0),i.push(IJ(f));for(i.sort(CJ),a=0;a<i.length;a++)r=OJ(i[a],r),r=du(r,r.next);return r}function CJ(e,t){return e.x-t.x}function OJ(e,t){var r=kJ(e,t);if(!r)return t;var n=ZF(r,e),i=du(r,r.next);return du(n,n.next),t===r?i:t}function kJ(e,t){var r=t,n=e.x,i=e.y,a=-1/0,o;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var l=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(l<=n&&l>a){if(a=l,l===n){if(i===r.y)return r;if(i===r.next.y)return r.next}o=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!o)return null;if(n===a)return o;var s=o,f=o.x,d=o.y,g=1/0,v;r=o;do n>=r.x&&r.x>=f&&n!==r.x&&tf(i<d?n:a,i,f,d,i<d?a:n,i,r.x,r.y)&&(v=Math.abs(i-r.y)/(n-r.x),Bd(r,e)&&(v<g||v===g&&(r.x>o.x||r.x===o.x&&MJ(o,r)))&&(o=r,g=v)),r=r.next;while(r!==s);return o}function MJ(e,t){return jr(e.prev,e,t.prev)<0&&jr(t.next,e,e.next)<0}function RJ(e,t,r,n){var i=e;do i.z===null&&(i.z=i2(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,PJ(i)}function PJ(e){var t,r,n,i,a,o,l,s,f=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,l=0,t=0;t<f&&(l++,n=n.nextZ,!!n);t++);for(s=f;l>0||s>0&&n;)l!==0&&(s===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,l--):(i=n,n=n.nextZ,s--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,f*=2}while(o>1);return e}function i2(e,t,r,n,i){return e=32767*(e-r)*i,t=32767*(t-n)*i,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 IJ(e){var t=e,r=e;do(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next;while(t!==e);return r}function tf(e,t,r,n,i,a,o,l){return(i-o)*(t-l)-(e-o)*(a-l)>=0&&(e-o)*(n-l)-(r-o)*(t-l)>=0&&(r-o)*(a-l)-(i-o)*(n-l)>=0}function FJ(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!NJ(e,t)&&(Bd(e,t)&&Bd(t,e)&&LJ(e,t)&&(jr(e.prev,e,t.prev)||jr(e,t.prev,t))||iy(e,t)&&jr(e.prev,e,e.next)>0&&jr(t.prev,t,t.next)>0)}function jr(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function iy(e,t){return e.x===t.x&&e.y===t.y}function QF(e,t,r,n){var i=T0(jr(e,t,r)),a=T0(jr(e,t,n)),o=T0(jr(r,n,e)),l=T0(jr(r,n,t));return!!(i!==a&&o!==l||i===0&&A0(e,r,t)||a===0&&A0(e,n,t)||o===0&&A0(r,e,n)||l===0&&A0(r,t,n))}function A0(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function T0(e){return e>0?1:e<0?-1:0}function NJ(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&QF(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function Bd(e,t){return jr(e.prev,e,e.next)<0?jr(e,t,e.next)>=0&&jr(e,e.prev,t)>=0:jr(e,t,e.prev)<0||jr(e,e.next,t)<0}function LJ(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function ZF(e,t){var r=new a2(e.i,e.x,e.y),n=new a2(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function M5(e,t,r,n){var i=new a2(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function zd(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 a2(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}ny.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(o2(e,0,a,r));if(i)for(var l=0,s=t.length;l<s;l++){var f=t[l]*r,d=l<s-1?t[l+1]*r:e.length;o-=Math.abs(o2(e,f,d,r))}var g=0;for(l=0;l<n.length;l+=3){var v=n[l]*r,y=n[l+1]*r,E=n[l+2]*r;g+=Math.abs((e[v]-e[E])*(e[y+1]-e[v+1])-(e[v]-e[y])*(e[E+1]-e[v+1]))}return o===0&&g===0?0:Math.abs((g-o)/o)};function o2(e,t,r,n){for(var i=0,a=t,o=r-n;a<r;a+=n)i+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return i}ny.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var a=0;a<e[i].length;a++)for(var o=0;o<t;o++)r.vertices.push(e[i][a][o]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var DJ=AE.exports,$J=mp,BJ=zJ;function zJ(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=$J(e,t));for(var n=0;n<t;n++){var i=r[t+n],a=r[n],o=n,l=e.length;if(i===1/0&&a===-1/0)for(o=n;o<l;o+=t)e[o]=e[o]===i?1:e[o]===a?0:.5;else if(i===1/0)for(o=n;o<l;o+=t)e[o]=e[o]===i?1:0;else if(a===-1/0)for(o=n;o<l;o+=t)e[o]=e[o]===a?0:1;else{var s=i-a;for(o=n;o<l;o+=t)isNaN(e[o])||(e[o]=s===0?.5:(e[o]-a)/s)}}return e}var UJ=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch{return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")},_x,R5;function JF(){if(R5)return _x;R5=1;var e=Object.create,t=Object.getPrototypeOf,r={};return _x=function(){var n=Object.setPrototypeOf,i=arguments[0]||e;return typeof n!="function"?!1:t(n(i(null),r))===r},_x}var Sx,P5;function jJ(){if(P5)return Sx;P5=1;var e=Object.create,t;return JF()()||(t=eN()),Sx=function(){var r,n,i;return!t||t.level!==1?e:(r={},n={},i={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){n[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}n[a]=i}),Object.defineProperties(r,n),Object.defineProperty(t,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:r}),function(a,o){return e(a===null?r:a,o)})}(),Sx}var Ex,I5;function eN(){if(I5)return Ex;I5=1;var e=mS,t=Ji,r=Object.prototype.isPrototypeOf,n=Object.defineProperty,i={configurable:!0,enumerable:!1,writable:!0,value:void 0},a;return a=function(o,l){if(t(o),l===null||e(l))return o;throw new TypeError("Prototype must be null or an object")},Ex=function(o){var l,s;return o?(o.level===2?o.set?(s=o.set,l=function(f,d){return s.call(a(f,d),d),f}):l=function(f,d){return a(f,d).__proto__=d,f}:l=function f(d,g){var v;return a(d,g),v=r.call(f.nullPolyfill,d),v&&delete f.nullPolyfill.__proto__,g===null&&(g=f.nullPolyfill),d.__proto__=g,v&&n(f.nullPolyfill,"__proto__",i),d},Object.defineProperty(l,"level",{configurable:!1,enumerable:!1,writable:!1,value:o.level})):null}(function(){var o=Object.create(null),l={},s,f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(f){try{s=f.set,s.call(o,l)}catch{}if(Object.getPrototypeOf(o)===l)return{set:s,level:2}}return o.__proto__=l,Object.getPrototypeOf(o)===l?{level:2}:(o={},o.__proto__=l,Object.getPrototypeOf(o)===l?{level:1}:!1)}()),jJ(),Ex}var Ax,F5;function TE(){return F5||(F5=1,Ax=JF()()?Object.setPrototypeOf:eN()),Ax}var Tx,N5;function GJ(){if(N5)return Tx;N5=1;var e=mS;return Tx=function(t){if(!e(t))throw new TypeError(t+" is not an Object");return t},Tx}var Cx,L5;function WJ(){if(L5)return Cx;L5=1;var e=Object.create(null),t=Math.random;return Cx=function(){var r;do r=t().toString(36).slice(2);while(e[r]);return r},Cx}var Ox={exports:{}},kx,D5;function HJ(){if(D5)return kx;D5=1;var e=Ji;return kx=function(){return e(this).length=0,this},kx}var Mx,$5;function qJ(){if($5)return Mx;$5=1;var e=Wf,t=gS,r=Object.prototype.toString;return Mx=function(n){if(!e(n))return null;if(t(n)){var i=n.toString;if(typeof i!="function"||i===r)return null}try{return""+n}catch{return null}},Mx}var Rx,B5;function VJ(){return B5||(B5=1,Rx=function(e){try{return e.toString()}catch{try{return String(e)}catch{return null}}}),Rx}var Px,z5;function YJ(){if(z5)return Px;z5=1;var e=VJ(),t=/[\n\r\u2028\u2029]/g;return Px=function(r){var n=e(r);return n===null?"<Non-coercible to string value>":(n.length>100&&(n=n.slice(0,99)+"…"),n=n.replace(t,function(i){switch(i){case`
1048
- `:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),n)},Px}var Ix,U5;function tN(){if(U5)return Ix;U5=1;var e=Wf,t=gS,r=qJ(),n=YJ(),i=function(a,o){return a.replace("%v",n(o))};return Ix=function(a,o,l){if(!t(l))throw new TypeError(i(o,a));if(!e(a)){if("default"in l)return l.default;if(l.isOptional)return null}var s=r(l.errorMessage);throw e(s)||(s=o),new TypeError(i(s,a))},Ix}var Fx,j5;function XJ(){if(j5)return Fx;j5=1;var e=tN(),t=Wf;return Fx=function(r){return t(r)?r:e(r,"Cannot use %v",arguments[1])},Fx}var Nx,G5;function KJ(){if(G5)return Nx;G5=1;var e=tN(),t=qR;return Nx=function(r){return t(r)?r:e(r,"%v is not a plain function",arguments[1])},Nx}var Lx,W5;function QJ(){if(W5)return Lx;W5=1;var e=Og(),t=Eg,r=Ji;return Lx=function(n){var i=Object(r(n)),a=arguments[1],o=Object(arguments[2]);if(i!==n&&!a)return i;var l={};return a?e(a,function(s){(o.ensure||s in n)&&(l[s]=n[s])}):t(l,n),l},Lx}var Dx,H5;function ZJ(){if(H5)return Dx;H5=1;var e=Wf,t=XJ(),r=KJ(),n=QJ(),i=vS,a=bS(),o=Function.prototype.bind,l=Object.defineProperty,s=Object.prototype.hasOwnProperty,f;return f=function(d,g,v){var y=t(g)&&r(g.value),E;return E=n(g),delete E.writable,delete E.value,E.get=function(){return!v.overwriteDefinition&&s.call(this,d)?y:(g.value=o.call(y,v.resolveContext?v.resolveContext(this):this),l(this,d,g),this[d])},E},Dx=function(d){var g=i(arguments[1]);return e(g.resolveContext)&&r(g.resolveContext),a(d,function(v,y){return f(y,v,g)})},Dx}var $x,q5;function rN(){if(q5)return $x;q5=1;var e=HJ(),t=Eg,r=Aa,n=Ji,i=ea,a=ZJ(),o=Bl(),l=Object.defineProperty,s=Object.defineProperties,f;return $x=f=function(d,g){if(!(this instanceof f))throw new TypeError("Constructor requires 'new'");s(this,{__list__:i("w",n(d)),__context__:i("w",g),__nextIndex__:i("w",0)}),g&&(r(g.on),g.on("_add",this._onAdd),g.on("_delete",this._onDelete),g.on("_clear",this._onClear))},delete f.prototype.constructor,s(f.prototype,t({_next:i(function(){var d;if(this.__list__){if(this.__redo__&&(d=this.__redo__.shift(),d!==void 0))return d;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:i(function(){return this._createResult(this._next())}),_createResult:i(function(d){return d===void 0?{done:!0,value:void 0}:{done:!1,value:this._resolve(d)}}),_resolve:i(function(d){return this.__list__[d]}),_unBind:i(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:i(function(){return"[object "+(this[o.toStringTag]||"Object")+"]"})},a({_onAdd:i(function(d){if(!(d>=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){l(this,"__redo__",i("c",[d]));return}this.__redo__.forEach(function(g,v){g>=d&&(this.__redo__[v]=++g)},this),this.__redo__.push(d)}}),_onDelete:i(function(d){var g;d>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(g=this.__redo__.indexOf(d),g!==-1&&this.__redo__.splice(g,1),this.__redo__.forEach(function(v,y){v>d&&(this.__redo__[y]=--v)},this)))}),_onClear:i(function(){this.__redo__&&e.call(this.__redo__),this.__nextIndex__=0})}))),l(f.prototype,o.iterator,i(function(){return this})),$x}var V5;function JJ(){if(V5)return Ox.exports;V5=1;var e=TE(),t=VR,r=ea,n=Bl(),i=rN(),a=Object.defineProperty,o;return o=Ox.exports=function(l,s){if(!(this instanceof o))throw new TypeError("Constructor requires 'new'");i.call(this,l),s?t.call(s,"key+value")?s="key+value":t.call(s,"key")?s="key":s="value":s="value",a(this,"__kind__",r("",s))},e&&e(o,i),delete o.prototype.constructor,o.prototype=Object.create(i.prototype,{_resolve:r(function(l){return this.__kind__==="value"?this.__list__[l]:this.__kind__==="key+value"?[l,this.__list__[l]]:l})}),a(o.prototype,n.toStringTag,r("c","Array Iterator")),Ox.exports}var Bx={exports:{}},Y5;function eee(){if(Y5)return Bx.exports;Y5=1;var e=TE(),t=ea,r=Bl(),n=rN(),i=Object.defineProperty,a;return a=Bx.exports=function(o){if(!(this instanceof a))throw new TypeError("Constructor requires 'new'");o=String(o),n.call(this,o),i(this,"__length__",t("",o.length))},e&&e(a,n),delete a.prototype.constructor,a.prototype=Object.create(n.prototype,{_next:t(function(){if(this.__list__){if(this.__nextIndex__<this.__length__)return this.__nextIndex__++;this._unBind()}}),_resolve:t(function(o){var l=this.__list__[o],s;return this.__nextIndex__===this.__length__?l:(s=l.charCodeAt(0),s>=55296&&s<=56319?l+this.__list__[this.__nextIndex__++]:l)})}),i(a.prototype,r.toStringTag,t("c","String Iterator")),Bx.exports}var zx,X5;function tee(){if(X5)return zx;X5=1;var e=Tg(),t=oo,r=Cg(),n=Bl().iterator,i=Array.isArray;return zx=function(a){return t(a)?i(a)||r(a)||e(a)?!0:typeof a[n]=="function":!1},zx}var Ux,K5;function ree(){if(K5)return Ux;K5=1;var e=tee();return Ux=function(t){if(!e(t))throw new TypeError(t+" is not iterable");return t},Ux}var jx,Q5;function nN(){if(Q5)return jx;Q5=1;var e=Tg(),t=Cg(),r=JJ(),n=eee(),i=ree(),a=Bl().iterator;return jx=function(o){return typeof i(o)[a]=="function"?o[a]():e(o)?new r(o):t(o)?new n(o):new r(o)},jx}var Gx,Z5;function nee(){if(Z5)return Gx;Z5=1;var e=Tg(),t=Aa,r=Cg(),n=nN(),i=Array.isArray,a=Function.prototype.call,o=Array.prototype.some;return Gx=function(l,s){var f,d=arguments[2],g,v,y,E,k,x,w;if(i(l)||e(l)?f="array":r(l)?f="string":l=n(l),t(s),v=function(){y=!0},f==="array"){o.call(l,function(_){return a.call(s,d,_,v),y});return}if(f==="string"){for(k=l.length,E=0;E<k&&(x=l[E],E+1<k&&(w=x.charCodeAt(0),w>=55296&&w<=56319&&(x+=l[++E])),a.call(s,d,x,v),!y);++E);return}for(g=l.next();!g.done;){if(a.call(s,d,g.value,v),y)return;g=l.next()}},Gx}var Wx,J5;function iee(){return J5||(J5=1,Wx=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()),Wx}var Hx,ek;function aee(){if(ek)return Hx;ek=1;var e=oo,t=TE(),r=GJ(),n=Ji,i=WJ(),a=ea,o=nN(),l=nee(),s=Bl().toStringTag,f=iee(),d=Array.isArray,g=Object.defineProperty,v=Object.prototype.hasOwnProperty,y=Object.getPrototypeOf,E;return Hx=E=function(){var k=arguments[0],x;if(!(this instanceof E))throw new TypeError("Constructor requires 'new'");return x=f&&t&&WeakMap!==E?t(new WeakMap,y(this)):this,e(k)&&(d(k)||(k=o(k))),g(x,"__weakMapData__",a("c","$weakMap$"+i())),k&&l(k,function(w){n(w),x.set(w[0],w[1])}),x},f&&(t&&t(E,WeakMap),E.prototype=Object.create(WeakMap.prototype,{constructor:a(E)})),Object.defineProperties(E.prototype,{delete:a(function(k){return v.call(r(k),this.__weakMapData__)?(delete k[this.__weakMapData__],!0):!1}),get:a(function(k){if(v.call(r(k),this.__weakMapData__))return k[this.__weakMapData__]}),has:a(function(k){return v.call(r(k),this.__weakMapData__)}),set:a(function(k,x){return g(r(k),this.__weakMapData__,a("c",x)),this}),toString:a(function(){return"[object WeakMap]"})}),g(E.prototype,s,a("c","WeakMap")),Hx}var iN=UJ()?WeakMap:aee(),oee=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a<i;a++)if(t.call(r,n[a],a,n))return a;return-1};const C0=ty,uee=mp,u2=Pl,Ds=VF,lee=_u,see=gp,tk=DJ,fee=BJ,{float32:cee,fract32:qx}=EE,hee=iN,rk=ey,dee=oee;var Eae=Sr;function Sr(e,t){if(!(this instanceof Sr))return new Sr(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Sr.shaders.has(e)?Sr.shaders.get(e):Sr.shaders.set(e,Sr.createShaders(e)).get(e),this.update(t)}Sr.dashMult=2;Sr.maxPatternLength=256;Sr.precisionThreshold=3e6;Sr.maxPoints=1e4;Sr.maxLines=2048;Sr.shaders=new hee;Sr.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,l)=>l.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,l)=>!l.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(u2({vert:Ds("./rect-vert.glsl"),frag:Ds("./rect-frag.glsl"),attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(u2({cull:{enable:!0,face:"back"},vert:Ds("./miter-vert.glsl"),frag:Ds("./miter-frag.glsl"),attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch{i=n}return{fill:e({primitive:"triangle",elements:(o,l)=>l.triangles,offset:0,vert:Ds("./fill-vert.glsl"),frag:Ds("./fill-frag.glsl"),uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};Sr.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Sr.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Sr.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Sr.precisionThreshold||t.scale[1]*t.viewport.height>Sr.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Sr.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Sr.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=lee(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=u2({},Sr.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,a<Sr.maxLines&&(o.depth=2*(Sr.maxLines-1-a%Sr.maxLines)/Sr.maxLines-1)),i.join!=null&&(o.join=i.join),i.hole!=null&&(o.hole=i.hole),i.fill!=null&&(o.fill=i.fill?C0(i.fill,"uint8"):null),i.viewport!=null&&(o.viewport=rk(i.viewport)),o.viewport||(o.viewport=rk([r.drawingBufferWidth,r.drawingBufferHeight])),i.close!=null&&(o.close=i.close),i.positions===null&&(i.positions=[]),i.positions){let f,d;if(i.positions.x&&i.positions.y){let E=i.positions.x,k=i.positions.y;d=o.count=Math.max(E.length,k.length),f=new Float64Array(d*2);for(let x=0;x<d;x++)f[x*2]=E[x],f[x*2+1]=k[x]}else f=see(i.positions,"float64"),d=o.count=Math.floor(f.length/2);let g=o.bounds=uee(f,2);if(o.fill){let E=[],k={},x=0;for(let w=0,_=0,C=o.count;w<C;w++){let T=f[w*2],F=f[w*2+1];isNaN(T)||isNaN(F)||T==null||F==null?(T=f[x*2],F=f[x*2+1],k[w]=x):x=w,E[_++]=T,E[_++]=F}if(i.splitNull){o.count-1 in k||(k[o.count]=o.count-1);let w=Object.keys(k).map(Number).sort((F,L)=>F-L),_=[],C=0,T=o.hole!=null?o.hole[0]:null;if(T!=null){let F=dee(w,L=>L>=T);w=w.slice(0,F),w.push(T)}for(let F=0;F<w.length;F++){let L=E.slice(C*2,w[F]*2).concat(T?E.slice(T*2):[]),V=(o.hole||[]).map(te=>te-T+(w[F]-C)),j=tk(L,V);j=j.map(te=>te+C+(te+C<w[F]?0:T-w[F])),_.push(...j),C=w[F]+1}for(let F=0,L=_.length;F<L;F++)k[_[F]]!=null&&(_[F]=k[_[F]]);o.triangles=_}else{let w=tk(E,o.hole||[]);for(let _=0,C=w.length;_<C;_++)k[w[_]]!=null&&(w[_]=k[w[_]]);o.triangles=w}}let v=new Float64Array(f);fee(v,2,g);let y=new Float64Array(d*2+6);o.close?f[0]===f[d*2-2]&&f[1]===f[d*2-1]?(y[0]=v[d*2-4],y[1]=v[d*2-3]):(y[0]=v[d*2-2],y[1]=v[d*2-1]):(y[0]=v[0],y[1]=v[1]),y.set(v,2),o.close?f[0]===f[d*2-2]&&f[1]===f[d*2-1]?(y[d*2+2]=v[2],y[d*2+3]=v[3],o.count-=1):(y[d*2+2]=v[0],y[d*2+3]=v[1],y[d*2+4]=v[2],y[d*2+5]=v[3]):(y[d*2+2]=v[d*2-2],y[d*2+3]=v[d*2-1],y[d*2+4]=v[d*2-2],y[d*2+5]=v[d*2-1]);var l=cee(y);o.positionBuffer(l);var s=qx(y,l);o.positionFractBuffer(s)}if(i.range?o.range=i.range:o.range||(o.range=o.bounds),(i.range||i.positions)&&o.count){let f=o.bounds,d=f[2]-f[0],g=f[3]-f[1],v=o.range[2]-o.range[0],y=o.range[3]-o.range[1];o.scale=[d/v,g/y],o.translate=[-o.range[0]/v+f[0]/v||0,-o.range[1]/y+f[1]/y||0],o.scaleFract=qx(o.scale),o.translateFract=qx(o.translate)}if(i.dashes){let f=0,d;if(!i.dashes||i.dashes.length<2)f=1,d=new Uint8Array([255,255,255,255,255,255,255,255]);else{f=0;for(let y=0;y<i.dashes.length;++y)f+=i.dashes[y];d=new Uint8Array(f*Sr.dashMult);let g=0,v=255;for(let y=0;y<2;y++)for(let E=0;E<i.dashes.length;++E){for(let k=0,x=i.dashes[E]*Sr.dashMult*.5;k<x;++k)d[g++]=v;v^=255}}o.dashLength=f,o.dashTexture({channels:1,data:d,width:d.length,height:1,mag:"linear",min:"linear"},0,0)}if(i.color){let f=o.count,d=i.color;d||(d="transparent");let g=new Uint8Array(f*4+4);if(!Array.isArray(d)||typeof d[0]=="number"){let v=C0(d,"uint8");for(let y=0;y<f+1;y++)g.set(v,y*4)}else{for(let v=0;v<f;v++){let y=C0(d[v],"uint8");g.set(y,v*4)}g.set(C0(d[0],"uint8"),f*4)}o.colorBuffer({usage:"dynamic",type:"uint8",data:g})}}}),e.length<this.passes.length){for(let i=e.length;i<this.passes.length;i++){let a=this.passes[i];a&&(a.colorBuffer.destroy(),a.positionBuffer.destroy(),a.dashTexture.destroy())}this.passes.length=e.length}let n=[];for(let i=0;i<this.passes.length;i++)this.passes[i]!==null&&n.push(this.passes[i]);return this.passes=n,this};Sr.prototype.destroy=function(){return this.passes.forEach(e=>{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this};const pee=mp,vee=ty,mee=YF,gee=_u,nk=Pl,ik=gp,{float32:yee,fract32:Vx}=EE;var Aae=bee;const ak=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function bee(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,l,s,f={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},d=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:ak}),E(t),n=e({vert:`
1047
+ `]),O5&&(E.frag=E.frag.replace("smoothstep","smoothStep"),y.frag=y.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(E)}yn.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4};yn.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};yn.prototype.draw=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=this.groups;if(r.length===1&&Array.isArray(r[0])&&(r[0][0]===null||Array.isArray(r[0][0]))&&(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a<r.length;a++)this.drawItem(a,r[a]);else i.forEach(function(o,l){e.drawItem(l)});return this};yn.prototype.drawItem=function(e,t){var r=this.groups,n=r[e];if(typeof t=="number"&&(e=t,n=r[t],t=null),!!(n&&n.count&&n.opacity)){n.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,n,t));for(var i=[],a=1;a<n.activation.length;a++)!n.activation[a]||n.activation[a]!==!0&&!n.activation[a].data.length||i.push.apply(i,rJ(this.getMarkerDrawOptions(a,n,t)));i.length&&this.drawMarker(i)}};yn.prototype.getMarkerDrawOptions=function(e,t,r){var n=t.range,i=t.tree,a=t.viewport,o=t.activation,l=t.selectionBuffer,s=t.count;if(this.regl,!i)return r?[ml({},t,{markerTexture:this.markerTextures[e],activation:o[e],count:r.length,elements:r,offset:0})]:[ml({},t,{markerTexture:this.markerTextures[e],activation:o[e],offset:0})];var f=[],d=i.range(n,{lod:!0,px:[(n[2]-n[0])/a.width,(n[3]-n[1])/a.height]});if(r){for(var g=o[e],v=g.data,y=new Uint8Array(s),E=0;E<r.length;E++){var M=r[E];y[M]=v?v[M]:1}l.subdata(y)}for(var x=d.length;x--;){var w=tJ(d[x],2),_=w[0],T=w[1];f.push(ml({},t,{markerTexture:this.markerTextures[e],activation:r?l:o[e],offset:_,count:T-_}))}return f};yn.prototype.update=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length){r.length===1&&Array.isArray(r[0])&&(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,l=this.maxSize,s=this.maxColors,f=this.palette;this.groups=i=r.map(function(d,g){var v=i[g];if(d===void 0)return v;d===null?d={positions:null}:typeof d=="function"?d={ondraw:d}:typeof d[0]=="number"&&(d={positions:d}),d=dJ(d,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),d.positions===null&&(d.positions=[]),d.tooManyColors!=null&&(e.tooManyColors=d.tooManyColors),v||(i[g]=v={id:g,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},d=ml({},yn.defaults,d)),d.positions&&!("marker"in d)&&(d.marker=v.marker,delete v.marker),d.marker&&!("positions"in d)&&(d.positions=v.positions,delete v.positions);var y=0,E=0;if(pJ(v,d,[{snap:!0,size:function(De,We){return De==null&&(De=yn.defaults.size),y+=De&&De.length?1:0,De},borderSize:function(De,We){return De==null&&(De=yn.defaults.borderSize),y+=De&&De.length?1:0,De},opacity:parseFloat,color:function(De,We){return De==null&&(De=yn.defaults.color),De=e.updateColor(De),E++,De},borderColor:function(De,We){return De==null&&(De=yn.defaults.borderColor),De=e.updateColor(De),E++,De},bounds:function(De,We,_t){return"range"in _t||(_t.range=null),De},positions:function(De,We,_t){var He=We.snap,we=We.positionBuffer,qe=We.positionFractBuffer,st=We.selectionBuffer;if(De.x||De.y)return De.x.length?We.xAttr={buffer:o.buffer(De.x),offset:0,stride:4,count:De.x.length}:We.xAttr={buffer:De.x.buffer,offset:De.x.offset*4||0,stride:(De.x.stride||1)*4,count:De.x.count},De.y.length?We.yAttr={buffer:o.buffer(De.y),offset:0,stride:4,count:De.y.length}:We.yAttr={buffer:De.y.buffer,offset:De.y.offset*4||0,stride:(De.y.stride||1)*4,count:De.y.count},We.count=Math.max(We.xAttr.count,We.yAttr.count),De;De=vJ(De,"float64");var Ke=We.count=Math.floor(De.length/2),ct=We.bounds=Ke?fJ(De,2):null;if(!_t.range&&!We.range&&(delete We.range,_t.range=ct),!_t.marker&&!We.marker&&(delete We.marker,_t.marker=null),He&&(He===!0||Ke>He)?We.tree=hJ(De,{bounds:ct}):He&&He.length&&(We.tree=He),We.tree){var yt={primitive:"points",usage:"static",data:We.tree,type:"uint32"};We.elements?We.elements(yt):We.elements=o.elements(yt)}var qt=S0.float32(De);we({data:qt,usage:"dynamic"});var Yt=S0.fract32(De,qt);return qe({data:Yt,usage:"dynamic"}),st({data:new Uint8Array(Ke),type:"uint8",usage:"stream"}),De}},{marker:function(De,We,_t){var He=We.activation;if(He.forEach(function(Yt){return Yt&&Yt.destroy&&Yt.destroy()}),He.length=0,!De||typeof De[0]=="number"){var we=e.addMarker(De);He[we]=!0}else{for(var qe=[],st=0,Ke=Math.min(De.length,We.count);st<Ke;st++){var ct=e.addMarker(De[st]);qe[ct]||(qe[ct]=new Uint8Array(We.count)),qe[ct][st]=1}for(var yt=0;yt<qe.length;yt++)if(qe[yt]){var qt={data:qe[yt],type:"uint8",usage:"static"};He[yt]?He[yt](qt):He[yt]=o.buffer(qt),He[yt].data=qe[yt]}}return De},range:function(De,We,_t){var He=We.bounds;if(He)return De||(De=He),We.scale=[1/(De[2]-De[0]),1/(De[3]-De[1])],We.translate=[-De[0],-De[1]],We.scaleFract=S0.fract(We.scale),We.translateFract=S0.fract(We.translate),De},viewport:function(De){var We=mJ(De||[a.drawingBufferWidth,a.drawingBufferHeight]);return We}}]),y){var M=v,x=M.count,w=M.size,_=M.borderSize,T=M.sizeBuffer,C=new Uint8Array(x*2);if(w.length||_.length)for(var F=0;F<x;F++)C[F*2]=Math.round((w[F]==null?w:w[F])*255/l),C[F*2+1]=Math.round((_[F]==null?_:_[F])*255/l);T({data:C,usage:"dynamic"})}if(E){var L=v,V=L.count,j=L.color,te=L.borderColor,ge=L.colorBuffer,me;if(e.tooManyColors){if(j.length||te.length){me=new Uint8Array(V*8);for(var Me=0;Me<V;Me++){var Fe=j[Me];me[Me*8]=f[Fe*4],me[Me*8+1]=f[Fe*4+1],me[Me*8+2]=f[Fe*4+2],me[Me*8+3]=f[Fe*4+3];var Le=te[Me];me[Me*8+4]=f[Le*4],me[Me*8+5]=f[Le*4+1],me[Me*8+6]=f[Le*4+2],me[Me*8+7]=f[Le*4+3]}}}else if(j.length||te.length){me=new Uint8Array(V*4+2);for(var ut=0;ut<V;ut++)j[ut]!=null&&(me[ut*4]=j[ut]%s,me[ut*4+1]=Math.floor(j[ut]/s)),te[ut]!=null&&(me[ut*4+2]=te[ut]%s,me[ut*4+3]=Math.floor(te[ut]/s))}ge({data:me||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return v})}};yn.prototype.addMarker=function(e){var t=this.markerTextures,r=this.regl,n=this.markerCache,i=e==null?0:n.indexOf(e);if(i>=0)return i;var a;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)a=e;else{a=new Uint8Array(e.length);for(var o=0,l=e.length;o<l;o++)a[o]=e[o]*255}var s=Math.floor(Math.sqrt(a.length));return i=t.length,n.push(e),t.push(r.texture({channels:1,data:a,radius:s,mag:"linear",min:"linear"})),i};yn.prototype.updateColor=function(e){var t=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(e)||(e=[e]);var i=[];if(typeof e[0]=="number"){var a=[];if(Array.isArray(e))for(var o=0;o<e.length;o+=4)a.push(e.slice(o,o+4));else for(var l=0;l<e.length;l+=4)a.push(e.subarray(l,l+4));e=a}for(var s=0;s<e.length;s++){var f=e[s];f=sJ(f,"uint8");var d=cJ(f,!1);if(t[d]==null){var g=r.length;t[d]=Math.floor(g/4),r[g]=f[0],r[g+1]=f[1],r[g+2]=f[2],r[g+3]=f[3]}i[s]=t[d]}return!this.tooManyColors&&r.length>n*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};yn.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,r=this.paletteTexture,n=Math.ceil(e.length*.25/t);if(n>1){e=e.slice();for(var i=e.length*.25%t;i<n*t;i++)e.push(0,0,0,0)}r.height<n&&r.resize(t,n),r.subimage({width:Math.min(e.length*.25,t),height:n,data:e},0,0)}};yn.prototype.destroy=function(){return this.groups.forEach(function(e){e.sizeBuffer.destroy(),e.positionBuffer.destroy(),e.positionFractBuffer.destroy(),e.colorBuffer.destroy(),e.activation.forEach(function(t){return t&&t.destroy&&t.destroy()}),e.selectionBuffer.destroy(),e.elements&&e.elements.destroy()}),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach(function(e){return e&&e.destroy&&e.destroy()}),this};var yJ=Pl,bJ=function(t,r){var n=new gJ(t,r),i=n.render.bind(n);return yJ(i,{render:i,update:n.update.bind(n),draw:n.draw.bind(n),destroy:n.destroy.bind(n),regl:n.regl,gl:n.gl,canvas:n.gl.canvas,groups:n.groups,markers:n.markerCache,palette:n.palette}),i},xae=bJ,EE={exports:{}};EE.exports=ry;EE.exports.default=ry;function ry(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=YF(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var l,s,f,d,g,v,y;if(n&&(a=EJ(e,t,a,r)),e.length>80*r){l=f=e[0],s=d=e[1];for(var E=r;E<i;E+=r)g=e[E],v=e[E+1],g<l&&(l=g),v<s&&(s=v),g>f&&(f=g),v>d&&(d=v);y=Math.max(f-l,d-s),y=y!==0?1/y:0}return Dd(a,o,r,l,s,y),o}function YF(e,t,r,n,i){var a,o;if(i===a2(e,t,r,n)>0)for(a=t;a<r;a+=n)o=M5(a,e[a],e[a+1],o);else for(a=r-n;a>=t;a-=n)o=M5(a,e[a],e[a+1],o);return o&&ny(o,o.next)&&(Bd(o),o=o.next),o}function du(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(ny(r,r.next)||jr(r.prev,r,r.next)===0)){if(Bd(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Dd(e,t,r,n,i,a,o){if(e){!o&&a&&MJ(e,n,i,a);for(var l=e,s,f;e.prev!==e.next;){if(s=e.prev,f=e.next,a?wJ(e,n,i,a):xJ(e)){t.push(s.i/r),t.push(e.i/r),t.push(f.i/r),Bd(e),e=f.next,l=f.next;continue}if(e=f,e===l){o?o===1?(e=_J(du(e),t,r),Dd(e,t,r,n,i,a,2)):o===2&&SJ(e,t,r,n,i,a):Dd(du(e),t,r,n,i,a,1);break}}}}function xJ(e){var t=e.prev,r=e,n=e.next;if(jr(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(tf(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&jr(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function wJ(e,t,r,n){var i=e.prev,a=e,o=e.next;if(jr(i,a,o)>=0)return!1;for(var l=i.x<a.x?i.x<o.x?i.x:o.x:a.x<o.x?a.x:o.x,s=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,f=i.x>a.x?i.x>o.x?i.x:o.x:a.x>o.x?a.x:o.x,d=i.y>a.y?i.y>o.y?i.y:o.y:a.y>o.y?a.y:o.y,g=n2(l,s,t,r,n),v=n2(f,d,t,r,n),y=e.prevZ,E=e.nextZ;y&&y.z>=g&&E&&E.z<=v;){if(y!==e.prev&&y!==e.next&&tf(i.x,i.y,a.x,a.y,o.x,o.y,y.x,y.y)&&jr(y.prev,y,y.next)>=0||(y=y.prevZ,E!==e.prev&&E!==e.next&&tf(i.x,i.y,a.x,a.y,o.x,o.y,E.x,E.y)&&jr(E.prev,E,E.next)>=0))return!1;E=E.nextZ}for(;y&&y.z>=g;){if(y!==e.prev&&y!==e.next&&tf(i.x,i.y,a.x,a.y,o.x,o.y,y.x,y.y)&&jr(y.prev,y,y.next)>=0)return!1;y=y.prevZ}for(;E&&E.z<=v;){if(E!==e.prev&&E!==e.next&&tf(i.x,i.y,a.x,a.y,o.x,o.y,E.x,E.y)&&jr(E.prev,E,E.next)>=0)return!1;E=E.nextZ}return!0}function _J(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!ny(i,a)&&XF(i,n,n.next,a)&&$d(i,a)&&$d(a,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(a.i/r),Bd(n),Bd(n.next),n=e=a),n=n.next}while(n!==e);return du(n)}function SJ(e,t,r,n,i,a){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&PJ(o,l)){var s=KF(o,l);o=du(o,o.next),s=du(s,s.next),Dd(o,t,r,n,i,a),Dd(s,t,r,n,i,a);return}l=l.next}o=o.next}while(o!==e)}function EJ(e,t,r,n){var i=[],a,o,l,s,f;for(a=0,o=t.length;a<o;a++)l=t[a]*n,s=a<o-1?t[a+1]*n:e.length,f=YF(e,l,s,n,!1),f===f.next&&(f.steiner=!0),i.push(RJ(f));for(i.sort(AJ),a=0;a<i.length;a++)r=CJ(i[a],r),r=du(r,r.next);return r}function AJ(e,t){return e.x-t.x}function CJ(e,t){var r=TJ(e,t);if(!r)return t;var n=KF(r,e),i=du(r,r.next);return du(n,n.next),t===r?i:t}function TJ(e,t){var r=t,n=e.x,i=e.y,a=-1/0,o;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var l=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(l<=n&&l>a){if(a=l,l===n){if(i===r.y)return r;if(i===r.next.y)return r.next}o=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!o)return null;if(n===a)return o;var s=o,f=o.x,d=o.y,g=1/0,v;r=o;do n>=r.x&&r.x>=f&&n!==r.x&&tf(i<d?n:a,i,f,d,i<d?a:n,i,r.x,r.y)&&(v=Math.abs(i-r.y)/(n-r.x),$d(r,e)&&(v<g||v===g&&(r.x>o.x||r.x===o.x&&OJ(o,r)))&&(o=r,g=v)),r=r.next;while(r!==s);return o}function OJ(e,t){return jr(e.prev,e,t.prev)<0&&jr(t.next,e,e.next)<0}function MJ(e,t,r,n){var i=e;do i.z===null&&(i.z=n2(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,kJ(i)}function kJ(e){var t,r,n,i,a,o,l,s,f=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,l=0,t=0;t<f&&(l++,n=n.nextZ,!!n);t++);for(s=f;l>0||s>0&&n;)l!==0&&(s===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,l--):(i=n,n=n.nextZ,s--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,f*=2}while(o>1);return e}function n2(e,t,r,n,i){return e=32767*(e-r)*i,t=32767*(t-n)*i,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 RJ(e){var t=e,r=e;do(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next;while(t!==e);return r}function tf(e,t,r,n,i,a,o,l){return(i-o)*(t-l)-(e-o)*(a-l)>=0&&(e-o)*(n-l)-(r-o)*(t-l)>=0&&(r-o)*(a-l)-(i-o)*(n-l)>=0}function PJ(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!IJ(e,t)&&($d(e,t)&&$d(t,e)&&FJ(e,t)&&(jr(e.prev,e,t.prev)||jr(e,t.prev,t))||ny(e,t)&&jr(e.prev,e,e.next)>0&&jr(t.prev,t,t.next)>0)}function jr(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function ny(e,t){return e.x===t.x&&e.y===t.y}function XF(e,t,r,n){var i=A0(jr(e,t,r)),a=A0(jr(e,t,n)),o=A0(jr(r,n,e)),l=A0(jr(r,n,t));return!!(i!==a&&o!==l||i===0&&E0(e,r,t)||a===0&&E0(e,n,t)||o===0&&E0(r,e,n)||l===0&&E0(r,t,n))}function E0(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function A0(e){return e>0?1:e<0?-1:0}function IJ(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&XF(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function $d(e,t){return jr(e.prev,e,e.next)<0?jr(e,t,e.next)>=0&&jr(e,e.prev,t)>=0:jr(e,t,e.prev)<0||jr(e,e.next,t)<0}function FJ(e,t){var r=e,n=!1,i=(e.x+t.x)/2,a=(e.y+t.y)/2;do r.y>a!=r.next.y>a&&r.next.y!==r.y&&i<(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function KF(e,t){var r=new i2(e.i,e.x,e.y),n=new i2(t.i,t.x,t.y),i=e.next,a=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function M5(e,t,r,n){var i=new i2(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Bd(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 i2(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}ry.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(a2(e,0,a,r));if(i)for(var l=0,s=t.length;l<s;l++){var f=t[l]*r,d=l<s-1?t[l+1]*r:e.length;o-=Math.abs(a2(e,f,d,r))}var g=0;for(l=0;l<n.length;l+=3){var v=n[l]*r,y=n[l+1]*r,E=n[l+2]*r;g+=Math.abs((e[v]-e[E])*(e[y+1]-e[v+1])-(e[v]-e[y])*(e[E+1]-e[v+1]))}return o===0&&g===0?0:Math.abs((g-o)/o)};function a2(e,t,r,n){for(var i=0,a=t,o=r-n;a<r;a+=n)i+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return i}ry.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var a=0;a<e[i].length;a++)for(var o=0;o<t;o++)r.vertices.push(e[i][a][o]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var NJ=EE.exports,LJ=vp,DJ=$J;function $J(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=LJ(e,t));for(var n=0;n<t;n++){var i=r[t+n],a=r[n],o=n,l=e.length;if(i===1/0&&a===-1/0)for(o=n;o<l;o+=t)e[o]=e[o]===i?1:e[o]===a?0:.5;else if(i===1/0)for(o=n;o<l;o+=t)e[o]=e[o]===i?1:0;else if(a===-1/0)for(o=n;o<l;o+=t)e[o]=e[o]===a?0:1;else{var s=i-a;for(o=n;o<l;o+=t)isNaN(e[o])||(e[o]=s===0?.5:(e[o]-a)/s)}}return e}var BJ=function(){var e,t;if(typeof WeakMap!="function")return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch{return!1}return!(String(e)!=="[object WeakMap]"||typeof e.set!="function"||e.set({},1)!==e||typeof e.delete!="function"||typeof e.has!="function"||e.get(t)!=="one")},wx,k5;function QF(){if(k5)return wx;k5=1;var e=Object.create,t=Object.getPrototypeOf,r={};return wx=function(){var n=Object.setPrototypeOf,i=arguments[0]||e;return typeof n!="function"?!1:t(n(i(null),r))===r},wx}var _x,R5;function zJ(){if(R5)return _x;R5=1;var e=Object.create,t;return QF()()||(t=ZF()),_x=function(){var r,n,i;return!t||t.level!==1?e:(r={},n={},i={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach(function(a){if(a==="__proto__"){n[a]={configurable:!0,enumerable:!1,writable:!0,value:void 0};return}n[a]=i}),Object.defineProperties(r,n),Object.defineProperty(t,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:r}),function(a,o){return e(a===null?r:a,o)})}(),_x}var Sx,P5;function ZF(){if(P5)return Sx;P5=1;var e=vS,t=Ji,r=Object.prototype.isPrototypeOf,n=Object.defineProperty,i={configurable:!0,enumerable:!1,writable:!0,value:void 0},a;return a=function(o,l){if(t(o),l===null||e(l))return o;throw new TypeError("Prototype must be null or an object")},Sx=function(o){var l,s;return o?(o.level===2?o.set?(s=o.set,l=function(f,d){return s.call(a(f,d),d),f}):l=function(f,d){return a(f,d).__proto__=d,f}:l=function f(d,g){var v;return a(d,g),v=r.call(f.nullPolyfill,d),v&&delete f.nullPolyfill.__proto__,g===null&&(g=f.nullPolyfill),d.__proto__=g,v&&n(f.nullPolyfill,"__proto__",i),d},Object.defineProperty(l,"level",{configurable:!1,enumerable:!1,writable:!1,value:o.level})):null}(function(){var o=Object.create(null),l={},s,f=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(f){try{s=f.set,s.call(o,l)}catch{}if(Object.getPrototypeOf(o)===l)return{set:s,level:2}}return o.__proto__=l,Object.getPrototypeOf(o)===l?{level:2}:(o={},o.__proto__=l,Object.getPrototypeOf(o)===l?{level:1}:!1)}()),zJ(),Sx}var Ex,I5;function AE(){return I5||(I5=1,Ex=QF()()?Object.setPrototypeOf:ZF()),Ex}var Ax,F5;function UJ(){if(F5)return Ax;F5=1;var e=vS;return Ax=function(t){if(!e(t))throw new TypeError(t+" is not an Object");return t},Ax}var Cx,N5;function jJ(){if(N5)return Cx;N5=1;var e=Object.create(null),t=Math.random;return Cx=function(){var r;do r=t().toString(36).slice(2);while(e[r]);return r},Cx}var Tx={exports:{}},Ox,L5;function GJ(){if(L5)return Ox;L5=1;var e=Ji;return Ox=function(){return e(this).length=0,this},Ox}var Mx,D5;function WJ(){if(D5)return Mx;D5=1;var e=Wf,t=mS,r=Object.prototype.toString;return Mx=function(n){if(!e(n))return null;if(t(n)){var i=n.toString;if(typeof i!="function"||i===r)return null}try{return""+n}catch{return null}},Mx}var kx,$5;function HJ(){return $5||($5=1,kx=function(e){try{return e.toString()}catch{try{return String(e)}catch{return null}}}),kx}var Rx,B5;function qJ(){if(B5)return Rx;B5=1;var e=HJ(),t=/[\n\r\u2028\u2029]/g;return Rx=function(r){var n=e(r);return n===null?"<Non-coercible to string value>":(n.length>100&&(n=n.slice(0,99)+"…"),n=n.replace(t,function(i){switch(i){case`
1048
+ `:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),n)},Rx}var Px,z5;function JF(){if(z5)return Px;z5=1;var e=Wf,t=mS,r=WJ(),n=qJ(),i=function(a,o){return a.replace("%v",n(o))};return Px=function(a,o,l){if(!t(l))throw new TypeError(i(o,a));if(!e(a)){if("default"in l)return l.default;if(l.isOptional)return null}var s=r(l.errorMessage);throw e(s)||(s=o),new TypeError(i(s,a))},Px}var Ix,U5;function VJ(){if(U5)return Ix;U5=1;var e=JF(),t=Wf;return Ix=function(r){return t(r)?r:e(r,"Cannot use %v",arguments[1])},Ix}var Fx,j5;function YJ(){if(j5)return Fx;j5=1;var e=JF(),t=WR;return Fx=function(r){return t(r)?r:e(r,"%v is not a plain function",arguments[1])},Fx}var Nx,G5;function XJ(){if(G5)return Nx;G5=1;var e=Tg(),t=Sg,r=Ji;return Nx=function(n){var i=Object(r(n)),a=arguments[1],o=Object(arguments[2]);if(i!==n&&!a)return i;var l={};return a?e(a,function(s){(o.ensure||s in n)&&(l[s]=n[s])}):t(l,n),l},Nx}var Lx,W5;function KJ(){if(W5)return Lx;W5=1;var e=Wf,t=VJ(),r=YJ(),n=XJ(),i=pS,a=yS(),o=Function.prototype.bind,l=Object.defineProperty,s=Object.prototype.hasOwnProperty,f;return f=function(d,g,v){var y=t(g)&&r(g.value),E;return E=n(g),delete E.writable,delete E.value,E.get=function(){return!v.overwriteDefinition&&s.call(this,d)?y:(g.value=o.call(y,v.resolveContext?v.resolveContext(this):this),l(this,d,g),this[d])},E},Lx=function(d){var g=i(arguments[1]);return e(g.resolveContext)&&r(g.resolveContext),a(d,function(v,y){return f(y,v,g)})},Lx}var Dx,H5;function eN(){if(H5)return Dx;H5=1;var e=GJ(),t=Sg,r=Aa,n=Ji,i=ea,a=KJ(),o=Bl(),l=Object.defineProperty,s=Object.defineProperties,f;return Dx=f=function(d,g){if(!(this instanceof f))throw new TypeError("Constructor requires 'new'");s(this,{__list__:i("w",n(d)),__context__:i("w",g),__nextIndex__:i("w",0)}),g&&(r(g.on),g.on("_add",this._onAdd),g.on("_delete",this._onDelete),g.on("_clear",this._onClear))},delete f.prototype.constructor,s(f.prototype,t({_next:i(function(){var d;if(this.__list__){if(this.__redo__&&(d=this.__redo__.shift(),d!==void 0))return d;if(this.__nextIndex__<this.__list__.length)return this.__nextIndex__++;this._unBind()}}),next:i(function(){return this._createResult(this._next())}),_createResult:i(function(d){return d===void 0?{done:!0,value:void 0}:{done:!1,value:this._resolve(d)}}),_resolve:i(function(d){return this.__list__[d]}),_unBind:i(function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)}),toString:i(function(){return"[object "+(this[o.toStringTag]||"Object")+"]"})},a({_onAdd:i(function(d){if(!(d>=this.__nextIndex__)){if(++this.__nextIndex__,!this.__redo__){l(this,"__redo__",i("c",[d]));return}this.__redo__.forEach(function(g,v){g>=d&&(this.__redo__[v]=++g)},this),this.__redo__.push(d)}}),_onDelete:i(function(d){var g;d>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(g=this.__redo__.indexOf(d),g!==-1&&this.__redo__.splice(g,1),this.__redo__.forEach(function(v,y){v>d&&(this.__redo__[y]=--v)},this)))}),_onClear:i(function(){this.__redo__&&e.call(this.__redo__),this.__nextIndex__=0})}))),l(f.prototype,o.iterator,i(function(){return this})),Dx}var q5;function QJ(){if(q5)return Tx.exports;q5=1;var e=AE(),t=HR,r=ea,n=Bl(),i=eN(),a=Object.defineProperty,o;return o=Tx.exports=function(l,s){if(!(this instanceof o))throw new TypeError("Constructor requires 'new'");i.call(this,l),s?t.call(s,"key+value")?s="key+value":t.call(s,"key")?s="key":s="value":s="value",a(this,"__kind__",r("",s))},e&&e(o,i),delete o.prototype.constructor,o.prototype=Object.create(i.prototype,{_resolve:r(function(l){return this.__kind__==="value"?this.__list__[l]:this.__kind__==="key+value"?[l,this.__list__[l]]:l})}),a(o.prototype,n.toStringTag,r("c","Array Iterator")),Tx.exports}var $x={exports:{}},V5;function ZJ(){if(V5)return $x.exports;V5=1;var e=AE(),t=ea,r=Bl(),n=eN(),i=Object.defineProperty,a;return a=$x.exports=function(o){if(!(this instanceof a))throw new TypeError("Constructor requires 'new'");o=String(o),n.call(this,o),i(this,"__length__",t("",o.length))},e&&e(a,n),delete a.prototype.constructor,a.prototype=Object.create(n.prototype,{_next:t(function(){if(this.__list__){if(this.__nextIndex__<this.__length__)return this.__nextIndex__++;this._unBind()}}),_resolve:t(function(o){var l=this.__list__[o],s;return this.__nextIndex__===this.__length__?l:(s=l.charCodeAt(0),s>=55296&&s<=56319?l+this.__list__[this.__nextIndex__++]:l)})}),i(a.prototype,r.toStringTag,t("c","String Iterator")),$x.exports}var Bx,Y5;function JJ(){if(Y5)return Bx;Y5=1;var e=Ag(),t=oo,r=Cg(),n=Bl().iterator,i=Array.isArray;return Bx=function(a){return t(a)?i(a)||r(a)||e(a)?!0:typeof a[n]=="function":!1},Bx}var zx,X5;function eee(){if(X5)return zx;X5=1;var e=JJ();return zx=function(t){if(!e(t))throw new TypeError(t+" is not iterable");return t},zx}var Ux,K5;function tN(){if(K5)return Ux;K5=1;var e=Ag(),t=Cg(),r=QJ(),n=ZJ(),i=eee(),a=Bl().iterator;return Ux=function(o){return typeof i(o)[a]=="function"?o[a]():e(o)?new r(o):t(o)?new n(o):new r(o)},Ux}var jx,Q5;function tee(){if(Q5)return jx;Q5=1;var e=Ag(),t=Aa,r=Cg(),n=tN(),i=Array.isArray,a=Function.prototype.call,o=Array.prototype.some;return jx=function(l,s){var f,d=arguments[2],g,v,y,E,M,x,w;if(i(l)||e(l)?f="array":r(l)?f="string":l=n(l),t(s),v=function(){y=!0},f==="array"){o.call(l,function(_){return a.call(s,d,_,v),y});return}if(f==="string"){for(M=l.length,E=0;E<M&&(x=l[E],E+1<M&&(w=x.charCodeAt(0),w>=55296&&w<=56319&&(x+=l[++E])),a.call(s,d,x,v),!y);++E);return}for(g=l.next();!g.done;){if(a.call(s,d,g.value,v),y)return;g=l.next()}},jx}var Gx,Z5;function ree(){return Z5||(Z5=1,Gx=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()),Gx}var Wx,J5;function nee(){if(J5)return Wx;J5=1;var e=oo,t=AE(),r=UJ(),n=Ji,i=jJ(),a=ea,o=tN(),l=tee(),s=Bl().toStringTag,f=ree(),d=Array.isArray,g=Object.defineProperty,v=Object.prototype.hasOwnProperty,y=Object.getPrototypeOf,E;return Wx=E=function(){var M=arguments[0],x;if(!(this instanceof E))throw new TypeError("Constructor requires 'new'");return x=f&&t&&WeakMap!==E?t(new WeakMap,y(this)):this,e(M)&&(d(M)||(M=o(M))),g(x,"__weakMapData__",a("c","$weakMap$"+i())),M&&l(M,function(w){n(w),x.set(w[0],w[1])}),x},f&&(t&&t(E,WeakMap),E.prototype=Object.create(WeakMap.prototype,{constructor:a(E)})),Object.defineProperties(E.prototype,{delete:a(function(M){return v.call(r(M),this.__weakMapData__)?(delete M[this.__weakMapData__],!0):!1}),get:a(function(M){if(v.call(r(M),this.__weakMapData__))return M[this.__weakMapData__]}),has:a(function(M){return v.call(r(M),this.__weakMapData__)}),set:a(function(M,x){return g(r(M),this.__weakMapData__,a("c",x)),this}),toString:a(function(){return"[object WeakMap]"})}),g(E.prototype,s,a("c","WeakMap")),Wx}var rN=BJ()?WeakMap:nee(),iee=function(e,t,r){if(typeof Array.prototype.findIndex=="function")return e.findIndex(t,r);if(typeof t!="function")throw new TypeError("predicate must be a function");var n=Object(e),i=n.length;if(i===0)return-1;for(var a=0;a<i;a++)if(t.call(r,n[a],a,n))return a;return-1};const C0=ey,aee=vp,o2=Pl,Ds=HF,oee=_u,uee=mp,eM=NJ,lee=DJ,{float32:see,fract32:Hx}=SE,fee=rN,tM=Jg,cee=iee;var wae=Sr;function Sr(e,t){if(!(this instanceof Sr))return new Sr(e,t);if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=Sr.shaders.has(e)?Sr.shaders.get(e):Sr.shaders.set(e,Sr.createShaders(e)).get(e),this.update(t)}Sr.dashMult=2;Sr.maxPatternLength=256;Sr.precisionThreshold=3e6;Sr.maxPoints=1e4;Sr.maxLines=2048;Sr.shaders=new fee;Sr.createShaders=function(e){let t=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:(o,l)=>l.join==="round"?2:1,miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashTexture:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashLength:e.prop("dashLength"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight],depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:(o,l)=>!l.overlay},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},n=e(o2({vert:Ds("./rect-vert.glsl"),frag:Ds("./rect-frag.glsl"),attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r)),i;try{i=e(o2({cull:{enable:!0,face:"back"},vert:Ds("./miter-vert.glsl"),frag:Ds("./miter-frag.glsl"),attributes:{lineEnd:{buffer:t,divisor:0,stride:8,offset:0},lineTop:{buffer:t,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch{i=n}return{fill:e({primitive:"triangle",elements:(o,l)=>l.triangles,offset:0,vert:Ds("./fill-vert.glsl"),frag:Ds("./fill-frag.glsl"),uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:(o,l)=>[l.viewport.x,l.viewport.y,o.viewportWidth,o.viewportHeight]},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport}),rect:n,miter:i}};Sr.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null};Sr.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Sr.prototype.draw=function(...e){return(e.length?e:this.passes).forEach((t,r)=>{if(t&&Array.isArray(t))return this.draw(...t);typeof t=="number"&&(t=this.passes[t]),t&&t.count>1&&t.opacity&&(this.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&this.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>Sr.precisionThreshold||t.scale[1]*t.viewport.height>Sr.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Sr.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Sr.prototype.update=function(e){if(!e)return;e.length!=null?typeof e[0]=="number"&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);let{regl:t,gl:r}=this;if(e.forEach((i,a)=>{let o=this.passes[a];if(i!==void 0){if(i===null){this.passes[a]=null;return}if(typeof i[0]=="number"&&(i={positions:i}),i=oee(i,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow",splitNull:"splitNull"}),o||(this.passes[a]=o={id:a,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:t.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:t.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:t.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},i=o2({},Sr.defaults,i)),i.thickness!=null&&(o.thickness=parseFloat(i.thickness)),i.opacity!=null&&(o.opacity=parseFloat(i.opacity)),i.miterLimit!=null&&(o.miterLimit=parseFloat(i.miterLimit)),i.overlay!=null&&(o.overlay=!!i.overlay,a<Sr.maxLines&&(o.depth=2*(Sr.maxLines-1-a%Sr.maxLines)/Sr.maxLines-1)),i.join!=null&&(o.join=i.join),i.hole!=null&&(o.hole=i.hole),i.fill!=null&&(o.fill=i.fill?C0(i.fill,"uint8"):null),i.viewport!=null&&(o.viewport=tM(i.viewport)),o.viewport||(o.viewport=tM([r.drawingBufferWidth,r.drawingBufferHeight])),i.close!=null&&(o.close=i.close),i.positions===null&&(i.positions=[]),i.positions){let f,d;if(i.positions.x&&i.positions.y){let E=i.positions.x,M=i.positions.y;d=o.count=Math.max(E.length,M.length),f=new Float64Array(d*2);for(let x=0;x<d;x++)f[x*2]=E[x],f[x*2+1]=M[x]}else f=uee(i.positions,"float64"),d=o.count=Math.floor(f.length/2);let g=o.bounds=aee(f,2);if(o.fill){let E=[],M={},x=0;for(let w=0,_=0,T=o.count;w<T;w++){let C=f[w*2],F=f[w*2+1];isNaN(C)||isNaN(F)||C==null||F==null?(C=f[x*2],F=f[x*2+1],M[w]=x):x=w,E[_++]=C,E[_++]=F}if(i.splitNull){o.count-1 in M||(M[o.count]=o.count-1);let w=Object.keys(M).map(Number).sort((F,L)=>F-L),_=[],T=0,C=o.hole!=null?o.hole[0]:null;if(C!=null){let F=cee(w,L=>L>=C);w=w.slice(0,F),w.push(C)}for(let F=0;F<w.length;F++){let L=E.slice(T*2,w[F]*2).concat(C?E.slice(C*2):[]),V=(o.hole||[]).map(te=>te-C+(w[F]-T)),j=eM(L,V);j=j.map(te=>te+T+(te+T<w[F]?0:C-w[F])),_.push(...j),T=w[F]+1}for(let F=0,L=_.length;F<L;F++)M[_[F]]!=null&&(_[F]=M[_[F]]);o.triangles=_}else{let w=eM(E,o.hole||[]);for(let _=0,T=w.length;_<T;_++)M[w[_]]!=null&&(w[_]=M[w[_]]);o.triangles=w}}let v=new Float64Array(f);lee(v,2,g);let y=new Float64Array(d*2+6);o.close?f[0]===f[d*2-2]&&f[1]===f[d*2-1]?(y[0]=v[d*2-4],y[1]=v[d*2-3]):(y[0]=v[d*2-2],y[1]=v[d*2-1]):(y[0]=v[0],y[1]=v[1]),y.set(v,2),o.close?f[0]===f[d*2-2]&&f[1]===f[d*2-1]?(y[d*2+2]=v[2],y[d*2+3]=v[3],o.count-=1):(y[d*2+2]=v[0],y[d*2+3]=v[1],y[d*2+4]=v[2],y[d*2+5]=v[3]):(y[d*2+2]=v[d*2-2],y[d*2+3]=v[d*2-1],y[d*2+4]=v[d*2-2],y[d*2+5]=v[d*2-1]);var l=see(y);o.positionBuffer(l);var s=Hx(y,l);o.positionFractBuffer(s)}if(i.range?o.range=i.range:o.range||(o.range=o.bounds),(i.range||i.positions)&&o.count){let f=o.bounds,d=f[2]-f[0],g=f[3]-f[1],v=o.range[2]-o.range[0],y=o.range[3]-o.range[1];o.scale=[d/v,g/y],o.translate=[-o.range[0]/v+f[0]/v||0,-o.range[1]/y+f[1]/y||0],o.scaleFract=Hx(o.scale),o.translateFract=Hx(o.translate)}if(i.dashes){let f=0,d;if(!i.dashes||i.dashes.length<2)f=1,d=new Uint8Array([255,255,255,255,255,255,255,255]);else{f=0;for(let y=0;y<i.dashes.length;++y)f+=i.dashes[y];d=new Uint8Array(f*Sr.dashMult);let g=0,v=255;for(let y=0;y<2;y++)for(let E=0;E<i.dashes.length;++E){for(let M=0,x=i.dashes[E]*Sr.dashMult*.5;M<x;++M)d[g++]=v;v^=255}}o.dashLength=f,o.dashTexture({channels:1,data:d,width:d.length,height:1,mag:"linear",min:"linear"},0,0)}if(i.color){let f=o.count,d=i.color;d||(d="transparent");let g=new Uint8Array(f*4+4);if(!Array.isArray(d)||typeof d[0]=="number"){let v=C0(d,"uint8");for(let y=0;y<f+1;y++)g.set(v,y*4)}else{for(let v=0;v<f;v++){let y=C0(d[v],"uint8");g.set(y,v*4)}g.set(C0(d[0],"uint8"),f*4)}o.colorBuffer({usage:"dynamic",type:"uint8",data:g})}}}),e.length<this.passes.length){for(let i=e.length;i<this.passes.length;i++){let a=this.passes[i];a&&(a.colorBuffer.destroy(),a.positionBuffer.destroy(),a.dashTexture.destroy())}this.passes.length=e.length}let n=[];for(let i=0;i<this.passes.length;i++)this.passes[i]!==null&&n.push(this.passes[i]);return this.passes=n,this};Sr.prototype.destroy=function(){return this.passes.forEach(e=>{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this};const hee=vp,dee=ey,pee=qF,vee=_u,rM=Pl,nM=mp,{float32:mee,fract32:qx}=SE;var _ae=gee;const iM=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function gee(e,t){if(typeof e=="function"?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");let r=e._gl,n,i,a,o,l,s,f={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},d=[];return o=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),i=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),a=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),l=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),s=e.buffer({usage:"static",type:"float",data:iM}),E(t),n=e({vert:`
1049
1049
  precision highp float;
1050
1050
 
1051
1051
  attribute vec2 position, positionFract;
@@ -1089,15 +1089,15 @@ void main() {
1089
1089
  gl_FragColor = fragColor;
1090
1090
  gl_FragColor.a *= opacity;
1091
1091
  }
1092
- `,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(x,w)=>[w.viewport.x,w.viewport.y,x.viewportWidth,x.viewportHeight]},attributes:{color:{buffer:o,offset:(x,w)=>w.offset*4,divisor:1},position:{buffer:i,offset:(x,w)=>w.offset*8,divisor:1},positionFract:{buffer:a,offset:(x,w)=>w.offset*8,divisor:1},error:{buffer:l,offset:(x,w)=>w.offset*16,divisor:1},direction:{buffer:s,stride:24,offset:0},lineOffset:{buffer:s,stride:24,offset:8},capOffset:{buffer:s,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:ak.length}),nk(g,{update:E,draw:v,destroy:k,regl:e,gl:r,canvas:r.canvas,groups:d}),g;function g(x){x?E(x):x===null&&k(),v()}function v(x){if(typeof x=="number")return y(x);x&&!Array.isArray(x)&&(x=[x]),e._refresh(),d.forEach((w,_)=>{if(w){if(x&&(x[_]?w.draw=!0:w.draw=!1),!w.draw){w.draw=!0;return}y(_)}})}function y(x){typeof x=="number"&&(x=d[x]),x!=null&&x&&x.count&&x.color&&x.opacity&&x.positions&&x.positions.length>1&&(x.scaleRatio=[x.scale[0]*x.viewport.width,x.scale[1]*x.viewport.height],n(x),x.after&&x.after(x))}function E(x){if(!x)return;x.length!=null?typeof x[0]=="number"&&(x=[{positions:x}]):Array.isArray(x)||(x=[x]);let w=0,_=0;if(g.groups=d=x.map((F,L)=>{let V=d[L];if(F)typeof F=="function"?F={after:F}:typeof F[0]=="number"&&(F={positions:F});else return V;return F=gee(F,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),V||(d[L]=V={id:L,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},F=nk({},f,F)),mee(V,F,[{lineWidth:j=>+j*.5,capSize:j=>+j*.5,opacity:parseFloat,errors:j=>(j=ik(j),_+=j.length,j),positions:(j,te)=>(j=ik(j,"float64"),te.count=Math.floor(j.length/2),te.bounds=pee(j,2),te.offset=w,w+=te.count,j)},{color:(j,te)=>{let ge=te.count;if(j||(j="transparent"),!Array.isArray(j)||typeof j[0]=="number"){let ke=j;j=Array(ge);for(let Fe=0;Fe<ge;Fe++)j[Fe]=ke}if(j.length<ge)throw Error("Not enough colors");let me=new Uint8Array(ge*4);for(let ke=0;ke<ge;ke++){let Fe=vee(j[ke],"uint8");me.set(Fe,ke*4)}return me},range:(j,te,ge)=>{let me=te.bounds;return j||(j=me),te.scale=[1/(j[2]-j[0]),1/(j[3]-j[1])],te.translate=[-j[0],-j[1]],te.scaleFract=Vx(te.scale),te.translateFract=Vx(te.translate),j},viewport:j=>{let te;return Array.isArray(j)?te={x:j[0],y:j[1],width:j[2]-j[0],height:j[3]-j[1]}:j?(te={x:j.x||j.left||0,y:j.y||j.top||0},j.right?te.width=j.right-te.x:te.width=j.w||j.width||0,j.bottom?te.height=j.bottom-te.y:te.height=j.h||j.height||0):te={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},te}}]),V}),w||_){let F=d.reduce((te,ge,me)=>te+(ge?ge.count:0),0),L=new Float64Array(F*2),V=new Uint8Array(F*4),j=new Float32Array(F*4);d.forEach((te,ge)=>{if(!te)return;let{positions:me,count:ke,offset:Fe,color:Le,errors:ut}=te;ke&&(V.set(Le,Fe*4),j.set(ut,Fe*4),L.set(me,Fe*2))});var C=yee(L);i(C);var T=Vx(L,C);a(T),o(V),l(j)}}function k(){i.destroy(),a.destroy(),o.destroy(),l.destroy(),s.destroy()}}var ok=/[\'\"]/,xee=function(t){return t?(ok.test(t.charAt(0))&&(t=t.substr(1)),ok.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""};const aN=["inherit","initial","unset"],oN=["caption","icon","menu","message-box","small-caption","status-bar"],uN=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"],lN=["normal","italic","oblique"],sN=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"];function fN(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(s){var f=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),d=[];function g(v,y,E){var k=r.push(v.slice(s[0].length,-s[1].length))-1;return d.push(k),i+k+i}r.forEach(function(v,y){for(var E,k=0;v!=E;)if(E=v,v=v.replace(f,g),k++>1e4)throw Error("References have circular dependency. Please, check them.");r[y]=v}),d=d.reverse(),r=r.map(function(v){return d.forEach(function(y){v=v.replace(new RegExp("(\\"+i+y+"\\"+i+")","g"),s[0]+"$1"+s[1])}),v})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function l(s,f,d){for(var g=[],v,y=0;v=o.exec(s);){if(y++>1e4)throw Error("Circular references in parenthesis");g.push(s.slice(0,v.index)),g.push(l(f[v[1]],f)),s=s.slice(v.index+v[0].length)}return g.push(s),g}return a?r:l(r[0],r)}function cN(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,l)}return n}return e.reduce(function s(f,d){return Array.isArray(d)&&(d=d.reduce(s,"")),f+d},"");function l(s,f){if(e[f]==null)throw Error("Reference "+f+"is undefined");return e[f]}}function CE(e,t){return Array.isArray(e)?cN(e,t):fN(e,t)}CE.parse=fN;CE.stringify=cN;var wee=CE,uk=wee,_ee=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","“”","«»"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(g){return g.length===1&&(g=g+g),g}));var i=uk.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var l=[],s=0;s<o.length;s++){var f=o[s],d=o[s+1];f[f.length-1]==="\\"&&f[f.length-2]!=="\\"?(l.push(f+r+d),s++):l.push(f)}o=l}for(var s=0;s<o.length;s++)i[0]=o[s],o[s]=uk.stringify(i,{flat:!0});return o};const See=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"];var Eee=See,hN={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||Eee.indexOf(t)!==-1}},Aee=xee,Tee=aN,Cee=oN,Oee=uN,kee=lN,Mee=sN,Yx=_ee,Ree=hN.isSize,Pee=dN,Mh=dN.cache={};function dN(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(Mh[e])return Mh[e];if(e==="")throw new Error("Cannot parse an empty string.");if(Cee.indexOf(e)!==-1)return Mh[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=Yx(e,/\s+/),n;n=r.shift();){if(Tee.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),Mh[e]=t;if(kee.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(Mee.indexOf(n)!==-1){t.stretch=n;continue}if(Oee.indexOf(n)!==-1){t.weight=n;continue}if(Ree(n)){var i=Yx(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=lk(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=lk(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=Yx(r.join(" "),/\s*,\s*/).map(Aee),Mh[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function lk(e){var t=parseFloat(e);return t.toString()===e?t:e}var Iee=_u,Fee=hN.isSize,Nee=yp(aN),Lee=yp(oN),Dee=yp(uN),$ee=yp(lN),Bee=yp(sN),zee={normal:1,"small-caps":1},Uee={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},Xx={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"},pN=function(t){if(t=Iee(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&Rh(t.system,Lee),t.system;if(Rh(t.style,$ee),Rh(t.variant,zee),Rh(t.weight,Dee),Rh(t.stretch,Bee),t.size==null&&(t.size=Xx.size),typeof t.size=="number"&&(t.size+="px"),!Fee)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=Xx.family),Array.isArray(t.family)&&(t.family.length||(t.family=[Xx.family]),t.family=t.family.map(function(n){return Uee[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function Rh(e,t){if(e&&!t[e]&&!Nee[e])throw Error("Unknown keyword `"+e+"`");return e}function yp(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=1;return t}var jee={parse:Pee,stringify:pN},vN={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Jt,function(){var r=function(I,H){for(var Z=Object.keys(H),Ee=0;Ee<Z.length;++Ee)I[Z[Ee]]=H[Z[Ee]];return I},n=0,i=0,a=5,o=6;function l(I,H){this.id=n++,this.type=I,this.data=H}function s(I){return I.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function f(I){if(I.length===0)return[];var H=I.charAt(0),Z=I.charAt(I.length-1);if(I.length>1&&H===Z&&(H==='"'||H==="'"))return['"'+s(I.substr(1,I.length-2))+'"'];var Ee=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(I);if(Ee)return f(I.substr(0,Ee.index)).concat(f(Ee[1])).concat(f(I.substr(Ee.index+Ee[0].length)));var Me=I.split(".");if(Me.length===1)return['"'+s(I)+'"'];for(var be=[],_e=0;_e<Me.length;++_e)be=be.concat(f(Me[_e]));return be}function d(I){return"["+f(I).join("][")+"]"}function g(I,H){return new l(I,d(H+""))}function v(I){return typeof I=="function"&&!I._reglType||I instanceof l}function y(I,H){if(typeof I=="function")return new l(i,I);if(typeof I=="number"||typeof I=="boolean")return new l(a,I);if(Array.isArray(I))return new l(o,I.map(function(Z,Ee){return y(Z)}));if(I instanceof l)return I}var E={DynamicVariable:l,define:g,isDynamic:v,unbox:y,accessor:d},k={next:typeof requestAnimationFrame=="function"?function(I){return requestAnimationFrame(I)}:function(I){return setTimeout(I,16)},cancel:typeof cancelAnimationFrame=="function"?function(I){return cancelAnimationFrame(I)}:clearTimeout},x=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function w(){var I={"":0},H=[""];return{id:function(Z){var Ee=I[Z];return Ee||(Ee=I[Z]=H.length,H.push(Z),Ee)},str:function(Z){return H[Z]}}}function _(I,H,Z){var Ee=document.createElement("canvas");r(Ee.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),I.appendChild(Ee),I===document.body&&(Ee.style.position="absolute",r(I.style,{margin:0,padding:0}));function Me(){var Ye=window.innerWidth,Xe=window.innerHeight;if(I!==document.body){var et=Ee.getBoundingClientRect();Ye=et.right-et.left,Xe=et.bottom-et.top}Ee.width=Z*Ye,Ee.height=Z*Xe}var be;I!==document.body&&typeof ResizeObserver=="function"?(be=new ResizeObserver(function(){setTimeout(Me)}),be.observe(I)):window.addEventListener("resize",Me,!1);function _e(){be?be.disconnect():window.removeEventListener("resize",Me),I.removeChild(Ee)}return Me(),{canvas:Ee,onDestroy:_e}}function C(I,H){function Z(Ee){try{return I.getContext(Ee,H)}catch{return null}}return Z("webgl")||Z("experimental-webgl")||Z("webgl-experimental")}function T(I){return typeof I.nodeName=="string"&&typeof I.appendChild=="function"&&typeof I.getBoundingClientRect=="function"}function F(I){return typeof I.drawArrays=="function"||typeof I.drawElements=="function"}function L(I){return typeof I=="string"?I.split():I}function V(I){return typeof I=="string"?document.querySelector(I):I}function j(I){var H=I||{},Z,Ee,Me,be,_e={},Ye=[],Xe=[],et=typeof window>"u"?1:window.devicePixelRatio,ft=!1,Rt={},St=function(he){},it=function(){};if(typeof H=="string"?Z=document.querySelector(H):typeof H=="object"&&(T(H)?Z=H:F(H)?(be=H,Me=be.canvas):("gl"in H?be=H.gl:"canvas"in H?Me=V(H.canvas):"container"in H&&(Ee=V(H.container)),"attributes"in H&&(_e=H.attributes),"extensions"in H&&(Ye=L(H.extensions)),"optionalExtensions"in H&&(Xe=L(H.optionalExtensions)),"onDone"in H&&(St=H.onDone),"profile"in H&&(ft=!!H.profile),"pixelRatio"in H&&(et=+H.pixelRatio),"cachedCode"in H&&(Rt=H.cachedCode))),Z&&(Z.nodeName.toLowerCase()==="canvas"?Me=Z:Ee=Z),!be){if(!Me){var Ge=_(Ee||document.body,St,et);if(!Ge)return null;Me=Ge.canvas,it=Ge.onDestroy}_e.premultipliedAlpha===void 0&&(_e.premultipliedAlpha=!0),be=C(Me,_e)}return be?{gl:be,canvas:Me,container:Ee,extensions:Ye,optionalExtensions:Xe,pixelRatio:et,profile:ft,cachedCode:Rt,onDone:St,onDestroy:it}:(it(),St("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function te(I,H){var Z={};function Ee(_e){var Ye=_e.toLowerCase(),Xe;try{Xe=Z[Ye]=I.getExtension(Ye)}catch{}return!!Xe}for(var Me=0;Me<H.extensions.length;++Me){var be=H.extensions[Me];if(!Ee(be))return H.onDestroy(),H.onDone('"'+be+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return H.optionalExtensions.forEach(Ee),{extensions:Z,restore:function(){Object.keys(Z).forEach(function(_e){if(Z[_e]&&!Ee(_e))throw new Error("(regl): error restoring extension "+_e)})}}}function ge(I,H){for(var Z=Array(I),Ee=0;Ee<I;++Ee)Z[Ee]=H(Ee);return Z}var me=5120,ke=5121,Fe=5122,Le=5123,ut=5124,nt=5125,De=5126;function We(I){for(var H=16;H<=1<<28;H*=16)if(I<=H)return H;return 0}function _t(I){var H,Z;return H=(I>65535)<<4,I>>>=H,Z=(I>255)<<3,I>>>=Z,H|=Z,Z=(I>15)<<2,I>>>=Z,H|=Z,Z=(I>3)<<1,I>>>=Z,H|=Z,H|I>>1}function He(){var I=ge(8,function(){return[]});function H(be){var _e=We(be),Ye=I[_t(_e)>>2];return Ye.length>0?Ye.pop():new ArrayBuffer(_e)}function Z(be){I[_t(be.byteLength)>>2].push(be)}function Ee(be,_e){var Ye=null;switch(be){case me:Ye=new Int8Array(H(_e),0,_e);break;case ke:Ye=new Uint8Array(H(_e),0,_e);break;case Fe:Ye=new Int16Array(H(2*_e),0,_e);break;case Le:Ye=new Uint16Array(H(2*_e),0,_e);break;case ut:Ye=new Int32Array(H(4*_e),0,_e);break;case nt:Ye=new Uint32Array(H(4*_e),0,_e);break;case De:Ye=new Float32Array(H(4*_e),0,_e);break;default:return null}return Ye.length!==_e?Ye.subarray(0,_e):Ye}function Me(be){Z(be.buffer)}return{alloc:H,free:Z,allocType:Ee,freeType:Me}}var we=He();we.zero=He();var qe=3408,st=3410,Ke=3411,ct=3412,yt=3413,qt=3414,Yt=3415,Qe=33901,At=33902,Gt=3379,Ce=3386,W=34921,ae=36347,R=36348,A=35661,M=35660,$=34930,fe=36349,Ie=34076,ze=34024,Qt=7936,fr=7937,ir=7938,Yr=35724,Mr=34047,na=36063,Eu=34852,Ca=3553,xi=34067,Ap=34069,Li=33984,Au=6408,Hl=5126,ql=5121,Vl=36160,_y=36053,Oa=36064,Sy=16384,Yl=function(I,H){var Z=1;H.ext_texture_filter_anisotropic&&(Z=I.getParameter(Mr));var Ee=1,Me=1;H.webgl_draw_buffers&&(Ee=I.getParameter(Eu),Me=I.getParameter(na));var be=!!H.oes_texture_float;if(be){var _e=I.createTexture();I.bindTexture(Ca,_e),I.texImage2D(Ca,0,Au,1,1,0,Au,Hl,null);var Ye=I.createFramebuffer();if(I.bindFramebuffer(Vl,Ye),I.framebufferTexture2D(Vl,Oa,Ca,_e,0),I.bindTexture(Ca,null),I.checkFramebufferStatus(Vl)!==_y)be=!1;else{I.viewport(0,0,1,1),I.clearColor(1,0,0,1),I.clear(Sy);var Xe=we.allocType(Hl,4);I.readPixels(0,0,1,1,Au,Hl,Xe),I.getError()?be=!1:(I.deleteFramebuffer(Ye),I.deleteTexture(_e),be=Xe[0]===1),we.freeType(Xe)}}var et=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),ft=!0;if(!et){var Rt=I.createTexture(),St=we.allocType(ql,36);I.activeTexture(Li),I.bindTexture(xi,Rt),I.texImage2D(Ap,0,Au,3,3,0,Au,ql,St),we.freeType(St),I.bindTexture(xi,null),I.deleteTexture(Rt),ft=!I.getError()}return{colorBits:[I.getParameter(st),I.getParameter(Ke),I.getParameter(ct),I.getParameter(yt)],depthBits:I.getParameter(qt),stencilBits:I.getParameter(Yt),subpixelBits:I.getParameter(qe),extensions:Object.keys(H).filter(function(it){return!!H[it]}),maxAnisotropic:Z,maxDrawbuffers:Ee,maxColorAttachments:Me,pointSizeDims:I.getParameter(Qe),lineWidthDims:I.getParameter(At),maxViewportDims:I.getParameter(Ce),maxCombinedTextureUnits:I.getParameter(A),maxCubeMapSize:I.getParameter(Ie),maxRenderbufferSize:I.getParameter(ze),maxTextureUnits:I.getParameter($),maxTextureSize:I.getParameter(Gt),maxAttributes:I.getParameter(W),maxVertexUniforms:I.getParameter(ae),maxVertexTextureUnits:I.getParameter(M),maxVaryingVectors:I.getParameter(R),maxFragmentUniforms:I.getParameter(fe),glsl:I.getParameter(Yr),renderer:I.getParameter(fr),vendor:I.getParameter(Qt),version:I.getParameter(ir),readFloat:be,npotTextureCube:ft}},rn=function(I){return I instanceof Uint8Array||I instanceof Uint16Array||I instanceof Uint32Array||I instanceof Int8Array||I instanceof Int16Array||I instanceof Int32Array||I instanceof Float32Array||I instanceof Float64Array||I instanceof Uint8ClampedArray};function ai(I){return!!I&&typeof I=="object"&&Array.isArray(I.shape)&&Array.isArray(I.stride)&&typeof I.offset=="number"&&I.shape.length===I.stride.length&&(Array.isArray(I.data)||rn(I.data))}var zn=function(I){return Object.keys(I).map(function(H){return I[H]})},ar={shape:Op,flatten:wi};function Tp(I,H,Z){for(var Ee=0;Ee<H;++Ee)Z[Ee]=I[Ee]}function Di(I,H,Z,Ee){for(var Me=0,be=0;be<H;++be)for(var _e=I[be],Ye=0;Ye<Z;++Ye)Ee[Me++]=_e[Ye]}function co(I,H,Z,Ee,Me,be){for(var _e=be,Ye=0;Ye<H;++Ye)for(var Xe=I[Ye],et=0;et<Z;++et)for(var ft=Xe[et],Rt=0;Rt<Ee;++Rt)Me[_e++]=ft[Rt]}function Cp(I,H,Z,Ee,Me){for(var be=1,_e=Z+1;_e<H.length;++_e)be*=H[_e];var Ye=H[Z];if(H.length-Z===4){var Xe=H[Z+1],et=H[Z+2],ft=H[Z+3];for(_e=0;_e<Ye;++_e)co(I[_e],Xe,et,ft,Ee,Me),Me+=be}else for(_e=0;_e<Ye;++_e)Cp(I[_e],H,Z+1,Ee,Me),Me+=be}function wi(I,H,Z,Ee){var Me=1;if(H.length)for(var be=0;be<H.length;++be)Me*=H[be];else Me=0;var _e=Ee||we.allocType(Z,Me);switch(H.length){case 0:break;case 1:Tp(I,H[0],_e);break;case 2:Di(I,H[0],H[1],_e);break;case 3:co(I,H[0],H[1],H[2],_e,0);break;default:Cp(I,H,0,_e,0)}return _e}function Op(I){for(var H=[],Z=I;Z.length;Z=Z[0])H.push(Z.length);return H}var Tu={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121},Ey=5120,kp=5122,Ay=5124,Mp=5121,Ty=5123,Cu=5125,Kf=5126,Rp=5126,Ou={int8:Ey,int16:kp,int32:Ay,uint8:Mp,uint16:Ty,uint32:Cu,float:Kf,float32:Rp},Xl=35048,Qf=35040,ia={dynamic:Xl,stream:Qf,static:35044},Vn=ar.flatten,Kl=ar.shape,Ql=35044,oi=35040,ku=5121,Mu=5126,Zr=[];Zr[5120]=1,Zr[5122]=2,Zr[5124]=4,Zr[5121]=1,Zr[5123]=2,Zr[5125]=4,Zr[5126]=4;function ka(I){return Tu[Object.prototype.toString.call(I)]|0}function Zf(I,H){for(var Z=0;Z<H.length;++Z)I[Z]=H[Z]}function Jf(I,H,Z,Ee,Me,be,_e){for(var Ye=0,Xe=0;Xe<Z;++Xe)for(var et=0;et<Ee;++et)I[Ye++]=H[Me*Xe+be*et+_e]}function Pp(I,H,Z,Ee){var Me=0,be={};function _e(he){this.id=Me++,this.buffer=I.createBuffer(),this.type=he,this.usage=Ql,this.byteLength=0,this.dimension=1,this.dtype=ku,this.persistentData=null,Z.profile&&(this.stats={size:0})}_e.prototype.bind=function(){I.bindBuffer(this.type,this.buffer)},_e.prototype.destroy=function(){St(this)};var Ye=[];function Xe(he,Te){var Ve=Ye.pop();return Ve||(Ve=new _e(he)),Ve.bind(),Rt(Ve,Te,oi,0,1,!1),Ve}function et(he){Ye.push(he)}function ft(he,Te,Ve){he.byteLength=Te.byteLength,I.bufferData(he.type,Te,Ve)}function Rt(he,Te,Ve,Ze,Ne,pt){var ot;if(he.usage=Ve,Array.isArray(Te)){if(he.dtype=Ze||Mu,Te.length>0){var Pt;if(Array.isArray(Te[0])){ot=Kl(Te);for(var $e=1,Re=1;Re<ot.length;++Re)$e*=ot[Re];he.dimension=$e,Pt=Vn(Te,ot,he.dtype),ft(he,Pt,Ve),pt?he.persistentData=Pt:we.freeType(Pt)}else if(typeof Te[0]=="number"){he.dimension=Ne;var mt=we.allocType(he.dtype,Te.length);Zf(mt,Te),ft(he,mt,Ve),pt?he.persistentData=mt:we.freeType(mt)}else rn(Te[0])&&(he.dimension=Te[0].length,he.dtype=Ze||ka(Te[0])||Mu,Pt=Vn(Te,[Te.length,Te[0].length],he.dtype),ft(he,Pt,Ve),pt?he.persistentData=Pt:we.freeType(Pt))}}else if(rn(Te))he.dtype=Ze||ka(Te),he.dimension=Ne,ft(he,Te,Ve),pt&&(he.persistentData=new Uint8Array(new Uint8Array(Te.buffer)));else if(ai(Te)){ot=Te.shape;var Ae=Te.stride,ht=Te.offset,Je=0,It=0,tr=0,bt=0;ot.length===1?(Je=ot[0],It=1,tr=Ae[0],bt=0):ot.length===2&&(Je=ot[0],It=ot[1],tr=Ae[0],bt=Ae[1]),he.dtype=Ze||ka(Te.data)||Mu,he.dimension=It;var Bt=we.allocType(he.dtype,Je*It);Jf(Bt,Te.data,Je,It,tr,bt,ht),ft(he,Bt,Ve),pt?he.persistentData=Bt:we.freeType(Bt)}else Te instanceof ArrayBuffer&&(he.dtype=ku,he.dimension=Ne,ft(he,Te,Ve),pt&&(he.persistentData=new Uint8Array(new Uint8Array(Te))))}function St(he){H.bufferCount--,Ee(he);var Te=he.buffer;I.deleteBuffer(Te),he.buffer=null,delete be[he.id]}function it(he,Te,Ve,Ze){H.bufferCount++;var Ne=new _e(Te);be[Ne.id]=Ne;function pt($e){var Re=Ql,mt=null,Ae=0,ht=0,Je=1;return Array.isArray($e)||rn($e)||ai($e)||$e instanceof ArrayBuffer?mt=$e:typeof $e=="number"?Ae=$e|0:$e&&("data"in $e&&(mt=$e.data),"usage"in $e&&(Re=ia[$e.usage]),"type"in $e&&(ht=Ou[$e.type]),"dimension"in $e&&(Je=$e.dimension|0),"length"in $e&&(Ae=$e.length|0)),Ne.bind(),mt?Rt(Ne,mt,Re,ht,Je,Ze):(Ae&&I.bufferData(Ne.type,Ae,Re),Ne.dtype=ht||ku,Ne.usage=Re,Ne.dimension=Je,Ne.byteLength=Ae),Z.profile&&(Ne.stats.size=Ne.byteLength*Zr[Ne.dtype]),pt}function ot($e,Re){I.bufferSubData(Ne.type,Re,$e)}function Pt($e,Re){var mt=(Re||0)|0,Ae;if(Ne.bind(),rn($e)||$e instanceof ArrayBuffer)ot($e,mt);else if(Array.isArray($e)){if($e.length>0){if(typeof $e[0]=="number"){var ht=we.allocType(Ne.dtype,$e.length);Zf(ht,$e),ot(ht,mt),we.freeType(ht)}else if(Array.isArray($e[0])||rn($e[0])){Ae=Kl($e);var Je=Vn($e,Ae,Ne.dtype);ot(Je,mt),we.freeType(Je)}}}else if(ai($e)){Ae=$e.shape;var It=$e.stride,tr=0,bt=0,Bt=0,lt=0;Ae.length===1?(tr=Ae[0],bt=1,Bt=It[0],lt=0):Ae.length===2&&(tr=Ae[0],bt=Ae[1],Bt=It[0],lt=It[1]);var rr=Array.isArray($e.data)?Ne.dtype:ka($e.data),lr=we.allocType(rr,tr*bt);Jf(lr,$e.data,tr,bt,Bt,lt,$e.offset),ot(lr,mt),we.freeType(lr)}return pt}return Ve||pt(he),pt._reglType="buffer",pt._buffer=Ne,pt.subdata=Pt,Z.profile&&(pt.stats=Ne.stats),pt.destroy=function(){St(Ne)},pt}function Ge(){zn(be).forEach(function(he){he.buffer=I.createBuffer(),I.bindBuffer(he.type,he.buffer),I.bufferData(he.type,he.persistentData||he.byteLength,he.usage)})}return Z.profile&&(H.getTotalBufferSize=function(){var he=0;return Object.keys(be).forEach(function(Te){he+=be[Te].stats.size}),he}),{create:it,createStream:Xe,destroyStream:et,clear:function(){zn(be).forEach(St),Ye.forEach(St)},getBuffer:function(he){return he&&he._buffer instanceof _e?he._buffer:null},restore:Ge,_initBuffer:Rt}}var ec=0,Ip=0,Fp=1,tc=1,rc=4,nc=4,nn={points:ec,point:Ip,lines:Fp,line:tc,triangles:rc,triangle:nc,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Np=0,Zl=1,aa=4,ho=5120,Ma=5121,ic=5122,Ra=5123,Jl=5124,oa=5125,po=34963,gr=35040,ac=35044;function es(I,H,Z,Ee){var Me={},be=0,_e={uint8:Ma,uint16:Ra};H.oes_element_index_uint&&(_e.uint32=oa);function Ye(Ge){this.id=be++,Me[this.id]=this,this.buffer=Ge,this.primType=aa,this.vertCount=0,this.type=0}Ye.prototype.bind=function(){this.buffer.bind()};var Xe=[];function et(Ge){var he=Xe.pop();return he||(he=new Ye(Z.create(null,po,!0,!1)._buffer)),Rt(he,Ge,gr,-1,-1,0,0),he}function ft(Ge){Xe.push(Ge)}function Rt(Ge,he,Te,Ve,Ze,Ne,pt){Ge.buffer.bind();var ot;if(he){var Pt=pt;!pt&&(!rn(he)||ai(he)&&!rn(he.data))&&(Pt=H.oes_element_index_uint?oa:Ra),Z._initBuffer(Ge.buffer,he,Te,Pt,3)}else I.bufferData(po,Ne,Te),Ge.buffer.dtype=ot||Ma,Ge.buffer.usage=Te,Ge.buffer.dimension=3,Ge.buffer.byteLength=Ne;if(ot=pt,!pt){switch(Ge.buffer.dtype){case Ma:case ho:ot=Ma;break;case Ra:case ic:ot=Ra;break;case oa:case Jl:ot=oa;break}Ge.buffer.dtype=ot}Ge.type=ot;var $e=Ze;$e<0&&($e=Ge.buffer.byteLength,ot===Ra?$e>>=1:ot===oa&&($e>>=2)),Ge.vertCount=$e;var Re=Ve;if(Ve<0){Re=aa;var mt=Ge.buffer.dimension;mt===1&&(Re=Np),mt===2&&(Re=Zl),mt===3&&(Re=aa)}Ge.primType=Re}function St(Ge){Ee.elementsCount--,delete Me[Ge.id],Ge.buffer.destroy(),Ge.buffer=null}function it(Ge,he){var Te=Z.create(null,po,!0),Ve=new Ye(Te._buffer);Ee.elementsCount++;function Ze(Ne){if(!Ne)Te(),Ve.primType=aa,Ve.vertCount=0,Ve.type=Ma;else if(typeof Ne=="number")Te(Ne),Ve.primType=aa,Ve.vertCount=Ne|0,Ve.type=Ma;else{var pt=null,ot=ac,Pt=-1,$e=-1,Re=0,mt=0;Array.isArray(Ne)||rn(Ne)||ai(Ne)?pt=Ne:("data"in Ne&&(pt=Ne.data),"usage"in Ne&&(ot=ia[Ne.usage]),"primitive"in Ne&&(Pt=nn[Ne.primitive]),"count"in Ne&&($e=Ne.count|0),"type"in Ne&&(mt=_e[Ne.type]),"length"in Ne?Re=Ne.length|0:(Re=$e,mt===Ra||mt===ic?Re*=2:(mt===oa||mt===Jl)&&(Re*=4))),Rt(Ve,pt,ot,Pt,$e,Re,mt)}return Ze}return Ze(Ge),Ze._reglType="elements",Ze._elements=Ve,Ze.subdata=function(Ne,pt){return Te.subdata(Ne,pt),Ze},Ze.destroy=function(){St(Ve)},Ze}return{create:it,createStream:et,destroyStream:ft,getElements:function(Ge){return typeof Ge=="function"&&Ge._elements instanceof Ye?Ge._elements:null},clear:function(){zn(Me).forEach(St)}}}var Lp=new Float32Array(1),Cy=new Uint32Array(Lp.buffer),ts=5123;function Ru(I){for(var H=we.allocType(ts,I.length),Z=0;Z<I.length;++Z)if(isNaN(I[Z]))H[Z]=65535;else if(I[Z]===1/0)H[Z]=31744;else if(I[Z]===-1/0)H[Z]=64512;else{Lp[0]=I[Z];var Ee=Cy[0],Me=Ee>>>31<<15,be=(Ee<<1>>>24)-127,_e=Ee>>13&(1<<10)-1;if(be<-24)H[Z]=Me;else if(be<-14){var Ye=-14-be;H[Z]=Me+(_e+(1<<10)>>Ye)}else be>15?H[Z]=Me+31744:H[Z]=Me+(be+15<<10)+_e}return H}function ui(I){return Array.isArray(I)||rn(I)}var rs=34467,li=3553,vo=34067,mo=34069,ua=6408,ns=6406,$i=6407,Bi=6409,Pu=6410,Dp=32854,go=32855,is=36194,oc=32819,$p=32820,yo=33635,Pa=34042,la=6402,Iu=34041,Fu=35904,Ia=35906,Fa=36193,uc=33776,as=33777,Nu=33778,lc=33779,Bp=35986,sc=35987,zp=34798,fc=35840,Up=35841,cc=35842,jp=35843,Na=36196,si=5121,hc=5123,dc=5125,Lu=5126,Gp=10242,Du=10243,Oy=10497,bo=33071,os=33648,pc=10240,us=10241,La=9728,$u=9729,ls=9984,ss=9985,Wp=9986,xo=9987,ky=33170,fs=4352,My=4353,Hp=4354,Bu=34046,Ry=3317,vc=37440,qp=37441,zi=37443,mc=37444,Da=33984,gc=[ls,Wp,ss,xo],_i=[0,Bi,Pu,$i,ua],Pn={};Pn[Bi]=Pn[ns]=Pn[la]=1,Pn[Iu]=Pn[Pu]=2,Pn[$i]=Pn[Fu]=3,Pn[ua]=Pn[Ia]=4;function $a(I){return"[object "+I+"]"}var Vp=$a("HTMLCanvasElement"),Yp=$a("OffscreenCanvas"),Xp=$a("CanvasRenderingContext2D"),yc=$a("ImageBitmap"),bc=$a("HTMLImageElement"),Kp=$a("HTMLVideoElement"),Py=Object.keys(Tu).concat([Vp,Yp,Xp,yc,bc,Kp]),wo=[];wo[si]=1,wo[Lu]=4,wo[Fa]=2,wo[hc]=2,wo[dc]=4;var Jr=[];Jr[Dp]=2,Jr[go]=2,Jr[is]=2,Jr[Iu]=4,Jr[uc]=.5,Jr[as]=.5,Jr[Nu]=1,Jr[lc]=1,Jr[Bp]=.5,Jr[sc]=1,Jr[zp]=1,Jr[fc]=.5,Jr[Up]=.25,Jr[cc]=.5,Jr[jp]=.25,Jr[Na]=.5;function Qp(I){return Array.isArray(I)&&(I.length===0||typeof I[0]=="number")}function Zp(I){if(!Array.isArray(I))return!1;var H=I.length;return!(H===0||!ui(I[0]))}function Ba(I){return Object.prototype.toString.call(I)}function Jp(I){return Ba(I)===Vp}function ev(I){return Ba(I)===Yp}function Iy(I){return Ba(I)===Xp}function Fy(I){return Ba(I)===yc}function Ny(I){return Ba(I)===bc}function Ly(I){return Ba(I)===Kp}function cs(I){if(!I)return!1;var H=Ba(I);return Py.indexOf(H)>=0?!0:Qp(I)||Zp(I)||ai(I)}function xc(I){return Tu[Object.prototype.toString.call(I)]|0}function tv(I,H){var Z=H.length;switch(I.type){case si:case hc:case dc:case Lu:var Ee=we.allocType(I.type,Z);Ee.set(H),I.data=Ee;break;case Fa:I.data=Ru(H);break}}function wc(I,H){return we.allocType(I.type===Fa?Lu:I.type,H)}function rv(I,H){I.type===Fa?(I.data=Ru(H),we.freeType(H)):I.data=H}function Dy(I,H,Z,Ee,Me,be){for(var _e=I.width,Ye=I.height,Xe=I.channels,et=_e*Ye*Xe,ft=wc(I,et),Rt=0,St=0;St<Ye;++St)for(var it=0;it<_e;++it)for(var Ge=0;Ge<Xe;++Ge)ft[Rt++]=H[Z*it+Ee*St+Me*Ge+be];rv(I,ft)}function Ui(I,H,Z,Ee,Me,be){var _e;if(typeof Jr[I]<"u"?_e=Jr[I]:_e=Pn[I]*wo[H],be&&(_e*=6),Me){for(var Ye=0,Xe=Z;Xe>=1;)Ye+=_e*Xe*Xe,Xe/=2;return Ye}else return _e*Z*Ee}function $y(I,H,Z,Ee,Me,be,_e){var Ye={"don't care":fs,"dont care":fs,nice:Hp,fast:My},Xe={repeat:Oy,clamp:bo,mirror:os},et={nearest:La,linear:$u},ft=r({mipmap:xo,"nearest mipmap nearest":ls,"linear mipmap nearest":ss,"nearest mipmap linear":Wp,"linear mipmap linear":xo},et),Rt={none:0,browser:mc},St={uint8:si,rgba4:oc,rgb565:yo,"rgb5 a1":$p},it={alpha:ns,luminance:Bi,"luminance alpha":Pu,rgb:$i,rgba:ua,rgba4:Dp,"rgb5 a1":go,rgb565:is},Ge={};H.ext_srgb&&(it.srgb=Fu,it.srgba=Ia),H.oes_texture_float&&(St.float32=St.float=Lu),H.oes_texture_half_float&&(St.float16=St["half float"]=Fa),H.webgl_depth_texture&&(r(it,{depth:la,"depth stencil":Iu}),r(St,{uint16:hc,uint32:dc,"depth stencil":Pa})),H.webgl_compressed_texture_s3tc&&r(Ge,{"rgb s3tc dxt1":uc,"rgba s3tc dxt1":as,"rgba s3tc dxt3":Nu,"rgba s3tc dxt5":lc}),H.webgl_compressed_texture_atc&&r(Ge,{"rgb atc":Bp,"rgba atc explicit alpha":sc,"rgba atc interpolated alpha":zp}),H.webgl_compressed_texture_pvrtc&&r(Ge,{"rgb pvrtc 4bppv1":fc,"rgb pvrtc 2bppv1":Up,"rgba pvrtc 4bppv1":cc,"rgba pvrtc 2bppv1":jp}),H.webgl_compressed_texture_etc1&&(Ge["rgb etc1"]=Na);var he=Array.prototype.slice.call(I.getParameter(rs));Object.keys(Ge).forEach(function(Y){var xe=Ge[Y];he.indexOf(xe)>=0&&(it[Y]=xe)});var Te=Object.keys(it);Z.textureFormats=Te;var Ve=[];Object.keys(it).forEach(function(Y){var xe=it[Y];Ve[xe]=Y});var Ze=[];Object.keys(St).forEach(function(Y){var xe=St[Y];Ze[xe]=Y});var Ne=[];Object.keys(et).forEach(function(Y){var xe=et[Y];Ne[xe]=Y});var pt=[];Object.keys(ft).forEach(function(Y){var xe=ft[Y];pt[xe]=Y});var ot=[];Object.keys(Xe).forEach(function(Y){var xe=Xe[Y];ot[xe]=Y});var Pt=Te.reduce(function(Y,xe){var ye=it[xe];return ye===Bi||ye===ns||ye===Bi||ye===Pu||ye===la||ye===Iu||H.ext_srgb&&(ye===Fu||ye===Ia)?Y[ye]=ye:ye===go||xe.indexOf("rgba")>=0?Y[ye]=ua:Y[ye]=$i,Y},{});function $e(){this.internalformat=ua,this.format=ua,this.type=si,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=mc,this.width=0,this.height=0,this.channels=0}function Re(Y,xe){Y.internalformat=xe.internalformat,Y.format=xe.format,Y.type=xe.type,Y.compressed=xe.compressed,Y.premultiplyAlpha=xe.premultiplyAlpha,Y.flipY=xe.flipY,Y.unpackAlignment=xe.unpackAlignment,Y.colorSpace=xe.colorSpace,Y.width=xe.width,Y.height=xe.height,Y.channels=xe.channels}function mt(Y,xe){if(!(typeof xe!="object"||!xe)){if("premultiplyAlpha"in xe&&(Y.premultiplyAlpha=xe.premultiplyAlpha),"flipY"in xe&&(Y.flipY=xe.flipY),"alignment"in xe&&(Y.unpackAlignment=xe.alignment),"colorSpace"in xe&&(Y.colorSpace=Rt[xe.colorSpace]),"type"in xe){var ye=xe.type;Y.type=St[ye]}var Tt=Y.width,nr=Y.height,Pr=Y.channels,Ct=!1;"shape"in xe?(Tt=xe.shape[0],nr=xe.shape[1],xe.shape.length===3&&(Pr=xe.shape[2],Ct=!0)):("radius"in xe&&(Tt=nr=xe.radius),"width"in xe&&(Tt=xe.width),"height"in xe&&(nr=xe.height),"channels"in xe&&(Pr=xe.channels,Ct=!0)),Y.width=Tt|0,Y.height=nr|0,Y.channels=Pr|0;var U=!1;if("format"in xe){var q=xe.format,ee=Y.internalformat=it[q];Y.format=Pt[ee],q in St&&("type"in xe||(Y.type=St[q])),q in Ge&&(Y.compressed=!0),U=!0}!Ct&&U?Y.channels=Pn[Y.format]:Ct&&!U&&Y.channels!==_i[Y.format]&&(Y.format=Y.internalformat=_i[Y.channels])}}function Ae(Y){I.pixelStorei(vc,Y.flipY),I.pixelStorei(qp,Y.premultiplyAlpha),I.pixelStorei(zi,Y.colorSpace),I.pixelStorei(Ry,Y.unpackAlignment)}function ht(){$e.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Je(Y,xe){var ye=null;if(cs(xe)?ye=xe:xe&&(mt(Y,xe),"x"in xe&&(Y.xOffset=xe.x|0),"y"in xe&&(Y.yOffset=xe.y|0),cs(xe.data)&&(ye=xe.data)),xe.copy){var Tt=Me.viewportWidth,nr=Me.viewportHeight;Y.width=Y.width||Tt-Y.xOffset,Y.height=Y.height||nr-Y.yOffset,Y.needsCopy=!0}else if(!ye)Y.width=Y.width||1,Y.height=Y.height||1,Y.channels=Y.channels||4;else if(rn(ye))Y.channels=Y.channels||4,Y.data=ye,!("type"in xe)&&Y.type===si&&(Y.type=xc(ye));else if(Qp(ye))Y.channels=Y.channels||4,tv(Y,ye),Y.alignment=1,Y.needsFree=!0;else if(ai(ye)){var Pr=ye.data;!Array.isArray(Pr)&&Y.type===si&&(Y.type=xc(Pr));var Ct=ye.shape,U=ye.stride,q,ee,Se,pe,de,ce;Ct.length===3?(Se=Ct[2],ce=U[2]):(Se=1,ce=1),q=Ct[0],ee=Ct[1],pe=U[0],de=U[1],Y.alignment=1,Y.width=q,Y.height=ee,Y.channels=Se,Y.format=Y.internalformat=_i[Se],Y.needsFree=!0,Dy(Y,Pr,pe,de,ce,ye.offset)}else if(Jp(ye)||ev(ye)||Iy(ye))Jp(ye)||ev(ye)?Y.element=ye:Y.element=ye.canvas,Y.width=Y.element.width,Y.height=Y.element.height,Y.channels=4;else if(Fy(ye))Y.element=ye,Y.width=ye.width,Y.height=ye.height,Y.channels=4;else if(Ny(ye))Y.element=ye,Y.width=ye.naturalWidth,Y.height=ye.naturalHeight,Y.channels=4;else if(Ly(ye))Y.element=ye,Y.width=ye.videoWidth,Y.height=ye.videoHeight,Y.channels=4;else if(Zp(ye)){var se=Y.width||ye[0].length,Q=Y.height||ye.length,ne=Y.channels;ui(ye[0][0])?ne=ne||ye[0][0].length:ne=ne||1;for(var K=ar.shape(ye),ve=1,Oe=0;Oe<K.length;++Oe)ve*=K[Oe];var Be=wc(Y,ve);ar.flatten(ye,K,"",Be),rv(Y,Be),Y.alignment=1,Y.width=se,Y.height=Q,Y.channels=ne,Y.format=Y.internalformat=_i[ne],Y.needsFree=!0}Y.type===Lu||Y.type}function It(Y,xe,ye){var Tt=Y.element,nr=Y.data,Pr=Y.internalformat,Ct=Y.format,U=Y.type,q=Y.width,ee=Y.height;Ae(Y),Tt?I.texImage2D(xe,ye,Ct,Ct,U,Tt):Y.compressed?I.compressedTexImage2D(xe,ye,Pr,q,ee,0,nr):Y.needsCopy?(Ee(),I.copyTexImage2D(xe,ye,Ct,Y.xOffset,Y.yOffset,q,ee,0)):I.texImage2D(xe,ye,Ct,q,ee,0,Ct,U,nr||null)}function tr(Y,xe,ye,Tt,nr){var Pr=Y.element,Ct=Y.data,U=Y.internalformat,q=Y.format,ee=Y.type,Se=Y.width,pe=Y.height;Ae(Y),Pr?I.texSubImage2D(xe,nr,ye,Tt,q,ee,Pr):Y.compressed?I.compressedTexSubImage2D(xe,nr,ye,Tt,U,Se,pe,Ct):Y.needsCopy?(Ee(),I.copyTexSubImage2D(xe,nr,ye,Tt,Y.xOffset,Y.yOffset,Se,pe)):I.texSubImage2D(xe,nr,ye,Tt,Se,pe,q,ee,Ct)}var bt=[];function Bt(){return bt.pop()||new ht}function lt(Y){Y.needsFree&&we.freeType(Y.data),ht.call(Y),bt.push(Y)}function rr(){$e.call(this),this.genMipmaps=!1,this.mipmapHint=fs,this.mipmask=0,this.images=Array(16)}function lr(Y,xe,ye){var Tt=Y.images[0]=Bt();Y.mipmask=1,Tt.width=Y.width=xe,Tt.height=Y.height=ye,Tt.channels=Y.channels=4}function hr(Y,xe){var ye=null;if(cs(xe))ye=Y.images[0]=Bt(),Re(ye,Y),Je(ye,xe),Y.mipmask=1;else if(mt(Y,xe),Array.isArray(xe.mipmap))for(var Tt=xe.mipmap,nr=0;nr<Tt.length;++nr)ye=Y.images[nr]=Bt(),Re(ye,Y),ye.width>>=nr,ye.height>>=nr,Je(ye,Tt[nr]),Y.mipmask|=1<<nr;else ye=Y.images[0]=Bt(),Re(ye,Y),Je(ye,xe),Y.mipmask=1;Re(Y,Y.images[0]),Y.compressed&&(Y.internalformat===uc||Y.internalformat===as||Y.internalformat===Nu||Y.internalformat)}function un(Y,xe){for(var ye=Y.images,Tt=0;Tt<ye.length;++Tt){if(!ye[Tt])return;It(ye[Tt],xe,Tt)}}var sr=[];function Xn(){var Y=sr.pop()||new rr;$e.call(Y),Y.mipmask=0;for(var xe=0;xe<16;++xe)Y.images[xe]=null;return Y}function Tr(Y){for(var xe=Y.images,ye=0;ye<xe.length;++ye)xe[ye]&&lt(xe[ye]),xe[ye]=null;sr.push(Y)}function An(){this.minFilter=La,this.magFilter=La,this.wrapS=bo,this.wrapT=bo,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=fs}function Kn(Y,xe){if("min"in xe){var ye=xe.min;Y.minFilter=ft[ye],gc.indexOf(Y.minFilter)>=0&&!("faces"in xe)&&(Y.genMipmaps=!0)}if("mag"in xe){var Tt=xe.mag;Y.magFilter=et[Tt]}var nr=Y.wrapS,Pr=Y.wrapT;if("wrap"in xe){var Ct=xe.wrap;typeof Ct=="string"?nr=Pr=Xe[Ct]:Array.isArray(Ct)&&(nr=Xe[Ct[0]],Pr=Xe[Ct[1]])}else{if("wrapS"in xe){var U=xe.wrapS;nr=Xe[U]}if("wrapT"in xe){var q=xe.wrapT;Pr=Xe[q]}}if(Y.wrapS=nr,Y.wrapT=Pr,"anisotropic"in xe&&(xe.anisotropic,Y.anisotropic=xe.anisotropic),"mipmap"in xe){var ee=!1;switch(typeof xe.mipmap){case"string":Y.mipmapHint=Ye[xe.mipmap],Y.genMipmaps=!0,ee=!0;break;case"boolean":ee=Y.genMipmaps=xe.mipmap;break;case"object":Y.genMipmaps=!1,ee=!0;break}ee&&!("min"in xe)&&(Y.minFilter=ls)}}function Fn(Y,xe){I.texParameteri(xe,us,Y.minFilter),I.texParameteri(xe,pc,Y.magFilter),I.texParameteri(xe,Gp,Y.wrapS),I.texParameteri(xe,Du,Y.wrapT),H.ext_texture_filter_anisotropic&&I.texParameteri(xe,Bu,Y.anisotropic),Y.genMipmaps&&(I.hint(ky,Y.mipmapHint),I.generateMipmap(xe))}var Hi=0,ln={},sn=Z.maxTextureUnits,Kt=Array(sn).map(function(){return null});function di(Y){$e.call(this),this.mipmask=0,this.internalformat=ua,this.id=Hi++,this.refCount=1,this.target=Y,this.texture=I.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new An,_e.profile&&(this.stats={size:0})}function _r(Y){I.activeTexture(Da),I.bindTexture(Y.target,Y.texture)}function fn(){var Y=Kt[0];Y?I.bindTexture(Y.target,Y.texture):I.bindTexture(li,null)}function Un(Y){var xe=Y.texture,ye=Y.unit,Tt=Y.target;ye>=0&&(I.activeTexture(Da+ye),I.bindTexture(Tt,null),Kt[ye]=null),I.deleteTexture(xe),Y.texture=null,Y.params=null,Y.pixels=null,Y.refCount=0,delete ln[Y.id],be.textureCount--}r(di.prototype,{bind:function(){var Y=this;Y.bindCount+=1;var xe=Y.unit;if(xe<0){for(var ye=0;ye<sn;++ye){var Tt=Kt[ye];if(Tt){if(Tt.bindCount>0)continue;Tt.unit=-1}Kt[ye]=Y,xe=ye;break}_e.profile&&be.maxTextureUnits<xe+1&&(be.maxTextureUnits=xe+1),Y.unit=xe,I.activeTexture(Da+xe),I.bindTexture(Y.target,Y.texture)}return xe},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&Un(this)}});function jn(Y,xe){var ye=new di(li);ln[ye.id]=ye,be.textureCount++;function Tt(Ct,U){var q=ye.texInfo;An.call(q);var ee=Xn();return typeof Ct=="number"?typeof U=="number"?lr(ee,Ct|0,U|0):lr(ee,Ct|0,Ct|0):Ct?(Kn(q,Ct),hr(ee,Ct)):lr(ee,1,1),q.genMipmaps&&(ee.mipmask=(ee.width<<1)-1),ye.mipmask=ee.mipmask,Re(ye,ee),ye.internalformat=ee.internalformat,Tt.width=ee.width,Tt.height=ee.height,_r(ye),un(ee,li),Fn(q,li),fn(),Tr(ee),_e.profile&&(ye.stats.size=Ui(ye.internalformat,ye.type,ee.width,ee.height,q.genMipmaps,!1)),Tt.format=Ve[ye.internalformat],Tt.type=Ze[ye.type],Tt.mag=Ne[q.magFilter],Tt.min=pt[q.minFilter],Tt.wrapS=ot[q.wrapS],Tt.wrapT=ot[q.wrapT],Tt}function nr(Ct,U,q,ee){var Se=U|0,pe=q|0,de=ee|0,ce=Bt();return Re(ce,ye),ce.width=0,ce.height=0,Je(ce,Ct),ce.width=ce.width||(ye.width>>de)-Se,ce.height=ce.height||(ye.height>>de)-pe,_r(ye),tr(ce,li,Se,pe,de),fn(),lt(ce),Tt}function Pr(Ct,U){var q=Ct|0,ee=U|0||q;if(q===ye.width&&ee===ye.height)return Tt;Tt.width=ye.width=q,Tt.height=ye.height=ee,_r(ye);for(var Se=0;ye.mipmask>>Se;++Se){var pe=q>>Se,de=ee>>Se;if(!pe||!de)break;I.texImage2D(li,Se,ye.format,pe,de,0,ye.format,ye.type,null)}return fn(),_e.profile&&(ye.stats.size=Ui(ye.internalformat,ye.type,q,ee,!1,!1)),Tt}return Tt(Y,xe),Tt.subimage=nr,Tt.resize=Pr,Tt._reglType="texture2d",Tt._texture=ye,_e.profile&&(Tt.stats=ye.stats),Tt.destroy=function(){ye.decRef()},Tt}function Zt(Y,xe,ye,Tt,nr,Pr){var Ct=new di(vo);ln[Ct.id]=Ct,be.cubeCount++;var U=new Array(6);function q(pe,de,ce,se,Q,ne){var K,ve=Ct.texInfo;for(An.call(ve),K=0;K<6;++K)U[K]=Xn();if(typeof pe=="number"||!pe){var Oe=pe|0||1;for(K=0;K<6;++K)lr(U[K],Oe,Oe)}else if(typeof pe=="object")if(de)hr(U[0],pe),hr(U[1],de),hr(U[2],ce),hr(U[3],se),hr(U[4],Q),hr(U[5],ne);else if(Kn(ve,pe),mt(Ct,pe),"faces"in pe){var Be=pe.faces;for(K=0;K<6;++K)Re(U[K],Ct),hr(U[K],Be[K])}else for(K=0;K<6;++K)hr(U[K],pe);for(Re(Ct,U[0]),ve.genMipmaps?Ct.mipmask=(U[0].width<<1)-1:Ct.mipmask=U[0].mipmask,Ct.internalformat=U[0].internalformat,q.width=U[0].width,q.height=U[0].height,_r(Ct),K=0;K<6;++K)un(U[K],mo+K);for(Fn(ve,vo),fn(),_e.profile&&(Ct.stats.size=Ui(Ct.internalformat,Ct.type,q.width,q.height,ve.genMipmaps,!0)),q.format=Ve[Ct.internalformat],q.type=Ze[Ct.type],q.mag=Ne[ve.magFilter],q.min=pt[ve.minFilter],q.wrapS=ot[ve.wrapS],q.wrapT=ot[ve.wrapT],K=0;K<6;++K)Tr(U[K]);return q}function ee(pe,de,ce,se,Q){var ne=ce|0,K=se|0,ve=Q|0,Oe=Bt();return Re(Oe,Ct),Oe.width=0,Oe.height=0,Je(Oe,de),Oe.width=Oe.width||(Ct.width>>ve)-ne,Oe.height=Oe.height||(Ct.height>>ve)-K,_r(Ct),tr(Oe,mo+pe,ne,K,ve),fn(),lt(Oe),q}function Se(pe){var de=pe|0;if(de!==Ct.width){q.width=Ct.width=de,q.height=Ct.height=de,_r(Ct);for(var ce=0;ce<6;++ce)for(var se=0;Ct.mipmask>>se;++se)I.texImage2D(mo+ce,se,Ct.format,de>>se,de>>se,0,Ct.format,Ct.type,null);return fn(),_e.profile&&(Ct.stats.size=Ui(Ct.internalformat,Ct.type,q.width,q.height,!1,!0)),q}}return q(Y,xe,ye,Tt,nr,Pr),q.subimage=ee,q.resize=Se,q._reglType="textureCube",q._texture=Ct,_e.profile&&(q.stats=Ct.stats),q.destroy=function(){Ct.decRef()},q}function cr(){for(var Y=0;Y<sn;++Y)I.activeTexture(Da+Y),I.bindTexture(li,null),Kt[Y]=null;zn(ln).forEach(Un),be.cubeCount=0,be.textureCount=0}_e.profile&&(be.getTotalTextureSize=function(){var Y=0;return Object.keys(ln).forEach(function(xe){Y+=ln[xe].stats.size}),Y});function Or(){for(var Y=0;Y<sn;++Y){var xe=Kt[Y];xe&&(xe.bindCount=0,xe.unit=-1,Kt[Y]=null)}zn(ln).forEach(function(ye){ye.texture=I.createTexture(),I.bindTexture(ye.target,ye.texture);for(var Tt=0;Tt<32;++Tt)if(ye.mipmask&1<<Tt)if(ye.target===li)I.texImage2D(li,Tt,ye.internalformat,ye.width>>Tt,ye.height>>Tt,0,ye.internalformat,ye.type,null);else for(var nr=0;nr<6;++nr)I.texImage2D(mo+nr,Tt,ye.internalformat,ye.width>>Tt,ye.height>>Tt,0,ye.internalformat,ye.type,null);Fn(ye.texInfo,ye.target)})}function cn(){for(var Y=0;Y<sn;++Y){var xe=Kt[Y];xe&&(xe.bindCount=0,xe.unit=-1,Kt[Y]=null),I.activeTexture(Da+Y),I.bindTexture(li,null),I.bindTexture(vo,null)}}return{create2D:jn,createCube:Zt,clear:cr,getTexture:function(Y){return null},restore:Or,refresh:cn}}var sa=36161,hs=32854,nv=32855,_c=36194,iv=33189,av=36168,ov=34041,Sc=35907,uv=34836,lv=34842,sv=34843,fi=[];fi[hs]=2,fi[nv]=2,fi[_c]=2,fi[iv]=2,fi[av]=1,fi[ov]=4,fi[Sc]=4,fi[uv]=16,fi[lv]=8,fi[sv]=6;function fv(I,H,Z){return fi[I]*H*Z}var cv=function(I,H,Z,Ee,Me){var be={rgba4:hs,rgb565:_c,"rgb5 a1":nv,depth:iv,stencil:av,"depth stencil":ov};H.ext_srgb&&(be.srgba=Sc),H.ext_color_buffer_half_float&&(be.rgba16f=lv,be.rgb16f=sv),H.webgl_color_buffer_float&&(be.rgba32f=uv);var _e=[];Object.keys(be).forEach(function(it){var Ge=be[it];_e[Ge]=it});var Ye=0,Xe={};function et(it){this.id=Ye++,this.refCount=1,this.renderbuffer=it,this.format=hs,this.width=0,this.height=0,Me.profile&&(this.stats={size:0})}et.prototype.decRef=function(){--this.refCount<=0&&ft(this)};function ft(it){var Ge=it.renderbuffer;I.bindRenderbuffer(sa,null),I.deleteRenderbuffer(Ge),it.renderbuffer=null,it.refCount=0,delete Xe[it.id],Ee.renderbufferCount--}function Rt(it,Ge){var he=new et(I.createRenderbuffer());Xe[he.id]=he,Ee.renderbufferCount++;function Te(Ze,Ne){var pt=0,ot=0,Pt=hs;if(typeof Ze=="object"&&Ze){var $e=Ze;if("shape"in $e){var Re=$e.shape;pt=Re[0]|0,ot=Re[1]|0}else"radius"in $e&&(pt=ot=$e.radius|0),"width"in $e&&(pt=$e.width|0),"height"in $e&&(ot=$e.height|0);"format"in $e&&(Pt=be[$e.format])}else typeof Ze=="number"?(pt=Ze|0,typeof Ne=="number"?ot=Ne|0:ot=pt):Ze||(pt=ot=1);if(!(pt===he.width&&ot===he.height&&Pt===he.format))return Te.width=he.width=pt,Te.height=he.height=ot,he.format=Pt,I.bindRenderbuffer(sa,he.renderbuffer),I.renderbufferStorage(sa,Pt,pt,ot),Me.profile&&(he.stats.size=fv(he.format,he.width,he.height)),Te.format=_e[he.format],Te}function Ve(Ze,Ne){var pt=Ze|0,ot=Ne|0||pt;return pt===he.width&&ot===he.height||(Te.width=he.width=pt,Te.height=he.height=ot,I.bindRenderbuffer(sa,he.renderbuffer),I.renderbufferStorage(sa,he.format,pt,ot),Me.profile&&(he.stats.size=fv(he.format,he.width,he.height))),Te}return Te(it,Ge),Te.resize=Ve,Te._reglType="renderbuffer",Te._renderbuffer=he,Me.profile&&(Te.stats=he.stats),Te.destroy=function(){he.decRef()},Te}Me.profile&&(Ee.getTotalRenderbufferSize=function(){var it=0;return Object.keys(Xe).forEach(function(Ge){it+=Xe[Ge].stats.size}),it});function St(){zn(Xe).forEach(function(it){it.renderbuffer=I.createRenderbuffer(),I.bindRenderbuffer(sa,it.renderbuffer),I.renderbufferStorage(sa,it.format,it.width,it.height)}),I.bindRenderbuffer(sa,null)}return{create:Rt,clear:function(){zn(Xe).forEach(ft)},restore:St}},ji=36160,Ec=36161,_o=3553,So=34069,Eo=36064,ci=36096,hv=36128,dv=33306,By=36053,zy=36193,pv=5121,Uy=5126,jy=6407,Gy=6408,Ac=[];Ac[Gy]=4,Ac[jy]=3;var ds=[];ds[pv]=1,ds[Uy]=4,ds[zy]=2;function Tc(I,H,Z,Ee,Me,be){var _e={cur:null,next:null,dirty:!1,setFBO:null},Ye=["rgba"],Xe=["rgba4","rgb565","rgb5 a1"];H.ext_srgb&&Xe.push("srgba"),H.ext_color_buffer_half_float&&Xe.push("rgba16f","rgb16f"),H.webgl_color_buffer_float&&Xe.push("rgba32f"),H.oes_texture_half_float,H.oes_texture_float;function et(Ae,ht,Je){this.target=Ae,this.texture=ht,this.renderbuffer=Je;var It=0,tr=0;ht?(It=ht.width,tr=ht.height):Je&&(It=Je.width,tr=Je.height),this.width=It,this.height=tr}function ft(Ae){Ae&&(Ae.texture&&Ae.texture._texture.decRef(),Ae.renderbuffer&&Ae.renderbuffer._renderbuffer.decRef())}function Rt(Ae,ht,Je){if(Ae)if(Ae.texture){var It=Ae.texture._texture;Math.max(1,It.width),Math.max(1,It.height),It.refCount+=1}else{var tr=Ae.renderbuffer._renderbuffer;tr.refCount+=1}}function St(Ae,ht){ht&&(ht.texture?I.framebufferTexture2D(ji,Ae,ht.target,ht.texture._texture.texture,0):I.framebufferRenderbuffer(ji,Ae,Ec,ht.renderbuffer._renderbuffer.renderbuffer))}function it(Ae){var ht=_o,Je=null,It=null,tr=Ae;typeof Ae=="object"&&(tr=Ae.data,"target"in Ae&&(ht=Ae.target|0));var bt=tr._reglType;return bt==="texture2d"||bt==="textureCube"?Je=tr:bt==="renderbuffer"&&(It=tr,ht=Ec),new et(ht,Je,It)}function Ge(Ae,ht,Je,It,tr){if(Je){var bt=Ee.create2D({width:Ae,height:ht,format:It,type:tr});return bt._texture.refCount=0,new et(_o,bt,null)}else{var Bt=Me.create({width:Ae,height:ht,format:It});return Bt._renderbuffer.refCount=0,new et(Ec,null,Bt)}}function he(Ae){return Ae&&(Ae.texture||Ae.renderbuffer)}function Te(Ae,ht,Je){Ae&&(Ae.texture?Ae.texture.resize(ht,Je):Ae.renderbuffer&&Ae.renderbuffer.resize(ht,Je),Ae.width=ht,Ae.height=Je)}var Ve=0,Ze={};function Ne(){this.id=Ve++,Ze[this.id]=this,this.framebuffer=I.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function pt(Ae){Ae.colorAttachments.forEach(ft),ft(Ae.depthAttachment),ft(Ae.stencilAttachment),ft(Ae.depthStencilAttachment)}function ot(Ae){var ht=Ae.framebuffer;I.deleteFramebuffer(ht),Ae.framebuffer=null,be.framebufferCount--,delete Ze[Ae.id]}function Pt(Ae){var ht;I.bindFramebuffer(ji,Ae.framebuffer);var Je=Ae.colorAttachments;for(ht=0;ht<Je.length;++ht)St(Eo+ht,Je[ht]);for(ht=Je.length;ht<Z.maxColorAttachments;++ht)I.framebufferTexture2D(ji,Eo+ht,_o,null,0);I.framebufferTexture2D(ji,dv,_o,null,0),I.framebufferTexture2D(ji,ci,_o,null,0),I.framebufferTexture2D(ji,hv,_o,null,0),St(ci,Ae.depthAttachment),St(hv,Ae.stencilAttachment),St(dv,Ae.depthStencilAttachment);var It=I.checkFramebufferStatus(ji);I.isContextLost(),I.bindFramebuffer(ji,_e.next?_e.next.framebuffer:null),_e.cur=_e.next,I.getError()}function $e(Ae,ht){var Je=new Ne;be.framebufferCount++;function It(bt,Bt){var lt,rr=0,lr=0,hr=!0,un=!0,sr=null,Xn=!0,Tr="rgba",An="uint8",Kn=1,Fn=null,Hi=null,ln=null,sn=!1;if(typeof bt=="number")rr=bt|0,lr=Bt|0||rr;else if(!bt)rr=lr=1;else{var Kt=bt;if("shape"in Kt){var di=Kt.shape;rr=di[0],lr=di[1]}else"radius"in Kt&&(rr=lr=Kt.radius),"width"in Kt&&(rr=Kt.width),"height"in Kt&&(lr=Kt.height);("color"in Kt||"colors"in Kt)&&(sr=Kt.color||Kt.colors),sr||("colorCount"in Kt&&(Kn=Kt.colorCount|0),"colorTexture"in Kt&&(Xn=!!Kt.colorTexture,Tr="rgba4"),"colorType"in Kt&&(An=Kt.colorType,Xn||(An==="half float"||An==="float16"?Tr="rgba16f":(An==="float"||An==="float32")&&(Tr="rgba32f"))),"colorFormat"in Kt&&(Tr=Kt.colorFormat,Ye.indexOf(Tr)>=0?Xn=!0:Xe.indexOf(Tr)>=0&&(Xn=!1))),("depthTexture"in Kt||"depthStencilTexture"in Kt)&&(sn=!!(Kt.depthTexture||Kt.depthStencilTexture)),"depth"in Kt&&(typeof Kt.depth=="boolean"?hr=Kt.depth:(Fn=Kt.depth,un=!1)),"stencil"in Kt&&(typeof Kt.stencil=="boolean"?un=Kt.stencil:(Hi=Kt.stencil,hr=!1)),"depthStencil"in Kt&&(typeof Kt.depthStencil=="boolean"?hr=un=Kt.depthStencil:(ln=Kt.depthStencil,hr=!1,un=!1))}var _r=null,fn=null,Un=null,jn=null;if(Array.isArray(sr))_r=sr.map(it);else if(sr)_r=[it(sr)];else for(_r=new Array(Kn),lt=0;lt<Kn;++lt)_r[lt]=Ge(rr,lr,Xn,Tr,An);for(rr=rr||_r[0].width,lr=lr||_r[0].height,Fn?fn=it(Fn):hr&&!un&&(fn=Ge(rr,lr,sn,"depth","uint32")),Hi?Un=it(Hi):un&&!hr&&(Un=Ge(rr,lr,!1,"stencil","uint8")),ln?jn=it(ln):!Fn&&!Hi&&un&&hr&&(jn=Ge(rr,lr,sn,"depth stencil","depth stencil")),lt=0;lt<_r.length;++lt)Rt(_r[lt]),_r[lt]&&_r[lt].texture&&Ac[_r[lt].texture._texture.format]*ds[_r[lt].texture._texture.type];return Rt(fn),Rt(Un),Rt(jn),pt(Je),Je.width=rr,Je.height=lr,Je.colorAttachments=_r,Je.depthAttachment=fn,Je.stencilAttachment=Un,Je.depthStencilAttachment=jn,It.color=_r.map(he),It.depth=he(fn),It.stencil=he(Un),It.depthStencil=he(jn),It.width=Je.width,It.height=Je.height,Pt(Je),It}function tr(bt,Bt){var lt=Math.max(bt|0,1),rr=Math.max(Bt|0||lt,1);if(lt===Je.width&&rr===Je.height)return It;for(var lr=Je.colorAttachments,hr=0;hr<lr.length;++hr)Te(lr[hr],lt,rr);return Te(Je.depthAttachment,lt,rr),Te(Je.stencilAttachment,lt,rr),Te(Je.depthStencilAttachment,lt,rr),Je.width=It.width=lt,Je.height=It.height=rr,Pt(Je),It}return It(Ae,ht),r(It,{resize:tr,_reglType:"framebuffer",_framebuffer:Je,destroy:function(){ot(Je),pt(Je)},use:function(bt){_e.setFBO({framebuffer:It},bt)}})}function Re(Ae){var ht=Array(6);function Je(tr){var bt,Bt={color:null},lt=0,rr=null,lr="rgba",hr="uint8",un=1;if(typeof tr=="number")lt=tr|0;else if(!tr)lt=1;else{var sr=tr;if("shape"in sr){var Xn=sr.shape;lt=Xn[0]}else"radius"in sr&&(lt=sr.radius|0),"width"in sr?lt=sr.width|0:"height"in sr&&(lt=sr.height|0);("color"in sr||"colors"in sr)&&(rr=sr.color||sr.colors),rr||("colorCount"in sr&&(un=sr.colorCount|0),"colorType"in sr&&(hr=sr.colorType),"colorFormat"in sr&&(lr=sr.colorFormat)),"depth"in sr&&(Bt.depth=sr.depth),"stencil"in sr&&(Bt.stencil=sr.stencil),"depthStencil"in sr&&(Bt.depthStencil=sr.depthStencil)}var Tr;if(rr)if(Array.isArray(rr))for(Tr=[],bt=0;bt<rr.length;++bt)Tr[bt]=rr[bt];else Tr=[rr];else{Tr=Array(un);var An={radius:lt,format:lr,type:hr};for(bt=0;bt<un;++bt)Tr[bt]=Ee.createCube(An)}for(Bt.color=Array(Tr.length),bt=0;bt<Tr.length;++bt){var Kn=Tr[bt];lt=lt||Kn.width,Bt.color[bt]={target:So,data:Tr[bt]}}for(bt=0;bt<6;++bt){for(var Fn=0;Fn<Tr.length;++Fn)Bt.color[Fn].target=So+bt;bt>0&&(Bt.depth=ht[0].depth,Bt.stencil=ht[0].stencil,Bt.depthStencil=ht[0].depthStencil),ht[bt]?ht[bt](Bt):ht[bt]=$e(Bt)}return r(Je,{width:lt,height:lt,color:Tr})}function It(tr){var bt,Bt=tr|0;if(Bt===Je.width)return Je;var lt=Je.color;for(bt=0;bt<lt.length;++bt)lt[bt].resize(Bt);for(bt=0;bt<6;++bt)ht[bt].resize(Bt);return Je.width=Je.height=Bt,Je}return Je(Ae),r(Je,{faces:ht,resize:It,_reglType:"framebufferCube",destroy:function(){ht.forEach(function(tr){tr.destroy()})}})}function mt(){_e.cur=null,_e.next=null,_e.dirty=!0,zn(Ze).forEach(function(Ae){Ae.framebuffer=I.createFramebuffer(),Pt(Ae)})}return r(_e,{getFramebuffer:function(Ae){if(typeof Ae=="function"&&Ae._reglType==="framebuffer"){var ht=Ae._framebuffer;if(ht instanceof Ne)return ht}return null},create:$e,createCube:Re,clear:function(){zn(Ze).forEach(ot)},restore:mt})}var Cc=5126,vv=34962,ps=34963;function Oc(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=Cc,this.offset=0,this.stride=0,this.divisor=0}function Wy(I,H,Z,Ee,Me,be,_e){for(var Ye=Z.maxAttributes,Xe=new Array(Ye),et=0;et<Ye;++et)Xe[et]=new Oc;var ft=0,Rt={},St={Record:Oc,scope:{},state:Xe,currentVAO:null,targetVAO:null,restore:Ge()?ot:function(){},createVAO:Pt,getVAO:Te,destroyBuffer:it,setVAO:Ge()?Ve:Ze,clear:Ge()?Ne:function(){}};function it($e){for(var Re=0;Re<Xe.length;++Re){var mt=Xe[Re];mt.buffer===$e&&(I.disableVertexAttribArray(Re),mt.buffer=null)}}function Ge(){return H.oes_vertex_array_object}function he(){return H.angle_instanced_arrays}function Te($e){return typeof $e=="function"&&$e._vao?$e._vao:null}function Ve($e){if($e!==St.currentVAO){var Re=Ge();$e?Re.bindVertexArrayOES($e.vao):Re.bindVertexArrayOES(null),St.currentVAO=$e}}function Ze($e){if($e!==St.currentVAO){if($e)$e.bindAttrs();else{for(var Re=he(),mt=0;mt<Xe.length;++mt){var Ae=Xe[mt];Ae.buffer?(I.enableVertexAttribArray(mt),Ae.buffer.bind(),I.vertexAttribPointer(mt,Ae.size,Ae.type,Ae.normalized,Ae.stride,Ae.offfset),Re&&Ae.divisor&&Re.vertexAttribDivisorANGLE(mt,Ae.divisor)):(I.disableVertexAttribArray(mt),I.vertexAttrib4f(mt,Ae.x,Ae.y,Ae.z,Ae.w))}_e.elements?I.bindBuffer(ps,_e.elements.buffer.buffer):I.bindBuffer(ps,null)}St.currentVAO=$e}}function Ne(){zn(Rt).forEach(function($e){$e.destroy()})}function pt(){this.id=++ft,this.attributes=[],this.elements=null,this.ownsElements=!1,this.count=0,this.offset=0,this.instances=-1,this.primitive=4;var $e=Ge();$e?this.vao=$e.createVertexArrayOES():this.vao=null,Rt[this.id]=this,this.buffers=[]}pt.prototype.bindAttrs=function(){for(var $e=he(),Re=this.attributes,mt=0;mt<Re.length;++mt){var Ae=Re[mt];Ae.buffer?(I.enableVertexAttribArray(mt),I.bindBuffer(vv,Ae.buffer.buffer),I.vertexAttribPointer(mt,Ae.size,Ae.type,Ae.normalized,Ae.stride,Ae.offset),$e&&Ae.divisor&&$e.vertexAttribDivisorANGLE(mt,Ae.divisor)):(I.disableVertexAttribArray(mt),I.vertexAttrib4f(mt,Ae.x,Ae.y,Ae.z,Ae.w))}for(var ht=Re.length;ht<Ye;++ht)I.disableVertexAttribArray(ht);var Je=be.getElements(this.elements);Je?I.bindBuffer(ps,Je.buffer.buffer):I.bindBuffer(ps,null)},pt.prototype.refresh=function(){var $e=Ge();$e&&($e.bindVertexArrayOES(this.vao),this.bindAttrs(),St.currentVAO=null,$e.bindVertexArrayOES(null))},pt.prototype.destroy=function(){if(this.vao){var $e=Ge();this===St.currentVAO&&(St.currentVAO=null,$e.bindVertexArrayOES(null)),$e.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),Rt[this.id]&&(delete Rt[this.id],Ee.vaoCount-=1)};function ot(){var $e=Ge();$e&&zn(Rt).forEach(function(Re){Re.refresh()})}function Pt($e){var Re=new pt;Ee.vaoCount+=1;function mt(Ae){var ht;if(Array.isArray(Ae))ht=Ae,Re.elements&&Re.ownsElements&&Re.elements.destroy(),Re.elements=null,Re.ownsElements=!1,Re.offset=0,Re.count=0,Re.instances=-1,Re.primitive=4;else{if(Ae.elements){var Je=Ae.elements;Re.ownsElements?typeof Je=="function"&&Je._reglType==="elements"?(Re.elements.destroy(),Re.ownsElements=!1):(Re.elements(Je),Re.ownsElements=!1):be.getElements(Ae.elements)?(Re.elements=Ae.elements,Re.ownsElements=!1):(Re.elements=be.create(Ae.elements),Re.ownsElements=!0)}else Re.elements=null,Re.ownsElements=!1;ht=Ae.attributes,Re.offset=0,Re.count=-1,Re.instances=-1,Re.primitive=4,Re.elements&&(Re.count=Re.elements._elements.vertCount,Re.primitive=Re.elements._elements.primType),"offset"in Ae&&(Re.offset=Ae.offset|0),"count"in Ae&&(Re.count=Ae.count|0),"instances"in Ae&&(Re.instances=Ae.instances|0),"primitive"in Ae&&(Re.primitive=nn[Ae.primitive])}var It={},tr=Re.attributes;tr.length=ht.length;for(var bt=0;bt<ht.length;++bt){var Bt=ht[bt],lt=tr[bt]=new Oc,rr=Bt.data||Bt;if(Array.isArray(rr)||rn(rr)||ai(rr)){var lr;Re.buffers[bt]&&(lr=Re.buffers[bt],rn(rr)&&lr._buffer.byteLength>=rr.byteLength?lr.subdata(rr):(lr.destroy(),Re.buffers[bt]=null)),Re.buffers[bt]||(lr=Re.buffers[bt]=Me.create(Bt,vv,!1,!0)),lt.buffer=Me.getBuffer(lr),lt.size=lt.buffer.dimension|0,lt.normalized=!1,lt.type=lt.buffer.dtype,lt.offset=0,lt.stride=0,lt.divisor=0,lt.state=1,It[bt]=1}else Me.getBuffer(Bt)?(lt.buffer=Me.getBuffer(Bt),lt.size=lt.buffer.dimension|0,lt.normalized=!1,lt.type=lt.buffer.dtype,lt.offset=0,lt.stride=0,lt.divisor=0,lt.state=1):Me.getBuffer(Bt.buffer)?(lt.buffer=Me.getBuffer(Bt.buffer),lt.size=(+Bt.size||lt.buffer.dimension)|0,lt.normalized=!!Bt.normalized||!1,"type"in Bt?lt.type=Ou[Bt.type]:lt.type=lt.buffer.dtype,lt.offset=(Bt.offset||0)|0,lt.stride=(Bt.stride||0)|0,lt.divisor=(Bt.divisor||0)|0,lt.state=1):"x"in Bt&&(lt.x=+Bt.x||0,lt.y=+Bt.y||0,lt.z=+Bt.z||0,lt.w=+Bt.w||0,lt.state=2)}for(var hr=0;hr<Re.buffers.length;++hr)!It[hr]&&Re.buffers[hr]&&(Re.buffers[hr].destroy(),Re.buffers[hr]=null);return Re.refresh(),mt}return mt.destroy=function(){for(var Ae=0;Ae<Re.buffers.length;++Ae)Re.buffers[Ae]&&Re.buffers[Ae].destroy();Re.buffers.length=0,Re.ownsElements&&(Re.elements.destroy(),Re.elements=null,Re.ownsElements=!1),Re.destroy()},mt._vao=Re,mt._reglType="vao",mt($e)}return St}var kc=35632,Hy=35633,qy=35718,Mc=35721;function mv(I,H,Z,Ee){var Me={},be={};function _e(he,Te,Ve,Ze){this.name=he,this.id=Te,this.location=Ve,this.info=Ze}function Ye(he,Te){for(var Ve=0;Ve<he.length;++Ve)if(he[Ve].id===Te.id){he[Ve].location=Te.location;return}he.push(Te)}function Xe(he,Te,Ve){var Ze=he===kc?Me:be,Ne=Ze[Te];if(!Ne){var pt=H.str(Te);Ne=I.createShader(he),I.shaderSource(Ne,pt),I.compileShader(Ne),Ze[Te]=Ne}return Ne}var et={},ft=[],Rt=0;function St(he,Te){this.id=Rt++,this.fragId=he,this.vertId=Te,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,Ee.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function it(he,Te,Ve){var Ze,Ne,pt=Xe(kc,he.fragId),ot=Xe(Hy,he.vertId),Pt=he.program=I.createProgram();if(I.attachShader(Pt,pt),I.attachShader(Pt,ot),Ve)for(Ze=0;Ze<Ve.length;++Ze){var $e=Ve[Ze];I.bindAttribLocation(Pt,$e[0],$e[1])}I.linkProgram(Pt);var Re=I.getProgramParameter(Pt,qy);Ee.profile&&(he.stats.uniformsCount=Re);var mt=he.uniforms;for(Ze=0;Ze<Re;++Ze)if(Ne=I.getActiveUniform(Pt,Ze),Ne)if(Ne.size>1)for(var Ae=0;Ae<Ne.size;++Ae){var ht=Ne.name.replace("[0]","["+Ae+"]");Ye(mt,new _e(ht,H.id(ht),I.getUniformLocation(Pt,ht),Ne))}else Ye(mt,new _e(Ne.name,H.id(Ne.name),I.getUniformLocation(Pt,Ne.name),Ne));var Je=I.getProgramParameter(Pt,Mc);Ee.profile&&(he.stats.attributesCount=Je);var It=he.attributes;for(Ze=0;Ze<Je;++Ze)Ne=I.getActiveAttrib(Pt,Ze),Ne&&Ye(It,new _e(Ne.name,H.id(Ne.name),I.getAttribLocation(Pt,Ne.name),Ne))}Ee.profile&&(Z.getMaxUniformsCount=function(){var he=0;return ft.forEach(function(Te){Te.stats.uniformsCount>he&&(he=Te.stats.uniformsCount)}),he},Z.getMaxAttributesCount=function(){var he=0;return ft.forEach(function(Te){Te.stats.attributesCount>he&&(he=Te.stats.attributesCount)}),he});function Ge(){Me={},be={};for(var he=0;he<ft.length;++he)it(ft[he],null,ft[he].attributes.map(function(Te){return[Te.location,Te.name]}))}return{clear:function(){var he=I.deleteShader.bind(I);zn(Me).forEach(he),Me={},zn(be).forEach(he),be={},ft.forEach(function(Te){I.deleteProgram(Te.program)}),ft.length=0,et={},Z.shaderCount=0},program:function(he,Te,Ve,Ze){var Ne=et[Te];Ne||(Ne=et[Te]={});var pt=Ne[he];if(pt&&(pt.refCount++,!Ze))return pt;var ot=new St(Te,he);return Z.shaderCount++,it(ot,Ve,Ze),pt||(Ne[he]=ot),ft.push(ot),r(ot,{destroy:function(){if(ot.refCount--,ot.refCount<=0){I.deleteProgram(ot.program);var Pt=ft.indexOf(ot);ft.splice(Pt,1),Z.shaderCount--}Ne[ot.vertId].refCount<=0&&(I.deleteShader(be[ot.vertId]),delete be[ot.vertId],delete et[ot.fragId][ot.vertId]),Object.keys(et[ot.fragId]).length||(I.deleteShader(Me[ot.fragId]),delete Me[ot.fragId],delete et[ot.fragId])}})},restore:Ge,shader:Xe,frag:-1,vert:-1}}var gv=6408,Rc=5121,Vy=3333,Yy=5126;function yv(I,H,Z,Ee,Me,be,_e){function Ye(ft){var Rt;H.next===null?Rt=Rc:Rt=H.next.colorAttachments[0].texture._texture.type;var St=0,it=0,Ge=Ee.framebufferWidth,he=Ee.framebufferHeight,Te=null;rn(ft)?Te=ft:ft&&(St=ft.x|0,it=ft.y|0,Ge=(ft.width||Ee.framebufferWidth-St)|0,he=(ft.height||Ee.framebufferHeight-it)|0,Te=ft.data||null),Z();var Ve=Ge*he*4;return Te||(Rt===Rc?Te=new Uint8Array(Ve):Rt===Yy&&(Te=Te||new Float32Array(Ve))),I.pixelStorei(Vy,4),I.readPixels(St,it,Ge,he,gv,Rt,Te),Te}function Xe(ft){var Rt;return H.setFBO({framebuffer:ft.framebuffer},function(){Rt=Ye(ft)}),Rt}function et(ft){return!ft||!("framebuffer"in ft)?Ye(ft):Xe(ft)}return et}function bv(I){return Pc(xv(Ic(I)))}function xv(I){return Ky(Zy(Xy(I),I.length*8))}function Pc(I){for(var H="0123456789abcdef",Z="",Ee,Me=0;Me<I.length;Me++)Ee=I.charCodeAt(Me),Z+=H.charAt(Ee>>>4&15)+H.charAt(Ee&15);return Z}function Ic(I){for(var H="",Z=-1,Ee,Me;++Z<I.length;)Ee=I.charCodeAt(Z),Me=Z+1<I.length?I.charCodeAt(Z+1):0,55296<=Ee&&Ee<=56319&&56320<=Me&&Me<=57343&&(Ee=65536+((Ee&1023)<<10)+(Me&1023),Z++),Ee<=127?H+=String.fromCharCode(Ee):Ee<=2047?H+=String.fromCharCode(192|Ee>>>6&31,128|Ee&63):Ee<=65535?H+=String.fromCharCode(224|Ee>>>12&15,128|Ee>>>6&63,128|Ee&63):Ee<=2097151&&(H+=String.fromCharCode(240|Ee>>>18&7,128|Ee>>>12&63,128|Ee>>>6&63,128|Ee&63));return H}function Xy(I){for(var H=Array(I.length>>2),Z=0;Z<H.length;Z++)H[Z]=0;for(var Z=0;Z<I.length*8;Z+=8)H[Z>>5]|=(I.charCodeAt(Z/8)&255)<<24-Z%32;return H}function Ky(I){for(var H="",Z=0;Z<I.length*32;Z+=8)H+=String.fromCharCode(I[Z>>5]>>>24-Z%32&255);return H}function Si(I,H){return I>>>H|I<<32-H}function wv(I,H){return I>>>H}function Qy(I,H,Z){return I&H^~I&Z}function _v(I,H,Z){return I&H^I&Z^H&Z}function Sv(I){return Si(I,2)^Si(I,13)^Si(I,22)}function Fc(I){return Si(I,6)^Si(I,11)^Si(I,25)}function Ev(I){return Si(I,7)^Si(I,18)^wv(I,3)}function vs(I){return Si(I,17)^Si(I,19)^wv(I,10)}var ms=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Zy(I,H){var Z=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Ee=new Array(64),Me,be,_e,Ye,Xe,et,ft,Rt,St,it,Ge,he;for(I[H>>5]|=128<<24-H%32,I[(H+64>>9<<4)+15]=H,St=0;St<I.length;St+=16){for(Me=Z[0],be=Z[1],_e=Z[2],Ye=Z[3],Xe=Z[4],et=Z[5],ft=Z[6],Rt=Z[7],it=0;it<64;it++)it<16?Ee[it]=I[it+St]:Ee[it]=Wr(Wr(Wr(vs(Ee[it-2]),Ee[it-7]),Ev(Ee[it-15])),Ee[it-16]),Ge=Wr(Wr(Wr(Wr(Rt,Fc(Xe)),Qy(Xe,et,ft)),ms[it]),Ee[it]),he=Wr(Sv(Me),_v(Me,be,_e)),Rt=ft,ft=et,et=Xe,Xe=Wr(Ye,Ge),Ye=_e,_e=be,be=Me,Me=Wr(Ge,he);Z[0]=Wr(Me,Z[0]),Z[1]=Wr(be,Z[1]),Z[2]=Wr(_e,Z[2]),Z[3]=Wr(Ye,Z[3]),Z[4]=Wr(Xe,Z[4]),Z[5]=Wr(et,Z[5]),Z[6]=Wr(ft,Z[6]),Z[7]=Wr(Rt,Z[7])}return Z}function Wr(I,H){var Z=(I&65535)+(H&65535),Ee=(I>>16)+(H>>16)+(Z>>16);return Ee<<16|Z&65535}function za(I){return Array.prototype.slice.call(I)}function Ao(I){return za(I).join("")}function Jy(I){var H=I&&I.cache,Z=0,Ee=[],Me=[],be=[];function _e(Ge,he){var Te=he&&he.stable;if(!Te){for(var Ve=0;Ve<Me.length;++Ve)if(Me[Ve]===Ge&&!be[Ve])return Ee[Ve]}var Ze="g"+Z++;return Ee.push(Ze),Me.push(Ge),be.push(Te),Ze}function Ye(){var Ge=[];function he(){Ge.push.apply(Ge,za(arguments))}var Te=[];function Ve(){var Ze="v"+Z++;return Te.push(Ze),arguments.length>0&&(Ge.push(Ze,"="),Ge.push.apply(Ge,za(arguments)),Ge.push(";")),Ze}return r(he,{def:Ve,toString:function(){return Ao([Te.length>0?"var "+Te.join(",")+";":"",Ao(Ge)])}})}function Xe(){var Ge=Ye(),he=Ye(),Te=Ge.toString,Ve=he.toString;function Ze(Ne,pt){he(Ne,pt,"=",Ge.def(Ne,pt),";")}return r(function(){Ge.apply(Ge,za(arguments))},{def:Ge.def,entry:Ge,exit:he,save:Ze,set:function(Ne,pt,ot){Ze(Ne,pt),Ge(Ne,pt,"=",ot,";")},toString:function(){return Te()+Ve()}})}function et(){var Ge=Ao(arguments),he=Xe(),Te=Xe(),Ve=he.toString,Ze=Te.toString;return r(he,{then:function(){return he.apply(he,za(arguments)),this},else:function(){return Te.apply(Te,za(arguments)),this},toString:function(){var Ne=Ze();return Ne&&(Ne="else{"+Ne+"}"),Ao(["if(",Ge,"){",Ve(),"}",Ne])}})}var ft=Ye(),Rt={};function St(Ge,he){var Te=[];function Ve(){var Pt="a"+Te.length;return Te.push(Pt),Pt}he=he||0;for(var Ze=0;Ze<he;++Ze)Ve();var Ne=Xe(),pt=Ne.toString,ot=Rt[Ge]=r(Ne,{arg:Ve,toString:function(){return Ao(["function(",Te.join(),"){",pt(),"}"])}});return ot}function it(){var Ge=['"use strict";',ft,"return {"];Object.keys(Rt).forEach(function(Ze){Ge.push('"',Ze,'":',Rt[Ze].toString(),",")}),Ge.push("}");var he=Ao(Ge).replace(/;/g,`;
1092
+ `,uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:(x,w)=>[w.viewport.x,w.viewport.y,x.viewportWidth,x.viewportHeight]},attributes:{color:{buffer:o,offset:(x,w)=>w.offset*4,divisor:1},position:{buffer:i,offset:(x,w)=>w.offset*8,divisor:1},positionFract:{buffer:a,offset:(x,w)=>w.offset*8,divisor:1},error:{buffer:l,offset:(x,w)=>w.offset*16,divisor:1},direction:{buffer:s,stride:24,offset:0},lineOffset:{buffer:s,stride:24,offset:8},capOffset:{buffer:s,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:iM.length}),rM(g,{update:E,draw:v,destroy:M,regl:e,gl:r,canvas:r.canvas,groups:d}),g;function g(x){x?E(x):x===null&&M(),v()}function v(x){if(typeof x=="number")return y(x);x&&!Array.isArray(x)&&(x=[x]),e._refresh(),d.forEach((w,_)=>{if(w){if(x&&(x[_]?w.draw=!0:w.draw=!1),!w.draw){w.draw=!0;return}y(_)}})}function y(x){typeof x=="number"&&(x=d[x]),x!=null&&x&&x.count&&x.color&&x.opacity&&x.positions&&x.positions.length>1&&(x.scaleRatio=[x.scale[0]*x.viewport.width,x.scale[1]*x.viewport.height],n(x),x.after&&x.after(x))}function E(x){if(!x)return;x.length!=null?typeof x[0]=="number"&&(x=[{positions:x}]):Array.isArray(x)||(x=[x]);let w=0,_=0;if(g.groups=d=x.map((F,L)=>{let V=d[L];if(F)typeof F=="function"?F={after:F}:typeof F[0]=="number"&&(F={positions:F});else return V;return F=vee(F,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),V||(d[L]=V={id:L,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},F=rM({},f,F)),pee(V,F,[{lineWidth:j=>+j*.5,capSize:j=>+j*.5,opacity:parseFloat,errors:j=>(j=nM(j),_+=j.length,j),positions:(j,te)=>(j=nM(j,"float64"),te.count=Math.floor(j.length/2),te.bounds=hee(j,2),te.offset=w,w+=te.count,j)},{color:(j,te)=>{let ge=te.count;if(j||(j="transparent"),!Array.isArray(j)||typeof j[0]=="number"){let Me=j;j=Array(ge);for(let Fe=0;Fe<ge;Fe++)j[Fe]=Me}if(j.length<ge)throw Error("Not enough colors");let me=new Uint8Array(ge*4);for(let Me=0;Me<ge;Me++){let Fe=dee(j[Me],"uint8");me.set(Fe,Me*4)}return me},range:(j,te,ge)=>{let me=te.bounds;return j||(j=me),te.scale=[1/(j[2]-j[0]),1/(j[3]-j[1])],te.translate=[-j[0],-j[1]],te.scaleFract=qx(te.scale),te.translateFract=qx(te.translate),j},viewport:j=>{let te;return Array.isArray(j)?te={x:j[0],y:j[1],width:j[2]-j[0],height:j[3]-j[1]}:j?(te={x:j.x||j.left||0,y:j.y||j.top||0},j.right?te.width=j.right-te.x:te.width=j.w||j.width||0,j.bottom?te.height=j.bottom-te.y:te.height=j.h||j.height||0):te={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},te}}]),V}),w||_){let F=d.reduce((te,ge,me)=>te+(ge?ge.count:0),0),L=new Float64Array(F*2),V=new Uint8Array(F*4),j=new Float32Array(F*4);d.forEach((te,ge)=>{if(!te)return;let{positions:me,count:Me,offset:Fe,color:Le,errors:ut}=te;Me&&(V.set(Le,Fe*4),j.set(ut,Fe*4),L.set(me,Fe*2))});var T=mee(L);i(T);var C=qx(L,T);a(C),o(V),l(j)}}function M(){i.destroy(),a.destroy(),o.destroy(),l.destroy(),s.destroy()}}var aM=/[\'\"]/,yee=function(t){return t?(aM.test(t.charAt(0))&&(t=t.substr(1)),aM.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""};const nN=["inherit","initial","unset"],iN=["caption","icon","menu","message-box","small-caption","status-bar"],aN=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"],oN=["normal","italic","oblique"],uN=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"];function lN(e,t){if(typeof e!="string")return[e];var r=[e];typeof t=="string"||Array.isArray(t)?t={brackets:t}:t||(t={});var n=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],i=t.escape||"___",a=!!t.flat;n.forEach(function(s){var f=new RegExp(["\\",s[0],"[^\\",s[0],"\\",s[1],"]*\\",s[1]].join("")),d=[];function g(v,y,E){var M=r.push(v.slice(s[0].length,-s[1].length))-1;return d.push(M),i+M+i}r.forEach(function(v,y){for(var E,M=0;v!=E;)if(E=v,v=v.replace(f,g),M++>1e4)throw Error("References have circular dependency. Please, check them.");r[y]=v}),d=d.reverse(),r=r.map(function(v){return d.forEach(function(y){v=v.replace(new RegExp("(\\"+i+y+"\\"+i+")","g"),s[0]+"$1"+s[1])}),v})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function l(s,f,d){for(var g=[],v,y=0;v=o.exec(s);){if(y++>1e4)throw Error("Circular references in parenthesis");g.push(s.slice(0,v.index)),g.push(l(f[v[1]],f)),s=s.slice(v.index+v[0].length)}return g.push(s),g}return a?r:l(r[0],r)}function sN(e,t){if(t&&t.flat){var r=t&&t.escape||"___",n=e[0],i;if(!n)return"";for(var a=new RegExp("\\"+r+"([0-9]+)\\"+r),o=0;n!=i;){if(o++>1e4)throw Error("Circular references in "+e);i=n,n=n.replace(a,l)}return n}return e.reduce(function s(f,d){return Array.isArray(d)&&(d=d.reduce(s,"")),f+d},"");function l(s,f){if(e[f]==null)throw Error("Reference "+f+"is undefined");return e[f]}}function CE(e,t){return Array.isArray(e)?sN(e,t):lN(e,t)}CE.parse=lN;CE.stringify=sN;var bee=CE,oM=bee,xee=function(t,r,n){if(t==null)throw Error("First argument should be a string");if(r==null)throw Error("Separator should be a string or a RegExp");n?(typeof n=="string"||Array.isArray(n))&&(n={ignore:n}):n={},n.escape==null&&(n.escape=!0),n.ignore==null?n.ignore=["[]","()","{}","<>",'""',"''","``","“”","«»"]:(typeof n.ignore=="string"&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map(function(g){return g.length===1&&(g=g+g),g}));var i=oM.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var l=[],s=0;s<o.length;s++){var f=o[s],d=o[s+1];f[f.length-1]==="\\"&&f[f.length-2]!=="\\"?(l.push(f+r+d),s++):l.push(f)}o=l}for(var s=0;s<o.length;s++)i[0]=o[s],o[s]=oM.stringify(i,{flat:!0});return o};const wee=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"];var _ee=wee,fN={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||_ee.indexOf(t)!==-1}},See=yee,Eee=nN,Aee=iN,Cee=aN,Tee=oN,Oee=uN,Vx=xee,Mee=fN.isSize,kee=cN,kh=cN.cache={};function cN(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(kh[e])return kh[e];if(e==="")throw new Error("Cannot parse an empty string.");if(Aee.indexOf(e)!==-1)return kh[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=Vx(e,/\s+/),n;n=r.shift();){if(Eee.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),kh[e]=t;if(Tee.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(Oee.indexOf(n)!==-1){t.stretch=n;continue}if(Cee.indexOf(n)!==-1){t.weight=n;continue}if(Mee(n)){var i=Vx(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=uM(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=uM(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=Vx(r.join(" "),/\s*,\s*/).map(See),kh[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function uM(e){var t=parseFloat(e);return t.toString()===e?t:e}var Ree=_u,Pee=fN.isSize,Iee=gp(nN),Fee=gp(iN),Nee=gp(aN),Lee=gp(oN),Dee=gp(uN),$ee={normal:1,"small-caps":1},Bee={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},Yx={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"},hN=function(t){if(t=Ree(t,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),t.system)return t.system&&Rh(t.system,Fee),t.system;if(Rh(t.style,Lee),Rh(t.variant,$ee),Rh(t.weight,Nee),Rh(t.stretch,Dee),t.size==null&&(t.size=Yx.size),typeof t.size=="number"&&(t.size+="px"),!Pee)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=Yx.family),Array.isArray(t.family)&&(t.family.length||(t.family=[Yx.family]),t.family=t.family.map(function(n){return Bee[n]?n:'"'+n+'"'}).join(", "));var r=[];return r.push(t.style),t.variant!==t.style&&r.push(t.variant),t.weight!==t.variant&&t.weight!==t.style&&r.push(t.weight),t.stretch!==t.weight&&t.stretch!==t.variant&&t.stretch!==t.style&&r.push(t.stretch),r.push(t.size+(t.lineHeight==null||t.lineHeight==="normal"||t.lineHeight+""=="1"?"":"/"+t.lineHeight)),r.push(t.family),r.filter(Boolean).join(" ")};function Rh(e,t){if(e&&!t[e]&&!Iee[e])throw Error("Unknown keyword `"+e+"`");return e}function gp(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=1;return t}var zee={parse:kee,stringify:hN},dN={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Jt,function(){var r=function(I,H){for(var Z=Object.keys(H),Ee=0;Ee<Z.length;++Ee)I[Z[Ee]]=H[Z[Ee]];return I},n=0,i=0,a=5,o=6;function l(I,H){this.id=n++,this.type=I,this.data=H}function s(I){return I.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function f(I){if(I.length===0)return[];var H=I.charAt(0),Z=I.charAt(I.length-1);if(I.length>1&&H===Z&&(H==='"'||H==="'"))return['"'+s(I.substr(1,I.length-2))+'"'];var Ee=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(I);if(Ee)return f(I.substr(0,Ee.index)).concat(f(Ee[1])).concat(f(I.substr(Ee.index+Ee[0].length)));var ke=I.split(".");if(ke.length===1)return['"'+s(I)+'"'];for(var be=[],_e=0;_e<ke.length;++_e)be=be.concat(f(ke[_e]));return be}function d(I){return"["+f(I).join("][")+"]"}function g(I,H){return new l(I,d(H+""))}function v(I){return typeof I=="function"&&!I._reglType||I instanceof l}function y(I,H){if(typeof I=="function")return new l(i,I);if(typeof I=="number"||typeof I=="boolean")return new l(a,I);if(Array.isArray(I))return new l(o,I.map(function(Z,Ee){return y(Z)}));if(I instanceof l)return I}var E={DynamicVariable:l,define:g,isDynamic:v,unbox:y,accessor:d},M={next:typeof requestAnimationFrame=="function"?function(I){return requestAnimationFrame(I)}:function(I){return setTimeout(I,16)},cancel:typeof cancelAnimationFrame=="function"?function(I){return cancelAnimationFrame(I)}:clearTimeout},x=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function w(){var I={"":0},H=[""];return{id:function(Z){var Ee=I[Z];return Ee||(Ee=I[Z]=H.length,H.push(Z),Ee)},str:function(Z){return H[Z]}}}function _(I,H,Z){var Ee=document.createElement("canvas");r(Ee.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),I.appendChild(Ee),I===document.body&&(Ee.style.position="absolute",r(I.style,{margin:0,padding:0}));function ke(){var Ye=window.innerWidth,Xe=window.innerHeight;if(I!==document.body){var et=Ee.getBoundingClientRect();Ye=et.right-et.left,Xe=et.bottom-et.top}Ee.width=Z*Ye,Ee.height=Z*Xe}var be;I!==document.body&&typeof ResizeObserver=="function"?(be=new ResizeObserver(function(){setTimeout(ke)}),be.observe(I)):window.addEventListener("resize",ke,!1);function _e(){be?be.disconnect():window.removeEventListener("resize",ke),I.removeChild(Ee)}return ke(),{canvas:Ee,onDestroy:_e}}function T(I,H){function Z(Ee){try{return I.getContext(Ee,H)}catch{return null}}return Z("webgl")||Z("experimental-webgl")||Z("webgl-experimental")}function C(I){return typeof I.nodeName=="string"&&typeof I.appendChild=="function"&&typeof I.getBoundingClientRect=="function"}function F(I){return typeof I.drawArrays=="function"||typeof I.drawElements=="function"}function L(I){return typeof I=="string"?I.split():I}function V(I){return typeof I=="string"?document.querySelector(I):I}function j(I){var H=I||{},Z,Ee,ke,be,_e={},Ye=[],Xe=[],et=typeof window>"u"?1:window.devicePixelRatio,ft=!1,Rt={},St=function(he){},it=function(){};if(typeof H=="string"?Z=document.querySelector(H):typeof H=="object"&&(C(H)?Z=H:F(H)?(be=H,ke=be.canvas):("gl"in H?be=H.gl:"canvas"in H?ke=V(H.canvas):"container"in H&&(Ee=V(H.container)),"attributes"in H&&(_e=H.attributes),"extensions"in H&&(Ye=L(H.extensions)),"optionalExtensions"in H&&(Xe=L(H.optionalExtensions)),"onDone"in H&&(St=H.onDone),"profile"in H&&(ft=!!H.profile),"pixelRatio"in H&&(et=+H.pixelRatio),"cachedCode"in H&&(Rt=H.cachedCode))),Z&&(Z.nodeName.toLowerCase()==="canvas"?ke=Z:Ee=Z),!be){if(!ke){var Ge=_(Ee||document.body,St,et);if(!Ge)return null;ke=Ge.canvas,it=Ge.onDestroy}_e.premultipliedAlpha===void 0&&(_e.premultipliedAlpha=!0),be=T(ke,_e)}return be?{gl:be,canvas:ke,container:Ee,extensions:Ye,optionalExtensions:Xe,pixelRatio:et,profile:ft,cachedCode:Rt,onDone:St,onDestroy:it}:(it(),St("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function te(I,H){var Z={};function Ee(_e){var Ye=_e.toLowerCase(),Xe;try{Xe=Z[Ye]=I.getExtension(Ye)}catch{}return!!Xe}for(var ke=0;ke<H.extensions.length;++ke){var be=H.extensions[ke];if(!Ee(be))return H.onDestroy(),H.onDone('"'+be+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return H.optionalExtensions.forEach(Ee),{extensions:Z,restore:function(){Object.keys(Z).forEach(function(_e){if(Z[_e]&&!Ee(_e))throw new Error("(regl): error restoring extension "+_e)})}}}function ge(I,H){for(var Z=Array(I),Ee=0;Ee<I;++Ee)Z[Ee]=H(Ee);return Z}var me=5120,Me=5121,Fe=5122,Le=5123,ut=5124,nt=5125,De=5126;function We(I){for(var H=16;H<=1<<28;H*=16)if(I<=H)return H;return 0}function _t(I){var H,Z;return H=(I>65535)<<4,I>>>=H,Z=(I>255)<<3,I>>>=Z,H|=Z,Z=(I>15)<<2,I>>>=Z,H|=Z,Z=(I>3)<<1,I>>>=Z,H|=Z,H|I>>1}function He(){var I=ge(8,function(){return[]});function H(be){var _e=We(be),Ye=I[_t(_e)>>2];return Ye.length>0?Ye.pop():new ArrayBuffer(_e)}function Z(be){I[_t(be.byteLength)>>2].push(be)}function Ee(be,_e){var Ye=null;switch(be){case me:Ye=new Int8Array(H(_e),0,_e);break;case Me:Ye=new Uint8Array(H(_e),0,_e);break;case Fe:Ye=new Int16Array(H(2*_e),0,_e);break;case Le:Ye=new Uint16Array(H(2*_e),0,_e);break;case ut:Ye=new Int32Array(H(4*_e),0,_e);break;case nt:Ye=new Uint32Array(H(4*_e),0,_e);break;case De:Ye=new Float32Array(H(4*_e),0,_e);break;default:return null}return Ye.length!==_e?Ye.subarray(0,_e):Ye}function ke(be){Z(be.buffer)}return{alloc:H,free:Z,allocType:Ee,freeType:ke}}var we=He();we.zero=He();var qe=3408,st=3410,Ke=3411,ct=3412,yt=3413,qt=3414,Yt=3415,Qe=33901,At=33902,jt=3379,Te=3386,W=34921,ae=36347,R=36348,A=35661,k=35660,$=34930,fe=36349,Ie=34076,ze=34024,Qt=7936,fr=7937,ir=7938,Yr=35724,kr=34047,na=36063,Eu=34852,Ta=3553,xi=34067,Ep=34069,Li=33984,Au=6408,Hl=5126,ql=5121,Vl=36160,wy=36053,Oa=36064,_y=16384,Yl=function(I,H){var Z=1;H.ext_texture_filter_anisotropic&&(Z=I.getParameter(kr));var Ee=1,ke=1;H.webgl_draw_buffers&&(Ee=I.getParameter(Eu),ke=I.getParameter(na));var be=!!H.oes_texture_float;if(be){var _e=I.createTexture();I.bindTexture(Ta,_e),I.texImage2D(Ta,0,Au,1,1,0,Au,Hl,null);var Ye=I.createFramebuffer();if(I.bindFramebuffer(Vl,Ye),I.framebufferTexture2D(Vl,Oa,Ta,_e,0),I.bindTexture(Ta,null),I.checkFramebufferStatus(Vl)!==wy)be=!1;else{I.viewport(0,0,1,1),I.clearColor(1,0,0,1),I.clear(_y);var Xe=we.allocType(Hl,4);I.readPixels(0,0,1,1,Au,Hl,Xe),I.getError()?be=!1:(I.deleteFramebuffer(Ye),I.deleteTexture(_e),be=Xe[0]===1),we.freeType(Xe)}}var et=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),ft=!0;if(!et){var Rt=I.createTexture(),St=we.allocType(ql,36);I.activeTexture(Li),I.bindTexture(xi,Rt),I.texImage2D(Ep,0,Au,3,3,0,Au,ql,St),we.freeType(St),I.bindTexture(xi,null),I.deleteTexture(Rt),ft=!I.getError()}return{colorBits:[I.getParameter(st),I.getParameter(Ke),I.getParameter(ct),I.getParameter(yt)],depthBits:I.getParameter(qt),stencilBits:I.getParameter(Yt),subpixelBits:I.getParameter(qe),extensions:Object.keys(H).filter(function(it){return!!H[it]}),maxAnisotropic:Z,maxDrawbuffers:Ee,maxColorAttachments:ke,pointSizeDims:I.getParameter(Qe),lineWidthDims:I.getParameter(At),maxViewportDims:I.getParameter(Te),maxCombinedTextureUnits:I.getParameter(A),maxCubeMapSize:I.getParameter(Ie),maxRenderbufferSize:I.getParameter(ze),maxTextureUnits:I.getParameter($),maxTextureSize:I.getParameter(jt),maxAttributes:I.getParameter(W),maxVertexUniforms:I.getParameter(ae),maxVertexTextureUnits:I.getParameter(k),maxVaryingVectors:I.getParameter(R),maxFragmentUniforms:I.getParameter(fe),glsl:I.getParameter(Yr),renderer:I.getParameter(fr),vendor:I.getParameter(Qt),version:I.getParameter(ir),readFloat:be,npotTextureCube:ft}},rn=function(I){return I instanceof Uint8Array||I instanceof Uint16Array||I instanceof Uint32Array||I instanceof Int8Array||I instanceof Int16Array||I instanceof Int32Array||I instanceof Float32Array||I instanceof Float64Array||I instanceof Uint8ClampedArray};function ai(I){return!!I&&typeof I=="object"&&Array.isArray(I.shape)&&Array.isArray(I.stride)&&typeof I.offset=="number"&&I.shape.length===I.stride.length&&(Array.isArray(I.data)||rn(I.data))}var zn=function(I){return Object.keys(I).map(function(H){return I[H]})},ar={shape:Tp,flatten:wi};function Ap(I,H,Z){for(var Ee=0;Ee<H;++Ee)Z[Ee]=I[Ee]}function Di(I,H,Z,Ee){for(var ke=0,be=0;be<H;++be)for(var _e=I[be],Ye=0;Ye<Z;++Ye)Ee[ke++]=_e[Ye]}function co(I,H,Z,Ee,ke,be){for(var _e=be,Ye=0;Ye<H;++Ye)for(var Xe=I[Ye],et=0;et<Z;++et)for(var ft=Xe[et],Rt=0;Rt<Ee;++Rt)ke[_e++]=ft[Rt]}function Cp(I,H,Z,Ee,ke){for(var be=1,_e=Z+1;_e<H.length;++_e)be*=H[_e];var Ye=H[Z];if(H.length-Z===4){var Xe=H[Z+1],et=H[Z+2],ft=H[Z+3];for(_e=0;_e<Ye;++_e)co(I[_e],Xe,et,ft,Ee,ke),ke+=be}else for(_e=0;_e<Ye;++_e)Cp(I[_e],H,Z+1,Ee,ke),ke+=be}function wi(I,H,Z,Ee){var ke=1;if(H.length)for(var be=0;be<H.length;++be)ke*=H[be];else ke=0;var _e=Ee||we.allocType(Z,ke);switch(H.length){case 0:break;case 1:Ap(I,H[0],_e);break;case 2:Di(I,H[0],H[1],_e);break;case 3:co(I,H[0],H[1],H[2],_e,0);break;default:Cp(I,H,0,_e,0)}return _e}function Tp(I){for(var H=[],Z=I;Z.length;Z=Z[0])H.push(Z.length);return H}var Cu={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121},Sy=5120,Op=5122,Ey=5124,Mp=5121,Ay=5123,Tu=5125,Kf=5126,kp=5126,Ou={int8:Sy,int16:Op,int32:Ey,uint8:Mp,uint16:Ay,uint32:Tu,float:Kf,float32:kp},Xl=35048,Qf=35040,ia={dynamic:Xl,stream:Qf,static:35044},Vn=ar.flatten,Kl=ar.shape,Ql=35044,oi=35040,Mu=5121,ku=5126,Zr=[];Zr[5120]=1,Zr[5122]=2,Zr[5124]=4,Zr[5121]=1,Zr[5123]=2,Zr[5125]=4,Zr[5126]=4;function Ma(I){return Cu[Object.prototype.toString.call(I)]|0}function Zf(I,H){for(var Z=0;Z<H.length;++Z)I[Z]=H[Z]}function Jf(I,H,Z,Ee,ke,be,_e){for(var Ye=0,Xe=0;Xe<Z;++Xe)for(var et=0;et<Ee;++et)I[Ye++]=H[ke*Xe+be*et+_e]}function Rp(I,H,Z,Ee){var ke=0,be={};function _e(he){this.id=ke++,this.buffer=I.createBuffer(),this.type=he,this.usage=Ql,this.byteLength=0,this.dimension=1,this.dtype=Mu,this.persistentData=null,Z.profile&&(this.stats={size:0})}_e.prototype.bind=function(){I.bindBuffer(this.type,this.buffer)},_e.prototype.destroy=function(){St(this)};var Ye=[];function Xe(he,Ce){var Ve=Ye.pop();return Ve||(Ve=new _e(he)),Ve.bind(),Rt(Ve,Ce,oi,0,1,!1),Ve}function et(he){Ye.push(he)}function ft(he,Ce,Ve){he.byteLength=Ce.byteLength,I.bufferData(he.type,Ce,Ve)}function Rt(he,Ce,Ve,Ze,Ne,pt){var ot;if(he.usage=Ve,Array.isArray(Ce)){if(he.dtype=Ze||ku,Ce.length>0){var Pt;if(Array.isArray(Ce[0])){ot=Kl(Ce);for(var $e=1,Re=1;Re<ot.length;++Re)$e*=ot[Re];he.dimension=$e,Pt=Vn(Ce,ot,he.dtype),ft(he,Pt,Ve),pt?he.persistentData=Pt:we.freeType(Pt)}else if(typeof Ce[0]=="number"){he.dimension=Ne;var mt=we.allocType(he.dtype,Ce.length);Zf(mt,Ce),ft(he,mt,Ve),pt?he.persistentData=mt:we.freeType(mt)}else rn(Ce[0])&&(he.dimension=Ce[0].length,he.dtype=Ze||Ma(Ce[0])||ku,Pt=Vn(Ce,[Ce.length,Ce[0].length],he.dtype),ft(he,Pt,Ve),pt?he.persistentData=Pt:we.freeType(Pt))}}else if(rn(Ce))he.dtype=Ze||Ma(Ce),he.dimension=Ne,ft(he,Ce,Ve),pt&&(he.persistentData=new Uint8Array(new Uint8Array(Ce.buffer)));else if(ai(Ce)){ot=Ce.shape;var Ae=Ce.stride,ht=Ce.offset,Je=0,It=0,tr=0,bt=0;ot.length===1?(Je=ot[0],It=1,tr=Ae[0],bt=0):ot.length===2&&(Je=ot[0],It=ot[1],tr=Ae[0],bt=Ae[1]),he.dtype=Ze||Ma(Ce.data)||ku,he.dimension=It;var Bt=we.allocType(he.dtype,Je*It);Jf(Bt,Ce.data,Je,It,tr,bt,ht),ft(he,Bt,Ve),pt?he.persistentData=Bt:we.freeType(Bt)}else Ce instanceof ArrayBuffer&&(he.dtype=Mu,he.dimension=Ne,ft(he,Ce,Ve),pt&&(he.persistentData=new Uint8Array(new Uint8Array(Ce))))}function St(he){H.bufferCount--,Ee(he);var Ce=he.buffer;I.deleteBuffer(Ce),he.buffer=null,delete be[he.id]}function it(he,Ce,Ve,Ze){H.bufferCount++;var Ne=new _e(Ce);be[Ne.id]=Ne;function pt($e){var Re=Ql,mt=null,Ae=0,ht=0,Je=1;return Array.isArray($e)||rn($e)||ai($e)||$e instanceof ArrayBuffer?mt=$e:typeof $e=="number"?Ae=$e|0:$e&&("data"in $e&&(mt=$e.data),"usage"in $e&&(Re=ia[$e.usage]),"type"in $e&&(ht=Ou[$e.type]),"dimension"in $e&&(Je=$e.dimension|0),"length"in $e&&(Ae=$e.length|0)),Ne.bind(),mt?Rt(Ne,mt,Re,ht,Je,Ze):(Ae&&I.bufferData(Ne.type,Ae,Re),Ne.dtype=ht||Mu,Ne.usage=Re,Ne.dimension=Je,Ne.byteLength=Ae),Z.profile&&(Ne.stats.size=Ne.byteLength*Zr[Ne.dtype]),pt}function ot($e,Re){I.bufferSubData(Ne.type,Re,$e)}function Pt($e,Re){var mt=(Re||0)|0,Ae;if(Ne.bind(),rn($e)||$e instanceof ArrayBuffer)ot($e,mt);else if(Array.isArray($e)){if($e.length>0){if(typeof $e[0]=="number"){var ht=we.allocType(Ne.dtype,$e.length);Zf(ht,$e),ot(ht,mt),we.freeType(ht)}else if(Array.isArray($e[0])||rn($e[0])){Ae=Kl($e);var Je=Vn($e,Ae,Ne.dtype);ot(Je,mt),we.freeType(Je)}}}else if(ai($e)){Ae=$e.shape;var It=$e.stride,tr=0,bt=0,Bt=0,lt=0;Ae.length===1?(tr=Ae[0],bt=1,Bt=It[0],lt=0):Ae.length===2&&(tr=Ae[0],bt=Ae[1],Bt=It[0],lt=It[1]);var rr=Array.isArray($e.data)?Ne.dtype:Ma($e.data),lr=we.allocType(rr,tr*bt);Jf(lr,$e.data,tr,bt,Bt,lt,$e.offset),ot(lr,mt),we.freeType(lr)}return pt}return Ve||pt(he),pt._reglType="buffer",pt._buffer=Ne,pt.subdata=Pt,Z.profile&&(pt.stats=Ne.stats),pt.destroy=function(){St(Ne)},pt}function Ge(){zn(be).forEach(function(he){he.buffer=I.createBuffer(),I.bindBuffer(he.type,he.buffer),I.bufferData(he.type,he.persistentData||he.byteLength,he.usage)})}return Z.profile&&(H.getTotalBufferSize=function(){var he=0;return Object.keys(be).forEach(function(Ce){he+=be[Ce].stats.size}),he}),{create:it,createStream:Xe,destroyStream:et,clear:function(){zn(be).forEach(St),Ye.forEach(St)},getBuffer:function(he){return he&&he._buffer instanceof _e?he._buffer:null},restore:Ge,_initBuffer:Rt}}var ec=0,Pp=0,Ip=1,tc=1,rc=4,nc=4,nn={points:ec,point:Pp,lines:Ip,line:tc,triangles:rc,triangle:nc,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Fp=0,Zl=1,aa=4,ho=5120,ka=5121,ic=5122,Ra=5123,Jl=5124,oa=5125,po=34963,gr=35040,ac=35044;function es(I,H,Z,Ee){var ke={},be=0,_e={uint8:ka,uint16:Ra};H.oes_element_index_uint&&(_e.uint32=oa);function Ye(Ge){this.id=be++,ke[this.id]=this,this.buffer=Ge,this.primType=aa,this.vertCount=0,this.type=0}Ye.prototype.bind=function(){this.buffer.bind()};var Xe=[];function et(Ge){var he=Xe.pop();return he||(he=new Ye(Z.create(null,po,!0,!1)._buffer)),Rt(he,Ge,gr,-1,-1,0,0),he}function ft(Ge){Xe.push(Ge)}function Rt(Ge,he,Ce,Ve,Ze,Ne,pt){Ge.buffer.bind();var ot;if(he){var Pt=pt;!pt&&(!rn(he)||ai(he)&&!rn(he.data))&&(Pt=H.oes_element_index_uint?oa:Ra),Z._initBuffer(Ge.buffer,he,Ce,Pt,3)}else I.bufferData(po,Ne,Ce),Ge.buffer.dtype=ot||ka,Ge.buffer.usage=Ce,Ge.buffer.dimension=3,Ge.buffer.byteLength=Ne;if(ot=pt,!pt){switch(Ge.buffer.dtype){case ka:case ho:ot=ka;break;case Ra:case ic:ot=Ra;break;case oa:case Jl:ot=oa;break}Ge.buffer.dtype=ot}Ge.type=ot;var $e=Ze;$e<0&&($e=Ge.buffer.byteLength,ot===Ra?$e>>=1:ot===oa&&($e>>=2)),Ge.vertCount=$e;var Re=Ve;if(Ve<0){Re=aa;var mt=Ge.buffer.dimension;mt===1&&(Re=Fp),mt===2&&(Re=Zl),mt===3&&(Re=aa)}Ge.primType=Re}function St(Ge){Ee.elementsCount--,delete ke[Ge.id],Ge.buffer.destroy(),Ge.buffer=null}function it(Ge,he){var Ce=Z.create(null,po,!0),Ve=new Ye(Ce._buffer);Ee.elementsCount++;function Ze(Ne){if(!Ne)Ce(),Ve.primType=aa,Ve.vertCount=0,Ve.type=ka;else if(typeof Ne=="number")Ce(Ne),Ve.primType=aa,Ve.vertCount=Ne|0,Ve.type=ka;else{var pt=null,ot=ac,Pt=-1,$e=-1,Re=0,mt=0;Array.isArray(Ne)||rn(Ne)||ai(Ne)?pt=Ne:("data"in Ne&&(pt=Ne.data),"usage"in Ne&&(ot=ia[Ne.usage]),"primitive"in Ne&&(Pt=nn[Ne.primitive]),"count"in Ne&&($e=Ne.count|0),"type"in Ne&&(mt=_e[Ne.type]),"length"in Ne?Re=Ne.length|0:(Re=$e,mt===Ra||mt===ic?Re*=2:(mt===oa||mt===Jl)&&(Re*=4))),Rt(Ve,pt,ot,Pt,$e,Re,mt)}return Ze}return Ze(Ge),Ze._reglType="elements",Ze._elements=Ve,Ze.subdata=function(Ne,pt){return Ce.subdata(Ne,pt),Ze},Ze.destroy=function(){St(Ve)},Ze}return{create:it,createStream:et,destroyStream:ft,getElements:function(Ge){return typeof Ge=="function"&&Ge._elements instanceof Ye?Ge._elements:null},clear:function(){zn(ke).forEach(St)}}}var Np=new Float32Array(1),Cy=new Uint32Array(Np.buffer),ts=5123;function Ru(I){for(var H=we.allocType(ts,I.length),Z=0;Z<I.length;++Z)if(isNaN(I[Z]))H[Z]=65535;else if(I[Z]===1/0)H[Z]=31744;else if(I[Z]===-1/0)H[Z]=64512;else{Np[0]=I[Z];var Ee=Cy[0],ke=Ee>>>31<<15,be=(Ee<<1>>>24)-127,_e=Ee>>13&(1<<10)-1;if(be<-24)H[Z]=ke;else if(be<-14){var Ye=-14-be;H[Z]=ke+(_e+(1<<10)>>Ye)}else be>15?H[Z]=ke+31744:H[Z]=ke+(be+15<<10)+_e}return H}function ui(I){return Array.isArray(I)||rn(I)}var rs=34467,li=3553,vo=34067,mo=34069,ua=6408,ns=6406,$i=6407,Bi=6409,Pu=6410,Lp=32854,go=32855,is=36194,oc=32819,Dp=32820,yo=33635,Pa=34042,la=6402,Iu=34041,Fu=35904,Ia=35906,Fa=36193,uc=33776,as=33777,Nu=33778,lc=33779,$p=35986,sc=35987,Bp=34798,fc=35840,zp=35841,cc=35842,Up=35843,Na=36196,si=5121,hc=5123,dc=5125,Lu=5126,jp=10242,Du=10243,Ty=10497,bo=33071,os=33648,pc=10240,us=10241,La=9728,$u=9729,ls=9984,ss=9985,Gp=9986,xo=9987,Oy=33170,fs=4352,My=4353,Wp=4354,Bu=34046,ky=3317,vc=37440,Hp=37441,zi=37443,mc=37444,Da=33984,gc=[ls,Gp,ss,xo],_i=[0,Bi,Pu,$i,ua],Pn={};Pn[Bi]=Pn[ns]=Pn[la]=1,Pn[Iu]=Pn[Pu]=2,Pn[$i]=Pn[Fu]=3,Pn[ua]=Pn[Ia]=4;function $a(I){return"[object "+I+"]"}var qp=$a("HTMLCanvasElement"),Vp=$a("OffscreenCanvas"),Yp=$a("CanvasRenderingContext2D"),yc=$a("ImageBitmap"),bc=$a("HTMLImageElement"),Xp=$a("HTMLVideoElement"),Ry=Object.keys(Cu).concat([qp,Vp,Yp,yc,bc,Xp]),wo=[];wo[si]=1,wo[Lu]=4,wo[Fa]=2,wo[hc]=2,wo[dc]=4;var Jr=[];Jr[Lp]=2,Jr[go]=2,Jr[is]=2,Jr[Iu]=4,Jr[uc]=.5,Jr[as]=.5,Jr[Nu]=1,Jr[lc]=1,Jr[$p]=.5,Jr[sc]=1,Jr[Bp]=1,Jr[fc]=.5,Jr[zp]=.25,Jr[cc]=.5,Jr[Up]=.25,Jr[Na]=.5;function Kp(I){return Array.isArray(I)&&(I.length===0||typeof I[0]=="number")}function Qp(I){if(!Array.isArray(I))return!1;var H=I.length;return!(H===0||!ui(I[0]))}function Ba(I){return Object.prototype.toString.call(I)}function Zp(I){return Ba(I)===qp}function Jp(I){return Ba(I)===Vp}function Py(I){return Ba(I)===Yp}function Iy(I){return Ba(I)===yc}function Fy(I){return Ba(I)===bc}function Ny(I){return Ba(I)===Xp}function cs(I){if(!I)return!1;var H=Ba(I);return Ry.indexOf(H)>=0?!0:Kp(I)||Qp(I)||ai(I)}function xc(I){return Cu[Object.prototype.toString.call(I)]|0}function ev(I,H){var Z=H.length;switch(I.type){case si:case hc:case dc:case Lu:var Ee=we.allocType(I.type,Z);Ee.set(H),I.data=Ee;break;case Fa:I.data=Ru(H);break}}function wc(I,H){return we.allocType(I.type===Fa?Lu:I.type,H)}function tv(I,H){I.type===Fa?(I.data=Ru(H),we.freeType(H)):I.data=H}function Ly(I,H,Z,Ee,ke,be){for(var _e=I.width,Ye=I.height,Xe=I.channels,et=_e*Ye*Xe,ft=wc(I,et),Rt=0,St=0;St<Ye;++St)for(var it=0;it<_e;++it)for(var Ge=0;Ge<Xe;++Ge)ft[Rt++]=H[Z*it+Ee*St+ke*Ge+be];tv(I,ft)}function Ui(I,H,Z,Ee,ke,be){var _e;if(typeof Jr[I]<"u"?_e=Jr[I]:_e=Pn[I]*wo[H],be&&(_e*=6),ke){for(var Ye=0,Xe=Z;Xe>=1;)Ye+=_e*Xe*Xe,Xe/=2;return Ye}else return _e*Z*Ee}function Dy(I,H,Z,Ee,ke,be,_e){var Ye={"don't care":fs,"dont care":fs,nice:Wp,fast:My},Xe={repeat:Ty,clamp:bo,mirror:os},et={nearest:La,linear:$u},ft=r({mipmap:xo,"nearest mipmap nearest":ls,"linear mipmap nearest":ss,"nearest mipmap linear":Gp,"linear mipmap linear":xo},et),Rt={none:0,browser:mc},St={uint8:si,rgba4:oc,rgb565:yo,"rgb5 a1":Dp},it={alpha:ns,luminance:Bi,"luminance alpha":Pu,rgb:$i,rgba:ua,rgba4:Lp,"rgb5 a1":go,rgb565:is},Ge={};H.ext_srgb&&(it.srgb=Fu,it.srgba=Ia),H.oes_texture_float&&(St.float32=St.float=Lu),H.oes_texture_half_float&&(St.float16=St["half float"]=Fa),H.webgl_depth_texture&&(r(it,{depth:la,"depth stencil":Iu}),r(St,{uint16:hc,uint32:dc,"depth stencil":Pa})),H.webgl_compressed_texture_s3tc&&r(Ge,{"rgb s3tc dxt1":uc,"rgba s3tc dxt1":as,"rgba s3tc dxt3":Nu,"rgba s3tc dxt5":lc}),H.webgl_compressed_texture_atc&&r(Ge,{"rgb atc":$p,"rgba atc explicit alpha":sc,"rgba atc interpolated alpha":Bp}),H.webgl_compressed_texture_pvrtc&&r(Ge,{"rgb pvrtc 4bppv1":fc,"rgb pvrtc 2bppv1":zp,"rgba pvrtc 4bppv1":cc,"rgba pvrtc 2bppv1":Up}),H.webgl_compressed_texture_etc1&&(Ge["rgb etc1"]=Na);var he=Array.prototype.slice.call(I.getParameter(rs));Object.keys(Ge).forEach(function(Y){var xe=Ge[Y];he.indexOf(xe)>=0&&(it[Y]=xe)});var Ce=Object.keys(it);Z.textureFormats=Ce;var Ve=[];Object.keys(it).forEach(function(Y){var xe=it[Y];Ve[xe]=Y});var Ze=[];Object.keys(St).forEach(function(Y){var xe=St[Y];Ze[xe]=Y});var Ne=[];Object.keys(et).forEach(function(Y){var xe=et[Y];Ne[xe]=Y});var pt=[];Object.keys(ft).forEach(function(Y){var xe=ft[Y];pt[xe]=Y});var ot=[];Object.keys(Xe).forEach(function(Y){var xe=Xe[Y];ot[xe]=Y});var Pt=Ce.reduce(function(Y,xe){var ye=it[xe];return ye===Bi||ye===ns||ye===Bi||ye===Pu||ye===la||ye===Iu||H.ext_srgb&&(ye===Fu||ye===Ia)?Y[ye]=ye:ye===go||xe.indexOf("rgba")>=0?Y[ye]=ua:Y[ye]=$i,Y},{});function $e(){this.internalformat=ua,this.format=ua,this.type=si,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=mc,this.width=0,this.height=0,this.channels=0}function Re(Y,xe){Y.internalformat=xe.internalformat,Y.format=xe.format,Y.type=xe.type,Y.compressed=xe.compressed,Y.premultiplyAlpha=xe.premultiplyAlpha,Y.flipY=xe.flipY,Y.unpackAlignment=xe.unpackAlignment,Y.colorSpace=xe.colorSpace,Y.width=xe.width,Y.height=xe.height,Y.channels=xe.channels}function mt(Y,xe){if(!(typeof xe!="object"||!xe)){if("premultiplyAlpha"in xe&&(Y.premultiplyAlpha=xe.premultiplyAlpha),"flipY"in xe&&(Y.flipY=xe.flipY),"alignment"in xe&&(Y.unpackAlignment=xe.alignment),"colorSpace"in xe&&(Y.colorSpace=Rt[xe.colorSpace]),"type"in xe){var ye=xe.type;Y.type=St[ye]}var Ct=Y.width,nr=Y.height,Pr=Y.channels,Tt=!1;"shape"in xe?(Ct=xe.shape[0],nr=xe.shape[1],xe.shape.length===3&&(Pr=xe.shape[2],Tt=!0)):("radius"in xe&&(Ct=nr=xe.radius),"width"in xe&&(Ct=xe.width),"height"in xe&&(nr=xe.height),"channels"in xe&&(Pr=xe.channels,Tt=!0)),Y.width=Ct|0,Y.height=nr|0,Y.channels=Pr|0;var U=!1;if("format"in xe){var q=xe.format,ee=Y.internalformat=it[q];Y.format=Pt[ee],q in St&&("type"in xe||(Y.type=St[q])),q in Ge&&(Y.compressed=!0),U=!0}!Tt&&U?Y.channels=Pn[Y.format]:Tt&&!U&&Y.channels!==_i[Y.format]&&(Y.format=Y.internalformat=_i[Y.channels])}}function Ae(Y){I.pixelStorei(vc,Y.flipY),I.pixelStorei(Hp,Y.premultiplyAlpha),I.pixelStorei(zi,Y.colorSpace),I.pixelStorei(ky,Y.unpackAlignment)}function ht(){$e.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Je(Y,xe){var ye=null;if(cs(xe)?ye=xe:xe&&(mt(Y,xe),"x"in xe&&(Y.xOffset=xe.x|0),"y"in xe&&(Y.yOffset=xe.y|0),cs(xe.data)&&(ye=xe.data)),xe.copy){var Ct=ke.viewportWidth,nr=ke.viewportHeight;Y.width=Y.width||Ct-Y.xOffset,Y.height=Y.height||nr-Y.yOffset,Y.needsCopy=!0}else if(!ye)Y.width=Y.width||1,Y.height=Y.height||1,Y.channels=Y.channels||4;else if(rn(ye))Y.channels=Y.channels||4,Y.data=ye,!("type"in xe)&&Y.type===si&&(Y.type=xc(ye));else if(Kp(ye))Y.channels=Y.channels||4,ev(Y,ye),Y.alignment=1,Y.needsFree=!0;else if(ai(ye)){var Pr=ye.data;!Array.isArray(Pr)&&Y.type===si&&(Y.type=xc(Pr));var Tt=ye.shape,U=ye.stride,q,ee,Se,pe,de,ce;Tt.length===3?(Se=Tt[2],ce=U[2]):(Se=1,ce=1),q=Tt[0],ee=Tt[1],pe=U[0],de=U[1],Y.alignment=1,Y.width=q,Y.height=ee,Y.channels=Se,Y.format=Y.internalformat=_i[Se],Y.needsFree=!0,Ly(Y,Pr,pe,de,ce,ye.offset)}else if(Zp(ye)||Jp(ye)||Py(ye))Zp(ye)||Jp(ye)?Y.element=ye:Y.element=ye.canvas,Y.width=Y.element.width,Y.height=Y.element.height,Y.channels=4;else if(Iy(ye))Y.element=ye,Y.width=ye.width,Y.height=ye.height,Y.channels=4;else if(Fy(ye))Y.element=ye,Y.width=ye.naturalWidth,Y.height=ye.naturalHeight,Y.channels=4;else if(Ny(ye))Y.element=ye,Y.width=ye.videoWidth,Y.height=ye.videoHeight,Y.channels=4;else if(Qp(ye)){var se=Y.width||ye[0].length,Q=Y.height||ye.length,ne=Y.channels;ui(ye[0][0])?ne=ne||ye[0][0].length:ne=ne||1;for(var K=ar.shape(ye),ve=1,Oe=0;Oe<K.length;++Oe)ve*=K[Oe];var Be=wc(Y,ve);ar.flatten(ye,K,"",Be),tv(Y,Be),Y.alignment=1,Y.width=se,Y.height=Q,Y.channels=ne,Y.format=Y.internalformat=_i[ne],Y.needsFree=!0}Y.type===Lu||Y.type}function It(Y,xe,ye){var Ct=Y.element,nr=Y.data,Pr=Y.internalformat,Tt=Y.format,U=Y.type,q=Y.width,ee=Y.height;Ae(Y),Ct?I.texImage2D(xe,ye,Tt,Tt,U,Ct):Y.compressed?I.compressedTexImage2D(xe,ye,Pr,q,ee,0,nr):Y.needsCopy?(Ee(),I.copyTexImage2D(xe,ye,Tt,Y.xOffset,Y.yOffset,q,ee,0)):I.texImage2D(xe,ye,Tt,q,ee,0,Tt,U,nr||null)}function tr(Y,xe,ye,Ct,nr){var Pr=Y.element,Tt=Y.data,U=Y.internalformat,q=Y.format,ee=Y.type,Se=Y.width,pe=Y.height;Ae(Y),Pr?I.texSubImage2D(xe,nr,ye,Ct,q,ee,Pr):Y.compressed?I.compressedTexSubImage2D(xe,nr,ye,Ct,U,Se,pe,Tt):Y.needsCopy?(Ee(),I.copyTexSubImage2D(xe,nr,ye,Ct,Y.xOffset,Y.yOffset,Se,pe)):I.texSubImage2D(xe,nr,ye,Ct,Se,pe,q,ee,Tt)}var bt=[];function Bt(){return bt.pop()||new ht}function lt(Y){Y.needsFree&&we.freeType(Y.data),ht.call(Y),bt.push(Y)}function rr(){$e.call(this),this.genMipmaps=!1,this.mipmapHint=fs,this.mipmask=0,this.images=Array(16)}function lr(Y,xe,ye){var Ct=Y.images[0]=Bt();Y.mipmask=1,Ct.width=Y.width=xe,Ct.height=Y.height=ye,Ct.channels=Y.channels=4}function hr(Y,xe){var ye=null;if(cs(xe))ye=Y.images[0]=Bt(),Re(ye,Y),Je(ye,xe),Y.mipmask=1;else if(mt(Y,xe),Array.isArray(xe.mipmap))for(var Ct=xe.mipmap,nr=0;nr<Ct.length;++nr)ye=Y.images[nr]=Bt(),Re(ye,Y),ye.width>>=nr,ye.height>>=nr,Je(ye,Ct[nr]),Y.mipmask|=1<<nr;else ye=Y.images[0]=Bt(),Re(ye,Y),Je(ye,xe),Y.mipmask=1;Re(Y,Y.images[0]),Y.compressed&&(Y.internalformat===uc||Y.internalformat===as||Y.internalformat===Nu||Y.internalformat)}function un(Y,xe){for(var ye=Y.images,Ct=0;Ct<ye.length;++Ct){if(!ye[Ct])return;It(ye[Ct],xe,Ct)}}var sr=[];function Xn(){var Y=sr.pop()||new rr;$e.call(Y),Y.mipmask=0;for(var xe=0;xe<16;++xe)Y.images[xe]=null;return Y}function Cr(Y){for(var xe=Y.images,ye=0;ye<xe.length;++ye)xe[ye]&&lt(xe[ye]),xe[ye]=null;sr.push(Y)}function An(){this.minFilter=La,this.magFilter=La,this.wrapS=bo,this.wrapT=bo,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=fs}function Kn(Y,xe){if("min"in xe){var ye=xe.min;Y.minFilter=ft[ye],gc.indexOf(Y.minFilter)>=0&&!("faces"in xe)&&(Y.genMipmaps=!0)}if("mag"in xe){var Ct=xe.mag;Y.magFilter=et[Ct]}var nr=Y.wrapS,Pr=Y.wrapT;if("wrap"in xe){var Tt=xe.wrap;typeof Tt=="string"?nr=Pr=Xe[Tt]:Array.isArray(Tt)&&(nr=Xe[Tt[0]],Pr=Xe[Tt[1]])}else{if("wrapS"in xe){var U=xe.wrapS;nr=Xe[U]}if("wrapT"in xe){var q=xe.wrapT;Pr=Xe[q]}}if(Y.wrapS=nr,Y.wrapT=Pr,"anisotropic"in xe&&(xe.anisotropic,Y.anisotropic=xe.anisotropic),"mipmap"in xe){var ee=!1;switch(typeof xe.mipmap){case"string":Y.mipmapHint=Ye[xe.mipmap],Y.genMipmaps=!0,ee=!0;break;case"boolean":ee=Y.genMipmaps=xe.mipmap;break;case"object":Y.genMipmaps=!1,ee=!0;break}ee&&!("min"in xe)&&(Y.minFilter=ls)}}function Fn(Y,xe){I.texParameteri(xe,us,Y.minFilter),I.texParameteri(xe,pc,Y.magFilter),I.texParameteri(xe,jp,Y.wrapS),I.texParameteri(xe,Du,Y.wrapT),H.ext_texture_filter_anisotropic&&I.texParameteri(xe,Bu,Y.anisotropic),Y.genMipmaps&&(I.hint(Oy,Y.mipmapHint),I.generateMipmap(xe))}var Hi=0,ln={},sn=Z.maxTextureUnits,Kt=Array(sn).map(function(){return null});function di(Y){$e.call(this),this.mipmask=0,this.internalformat=ua,this.id=Hi++,this.refCount=1,this.target=Y,this.texture=I.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new An,_e.profile&&(this.stats={size:0})}function _r(Y){I.activeTexture(Da),I.bindTexture(Y.target,Y.texture)}function fn(){var Y=Kt[0];Y?I.bindTexture(Y.target,Y.texture):I.bindTexture(li,null)}function Un(Y){var xe=Y.texture,ye=Y.unit,Ct=Y.target;ye>=0&&(I.activeTexture(Da+ye),I.bindTexture(Ct,null),Kt[ye]=null),I.deleteTexture(xe),Y.texture=null,Y.params=null,Y.pixels=null,Y.refCount=0,delete ln[Y.id],be.textureCount--}r(di.prototype,{bind:function(){var Y=this;Y.bindCount+=1;var xe=Y.unit;if(xe<0){for(var ye=0;ye<sn;++ye){var Ct=Kt[ye];if(Ct){if(Ct.bindCount>0)continue;Ct.unit=-1}Kt[ye]=Y,xe=ye;break}_e.profile&&be.maxTextureUnits<xe+1&&(be.maxTextureUnits=xe+1),Y.unit=xe,I.activeTexture(Da+xe),I.bindTexture(Y.target,Y.texture)}return xe},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&Un(this)}});function jn(Y,xe){var ye=new di(li);ln[ye.id]=ye,be.textureCount++;function Ct(Tt,U){var q=ye.texInfo;An.call(q);var ee=Xn();return typeof Tt=="number"?typeof U=="number"?lr(ee,Tt|0,U|0):lr(ee,Tt|0,Tt|0):Tt?(Kn(q,Tt),hr(ee,Tt)):lr(ee,1,1),q.genMipmaps&&(ee.mipmask=(ee.width<<1)-1),ye.mipmask=ee.mipmask,Re(ye,ee),ye.internalformat=ee.internalformat,Ct.width=ee.width,Ct.height=ee.height,_r(ye),un(ee,li),Fn(q,li),fn(),Cr(ee),_e.profile&&(ye.stats.size=Ui(ye.internalformat,ye.type,ee.width,ee.height,q.genMipmaps,!1)),Ct.format=Ve[ye.internalformat],Ct.type=Ze[ye.type],Ct.mag=Ne[q.magFilter],Ct.min=pt[q.minFilter],Ct.wrapS=ot[q.wrapS],Ct.wrapT=ot[q.wrapT],Ct}function nr(Tt,U,q,ee){var Se=U|0,pe=q|0,de=ee|0,ce=Bt();return Re(ce,ye),ce.width=0,ce.height=0,Je(ce,Tt),ce.width=ce.width||(ye.width>>de)-Se,ce.height=ce.height||(ye.height>>de)-pe,_r(ye),tr(ce,li,Se,pe,de),fn(),lt(ce),Ct}function Pr(Tt,U){var q=Tt|0,ee=U|0||q;if(q===ye.width&&ee===ye.height)return Ct;Ct.width=ye.width=q,Ct.height=ye.height=ee,_r(ye);for(var Se=0;ye.mipmask>>Se;++Se){var pe=q>>Se,de=ee>>Se;if(!pe||!de)break;I.texImage2D(li,Se,ye.format,pe,de,0,ye.format,ye.type,null)}return fn(),_e.profile&&(ye.stats.size=Ui(ye.internalformat,ye.type,q,ee,!1,!1)),Ct}return Ct(Y,xe),Ct.subimage=nr,Ct.resize=Pr,Ct._reglType="texture2d",Ct._texture=ye,_e.profile&&(Ct.stats=ye.stats),Ct.destroy=function(){ye.decRef()},Ct}function Zt(Y,xe,ye,Ct,nr,Pr){var Tt=new di(vo);ln[Tt.id]=Tt,be.cubeCount++;var U=new Array(6);function q(pe,de,ce,se,Q,ne){var K,ve=Tt.texInfo;for(An.call(ve),K=0;K<6;++K)U[K]=Xn();if(typeof pe=="number"||!pe){var Oe=pe|0||1;for(K=0;K<6;++K)lr(U[K],Oe,Oe)}else if(typeof pe=="object")if(de)hr(U[0],pe),hr(U[1],de),hr(U[2],ce),hr(U[3],se),hr(U[4],Q),hr(U[5],ne);else if(Kn(ve,pe),mt(Tt,pe),"faces"in pe){var Be=pe.faces;for(K=0;K<6;++K)Re(U[K],Tt),hr(U[K],Be[K])}else for(K=0;K<6;++K)hr(U[K],pe);for(Re(Tt,U[0]),ve.genMipmaps?Tt.mipmask=(U[0].width<<1)-1:Tt.mipmask=U[0].mipmask,Tt.internalformat=U[0].internalformat,q.width=U[0].width,q.height=U[0].height,_r(Tt),K=0;K<6;++K)un(U[K],mo+K);for(Fn(ve,vo),fn(),_e.profile&&(Tt.stats.size=Ui(Tt.internalformat,Tt.type,q.width,q.height,ve.genMipmaps,!0)),q.format=Ve[Tt.internalformat],q.type=Ze[Tt.type],q.mag=Ne[ve.magFilter],q.min=pt[ve.minFilter],q.wrapS=ot[ve.wrapS],q.wrapT=ot[ve.wrapT],K=0;K<6;++K)Cr(U[K]);return q}function ee(pe,de,ce,se,Q){var ne=ce|0,K=se|0,ve=Q|0,Oe=Bt();return Re(Oe,Tt),Oe.width=0,Oe.height=0,Je(Oe,de),Oe.width=Oe.width||(Tt.width>>ve)-ne,Oe.height=Oe.height||(Tt.height>>ve)-K,_r(Tt),tr(Oe,mo+pe,ne,K,ve),fn(),lt(Oe),q}function Se(pe){var de=pe|0;if(de!==Tt.width){q.width=Tt.width=de,q.height=Tt.height=de,_r(Tt);for(var ce=0;ce<6;++ce)for(var se=0;Tt.mipmask>>se;++se)I.texImage2D(mo+ce,se,Tt.format,de>>se,de>>se,0,Tt.format,Tt.type,null);return fn(),_e.profile&&(Tt.stats.size=Ui(Tt.internalformat,Tt.type,q.width,q.height,!1,!0)),q}}return q(Y,xe,ye,Ct,nr,Pr),q.subimage=ee,q.resize=Se,q._reglType="textureCube",q._texture=Tt,_e.profile&&(q.stats=Tt.stats),q.destroy=function(){Tt.decRef()},q}function cr(){for(var Y=0;Y<sn;++Y)I.activeTexture(Da+Y),I.bindTexture(li,null),Kt[Y]=null;zn(ln).forEach(Un),be.cubeCount=0,be.textureCount=0}_e.profile&&(be.getTotalTextureSize=function(){var Y=0;return Object.keys(ln).forEach(function(xe){Y+=ln[xe].stats.size}),Y});function Or(){for(var Y=0;Y<sn;++Y){var xe=Kt[Y];xe&&(xe.bindCount=0,xe.unit=-1,Kt[Y]=null)}zn(ln).forEach(function(ye){ye.texture=I.createTexture(),I.bindTexture(ye.target,ye.texture);for(var Ct=0;Ct<32;++Ct)if(ye.mipmask&1<<Ct)if(ye.target===li)I.texImage2D(li,Ct,ye.internalformat,ye.width>>Ct,ye.height>>Ct,0,ye.internalformat,ye.type,null);else for(var nr=0;nr<6;++nr)I.texImage2D(mo+nr,Ct,ye.internalformat,ye.width>>Ct,ye.height>>Ct,0,ye.internalformat,ye.type,null);Fn(ye.texInfo,ye.target)})}function cn(){for(var Y=0;Y<sn;++Y){var xe=Kt[Y];xe&&(xe.bindCount=0,xe.unit=-1,Kt[Y]=null),I.activeTexture(Da+Y),I.bindTexture(li,null),I.bindTexture(vo,null)}}return{create2D:jn,createCube:Zt,clear:cr,getTexture:function(Y){return null},restore:Or,refresh:cn}}var sa=36161,hs=32854,rv=32855,_c=36194,nv=33189,iv=36168,av=34041,Sc=35907,ov=34836,uv=34842,lv=34843,fi=[];fi[hs]=2,fi[rv]=2,fi[_c]=2,fi[nv]=2,fi[iv]=1,fi[av]=4,fi[Sc]=4,fi[ov]=16,fi[uv]=8,fi[lv]=6;function sv(I,H,Z){return fi[I]*H*Z}var fv=function(I,H,Z,Ee,ke){var be={rgba4:hs,rgb565:_c,"rgb5 a1":rv,depth:nv,stencil:iv,"depth stencil":av};H.ext_srgb&&(be.srgba=Sc),H.ext_color_buffer_half_float&&(be.rgba16f=uv,be.rgb16f=lv),H.webgl_color_buffer_float&&(be.rgba32f=ov);var _e=[];Object.keys(be).forEach(function(it){var Ge=be[it];_e[Ge]=it});var Ye=0,Xe={};function et(it){this.id=Ye++,this.refCount=1,this.renderbuffer=it,this.format=hs,this.width=0,this.height=0,ke.profile&&(this.stats={size:0})}et.prototype.decRef=function(){--this.refCount<=0&&ft(this)};function ft(it){var Ge=it.renderbuffer;I.bindRenderbuffer(sa,null),I.deleteRenderbuffer(Ge),it.renderbuffer=null,it.refCount=0,delete Xe[it.id],Ee.renderbufferCount--}function Rt(it,Ge){var he=new et(I.createRenderbuffer());Xe[he.id]=he,Ee.renderbufferCount++;function Ce(Ze,Ne){var pt=0,ot=0,Pt=hs;if(typeof Ze=="object"&&Ze){var $e=Ze;if("shape"in $e){var Re=$e.shape;pt=Re[0]|0,ot=Re[1]|0}else"radius"in $e&&(pt=ot=$e.radius|0),"width"in $e&&(pt=$e.width|0),"height"in $e&&(ot=$e.height|0);"format"in $e&&(Pt=be[$e.format])}else typeof Ze=="number"?(pt=Ze|0,typeof Ne=="number"?ot=Ne|0:ot=pt):Ze||(pt=ot=1);if(!(pt===he.width&&ot===he.height&&Pt===he.format))return Ce.width=he.width=pt,Ce.height=he.height=ot,he.format=Pt,I.bindRenderbuffer(sa,he.renderbuffer),I.renderbufferStorage(sa,Pt,pt,ot),ke.profile&&(he.stats.size=sv(he.format,he.width,he.height)),Ce.format=_e[he.format],Ce}function Ve(Ze,Ne){var pt=Ze|0,ot=Ne|0||pt;return pt===he.width&&ot===he.height||(Ce.width=he.width=pt,Ce.height=he.height=ot,I.bindRenderbuffer(sa,he.renderbuffer),I.renderbufferStorage(sa,he.format,pt,ot),ke.profile&&(he.stats.size=sv(he.format,he.width,he.height))),Ce}return Ce(it,Ge),Ce.resize=Ve,Ce._reglType="renderbuffer",Ce._renderbuffer=he,ke.profile&&(Ce.stats=he.stats),Ce.destroy=function(){he.decRef()},Ce}ke.profile&&(Ee.getTotalRenderbufferSize=function(){var it=0;return Object.keys(Xe).forEach(function(Ge){it+=Xe[Ge].stats.size}),it});function St(){zn(Xe).forEach(function(it){it.renderbuffer=I.createRenderbuffer(),I.bindRenderbuffer(sa,it.renderbuffer),I.renderbufferStorage(sa,it.format,it.width,it.height)}),I.bindRenderbuffer(sa,null)}return{create:Rt,clear:function(){zn(Xe).forEach(ft)},restore:St}},ji=36160,Ec=36161,_o=3553,So=34069,Eo=36064,ci=36096,cv=36128,hv=33306,$y=36053,By=36193,dv=5121,zy=5126,Uy=6407,jy=6408,Ac=[];Ac[jy]=4,Ac[Uy]=3;var ds=[];ds[dv]=1,ds[zy]=4,ds[By]=2;function Cc(I,H,Z,Ee,ke,be){var _e={cur:null,next:null,dirty:!1,setFBO:null},Ye=["rgba"],Xe=["rgba4","rgb565","rgb5 a1"];H.ext_srgb&&Xe.push("srgba"),H.ext_color_buffer_half_float&&Xe.push("rgba16f","rgb16f"),H.webgl_color_buffer_float&&Xe.push("rgba32f"),H.oes_texture_half_float,H.oes_texture_float;function et(Ae,ht,Je){this.target=Ae,this.texture=ht,this.renderbuffer=Je;var It=0,tr=0;ht?(It=ht.width,tr=ht.height):Je&&(It=Je.width,tr=Je.height),this.width=It,this.height=tr}function ft(Ae){Ae&&(Ae.texture&&Ae.texture._texture.decRef(),Ae.renderbuffer&&Ae.renderbuffer._renderbuffer.decRef())}function Rt(Ae,ht,Je){if(Ae)if(Ae.texture){var It=Ae.texture._texture;Math.max(1,It.width),Math.max(1,It.height),It.refCount+=1}else{var tr=Ae.renderbuffer._renderbuffer;tr.refCount+=1}}function St(Ae,ht){ht&&(ht.texture?I.framebufferTexture2D(ji,Ae,ht.target,ht.texture._texture.texture,0):I.framebufferRenderbuffer(ji,Ae,Ec,ht.renderbuffer._renderbuffer.renderbuffer))}function it(Ae){var ht=_o,Je=null,It=null,tr=Ae;typeof Ae=="object"&&(tr=Ae.data,"target"in Ae&&(ht=Ae.target|0));var bt=tr._reglType;return bt==="texture2d"||bt==="textureCube"?Je=tr:bt==="renderbuffer"&&(It=tr,ht=Ec),new et(ht,Je,It)}function Ge(Ae,ht,Je,It,tr){if(Je){var bt=Ee.create2D({width:Ae,height:ht,format:It,type:tr});return bt._texture.refCount=0,new et(_o,bt,null)}else{var Bt=ke.create({width:Ae,height:ht,format:It});return Bt._renderbuffer.refCount=0,new et(Ec,null,Bt)}}function he(Ae){return Ae&&(Ae.texture||Ae.renderbuffer)}function Ce(Ae,ht,Je){Ae&&(Ae.texture?Ae.texture.resize(ht,Je):Ae.renderbuffer&&Ae.renderbuffer.resize(ht,Je),Ae.width=ht,Ae.height=Je)}var Ve=0,Ze={};function Ne(){this.id=Ve++,Ze[this.id]=this,this.framebuffer=I.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function pt(Ae){Ae.colorAttachments.forEach(ft),ft(Ae.depthAttachment),ft(Ae.stencilAttachment),ft(Ae.depthStencilAttachment)}function ot(Ae){var ht=Ae.framebuffer;I.deleteFramebuffer(ht),Ae.framebuffer=null,be.framebufferCount--,delete Ze[Ae.id]}function Pt(Ae){var ht;I.bindFramebuffer(ji,Ae.framebuffer);var Je=Ae.colorAttachments;for(ht=0;ht<Je.length;++ht)St(Eo+ht,Je[ht]);for(ht=Je.length;ht<Z.maxColorAttachments;++ht)I.framebufferTexture2D(ji,Eo+ht,_o,null,0);I.framebufferTexture2D(ji,hv,_o,null,0),I.framebufferTexture2D(ji,ci,_o,null,0),I.framebufferTexture2D(ji,cv,_o,null,0),St(ci,Ae.depthAttachment),St(cv,Ae.stencilAttachment),St(hv,Ae.depthStencilAttachment);var It=I.checkFramebufferStatus(ji);I.isContextLost(),I.bindFramebuffer(ji,_e.next?_e.next.framebuffer:null),_e.cur=_e.next,I.getError()}function $e(Ae,ht){var Je=new Ne;be.framebufferCount++;function It(bt,Bt){var lt,rr=0,lr=0,hr=!0,un=!0,sr=null,Xn=!0,Cr="rgba",An="uint8",Kn=1,Fn=null,Hi=null,ln=null,sn=!1;if(typeof bt=="number")rr=bt|0,lr=Bt|0||rr;else if(!bt)rr=lr=1;else{var Kt=bt;if("shape"in Kt){var di=Kt.shape;rr=di[0],lr=di[1]}else"radius"in Kt&&(rr=lr=Kt.radius),"width"in Kt&&(rr=Kt.width),"height"in Kt&&(lr=Kt.height);("color"in Kt||"colors"in Kt)&&(sr=Kt.color||Kt.colors),sr||("colorCount"in Kt&&(Kn=Kt.colorCount|0),"colorTexture"in Kt&&(Xn=!!Kt.colorTexture,Cr="rgba4"),"colorType"in Kt&&(An=Kt.colorType,Xn||(An==="half float"||An==="float16"?Cr="rgba16f":(An==="float"||An==="float32")&&(Cr="rgba32f"))),"colorFormat"in Kt&&(Cr=Kt.colorFormat,Ye.indexOf(Cr)>=0?Xn=!0:Xe.indexOf(Cr)>=0&&(Xn=!1))),("depthTexture"in Kt||"depthStencilTexture"in Kt)&&(sn=!!(Kt.depthTexture||Kt.depthStencilTexture)),"depth"in Kt&&(typeof Kt.depth=="boolean"?hr=Kt.depth:(Fn=Kt.depth,un=!1)),"stencil"in Kt&&(typeof Kt.stencil=="boolean"?un=Kt.stencil:(Hi=Kt.stencil,hr=!1)),"depthStencil"in Kt&&(typeof Kt.depthStencil=="boolean"?hr=un=Kt.depthStencil:(ln=Kt.depthStencil,hr=!1,un=!1))}var _r=null,fn=null,Un=null,jn=null;if(Array.isArray(sr))_r=sr.map(it);else if(sr)_r=[it(sr)];else for(_r=new Array(Kn),lt=0;lt<Kn;++lt)_r[lt]=Ge(rr,lr,Xn,Cr,An);for(rr=rr||_r[0].width,lr=lr||_r[0].height,Fn?fn=it(Fn):hr&&!un&&(fn=Ge(rr,lr,sn,"depth","uint32")),Hi?Un=it(Hi):un&&!hr&&(Un=Ge(rr,lr,!1,"stencil","uint8")),ln?jn=it(ln):!Fn&&!Hi&&un&&hr&&(jn=Ge(rr,lr,sn,"depth stencil","depth stencil")),lt=0;lt<_r.length;++lt)Rt(_r[lt]),_r[lt]&&_r[lt].texture&&Ac[_r[lt].texture._texture.format]*ds[_r[lt].texture._texture.type];return Rt(fn),Rt(Un),Rt(jn),pt(Je),Je.width=rr,Je.height=lr,Je.colorAttachments=_r,Je.depthAttachment=fn,Je.stencilAttachment=Un,Je.depthStencilAttachment=jn,It.color=_r.map(he),It.depth=he(fn),It.stencil=he(Un),It.depthStencil=he(jn),It.width=Je.width,It.height=Je.height,Pt(Je),It}function tr(bt,Bt){var lt=Math.max(bt|0,1),rr=Math.max(Bt|0||lt,1);if(lt===Je.width&&rr===Je.height)return It;for(var lr=Je.colorAttachments,hr=0;hr<lr.length;++hr)Ce(lr[hr],lt,rr);return Ce(Je.depthAttachment,lt,rr),Ce(Je.stencilAttachment,lt,rr),Ce(Je.depthStencilAttachment,lt,rr),Je.width=It.width=lt,Je.height=It.height=rr,Pt(Je),It}return It(Ae,ht),r(It,{resize:tr,_reglType:"framebuffer",_framebuffer:Je,destroy:function(){ot(Je),pt(Je)},use:function(bt){_e.setFBO({framebuffer:It},bt)}})}function Re(Ae){var ht=Array(6);function Je(tr){var bt,Bt={color:null},lt=0,rr=null,lr="rgba",hr="uint8",un=1;if(typeof tr=="number")lt=tr|0;else if(!tr)lt=1;else{var sr=tr;if("shape"in sr){var Xn=sr.shape;lt=Xn[0]}else"radius"in sr&&(lt=sr.radius|0),"width"in sr?lt=sr.width|0:"height"in sr&&(lt=sr.height|0);("color"in sr||"colors"in sr)&&(rr=sr.color||sr.colors),rr||("colorCount"in sr&&(un=sr.colorCount|0),"colorType"in sr&&(hr=sr.colorType),"colorFormat"in sr&&(lr=sr.colorFormat)),"depth"in sr&&(Bt.depth=sr.depth),"stencil"in sr&&(Bt.stencil=sr.stencil),"depthStencil"in sr&&(Bt.depthStencil=sr.depthStencil)}var Cr;if(rr)if(Array.isArray(rr))for(Cr=[],bt=0;bt<rr.length;++bt)Cr[bt]=rr[bt];else Cr=[rr];else{Cr=Array(un);var An={radius:lt,format:lr,type:hr};for(bt=0;bt<un;++bt)Cr[bt]=Ee.createCube(An)}for(Bt.color=Array(Cr.length),bt=0;bt<Cr.length;++bt){var Kn=Cr[bt];lt=lt||Kn.width,Bt.color[bt]={target:So,data:Cr[bt]}}for(bt=0;bt<6;++bt){for(var Fn=0;Fn<Cr.length;++Fn)Bt.color[Fn].target=So+bt;bt>0&&(Bt.depth=ht[0].depth,Bt.stencil=ht[0].stencil,Bt.depthStencil=ht[0].depthStencil),ht[bt]?ht[bt](Bt):ht[bt]=$e(Bt)}return r(Je,{width:lt,height:lt,color:Cr})}function It(tr){var bt,Bt=tr|0;if(Bt===Je.width)return Je;var lt=Je.color;for(bt=0;bt<lt.length;++bt)lt[bt].resize(Bt);for(bt=0;bt<6;++bt)ht[bt].resize(Bt);return Je.width=Je.height=Bt,Je}return Je(Ae),r(Je,{faces:ht,resize:It,_reglType:"framebufferCube",destroy:function(){ht.forEach(function(tr){tr.destroy()})}})}function mt(){_e.cur=null,_e.next=null,_e.dirty=!0,zn(Ze).forEach(function(Ae){Ae.framebuffer=I.createFramebuffer(),Pt(Ae)})}return r(_e,{getFramebuffer:function(Ae){if(typeof Ae=="function"&&Ae._reglType==="framebuffer"){var ht=Ae._framebuffer;if(ht instanceof Ne)return ht}return null},create:$e,createCube:Re,clear:function(){zn(Ze).forEach(ot)},restore:mt})}var Tc=5126,pv=34962,ps=34963;function Oc(){this.state=0,this.x=0,this.y=0,this.z=0,this.w=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=Tc,this.offset=0,this.stride=0,this.divisor=0}function Gy(I,H,Z,Ee,ke,be,_e){for(var Ye=Z.maxAttributes,Xe=new Array(Ye),et=0;et<Ye;++et)Xe[et]=new Oc;var ft=0,Rt={},St={Record:Oc,scope:{},state:Xe,currentVAO:null,targetVAO:null,restore:Ge()?ot:function(){},createVAO:Pt,getVAO:Ce,destroyBuffer:it,setVAO:Ge()?Ve:Ze,clear:Ge()?Ne:function(){}};function it($e){for(var Re=0;Re<Xe.length;++Re){var mt=Xe[Re];mt.buffer===$e&&(I.disableVertexAttribArray(Re),mt.buffer=null)}}function Ge(){return H.oes_vertex_array_object}function he(){return H.angle_instanced_arrays}function Ce($e){return typeof $e=="function"&&$e._vao?$e._vao:null}function Ve($e){if($e!==St.currentVAO){var Re=Ge();$e?Re.bindVertexArrayOES($e.vao):Re.bindVertexArrayOES(null),St.currentVAO=$e}}function Ze($e){if($e!==St.currentVAO){if($e)$e.bindAttrs();else{for(var Re=he(),mt=0;mt<Xe.length;++mt){var Ae=Xe[mt];Ae.buffer?(I.enableVertexAttribArray(mt),Ae.buffer.bind(),I.vertexAttribPointer(mt,Ae.size,Ae.type,Ae.normalized,Ae.stride,Ae.offfset),Re&&Ae.divisor&&Re.vertexAttribDivisorANGLE(mt,Ae.divisor)):(I.disableVertexAttribArray(mt),I.vertexAttrib4f(mt,Ae.x,Ae.y,Ae.z,Ae.w))}_e.elements?I.bindBuffer(ps,_e.elements.buffer.buffer):I.bindBuffer(ps,null)}St.currentVAO=$e}}function Ne(){zn(Rt).forEach(function($e){$e.destroy()})}function pt(){this.id=++ft,this.attributes=[],this.elements=null,this.ownsElements=!1,this.count=0,this.offset=0,this.instances=-1,this.primitive=4;var $e=Ge();$e?this.vao=$e.createVertexArrayOES():this.vao=null,Rt[this.id]=this,this.buffers=[]}pt.prototype.bindAttrs=function(){for(var $e=he(),Re=this.attributes,mt=0;mt<Re.length;++mt){var Ae=Re[mt];Ae.buffer?(I.enableVertexAttribArray(mt),I.bindBuffer(pv,Ae.buffer.buffer),I.vertexAttribPointer(mt,Ae.size,Ae.type,Ae.normalized,Ae.stride,Ae.offset),$e&&Ae.divisor&&$e.vertexAttribDivisorANGLE(mt,Ae.divisor)):(I.disableVertexAttribArray(mt),I.vertexAttrib4f(mt,Ae.x,Ae.y,Ae.z,Ae.w))}for(var ht=Re.length;ht<Ye;++ht)I.disableVertexAttribArray(ht);var Je=be.getElements(this.elements);Je?I.bindBuffer(ps,Je.buffer.buffer):I.bindBuffer(ps,null)},pt.prototype.refresh=function(){var $e=Ge();$e&&($e.bindVertexArrayOES(this.vao),this.bindAttrs(),St.currentVAO=null,$e.bindVertexArrayOES(null))},pt.prototype.destroy=function(){if(this.vao){var $e=Ge();this===St.currentVAO&&(St.currentVAO=null,$e.bindVertexArrayOES(null)),$e.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),Rt[this.id]&&(delete Rt[this.id],Ee.vaoCount-=1)};function ot(){var $e=Ge();$e&&zn(Rt).forEach(function(Re){Re.refresh()})}function Pt($e){var Re=new pt;Ee.vaoCount+=1;function mt(Ae){var ht;if(Array.isArray(Ae))ht=Ae,Re.elements&&Re.ownsElements&&Re.elements.destroy(),Re.elements=null,Re.ownsElements=!1,Re.offset=0,Re.count=0,Re.instances=-1,Re.primitive=4;else{if(Ae.elements){var Je=Ae.elements;Re.ownsElements?typeof Je=="function"&&Je._reglType==="elements"?(Re.elements.destroy(),Re.ownsElements=!1):(Re.elements(Je),Re.ownsElements=!1):be.getElements(Ae.elements)?(Re.elements=Ae.elements,Re.ownsElements=!1):(Re.elements=be.create(Ae.elements),Re.ownsElements=!0)}else Re.elements=null,Re.ownsElements=!1;ht=Ae.attributes,Re.offset=0,Re.count=-1,Re.instances=-1,Re.primitive=4,Re.elements&&(Re.count=Re.elements._elements.vertCount,Re.primitive=Re.elements._elements.primType),"offset"in Ae&&(Re.offset=Ae.offset|0),"count"in Ae&&(Re.count=Ae.count|0),"instances"in Ae&&(Re.instances=Ae.instances|0),"primitive"in Ae&&(Re.primitive=nn[Ae.primitive])}var It={},tr=Re.attributes;tr.length=ht.length;for(var bt=0;bt<ht.length;++bt){var Bt=ht[bt],lt=tr[bt]=new Oc,rr=Bt.data||Bt;if(Array.isArray(rr)||rn(rr)||ai(rr)){var lr;Re.buffers[bt]&&(lr=Re.buffers[bt],rn(rr)&&lr._buffer.byteLength>=rr.byteLength?lr.subdata(rr):(lr.destroy(),Re.buffers[bt]=null)),Re.buffers[bt]||(lr=Re.buffers[bt]=ke.create(Bt,pv,!1,!0)),lt.buffer=ke.getBuffer(lr),lt.size=lt.buffer.dimension|0,lt.normalized=!1,lt.type=lt.buffer.dtype,lt.offset=0,lt.stride=0,lt.divisor=0,lt.state=1,It[bt]=1}else ke.getBuffer(Bt)?(lt.buffer=ke.getBuffer(Bt),lt.size=lt.buffer.dimension|0,lt.normalized=!1,lt.type=lt.buffer.dtype,lt.offset=0,lt.stride=0,lt.divisor=0,lt.state=1):ke.getBuffer(Bt.buffer)?(lt.buffer=ke.getBuffer(Bt.buffer),lt.size=(+Bt.size||lt.buffer.dimension)|0,lt.normalized=!!Bt.normalized||!1,"type"in Bt?lt.type=Ou[Bt.type]:lt.type=lt.buffer.dtype,lt.offset=(Bt.offset||0)|0,lt.stride=(Bt.stride||0)|0,lt.divisor=(Bt.divisor||0)|0,lt.state=1):"x"in Bt&&(lt.x=+Bt.x||0,lt.y=+Bt.y||0,lt.z=+Bt.z||0,lt.w=+Bt.w||0,lt.state=2)}for(var hr=0;hr<Re.buffers.length;++hr)!It[hr]&&Re.buffers[hr]&&(Re.buffers[hr].destroy(),Re.buffers[hr]=null);return Re.refresh(),mt}return mt.destroy=function(){for(var Ae=0;Ae<Re.buffers.length;++Ae)Re.buffers[Ae]&&Re.buffers[Ae].destroy();Re.buffers.length=0,Re.ownsElements&&(Re.elements.destroy(),Re.elements=null,Re.ownsElements=!1),Re.destroy()},mt._vao=Re,mt._reglType="vao",mt($e)}return St}var Mc=35632,Wy=35633,Hy=35718,kc=35721;function vv(I,H,Z,Ee){var ke={},be={};function _e(he,Ce,Ve,Ze){this.name=he,this.id=Ce,this.location=Ve,this.info=Ze}function Ye(he,Ce){for(var Ve=0;Ve<he.length;++Ve)if(he[Ve].id===Ce.id){he[Ve].location=Ce.location;return}he.push(Ce)}function Xe(he,Ce,Ve){var Ze=he===Mc?ke:be,Ne=Ze[Ce];if(!Ne){var pt=H.str(Ce);Ne=I.createShader(he),I.shaderSource(Ne,pt),I.compileShader(Ne),Ze[Ce]=Ne}return Ne}var et={},ft=[],Rt=0;function St(he,Ce){this.id=Rt++,this.fragId=he,this.vertId=Ce,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,Ee.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function it(he,Ce,Ve){var Ze,Ne,pt=Xe(Mc,he.fragId),ot=Xe(Wy,he.vertId),Pt=he.program=I.createProgram();if(I.attachShader(Pt,pt),I.attachShader(Pt,ot),Ve)for(Ze=0;Ze<Ve.length;++Ze){var $e=Ve[Ze];I.bindAttribLocation(Pt,$e[0],$e[1])}I.linkProgram(Pt);var Re=I.getProgramParameter(Pt,Hy);Ee.profile&&(he.stats.uniformsCount=Re);var mt=he.uniforms;for(Ze=0;Ze<Re;++Ze)if(Ne=I.getActiveUniform(Pt,Ze),Ne)if(Ne.size>1)for(var Ae=0;Ae<Ne.size;++Ae){var ht=Ne.name.replace("[0]","["+Ae+"]");Ye(mt,new _e(ht,H.id(ht),I.getUniformLocation(Pt,ht),Ne))}else Ye(mt,new _e(Ne.name,H.id(Ne.name),I.getUniformLocation(Pt,Ne.name),Ne));var Je=I.getProgramParameter(Pt,kc);Ee.profile&&(he.stats.attributesCount=Je);var It=he.attributes;for(Ze=0;Ze<Je;++Ze)Ne=I.getActiveAttrib(Pt,Ze),Ne&&Ye(It,new _e(Ne.name,H.id(Ne.name),I.getAttribLocation(Pt,Ne.name),Ne))}Ee.profile&&(Z.getMaxUniformsCount=function(){var he=0;return ft.forEach(function(Ce){Ce.stats.uniformsCount>he&&(he=Ce.stats.uniformsCount)}),he},Z.getMaxAttributesCount=function(){var he=0;return ft.forEach(function(Ce){Ce.stats.attributesCount>he&&(he=Ce.stats.attributesCount)}),he});function Ge(){ke={},be={};for(var he=0;he<ft.length;++he)it(ft[he],null,ft[he].attributes.map(function(Ce){return[Ce.location,Ce.name]}))}return{clear:function(){var he=I.deleteShader.bind(I);zn(ke).forEach(he),ke={},zn(be).forEach(he),be={},ft.forEach(function(Ce){I.deleteProgram(Ce.program)}),ft.length=0,et={},Z.shaderCount=0},program:function(he,Ce,Ve,Ze){var Ne=et[Ce];Ne||(Ne=et[Ce]={});var pt=Ne[he];if(pt&&(pt.refCount++,!Ze))return pt;var ot=new St(Ce,he);return Z.shaderCount++,it(ot,Ve,Ze),pt||(Ne[he]=ot),ft.push(ot),r(ot,{destroy:function(){if(ot.refCount--,ot.refCount<=0){I.deleteProgram(ot.program);var Pt=ft.indexOf(ot);ft.splice(Pt,1),Z.shaderCount--}Ne[ot.vertId].refCount<=0&&(I.deleteShader(be[ot.vertId]),delete be[ot.vertId],delete et[ot.fragId][ot.vertId]),Object.keys(et[ot.fragId]).length||(I.deleteShader(ke[ot.fragId]),delete ke[ot.fragId],delete et[ot.fragId])}})},restore:Ge,shader:Xe,frag:-1,vert:-1}}var mv=6408,Rc=5121,qy=3333,Vy=5126;function gv(I,H,Z,Ee,ke,be,_e){function Ye(ft){var Rt;H.next===null?Rt=Rc:Rt=H.next.colorAttachments[0].texture._texture.type;var St=0,it=0,Ge=Ee.framebufferWidth,he=Ee.framebufferHeight,Ce=null;rn(ft)?Ce=ft:ft&&(St=ft.x|0,it=ft.y|0,Ge=(ft.width||Ee.framebufferWidth-St)|0,he=(ft.height||Ee.framebufferHeight-it)|0,Ce=ft.data||null),Z();var Ve=Ge*he*4;return Ce||(Rt===Rc?Ce=new Uint8Array(Ve):Rt===Vy&&(Ce=Ce||new Float32Array(Ve))),I.pixelStorei(qy,4),I.readPixels(St,it,Ge,he,mv,Rt,Ce),Ce}function Xe(ft){var Rt;return H.setFBO({framebuffer:ft.framebuffer},function(){Rt=Ye(ft)}),Rt}function et(ft){return!ft||!("framebuffer"in ft)?Ye(ft):Xe(ft)}return et}function yv(I){return Pc(bv(Ic(I)))}function bv(I){return Xy(Qy(Yy(I),I.length*8))}function Pc(I){for(var H="0123456789abcdef",Z="",Ee,ke=0;ke<I.length;ke++)Ee=I.charCodeAt(ke),Z+=H.charAt(Ee>>>4&15)+H.charAt(Ee&15);return Z}function Ic(I){for(var H="",Z=-1,Ee,ke;++Z<I.length;)Ee=I.charCodeAt(Z),ke=Z+1<I.length?I.charCodeAt(Z+1):0,55296<=Ee&&Ee<=56319&&56320<=ke&&ke<=57343&&(Ee=65536+((Ee&1023)<<10)+(ke&1023),Z++),Ee<=127?H+=String.fromCharCode(Ee):Ee<=2047?H+=String.fromCharCode(192|Ee>>>6&31,128|Ee&63):Ee<=65535?H+=String.fromCharCode(224|Ee>>>12&15,128|Ee>>>6&63,128|Ee&63):Ee<=2097151&&(H+=String.fromCharCode(240|Ee>>>18&7,128|Ee>>>12&63,128|Ee>>>6&63,128|Ee&63));return H}function Yy(I){for(var H=Array(I.length>>2),Z=0;Z<H.length;Z++)H[Z]=0;for(var Z=0;Z<I.length*8;Z+=8)H[Z>>5]|=(I.charCodeAt(Z/8)&255)<<24-Z%32;return H}function Xy(I){for(var H="",Z=0;Z<I.length*32;Z+=8)H+=String.fromCharCode(I[Z>>5]>>>24-Z%32&255);return H}function Si(I,H){return I>>>H|I<<32-H}function xv(I,H){return I>>>H}function Ky(I,H,Z){return I&H^~I&Z}function wv(I,H,Z){return I&H^I&Z^H&Z}function _v(I){return Si(I,2)^Si(I,13)^Si(I,22)}function Fc(I){return Si(I,6)^Si(I,11)^Si(I,25)}function Sv(I){return Si(I,7)^Si(I,18)^xv(I,3)}function vs(I){return Si(I,17)^Si(I,19)^xv(I,10)}var ms=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998);function Qy(I,H){var Z=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Ee=new Array(64),ke,be,_e,Ye,Xe,et,ft,Rt,St,it,Ge,he;for(I[H>>5]|=128<<24-H%32,I[(H+64>>9<<4)+15]=H,St=0;St<I.length;St+=16){for(ke=Z[0],be=Z[1],_e=Z[2],Ye=Z[3],Xe=Z[4],et=Z[5],ft=Z[6],Rt=Z[7],it=0;it<64;it++)it<16?Ee[it]=I[it+St]:Ee[it]=Wr(Wr(Wr(vs(Ee[it-2]),Ee[it-7]),Sv(Ee[it-15])),Ee[it-16]),Ge=Wr(Wr(Wr(Wr(Rt,Fc(Xe)),Ky(Xe,et,ft)),ms[it]),Ee[it]),he=Wr(_v(ke),wv(ke,be,_e)),Rt=ft,ft=et,et=Xe,Xe=Wr(Ye,Ge),Ye=_e,_e=be,be=ke,ke=Wr(Ge,he);Z[0]=Wr(ke,Z[0]),Z[1]=Wr(be,Z[1]),Z[2]=Wr(_e,Z[2]),Z[3]=Wr(Ye,Z[3]),Z[4]=Wr(Xe,Z[4]),Z[5]=Wr(et,Z[5]),Z[6]=Wr(ft,Z[6]),Z[7]=Wr(Rt,Z[7])}return Z}function Wr(I,H){var Z=(I&65535)+(H&65535),Ee=(I>>16)+(H>>16)+(Z>>16);return Ee<<16|Z&65535}function za(I){return Array.prototype.slice.call(I)}function Ao(I){return za(I).join("")}function Zy(I){var H=I&&I.cache,Z=0,Ee=[],ke=[],be=[];function _e(Ge,he){var Ce=he&&he.stable;if(!Ce){for(var Ve=0;Ve<ke.length;++Ve)if(ke[Ve]===Ge&&!be[Ve])return Ee[Ve]}var Ze="g"+Z++;return Ee.push(Ze),ke.push(Ge),be.push(Ce),Ze}function Ye(){var Ge=[];function he(){Ge.push.apply(Ge,za(arguments))}var Ce=[];function Ve(){var Ze="v"+Z++;return Ce.push(Ze),arguments.length>0&&(Ge.push(Ze,"="),Ge.push.apply(Ge,za(arguments)),Ge.push(";")),Ze}return r(he,{def:Ve,toString:function(){return Ao([Ce.length>0?"var "+Ce.join(",")+";":"",Ao(Ge)])}})}function Xe(){var Ge=Ye(),he=Ye(),Ce=Ge.toString,Ve=he.toString;function Ze(Ne,pt){he(Ne,pt,"=",Ge.def(Ne,pt),";")}return r(function(){Ge.apply(Ge,za(arguments))},{def:Ge.def,entry:Ge,exit:he,save:Ze,set:function(Ne,pt,ot){Ze(Ne,pt),Ge(Ne,pt,"=",ot,";")},toString:function(){return Ce()+Ve()}})}function et(){var Ge=Ao(arguments),he=Xe(),Ce=Xe(),Ve=he.toString,Ze=Ce.toString;return r(he,{then:function(){return he.apply(he,za(arguments)),this},else:function(){return Ce.apply(Ce,za(arguments)),this},toString:function(){var Ne=Ze();return Ne&&(Ne="else{"+Ne+"}"),Ao(["if(",Ge,"){",Ve(),"}",Ne])}})}var ft=Ye(),Rt={};function St(Ge,he){var Ce=[];function Ve(){var Pt="a"+Ce.length;return Ce.push(Pt),Pt}he=he||0;for(var Ze=0;Ze<he;++Ze)Ve();var Ne=Xe(),pt=Ne.toString,ot=Rt[Ge]=r(Ne,{arg:Ve,toString:function(){return Ao(["function(",Ce.join(),"){",pt(),"}"])}});return ot}function it(){var Ge=['"use strict";',ft,"return {"];Object.keys(Rt).forEach(function(Ze){Ge.push('"',Ze,'":',Rt[Ze].toString(),",")}),Ge.push("}");var he=Ao(Ge).replace(/;/g,`;
1093
1093
  `).replace(/}/g,`}
1094
1094
  `).replace(/{/g,`{
1095
- `),Te;if(H&&(Te=bv(he),H[Te]))return H[Te].apply(null,Me);var Ve=Function.apply(null,Ee.concat(he));return H&&(H[Te]=Ve),Ve.apply(null,Me)}return{global:ft,link:_e,block:Ye,proc:St,scope:Xe,cond:et,compile:it}}var Ua="xyzw".split(""),Nc=5121,ja=1,zu=2,Uu=0,gs=1,Lc=2,ys=3,Ga=4,Dc=5,Av=6,Tv="dither",Cv="blend.enable",Ov="blend.color",bs="blend.equation",xs="blend.func",$c="depth.enable",Bc="depth.func",kv="depth.range",ju="depth.mask",zc="colorMask",Mv="cull.enable",Uc="cull.face",ws="frontFace",jc="lineWidth",Gu="polygonOffset.enable",To="polygonOffset.offset",Gc="sample.alpha",Wc="sample.enable",Wu="sample.coverage",Yn="stencil.enable",Hc="stencil.mask",qc="stencil.func",Hu="stencil.opFront",Wa="stencil.opBack",Rv="scissor.enable",_s="scissor.box",Gi="viewport",Ha="profile",fa="framebuffer",qu="vert",Ss="frag",Co="elements",Oo="primitive",an="count",Es="offset",As="instances",hi="vao",Vu="Width",Yu="Height",ko=fa+Vu,Mo=fa+Yu,e1=Gi+Vu,Pv=Gi+Yu,Vc="drawingBuffer",Yc=Vc+Vu,Xc=Vc+Yu,t1=[xs,bs,qc,Hu,Wa,Wu,Gi,_s,To],qa=34962,Kc=34963,r1=2884,n1=3042,Iv=3024,Fv=2960,Ts=2929,Nv=3089,Cs=32823,Lv=32926,Xu=32928,Br=5126,Os=35664,Wi=35665,Ro=35666,ks=5124,Qc=35667,Ku=35668,Po=35669,Zc=35670,Jc=35671,eh=35672,th=35673,rh=35674,Qu=35675,nh=35676,ih=35678,u=35680,c=4,h=1028,p=1029,m=2304,b=2305,O=32775,S=32776,P=519,N=7680,D=0,B=1,z=32774,ie=513,oe=36160,G=36064,X={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},J={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ue={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},le={cw:m,ccw:b};function re(I){return Array.isArray(I)||rn(I)||ai(I)}function Pe(I){return I.sort(function(H,Z){return H===Gi?-1:Z===Gi?1:H<Z?-1:1})}function Ue(I,H,Z,Ee){this.thisDep=I,this.contextDep=H,this.propDep=Z,this.append=Ee}function tt(I){return I&&!(I.thisDep||I.contextDep||I.propDep)}function je(I){return new Ue(!1,!1,!1,I)}function at(I,H){var Z=I.type;if(Z===Uu){var Ee=I.data.length;return new Ue(!0,Ee>=1,Ee>=2,H)}else if(Z===Ga){var Me=I.data;return new Ue(Me.thisDep,Me.contextDep,Me.propDep,H)}else{if(Z===Dc)return new Ue(!1,!1,!1,H);if(Z===Av){for(var be=!1,_e=!1,Ye=!1,Xe=0;Xe<I.data.length;++Xe){var et=I.data[Xe];if(et.type===gs)Ye=!0;else if(et.type===Lc)_e=!0;else if(et.type===ys)be=!0;else if(et.type===Uu){be=!0;var ft=et.data;ft>=1&&(_e=!0),ft>=2&&(Ye=!0)}else et.type===Ga&&(be=be||et.data.thisDep,_e=_e||et.data.contextDep,Ye=Ye||et.data.propDep)}return new Ue(be,_e,Ye,H)}else return new Ue(Z===ys,Z===Lc,Z===gs,H)}}var vt=new Ue(!1,!1,!1,function(){});function Wt(I,H,Z,Ee,Me,be,_e,Ye,Xe,et,ft,Rt,St,it,Ge,he){var Te=et.Record,Ve={add:32774,subtract:32778,"reverse subtract":32779};Z.ext_blend_minmax&&(Ve.min=O,Ve.max=S);var Ze=Z.angle_instanced_arrays,Ne=Z.webgl_draw_buffers,pt=Z.oes_vertex_array_object,ot={dirty:!0,profile:he.profile},Pt={},$e=[],Re={},mt={};function Ae(U){return U.replace(".","_")}function ht(U,q,ee){var Se=Ae(U);$e.push(U),Pt[Se]=ot[Se]=!!ee,Re[Se]=q}function Je(U,q,ee){var Se=Ae(U);$e.push(U),Array.isArray(ee)?(ot[Se]=ee.slice(),Pt[Se]=ee.slice()):ot[Se]=Pt[Se]=ee,mt[Se]=q}function It(U){return!!isNaN(U)}ht(Tv,Iv),ht(Cv,n1),Je(Ov,"blendColor",[0,0,0,0]),Je(bs,"blendEquationSeparate",[z,z]),Je(xs,"blendFuncSeparate",[B,D,B,D]),ht($c,Ts,!0),Je(Bc,"depthFunc",ie),Je(kv,"depthRange",[0,1]),Je(ju,"depthMask",!0),Je(zc,zc,[!0,!0,!0,!0]),ht(Mv,r1),Je(Uc,"cullFace",p),Je(ws,ws,b),Je(jc,jc,1),ht(Gu,Cs),Je(To,"polygonOffset",[0,0]),ht(Gc,Lv),ht(Wc,Xu),Je(Wu,"sampleCoverage",[1,!1]),ht(Yn,Fv),Je(Hc,"stencilMask",-1),Je(qc,"stencilFunc",[P,0,-1]),Je(Hu,"stencilOpSeparate",[h,N,N,N]),Je(Wa,"stencilOpSeparate",[p,N,N,N]),ht(Rv,Nv),Je(_s,"scissor",[0,0,I.drawingBufferWidth,I.drawingBufferHeight]),Je(Gi,Gi,[0,0,I.drawingBufferWidth,I.drawingBufferHeight]);var tr={gl:I,context:St,strings:H,next:Pt,current:ot,draw:Rt,elements:be,buffer:Me,shader:ft,attributes:et.state,vao:et,uniforms:Xe,framebuffer:Ye,extensions:Z,timer:it,isBufferArgs:re},bt={primTypes:nn,compareFuncs:J,blendFuncs:X,blendEquations:Ve,stencilOps:ue,glTypes:Ou,orientationType:le};Ne&&(bt.backBuffer=[p],bt.drawBuffer=ge(Ee.maxDrawbuffers,function(U){return U===0?[0]:ge(U,function(q){return G+q})}));var Bt=0;function lt(){var U=Jy({cache:Ge}),q=U.link,ee=U.global;U.id=Bt++,U.batchId="0";var Se=q(tr),pe=U.shared={props:"a0"};Object.keys(tr).forEach(function(ne){pe[ne]=ee.def(Se,".",ne)});var de=U.next={},ce=U.current={};Object.keys(mt).forEach(function(ne){Array.isArray(ot[ne])&&(de[ne]=ee.def(pe.next,".",ne),ce[ne]=ee.def(pe.current,".",ne))});var se=U.constants={};Object.keys(bt).forEach(function(ne){se[ne]=ee.def(JSON.stringify(bt[ne]))}),U.invoke=function(ne,K){switch(K.type){case Uu:var ve=["this",pe.context,pe.props,U.batchId];return ne.def(q(K.data),".call(",ve.slice(0,Math.max(K.data.length+1,4)),")");case gs:return ne.def(pe.props,K.data);case Lc:return ne.def(pe.context,K.data);case ys:return ne.def("this",K.data);case Ga:return K.data.append(U,ne),K.data.ref;case Dc:return K.data.toString();case Av:return K.data.map(function(Oe){return U.invoke(ne,Oe)})}},U.attribCache={};var Q={};return U.scopeAttrib=function(ne){var K=H.id(ne);if(K in Q)return Q[K];var ve=et.scope[K];ve||(ve=et.scope[K]=new Te);var Oe=Q[K]=q(ve);return Oe},U}function rr(U){var q=U.static,ee=U.dynamic,Se;if(Ha in q){var pe=!!q[Ha];Se=je(function(ce,se){return pe}),Se.enable=pe}else if(Ha in ee){var de=ee[Ha];Se=at(de,function(ce,se){return ce.invoke(se,de)})}return Se}function lr(U,q){var ee=U.static,Se=U.dynamic;if(fa in ee){var pe=ee[fa];return pe?(pe=Ye.getFramebuffer(pe),je(function(ce,se){var Q=ce.link(pe),ne=ce.shared;se.set(ne.framebuffer,".next",Q);var K=ne.context;return se.set(K,"."+ko,Q+".width"),se.set(K,"."+Mo,Q+".height"),Q})):je(function(ce,se){var Q=ce.shared;se.set(Q.framebuffer,".next","null");var ne=Q.context;return se.set(ne,"."+ko,ne+"."+Yc),se.set(ne,"."+Mo,ne+"."+Xc),"null"})}else if(fa in Se){var de=Se[fa];return at(de,function(ce,se){var Q=ce.invoke(se,de),ne=ce.shared,K=ne.framebuffer,ve=se.def(K,".getFramebuffer(",Q,")");se.set(K,".next",ve);var Oe=ne.context;return se.set(Oe,"."+ko,ve+"?"+ve+".width:"+Oe+"."+Yc),se.set(Oe,"."+Mo,ve+"?"+ve+".height:"+Oe+"."+Xc),ve})}else return null}function hr(U,q,ee){var Se=U.static,pe=U.dynamic;function de(Q){if(Q in Se){var ne=Se[Q],K=!0,ve=ne.x|0,Oe=ne.y|0,Be,Lt;return"width"in ne?Be=ne.width|0:K=!1,"height"in ne?Lt=ne.height|0:K=!1,new Ue(!K&&q&&q.thisDep,!K&&q&&q.contextDep,!K&&q&&q.propDep,function(Ft,Et){var Dt=Ft.shared.context,wt=Be;"width"in ne||(wt=Et.def(Dt,".",ko,"-",ve));var Ot=Lt;return"height"in ne||(Ot=Et.def(Dt,".",Mo,"-",Oe)),[ve,Oe,wt,Ot]})}else if(Q in pe){var Mt=pe[Q],gt=at(Mt,function(Ft,Et){var Dt=Ft.invoke(Et,Mt),wt=Ft.shared.context,Ot=Et.def(Dt,".x|0"),kt=Et.def(Dt,".y|0"),Vt=Et.def('"width" in ',Dt,"?",Dt,".width|0:","(",wt,".",ko,"-",Ot,")"),Ir=Et.def('"height" in ',Dt,"?",Dt,".height|0:","(",wt,".",Mo,"-",kt,")");return[Ot,kt,Vt,Ir]});return q&&(gt.thisDep=gt.thisDep||q.thisDep,gt.contextDep=gt.contextDep||q.contextDep,gt.propDep=gt.propDep||q.propDep),gt}else return q?new Ue(q.thisDep,q.contextDep,q.propDep,function(Ft,Et){var Dt=Ft.shared.context;return[0,0,Et.def(Dt,".",ko),Et.def(Dt,".",Mo)]}):null}var ce=de(Gi);if(ce){var se=ce;ce=new Ue(ce.thisDep,ce.contextDep,ce.propDep,function(Q,ne){var K=se.append(Q,ne),ve=Q.shared.context;return ne.set(ve,"."+e1,K[2]),ne.set(ve,"."+Pv,K[3]),K})}return{viewport:ce,scissor_box:de(_s)}}function un(U,q){var ee=U.static,Se=typeof ee[Ss]=="string"&&typeof ee[qu]=="string";if(Se){if(Object.keys(q.dynamic).length>0)return null;var pe=q.static,de=Object.keys(pe);if(de.length>0&&typeof pe[de[0]]=="number"){for(var ce=[],se=0;se<de.length;++se)ce.push([pe[de[se]]|0,de[se]]);return ce}}return null}function sr(U,q,ee){var Se=U.static,pe=U.dynamic;function de(K){if(K in Se){var ve=H.id(Se[K]),Oe=je(function(){return ve});return Oe.id=ve,Oe}else if(K in pe){var Be=pe[K];return at(Be,function(Lt,Mt){var gt=Lt.invoke(Mt,Be),Ft=Mt.def(Lt.shared.strings,".id(",gt,")");return Ft})}return null}var ce=de(Ss),se=de(qu),Q=null,ne;return tt(ce)&&tt(se)?(Q=ft.program(se.id,ce.id,null,ee),ne=je(function(K,ve){return K.link(Q)})):ne=new Ue(ce&&ce.thisDep||se&&se.thisDep,ce&&ce.contextDep||se&&se.contextDep,ce&&ce.propDep||se&&se.propDep,function(K,ve){var Oe=K.shared.shader,Be;ce?Be=ce.append(K,ve):Be=ve.def(Oe,".",Ss);var Lt;se?Lt=se.append(K,ve):Lt=ve.def(Oe,".",qu);var Mt=Oe+".program("+Lt+","+Be;return ve.def(Mt+")")}),{frag:ce,vert:se,progVar:ne,program:Q}}function Xn(U,q){var ee=U.static,Se=U.dynamic,pe={},de=!1;function ce(){if(hi in ee){var Et=ee[hi];return Et!==null&&et.getVAO(Et)===null&&(Et=et.createVAO(Et)),de=!0,pe.vao=Et,je(function(wt){var Ot=et.getVAO(Et);return Ot?wt.link(Ot):"null"})}else if(hi in Se){de=!0;var Dt=Se[hi];return at(Dt,function(wt,Ot){var kt=wt.invoke(Ot,Dt);return Ot.def(wt.shared.vao+".getVAO("+kt+")")})}return null}var se=ce(),Q=!1;function ne(){if(Co in ee){var Et=ee[Co];if(pe.elements=Et,re(Et)){var Dt=pe.elements=be.create(Et,!0);Et=be.getElements(Dt),Q=!0}else Et&&(Et=be.getElements(Et),Q=!0);var wt=je(function(kt,Vt){if(Et){var Ir=kt.link(Et);return kt.ELEMENTS=Ir,Ir}return kt.ELEMENTS=null,null});return wt.value=Et,wt}else if(Co in Se){Q=!0;var Ot=Se[Co];return at(Ot,function(kt,Vt){var Ir=kt.shared,Qn=Ir.isBufferArgs,Va=Ir.elements,Io=kt.invoke(Vt,Ot),Fo=Vt.def("null"),Ei=Vt.def(Qn,"(",Io,")"),ah=kt.cond(Ei).then(Fo,"=",Va,".createStream(",Io,");").else(Fo,"=",Va,".getElements(",Io,");");return Vt.entry(ah),Vt.exit(kt.cond(Ei).then(Va,".destroyStream(",Fo,");")),kt.ELEMENTS=Fo,Fo})}else if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(kt,Vt){return Vt.def(kt.shared.vao+".currentVAO?"+kt.shared.elements+".getElements("+kt.shared.vao+".currentVAO.elements):null")});return null}var K=ne();function ve(){if(Oo in ee){var Et=ee[Oo];return pe.primitive=Et,je(function(wt,Ot){return nn[Et]})}else if(Oo in Se){var Dt=Se[Oo];return at(Dt,function(wt,Ot){var kt=wt.constants.primTypes,Vt=wt.invoke(Ot,Dt);return Ot.def(kt,"[",Vt,"]")})}else{if(Q)return tt(K)?K.value?je(function(wt,Ot){return Ot.def(wt.ELEMENTS,".primType")}):je(function(){return c}):new Ue(K.thisDep,K.contextDep,K.propDep,function(wt,Ot){var kt=wt.ELEMENTS;return Ot.def(kt,"?",kt,".primType:",c)});if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(wt,Ot){return Ot.def(wt.shared.vao+".currentVAO?"+wt.shared.vao+".currentVAO.primitive:"+c)})}return null}function Oe(Et,Dt){if(Et in ee){var wt=ee[Et]|0;return Dt?pe.offset=wt:pe.instances=wt,je(function(kt,Vt){return Dt&&(kt.OFFSET=wt),wt})}else if(Et in Se){var Ot=Se[Et];return at(Ot,function(kt,Vt){var Ir=kt.invoke(Vt,Ot);return Dt&&(kt.OFFSET=Ir),Ir})}else if(Dt){if(Q)return je(function(kt,Vt){return kt.OFFSET=0,0});if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(kt,Vt){return Vt.def(kt.shared.vao+".currentVAO?"+kt.shared.vao+".currentVAO.offset:0")})}else if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(kt,Vt){return Vt.def(kt.shared.vao+".currentVAO?"+kt.shared.vao+".currentVAO.instances:-1")});return null}var Be=Oe(Es,!0);function Lt(){if(an in ee){var Et=ee[an]|0;return pe.count=Et,je(function(){return Et})}else if(an in Se){var Dt=Se[an];return at(Dt,function(Vt,Ir){var Qn=Vt.invoke(Ir,Dt);return Qn})}else if(Q)if(tt(K)){if(K)return Be?new Ue(Be.thisDep,Be.contextDep,Be.propDep,function(Vt,Ir){var Qn=Ir.def(Vt.ELEMENTS,".vertCount-",Vt.OFFSET);return Qn}):je(function(Vt,Ir){return Ir.def(Vt.ELEMENTS,".vertCount")});var wt=je(function(){return-1});return wt}else{var Ot=new Ue(K.thisDep||Be.thisDep,K.contextDep||Be.contextDep,K.propDep||Be.propDep,function(Vt,Ir){var Qn=Vt.ELEMENTS;return Vt.OFFSET?Ir.def(Qn,"?",Qn,".vertCount-",Vt.OFFSET,":-1"):Ir.def(Qn,"?",Qn,".vertCount:-1")});return Ot}else if(de){var kt=new Ue(se.thisDep,se.contextDep,se.propDep,function(Vt,Ir){return Ir.def(Vt.shared.vao,".currentVAO?",Vt.shared.vao,".currentVAO.count:-1")});return kt}return null}var Mt=ve(),gt=Lt(),Ft=Oe(As,!1);return{elements:K,primitive:Mt,count:gt,instances:Ft,offset:Be,vao:se,vaoActive:de,elementsActive:Q,static:pe}}function Tr(U,q){var ee=U.static,Se=U.dynamic,pe={};return $e.forEach(function(de){var ce=Ae(de);function se(Q,ne){if(de in ee){var K=Q(ee[de]);pe[ce]=je(function(){return K})}else if(de in Se){var ve=Se[de];pe[ce]=at(ve,function(Oe,Be){return ne(Oe,Be,Oe.invoke(Be,ve))})}}switch(de){case Mv:case Cv:case Tv:case Yn:case $c:case Rv:case Gu:case Gc:case Wc:case ju:return se(function(Q){return Q},function(Q,ne,K){return K});case Bc:return se(function(Q){return J[Q]},function(Q,ne,K){var ve=Q.constants.compareFuncs;return ne.def(ve,"[",K,"]")});case kv:return se(function(Q){return Q},function(Q,ne,K){var ve=ne.def("+",K,"[0]"),Oe=ne.def("+",K,"[1]");return[ve,Oe]});case xs:return se(function(Q){var ne="srcRGB"in Q?Q.srcRGB:Q.src,K="srcAlpha"in Q?Q.srcAlpha:Q.src,ve="dstRGB"in Q?Q.dstRGB:Q.dst,Oe="dstAlpha"in Q?Q.dstAlpha:Q.dst;return[X[ne],X[ve],X[K],X[Oe]]},function(Q,ne,K){var ve=Q.constants.blendFuncs;function Oe(Dt,wt){var Ot=ne.def('"',Dt,wt,'" in ',K,"?",K,".",Dt,wt,":",K,".",Dt);return Ot}var Be=Oe("src","RGB"),Lt=Oe("dst","RGB"),Mt=ne.def(ve,"[",Be,"]"),gt=ne.def(ve,"[",Oe("src","Alpha"),"]"),Ft=ne.def(ve,"[",Lt,"]"),Et=ne.def(ve,"[",Oe("dst","Alpha"),"]");return[Mt,Ft,gt,Et]});case bs:return se(function(Q){if(typeof Q=="string")return[Ve[Q],Ve[Q]];if(typeof Q=="object")return[Ve[Q.rgb],Ve[Q.alpha]]},function(Q,ne,K){var ve=Q.constants.blendEquations,Oe=ne.def(),Be=ne.def(),Lt=Q.cond("typeof ",K,'==="string"');return Lt.then(Oe,"=",Be,"=",ve,"[",K,"];"),Lt.else(Oe,"=",ve,"[",K,".rgb];",Be,"=",ve,"[",K,".alpha];"),ne(Lt),[Oe,Be]});case Ov:return se(function(Q){return ge(4,function(ne){return+Q[ne]})},function(Q,ne,K){return ge(4,function(ve){return ne.def("+",K,"[",ve,"]")})});case Hc:return se(function(Q){return Q|0},function(Q,ne,K){return ne.def(K,"|0")});case qc:return se(function(Q){var ne=Q.cmp||"keep",K=Q.ref||0,ve="mask"in Q?Q.mask:-1;return[J[ne],K,ve]},function(Q,ne,K){var ve=Q.constants.compareFuncs,Oe=ne.def('"cmp" in ',K,"?",ve,"[",K,".cmp]",":",N),Be=ne.def(K,".ref|0"),Lt=ne.def('"mask" in ',K,"?",K,".mask|0:-1");return[Oe,Be,Lt]});case Hu:case Wa:return se(function(Q){var ne=Q.fail||"keep",K=Q.zfail||"keep",ve=Q.zpass||"keep";return[de===Wa?p:h,ue[ne],ue[K],ue[ve]]},function(Q,ne,K){var ve=Q.constants.stencilOps;function Oe(Be){return ne.def('"',Be,'" in ',K,"?",ve,"[",K,".",Be,"]:",N)}return[de===Wa?p:h,Oe("fail"),Oe("zfail"),Oe("zpass")]});case To:return se(function(Q){var ne=Q.factor|0,K=Q.units|0;return[ne,K]},function(Q,ne,K){var ve=ne.def(K,".factor|0"),Oe=ne.def(K,".units|0");return[ve,Oe]});case Uc:return se(function(Q){var ne=0;return Q==="front"?ne=h:Q==="back"&&(ne=p),ne},function(Q,ne,K){return ne.def(K,'==="front"?',h,":",p)});case jc:return se(function(Q){return Q},function(Q,ne,K){return K});case ws:return se(function(Q){return le[Q]},function(Q,ne,K){return ne.def(K+'==="cw"?'+m+":"+b)});case zc:return se(function(Q){return Q.map(function(ne){return!!ne})},function(Q,ne,K){return ge(4,function(ve){return"!!"+K+"["+ve+"]"})});case Wu:return se(function(Q){var ne="value"in Q?Q.value:1,K=!!Q.invert;return[ne,K]},function(Q,ne,K){var ve=ne.def('"value" in ',K,"?+",K,".value:1"),Oe=ne.def("!!",K,".invert");return[ve,Oe]})}}),pe}function An(U,q){var ee=U.static,Se=U.dynamic,pe={};return Object.keys(ee).forEach(function(de){var ce=ee[de],se;if(typeof ce=="number"||typeof ce=="boolean")se=je(function(){return ce});else if(typeof ce=="function"){var Q=ce._reglType;Q==="texture2d"||Q==="textureCube"?se=je(function(ne){return ne.link(ce)}):(Q==="framebuffer"||Q==="framebufferCube")&&(se=je(function(ne){return ne.link(ce.color[0])}))}else ui(ce)&&(se=je(function(ne){var K=ne.global.def("[",ge(ce.length,function(ve){return ce[ve]}),"]");return K}));se.value=ce,pe[de]=se}),Object.keys(Se).forEach(function(de){var ce=Se[de];pe[de]=at(ce,function(se,Q){return se.invoke(Q,ce)})}),pe}function Kn(U,q){var ee=U.static,Se=U.dynamic,pe={};return Object.keys(ee).forEach(function(de){var ce=ee[de],se=H.id(de),Q=new Te;if(re(ce))Q.state=ja,Q.buffer=Me.getBuffer(Me.create(ce,qa,!1,!0)),Q.type=0;else{var ne=Me.getBuffer(ce);if(ne)Q.state=ja,Q.buffer=ne,Q.type=0;else if("constant"in ce){var K=ce.constant;Q.buffer="null",Q.state=zu,typeof K=="number"?Q.x=K:Ua.forEach(function(Ft,Et){Et<K.length&&(Q[Ft]=K[Et])})}else{re(ce.buffer)?ne=Me.getBuffer(Me.create(ce.buffer,qa,!1,!0)):ne=Me.getBuffer(ce.buffer);var ve=ce.offset|0,Oe=ce.stride|0,Be=ce.size|0,Lt=!!ce.normalized,Mt=0;"type"in ce&&(Mt=Ou[ce.type]);var gt=ce.divisor|0;Q.buffer=ne,Q.state=ja,Q.size=Be,Q.normalized=Lt,Q.type=Mt||ne.dtype,Q.offset=ve,Q.stride=Oe,Q.divisor=gt}}pe[de]=je(function(Ft,Et){var Dt=Ft.attribCache;if(se in Dt)return Dt[se];var wt={isStream:!1};return Object.keys(Q).forEach(function(Ot){wt[Ot]=Q[Ot]}),Q.buffer&&(wt.buffer=Ft.link(Q.buffer),wt.type=wt.type||wt.buffer+".dtype"),Dt[se]=wt,wt})}),Object.keys(Se).forEach(function(de){var ce=Se[de];function se(Q,ne){var K=Q.invoke(ne,ce),ve=Q.shared,Oe=Q.constants,Be=ve.isBufferArgs,Lt=ve.buffer,Mt={isStream:ne.def(!1)},gt=new Te;gt.state=ja,Object.keys(gt).forEach(function(wt){Mt[wt]=ne.def(""+gt[wt])});var Ft=Mt.buffer,Et=Mt.type;ne("if(",Be,"(",K,")){",Mt.isStream,"=true;",Ft,"=",Lt,".createStream(",qa,",",K,");",Et,"=",Ft,".dtype;","}else{",Ft,"=",Lt,".getBuffer(",K,");","if(",Ft,"){",Et,"=",Ft,".dtype;",'}else if("constant" in ',K,"){",Mt.state,"=",zu,";","if(typeof "+K+'.constant === "number"){',Mt[Ua[0]],"=",K,".constant;",Ua.slice(1).map(function(wt){return Mt[wt]}).join("="),"=0;","}else{",Ua.map(function(wt,Ot){return Mt[wt]+"="+K+".constant.length>"+Ot+"?"+K+".constant["+Ot+"]:0;"}).join(""),"}}else{","if(",Be,"(",K,".buffer)){",Ft,"=",Lt,".createStream(",qa,",",K,".buffer);","}else{",Ft,"=",Lt,".getBuffer(",K,".buffer);","}",Et,'="type" in ',K,"?",Oe.glTypes,"[",K,".type]:",Ft,".dtype;",Mt.normalized,"=!!",K,".normalized;");function Dt(wt){ne(Mt[wt],"=",K,".",wt,"|0;")}return Dt("size"),Dt("offset"),Dt("stride"),Dt("divisor"),ne("}}"),ne.exit("if(",Mt.isStream,"){",Lt,".destroyStream(",Ft,");","}"),Mt}pe[de]=at(ce,se)}),pe}function Fn(U){var q=U.static,ee=U.dynamic,Se={};return Object.keys(q).forEach(function(pe){var de=q[pe];Se[pe]=je(function(ce,se){return typeof de=="number"||typeof de=="boolean"?""+de:ce.link(de)})}),Object.keys(ee).forEach(function(pe){var de=ee[pe];Se[pe]=at(de,function(ce,se){return ce.invoke(se,de)})}),Se}function Hi(U,q,ee,Se,pe){U.static,U.dynamic;var de=un(U,q),ce=lr(U),se=hr(U,ce),Q=Xn(U),ne=Tr(U),K=sr(U,pe,de);function ve(Ft){var Et=se[Ft];Et&&(ne[Ft]=Et)}ve(Gi),ve(Ae(_s));var Oe=Object.keys(ne).length>0,Be={framebuffer:ce,draw:Q,shader:K,state:ne,dirty:Oe,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Be.profile=rr(U),Be.uniforms=An(ee),Be.drawVAO=Be.scopeVAO=Q.vao,!Be.drawVAO&&K.program&&!de&&Z.angle_instanced_arrays&&Q.static.elements){var Lt=!0,Mt=K.program.attributes.map(function(Ft){var Et=q.static[Ft];return Lt=Lt&&!!Et,Et});if(Lt&&Mt.length>0){var gt=et.getVAO(et.createVAO({attributes:Mt,elements:Q.static.elements}));Be.drawVAO=new Ue(null,null,null,function(Ft,Et){return Ft.link(gt)}),Be.useVAO=!0}}return de?Be.useVAO=!0:Be.attributes=Kn(q),Be.context=Fn(Se),Be}function ln(U,q,ee){var Se=U.shared,pe=Se.context,de=U.scope();Object.keys(ee).forEach(function(ce){q.save(pe,"."+ce);var se=ee[ce],Q=se.append(U,q);Array.isArray(Q)?de(pe,".",ce,"=[",Q.join(),"];"):de(pe,".",ce,"=",Q,";")}),q(de)}function sn(U,q,ee,Se){var pe=U.shared,de=pe.gl,ce=pe.framebuffer,se;Ne&&(se=q.def(pe.extensions,".webgl_draw_buffers"));var Q=U.constants,ne=Q.drawBuffer,K=Q.backBuffer,ve;ee?ve=ee.append(U,q):ve=q.def(ce,".next"),Se||q("if(",ve,"!==",ce,".cur){"),q("if(",ve,"){",de,".bindFramebuffer(",oe,",",ve,".framebuffer);"),Ne&&q(se,".drawBuffersWEBGL(",ne,"[",ve,".colorAttachments.length]);"),q("}else{",de,".bindFramebuffer(",oe,",null);"),Ne&&q(se,".drawBuffersWEBGL(",K,");"),q("}",ce,".cur=",ve,";"),Se||q("}")}function Kt(U,q,ee){var Se=U.shared,pe=Se.gl,de=U.current,ce=U.next,se=Se.current,Q=Se.next,ne=U.cond(se,".dirty");$e.forEach(function(K){var ve=Ae(K);if(!(ve in ee.state)){var Oe,Be;if(ve in ce){Oe=ce[ve],Be=de[ve];var Lt=ge(ot[ve].length,function(gt){return ne.def(Oe,"[",gt,"]")});ne(U.cond(Lt.map(function(gt,Ft){return gt+"!=="+Be+"["+Ft+"]"}).join("||")).then(pe,".",mt[ve],"(",Lt,");",Lt.map(function(gt,Ft){return Be+"["+Ft+"]="+gt}).join(";"),";"))}else{Oe=ne.def(Q,".",ve);var Mt=U.cond(Oe,"!==",se,".",ve);ne(Mt),ve in Re?Mt(U.cond(Oe).then(pe,".enable(",Re[ve],");").else(pe,".disable(",Re[ve],");"),se,".",ve,"=",Oe,";"):Mt(pe,".",mt[ve],"(",Oe,");",se,".",ve,"=",Oe,";")}}}),Object.keys(ee.state).length===0&&ne(se,".dirty=false;"),q(ne)}function di(U,q,ee,Se){var pe=U.shared,de=U.current,ce=pe.current,se=pe.gl,Q;Pe(Object.keys(ee)).forEach(function(ne){var K=ee[ne];if(!(Se&&!Se(K))){var ve=K.append(U,q);if(Re[ne]){var Oe=Re[ne];tt(K)?(Q=U.link(ve,{stable:!0}),q(U.cond(Q).then(se,".enable(",Oe,");").else(se,".disable(",Oe,");")),q(ce,".",ne,"=",Q,";")):(q(U.cond(ve).then(se,".enable(",Oe,");").else(se,".disable(",Oe,");")),q(ce,".",ne,"=",ve,";"))}else if(ui(ve)){var Be=de[ne];q(se,".",mt[ne],"(",ve,");",ve.map(function(Lt,Mt){return Be+"["+Mt+"]="+Lt}).join(";"),";")}else tt(K)?(Q=U.link(ve,{stable:!0}),q(se,".",mt[ne],"(",Q,");",ce,".",ne,"=",Q,";")):q(se,".",mt[ne],"(",ve,");",ce,".",ne,"=",ve,";")}})}function _r(U,q){Ze&&(U.instancing=q.def(U.shared.extensions,".angle_instanced_arrays"))}function fn(U,q,ee,Se,pe){var de=U.shared,ce=U.stats,se=de.current,Q=de.timer,ne=ee.profile;function K(){return typeof performance>"u"?"Date.now()":"performance.now()"}var ve,Oe;function Be(Dt){ve=q.def(),Dt(ve,"=",K(),";"),typeof pe=="string"?Dt(ce,".count+=",pe,";"):Dt(ce,".count++;"),it&&(Se?(Oe=q.def(),Dt(Oe,"=",Q,".getNumPendingQueries();")):Dt(Q,".beginQuery(",ce,");"))}function Lt(Dt){Dt(ce,".cpuTime+=",K(),"-",ve,";"),it&&(Se?Dt(Q,".pushScopeStats(",Oe,",",Q,".getNumPendingQueries(),",ce,");"):Dt(Q,".endQuery();"))}function Mt(Dt){var wt=q.def(se,".profile");q(se,".profile=",Dt,";"),q.exit(se,".profile=",wt,";")}var gt;if(ne){if(tt(ne)){ne.enable?(Be(q),Lt(q.exit),Mt("true")):Mt("false");return}gt=ne.append(U,q),Mt(gt)}else gt=q.def(se,".profile");var Ft=U.block();Be(Ft),q("if(",gt,"){",Ft,"}");var Et=U.block();Lt(Et),q.exit("if(",gt,"){",Et,"}")}function Un(U,q,ee,Se,pe){var de=U.shared;function ce(Q){switch(Q){case Os:case Qc:case Jc:return 2;case Wi:case Ku:case eh:return 3;case Ro:case Po:case th:return 4;default:return 1}}function se(Q,ne,K){var ve=de.gl,Oe=q.def(Q,".location"),Be=q.def(de.attributes,"[",Oe,"]"),Lt=K.state,Mt=K.buffer,gt=[K.x,K.y,K.z,K.w],Ft=["buffer","normalized","offset","stride"];function Et(){q("if(!",Be,".buffer){",ve,".enableVertexAttribArray(",Oe,");}");var wt=K.type,Ot;if(K.size?Ot=q.def(K.size,"||",ne):Ot=ne,q("if(",Be,".type!==",wt,"||",Be,".size!==",Ot,"||",Ft.map(function(Vt){return Be+"."+Vt+"!=="+K[Vt]}).join("||"),"){",ve,".bindBuffer(",qa,",",Mt,".buffer);",ve,".vertexAttribPointer(",[Oe,Ot,wt,K.normalized,K.stride,K.offset],");",Be,".type=",wt,";",Be,".size=",Ot,";",Ft.map(function(Vt){return Be+"."+Vt+"="+K[Vt]+";"}).join(""),"}"),Ze){var kt=K.divisor;q("if(",Be,".divisor!==",kt,"){",U.instancing,".vertexAttribDivisorANGLE(",[Oe,kt],");",Be,".divisor=",kt,";}")}}function Dt(){q("if(",Be,".buffer){",ve,".disableVertexAttribArray(",Oe,");",Be,".buffer=null;","}if(",Ua.map(function(wt,Ot){return Be+"."+wt+"!=="+gt[Ot]}).join("||"),"){",ve,".vertexAttrib4f(",Oe,",",gt,");",Ua.map(function(wt,Ot){return Be+"."+wt+"="+gt[Ot]+";"}).join(""),"}")}Lt===ja?Et():Lt===zu?Dt():(q("if(",Lt,"===",ja,"){"),Et(),q("}else{"),Dt(),q("}"))}Se.forEach(function(Q){var ne=Q.name,K=ee.attributes[ne],ve;if(K){if(!pe(K))return;ve=K.append(U,q)}else{if(!pe(vt))return;var Oe=U.scopeAttrib(ne);ve={},Object.keys(new Te).forEach(function(Be){ve[Be]=q.def(Oe,".",Be)})}se(U.link(Q),ce(Q.info.type),ve)})}function jn(U,q,ee,Se,pe,de){for(var ce=U.shared,se=ce.gl,Q,ne=0;ne<Se.length;++ne){var K=Se[ne],ve=K.name,Oe=K.info.type,Be=ee.uniforms[ve],Lt=U.link(K),Mt=Lt+".location",gt;if(Be){if(!pe(Be))continue;if(tt(Be)){var Ft=Be.value;if(Oe===ih||Oe===u){var Et=U.link(Ft._texture||Ft.color[0]._texture);q(se,".uniform1i(",Mt,",",Et+".bind());"),q.exit(Et,".unbind();")}else if(Oe===rh||Oe===Qu||Oe===nh){var Dt=U.global.def("new Float32Array(["+Array.prototype.slice.call(Ft)+"])"),wt=2;Oe===Qu?wt=3:Oe===nh&&(wt=4),q(se,".uniformMatrix",wt,"fv(",Mt,",false,",Dt,");")}else{switch(Oe){case Br:Q="1f";break;case Os:Q="2f";break;case Wi:Q="3f";break;case Ro:Q="4f";break;case Zc:Q="1i";break;case ks:Q="1i";break;case Jc:Q="2i";break;case Qc:Q="2i";break;case eh:Q="3i";break;case Ku:Q="3i";break;case th:Q="4i";break;case Po:Q="4i";break}q(se,".uniform",Q,"(",Mt,",",ui(Ft)?Array.prototype.slice.call(Ft):Ft,");")}continue}else gt=Be.append(U,q)}else{if(!pe(vt))continue;gt=q.def(ce.uniforms,"[",H.id(ve),"]")}Oe===ih?q("if(",gt,"&&",gt,'._reglType==="framebuffer"){',gt,"=",gt,".color[0];","}"):Oe===u&&q("if(",gt,"&&",gt,'._reglType==="framebufferCube"){',gt,"=",gt,".color[0];","}");var Ot=1;switch(Oe){case ih:case u:var kt=q.def(gt,"._texture");q(se,".uniform1i(",Mt,",",kt,".bind());"),q.exit(kt,".unbind();");continue;case ks:case Zc:Q="1i";break;case Qc:case Jc:Q="2i",Ot=2;break;case Ku:case eh:Q="3i",Ot=3;break;case Po:case th:Q="4i",Ot=4;break;case Br:Q="1f";break;case Os:Q="2f",Ot=2;break;case Wi:Q="3f",Ot=3;break;case Ro:Q="4f",Ot=4;break;case rh:Q="Matrix2fv";break;case Qu:Q="Matrix3fv";break;case nh:Q="Matrix4fv";break}if(Q.charAt(0)==="M"){q(se,".uniform",Q,"(",Mt,",");var Vt=Math.pow(Oe-rh+2,2),Ir=U.global.def("new Float32Array(",Vt,")");Array.isArray(gt)?q("false,(",ge(Vt,function(Ei){return Ir+"["+Ei+"]="+gt[Ei]}),",",Ir,")"):q("false,(Array.isArray(",gt,")||",gt," instanceof Float32Array)?",gt,":(",ge(Vt,function(Ei){return Ir+"["+Ei+"]="+gt+"["+Ei+"]"}),",",Ir,")"),q(");")}else if(Ot>1){for(var Qn=[],Va=[],Io=0;Io<Ot;++Io)Array.isArray(gt)?Va.push(gt[Io]):Va.push(q.def(gt+"["+Io+"]")),de&&Qn.push(q.def());de&&q("if(!",U.batchId,"||",Qn.map(function(Ei,ah){return Ei+"!=="+Va[ah]}).join("||"),"){",Qn.map(function(Ei,ah){return Ei+"="+Va[ah]+";"}).join("")),q(se,".uniform",Q,"(",Mt,",",Va.join(","),");"),de&&q("}")}else{if(de){var Fo=q.def();q("if(!",U.batchId,"||",Fo,"!==",gt,"){",Fo,"=",gt,";")}q(se,".uniform",Q,"(",Mt,",",gt,");"),de&&q("}")}}}function Zt(U,q,ee,Se){var pe=U.shared,de=pe.gl,ce=pe.draw,se=Se.draw;function Q(){var Ot=se.elements,kt,Vt=q;return Ot?((Ot.contextDep&&Se.contextDynamic||Ot.propDep)&&(Vt=ee),kt=Ot.append(U,Vt),se.elementsActive&&Vt("if("+kt+")"+de+".bindBuffer("+Kc+","+kt+".buffer.buffer);")):(kt=Vt.def(),Vt(kt,"=",ce,".",Co,";","if(",kt,"){",de,".bindBuffer(",Kc,",",kt,".buffer.buffer);}","else if(",pe.vao,".currentVAO){",kt,"=",U.shared.elements+".getElements("+pe.vao,".currentVAO.elements);",pt?"":"if("+kt+")"+de+".bindBuffer("+Kc+","+kt+".buffer.buffer);","}")),kt}function ne(){var Ot=se.count,kt,Vt=q;return Ot?((Ot.contextDep&&Se.contextDynamic||Ot.propDep)&&(Vt=ee),kt=Ot.append(U,Vt)):kt=Vt.def(ce,".",an),kt}var K=Q();function ve(Ot){var kt=se[Ot];return kt?kt.contextDep&&Se.contextDynamic||kt.propDep?kt.append(U,ee):kt.append(U,q):q.def(ce,".",Ot)}var Oe=ve(Oo),Be=ve(Es),Lt=ne();if(typeof Lt=="number"){if(Lt===0)return}else ee("if(",Lt,"){"),ee.exit("}");var Mt,gt;Ze&&(Mt=ve(As),gt=U.instancing);var Ft=K+".type",Et=se.elements&&tt(se.elements)&&!se.vaoActive;function Dt(){function Ot(){ee(gt,".drawElementsInstancedANGLE(",[Oe,Lt,Ft,Be+"<<(("+Ft+"-"+Nc+")>>1)",Mt],");")}function kt(){ee(gt,".drawArraysInstancedANGLE(",[Oe,Be,Lt,Mt],");")}K&&K!=="null"?Et?Ot():(ee("if(",K,"){"),Ot(),ee("}else{"),kt(),ee("}")):kt()}function wt(){function Ot(){ee(de+".drawElements("+[Oe,Lt,Ft,Be+"<<(("+Ft+"-"+Nc+")>>1)"]+");")}function kt(){ee(de+".drawArrays("+[Oe,Be,Lt]+");")}K&&K!=="null"?Et?Ot():(ee("if(",K,"){"),Ot(),ee("}else{"),kt(),ee("}")):kt()}Ze&&(typeof Mt!="number"||Mt>=0)?typeof Mt=="string"?(ee("if(",Mt,">0){"),Dt(),ee("}else if(",Mt,"<0){"),wt(),ee("}")):Dt():wt()}function cr(U,q,ee,Se,pe){var de=lt(),ce=de.proc("body",pe);return Ze&&(de.instancing=ce.def(de.shared.extensions,".angle_instanced_arrays")),U(de,ce,ee,Se),de.compile().body}function Or(U,q,ee,Se){_r(U,q),ee.useVAO?ee.drawVAO?q(U.shared.vao,".setVAO(",ee.drawVAO.append(U,q),");"):q(U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"):(q(U.shared.vao,".setVAO(null);"),Un(U,q,ee,Se.attributes,function(){return!0})),jn(U,q,ee,Se.uniforms,function(){return!0},!1),Zt(U,q,q,ee)}function cn(U,q){var ee=U.proc("draw",1);_r(U,ee),ln(U,ee,q.context),sn(U,ee,q.framebuffer),Kt(U,ee,q),di(U,ee,q.state),fn(U,ee,q,!1,!0);var Se=q.shader.progVar.append(U,ee);if(ee(U.shared.gl,".useProgram(",Se,".program);"),q.shader.program)Or(U,ee,q,q.shader.program);else{ee(U.shared.vao,".setVAO(null);");var pe=U.global.def("{}"),de=ee.def(Se,".id"),ce=ee.def(pe,"[",de,"]");ee(U.cond(ce).then(ce,".call(this,a0);").else(ce,"=",pe,"[",de,"]=",U.link(function(se){return cr(Or,U,q,se,1)}),"(",Se,");",ce,".call(this,a0);"))}Object.keys(q.state).length>0&&ee(U.shared.current,".dirty=true;"),U.shared.vao&&ee(U.shared.vao,".setVAO(null);")}function Y(U,q,ee,Se){U.batchId="a1",_r(U,q);function pe(){return!0}Un(U,q,ee,Se.attributes,pe),jn(U,q,ee,Se.uniforms,pe,!1),Zt(U,q,q,ee)}function xe(U,q,ee,Se){_r(U,q);var pe=ee.contextDep,de=q.def(),ce="a0",se="a1",Q=q.def();U.shared.props=Q,U.batchId=de;var ne=U.scope(),K=U.scope();q(ne.entry,"for(",de,"=0;",de,"<",se,";++",de,"){",Q,"=",ce,"[",de,"];",K,"}",ne.exit);function ve(Ft){return Ft.contextDep&&pe||Ft.propDep}function Oe(Ft){return!ve(Ft)}if(ee.needsContext&&ln(U,K,ee.context),ee.needsFramebuffer&&sn(U,K,ee.framebuffer),di(U,K,ee.state,ve),ee.profile&&ve(ee.profile)&&fn(U,K,ee,!1,!0),Se)ee.useVAO?ee.drawVAO?ve(ee.drawVAO)?K(U.shared.vao,".setVAO(",ee.drawVAO.append(U,K),");"):ne(U.shared.vao,".setVAO(",ee.drawVAO.append(U,ne),");"):ne(U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"):(ne(U.shared.vao,".setVAO(null);"),Un(U,ne,ee,Se.attributes,Oe),Un(U,K,ee,Se.attributes,ve)),jn(U,ne,ee,Se.uniforms,Oe,!1),jn(U,K,ee,Se.uniforms,ve,!0),Zt(U,ne,K,ee);else{var Be=U.global.def("{}"),Lt=ee.shader.progVar.append(U,K),Mt=K.def(Lt,".id"),gt=K.def(Be,"[",Mt,"]");K(U.shared.gl,".useProgram(",Lt,".program);","if(!",gt,"){",gt,"=",Be,"[",Mt,"]=",U.link(function(Ft){return cr(Y,U,ee,Ft,2)}),"(",Lt,");}",gt,".call(this,a0[",de,"],",de,");")}}function ye(U,q){var ee=U.proc("batch",2);U.batchId="0",_r(U,ee);var Se=!1,pe=!0;Object.keys(q.context).forEach(function(Be){Se=Se||q.context[Be].propDep}),Se||(ln(U,ee,q.context),pe=!1);var de=q.framebuffer,ce=!1;de?(de.propDep?Se=ce=!0:de.contextDep&&Se&&(ce=!0),ce||sn(U,ee,de)):sn(U,ee,null),q.state.viewport&&q.state.viewport.propDep&&(Se=!0);function se(Be){return Be.contextDep&&Se||Be.propDep}Kt(U,ee,q),di(U,ee,q.state,function(Be){return!se(Be)}),(!q.profile||!se(q.profile))&&fn(U,ee,q,!1,"a1"),q.contextDep=Se,q.needsContext=pe,q.needsFramebuffer=ce;var Q=q.shader.progVar;if(Q.contextDep&&Se||Q.propDep)xe(U,ee,q,null);else{var ne=Q.append(U,ee);if(ee(U.shared.gl,".useProgram(",ne,".program);"),q.shader.program)xe(U,ee,q,q.shader.program);else{ee(U.shared.vao,".setVAO(null);");var K=U.global.def("{}"),ve=ee.def(ne,".id"),Oe=ee.def(K,"[",ve,"]");ee(U.cond(Oe).then(Oe,".call(this,a0,a1);").else(Oe,"=",K,"[",ve,"]=",U.link(function(Be){return cr(xe,U,q,Be,2)}),"(",ne,");",Oe,".call(this,a0,a1);"))}}Object.keys(q.state).length>0&&ee(U.shared.current,".dirty=true;"),U.shared.vao&&ee(U.shared.vao,".setVAO(null);")}function Tt(U,q){var ee=U.proc("scope",3);U.batchId="a2";var Se=U.shared,pe=Se.current;if(ln(U,ee,q.context),q.framebuffer&&q.framebuffer.append(U,ee),Pe(Object.keys(q.state)).forEach(function(se){var Q=q.state[se],ne=Q.append(U,ee);ui(ne)?ne.forEach(function(K,ve){It(K)?ee.set(U.next[se],"["+ve+"]",K):ee.set(U.next[se],"["+ve+"]",U.link(K,{stable:!0}))}):tt(Q)?ee.set(Se.next,"."+se,U.link(ne,{stable:!0})):ee.set(Se.next,"."+se,ne)}),fn(U,ee,q,!0,!0),[Co,Es,an,As,Oo].forEach(function(se){var Q=q.draw[se];if(Q){var ne=Q.append(U,ee);It(ne)?ee.set(Se.draw,"."+se,ne):ee.set(Se.draw,"."+se,U.link(ne),{stable:!0})}}),Object.keys(q.uniforms).forEach(function(se){var Q=q.uniforms[se].append(U,ee);Array.isArray(Q)&&(Q="["+Q.map(function(ne){return It(ne)?ne:U.link(ne,{stable:!0})})+"]"),ee.set(Se.uniforms,"["+U.link(H.id(se),{stable:!0})+"]",Q)}),Object.keys(q.attributes).forEach(function(se){var Q=q.attributes[se].append(U,ee),ne=U.scopeAttrib(se);Object.keys(new Te).forEach(function(K){ee.set(ne,"."+K,Q[K])})}),q.scopeVAO){var de=q.scopeVAO.append(U,ee);It(de)?ee.set(Se.vao,".targetVAO",de):ee.set(Se.vao,".targetVAO",U.link(de,{stable:!0}))}function ce(se){var Q=q.shader[se];if(Q){var ne=Q.append(U,ee);It(ne)?ee.set(Se.shader,"."+se,ne):ee.set(Se.shader,"."+se,U.link(ne,{stable:!0}))}}ce(qu),ce(Ss),Object.keys(q.state).length>0&&(ee(pe,".dirty=true;"),ee.exit(pe,".dirty=true;")),ee("a1(",U.shared.context,",a0,",U.batchId,");")}function nr(U){if(!(typeof U!="object"||ui(U))){for(var q=Object.keys(U),ee=0;ee<q.length;++ee)if(E.isDynamic(U[q[ee]]))return!0;return!1}}function Pr(U,q,ee){var Se=q.static[ee];if(!Se||!nr(Se))return;var pe=U.global,de=Object.keys(Se),ce=!1,se=!1,Q=!1,ne=U.global.def("{}");de.forEach(function(ve){var Oe=Se[ve];if(E.isDynamic(Oe)){typeof Oe=="function"&&(Oe=Se[ve]=E.unbox(Oe));var Be=at(Oe,null);ce=ce||Be.thisDep,Q=Q||Be.propDep,se=se||Be.contextDep}else{switch(pe(ne,".",ve,"="),typeof Oe){case"number":pe(Oe);break;case"string":pe('"',Oe,'"');break;case"object":Array.isArray(Oe)&&pe("[",Oe.join(),"]");break;default:pe(U.link(Oe));break}pe(";")}});function K(ve,Oe){de.forEach(function(Be){var Lt=Se[Be];if(E.isDynamic(Lt)){var Mt=ve.invoke(Oe,Lt);Oe(ne,".",Be,"=",Mt,";")}})}q.dynamic[ee]=new E.DynamicVariable(Ga,{thisDep:ce,contextDep:se,propDep:Q,ref:ne,append:K}),delete q.static[ee]}function Ct(U,q,ee,Se,pe){var de=lt();de.stats=de.link(pe),Object.keys(q.static).forEach(function(se){Pr(de,q,se)}),t1.forEach(function(se){Pr(de,U,se)});var ce=Hi(U,q,ee,Se,de);return ce.shader.program&&(ce.shader.program.attributes.sort(function(se,Q){return se.name<Q.name?-1:1}),ce.shader.program.uniforms.sort(function(se,Q){return se.name<Q.name?-1:1})),cn(de,ce),Tt(de,ce),ye(de,ce),r(de.compile(),{destroy:function(){ce.shader.program.destroy()}})}return{next:Pt,current:ot,procs:function(){var U=lt(),q=U.proc("poll"),ee=U.proc("refresh"),Se=U.block();q(Se),ee(Se);var pe=U.shared,de=pe.gl,ce=pe.next,se=pe.current;Se(se,".dirty=false;"),sn(U,q),sn(U,ee,null,!0);var Q;Ze&&(Q=U.link(Ze)),Z.oes_vertex_array_object&&ee(U.link(Z.oes_vertex_array_object),".bindVertexArrayOES(null);");var ne=ee.def(pe.attributes),K=ee.def(0),ve=U.cond(K,".buffer");ve.then(de,".enableVertexAttribArray(i);",de,".bindBuffer(",qa,",",K,".buffer.buffer);",de,".vertexAttribPointer(i,",K,".size,",K,".type,",K,".normalized,",K,".stride,",K,".offset);").else(de,".disableVertexAttribArray(i);",de,".vertexAttrib4f(i,",K,".x,",K,".y,",K,".z,",K,".w);",K,".buffer=null;");var Oe=U.link(Ee.maxAttributes,{stable:!0});return ee("for(var i=0;i<",Oe,";++i){",K,"=",ne,"[i];",ve,"}"),Ze&&ee("for(var i=0;i<",Oe,";++i){",Q,".vertexAttribDivisorANGLE(i,",ne,"[i].divisor);","}"),ee(U.shared.vao,".currentVAO=null;",U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"),Object.keys(Re).forEach(function(Be){var Lt=Re[Be],Mt=Se.def(ce,".",Be),gt=U.block();gt("if(",Mt,"){",de,".enable(",Lt,")}else{",de,".disable(",Lt,")}",se,".",Be,"=",Mt,";"),ee(gt),q("if(",Mt,"!==",se,".",Be,"){",gt,"}")}),Object.keys(mt).forEach(function(Be){var Lt=mt[Be],Mt=ot[Be],gt,Ft,Et=U.block();if(Et(de,".",Lt,"("),ui(Mt)){var Dt=Mt.length;gt=U.global.def(ce,".",Be),Ft=U.global.def(se,".",Be),Et(ge(Dt,function(wt){return gt+"["+wt+"]"}),");",ge(Dt,function(wt){return Ft+"["+wt+"]="+gt+"["+wt+"];"}).join("")),q("if(",ge(Dt,function(wt){return gt+"["+wt+"]!=="+Ft+"["+wt+"]"}).join("||"),"){",Et,"}")}else gt=Se.def(ce,".",Be),Ft=Se.def(se,".",Be),Et(gt,");",se,".",Be,"=",gt,";"),q("if(",gt,"!==",Ft,"){",Et,"}");ee(Et)}),U.compile()}(),compile:Ct}}function xt(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var Ut=34918,or=34919,Rr=35007,pr=function(I,H){if(!H.ext_disjoint_timer_query)return null;var Z=[];function Ee(){return Z.pop()||H.ext_disjoint_timer_query.createQueryEXT()}function Me(Ve){Z.push(Ve)}var be=[];function _e(Ve){var Ze=Ee();H.ext_disjoint_timer_query.beginQueryEXT(Rr,Ze),be.push(Ze),it(be.length-1,be.length,Ve)}function Ye(){H.ext_disjoint_timer_query.endQueryEXT(Rr)}function Xe(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var et=[];function ft(){return et.pop()||new Xe}function Rt(Ve){et.push(Ve)}var St=[];function it(Ve,Ze,Ne){var pt=ft();pt.startQueryIndex=Ve,pt.endQueryIndex=Ze,pt.sum=0,pt.stats=Ne,St.push(pt)}var Ge=[],he=[];function Te(){var Ve,Ze,Ne=be.length;if(Ne!==0){he.length=Math.max(he.length,Ne+1),Ge.length=Math.max(Ge.length,Ne+1),Ge[0]=0,he[0]=0;var pt=0;for(Ve=0,Ze=0;Ze<be.length;++Ze){var ot=be[Ze];H.ext_disjoint_timer_query.getQueryObjectEXT(ot,or)?(pt+=H.ext_disjoint_timer_query.getQueryObjectEXT(ot,Ut),Me(ot)):be[Ve++]=ot,Ge[Ze+1]=pt,he[Ze+1]=Ve}for(be.length=Ve,Ve=0,Ze=0;Ze<St.length;++Ze){var Pt=St[Ze],$e=Pt.startQueryIndex,Re=Pt.endQueryIndex;Pt.sum+=Ge[Re]-Ge[$e];var mt=he[$e],Ae=he[Re];Ae===mt?(Pt.stats.gpuTime+=Pt.sum/1e6,Rt(Pt)):(Pt.startQueryIndex=mt,Pt.endQueryIndex=Ae,St[Ve++]=Pt)}St.length=Ve}}return{beginQuery:_e,endQuery:Ye,pushScopeStats:it,update:Te,getNumPendingQueries:function(){return be.length},clear:function(){Z.push.apply(Z,be);for(var Ve=0;Ve<Z.length;Ve++)H.ext_disjoint_timer_query.deleteQueryEXT(Z[Ve]);be.length=0,Z.length=0},restore:function(){be.length=0,Z.length=0}}},rt=16384,Ht=256,Xt=1024,ur=34962,Ar="webglcontextlost",zr="webglcontextrestored",Xr=1,vn=2,En=3;function on(I,H){for(var Z=0;Z<I.length;++Z)if(I[Z]===H)return Z;return-1}function In(I){var H=j(I);if(!H)return null;var Z=H.gl,Ee=Z.getContextAttributes();Z.isContextLost();var Me=te(Z,H);if(!Me)return null;var be=w(),_e=xt(),Ye=H.cachedCode||{},Xe=Me.extensions,et=pr(Z,Xe),ft=x(),Rt=Z.drawingBufferWidth,St=Z.drawingBufferHeight,it={tick:0,time:0,viewportWidth:Rt,viewportHeight:St,framebufferWidth:Rt,framebufferHeight:St,drawingBufferWidth:Rt,drawingBufferHeight:St,pixelRatio:H.pixelRatio},Ge={},he={elements:null,primitive:4,count:-1,offset:0,instances:-1},Te=Yl(Z,Xe),Ve=Pp(Z,_e,H,pt),Ze=es(Z,Xe,Ve,_e),Ne=Wy(Z,Xe,Te,_e,Ve,Ze,he);function pt(Zt){return Ne.destroyBuffer(Zt)}var ot=mv(Z,be,_e,H),Pt=$y(Z,Xe,Te,function(){mt.procs.poll()},it,_e,H),$e=cv(Z,Xe,Te,_e,H),Re=Tc(Z,Xe,Te,Pt,$e,_e),mt=Wt(Z,be,Xe,Te,Ve,Ze,Pt,Re,Ge,Ne,ot,he,it,et,Ye,H),Ae=yv(Z,Re,mt.procs.poll,it),ht=mt.next,Je=Z.canvas,It=[],tr=[],bt=[],Bt=[H.onDestroy],lt=null;function rr(){if(It.length===0){et&&et.update(),lt=null;return}lt=k.next(rr),sn();for(var Zt=It.length-1;Zt>=0;--Zt){var cr=It[Zt];cr&&cr(it,null,0)}Z.flush(),et&&et.update()}function lr(){!lt&&It.length>0&&(lt=k.next(rr))}function hr(){lt&&(k.cancel(rr),lt=null)}function un(Zt){Zt.preventDefault(),hr(),tr.forEach(function(cr){cr()})}function sr(Zt){Z.getError(),Me.restore(),ot.restore(),Ve.restore(),Pt.restore(),$e.restore(),Re.restore(),Ne.restore(),et&&et.restore(),mt.procs.refresh(),lr(),bt.forEach(function(cr){cr()})}Je&&(Je.addEventListener(Ar,un,!1),Je.addEventListener(zr,sr,!1));function Xn(){It.length=0,hr(),Je&&(Je.removeEventListener(Ar,un),Je.removeEventListener(zr,sr)),ot.clear(),Re.clear(),$e.clear(),Ne.clear(),Pt.clear(),Ze.clear(),Ve.clear(),et&&et.clear(),Bt.forEach(function(Zt){Zt()})}function Tr(Zt){function cr(pe){var de=r({},pe);delete de.uniforms,delete de.attributes,delete de.context,delete de.vao,"stencil"in de&&de.stencil.op&&(de.stencil.opBack=de.stencil.opFront=de.stencil.op,delete de.stencil.op);function ce(se){if(se in de){var Q=de[se];delete de[se],Object.keys(Q).forEach(function(ne){de[se+"."+ne]=Q[ne]})}}return ce("blend"),ce("depth"),ce("cull"),ce("stencil"),ce("polygonOffset"),ce("scissor"),ce("sample"),"vao"in pe&&(de.vao=pe.vao),de}function Or(pe,de){var ce={},se={};return Object.keys(pe).forEach(function(Q){var ne=pe[Q];if(E.isDynamic(ne)){se[Q]=E.unbox(ne,Q);return}else if(de&&Array.isArray(ne)){for(var K=0;K<ne.length;++K)if(E.isDynamic(ne[K])){se[Q]=E.unbox(ne,Q);return}}ce[Q]=ne}),{dynamic:se,static:ce}}var cn=Or(Zt.context||{},!0),Y=Or(Zt.uniforms||{},!0),xe=Or(Zt.attributes||{},!1),ye=Or(cr(Zt),!1),Tt={gpuTime:0,cpuTime:0,count:0},nr=mt.compile(ye,xe,Y,cn,Tt),Pr=nr.draw,Ct=nr.batch,U=nr.scope,q=[];function ee(pe){for(;q.length<pe;)q.push(null);return q}function Se(pe,de){var ce;if(typeof pe=="function")return U.call(this,null,pe,0);if(typeof de=="function")if(typeof pe=="number")for(ce=0;ce<pe;++ce)U.call(this,null,de,ce);else if(Array.isArray(pe))for(ce=0;ce<pe.length;++ce)U.call(this,pe[ce],de,ce);else return U.call(this,pe,de,0);else if(typeof pe=="number"){if(pe>0)return Ct.call(this,ee(pe|0),pe|0)}else if(Array.isArray(pe)){if(pe.length)return Ct.call(this,pe,pe.length)}else return Pr.call(this,pe)}return r(Se,{stats:Tt,destroy:function(){nr.destroy()}})}var An=Re.setFBO=Tr({framebuffer:E.define.call(null,Xr,"framebuffer")});function Kn(Zt,cr){var Or=0;mt.procs.poll();var cn=cr.color;cn&&(Z.clearColor(+cn[0]||0,+cn[1]||0,+cn[2]||0,+cn[3]||0),Or|=rt),"depth"in cr&&(Z.clearDepth(+cr.depth),Or|=Ht),"stencil"in cr&&(Z.clearStencil(cr.stencil|0),Or|=Xt),Z.clear(Or)}function Fn(Zt){if("framebuffer"in Zt)if(Zt.framebuffer&&Zt.framebuffer_reglType==="framebufferCube")for(var cr=0;cr<6;++cr)An(r({framebuffer:Zt.framebuffer.faces[cr]},Zt),Kn);else An(Zt,Kn);else Kn(null,Zt)}function Hi(Zt){It.push(Zt);function cr(){var Or=on(It,Zt);function cn(){var Y=on(It,cn);It[Y]=It[It.length-1],It.length-=1,It.length<=0&&hr()}It[Or]=cn}return lr(),{cancel:cr}}function ln(){var Zt=ht.viewport,cr=ht.scissor_box;Zt[0]=Zt[1]=cr[0]=cr[1]=0,it.viewportWidth=it.framebufferWidth=it.drawingBufferWidth=Zt[2]=cr[2]=Z.drawingBufferWidth,it.viewportHeight=it.framebufferHeight=it.drawingBufferHeight=Zt[3]=cr[3]=Z.drawingBufferHeight}function sn(){it.tick+=1,it.time=di(),ln(),mt.procs.poll()}function Kt(){Pt.refresh(),ln(),mt.procs.refresh(),et&&et.update()}function di(){return(x()-ft)/1e3}Kt();function _r(Zt,cr){var Or;switch(Zt){case"frame":return Hi(cr);case"lost":Or=tr;break;case"restore":Or=bt;break;case"destroy":Or=Bt;break}return Or.push(cr),{cancel:function(){for(var cn=0;cn<Or.length;++cn)if(Or[cn]===cr){Or[cn]=Or[Or.length-1],Or.pop();return}}}}function fn(){return Ye}function Un(Zt){Object.entries(Zt).forEach(function(cr){Ye[cr[0]]=cr[1]})}var jn=r(Tr,{clear:Fn,prop:E.define.bind(null,Xr),context:E.define.bind(null,vn),this:E.define.bind(null,En),draw:Tr({}),buffer:function(Zt){return Ve.create(Zt,ur,!1,!1)},elements:function(Zt){return Ze.create(Zt,!1)},texture:Pt.create2D,cube:Pt.createCube,renderbuffer:$e.create,framebuffer:Re.create,framebufferCube:Re.createCube,vao:Ne.createVAO,attributes:Ee,frame:Hi,on:_r,limits:Te,hasExtension:function(Zt){return Te.extensions.indexOf(Zt.toLowerCase())>=0},read:Ae,destroy:Xn,_gl:Z,_refresh:Kt,poll:function(){sn(),et&&et.update()},now:di,stats:_e,getCachedCode:fn,preloadCachedCode:Un});return H.onDone(null,jn),jn}return In})})(vN);var Gee=vN.exports,Wee=_u,Hee=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},fk(t)?t={container:t}:qee(t)?t={container:t}:Vee(t)?t={gl:t}:t=Wee(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=Jt.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}fk(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=ck(),t.container.appendChild(t.canvas),sk(t))}else if(!t.canvas)if(typeof document<"u")t.container=document.body||document.documentElement,t.canvas=ck(),t.container.appendChild(t.canvas),sk(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch{}return t.gl}),t.gl};function sk(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*Jt.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*Jt.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function fk(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function qee(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function Vee(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function ck(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}var Yee=pN,Xee=[32,126],Kee=Qee;function Qee(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||Xee;if(n&&typeof n!="string"&&(n=Yee(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],l=a[0],s=0;l<=a[1];l++)o[s++]=String.fromCharCode(l);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var f=r.getContext("2d");f.fillStyle="#000",f.fillRect(0,0,r.width,r.height),f.font=n,f.textAlign="center",f.textBaseline="middle",f.fillStyle="#fff";for(var d=i[0]/2,g=i[1]/2,l=0;l<a.length;l++)f.fillText(a[l],d,g),(d+=i[0])>t[0]-i[0]/2&&(d=i[0]/2,g+=i[1]);return r}var vr={},Gr={},OE=32;Gr.INT_BITS=OE;Gr.INT_MAX=2147483647;Gr.INT_MIN=-1<<OE-1;Gr.sign=function(e){return(e>0)-(e<0)};Gr.abs=function(e){var t=e>>OE-1;return(e^t)-t};Gr.min=function(e,t){return t^(e^t)&-(e<t)};Gr.max=function(e,t){return e^(e^t)&-(e<t)};Gr.isPow2=function(e){return!(e&e-1)&&!!e};Gr.log2=function(e){var t,r;return t=(e>65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Gr.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Gr.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function mN(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Gr.countTrailingZeros=mN;Gr.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Gr.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Gr.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var Gh=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<<i&255}})(Gh);Gr.reverse=function(e){return Gh[e&255]<<24|Gh[e>>>8&255]<<16|Gh[e>>>16&255]<<8|Gh[e>>>24&255]};Gr.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Gr.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Gr.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Gr.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Gr.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>mN(e)+1};function gN(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a<n;++a)i[a]=t;else for(a=0;a<n;++a)i[a]=gN(e,t,r+1);return i}function Zee(e,t){var r,n;for(r=new Array(e),n=0;n<e;++n)r[n]=t;return r}function Jee(e,t){switch(typeof t>"u"&&(t=0),typeof e){case"number":if(e>0)return Zee(e|0,t);break;case"object":if(typeof e.length=="number")return gN(e,t,0);break}return[]}var ete=Jee,yN={},ay={};ay.byteLength=nte;ay.toByteArray=ate;ay.fromByteArray=lte;var pa=[],Ci=[],tte=typeof Uint8Array<"u"?Uint8Array:Array,Kx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var $s=0,rte=Kx.length;$s<rte;++$s)pa[$s]=Kx[$s],Ci[Kx.charCodeAt($s)]=$s;Ci["-".charCodeAt(0)]=62;Ci["_".charCodeAt(0)]=63;function bN(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function nte(e){var t=bN(e),r=t[0],n=t[1];return(r+n)*3/4-n}function ite(e,t,r){return(t+r)*3/4-r}function ate(e){var t,r=bN(e),n=r[0],i=r[1],a=new tte(ite(e,n,i)),o=0,l=i>0?n-4:n,s;for(s=0;s<l;s+=4)t=Ci[e.charCodeAt(s)]<<18|Ci[e.charCodeAt(s+1)]<<12|Ci[e.charCodeAt(s+2)]<<6|Ci[e.charCodeAt(s+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Ci[e.charCodeAt(s)]<<2|Ci[e.charCodeAt(s+1)]>>4,a[o++]=t&255),i===1&&(t=Ci[e.charCodeAt(s)]<<10|Ci[e.charCodeAt(s+1)]<<4|Ci[e.charCodeAt(s+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function ote(e){return pa[e>>18&63]+pa[e>>12&63]+pa[e>>6&63]+pa[e&63]}function ute(e,t,r){for(var n,i=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(ote(n));return i.join("")}function lte(e){for(var t,r=e.length,n=r%3,i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(ute(e,o,o+a>l?l:o+a));return n===1?(t=e[r-1],i.push(pa[t>>2]+pa[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(pa[t>>10]+pa[t>>4&63]+pa[t<<2&63]+"=")),i.join("")}var kE={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */kE.read=function(e,t,r,n,i){var a,o,l=i*8-n-1,s=(1<<l)-1,f=s>>1,d=-7,g=r?i-1:0,v=r?-1:1,y=e[t+g];for(g+=v,a=y&(1<<-d)-1,y>>=-d,d+=l;d>0;a=a*256+e[t+g],g+=v,d-=8);for(o=a&(1<<-d)-1,a>>=-d,d+=n;d>0;o=o*256+e[t+g],g+=v,d-=8);if(a===0)a=1-f;else{if(a===s)return o?NaN:(y?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-f}return(y?-1:1)*o*Math.pow(2,a-n)};kE.write=function(e,t,r,n,i,a){var o,l,s,f=a*8-i-1,d=(1<<f)-1,g=d>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:a-1,E=n?1:-1,k=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+g>=1?t+=v/s:t+=v*Math.pow(2,1-g),t*s>=2&&(o++,s/=2),o+g>=d?(l=0,o=d):o+g>=1?(l=(t*s-1)*Math.pow(2,i),o=o+g):(l=t*Math.pow(2,g-1)*Math.pow(2,i),o=0));i>=8;e[r+y]=l&255,y+=E,l/=256,i-=8);for(o=o<<i|l,f+=i;f>0;e[r+y]=o&255,y+=E,o/=256,f-=8);e[r+y-E]|=k*128};/*!
1095
+ `),Ce;if(H&&(Ce=yv(he),H[Ce]))return H[Ce].apply(null,ke);var Ve=Function.apply(null,Ee.concat(he));return H&&(H[Ce]=Ve),Ve.apply(null,ke)}return{global:ft,link:_e,block:Ye,proc:St,scope:Xe,cond:et,compile:it}}var Ua="xyzw".split(""),Nc=5121,ja=1,zu=2,Uu=0,gs=1,Lc=2,ys=3,Ga=4,Dc=5,Ev=6,Av="dither",Cv="blend.enable",Tv="blend.color",bs="blend.equation",xs="blend.func",$c="depth.enable",Bc="depth.func",Ov="depth.range",ju="depth.mask",zc="colorMask",Mv="cull.enable",Uc="cull.face",ws="frontFace",jc="lineWidth",Gu="polygonOffset.enable",Co="polygonOffset.offset",Gc="sample.alpha",Wc="sample.enable",Wu="sample.coverage",Yn="stencil.enable",Hc="stencil.mask",qc="stencil.func",Hu="stencil.opFront",Wa="stencil.opBack",kv="scissor.enable",_s="scissor.box",Gi="viewport",Ha="profile",fa="framebuffer",qu="vert",Ss="frag",To="elements",Oo="primitive",an="count",Es="offset",As="instances",hi="vao",Vu="Width",Yu="Height",Mo=fa+Vu,ko=fa+Yu,Jy=Gi+Vu,Rv=Gi+Yu,Vc="drawingBuffer",Yc=Vc+Vu,Xc=Vc+Yu,e1=[xs,bs,qc,Hu,Wa,Wu,Gi,_s,Co],qa=34962,Kc=34963,t1=2884,r1=3042,Pv=3024,Iv=2960,Cs=2929,Fv=3089,Ts=32823,Nv=32926,Xu=32928,Br=5126,Os=35664,Wi=35665,Ro=35666,Ms=5124,Qc=35667,Ku=35668,Po=35669,Zc=35670,Jc=35671,eh=35672,th=35673,rh=35674,Qu=35675,nh=35676,ih=35678,u=35680,c=4,h=1028,p=1029,m=2304,b=2305,O=32775,S=32776,P=519,N=7680,D=0,B=1,z=32774,ie=513,oe=36160,G=36064,X={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},J={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},ue={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},le={cw:m,ccw:b};function re(I){return Array.isArray(I)||rn(I)||ai(I)}function Pe(I){return I.sort(function(H,Z){return H===Gi?-1:Z===Gi?1:H<Z?-1:1})}function Ue(I,H,Z,Ee){this.thisDep=I,this.contextDep=H,this.propDep=Z,this.append=Ee}function tt(I){return I&&!(I.thisDep||I.contextDep||I.propDep)}function je(I){return new Ue(!1,!1,!1,I)}function at(I,H){var Z=I.type;if(Z===Uu){var Ee=I.data.length;return new Ue(!0,Ee>=1,Ee>=2,H)}else if(Z===Ga){var ke=I.data;return new Ue(ke.thisDep,ke.contextDep,ke.propDep,H)}else{if(Z===Dc)return new Ue(!1,!1,!1,H);if(Z===Ev){for(var be=!1,_e=!1,Ye=!1,Xe=0;Xe<I.data.length;++Xe){var et=I.data[Xe];if(et.type===gs)Ye=!0;else if(et.type===Lc)_e=!0;else if(et.type===ys)be=!0;else if(et.type===Uu){be=!0;var ft=et.data;ft>=1&&(_e=!0),ft>=2&&(Ye=!0)}else et.type===Ga&&(be=be||et.data.thisDep,_e=_e||et.data.contextDep,Ye=Ye||et.data.propDep)}return new Ue(be,_e,Ye,H)}else return new Ue(Z===ys,Z===Lc,Z===gs,H)}}var vt=new Ue(!1,!1,!1,function(){});function Wt(I,H,Z,Ee,ke,be,_e,Ye,Xe,et,ft,Rt,St,it,Ge,he){var Ce=et.Record,Ve={add:32774,subtract:32778,"reverse subtract":32779};Z.ext_blend_minmax&&(Ve.min=O,Ve.max=S);var Ze=Z.angle_instanced_arrays,Ne=Z.webgl_draw_buffers,pt=Z.oes_vertex_array_object,ot={dirty:!0,profile:he.profile},Pt={},$e=[],Re={},mt={};function Ae(U){return U.replace(".","_")}function ht(U,q,ee){var Se=Ae(U);$e.push(U),Pt[Se]=ot[Se]=!!ee,Re[Se]=q}function Je(U,q,ee){var Se=Ae(U);$e.push(U),Array.isArray(ee)?(ot[Se]=ee.slice(),Pt[Se]=ee.slice()):ot[Se]=Pt[Se]=ee,mt[Se]=q}function It(U){return!!isNaN(U)}ht(Av,Pv),ht(Cv,r1),Je(Tv,"blendColor",[0,0,0,0]),Je(bs,"blendEquationSeparate",[z,z]),Je(xs,"blendFuncSeparate",[B,D,B,D]),ht($c,Cs,!0),Je(Bc,"depthFunc",ie),Je(Ov,"depthRange",[0,1]),Je(ju,"depthMask",!0),Je(zc,zc,[!0,!0,!0,!0]),ht(Mv,t1),Je(Uc,"cullFace",p),Je(ws,ws,b),Je(jc,jc,1),ht(Gu,Ts),Je(Co,"polygonOffset",[0,0]),ht(Gc,Nv),ht(Wc,Xu),Je(Wu,"sampleCoverage",[1,!1]),ht(Yn,Iv),Je(Hc,"stencilMask",-1),Je(qc,"stencilFunc",[P,0,-1]),Je(Hu,"stencilOpSeparate",[h,N,N,N]),Je(Wa,"stencilOpSeparate",[p,N,N,N]),ht(kv,Fv),Je(_s,"scissor",[0,0,I.drawingBufferWidth,I.drawingBufferHeight]),Je(Gi,Gi,[0,0,I.drawingBufferWidth,I.drawingBufferHeight]);var tr={gl:I,context:St,strings:H,next:Pt,current:ot,draw:Rt,elements:be,buffer:ke,shader:ft,attributes:et.state,vao:et,uniforms:Xe,framebuffer:Ye,extensions:Z,timer:it,isBufferArgs:re},bt={primTypes:nn,compareFuncs:J,blendFuncs:X,blendEquations:Ve,stencilOps:ue,glTypes:Ou,orientationType:le};Ne&&(bt.backBuffer=[p],bt.drawBuffer=ge(Ee.maxDrawbuffers,function(U){return U===0?[0]:ge(U,function(q){return G+q})}));var Bt=0;function lt(){var U=Zy({cache:Ge}),q=U.link,ee=U.global;U.id=Bt++,U.batchId="0";var Se=q(tr),pe=U.shared={props:"a0"};Object.keys(tr).forEach(function(ne){pe[ne]=ee.def(Se,".",ne)});var de=U.next={},ce=U.current={};Object.keys(mt).forEach(function(ne){Array.isArray(ot[ne])&&(de[ne]=ee.def(pe.next,".",ne),ce[ne]=ee.def(pe.current,".",ne))});var se=U.constants={};Object.keys(bt).forEach(function(ne){se[ne]=ee.def(JSON.stringify(bt[ne]))}),U.invoke=function(ne,K){switch(K.type){case Uu:var ve=["this",pe.context,pe.props,U.batchId];return ne.def(q(K.data),".call(",ve.slice(0,Math.max(K.data.length+1,4)),")");case gs:return ne.def(pe.props,K.data);case Lc:return ne.def(pe.context,K.data);case ys:return ne.def("this",K.data);case Ga:return K.data.append(U,ne),K.data.ref;case Dc:return K.data.toString();case Ev:return K.data.map(function(Oe){return U.invoke(ne,Oe)})}},U.attribCache={};var Q={};return U.scopeAttrib=function(ne){var K=H.id(ne);if(K in Q)return Q[K];var ve=et.scope[K];ve||(ve=et.scope[K]=new Ce);var Oe=Q[K]=q(ve);return Oe},U}function rr(U){var q=U.static,ee=U.dynamic,Se;if(Ha in q){var pe=!!q[Ha];Se=je(function(ce,se){return pe}),Se.enable=pe}else if(Ha in ee){var de=ee[Ha];Se=at(de,function(ce,se){return ce.invoke(se,de)})}return Se}function lr(U,q){var ee=U.static,Se=U.dynamic;if(fa in ee){var pe=ee[fa];return pe?(pe=Ye.getFramebuffer(pe),je(function(ce,se){var Q=ce.link(pe),ne=ce.shared;se.set(ne.framebuffer,".next",Q);var K=ne.context;return se.set(K,"."+Mo,Q+".width"),se.set(K,"."+ko,Q+".height"),Q})):je(function(ce,se){var Q=ce.shared;se.set(Q.framebuffer,".next","null");var ne=Q.context;return se.set(ne,"."+Mo,ne+"."+Yc),se.set(ne,"."+ko,ne+"."+Xc),"null"})}else if(fa in Se){var de=Se[fa];return at(de,function(ce,se){var Q=ce.invoke(se,de),ne=ce.shared,K=ne.framebuffer,ve=se.def(K,".getFramebuffer(",Q,")");se.set(K,".next",ve);var Oe=ne.context;return se.set(Oe,"."+Mo,ve+"?"+ve+".width:"+Oe+"."+Yc),se.set(Oe,"."+ko,ve+"?"+ve+".height:"+Oe+"."+Xc),ve})}else return null}function hr(U,q,ee){var Se=U.static,pe=U.dynamic;function de(Q){if(Q in Se){var ne=Se[Q],K=!0,ve=ne.x|0,Oe=ne.y|0,Be,Lt;return"width"in ne?Be=ne.width|0:K=!1,"height"in ne?Lt=ne.height|0:K=!1,new Ue(!K&&q&&q.thisDep,!K&&q&&q.contextDep,!K&&q&&q.propDep,function(Ft,Et){var Dt=Ft.shared.context,wt=Be;"width"in ne||(wt=Et.def(Dt,".",Mo,"-",ve));var Ot=Lt;return"height"in ne||(Ot=Et.def(Dt,".",ko,"-",Oe)),[ve,Oe,wt,Ot]})}else if(Q in pe){var kt=pe[Q],gt=at(kt,function(Ft,Et){var Dt=Ft.invoke(Et,kt),wt=Ft.shared.context,Ot=Et.def(Dt,".x|0"),Mt=Et.def(Dt,".y|0"),Vt=Et.def('"width" in ',Dt,"?",Dt,".width|0:","(",wt,".",Mo,"-",Ot,")"),Ir=Et.def('"height" in ',Dt,"?",Dt,".height|0:","(",wt,".",ko,"-",Mt,")");return[Ot,Mt,Vt,Ir]});return q&&(gt.thisDep=gt.thisDep||q.thisDep,gt.contextDep=gt.contextDep||q.contextDep,gt.propDep=gt.propDep||q.propDep),gt}else return q?new Ue(q.thisDep,q.contextDep,q.propDep,function(Ft,Et){var Dt=Ft.shared.context;return[0,0,Et.def(Dt,".",Mo),Et.def(Dt,".",ko)]}):null}var ce=de(Gi);if(ce){var se=ce;ce=new Ue(ce.thisDep,ce.contextDep,ce.propDep,function(Q,ne){var K=se.append(Q,ne),ve=Q.shared.context;return ne.set(ve,"."+Jy,K[2]),ne.set(ve,"."+Rv,K[3]),K})}return{viewport:ce,scissor_box:de(_s)}}function un(U,q){var ee=U.static,Se=typeof ee[Ss]=="string"&&typeof ee[qu]=="string";if(Se){if(Object.keys(q.dynamic).length>0)return null;var pe=q.static,de=Object.keys(pe);if(de.length>0&&typeof pe[de[0]]=="number"){for(var ce=[],se=0;se<de.length;++se)ce.push([pe[de[se]]|0,de[se]]);return ce}}return null}function sr(U,q,ee){var Se=U.static,pe=U.dynamic;function de(K){if(K in Se){var ve=H.id(Se[K]),Oe=je(function(){return ve});return Oe.id=ve,Oe}else if(K in pe){var Be=pe[K];return at(Be,function(Lt,kt){var gt=Lt.invoke(kt,Be),Ft=kt.def(Lt.shared.strings,".id(",gt,")");return Ft})}return null}var ce=de(Ss),se=de(qu),Q=null,ne;return tt(ce)&&tt(se)?(Q=ft.program(se.id,ce.id,null,ee),ne=je(function(K,ve){return K.link(Q)})):ne=new Ue(ce&&ce.thisDep||se&&se.thisDep,ce&&ce.contextDep||se&&se.contextDep,ce&&ce.propDep||se&&se.propDep,function(K,ve){var Oe=K.shared.shader,Be;ce?Be=ce.append(K,ve):Be=ve.def(Oe,".",Ss);var Lt;se?Lt=se.append(K,ve):Lt=ve.def(Oe,".",qu);var kt=Oe+".program("+Lt+","+Be;return ve.def(kt+")")}),{frag:ce,vert:se,progVar:ne,program:Q}}function Xn(U,q){var ee=U.static,Se=U.dynamic,pe={},de=!1;function ce(){if(hi in ee){var Et=ee[hi];return Et!==null&&et.getVAO(Et)===null&&(Et=et.createVAO(Et)),de=!0,pe.vao=Et,je(function(wt){var Ot=et.getVAO(Et);return Ot?wt.link(Ot):"null"})}else if(hi in Se){de=!0;var Dt=Se[hi];return at(Dt,function(wt,Ot){var Mt=wt.invoke(Ot,Dt);return Ot.def(wt.shared.vao+".getVAO("+Mt+")")})}return null}var se=ce(),Q=!1;function ne(){if(To in ee){var Et=ee[To];if(pe.elements=Et,re(Et)){var Dt=pe.elements=be.create(Et,!0);Et=be.getElements(Dt),Q=!0}else Et&&(Et=be.getElements(Et),Q=!0);var wt=je(function(Mt,Vt){if(Et){var Ir=Mt.link(Et);return Mt.ELEMENTS=Ir,Ir}return Mt.ELEMENTS=null,null});return wt.value=Et,wt}else if(To in Se){Q=!0;var Ot=Se[To];return at(Ot,function(Mt,Vt){var Ir=Mt.shared,Qn=Ir.isBufferArgs,Va=Ir.elements,Io=Mt.invoke(Vt,Ot),Fo=Vt.def("null"),Ei=Vt.def(Qn,"(",Io,")"),ah=Mt.cond(Ei).then(Fo,"=",Va,".createStream(",Io,");").else(Fo,"=",Va,".getElements(",Io,");");return Vt.entry(ah),Vt.exit(Mt.cond(Ei).then(Va,".destroyStream(",Fo,");")),Mt.ELEMENTS=Fo,Fo})}else if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(Mt,Vt){return Vt.def(Mt.shared.vao+".currentVAO?"+Mt.shared.elements+".getElements("+Mt.shared.vao+".currentVAO.elements):null")});return null}var K=ne();function ve(){if(Oo in ee){var Et=ee[Oo];return pe.primitive=Et,je(function(wt,Ot){return nn[Et]})}else if(Oo in Se){var Dt=Se[Oo];return at(Dt,function(wt,Ot){var Mt=wt.constants.primTypes,Vt=wt.invoke(Ot,Dt);return Ot.def(Mt,"[",Vt,"]")})}else{if(Q)return tt(K)?K.value?je(function(wt,Ot){return Ot.def(wt.ELEMENTS,".primType")}):je(function(){return c}):new Ue(K.thisDep,K.contextDep,K.propDep,function(wt,Ot){var Mt=wt.ELEMENTS;return Ot.def(Mt,"?",Mt,".primType:",c)});if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(wt,Ot){return Ot.def(wt.shared.vao+".currentVAO?"+wt.shared.vao+".currentVAO.primitive:"+c)})}return null}function Oe(Et,Dt){if(Et in ee){var wt=ee[Et]|0;return Dt?pe.offset=wt:pe.instances=wt,je(function(Mt,Vt){return Dt&&(Mt.OFFSET=wt),wt})}else if(Et in Se){var Ot=Se[Et];return at(Ot,function(Mt,Vt){var Ir=Mt.invoke(Vt,Ot);return Dt&&(Mt.OFFSET=Ir),Ir})}else if(Dt){if(Q)return je(function(Mt,Vt){return Mt.OFFSET=0,0});if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(Mt,Vt){return Vt.def(Mt.shared.vao+".currentVAO?"+Mt.shared.vao+".currentVAO.offset:0")})}else if(de)return new Ue(se.thisDep,se.contextDep,se.propDep,function(Mt,Vt){return Vt.def(Mt.shared.vao+".currentVAO?"+Mt.shared.vao+".currentVAO.instances:-1")});return null}var Be=Oe(Es,!0);function Lt(){if(an in ee){var Et=ee[an]|0;return pe.count=Et,je(function(){return Et})}else if(an in Se){var Dt=Se[an];return at(Dt,function(Vt,Ir){var Qn=Vt.invoke(Ir,Dt);return Qn})}else if(Q)if(tt(K)){if(K)return Be?new Ue(Be.thisDep,Be.contextDep,Be.propDep,function(Vt,Ir){var Qn=Ir.def(Vt.ELEMENTS,".vertCount-",Vt.OFFSET);return Qn}):je(function(Vt,Ir){return Ir.def(Vt.ELEMENTS,".vertCount")});var wt=je(function(){return-1});return wt}else{var Ot=new Ue(K.thisDep||Be.thisDep,K.contextDep||Be.contextDep,K.propDep||Be.propDep,function(Vt,Ir){var Qn=Vt.ELEMENTS;return Vt.OFFSET?Ir.def(Qn,"?",Qn,".vertCount-",Vt.OFFSET,":-1"):Ir.def(Qn,"?",Qn,".vertCount:-1")});return Ot}else if(de){var Mt=new Ue(se.thisDep,se.contextDep,se.propDep,function(Vt,Ir){return Ir.def(Vt.shared.vao,".currentVAO?",Vt.shared.vao,".currentVAO.count:-1")});return Mt}return null}var kt=ve(),gt=Lt(),Ft=Oe(As,!1);return{elements:K,primitive:kt,count:gt,instances:Ft,offset:Be,vao:se,vaoActive:de,elementsActive:Q,static:pe}}function Cr(U,q){var ee=U.static,Se=U.dynamic,pe={};return $e.forEach(function(de){var ce=Ae(de);function se(Q,ne){if(de in ee){var K=Q(ee[de]);pe[ce]=je(function(){return K})}else if(de in Se){var ve=Se[de];pe[ce]=at(ve,function(Oe,Be){return ne(Oe,Be,Oe.invoke(Be,ve))})}}switch(de){case Mv:case Cv:case Av:case Yn:case $c:case kv:case Gu:case Gc:case Wc:case ju:return se(function(Q){return Q},function(Q,ne,K){return K});case Bc:return se(function(Q){return J[Q]},function(Q,ne,K){var ve=Q.constants.compareFuncs;return ne.def(ve,"[",K,"]")});case Ov:return se(function(Q){return Q},function(Q,ne,K){var ve=ne.def("+",K,"[0]"),Oe=ne.def("+",K,"[1]");return[ve,Oe]});case xs:return se(function(Q){var ne="srcRGB"in Q?Q.srcRGB:Q.src,K="srcAlpha"in Q?Q.srcAlpha:Q.src,ve="dstRGB"in Q?Q.dstRGB:Q.dst,Oe="dstAlpha"in Q?Q.dstAlpha:Q.dst;return[X[ne],X[ve],X[K],X[Oe]]},function(Q,ne,K){var ve=Q.constants.blendFuncs;function Oe(Dt,wt){var Ot=ne.def('"',Dt,wt,'" in ',K,"?",K,".",Dt,wt,":",K,".",Dt);return Ot}var Be=Oe("src","RGB"),Lt=Oe("dst","RGB"),kt=ne.def(ve,"[",Be,"]"),gt=ne.def(ve,"[",Oe("src","Alpha"),"]"),Ft=ne.def(ve,"[",Lt,"]"),Et=ne.def(ve,"[",Oe("dst","Alpha"),"]");return[kt,Ft,gt,Et]});case bs:return se(function(Q){if(typeof Q=="string")return[Ve[Q],Ve[Q]];if(typeof Q=="object")return[Ve[Q.rgb],Ve[Q.alpha]]},function(Q,ne,K){var ve=Q.constants.blendEquations,Oe=ne.def(),Be=ne.def(),Lt=Q.cond("typeof ",K,'==="string"');return Lt.then(Oe,"=",Be,"=",ve,"[",K,"];"),Lt.else(Oe,"=",ve,"[",K,".rgb];",Be,"=",ve,"[",K,".alpha];"),ne(Lt),[Oe,Be]});case Tv:return se(function(Q){return ge(4,function(ne){return+Q[ne]})},function(Q,ne,K){return ge(4,function(ve){return ne.def("+",K,"[",ve,"]")})});case Hc:return se(function(Q){return Q|0},function(Q,ne,K){return ne.def(K,"|0")});case qc:return se(function(Q){var ne=Q.cmp||"keep",K=Q.ref||0,ve="mask"in Q?Q.mask:-1;return[J[ne],K,ve]},function(Q,ne,K){var ve=Q.constants.compareFuncs,Oe=ne.def('"cmp" in ',K,"?",ve,"[",K,".cmp]",":",N),Be=ne.def(K,".ref|0"),Lt=ne.def('"mask" in ',K,"?",K,".mask|0:-1");return[Oe,Be,Lt]});case Hu:case Wa:return se(function(Q){var ne=Q.fail||"keep",K=Q.zfail||"keep",ve=Q.zpass||"keep";return[de===Wa?p:h,ue[ne],ue[K],ue[ve]]},function(Q,ne,K){var ve=Q.constants.stencilOps;function Oe(Be){return ne.def('"',Be,'" in ',K,"?",ve,"[",K,".",Be,"]:",N)}return[de===Wa?p:h,Oe("fail"),Oe("zfail"),Oe("zpass")]});case Co:return se(function(Q){var ne=Q.factor|0,K=Q.units|0;return[ne,K]},function(Q,ne,K){var ve=ne.def(K,".factor|0"),Oe=ne.def(K,".units|0");return[ve,Oe]});case Uc:return se(function(Q){var ne=0;return Q==="front"?ne=h:Q==="back"&&(ne=p),ne},function(Q,ne,K){return ne.def(K,'==="front"?',h,":",p)});case jc:return se(function(Q){return Q},function(Q,ne,K){return K});case ws:return se(function(Q){return le[Q]},function(Q,ne,K){return ne.def(K+'==="cw"?'+m+":"+b)});case zc:return se(function(Q){return Q.map(function(ne){return!!ne})},function(Q,ne,K){return ge(4,function(ve){return"!!"+K+"["+ve+"]"})});case Wu:return se(function(Q){var ne="value"in Q?Q.value:1,K=!!Q.invert;return[ne,K]},function(Q,ne,K){var ve=ne.def('"value" in ',K,"?+",K,".value:1"),Oe=ne.def("!!",K,".invert");return[ve,Oe]})}}),pe}function An(U,q){var ee=U.static,Se=U.dynamic,pe={};return Object.keys(ee).forEach(function(de){var ce=ee[de],se;if(typeof ce=="number"||typeof ce=="boolean")se=je(function(){return ce});else if(typeof ce=="function"){var Q=ce._reglType;Q==="texture2d"||Q==="textureCube"?se=je(function(ne){return ne.link(ce)}):(Q==="framebuffer"||Q==="framebufferCube")&&(se=je(function(ne){return ne.link(ce.color[0])}))}else ui(ce)&&(se=je(function(ne){var K=ne.global.def("[",ge(ce.length,function(ve){return ce[ve]}),"]");return K}));se.value=ce,pe[de]=se}),Object.keys(Se).forEach(function(de){var ce=Se[de];pe[de]=at(ce,function(se,Q){return se.invoke(Q,ce)})}),pe}function Kn(U,q){var ee=U.static,Se=U.dynamic,pe={};return Object.keys(ee).forEach(function(de){var ce=ee[de],se=H.id(de),Q=new Ce;if(re(ce))Q.state=ja,Q.buffer=ke.getBuffer(ke.create(ce,qa,!1,!0)),Q.type=0;else{var ne=ke.getBuffer(ce);if(ne)Q.state=ja,Q.buffer=ne,Q.type=0;else if("constant"in ce){var K=ce.constant;Q.buffer="null",Q.state=zu,typeof K=="number"?Q.x=K:Ua.forEach(function(Ft,Et){Et<K.length&&(Q[Ft]=K[Et])})}else{re(ce.buffer)?ne=ke.getBuffer(ke.create(ce.buffer,qa,!1,!0)):ne=ke.getBuffer(ce.buffer);var ve=ce.offset|0,Oe=ce.stride|0,Be=ce.size|0,Lt=!!ce.normalized,kt=0;"type"in ce&&(kt=Ou[ce.type]);var gt=ce.divisor|0;Q.buffer=ne,Q.state=ja,Q.size=Be,Q.normalized=Lt,Q.type=kt||ne.dtype,Q.offset=ve,Q.stride=Oe,Q.divisor=gt}}pe[de]=je(function(Ft,Et){var Dt=Ft.attribCache;if(se in Dt)return Dt[se];var wt={isStream:!1};return Object.keys(Q).forEach(function(Ot){wt[Ot]=Q[Ot]}),Q.buffer&&(wt.buffer=Ft.link(Q.buffer),wt.type=wt.type||wt.buffer+".dtype"),Dt[se]=wt,wt})}),Object.keys(Se).forEach(function(de){var ce=Se[de];function se(Q,ne){var K=Q.invoke(ne,ce),ve=Q.shared,Oe=Q.constants,Be=ve.isBufferArgs,Lt=ve.buffer,kt={isStream:ne.def(!1)},gt=new Ce;gt.state=ja,Object.keys(gt).forEach(function(wt){kt[wt]=ne.def(""+gt[wt])});var Ft=kt.buffer,Et=kt.type;ne("if(",Be,"(",K,")){",kt.isStream,"=true;",Ft,"=",Lt,".createStream(",qa,",",K,");",Et,"=",Ft,".dtype;","}else{",Ft,"=",Lt,".getBuffer(",K,");","if(",Ft,"){",Et,"=",Ft,".dtype;",'}else if("constant" in ',K,"){",kt.state,"=",zu,";","if(typeof "+K+'.constant === "number"){',kt[Ua[0]],"=",K,".constant;",Ua.slice(1).map(function(wt){return kt[wt]}).join("="),"=0;","}else{",Ua.map(function(wt,Ot){return kt[wt]+"="+K+".constant.length>"+Ot+"?"+K+".constant["+Ot+"]:0;"}).join(""),"}}else{","if(",Be,"(",K,".buffer)){",Ft,"=",Lt,".createStream(",qa,",",K,".buffer);","}else{",Ft,"=",Lt,".getBuffer(",K,".buffer);","}",Et,'="type" in ',K,"?",Oe.glTypes,"[",K,".type]:",Ft,".dtype;",kt.normalized,"=!!",K,".normalized;");function Dt(wt){ne(kt[wt],"=",K,".",wt,"|0;")}return Dt("size"),Dt("offset"),Dt("stride"),Dt("divisor"),ne("}}"),ne.exit("if(",kt.isStream,"){",Lt,".destroyStream(",Ft,");","}"),kt}pe[de]=at(ce,se)}),pe}function Fn(U){var q=U.static,ee=U.dynamic,Se={};return Object.keys(q).forEach(function(pe){var de=q[pe];Se[pe]=je(function(ce,se){return typeof de=="number"||typeof de=="boolean"?""+de:ce.link(de)})}),Object.keys(ee).forEach(function(pe){var de=ee[pe];Se[pe]=at(de,function(ce,se){return ce.invoke(se,de)})}),Se}function Hi(U,q,ee,Se,pe){U.static,U.dynamic;var de=un(U,q),ce=lr(U),se=hr(U,ce),Q=Xn(U),ne=Cr(U),K=sr(U,pe,de);function ve(Ft){var Et=se[Ft];Et&&(ne[Ft]=Et)}ve(Gi),ve(Ae(_s));var Oe=Object.keys(ne).length>0,Be={framebuffer:ce,draw:Q,shader:K,state:ne,dirty:Oe,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Be.profile=rr(U),Be.uniforms=An(ee),Be.drawVAO=Be.scopeVAO=Q.vao,!Be.drawVAO&&K.program&&!de&&Z.angle_instanced_arrays&&Q.static.elements){var Lt=!0,kt=K.program.attributes.map(function(Ft){var Et=q.static[Ft];return Lt=Lt&&!!Et,Et});if(Lt&&kt.length>0){var gt=et.getVAO(et.createVAO({attributes:kt,elements:Q.static.elements}));Be.drawVAO=new Ue(null,null,null,function(Ft,Et){return Ft.link(gt)}),Be.useVAO=!0}}return de?Be.useVAO=!0:Be.attributes=Kn(q),Be.context=Fn(Se),Be}function ln(U,q,ee){var Se=U.shared,pe=Se.context,de=U.scope();Object.keys(ee).forEach(function(ce){q.save(pe,"."+ce);var se=ee[ce],Q=se.append(U,q);Array.isArray(Q)?de(pe,".",ce,"=[",Q.join(),"];"):de(pe,".",ce,"=",Q,";")}),q(de)}function sn(U,q,ee,Se){var pe=U.shared,de=pe.gl,ce=pe.framebuffer,se;Ne&&(se=q.def(pe.extensions,".webgl_draw_buffers"));var Q=U.constants,ne=Q.drawBuffer,K=Q.backBuffer,ve;ee?ve=ee.append(U,q):ve=q.def(ce,".next"),Se||q("if(",ve,"!==",ce,".cur){"),q("if(",ve,"){",de,".bindFramebuffer(",oe,",",ve,".framebuffer);"),Ne&&q(se,".drawBuffersWEBGL(",ne,"[",ve,".colorAttachments.length]);"),q("}else{",de,".bindFramebuffer(",oe,",null);"),Ne&&q(se,".drawBuffersWEBGL(",K,");"),q("}",ce,".cur=",ve,";"),Se||q("}")}function Kt(U,q,ee){var Se=U.shared,pe=Se.gl,de=U.current,ce=U.next,se=Se.current,Q=Se.next,ne=U.cond(se,".dirty");$e.forEach(function(K){var ve=Ae(K);if(!(ve in ee.state)){var Oe,Be;if(ve in ce){Oe=ce[ve],Be=de[ve];var Lt=ge(ot[ve].length,function(gt){return ne.def(Oe,"[",gt,"]")});ne(U.cond(Lt.map(function(gt,Ft){return gt+"!=="+Be+"["+Ft+"]"}).join("||")).then(pe,".",mt[ve],"(",Lt,");",Lt.map(function(gt,Ft){return Be+"["+Ft+"]="+gt}).join(";"),";"))}else{Oe=ne.def(Q,".",ve);var kt=U.cond(Oe,"!==",se,".",ve);ne(kt),ve in Re?kt(U.cond(Oe).then(pe,".enable(",Re[ve],");").else(pe,".disable(",Re[ve],");"),se,".",ve,"=",Oe,";"):kt(pe,".",mt[ve],"(",Oe,");",se,".",ve,"=",Oe,";")}}}),Object.keys(ee.state).length===0&&ne(se,".dirty=false;"),q(ne)}function di(U,q,ee,Se){var pe=U.shared,de=U.current,ce=pe.current,se=pe.gl,Q;Pe(Object.keys(ee)).forEach(function(ne){var K=ee[ne];if(!(Se&&!Se(K))){var ve=K.append(U,q);if(Re[ne]){var Oe=Re[ne];tt(K)?(Q=U.link(ve,{stable:!0}),q(U.cond(Q).then(se,".enable(",Oe,");").else(se,".disable(",Oe,");")),q(ce,".",ne,"=",Q,";")):(q(U.cond(ve).then(se,".enable(",Oe,");").else(se,".disable(",Oe,");")),q(ce,".",ne,"=",ve,";"))}else if(ui(ve)){var Be=de[ne];q(se,".",mt[ne],"(",ve,");",ve.map(function(Lt,kt){return Be+"["+kt+"]="+Lt}).join(";"),";")}else tt(K)?(Q=U.link(ve,{stable:!0}),q(se,".",mt[ne],"(",Q,");",ce,".",ne,"=",Q,";")):q(se,".",mt[ne],"(",ve,");",ce,".",ne,"=",ve,";")}})}function _r(U,q){Ze&&(U.instancing=q.def(U.shared.extensions,".angle_instanced_arrays"))}function fn(U,q,ee,Se,pe){var de=U.shared,ce=U.stats,se=de.current,Q=de.timer,ne=ee.profile;function K(){return typeof performance>"u"?"Date.now()":"performance.now()"}var ve,Oe;function Be(Dt){ve=q.def(),Dt(ve,"=",K(),";"),typeof pe=="string"?Dt(ce,".count+=",pe,";"):Dt(ce,".count++;"),it&&(Se?(Oe=q.def(),Dt(Oe,"=",Q,".getNumPendingQueries();")):Dt(Q,".beginQuery(",ce,");"))}function Lt(Dt){Dt(ce,".cpuTime+=",K(),"-",ve,";"),it&&(Se?Dt(Q,".pushScopeStats(",Oe,",",Q,".getNumPendingQueries(),",ce,");"):Dt(Q,".endQuery();"))}function kt(Dt){var wt=q.def(se,".profile");q(se,".profile=",Dt,";"),q.exit(se,".profile=",wt,";")}var gt;if(ne){if(tt(ne)){ne.enable?(Be(q),Lt(q.exit),kt("true")):kt("false");return}gt=ne.append(U,q),kt(gt)}else gt=q.def(se,".profile");var Ft=U.block();Be(Ft),q("if(",gt,"){",Ft,"}");var Et=U.block();Lt(Et),q.exit("if(",gt,"){",Et,"}")}function Un(U,q,ee,Se,pe){var de=U.shared;function ce(Q){switch(Q){case Os:case Qc:case Jc:return 2;case Wi:case Ku:case eh:return 3;case Ro:case Po:case th:return 4;default:return 1}}function se(Q,ne,K){var ve=de.gl,Oe=q.def(Q,".location"),Be=q.def(de.attributes,"[",Oe,"]"),Lt=K.state,kt=K.buffer,gt=[K.x,K.y,K.z,K.w],Ft=["buffer","normalized","offset","stride"];function Et(){q("if(!",Be,".buffer){",ve,".enableVertexAttribArray(",Oe,");}");var wt=K.type,Ot;if(K.size?Ot=q.def(K.size,"||",ne):Ot=ne,q("if(",Be,".type!==",wt,"||",Be,".size!==",Ot,"||",Ft.map(function(Vt){return Be+"."+Vt+"!=="+K[Vt]}).join("||"),"){",ve,".bindBuffer(",qa,",",kt,".buffer);",ve,".vertexAttribPointer(",[Oe,Ot,wt,K.normalized,K.stride,K.offset],");",Be,".type=",wt,";",Be,".size=",Ot,";",Ft.map(function(Vt){return Be+"."+Vt+"="+K[Vt]+";"}).join(""),"}"),Ze){var Mt=K.divisor;q("if(",Be,".divisor!==",Mt,"){",U.instancing,".vertexAttribDivisorANGLE(",[Oe,Mt],");",Be,".divisor=",Mt,";}")}}function Dt(){q("if(",Be,".buffer){",ve,".disableVertexAttribArray(",Oe,");",Be,".buffer=null;","}if(",Ua.map(function(wt,Ot){return Be+"."+wt+"!=="+gt[Ot]}).join("||"),"){",ve,".vertexAttrib4f(",Oe,",",gt,");",Ua.map(function(wt,Ot){return Be+"."+wt+"="+gt[Ot]+";"}).join(""),"}")}Lt===ja?Et():Lt===zu?Dt():(q("if(",Lt,"===",ja,"){"),Et(),q("}else{"),Dt(),q("}"))}Se.forEach(function(Q){var ne=Q.name,K=ee.attributes[ne],ve;if(K){if(!pe(K))return;ve=K.append(U,q)}else{if(!pe(vt))return;var Oe=U.scopeAttrib(ne);ve={},Object.keys(new Ce).forEach(function(Be){ve[Be]=q.def(Oe,".",Be)})}se(U.link(Q),ce(Q.info.type),ve)})}function jn(U,q,ee,Se,pe,de){for(var ce=U.shared,se=ce.gl,Q,ne=0;ne<Se.length;++ne){var K=Se[ne],ve=K.name,Oe=K.info.type,Be=ee.uniforms[ve],Lt=U.link(K),kt=Lt+".location",gt;if(Be){if(!pe(Be))continue;if(tt(Be)){var Ft=Be.value;if(Oe===ih||Oe===u){var Et=U.link(Ft._texture||Ft.color[0]._texture);q(se,".uniform1i(",kt,",",Et+".bind());"),q.exit(Et,".unbind();")}else if(Oe===rh||Oe===Qu||Oe===nh){var Dt=U.global.def("new Float32Array(["+Array.prototype.slice.call(Ft)+"])"),wt=2;Oe===Qu?wt=3:Oe===nh&&(wt=4),q(se,".uniformMatrix",wt,"fv(",kt,",false,",Dt,");")}else{switch(Oe){case Br:Q="1f";break;case Os:Q="2f";break;case Wi:Q="3f";break;case Ro:Q="4f";break;case Zc:Q="1i";break;case Ms:Q="1i";break;case Jc:Q="2i";break;case Qc:Q="2i";break;case eh:Q="3i";break;case Ku:Q="3i";break;case th:Q="4i";break;case Po:Q="4i";break}q(se,".uniform",Q,"(",kt,",",ui(Ft)?Array.prototype.slice.call(Ft):Ft,");")}continue}else gt=Be.append(U,q)}else{if(!pe(vt))continue;gt=q.def(ce.uniforms,"[",H.id(ve),"]")}Oe===ih?q("if(",gt,"&&",gt,'._reglType==="framebuffer"){',gt,"=",gt,".color[0];","}"):Oe===u&&q("if(",gt,"&&",gt,'._reglType==="framebufferCube"){',gt,"=",gt,".color[0];","}");var Ot=1;switch(Oe){case ih:case u:var Mt=q.def(gt,"._texture");q(se,".uniform1i(",kt,",",Mt,".bind());"),q.exit(Mt,".unbind();");continue;case Ms:case Zc:Q="1i";break;case Qc:case Jc:Q="2i",Ot=2;break;case Ku:case eh:Q="3i",Ot=3;break;case Po:case th:Q="4i",Ot=4;break;case Br:Q="1f";break;case Os:Q="2f",Ot=2;break;case Wi:Q="3f",Ot=3;break;case Ro:Q="4f",Ot=4;break;case rh:Q="Matrix2fv";break;case Qu:Q="Matrix3fv";break;case nh:Q="Matrix4fv";break}if(Q.charAt(0)==="M"){q(se,".uniform",Q,"(",kt,",");var Vt=Math.pow(Oe-rh+2,2),Ir=U.global.def("new Float32Array(",Vt,")");Array.isArray(gt)?q("false,(",ge(Vt,function(Ei){return Ir+"["+Ei+"]="+gt[Ei]}),",",Ir,")"):q("false,(Array.isArray(",gt,")||",gt," instanceof Float32Array)?",gt,":(",ge(Vt,function(Ei){return Ir+"["+Ei+"]="+gt+"["+Ei+"]"}),",",Ir,")"),q(");")}else if(Ot>1){for(var Qn=[],Va=[],Io=0;Io<Ot;++Io)Array.isArray(gt)?Va.push(gt[Io]):Va.push(q.def(gt+"["+Io+"]")),de&&Qn.push(q.def());de&&q("if(!",U.batchId,"||",Qn.map(function(Ei,ah){return Ei+"!=="+Va[ah]}).join("||"),"){",Qn.map(function(Ei,ah){return Ei+"="+Va[ah]+";"}).join("")),q(se,".uniform",Q,"(",kt,",",Va.join(","),");"),de&&q("}")}else{if(de){var Fo=q.def();q("if(!",U.batchId,"||",Fo,"!==",gt,"){",Fo,"=",gt,";")}q(se,".uniform",Q,"(",kt,",",gt,");"),de&&q("}")}}}function Zt(U,q,ee,Se){var pe=U.shared,de=pe.gl,ce=pe.draw,se=Se.draw;function Q(){var Ot=se.elements,Mt,Vt=q;return Ot?((Ot.contextDep&&Se.contextDynamic||Ot.propDep)&&(Vt=ee),Mt=Ot.append(U,Vt),se.elementsActive&&Vt("if("+Mt+")"+de+".bindBuffer("+Kc+","+Mt+".buffer.buffer);")):(Mt=Vt.def(),Vt(Mt,"=",ce,".",To,";","if(",Mt,"){",de,".bindBuffer(",Kc,",",Mt,".buffer.buffer);}","else if(",pe.vao,".currentVAO){",Mt,"=",U.shared.elements+".getElements("+pe.vao,".currentVAO.elements);",pt?"":"if("+Mt+")"+de+".bindBuffer("+Kc+","+Mt+".buffer.buffer);","}")),Mt}function ne(){var Ot=se.count,Mt,Vt=q;return Ot?((Ot.contextDep&&Se.contextDynamic||Ot.propDep)&&(Vt=ee),Mt=Ot.append(U,Vt)):Mt=Vt.def(ce,".",an),Mt}var K=Q();function ve(Ot){var Mt=se[Ot];return Mt?Mt.contextDep&&Se.contextDynamic||Mt.propDep?Mt.append(U,ee):Mt.append(U,q):q.def(ce,".",Ot)}var Oe=ve(Oo),Be=ve(Es),Lt=ne();if(typeof Lt=="number"){if(Lt===0)return}else ee("if(",Lt,"){"),ee.exit("}");var kt,gt;Ze&&(kt=ve(As),gt=U.instancing);var Ft=K+".type",Et=se.elements&&tt(se.elements)&&!se.vaoActive;function Dt(){function Ot(){ee(gt,".drawElementsInstancedANGLE(",[Oe,Lt,Ft,Be+"<<(("+Ft+"-"+Nc+")>>1)",kt],");")}function Mt(){ee(gt,".drawArraysInstancedANGLE(",[Oe,Be,Lt,kt],");")}K&&K!=="null"?Et?Ot():(ee("if(",K,"){"),Ot(),ee("}else{"),Mt(),ee("}")):Mt()}function wt(){function Ot(){ee(de+".drawElements("+[Oe,Lt,Ft,Be+"<<(("+Ft+"-"+Nc+")>>1)"]+");")}function Mt(){ee(de+".drawArrays("+[Oe,Be,Lt]+");")}K&&K!=="null"?Et?Ot():(ee("if(",K,"){"),Ot(),ee("}else{"),Mt(),ee("}")):Mt()}Ze&&(typeof kt!="number"||kt>=0)?typeof kt=="string"?(ee("if(",kt,">0){"),Dt(),ee("}else if(",kt,"<0){"),wt(),ee("}")):Dt():wt()}function cr(U,q,ee,Se,pe){var de=lt(),ce=de.proc("body",pe);return Ze&&(de.instancing=ce.def(de.shared.extensions,".angle_instanced_arrays")),U(de,ce,ee,Se),de.compile().body}function Or(U,q,ee,Se){_r(U,q),ee.useVAO?ee.drawVAO?q(U.shared.vao,".setVAO(",ee.drawVAO.append(U,q),");"):q(U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"):(q(U.shared.vao,".setVAO(null);"),Un(U,q,ee,Se.attributes,function(){return!0})),jn(U,q,ee,Se.uniforms,function(){return!0},!1),Zt(U,q,q,ee)}function cn(U,q){var ee=U.proc("draw",1);_r(U,ee),ln(U,ee,q.context),sn(U,ee,q.framebuffer),Kt(U,ee,q),di(U,ee,q.state),fn(U,ee,q,!1,!0);var Se=q.shader.progVar.append(U,ee);if(ee(U.shared.gl,".useProgram(",Se,".program);"),q.shader.program)Or(U,ee,q,q.shader.program);else{ee(U.shared.vao,".setVAO(null);");var pe=U.global.def("{}"),de=ee.def(Se,".id"),ce=ee.def(pe,"[",de,"]");ee(U.cond(ce).then(ce,".call(this,a0);").else(ce,"=",pe,"[",de,"]=",U.link(function(se){return cr(Or,U,q,se,1)}),"(",Se,");",ce,".call(this,a0);"))}Object.keys(q.state).length>0&&ee(U.shared.current,".dirty=true;"),U.shared.vao&&ee(U.shared.vao,".setVAO(null);")}function Y(U,q,ee,Se){U.batchId="a1",_r(U,q);function pe(){return!0}Un(U,q,ee,Se.attributes,pe),jn(U,q,ee,Se.uniforms,pe,!1),Zt(U,q,q,ee)}function xe(U,q,ee,Se){_r(U,q);var pe=ee.contextDep,de=q.def(),ce="a0",se="a1",Q=q.def();U.shared.props=Q,U.batchId=de;var ne=U.scope(),K=U.scope();q(ne.entry,"for(",de,"=0;",de,"<",se,";++",de,"){",Q,"=",ce,"[",de,"];",K,"}",ne.exit);function ve(Ft){return Ft.contextDep&&pe||Ft.propDep}function Oe(Ft){return!ve(Ft)}if(ee.needsContext&&ln(U,K,ee.context),ee.needsFramebuffer&&sn(U,K,ee.framebuffer),di(U,K,ee.state,ve),ee.profile&&ve(ee.profile)&&fn(U,K,ee,!1,!0),Se)ee.useVAO?ee.drawVAO?ve(ee.drawVAO)?K(U.shared.vao,".setVAO(",ee.drawVAO.append(U,K),");"):ne(U.shared.vao,".setVAO(",ee.drawVAO.append(U,ne),");"):ne(U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"):(ne(U.shared.vao,".setVAO(null);"),Un(U,ne,ee,Se.attributes,Oe),Un(U,K,ee,Se.attributes,ve)),jn(U,ne,ee,Se.uniforms,Oe,!1),jn(U,K,ee,Se.uniforms,ve,!0),Zt(U,ne,K,ee);else{var Be=U.global.def("{}"),Lt=ee.shader.progVar.append(U,K),kt=K.def(Lt,".id"),gt=K.def(Be,"[",kt,"]");K(U.shared.gl,".useProgram(",Lt,".program);","if(!",gt,"){",gt,"=",Be,"[",kt,"]=",U.link(function(Ft){return cr(Y,U,ee,Ft,2)}),"(",Lt,");}",gt,".call(this,a0[",de,"],",de,");")}}function ye(U,q){var ee=U.proc("batch",2);U.batchId="0",_r(U,ee);var Se=!1,pe=!0;Object.keys(q.context).forEach(function(Be){Se=Se||q.context[Be].propDep}),Se||(ln(U,ee,q.context),pe=!1);var de=q.framebuffer,ce=!1;de?(de.propDep?Se=ce=!0:de.contextDep&&Se&&(ce=!0),ce||sn(U,ee,de)):sn(U,ee,null),q.state.viewport&&q.state.viewport.propDep&&(Se=!0);function se(Be){return Be.contextDep&&Se||Be.propDep}Kt(U,ee,q),di(U,ee,q.state,function(Be){return!se(Be)}),(!q.profile||!se(q.profile))&&fn(U,ee,q,!1,"a1"),q.contextDep=Se,q.needsContext=pe,q.needsFramebuffer=ce;var Q=q.shader.progVar;if(Q.contextDep&&Se||Q.propDep)xe(U,ee,q,null);else{var ne=Q.append(U,ee);if(ee(U.shared.gl,".useProgram(",ne,".program);"),q.shader.program)xe(U,ee,q,q.shader.program);else{ee(U.shared.vao,".setVAO(null);");var K=U.global.def("{}"),ve=ee.def(ne,".id"),Oe=ee.def(K,"[",ve,"]");ee(U.cond(Oe).then(Oe,".call(this,a0,a1);").else(Oe,"=",K,"[",ve,"]=",U.link(function(Be){return cr(xe,U,q,Be,2)}),"(",ne,");",Oe,".call(this,a0,a1);"))}}Object.keys(q.state).length>0&&ee(U.shared.current,".dirty=true;"),U.shared.vao&&ee(U.shared.vao,".setVAO(null);")}function Ct(U,q){var ee=U.proc("scope",3);U.batchId="a2";var Se=U.shared,pe=Se.current;if(ln(U,ee,q.context),q.framebuffer&&q.framebuffer.append(U,ee),Pe(Object.keys(q.state)).forEach(function(se){var Q=q.state[se],ne=Q.append(U,ee);ui(ne)?ne.forEach(function(K,ve){It(K)?ee.set(U.next[se],"["+ve+"]",K):ee.set(U.next[se],"["+ve+"]",U.link(K,{stable:!0}))}):tt(Q)?ee.set(Se.next,"."+se,U.link(ne,{stable:!0})):ee.set(Se.next,"."+se,ne)}),fn(U,ee,q,!0,!0),[To,Es,an,As,Oo].forEach(function(se){var Q=q.draw[se];if(Q){var ne=Q.append(U,ee);It(ne)?ee.set(Se.draw,"."+se,ne):ee.set(Se.draw,"."+se,U.link(ne),{stable:!0})}}),Object.keys(q.uniforms).forEach(function(se){var Q=q.uniforms[se].append(U,ee);Array.isArray(Q)&&(Q="["+Q.map(function(ne){return It(ne)?ne:U.link(ne,{stable:!0})})+"]"),ee.set(Se.uniforms,"["+U.link(H.id(se),{stable:!0})+"]",Q)}),Object.keys(q.attributes).forEach(function(se){var Q=q.attributes[se].append(U,ee),ne=U.scopeAttrib(se);Object.keys(new Ce).forEach(function(K){ee.set(ne,"."+K,Q[K])})}),q.scopeVAO){var de=q.scopeVAO.append(U,ee);It(de)?ee.set(Se.vao,".targetVAO",de):ee.set(Se.vao,".targetVAO",U.link(de,{stable:!0}))}function ce(se){var Q=q.shader[se];if(Q){var ne=Q.append(U,ee);It(ne)?ee.set(Se.shader,"."+se,ne):ee.set(Se.shader,"."+se,U.link(ne,{stable:!0}))}}ce(qu),ce(Ss),Object.keys(q.state).length>0&&(ee(pe,".dirty=true;"),ee.exit(pe,".dirty=true;")),ee("a1(",U.shared.context,",a0,",U.batchId,");")}function nr(U){if(!(typeof U!="object"||ui(U))){for(var q=Object.keys(U),ee=0;ee<q.length;++ee)if(E.isDynamic(U[q[ee]]))return!0;return!1}}function Pr(U,q,ee){var Se=q.static[ee];if(!Se||!nr(Se))return;var pe=U.global,de=Object.keys(Se),ce=!1,se=!1,Q=!1,ne=U.global.def("{}");de.forEach(function(ve){var Oe=Se[ve];if(E.isDynamic(Oe)){typeof Oe=="function"&&(Oe=Se[ve]=E.unbox(Oe));var Be=at(Oe,null);ce=ce||Be.thisDep,Q=Q||Be.propDep,se=se||Be.contextDep}else{switch(pe(ne,".",ve,"="),typeof Oe){case"number":pe(Oe);break;case"string":pe('"',Oe,'"');break;case"object":Array.isArray(Oe)&&pe("[",Oe.join(),"]");break;default:pe(U.link(Oe));break}pe(";")}});function K(ve,Oe){de.forEach(function(Be){var Lt=Se[Be];if(E.isDynamic(Lt)){var kt=ve.invoke(Oe,Lt);Oe(ne,".",Be,"=",kt,";")}})}q.dynamic[ee]=new E.DynamicVariable(Ga,{thisDep:ce,contextDep:se,propDep:Q,ref:ne,append:K}),delete q.static[ee]}function Tt(U,q,ee,Se,pe){var de=lt();de.stats=de.link(pe),Object.keys(q.static).forEach(function(se){Pr(de,q,se)}),e1.forEach(function(se){Pr(de,U,se)});var ce=Hi(U,q,ee,Se,de);return ce.shader.program&&(ce.shader.program.attributes.sort(function(se,Q){return se.name<Q.name?-1:1}),ce.shader.program.uniforms.sort(function(se,Q){return se.name<Q.name?-1:1})),cn(de,ce),Ct(de,ce),ye(de,ce),r(de.compile(),{destroy:function(){ce.shader.program.destroy()}})}return{next:Pt,current:ot,procs:function(){var U=lt(),q=U.proc("poll"),ee=U.proc("refresh"),Se=U.block();q(Se),ee(Se);var pe=U.shared,de=pe.gl,ce=pe.next,se=pe.current;Se(se,".dirty=false;"),sn(U,q),sn(U,ee,null,!0);var Q;Ze&&(Q=U.link(Ze)),Z.oes_vertex_array_object&&ee(U.link(Z.oes_vertex_array_object),".bindVertexArrayOES(null);");var ne=ee.def(pe.attributes),K=ee.def(0),ve=U.cond(K,".buffer");ve.then(de,".enableVertexAttribArray(i);",de,".bindBuffer(",qa,",",K,".buffer.buffer);",de,".vertexAttribPointer(i,",K,".size,",K,".type,",K,".normalized,",K,".stride,",K,".offset);").else(de,".disableVertexAttribArray(i);",de,".vertexAttrib4f(i,",K,".x,",K,".y,",K,".z,",K,".w);",K,".buffer=null;");var Oe=U.link(Ee.maxAttributes,{stable:!0});return ee("for(var i=0;i<",Oe,";++i){",K,"=",ne,"[i];",ve,"}"),Ze&&ee("for(var i=0;i<",Oe,";++i){",Q,".vertexAttribDivisorANGLE(i,",ne,"[i].divisor);","}"),ee(U.shared.vao,".currentVAO=null;",U.shared.vao,".setVAO(",U.shared.vao,".targetVAO);"),Object.keys(Re).forEach(function(Be){var Lt=Re[Be],kt=Se.def(ce,".",Be),gt=U.block();gt("if(",kt,"){",de,".enable(",Lt,")}else{",de,".disable(",Lt,")}",se,".",Be,"=",kt,";"),ee(gt),q("if(",kt,"!==",se,".",Be,"){",gt,"}")}),Object.keys(mt).forEach(function(Be){var Lt=mt[Be],kt=ot[Be],gt,Ft,Et=U.block();if(Et(de,".",Lt,"("),ui(kt)){var Dt=kt.length;gt=U.global.def(ce,".",Be),Ft=U.global.def(se,".",Be),Et(ge(Dt,function(wt){return gt+"["+wt+"]"}),");",ge(Dt,function(wt){return Ft+"["+wt+"]="+gt+"["+wt+"];"}).join("")),q("if(",ge(Dt,function(wt){return gt+"["+wt+"]!=="+Ft+"["+wt+"]"}).join("||"),"){",Et,"}")}else gt=Se.def(ce,".",Be),Ft=Se.def(se,".",Be),Et(gt,");",se,".",Be,"=",gt,";"),q("if(",gt,"!==",Ft,"){",Et,"}");ee(Et)}),U.compile()}(),compile:Tt}}function xt(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var zt=34918,or=34919,Rr=35007,pr=function(I,H){if(!H.ext_disjoint_timer_query)return null;var Z=[];function Ee(){return Z.pop()||H.ext_disjoint_timer_query.createQueryEXT()}function ke(Ve){Z.push(Ve)}var be=[];function _e(Ve){var Ze=Ee();H.ext_disjoint_timer_query.beginQueryEXT(Rr,Ze),be.push(Ze),it(be.length-1,be.length,Ve)}function Ye(){H.ext_disjoint_timer_query.endQueryEXT(Rr)}function Xe(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var et=[];function ft(){return et.pop()||new Xe}function Rt(Ve){et.push(Ve)}var St=[];function it(Ve,Ze,Ne){var pt=ft();pt.startQueryIndex=Ve,pt.endQueryIndex=Ze,pt.sum=0,pt.stats=Ne,St.push(pt)}var Ge=[],he=[];function Ce(){var Ve,Ze,Ne=be.length;if(Ne!==0){he.length=Math.max(he.length,Ne+1),Ge.length=Math.max(Ge.length,Ne+1),Ge[0]=0,he[0]=0;var pt=0;for(Ve=0,Ze=0;Ze<be.length;++Ze){var ot=be[Ze];H.ext_disjoint_timer_query.getQueryObjectEXT(ot,or)?(pt+=H.ext_disjoint_timer_query.getQueryObjectEXT(ot,zt),ke(ot)):be[Ve++]=ot,Ge[Ze+1]=pt,he[Ze+1]=Ve}for(be.length=Ve,Ve=0,Ze=0;Ze<St.length;++Ze){var Pt=St[Ze],$e=Pt.startQueryIndex,Re=Pt.endQueryIndex;Pt.sum+=Ge[Re]-Ge[$e];var mt=he[$e],Ae=he[Re];Ae===mt?(Pt.stats.gpuTime+=Pt.sum/1e6,Rt(Pt)):(Pt.startQueryIndex=mt,Pt.endQueryIndex=Ae,St[Ve++]=Pt)}St.length=Ve}}return{beginQuery:_e,endQuery:Ye,pushScopeStats:it,update:Ce,getNumPendingQueries:function(){return be.length},clear:function(){Z.push.apply(Z,be);for(var Ve=0;Ve<Z.length;Ve++)H.ext_disjoint_timer_query.deleteQueryEXT(Z[Ve]);be.length=0,Z.length=0},restore:function(){be.length=0,Z.length=0}}},rt=16384,Ht=256,Xt=1024,ur=34962,Ar="webglcontextlost",zr="webglcontextrestored",Xr=1,vn=2,En=3;function on(I,H){for(var Z=0;Z<I.length;++Z)if(I[Z]===H)return Z;return-1}function In(I){var H=j(I);if(!H)return null;var Z=H.gl,Ee=Z.getContextAttributes();Z.isContextLost();var ke=te(Z,H);if(!ke)return null;var be=w(),_e=xt(),Ye=H.cachedCode||{},Xe=ke.extensions,et=pr(Z,Xe),ft=x(),Rt=Z.drawingBufferWidth,St=Z.drawingBufferHeight,it={tick:0,time:0,viewportWidth:Rt,viewportHeight:St,framebufferWidth:Rt,framebufferHeight:St,drawingBufferWidth:Rt,drawingBufferHeight:St,pixelRatio:H.pixelRatio},Ge={},he={elements:null,primitive:4,count:-1,offset:0,instances:-1},Ce=Yl(Z,Xe),Ve=Rp(Z,_e,H,pt),Ze=es(Z,Xe,Ve,_e),Ne=Gy(Z,Xe,Ce,_e,Ve,Ze,he);function pt(Zt){return Ne.destroyBuffer(Zt)}var ot=vv(Z,be,_e,H),Pt=Dy(Z,Xe,Ce,function(){mt.procs.poll()},it,_e,H),$e=fv(Z,Xe,Ce,_e,H),Re=Cc(Z,Xe,Ce,Pt,$e,_e),mt=Wt(Z,be,Xe,Ce,Ve,Ze,Pt,Re,Ge,Ne,ot,he,it,et,Ye,H),Ae=gv(Z,Re,mt.procs.poll,it),ht=mt.next,Je=Z.canvas,It=[],tr=[],bt=[],Bt=[H.onDestroy],lt=null;function rr(){if(It.length===0){et&&et.update(),lt=null;return}lt=M.next(rr),sn();for(var Zt=It.length-1;Zt>=0;--Zt){var cr=It[Zt];cr&&cr(it,null,0)}Z.flush(),et&&et.update()}function lr(){!lt&&It.length>0&&(lt=M.next(rr))}function hr(){lt&&(M.cancel(rr),lt=null)}function un(Zt){Zt.preventDefault(),hr(),tr.forEach(function(cr){cr()})}function sr(Zt){Z.getError(),ke.restore(),ot.restore(),Ve.restore(),Pt.restore(),$e.restore(),Re.restore(),Ne.restore(),et&&et.restore(),mt.procs.refresh(),lr(),bt.forEach(function(cr){cr()})}Je&&(Je.addEventListener(Ar,un,!1),Je.addEventListener(zr,sr,!1));function Xn(){It.length=0,hr(),Je&&(Je.removeEventListener(Ar,un),Je.removeEventListener(zr,sr)),ot.clear(),Re.clear(),$e.clear(),Ne.clear(),Pt.clear(),Ze.clear(),Ve.clear(),et&&et.clear(),Bt.forEach(function(Zt){Zt()})}function Cr(Zt){function cr(pe){var de=r({},pe);delete de.uniforms,delete de.attributes,delete de.context,delete de.vao,"stencil"in de&&de.stencil.op&&(de.stencil.opBack=de.stencil.opFront=de.stencil.op,delete de.stencil.op);function ce(se){if(se in de){var Q=de[se];delete de[se],Object.keys(Q).forEach(function(ne){de[se+"."+ne]=Q[ne]})}}return ce("blend"),ce("depth"),ce("cull"),ce("stencil"),ce("polygonOffset"),ce("scissor"),ce("sample"),"vao"in pe&&(de.vao=pe.vao),de}function Or(pe,de){var ce={},se={};return Object.keys(pe).forEach(function(Q){var ne=pe[Q];if(E.isDynamic(ne)){se[Q]=E.unbox(ne,Q);return}else if(de&&Array.isArray(ne)){for(var K=0;K<ne.length;++K)if(E.isDynamic(ne[K])){se[Q]=E.unbox(ne,Q);return}}ce[Q]=ne}),{dynamic:se,static:ce}}var cn=Or(Zt.context||{},!0),Y=Or(Zt.uniforms||{},!0),xe=Or(Zt.attributes||{},!1),ye=Or(cr(Zt),!1),Ct={gpuTime:0,cpuTime:0,count:0},nr=mt.compile(ye,xe,Y,cn,Ct),Pr=nr.draw,Tt=nr.batch,U=nr.scope,q=[];function ee(pe){for(;q.length<pe;)q.push(null);return q}function Se(pe,de){var ce;if(typeof pe=="function")return U.call(this,null,pe,0);if(typeof de=="function")if(typeof pe=="number")for(ce=0;ce<pe;++ce)U.call(this,null,de,ce);else if(Array.isArray(pe))for(ce=0;ce<pe.length;++ce)U.call(this,pe[ce],de,ce);else return U.call(this,pe,de,0);else if(typeof pe=="number"){if(pe>0)return Tt.call(this,ee(pe|0),pe|0)}else if(Array.isArray(pe)){if(pe.length)return Tt.call(this,pe,pe.length)}else return Pr.call(this,pe)}return r(Se,{stats:Ct,destroy:function(){nr.destroy()}})}var An=Re.setFBO=Cr({framebuffer:E.define.call(null,Xr,"framebuffer")});function Kn(Zt,cr){var Or=0;mt.procs.poll();var cn=cr.color;cn&&(Z.clearColor(+cn[0]||0,+cn[1]||0,+cn[2]||0,+cn[3]||0),Or|=rt),"depth"in cr&&(Z.clearDepth(+cr.depth),Or|=Ht),"stencil"in cr&&(Z.clearStencil(cr.stencil|0),Or|=Xt),Z.clear(Or)}function Fn(Zt){if("framebuffer"in Zt)if(Zt.framebuffer&&Zt.framebuffer_reglType==="framebufferCube")for(var cr=0;cr<6;++cr)An(r({framebuffer:Zt.framebuffer.faces[cr]},Zt),Kn);else An(Zt,Kn);else Kn(null,Zt)}function Hi(Zt){It.push(Zt);function cr(){var Or=on(It,Zt);function cn(){var Y=on(It,cn);It[Y]=It[It.length-1],It.length-=1,It.length<=0&&hr()}It[Or]=cn}return lr(),{cancel:cr}}function ln(){var Zt=ht.viewport,cr=ht.scissor_box;Zt[0]=Zt[1]=cr[0]=cr[1]=0,it.viewportWidth=it.framebufferWidth=it.drawingBufferWidth=Zt[2]=cr[2]=Z.drawingBufferWidth,it.viewportHeight=it.framebufferHeight=it.drawingBufferHeight=Zt[3]=cr[3]=Z.drawingBufferHeight}function sn(){it.tick+=1,it.time=di(),ln(),mt.procs.poll()}function Kt(){Pt.refresh(),ln(),mt.procs.refresh(),et&&et.update()}function di(){return(x()-ft)/1e3}Kt();function _r(Zt,cr){var Or;switch(Zt){case"frame":return Hi(cr);case"lost":Or=tr;break;case"restore":Or=bt;break;case"destroy":Or=Bt;break}return Or.push(cr),{cancel:function(){for(var cn=0;cn<Or.length;++cn)if(Or[cn]===cr){Or[cn]=Or[Or.length-1],Or.pop();return}}}}function fn(){return Ye}function Un(Zt){Object.entries(Zt).forEach(function(cr){Ye[cr[0]]=cr[1]})}var jn=r(Cr,{clear:Fn,prop:E.define.bind(null,Xr),context:E.define.bind(null,vn),this:E.define.bind(null,En),draw:Cr({}),buffer:function(Zt){return Ve.create(Zt,ur,!1,!1)},elements:function(Zt){return Ze.create(Zt,!1)},texture:Pt.create2D,cube:Pt.createCube,renderbuffer:$e.create,framebuffer:Re.create,framebufferCube:Re.createCube,vao:Ne.createVAO,attributes:Ee,frame:Hi,on:_r,limits:Ce,hasExtension:function(Zt){return Ce.extensions.indexOf(Zt.toLowerCase())>=0},read:Ae,destroy:Xn,_gl:Z,_refresh:Kt,poll:function(){sn(),et&&et.update()},now:di,stats:_e,getCachedCode:fn,preloadCachedCode:Un});return H.onDone(null,jn),jn}return In})})(dN);var Uee=dN.exports,jee=_u,Gee=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},sM(t)?t={container:t}:Wee(t)?t={container:t}:Hee(t)?t={gl:t}:t=jee(t,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),t.pixelRatio||(t.pixelRatio=Jt.pixelRatio||1),t.gl)return t.gl;if(t.canvas&&(t.container=t.canvas.parentNode),t.container){if(typeof t.container=="string"){var r=document.querySelector(t.container);if(!r)throw Error("Element "+t.container+" is not found");t.container=r}sM(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=fM(),t.container.appendChild(t.canvas),lM(t))}else if(!t.canvas)if(typeof document<"u")t.container=document.body||document.documentElement,t.canvas=fM(),t.container.appendChild(t.canvas),lM(t);else throw Error("Not DOM environment. Use headless-gl.");return t.gl||["webgl","experimental-webgl","webgl-experimental"].some(function(n){try{t.gl=t.canvas.getContext(n,t.attrs)}catch{}return t.gl}),t.gl};function lM(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*Jt.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*Jt.innerHeight);else{var t=e.container.getBoundingClientRect();e.canvas.width=e.width||t.right-t.left,e.canvas.height=e.height||t.bottom-t.top}}function sM(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function Wee(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function Hee(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function fM(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}var qee=hN,Vee=[32,126],Yee=Xee;function Xee(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],r=e.canvas||document.createElement("canvas"),n=e.font,i=typeof e.step=="number"?[e.step,e.step]:e.step||[32,32],a=e.chars||Vee;if(n&&typeof n!="string"&&(n=qee(n)),!Array.isArray(a))a=String(a).split("");else if(a.length===2&&typeof a[0]=="number"&&typeof a[1]=="number"){for(var o=[],l=a[0],s=0;l<=a[1];l++)o[s++]=String.fromCharCode(l);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var f=r.getContext("2d");f.fillStyle="#000",f.fillRect(0,0,r.width,r.height),f.font=n,f.textAlign="center",f.textBaseline="middle",f.fillStyle="#fff";for(var d=i[0]/2,g=i[1]/2,l=0;l<a.length;l++)f.fillText(a[l],d,g),(d+=i[0])>t[0]-i[0]/2&&(d=i[0]/2,g+=i[1]);return r}var vr={},Gr={},TE=32;Gr.INT_BITS=TE;Gr.INT_MAX=2147483647;Gr.INT_MIN=-1<<TE-1;Gr.sign=function(e){return(e>0)-(e<0)};Gr.abs=function(e){var t=e>>TE-1;return(e^t)-t};Gr.min=function(e,t){return t^(e^t)&-(e<t)};Gr.max=function(e,t){return e^(e^t)&-(e<t)};Gr.isPow2=function(e){return!(e&e-1)&&!!e};Gr.log2=function(e){var t,r;return t=(e>65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,t|=r,t|e>>1};Gr.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0};Gr.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function pN(e){var t=32;return e&=-e,e&&t--,e&65535&&(t-=16),e&16711935&&(t-=8),e&252645135&&(t-=4),e&858993459&&(t-=2),e&1431655765&&(t-=1),t}Gr.countTrailingZeros=pN;Gr.nextPow2=function(e){return e+=e===0,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1};Gr.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};Gr.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var jh=new Array(256);(function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=r&1,--i;e[t]=n<<i&255}})(jh);Gr.reverse=function(e){return jh[e&255]<<24|jh[e>>>8&255]<<16|jh[e>>>16&255]<<8|jh[e>>>24&255]};Gr.interleave2=function(e,t){return e&=65535,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t&=65535,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1};Gr.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=(e|e>>>1)&858993459,e=(e|e>>>2)&252645135,e=(e|e>>>4)&16711935,e=(e|e>>>16)&65535,e<<16>>16};Gr.interleave3=function(e,t,r){return e&=1023,e=(e|e<<16)&4278190335,e=(e|e<<8)&251719695,e=(e|e<<4)&3272356035,e=(e|e<<2)&1227133513,t&=1023,t=(t|t<<16)&4278190335,t=(t|t<<8)&251719695,t=(t|t<<4)&3272356035,t=(t|t<<2)&1227133513,e|=t<<1,r&=1023,r=(r|r<<16)&4278190335,r=(r|r<<8)&251719695,r=(r|r<<4)&3272356035,r=(r|r<<2)&1227133513,e|r<<2};Gr.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=(e|e>>>2)&3272356035,e=(e|e>>>4)&251719695,e=(e|e>>>8)&4278190335,e=(e|e>>>16)&1023,e<<22>>22};Gr.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>pN(e)+1};function vN(e,t,r){var n=e[r]|0;if(n<=0)return[];var i=new Array(n),a;if(r===e.length-1)for(a=0;a<n;++a)i[a]=t;else for(a=0;a<n;++a)i[a]=vN(e,t,r+1);return i}function Kee(e,t){var r,n;for(r=new Array(e),n=0;n<e;++n)r[n]=t;return r}function Qee(e,t){switch(typeof t>"u"&&(t=0),typeof e){case"number":if(e>0)return Kee(e|0,t);break;case"object":if(typeof e.length=="number")return vN(e,t,0);break}return[]}var Zee=Qee,mN={},iy={};iy.byteLength=tte;iy.toByteArray=nte;iy.fromByteArray=ote;var pa=[],Ti=[],Jee=typeof Uint8Array<"u"?Uint8Array:Array,Xx="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var $s=0,ete=Xx.length;$s<ete;++$s)pa[$s]=Xx[$s],Ti[Xx.charCodeAt($s)]=$s;Ti["-".charCodeAt(0)]=62;Ti["_".charCodeAt(0)]=63;function gN(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");r===-1&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function tte(e){var t=gN(e),r=t[0],n=t[1];return(r+n)*3/4-n}function rte(e,t,r){return(t+r)*3/4-r}function nte(e){var t,r=gN(e),n=r[0],i=r[1],a=new Jee(rte(e,n,i)),o=0,l=i>0?n-4:n,s;for(s=0;s<l;s+=4)t=Ti[e.charCodeAt(s)]<<18|Ti[e.charCodeAt(s+1)]<<12|Ti[e.charCodeAt(s+2)]<<6|Ti[e.charCodeAt(s+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Ti[e.charCodeAt(s)]<<2|Ti[e.charCodeAt(s+1)]>>4,a[o++]=t&255),i===1&&(t=Ti[e.charCodeAt(s)]<<10|Ti[e.charCodeAt(s+1)]<<4|Ti[e.charCodeAt(s+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function ite(e){return pa[e>>18&63]+pa[e>>12&63]+pa[e>>6&63]+pa[e&63]}function ate(e,t,r){for(var n,i=[],a=t;a<r;a+=3)n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(ite(n));return i.join("")}function ote(e){for(var t,r=e.length,n=r%3,i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(ate(e,o,o+a>l?l:o+a));return n===1?(t=e[r-1],i.push(pa[t>>2]+pa[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(pa[t>>10]+pa[t>>4&63]+pa[t<<2&63]+"=")),i.join("")}var OE={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */OE.read=function(e,t,r,n,i){var a,o,l=i*8-n-1,s=(1<<l)-1,f=s>>1,d=-7,g=r?i-1:0,v=r?-1:1,y=e[t+g];for(g+=v,a=y&(1<<-d)-1,y>>=-d,d+=l;d>0;a=a*256+e[t+g],g+=v,d-=8);for(o=a&(1<<-d)-1,a>>=-d,d+=n;d>0;o=o*256+e[t+g],g+=v,d-=8);if(a===0)a=1-f;else{if(a===s)return o?NaN:(y?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-f}return(y?-1:1)*o*Math.pow(2,a-n)};OE.write=function(e,t,r,n,i,a){var o,l,s,f=a*8-i-1,d=(1<<f)-1,g=d>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,y=n?0:a-1,E=n?1:-1,M=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,o=d):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),o+g>=1?t+=v/s:t+=v*Math.pow(2,1-g),t*s>=2&&(o++,s/=2),o+g>=d?(l=0,o=d):o+g>=1?(l=(t*s-1)*Math.pow(2,i),o=o+g):(l=t*Math.pow(2,g-1)*Math.pow(2,i),o=0));i>=8;e[r+y]=l&255,y+=E,l/=256,i-=8);for(o=o<<i|l,f+=i;f>0;e[r+y]=o&255,y+=E,o/=256,f-=8);e[r+y-E]|=M*128};/*!
1096
1096
  * The buffer module from node.js, for the browser.
1097
1097
  *
1098
1098
  * @author Feross Aboukhadijeh <https://feross.org>
1099
1099
  * @license MIT
1100
- */(function(e){var t=ay,r=kE;e.Buffer=o,e.SlowBuffer=x,e.INSPECT_MAX_BYTES=50;var n=2147483647;e.kMaxLength=n,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var R=new Uint8Array(1);return R.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},R.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(R){if(R>n)throw new RangeError('The value "'+R+'" is invalid for option "size"');var A=new Uint8Array(R);return A.__proto__=o.prototype,A}function o(R,A,M){if(typeof R=="number"){if(typeof A=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(R)}return l(R,A,M)}typeof Symbol<"u"&&Symbol.species!=null&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),o.poolSize=8192;function l(R,A,M){if(typeof R=="string")return g(R,A);if(ArrayBuffer.isView(R))return v(R);if(R==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R);if(W(R,ArrayBuffer)||R&&W(R.buffer,ArrayBuffer))return y(R,A,M);if(typeof R=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var $=R.valueOf&&R.valueOf();if($!=null&&$!==R)return o.from($,A,M);var fe=E(R);if(fe)return fe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof R[Symbol.toPrimitive]=="function")return o.from(R[Symbol.toPrimitive]("string"),A,M);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R)}o.from=function(R,A,M){return l(R,A,M)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array;function s(R){if(typeof R!="number")throw new TypeError('"size" argument must be of type number');if(R<0)throw new RangeError('The value "'+R+'" is invalid for option "size"')}function f(R,A,M){return s(R),R<=0?a(R):A!==void 0?typeof M=="string"?a(R).fill(A,M):a(R).fill(A):a(R)}o.alloc=function(R,A,M){return f(R,A,M)};function d(R){return s(R),a(R<0?0:k(R)|0)}o.allocUnsafe=function(R){return d(R)},o.allocUnsafeSlow=function(R){return d(R)};function g(R,A){if((typeof A!="string"||A==="")&&(A="utf8"),!o.isEncoding(A))throw new TypeError("Unknown encoding: "+A);var M=w(R,A)|0,$=a(M),fe=$.write(R,A);return fe!==M&&($=$.slice(0,fe)),$}function v(R){for(var A=R.length<0?0:k(R.length)|0,M=a(A),$=0;$<A;$+=1)M[$]=R[$]&255;return M}function y(R,A,M){if(A<0||R.byteLength<A)throw new RangeError('"offset" is outside of buffer bounds');if(R.byteLength<A+(M||0))throw new RangeError('"length" is outside of buffer bounds');var $;return A===void 0&&M===void 0?$=new Uint8Array(R):M===void 0?$=new Uint8Array(R,A):$=new Uint8Array(R,A,M),$.__proto__=o.prototype,$}function E(R){if(o.isBuffer(R)){var A=k(R.length)|0,M=a(A);return M.length===0||R.copy(M,0,0,A),M}if(R.length!==void 0)return typeof R.length!="number"||ae(R.length)?a(0):v(R);if(R.type==="Buffer"&&Array.isArray(R.data))return v(R.data)}function k(R){if(R>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return R|0}function x(R){return+R!=R&&(R=0),o.alloc(+R)}o.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==o.prototype},o.compare=function(A,M){if(W(A,Uint8Array)&&(A=o.from(A,A.offset,A.byteLength)),W(M,Uint8Array)&&(M=o.from(M,M.offset,M.byteLength)),!o.isBuffer(A)||!o.isBuffer(M))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===M)return 0;for(var $=A.length,fe=M.length,Ie=0,ze=Math.min($,fe);Ie<ze;++Ie)if(A[Ie]!==M[Ie]){$=A[Ie],fe=M[Ie];break}return $<fe?-1:fe<$?1:0},o.isEncoding=function(A){switch(String(A).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(A,M){if(!Array.isArray(A))throw new TypeError('"list" argument must be an Array of Buffers');if(A.length===0)return o.alloc(0);var $;if(M===void 0)for(M=0,$=0;$<A.length;++$)M+=A[$].length;var fe=o.allocUnsafe(M),Ie=0;for($=0;$<A.length;++$){var ze=A[$];if(W(ze,Uint8Array)&&(ze=o.from(ze)),!o.isBuffer(ze))throw new TypeError('"list" argument must be an Array of Buffers');ze.copy(fe,Ie),Ie+=ze.length}return fe};function w(R,A){if(o.isBuffer(R))return R.length;if(ArrayBuffer.isView(R)||W(R,ArrayBuffer))return R.byteLength;if(typeof R!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof R);var M=R.length,$=arguments.length>2&&arguments[2]===!0;if(!$&&M===0)return 0;for(var fe=!1;;)switch(A){case"ascii":case"latin1":case"binary":return M;case"utf8":case"utf-8":return Yt(R).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M*2;case"hex":return M>>>1;case"base64":return Gt(R).length;default:if(fe)return $?-1:Yt(R).length;A=(""+A).toLowerCase(),fe=!0}}o.byteLength=w;function _(R,A,M){var $=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((M===void 0||M>this.length)&&(M=this.length),M<=0)||(M>>>=0,A>>>=0,M<=A))return"";for(R||(R="utf8");;)switch(R){case"hex":return We(this,A,M);case"utf8":case"utf-8":return Fe(this,A,M);case"ascii":return nt(this,A,M);case"latin1":case"binary":return De(this,A,M);case"base64":return ke(this,A,M);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _t(this,A,M);default:if($)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),$=!0}}o.prototype._isBuffer=!0;function C(R,A,M){var $=R[A];R[A]=R[M],R[M]=$}o.prototype.swap16=function(){var A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var M=0;M<A;M+=2)C(this,M,M+1);return this},o.prototype.swap32=function(){var A=this.length;if(A%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var M=0;M<A;M+=4)C(this,M,M+3),C(this,M+1,M+2);return this},o.prototype.swap64=function(){var A=this.length;if(A%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var M=0;M<A;M+=8)C(this,M,M+7),C(this,M+1,M+6),C(this,M+2,M+5),C(this,M+3,M+4);return this},o.prototype.toString=function(){var A=this.length;return A===0?"":arguments.length===0?Fe(this,0,A):_.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(A){if(!o.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A?!0:o.compare(this,A)===0},o.prototype.inspect=function(){var A="",M=e.INSPECT_MAX_BYTES;return A=this.toString("hex",0,M).replace(/(.{2})/g,"$1 ").trim(),this.length>M&&(A+=" ... "),"<Buffer "+A+">"},o.prototype.compare=function(A,M,$,fe,Ie){if(W(A,Uint8Array)&&(A=o.from(A,A.offset,A.byteLength)),!o.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(M===void 0&&(M=0),$===void 0&&($=A?A.length:0),fe===void 0&&(fe=0),Ie===void 0&&(Ie=this.length),M<0||$>A.length||fe<0||Ie>this.length)throw new RangeError("out of range index");if(fe>=Ie&&M>=$)return 0;if(fe>=Ie)return-1;if(M>=$)return 1;if(M>>>=0,$>>>=0,fe>>>=0,Ie>>>=0,this===A)return 0;for(var ze=Ie-fe,Qt=$-M,fr=Math.min(ze,Qt),ir=this.slice(fe,Ie),Yr=A.slice(M,$),Mr=0;Mr<fr;++Mr)if(ir[Mr]!==Yr[Mr]){ze=ir[Mr],Qt=Yr[Mr];break}return ze<Qt?-1:Qt<ze?1:0};function T(R,A,M,$,fe){if(R.length===0)return-1;if(typeof M=="string"?($=M,M=0):M>2147483647?M=2147483647:M<-2147483648&&(M=-2147483648),M=+M,ae(M)&&(M=fe?0:R.length-1),M<0&&(M=R.length+M),M>=R.length){if(fe)return-1;M=R.length-1}else if(M<0)if(fe)M=0;else return-1;if(typeof A=="string"&&(A=o.from(A,$)),o.isBuffer(A))return A.length===0?-1:F(R,A,M,$,fe);if(typeof A=="number")return A=A&255,typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(R,A,M):Uint8Array.prototype.lastIndexOf.call(R,A,M):F(R,[A],M,$,fe);throw new TypeError("val must be string, number or Buffer")}function F(R,A,M,$,fe){var Ie=1,ze=R.length,Qt=A.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(R.length<2||A.length<2)return-1;Ie=2,ze/=2,Qt/=2,M/=2}function fr(Eu,Ca){return Ie===1?Eu[Ca]:Eu.readUInt16BE(Ca*Ie)}var ir;if(fe){var Yr=-1;for(ir=M;ir<ze;ir++)if(fr(R,ir)===fr(A,Yr===-1?0:ir-Yr)){if(Yr===-1&&(Yr=ir),ir-Yr+1===Qt)return Yr*Ie}else Yr!==-1&&(ir-=ir-Yr),Yr=-1}else for(M+Qt>ze&&(M=ze-Qt),ir=M;ir>=0;ir--){for(var Mr=!0,na=0;na<Qt;na++)if(fr(R,ir+na)!==fr(A,na)){Mr=!1;break}if(Mr)return ir}return-1}o.prototype.includes=function(A,M,$){return this.indexOf(A,M,$)!==-1},o.prototype.indexOf=function(A,M,$){return T(this,A,M,$,!0)},o.prototype.lastIndexOf=function(A,M,$){return T(this,A,M,$,!1)};function L(R,A,M,$){M=Number(M)||0;var fe=R.length-M;$?($=Number($),$>fe&&($=fe)):$=fe;var Ie=A.length;$>Ie/2&&($=Ie/2);for(var ze=0;ze<$;++ze){var Qt=parseInt(A.substr(ze*2,2),16);if(ae(Qt))return ze;R[M+ze]=Qt}return ze}function V(R,A,M,$){return Ce(Yt(A,R.length-M),R,M,$)}function j(R,A,M,$){return Ce(Qe(A),R,M,$)}function te(R,A,M,$){return j(R,A,M,$)}function ge(R,A,M,$){return Ce(Gt(A),R,M,$)}function me(R,A,M,$){return Ce(At(A,R.length-M),R,M,$)}o.prototype.write=function(A,M,$,fe){if(M===void 0)fe="utf8",$=this.length,M=0;else if($===void 0&&typeof M=="string")fe=M,$=this.length,M=0;else if(isFinite(M))M=M>>>0,isFinite($)?($=$>>>0,fe===void 0&&(fe="utf8")):(fe=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ie=this.length-M;if(($===void 0||$>Ie)&&($=Ie),A.length>0&&($<0||M<0)||M>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var ze=!1;;)switch(fe){case"hex":return L(this,A,M,$);case"utf8":case"utf-8":return V(this,A,M,$);case"ascii":return j(this,A,M,$);case"latin1":case"binary":return te(this,A,M,$);case"base64":return ge(this,A,M,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,A,M,$);default:if(ze)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),ze=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ke(R,A,M){return A===0&&M===R.length?t.fromByteArray(R):t.fromByteArray(R.slice(A,M))}function Fe(R,A,M){M=Math.min(R.length,M);for(var $=[],fe=A;fe<M;){var Ie=R[fe],ze=null,Qt=Ie>239?4:Ie>223?3:Ie>191?2:1;if(fe+Qt<=M){var fr,ir,Yr,Mr;switch(Qt){case 1:Ie<128&&(ze=Ie);break;case 2:fr=R[fe+1],(fr&192)===128&&(Mr=(Ie&31)<<6|fr&63,Mr>127&&(ze=Mr));break;case 3:fr=R[fe+1],ir=R[fe+2],(fr&192)===128&&(ir&192)===128&&(Mr=(Ie&15)<<12|(fr&63)<<6|ir&63,Mr>2047&&(Mr<55296||Mr>57343)&&(ze=Mr));break;case 4:fr=R[fe+1],ir=R[fe+2],Yr=R[fe+3],(fr&192)===128&&(ir&192)===128&&(Yr&192)===128&&(Mr=(Ie&15)<<18|(fr&63)<<12|(ir&63)<<6|Yr&63,Mr>65535&&Mr<1114112&&(ze=Mr))}}ze===null?(ze=65533,Qt=1):ze>65535&&(ze-=65536,$.push(ze>>>10&1023|55296),ze=56320|ze&1023),$.push(ze),fe+=Qt}return ut($)}var Le=4096;function ut(R){var A=R.length;if(A<=Le)return String.fromCharCode.apply(String,R);for(var M="",$=0;$<A;)M+=String.fromCharCode.apply(String,R.slice($,$+=Le));return M}function nt(R,A,M){var $="";M=Math.min(R.length,M);for(var fe=A;fe<M;++fe)$+=String.fromCharCode(R[fe]&127);return $}function De(R,A,M){var $="";M=Math.min(R.length,M);for(var fe=A;fe<M;++fe)$+=String.fromCharCode(R[fe]);return $}function We(R,A,M){var $=R.length;(!A||A<0)&&(A=0),(!M||M<0||M>$)&&(M=$);for(var fe="",Ie=A;Ie<M;++Ie)fe+=qt(R[Ie]);return fe}function _t(R,A,M){for(var $=R.slice(A,M),fe="",Ie=0;Ie<$.length;Ie+=2)fe+=String.fromCharCode($[Ie]+$[Ie+1]*256);return fe}o.prototype.slice=function(A,M){var $=this.length;A=~~A,M=M===void 0?$:~~M,A<0?(A+=$,A<0&&(A=0)):A>$&&(A=$),M<0?(M+=$,M<0&&(M=0)):M>$&&(M=$),M<A&&(M=A);var fe=this.subarray(A,M);return fe.__proto__=o.prototype,fe};function He(R,A,M){if(R%1!==0||R<0)throw new RangeError("offset is not uint");if(R+A>M)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUIntLE=function(A,M,$){A=A>>>0,M=M>>>0,$||He(A,M,this.length);for(var fe=this[A],Ie=1,ze=0;++ze<M&&(Ie*=256);)fe+=this[A+ze]*Ie;return fe},o.prototype.readUIntBE=function(A,M,$){A=A>>>0,M=M>>>0,$||He(A,M,this.length);for(var fe=this[A+--M],Ie=1;M>0&&(Ie*=256);)fe+=this[A+--M]*Ie;return fe},o.prototype.readUInt8=function(A,M){return A=A>>>0,M||He(A,1,this.length),this[A]},o.prototype.readUInt16LE=function(A,M){return A=A>>>0,M||He(A,2,this.length),this[A]|this[A+1]<<8},o.prototype.readUInt16BE=function(A,M){return A=A>>>0,M||He(A,2,this.length),this[A]<<8|this[A+1]},o.prototype.readUInt32LE=function(A,M){return A=A>>>0,M||He(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},o.prototype.readUInt32BE=function(A,M){return A=A>>>0,M||He(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},o.prototype.readIntLE=function(A,M,$){A=A>>>0,M=M>>>0,$||He(A,M,this.length);for(var fe=this[A],Ie=1,ze=0;++ze<M&&(Ie*=256);)fe+=this[A+ze]*Ie;return Ie*=128,fe>=Ie&&(fe-=Math.pow(2,8*M)),fe},o.prototype.readIntBE=function(A,M,$){A=A>>>0,M=M>>>0,$||He(A,M,this.length);for(var fe=M,Ie=1,ze=this[A+--fe];fe>0&&(Ie*=256);)ze+=this[A+--fe]*Ie;return Ie*=128,ze>=Ie&&(ze-=Math.pow(2,8*M)),ze},o.prototype.readInt8=function(A,M){return A=A>>>0,M||He(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},o.prototype.readInt16LE=function(A,M){A=A>>>0,M||He(A,2,this.length);var $=this[A]|this[A+1]<<8;return $&32768?$|4294901760:$},o.prototype.readInt16BE=function(A,M){A=A>>>0,M||He(A,2,this.length);var $=this[A+1]|this[A]<<8;return $&32768?$|4294901760:$},o.prototype.readInt32LE=function(A,M){return A=A>>>0,M||He(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},o.prototype.readInt32BE=function(A,M){return A=A>>>0,M||He(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},o.prototype.readFloatLE=function(A,M){return A=A>>>0,M||He(A,4,this.length),r.read(this,A,!0,23,4)},o.prototype.readFloatBE=function(A,M){return A=A>>>0,M||He(A,4,this.length),r.read(this,A,!1,23,4)},o.prototype.readDoubleLE=function(A,M){return A=A>>>0,M||He(A,8,this.length),r.read(this,A,!0,52,8)},o.prototype.readDoubleBE=function(A,M){return A=A>>>0,M||He(A,8,this.length),r.read(this,A,!1,52,8)};function we(R,A,M,$,fe,Ie){if(!o.isBuffer(R))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>fe||A<Ie)throw new RangeError('"value" argument is out of bounds');if(M+$>R.length)throw new RangeError("Index out of range")}o.prototype.writeUIntLE=function(A,M,$,fe){if(A=+A,M=M>>>0,$=$>>>0,!fe){var Ie=Math.pow(2,8*$)-1;we(this,A,M,$,Ie,0)}var ze=1,Qt=0;for(this[M]=A&255;++Qt<$&&(ze*=256);)this[M+Qt]=A/ze&255;return M+$},o.prototype.writeUIntBE=function(A,M,$,fe){if(A=+A,M=M>>>0,$=$>>>0,!fe){var Ie=Math.pow(2,8*$)-1;we(this,A,M,$,Ie,0)}var ze=$-1,Qt=1;for(this[M+ze]=A&255;--ze>=0&&(Qt*=256);)this[M+ze]=A/Qt&255;return M+$},o.prototype.writeUInt8=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,1,255,0),this[M]=A&255,M+1},o.prototype.writeUInt16LE=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,2,65535,0),this[M]=A&255,this[M+1]=A>>>8,M+2},o.prototype.writeUInt16BE=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,2,65535,0),this[M]=A>>>8,this[M+1]=A&255,M+2},o.prototype.writeUInt32LE=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,4,4294967295,0),this[M+3]=A>>>24,this[M+2]=A>>>16,this[M+1]=A>>>8,this[M]=A&255,M+4},o.prototype.writeUInt32BE=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,4,4294967295,0),this[M]=A>>>24,this[M+1]=A>>>16,this[M+2]=A>>>8,this[M+3]=A&255,M+4},o.prototype.writeIntLE=function(A,M,$,fe){if(A=+A,M=M>>>0,!fe){var Ie=Math.pow(2,8*$-1);we(this,A,M,$,Ie-1,-Ie)}var ze=0,Qt=1,fr=0;for(this[M]=A&255;++ze<$&&(Qt*=256);)A<0&&fr===0&&this[M+ze-1]!==0&&(fr=1),this[M+ze]=(A/Qt>>0)-fr&255;return M+$},o.prototype.writeIntBE=function(A,M,$,fe){if(A=+A,M=M>>>0,!fe){var Ie=Math.pow(2,8*$-1);we(this,A,M,$,Ie-1,-Ie)}var ze=$-1,Qt=1,fr=0;for(this[M+ze]=A&255;--ze>=0&&(Qt*=256);)A<0&&fr===0&&this[M+ze+1]!==0&&(fr=1),this[M+ze]=(A/Qt>>0)-fr&255;return M+$},o.prototype.writeInt8=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,1,127,-128),A<0&&(A=255+A+1),this[M]=A&255,M+1},o.prototype.writeInt16LE=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,2,32767,-32768),this[M]=A&255,this[M+1]=A>>>8,M+2},o.prototype.writeInt16BE=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,2,32767,-32768),this[M]=A>>>8,this[M+1]=A&255,M+2},o.prototype.writeInt32LE=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,4,2147483647,-2147483648),this[M]=A&255,this[M+1]=A>>>8,this[M+2]=A>>>16,this[M+3]=A>>>24,M+4},o.prototype.writeInt32BE=function(A,M,$){return A=+A,M=M>>>0,$||we(this,A,M,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[M]=A>>>24,this[M+1]=A>>>16,this[M+2]=A>>>8,this[M+3]=A&255,M+4};function qe(R,A,M,$,fe,Ie){if(M+$>R.length)throw new RangeError("Index out of range");if(M<0)throw new RangeError("Index out of range")}function st(R,A,M,$,fe){return A=+A,M=M>>>0,fe||qe(R,A,M,4),r.write(R,A,M,$,23,4),M+4}o.prototype.writeFloatLE=function(A,M,$){return st(this,A,M,!0,$)},o.prototype.writeFloatBE=function(A,M,$){return st(this,A,M,!1,$)};function Ke(R,A,M,$,fe){return A=+A,M=M>>>0,fe||qe(R,A,M,8),r.write(R,A,M,$,52,8),M+8}o.prototype.writeDoubleLE=function(A,M,$){return Ke(this,A,M,!0,$)},o.prototype.writeDoubleBE=function(A,M,$){return Ke(this,A,M,!1,$)},o.prototype.copy=function(A,M,$,fe){if(!o.isBuffer(A))throw new TypeError("argument should be a Buffer");if($||($=0),!fe&&fe!==0&&(fe=this.length),M>=A.length&&(M=A.length),M||(M=0),fe>0&&fe<$&&(fe=$),fe===$||A.length===0||this.length===0)return 0;if(M<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("Index out of range");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),A.length-M<fe-$&&(fe=A.length-M+$);var Ie=fe-$;if(this===A&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(M,$,fe);else if(this===A&&$<M&&M<fe)for(var ze=Ie-1;ze>=0;--ze)A[ze+M]=this[ze+$];else Uint8Array.prototype.set.call(A,this.subarray($,fe),M);return Ie},o.prototype.fill=function(A,M,$,fe){if(typeof A=="string"){if(typeof M=="string"?(fe=M,M=0,$=this.length):typeof $=="string"&&(fe=$,$=this.length),fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!o.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe);if(A.length===1){var Ie=A.charCodeAt(0);(fe==="utf8"&&Ie<128||fe==="latin1")&&(A=Ie)}}else typeof A=="number"&&(A=A&255);if(M<0||this.length<M||this.length<$)throw new RangeError("Out of range index");if($<=M)return this;M=M>>>0,$=$===void 0?this.length:$>>>0,A||(A=0);var ze;if(typeof A=="number")for(ze=M;ze<$;++ze)this[ze]=A;else{var Qt=o.isBuffer(A)?A:o.from(A,fe),fr=Qt.length;if(fr===0)throw new TypeError('The value "'+A+'" is invalid for argument "value"');for(ze=0;ze<$-M;++ze)this[ze+M]=Qt[ze%fr]}return this};var ct=/[^+/0-9A-Za-z-_]/g;function yt(R){if(R=R.split("=")[0],R=R.trim().replace(ct,""),R.length<2)return"";for(;R.length%4!==0;)R=R+"=";return R}function qt(R){return R<16?"0"+R.toString(16):R.toString(16)}function Yt(R,A){A=A||1/0;for(var M,$=R.length,fe=null,Ie=[],ze=0;ze<$;++ze){if(M=R.charCodeAt(ze),M>55295&&M<57344){if(!fe){if(M>56319){(A-=3)>-1&&Ie.push(239,191,189);continue}else if(ze+1===$){(A-=3)>-1&&Ie.push(239,191,189);continue}fe=M;continue}if(M<56320){(A-=3)>-1&&Ie.push(239,191,189),fe=M;continue}M=(fe-55296<<10|M-56320)+65536}else fe&&(A-=3)>-1&&Ie.push(239,191,189);if(fe=null,M<128){if((A-=1)<0)break;Ie.push(M)}else if(M<2048){if((A-=2)<0)break;Ie.push(M>>6|192,M&63|128)}else if(M<65536){if((A-=3)<0)break;Ie.push(M>>12|224,M>>6&63|128,M&63|128)}else if(M<1114112){if((A-=4)<0)break;Ie.push(M>>18|240,M>>12&63|128,M>>6&63|128,M&63|128)}else throw new Error("Invalid code point")}return Ie}function Qe(R){for(var A=[],M=0;M<R.length;++M)A.push(R.charCodeAt(M)&255);return A}function At(R,A){for(var M,$,fe,Ie=[],ze=0;ze<R.length&&!((A-=2)<0);++ze)M=R.charCodeAt(ze),$=M>>8,fe=M%256,Ie.push(fe),Ie.push($);return Ie}function Gt(R){return t.toByteArray(yt(R))}function Ce(R,A,M,$){for(var fe=0;fe<$&&!(fe+M>=A.length||fe>=R.length);++fe)A[fe+M]=R[fe];return fe}function W(R,A){return R instanceof A||R!=null&&R.constructor!=null&&R.constructor.name!=null&&R.constructor.name===A.name}function ae(R){return R!==R}})(yN);var pu=Gr,Cn=ete,xN=yN.Buffer;Jt.__TYPEDARRAY_POOL||(Jt.__TYPEDARRAY_POOL={UINT8:Cn([32,0]),UINT16:Cn([32,0]),UINT32:Cn([32,0]),BIGUINT64:Cn([32,0]),INT8:Cn([32,0]),INT16:Cn([32,0]),INT32:Cn([32,0]),BIGINT64:Cn([32,0]),FLOAT:Cn([32,0]),DOUBLE:Cn([32,0]),DATA:Cn([32,0]),UINT8C:Cn([32,0]),BUFFER:Cn([32,0])});var ste=typeof Uint8ClampedArray<"u",fte=typeof BigUint64Array<"u",cte=typeof BigInt64Array<"u",Kr=Jt.__TYPEDARRAY_POOL;Kr.UINT8C||(Kr.UINT8C=Cn([32,0]));Kr.BIGUINT64||(Kr.BIGUINT64=Cn([32,0]));Kr.BIGINT64||(Kr.BIGINT64=Cn([32,0]));Kr.BUFFER||(Kr.BUFFER=Cn([32,0]));var oy=Kr.DATA,uy=Kr.BUFFER;vr.free=function(t){if(xN.isBuffer(t))uy[pu.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=pu.log2(r)|0;oy[n].push(t)}};function wN(e){if(e){var t=e.length||e.byteLength,r=pu.log2(t);oy[r].push(e)}}function hte(e){wN(e.buffer)}vr.freeUint8=vr.freeUint16=vr.freeUint32=vr.freeBigUint64=vr.freeInt8=vr.freeInt16=vr.freeInt32=vr.freeBigInt64=vr.freeFloat32=vr.freeFloat=vr.freeFloat64=vr.freeDouble=vr.freeUint8Clamped=vr.freeDataView=hte;vr.freeArrayBuffer=wN;vr.freeBuffer=function(t){uy[pu.log2(t.length)].push(t)};vr.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return ii(t);switch(r){case"uint8":return ME(t);case"uint16":return _N(t);case"uint32":return SN(t);case"int8":return EN(t);case"int16":return AN(t);case"int32":return TN(t);case"float":case"float32":return CN(t);case"double":case"float64":return ON(t);case"uint8_clamped":return kN(t);case"bigint64":return RN(t);case"biguint64":return MN(t);case"buffer":return IN(t);case"data":case"dataview":return PN(t);default:return null}return null};function ii(t){var t=pu.nextPow2(t),r=pu.log2(t),n=oy[r];return n.length>0?n.pop():new ArrayBuffer(t)}vr.mallocArrayBuffer=ii;function ME(e){return new Uint8Array(ii(e),0,e)}vr.mallocUint8=ME;function _N(e){return new Uint16Array(ii(2*e),0,e)}vr.mallocUint16=_N;function SN(e){return new Uint32Array(ii(4*e),0,e)}vr.mallocUint32=SN;function EN(e){return new Int8Array(ii(e),0,e)}vr.mallocInt8=EN;function AN(e){return new Int16Array(ii(2*e),0,e)}vr.mallocInt16=AN;function TN(e){return new Int32Array(ii(4*e),0,e)}vr.mallocInt32=TN;function CN(e){return new Float32Array(ii(4*e),0,e)}vr.mallocFloat32=vr.mallocFloat=CN;function ON(e){return new Float64Array(ii(8*e),0,e)}vr.mallocFloat64=vr.mallocDouble=ON;function kN(e){return ste?new Uint8ClampedArray(ii(e),0,e):ME(e)}vr.mallocUint8Clamped=kN;function MN(e){return fte?new BigUint64Array(ii(8*e),0,e):null}vr.mallocBigUint64=MN;function RN(e){return cte?new BigInt64Array(ii(8*e),0,e):null}vr.mallocBigInt64=RN;function PN(e){return new DataView(ii(e),0,e)}vr.mallocDataView=PN;function IN(e){e=pu.nextPow2(e);var t=pu.log2(e),r=uy[t];return r.length>0?r.pop():new xN(e)}vr.mallocBuffer=IN;vr.clearCache=function(){for(var t=0;t<32;++t)Kr.UINT8[t].length=0,Kr.UINT16[t].length=0,Kr.UINT32[t].length=0,Kr.INT8[t].length=0,Kr.INT16[t].length=0,Kr.INT32[t].length=0,Kr.FLOAT[t].length=0,Kr.DOUBLE[t].length=0,Kr.BIGUINT64[t].length=0,Kr.BIGINT64[t].length=0,Kr.UINT8C[t].length=0,oy[t].length=0,uy[t].length=0};var FN=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r},dte=FN,pte=NN,Ph=96;function l2(e,t){var r=dte(getComputedStyle(e).getPropertyValue(t));return r[0]*NN(r[1],e)}function vte(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=l2(r,"font-size")/128;return t.removeChild(r),n}function NN(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return vte(e,t);case"em":return l2(t,"font-size");case"rem":return l2(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return Ph;case"cm":return Ph/2.54;case"mm":return Ph/25.4;case"pt":return Ph/72;case"pc":return Ph/6}return 1}var mte=ly,gte=ly.canvas=document.createElement("canvas"),O0=gte.getContext("2d"),LN=ng([32,126]);ly.createPairs=ng;ly.ascii=LN;function ly(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=ng(t):Array.isArray(t)?n=t:(t.o?n=ng(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=LN),O0.font=i+"px "+e;for(var o=0;o<n.length;o++){var l=n[o],s=O0.measureText(l[0]).width+O0.measureText(l[1]).width,f=O0.measureText(l).width;if(Math.abs(s-f)>i*a){var d=(f-s)/i;r[l]=d*1e3}}return r}function ng(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i<e[1];i++){var a=String.fromCharCode(i),o=n+a;t.push(o)}return t}var yte=jo;jo.canvas=document.createElement("canvas");jo.cache={};function jo(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,l=t.origin||"top";if(jo.cache[r]&&n<=jo.cache[r].em)return hk(jo.cache[r],l);var s=t.canvas||jo.canvas,f=s.getContext("2d"),d={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},g=Math.ceil(n*1.5);s.height=g,s.width=g*.5,f.font=o;var v="H",y={top:0};f.clearRect(0,0,g,g),f.textBaseline="top",f.fillStyle="black",f.fillText(v,0,0);var E=ca(f.getImageData(0,0,g,g));f.clearRect(0,0,g,g),f.textBaseline="bottom",f.fillText(v,0,g);var k=ca(f.getImageData(0,0,g,g));y.lineHeight=y.bottom=g-k+E,f.clearRect(0,0,g,g),f.textBaseline="alphabetic",f.fillText(v,0,g);var x=ca(f.getImageData(0,0,g,g)),w=g-x-1+E;y.baseline=y.alphabetic=w,f.clearRect(0,0,g,g),f.textBaseline="middle",f.fillText(v,0,g*.5);var _=ca(f.getImageData(0,0,g,g));y.median=y.middle=g-_-1+E-g*.5,f.clearRect(0,0,g,g),f.textBaseline="hanging",f.fillText(v,0,g*.5);var C=ca(f.getImageData(0,0,g,g));y.hanging=g-C-1+E-g*.5,f.clearRect(0,0,g,g),f.textBaseline="ideographic",f.fillText(v,0,g);var T=ca(f.getImageData(0,0,g,g));if(y.ideographic=g-T-1+E,d.upper&&(f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.upper,0,0),y.upper=ca(f.getImageData(0,0,g,g)),y.capHeight=y.baseline-y.upper),d.lower&&(f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.lower,0,0),y.lower=ca(f.getImageData(0,0,g,g)),y.xHeight=y.baseline-y.lower),d.tittle&&(f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.tittle,0,0),y.tittle=ca(f.getImageData(0,0,g,g))),d.ascent&&(f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.ascent,0,0),y.ascent=ca(f.getImageData(0,0,g,g))),d.descent&&(f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.descent,0,0),y.descent=dk(f.getImageData(0,0,g,g))),d.overshoot){f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.overshoot,0,0);var F=dk(f.getImageData(0,0,g,g));y.overshoot=F-w}for(var L in y)y[L]/=n;return y.em=n,jo.cache[r]=y,hk(y,l)}function hk(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function ca(e){for(var t=e.height,r=e.data,n=3;n<r.length;n+=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}function dk(e){for(var t=e.height,r=e.data,n=r.length-1;n>0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}var Bs=jee,bte=_u,xte=Gee,wte=Hee,_te=iN,Qx=ty,Ste=Kee,Lo=vr,Ete=ey,Ate=HF,Tte=FN,Cte=pte,Ote=mte,kte=Pl,Mte=yte,Rte=gp,Pte=Gr,pk=Pte.nextPow2,vk=new _te,nm=!1;if(document.body){var Zx=document.body.appendChild(document.createElement("div"));Zx.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(Zx).fontStretch&&(nm=!0),document.body.removeChild(Zx)}var xr=function(t){Ite(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=wte(t),this.shader=vk.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||xte({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),vk.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(Ate(t)?t:{})};xr.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:`
1100
+ */(function(e){var t=iy,r=OE;e.Buffer=o,e.SlowBuffer=x,e.INSPECT_MAX_BYTES=50;var n=2147483647;e.kMaxLength=n,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{var R=new Uint8Array(1);return R.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},R.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(R){if(R>n)throw new RangeError('The value "'+R+'" is invalid for option "size"');var A=new Uint8Array(R);return A.__proto__=o.prototype,A}function o(R,A,k){if(typeof R=="number"){if(typeof A=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(R)}return l(R,A,k)}typeof Symbol<"u"&&Symbol.species!=null&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),o.poolSize=8192;function l(R,A,k){if(typeof R=="string")return g(R,A);if(ArrayBuffer.isView(R))return v(R);if(R==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R);if(W(R,ArrayBuffer)||R&&W(R.buffer,ArrayBuffer))return y(R,A,k);if(typeof R=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var $=R.valueOf&&R.valueOf();if($!=null&&$!==R)return o.from($,A,k);var fe=E(R);if(fe)return fe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof R[Symbol.toPrimitive]=="function")return o.from(R[Symbol.toPrimitive]("string"),A,k);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof R)}o.from=function(R,A,k){return l(R,A,k)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array;function s(R){if(typeof R!="number")throw new TypeError('"size" argument must be of type number');if(R<0)throw new RangeError('The value "'+R+'" is invalid for option "size"')}function f(R,A,k){return s(R),R<=0?a(R):A!==void 0?typeof k=="string"?a(R).fill(A,k):a(R).fill(A):a(R)}o.alloc=function(R,A,k){return f(R,A,k)};function d(R){return s(R),a(R<0?0:M(R)|0)}o.allocUnsafe=function(R){return d(R)},o.allocUnsafeSlow=function(R){return d(R)};function g(R,A){if((typeof A!="string"||A==="")&&(A="utf8"),!o.isEncoding(A))throw new TypeError("Unknown encoding: "+A);var k=w(R,A)|0,$=a(k),fe=$.write(R,A);return fe!==k&&($=$.slice(0,fe)),$}function v(R){for(var A=R.length<0?0:M(R.length)|0,k=a(A),$=0;$<A;$+=1)k[$]=R[$]&255;return k}function y(R,A,k){if(A<0||R.byteLength<A)throw new RangeError('"offset" is outside of buffer bounds');if(R.byteLength<A+(k||0))throw new RangeError('"length" is outside of buffer bounds');var $;return A===void 0&&k===void 0?$=new Uint8Array(R):k===void 0?$=new Uint8Array(R,A):$=new Uint8Array(R,A,k),$.__proto__=o.prototype,$}function E(R){if(o.isBuffer(R)){var A=M(R.length)|0,k=a(A);return k.length===0||R.copy(k,0,0,A),k}if(R.length!==void 0)return typeof R.length!="number"||ae(R.length)?a(0):v(R);if(R.type==="Buffer"&&Array.isArray(R.data))return v(R.data)}function M(R){if(R>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return R|0}function x(R){return+R!=R&&(R=0),o.alloc(+R)}o.isBuffer=function(A){return A!=null&&A._isBuffer===!0&&A!==o.prototype},o.compare=function(A,k){if(W(A,Uint8Array)&&(A=o.from(A,A.offset,A.byteLength)),W(k,Uint8Array)&&(k=o.from(k,k.offset,k.byteLength)),!o.isBuffer(A)||!o.isBuffer(k))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(A===k)return 0;for(var $=A.length,fe=k.length,Ie=0,ze=Math.min($,fe);Ie<ze;++Ie)if(A[Ie]!==k[Ie]){$=A[Ie],fe=k[Ie];break}return $<fe?-1:fe<$?1:0},o.isEncoding=function(A){switch(String(A).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(A,k){if(!Array.isArray(A))throw new TypeError('"list" argument must be an Array of Buffers');if(A.length===0)return o.alloc(0);var $;if(k===void 0)for(k=0,$=0;$<A.length;++$)k+=A[$].length;var fe=o.allocUnsafe(k),Ie=0;for($=0;$<A.length;++$){var ze=A[$];if(W(ze,Uint8Array)&&(ze=o.from(ze)),!o.isBuffer(ze))throw new TypeError('"list" argument must be an Array of Buffers');ze.copy(fe,Ie),Ie+=ze.length}return fe};function w(R,A){if(o.isBuffer(R))return R.length;if(ArrayBuffer.isView(R)||W(R,ArrayBuffer))return R.byteLength;if(typeof R!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof R);var k=R.length,$=arguments.length>2&&arguments[2]===!0;if(!$&&k===0)return 0;for(var fe=!1;;)switch(A){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":return Yt(R).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k*2;case"hex":return k>>>1;case"base64":return jt(R).length;default:if(fe)return $?-1:Yt(R).length;A=(""+A).toLowerCase(),fe=!0}}o.byteLength=w;function _(R,A,k){var $=!1;if((A===void 0||A<0)&&(A=0),A>this.length||((k===void 0||k>this.length)&&(k=this.length),k<=0)||(k>>>=0,A>>>=0,k<=A))return"";for(R||(R="utf8");;)switch(R){case"hex":return We(this,A,k);case"utf8":case"utf-8":return Fe(this,A,k);case"ascii":return nt(this,A,k);case"latin1":case"binary":return De(this,A,k);case"base64":return Me(this,A,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _t(this,A,k);default:if($)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),$=!0}}o.prototype._isBuffer=!0;function T(R,A,k){var $=R[A];R[A]=R[k],R[k]=$}o.prototype.swap16=function(){var A=this.length;if(A%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var k=0;k<A;k+=2)T(this,k,k+1);return this},o.prototype.swap32=function(){var A=this.length;if(A%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var k=0;k<A;k+=4)T(this,k,k+3),T(this,k+1,k+2);return this},o.prototype.swap64=function(){var A=this.length;if(A%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var k=0;k<A;k+=8)T(this,k,k+7),T(this,k+1,k+6),T(this,k+2,k+5),T(this,k+3,k+4);return this},o.prototype.toString=function(){var A=this.length;return A===0?"":arguments.length===0?Fe(this,0,A):_.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(A){if(!o.isBuffer(A))throw new TypeError("Argument must be a Buffer");return this===A?!0:o.compare(this,A)===0},o.prototype.inspect=function(){var A="",k=e.INSPECT_MAX_BYTES;return A=this.toString("hex",0,k).replace(/(.{2})/g,"$1 ").trim(),this.length>k&&(A+=" ... "),"<Buffer "+A+">"},o.prototype.compare=function(A,k,$,fe,Ie){if(W(A,Uint8Array)&&(A=o.from(A,A.offset,A.byteLength)),!o.isBuffer(A))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof A);if(k===void 0&&(k=0),$===void 0&&($=A?A.length:0),fe===void 0&&(fe=0),Ie===void 0&&(Ie=this.length),k<0||$>A.length||fe<0||Ie>this.length)throw new RangeError("out of range index");if(fe>=Ie&&k>=$)return 0;if(fe>=Ie)return-1;if(k>=$)return 1;if(k>>>=0,$>>>=0,fe>>>=0,Ie>>>=0,this===A)return 0;for(var ze=Ie-fe,Qt=$-k,fr=Math.min(ze,Qt),ir=this.slice(fe,Ie),Yr=A.slice(k,$),kr=0;kr<fr;++kr)if(ir[kr]!==Yr[kr]){ze=ir[kr],Qt=Yr[kr];break}return ze<Qt?-1:Qt<ze?1:0};function C(R,A,k,$,fe){if(R.length===0)return-1;if(typeof k=="string"?($=k,k=0):k>2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),k=+k,ae(k)&&(k=fe?0:R.length-1),k<0&&(k=R.length+k),k>=R.length){if(fe)return-1;k=R.length-1}else if(k<0)if(fe)k=0;else return-1;if(typeof A=="string"&&(A=o.from(A,$)),o.isBuffer(A))return A.length===0?-1:F(R,A,k,$,fe);if(typeof A=="number")return A=A&255,typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(R,A,k):Uint8Array.prototype.lastIndexOf.call(R,A,k):F(R,[A],k,$,fe);throw new TypeError("val must be string, number or Buffer")}function F(R,A,k,$,fe){var Ie=1,ze=R.length,Qt=A.length;if($!==void 0&&($=String($).toLowerCase(),$==="ucs2"||$==="ucs-2"||$==="utf16le"||$==="utf-16le")){if(R.length<2||A.length<2)return-1;Ie=2,ze/=2,Qt/=2,k/=2}function fr(Eu,Ta){return Ie===1?Eu[Ta]:Eu.readUInt16BE(Ta*Ie)}var ir;if(fe){var Yr=-1;for(ir=k;ir<ze;ir++)if(fr(R,ir)===fr(A,Yr===-1?0:ir-Yr)){if(Yr===-1&&(Yr=ir),ir-Yr+1===Qt)return Yr*Ie}else Yr!==-1&&(ir-=ir-Yr),Yr=-1}else for(k+Qt>ze&&(k=ze-Qt),ir=k;ir>=0;ir--){for(var kr=!0,na=0;na<Qt;na++)if(fr(R,ir+na)!==fr(A,na)){kr=!1;break}if(kr)return ir}return-1}o.prototype.includes=function(A,k,$){return this.indexOf(A,k,$)!==-1},o.prototype.indexOf=function(A,k,$){return C(this,A,k,$,!0)},o.prototype.lastIndexOf=function(A,k,$){return C(this,A,k,$,!1)};function L(R,A,k,$){k=Number(k)||0;var fe=R.length-k;$?($=Number($),$>fe&&($=fe)):$=fe;var Ie=A.length;$>Ie/2&&($=Ie/2);for(var ze=0;ze<$;++ze){var Qt=parseInt(A.substr(ze*2,2),16);if(ae(Qt))return ze;R[k+ze]=Qt}return ze}function V(R,A,k,$){return Te(Yt(A,R.length-k),R,k,$)}function j(R,A,k,$){return Te(Qe(A),R,k,$)}function te(R,A,k,$){return j(R,A,k,$)}function ge(R,A,k,$){return Te(jt(A),R,k,$)}function me(R,A,k,$){return Te(At(A,R.length-k),R,k,$)}o.prototype.write=function(A,k,$,fe){if(k===void 0)fe="utf8",$=this.length,k=0;else if($===void 0&&typeof k=="string")fe=k,$=this.length,k=0;else if(isFinite(k))k=k>>>0,isFinite($)?($=$>>>0,fe===void 0&&(fe="utf8")):(fe=$,$=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ie=this.length-k;if(($===void 0||$>Ie)&&($=Ie),A.length>0&&($<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var ze=!1;;)switch(fe){case"hex":return L(this,A,k,$);case"utf8":case"utf-8":return V(this,A,k,$);case"ascii":return j(this,A,k,$);case"latin1":case"binary":return te(this,A,k,$);case"base64":return ge(this,A,k,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,A,k,$);default:if(ze)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),ze=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Me(R,A,k){return A===0&&k===R.length?t.fromByteArray(R):t.fromByteArray(R.slice(A,k))}function Fe(R,A,k){k=Math.min(R.length,k);for(var $=[],fe=A;fe<k;){var Ie=R[fe],ze=null,Qt=Ie>239?4:Ie>223?3:Ie>191?2:1;if(fe+Qt<=k){var fr,ir,Yr,kr;switch(Qt){case 1:Ie<128&&(ze=Ie);break;case 2:fr=R[fe+1],(fr&192)===128&&(kr=(Ie&31)<<6|fr&63,kr>127&&(ze=kr));break;case 3:fr=R[fe+1],ir=R[fe+2],(fr&192)===128&&(ir&192)===128&&(kr=(Ie&15)<<12|(fr&63)<<6|ir&63,kr>2047&&(kr<55296||kr>57343)&&(ze=kr));break;case 4:fr=R[fe+1],ir=R[fe+2],Yr=R[fe+3],(fr&192)===128&&(ir&192)===128&&(Yr&192)===128&&(kr=(Ie&15)<<18|(fr&63)<<12|(ir&63)<<6|Yr&63,kr>65535&&kr<1114112&&(ze=kr))}}ze===null?(ze=65533,Qt=1):ze>65535&&(ze-=65536,$.push(ze>>>10&1023|55296),ze=56320|ze&1023),$.push(ze),fe+=Qt}return ut($)}var Le=4096;function ut(R){var A=R.length;if(A<=Le)return String.fromCharCode.apply(String,R);for(var k="",$=0;$<A;)k+=String.fromCharCode.apply(String,R.slice($,$+=Le));return k}function nt(R,A,k){var $="";k=Math.min(R.length,k);for(var fe=A;fe<k;++fe)$+=String.fromCharCode(R[fe]&127);return $}function De(R,A,k){var $="";k=Math.min(R.length,k);for(var fe=A;fe<k;++fe)$+=String.fromCharCode(R[fe]);return $}function We(R,A,k){var $=R.length;(!A||A<0)&&(A=0),(!k||k<0||k>$)&&(k=$);for(var fe="",Ie=A;Ie<k;++Ie)fe+=qt(R[Ie]);return fe}function _t(R,A,k){for(var $=R.slice(A,k),fe="",Ie=0;Ie<$.length;Ie+=2)fe+=String.fromCharCode($[Ie]+$[Ie+1]*256);return fe}o.prototype.slice=function(A,k){var $=this.length;A=~~A,k=k===void 0?$:~~k,A<0?(A+=$,A<0&&(A=0)):A>$&&(A=$),k<0?(k+=$,k<0&&(k=0)):k>$&&(k=$),k<A&&(k=A);var fe=this.subarray(A,k);return fe.__proto__=o.prototype,fe};function He(R,A,k){if(R%1!==0||R<0)throw new RangeError("offset is not uint");if(R+A>k)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUIntLE=function(A,k,$){A=A>>>0,k=k>>>0,$||He(A,k,this.length);for(var fe=this[A],Ie=1,ze=0;++ze<k&&(Ie*=256);)fe+=this[A+ze]*Ie;return fe},o.prototype.readUIntBE=function(A,k,$){A=A>>>0,k=k>>>0,$||He(A,k,this.length);for(var fe=this[A+--k],Ie=1;k>0&&(Ie*=256);)fe+=this[A+--k]*Ie;return fe},o.prototype.readUInt8=function(A,k){return A=A>>>0,k||He(A,1,this.length),this[A]},o.prototype.readUInt16LE=function(A,k){return A=A>>>0,k||He(A,2,this.length),this[A]|this[A+1]<<8},o.prototype.readUInt16BE=function(A,k){return A=A>>>0,k||He(A,2,this.length),this[A]<<8|this[A+1]},o.prototype.readUInt32LE=function(A,k){return A=A>>>0,k||He(A,4,this.length),(this[A]|this[A+1]<<8|this[A+2]<<16)+this[A+3]*16777216},o.prototype.readUInt32BE=function(A,k){return A=A>>>0,k||He(A,4,this.length),this[A]*16777216+(this[A+1]<<16|this[A+2]<<8|this[A+3])},o.prototype.readIntLE=function(A,k,$){A=A>>>0,k=k>>>0,$||He(A,k,this.length);for(var fe=this[A],Ie=1,ze=0;++ze<k&&(Ie*=256);)fe+=this[A+ze]*Ie;return Ie*=128,fe>=Ie&&(fe-=Math.pow(2,8*k)),fe},o.prototype.readIntBE=function(A,k,$){A=A>>>0,k=k>>>0,$||He(A,k,this.length);for(var fe=k,Ie=1,ze=this[A+--fe];fe>0&&(Ie*=256);)ze+=this[A+--fe]*Ie;return Ie*=128,ze>=Ie&&(ze-=Math.pow(2,8*k)),ze},o.prototype.readInt8=function(A,k){return A=A>>>0,k||He(A,1,this.length),this[A]&128?(255-this[A]+1)*-1:this[A]},o.prototype.readInt16LE=function(A,k){A=A>>>0,k||He(A,2,this.length);var $=this[A]|this[A+1]<<8;return $&32768?$|4294901760:$},o.prototype.readInt16BE=function(A,k){A=A>>>0,k||He(A,2,this.length);var $=this[A+1]|this[A]<<8;return $&32768?$|4294901760:$},o.prototype.readInt32LE=function(A,k){return A=A>>>0,k||He(A,4,this.length),this[A]|this[A+1]<<8|this[A+2]<<16|this[A+3]<<24},o.prototype.readInt32BE=function(A,k){return A=A>>>0,k||He(A,4,this.length),this[A]<<24|this[A+1]<<16|this[A+2]<<8|this[A+3]},o.prototype.readFloatLE=function(A,k){return A=A>>>0,k||He(A,4,this.length),r.read(this,A,!0,23,4)},o.prototype.readFloatBE=function(A,k){return A=A>>>0,k||He(A,4,this.length),r.read(this,A,!1,23,4)},o.prototype.readDoubleLE=function(A,k){return A=A>>>0,k||He(A,8,this.length),r.read(this,A,!0,52,8)},o.prototype.readDoubleBE=function(A,k){return A=A>>>0,k||He(A,8,this.length),r.read(this,A,!1,52,8)};function we(R,A,k,$,fe,Ie){if(!o.isBuffer(R))throw new TypeError('"buffer" argument must be a Buffer instance');if(A>fe||A<Ie)throw new RangeError('"value" argument is out of bounds');if(k+$>R.length)throw new RangeError("Index out of range")}o.prototype.writeUIntLE=function(A,k,$,fe){if(A=+A,k=k>>>0,$=$>>>0,!fe){var Ie=Math.pow(2,8*$)-1;we(this,A,k,$,Ie,0)}var ze=1,Qt=0;for(this[k]=A&255;++Qt<$&&(ze*=256);)this[k+Qt]=A/ze&255;return k+$},o.prototype.writeUIntBE=function(A,k,$,fe){if(A=+A,k=k>>>0,$=$>>>0,!fe){var Ie=Math.pow(2,8*$)-1;we(this,A,k,$,Ie,0)}var ze=$-1,Qt=1;for(this[k+ze]=A&255;--ze>=0&&(Qt*=256);)this[k+ze]=A/Qt&255;return k+$},o.prototype.writeUInt8=function(A,k,$){return A=+A,k=k>>>0,$||we(this,A,k,1,255,0),this[k]=A&255,k+1},o.prototype.writeUInt16LE=function(A,k,$){return A=+A,k=k>>>0,$||we(this,A,k,2,65535,0),this[k]=A&255,this[k+1]=A>>>8,k+2},o.prototype.writeUInt16BE=function(A,k,$){return A=+A,k=k>>>0,$||we(this,A,k,2,65535,0),this[k]=A>>>8,this[k+1]=A&255,k+2},o.prototype.writeUInt32LE=function(A,k,$){return A=+A,k=k>>>0,$||we(this,A,k,4,4294967295,0),this[k+3]=A>>>24,this[k+2]=A>>>16,this[k+1]=A>>>8,this[k]=A&255,k+4},o.prototype.writeUInt32BE=function(A,k,$){return A=+A,k=k>>>0,$||we(this,A,k,4,4294967295,0),this[k]=A>>>24,this[k+1]=A>>>16,this[k+2]=A>>>8,this[k+3]=A&255,k+4},o.prototype.writeIntLE=function(A,k,$,fe){if(A=+A,k=k>>>0,!fe){var Ie=Math.pow(2,8*$-1);we(this,A,k,$,Ie-1,-Ie)}var ze=0,Qt=1,fr=0;for(this[k]=A&255;++ze<$&&(Qt*=256);)A<0&&fr===0&&this[k+ze-1]!==0&&(fr=1),this[k+ze]=(A/Qt>>0)-fr&255;return k+$},o.prototype.writeIntBE=function(A,k,$,fe){if(A=+A,k=k>>>0,!fe){var Ie=Math.pow(2,8*$-1);we(this,A,k,$,Ie-1,-Ie)}var ze=$-1,Qt=1,fr=0;for(this[k+ze]=A&255;--ze>=0&&(Qt*=256);)A<0&&fr===0&&this[k+ze+1]!==0&&(fr=1),this[k+ze]=(A/Qt>>0)-fr&255;return k+$},o.prototype.writeInt8=function(A,k,$){return A=+A,k=k>>>0,$||we(this,A,k,1,127,-128),A<0&&(A=255+A+1),this[k]=A&255,k+1},o.prototype.writeInt16LE=function(A,k,$){return A=+A,k=k>>>0,$||we(this,A,k,2,32767,-32768),this[k]=A&255,this[k+1]=A>>>8,k+2},o.prototype.writeInt16BE=function(A,k,$){return A=+A,k=k>>>0,$||we(this,A,k,2,32767,-32768),this[k]=A>>>8,this[k+1]=A&255,k+2},o.prototype.writeInt32LE=function(A,k,$){return A=+A,k=k>>>0,$||we(this,A,k,4,2147483647,-2147483648),this[k]=A&255,this[k+1]=A>>>8,this[k+2]=A>>>16,this[k+3]=A>>>24,k+4},o.prototype.writeInt32BE=function(A,k,$){return A=+A,k=k>>>0,$||we(this,A,k,4,2147483647,-2147483648),A<0&&(A=4294967295+A+1),this[k]=A>>>24,this[k+1]=A>>>16,this[k+2]=A>>>8,this[k+3]=A&255,k+4};function qe(R,A,k,$,fe,Ie){if(k+$>R.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function st(R,A,k,$,fe){return A=+A,k=k>>>0,fe||qe(R,A,k,4),r.write(R,A,k,$,23,4),k+4}o.prototype.writeFloatLE=function(A,k,$){return st(this,A,k,!0,$)},o.prototype.writeFloatBE=function(A,k,$){return st(this,A,k,!1,$)};function Ke(R,A,k,$,fe){return A=+A,k=k>>>0,fe||qe(R,A,k,8),r.write(R,A,k,$,52,8),k+8}o.prototype.writeDoubleLE=function(A,k,$){return Ke(this,A,k,!0,$)},o.prototype.writeDoubleBE=function(A,k,$){return Ke(this,A,k,!1,$)},o.prototype.copy=function(A,k,$,fe){if(!o.isBuffer(A))throw new TypeError("argument should be a Buffer");if($||($=0),!fe&&fe!==0&&(fe=this.length),k>=A.length&&(k=A.length),k||(k=0),fe>0&&fe<$&&(fe=$),fe===$||A.length===0||this.length===0)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if($<0||$>=this.length)throw new RangeError("Index out of range");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),A.length-k<fe-$&&(fe=A.length-k+$);var Ie=fe-$;if(this===A&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(k,$,fe);else if(this===A&&$<k&&k<fe)for(var ze=Ie-1;ze>=0;--ze)A[ze+k]=this[ze+$];else Uint8Array.prototype.set.call(A,this.subarray($,fe),k);return Ie},o.prototype.fill=function(A,k,$,fe){if(typeof A=="string"){if(typeof k=="string"?(fe=k,k=0,$=this.length):typeof $=="string"&&(fe=$,$=this.length),fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!o.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe);if(A.length===1){var Ie=A.charCodeAt(0);(fe==="utf8"&&Ie<128||fe==="latin1")&&(A=Ie)}}else typeof A=="number"&&(A=A&255);if(k<0||this.length<k||this.length<$)throw new RangeError("Out of range index");if($<=k)return this;k=k>>>0,$=$===void 0?this.length:$>>>0,A||(A=0);var ze;if(typeof A=="number")for(ze=k;ze<$;++ze)this[ze]=A;else{var Qt=o.isBuffer(A)?A:o.from(A,fe),fr=Qt.length;if(fr===0)throw new TypeError('The value "'+A+'" is invalid for argument "value"');for(ze=0;ze<$-k;++ze)this[ze+k]=Qt[ze%fr]}return this};var ct=/[^+/0-9A-Za-z-_]/g;function yt(R){if(R=R.split("=")[0],R=R.trim().replace(ct,""),R.length<2)return"";for(;R.length%4!==0;)R=R+"=";return R}function qt(R){return R<16?"0"+R.toString(16):R.toString(16)}function Yt(R,A){A=A||1/0;for(var k,$=R.length,fe=null,Ie=[],ze=0;ze<$;++ze){if(k=R.charCodeAt(ze),k>55295&&k<57344){if(!fe){if(k>56319){(A-=3)>-1&&Ie.push(239,191,189);continue}else if(ze+1===$){(A-=3)>-1&&Ie.push(239,191,189);continue}fe=k;continue}if(k<56320){(A-=3)>-1&&Ie.push(239,191,189),fe=k;continue}k=(fe-55296<<10|k-56320)+65536}else fe&&(A-=3)>-1&&Ie.push(239,191,189);if(fe=null,k<128){if((A-=1)<0)break;Ie.push(k)}else if(k<2048){if((A-=2)<0)break;Ie.push(k>>6|192,k&63|128)}else if(k<65536){if((A-=3)<0)break;Ie.push(k>>12|224,k>>6&63|128,k&63|128)}else if(k<1114112){if((A-=4)<0)break;Ie.push(k>>18|240,k>>12&63|128,k>>6&63|128,k&63|128)}else throw new Error("Invalid code point")}return Ie}function Qe(R){for(var A=[],k=0;k<R.length;++k)A.push(R.charCodeAt(k)&255);return A}function At(R,A){for(var k,$,fe,Ie=[],ze=0;ze<R.length&&!((A-=2)<0);++ze)k=R.charCodeAt(ze),$=k>>8,fe=k%256,Ie.push(fe),Ie.push($);return Ie}function jt(R){return t.toByteArray(yt(R))}function Te(R,A,k,$){for(var fe=0;fe<$&&!(fe+k>=A.length||fe>=R.length);++fe)A[fe+k]=R[fe];return fe}function W(R,A){return R instanceof A||R!=null&&R.constructor!=null&&R.constructor.name!=null&&R.constructor.name===A.name}function ae(R){return R!==R}})(mN);var pu=Gr,Tn=Zee,yN=mN.Buffer;Jt.__TYPEDARRAY_POOL||(Jt.__TYPEDARRAY_POOL={UINT8:Tn([32,0]),UINT16:Tn([32,0]),UINT32:Tn([32,0]),BIGUINT64:Tn([32,0]),INT8:Tn([32,0]),INT16:Tn([32,0]),INT32:Tn([32,0]),BIGINT64:Tn([32,0]),FLOAT:Tn([32,0]),DOUBLE:Tn([32,0]),DATA:Tn([32,0]),UINT8C:Tn([32,0]),BUFFER:Tn([32,0])});var ute=typeof Uint8ClampedArray<"u",lte=typeof BigUint64Array<"u",ste=typeof BigInt64Array<"u",Kr=Jt.__TYPEDARRAY_POOL;Kr.UINT8C||(Kr.UINT8C=Tn([32,0]));Kr.BIGUINT64||(Kr.BIGUINT64=Tn([32,0]));Kr.BIGINT64||(Kr.BIGINT64=Tn([32,0]));Kr.BUFFER||(Kr.BUFFER=Tn([32,0]));var ay=Kr.DATA,oy=Kr.BUFFER;vr.free=function(t){if(yN.isBuffer(t))oy[pu.log2(t.length)].push(t);else{if(Object.prototype.toString.call(t)!=="[object ArrayBuffer]"&&(t=t.buffer),!t)return;var r=t.length||t.byteLength,n=pu.log2(r)|0;ay[n].push(t)}};function bN(e){if(e){var t=e.length||e.byteLength,r=pu.log2(t);ay[r].push(e)}}function fte(e){bN(e.buffer)}vr.freeUint8=vr.freeUint16=vr.freeUint32=vr.freeBigUint64=vr.freeInt8=vr.freeInt16=vr.freeInt32=vr.freeBigInt64=vr.freeFloat32=vr.freeFloat=vr.freeFloat64=vr.freeDouble=vr.freeUint8Clamped=vr.freeDataView=fte;vr.freeArrayBuffer=bN;vr.freeBuffer=function(t){oy[pu.log2(t.length)].push(t)};vr.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return ii(t);switch(r){case"uint8":return ME(t);case"uint16":return xN(t);case"uint32":return wN(t);case"int8":return _N(t);case"int16":return SN(t);case"int32":return EN(t);case"float":case"float32":return AN(t);case"double":case"float64":return CN(t);case"uint8_clamped":return TN(t);case"bigint64":return MN(t);case"biguint64":return ON(t);case"buffer":return RN(t);case"data":case"dataview":return kN(t);default:return null}return null};function ii(t){var t=pu.nextPow2(t),r=pu.log2(t),n=ay[r];return n.length>0?n.pop():new ArrayBuffer(t)}vr.mallocArrayBuffer=ii;function ME(e){return new Uint8Array(ii(e),0,e)}vr.mallocUint8=ME;function xN(e){return new Uint16Array(ii(2*e),0,e)}vr.mallocUint16=xN;function wN(e){return new Uint32Array(ii(4*e),0,e)}vr.mallocUint32=wN;function _N(e){return new Int8Array(ii(e),0,e)}vr.mallocInt8=_N;function SN(e){return new Int16Array(ii(2*e),0,e)}vr.mallocInt16=SN;function EN(e){return new Int32Array(ii(4*e),0,e)}vr.mallocInt32=EN;function AN(e){return new Float32Array(ii(4*e),0,e)}vr.mallocFloat32=vr.mallocFloat=AN;function CN(e){return new Float64Array(ii(8*e),0,e)}vr.mallocFloat64=vr.mallocDouble=CN;function TN(e){return ute?new Uint8ClampedArray(ii(e),0,e):ME(e)}vr.mallocUint8Clamped=TN;function ON(e){return lte?new BigUint64Array(ii(8*e),0,e):null}vr.mallocBigUint64=ON;function MN(e){return ste?new BigInt64Array(ii(8*e),0,e):null}vr.mallocBigInt64=MN;function kN(e){return new DataView(ii(e),0,e)}vr.mallocDataView=kN;function RN(e){e=pu.nextPow2(e);var t=pu.log2(e),r=oy[t];return r.length>0?r.pop():new yN(e)}vr.mallocBuffer=RN;vr.clearCache=function(){for(var t=0;t<32;++t)Kr.UINT8[t].length=0,Kr.UINT16[t].length=0,Kr.UINT32[t].length=0,Kr.INT8[t].length=0,Kr.INT16[t].length=0,Kr.INT32[t].length=0,Kr.FLOAT[t].length=0,Kr.DOUBLE[t].length=0,Kr.BIGUINT64[t].length=0,Kr.BIGINT64[t].length=0,Kr.UINT8C[t].length=0,ay[t].length=0,oy[t].length=0};var PN=function(t,r){r||(r=[0,""]),t=String(t);var n=parseFloat(t,10);return r[0]=n,r[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",r},cte=PN,hte=IN,Ph=96;function u2(e,t){var r=cte(getComputedStyle(e).getPropertyValue(t));return r[0]*IN(r[1],e)}function dte(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=u2(r,"font-size")/128;return t.removeChild(r),n}function IN(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),(t===window||t===document)&&(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return dte(e,t);case"em":return u2(t,"font-size");case"rem":return u2(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return Ph;case"cm":return Ph/2.54;case"mm":return Ph/25.4;case"pt":return Ph/72;case"pc":return Ph/6}return 1}var pte=uy,vte=uy.canvas=document.createElement("canvas"),T0=vte.getContext("2d"),FN=rg([32,126]);uy.createPairs=rg;uy.ascii=FN;function uy(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=rg(t):Array.isArray(t)?n=t:(t.o?n=rg(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=FN),T0.font=i+"px "+e;for(var o=0;o<n.length;o++){var l=n[o],s=T0.measureText(l[0]).width+T0.measureText(l[1]).width,f=T0.measureText(l).width;if(Math.abs(s-f)>i*a){var d=(f-s)/i;r[l]=d*1e3}}return r}function rg(e){for(var t=[],r=e[0];r<=e[1];r++)for(var n=String.fromCharCode(r),i=e[0];i<e[1];i++){var a=String.fromCharCode(i),o=n+a;t.push(o)}return t}var mte=jo;jo.canvas=document.createElement("canvas");jo.cache={};function jo(o,t){t||(t={}),(typeof o=="string"||Array.isArray(o))&&(t.family=o);var r=Array.isArray(t.family)?t.family.join(", "):t.family;if(!r)throw Error("`family` must be defined");var n=t.size||t.fontSize||t.em||48,i=t.weight||t.fontWeight||"",a=t.style||t.fontStyle||"",o=[a,i,n].join(" ")+"px "+r,l=t.origin||"top";if(jo.cache[r]&&n<=jo.cache[r].em)return cM(jo.cache[r],l);var s=t.canvas||jo.canvas,f=s.getContext("2d"),d={upper:t.upper!==void 0?t.upper:"H",lower:t.lower!==void 0?t.lower:"x",descent:t.descent!==void 0?t.descent:"p",ascent:t.ascent!==void 0?t.ascent:"h",tittle:t.tittle!==void 0?t.tittle:"i",overshoot:t.overshoot!==void 0?t.overshoot:"O"},g=Math.ceil(n*1.5);s.height=g,s.width=g*.5,f.font=o;var v="H",y={top:0};f.clearRect(0,0,g,g),f.textBaseline="top",f.fillStyle="black",f.fillText(v,0,0);var E=ca(f.getImageData(0,0,g,g));f.clearRect(0,0,g,g),f.textBaseline="bottom",f.fillText(v,0,g);var M=ca(f.getImageData(0,0,g,g));y.lineHeight=y.bottom=g-M+E,f.clearRect(0,0,g,g),f.textBaseline="alphabetic",f.fillText(v,0,g);var x=ca(f.getImageData(0,0,g,g)),w=g-x-1+E;y.baseline=y.alphabetic=w,f.clearRect(0,0,g,g),f.textBaseline="middle",f.fillText(v,0,g*.5);var _=ca(f.getImageData(0,0,g,g));y.median=y.middle=g-_-1+E-g*.5,f.clearRect(0,0,g,g),f.textBaseline="hanging",f.fillText(v,0,g*.5);var T=ca(f.getImageData(0,0,g,g));y.hanging=g-T-1+E-g*.5,f.clearRect(0,0,g,g),f.textBaseline="ideographic",f.fillText(v,0,g);var C=ca(f.getImageData(0,0,g,g));if(y.ideographic=g-C-1+E,d.upper&&(f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.upper,0,0),y.upper=ca(f.getImageData(0,0,g,g)),y.capHeight=y.baseline-y.upper),d.lower&&(f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.lower,0,0),y.lower=ca(f.getImageData(0,0,g,g)),y.xHeight=y.baseline-y.lower),d.tittle&&(f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.tittle,0,0),y.tittle=ca(f.getImageData(0,0,g,g))),d.ascent&&(f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.ascent,0,0),y.ascent=ca(f.getImageData(0,0,g,g))),d.descent&&(f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.descent,0,0),y.descent=hM(f.getImageData(0,0,g,g))),d.overshoot){f.clearRect(0,0,g,g),f.textBaseline="top",f.fillText(d.overshoot,0,0);var F=hM(f.getImageData(0,0,g,g));y.overshoot=F-w}for(var L in y)y[L]/=n;return y.em=n,jo.cache[r]=y,cM(y,l)}function cM(e,t){var r={};typeof t=="string"&&(t=e[t]);for(var n in e)n!=="em"&&(r[n]=e[n]-t);return r}function ca(e){for(var t=e.height,r=e.data,n=3;n<r.length;n+=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}function hM(e){for(var t=e.height,r=e.data,n=r.length-1;n>0;n-=4)if(r[n]!==0)return Math.floor((n-3)*.25/t)}var Bs=zee,gte=_u,yte=Uee,bte=Gee,xte=rN,Kx=ey,wte=Yee,Lo=vr,_te=Jg,Ste=GF,Ete=PN,Ate=hte,Cte=pte,Tte=Pl,Ote=mte,Mte=mp,kte=Gr,dM=kte.nextPow2,pM=new xte,rm=!1;if(document.body){var Qx=document.body.appendChild(document.createElement("div"));Qx.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(Qx).fontStretch&&(rm=!0),document.body.removeChild(Qx)}var xr=function(t){Rte(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=bte(t),this.shader=pM.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||yte({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),pM.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(Ste(t)?t:{})};xr.prototype.createShader=function(){var t=this.regl,r=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:t.prop("count"),offset:t.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:t.this("sizeBuffer")},width:{offset:0,stride:8,buffer:t.this("sizeBuffer")},char:t.this("charBuffer"),position:t.this("position")},uniforms:{atlasSize:function(i,a){return[a.atlas.width,a.atlas.height]},atlasDim:function(i,a){return[a.atlas.cols,a.atlas.rows]},atlas:function(i,a){return a.atlas.texture},charStep:function(i,a){return a.atlas.step},em:function(i,a){return a.atlas.em},color:t.prop("color"),opacity:t.prop("opacity"),viewport:t.this("viewportArray"),scale:t.this("scale"),align:t.prop("align"),baseline:t.prop("baseline"),translate:t.this("translate"),positionOffset:t.prop("positionOffset")},primitive:"points",viewport:t.this("viewport"),vert:`
1101
1101
  precision highp float;
1102
1102
  attribute float width, charOffset, char;
1103
1103
  attribute vec2 position;
@@ -1171,5 +1171,5 @@ void main() {
1171
1171
  // color.rgb += (1. - color.rgb) * (1. - mask.rgb);
1172
1172
 
1173
1173
  gl_FragColor = color;
1174
- }`}),n={};return{regl:t,draw:r,atlas:n}};xr.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=bte(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(Ke){return parseFloat(Ke)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=Ete(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=Rte(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=xr.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(Ke,ct){if(typeof Ke=="string")try{Ke=Bs.parse(Ke)}catch{Ke=Bs.parse(xr.baseFontSize+"px "+Ke)}else Ke=Bs.parse(Bs.stringify(Ke));var yt=Bs.stringify({size:xr.baseFontSize,family:Ke.family,stretch:nm?Ke.stretch:void 0,variant:Ke.variant,weight:Ke.weight,style:Ke.style}),qt=Tte(Ke.size),Yt=Math.round(qt[0]*Cte(qt[1]));if(Yt!==r.fontSize[ct]&&(i=!0,r.fontSize[ct]=Yt),(!r.font[ct]||yt!=r.font[ct].baseString)&&(n=!0,r.font[ct]=xr.fonts[yt],!r.font[ct])){var Qe=Ke.family.join(", "),At=[Ke.style];Ke.style!=Ke.variant&&At.push(Ke.variant),Ke.variant!=Ke.weight&&At.push(Ke.weight),nm&&Ke.weight!=Ke.stretch&&At.push(Ke.stretch),r.font[ct]={baseString:yt,family:Qe,weight:Ke.weight,stretch:Ke.stretch,style:Ke.style,variant:Ke.variant,width:{},kerning:{},metrics:Mte(Qe,{origin:"top",fontSize:xr.baseFontSize,fontStyle:At.join(" ")})},xr.fonts[yt]=r.font[ct]}}),(n||i)&&this.font.forEach(function(Ke,ct){var yt=Bs.stringify({size:r.fontSize[ct],family:Ke.family,stretch:nm?Ke.stretch:void 0,variant:Ke.variant,weight:Ke.weight,style:Ke.style});if(r.fontAtlas[ct]=r.shader.atlas[yt],!r.fontAtlas[ct]){var qt=Ke.metrics;r.shader.atlas[yt]=r.fontAtlas[ct]={fontString:yt,step:Math.ceil(r.fontSize[ct]*qt.bottom*.5)*2,em:r.fontSize[ct],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o<a.length;o++)a[o]=t.text;t.text=a}var l;if(t.text!=null||n){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var s=1;s<t.text.length;s++)this.textOffsets[s]=this.textOffsets[s-1]+t.text[s-1].length,this.count+=t.text[s].length,this.counts.push(t.text[s].length);this.text=t.text.join("")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];l=[],this.font.forEach(function(Ke,ct){xr.atlasContext.font=Ke.baseString;for(var yt=r.fontAtlas[ct],qt=0;qt<r.text.length;qt++){var Yt=r.text.charAt(qt);if(yt.ids[Yt]==null&&(yt.ids[Yt]=yt.chars.length,yt.chars.push(Yt),l.push(Yt)),Ke.width[Yt]==null&&(Ke.width[Yt]=xr.atlasContext.measureText(Yt).width/xr.baseFontSize,r.kerning)){var Qe=[];for(var At in Ke.width)Qe.push(At+Yt,Yt+At);kte(Ke.kerning,Ote(Ke.family,{pairs:Qe}))}}})}if(t.position)if(t.position.length>2){for(var f=!t.position[0].length,d=Lo.mallocFloat(this.count*2),g=0,v=0;g<this.counts.length;g++){var y=this.counts[g];if(f)for(var E=0;E<y;E++)d[v++]=t.position[g*2],d[v++]=t.position[g*2+1];else for(var k=0;k<y;k++)d[v++]=t.position[g][0],d[v++]=t.position[g][1]}this.position.call?this.position({type:"float",data:d}):this.position=this.regl.buffer({type:"float",data:d}),Lo.freeFloat(d)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var x=Lo.mallocUint8(this.count),w=Lo.mallocFloat(this.count*2);this.textWidth=[];for(var _=0,C=0;_<this.counts.length;_++){for(var T=this.counts[_],F=this.font[_]||this.font[0],L=this.fontAtlas[_]||this.fontAtlas[0],V=0;V<T;V++){var j=this.text.charAt(C),te=this.text.charAt(C-1);if(x[C]=L.ids[j],w[C*2]=F.width[j],V){var ge=w[C*2-2],me=w[C*2],ke=w[C*2-1],Fe=ke+ge*.5+me*.5;if(this.kerning){var Le=F.kerning[te+j];Le&&(Fe+=Le*.001)}w[C*2+1]=Fe}else w[C*2+1]=w[C*2]*.5;C++}this.textWidth.push(w.length?w[C*2-2]*.5+w[C*2-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:x,type:"uint8",usage:"stream"}),this.sizeBuffer({data:w,type:"float",usage:"stream"}),Lo.freeUint8(x),Lo.freeFloat(w),l.length&&this.font.forEach(function(Ke,ct){var yt=r.fontAtlas[ct],qt=yt.step,Yt=Math.floor(xr.maxAtlasSize/qt),Qe=Math.min(Yt,yt.chars.length),At=Math.ceil(yt.chars.length/Qe),Gt=pk(Qe*qt),Ce=pk(At*qt);yt.width=Gt,yt.height=Ce,yt.rows=At,yt.cols=Qe,yt.em&&yt.texture({data:Ste({canvas:xr.atlasCanvas,font:yt.fontString,chars:yt.chars,shape:[Gt,Ce],step:[qt,qt]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(Ke,ct){var yt=Array.isArray(r.align)?r.align.length>1?r.align[ct]:r.align[0]:r.align;if(typeof yt=="number")return yt;switch(yt){case"right":case"end":return-Ke;case"center":case"centre":case"middle":return-Ke*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Ke,ct){var yt=(r.font[ct]||r.font[0]).metrics,qt=0;return qt+=yt.bottom*.5,typeof Ke=="number"?qt+=Ke-yt.baseline:qt+=-yt[Ke],qt*=-1,qt})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=Qx(t.color,"uint8");else{var ut;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var nt=t.color.length;ut=Lo.mallocUint8(nt);for(var De=(t.color.subarray||t.color.slice).bind(t.color),We=0;We<nt;We+=4)ut.set(Qx(De(We,We+4),"uint8"),We)}else{var _t=t.color.length;ut=Lo.mallocUint8(_t*4);for(var He=0;He<_t;He++)ut.set(Qx(t.color[He]||0,"uint8"),He*4)}this.color=ut}if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity){var we=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(we){var qe=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(qe);for(var st=0;st<this.batch.length;st++)this.batch[st]={count:this.counts.length>1?this.counts[st]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[st]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(st*4,st*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[st]:this.opacity,baseline:this.baselineOffset[st]!=null?this.baselineOffset[st]:this.baselineOffset[0],align:this.align?this.alignOffset[st]!=null?this.alignOffset[st]:this.alignOffset[0]:0,atlas:this.fontAtlas[st]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(st*2,st*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};xr.prototype.destroy=function(){};xr.prototype.kerning=!0;xr.prototype.position={constant:new Float32Array(2)};xr.prototype.translate=null;xr.prototype.scale=null;xr.prototype.font=null;xr.prototype.text="";xr.prototype.positionOffset=[0,0];xr.prototype.opacity=1;xr.prototype.color=new Uint8Array([0,0,0,255]);xr.prototype.alignOffset=[0,0];xr.maxAtlasSize=1024;xr.atlasCanvas=document.createElement("canvas");xr.atlasContext=xr.atlasCanvas.getContext("2d",{alpha:!1});xr.baseFontSize=64;xr.fonts={};function Ite(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var Tae=xr;function Fte(e,t){return e.parent===t.parent?1:2}function Nte(e){return e.reduce(Lte,0)/e.length}function Lte(e,t){return e+t.x}function Dte(e){return 1+e.reduce($te,0)}function $te(e,t){return Math.max(e,t.y)}function Bte(e){for(var t;t=e.children;)e=t[0];return e}function zte(e){for(var t;t=e.children;)e=t[t.length-1];return e}function Ute(){var e=Fte,t=1,r=1,n=!1;function i(a){var o,l=0;a.eachAfter(function(v){var y=v.children;y?(v.x=Nte(y),v.y=Dte(y)):(v.x=o?l+=e(v,o):0,v.y=0,o=v)});var s=Bte(a),f=zte(a),d=s.x-e(s,f)/2,g=f.x+e(f,s)/2;return a.eachAfter(n?function(v){v.x=(v.x-a.x)*t,v.y=(a.y-v.y)*r}:function(v){v.x=(v.x-d)/(g-d)*t,v.y=(1-(a.y?v.y/a.y:1))*r})}return i.separation=function(a){return arguments.length?(e=a,i):e},i.size=function(a){return arguments.length?(n=!1,t=+a[0],r=+a[1],i):n?null:[t,r]},i.nodeSize=function(a){return arguments.length?(n=!0,t=+a[0],r=+a[1],i):n?[t,r]:null},i}function jte(e){var t=0,r=e.children,n=r&&r.length;if(!n)t=1;else for(;--n>=0;)t+=r[n].value;e.value=t}function Gte(){return this.eachAfter(jte)}function Wte(e){var t=this,r,n=[t],i,a,o;do for(r=n.reverse(),n=[];t=r.pop();)if(e(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)n.push(i[a]);while(n.length);return this}function Hte(e){for(var t=this,r=[t],n,i;t=r.pop();)if(e(t),n=t.children,n)for(i=n.length-1;i>=0;--i)r.push(n[i]);return this}function qte(e){for(var t=this,r=[t],n=[],i,a,o;t=r.pop();)if(n.push(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)r.push(i[a]);for(;t=n.pop();)e(t);return this}function Vte(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r})}function Yte(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Xte(e){for(var t=this,r=Kte(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}function Kte(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}function Qte(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Zte(){var e=[];return this.each(function(t){e.push(t)}),e}function Jte(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function ere(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function RE(e,t){var r=new Nf(e),n=+e.value&&(r.value=e.value),i,a=[r],o,l,s,f;for(t==null&&(t=rre);i=a.pop();)if(n&&(i.value=+i.data.value),(l=t(i.data))&&(f=l.length))for(i.children=new Array(f),s=f-1;s>=0;--s)a.push(o=i.children[s]=new Nf(l[s])),o.parent=i,o.depth=i.depth+1;return r.eachBefore(DN)}function tre(){return RE(this).eachBefore(nre)}function rre(e){return e.children}function nre(e){e.data=e.data.data}function DN(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Nf(e){this.data=e,this.depth=this.height=0,this.parent=null}Nf.prototype=RE.prototype={constructor:Nf,count:Gte,each:Wte,eachAfter:qte,eachBefore:Hte,sum:Vte,sort:Yte,path:Xte,ancestors:Qte,descendants:Zte,leaves:Jte,links:ere,copy:tre};var ire=Array.prototype.slice;function are(e){for(var t=e.length,r,n;t;)n=Math.random()*t--|0,r=e[t],e[t]=e[n],e[n]=r;return e}function $N(e){for(var t=0,r=(e=are(ire.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&BN(a,i)?++t:(a=ure(n=ore(n,i)),t=0);return a}function ore(e,t){var r,n;if(Jx(t,e))return[t];for(r=0;r<e.length;++r)if(k0(t,e[r])&&Jx(Wh(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(k0(Wh(e[r],e[n]),t)&&k0(Wh(e[r],t),e[n])&&k0(Wh(e[n],t),e[r])&&Jx(zN(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function k0(e,t){var r=e.r-t.r,n=t.x-e.x,i=t.y-e.y;return r<0||r*r<n*n+i*i}function BN(e,t){var r=e.r-t.r+1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function Jx(e,t){for(var r=0;r<t.length;++r)if(!BN(e,t[r]))return!1;return!0}function ure(e){switch(e.length){case 1:return lre(e[0]);case 2:return Wh(e[0],e[1]);case 3:return zN(e[0],e[1],e[2])}}function lre(e){return{x:e.x,y:e.y,r:e.r}}function Wh(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,o=t.y,l=t.r,s=a-r,f=o-n,d=l-i,g=Math.sqrt(s*s+f*f);return{x:(r+a+s/g*d)/2,y:(n+o+f/g*d)/2,r:(g+i+l)/2}}function zN(e,t,r){var n=e.x,i=e.y,a=e.r,o=t.x,l=t.y,s=t.r,f=r.x,d=r.y,g=r.r,v=n-o,y=n-f,E=i-l,k=i-d,x=s-a,w=g-a,_=n*n+i*i-a*a,C=_-o*o-l*l+s*s,T=_-f*f-d*d+g*g,F=y*E-v*k,L=(E*T-k*C)/(F*2)-n,V=(k*x-E*w)/F,j=(y*C-v*T)/(F*2)-i,te=(v*w-y*x)/F,ge=V*V+te*te-1,me=2*(a+L*V+j*te),ke=L*L+j*j-a*a,Fe=-(ge?(me+Math.sqrt(me*me-4*ge*ke))/(2*ge):ke/me);return{x:n+L+V*Fe,y:i+j+te*Fe,r:Fe}}function mk(e,t,r){var n=e.x-t.x,i,a,o=e.y-t.y,l,s,f=n*n+o*o;f?(a=t.r+r.r,a*=a,s=e.r+r.r,s*=s,a>s?(i=(f+s-a)/(2*f),l=Math.sqrt(Math.max(0,s/f-i*i)),r.x=e.x-i*n-l*o,r.y=e.y-i*o+l*n):(i=(f+a-s)/(2*f),l=Math.sqrt(Math.max(0,a/f-i*i)),r.x=t.x+i*n-l*o,r.y=t.y+i*o+l*n)):(r.x=t.x+r.r,r.y=t.y)}function gk(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function yk(e){var t=e._,r=e.next._,n=t.r+r.r,i=(t.x*r.r+r.x*t.r)/n,a=(t.y*r.r+r.y*t.r)/n;return i*i+a*a}function M0(e){this._=e,this.next=null,this.previous=null}function UN(e){if(!(i=e.length))return 0;var t,r,n,i,a,o,l,s,f,d,g;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(r=e[1],t.x=-r.r,r.x=t.r,r.y=0,!(i>2))return t.r+r.r;mk(r,t,n=e[2]),t=new M0(t),r=new M0(r),n=new M0(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(l=3;l<i;++l){mk(t._,r._,n=e[l]),n=new M0(n),s=r.next,f=t.previous,d=r._.r,g=t._.r;do if(d<=g){if(gk(s._,n._)){r=s,t.next=r,r.previous=t,--l;continue e}d+=s._.r,s=s.next}else{if(gk(f._,n._)){t=f,t.next=r,r.previous=t,--l;continue e}g+=f._.r,f=f.previous}while(s!==f.next);for(n.previous=t,n.next=r,t.next=r.previous=r=n,a=yk(t);(n=n.next)!==r;)(o=yk(n))<a&&(t=n,a=o);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=$N(t),l=0;l<i;++l)t=e[l],t.x-=n.x,t.y-=n.y;return n.r}function sre(e){return UN(e),e}function fre(e){return e==null?null:ig(e)}function ig(e){if(typeof e!="function")throw new Error;return e}function al(){return 0}function Ws(e){return function(){return e}}function cre(e){return Math.sqrt(e.value)}function hre(){var e=null,t=1,r=1,n=al;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(bk(e)).eachAfter(ew(n,.5)).eachBefore(xk(1)):a.eachBefore(bk(cre)).eachAfter(ew(al,1)).eachAfter(ew(n,a.r/Math.min(t,r))).eachBefore(xk(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=fre(a),i):e},i.size=function(a){return arguments.length?(t=+a[0],r=+a[1],i):[t,r]},i.padding=function(a){return arguments.length?(n=typeof a=="function"?a:Ws(+a),i):n},i}function bk(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function ew(e,t){return function(r){if(n=r.children){var n,i,a=n.length,o=e(r)*t||0,l;if(o)for(i=0;i<a;++i)n[i].r+=o;if(l=UN(n),o)for(i=0;i<a;++i)n[i].r-=o;r.r=l+o}}}function xk(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}function jN(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function bp(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,f=e.value&&(n-t)/e.value;++l<s;)o=a[l],o.y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*f}function dre(){var e=1,t=1,r=0,n=!1;function i(o){var l=o.height+1;return o.x0=o.y0=r,o.x1=e,o.y1=t/l,o.eachBefore(a(t,l)),n&&o.eachBefore(jN),o}function a(o,l){return function(s){s.children&&bp(s,s.x0,o*(s.depth+1)/l,s.x1,o*(s.depth+2)/l);var f=s.x0,d=s.y0,g=s.x1-r,v=s.y1-r;g<f&&(f=g=(f+g)/2),v<d&&(d=v=(d+v)/2),s.x0=f,s.y0=d,s.x1=g,s.y1=v}}return i.round=function(o){return arguments.length?(n=!!o,i):n},i.size=function(o){return arguments.length?(e=+o[0],t=+o[1],i):[e,t]},i.padding=function(o){return arguments.length?(r=+o,i):r},i}var wk="$",pre={depth:-1},_k={};function vre(e){return e.id}function mre(e){return e.parentId}function gre(){var e=vre,t=mre;function r(n){var i,a,o=n.length,l,s,f,d=new Array(o),g,v,y={};for(a=0;a<o;++a)i=n[a],f=d[a]=new Nf(i),(g=e(i,a,n))!=null&&(g+="")&&(v=wk+(f.id=g),y[v]=v in y?_k:f);for(a=0;a<o;++a)if(f=d[a],g=t(n[a],a,n),g==null||!(g+="")){if(l)throw new Error("multiple roots");l=f}else{if(s=y[wk+g],!s)throw new Error("missing: "+g);if(s===_k)throw new Error("ambiguous: "+g);s.children?s.children.push(f):s.children=[f],f.parent=s}if(!l)throw new Error("no root");if(l.parent=pre,l.eachBefore(function(E){E.depth=E.parent.depth+1,--o}).eachBefore(DN),l.parent=null,o>0)throw new Error("cycle");return l}return r.id=function(n){return arguments.length?(e=ig(n),r):e},r.parentId=function(n){return arguments.length?(t=ig(n),r):t},r}function yre(e,t){return e.parent===t.parent?1:2}function tw(e){var t=e.children;return t?t[0]:e.t}function rw(e){var t=e.children;return t?t[t.length-1]:e.t}function bre(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function xre(e){for(var t=0,r=0,n=e.children,i=n.length,a;--i>=0;)a=n[i],a.z+=t,a.m+=t,t+=a.s+(r+=a.c)}function wre(e,t,r){return e.a.parent===t.parent?e.a:r}function im(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}im.prototype=Object.create(Nf.prototype);function _re(e){for(var t=new im(e,0),r,n=[t],i,a,o,l;r=n.pop();)if(a=r._.children)for(r.children=new Array(l=a.length),o=l-1;o>=0;--o)n.push(i=r.children[o]=new im(a[o],o)),i.parent=r;return(t.parent=new im(null,0)).children=[t],t}function Sre(){var e=yre,t=1,r=1,n=null;function i(f){var d=_re(f);if(d.eachAfter(a),d.parent.m=-d.z,d.eachBefore(o),n)f.eachBefore(s);else{var g=f,v=f,y=f;f.eachBefore(function(_){_.x<g.x&&(g=_),_.x>v.x&&(v=_),_.depth>y.depth&&(y=_)});var E=g===v?1:e(g,v)/2,k=E-g.x,x=t/(v.x+E+k),w=r/(y.depth||1);f.eachBefore(function(_){_.x=(_.x+k)*x,_.y=_.depth*w})}return f}function a(f){var d=f.children,g=f.parent.children,v=f.i?g[f.i-1]:null;if(d){xre(f);var y=(d[0].z+d[d.length-1].z)/2;v?(f.z=v.z+e(f._,v._),f.m=f.z-y):f.z=y}else v&&(f.z=v.z+e(f._,v._));f.parent.A=l(f,v,f.parent.A||g[0])}function o(f){f._.x=f.z+f.parent.m,f.m+=f.parent.m}function l(f,d,g){if(d){for(var v=f,y=f,E=d,k=v.parent.children[0],x=v.m,w=y.m,_=E.m,C=k.m,T;E=rw(E),v=tw(v),E&&v;)k=tw(k),y=rw(y),y.a=f,T=E.z+_-v.z-x+e(E._,v._),T>0&&(bre(wre(E,f,g),f,T),x+=T,w+=T),_+=E.m,x+=v.m,C+=k.m,w+=y.m;E&&!rw(y)&&(y.t=E,y.m+=_-w),v&&!tw(k)&&(k.t=v,k.m+=x-C,g=f)}return g}function s(f){f.x*=t,f.y=f.depth*r}return i.separation=function(f){return arguments.length?(e=f,i):e},i.size=function(f){return arguments.length?(n=!1,t=+f[0],r=+f[1],i):n?null:[t,r]},i.nodeSize=function(f){return arguments.length?(n=!0,t=+f[0],r=+f[1],i):n?[t,r]:null},i}function sy(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,f=e.value&&(i-r)/e.value;++l<s;)o=a[l],o.x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*f}var GN=(1+Math.sqrt(5))/2;function WN(e,t,r,n,i,a){for(var o=[],l=t.children,s,f,d=0,g=0,v=l.length,y,E,k=t.value,x,w,_,C,T,F,L;d<v;){y=i-r,E=a-n;do x=l[g++].value;while(!x&&g<v);for(w=_=x,F=Math.max(E/y,y/E)/(k*e),L=x*x*F,T=Math.max(_/L,L/w);g<v;++g){if(x+=f=l[g].value,f<w&&(w=f),f>_&&(_=f),L=x*x*F,C=Math.max(_/L,L/w),C>T){x-=f;break}T=C}o.push(s={value:x,dice:y<E,children:l.slice(d,g)}),s.dice?bp(s,r,n,i,k?n+=E*x/k:a):sy(s,r,n,k?r+=y*x/k:i,a),k-=x,d=g}return o}const HN=function e(t){function r(n,i,a,o,l){WN(t,n,i,a,o,l)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(GN);function Ere(){var e=HN,t=!1,r=1,n=1,i=[0],a=al,o=al,l=al,s=al,f=al;function d(v){return v.x0=v.y0=0,v.x1=r,v.y1=n,v.eachBefore(g),i=[0],t&&v.eachBefore(jN),v}function g(v){var y=i[v.depth],E=v.x0+y,k=v.y0+y,x=v.x1-y,w=v.y1-y;x<E&&(E=x=(E+x)/2),w<k&&(k=w=(k+w)/2),v.x0=E,v.y0=k,v.x1=x,v.y1=w,v.children&&(y=i[v.depth+1]=a(v)/2,E+=f(v)-y,k+=o(v)-y,x-=l(v)-y,w-=s(v)-y,x<E&&(E=x=(E+x)/2),w<k&&(k=w=(k+w)/2),e(v,E,k,x,w))}return d.round=function(v){return arguments.length?(t=!!v,d):t},d.size=function(v){return arguments.length?(r=+v[0],n=+v[1],d):[r,n]},d.tile=function(v){return arguments.length?(e=ig(v),d):e},d.padding=function(v){return arguments.length?d.paddingInner(v).paddingOuter(v):d.paddingInner()},d.paddingInner=function(v){return arguments.length?(a=typeof v=="function"?v:Ws(+v),d):a},d.paddingOuter=function(v){return arguments.length?d.paddingTop(v).paddingRight(v).paddingBottom(v).paddingLeft(v):d.paddingTop()},d.paddingTop=function(v){return arguments.length?(o=typeof v=="function"?v:Ws(+v),d):o},d.paddingRight=function(v){return arguments.length?(l=typeof v=="function"?v:Ws(+v),d):l},d.paddingBottom=function(v){return arguments.length?(s=typeof v=="function"?v:Ws(+v),d):s},d.paddingLeft=function(v){return arguments.length?(f=typeof v=="function"?v:Ws(+v),d):f},d}function Are(e,t,r,n,i){var a=e.children,o,l=a.length,s,f=new Array(l+1);for(f[0]=s=o=0;o<l;++o)f[o+1]=s+=a[o].value;d(0,l,e.value,t,r,n,i);function d(g,v,y,E,k,x,w){if(g>=v-1){var _=a[g];_.x0=E,_.y0=k,_.x1=x,_.y1=w;return}for(var C=f[g],T=y/2+C,F=g+1,L=v-1;F<L;){var V=F+L>>>1;f[V]<T?F=V+1:L=V}T-f[F-1]<f[F]-T&&g+1<F&&--F;var j=f[F]-C,te=y-j;if(x-E>w-k){var ge=(E*te+x*j)/y;d(g,F,j,E,k,ge,w),d(F,v,te,ge,k,x,w)}else{var me=(k*te+w*j)/y;d(g,F,j,E,k,x,me),d(F,v,te,E,me,x,w)}}}function Tre(e,t,r,n,i){(e.depth&1?sy:bp)(e,t,r,n,i)}const Cre=function e(t){function r(n,i,a,o,l){if((s=n._squarify)&&s.ratio===t)for(var s,f,d,g,v=-1,y,E=s.length,k=n.value;++v<E;){for(f=s[v],d=f.children,g=f.value=0,y=d.length;g<y;++g)f.value+=d[g].value;f.dice?bp(f,i,a,o,a+=(l-a)*f.value/k):sy(f,i,a,i+=(o-i)*f.value/k,l),k-=f.value}else n._squarify=s=WN(t,n,i,a,o,l),s.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(GN),Ore=Object.freeze(Object.defineProperty({__proto__:null,cluster:Ute,hierarchy:RE,pack:hre,packEnclose:$N,packSiblings:sre,partition:dre,stratify:gre,tree:Sre,treemap:Ere,treemapBinary:Are,treemapDice:bp,treemapResquarify:Cre,treemapSlice:sy,treemapSliceDice:Tre,treemapSquarify:HN},Symbol.toStringTag,{value:"Module"})),Cae=Rl(Ore);function Yf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function xp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Su(){}var Ol=.7,Lf=1/Ol,gf="\\s*([+-]?\\d+)\\s*",Ud="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kre=/^#([0-9a-f]{3,8})$/,Mre=new RegExp(`^rgb\\(${gf},${gf},${gf}\\)$`),Rre=new RegExp(`^rgb\\(${wa},${wa},${wa}\\)$`),Pre=new RegExp(`^rgba\\(${gf},${gf},${gf},${Ud}\\)$`),Ire=new RegExp(`^rgba\\(${wa},${wa},${wa},${Ud}\\)$`),Fre=new RegExp(`^hsl\\(${Ud},${wa},${wa}\\)$`),Nre=new RegExp(`^hsla\\(${Ud},${wa},${wa},${Ud}\\)$`),Sk={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Yf(Su,jd,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ek,formatHex:Ek,formatHex8:Lre,formatHsl:Dre,formatRgb:Ak,toString:Ak});function Ek(){return this.rgb().formatHex()}function Lre(){return this.rgb().formatHex8()}function Dre(){return qN(this).formatHsl()}function Ak(){return this.rgb().formatRgb()}function jd(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=kre.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Tk(t):r===3?new bn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?R0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?R0(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=Mre.exec(e))?new bn(t[1],t[2],t[3],1):(t=Rre.exec(e))?new bn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Pre.exec(e))?R0(t[1],t[2],t[3],t[4]):(t=Ire.exec(e))?R0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Fre.exec(e))?kk(t[1],t[2]/100,t[3]/100,1):(t=Nre.exec(e))?kk(t[1],t[2]/100,t[3]/100,t[4]):Sk.hasOwnProperty(e)?Tk(Sk[e]):e==="transparent"?new bn(NaN,NaN,NaN,0):null}function Tk(e){return new bn(e>>16&255,e>>8&255,e&255,1)}function R0(e,t,r,n){return n<=0&&(e=t=r=NaN),new bn(e,t,r,n)}function PE(e){return e instanceof Su||(e=jd(e)),e?(e=e.rgb(),new bn(e.r,e.g,e.b,e.opacity)):new bn}function ag(e,t,r,n){return arguments.length===1?PE(e):new bn(e,t,r,n??1)}function bn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Yf(bn,ag,xp(Su,{brighter(e){return e=e==null?Lf:Math.pow(Lf,e),new bn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ol:Math.pow(Ol,e),new bn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bn(gl(this.r),gl(this.g),gl(this.b),og(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:Ck,formatHex:Ck,formatHex8:$re,formatRgb:Ok,toString:Ok}));function Ck(){return`#${dl(this.r)}${dl(this.g)}${dl(this.b)}`}function $re(){return`#${dl(this.r)}${dl(this.g)}${dl(this.b)}${dl((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ok(){const e=og(this.opacity);return`${e===1?"rgb(":"rgba("}${gl(this.r)}, ${gl(this.g)}, ${gl(this.b)}${e===1?")":`, ${e})`}`}function og(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dl(e){return e=gl(e),(e<16?"0":"")+e.toString(16)}function kk(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xi(e,t,r,n)}function qN(e){if(e instanceof Xi)return new Xi(e.h,e.s,e.l,e.opacity);if(e instanceof Su||(e=jd(e)),!e)return new Xi;if(e instanceof Xi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(r-n)/l+(r<n)*6:r===a?o=(n-t)/l+2:o=(t-r)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new Xi(o,l,s,e.opacity)}function s2(e,t,r,n){return arguments.length===1?qN(e):new Xi(e,t,r,n??1)}function Xi(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Yf(Xi,s2,xp(Su,{brighter(e){return e=e==null?Lf:Math.pow(Lf,e),new Xi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ol:Math.pow(Ol,e),new Xi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new bn(nw(e>=240?e-240:e+120,i,n),nw(e,i,n),nw(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xi(Mk(this.h),P0(this.s),P0(this.l),og(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=og(this.opacity);return`${e===1?"hsl(":"hsla("}${Mk(this.h)}, ${P0(this.s)*100}%, ${P0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Mk(e){return e=(e||0)%360,e<0?e+360:e}function P0(e){return Math.max(0,Math.min(1,e||0))}function nw(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const VN=Math.PI/180,YN=180/Math.PI,ug=18,XN=.96422,KN=1,QN=.82521,ZN=4/29,yf=6/29,JN=3*yf*yf,Bre=yf*yf*yf;function e6(e){if(e instanceof _a)return new _a(e.l,e.a,e.b,e.opacity);if(e instanceof Za)return t6(e);e instanceof bn||(e=PE(e));var t=uw(e.r),r=uw(e.g),n=uw(e.b),i=iw((.2225045*t+.7168786*r+.0606169*n)/KN),a,o;return t===r&&r===n?a=o=i:(a=iw((.4360747*t+.3850649*r+.1430804*n)/XN),o=iw((.0139322*t+.0971045*r+.7141733*n)/QN)),new _a(116*i-16,500*(a-i),200*(i-o),e.opacity)}function f2(e,t,r,n){return arguments.length===1?e6(e):new _a(e,t,r,n??1)}function _a(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}Yf(_a,f2,xp(Su,{brighter(e){return new _a(this.l+ug*(e??1),this.a,this.b,this.opacity)},darker(e){return new _a(this.l-ug*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=XN*aw(t),e=KN*aw(e),r=QN*aw(r),new bn(ow(3.1338561*t-1.6168667*e-.4906146*r),ow(-.9787684*t+1.9161415*e+.033454*r),ow(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function iw(e){return e>Bre?Math.pow(e,1/3):e/JN+ZN}function aw(e){return e>yf?e*e*e:JN*(e-ZN)}function ow(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function uw(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function zre(e){if(e instanceof Za)return new Za(e.h,e.c,e.l,e.opacity);if(e instanceof _a||(e=e6(e)),e.a===0&&e.b===0)return new Za(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*YN;return new Za(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function c2(e,t,r,n){return arguments.length===1?zre(e):new Za(e,t,r,n??1)}function Za(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function t6(e){if(isNaN(e.h))return new _a(e.l,0,0,e.opacity);var t=e.h*VN;return new _a(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Yf(Za,c2,xp(Su,{brighter(e){return new Za(this.h,this.c,this.l+ug*(e??1),this.opacity)},darker(e){return new Za(this.h,this.c,this.l-ug*(e??1),this.opacity)},rgb(){return t6(this).rgb()}}));var r6=-.14861,IE=1.78277,FE=-.29227,fy=-.90649,Gd=1.97294,Rk=Gd*fy,Pk=Gd*IE,Ik=IE*FE-fy*r6;function Ure(e){if(e instanceof yl)return new yl(e.h,e.s,e.l,e.opacity);e instanceof bn||(e=PE(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(Ik*n+Rk*t-Pk*r)/(Ik+Rk-Pk),a=n-i,o=(Gd*(r-i)-FE*a)/fy,l=Math.sqrt(o*o+a*a)/(Gd*i*(1-i)),s=l?Math.atan2(o,a)*YN-120:NaN;return new yl(s<0?s+360:s,l,i,e.opacity)}function h2(e,t,r,n){return arguments.length===1?Ure(e):new yl(e,t,r,n??1)}function yl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Yf(yl,h2,xp(Su,{brighter(e){return e=e==null?Lf:Math.pow(Lf,e),new yl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ol:Math.pow(Ol,e),new yl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*VN,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new bn(255*(t+r*(r6*n+IE*i)),255*(t+r*(FE*n+fy*i)),255*(t+r*(Gd*n)),this.opacity)}}));function n6(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function i6(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,l=n<t-1?e[n+2]:2*a-i;return n6((r-n/t)*t,o,i,a,l)}}function a6(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],l=e[(n+2)%t];return n6((r-n/t)*t,i,a,o,l)}}const cy=e=>()=>e;function o6(e,t){return function(r){return e+r*t}}function jre(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function hy(e,t){var r=t-e;return r?o6(e,r>180||r<-180?r-360*Math.round(r/360):r):cy(isNaN(e)?t:e)}function Gre(e){return(e=+e)==1?xn:function(t,r){return r-t?jre(t,r,e):cy(isNaN(t)?r:t)}}function xn(e,t){var r=t-e;return r?o6(e,r):cy(isNaN(e)?t:e)}const d2=function e(t){var r=Gre(t);function n(i,a){var o=r((i=ag(i)).r,(a=ag(a)).r),l=r(i.g,a.g),s=r(i.b,a.b),f=xn(i.opacity,a.opacity);return function(d){return i.r=o(d),i.g=l(d),i.b=s(d),i.opacity=f(d),i+""}}return n.gamma=e,n}(1);function u6(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,l;for(o=0;o<r;++o)l=ag(t[o]),n[o]=l.r||0,i[o]=l.g||0,a[o]=l.b||0;return n=e(n),i=e(i),a=e(a),l.opacity=1,function(s){return l.r=n(s),l.g=i(s),l.b=a(s),l+""}}}var Wre=u6(i6),Hre=u6(a6);function NE(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function l6(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function qre(e,t){return(l6(t)?NE:s6)(e,t)}function s6(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=dy(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(l){for(o=0;o<n;++o)a[o]=i[o](l);return a}}function f6(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function da(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function c6(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=dy(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var p2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lw=new RegExp(p2.source,"g");function Vre(e){return function(){return e}}function Yre(e){return function(t){return e(t)+""}}function h6(e,t){var r=p2.lastIndex=lw.lastIndex=0,n,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(n=p2.exec(e))&&(i=lw.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:da(n,i)})),r=lw.lastIndex;return r<t.length&&(a=t.slice(r),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?Yre(s[0].x):Vre(t):(t=s.length,function(f){for(var d=0,g;d<t;++d)l[(g=s[d]).i]=g.x(f);return l.join("")})}function dy(e,t){var r=typeof t,n;return t==null||r==="boolean"?cy(t):(r==="number"?da:r==="string"?(n=jd(t))?(t=n,d2):h6:t instanceof jd?d2:t instanceof Date?f6:l6(t)?NE:Array.isArray(t)?s6:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?c6:da)(e,t)}function Xre(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function Kre(e,t){var r=hy(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function Qre(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var Fk=180/Math.PI,v2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function d6(e,t,r,n,i,a){var o,l,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,s/=l),e*n<t*r&&(e=-e,t=-t,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Fk,skewX:Math.atan(s)*Fk,scaleX:o,scaleY:l}}var I0;function Zre(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?v2:d6(t.a,t.b,t.c,t.d,t.e,t.f)}function Jre(e){return e==null||(I0||(I0=document.createElementNS("http://www.w3.org/2000/svg","g")),I0.setAttribute("transform",e),!(e=I0.transform.baseVal.consolidate()))?v2:(e=e.matrix,d6(e.a,e.b,e.c,e.d,e.e,e.f))}function p6(e,t,r,n){function i(f){return f.length?f.pop()+" ":""}function a(f,d,g,v,y,E){if(f!==g||d!==v){var k=y.push("translate(",null,t,null,r);E.push({i:k-4,x:da(f,g)},{i:k-2,x:da(d,v)})}else(g||v)&&y.push("translate("+g+t+v+r)}function o(f,d,g,v){f!==d?(f-d>180?d+=360:d-f>180&&(f+=360),v.push({i:g.push(i(g)+"rotate(",null,n)-2,x:da(f,d)})):d&&g.push(i(g)+"rotate("+d+n)}function l(f,d,g,v){f!==d?v.push({i:g.push(i(g)+"skewX(",null,n)-2,x:da(f,d)}):d&&g.push(i(g)+"skewX("+d+n)}function s(f,d,g,v,y,E){if(f!==g||d!==v){var k=y.push(i(y)+"scale(",null,",",null,")");E.push({i:k-4,x:da(f,g)},{i:k-2,x:da(d,v)})}else(g!==1||v!==1)&&y.push(i(y)+"scale("+g+","+v+")")}return function(f,d){var g=[],v=[];return f=e(f),d=e(d),a(f.translateX,f.translateY,d.translateX,d.translateY,g,v),o(f.rotate,d.rotate,g,v),l(f.skewX,d.skewX,g,v),s(f.scaleX,f.scaleY,d.scaleX,d.scaleY,g,v),f=d=null,function(y){for(var E=-1,k=v.length,x;++E<k;)g[(x=v[E]).i]=x.x(y);return g.join("")}}}var ene=p6(Zre,"px, ","px)","deg)"),tne=p6(Jre,", ",")",")"),rne=1e-12;function Nk(e){return((e=Math.exp(e))+1/e)/2}function nne(e){return((e=Math.exp(e))-1/e)/2}function ine(e){return((e=Math.exp(2*e))-1)/(e+1)}const ane=function e(t,r,n){function i(a,o){var l=a[0],s=a[1],f=a[2],d=o[0],g=o[1],v=o[2],y=d-l,E=g-s,k=y*y+E*E,x,w;if(k<rne)w=Math.log(v/f)/t,x=function(V){return[l+V*y,s+V*E,f*Math.exp(t*V*w)]};else{var _=Math.sqrt(k),C=(v*v-f*f+n*k)/(2*f*r*_),T=(v*v-f*f-n*k)/(2*v*r*_),F=Math.log(Math.sqrt(C*C+1)-C),L=Math.log(Math.sqrt(T*T+1)-T);w=(L-F)/t,x=function(V){var j=V*w,te=Nk(F),ge=f/(r*_)*(te*ine(t*j+F)-nne(F));return[l+ge*y,s+ge*E,f*te/Nk(t*j+F)]}}return x.duration=w*1e3*t/Math.SQRT2,x}return i.rho=function(a){var o=Math.max(.001,+a),l=o*o,s=l*l;return e(o,l,s)},i}(Math.SQRT2,2,4);function v6(e){return function(t,r){var n=e((t=s2(t)).h,(r=s2(r)).h),i=xn(t.s,r.s),a=xn(t.l,r.l),o=xn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.s=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const one=v6(hy);var une=v6(xn);function lne(e,t){var r=xn((e=f2(e)).l,(t=f2(t)).l),n=xn(e.a,t.a),i=xn(e.b,t.b),a=xn(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}function m6(e){return function(t,r){var n=e((t=c2(t)).h,(r=c2(r)).h),i=xn(t.c,r.c),a=xn(t.l,r.l),o=xn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.c=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const sne=m6(hy);var fne=m6(xn);function g6(e){return function t(r){r=+r;function n(i,a){var o=e((i=h2(i)).h,(a=h2(a)).h),l=xn(i.s,a.s),s=xn(i.l,a.l),f=xn(i.opacity,a.opacity);return function(d){return i.h=o(d),i.s=l(d),i.l=s(Math.pow(d,r)),i.opacity=f(d),i+""}}return n.gamma=t,n}(1)}const cne=g6(hy);var hne=g6(xn);function dne(e,t){t===void 0&&(t=e,e=dy);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[l](o-l)}}function pne(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const vne=Object.freeze(Object.defineProperty({__proto__:null,interpolate:dy,interpolateArray:qre,interpolateBasis:i6,interpolateBasisClosed:a6,interpolateCubehelix:cne,interpolateCubehelixLong:hne,interpolateDate:f6,interpolateDiscrete:Xre,interpolateHcl:sne,interpolateHclLong:fne,interpolateHsl:one,interpolateHslLong:une,interpolateHue:Kre,interpolateLab:lne,interpolateNumber:da,interpolateNumberArray:NE,interpolateObject:c6,interpolateRgb:d2,interpolateRgbBasis:Wre,interpolateRgbBasisClosed:Hre,interpolateRound:Qre,interpolateString:h6,interpolateTransformCss:ene,interpolateTransformSvg:tne,interpolateZoom:ane,piecewise:dne,quantize:pne},Symbol.toStringTag,{value:"Module"})),Oae=Rl(vne);var mne="Expected a function",y6="__lodash_hash_undefined__",b6=1/0,gne=9007199254740991,yne="[object Function]",bne="[object GeneratorFunction]",xne="[object Symbol]",wne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_ne=/^\w*$/,Sne=/^\./,Ene=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ane=/[\\^$.*+?()[\]{}|]/g,Tne=/\\(\\)?/g,Cne=/^\[object .+?Constructor\]$/,One=/^(?:0|[1-9]\d*)$/,kne=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,Mne=typeof self=="object"&&self&&self.Object===Object&&self,LE=kne||Mne||Function("return this")();function Rne(e,t){return e==null?void 0:e[t]}function Pne(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Ine=Array.prototype,Fne=Function.prototype,x6=Object.prototype,sw=LE["__core-js_shared__"],Lk=function(){var e=/[^.]+$/.exec(sw&&sw.keys&&sw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),w6=Fne.toString,py=x6.hasOwnProperty,_6=x6.toString,Nne=RegExp("^"+w6.call(py).replace(Ane,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Dk=LE.Symbol,Lne=Ine.splice,Dne=S6(LE,"Map"),Wd=S6(Object,"create"),$k=Dk?Dk.prototype:void 0,Bk=$k?$k.toString:void 0;function kl(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function $ne(){this.__data__=Wd?Wd(null):{}}function Bne(e){return this.has(e)&&delete this.__data__[e]}function zne(e){var t=this.__data__;if(Wd){var r=t[e];return r===y6?void 0:r}return py.call(t,e)?t[e]:void 0}function Une(e){var t=this.__data__;return Wd?t[e]!==void 0:py.call(t,e)}function jne(e,t){var r=this.__data__;return r[e]=Wd&&t===void 0?y6:t,this}kl.prototype.clear=$ne;kl.prototype.delete=Bne;kl.prototype.get=zne;kl.prototype.has=Une;kl.prototype.set=jne;function Xf(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Gne(){this.__data__=[]}function Wne(e){var t=this.__data__,r=vy(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Lne.call(t,r,1),!0}function Hne(e){var t=this.__data__,r=vy(t,e);return r<0?void 0:t[r][1]}function qne(e){return vy(this.__data__,e)>-1}function Vne(e,t){var r=this.__data__,n=vy(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Xf.prototype.clear=Gne;Xf.prototype.delete=Wne;Xf.prototype.get=Hne;Xf.prototype.has=qne;Xf.prototype.set=Vne;function Wl(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Yne(){this.__data__={hash:new kl,map:new(Dne||Xf),string:new kl}}function Xne(e){return my(this,e).delete(e)}function Kne(e){return my(this,e).get(e)}function Qne(e){return my(this,e).has(e)}function Zne(e,t){return my(this,e).set(e,t),this}Wl.prototype.clear=Yne;Wl.prototype.delete=Xne;Wl.prototype.get=Kne;Wl.prototype.has=Qne;Wl.prototype.set=Zne;function Jne(e,t,r){var n=e[t];(!(py.call(e,t)&&E6(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function vy(e,t){for(var r=e.length;r--;)if(E6(e[r][0],t))return r;return-1}function eie(e){if(!lg(e)||uie(e))return!1;var t=cie(e)||Pne(e)?Nne:Cne;return t.test(fie(e))}function tie(e,t,r,n){if(!lg(e))return e;t=aie(t,e)?[t]:nie(t);for(var i=-1,a=t.length,o=a-1,l=e;l!=null&&++i<a;){var s=sie(t[i]),f=r;if(i!=o){var d=l[s];f=n?n(d,s,l):void 0,f===void 0&&(f=lg(d)?d:iie(t[i+1])?[]:{})}Jne(l,s,f),l=l[s]}return e}function rie(e){if(typeof e=="string")return e;if($E(e))return Bk?Bk.call(e):"";var t=e+"";return t=="0"&&1/e==-b6?"-0":t}function nie(e){return A6(e)?e:lie(e)}function my(e,t){var r=e.__data__;return oie(t)?r[typeof t=="string"?"string":"hash"]:r.map}function S6(e,t){var r=Rne(e,t);return eie(r)?r:void 0}function iie(e,t){return t=t??gne,!!t&&(typeof e=="number"||One.test(e))&&e>-1&&e%1==0&&e<t}function aie(e,t){if(A6(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||$E(e)?!0:_ne.test(e)||!wne.test(e)||t!=null&&e in Object(t)}function oie(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function uie(e){return!!Lk&&Lk in e}var lie=DE(function(e){e=die(e);var t=[];return Sne.test(e)&&t.push(""),e.replace(Ene,function(r,n,i,a){t.push(i?a.replace(Tne,"$1"):n||r)}),t});function sie(e){if(typeof e=="string"||$E(e))return e;var t=e+"";return t=="0"&&1/e==-b6?"-0":t}function fie(e){if(e!=null){try{return w6.call(e)}catch{}try{return e+""}catch{}}return""}function DE(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(mne);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o),o};return r.cache=new(DE.Cache||Wl),r}DE.Cache=Wl;function E6(e,t){return e===t||e!==e&&t!==t}var A6=Array.isArray;function cie(e){var t=lg(e)?_6.call(e):"";return t==yne||t==bne}function lg(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function hie(e){return!!e&&typeof e=="object"}function $E(e){return typeof e=="symbol"||hie(e)&&_6.call(e)==xne}function die(e){return e==null?"":rie(e)}function pie(e,t,r){return e==null?e:tie(e,t,r)}var vie=pie;const kae=mi(vie);/*! js-cookie v3.0.5 | MIT */function F0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var mie={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function m2(e,t){function r(i,a,o){if(!(typeof document>"u")){o=F0({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var s in o)o[s]&&(l+="; "+s,o[s]!==!0&&(l+="="+o[s].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+l}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},l=0;l<a.length;l++){var s=a[l].split("="),f=s.slice(1).join("=");try{var d=decodeURIComponent(s[0]);if(o[d]=e.read(f,d),i===d)break}catch{}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,a){r(i,"",F0({},a,{expires:-1}))},withAttributes:function(i){return m2(this.converter,F0({},this.attributes,i))},withConverter:function(i){return m2(F0({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Mae=m2(mie,{path:"/"});function Rae(e){let{initialItems:t=[],initialSelectedKeys:r,getKey:n=f=>f.id||f.key,filter:i,initialFilterText:a=""}=e,[o,l]=zt.useState({items:t,selectedKeys:r==="all"?"all":new Set(r||[]),filterText:a}),s=zt.useMemo(()=>i?o.items.filter(f=>i(f,o.filterText)):o.items,[o.items,o.filterText,i]);return{...o,items:s,...gie({getKey:n},l),getItem(f){return o.items.find(d=>n(d)===f)}}}function gie(e,t){let{cursor:r,getKey:n}=e;return{setSelectedKeys(i){t(a=>({...a,selectedKeys:i}))},setFilterText(i){t(a=>({...a,filterText:i}))},insert(i,...a){t(o=>Ih(o,i,...a))},insertBefore(i,...a){t(o=>{let l=o.items.findIndex(s=>n(s)===i);if(l===-1)if(o.items.length===0)l=0;else return o;return Ih(o,l,...a)})},insertAfter(i,...a){t(o=>{let l=o.items.findIndex(s=>n(s)===i);if(l===-1)if(o.items.length===0)l=0;else return o;return Ih(o,l+1,...a)})},prepend(...i){t(a=>Ih(a,0,...i))},append(...i){t(a=>Ih(a,a.items.length,...i))},remove(...i){t(a=>{let o=new Set(i),l=a.items.filter(f=>!o.has(n(f))),s="all";if(a.selectedKeys!=="all"){s=new Set(a.selectedKeys);for(let f of i)s.delete(f)}return r==null&&l.length===0&&(s=new Set),{...a,items:l,selectedKeys:s}})},removeSelectedItems(){t(i=>{if(i.selectedKeys==="all")return{...i,items:[],selectedKeys:new Set};let a=i.selectedKeys,o=i.items.filter(l=>!a.has(n(l)));return{...i,items:o,selectedKeys:new Set}})},move(i,a){t(o=>{let l=o.items.findIndex(d=>n(d)===i);if(l===-1)return o;let s=o.items.slice(),[f]=s.splice(l,1);return s.splice(a,0,f),{...o,items:s}})},moveBefore(i,a){t(o=>{let l=o.items.findIndex(d=>n(d)===i);if(l===-1)return o;let f=(Array.isArray(a)?a:[...a]).map(d=>o.items.findIndex(g=>n(g)===d)).sort();return zk(o,f,l)})},moveAfter(i,a){t(o=>{let l=o.items.findIndex(d=>n(d)===i);if(l===-1)return o;let f=(Array.isArray(a)?a:[...a]).map(d=>o.items.findIndex(g=>n(g)===d)).sort();return zk(o,f,l+1)})},update(i,a){t(o=>{let l=o.items.findIndex(s=>n(s)===i);return l===-1?o:{...o,items:[...o.items.slice(0,l),a,...o.items.slice(l+1)]}})}}}function Ih(e,t,...r){return{...e,items:[...e.items.slice(0,t),...r,...e.items.slice(t)]}}function zk(e,t,r){r-=t.filter(a=>a<r).length;let n=t.map(a=>({from:a,to:r++}));for(let a=0;a<n.length;a++){let o=n[a].from;for(let l=a;l<n.length;l++)n[l].from>o&&n[l].from--}for(let a=0;a<n.length;a++){let o=n[a];for(let l=n.length-1;l>a;l--){let s=n[l];s.from<o.to?o.to++:s.from++}}let i=e.items.slice();for(let a of n){let[o]=i.splice(a.from,1);i.splice(a.to,0,o)}return{...e,items:i}}var wp={},gy={},T6={};(function(e){e.__esModule=!0;var t=function(r){var n={};return function(i){return i in n||(n[i]=r(i)),n[i]}};e.default=t})(T6);var C6={},Ml={};Ml.__esModule=!0;Ml.InternalServerError=Ml.OK=void 0;Ml.OK=200;Ml.InternalServerError=500;(function(e){var t=Jt&&Jt.__spreadArray||function(l,s,f){if(f||arguments.length===2)for(var d=0,g=s.length,v;d<g;d++)(v||!(d in s))&&(v||(v=Array.prototype.slice.call(s,0,d)),v[d]=s[d]);return l.concat(v||Array.prototype.slice.call(s))};e.__esModule=!0;var r=Y_,n=Y_,i=Ml,a=function(l){for(var s=[],f=1;f<arguments.length;f++)s[f-1]=arguments[f];return typeof l!="string"?{on:function(d,g){g(new Error("URL must be a string."))}}:l.indexOf("https://")===0?n.get.apply(n,t([l],s,!1)):r.get.apply(r,t([l],s,!1))},o=function(l){return new Promise(function(s,f){a(l,function(d){if(d.statusCode!==i.OK)return f(new Error("HTTP Error Response: "+d.statusCode+" "+d.statusMessage+" ("+l+")"));var g=null;d.on("data",function(v){if(g===null){g=v;return}g+=v}),d.on("end",function(){return s(g)})}).on("error",f)})};e.default=o})(C6);var O6={},nu={};nu.__esModule=!0;nu.DONE=nu.OPENED=nu.UNSENT=void 0;nu.UNSENT=0;nu.OPENED=1;nu.DONE=4;(function(e){e.__esModule=!0;var t=Ml,r=nu,n=function(i){return new Promise(function(a,o){var l=new XMLHttpRequest;l.onreadystatechange=function(){l.readyState===r.DONE&&(l.status===t.OK?a(l.responseText):o(new Error("HTTP Error Response: "+l.status+" "+l.statusText+" ("+i+")")))},l.open("GET",i,!0),l.send()})};e.default=n})(O6);gy.__esModule=!0;gy.createLoadRemoteModule=void 0;var yie=T6,bie=C6,xie=O6,wie=typeof window<"u"&&typeof window.document<"u",_ie=wie?xie.default:bie.default,Sie=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},Eie=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,i=r||Sie,a=n||_ie;return(0,yie.default)(function(o){return a(o).then(function(l){var s={},f={exports:s},d=new Function("require","module","exports",l);return d(i,f,s),f.exports})})};gy.createLoadRemoteModule=Eie;var yy={};yy.__esModule=!0;yy.createRequires=void 0;var Aie=function(e){return function(t){var r=e||{};if(!(t in r))throw new Error("Could not require '"+t+"'. '"+t+"' does not exist in dependencies.");return r[t]}};yy.createRequires=Aie;(function(e){var t=Jt&&Jt.__createBinding||(Object.create?function(i,a,o,l){l===void 0&&(l=o),Object.defineProperty(i,l,{enumerable:!0,get:function(){return a[o]}})}:function(i,a,o,l){l===void 0&&(l=o),i[l]=a[o]});e.__esModule=!0,e.createRequires=e.default=void 0;var r=gy;t(e,r,"createLoadRemoteModule","default");var n=yy;t(e,n,"createRequires")})(wp);const Pae=mi(wp);var Tie={},_p={},Cie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};_p.__esModule=!0;_p.createUseRemoteComponent=void 0;var Uk=zt,Oie=Cie(wp),kie=function(e){var t=Oie.default(e),r=function(n,i){i===void 0&&(i="default");var a=Uk.useState({loading:!0,err:void 0,component:void 0}),o=a[0],l=o.loading,s=o.err,f=o.component,d=a[1];return Uk.useEffect(function(){var g=d;return g({loading:!0,err:void 0,component:void 0}),t(n).then(function(v){return g({loading:!1,err:void 0,component:v[i]})}).catch(function(v){return g({loading:!1,err:v,component:void 0})}),function(){g=function(){}}},[n]),[l,s,f]};return r};_p.createUseRemoteComponent=kie;var Sp={};Sp.__esModule=!0;Sp.createRequires=void 0;var Mie=function(e){return typeof e=="function"?e():e||{}},Rie=function(e){var t=!1;return function(r){if(t||(e=Mie(e),t=!0),!(r in e))throw new Error("Could not require '"+r+"'. '"+r+"' does not exist in dependencies.");return e[r]}};Sp.createRequires=Rie;var BE={};(function(e){var t=Jt&&Jt.__assign||function(){return t=Object.assign||function(o){for(var l,s=1,f=arguments.length;s<f;s++){l=arguments[s];for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(o[d]=l[d])}return o},t.apply(this,arguments)};e.__esModule=!0,e.getDependencies=e.ensureRemoteComponentConfig=void 0;var r=function(o){return o&&typeof o.message=="string"&&o.message.indexOf("Cannot find module")>-1},n=function(o){return typeof o=="object"&&"remote-component.config.js"in o},i=function(o){var l=o.resolve;if(n(l))return l;var s=t({},l);return s["remote-component.config.js"]={resolve:s},s};e.ensureRemoteComponentConfig=i;var a=function(){try{return e.ensureRemoteComponentConfig(require("remote-component.config.js"))}catch(o){if(!r(o))throw o;return{}}};e.getDependencies=a})(BE);var Ep={},g2=Jt&&Jt.__assign||function(){return g2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},g2.apply(this,arguments)},Pie=Jt&&Jt.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},Iie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Ep.__esModule=!0;Ep.createRemoteComponent=void 0;var jk=Iie(zt),Fie=_p,Nie=function(e){var t=Fie.createUseRemoteComponent(e),r=function(n){var i=n.url,a=n.fallback,o=a===void 0?null:a,l=n.render,s=Pie(n,["url","fallback","render"]),f=t(i),d=f[0],g=f[1],v=f[2];return d?o:l?l({err:g,Component:v}):g||!v?jk.default.createElement("div",null,"Unknown Error: ",(g||"UNKNOWN").toString()):jk.default.createElement(v,g2({},s))};return r};Ep.createRemoteComponent=Nie;var by={};by.__esModule=!0;by.RemoteComponent=void 0;var Lie=Ep,Die=Sp,$ie=BE,Bie=Die.createRequires($ie.getDependencies);by.RemoteComponent=Lie.createRemoteComponent({requires:Bie});var xy={},zie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};xy.__esModule=!0;xy.fetchRemoteComponent=void 0;var Uie=zie(wp),jie=function(e){var t=e.requires,r=e.fetcher,n=e.url,i=e.imports,a=i===void 0?"default":i,o=Uie.default({requires:t,fetcher:r});return o(n).then(function(l){var s=l&&l[a];if(!s)throw new Error("Could not load '"+a+"' from '"+n+"'.");return s})};xy.fetchRemoteComponent=jie;var wy={},Gie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};wy.__esModule=!0;wy.getServerSideProps=void 0;var Wie=Gie(wp),Hie=function(e){var t=e.url,r=e.requires,n=e.context,i=e.imports,a=i===void 0?"default":i,o=Wie.default({requires:r});return o(t).then(function(l){var s=l&&l[a]&&l[a].getServerSideProps;return typeof s=="function"?s(n):{}})};wy.getServerSideProps=Hie;(function(e){var t=Jt&&Jt.__createBinding||(Object.create?function(f,d,g,v){v===void 0&&(v=g),Object.defineProperty(f,v,{enumerable:!0,get:function(){return d[g]}})}:function(f,d,g,v){v===void 0&&(v=g),f[v]=d[g]});e.__esModule=!0,e.getServerSideProps=e.fetchRemoteComponent=e.RemoteComponent=e.createRemoteComponent=e.getDependencies=e.createRequires=e.createUseRemoteComponent=void 0;var r=_p;t(e,r,"createUseRemoteComponent");var n=Sp;t(e,n,"createRequires");var i=BE;t(e,i,"getDependencies");var a=Ep;t(e,a,"createRemoteComponent");var o=by;t(e,o,"RemoteComponent");var l=xy;t(e,l,"fetchRemoteComponent");var s=wy;t(e,s,"getServerSideProps")})(Tie);export{oae as $,Cae as A,Oae as B,Vie as C,Qie as D,Xie as E,Ng as F,wr as G,kae as H,uae as I,tn as J,Kie as K,Yie as L,dr as M,OS as N,Jie as O,Zie as P,LG as Q,Bh as R,nae as S,rae as T,SG as U,iae as V,aae as W,Mae as X,Rae as Y,eae as Z,tae as _,sae as a,wp as a0,Pae as a1,Tie as a2,fae as b,BF as c,lae as d,mae as e,cae as f,dae as g,vae as h,pae as i,yae as j,bae as k,GK as l,gae as m,xae as n,wae as o,UL as p,ty as q,zt as r,_ae as s,hae as t,oZ as u,Gee as v,Sae as w,Eae as x,Aae as y,Tae as z};
1175
- //# sourceMappingURL=vendor-7c2b7fca.js.map
1174
+ }`}),n={};return{regl:t,draw:r,atlas:n}};xr.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=gte(t,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),t.opacity!=null&&(Array.isArray(t.opacity)?this.opacity=t.opacity.map(function(Ke){return parseFloat(Ke)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=_te(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),this.viewport==null&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),t.kerning!=null&&(this.kerning=t.kerning),t.offset!=null&&(typeof t.offset=="number"&&(t.offset=[t.offset,0]),this.positionOffset=Mte(t.offset)),t.direction&&(this.direction=t.direction),t.range&&(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&&(this.scale=t.scale),t.translate&&(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),!this.font.length&&!t.font&&(t.font=xr.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(Ke,ct){if(typeof Ke=="string")try{Ke=Bs.parse(Ke)}catch{Ke=Bs.parse(xr.baseFontSize+"px "+Ke)}else Ke=Bs.parse(Bs.stringify(Ke));var yt=Bs.stringify({size:xr.baseFontSize,family:Ke.family,stretch:rm?Ke.stretch:void 0,variant:Ke.variant,weight:Ke.weight,style:Ke.style}),qt=Ete(Ke.size),Yt=Math.round(qt[0]*Ate(qt[1]));if(Yt!==r.fontSize[ct]&&(i=!0,r.fontSize[ct]=Yt),(!r.font[ct]||yt!=r.font[ct].baseString)&&(n=!0,r.font[ct]=xr.fonts[yt],!r.font[ct])){var Qe=Ke.family.join(", "),At=[Ke.style];Ke.style!=Ke.variant&&At.push(Ke.variant),Ke.variant!=Ke.weight&&At.push(Ke.weight),rm&&Ke.weight!=Ke.stretch&&At.push(Ke.stretch),r.font[ct]={baseString:yt,family:Qe,weight:Ke.weight,stretch:Ke.stretch,style:Ke.style,variant:Ke.variant,width:{},kerning:{},metrics:Ote(Qe,{origin:"top",fontSize:xr.baseFontSize,fontStyle:At.join(" ")})},xr.fonts[yt]=r.font[ct]}}),(n||i)&&this.font.forEach(function(Ke,ct){var yt=Bs.stringify({size:r.fontSize[ct],family:Ke.family,stretch:rm?Ke.stretch:void 0,variant:Ke.variant,weight:Ke.weight,style:Ke.style});if(r.fontAtlas[ct]=r.shader.atlas[yt],!r.fontAtlas[ct]){var qt=Ke.metrics;r.shader.atlas[yt]=r.fontAtlas[ct]={fontString:yt,step:Math.ceil(r.fontSize[ct]*qt.bottom*.5)*2,em:r.fontSize[ct],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:r.regl.texture()}}t.text==null&&(t.text=r.text)}),typeof t.text=="string"&&t.position&&t.position.length>2){for(var a=Array(t.position.length*.5),o=0;o<a.length;o++)a[o]=t.text;t.text=a}var l;if(t.text!=null||n){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var s=1;s<t.text.length;s++)this.textOffsets[s]=this.textOffsets[s-1]+t.text[s-1].length,this.count+=t.text[s].length,this.counts.push(t.text[s].length);this.text=t.text.join("")}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];l=[],this.font.forEach(function(Ke,ct){xr.atlasContext.font=Ke.baseString;for(var yt=r.fontAtlas[ct],qt=0;qt<r.text.length;qt++){var Yt=r.text.charAt(qt);if(yt.ids[Yt]==null&&(yt.ids[Yt]=yt.chars.length,yt.chars.push(Yt),l.push(Yt)),Ke.width[Yt]==null&&(Ke.width[Yt]=xr.atlasContext.measureText(Yt).width/xr.baseFontSize,r.kerning)){var Qe=[];for(var At in Ke.width)Qe.push(At+Yt,Yt+At);Tte(Ke.kerning,Cte(Ke.family,{pairs:Qe}))}}})}if(t.position)if(t.position.length>2){for(var f=!t.position[0].length,d=Lo.mallocFloat(this.count*2),g=0,v=0;g<this.counts.length;g++){var y=this.counts[g];if(f)for(var E=0;E<y;E++)d[v++]=t.position[g*2],d[v++]=t.position[g*2+1];else for(var M=0;M<y;M++)d[v++]=t.position[g][0],d[v++]=t.position[g][1]}this.position.call?this.position({type:"float",data:d}):this.position=this.regl.buffer({type:"float",data:d}),Lo.freeFloat(d)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var x=Lo.mallocUint8(this.count),w=Lo.mallocFloat(this.count*2);this.textWidth=[];for(var _=0,T=0;_<this.counts.length;_++){for(var C=this.counts[_],F=this.font[_]||this.font[0],L=this.fontAtlas[_]||this.fontAtlas[0],V=0;V<C;V++){var j=this.text.charAt(T),te=this.text.charAt(T-1);if(x[T]=L.ids[j],w[T*2]=F.width[j],V){var ge=w[T*2-2],me=w[T*2],Me=w[T*2-1],Fe=Me+ge*.5+me*.5;if(this.kerning){var Le=F.kerning[te+j];Le&&(Fe+=Le*.001)}w[T*2+1]=Fe}else w[T*2+1]=w[T*2]*.5;T++}this.textWidth.push(w.length?w[T*2-2]*.5+w[T*2-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:x,type:"uint8",usage:"stream"}),this.sizeBuffer({data:w,type:"float",usage:"stream"}),Lo.freeUint8(x),Lo.freeFloat(w),l.length&&this.font.forEach(function(Ke,ct){var yt=r.fontAtlas[ct],qt=yt.step,Yt=Math.floor(xr.maxAtlasSize/qt),Qe=Math.min(Yt,yt.chars.length),At=Math.ceil(yt.chars.length/Qe),jt=dM(Qe*qt),Te=dM(At*qt);yt.width=jt,yt.height=Te,yt.rows=At,yt.cols=Qe,yt.em&&yt.texture({data:wte({canvas:xr.atlasCanvas,font:yt.fontString,chars:yt.chars,shape:[jt,Te],step:[qt,qt]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(Ke,ct){var yt=Array.isArray(r.align)?r.align.length>1?r.align[ct]:r.align[0]:r.align;if(typeof yt=="number")return yt;switch(yt){case"right":case"end":return-Ke;case"center":case"centre":case"middle":return-Ke*.5}return 0})),this.baseline==null&&t.baseline==null&&(t.baseline=0),t.baseline!=null&&(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map(function(Ke,ct){var yt=(r.font[ct]||r.font[0]).metrics,qt=0;return qt+=yt.bottom*.5,typeof Ke=="number"?qt+=Ke-yt.baseline:qt+=-yt[Ke],qt*=-1,qt})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=Kx(t.color,"uint8");else{var ut;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var nt=t.color.length;ut=Lo.mallocUint8(nt);for(var De=(t.color.subarray||t.color.slice).bind(t.color),We=0;We<nt;We+=4)ut.set(Kx(De(We,We+4),"uint8"),We)}else{var _t=t.color.length;ut=Lo.mallocUint8(_t*4);for(var He=0;He<_t;He++)ut.set(Kx(t.color[He]||0,"uint8"),He*4)}this.color=ut}if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity){var we=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(we){var qe=Math.max(this.position.length*.5||0,this.color.length*.25||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,this.positionOffset.length*.5||0);this.batch=Array(qe);for(var st=0;st<this.batch.length;st++)this.batch[st]={count:this.counts.length>1?this.counts[st]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[st]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(st*4,st*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[st]:this.opacity,baseline:this.baselineOffset[st]!=null?this.baselineOffset[st]:this.baselineOffset[0],align:this.align?this.alignOffset[st]!=null?this.alignOffset[st]:this.alignOffset[0]:0,atlas:this.fontAtlas[st]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(st*2,st*2+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}};xr.prototype.destroy=function(){};xr.prototype.kerning=!0;xr.prototype.position={constant:new Float32Array(2)};xr.prototype.translate=null;xr.prototype.scale=null;xr.prototype.font=null;xr.prototype.text="";xr.prototype.positionOffset=[0,0];xr.prototype.opacity=1;xr.prototype.color=new Uint8Array([0,0,0,255]);xr.prototype.alignOffset=[0,0];xr.maxAtlasSize=1024;xr.atlasCanvas=document.createElement("canvas");xr.atlasContext=xr.atlasCanvas.getContext("2d",{alpha:!1});xr.baseFontSize=64;xr.fonts={};function Rte(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var Sae=xr;function Pte(e,t){return e.parent===t.parent?1:2}function Ite(e){return e.reduce(Fte,0)/e.length}function Fte(e,t){return e+t.x}function Nte(e){return 1+e.reduce(Lte,0)}function Lte(e,t){return Math.max(e,t.y)}function Dte(e){for(var t;t=e.children;)e=t[0];return e}function $te(e){for(var t;t=e.children;)e=t[t.length-1];return e}function Bte(){var e=Pte,t=1,r=1,n=!1;function i(a){var o,l=0;a.eachAfter(function(v){var y=v.children;y?(v.x=Ite(y),v.y=Nte(y)):(v.x=o?l+=e(v,o):0,v.y=0,o=v)});var s=Dte(a),f=$te(a),d=s.x-e(s,f)/2,g=f.x+e(f,s)/2;return a.eachAfter(n?function(v){v.x=(v.x-a.x)*t,v.y=(a.y-v.y)*r}:function(v){v.x=(v.x-d)/(g-d)*t,v.y=(1-(a.y?v.y/a.y:1))*r})}return i.separation=function(a){return arguments.length?(e=a,i):e},i.size=function(a){return arguments.length?(n=!1,t=+a[0],r=+a[1],i):n?null:[t,r]},i.nodeSize=function(a){return arguments.length?(n=!0,t=+a[0],r=+a[1],i):n?[t,r]:null},i}function zte(e){var t=0,r=e.children,n=r&&r.length;if(!n)t=1;else for(;--n>=0;)t+=r[n].value;e.value=t}function Ute(){return this.eachAfter(zte)}function jte(e){var t=this,r,n=[t],i,a,o;do for(r=n.reverse(),n=[];t=r.pop();)if(e(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)n.push(i[a]);while(n.length);return this}function Gte(e){for(var t=this,r=[t],n,i;t=r.pop();)if(e(t),n=t.children,n)for(i=n.length-1;i>=0;--i)r.push(n[i]);return this}function Wte(e){for(var t=this,r=[t],n=[],i,a,o;t=r.pop();)if(n.push(t),i=t.children,i)for(a=0,o=i.length;a<o;++a)r.push(i[a]);for(;t=n.pop();)e(t);return this}function Hte(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,n=t.children,i=n&&n.length;--i>=0;)r+=n[i].value;t.value=r})}function qte(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Vte(e){for(var t=this,r=Yte(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n}function Yte(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}function Xte(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Kte(){var e=[];return this.each(function(t){e.push(t)}),e}function Qte(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Zte(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function kE(e,t){var r=new Nf(e),n=+e.value&&(r.value=e.value),i,a=[r],o,l,s,f;for(t==null&&(t=ere);i=a.pop();)if(n&&(i.value=+i.data.value),(l=t(i.data))&&(f=l.length))for(i.children=new Array(f),s=f-1;s>=0;--s)a.push(o=i.children[s]=new Nf(l[s])),o.parent=i,o.depth=i.depth+1;return r.eachBefore(NN)}function Jte(){return kE(this).eachBefore(tre)}function ere(e){return e.children}function tre(e){e.data=e.data.data}function NN(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Nf(e){this.data=e,this.depth=this.height=0,this.parent=null}Nf.prototype=kE.prototype={constructor:Nf,count:Ute,each:jte,eachAfter:Wte,eachBefore:Gte,sum:Hte,sort:qte,path:Vte,ancestors:Xte,descendants:Kte,leaves:Qte,links:Zte,copy:Jte};var rre=Array.prototype.slice;function nre(e){for(var t=e.length,r,n;t;)n=Math.random()*t--|0,r=e[t],e[t]=e[n],e[n]=r;return e}function LN(e){for(var t=0,r=(e=nre(rre.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&DN(a,i)?++t:(a=are(n=ire(n,i)),t=0);return a}function ire(e,t){var r,n;if(Zx(t,e))return[t];for(r=0;r<e.length;++r)if(O0(t,e[r])&&Zx(Gh(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(O0(Gh(e[r],e[n]),t)&&O0(Gh(e[r],t),e[n])&&O0(Gh(e[n],t),e[r])&&Zx($N(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function O0(e,t){var r=e.r-t.r,n=t.x-e.x,i=t.y-e.y;return r<0||r*r<n*n+i*i}function DN(e,t){var r=e.r-t.r+1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function Zx(e,t){for(var r=0;r<t.length;++r)if(!DN(e,t[r]))return!1;return!0}function are(e){switch(e.length){case 1:return ore(e[0]);case 2:return Gh(e[0],e[1]);case 3:return $N(e[0],e[1],e[2])}}function ore(e){return{x:e.x,y:e.y,r:e.r}}function Gh(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,o=t.y,l=t.r,s=a-r,f=o-n,d=l-i,g=Math.sqrt(s*s+f*f);return{x:(r+a+s/g*d)/2,y:(n+o+f/g*d)/2,r:(g+i+l)/2}}function $N(e,t,r){var n=e.x,i=e.y,a=e.r,o=t.x,l=t.y,s=t.r,f=r.x,d=r.y,g=r.r,v=n-o,y=n-f,E=i-l,M=i-d,x=s-a,w=g-a,_=n*n+i*i-a*a,T=_-o*o-l*l+s*s,C=_-f*f-d*d+g*g,F=y*E-v*M,L=(E*C-M*T)/(F*2)-n,V=(M*x-E*w)/F,j=(y*T-v*C)/(F*2)-i,te=(v*w-y*x)/F,ge=V*V+te*te-1,me=2*(a+L*V+j*te),Me=L*L+j*j-a*a,Fe=-(ge?(me+Math.sqrt(me*me-4*ge*Me))/(2*ge):Me/me);return{x:n+L+V*Fe,y:i+j+te*Fe,r:Fe}}function vM(e,t,r){var n=e.x-t.x,i,a,o=e.y-t.y,l,s,f=n*n+o*o;f?(a=t.r+r.r,a*=a,s=e.r+r.r,s*=s,a>s?(i=(f+s-a)/(2*f),l=Math.sqrt(Math.max(0,s/f-i*i)),r.x=e.x-i*n-l*o,r.y=e.y-i*o+l*n):(i=(f+a-s)/(2*f),l=Math.sqrt(Math.max(0,a/f-i*i)),r.x=t.x+i*n-l*o,r.y=t.y+i*o+l*n)):(r.x=t.x+r.r,r.y=t.y)}function mM(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,i=t.y-e.y;return r>0&&r*r>n*n+i*i}function gM(e){var t=e._,r=e.next._,n=t.r+r.r,i=(t.x*r.r+r.x*t.r)/n,a=(t.y*r.r+r.y*t.r)/n;return i*i+a*a}function M0(e){this._=e,this.next=null,this.previous=null}function BN(e){if(!(i=e.length))return 0;var t,r,n,i,a,o,l,s,f,d,g;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(r=e[1],t.x=-r.r,r.x=t.r,r.y=0,!(i>2))return t.r+r.r;vM(r,t,n=e[2]),t=new M0(t),r=new M0(r),n=new M0(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(l=3;l<i;++l){vM(t._,r._,n=e[l]),n=new M0(n),s=r.next,f=t.previous,d=r._.r,g=t._.r;do if(d<=g){if(mM(s._,n._)){r=s,t.next=r,r.previous=t,--l;continue e}d+=s._.r,s=s.next}else{if(mM(f._,n._)){t=f,t.next=r,r.previous=t,--l;continue e}g+=f._.r,f=f.previous}while(s!==f.next);for(n.previous=t,n.next=r,t.next=r.previous=r=n,a=gM(t);(n=n.next)!==r;)(o=gM(n))<a&&(t=n,a=o);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=LN(t),l=0;l<i;++l)t=e[l],t.x-=n.x,t.y-=n.y;return n.r}function ure(e){return BN(e),e}function lre(e){return e==null?null:ng(e)}function ng(e){if(typeof e!="function")throw new Error;return e}function al(){return 0}function Ws(e){return function(){return e}}function sre(e){return Math.sqrt(e.value)}function fre(){var e=null,t=1,r=1,n=al;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(yM(e)).eachAfter(Jx(n,.5)).eachBefore(bM(1)):a.eachBefore(yM(sre)).eachAfter(Jx(al,1)).eachAfter(Jx(n,a.r/Math.min(t,r))).eachBefore(bM(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=lre(a),i):e},i.size=function(a){return arguments.length?(t=+a[0],r=+a[1],i):[t,r]},i.padding=function(a){return arguments.length?(n=typeof a=="function"?a:Ws(+a),i):n},i}function yM(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Jx(e,t){return function(r){if(n=r.children){var n,i,a=n.length,o=e(r)*t||0,l;if(o)for(i=0;i<a;++i)n[i].r+=o;if(l=BN(n),o)for(i=0;i<a;++i)n[i].r-=o;r.r=l+o}}}function bM(e){return function(t){var r=t.parent;t.r*=e,r&&(t.x=r.x+e*t.x,t.y=r.y+e*t.y)}}function zN(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function yp(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,f=e.value&&(n-t)/e.value;++l<s;)o=a[l],o.y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*f}function cre(){var e=1,t=1,r=0,n=!1;function i(o){var l=o.height+1;return o.x0=o.y0=r,o.x1=e,o.y1=t/l,o.eachBefore(a(t,l)),n&&o.eachBefore(zN),o}function a(o,l){return function(s){s.children&&yp(s,s.x0,o*(s.depth+1)/l,s.x1,o*(s.depth+2)/l);var f=s.x0,d=s.y0,g=s.x1-r,v=s.y1-r;g<f&&(f=g=(f+g)/2),v<d&&(d=v=(d+v)/2),s.x0=f,s.y0=d,s.x1=g,s.y1=v}}return i.round=function(o){return arguments.length?(n=!!o,i):n},i.size=function(o){return arguments.length?(e=+o[0],t=+o[1],i):[e,t]},i.padding=function(o){return arguments.length?(r=+o,i):r},i}var xM="$",hre={depth:-1},wM={};function dre(e){return e.id}function pre(e){return e.parentId}function vre(){var e=dre,t=pre;function r(n){var i,a,o=n.length,l,s,f,d=new Array(o),g,v,y={};for(a=0;a<o;++a)i=n[a],f=d[a]=new Nf(i),(g=e(i,a,n))!=null&&(g+="")&&(v=xM+(f.id=g),y[v]=v in y?wM:f);for(a=0;a<o;++a)if(f=d[a],g=t(n[a],a,n),g==null||!(g+="")){if(l)throw new Error("multiple roots");l=f}else{if(s=y[xM+g],!s)throw new Error("missing: "+g);if(s===wM)throw new Error("ambiguous: "+g);s.children?s.children.push(f):s.children=[f],f.parent=s}if(!l)throw new Error("no root");if(l.parent=hre,l.eachBefore(function(E){E.depth=E.parent.depth+1,--o}).eachBefore(NN),l.parent=null,o>0)throw new Error("cycle");return l}return r.id=function(n){return arguments.length?(e=ng(n),r):e},r.parentId=function(n){return arguments.length?(t=ng(n),r):t},r}function mre(e,t){return e.parent===t.parent?1:2}function ew(e){var t=e.children;return t?t[0]:e.t}function tw(e){var t=e.children;return t?t[t.length-1]:e.t}function gre(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function yre(e){for(var t=0,r=0,n=e.children,i=n.length,a;--i>=0;)a=n[i],a.z+=t,a.m+=t,t+=a.s+(r+=a.c)}function bre(e,t,r){return e.a.parent===t.parent?e.a:r}function nm(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}nm.prototype=Object.create(Nf.prototype);function xre(e){for(var t=new nm(e,0),r,n=[t],i,a,o,l;r=n.pop();)if(a=r._.children)for(r.children=new Array(l=a.length),o=l-1;o>=0;--o)n.push(i=r.children[o]=new nm(a[o],o)),i.parent=r;return(t.parent=new nm(null,0)).children=[t],t}function wre(){var e=mre,t=1,r=1,n=null;function i(f){var d=xre(f);if(d.eachAfter(a),d.parent.m=-d.z,d.eachBefore(o),n)f.eachBefore(s);else{var g=f,v=f,y=f;f.eachBefore(function(_){_.x<g.x&&(g=_),_.x>v.x&&(v=_),_.depth>y.depth&&(y=_)});var E=g===v?1:e(g,v)/2,M=E-g.x,x=t/(v.x+E+M),w=r/(y.depth||1);f.eachBefore(function(_){_.x=(_.x+M)*x,_.y=_.depth*w})}return f}function a(f){var d=f.children,g=f.parent.children,v=f.i?g[f.i-1]:null;if(d){yre(f);var y=(d[0].z+d[d.length-1].z)/2;v?(f.z=v.z+e(f._,v._),f.m=f.z-y):f.z=y}else v&&(f.z=v.z+e(f._,v._));f.parent.A=l(f,v,f.parent.A||g[0])}function o(f){f._.x=f.z+f.parent.m,f.m+=f.parent.m}function l(f,d,g){if(d){for(var v=f,y=f,E=d,M=v.parent.children[0],x=v.m,w=y.m,_=E.m,T=M.m,C;E=tw(E),v=ew(v),E&&v;)M=ew(M),y=tw(y),y.a=f,C=E.z+_-v.z-x+e(E._,v._),C>0&&(gre(bre(E,f,g),f,C),x+=C,w+=C),_+=E.m,x+=v.m,T+=M.m,w+=y.m;E&&!tw(y)&&(y.t=E,y.m+=_-w),v&&!ew(M)&&(M.t=v,M.m+=x-T,g=f)}return g}function s(f){f.x*=t,f.y=f.depth*r}return i.separation=function(f){return arguments.length?(e=f,i):e},i.size=function(f){return arguments.length?(n=!1,t=+f[0],r=+f[1],i):n?null:[t,r]},i.nodeSize=function(f){return arguments.length?(n=!0,t=+f[0],r=+f[1],i):n?[t,r]:null},i}function ly(e,t,r,n,i){for(var a=e.children,o,l=-1,s=a.length,f=e.value&&(i-r)/e.value;++l<s;)o=a[l],o.x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*f}var UN=(1+Math.sqrt(5))/2;function jN(e,t,r,n,i,a){for(var o=[],l=t.children,s,f,d=0,g=0,v=l.length,y,E,M=t.value,x,w,_,T,C,F,L;d<v;){y=i-r,E=a-n;do x=l[g++].value;while(!x&&g<v);for(w=_=x,F=Math.max(E/y,y/E)/(M*e),L=x*x*F,C=Math.max(_/L,L/w);g<v;++g){if(x+=f=l[g].value,f<w&&(w=f),f>_&&(_=f),L=x*x*F,T=Math.max(_/L,L/w),T>C){x-=f;break}C=T}o.push(s={value:x,dice:y<E,children:l.slice(d,g)}),s.dice?yp(s,r,n,i,M?n+=E*x/M:a):ly(s,r,n,M?r+=y*x/M:i,a),M-=x,d=g}return o}const GN=function e(t){function r(n,i,a,o,l){jN(t,n,i,a,o,l)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(UN);function _re(){var e=GN,t=!1,r=1,n=1,i=[0],a=al,o=al,l=al,s=al,f=al;function d(v){return v.x0=v.y0=0,v.x1=r,v.y1=n,v.eachBefore(g),i=[0],t&&v.eachBefore(zN),v}function g(v){var y=i[v.depth],E=v.x0+y,M=v.y0+y,x=v.x1-y,w=v.y1-y;x<E&&(E=x=(E+x)/2),w<M&&(M=w=(M+w)/2),v.x0=E,v.y0=M,v.x1=x,v.y1=w,v.children&&(y=i[v.depth+1]=a(v)/2,E+=f(v)-y,M+=o(v)-y,x-=l(v)-y,w-=s(v)-y,x<E&&(E=x=(E+x)/2),w<M&&(M=w=(M+w)/2),e(v,E,M,x,w))}return d.round=function(v){return arguments.length?(t=!!v,d):t},d.size=function(v){return arguments.length?(r=+v[0],n=+v[1],d):[r,n]},d.tile=function(v){return arguments.length?(e=ng(v),d):e},d.padding=function(v){return arguments.length?d.paddingInner(v).paddingOuter(v):d.paddingInner()},d.paddingInner=function(v){return arguments.length?(a=typeof v=="function"?v:Ws(+v),d):a},d.paddingOuter=function(v){return arguments.length?d.paddingTop(v).paddingRight(v).paddingBottom(v).paddingLeft(v):d.paddingTop()},d.paddingTop=function(v){return arguments.length?(o=typeof v=="function"?v:Ws(+v),d):o},d.paddingRight=function(v){return arguments.length?(l=typeof v=="function"?v:Ws(+v),d):l},d.paddingBottom=function(v){return arguments.length?(s=typeof v=="function"?v:Ws(+v),d):s},d.paddingLeft=function(v){return arguments.length?(f=typeof v=="function"?v:Ws(+v),d):f},d}function Sre(e,t,r,n,i){var a=e.children,o,l=a.length,s,f=new Array(l+1);for(f[0]=s=o=0;o<l;++o)f[o+1]=s+=a[o].value;d(0,l,e.value,t,r,n,i);function d(g,v,y,E,M,x,w){if(g>=v-1){var _=a[g];_.x0=E,_.y0=M,_.x1=x,_.y1=w;return}for(var T=f[g],C=y/2+T,F=g+1,L=v-1;F<L;){var V=F+L>>>1;f[V]<C?F=V+1:L=V}C-f[F-1]<f[F]-C&&g+1<F&&--F;var j=f[F]-T,te=y-j;if(x-E>w-M){var ge=(E*te+x*j)/y;d(g,F,j,E,M,ge,w),d(F,v,te,ge,M,x,w)}else{var me=(M*te+w*j)/y;d(g,F,j,E,M,x,me),d(F,v,te,E,me,x,w)}}}function Ere(e,t,r,n,i){(e.depth&1?ly:yp)(e,t,r,n,i)}const Are=function e(t){function r(n,i,a,o,l){if((s=n._squarify)&&s.ratio===t)for(var s,f,d,g,v=-1,y,E=s.length,M=n.value;++v<E;){for(f=s[v],d=f.children,g=f.value=0,y=d.length;g<y;++g)f.value+=d[g].value;f.dice?yp(f,i,a,o,a+=(l-a)*f.value/M):ly(f,i,a,i+=(o-i)*f.value/M,l),M-=f.value}else n._squarify=s=jN(t,n,i,a,o,l),s.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(UN),Cre=Object.freeze(Object.defineProperty({__proto__:null,cluster:Bte,hierarchy:kE,pack:fre,packEnclose:LN,packSiblings:ure,partition:cre,stratify:vre,tree:wre,treemap:_re,treemapBinary:Sre,treemapDice:yp,treemapResquarify:Are,treemapSlice:ly,treemapSliceDice:Ere,treemapSquarify:GN},Symbol.toStringTag,{value:"Module"})),Eae=Rl(Cre);function Yf(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function bp(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Su(){}var Ol=.7,Lf=1/Ol,gf="\\s*([+-]?\\d+)\\s*",zd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wa="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tre=/^#([0-9a-f]{3,8})$/,Ore=new RegExp(`^rgb\\(${gf},${gf},${gf}\\)$`),Mre=new RegExp(`^rgb\\(${wa},${wa},${wa}\\)$`),kre=new RegExp(`^rgba\\(${gf},${gf},${gf},${zd}\\)$`),Rre=new RegExp(`^rgba\\(${wa},${wa},${wa},${zd}\\)$`),Pre=new RegExp(`^hsl\\(${zd},${wa},${wa}\\)$`),Ire=new RegExp(`^hsla\\(${zd},${wa},${wa},${zd}\\)$`),_M={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Yf(Su,Ud,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:SM,formatHex:SM,formatHex8:Fre,formatHsl:Nre,formatRgb:EM,toString:EM});function SM(){return this.rgb().formatHex()}function Fre(){return this.rgb().formatHex8()}function Nre(){return WN(this).formatHsl()}function EM(){return this.rgb().formatRgb()}function Ud(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Tre.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?AM(t):r===3?new bn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?k0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?k0(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=Ore.exec(e))?new bn(t[1],t[2],t[3],1):(t=Mre.exec(e))?new bn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=kre.exec(e))?k0(t[1],t[2],t[3],t[4]):(t=Rre.exec(e))?k0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Pre.exec(e))?OM(t[1],t[2]/100,t[3]/100,1):(t=Ire.exec(e))?OM(t[1],t[2]/100,t[3]/100,t[4]):_M.hasOwnProperty(e)?AM(_M[e]):e==="transparent"?new bn(NaN,NaN,NaN,0):null}function AM(e){return new bn(e>>16&255,e>>8&255,e&255,1)}function k0(e,t,r,n){return n<=0&&(e=t=r=NaN),new bn(e,t,r,n)}function RE(e){return e instanceof Su||(e=Ud(e)),e?(e=e.rgb(),new bn(e.r,e.g,e.b,e.opacity)):new bn}function ig(e,t,r,n){return arguments.length===1?RE(e):new bn(e,t,r,n??1)}function bn(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Yf(bn,ig,bp(Su,{brighter(e){return e=e==null?Lf:Math.pow(Lf,e),new bn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ol:Math.pow(Ol,e),new bn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bn(gl(this.r),gl(this.g),gl(this.b),ag(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:CM,formatHex:CM,formatHex8:Lre,formatRgb:TM,toString:TM}));function CM(){return`#${dl(this.r)}${dl(this.g)}${dl(this.b)}`}function Lre(){return`#${dl(this.r)}${dl(this.g)}${dl(this.b)}${dl((isNaN(this.opacity)?1:this.opacity)*255)}`}function TM(){const e=ag(this.opacity);return`${e===1?"rgb(":"rgba("}${gl(this.r)}, ${gl(this.g)}, ${gl(this.b)}${e===1?")":`, ${e})`}`}function ag(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function dl(e){return e=gl(e),(e<16?"0":"")+e.toString(16)}function OM(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Xi(e,t,r,n)}function WN(e){if(e instanceof Xi)return new Xi(e.h,e.s,e.l,e.opacity);if(e instanceof Su||(e=Ud(e)),!e)return new Xi;if(e instanceof Xi)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(r-n)/l+(r<n)*6:r===a?o=(n-t)/l+2:o=(t-r)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new Xi(o,l,s,e.opacity)}function l2(e,t,r,n){return arguments.length===1?WN(e):new Xi(e,t,r,n??1)}function Xi(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Yf(Xi,l2,bp(Su,{brighter(e){return e=e==null?Lf:Math.pow(Lf,e),new Xi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ol:Math.pow(Ol,e),new Xi(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new bn(rw(e>=240?e-240:e+120,i,n),rw(e,i,n),rw(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Xi(MM(this.h),R0(this.s),R0(this.l),ag(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=ag(this.opacity);return`${e===1?"hsl(":"hsla("}${MM(this.h)}, ${R0(this.s)*100}%, ${R0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function MM(e){return e=(e||0)%360,e<0?e+360:e}function R0(e){return Math.max(0,Math.min(1,e||0))}function rw(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const HN=Math.PI/180,qN=180/Math.PI,og=18,VN=.96422,YN=1,XN=.82521,KN=4/29,yf=6/29,QN=3*yf*yf,Dre=yf*yf*yf;function ZN(e){if(e instanceof _a)return new _a(e.l,e.a,e.b,e.opacity);if(e instanceof Za)return JN(e);e instanceof bn||(e=RE(e));var t=ow(e.r),r=ow(e.g),n=ow(e.b),i=nw((.2225045*t+.7168786*r+.0606169*n)/YN),a,o;return t===r&&r===n?a=o=i:(a=nw((.4360747*t+.3850649*r+.1430804*n)/VN),o=nw((.0139322*t+.0971045*r+.7141733*n)/XN)),new _a(116*i-16,500*(a-i),200*(i-o),e.opacity)}function s2(e,t,r,n){return arguments.length===1?ZN(e):new _a(e,t,r,n??1)}function _a(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}Yf(_a,s2,bp(Su,{brighter(e){return new _a(this.l+og*(e??1),this.a,this.b,this.opacity)},darker(e){return new _a(this.l-og*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=VN*iw(t),e=YN*iw(e),r=XN*iw(r),new bn(aw(3.1338561*t-1.6168667*e-.4906146*r),aw(-.9787684*t+1.9161415*e+.033454*r),aw(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function nw(e){return e>Dre?Math.pow(e,1/3):e/QN+KN}function iw(e){return e>yf?e*e*e:QN*(e-KN)}function aw(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ow(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function $re(e){if(e instanceof Za)return new Za(e.h,e.c,e.l,e.opacity);if(e instanceof _a||(e=ZN(e)),e.a===0&&e.b===0)return new Za(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*qN;return new Za(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function f2(e,t,r,n){return arguments.length===1?$re(e):new Za(e,t,r,n??1)}function Za(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function JN(e){if(isNaN(e.h))return new _a(e.l,0,0,e.opacity);var t=e.h*HN;return new _a(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Yf(Za,f2,bp(Su,{brighter(e){return new Za(this.h,this.c,this.l+og*(e??1),this.opacity)},darker(e){return new Za(this.h,this.c,this.l-og*(e??1),this.opacity)},rgb(){return JN(this).rgb()}}));var e6=-.14861,PE=1.78277,IE=-.29227,sy=-.90649,jd=1.97294,kM=jd*sy,RM=jd*PE,PM=PE*IE-sy*e6;function Bre(e){if(e instanceof yl)return new yl(e.h,e.s,e.l,e.opacity);e instanceof bn||(e=RE(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(PM*n+kM*t-RM*r)/(PM+kM-RM),a=n-i,o=(jd*(r-i)-IE*a)/sy,l=Math.sqrt(o*o+a*a)/(jd*i*(1-i)),s=l?Math.atan2(o,a)*qN-120:NaN;return new yl(s<0?s+360:s,l,i,e.opacity)}function c2(e,t,r,n){return arguments.length===1?Bre(e):new yl(e,t,r,n??1)}function yl(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Yf(yl,c2,bp(Su,{brighter(e){return e=e==null?Lf:Math.pow(Lf,e),new yl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ol:Math.pow(Ol,e),new yl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*HN,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new bn(255*(t+r*(e6*n+PE*i)),255*(t+r*(IE*n+sy*i)),255*(t+r*(jd*n)),this.opacity)}}));function t6(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}function r6(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,l=n<t-1?e[n+2]:2*a-i;return t6((r-n/t)*t,o,i,a,l)}}function n6(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],l=e[(n+2)%t];return t6((r-n/t)*t,i,a,o,l)}}const fy=e=>()=>e;function i6(e,t){return function(r){return e+r*t}}function zre(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function cy(e,t){var r=t-e;return r?i6(e,r>180||r<-180?r-360*Math.round(r/360):r):fy(isNaN(e)?t:e)}function Ure(e){return(e=+e)==1?xn:function(t,r){return r-t?zre(t,r,e):fy(isNaN(t)?r:t)}}function xn(e,t){var r=t-e;return r?i6(e,r):fy(isNaN(e)?t:e)}const h2=function e(t){var r=Ure(t);function n(i,a){var o=r((i=ig(i)).r,(a=ig(a)).r),l=r(i.g,a.g),s=r(i.b,a.b),f=xn(i.opacity,a.opacity);return function(d){return i.r=o(d),i.g=l(d),i.b=s(d),i.opacity=f(d),i+""}}return n.gamma=e,n}(1);function a6(e){return function(t){var r=t.length,n=new Array(r),i=new Array(r),a=new Array(r),o,l;for(o=0;o<r;++o)l=ig(t[o]),n[o]=l.r||0,i[o]=l.g||0,a[o]=l.b||0;return n=e(n),i=e(i),a=e(a),l.opacity=1,function(s){return l.r=n(s),l.g=i(s),l.b=a(s),l+""}}}var jre=a6(r6),Gre=a6(n6);function FE(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function o6(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Wre(e,t){return(o6(t)?FE:u6)(e,t)}function u6(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=hy(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(l){for(o=0;o<n;++o)a[o]=i[o](l);return a}}function l6(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function da(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function s6(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=hy(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var d2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,uw=new RegExp(d2.source,"g");function Hre(e){return function(){return e}}function qre(e){return function(t){return e(t)+""}}function f6(e,t){var r=d2.lastIndex=uw.lastIndex=0,n,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(n=d2.exec(e))&&(i=uw.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),l[o]?l[o]+=a:l[++o]=a),(n=n[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:da(n,i)})),r=uw.lastIndex;return r<t.length&&(a=t.slice(r),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?qre(s[0].x):Hre(t):(t=s.length,function(f){for(var d=0,g;d<t;++d)l[(g=s[d]).i]=g.x(f);return l.join("")})}function hy(e,t){var r=typeof t,n;return t==null||r==="boolean"?fy(t):(r==="number"?da:r==="string"?(n=Ud(t))?(t=n,h2):f6:t instanceof Ud?h2:t instanceof Date?l6:o6(t)?FE:Array.isArray(t)?u6:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?s6:da)(e,t)}function Vre(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function Yre(e,t){var r=cy(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function Xre(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var IM=180/Math.PI,p2={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function c6(e,t,r,n,i,a){var o,l,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*r+t*n)&&(r-=e*s,n-=t*s),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,s/=l),e*n<t*r&&(e=-e,t=-t,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*IM,skewX:Math.atan(s)*IM,scaleX:o,scaleY:l}}var P0;function Kre(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?p2:c6(t.a,t.b,t.c,t.d,t.e,t.f)}function Qre(e){return e==null||(P0||(P0=document.createElementNS("http://www.w3.org/2000/svg","g")),P0.setAttribute("transform",e),!(e=P0.transform.baseVal.consolidate()))?p2:(e=e.matrix,c6(e.a,e.b,e.c,e.d,e.e,e.f))}function h6(e,t,r,n){function i(f){return f.length?f.pop()+" ":""}function a(f,d,g,v,y,E){if(f!==g||d!==v){var M=y.push("translate(",null,t,null,r);E.push({i:M-4,x:da(f,g)},{i:M-2,x:da(d,v)})}else(g||v)&&y.push("translate("+g+t+v+r)}function o(f,d,g,v){f!==d?(f-d>180?d+=360:d-f>180&&(f+=360),v.push({i:g.push(i(g)+"rotate(",null,n)-2,x:da(f,d)})):d&&g.push(i(g)+"rotate("+d+n)}function l(f,d,g,v){f!==d?v.push({i:g.push(i(g)+"skewX(",null,n)-2,x:da(f,d)}):d&&g.push(i(g)+"skewX("+d+n)}function s(f,d,g,v,y,E){if(f!==g||d!==v){var M=y.push(i(y)+"scale(",null,",",null,")");E.push({i:M-4,x:da(f,g)},{i:M-2,x:da(d,v)})}else(g!==1||v!==1)&&y.push(i(y)+"scale("+g+","+v+")")}return function(f,d){var g=[],v=[];return f=e(f),d=e(d),a(f.translateX,f.translateY,d.translateX,d.translateY,g,v),o(f.rotate,d.rotate,g,v),l(f.skewX,d.skewX,g,v),s(f.scaleX,f.scaleY,d.scaleX,d.scaleY,g,v),f=d=null,function(y){for(var E=-1,M=v.length,x;++E<M;)g[(x=v[E]).i]=x.x(y);return g.join("")}}}var Zre=h6(Kre,"px, ","px)","deg)"),Jre=h6(Qre,", ",")",")"),ene=1e-12;function FM(e){return((e=Math.exp(e))+1/e)/2}function tne(e){return((e=Math.exp(e))-1/e)/2}function rne(e){return((e=Math.exp(2*e))-1)/(e+1)}const nne=function e(t,r,n){function i(a,o){var l=a[0],s=a[1],f=a[2],d=o[0],g=o[1],v=o[2],y=d-l,E=g-s,M=y*y+E*E,x,w;if(M<ene)w=Math.log(v/f)/t,x=function(V){return[l+V*y,s+V*E,f*Math.exp(t*V*w)]};else{var _=Math.sqrt(M),T=(v*v-f*f+n*M)/(2*f*r*_),C=(v*v-f*f-n*M)/(2*v*r*_),F=Math.log(Math.sqrt(T*T+1)-T),L=Math.log(Math.sqrt(C*C+1)-C);w=(L-F)/t,x=function(V){var j=V*w,te=FM(F),ge=f/(r*_)*(te*rne(t*j+F)-tne(F));return[l+ge*y,s+ge*E,f*te/FM(t*j+F)]}}return x.duration=w*1e3*t/Math.SQRT2,x}return i.rho=function(a){var o=Math.max(.001,+a),l=o*o,s=l*l;return e(o,l,s)},i}(Math.SQRT2,2,4);function d6(e){return function(t,r){var n=e((t=l2(t)).h,(r=l2(r)).h),i=xn(t.s,r.s),a=xn(t.l,r.l),o=xn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.s=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const ine=d6(cy);var ane=d6(xn);function one(e,t){var r=xn((e=s2(e)).l,(t=s2(t)).l),n=xn(e.a,t.a),i=xn(e.b,t.b),a=xn(e.opacity,t.opacity);return function(o){return e.l=r(o),e.a=n(o),e.b=i(o),e.opacity=a(o),e+""}}function p6(e){return function(t,r){var n=e((t=f2(t)).h,(r=f2(r)).h),i=xn(t.c,r.c),a=xn(t.l,r.l),o=xn(t.opacity,r.opacity);return function(l){return t.h=n(l),t.c=i(l),t.l=a(l),t.opacity=o(l),t+""}}}const une=p6(cy);var lne=p6(xn);function v6(e){return function t(r){r=+r;function n(i,a){var o=e((i=c2(i)).h,(a=c2(a)).h),l=xn(i.s,a.s),s=xn(i.l,a.l),f=xn(i.opacity,a.opacity);return function(d){return i.h=o(d),i.s=l(d),i.l=s(Math.pow(d,r)),i.opacity=f(d),i+""}}return n.gamma=t,n}(1)}const sne=v6(cy);var fne=v6(xn);function cne(e,t){t===void 0&&(t=e,e=hy);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[l](o-l)}}function hne(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const dne=Object.freeze(Object.defineProperty({__proto__:null,interpolate:hy,interpolateArray:Wre,interpolateBasis:r6,interpolateBasisClosed:n6,interpolateCubehelix:sne,interpolateCubehelixLong:fne,interpolateDate:l6,interpolateDiscrete:Vre,interpolateHcl:une,interpolateHclLong:lne,interpolateHsl:ine,interpolateHslLong:ane,interpolateHue:Yre,interpolateLab:one,interpolateNumber:da,interpolateNumberArray:FE,interpolateObject:s6,interpolateRgb:h2,interpolateRgbBasis:jre,interpolateRgbBasisClosed:Gre,interpolateRound:Xre,interpolateString:f6,interpolateTransformCss:Zre,interpolateTransformSvg:Jre,interpolateZoom:nne,piecewise:cne,quantize:hne},Symbol.toStringTag,{value:"Module"})),Aae=Rl(dne);var pne="Expected a function",m6="__lodash_hash_undefined__",g6=1/0,vne=9007199254740991,mne="[object Function]",gne="[object GeneratorFunction]",yne="[object Symbol]",bne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xne=/^\w*$/,wne=/^\./,_ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sne=/[\\^$.*+?()[\]{}|]/g,Ene=/\\(\\)?/g,Ane=/^\[object .+?Constructor\]$/,Cne=/^(?:0|[1-9]\d*)$/,Tne=typeof Jt=="object"&&Jt&&Jt.Object===Object&&Jt,One=typeof self=="object"&&self&&self.Object===Object&&self,NE=Tne||One||Function("return this")();function Mne(e,t){return e==null?void 0:e[t]}function kne(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Rne=Array.prototype,Pne=Function.prototype,y6=Object.prototype,lw=NE["__core-js_shared__"],NM=function(){var e=/[^.]+$/.exec(lw&&lw.keys&&lw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),b6=Pne.toString,dy=y6.hasOwnProperty,x6=y6.toString,Ine=RegExp("^"+b6.call(dy).replace(Sne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),LM=NE.Symbol,Fne=Rne.splice,Nne=w6(NE,"Map"),Gd=w6(Object,"create"),DM=LM?LM.prototype:void 0,$M=DM?DM.toString:void 0;function Ml(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Lne(){this.__data__=Gd?Gd(null):{}}function Dne(e){return this.has(e)&&delete this.__data__[e]}function $ne(e){var t=this.__data__;if(Gd){var r=t[e];return r===m6?void 0:r}return dy.call(t,e)?t[e]:void 0}function Bne(e){var t=this.__data__;return Gd?t[e]!==void 0:dy.call(t,e)}function zne(e,t){var r=this.__data__;return r[e]=Gd&&t===void 0?m6:t,this}Ml.prototype.clear=Lne;Ml.prototype.delete=Dne;Ml.prototype.get=$ne;Ml.prototype.has=Bne;Ml.prototype.set=zne;function Xf(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Une(){this.__data__=[]}function jne(e){var t=this.__data__,r=py(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Fne.call(t,r,1),!0}function Gne(e){var t=this.__data__,r=py(t,e);return r<0?void 0:t[r][1]}function Wne(e){return py(this.__data__,e)>-1}function Hne(e,t){var r=this.__data__,n=py(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Xf.prototype.clear=Une;Xf.prototype.delete=jne;Xf.prototype.get=Gne;Xf.prototype.has=Wne;Xf.prototype.set=Hne;function Wl(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function qne(){this.__data__={hash:new Ml,map:new(Nne||Xf),string:new Ml}}function Vne(e){return vy(this,e).delete(e)}function Yne(e){return vy(this,e).get(e)}function Xne(e){return vy(this,e).has(e)}function Kne(e,t){return vy(this,e).set(e,t),this}Wl.prototype.clear=qne;Wl.prototype.delete=Vne;Wl.prototype.get=Yne;Wl.prototype.has=Xne;Wl.prototype.set=Kne;function Qne(e,t,r){var n=e[t];(!(dy.call(e,t)&&_6(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function py(e,t){for(var r=e.length;r--;)if(_6(e[r][0],t))return r;return-1}function Zne(e){if(!ug(e)||aie(e))return!1;var t=sie(e)||kne(e)?Ine:Ane;return t.test(lie(e))}function Jne(e,t,r,n){if(!ug(e))return e;t=nie(t,e)?[t]:tie(t);for(var i=-1,a=t.length,o=a-1,l=e;l!=null&&++i<a;){var s=uie(t[i]),f=r;if(i!=o){var d=l[s];f=n?n(d,s,l):void 0,f===void 0&&(f=ug(d)?d:rie(t[i+1])?[]:{})}Qne(l,s,f),l=l[s]}return e}function eie(e){if(typeof e=="string")return e;if(DE(e))return $M?$M.call(e):"";var t=e+"";return t=="0"&&1/e==-g6?"-0":t}function tie(e){return S6(e)?e:oie(e)}function vy(e,t){var r=e.__data__;return iie(t)?r[typeof t=="string"?"string":"hash"]:r.map}function w6(e,t){var r=Mne(e,t);return Zne(r)?r:void 0}function rie(e,t){return t=t??vne,!!t&&(typeof e=="number"||Cne.test(e))&&e>-1&&e%1==0&&e<t}function nie(e,t){if(S6(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||DE(e)?!0:xne.test(e)||!bne.test(e)||t!=null&&e in Object(t)}function iie(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function aie(e){return!!NM&&NM in e}var oie=LE(function(e){e=cie(e);var t=[];return wne.test(e)&&t.push(""),e.replace(_ne,function(r,n,i,a){t.push(i?a.replace(Ene,"$1"):n||r)}),t});function uie(e){if(typeof e=="string"||DE(e))return e;var t=e+"";return t=="0"&&1/e==-g6?"-0":t}function lie(e){if(e!=null){try{return b6.call(e)}catch{}try{return e+""}catch{}}return""}function LE(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(pne);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o),o};return r.cache=new(LE.Cache||Wl),r}LE.Cache=Wl;function _6(e,t){return e===t||e!==e&&t!==t}var S6=Array.isArray;function sie(e){var t=ug(e)?x6.call(e):"";return t==mne||t==gne}function ug(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function fie(e){return!!e&&typeof e=="object"}function DE(e){return typeof e=="symbol"||fie(e)&&x6.call(e)==yne}function cie(e){return e==null?"":eie(e)}function hie(e,t,r){return e==null?e:Jne(e,t,r)}var die=hie;const Cae=mi(die);/*! js-cookie v3.0.5 | MIT */function I0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var pie={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function v2(e,t){function r(i,a,o){if(!(typeof document>"u")){o=I0({},t,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var s in o)o[s]&&(l+="; "+s,o[s]!==!0&&(l+="="+o[s].split(";")[0]));return document.cookie=i+"="+e.write(a,i)+l}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},l=0;l<a.length;l++){var s=a[l].split("="),f=s.slice(1).join("=");try{var d=decodeURIComponent(s[0]);if(o[d]=e.read(f,d),i===d)break}catch{}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,a){r(i,"",I0({},a,{expires:-1}))},withAttributes:function(i){return v2(this.converter,I0({},this.attributes,i))},withConverter:function(i){return v2(I0({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Tae=v2(pie,{path:"/"});var xp={},my={},E6={};(function(e){e.__esModule=!0;var t=function(r){var n={};return function(i){return i in n||(n[i]=r(i)),n[i]}};e.default=t})(E6);var A6={},kl={};kl.__esModule=!0;kl.InternalServerError=kl.OK=void 0;kl.OK=200;kl.InternalServerError=500;(function(e){var t=Jt&&Jt.__spreadArray||function(l,s,f){if(f||arguments.length===2)for(var d=0,g=s.length,v;d<g;d++)(v||!(d in s))&&(v||(v=Array.prototype.slice.call(s,0,d)),v[d]=s[d]);return l.concat(v||Array.prototype.slice.call(s))};e.__esModule=!0;var r=V_,n=V_,i=kl,a=function(l){for(var s=[],f=1;f<arguments.length;f++)s[f-1]=arguments[f];return typeof l!="string"?{on:function(d,g){g(new Error("URL must be a string."))}}:l.indexOf("https://")===0?n.get.apply(n,t([l],s,!1)):r.get.apply(r,t([l],s,!1))},o=function(l){return new Promise(function(s,f){a(l,function(d){if(d.statusCode!==i.OK)return f(new Error("HTTP Error Response: "+d.statusCode+" "+d.statusMessage+" ("+l+")"));var g=null;d.on("data",function(v){if(g===null){g=v;return}g+=v}),d.on("end",function(){return s(g)})}).on("error",f)})};e.default=o})(A6);var C6={},nu={};nu.__esModule=!0;nu.DONE=nu.OPENED=nu.UNSENT=void 0;nu.UNSENT=0;nu.OPENED=1;nu.DONE=4;(function(e){e.__esModule=!0;var t=kl,r=nu,n=function(i){return new Promise(function(a,o){var l=new XMLHttpRequest;l.onreadystatechange=function(){l.readyState===r.DONE&&(l.status===t.OK?a(l.responseText):o(new Error("HTTP Error Response: "+l.status+" "+l.statusText+" ("+i+")")))},l.open("GET",i,!0),l.send()})};e.default=n})(C6);my.__esModule=!0;my.createLoadRemoteModule=void 0;var vie=E6,mie=A6,gie=C6,yie=typeof window<"u"&&typeof window.document<"u",bie=yie?gie.default:mie.default,xie=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},wie=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,i=r||xie,a=n||bie;return(0,vie.default)(function(o){return a(o).then(function(l){var s={},f={exports:s},d=new Function("require","module","exports",l);return d(i,f,s),f.exports})})};my.createLoadRemoteModule=wie;var gy={};gy.__esModule=!0;gy.createRequires=void 0;var _ie=function(e){return function(t){var r=e||{};if(!(t in r))throw new Error("Could not require '"+t+"'. '"+t+"' does not exist in dependencies.");return r[t]}};gy.createRequires=_ie;(function(e){var t=Jt&&Jt.__createBinding||(Object.create?function(i,a,o,l){l===void 0&&(l=o),Object.defineProperty(i,l,{enumerable:!0,get:function(){return a[o]}})}:function(i,a,o,l){l===void 0&&(l=o),i[l]=a[o]});e.__esModule=!0,e.createRequires=e.default=void 0;var r=my;t(e,r,"createLoadRemoteModule","default");var n=gy;t(e,n,"createRequires")})(xp);const Oae=mi(xp);var Sie={},wp={},Eie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};wp.__esModule=!0;wp.createUseRemoteComponent=void 0;var BM=Gt,Aie=Eie(xp),Cie=function(e){var t=Aie.default(e),r=function(n,i){i===void 0&&(i="default");var a=BM.useState({loading:!0,err:void 0,component:void 0}),o=a[0],l=o.loading,s=o.err,f=o.component,d=a[1];return BM.useEffect(function(){var g=d;return g({loading:!0,err:void 0,component:void 0}),t(n).then(function(v){return g({loading:!1,err:void 0,component:v[i]})}).catch(function(v){return g({loading:!1,err:v,component:void 0})}),function(){g=function(){}}},[n]),[l,s,f]};return r};wp.createUseRemoteComponent=Cie;var _p={};_p.__esModule=!0;_p.createRequires=void 0;var Tie=function(e){return typeof e=="function"?e():e||{}},Oie=function(e){var t=!1;return function(r){if(t||(e=Tie(e),t=!0),!(r in e))throw new Error("Could not require '"+r+"'. '"+r+"' does not exist in dependencies.");return e[r]}};_p.createRequires=Oie;var $E={};(function(e){var t=Jt&&Jt.__assign||function(){return t=Object.assign||function(o){for(var l,s=1,f=arguments.length;s<f;s++){l=arguments[s];for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(o[d]=l[d])}return o},t.apply(this,arguments)};e.__esModule=!0,e.getDependencies=e.ensureRemoteComponentConfig=void 0;var r=function(o){return o&&typeof o.message=="string"&&o.message.indexOf("Cannot find module")>-1},n=function(o){return typeof o=="object"&&"remote-component.config.js"in o},i=function(o){var l=o.resolve;if(n(l))return l;var s=t({},l);return s["remote-component.config.js"]={resolve:s},s};e.ensureRemoteComponentConfig=i;var a=function(){try{return e.ensureRemoteComponentConfig(require("remote-component.config.js"))}catch(o){if(!r(o))throw o;return{}}};e.getDependencies=a})($E);var Sp={},m2=Jt&&Jt.__assign||function(){return m2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},m2.apply(this,arguments)},Mie=Jt&&Jt.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},kie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Sp.__esModule=!0;Sp.createRemoteComponent=void 0;var zM=kie(Gt),Rie=wp,Pie=function(e){var t=Rie.createUseRemoteComponent(e),r=function(n){var i=n.url,a=n.fallback,o=a===void 0?null:a,l=n.render,s=Mie(n,["url","fallback","render"]),f=t(i),d=f[0],g=f[1],v=f[2];return d?o:l?l({err:g,Component:v}):g||!v?zM.default.createElement("div",null,"Unknown Error: ",(g||"UNKNOWN").toString()):zM.default.createElement(v,m2({},s))};return r};Sp.createRemoteComponent=Pie;var yy={};yy.__esModule=!0;yy.RemoteComponent=void 0;var Iie=Sp,Fie=_p,Nie=$E,Lie=Fie.createRequires(Nie.getDependencies);yy.RemoteComponent=Iie.createRemoteComponent({requires:Lie});var by={},Die=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};by.__esModule=!0;by.fetchRemoteComponent=void 0;var $ie=Die(xp),Bie=function(e){var t=e.requires,r=e.fetcher,n=e.url,i=e.imports,a=i===void 0?"default":i,o=$ie.default({requires:t,fetcher:r});return o(n).then(function(l){var s=l&&l[a];if(!s)throw new Error("Could not load '"+a+"' from '"+n+"'.");return s})};by.fetchRemoteComponent=Bie;var xy={},zie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};xy.__esModule=!0;xy.getServerSideProps=void 0;var Uie=zie(xp),jie=function(e){var t=e.url,r=e.requires,n=e.context,i=e.imports,a=i===void 0?"default":i,o=Uie.default({requires:r});return o(t).then(function(l){var s=l&&l[a]&&l[a].getServerSideProps;return typeof s=="function"?s(n):{}})};xy.getServerSideProps=jie;(function(e){var t=Jt&&Jt.__createBinding||(Object.create?function(f,d,g,v){v===void 0&&(v=g),Object.defineProperty(f,v,{enumerable:!0,get:function(){return d[g]}})}:function(f,d,g,v){v===void 0&&(v=g),f[v]=d[g]});e.__esModule=!0,e.getServerSideProps=e.fetchRemoteComponent=e.RemoteComponent=e.createRemoteComponent=e.getDependencies=e.createRequires=e.createUseRemoteComponent=void 0;var r=wp;t(e,r,"createUseRemoteComponent");var n=_p;t(e,n,"createRequires");var i=$E;t(e,i,"getDependencies");var a=Sp;t(e,a,"createRemoteComponent");var o=yy;t(e,o,"RemoteComponent");var l=by;t(e,l,"fetchRemoteComponent");var s=xy;t(e,s,"getServerSideProps")})(Sie);export{nae as $,Eae as A,Aae as B,Wie as C,Yie as D,qie as E,Fg as F,wr as G,Cae as H,iae as I,tn as J,Vie as K,Hie as L,dr as M,TS as N,Kie as O,Xie as P,FG as Q,$h as R,eae as S,Jie as T,wG as U,tae as V,rae as W,Tae as X,Qie as Y,Zie as Z,xp as _,oae as a,Oae as a0,Sie as a1,uae as b,DF as c,aae as d,dae as e,lae as f,fae as g,hae as h,cae as i,vae as j,mae as k,UK as l,pae as m,gae as n,yae as o,BL as p,ey as q,Gt as r,bae as s,sae as t,iZ as u,Uee as v,xae as w,wae as x,_ae as y,Sae as z};
1175
+ //# sourceMappingURL=vendor-b4933991.js.map