@deephaven/embed-chart 0.39.1-beta.9 → 0.39.1-chart-refactor.14

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,1175 +0,0 @@
1
- import{g as mi,c as Jt,a as Rl}from"./helpers-042e6b4d.js";var Gk={exports:{}},Hd={};/*
2
- object-assign
3
- (c) Sindre Sorhus
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
6
- * react.production.min.js
7
- *
8
- * Copyright (c) Facebook, Inc. and its affiliates.
9
- *
10
- * This source code is licensed under the MIT license found in the
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
13
- * react-jsx-runtime.production.min.js
14
- *
15
- * Copyright (c) Facebook, Inc. and its affiliates.
16
- *
17
- * This source code is licensed under the MIT license found in the
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
20
- * scheduler.production.min.js
21
- *
22
- * Copyright (c) Facebook, Inc. and its affiliates.
23
- *
24
- * This source code is licensed under the MIT license found in the
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
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
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(`
35
- `),a=n.stack.split(`
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=`
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.
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:{}};/*!
43
- Copyright (c) 2018 Jed Watson.
44
- Licensed under the MIT License (MIT), see
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}/**!
47
- * @fileOverview Kickass library to create and place poppers near their reference elements.
48
- * @version 1.16.1
49
- * @license
50
- * Copyright (c) 2016 Federico Zivolo and contributors
51
- *
52
- * Permission is hereby granted, free of charge, to any person obtaining a copy
53
- * of this software and associated documentation files (the "Software"), to deal
54
- * in the Software without restriction, including without limitation the rights
55
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
56
- * copies of the Software, and to permit persons to whom the Software is
57
- * furnished to do so, subject to the following conditions:
58
- *
59
- * The above copyright notice and this permission notice shall be included in all
60
- * copies or substantial portions of the Software.
61
- *
62
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
63
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
64
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
65
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
66
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
67
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
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 {
73
- --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
74
- --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
75
- --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
76
- --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
77
- --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
78
- --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
79
- --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
80
- }
81
-
82
- svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
83
- overflow: visible;
84
- box-sizing: content-box;
85
- }
86
-
87
- .svg-inline--fa {
88
- display: var(--fa-display, inline-block);
89
- height: 1em;
90
- overflow: visible;
91
- vertical-align: -0.125em;
92
- }
93
- .svg-inline--fa.fa-2xs {
94
- vertical-align: 0.1em;
95
- }
96
- .svg-inline--fa.fa-xs {
97
- vertical-align: 0em;
98
- }
99
- .svg-inline--fa.fa-sm {
100
- vertical-align: -0.0714285705em;
101
- }
102
- .svg-inline--fa.fa-lg {
103
- vertical-align: -0.2em;
104
- }
105
- .svg-inline--fa.fa-xl {
106
- vertical-align: -0.25em;
107
- }
108
- .svg-inline--fa.fa-2xl {
109
- vertical-align: -0.3125em;
110
- }
111
- .svg-inline--fa.fa-pull-left {
112
- margin-right: var(--fa-pull-margin, 0.3em);
113
- width: auto;
114
- }
115
- .svg-inline--fa.fa-pull-right {
116
- margin-left: var(--fa-pull-margin, 0.3em);
117
- width: auto;
118
- }
119
- .svg-inline--fa.fa-li {
120
- width: var(--fa-li-width, 2em);
121
- top: 0.25em;
122
- }
123
- .svg-inline--fa.fa-fw {
124
- width: var(--fa-fw-width, 1.25em);
125
- }
126
-
127
- .fa-layers svg.svg-inline--fa {
128
- bottom: 0;
129
- left: 0;
130
- margin: auto;
131
- position: absolute;
132
- right: 0;
133
- top: 0;
134
- }
135
-
136
- .fa-layers-counter, .fa-layers-text {
137
- display: inline-block;
138
- position: absolute;
139
- text-align: center;
140
- }
141
-
142
- .fa-layers {
143
- display: inline-block;
144
- height: 1em;
145
- position: relative;
146
- text-align: center;
147
- vertical-align: -0.125em;
148
- width: 1em;
149
- }
150
- .fa-layers svg.svg-inline--fa {
151
- -webkit-transform-origin: center center;
152
- transform-origin: center center;
153
- }
154
-
155
- .fa-layers-text {
156
- left: 50%;
157
- top: 50%;
158
- -webkit-transform: translate(-50%, -50%);
159
- transform: translate(-50%, -50%);
160
- -webkit-transform-origin: center center;
161
- transform-origin: center center;
162
- }
163
-
164
- .fa-layers-counter {
165
- background-color: var(--fa-counter-background-color, #ff253a);
166
- border-radius: var(--fa-counter-border-radius, 1em);
167
- box-sizing: border-box;
168
- color: var(--fa-inverse, #fff);
169
- line-height: var(--fa-counter-line-height, 1);
170
- max-width: var(--fa-counter-max-width, 5em);
171
- min-width: var(--fa-counter-min-width, 1.5em);
172
- overflow: hidden;
173
- padding: var(--fa-counter-padding, 0.25em 0.5em);
174
- right: var(--fa-right, 0);
175
- text-overflow: ellipsis;
176
- top: var(--fa-top, 0);
177
- -webkit-transform: scale(var(--fa-counter-scale, 0.25));
178
- transform: scale(var(--fa-counter-scale, 0.25));
179
- -webkit-transform-origin: top right;
180
- transform-origin: top right;
181
- }
182
-
183
- .fa-layers-bottom-right {
184
- bottom: var(--fa-bottom, 0);
185
- right: var(--fa-right, 0);
186
- top: auto;
187
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
188
- transform: scale(var(--fa-layers-scale, 0.25));
189
- -webkit-transform-origin: bottom right;
190
- transform-origin: bottom right;
191
- }
192
-
193
- .fa-layers-bottom-left {
194
- bottom: var(--fa-bottom, 0);
195
- left: var(--fa-left, 0);
196
- right: auto;
197
- top: auto;
198
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
199
- transform: scale(var(--fa-layers-scale, 0.25));
200
- -webkit-transform-origin: bottom left;
201
- transform-origin: bottom left;
202
- }
203
-
204
- .fa-layers-top-right {
205
- top: var(--fa-top, 0);
206
- right: var(--fa-right, 0);
207
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
208
- transform: scale(var(--fa-layers-scale, 0.25));
209
- -webkit-transform-origin: top right;
210
- transform-origin: top right;
211
- }
212
-
213
- .fa-layers-top-left {
214
- left: var(--fa-left, 0);
215
- right: auto;
216
- top: var(--fa-top, 0);
217
- -webkit-transform: scale(var(--fa-layers-scale, 0.25));
218
- transform: scale(var(--fa-layers-scale, 0.25));
219
- -webkit-transform-origin: top left;
220
- transform-origin: top left;
221
- }
222
-
223
- .fa-1x {
224
- font-size: 1em;
225
- }
226
-
227
- .fa-2x {
228
- font-size: 2em;
229
- }
230
-
231
- .fa-3x {
232
- font-size: 3em;
233
- }
234
-
235
- .fa-4x {
236
- font-size: 4em;
237
- }
238
-
239
- .fa-5x {
240
- font-size: 5em;
241
- }
242
-
243
- .fa-6x {
244
- font-size: 6em;
245
- }
246
-
247
- .fa-7x {
248
- font-size: 7em;
249
- }
250
-
251
- .fa-8x {
252
- font-size: 8em;
253
- }
254
-
255
- .fa-9x {
256
- font-size: 9em;
257
- }
258
-
259
- .fa-10x {
260
- font-size: 10em;
261
- }
262
-
263
- .fa-2xs {
264
- font-size: 0.625em;
265
- line-height: 0.1em;
266
- vertical-align: 0.225em;
267
- }
268
-
269
- .fa-xs {
270
- font-size: 0.75em;
271
- line-height: 0.0833333337em;
272
- vertical-align: 0.125em;
273
- }
274
-
275
- .fa-sm {
276
- font-size: 0.875em;
277
- line-height: 0.0714285718em;
278
- vertical-align: 0.0535714295em;
279
- }
280
-
281
- .fa-lg {
282
- font-size: 1.25em;
283
- line-height: 0.05em;
284
- vertical-align: -0.075em;
285
- }
286
-
287
- .fa-xl {
288
- font-size: 1.5em;
289
- line-height: 0.0416666682em;
290
- vertical-align: -0.125em;
291
- }
292
-
293
- .fa-2xl {
294
- font-size: 2em;
295
- line-height: 0.03125em;
296
- vertical-align: -0.1875em;
297
- }
298
-
299
- .fa-fw {
300
- text-align: center;
301
- width: 1.25em;
302
- }
303
-
304
- .fa-ul {
305
- list-style-type: none;
306
- margin-left: var(--fa-li-margin, 2.5em);
307
- padding-left: 0;
308
- }
309
- .fa-ul > li {
310
- position: relative;
311
- }
312
-
313
- .fa-li {
314
- left: calc(var(--fa-li-width, 2em) * -1);
315
- position: absolute;
316
- text-align: center;
317
- width: var(--fa-li-width, 2em);
318
- line-height: inherit;
319
- }
320
-
321
- .fa-border {
322
- border-color: var(--fa-border-color, #eee);
323
- border-radius: var(--fa-border-radius, 0.1em);
324
- border-style: var(--fa-border-style, solid);
325
- border-width: var(--fa-border-width, 0.08em);
326
- padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
327
- }
328
-
329
- .fa-pull-left {
330
- float: left;
331
- margin-right: var(--fa-pull-margin, 0.3em);
332
- }
333
-
334
- .fa-pull-right {
335
- float: right;
336
- margin-left: var(--fa-pull-margin, 0.3em);
337
- }
338
-
339
- .fa-beat {
340
- -webkit-animation-name: fa-beat;
341
- animation-name: fa-beat;
342
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
343
- animation-delay: var(--fa-animation-delay, 0s);
344
- -webkit-animation-direction: var(--fa-animation-direction, normal);
345
- animation-direction: var(--fa-animation-direction, normal);
346
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
347
- animation-duration: var(--fa-animation-duration, 1s);
348
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
349
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
350
- -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
351
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
352
- }
353
-
354
- .fa-bounce {
355
- -webkit-animation-name: fa-bounce;
356
- animation-name: fa-bounce;
357
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
358
- animation-delay: var(--fa-animation-delay, 0s);
359
- -webkit-animation-direction: var(--fa-animation-direction, normal);
360
- animation-direction: var(--fa-animation-direction, normal);
361
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
362
- animation-duration: var(--fa-animation-duration, 1s);
363
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
364
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
365
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
366
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
367
- }
368
-
369
- .fa-fade {
370
- -webkit-animation-name: fa-fade;
371
- animation-name: fa-fade;
372
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
373
- animation-delay: var(--fa-animation-delay, 0s);
374
- -webkit-animation-direction: var(--fa-animation-direction, normal);
375
- animation-direction: var(--fa-animation-direction, normal);
376
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
377
- animation-duration: var(--fa-animation-duration, 1s);
378
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
379
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
380
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
381
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
382
- }
383
-
384
- .fa-beat-fade {
385
- -webkit-animation-name: fa-beat-fade;
386
- animation-name: fa-beat-fade;
387
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
388
- animation-delay: var(--fa-animation-delay, 0s);
389
- -webkit-animation-direction: var(--fa-animation-direction, normal);
390
- animation-direction: var(--fa-animation-direction, normal);
391
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
392
- animation-duration: var(--fa-animation-duration, 1s);
393
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
394
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
395
- -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
396
- animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
397
- }
398
-
399
- .fa-flip {
400
- -webkit-animation-name: fa-flip;
401
- animation-name: fa-flip;
402
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
403
- animation-delay: var(--fa-animation-delay, 0s);
404
- -webkit-animation-direction: var(--fa-animation-direction, normal);
405
- animation-direction: var(--fa-animation-direction, normal);
406
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
407
- animation-duration: var(--fa-animation-duration, 1s);
408
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
409
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
410
- -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
411
- animation-timing-function: var(--fa-animation-timing, ease-in-out);
412
- }
413
-
414
- .fa-shake {
415
- -webkit-animation-name: fa-shake;
416
- animation-name: fa-shake;
417
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
418
- animation-delay: var(--fa-animation-delay, 0s);
419
- -webkit-animation-direction: var(--fa-animation-direction, normal);
420
- animation-direction: var(--fa-animation-direction, normal);
421
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
422
- animation-duration: var(--fa-animation-duration, 1s);
423
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
424
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
425
- -webkit-animation-timing-function: var(--fa-animation-timing, linear);
426
- animation-timing-function: var(--fa-animation-timing, linear);
427
- }
428
-
429
- .fa-spin {
430
- -webkit-animation-name: fa-spin;
431
- animation-name: fa-spin;
432
- -webkit-animation-delay: var(--fa-animation-delay, 0s);
433
- animation-delay: var(--fa-animation-delay, 0s);
434
- -webkit-animation-direction: var(--fa-animation-direction, normal);
435
- animation-direction: var(--fa-animation-direction, normal);
436
- -webkit-animation-duration: var(--fa-animation-duration, 2s);
437
- animation-duration: var(--fa-animation-duration, 2s);
438
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
439
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
440
- -webkit-animation-timing-function: var(--fa-animation-timing, linear);
441
- animation-timing-function: var(--fa-animation-timing, linear);
442
- }
443
-
444
- .fa-spin-reverse {
445
- --fa-animation-direction: reverse;
446
- }
447
-
448
- .fa-pulse,
449
- .fa-spin-pulse {
450
- -webkit-animation-name: fa-spin;
451
- animation-name: fa-spin;
452
- -webkit-animation-direction: var(--fa-animation-direction, normal);
453
- animation-direction: var(--fa-animation-direction, normal);
454
- -webkit-animation-duration: var(--fa-animation-duration, 1s);
455
- animation-duration: var(--fa-animation-duration, 1s);
456
- -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
457
- animation-iteration-count: var(--fa-animation-iteration-count, infinite);
458
- -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
459
- animation-timing-function: var(--fa-animation-timing, steps(8));
460
- }
461
-
462
- @media (prefers-reduced-motion: reduce) {
463
- .fa-beat,
464
- .fa-bounce,
465
- .fa-fade,
466
- .fa-beat-fade,
467
- .fa-flip,
468
- .fa-pulse,
469
- .fa-shake,
470
- .fa-spin,
471
- .fa-spin-pulse {
472
- -webkit-animation-delay: -1ms;
473
- animation-delay: -1ms;
474
- -webkit-animation-duration: 1ms;
475
- animation-duration: 1ms;
476
- -webkit-animation-iteration-count: 1;
477
- animation-iteration-count: 1;
478
- transition-delay: 0s;
479
- transition-duration: 0s;
480
- }
481
- }
482
- @-webkit-keyframes fa-beat {
483
- 0%, 90% {
484
- -webkit-transform: scale(1);
485
- transform: scale(1);
486
- }
487
- 45% {
488
- -webkit-transform: scale(var(--fa-beat-scale, 1.25));
489
- transform: scale(var(--fa-beat-scale, 1.25));
490
- }
491
- }
492
- @keyframes fa-beat {
493
- 0%, 90% {
494
- -webkit-transform: scale(1);
495
- transform: scale(1);
496
- }
497
- 45% {
498
- -webkit-transform: scale(var(--fa-beat-scale, 1.25));
499
- transform: scale(var(--fa-beat-scale, 1.25));
500
- }
501
- }
502
- @-webkit-keyframes fa-bounce {
503
- 0% {
504
- -webkit-transform: scale(1, 1) translateY(0);
505
- transform: scale(1, 1) translateY(0);
506
- }
507
- 10% {
508
- -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
509
- transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
510
- }
511
- 30% {
512
- -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
513
- transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
514
- }
515
- 50% {
516
- -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
517
- transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
518
- }
519
- 57% {
520
- -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
521
- transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
522
- }
523
- 64% {
524
- -webkit-transform: scale(1, 1) translateY(0);
525
- transform: scale(1, 1) translateY(0);
526
- }
527
- 100% {
528
- -webkit-transform: scale(1, 1) translateY(0);
529
- transform: scale(1, 1) translateY(0);
530
- }
531
- }
532
- @keyframes fa-bounce {
533
- 0% {
534
- -webkit-transform: scale(1, 1) translateY(0);
535
- transform: scale(1, 1) translateY(0);
536
- }
537
- 10% {
538
- -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
539
- transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
540
- }
541
- 30% {
542
- -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
543
- transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
544
- }
545
- 50% {
546
- -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
547
- transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
548
- }
549
- 57% {
550
- -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
551
- transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
552
- }
553
- 64% {
554
- -webkit-transform: scale(1, 1) translateY(0);
555
- transform: scale(1, 1) translateY(0);
556
- }
557
- 100% {
558
- -webkit-transform: scale(1, 1) translateY(0);
559
- transform: scale(1, 1) translateY(0);
560
- }
561
- }
562
- @-webkit-keyframes fa-fade {
563
- 50% {
564
- opacity: var(--fa-fade-opacity, 0.4);
565
- }
566
- }
567
- @keyframes fa-fade {
568
- 50% {
569
- opacity: var(--fa-fade-opacity, 0.4);
570
- }
571
- }
572
- @-webkit-keyframes fa-beat-fade {
573
- 0%, 100% {
574
- opacity: var(--fa-beat-fade-opacity, 0.4);
575
- -webkit-transform: scale(1);
576
- transform: scale(1);
577
- }
578
- 50% {
579
- opacity: 1;
580
- -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
581
- transform: scale(var(--fa-beat-fade-scale, 1.125));
582
- }
583
- }
584
- @keyframes fa-beat-fade {
585
- 0%, 100% {
586
- opacity: var(--fa-beat-fade-opacity, 0.4);
587
- -webkit-transform: scale(1);
588
- transform: scale(1);
589
- }
590
- 50% {
591
- opacity: 1;
592
- -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
593
- transform: scale(var(--fa-beat-fade-scale, 1.125));
594
- }
595
- }
596
- @-webkit-keyframes fa-flip {
597
- 50% {
598
- -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
599
- transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
600
- }
601
- }
602
- @keyframes fa-flip {
603
- 50% {
604
- -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
605
- transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
606
- }
607
- }
608
- @-webkit-keyframes fa-shake {
609
- 0% {
610
- -webkit-transform: rotate(-15deg);
611
- transform: rotate(-15deg);
612
- }
613
- 4% {
614
- -webkit-transform: rotate(15deg);
615
- transform: rotate(15deg);
616
- }
617
- 8%, 24% {
618
- -webkit-transform: rotate(-18deg);
619
- transform: rotate(-18deg);
620
- }
621
- 12%, 28% {
622
- -webkit-transform: rotate(18deg);
623
- transform: rotate(18deg);
624
- }
625
- 16% {
626
- -webkit-transform: rotate(-22deg);
627
- transform: rotate(-22deg);
628
- }
629
- 20% {
630
- -webkit-transform: rotate(22deg);
631
- transform: rotate(22deg);
632
- }
633
- 32% {
634
- -webkit-transform: rotate(-12deg);
635
- transform: rotate(-12deg);
636
- }
637
- 36% {
638
- -webkit-transform: rotate(12deg);
639
- transform: rotate(12deg);
640
- }
641
- 40%, 100% {
642
- -webkit-transform: rotate(0deg);
643
- transform: rotate(0deg);
644
- }
645
- }
646
- @keyframes fa-shake {
647
- 0% {
648
- -webkit-transform: rotate(-15deg);
649
- transform: rotate(-15deg);
650
- }
651
- 4% {
652
- -webkit-transform: rotate(15deg);
653
- transform: rotate(15deg);
654
- }
655
- 8%, 24% {
656
- -webkit-transform: rotate(-18deg);
657
- transform: rotate(-18deg);
658
- }
659
- 12%, 28% {
660
- -webkit-transform: rotate(18deg);
661
- transform: rotate(18deg);
662
- }
663
- 16% {
664
- -webkit-transform: rotate(-22deg);
665
- transform: rotate(-22deg);
666
- }
667
- 20% {
668
- -webkit-transform: rotate(22deg);
669
- transform: rotate(22deg);
670
- }
671
- 32% {
672
- -webkit-transform: rotate(-12deg);
673
- transform: rotate(-12deg);
674
- }
675
- 36% {
676
- -webkit-transform: rotate(12deg);
677
- transform: rotate(12deg);
678
- }
679
- 40%, 100% {
680
- -webkit-transform: rotate(0deg);
681
- transform: rotate(0deg);
682
- }
683
- }
684
- @-webkit-keyframes fa-spin {
685
- 0% {
686
- -webkit-transform: rotate(0deg);
687
- transform: rotate(0deg);
688
- }
689
- 100% {
690
- -webkit-transform: rotate(360deg);
691
- transform: rotate(360deg);
692
- }
693
- }
694
- @keyframes fa-spin {
695
- 0% {
696
- -webkit-transform: rotate(0deg);
697
- transform: rotate(0deg);
698
- }
699
- 100% {
700
- -webkit-transform: rotate(360deg);
701
- transform: rotate(360deg);
702
- }
703
- }
704
- .fa-rotate-90 {
705
- -webkit-transform: rotate(90deg);
706
- transform: rotate(90deg);
707
- }
708
-
709
- .fa-rotate-180 {
710
- -webkit-transform: rotate(180deg);
711
- transform: rotate(180deg);
712
- }
713
-
714
- .fa-rotate-270 {
715
- -webkit-transform: rotate(270deg);
716
- transform: rotate(270deg);
717
- }
718
-
719
- .fa-flip-horizontal {
720
- -webkit-transform: scale(-1, 1);
721
- transform: scale(-1, 1);
722
- }
723
-
724
- .fa-flip-vertical {
725
- -webkit-transform: scale(1, -1);
726
- transform: scale(1, -1);
727
- }
728
-
729
- .fa-flip-both,
730
- .fa-flip-horizontal.fa-flip-vertical {
731
- -webkit-transform: scale(-1, -1);
732
- transform: scale(-1, -1);
733
- }
734
-
735
- .fa-rotate-by {
736
- -webkit-transform: rotate(var(--fa-rotate-angle, none));
737
- transform: rotate(var(--fa-rotate-angle, none));
738
- }
739
-
740
- .fa-stack {
741
- display: inline-block;
742
- vertical-align: middle;
743
- height: 2em;
744
- position: relative;
745
- width: 2.5em;
746
- }
747
-
748
- .fa-stack-1x,
749
- .fa-stack-2x {
750
- bottom: 0;
751
- left: 0;
752
- margin: auto;
753
- position: absolute;
754
- right: 0;
755
- top: 0;
756
- z-index: var(--fa-stack-z-index, auto);
757
- }
758
-
759
- .svg-inline--fa.fa-stack-1x {
760
- height: 1em;
761
- width: 1.25em;
762
- }
763
- .svg-inline--fa.fa-stack-2x {
764
- height: 2em;
765
- width: 2.5em;
766
- }
767
-
768
- .fa-inverse {
769
- color: var(--fa-inverse, #fff);
770
- }
771
-
772
- .sr-only,
773
- .fa-sr-only {
774
- position: absolute;
775
- width: 1px;
776
- height: 1px;
777
- padding: 0;
778
- margin: -1px;
779
- overflow: hidden;
780
- clip: rect(0, 0, 0, 0);
781
- white-space: nowrap;
782
- border-width: 0;
783
- }
784
-
785
- .sr-only-focusable:not(:focus),
786
- .fa-sr-only-focusable:not(:focus) {
787
- position: absolute;
788
- width: 1px;
789
- height: 1px;
790
- padding: 0;
791
- margin: -1px;
792
- overflow: hidden;
793
- clip: rect(0, 0, 0, 0);
794
- white-space: nowrap;
795
- border-width: 0;
796
- }
797
-
798
- .svg-inline--fa .fa-primary {
799
- fill: var(--fa-primary-color, currentColor);
800
- opacity: var(--fa-primary-opacity, 1);
801
- }
802
-
803
- .svg-inline--fa .fa-secondary {
804
- fill: var(--fa-secondary-color, currentColor);
805
- opacity: var(--fa-secondary-opacity, 0.4);
806
- }
807
-
808
- .svg-inline--fa.fa-swap-opacity .fa-primary {
809
- opacity: var(--fa-secondary-opacity, 0.4);
810
- }
811
-
812
- .svg-inline--fa.fa-swap-opacity .fa-secondary {
813
- opacity: var(--fa-primary-opacity, 1);
814
- }
815
-
816
- .svg-inline--fa mask .fa-primary,
817
- .svg-inline--fa mask .fa-secondary {
818
- fill: black;
819
- }
820
-
821
- .fad.fa-inverse,
822
- .fa-duotone.fa-inverse {
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
828
- * react-is.production.min.js
829
- *
830
- * Copyright (c) Facebook, Inc. and its affiliates.
831
- *
832
- * This source code is licensed under the MIT license found in the
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
835
- * react-is.production.min.js
836
- *
837
- * Copyright (c) Facebook, Inc. and its affiliates.
838
- *
839
- * This source code is licensed under the MIT license found in the
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+=`
842
- The error may be correlated with this previous error:
843
- `+l.current.stack+`
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=`
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
849
- v0.8.1 (c) Kyle Simpson
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+`
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
- `)},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;/*
855
- * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
856
- * @license MIT
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;
861
- #define GLSLIFY 1
862
-
863
- uniform float opacity;
864
- uniform sampler2D markerTexture;
865
-
866
- varying vec4 fragColor, fragBorderColor;
867
- varying float fragWidth, fragBorderColorLevel, fragColorLevel;
868
-
869
- float smoothStep(float x, float y) {
870
- return 1.0 / (1.0 + exp(50.0*(x - y)));
871
- }
872
-
873
- void main() {
874
- float dist = texture2D(markerTexture, gl_PointCoord).r, delta = fragWidth;
875
-
876
- // max-distance alpha
877
- if (dist < 0.003) discard;
878
-
879
- // null-border case
880
- if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {
881
- float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);
882
- gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);
883
- }
884
- else {
885
- float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);
886
- float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);
887
-
888
- vec4 color = fragBorderColor;
889
- color.a *= borderColorAmt;
890
- color = mix(color, fragColor, colorAmt);
891
- color.a *= opacity;
892
-
893
- gl_FragColor = color;
894
- }
895
-
896
- }
897
- `]),y.vert=S0([`precision highp float;
898
- #define GLSLIFY 1
899
-
900
- attribute float x, y, xFract, yFract;
901
- attribute float size, borderSize;
902
- attribute vec4 colorId, borderColorId;
903
- attribute float isActive;
904
-
905
- uniform bool constPointSize;
906
- uniform float pixelRatio;
907
- uniform vec2 scale, scaleFract, translate, translateFract, paletteSize;
908
- uniform sampler2D paletteTexture;
909
-
910
- const float maxSize = 100.;
911
- const float borderLevel = .5;
912
-
913
- varying vec4 fragColor, fragBorderColor;
914
- varying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;
915
-
916
- float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
917
-
918
- bool isDirect = (paletteSize.x < 1.);
919
-
920
- vec4 getColor(vec4 id) {
921
- return isDirect ? id / 255. : texture2D(paletteTexture,
922
- vec2(
923
- (id.x + .5) / paletteSize.x,
924
- (id.y + .5) / paletteSize.y
925
- )
926
- );
927
- }
928
-
929
- void main() {
930
- // ignore inactive points
931
- if (isActive == 0.) return;
932
-
933
- vec2 position = vec2(x, y);
934
- vec2 positionFract = vec2(xFract, yFract);
935
-
936
- vec4 color = getColor(colorId);
937
- vec4 borderColor = getColor(borderColorId);
938
-
939
- float size = size * maxSize / 255.;
940
- float borderSize = borderSize * maxSize / 255.;
941
-
942
- gl_PointSize = 2. * size * pointSizeScale;
943
- fragPointSize = size * pixelRatio;
944
-
945
- vec2 pos = (position + translate) * scale
946
- + (positionFract + translateFract) * scale
947
- + (position + translate) * scaleFract
948
- + (positionFract + translateFract) * scaleFract;
949
-
950
- gl_Position = vec4(pos * 2. - 1., 0., 1.);
951
-
952
- fragColor = color;
953
- fragBorderColor = borderColor;
954
- fragWidth = 1. / gl_PointSize;
955
-
956
- fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);
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;
959
- #define GLSLIFY 1
960
-
961
- varying vec4 fragColor, fragBorderColor;
962
- varying float fragBorderRadius, fragWidth;
963
-
964
- uniform float opacity;
965
-
966
- float smoothStep(float edge0, float edge1, float x) {
967
- float t;
968
- t = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);
969
- return t * t * (3.0 - 2.0 * t);
970
- }
971
-
972
- void main() {
973
- float radius, alpha = 1.0, delta = fragWidth;
974
-
975
- radius = length(2.0 * gl_PointCoord.xy - 1.0);
976
-
977
- if (radius > 1.0 + delta) {
978
- discard;
979
- }
980
-
981
- alpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);
982
-
983
- float borderRadius = fragBorderRadius;
984
- float ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);
985
- vec4 color = mix(fragColor, fragBorderColor, ratio);
986
- color.a *= alpha * opacity;
987
- gl_FragColor = color;
988
- }
989
- `]),E.vert=S0([`precision highp float;
990
- #define GLSLIFY 1
991
-
992
- attribute float x, y, xFract, yFract;
993
- attribute float size, borderSize;
994
- attribute vec4 colorId, borderColorId;
995
- attribute float isActive;
996
-
997
- uniform bool constPointSize;
998
- uniform float pixelRatio;
999
- uniform vec2 paletteSize, scale, scaleFract, translate, translateFract;
1000
- uniform sampler2D paletteTexture;
1001
-
1002
- const float maxSize = 100.;
1003
-
1004
- varying vec4 fragColor, fragBorderColor;
1005
- varying float fragBorderRadius, fragWidth;
1006
-
1007
- float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
1008
-
1009
- bool isDirect = (paletteSize.x < 1.);
1010
-
1011
- vec4 getColor(vec4 id) {
1012
- return isDirect ? id / 255. : texture2D(paletteTexture,
1013
- vec2(
1014
- (id.x + .5) / paletteSize.x,
1015
- (id.y + .5) / paletteSize.y
1016
- )
1017
- );
1018
- }
1019
-
1020
- void main() {
1021
- // ignore inactive points
1022
- if (isActive == 0.) return;
1023
-
1024
- vec2 position = vec2(x, y);
1025
- vec2 positionFract = vec2(xFract, yFract);
1026
-
1027
- vec4 color = getColor(colorId);
1028
- vec4 borderColor = getColor(borderColorId);
1029
-
1030
- float size = size * maxSize / 255.;
1031
- float borderSize = borderSize * maxSize / 255.;
1032
-
1033
- gl_PointSize = (size + borderSize) * pointSizeScale;
1034
-
1035
- vec2 pos = (position + translate) * scale
1036
- + (positionFract + translateFract) * scale
1037
- + (position + translate) * scaleFract
1038
- + (positionFract + translateFract) * scaleFract;
1039
-
1040
- gl_Position = vec4(pos * 2. - 1., 0., 1.);
1041
-
1042
- fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);
1043
- fragColor = color;
1044
- fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;
1045
- fragWidth = 1. / gl_PointSize;
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:`
1049
- precision highp float;
1050
-
1051
- attribute vec2 position, positionFract;
1052
- attribute vec4 error;
1053
- attribute vec4 color;
1054
-
1055
- attribute vec2 direction, lineOffset, capOffset;
1056
-
1057
- uniform vec4 viewport;
1058
- uniform float lineWidth, capSize;
1059
- uniform vec2 scale, scaleFract, translate, translateFract;
1060
-
1061
- varying vec4 fragColor;
1062
-
1063
- void main() {
1064
- fragColor = color / 255.;
1065
-
1066
- vec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;
1067
-
1068
- vec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;
1069
-
1070
- vec2 position = position + dxy;
1071
-
1072
- vec2 pos = (position + translate) * scale
1073
- + (positionFract + translateFract) * scale
1074
- + (position + translate) * scaleFract
1075
- + (positionFract + translateFract) * scaleFract;
1076
-
1077
- pos += pixelOffset / viewport.zw;
1078
-
1079
- gl_Position = vec4(pos * 2. - 1., 0, 1);
1080
- }
1081
- `,frag:`
1082
- precision highp float;
1083
-
1084
- varying vec4 fragColor;
1085
-
1086
- uniform float opacity;
1087
-
1088
- void main() {
1089
- gl_FragColor = fragColor;
1090
- gl_FragColor.a *= opacity;
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,`;
1093
- `).replace(/}/g,`}
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};/*!
1096
- * The buffer module from node.js, for the browser.
1097
- *
1098
- * @author Feross Aboukhadijeh <https://feross.org>
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:`
1101
- precision highp float;
1102
- attribute float width, charOffset, char;
1103
- attribute vec2 position;
1104
- uniform float fontSize, charStep, em, align, baseline;
1105
- uniform vec4 viewport;
1106
- uniform vec4 color;
1107
- uniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;
1108
- varying vec2 charCoord, charId;
1109
- varying float charWidth;
1110
- varying vec4 fontColor;
1111
- void main () {
1112
- vec2 offset = floor(em * (vec2(align + charOffset, baseline)
1113
- + vec2(positionOffset.x, -positionOffset.y)))
1114
- / (viewport.zw * scale.xy);
1115
-
1116
- vec2 position = (position + translate) * scale;
1117
- position += offset * scale;
1118
-
1119
- charCoord = position * viewport.zw + viewport.xy;
1120
-
1121
- gl_Position = vec4(position * 2. - 1., 0, 1);
1122
-
1123
- gl_PointSize = charStep;
1124
-
1125
- charId.x = mod(char, atlasDim.x);
1126
- charId.y = floor(char / atlasDim.x);
1127
-
1128
- charWidth = width * em;
1129
-
1130
- fontColor = color / 255.;
1131
- }`,frag:`
1132
- precision highp float;
1133
- uniform float fontSize, charStep, opacity;
1134
- uniform vec2 atlasSize;
1135
- uniform vec4 viewport;
1136
- uniform sampler2D atlas;
1137
- varying vec4 fontColor;
1138
- varying vec2 charCoord, charId;
1139
- varying float charWidth;
1140
-
1141
- float lightness(vec4 color) {
1142
- return color.r * 0.299 + color.g * 0.587 + color.b * 0.114;
1143
- }
1144
-
1145
- void main () {
1146
- vec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;
1147
- float halfCharStep = floor(charStep * .5 + .5);
1148
-
1149
- // invert y and shift by 1px (FF expecially needs that)
1150
- uv.y = charStep - uv.y;
1151
-
1152
- // ignore points outside of character bounding box
1153
- float halfCharWidth = ceil(charWidth * .5);
1154
- if (floor(uv.x) > halfCharStep + halfCharWidth ||
1155
- floor(uv.x) < halfCharStep - halfCharWidth) return;
1156
-
1157
- uv += charId * charStep;
1158
- uv = uv / atlasSize;
1159
-
1160
- vec4 color = fontColor;
1161
- vec4 mask = texture2D(atlas, uv);
1162
-
1163
- float maskY = lightness(mask);
1164
- // float colorY = lightness(color);
1165
- color.a *= maskY;
1166
- color.a *= opacity;
1167
-
1168
- // color.a += .1;
1169
-
1170
- // antialiasing, see yiq color space y-channel formula
1171
- // color.rgb += (1. - color.rgb) * (1. - mask.rgb);
1172
-
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 yie={},wp={},_p={},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 bie=T6,xie=C6,wie=O6,_ie=typeof window<"u"&&typeof window.document<"u",Sie=_ie?wie.default:xie.default,Eie=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},Aie=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,i=r||Eie,a=n||Sie;return(0,bie.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=Aie;var yy={};yy.__esModule=!0;yy.createRequires=void 0;var Tie=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=Tie;(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")})(_p);const Pae=mi(_p);var Cie=Jt&&Jt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};wp.__esModule=!0;wp.createUseRemoteComponent=void 0;var Uk=zt,Oie=Cie(_p),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};wp.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=wp,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(_p),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(_p),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=wp;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")})(yie);export{oae as $,zt as A,UL as B,Vie as C,Qie as D,Xie as E,Ng as F,wr as G,kae as H,tn as I,uae as J,Kie as K,Yie as L,Zie as M,OS as N,Jie as O,dr 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 _,fae as a,yie as a0,_p as a1,Pae as a2,yae as b,bae as c,lae as d,mae as e,cae as f,dae as g,vae as h,pae as i,GK as j,wae as k,ty as l,gae as m,xae as n,oZ as o,BF as p,Gee as q,sae as r,_ae as s,hae as t,Sae as u,Eae as v,Aae as w,Tae as x,Cae as y,Oae as z};
1175
- //# sourceMappingURL=vendor-6eae92c8.js.map