@deephaven/embed-chart 0.47.1-beta.2 → 0.47.1-dynamic-import.4

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.
@@ -0,0 +1,1176 @@
1
+ import{g as $a,c as ir,a as bc}from"./helpers-042e6b4d.js";var NB={exports:{}},dm={};/*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */var jO=Object.getOwnPropertySymbols,ite=Object.prototype.hasOwnProperty,ate=Object.prototype.propertyIsEnumerable;function ote(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function lte(){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 $c=lte()?Object.assign:function(e,t){for(var r,n=ote(e),i,a=1;a<arguments.length;a++){r=Object(arguments[a]);for(var o in r)ite.call(r,o)&&(n[o]=r[o]);if(jO){i=jO(r);for(var l=0;l<i.length;l++)ate.call(r,i[l])&&(n[i[l]]=r[i[l]])}}return n},LB={exports:{}},Ir={};/** @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 WT=$c,Vd=60103,DB=60106;Ir.Fragment=60107;Ir.StrictMode=60108;Ir.Profiler=60114;var BB=60109,zB=60110,UB=60112;Ir.Suspense=60113;var jB=60115,HB=60116;if(typeof Symbol=="function"&&Symbol.for){var ao=Symbol.for;Vd=ao("react.element"),DB=ao("react.portal"),Ir.Fragment=ao("react.fragment"),Ir.StrictMode=ao("react.strict_mode"),Ir.Profiler=ao("react.profiler"),BB=ao("react.provider"),zB=ao("react.context"),UB=ao("react.forward_ref"),Ir.Suspense=ao("react.suspense"),jB=ao("react.memo"),HB=ao("react.lazy")}var HO=typeof Symbol=="function"&&Symbol.iterator;function ste(e){return e===null||typeof e!="object"?null:(e=HO&&e[HO]||e["@@iterator"],typeof e=="function"?e:null)}function pm(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 GB={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},WB={};function Kd(e,t,r){this.props=e,this.context=t,this.refs=WB,this.updater=r||GB}Kd.prototype.isReactComponent={};Kd.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(pm(85));this.updater.enqueueSetState(this,e,t,"setState")};Kd.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function VB(){}VB.prototype=Kd.prototype;function VT(e,t,r){this.props=e,this.context=t,this.refs=WB,this.updater=r||GB}var KT=VT.prototype=new VB;KT.constructor=VT;WT(KT,Kd.prototype);KT.isPureReactComponent=!0;var qT={current:null},KB=Object.prototype.hasOwnProperty,qB={key:!0,ref:!0,__self:!0,__source:!0};function YB(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)KB.call(t,n)&&!qB.hasOwnProperty(n)&&(i[n]=t[n]);var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)i[n]===void 0&&(i[n]=l[n]);return{$$typeof:Vd,type:e,key:a,ref:o,props:i,_owner:qT.current}}function ute(e,t){return{$$typeof:Vd,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function YT(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vd}function cte(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var GO=/\/+/g;function P$(e,t){return typeof e=="object"&&e!==null&&e.key!=null?cte(""+e.key):t.toString(36)}function S1(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 Vd:case DB:o=!0}}if(o)return o=e,i=i(o),e=n===""?"."+P$(o,0):n,Array.isArray(i)?(r="",e!=null&&(r=e.replace(GO,"$&/")+"/"),S1(i,t,r,"",function(c){return c})):i!=null&&(YT(i)&&(i=ute(i,r+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(GO,"$&/")+"/")+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 u=n+P$(a,l);o+=S1(a,t,r,u,i)}else if(u=ste(e),typeof u=="function")for(e=u.call(e),l=0;!(a=e.next()).done;)a=a.value,u=n+P$(a,l++),o+=S1(a,t,r,u,i);else if(a==="object")throw t=""+e,Error(pm(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return o}function hg(e,t,r){if(e==null)return e;var n=[],i=0;return S1(e,n,"","",function(a){return t.call(r,a,i++)}),n}function fte(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 XB={current:null};function kl(){var e=XB.current;if(e===null)throw Error(pm(321));return e}var dte={ReactCurrentDispatcher:XB,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:qT,IsSomeRendererActing:{current:!1},assign:WT};Ir.Children={map:hg,forEach:function(e,t,r){hg(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return hg(e,function(){t++}),t},toArray:function(e){return hg(e,function(t){return t})||[]},only:function(e){if(!YT(e))throw Error(pm(143));return e}};Ir.Component=Kd;Ir.PureComponent=VT;Ir.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dte;Ir.cloneElement=function(e,t,r){if(e==null)throw Error(pm(267,e));var n=WT({},e.props),i=e.key,a=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(a=t.ref,o=qT.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)KB.call(t,u)&&!qB.hasOwnProperty(u)&&(n[u]=t[u]===void 0&&l!==void 0?l[u]:t[u])}var u=arguments.length-2;if(u===1)n.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];n.children=l}return{$$typeof:Vd,type:e.type,key:i,ref:a,props:n,_owner:o}};Ir.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:zB,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:BB,_context:e},e.Consumer=e};Ir.createElement=YB;Ir.createFactory=function(e){var t=YB.bind(null,e);return t.type=e,t};Ir.createRef=function(){return{current:null}};Ir.forwardRef=function(e){return{$$typeof:UB,render:e}};Ir.isValidElement=YT;Ir.lazy=function(e){return{$$typeof:HB,_payload:{_status:-1,_result:e},_init:fte}};Ir.memo=function(e,t){return{$$typeof:jB,type:e,compare:t===void 0?null:t}};Ir.useCallback=function(e,t){return kl().useCallback(e,t)};Ir.useContext=function(e,t){return kl().useContext(e,t)};Ir.useDebugValue=function(){};Ir.useEffect=function(e,t){return kl().useEffect(e,t)};Ir.useImperativeHandle=function(e,t,r){return kl().useImperativeHandle(e,t,r)};Ir.useLayoutEffect=function(e,t){return kl().useLayoutEffect(e,t)};Ir.useMemo=function(e,t){return kl().useMemo(e,t)};Ir.useReducer=function(e,t,r){return kl().useReducer(e,t,r)};Ir.useRef=function(e){return kl().useRef(e)};Ir.useState=function(e){return kl().useState(e)};Ir.version="17.0.2";LB.exports=Ir;var z=LB.exports;const D=$a(z);/** @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 pte=z,QB=60103;dm.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var WO=Symbol.for;QB=WO("react.element"),dm.Fragment=WO("react.fragment")}var hte=pte.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vte=Object.prototype.hasOwnProperty,mte={key:!0,ref:!0,__self:!0,__source:!0};function ZB(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)vte.call(t,n)&&!mte.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:QB,type:e,key:a,ref:o,props:i,_owner:hte.current}}dm.jsx=ZB;dm.jsxs=ZB;NB.exports=dm;var Q6e=NB.exports,JB={exports:{}},Wa={},ez={exports:{}},tz={};/** @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 u=null,c=null,d=function(){if(u!==null)try{var Ee=e.unstable_now();u(!0,Ee),u=null}catch(Ke){throw setTimeout(d,0),Ke}};t=function(Ee){u!==null?setTimeout(t,0,Ee):(u=Ee,setTimeout(d,0))},r=function(Ee,Ke){c=setTimeout(Ee,Ke)},n=function(){clearTimeout(c)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,p=window.clearTimeout;if(typeof console<"u"){var v=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 v!="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 $=!1,S=null,g=-1,b=5,_=0;e.unstable_shouldYield=function(){return e.unstable_now()>=_},i=function(){},e.unstable_forceFrameRate=function(Ee){0>Ee||125<Ee?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<Ee?Math.floor(1e3/Ee):5};var E=new MessageChannel,A=E.port2;E.port1.onmessage=function(){if(S!==null){var Ee=e.unstable_now();_=Ee+b;try{S(!0,Ee)?A.postMessage(null):($=!1,S=null)}catch(Ke){throw A.postMessage(null),Ke}}else $=!1},t=function(Ee){S=Ee,$||($=!0,A.postMessage(null))},r=function(Ee,Ke){g=h(function(){Ee(e.unstable_now())},Ke)},n=function(){p(g),g=-1}}function M(Ee,Ke){var Ge=Ee.length;Ee.push(Ke);e:for(;;){var Fe=Ge-1>>>1,ft=Ee[Fe];if(ft!==void 0&&0<I(ft,Ke))Ee[Fe]=Ke,Ee[Ge]=ft,Ge=Fe;else break e}}function N(Ee){return Ee=Ee[0],Ee===void 0?null:Ee}function U(Ee){var Ke=Ee[0];if(Ke!==void 0){var Ge=Ee.pop();if(Ge!==Ke){Ee[0]=Ge;e:for(var Fe=0,ft=Ee.length;Fe<ft;){var bt=2*(Fe+1)-1,Gt=Ee[bt],qt=bt+1,nt=Ee[qt];if(Gt!==void 0&&0>I(Gt,Ge))nt!==void 0&&0>I(nt,Gt)?(Ee[Fe]=nt,Ee[qt]=Ge,Fe=qt):(Ee[Fe]=Gt,Ee[bt]=Ge,Fe=bt);else if(nt!==void 0&&0>I(nt,Ge))Ee[Fe]=nt,Ee[qt]=Ge,Fe=qt;else break e}}return Ke}return null}function I(Ee,Ke){var Ge=Ee.sortIndex-Ke.sortIndex;return Ge!==0?Ge:Ee.id-Ke.id}var j=[],he=[],q=1,fe=null,ne=3,ce=!1,De=!1,We=!1;function Ae(Ee){for(var Ke=N(he);Ke!==null;){if(Ke.callback===null)U(he);else if(Ke.startTime<=Ee)U(he),Ke.sortIndex=Ke.expirationTime,M(j,Ke);else break;Ke=N(he)}}function $e(Ee){if(We=!1,Ae(Ee),!De)if(N(j)!==null)De=!0,t(rt);else{var Ke=N(he);Ke!==null&&r($e,Ke.startTime-Ee)}}function rt(Ee,Ke){De=!1,We&&(We=!1,n()),ce=!0;var Ge=ne;try{for(Ae(Ke),fe=N(j);fe!==null&&(!(fe.expirationTime>Ke)||Ee&&!e.unstable_shouldYield());){var Fe=fe.callback;if(typeof Fe=="function"){fe.callback=null,ne=fe.priorityLevel;var ft=Fe(fe.expirationTime<=Ke);Ke=e.unstable_now(),typeof ft=="function"?fe.callback=ft:fe===N(j)&&U(j),Ae(Ke)}else U(j);fe=N(j)}if(fe!==null)var bt=!0;else{var Gt=N(he);Gt!==null&&r($e,Gt.startTime-Ke),bt=!1}return bt}finally{fe=null,ne=Ge,ce=!1}}var Be=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(Ee){Ee.callback=null},e.unstable_continueExecution=function(){De||ce||(De=!0,t(rt))},e.unstable_getCurrentPriorityLevel=function(){return ne},e.unstable_getFirstCallbackNode=function(){return N(j)},e.unstable_next=function(Ee){switch(ne){case 1:case 2:case 3:var Ke=3;break;default:Ke=ne}var Ge=ne;ne=Ke;try{return Ee()}finally{ne=Ge}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Be,e.unstable_runWithPriority=function(Ee,Ke){switch(Ee){case 1:case 2:case 3:case 4:case 5:break;default:Ee=3}var Ge=ne;ne=Ee;try{return Ke()}finally{ne=Ge}},e.unstable_scheduleCallback=function(Ee,Ke,Ge){var Fe=e.unstable_now();switch(typeof Ge=="object"&&Ge!==null?(Ge=Ge.delay,Ge=typeof Ge=="number"&&0<Ge?Fe+Ge:Fe):Ge=Fe,Ee){case 1:var ft=-1;break;case 2:ft=250;break;case 5:ft=1073741823;break;case 4:ft=1e4;break;default:ft=5e3}return ft=Ge+ft,Ee={id:q++,callback:Ke,priorityLevel:Ee,startTime:Ge,expirationTime:ft,sortIndex:-1},Ge>Fe?(Ee.sortIndex=Ge,M(he,Ee),N(j)===null&&Ee===N(he)&&(We?n():We=!0,r($e,Ge-Fe))):(Ee.sortIndex=ft,M(j,Ee),De||ce||(De=!0,t(rt))),Ee},e.unstable_wrapCallback=function(Ee){var Ke=ne;return function(){var Ge=ne;ne=Ke;try{return Ee.apply(this,arguments)}finally{ne=Ge}}}})(tz);ez.exports=tz;var gte=ez.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 yb=z,vn=$c,si=gte;function yt(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(!yb)throw Error(yt(227));var rz=new Set,Rv={};function xc(e,t){Ed(e,t),Ed(e+"Capture",t)}function Ed(e,t){for(Rv[e]=t,e=0;e<t.length;e++)rz.add(t[e])}var Tl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yte=/^[: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]*$/,VO=Object.prototype.hasOwnProperty,KO={},qO={};function bte(e){return VO.call(qO,e)?!0:VO.call(KO,e)?!1:yte.test(e)?qO[e]=!0:(KO[e]=!0,!1)}function $te(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 xte(e,t,r,n){if(t===null||typeof t>"u"||$te(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 Ui(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 wi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){wi[e]=new Ui(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];wi[t]=new Ui(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){wi[e]=new Ui(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){wi[e]=new Ui(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){wi[e]=new Ui(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){wi[e]=new Ui(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){wi[e]=new Ui(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){wi[e]=new Ui(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){wi[e]=new Ui(e,5,!1,e.toLowerCase(),null,!1,!1)});var XT=/[\-:]([a-z])/g;function QT(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(XT,QT);wi[t]=new Ui(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(XT,QT);wi[t]=new Ui(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(XT,QT);wi[t]=new Ui(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){wi[e]=new Ui(e,1,!1,e.toLowerCase(),null,!1,!1)});wi.xlinkHref=new Ui("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){wi[e]=new Ui(e,1,!1,e.toLowerCase(),null,!0,!0)});function ZT(e,t,r,n){var i=wi.hasOwnProperty(t)?wi[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||(xte(t,r,i,n)&&(r=null),n||i===null?bte(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 wc=yb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qh=60103,Uu=60106,ms=60107,JT=60108,uv=60114,eP=60109,tP=60110,bb=60112,cv=60113,Q1=60120,$b=60115,rP=60116,nP=60121,iP=60128,nz=60129,aP=60130,f5=60131;if(typeof Symbol=="function"&&Symbol.for){var ti=Symbol.for;Qh=ti("react.element"),Uu=ti("react.portal"),ms=ti("react.fragment"),JT=ti("react.strict_mode"),uv=ti("react.profiler"),eP=ti("react.provider"),tP=ti("react.context"),bb=ti("react.forward_ref"),cv=ti("react.suspense"),Q1=ti("react.suspense_list"),$b=ti("react.memo"),rP=ti("react.lazy"),nP=ti("react.block"),ti("react.scope"),iP=ti("react.opaque.id"),nz=ti("react.debug_trace_mode"),aP=ti("react.offscreen"),f5=ti("react.legacy_hidden")}var YO=typeof Symbol=="function"&&Symbol.iterator;function bh(e){return e===null||typeof e!="object"?null:(e=YO&&e[YO]||e["@@iterator"],typeof e=="function"?e:null)}var M$;function Zh(e){if(M$===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);M$=t&&t[1]||""}return`
34
+ `+M$+e}var O$=!1;function vg(e,t){if(!e||O$)return"";O$=!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(u){var n=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){n=u}e.call(t.prototype)}else{try{throw Error()}catch(u){n=u}e()}}catch(u){if(u&&n&&typeof u.stack=="string"){for(var i=u.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{O$=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Zh(e):""}function wte(e){switch(e.tag){case 5:return Zh(e.type);case 16:return Zh("Lazy");case 13:return Zh("Suspense");case 19:return Zh("SuspenseList");case 0:case 2:case 15:return e=vg(e.type,!1),e;case 11:return e=vg(e.type.render,!1),e;case 22:return e=vg(e.type._render,!1),e;case 1:return e=vg(e.type,!0),e;default:return""}}function ld(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 ms:return"Fragment";case Uu:return"Portal";case uv:return"Profiler";case JT:return"StrictMode";case cv:return"Suspense";case Q1:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tP:return(e.displayName||"Context")+".Consumer";case eP:return(e._context.displayName||"Context")+".Provider";case bb:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case $b:return ld(e.type);case nP:return ld(e._render);case rP:t=e._payload,e=e._init;try{return ld(e(t))}catch{}}return null}function ks(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function iz(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _te(e){var t=iz(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 mg(e){e._valueTracker||(e._valueTracker=_te(e))}function az(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=iz(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Z1(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 d5(e,t){var r=t.checked;return vn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function XO(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=ks(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 oz(e,t){t=t.checked,t!=null&&ZT(e,"checked",t,!1)}function p5(e,t){oz(e,t);var r=ks(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")?h5(e,t.type,r):t.hasOwnProperty("defaultValue")&&h5(e,t.type,ks(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function QO(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 h5(e,t,r){(t!=="number"||Z1(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function Ste(e){var t="";return yb.Children.forEach(e,function(r){r!=null&&(t+=r)}),t}function v5(e,t){return e=vn({children:void 0},t),(t=Ste(t.children))&&(e.children=t),e}function sd(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=""+ks(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 m5(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(yt(91));return vn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ZO(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(yt(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(yt(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:ks(r)}}function lz(e,t){var r=ks(t.value),n=ks(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 JO(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var g5={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function sz(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 y5(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?sz(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var gg,uz=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!==g5.svg||"innerHTML"in e)e.innerHTML=t;else{for(gg=gg||document.createElement("div"),gg.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=gg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Iv(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var fv={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},Ete=["Webkit","ms","Moz","O"];Object.keys(fv).forEach(function(e){Ete.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fv[t]=fv[e]})});function cz(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||fv.hasOwnProperty(e)&&fv[e]?(""+t).trim():t+"px"}function fz(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=cz(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}var Ate=vn({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 b5(e,t){if(t){if(Ate[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(yt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(yt(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(yt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(yt(62))}}function $5(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 oP(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var x5=null,ud=null,cd=null;function eR(e){if(e=vm(e)){if(typeof x5!="function")throw Error(yt(280));var t=e.stateNode;t&&(t=Ab(t),x5(e.stateNode,e.type,t))}}function dz(e){ud?cd?cd.push(e):cd=[e]:ud=e}function pz(){if(ud){var e=ud,t=cd;if(cd=ud=null,eR(e),t)for(e=0;e<t.length;e++)eR(t[e])}}function lP(e,t){return e(t)}function hz(e,t,r,n,i){return e(t,r,n,i)}function sP(){}var vz=lP,ju=!1,R$=!1;function uP(){(ud!==null||cd!==null)&&(sP(),pz())}function Cte(e,t,r){if(R$)return e(t,r);R$=!0;try{return vz(e,t,r)}finally{R$=!1,uP()}}function kv(e,t){var r=e.stateNode;if(r===null)return null;var n=Ab(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(yt(231,t,typeof r));return r}var w5=!1;if(Tl)try{var $h={};Object.defineProperty($h,"passive",{get:function(){w5=!0}}),window.addEventListener("test",$h,$h),window.removeEventListener("test",$h,$h)}catch{w5=!1}function Tte(e,t,r,n,i,a,o,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(r,c)}catch(d){this.onError(d)}}var dv=!1,J1=null,ey=!1,_5=null,Pte={onError:function(e){dv=!0,J1=e}};function Mte(e,t,r,n,i,a,o,l,u){dv=!1,J1=null,Tte.apply(Pte,arguments)}function Ote(e,t,r,n,i,a,o,l,u){if(Mte.apply(this,arguments),dv){if(dv){var c=J1;dv=!1,J1=null}else throw Error(yt(198));ey||(ey=!0,_5=c)}}function _c(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 mz(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 tR(e){if(_c(e)!==e)throw Error(yt(188))}function Rte(e){var t=e.alternate;if(!t){if(t=_c(e),t===null)throw Error(yt(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 tR(i),e;if(a===n)return tR(i),t;a=a.sibling}throw Error(yt(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(yt(189))}}if(r.alternate!==n)throw Error(yt(190))}if(r.tag!==3)throw Error(yt(188));return r.stateNode.current===r?e:t}function gz(e){if(e=Rte(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 rR(e,t){for(var r=e.alternate;t!==null;){if(t===e||t===r)return!0;t=t.return}return!1}var yz,cP,bz,$z,S5=!1,Ro=[],Es=null,As=null,Cs=null,Fv=new Map,Nv=new Map,xh=[],nR="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 E5(e,t,r,n,i){return{blockedOn:e,domEventName:t,eventSystemFlags:r|16,nativeEvent:i,targetContainers:[n]}}function iR(e,t){switch(e){case"focusin":case"focusout":Es=null;break;case"dragenter":case"dragleave":As=null;break;case"mouseover":case"mouseout":Cs=null;break;case"pointerover":case"pointerout":Fv.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nv.delete(t.pointerId)}}function wh(e,t,r,n,i,a){return e===null||e.nativeEvent!==a?(e=E5(t,r,n,i,a),t!==null&&(t=vm(t),t!==null&&cP(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ite(e,t,r,n,i){switch(t){case"focusin":return Es=wh(Es,e,t,r,n,i),!0;case"dragenter":return As=wh(As,e,t,r,n,i),!0;case"mouseover":return Cs=wh(Cs,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return Fv.set(a,wh(Fv.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,Nv.set(a,wh(Nv.get(a)||null,e,t,r,n,i)),!0}return!1}function kte(e){var t=Hu(e.target);if(t!==null){var r=_c(t);if(r!==null){if(t=r.tag,t===13){if(t=mz(r),t!==null){e.blockedOn=t,$z(e.lanePriority,function(){si.unstable_runWithPriority(e.priority,function(){bz(r)})});return}}else if(t===3&&r.stateNode.hydrate){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function E1(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=hP(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null)return t=vm(r),t!==null&&cP(t),e.blockedOn=r,!1;t.shift()}return!0}function aR(e,t,r){E1(e)&&r.delete(t)}function Fte(){for(S5=!1;0<Ro.length;){var e=Ro[0];if(e.blockedOn!==null){e=vm(e.blockedOn),e!==null&&yz(e);break}for(var t=e.targetContainers;0<t.length;){var r=hP(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r!==null){e.blockedOn=r;break}t.shift()}e.blockedOn===null&&Ro.shift()}Es!==null&&E1(Es)&&(Es=null),As!==null&&E1(As)&&(As=null),Cs!==null&&E1(Cs)&&(Cs=null),Fv.forEach(aR),Nv.forEach(aR)}function _h(e,t){e.blockedOn===t&&(e.blockedOn=null,S5||(S5=!0,si.unstable_scheduleCallback(si.unstable_NormalPriority,Fte)))}function xz(e){function t(i){return _h(i,e)}if(0<Ro.length){_h(Ro[0],e);for(var r=1;r<Ro.length;r++){var n=Ro[r];n.blockedOn===e&&(n.blockedOn=null)}}for(Es!==null&&_h(Es,e),As!==null&&_h(As,e),Cs!==null&&_h(Cs,e),Fv.forEach(t),Nv.forEach(t),r=0;r<xh.length;r++)n=xh[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<xh.length&&(r=xh[0],r.blockedOn===null);)kte(r),r.blockedOn===null&&xh.shift()}function yg(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Vf={animationend:yg("Animation","AnimationEnd"),animationiteration:yg("Animation","AnimationIteration"),animationstart:yg("Animation","AnimationStart"),transitionend:yg("Transition","TransitionEnd")},I$={},wz={};Tl&&(wz=document.createElement("div").style,"AnimationEvent"in window||(delete Vf.animationend.animation,delete Vf.animationiteration.animation,delete Vf.animationstart.animation),"TransitionEvent"in window||delete Vf.transitionend.transition);function xb(e){if(I$[e])return I$[e];if(!Vf[e])return e;var t=Vf[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in wz)return I$[e]=t[r];return e}var _z=xb("animationend"),Sz=xb("animationiteration"),Ez=xb("animationstart"),Az=xb("transitionend"),Cz=new Map,fP=new Map,Nte=["abort","abort",_z,"animationEnd",Sz,"animationIteration",Ez,"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",Az,"transitionEnd","waiting","waiting"];function dP(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)),fP.set(n,t),Cz.set(n,i),xc(i,[n])}}var Lte=si.unstable_now;Lte();var nn=8;function Df(e){if(1&e)return nn=15,1;if(2&e)return nn=14,2;if(4&e)return nn=13,4;var t=24&e;return t!==0?(nn=12,t):e&32?(nn=11,32):(t=192&e,t!==0?(nn=10,t):e&256?(nn=9,256):(t=3584&e,t!==0?(nn=8,t):e&4096?(nn=7,4096):(t=4186112&e,t!==0?(nn=6,t):(t=62914560&e,t!==0?(nn=5,t):e&67108864?(nn=4,67108864):e&134217728?(nn=3,134217728):(t=805306368&e,t!==0?(nn=2,t):1073741824&e?(nn=1,1073741824):(nn=8,e))))))}function Dte(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 Bte(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(yt(358,e))}}function Lv(e,t){var r=e.pendingLanes;if(r===0)return nn=0;var n=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,l=e.pingedLanes;if(a!==0)n=a,i=nn=15;else if(a=r&134217727,a!==0){var u=a&~o;u!==0?(n=Df(u),i=nn):(l&=a,l!==0&&(n=Df(l),i=nn))}else a=r&~o,a!==0?(n=Df(a),i=nn):l!==0&&(n=Df(l),i=nn);if(n===0)return 0;if(n=31-Fs(n),n=r&((0>n?0:1<<n)<<1)-1,t!==0&&t!==n&&!(t&o)){if(Df(t),i<=nn)return t;nn=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-Fs(t),i=1<<r,n|=e[r],t&=~i;return n}function Tz(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ty(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=Bf(24&~t),e===0?ty(10,t):e;case 10:return e=Bf(192&~t),e===0?ty(8,t):e;case 8:return e=Bf(3584&~t),e===0&&(e=Bf(4186112&~t),e===0&&(e=512)),e;case 2:return t=Bf(805306368&~t),t===0&&(t=268435456),t}throw Error(yt(358,e))}function Bf(e){return e&-e}function k$(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function wb(e,t,r){e.pendingLanes|=t;var n=t-1;e.suspendedLanes&=n,e.pingedLanes&=n,e=e.eventTimes,t=31-Fs(t),e[t]=r}var Fs=Math.clz32?Math.clz32:jte,zte=Math.log,Ute=Math.LN2;function jte(e){return e===0?32:31-(zte(e)/Ute|0)|0}var Hte=si.unstable_UserBlockingPriority,Gte=si.unstable_runWithPriority,A1=!0;function Wte(e,t,r,n){ju||sP();var i=pP,a=ju;ju=!0;try{hz(i,e,t,r,n)}finally{(ju=a)||uP()}}function Vte(e,t,r,n){Gte(Hte,pP.bind(null,e,t,r,n))}function pP(e,t,r,n){if(A1){var i;if((i=(t&4)===0)&&0<Ro.length&&-1<nR.indexOf(e))e=E5(null,e,t,r,n),Ro.push(e);else{var a=hP(e,t,r,n);if(a===null)i&&iR(e,n);else{if(i){if(-1<nR.indexOf(e)){e=E5(a,e,t,r,n),Ro.push(e);return}if(Ite(a,e,t,r,n))return;iR(e,n)}Uz(e,t,n,null,r)}}}}function hP(e,t,r,n){var i=oP(n);if(i=Hu(i),i!==null){var a=_c(i);if(a===null)i=null;else{var o=a.tag;if(o===13){if(i=mz(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 Uz(e,t,n,i,r),null}var ys=null,vP=null,C1=null;function Pz(){if(C1)return C1;var e,t=vP,r=t.length,n,i="value"in ys?ys.value:ys.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 C1=i.slice(e,1<n?1-n:void 0)}function T1(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 bg(){return!0}function oR(){return!1}function xa(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)?bg:oR,this.isPropagationStopped=oR,this}return vn(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=bg)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=bg)},persist:function(){},isPersistent:bg}),t}var qd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mP=xa(qd),hm=vn({},qd,{view:0,detail:0}),Kte=xa(hm),F$,N$,Sh,_b=vn({},hm,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gP,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!==Sh&&(Sh&&e.type==="mousemove"?(F$=e.screenX-Sh.screenX,N$=e.screenY-Sh.screenY):N$=F$=0,Sh=e),F$)},movementY:function(e){return"movementY"in e?e.movementY:N$}}),lR=xa(_b),qte=vn({},_b,{dataTransfer:0}),Yte=xa(qte),Xte=vn({},hm,{relatedTarget:0}),L$=xa(Xte),Qte=vn({},qd,{animationName:0,elapsedTime:0,pseudoElement:0}),Zte=xa(Qte),Jte=vn({},qd,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ere=xa(Jte),tre=vn({},qd,{data:0}),sR=xa(tre),rre={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nre={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"},ire={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function are(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ire[e])?!!t[e]:!1}function gP(){return are}var ore=vn({},hm,{key:function(e){if(e.key){var t=rre[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=T1(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nre[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gP,charCode:function(e){return e.type==="keypress"?T1(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?T1(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),lre=xa(ore),sre=vn({},_b,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uR=xa(sre),ure=vn({},hm,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gP}),cre=xa(ure),fre=vn({},qd,{propertyName:0,elapsedTime:0,pseudoElement:0}),dre=xa(fre),pre=vn({},_b,{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}),hre=xa(pre),vre=[9,13,27,32],yP=Tl&&"CompositionEvent"in window,pv=null;Tl&&"documentMode"in document&&(pv=document.documentMode);var mre=Tl&&"TextEvent"in window&&!pv,Mz=Tl&&(!yP||pv&&8<pv&&11>=pv),cR=String.fromCharCode(32),fR=!1;function Oz(e,t){switch(e){case"keyup":return vre.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rz(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Kf=!1;function gre(e,t){switch(e){case"compositionend":return Rz(t);case"keypress":return t.which!==32?null:(fR=!0,cR);case"textInput":return e=t.data,e===cR&&fR?null:e;default:return null}}function yre(e,t){if(Kf)return e==="compositionend"||!yP&&Oz(e,t)?(e=Pz(),C1=vP=ys=null,Kf=!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 Mz&&t.locale!=="ko"?null:t.data;default:return null}}var bre={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 dR(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bre[e.type]:t==="textarea"}function Iz(e,t,r,n){dz(n),t=ry(t,"onChange"),0<t.length&&(r=new mP("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var hv=null,Dv=null;function $re(e){Dz(e,0)}function Sb(e){var t=Yf(e);if(az(t))return e}function xre(e,t){if(e==="change")return t}var kz=!1;if(Tl){var D$;if(Tl){var B$="oninput"in document;if(!B$){var pR=document.createElement("div");pR.setAttribute("oninput","return;"),B$=typeof pR.oninput=="function"}D$=B$}else D$=!1;kz=D$&&(!document.documentMode||9<document.documentMode)}function hR(){hv&&(hv.detachEvent("onpropertychange",Fz),Dv=hv=null)}function Fz(e){if(e.propertyName==="value"&&Sb(Dv)){var t=[];if(Iz(t,Dv,e,oP(e)),e=$re,ju)e(t);else{ju=!0;try{lP(e,t)}finally{ju=!1,uP()}}}}function wre(e,t,r){e==="focusin"?(hR(),hv=t,Dv=r,hv.attachEvent("onpropertychange",Fz)):e==="focusout"&&hR()}function _re(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Sb(Dv)}function Sre(e,t){if(e==="click")return Sb(t)}function Ere(e,t){if(e==="input"||e==="change")return Sb(t)}function Are(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Na=typeof Object.is=="function"?Object.is:Are,Cre=Object.prototype.hasOwnProperty;function Bv(e,t){if(Na(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(!Cre.call(t,r[n])||!Na(e[r[n]],t[r[n]]))return!1;return!0}function vR(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function mR(e,t){var r=vR(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=vR(r)}}function Nz(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nz(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gR(){for(var e=window,t=Z1();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Z1(e.document)}return t}function A5(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 Tre=Tl&&"documentMode"in document&&11>=document.documentMode,qf=null,C5=null,vv=null,T5=!1;function yR(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;T5||qf==null||qf!==Z1(n)||(n=qf,"selectionStart"in n&&A5(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}),vv&&Bv(vv,n)||(vv=n,n=ry(C5,"onSelect"),0<n.length&&(t=new mP("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=qf)))}dP("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);dP("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);dP(Nte,2);for(var bR="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),z$=0;z$<bR.length;z$++)fP.set(bR[z$],0);Ed("onMouseEnter",["mouseout","mouseover"]);Ed("onMouseLeave",["mouseout","mouseover"]);Ed("onPointerEnter",["pointerout","pointerover"]);Ed("onPointerLeave",["pointerout","pointerover"]);xc("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));xc("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));xc("onBeforeInput",["compositionend","keypress","textInput","paste"]);xc("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));xc("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));xc("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jh="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Lz=new Set("cancel close invalid load scroll toggle".split(" ").concat(Jh));function $R(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Ote(n,t,void 0,e),e.currentTarget=null}function Dz(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],u=l.instance,c=l.currentTarget;if(l=l.listener,u!==a&&i.isPropagationStopped())break e;$R(i,l,c),a=u}else for(o=0;o<n.length;o++){if(l=n[o],u=l.instance,c=l.currentTarget,l=l.listener,u!==a&&i.isPropagationStopped())break e;$R(i,l,c),a=u}}}if(ey)throw e=_5,ey=!1,_5=null,e}function on(e,t){var r=Hz(t),n=e+"__bubble";r.has(n)||(zz(t,e,2,!1),r.add(n))}var xR="_reactListening"+Math.random().toString(36).slice(2);function Bz(e){e[xR]||(e[xR]=!0,rz.forEach(function(t){Lz.has(t)||wR(t,!1,e,null),wR(t,!0,e,null)}))}function wR(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&&Lz.has(e)){if(e!=="scroll")return;i|=2,a=n}var o=Hz(a),l=e+"__"+(t?"capture":"bubble");o.has(l)||(t&&(i|=4),zz(a,e,i,t),o.add(l))}function zz(e,t,r,n){var i=fP.get(t);switch(i===void 0?2:i){case 0:i=Wte;break;case 1:i=Vte;break;default:i=pP}r=i.bind(null,t,r,e),i=void 0,!w5||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 Uz(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 u=o.tag;if((u===3||u===4)&&(u=o.stateNode.containerInfo,u===i||u.nodeType===8&&u.parentNode===i))return;o=o.return}for(;l!==null;){if(o=Hu(l),o===null)return;if(u=o.tag,u===5||u===6){n=a=o;continue e}l=l.parentNode}}n=n.return}Cte(function(){var c=a,d=oP(r),h=[];e:{var p=Cz.get(e);if(p!==void 0){var v=mP,$=e;switch(e){case"keypress":if(T1(r)===0)break e;case"keydown":case"keyup":v=lre;break;case"focusin":$="focus",v=L$;break;case"focusout":$="blur",v=L$;break;case"beforeblur":case"afterblur":v=L$;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":v=lR;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Yte;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=cre;break;case _z:case Sz:case Ez:v=Zte;break;case Az:v=dre;break;case"scroll":v=Kte;break;case"wheel":v=hre;break;case"copy":case"cut":case"paste":v=ere;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=uR}var S=(t&4)!==0,g=!S&&e==="scroll",b=S?p!==null?p+"Capture":null:p;S=[];for(var _=c,E;_!==null;){E=_;var A=E.stateNode;if(E.tag===5&&A!==null&&(E=A,b!==null&&(A=kv(_,b),A!=null&&S.push(zv(_,A,E)))),g)break;_=_.return}0<S.length&&(p=new v(p,$,null,r,d),h.push({event:p,listeners:S}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",p&&!(t&16)&&($=r.relatedTarget||r.fromElement)&&(Hu($)||$[Yd]))break e;if((v||p)&&(p=d.window===d?d:(p=d.ownerDocument)?p.defaultView||p.parentWindow:window,v?($=r.relatedTarget||r.toElement,v=c,$=$?Hu($):null,$!==null&&(g=_c($),$!==g||$.tag!==5&&$.tag!==6)&&($=null)):(v=null,$=c),v!==$)){if(S=lR,A="onMouseLeave",b="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(S=uR,A="onPointerLeave",b="onPointerEnter",_="pointer"),g=v==null?p:Yf(v),E=$==null?p:Yf($),p=new S(A,_+"leave",v,r,d),p.target=g,p.relatedTarget=E,A=null,Hu(d)===c&&(S=new S(b,_+"enter",$,r,d),S.target=E,S.relatedTarget=g,A=S),g=A,v&&$)t:{for(S=v,b=$,_=0,E=S;E;E=_f(E))_++;for(E=0,A=b;A;A=_f(A))E++;for(;0<_-E;)S=_f(S),_--;for(;0<E-_;)b=_f(b),E--;for(;_--;){if(S===b||b!==null&&S===b.alternate)break t;S=_f(S),b=_f(b)}S=null}else S=null;v!==null&&_R(h,p,v,S,!1),$!==null&&g!==null&&_R(h,g,$,S,!0)}}e:{if(p=c?Yf(c):window,v=p.nodeName&&p.nodeName.toLowerCase(),v==="select"||v==="input"&&p.type==="file")var M=xre;else if(dR(p))if(kz)M=Ere;else{M=_re;var N=wre}else(v=p.nodeName)&&v.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(M=Sre);if(M&&(M=M(e,c))){Iz(h,M,r,d);break e}N&&N(e,p,c),e==="focusout"&&(N=p._wrapperState)&&N.controlled&&p.type==="number"&&h5(p,"number",p.value)}switch(N=c?Yf(c):window,e){case"focusin":(dR(N)||N.contentEditable==="true")&&(qf=N,C5=c,vv=null);break;case"focusout":vv=C5=qf=null;break;case"mousedown":T5=!0;break;case"contextmenu":case"mouseup":case"dragend":T5=!1,yR(h,r,d);break;case"selectionchange":if(Tre)break;case"keydown":case"keyup":yR(h,r,d)}var U;if(yP)e:{switch(e){case"compositionstart":var I="onCompositionStart";break e;case"compositionend":I="onCompositionEnd";break e;case"compositionupdate":I="onCompositionUpdate";break e}I=void 0}else Kf?Oz(e,r)&&(I="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(I="onCompositionStart");I&&(Mz&&r.locale!=="ko"&&(Kf||I!=="onCompositionStart"?I==="onCompositionEnd"&&Kf&&(U=Pz()):(ys=d,vP="value"in ys?ys.value:ys.textContent,Kf=!0)),N=ry(c,I),0<N.length&&(I=new sR(I,e,null,r,d),h.push({event:I,listeners:N}),U?I.data=U:(U=Rz(r),U!==null&&(I.data=U)))),(U=mre?gre(e,r):yre(e,r))&&(c=ry(c,"onBeforeInput"),0<c.length&&(d=new sR("onBeforeInput","beforeinput",null,r,d),h.push({event:d,listeners:c}),d.data=U))}Dz(h,t)})}function zv(e,t,r){return{instance:e,listener:t,currentTarget:r}}function ry(e,t){for(var r=t+"Capture",n=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=kv(e,r),a!=null&&n.unshift(zv(e,a,i)),a=kv(e,t),a!=null&&n.push(zv(e,a,i))),e=e.return}return n}function _f(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function _R(e,t,r,n,i){for(var a=t._reactName,o=[];r!==null&&r!==n;){var l=r,u=l.alternate,c=l.stateNode;if(u!==null&&u===n)break;l.tag===5&&c!==null&&(l=c,i?(u=kv(r,a),u!=null&&o.unshift(zv(r,u,l))):i||(u=kv(r,a),u!=null&&o.push(zv(r,u,l)))),r=r.return}o.length!==0&&e.push({event:t,listeners:o})}function ny(){}var U$=null,j$=null;function jz(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function P5(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 SR=typeof setTimeout=="function"?setTimeout:void 0,Pre=typeof clearTimeout=="function"?clearTimeout:void 0;function bP(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function fd(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function ER(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 H$=0;function Mre(e){return{$$typeof:iP,toString:e,valueOf:e}}var Eb=Math.random().toString(36).slice(2),bs="__reactFiber$"+Eb,iy="__reactProps$"+Eb,Yd="__reactContainer$"+Eb,AR="__reactEvents$"+Eb;function Hu(e){var t=e[bs];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Yd]||r[bs]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=ER(e);e!==null;){if(r=e[bs])return r;e=ER(e)}return t}e=r,r=e.parentNode}return null}function vm(e){return e=e[bs]||e[Yd],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yf(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(yt(33))}function Ab(e){return e[iy]||null}function Hz(e){var t=e[AR];return t===void 0&&(t=e[AR]=new Set),t}var M5=[],Xf=-1;function Vs(e){return{current:e}}function cn(e){0>Xf||(e.current=M5[Xf],M5[Xf]=null,Xf--)}function An(e,t){Xf++,M5[Xf]=e.current,e.current=t}var Ns={},Oi=Vs(Ns),Ji=Vs(!1),rc=Ns;function Ad(e,t){var r=e.type.contextTypes;if(!r)return Ns;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 ea(e){return e=e.childContextTypes,e!=null}function ay(){cn(Ji),cn(Oi)}function CR(e,t,r){if(Oi.current!==Ns)throw Error(yt(168));An(Oi,t),An(Ji,r)}function Gz(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(yt(108,ld(t)||"Unknown",i));return vn({},r,n)}function P1(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ns,rc=Oi.current,An(Oi,e),An(Ji,Ji.current),!0}function TR(e,t,r){var n=e.stateNode;if(!n)throw Error(yt(169));r?(e=Gz(e,t,rc),n.__reactInternalMemoizedMergedChildContext=e,cn(Ji),cn(Oi),An(Oi,e)):cn(Ji),An(Ji,r)}var $P=null,Xu=null,Ore=si.unstable_runWithPriority,xP=si.unstable_scheduleCallback,O5=si.unstable_cancelCallback,Rre=si.unstable_shouldYield,PR=si.unstable_requestPaint,R5=si.unstable_now,Ire=si.unstable_getCurrentPriorityLevel,Cb=si.unstable_ImmediatePriority,Wz=si.unstable_UserBlockingPriority,Vz=si.unstable_NormalPriority,Kz=si.unstable_LowPriority,qz=si.unstable_IdlePriority,G$={},kre=PR!==void 0?PR:function(){},$l=null,M1=null,W$=!1,MR=R5(),Pi=1e4>MR?R5:function(){return R5()-MR};function Cd(){switch(Ire()){case Cb:return 99;case Wz:return 98;case Vz:return 97;case Kz:return 96;case qz:return 95;default:throw Error(yt(332))}}function Yz(e){switch(e){case 99:return Cb;case 98:return Wz;case 97:return Vz;case 96:return Kz;case 95:return qz;default:throw Error(yt(332))}}function nc(e,t){return e=Yz(e),Ore(e,t)}function Uv(e,t,r){return e=Yz(e),xP(e,t,r)}function jo(){if(M1!==null){var e=M1;M1=null,O5(e)}Xz()}function Xz(){if(!W$&&$l!==null){W$=!0;var e=0;try{var t=$l;nc(99,function(){for(;e<t.length;e++){var r=t[e];do r=r(!0);while(r!==null)}}),$l=null}catch(r){throw $l!==null&&($l=$l.slice(e+1)),xP(Cb,jo),r}finally{W$=!1}}}var Fre=wc.ReactCurrentBatchConfig;function lo(e,t){if(e&&e.defaultProps){t=vn({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var oy=Vs(null),ly=null,Qf=null,sy=null;function wP(){sy=Qf=ly=null}function _P(e){var t=oy.current;cn(oy),e.type._context._currentValue=t}function Qz(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 dd(e,t){ly=e,sy=Qf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(co=!0),e.firstContext=null)}function Ha(e,t){if(sy!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(sy=e,t=1073741823),t={context:e,observedBits:t,next:null},Qf===null){if(ly===null)throw Error(yt(308));Qf=t,ly.dependencies={lanes:0,firstContext:t,responders:null}}else Qf=Qf.next=t;return e._currentValue}var ds=!1;function SP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Zz(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 Ts(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ps(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 OR(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 jv(e,t,r,n){var i=e.updateQueue;ds=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var u=l,c=u.next;u.next=null,o===null?a=c:o.next=c,o=u;var d=e.alternate;if(d!==null){d=d.updateQueue;var h=d.lastBaseUpdate;h!==o&&(h===null?d.firstBaseUpdate=c:h.next=c,d.lastBaseUpdate=u)}}if(a!==null){h=i.baseState,o=0,d=c=u=null;do{l=a.lane;var p=a.eventTime;if((n&l)===l){d!==null&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var v=e,$=a;switch(l=t,p=r,$.tag){case 1:if(v=$.payload,typeof v=="function"){h=v.call(p,h,l);break e}h=v;break e;case 3:v.flags=v.flags&-4097|64;case 0:if(v=$.payload,l=typeof v=="function"?v.call(p,h,l):v,l==null)break e;h=vn({},h,l);break e;case 2:ds=!0}}a.callback!==null&&(e.flags|=32,l=i.effects,l===null?i.effects=[a]:l.push(a))}else p={eventTime:p,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},d===null?(c=d=p,u=h):d=d.next=p,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&&(u=h),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=d,gm|=o,e.lanes=o,e.memoizedState=h}}function RR(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(yt(191,i));i.call(n)}}}var Jz=new yb.Component().refs;function uy(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:vn({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Tb={isMounted:function(e){return(e=e._reactInternals)?_c(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=ga(),i=Ms(e),a=Ts(n,i);a.payload=t,r!=null&&(a.callback=r),Ps(e,a),Os(e,i,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=ga(),i=Ms(e),a=Ts(n,i);a.tag=1,a.payload=t,r!=null&&(a.callback=r),Ps(e,a),Os(e,i,n)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=ga(),n=Ms(e),i=Ts(r,n);i.tag=2,t!=null&&(i.callback=t),Ps(e,i),Os(e,n,r)}};function IR(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?!Bv(r,n)||!Bv(i,a):!0}function eU(e,t,r){var n=!1,i=Ns,a=t.contextType;return typeof a=="object"&&a!==null?a=Ha(a):(i=ea(t)?rc:Oi.current,n=t.contextTypes,a=(n=n!=null)?Ad(e,i):Ns),t=new t(r,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Tb,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function kR(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&&Tb.enqueueReplaceState(t,t.state,null)}function I5(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs=Jz,SP(e);var a=t.contextType;typeof a=="object"&&a!==null?i.context=Ha(a):(a=ea(t)?rc:Oi.current,i.context=Ad(e,a)),jv(e,r,i,n),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a=="function"&&(uy(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&&Tb.enqueueReplaceState(i,i.state,null),jv(e,r,i,n),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4)}var $g=Array.isArray;function Eh(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(yt(309));var n=r.stateNode}if(!n)throw Error(yt(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===Jz&&(o=n.refs={}),a===null?delete o[i]:o[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error(yt(284));if(!r._owner)throw Error(yt(290,e))}return e}function xg(e,t){if(e.type!=="textarea")throw Error(yt(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function tU(e){function t(g,b){if(e){var _=g.lastEffect;_!==null?(_.nextEffect=b,g.lastEffect=b):g.firstEffect=g.lastEffect=b,b.nextEffect=null,b.flags=8}}function r(g,b){if(!e)return null;for(;b!==null;)t(g,b),b=b.sibling;return null}function n(g,b){for(g=new Map;b!==null;)b.key!==null?g.set(b.key,b):g.set(b.index,b),b=b.sibling;return g}function i(g,b){return g=Ds(g,b),g.index=0,g.sibling=null,g}function a(g,b,_){return g.index=_,e?(_=g.alternate,_!==null?(_=_.index,_<b?(g.flags=2,b):_):(g.flags=2,b)):b}function o(g){return e&&g.alternate===null&&(g.flags=2),g}function l(g,b,_,E){return b===null||b.tag!==6?(b=X$(_,g.mode,E),b.return=g,b):(b=i(b,_),b.return=g,b)}function u(g,b,_,E){return b!==null&&b.elementType===_.type?(E=i(b,_.props),E.ref=Eh(g,b,_),E.return=g,E):(E=k1(_.type,_.key,_.props,null,g.mode,E),E.ref=Eh(g,b,_),E.return=g,E)}function c(g,b,_,E){return b===null||b.tag!==4||b.stateNode.containerInfo!==_.containerInfo||b.stateNode.implementation!==_.implementation?(b=Q$(_,g.mode,E),b.return=g,b):(b=i(b,_.children||[]),b.return=g,b)}function d(g,b,_,E,A){return b===null||b.tag!==7?(b=md(_,g.mode,E,A),b.return=g,b):(b=i(b,_),b.return=g,b)}function h(g,b,_){if(typeof b=="string"||typeof b=="number")return b=X$(""+b,g.mode,_),b.return=g,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Qh:return _=k1(b.type,b.key,b.props,null,g.mode,_),_.ref=Eh(g,null,b),_.return=g,_;case Uu:return b=Q$(b,g.mode,_),b.return=g,b}if($g(b)||bh(b))return b=md(b,g.mode,_,null),b.return=g,b;xg(g,b)}return null}function p(g,b,_,E){var A=b!==null?b.key:null;if(typeof _=="string"||typeof _=="number")return A!==null?null:l(g,b,""+_,E);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Qh:return _.key===A?_.type===ms?d(g,b,_.props.children,E,A):u(g,b,_,E):null;case Uu:return _.key===A?c(g,b,_,E):null}if($g(_)||bh(_))return A!==null?null:d(g,b,_,E,null);xg(g,_)}return null}function v(g,b,_,E,A){if(typeof E=="string"||typeof E=="number")return g=g.get(_)||null,l(b,g,""+E,A);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Qh:return g=g.get(E.key===null?_:E.key)||null,E.type===ms?d(b,g,E.props.children,A,E.key):u(b,g,E,A);case Uu:return g=g.get(E.key===null?_:E.key)||null,c(b,g,E,A)}if($g(E)||bh(E))return g=g.get(_)||null,d(b,g,E,A,null);xg(b,E)}return null}function $(g,b,_,E){for(var A=null,M=null,N=b,U=b=0,I=null;N!==null&&U<_.length;U++){N.index>U?(I=N,N=null):I=N.sibling;var j=p(g,N,_[U],E);if(j===null){N===null&&(N=I);break}e&&N&&j.alternate===null&&t(g,N),b=a(j,b,U),M===null?A=j:M.sibling=j,M=j,N=I}if(U===_.length)return r(g,N),A;if(N===null){for(;U<_.length;U++)N=h(g,_[U],E),N!==null&&(b=a(N,b,U),M===null?A=N:M.sibling=N,M=N);return A}for(N=n(g,N);U<_.length;U++)I=v(N,g,U,_[U],E),I!==null&&(e&&I.alternate!==null&&N.delete(I.key===null?U:I.key),b=a(I,b,U),M===null?A=I:M.sibling=I,M=I);return e&&N.forEach(function(he){return t(g,he)}),A}function S(g,b,_,E){var A=bh(_);if(typeof A!="function")throw Error(yt(150));if(_=A.call(_),_==null)throw Error(yt(151));for(var M=A=null,N=b,U=b=0,I=null,j=_.next();N!==null&&!j.done;U++,j=_.next()){N.index>U?(I=N,N=null):I=N.sibling;var he=p(g,N,j.value,E);if(he===null){N===null&&(N=I);break}e&&N&&he.alternate===null&&t(g,N),b=a(he,b,U),M===null?A=he:M.sibling=he,M=he,N=I}if(j.done)return r(g,N),A;if(N===null){for(;!j.done;U++,j=_.next())j=h(g,j.value,E),j!==null&&(b=a(j,b,U),M===null?A=j:M.sibling=j,M=j);return A}for(N=n(g,N);!j.done;U++,j=_.next())j=v(N,g,U,j.value,E),j!==null&&(e&&j.alternate!==null&&N.delete(j.key===null?U:j.key),b=a(j,b,U),M===null?A=j:M.sibling=j,M=j);return e&&N.forEach(function(q){return t(g,q)}),A}return function(g,b,_,E){var A=typeof _=="object"&&_!==null&&_.type===ms&&_.key===null;A&&(_=_.props.children);var M=typeof _=="object"&&_!==null;if(M)switch(_.$$typeof){case Qh:e:{for(M=_.key,A=b;A!==null;){if(A.key===M){switch(A.tag){case 7:if(_.type===ms){r(g,A.sibling),b=i(A,_.props.children),b.return=g,g=b;break e}break;default:if(A.elementType===_.type){r(g,A.sibling),b=i(A,_.props),b.ref=Eh(g,A,_),b.return=g,g=b;break e}}r(g,A);break}else t(g,A);A=A.sibling}_.type===ms?(b=md(_.props.children,g.mode,E,_.key),b.return=g,g=b):(E=k1(_.type,_.key,_.props,null,g.mode,E),E.ref=Eh(g,b,_),E.return=g,g=E)}return o(g);case Uu:e:{for(A=_.key;b!==null;){if(b.key===A)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){r(g,b.sibling),b=i(b,_.children||[]),b.return=g,g=b;break e}else{r(g,b);break}else t(g,b);b=b.sibling}b=Q$(_,g.mode,E),b.return=g,g=b}return o(g)}if(typeof _=="string"||typeof _=="number")return _=""+_,b!==null&&b.tag===6?(r(g,b.sibling),b=i(b,_),b.return=g,g=b):(r(g,b),b=X$(_,g.mode,E),b.return=g,g=b),o(g);if($g(_))return $(g,b,_,E);if(bh(_))return S(g,b,_,E);if(M&&xg(g,_),typeof _>"u"&&!A)switch(g.tag){case 1:case 22:case 0:case 11:case 15:throw Error(yt(152,ld(g.type)||"Component"))}return r(g,b)}}var cy=tU(!0),rU=tU(!1),mm={},Lo=Vs(mm),Hv=Vs(mm),Gv=Vs(mm);function Gu(e){if(e===mm)throw Error(yt(174));return e}function k5(e,t){switch(An(Gv,t),An(Hv,e),An(Lo,mm),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:y5(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=y5(t,e)}cn(Lo),An(Lo,t)}function Td(){cn(Lo),cn(Hv),cn(Gv)}function FR(e){Gu(Gv.current);var t=Gu(Lo.current),r=y5(t,e.type);t!==r&&(An(Hv,e),An(Lo,r))}function EP(e){Hv.current===e&&(cn(Lo),cn(Hv))}var Sn=Vs(0);function fy(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 _l=null,$s=null,Do=!1;function nU(e,t){var r=La(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 NR(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 F5(e){if(Do){var t=$s;if(t){var r=t;if(!NR(e,t)){if(t=fd(r.nextSibling),!t||!NR(e,t)){e.flags=e.flags&-1025|2,Do=!1,_l=e;return}nU(_l,r)}_l=e,$s=fd(t.firstChild)}else e.flags=e.flags&-1025|2,Do=!1,_l=e}}function LR(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_l=e}function wg(e){if(e!==_l)return!1;if(!Do)return LR(e),Do=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!P5(t,e.memoizedProps))for(t=$s;t;)nU(e,t),t=fd(t.nextSibling);if(LR(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(yt(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){$s=fd(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}$s=null}}else $s=_l?fd(e.stateNode.nextSibling):null;return!0}function V$(){$s=_l=null,Do=!1}var pd=[];function AP(){for(var e=0;e<pd.length;e++)pd[e]._workInProgressVersionPrimary=null;pd.length=0}var mv=wc.ReactCurrentDispatcher,Ua=wc.ReactCurrentBatchConfig,Wv=0,Rn=null,Ci=null,bi=null,dy=!1,gv=!1;function Ki(){throw Error(yt(321))}function CP(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!Na(e[r],t[r]))return!1;return!0}function TP(e,t,r,n,i,a){if(Wv=a,Rn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,mv.current=e===null||e.memoizedState===null?Lre:Dre,e=r(n,i),gv){a=0;do{if(gv=!1,!(25>a))throw Error(yt(301));a+=1,bi=Ci=null,t.updateQueue=null,mv.current=Bre,e=r(n,i)}while(gv)}if(mv.current=my,t=Ci!==null&&Ci.next!==null,Wv=0,bi=Ci=Rn=null,dy=!1,t)throw Error(yt(300));return e}function Wu(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bi===null?Rn.memoizedState=bi=e:bi=bi.next=e,bi}function Sc(){if(Ci===null){var e=Rn.alternate;e=e!==null?e.memoizedState:null}else e=Ci.next;var t=bi===null?Rn.memoizedState:bi.next;if(t!==null)bi=t,Ci=e;else{if(e===null)throw Error(yt(310));Ci=e,e={memoizedState:Ci.memoizedState,baseState:Ci.baseState,baseQueue:Ci.baseQueue,queue:Ci.queue,next:null},bi===null?Rn.memoizedState=bi=e:bi=bi.next=e}return bi}function Io(e,t){return typeof t=="function"?t(e):t}function Ah(e){var t=Sc(),r=t.queue;if(r===null)throw Error(yt(311));r.lastRenderedReducer=e;var n=Ci,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,u=i;do{var c=u.lane;if((Wv&c)===c)l!==null&&(l=l.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),n=u.eagerReducer===e?u.eagerState:e(n,u.action);else{var d={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};l===null?(o=l=d,a=n):l=l.next=d,Rn.lanes|=c,gm|=c}u=u.next}while(u!==null&&u!==i);l===null?a=n:l.next=o,Na(n,t.memoizedState)||(co=!0),t.memoizedState=n,t.baseState=a,t.baseQueue=l,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function Ch(e){var t=Sc(),r=t.queue;if(r===null)throw Error(yt(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);Na(a,t.memoizedState)||(co=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function DR(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=(Wv&e)===e)&&(t._workInProgressVersionPrimary=n,pd.push(t))),e)return r(t._source);throw pd.push(t),Error(yt(350))}function iU(e,t,r,n){var i=zi;if(i===null)throw Error(yt(349));var a=t._getVersion,o=a(t._source),l=mv.current,u=l.useState(function(){return DR(i,t,r)}),c=u[1],d=u[0];u=bi;var h=e.memoizedState,p=h.refs,v=p.getSnapshot,$=h.source;h=h.subscribe;var S=Rn;return e.memoizedState={refs:p,source:t,subscribe:n},l.useEffect(function(){p.getSnapshot=r,p.setSnapshot=c;var g=a(t._source);if(!Na(o,g)){g=r(t._source),Na(d,g)||(c(g),g=Ms(S),i.mutableReadLanes|=g&i.pendingLanes),g=i.mutableReadLanes,i.entangledLanes|=g;for(var b=i.entanglements,_=g;0<_;){var E=31-Fs(_),A=1<<E;b[E]|=g,_&=~A}}},[r,t,n]),l.useEffect(function(){return n(t._source,function(){var g=p.getSnapshot,b=p.setSnapshot;try{b(g(t._source));var _=Ms(S);i.mutableReadLanes|=_&i.pendingLanes}catch(E){b(function(){throw E})}})},[t,n]),Na(v,r)&&Na($,t)&&Na(h,n)||(e={pending:null,dispatch:null,lastRenderedReducer:Io,lastRenderedState:d},e.dispatch=c=OP.bind(null,Rn,e),u.queue=e,u.baseQueue=null,d=DR(i,t,r),u.memoizedState=u.baseState=d),d}function aU(e,t,r){var n=Sc();return iU(n,e,t,r)}function Th(e){var t=Wu();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Io,lastRenderedState:e},e=e.dispatch=OP.bind(null,Rn,e),[t.memoizedState,e]}function py(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=Rn.updateQueue,t===null?(t={lastEffect:null},Rn.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 BR(e){var t=Wu();return e={current:e},t.memoizedState=e}function hy(){return Sc().memoizedState}function N5(e,t,r,n){var i=Wu();Rn.flags|=e,i.memoizedState=py(1|t,r,void 0,n===void 0?null:n)}function PP(e,t,r,n){var i=Sc();n=n===void 0?null:n;var a=void 0;if(Ci!==null){var o=Ci.memoizedState;if(a=o.destroy,n!==null&&CP(n,o.deps)){py(t,r,a,n);return}}Rn.flags|=e,i.memoizedState=py(1|t,r,a,n)}function zR(e,t){return N5(516,4,e,t)}function vy(e,t){return PP(516,4,e,t)}function oU(e,t){return PP(4,2,e,t)}function lU(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 sU(e,t,r){return r=r!=null?r.concat([e]):null,PP(4,2,lU.bind(null,t,e),r)}function MP(){}function uU(e,t){var r=Sc();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&CP(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function cU(e,t){var r=Sc();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&CP(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Nre(e,t){var r=Cd();nc(98>r?98:r,function(){e(!0)}),nc(97<r?97:r,function(){var n=Ua.transition;Ua.transition=1;try{e(!1),t()}finally{Ua.transition=n}})}function OP(e,t,r){var n=ga(),i=Ms(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===Rn||o!==null&&o===Rn)gv=dy=!0;else{if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,u=o(l,r);if(a.eagerReducer=o,a.eagerState=u,Na(u,l))return}catch{}finally{}Os(e,i,n)}}var my={readContext:Ha,useCallback:Ki,useContext:Ki,useEffect:Ki,useImperativeHandle:Ki,useLayoutEffect:Ki,useMemo:Ki,useReducer:Ki,useRef:Ki,useState:Ki,useDebugValue:Ki,useDeferredValue:Ki,useTransition:Ki,useMutableSource:Ki,useOpaqueIdentifier:Ki,unstable_isNewReconciler:!1},Lre={readContext:Ha,useCallback:function(e,t){return Wu().memoizedState=[e,t===void 0?null:t],e},useContext:Ha,useEffect:zR,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,N5(4,2,lU.bind(null,t,e),r)},useLayoutEffect:function(e,t){return N5(4,2,e,t)},useMemo:function(e,t){var r=Wu();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Wu();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=OP.bind(null,Rn,e),[n.memoizedState,e]},useRef:BR,useState:Th,useDebugValue:MP,useDeferredValue:function(e){var t=Th(e),r=t[0],n=t[1];return zR(function(){var i=Ua.transition;Ua.transition=1;try{n(e)}finally{Ua.transition=i}},[e]),r},useTransition:function(){var e=Th(!1),t=e[0];return e=Nre.bind(null,e[1]),BR(e),[e,t]},useMutableSource:function(e,t,r){var n=Wu();return n.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:r},iU(n,e,t,r)},useOpaqueIdentifier:function(){if(Do){var e=!1,t=Mre(function(){throw e||(e=!0,r("r:"+(H$++).toString(36))),Error(yt(355))}),r=Th(t)[1];return!(Rn.mode&2)&&(Rn.flags|=516,py(5,function(){r("r:"+(H$++).toString(36))},void 0,null)),t}return t="r:"+(H$++).toString(36),Th(t),t},unstable_isNewReconciler:!1},Dre={readContext:Ha,useCallback:uU,useContext:Ha,useEffect:vy,useImperativeHandle:sU,useLayoutEffect:oU,useMemo:cU,useReducer:Ah,useRef:hy,useState:function(){return Ah(Io)},useDebugValue:MP,useDeferredValue:function(e){var t=Ah(Io),r=t[0],n=t[1];return vy(function(){var i=Ua.transition;Ua.transition=1;try{n(e)}finally{Ua.transition=i}},[e]),r},useTransition:function(){var e=Ah(Io)[0];return[hy().current,e]},useMutableSource:aU,useOpaqueIdentifier:function(){return Ah(Io)[0]},unstable_isNewReconciler:!1},Bre={readContext:Ha,useCallback:uU,useContext:Ha,useEffect:vy,useImperativeHandle:sU,useLayoutEffect:oU,useMemo:cU,useReducer:Ch,useRef:hy,useState:function(){return Ch(Io)},useDebugValue:MP,useDeferredValue:function(e){var t=Ch(Io),r=t[0],n=t[1];return vy(function(){var i=Ua.transition;Ua.transition=1;try{n(e)}finally{Ua.transition=i}},[e]),r},useTransition:function(){var e=Ch(Io)[0];return[hy().current,e]},useMutableSource:aU,useOpaqueIdentifier:function(){return Ch(Io)[0]},unstable_isNewReconciler:!1},zre=wc.ReactCurrentOwner,co=!1;function Yi(e,t,r,n){t.child=e===null?rU(t,null,r,n):cy(t,e.child,r,n)}function UR(e,t,r,n,i){r=r.render;var a=t.ref;return dd(t,i),n=TP(e,t,r,n,a,i),e!==null&&!co?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Sl(e,t,i)):(t.flags|=1,Yi(e,t,n,i),t.child)}function jR(e,t,r,n,i,a){if(e===null){var o=r.type;return typeof o=="function"&&!LP(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,fU(e,t,o,n,i,a)):(e=k1(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:Bv,r(i,n)&&e.ref===t.ref)?Sl(e,t,a):(t.flags|=1,e=Ds(o,n),e.ref=t.ref,e.return=t,t.child=e)}function fU(e,t,r,n,i,a){if(e!==null&&Bv(e.memoizedProps,n)&&e.ref===t.ref)if(co=!1,(a&i)!==0)e.flags&16384&&(co=!0);else return t.lanes=e.lanes,Sl(e,t,a);return L5(e,t,r,n,a)}function K$(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},Sg(t,r);else if(r&1073741824)t.memoizedState={baseLanes:0},Sg(t,a!==null?a.baseLanes:r);else return e=a!==null?a.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Sg(t,e),null;else a!==null?(n=a.baseLanes|r,t.memoizedState=null):n=r,Sg(t,n);return Yi(e,t,i,r),t.child}function dU(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=128)}function L5(e,t,r,n,i){var a=ea(r)?rc:Oi.current;return a=Ad(t,a),dd(t,i),r=TP(e,t,r,n,a,i),e!==null&&!co?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Sl(e,t,i)):(t.flags|=1,Yi(e,t,r,i),t.child)}function HR(e,t,r,n,i){if(ea(r)){var a=!0;P1(t)}else a=!1;if(dd(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),eU(t,r,n),I5(t,r,n,i),n=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var u=o.context,c=r.contextType;typeof c=="object"&&c!==null?c=Ha(c):(c=ea(r)?rc:Oi.current,c=Ad(t,c));var d=r.getDerivedStateFromProps,h=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";h||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==n||u!==c)&&kR(t,o,n,c),ds=!1;var p=t.memoizedState;o.state=p,jv(t,n,o,i),u=t.memoizedState,l!==n||p!==u||Ji.current||ds?(typeof d=="function"&&(uy(t,r,d,n),u=t.memoizedState),(l=ds||IR(t,r,l,n,p,u,c))?(h||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=u),o.props=n,o.state=u,o.context=c,n=l):(typeof o.componentDidMount=="function"&&(t.flags|=4),n=!1)}else{o=t.stateNode,Zz(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:lo(t.type,l),o.props=c,h=t.pendingProps,p=o.context,u=r.contextType,typeof u=="object"&&u!==null?u=Ha(u):(u=ea(r)?rc:Oi.current,u=Ad(t,u));var v=r.getDerivedStateFromProps;(d=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==h||p!==u)&&kR(t,o,n,u),ds=!1,p=t.memoizedState,o.state=p,jv(t,n,o,i);var $=t.memoizedState;l!==h||p!==$||Ji.current||ds?(typeof v=="function"&&(uy(t,r,v,n),$=t.memoizedState),(c=ds||IR(t,r,c,n,p,$,u))?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,$,u),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,$,u)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=n,t.memoizedState=$),o.props=n,o.state=$,o.context=u,n=c):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),n=!1)}return D5(e,t,r,n,a,i)}function D5(e,t,r,n,i,a){dU(e,t);var o=(t.flags&64)!==0;if(!n&&!o)return i&&TR(t,r,!1),Sl(e,t,a);n=t.stateNode,zre.current=t;var l=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&o?(t.child=cy(t,e.child,null,a),t.child=cy(t,null,l,a)):Yi(e,t,l,a),t.memoizedState=n.state,i&&TR(t,r,!0),t.child}function GR(e){var t=e.stateNode;t.pendingContext?CR(e,t.pendingContext,t.pendingContext!==t.context):t.context&&CR(e,t.context,!1),k5(e,t.containerInfo)}var _g={dehydrated:null,retryLane:0};function WR(e,t,r){var n=t.pendingProps,i=Sn.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),An(Sn,i&1),e===null?(n.fallback!==void 0&&F5(t),e=n.children,i=n.fallback,a?(e=VR(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=_g,e):typeof n.unstable_expectedLoadTime=="number"?(e=VR(t,e,i,r),t.child.memoizedState={baseLanes:r},t.memoizedState=_g,t.lanes=33554432,e):(r=DP({mode:"visible",children:e},t.mode,r,null),r.return=t,t.child=r)):e.memoizedState!==null?a?(n=qR(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=_g,n):(r=KR(e,t,n.children,r),t.memoizedState=null,r):a?(n=qR(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=_g,n):(r=KR(e,t,n.children,r),t.memoizedState=null,r)}function VR(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=DP(t,i,0,null),r=md(r,i,n,null),a.return=e,r.return=e,a.sibling=r,e.child=a,r}function KR(e,t,r,n){var i=e.child;return e=i.sibling,r=Ds(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 qR(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=Ds(o,l),e!==null?n=Ds(e,n):(n=md(n,a,i,null),n.flags|=2),n.return=t,r.return=t,r.sibling=n,t.child=r,n}function YR(e,t){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qz(e.return,t)}function q$(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 XR(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(Yi(e,t,n.children,r),n=Sn.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&&YR(e,r);else if(e.tag===19)YR(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(An(Sn,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&&fy(e)===null&&(i=r),r=r.sibling;r=i,r===null?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),q$(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&&fy(e)===null){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}q$(t,!0,r,null,a,t.lastEffect);break;case"together":q$(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Sl(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),gm|=t.lanes,r&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(yt(153));if(t.child!==null){for(e=t.child,r=Ds(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=Ds(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}return null}var pU,B5,hU,vU;pU=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}};B5=function(){};hU=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,Gu(Lo.current);var a=null;switch(r){case"input":i=d5(e,i),n=d5(e,n),a=[];break;case"option":i=v5(e,i),n=v5(e,n),a=[];break;case"select":i=vn({},i,{value:void 0}),n=vn({},n,{value:void 0}),a=[];break;case"textarea":i=m5(e,i),n=m5(e,n),a=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=ny)}b5(r,n);var o;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var l=i[c];for(o in l)l.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Rv.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in n){var u=n[c];if(l=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&u!==l&&(u!=null||l!=null))if(c==="style")if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(r||(r={}),r[o]=u[o])}else r||(a||(a=[]),a.push(c,r)),r=u;else c==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(a=a||[]).push(c,u)):c==="children"?typeof u!="string"&&typeof u!="number"||(a=a||[]).push(c,""+u):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Rv.hasOwnProperty(c)?(u!=null&&c==="onScroll"&&on("scroll",e),a||l===u||(a=[])):typeof u=="object"&&u!==null&&u.$$typeof===iP?u.toString():(a=a||[]).push(c,u))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}};vU=function(e,t,r,n){r!==n&&(t.flags|=4)};function Ph(e,t){if(!Do)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 Ure(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 ea(t.type)&&ay(),null;case 3:return Td(),cn(Ji),cn(Oi),AP(),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(wg(t)?t.flags|=4:n.hydrate||(t.flags|=256)),B5(t),null;case 5:EP(t);var i=Gu(Gv.current);if(r=t.type,e!==null&&t.stateNode!=null)hU(e,t,r,n,i),e.ref!==t.ref&&(t.flags|=128);else{if(!n){if(t.stateNode===null)throw Error(yt(166));return null}if(e=Gu(Lo.current),wg(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[bs]=t,n[iy]=a,r){case"dialog":on("cancel",n),on("close",n);break;case"iframe":case"object":case"embed":on("load",n);break;case"video":case"audio":for(e=0;e<Jh.length;e++)on(Jh[e],n);break;case"source":on("error",n);break;case"img":case"image":case"link":on("error",n),on("load",n);break;case"details":on("toggle",n);break;case"input":XO(n,a),on("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},on("invalid",n);break;case"textarea":ZO(n,a),on("invalid",n)}b5(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]):Rv.hasOwnProperty(o)&&i!=null&&o==="onScroll"&&on("scroll",n));switch(r){case"input":mg(n),QO(n,a,!0);break;case"textarea":mg(n),JO(n);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(n.onclick=ny)}n=e,t.updateQueue=n,n!==null&&(t.flags|=4)}else{switch(o=i.nodeType===9?i:i.ownerDocument,e===g5.html&&(e=sz(r)),e===g5.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[bs]=t,e[iy]=n,pU(e,t,!1,!1),t.stateNode=e,o=$5(r,n),r){case"dialog":on("cancel",e),on("close",e),i=n;break;case"iframe":case"object":case"embed":on("load",e),i=n;break;case"video":case"audio":for(i=0;i<Jh.length;i++)on(Jh[i],e);i=n;break;case"source":on("error",e),i=n;break;case"img":case"image":case"link":on("error",e),on("load",e),i=n;break;case"details":on("toggle",e),i=n;break;case"input":XO(e,n),i=d5(e,n),on("invalid",e);break;case"option":i=v5(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},i=vn({},n,{value:void 0}),on("invalid",e);break;case"textarea":ZO(e,n),i=m5(e,n),on("invalid",e);break;default:i=n}b5(r,i);var l=i;for(a in l)if(l.hasOwnProperty(a)){var u=l[a];a==="style"?fz(e,u):a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&uz(e,u)):a==="children"?typeof u=="string"?(r!=="textarea"||u!=="")&&Iv(e,u):typeof u=="number"&&Iv(e,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Rv.hasOwnProperty(a)?u!=null&&a==="onScroll"&&on("scroll",e):u!=null&&ZT(e,a,u,o))}switch(r){case"input":mg(e),QO(e,n,!1);break;case"textarea":mg(e),JO(e);break;case"option":n.value!=null&&e.setAttribute("value",""+ks(n.value));break;case"select":e.multiple=!!n.multiple,a=n.value,a!=null?sd(e,!!n.multiple,a,!1):n.defaultValue!=null&&sd(e,!!n.multiple,n.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=ny)}jz(r,n)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)vU(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(yt(166));r=Gu(Gv.current),Gu(Lo.current),wg(t)?(n=t.stateNode,r=t.memoizedProps,n[bs]=t,n.nodeValue!==r&&(t.flags|=4)):(n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[bs]=t,t.stateNode=n)}return null;case 13:return cn(Sn),n=t.memoizedState,t.flags&64?(t.lanes=r,t):(n=n!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&wg(t):r=e.memoizedState!==null,n&&!r&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||Sn.current&1?$i===0&&($i=3):(($i===0||$i===3)&&($i=4),zi===null||!(gm&134217727)&&!(Qd&134217727)||hd(zi,Mi))),(n||r)&&(t.flags|=4),null);case 4:return Td(),B5(t),e===null&&Bz(t.stateNode.containerInfo),null;case 10:return _P(t),null;case 17:return ea(t.type)&&ay(),null;case 19:if(cn(Sn),n=t.memoizedState,n===null)return null;if(a=(t.flags&64)!==0,o=n.rendering,o===null)if(a)Ph(n,!1);else{if($i!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(o=fy(e),o!==null){for(t.flags|=64,Ph(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 An(Sn,Sn.current&1|2),t.child}e=e.sibling}n.tail!==null&&Pi()>W5&&(t.flags|=64,a=!0,Ph(n,!1),t.lanes=33554432)}else{if(!a)if(e=fy(o),e!==null){if(t.flags|=64,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ph(n,!0),n.tail===null&&n.tailMode==="hidden"&&!o.alternate&&!Do)return t=t.lastEffect=n.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*Pi()-n.renderingStartTime>W5&&r!==1073741824&&(t.flags|=64,a=!0,Ph(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=Pi(),r.sibling=null,t=Sn.current,An(Sn,a?t&1|2:t&1),r):null;case 23:case 24:return NP(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&n.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(yt(156,t.tag))}function jre(e){switch(e.tag){case 1:ea(e.type)&&ay();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(Td(),cn(Ji),cn(Oi),AP(),t=e.flags,t&64)throw Error(yt(285));return e.flags=t&-4097|64,e;case 5:return EP(e),null;case 13:return cn(Sn),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return cn(Sn),null;case 4:return Td(),null;case 10:return _P(e),null;case 23:case 24:return NP(),null;default:return null}}function RP(e,t){try{var r="",n=t;do r+=wte(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 z5(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Hre=typeof WeakMap=="function"?WeakMap:Map;function mU(e,t,r){r=Ts(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){yy||(yy=!0,V5=n),z5(e,t)},r}function gU(e,t,r){r=Ts(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var i=t.value;r.payload=function(){return z5(e,t),n(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(r.callback=function(){typeof n!="function"&&(ko===null?ko=new Set([this]):ko.add(this),z5(e,t));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),r}var Gre=typeof WeakSet=="function"?WeakSet:Set;function QR(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(r){Rs(e,r)}else t.current=null}function Wre(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:lo(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&bP(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(yt(163))}function Vre(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&&(AU(r,e),ene(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:lo(r.type,t.memoizedProps),e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=r.updateQueue,t!==null&&RR(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}RR(r,t,e)}return;case 5:e=r.stateNode,t===null&&r.flags&4&&jz(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&&xz(r))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(yt(163))}function ZR(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=cz("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 JR(e,t){if(Xu&&typeof Xu.onCommitFiberUnmount=="function")try{Xu.onCommitFiberUnmount($P,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)AU(t,r);else{n=t;try{i()}catch(a){Rs(n,a)}}r=r.next}while(r!==e)}break;case 1:if(QR(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Rs(t,a)}break;case 5:QR(t);break;case 4:yU(e,t)}}function eI(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 tI(e){return e.tag===5||e.tag===3||e.tag===4}function rI(e){e:{for(var t=e.return;t!==null;){if(tI(t))break e;t=t.return}throw Error(yt(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(yt(161))}r.flags&16&&(Iv(t,""),r.flags&=-17);e:t:for(r=e;;){for(;r.sibling===null;){if(r.return===null||tI(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?U5(e,r,t):j5(e,r,t)}function U5(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=ny));else if(n!==4&&(e=e.child,e!==null))for(U5(e,t,r),e=e.sibling;e!==null;)U5(e,t,r),e=e.sibling}function j5(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(j5(e,t,r),e=e.sibling;e!==null;)j5(e,t,r),e=e.sibling}function yU(e,t){for(var r=t,n=!1,i,a;;){if(!n){n=r.return;e:for(;;){if(n===null)throw Error(yt(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,u=l;;)if(JR(o,u),u.child!==null&&u.tag!==4)u.child.return=u,u=u.child;else{if(u===l)break e;for(;u.sibling===null;){if(u.return===null||u.return===l)break e;u=u.return}u.sibling.return=u.return,u=u.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(JR(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 Y$(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[iy]=n,e==="input"&&n.type==="radio"&&n.name!=null&&oz(r,n),$5(e,i),t=$5(e,n),i=0;i<a.length;i+=2){var o=a[i],l=a[i+1];o==="style"?fz(r,l):o==="dangerouslySetInnerHTML"?uz(r,l):o==="children"?Iv(r,l):ZT(r,o,l,t)}switch(e){case"input":p5(r,n);break;case"textarea":lz(r,n);break;case"select":e=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,a=n.value,a!=null?sd(r,!!n.multiple,a,!1):e!==!!n.multiple&&(n.defaultValue!=null?sd(r,!!n.multiple,n.defaultValue,!0):sd(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(yt(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:r=t.stateNode,r.hydrate&&(r.hydrate=!1,xz(r.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(FP=Pi(),ZR(t.child,!0)),nI(t);return;case 19:nI(t);return;case 17:return;case 23:case 24:ZR(t,t.memoizedState!==null);return}throw Error(yt(163))}function nI(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Gre),t.forEach(function(n){var i=nne.bind(null,e,n);r.has(n)||(r.add(n),n.then(i,i))})}}function Kre(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var qre=Math.ceil,gy=wc.ReactCurrentDispatcher,IP=wc.ReactCurrentOwner,lr=0,zi=null,Qn=null,Mi=0,ic=0,H5=Vs(0),$i=0,Pb=null,Xd=0,gm=0,Qd=0,kP=0,G5=null,FP=0,W5=1/0;function Zd(){W5=Pi()+500}var jt=null,yy=!1,V5=null,ko=null,Ls=!1,yv=null,ev=90,K5=[],q5=[],Al=null,bv=0,Y5=null,O1=-1,xl=0,R1=0,$v=null,I1=!1;function ga(){return lr&48?Pi():O1!==-1?O1:O1=Pi()}function Ms(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return Cd()===99?1:2;if(xl===0&&(xl=Xd),Fre.transition!==0){R1!==0&&(R1=G5!==null?G5.pendingLanes:0),e=xl;var t=4186112&~R1;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=Cd(),lr&4&&e===98?e=ty(12,xl):(e=Dte(e),e=ty(e,xl)),e}function Os(e,t,r){if(50<bv)throw bv=0,Y5=null,Error(yt(185));if(e=Mb(e,t),e===null)return null;wb(e,t,r),e===zi&&(Qd|=t,$i===4&&hd(e,Mi));var n=Cd();t===1?lr&8&&!(lr&48)?X5(e):(Ga(e,r),lr===0&&(Zd(),jo())):(!(lr&4)||n!==98&&n!==99||(Al===null?Al=new Set([e]):Al.add(e)),Ga(e,r)),G5=e}function Mb(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 Ga(e,t){for(var r=e.callbackNode,n=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-Fs(o),u=1<<l,c=a[l];if(c===-1){if(!(u&n)||u&i){c=t,Df(u);var d=nn;a[l]=10<=d?c+250:6<=d?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);o&=~u}if(n=Lv(e,e===zi?Mi:0),t=nn,n===0)r!==null&&(r!==G$&&O5(r),e.callbackNode=null,e.callbackPriority=0);else{if(r!==null){if(e.callbackPriority===t)return;r!==G$&&O5(r)}t===15?(r=X5.bind(null,e),$l===null?($l=[r],M1=xP(Cb,Xz)):$l.push(r),r=G$):t===14?r=Uv(99,X5.bind(null,e)):(r=Bte(t),r=Uv(r,bU.bind(null,e))),e.callbackPriority=t,e.callbackNode=r}}function bU(e){if(O1=-1,R1=xl=0,lr&48)throw Error(yt(327));var t=e.callbackNode;if(Ks()&&e.callbackNode!==t)return null;var r=Lv(e,e===zi?Mi:0);if(r===0)return null;var n=r,i=lr;lr|=16;var a=_U();(zi!==e||Mi!==n)&&(Zd(),vd(e,n));do try{Qre();break}catch(l){wU(e,l)}while(1);if(wP(),gy.current=a,lr=i,Qn!==null?n=0:(zi=null,Mi=0,n=$i),Xd&Qd)vd(e,0);else if(n!==0){if(n===2&&(lr|=64,e.hydrate&&(e.hydrate=!1,bP(e.containerInfo)),r=Tz(e),r!==0&&(n=tv(e,r))),n===1)throw t=Pb,vd(e,0),hd(e,r),Ga(e,Pi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=r,n){case 0:case 1:throw Error(yt(345));case 2:ku(e);break;case 3:if(hd(e,r),(r&62914560)===r&&(n=FP+500-Pi(),10<n)){if(Lv(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){ga(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=SR(ku.bind(null,e),n);break}ku(e);break;case 4:if(hd(e,r),(r&4186112)===r)break;for(n=e.eventTimes,i=-1;0<r;){var o=31-Fs(r);a=1<<o,o=n[o],o>i&&(i=o),r&=~a}if(r=i,r=Pi()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qre(r/1960))-r,10<r){e.timeoutHandle=SR(ku.bind(null,e),r);break}ku(e);break;case 5:ku(e);break;default:throw Error(yt(329))}}return Ga(e,Pi()),e.callbackNode===t?bU.bind(null,e):null}function hd(e,t){for(t&=~kP,t&=~Qd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-Fs(t),n=1<<r;e[r]=-1,t&=~n}}function X5(e){if(lr&48)throw Error(yt(327));if(Ks(),e===zi&&e.expiredLanes&Mi){var t=Mi,r=tv(e,t);Xd&Qd&&(t=Lv(e,t),r=tv(e,t))}else t=Lv(e,0),r=tv(e,t);if(e.tag!==0&&r===2&&(lr|=64,e.hydrate&&(e.hydrate=!1,bP(e.containerInfo)),t=Tz(e),t!==0&&(r=tv(e,t))),r===1)throw r=Pb,vd(e,0),hd(e,t),Ga(e,Pi()),r;return e.finishedWork=e.current.alternate,e.finishedLanes=t,ku(e),Ga(e,Pi()),null}function Yre(){if(Al!==null){var e=Al;Al=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Ga(t,Pi())})}jo()}function $U(e,t){var r=lr;lr|=1;try{return e(t)}finally{lr=r,lr===0&&(Zd(),jo())}}function xU(e,t){var r=lr;lr&=-2,lr|=8;try{return e(t)}finally{lr=r,lr===0&&(Zd(),jo())}}function Sg(e,t){An(H5,ic),ic|=t,Xd|=t}function NP(){ic=H5.current,cn(H5)}function vd(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Pre(r)),Qn!==null)for(r=Qn.return;r!==null;){var n=r;switch(n.tag){case 1:n=n.type.childContextTypes,n!=null&&ay();break;case 3:Td(),cn(Ji),cn(Oi),AP();break;case 5:EP(n);break;case 4:Td();break;case 13:cn(Sn);break;case 19:cn(Sn);break;case 10:_P(n);break;case 23:case 24:NP()}r=r.return}zi=e,Qn=Ds(e.current,null),Mi=ic=Xd=t,$i=0,Pb=null,kP=Qd=gm=0}function wU(e,t){do{var r=Qn;try{if(wP(),mv.current=my,dy){for(var n=Rn.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}dy=!1}if(Wv=0,bi=Ci=Rn=null,gv=!1,IP.current=null,r===null||r.return===null){$i=1,Pb=t,Qn=null;break}e:{var a=e,o=r.return,l=r,u=t;if(t=Mi,l.flags|=2048,l.firstEffect=l.lastEffect=null,u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=u;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 h=(Sn.current&1)!==0,p=o;do{var v;if(v=p.tag===13){var $=p.memoizedState;if($!==null)v=$.dehydrated!==null;else{var S=p.memoizedProps;v=S.fallback===void 0?!1:S.unstable_avoidThisFallback!==!0?!0:!h}}if(v){var g=p.updateQueue;if(g===null){var b=new Set;b.add(c),p.updateQueue=b}else g.add(c);if(!(p.mode&2)){if(p.flags|=64,l.flags|=16384,l.flags&=-2981,l.tag===1)if(l.alternate===null)l.tag=17;else{var _=Ts(-1,1);_.tag=2,Ps(l,_)}l.lanes|=1;break e}u=void 0,l=t;var E=a.pingCache;if(E===null?(E=a.pingCache=new Hre,u=new Set,E.set(c,u)):(u=E.get(c),u===void 0&&(u=new Set,E.set(c,u))),!u.has(l)){u.add(l);var A=rne.bind(null,a,c,l);c.then(A,A)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(p!==null);u=Error((ld(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.`)}$i!==5&&($i=2),u=RP(u,l),p=o;do{switch(p.tag){case 3:a=u,p.flags|=4096,t&=-t,p.lanes|=t;var M=mU(p,a,t);OR(p,M);break e;case 1:a=u;var N=p.type,U=p.stateNode;if(!(p.flags&64)&&(typeof N.getDerivedStateFromError=="function"||U!==null&&typeof U.componentDidCatch=="function"&&(ko===null||!ko.has(U)))){p.flags|=4096,t&=-t,p.lanes|=t;var I=gU(p,a,t);OR(p,I);break e}}p=p.return}while(p!==null)}EU(r)}catch(j){t=j,Qn===r&&r!==null&&(Qn=r=r.return);continue}break}while(1)}function _U(){var e=gy.current;return gy.current=my,e===null?my:e}function tv(e,t){var r=lr;lr|=16;var n=_U();zi===e&&Mi===t||vd(e,t);do try{Xre();break}catch(i){wU(e,i)}while(1);if(wP(),lr=r,gy.current=n,Qn!==null)throw Error(yt(261));return zi=null,Mi=0,$i}function Xre(){for(;Qn!==null;)SU(Qn)}function Qre(){for(;Qn!==null&&!Rre();)SU(Qn)}function SU(e){var t=CU(e.alternate,e,ic);e.memoizedProps=e.pendingProps,t===null?EU(e):Qn=t,IP.current=null}function EU(e){var t=e;do{var r=t.alternate;if(e=t.return,t.flags&2048){if(r=jre(t),r!==null){r.flags&=2047,Qn=r;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(r=Ure(r,t,ic),r!==null){Qn=r;return}if(r=t,r.tag!==24&&r.tag!==23||r.memoizedState===null||ic&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){Qn=t;return}Qn=t=e}while(t!==null);$i===0&&($i=5)}function ku(e){var t=Cd();return nc(99,Zre.bind(null,e,t)),null}function Zre(e,t){do Ks();while(yv!==null);if(lr&48)throw Error(yt(327));var r=e.finishedWork;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(yt(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 u=31-Fs(a),c=1<<u;i[u]=0,o[u]=-1,l[u]=-1,a&=~c}if(Al!==null&&!(n&24)&&Al.has(e)&&Al.delete(e),e===zi&&(Qn=zi=null,Mi=0),1<r.flags?r.lastEffect!==null?(r.lastEffect.nextEffect=r,n=r.firstEffect):n=r:n=r.firstEffect,n!==null){if(i=lr,lr|=32,IP.current=null,U$=A1,o=gR(),A5(o)){if("selectionStart"in o)l={start:o.selectionStart,end:o.selectionEnd};else e:if(l=(l=o.ownerDocument)&&l.defaultView||window,(c=l.getSelection&&l.getSelection())&&c.rangeCount!==0){l=c.anchorNode,a=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{l.nodeType,u.nodeType}catch{l=null;break e}var d=0,h=-1,p=-1,v=0,$=0,S=o,g=null;t:for(;;){for(var b;S!==l||a!==0&&S.nodeType!==3||(h=d+a),S!==u||c!==0&&S.nodeType!==3||(p=d+c),S.nodeType===3&&(d+=S.nodeValue.length),(b=S.firstChild)!==null;)g=S,S=b;for(;;){if(S===o)break t;if(g===l&&++v===a&&(h=d),g===u&&++$===c&&(p=d),(b=S.nextSibling)!==null)break;S=g,g=S.parentNode}S=b}l=h===-1||p===-1?null:{start:h,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;j$={focusedElem:o,selectionRange:l},A1=!1,$v=null,I1=!1,jt=n;do try{Jre()}catch(j){if(jt===null)throw Error(yt(330));Rs(jt,j),jt=jt.nextEffect}while(jt!==null);$v=null,jt=n;do try{for(o=e;jt!==null;){var _=jt.flags;if(_&16&&Iv(jt.stateNode,""),_&128){var E=jt.alternate;if(E!==null){var A=E.ref;A!==null&&(typeof A=="function"?A(null):A.current=null)}}switch(_&1038){case 2:rI(jt),jt.flags&=-3;break;case 6:rI(jt),jt.flags&=-3,Y$(jt.alternate,jt);break;case 1024:jt.flags&=-1025;break;case 1028:jt.flags&=-1025,Y$(jt.alternate,jt);break;case 4:Y$(jt.alternate,jt);break;case 8:l=jt,yU(o,l);var M=l.alternate;eI(l),M!==null&&eI(M)}jt=jt.nextEffect}}catch(j){if(jt===null)throw Error(yt(330));Rs(jt,j),jt=jt.nextEffect}while(jt!==null);if(A=j$,E=gR(),_=A.focusedElem,o=A.selectionRange,E!==_&&_&&_.ownerDocument&&Nz(_.ownerDocument.documentElement,_)){for(o!==null&&A5(_)&&(E=o.start,A=o.end,A===void 0&&(A=E),"selectionStart"in _?(_.selectionStart=E,_.selectionEnd=Math.min(A,_.value.length)):(A=(E=_.ownerDocument||document)&&E.defaultView||window,A.getSelection&&(A=A.getSelection(),l=_.textContent.length,M=Math.min(o.start,l),o=o.end===void 0?M:Math.min(o.end,l),!A.extend&&M>o&&(l=o,o=M,M=l),l=mR(_,M),a=mR(_,o),l&&a&&(A.rangeCount!==1||A.anchorNode!==l.node||A.anchorOffset!==l.offset||A.focusNode!==a.node||A.focusOffset!==a.offset)&&(E=E.createRange(),E.setStart(l.node,l.offset),A.removeAllRanges(),M>o?(A.addRange(E),A.extend(a.node,a.offset)):(E.setEnd(a.node,a.offset),A.addRange(E)))))),E=[],A=_;A=A.parentNode;)A.nodeType===1&&E.push({element:A,left:A.scrollLeft,top:A.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<E.length;_++)A=E[_],A.element.scrollLeft=A.left,A.element.scrollTop=A.top}A1=!!U$,j$=U$=null,e.current=r,jt=n;do try{for(_=e;jt!==null;){var N=jt.flags;if(N&36&&Vre(_,jt.alternate,jt),N&128){E=void 0;var U=jt.ref;if(U!==null){var I=jt.stateNode;switch(jt.tag){case 5:E=I;break;default:E=I}typeof U=="function"?U(E):U.current=E}}jt=jt.nextEffect}}catch(j){if(jt===null)throw Error(yt(330));Rs(jt,j),jt=jt.nextEffect}while(jt!==null);jt=null,kre(),lr=i}else e.current=r;if(Ls)Ls=!1,yv=e,ev=t;else for(jt=n;jt!==null;)t=jt.nextEffect,jt.nextEffect=null,jt.flags&8&&(N=jt,N.sibling=null,N.stateNode=null),jt=t;if(n=e.pendingLanes,n===0&&(ko=null),n===1?e===Y5?bv++:(bv=0,Y5=e):bv=0,r=r.stateNode,Xu&&typeof Xu.onCommitFiberRoot=="function")try{Xu.onCommitFiberRoot($P,r,void 0,(r.current.flags&64)===64)}catch{}if(Ga(e,Pi()),yy)throw yy=!1,e=V5,V5=null,e;return lr&8||jo(),null}function Jre(){for(;jt!==null;){var e=jt.alternate;I1||$v===null||(jt.flags&8?rR(jt,$v)&&(I1=!0):jt.tag===13&&Kre(e,jt)&&rR(jt,$v)&&(I1=!0));var t=jt.flags;t&256&&Wre(e,jt),!(t&512)||Ls||(Ls=!0,Uv(97,function(){return Ks(),null})),jt=jt.nextEffect}}function Ks(){if(ev!==90){var e=97<ev?97:ev;return ev=90,nc(e,tne)}return!1}function ene(e,t){K5.push(t,e),Ls||(Ls=!0,Uv(97,function(){return Ks(),null}))}function AU(e,t){q5.push(t,e),Ls||(Ls=!0,Uv(97,function(){return Ks(),null}))}function tne(){if(yv===null)return!1;var e=yv;if(yv=null,lr&48)throw Error(yt(331));var t=lr;lr|=32;var r=q5;q5=[];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(u){if(a===null)throw Error(yt(330));Rs(a,u)}}for(r=K5,K5=[],n=0;n<r.length;n+=2){i=r[n],a=r[n+1];try{var l=i.create;i.destroy=l()}catch(u){if(a===null)throw Error(yt(330));Rs(a,u)}}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 lr=t,jo(),!0}function iI(e,t,r){t=RP(r,t),t=mU(e,t,1),Ps(e,t),t=ga(),e=Mb(e,1),e!==null&&(wb(e,1,t),Ga(e,t))}function Rs(e,t){if(e.tag===3)iI(e,e,t);else for(var r=e.return;r!==null;){if(r.tag===3){iI(r,e,t);break}else if(r.tag===1){var n=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(ko===null||!ko.has(n))){e=RP(t,e);var i=gU(r,e,1);if(Ps(r,i),i=ga(),r=Mb(r,1),r!==null)wb(r,1,i),Ga(r,i);else if(typeof n.componentDidCatch=="function"&&(ko===null||!ko.has(n)))try{n.componentDidCatch(t,e)}catch{}break}}r=r.return}}function rne(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=ga(),e.pingedLanes|=e.suspendedLanes&r,zi===e&&(Mi&r)===r&&($i===4||$i===3&&(Mi&62914560)===Mi&&500>Pi()-FP?vd(e,0):kP|=r),Ga(e,t)}function nne(e,t){var r=e.stateNode;r!==null&&r.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(xl===0&&(xl=Xd),t=Bf(62914560&~xl),t===0&&(t=4194304)):t=Cd()===99?1:2:t=1),r=ga(),e=Mb(e,t),e!==null&&(wb(e,t,r),Ga(e,r))}var CU;CU=function(e,t,r){var n=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ji.current)co=!0;else if(r&n)co=!!(e.flags&16384);else{switch(co=!1,t.tag){case 3:GR(t),V$();break;case 5:FR(t);break;case 1:ea(t.type)&&P1(t);break;case 4:k5(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value;var i=t.type._context;An(oy,i._currentValue),i._currentValue=n;break;case 13:if(t.memoizedState!==null)return r&t.child.childLanes?WR(e,t,r):(An(Sn,Sn.current&1),t=Sl(e,t,r),t!==null?t.sibling:null);An(Sn,Sn.current&1);break;case 19:if(n=(r&t.childLanes)!==0,e.flags&64){if(n)return XR(e,t,r);t.flags|=64}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),An(Sn,Sn.current),n)break;return null;case 23:case 24:return t.lanes=0,K$(e,t,r)}return Sl(e,t,r)}else co=!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=Ad(t,Oi.current),dd(t,r),i=TP(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,ea(n)){var a=!0;P1(t)}else a=!1;t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,SP(t);var o=n.getDerivedStateFromProps;typeof o=="function"&&uy(t,n,o,e),i.updater=Tb,t.stateNode=i,i._reactInternals=t,I5(t,n,e,r),t=D5(null,t,n,!0,a,r)}else t.tag=0,Yi(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=ane(i),e=lo(i,e),a){case 0:t=L5(null,t,i,e,r);break e;case 1:t=HR(null,t,i,e,r);break e;case 11:t=UR(null,t,i,e,r);break e;case 14:t=jR(null,t,i,lo(i.type,e),n,r);break e}throw Error(yt(306,i,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:lo(n,i),L5(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:lo(n,i),HR(e,t,n,i,r);case 3:if(GR(t),n=t.updateQueue,e===null||n===null)throw Error(yt(282));if(n=t.pendingProps,i=t.memoizedState,i=i!==null?i.element:null,Zz(e,t),jv(t,n,null,r),n=t.memoizedState.element,n===i)V$(),t=Sl(e,t,r);else{if(i=t.stateNode,(a=i.hydrate)&&($s=fd(t.stateNode.containerInfo.firstChild),_l=t,a=Do=!0),a){if(e=i.mutableSourceEagerHydrationData,e!=null)for(i=0;i<e.length;i+=2)a=e[i],a._workInProgressVersionPrimary=e[i+1],pd.push(a);for(r=rU(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|1024,r=r.sibling}else Yi(e,t,n,r),V$();t=t.child}return t;case 5:return FR(t),e===null&&F5(t),n=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,P5(n,i)?o=null:a!==null&&P5(n,a)&&(t.flags|=16),dU(e,t),Yi(e,t,o,r),t.child;case 6:return e===null&&F5(t),null;case 13:return WR(e,t,r);case 4:return k5(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=cy(t,null,n,r):Yi(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:lo(n,i),UR(e,t,n,i,r);case 7:return Yi(e,t,t.pendingProps,r),t.child;case 8:return Yi(e,t,t.pendingProps.children,r),t.child;case 12:return Yi(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(An(oy,l._currentValue),l._currentValue=a,o!==null)if(l=o.value,a=Na(l,a)?0:(typeof n._calculateChangedBits=="function"?n._calculateChangedBits(l,a):1073741823)|0,a===0){if(o.children===i.children&&!Ji.current){t=Sl(e,t,r);break e}}else for(l=t.child,l!==null&&(l.return=t);l!==null;){var u=l.dependencies;if(u!==null){o=l.child;for(var c=u.firstContext;c!==null;){if(c.context===n&&c.observedBits&a){l.tag===1&&(c=Ts(-1,r&-r),c.tag=2,Ps(l,c)),l.lanes|=r,c=l.alternate,c!==null&&(c.lanes|=r),Qz(l.return,r),u.lanes|=r;break}c=c.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}Yi(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,a=t.pendingProps,n=a.children,dd(t,r),i=Ha(i,a.unstable_observedBits),n=n(i),t.flags|=1,Yi(e,t,n,r),t.child;case 14:return i=t.type,a=lo(i,t.pendingProps),a=lo(i.type,a),jR(e,t,i,a,n,r);case 15:return fU(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:lo(n,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ea(n)?(e=!0,P1(t)):e=!1,dd(t,r),eU(t,n,i),I5(t,n,i,r),D5(null,t,n,!0,e,r);case 19:return XR(e,t,r);case 23:return K$(e,t,r);case 24:return K$(e,t,r)}throw Error(yt(156,t.tag))};function ine(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 La(e,t,r,n){return new ine(e,t,r,n)}function LP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ane(e){if(typeof e=="function")return LP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===bb)return 11;if(e===$b)return 14}return 2}function Ds(e,t){var r=e.alternate;return r===null?(r=La(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 k1(e,t,r,n,i,a){var o=2;if(n=e,typeof e=="function")LP(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case ms:return md(r.children,i,a,t);case nz:o=8,i|=16;break;case JT:o=8,i|=1;break;case uv:return e=La(12,r,t,i|8),e.elementType=uv,e.type=uv,e.lanes=a,e;case cv:return e=La(13,r,t,i),e.type=cv,e.elementType=cv,e.lanes=a,e;case Q1:return e=La(19,r,t,i),e.elementType=Q1,e.lanes=a,e;case aP:return DP(r,i,a,t);case f5:return e=La(24,r,t,i),e.elementType=f5,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case eP:o=10;break e;case tP:o=9;break e;case bb:o=11;break e;case $b:o=14;break e;case rP:o=16,n=null;break e;case nP:o=22;break e}throw Error(yt(130,e==null?e:typeof e,""))}return t=La(o,r,t,i),t.elementType=e,t.type=n,t.lanes=a,t}function md(e,t,r,n){return e=La(7,e,n,t),e.lanes=r,e}function DP(e,t,r,n){return e=La(23,e,n,t),e.elementType=aP,e.lanes=r,e}function X$(e,t,r){return e=La(6,e,null,t),e.lanes=r,e}function Q$(e,t,r){return t=La(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function one(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=k$(0),this.expirationTimes=k$(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=k$(0),this.mutableSourceEagerHydrationData=null}function lne(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Uu,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function by(e,t,r,n){var i=t.current,a=ga(),o=Ms(i);e:if(r){r=r._reactInternals;t:{if(_c(r)!==r||r.tag!==1)throw Error(yt(170));var l=r;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(ea(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(l!==null);throw Error(yt(171))}if(r.tag===1){var u=r.type;if(ea(u)){r=Gz(r,u,l);break e}}r=l}else r=Ns;return t.context===null?t.context=r:t.pendingContext=r,t=Ts(a,o),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),Ps(i,t),Os(i,o,a),o}function Z$(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 aI(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function BP(e,t){aI(e,t),(e=e.alternate)&&aI(e,t)}function sne(){return null}function zP(e,t,r){var n=r!=null&&r.hydrationOptions!=null&&r.hydrationOptions.mutableSources||null;if(r=new one(e,t,r!=null&&r.hydrate===!0),t=La(3,null,null,t===2?7:t===1?3:0),r.current=t,t.stateNode=r,SP(t),e[Yd]=r.current,Bz(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}zP.prototype.render=function(e){by(e,this._internalRoot,null,null)};zP.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;by(null,e,null,function(){t[Yd]=null})};function ym(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function une(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 zP(e,0,t?{hydrate:!0}:void 0)}function Ob(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 c=Z$(o);l.call(c)}}by(t,o,e,i)}else{if(a=r._reactRootContainer=une(r,n),o=a._internalRoot,typeof i=="function"){var u=i;i=function(){var c=Z$(o);u.call(c)}}xU(function(){by(t,o,e,i)})}return Z$(o)}yz=function(e){if(e.tag===13){var t=ga();Os(e,4,t),BP(e,4)}};cP=function(e){if(e.tag===13){var t=ga();Os(e,67108864,t),BP(e,67108864)}};bz=function(e){if(e.tag===13){var t=ga(),r=Ms(e);Os(e,r,t),BP(e,r)}};$z=function(e,t){return t()};x5=function(e,t,r){switch(t){case"input":if(p5(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=Ab(n);if(!i)throw Error(yt(90));az(n),p5(n,i)}}}break;case"textarea":lz(e,r);break;case"select":t=r.value,t!=null&&sd(e,!!r.multiple,t,!1)}};lP=$U;hz=function(e,t,r,n,i){var a=lr;lr|=4;try{return nc(98,e.bind(null,t,r,n,i))}finally{lr=a,lr===0&&(Zd(),jo())}};sP=function(){!(lr&49)&&(Yre(),Ks())};vz=function(e,t){var r=lr;lr|=2;try{return e(t)}finally{lr=r,lr===0&&(Zd(),jo())}};function TU(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ym(t))throw Error(yt(200));return lne(e,t,null,r)}var cne={Events:[vm,Yf,Ab,dz,pz,Ks,{current:!1}]},Mh={findFiberByHostInstance:Hu,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},fne={bundleType:Mh.bundleType,version:Mh.version,rendererPackageName:Mh.rendererPackageName,rendererConfig:Mh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:wc.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=gz(e),e===null?null:e.stateNode},findFiberByHostInstance:Mh.findFiberByHostInstance||sne,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Eg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Eg.isDisabled&&Eg.supportsFiber)try{$P=Eg.inject(fne),Xu=Eg}catch{}}Wa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cne;Wa.createPortal=TU;Wa.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(yt(188)):Error(yt(268,Object.keys(e)));return e=gz(t),e=e===null?null:e.stateNode,e};Wa.flushSync=function(e,t){var r=lr;if(r&48)return e(t);lr|=1;try{if(e)return nc(99,e.bind(null,t))}finally{lr=r,jo()}};Wa.hydrate=function(e,t,r){if(!ym(t))throw Error(yt(200));return Ob(null,e,t,!0,r)};Wa.render=function(e,t,r){if(!ym(t))throw Error(yt(200));return Ob(null,e,t,!1,r)};Wa.unmountComponentAtNode=function(e){if(!ym(e))throw Error(yt(40));return e._reactRootContainer?(xU(function(){Ob(null,null,e,!1,function(){e._reactRootContainer=null,e[Yd]=null})}),!0):!1};Wa.unstable_batchedUpdates=$U;Wa.unstable_createPortal=function(e,t){return TU(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};Wa.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!ym(r))throw Error(yt(200));if(e==null||e._reactInternals===void 0)throw Error(yt(38));return Ob(e,t,r,!1,n)};Wa.version="17.0.2";function PU(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(PU)}catch(e){console.error(e)}}PU(),JB.exports=Wa;var Rb=JB.exports;const Zf=$a(Rb);function MU(e){return null}MU.getCollectionNode=function*(t,r){let{childItems:n,title:i,children:a}=t,o=t.title||t.children,l=t.textValue||(typeof o=="string"?o:"")||t["aria-label"]||"";!l&&!(r!=null&&r.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:o,textValue:l,"aria-label":t["aria-label"],hasChildNodes:dne(t),*childNodes(){if(n)for(let u of n)yield{type:"item",value:u};else if(i){let u=[];D.Children.forEach(a,c=>{u.push({type:"item",element:c})}),yield*u}}}};function dne(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&D.Children.count(e.children)>0)}let pne=MU;class hne{build(t,r){return this.context=r,oI(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:r,items:n}=t;if(typeof r=="function"){if(!n)throw new Error("props.children was a function but props.items is missing");for(let i of t.items)yield*this.getFullNode({value:i},{renderer:r})}else{let i=[];D.Children.forEach(r,o=>{i.push(o)});let a=0;for(let o of i){let l=this.getFullNode({element:o,index:a},{});for(let u of l)a++,yield u}}}getKey(t,r,n,i){if(t.key!=null)return t.key;if(r.type==="cell"&&r.key!=null)return`${i}${r.key}`;let a=r.value;if(a!=null){var o;let l=(o=a.key)!==null&&o!==void 0?o:a.id;if(l==null)throw new Error("No key found for item");return l}return i?`${i}.${r.index}`:`$.${r.index}`}getChildState(t,r){return{renderer:r.renderer||t.renderer}}*getFullNode(t,r,n,i){let a=t.element;if(!a&&t.value&&r&&r.renderer){let u=this.cache.get(t.value);if(u&&(!u.shouldInvalidate||!u.shouldInvalidate(this.context))){u.index=t.index,u.parentKey=i?i.key:null,yield u;return}a=r.renderer(t.value)}if(D.isValidElement(a)){let u=a.type;if(typeof u!="function"&&typeof u.getCollectionNode!="function"){let p=typeof a.type=="function"?a.type.name:a.type;throw new Error(`Unknown element <${p}> in collection.`)}let c=u.getCollectionNode(a.props,this.context),d=t.index,h=c.next();for(;!h.done&&h.value;){let p=h.value;t.index=d;let v=p.key;v||(v=p.element?null:this.getKey(a,t,r,n));let S=[...this.getFullNode({...p,key:v,index:d,wrapper:vne(t.wrapper,p.wrapper)},this.getChildState(r,p),n?`${n}${a.key}`:a.key,i)];for(let g of S){if(g.value=p.value||t.value,g.value&&this.cache.set(g.value,g),t.type&&g.type!==t.type)throw new Error(`Unsupported type <${J$(g.type)}> in <${J$(i.type)}>. Only <${J$(t.type)}> is supported.`);d++,yield g}h=c.next(S)}return}if(t.key==null)return;let o=this,l={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:t.value,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:oI(function*(){if(!t.hasChildNodes)return;let u=0;for(let c of t.childNodes()){c.key!=null&&(c.key=`${l.key}${c.key}`),c.index=u;let d=o.getFullNode(c,o.getChildState(r,c),l.key,l);for(let h of d)u++,yield h}})};yield l}constructor(){this.cache=new WeakMap}}function oI(e){let t=[],r=null;return{*[Symbol.iterator](){for(let n of t)yield n;r||(r=e());for(let n of r)t.push(n),yield n}}}function vne(e,t){if(e&&t)return r=>e(t(r));if(e)return e;if(t)return t}function J$(e){return e[0].toUpperCase()+e.slice(1)}function OU(e,t,r){let n=z.useMemo(()=>new hne,[]),{children:i,items:a,collection:o}=e;return z.useMemo(()=>{if(o)return o;let u=n.build({children:i,items:a},r);return t(u)},[n,i,a,o,r,t])}function ac(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function mne(e){return gne(e,0)}function gne(e,t){if(t<0)return;let r=0;for(let n of e){if(r===t)return n;r++}}function ex(e,t,r){if(t.parentKey===r.parentKey)return t.index-r.index;let n=[...lI(e,t),t],i=[...lI(e,r),r],a=n.slice(0,i.length).findIndex((o,l)=>o!==i[l]);return a!==-1?(t=n[a],r=i[a],t.index-r.index):n.findIndex(o=>o===r)>=0?1:(i.findIndex(o=>o===t)>=0,-1)}function lI(e,t){let r=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),r.unshift(t);return r}const sI=new WeakMap;function UP(e){let t=sI.get(e);if(t!=null)return t;t=0;let r=n=>{for(let i of n)i.type==="section"?r(ac(i,e)):t++};return r(e),sI.set(e,t),t}function bm(e,t,r){let[n,i]=z.useState(e||t),a=z.useRef(e!==void 0),o=e!==void 0;z.useEffect(()=>{let c=a.current;c!==o&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let l=o?e:n,u=z.useCallback((c,...d)=>{let h=(p,...v)=>{r&&(Object.is(l,p)||r(p,...v)),o||(l=p)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((v,...$)=>{let S=c(o?l:v,...$);return h(S,...d),o?v:S})):(o||i(c),h(c,...d))},[o,l,r]);return[l,u]}function Vv(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}const $y={prefix:String(Math.round(Math.random()*1e10)),current:0,isSSR:!1},jP=D.createContext($y);let yne=!!(typeof window<"u"&&window.document&&window.document.createElement),tx=new WeakMap;function bne(e=!1){let t=z.useContext(jP),r=z.useRef(null);if(r.current===null&&!e){var n,i;let a=(n=D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||n===void 0||(i=n.ReactCurrentOwner)===null||i===void 0?void 0:i.current;if(a){let o=tx.get(a);o==null?tx.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,tx.delete(a))}r.current=++t.current}return r.current}function $ne(e){let t=z.useContext(jP);t===$y&&!yne&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let r=bne(!!e),n=`react-aria${t.prefix}`;return e||`${n}-${r}`}function xne(e){let t=D.useId(),[r]=z.useState(Ec()),n=r?"react-aria":`react-aria${$y.prefix}`;return e||`${n}-${t}`}const wne=typeof D.useId=="function"?xne:$ne;function _ne(){return!1}function Sne(){return!0}function Ene(e){return()=>{}}function Ec(){return typeof D.useSyncExternalStore=="function"?D.useSyncExternalStore(Ene,_ne,Sne):z.useContext(jP).isSSR}function RU(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=RU(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ib(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=RU(e))&&(n&&(n+=" "),n+=t);return n}const Sr=typeof document<"u"?D.useLayoutEffect:()=>{};function HP(e){let[t,r]=z.useState(e),n=z.useRef(t),i=z.useRef(null),a=z.useCallback(()=>{let l=i.current.next();for(;!l.done&&n.current===l.value;)l=i.current.next();if(l.done){i.current=null;return}r(l.value),n.current=l.value},[r,n,i]);Sr(()=>{i.current&&a()});let o=z.useCallback(l=>{i.current=l(n.current),a()},[a,i,n]);return[t,o]}let xy=new Map;function ui(e){let[t,r]=z.useState(e),n=z.useRef(null),i=wne(t),a=z.useCallback(o=>{n.current=o},[]);return xy.set(i,a),Sr(()=>{let o=i;return()=>{xy.delete(o)}},[i]),z.useEffect(()=>{let o=n.current;o&&(n.current=null,r(o))}),i}function Ane(e,t){if(e===t)return e;let r=xy.get(e);if(r)return r(t),t;let n=xy.get(t);return n?(n(e),e):t}function Cl(e=[]){let t=ui(),[r,n]=HP(t),i=z.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return Sr(i,[t,i,...e]),r}function Kv(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}function tr(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let i in n){let a=t[i],o=n[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=Kv(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=Ib(a,o):i==="id"&&a&&o?t.id=Ane(a,o):t[i]=o!==void 0?o:a}}return t}function Cne(...e){return e.length===1?e[0]:t=>{for(let r of e)typeof r=="function"?r(t):r!=null&&(r.current=t)}}const Tne=new Set(["id"]),Pne=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Mne=/^(data-.*)$/;function Gr(e,t={}){let{labelable:r,propNames:n}=t,i={};for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(Tne.has(a)||r&&Pne.has(a)||n!=null&&n.has(a)||Mne.test(a))&&(i[a]=e[a]);return i}function xs(e){if(One())e.focus({preventScroll:!0});else{let t=Rne(e);e.focus(),Ine(t)}}let Ag=null;function One(){if(Ag==null){Ag=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return Ag=!0,!0}})}catch{}}return Ag}function Rne(e){for(var t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function Ine(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}let zf=new Map,Q5=new Set;function uI(){if(typeof window>"u")return;let e=r=>{let n=zf.get(r.target);n||(n=new Set,zf.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=zf.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),zf.delete(r.target)),zf.size===0)){for(let i of Q5)i();Q5.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?uI():document.addEventListener("DOMContentLoaded",uI));function IU(e){requestAnimationFrame(()=>{zf.size===0?e():Q5.add(e)})}function kU(){let e=z.useRef(new Map),t=z.useCallback((i,a,o,l)=>{let u=l!=null&&l.once?(...c)=>{e.current.delete(o),o(...c)}:o;e.current.set(o,{type:a,eventTarget:i,fn:u,options:l}),i.addEventListener(a,o,l)},[]),r=z.useCallback((i,a,o,l)=>{var u;let c=((u=e.current.get(o))===null||u===void 0?void 0:u.fn)||o;i.removeEventListener(a,c,l),e.current.delete(o)},[]),n=z.useCallback(()=>{e.current.forEach((i,a)=>{r(i.eventTarget,i.type,a,i.options)})},[r]);return z.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function wy(e,t){let{id:r,"aria-label":n,"aria-labelledby":i}=e;return r=ui(r),i&&n?i=[...new Set([r,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!n&&!i&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":i}}function kne(e){const t=z.useRef();return z.useMemo(()=>({get current(){return t.current},set current(r){t.current=r,typeof e=="function"?e(r):e&&(e.current=r)}}),[e])}function Fne(){return typeof window.ResizeObserver<"u"}function $m(e){const{ref:t,onResize:r}=e;z.useEffect(()=>{let n=t==null?void 0:t.current;if(n)if(Fne()){const i=new window.ResizeObserver(a=>{a.length&&r()});return i.observe(n),()=>{n&&i.unobserve(n)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,t])}function kb(e,t){Sr(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}function _y(e){for(Sy(e)&&(e=e.parentElement);e&&!Sy(e);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function Sy(e){let t=window.getComputedStyle(e);return/(auto|scroll)/.test(t.overflow+t.overflowX+t.overflowY)}let To=typeof document<"u"&&window.visualViewport;function FU(){let[e,t]=z.useState(()=>cI());return z.useEffect(()=>{let r=()=>{t(n=>{let i=cI();return i.width===n.width&&i.height===n.height?n:i})};return To?To.addEventListener("resize",r):window.addEventListener("resize",r),()=>{To?To.removeEventListener("resize",r):window.removeEventListener("resize",r)}},[]),e}function cI(){return{width:(To==null?void 0:To.width)||window.innerWidth,height:(To==null?void 0:To.height)||window.innerHeight}}let Nne=0;const rx=new Map;function Lne(e){let[t,r]=z.useState(void 0);return Sr(()=>{if(!e)return;let n=rx.get(e);if(n)r(n.element.id);else{let i=`react-aria-description-${Nne++}`;r(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),n={refCount:0,element:a},rx.set(e,n)}return n.refCount++,()=>{--n.refCount===0&&(n.element.remove(),rx.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function GP(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function WP(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function xm(){return WP(/^Mac/i)}function Dne(){return WP(/^iPhone/i)}function Bne(){return WP(/^iPad/i)||xm()&&navigator.maxTouchPoints>1}function Fb(){return Dne()||Bne()}function F1(){return xm()||Fb()}function zne(){return GP(/AppleWebKit/i)&&!Une()}function Une(){return GP(/Chrome/i)}function jne(){return GP(/Android/i)}function Da(e){const t=z.useRef(null);return Sr(()=>{t.current=e},[e]),z.useCallback((...r)=>{const n=t.current;return n(...r)},[])}function Hne(e,t,r,n){let i=Da(r),a=r==null;z.useEffect(()=>{if(a)return;let o=e.current;return o.addEventListener(t,i,n),()=>{o.removeEventListener(t,i,n)}},[e,t,n,a,i])}function NU(e,t){let r=fI(e,t,"left"),n=fI(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,l=e.scrollTop,{borderTopWidth:u,borderLeftWidth:c}=getComputedStyle(e),d=e.scrollLeft+parseInt(c,10),h=e.scrollTop+parseInt(u,10),p=d+e.clientWidth,v=h+e.clientHeight;r<=o?o=r-parseInt(c,10):r+i>p&&(o+=r+i-p),n<=h?l=n-parseInt(u,10):n+a>v&&(l+=n+a-v),e.scrollLeft=o,e.scrollTop=l}function fI(e,t,r){const n=r==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[n],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[n];break}t=t.offsetParent}return i}function dI(e,t){if(document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let u=_y(e);for(;e&&u&&e!==o&&u!==o;)NU(u,e),e=u,u=_y(e)}else{var r;let{left:u,top:c}=e.getBoundingClientRect();e==null||(r=e.scrollIntoView)===null||r===void 0||r.call(e,{block:"nearest"});let{left:d,top:h}=e.getBoundingClientRect();if(Math.abs(u-d)>1||Math.abs(c-h)>1){var n,i,a;t==null||(n=t.containingElement)===null||n===void 0||(i=n.scrollIntoView)===null||i===void 0||i.call(n,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function Z5(e){return e.mozInputSource===0&&e.isTrusted?!0:jne()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Gne(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function LU(e,t,r){let n=z.useRef(t),i=Da(()=>{r&&r(n.current)});z.useEffect(()=>{var a;let o=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return o==null||o.addEventListener("reset",i),()=>{o==null||o.removeEventListener("reset",i)}},[e,i])}class Wne{getStringForLocale(t,r){let n=this.strings[r];n||(n=Vne(r,this.strings,this.defaultLocale),this.strings[r]=n);let i=n[t];if(!i)throw new Error(`Could not find intl message ${t} in ${r} locale`);return i}constructor(t,r="en-US"){this.strings={...t},this.defaultLocale=r}}function Vne(e,t,r="en-US"){if(t[e])return t[e];let n=Kne(e);if(t[n])return t[n];for(let i in t)if(i.startsWith(n+"-"))return t[i];return t[r]}function Kne(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const pI=new Map,hI=new Map;class qne{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let i=r["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+n,o=pI.get(a);o||(o=new Intl.PluralRules(this.locale,{type:n}),pI.set(a,o));let l=o.select(t);return i=r[l]||r.other,typeof i=="function"?i():i}number(t){let r=hI.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),hI.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}function Yne(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xne(e,t,r){Yne(e,t),t.set(e,r)}let nx=new Map,J5=!1;try{J5=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Ey=!1;try{Ey=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const DU={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Qne{format(t){let r="";if(!J5&&this.options.signDisplay!=null?r=Jne(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!Ey){var n;let{unit:i,unitDisplay:a="short",locale:o}=this.resolvedOptions(),l=(n=DU[i])===null||n===void 0?void 0:n[a];r+=l[o]||l.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(r);return[...n.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!J5&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Ey&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=Zne(t,r),this.options=r}}function Zne(e,t={}){let{numberingSystem:r}=t;if(r&&e.indexOf("-u-nu-")===-1&&(e=`${e}-u-nu-${r}`),t.style==="unit"&&!Ey){var n;let{unit:o,unitDisplay:l="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=DU[o])===null||n===void 0)&&n[l]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((o,l)=>o[0]<l[0]?-1:1).join():"");if(nx.has(i))return nx.get(i);let a=new Intl.NumberFormat(e,t);return nx.set(i,a),a}function Jne(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let i=e.format(-r),a=e.format(r),o=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(o,"+").replace("!!!",a)}else return e.format(r)}}const eie=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),tie=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function BU(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize().script;return eie.has(r)}let t=e.split("-")[0];return tie.has(t)}function zU(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:BU(e)?"rtl":"ltr"}}let e_=zU(),rv=new Set;function vI(){e_=zU();for(let e of rv)e(e_)}function UU(){let e=Ec(),[t,r]=z.useState(e_);return z.useEffect(()=>(rv.size===0&&window.addEventListener("languagechange",vI),rv.add(r),()=>{rv.delete(r),rv.size===0&&window.removeEventListener("languagechange",vI)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const jU=D.createContext(null);function rie(e){let{locale:t,children:r}=e,n=UU(),i=t?{locale:t,direction:BU(t)?"rtl":"ltr"}:n;return D.createElement(jU.Provider,{value:i},r)}function wa(){let e=UU();return z.useContext(jU)||e}const mI=new WeakMap;function nie(e){let t=mI.get(e);return t||(t=new Wne(e),mI.set(e,t)),t}function Va(e){let{locale:t}=wa(),r=z.useMemo(()=>nie(e),[e]);return z.useMemo(()=>new qne(t,r),[t,r])}function iie(e={}){let{locale:t}=wa();return z.useMemo(()=>new Qne(t,e),[t,e])}let ix=new Map;function VP(e){let{locale:t}=wa(),r=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(ix.has(r))return ix.get(r);let n=new Intl.Collator(t,e);return ix.set(r,n),n}function HU(e){let t=VP({usage:"search",...e}),r=z.useCallback((a,o)=>o.length===0?!0:(a=a.normalize("NFC"),o=o.normalize("NFC"),t.compare(a.slice(0,o.length),o)===0),[t]),n=z.useCallback((a,o)=>o.length===0?!0:(a=a.normalize("NFC"),o=o.normalize("NFC"),t.compare(a.slice(-o.length),o)===0),[t]),i=z.useCallback((a,o)=>{if(o.length===0)return!0;a=a.normalize("NFC"),o=o.normalize("NFC");let l=0,u=o.length;for(;l+u<=a.length;l++){let c=a.slice(l,l+u);if(t.compare(o,c)===0)return!0}return!1},[t]);return z.useMemo(()=>({startsWith:r,endsWith:n,contains:i}),[r,n,i])}let Cg=!1;function Le(e,...t){let r=[];for(let n of t)if(typeof n=="object"&&n){let i={};for(let a in n)e[a]&&(i[e[a]]=n[a]),e[a]||(i[a]=n[a]);r.push(i)}else typeof n=="string"?(e[n]&&r.push(e[n]),e[n]||r.push(n)):r.push(n);return Ib(...r)}function t_(e){let t=typeof window<"u"&&typeof window.matchMedia=="function",[r,n]=z.useState(()=>t?window.matchMedia(e).matches:!1);return z.useEffect(()=>{if(!t)return;let a=window.matchMedia(e),o=l=>{n(l.matches)};return a.addListener(o),()=>{a.removeListener(o)}},[t,e]),Ec()?!1:r}function KP(e){return{UNSAFE_getDOMNode(){return e.current}}}function GU(e,t=e){return{...KP(e),focus(){t.current&&t.current.focus()}}}function Bn(e){let t=z.useRef(null);return z.useImperativeHandle(e,()=>KP(t)),t}function Jd(e,t){let r=z.useRef(null);return z.useImperativeHandle(e,()=>GU(r,t)),r}function Jf(e){return{get current(){return e.current&&e.current.UNSAFE_getDOMNode()}}}function gI(e){return z.useMemo(()=>Jf(e),[e])}const qP=D.createContext(null);qP.displayName="BreakpointContext";function aie(e){let{children:t,matchedBreakpoints:r}=e;return D.createElement(qP.Provider,{value:{matchedBreakpoints:r}},t)}function oie(e){let t=Object.entries(e).sort(([,u],[,c])=>c-u),r=t.map(([,u])=>`(min-width: ${u}px)`),n=typeof window<"u"&&typeof window.matchMedia=="function",i=()=>{let u=[];for(let c in r){let d=r[c];window.matchMedia(d).matches&&u.push(t[c][0])}return u.push("base"),u},[a,o]=z.useState(()=>n?i():["base"]);return z.useEffect(()=>{if(!n)return;let u=()=>{const c=i();o(d=>d.length!==c.length||d.some((h,p)=>h!==c[p])?[...c]:d)};return window.addEventListener("resize",u),()=>{window.removeEventListener("resize",u)}},[n]),Ec()?["base"]:a}function WU(){return z.useContext(qP)}const Nb={margin:["margin",Rr],marginStart:[qi("marginLeft","marginRight"),Rr],marginEnd:[qi("marginRight","marginLeft"),Rr],marginTop:["marginTop",Rr],marginBottom:["marginBottom",Rr],marginX:[["marginLeft","marginRight"],Rr],marginY:[["marginTop","marginBottom"],Rr],width:["width",Rr],height:["height",Rr],minWidth:["minWidth",Rr],minHeight:["minHeight",Rr],maxWidth:["maxWidth",Rr],maxHeight:["maxHeight",Rr],isHidden:["display",fie],alignSelf:["alignSelf",Xn],justifySelf:["justifySelf",Xn],position:["position",ax],zIndex:["zIndex",ax],top:["top",Rr],bottom:["bottom",Rr],start:[qi("left","right"),Rr],end:[qi("right","left"),Rr],left:["left",Rr],right:["right",Rr],order:["order",ax],flex:["flex",die],flexGrow:["flexGrow",Xn],flexShrink:["flexShrink",Xn],flexBasis:["flexBasis",Xn],gridArea:["gridArea",Xn],gridColumn:["gridColumn",Xn],gridColumnEnd:["gridColumnEnd",Xn],gridColumnStart:["gridColumnStart",Xn],gridRow:["gridRow",Xn],gridRowEnd:["gridRowEnd",Xn],gridRowStart:["gridRowStart",Xn]};({...Nb,borderStartWidth:qi("borderLeftWidth","borderRightWidth"),borderEndWidth:qi("borderRightWidth","borderLeftWidth"),borderStartColor:qi("borderLeftColor","borderRightColor"),borderEndColor:qi("borderRightColor","borderLeftColor"),borderTopStartRadius:qi("borderTopLeftRadius","borderTopRightRadius"),borderTopEndRadius:qi("borderTopRightRadius","borderTopLeftRadius"),borderBottomStartRadius:qi("borderBottomLeftRadius","borderBottomRightRadius"),borderBottomEndRadius:qi("borderBottomRightRadius","borderBottomLeftRadius"),paddingStart:qi("paddingLeft","paddingRight"),paddingEnd:qi("paddingRight","paddingLeft")});const yI={borderWidth:"borderStyle",borderLeftWidth:"borderLeftStyle",borderRightWidth:"borderRightStyle",borderTopWidth:"borderTopStyle",borderBottomWidth:"borderBottomStyle"};function qi(e,t){return r=>r==="rtl"?t:e}const lie=/(%|px|em|rem|vw|vh|auto|cm|mm|in|pt|pc|ex|ch|rem|vmin|vmax|fr)$/,sie=/^\s*\w+\(/,uie=/(static-)?size-\d+|single-line-(height|width)/g;function Rr(e){return typeof e=="number"?e+"px":lie.test(e)?e:sie.test(e)?e.replace(uie,"var(--spectrum-global-dimension-$&, var(--spectrum-alias-$&))"):`var(--spectrum-global-dimension-${e}, var(--spectrum-alias-${e}))`}function Sf(e,t){return e=YP(e,t),Rr(e)}function VU(e,t="default",r=5){return r>5?`var(--spectrum-${e}, var(--spectrum-semantic-${e}-color-${t}))`:`var(--spectrum-legacy-color-${e}, var(--spectrum-global-color-${e}, var(--spectrum-semantic-${e}-color-${t})))`}function cie(e,t=5){return`var(--spectrum-alias-background-color-${e}, ${VU(e,"background",t)})`}function pl(e,t=5){return e==="default"?"var(--spectrum-alias-border-color)":`var(--spectrum-alias-border-color-${e}, ${VU(e,"border",t)})`}function hl(e){return`var(--spectrum-alias-border-size-${e})`}function vl(e){return`var(--spectrum-alias-border-radius-${e})`}function fie(e){return e?"none":void 0}function ax(e){return e}function die(e){return typeof e=="boolean"?e?"1":void 0:""+e}function pie(e,t,r,n){let i={};for(let a in e){let o=t[a];if(!o||e[a]==null)continue;let[l,u]=o;typeof l=="function"&&(l=l(r));let c=YP(e[a],n),d=u(c,e.colorVersion);if(Array.isArray(l))for(let h of l)i[h]=d;else i[l]=d}for(let a in yI)i[a]&&(i[yI[a]]="solid",i.boxSizing="border-box");return i}function Dr(e,t=Nb,r={}){let{UNSAFE_className:n,UNSAFE_style:i,...a}=e,o=WU(),{direction:l}=wa(),{matchedBreakpoints:u=(o==null?void 0:o.matchedBreakpoints)||["base"]}=r,c=pie(e,t,l,u),d={...i,...c};a.className&&console.warn("The className prop is unsafe and is unsupported in React Spectrum v3. Please use style props with Spectrum variables, or UNSAFE_className if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes."),a.style&&console.warn("The style prop is unsafe and is unsupported in React Spectrum v3. Please use style props with Spectrum variables, or UNSAFE_style if you absolutely must do something custom. Note that this may break in future versions due to DOM structure changes.");let h={style:d,className:n};return YP(e.isHidden,u)&&(h.hidden=!0),{styleProps:h}}function Xn(e){return e}function YP(e,t){if(e&&typeof e=="object"&&!Array.isArray(e)){for(let r=0;r<t.length;r++){let n=t[r];if(e[n]!=null)return e[n]}return e.base}return e}let Ay=D.createContext(null);function _a(e,t){let r=e.slot||t,{[r]:n={}}=z.useContext(Ay)||{};return tr(e,tr(n,{id:e.id}))}function Ka(e){let t=z.useContext(Ay)||{},{slots:r={},children:n}=e,i=z.useMemo(()=>Object.keys(t).concat(Object.keys(r)).reduce((a,o)=>({...a,[o]:tr(t[o]||{},r[o]||{})}),{}),[t,r]);return D.createElement(Ay.Provider,{value:i},n)}function wm(e){let{children:t,...r}=e,n=t;return D.Children.toArray(t).length<=1&&typeof t=="function"&&(n=D.cloneElement(D.Children.only(t),r)),D.createElement(Ay.Provider,{value:{}},n)}function ed(e,t){let[r,n]=z.useState(!0);return Sr(()=>{n(!!(t.current&&t.current.querySelector(e)))},[n,e,t]),r}const hie=700;function XP(){return Ec()||typeof window>"u"?!1:window.screen.width<=hie}function vie(e,t){return t.get?t.get.call(e):t.value}function KU(e,t,r){if(!t.has(e))throw new TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function mie(e,t){var r=KU(e,t,"get");return vie(e,r)}function gie(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}function bI(e,t,r){var n=KU(e,t,"set");return gie(e,n,r),r}let td="default",r_="",N1=new WeakMap;function $I(e){Fb()?(td==="default"&&(r_=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),td="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(N1.set(e,e.style.userSelect),e.style.userSelect="none")}function Tg(e){if(Fb()){if(td!=="disabled")return;td="restoring",setTimeout(()=>{IU(()=>{td==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=r_||""),r_="",td="default")})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&N1.has(e)){let t=N1.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),N1.delete(e)}}const Cy=D.createContext(null);Cy.displayName="PressResponderContext";function yie(e){let t=z.useContext(Cy);if(t){let{register:r,...n}=t;e=tr(n,e),r()}return kb(t,e.ref),e}var Pg=new WeakMap;class Mg{continuePropagation(){bI(this,Pg,!1)}get shouldStopPropagation(){return mie(this,Pg)}constructor(t,r,n){Xne(this,Pg,{writable:!0,value:void 0}),bI(this,Pg,!0),this.type=t,this.pointerType=r,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}}function _m(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:i,onPressUp:a,isDisabled:o,isPressed:l,preventFocusOnPress:u,shouldCancelOnPointerExit:c,allowTextSelectionOnPress:d,ref:h,...p}=yie(e),[v,$]=z.useState(!1),S=z.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:g,removeAllGlobalListeners:b}=kU(),_=Da((I,j)=>{let he=S.current;if(o||he.didFirePressStart)return;let q=!0;if(n){let fe=new Mg("pressstart",j,I);n(fe),q=fe.shouldStopPropagation}return r&&r(!0),he.didFirePressStart=!0,$(!0),q}),E=Da((I,j,he=!0)=>{let q=S.current;if(!q.didFirePressStart)return;q.ignoreClickAfterPress=!0,q.didFirePressStart=!1;let fe=!0;if(i){let ne=new Mg("pressend",j,I);i(ne),fe=ne.shouldStopPropagation}if(r&&r(!1),$(!1),t&&he&&!o){let ne=new Mg("press",j,I);t(ne),fe&&(fe=ne.shouldStopPropagation)}return fe}),A=Da((I,j)=>{if(!o){if(a){let he=new Mg("pressup",j,I);return a(he),he.shouldStopPropagation}return!0}}),M=Da(I=>{let j=S.current;j.isPressed&&(j.isOverTarget&&E(ml(j.target,I),j.pointerType,!1),j.isPressed=!1,j.isOverTarget=!1,j.activePointerId=null,j.pointerType=null,b(),d||Tg(j.target))}),N=Da(I=>{c&&M(I)}),U=z.useMemo(()=>{let I=S.current,j={onKeyDown(q){if(ox(q.nativeEvent,q.currentTarget)&&q.currentTarget.contains(q.target)){wI(q.target,q.key)&&q.preventDefault();let fe=!0;!I.isPressed&&!q.repeat&&(I.target=q.currentTarget,I.isPressed=!0,fe=_(q,"keyboard"),g(document,"keyup",he,!1)),fe&&q.stopPropagation()}else q.key==="Enter"&&n_(q.currentTarget)&&q.stopPropagation()},onKeyUp(q){ox(q.nativeEvent,q.currentTarget)&&!q.repeat&&q.currentTarget.contains(q.target)&&A(ml(I.target,q),"keyboard")},onClick(q){if(!(q&&!q.currentTarget.contains(q.target))&&q&&q.button===0){let fe=!0;if(o&&q.preventDefault(),!I.ignoreClickAfterPress&&!I.ignoreEmulatedMouseEvents&&(I.pointerType==="virtual"||Z5(q.nativeEvent))){!o&&!u&&xs(q.currentTarget);let ne=_(q,"virtual"),ce=A(q,"virtual"),De=E(q,"virtual");fe=ne&&ce&&De}I.ignoreEmulatedMouseEvents=!1,I.ignoreClickAfterPress=!1,fe&&q.stopPropagation()}}},he=q=>{if(I.isPressed&&ox(q,I.target)){wI(q.target,q.key)&&q.preventDefault(),I.isPressed=!1;let fe=q.target,ne=E(ml(I.target,q),"keyboard",I.target.contains(fe));b(),ne&&q.stopPropagation(),I.target instanceof HTMLElement&&I.target.contains(fe)&&(n_(I.target)||I.target.getAttribute("role")==="link")&&I.target.click()}};if(typeof PointerEvent<"u"){j.onPointerDown=ce=>{if(ce.button!==0||!ce.currentTarget.contains(ce.target))return;if(Gne(ce.nativeEvent)){I.pointerType="virtual";return}lx(ce.currentTarget)&&ce.preventDefault(),I.pointerType=ce.pointerType;let De=!0;I.isPressed||(I.isPressed=!0,I.isOverTarget=!0,I.activePointerId=ce.pointerId,I.target=ce.currentTarget,!o&&!u&&xs(ce.currentTarget),d||$I(I.target),De=_(ce,I.pointerType),g(document,"pointermove",q,!1),g(document,"pointerup",fe,!1),g(document,"pointercancel",ne,!1)),De&&ce.stopPropagation()},j.onMouseDown=ce=>{ce.currentTarget.contains(ce.target)&&ce.button===0&&(lx(ce.currentTarget)&&ce.preventDefault(),ce.stopPropagation())},j.onPointerUp=ce=>{!ce.currentTarget.contains(ce.target)||I.pointerType==="virtual"||ce.button===0&&Ef(ce,ce.currentTarget)&&A(ce,I.pointerType||ce.pointerType)};let q=ce=>{ce.pointerId===I.activePointerId&&(Ef(ce,I.target)?I.isOverTarget||(I.isOverTarget=!0,_(ml(I.target,ce),I.pointerType)):I.isOverTarget&&(I.isOverTarget=!1,E(ml(I.target,ce),I.pointerType,!1),N(ce)))},fe=ce=>{ce.pointerId===I.activePointerId&&I.isPressed&&ce.button===0&&(Ef(ce,I.target)?E(ml(I.target,ce),I.pointerType):I.isOverTarget&&E(ml(I.target,ce),I.pointerType,!1),I.isPressed=!1,I.isOverTarget=!1,I.activePointerId=null,I.pointerType=null,b(),d||Tg(I.target))},ne=ce=>{M(ce)};j.onDragStart=ce=>{ce.currentTarget.contains(ce.target)&&M(ce)}}else{j.onMouseDown=ne=>{if(ne.button!==0||!ne.currentTarget.contains(ne.target))return;if(lx(ne.currentTarget)&&ne.preventDefault(),I.ignoreEmulatedMouseEvents){ne.stopPropagation();return}I.isPressed=!0,I.isOverTarget=!0,I.target=ne.currentTarget,I.pointerType=Z5(ne.nativeEvent)?"virtual":"mouse",!o&&!u&&xs(ne.currentTarget),_(ne,I.pointerType)&&ne.stopPropagation(),g(document,"mouseup",q,!1)},j.onMouseEnter=ne=>{if(!ne.currentTarget.contains(ne.target))return;let ce=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&(I.isOverTarget=!0,ce=_(ne,I.pointerType)),ce&&ne.stopPropagation()},j.onMouseLeave=ne=>{if(!ne.currentTarget.contains(ne.target))return;let ce=!0;I.isPressed&&!I.ignoreEmulatedMouseEvents&&(I.isOverTarget=!1,ce=E(ne,I.pointerType,!1),N(ne)),ce&&ne.stopPropagation()},j.onMouseUp=ne=>{ne.currentTarget.contains(ne.target)&&!I.ignoreEmulatedMouseEvents&&ne.button===0&&A(ne,I.pointerType)};let q=ne=>{if(ne.button===0){if(I.isPressed=!1,b(),I.ignoreEmulatedMouseEvents){I.ignoreEmulatedMouseEvents=!1;return}Ef(ne,I.target)?E(ml(I.target,ne),I.pointerType):I.isOverTarget&&E(ml(I.target,ne),I.pointerType,!1),I.isOverTarget=!1}};j.onTouchStart=ne=>{if(!ne.currentTarget.contains(ne.target))return;let ce=bie(ne.nativeEvent);if(!ce)return;I.activePointerId=ce.identifier,I.ignoreEmulatedMouseEvents=!0,I.isOverTarget=!0,I.isPressed=!0,I.target=ne.currentTarget,I.pointerType="touch",!o&&!u&&xs(ne.currentTarget),d||$I(I.target),_(ne,I.pointerType)&&ne.stopPropagation(),g(window,"scroll",fe,!0)},j.onTouchMove=ne=>{if(!ne.currentTarget.contains(ne.target))return;if(!I.isPressed){ne.stopPropagation();return}let ce=xI(ne.nativeEvent,I.activePointerId),De=!0;ce&&Ef(ce,ne.currentTarget)?I.isOverTarget||(I.isOverTarget=!0,De=_(ne,I.pointerType)):I.isOverTarget&&(I.isOverTarget=!1,De=E(ne,I.pointerType,!1),N(ne)),De&&ne.stopPropagation()},j.onTouchEnd=ne=>{if(!ne.currentTarget.contains(ne.target))return;if(!I.isPressed){ne.stopPropagation();return}let ce=xI(ne.nativeEvent,I.activePointerId),De=!0;ce&&Ef(ce,ne.currentTarget)?(A(ne,I.pointerType),De=E(ne,I.pointerType)):I.isOverTarget&&(De=E(ne,I.pointerType,!1)),De&&ne.stopPropagation(),I.isPressed=!1,I.activePointerId=null,I.isOverTarget=!1,I.ignoreEmulatedMouseEvents=!0,d||Tg(I.target),b()},j.onTouchCancel=ne=>{ne.currentTarget.contains(ne.target)&&(ne.stopPropagation(),I.isPressed&&M(ne))};let fe=ne=>{I.isPressed&&ne.target.contains(I.target)&&M({currentTarget:I.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};j.onDragStart=ne=>{ne.currentTarget.contains(ne.target)&&M(ne)}}return j},[g,o,u,b,d,M,N,E,_,A]);return z.useEffect(()=>()=>{d||Tg(S.current.target)},[d]),{isPressed:l||v,pressProps:tr(p,U)}}function n_(e){return e.tagName==="A"&&e.hasAttribute("href")}function ox(e,t){const{key:r,code:n}=e,i=t,a=i.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(i instanceof HTMLInputElement&&!qU(i,r)||i instanceof HTMLTextAreaElement||i.isContentEditable)&&(!n_(i)||a==="button"&&r!=="Enter")&&!(a==="link"&&r!=="Enter")}function bie(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function xI(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const i=r[n];if(i.identifier===t)return i}return null}function ml(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function $ie(e){let t=e.width/2||e.radiusX||0,r=e.height/2||e.radiusY||0;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function xie(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function Ef(e,t){let r=t.getBoundingClientRect(),n=$ie(e);return xie(r,n)}function lx(e){return!(e instanceof HTMLElement)||!e.draggable}function wI(e,t){return e instanceof HTMLInputElement?!qU(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!0}const wie=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function qU(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":wie.has(e.type)}const Sm=D.forwardRef(({children:e,...t},r)=>{let n=z.useRef(!1),i=z.useContext(Cy),a=tr(i||{},{...t,ref:r||(i==null?void 0:i.ref),register(){n.current=!0,i&&i.register()}});return kb(i,r),z.useEffect(()=>{n.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),n.current=!0)},[]),D.createElement(Cy.Provider,{value:a},e)});class _ie{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function YU(e){let t=z.useRef({isFocused:!1,observer:null});Sr(()=>{const n=t.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]);let r=Da(n=>{e==null||e(n)});return z.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=n.target,a=o=>{t.current.isFocused=!1,i.disabled&&r(new _ie("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){t.current.observer.disconnect();let o=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[r])}function XU(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:i}=e;const a=z.useCallback(u=>{if(u.target===u.currentTarget)return n&&n(u),i&&i(!1),!0},[n,i]),o=YU(a),l=z.useCallback(u=>{u.target===u.currentTarget&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o(u))},[i,r,o]);return{focusProps:{onFocus:!t&&(r||i||n)?l:void 0,onBlur:!t&&(n||i)?a:void 0}}}let Ac=null,i_=new Set,_I=!1,oc=!1,a_=!1;const Sie={Tab:!0,Escape:!0};function Lb(e,t){for(let r of i_)r(e,t)}function Eie(e){return!(e.metaKey||!xm()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function SI(e){oc=!0,Eie(e)&&(Ac="keyboard",Lb("keyboard",e))}function Af(e){Ac="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(oc=!0,Lb("pointer",e))}function Aie(e){Z5(e)&&(oc=!0,Ac="virtual")}function Cie(e){e.target===window||e.target===document||(!oc&&!a_&&(Ac="virtual",Lb("virtual",e)),oc=!1,a_=!1)}function Tie(){oc=!1,a_=!0}function o_(){if(typeof window>"u"||_I)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){oc=!0,e.apply(this,arguments)},document.addEventListener("keydown",SI,!0),document.addEventListener("keyup",SI,!0),document.addEventListener("click",Aie,!0),window.addEventListener("focus",Cie,!0),window.addEventListener("blur",Tie,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Af,!0),document.addEventListener("pointermove",Af,!0),document.addEventListener("pointerup",Af,!0)):(document.addEventListener("mousedown",Af,!0),document.addEventListener("mousemove",Af,!0),document.addEventListener("mouseup",Af,!0)),_I=!0}typeof document<"u"&&(document.readyState!=="loading"?o_():document.addEventListener("DOMContentLoaded",o_));function lc(){return Ac!=="pointer"}function Pd(){return Ac}function Pie(e){Ac=e,Lb(e,null)}function Mie(e,t,r){return!(e&&t==="keyboard"&&r instanceof KeyboardEvent&&!Sie[r.key])}function Oie(e,t,r){o_(),z.useEffect(()=>{let n=(i,a)=>{Mie(r==null?void 0:r.isTextInput,i,a)&&e(lc())};return i_.add(n),()=>{i_.delete(n)}},t)}function Em(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:i}=e,a=z.useRef({isFocusWithin:!1}),o=z.useCallback(c=>{a.current.isFocusWithin&&!c.currentTarget.contains(c.relatedTarget)&&(a.current.isFocusWithin=!1,r&&r(c),i&&i(!1))},[r,i,a]),l=YU(o),u=z.useCallback(c=>{!a.current.isFocusWithin&&document.activeElement===c.target&&(n&&n(c),i&&i(!0),a.current.isFocusWithin=!0,l(c))},[n,i,l]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:u,onBlur:o}}}let Ty=!1,sx=0;function l_(){Ty=!0,setTimeout(()=>{Ty=!1},50)}function EI(e){e.pointerType==="touch"&&l_()}function Rie(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",EI):document.addEventListener("touchend",l_),sx++,()=>{sx--,!(sx>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",EI):document.removeEventListener("touchend",l_))}}function ta(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:i}=e,[a,o]=z.useState(!1),l=z.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;z.useEffect(Rie,[]);let{hoverProps:u,triggerHoverEnd:c}=z.useMemo(()=>{let d=(v,$)=>{if(l.pointerType=$,i||$==="touch"||l.isHovered||!v.currentTarget.contains(v.target))return;l.isHovered=!0;let S=v.currentTarget;l.target=S,t&&t({type:"hoverstart",target:S,pointerType:$}),r&&r(!0),o(!0)},h=(v,$)=>{if(l.pointerType="",l.target=null,$==="touch"||!l.isHovered)return;l.isHovered=!1;let S=v.currentTarget;n&&n({type:"hoverend",target:S,pointerType:$}),r&&r(!1),o(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=v=>{Ty&&v.pointerType==="mouse"||d(v,v.pointerType)},p.onPointerLeave=v=>{!i&&v.currentTarget.contains(v.target)&&h(v,v.pointerType)}):(p.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=v=>{!l.ignoreEmulatedMouseEvents&&!Ty&&d(v,"mouse"),l.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=v=>{!i&&v.currentTarget.contains(v.target)&&h(v,"mouse")}),{hoverProps:p,triggerHoverEnd:h}},[t,r,n,i,l]);return z.useEffect(()=>{i&&c({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:u,isHovered:a}}function Iie(e){let{ref:t,onInteractOutside:r,isDisabled:n,onInteractOutsideStart:i}=e,a=z.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=Da(u=>{r&&Og(u,t)&&(i&&i(u),a.current.isPointerDown=!0)}),l=Da(u=>{r&&r(u)});z.useEffect(()=>{let u=a.current;if(!n)if(typeof PointerEvent<"u"){let c=d=>{u.isPointerDown&&Og(d,t)&&l(d),u.isPointerDown=!1};return document.addEventListener("pointerdown",o,!0),document.addEventListener("pointerup",c,!0),()=>{document.removeEventListener("pointerdown",o,!0),document.removeEventListener("pointerup",c,!0)}}else{let c=h=>{u.ignoreEmulatedMouseEvents?u.ignoreEmulatedMouseEvents=!1:u.isPointerDown&&Og(h,t)&&l(h),u.isPointerDown=!1},d=h=>{u.ignoreEmulatedMouseEvents=!0,u.isPointerDown&&Og(h,t)&&l(h),u.isPointerDown=!1};return document.addEventListener("mousedown",o,!0),document.addEventListener("mouseup",c,!0),document.addEventListener("touchstart",o,!0),document.addEventListener("touchend",d,!0),()=>{document.removeEventListener("mousedown",o,!0),document.removeEventListener("mouseup",c,!0),document.removeEventListener("touchstart",o,!0),document.removeEventListener("touchend",d,!0)}}},[t,n,o,l])}function Og(e,t){if(e.button>0)return!1;if(e.target){const r=e.target.ownerDocument;if(!r||!r.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function AI(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(n),t&&r.stopPropagation()}}function QP(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:AI(e.onKeyDown),onKeyUp:AI(e.onKeyUp)}}}const kie=500;function QU(e){let{isDisabled:t,onLongPressStart:r,onLongPressEnd:n,onLongPress:i,threshold:a=kie,accessibilityDescription:o}=e;const l=z.useRef(null);let{addGlobalListener:u,removeGlobalListener:c}=kU(),{pressProps:d}=_m({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(r&&r({...p,type:"longpressstart"}),l.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...p,type:"longpress"}),l.current=null},a),p.pointerType==="touch")){let v=$=>{$.preventDefault()};u(p.target,"contextmenu",v,{once:!0}),u(window,"pointerup",()=>{setTimeout(()=>{c(p.target,"contextmenu",v)},30)},{once:!0})}},onPressEnd(p){l.current&&clearTimeout(l.current),n&&(p.pointerType==="mouse"||p.pointerType==="touch")&&n({...p,type:"longpressend"})}}),h=Lne(i&&!t?o:null);return{longPressProps:tr(d,h)}}function Pl(e){if(Pd()==="virtual"){let t=document.activeElement;IU(()=>{document.activeElement===t&&document.contains(e)&&xs(e)})}else xs(e)}function Fie(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:r}=e.style,n=t!=="none"&&r!=="hidden"&&r!=="collapse";if(n){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:a,visibility:o}=i(e);n=a!=="none"&&o!=="hidden"&&o!=="collapse"}return n}function Nie(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function ZU(e,t){return e.nodeName!=="#comment"&&Fie(e)&&Nie(e,t)&&(!e.parentElement||ZU(e.parentElement,e))}const CI=D.createContext(null);let sn=null;function ep(e){let{children:t,contain:r,restoreFocus:n,autoFocus:i}=e,a=z.useRef(),o=z.useRef(),l=z.useRef([]),{parentNode:u}=z.useContext(CI)||{},c=z.useMemo(()=>new s_({scopeRef:l}),[l]);Sr(()=>{let p=u||On.root;if(On.getTreeNode(p.scopeRef)&&sn&&!My(sn,p.scopeRef)){let v=On.getTreeNode(sn);v&&(p=v)}p.addChild(c),On.addNode(c)},[c,u]),Sr(()=>{let p=On.getTreeNode(l);p.contain=r},[r]),Sr(()=>{let p=a.current.nextSibling,v=[];for(;p&&p!==o.current;)v.push(p),p=p.nextSibling;l.current=v},[t]),Hie(l,n,r),zie(l,r),Wie(l,n,r),jie(l,i),z.useEffect(()=>{if(l){let p=document.activeElement,v=null;if(Ti(p,l.current)){for(let $ of On.traverse())Ti(p,$.scopeRef.current)&&(v=$);v===On.getTreeNode(l)&&(sn=v.scopeRef)}return()=>{let $=On.getTreeNode(l).parent.scopeRef;(l===sn||My(l,sn))&&(!$||On.getTreeNode($))&&(sn=$),On.removeTreeNode(l)}}},[l]);let d=z.useMemo(()=>Lie(l),[]),h=z.useMemo(()=>({focusManager:d,parentNode:c}),[c,d]);return D.createElement(CI.Provider,{value:h},D.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,D.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function Lie(e){return{focusNext(t={}){let r=e.current,{from:n,tabbable:i,wrap:a,accept:o}=t,l=n||document.activeElement,u=r[0].previousElementSibling,c=ma(Vu(r),{tabbable:i,accept:o},r);c.currentNode=Ti(l,r)?l:u;let d=c.nextNode();return!d&&a&&(c.currentNode=u,d=c.nextNode()),d&&Qi(d,!0),d},focusPrevious(t={}){let r=e.current,{from:n,tabbable:i,wrap:a,accept:o}=t,l=n||document.activeElement,u=r[r.length-1].nextElementSibling,c=ma(Vu(r),{tabbable:i,accept:o},r);c.currentNode=Ti(l,r)?l:u;let d=c.previousNode();return!d&&a&&(c.currentNode=u,d=c.previousNode()),d&&Qi(d,!0),d},focusFirst(t={}){let r=e.current,{tabbable:n,accept:i}=t,a=ma(Vu(r),{tabbable:n,accept:i},r);a.currentNode=r[0].previousElementSibling;let o=a.nextNode();return o&&Qi(o,!0),o},focusLast(t={}){let r=e.current,{tabbable:n,accept:i}=t,a=ma(Vu(r),{tabbable:n,accept:i},r);a.currentNode=r[r.length-1].nextElementSibling;let o=a.previousNode();return o&&Qi(o,!0),o}}}const ZP=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Die=ZP.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";ZP.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Bie=ZP.join(':not([hidden]):not([tabindex="-1"]),');function Vu(e){return e[0].parentElement}function nv(e){let t=On.getTreeNode(sn);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function zie(e,t){let r=z.useRef(),n=z.useRef(null);Sr(()=>{let i=e.current;if(!t){n.current&&(cancelAnimationFrame(n.current),n.current=null);return}let a=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!nv(e))return;let c=document.activeElement,d=e.current;if(!Ti(c,d))return;let h=ma(Vu(d),{tabbable:!0},d);h.currentNode=c;let p=u.shiftKey?h.previousNode():h.nextNode();p||(h.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,p=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),p&&Qi(p,!0)},o=u=>{(!sn||My(sn,e))&&Ti(u.target,e.current)?(sn=e,r.current=u.target):nv(e)&&!Py(u.target,e)?r.current?r.current.focus():sn&&Oy(sn.current):nv(e)&&(r.current=u.target)},l=u=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{nv(e)&&!Py(document.activeElement,e)&&(sn=e,document.body.contains(u.target)?(r.current=u.target,r.current.focus()):sn&&Oy(sn.current))})};return document.addEventListener("keydown",a,!1),document.addEventListener("focusin",o,!1),i.forEach(u=>u.addEventListener("focusin",o,!1)),i.forEach(u=>u.addEventListener("focusout",l,!1)),()=>{document.removeEventListener("keydown",a,!1),document.removeEventListener("focusin",o,!1),i.forEach(u=>u.removeEventListener("focusin",o,!1)),i.forEach(u=>u.removeEventListener("focusout",l,!1))}},[e,t]),Sr(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n])}function JU(e){return Py(e)}function Ti(e,t){return t.some(r=>r.contains(e))}function Py(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:r}of On.traverse(On.getTreeNode(t)))if(Ti(e,r.current))return!0;return!1}function Uie(e){return Py(e,sn)}function My(e,t){var r;let n=(r=On.getTreeNode(t))===null||r===void 0?void 0:r.parent;for(;n;){if(n.scopeRef===e)return!0;n=n.parent}return!1}function Qi(e,t=!1){if(e!=null&&!t)try{Pl(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Oy(e,t=!0){let r=e[0].previousElementSibling,n=ma(Vu(e),{tabbable:t},e);n.currentNode=r;let i=n.nextNode();t&&!i&&(n=ma(Vu(e),{tabbable:!1},e),n.currentNode=r,i=n.nextNode()),Qi(i)}function jie(e,t){const r=D.useRef(t);z.useEffect(()=>{r.current&&(sn=e,Ti(document.activeElement,sn.current)||Oy(e.current)),r.current=!1},[e])}function Hie(e,t,r){Sr(()=>{if(t||r)return;let n=e.current,i=a=>{let o=a.target;Ti(o,e.current)?sn=e:JU(o)||(sn=null)};return document.addEventListener("focusin",i,!1),n.forEach(a=>a.addEventListener("focusin",i,!1)),()=>{document.removeEventListener("focusin",i,!1),n.forEach(a=>a.removeEventListener("focusin",i,!1))}},[e,t,r])}function Gie(e){let t=On.getTreeNode(sn);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Wie(e,t,r){const n=z.useRef(typeof document<"u"?document.activeElement:null);Sr(()=>{let i=e.current;if(!t||r)return;let a=()=>{(!sn||My(sn,e))&&Ti(document.activeElement,e.current)&&(sn=e)};return document.addEventListener("focusin",a,!1),i.forEach(o=>o.addEventListener("focusin",a,!1)),()=>{document.removeEventListener("focusin",a,!1),i.forEach(o=>o.removeEventListener("focusin",a,!1))}},[e,r]),Sr(()=>{if(!t)return;let i=a=>{if(a.key!=="Tab"||a.altKey||a.ctrlKey||a.metaKey||!nv(e))return;let o=document.activeElement;if(!Ti(o,e.current))return;let l=On.getTreeNode(e).nodeToRestore,u=ma(document.body,{tabbable:!0});u.currentNode=o;let c=a.shiftKey?u.previousNode():u.nextNode();if((!document.body.contains(l)||l===document.body)&&(l=null,On.getTreeNode(e).nodeToRestore=null),(!c||!Ti(c,e.current))&&l){u.currentNode=l;do c=a.shiftKey?u.previousNode():u.nextNode();while(Ti(c,e.current));a.preventDefault(),a.stopPropagation(),c?Qi(c,!0):JU(l)?Qi(l,!0):o.blur()}};return r||document.addEventListener("keydown",i,!0),()=>{r||document.removeEventListener("keydown",i,!0)}},[e,t,r]),Sr(()=>{if(t)return On.getTreeNode(e).nodeToRestore=n.current,()=>{let i=On.getTreeNode(e).nodeToRestore;if(t&&i&&(Ti(document.activeElement,e.current)||document.activeElement===document.body&&Gie(e))){let a=On.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let o=a.getTreeNode(e);for(;o;){if(o.nodeToRestore&&document.body.contains(o.nodeToRestore)){Qi(o.nodeToRestore);return}o=o.parent}for(o=a.getTreeNode(e);o;){if(o.scopeRef&&On.getTreeNode(o.scopeRef)){Oy(o.scopeRef.current,!0);return}o=o.parent}}})}}},[e,t])}function ma(e,t,r){let n=t!=null&&t.tabbable?Bie:Die,i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var o;return!(t==null||(o=t.from)===null||o===void 0)&&o.contains(a)?NodeFilter.FILTER_REJECT:a.matches(n)&&ZU(a)&&(!r||Ti(a,r))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}function Vie(e,t={}){return{focusNext(r={}){let n=e.current;if(!n)return;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:l=t.accept}=r,u=i||document.activeElement,c=ma(n,{tabbable:a,accept:l});n.contains(u)&&(c.currentNode=u);let d=c.nextNode();return!d&&o&&(c.currentNode=n,d=c.nextNode()),d&&Qi(d,!0),d},focusPrevious(r=t){let n=e.current;if(!n)return;let{from:i,tabbable:a=t.tabbable,wrap:o=t.wrap,accept:l=t.accept}=r,u=i||document.activeElement,c=ma(n,{tabbable:a,accept:l});if(n.contains(u))c.currentNode=u;else{let h=ux(c);return h&&Qi(h,!0),h}let d=c.previousNode();return!d&&o&&(c.currentNode=n,d=ux(c)),d&&Qi(d,!0),d},focusFirst(r=t){let n=e.current;if(!n)return;let{tabbable:i=t.tabbable,accept:a=t.accept}=r,l=ma(n,{tabbable:i,accept:a}).nextNode();return l&&Qi(l,!0),l},focusLast(r=t){let n=e.current;if(!n)return;let{tabbable:i=t.tabbable,accept:a=t.accept}=r,o=ma(n,{tabbable:i,accept:a}),l=ux(o);return l&&Qi(l,!0),l}}}function ux(e){let t,r;do r=e.lastChild(),r&&(t=r);while(r);return t}class JP{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let i=this.fastMap.get(r??null),a=new s_({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),n&&(a.nodeToRestore=n)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t),n=r.parent;for(let a of this.traverse())a!==r&&r.nodeToRestore&&a.nodeToRestore&&r.scopeRef.current&&Ti(a.nodeToRestore,r.scopeRef.current)&&(a.nodeToRestore=r.nodeToRestore);let i=r.children;n.removeChild(r),i.size>0&&i.forEach(a=>n.addChild(a)),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let r of t.children)yield*this.traverse(r)}clone(){let t=new JP;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){this.fastMap=new Map,this.root=new s_({scopeRef:null}),this.fastMap.set(null,this.root)}}class s_{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let On=new JP;function ej(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,i=z.useRef({isFocused:!1,isFocusVisible:t||lc()}),[a,o]=z.useState(!1),[l,u]=z.useState(()=>i.current.isFocused&&i.current.isFocusVisible),c=z.useCallback(()=>u(i.current.isFocused&&i.current.isFocusVisible),[]),d=z.useCallback(v=>{i.current.isFocused=v,o(v),c()},[c]);Oie(v=>{i.current.isFocusVisible=v,c()},[],{isTextInput:r});let{focusProps:h}=XU({isDisabled:n,onFocusChange:d}),{focusWithinProps:p}=Em({isDisabled:!n,onFocusWithinChange:d});return{isFocused:a,isFocusVisible:l,focusProps:n?p:h}}function qs(e){let{children:t,focusClass:r,focusRingClass:n}=e,{isFocused:i,isFocusVisible:a,focusProps:o}=ej(e),l=D.Children.only(t);return D.cloneElement(l,tr(l.props,{...o,className:Ib({[r||""]:i,[n||""]:a})}))}let tj=D.createContext(null);function Kie(e){let t=z.useContext(tj)||{};kb(t,e);let{ref:r,...n}=t;return n}function qie(e,t){let{children:r,...n}=e,i={...n,ref:t};return D.createElement(tj.Provider,{value:i},r)}let Yie=D.forwardRef(qie);function eM(e,t){let{focusProps:r}=XU(e),{keyboardProps:n}=QP(e),i=tr(r,n),a=Kie(t),o=e.isDisabled?{}:a,l=z.useRef(e.autoFocus);return z.useEffect(()=>{l.current&&t.current&&Pl(t.current),l.current=!1},[t]),{focusableProps:tr({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},o)}}function Xie(e,t){e=_a(e,"text");let{children:r,...n}=e,{styleProps:i}=Dr(n),a=Bn(t);return D.createElement("span",{...Gr(n),...i,ref:a},r)}const tp=z.forwardRef(Xie);function Qie(e,t){e=_a(e,"heading");let{children:r,level:n=3,...i}=e,{styleProps:a}=Dr(i),o=Bn(t),l=`h${n}`;return D.createElement(l,{...Gr(i),...a,ref:o},r)}const Z6e=z.forwardRef(Qie);function Am(e,t){let{elementType:r="button",isDisabled:n,onPress:i,onPressStart:a,onPressEnd:o,onPressChange:l,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:d,href:h,target:p,rel:v,type:$="button"}=e,S;r==="button"?S={type:$,disabled:n}:S={role:"button",tabIndex:n?void 0:0,href:r==="a"&&n?void 0:h,target:r==="a"?p:void 0,type:r==="input"?$:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?v:void 0};let{pressProps:g,isPressed:b}=_m({onPressStart:a,onPressEnd:o,onPressChange:l,onPress:i,isDisabled:n,preventFocusOnPress:u,ref:t}),{focusableProps:_}=eM(e,t);c&&(_.tabIndex=n?-1:_.tabIndex);let E=tr(_,g,Gr(e,{labelable:!0}));return{isPressed:b,buttonProps:tr(S,E,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:A=>{d&&(d(A),console.warn("onClick is deprecated, please use onPress"))}})}}const TI={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Zie(e={}){let{style:t,isFocusable:r}=e,[n,i]=z.useState(!1),{focusWithinProps:a}=Em({isDisabled:!r,onFocusWithinChange:l=>i(l)}),o=z.useMemo(()=>n?t:t?{...TI,...t}:TI,[n]);return{visuallyHiddenProps:{...a,style:o}}}function Jie(e){let{children:t,elementType:r="div",isFocusable:n,style:i,...a}=e,{visuallyHiddenProps:o}=Zie(e);return D.createElement(r,tr(a,o),t)}function eae(e){return e&&e.__esModule?e.default:e}const PI={top:"top",bottom:"top",left:"left",right:"left"},Ry={top:"bottom",bottom:"top",left:"right",right:"left"},tae={top:"left",left:"top"},u_={top:"height",left:"width"},rae={width:"totalWidth",height:"totalHeight"},Rg={};let Cf=typeof document<"u"&&window.visualViewport;function nae(e){let t=0,r=0,n=0,i=0,a=0,o=0,l={};if(e.tagName==="BODY"){let d=document.documentElement;n=d.clientWidth,i=d.clientHeight;var u;t=(u=Cf==null?void 0:Cf.width)!==null&&u!==void 0?u:n;var c;r=(c=Cf==null?void 0:Cf.height)!==null&&c!==void 0?c:i,l.top=d.scrollTop||e.scrollTop,l.left=d.scrollLeft||e.scrollLeft}else({width:t,height:r,top:a,left:o}=gd(e)),l.top=e.scrollTop,l.left=e.scrollLeft,n=t,i=r;return{width:t,height:r,totalWidth:n,totalHeight:i,scroll:l,top:a,left:o}}function iae(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function MI(e,t,r,n,i){let a=n.scroll[e],o=n[u_[e]],l=t-i-a,u=t+i-a+r;return l<0?-l:u>o?Math.max(o-u,-l):0}function aae(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function OI(e){if(Rg[e])return Rg[e];let[t,r]=e.split(" "),n=PI[t]||"right",i=tae[n];PI[r]||(r="center");let a=u_[n],o=u_[i];return Rg[e]={placement:t,crossPlacement:r,axis:n,crossAxis:i,size:a,crossSize:o},Rg[e]}function cx(e,t,r,n,i,a,o,l,u,c){let{placement:d,crossPlacement:h,axis:p,crossAxis:v,size:$,crossSize:S}=n,g={};g[v]=e[v],h==="center"?g[v]+=(e[S]-r[S])/2:h!==v&&(g[v]+=e[S]-r[S]),g[v]+=a;const b=e[v]-r[S]+u+c,_=e[v]+e[S]-u-c;if(g[v]=Vv(g[v],b,_),d===p){const E=l?o[$]:t[rae[$]];g[Ry[p]]=Math.floor(E-e[p]+i)}else g[p]=Math.floor(e[p]+e[$]+i);return g}function oae(e,t,r,n,i,a){return e.top!=null?Math.max(0,t.height+t.top+t.scroll.top-(r.top+e.top)-(i.top+i.bottom+a)):Math.max(0,n.top+r.top-(t.top+t.scroll.top)-(i.top+i.bottom+a))}function RI(e,t,r,n,i,a){let{placement:o,axis:l,size:u}=a;return o===l?Math.max(0,r[l]-e[l]-e.scroll[l]+t[l]-n[l]-n[Ry[l]]-i):Math.max(0,e[u]+e[l]+e.scroll[l]-t[l]-r[l]-r[u]-n[l]-n[Ry[l]]-i)}function lae(e,t,r,n,i,a,o,l,u,c,d,h,p,v,$){let S=OI(e),{size:g,crossAxis:b,crossSize:_,placement:E,crossPlacement:A}=S,M=cx(t,l,r,S,c,d,u,h,v,$),N=c,U=RI(l,u,t,i,a+c,S);if(o&&n[g]>U){let Ae=OI(`${Ry[E]} ${A}`),$e=cx(t,l,r,Ae,c,d,u,h,v,$);RI(l,u,t,i,a+c,Ae)>U&&(S=Ae,M=$e,N=c)}let I=MI(b,M[b],r[_],l,a);M[b]+=I;let j=oae(M,l,u,t,i,a);p&&p<j&&(j=p),r.height=Math.min(r.height,j),M=cx(t,l,r,S,N,d,u,h,v,$),I=MI(b,M[b],r[_],l,a),M[b]+=I;let he={},q=t[b]+.5*t[_]-r[b];const fe=v/2+$,ne=r[_]-v/2-$,ce=t[b]-r[b]+v/2,De=t[b]+t[_]-r[b]-v/2,We=Vv(q,ce,De);return he[b]=Vv(We,fe,ne),{position:M,maxHeight:j,arrowOffsetLeft:he.left,arrowOffsetTop:he.top,placement:S.placement}}function sae(e){let{placement:t,targetNode:r,overlayNode:n,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:l,offset:u,crossOffset:c,maxHeight:d,arrowSize:h=0,arrowBoundaryOffset:p=0}=e,v=n instanceof HTMLElement?uae(n):document.documentElement,$=v===document.documentElement;const S=window.getComputedStyle(v).position;let g=!!S&&S!=="static",b=$?gd(r):II(r,v);if(!$){let{marginTop:U,marginLeft:I}=window.getComputedStyle(r);b.top+=parseInt(U,10)||0,b.left+=parseInt(I,10)||0}let _=gd(n),E=aae(n);_.width+=E.left+E.right,_.height+=E.top+E.bottom;let A=iae(i),M=nae(l),N=l.tagName==="BODY"?gd(v):II(v,l);return lae(t,b,_,A,E,a,o,M,N,u,c,g,d,h,p)}function gd(e){let{top:t,left:r,width:n,height:i}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:o,clientTop:l,clientLeft:u}=document.documentElement;return{top:t+a-l,left:r+o-u,width:n,height:i}}function II(e,t){let r=window.getComputedStyle(e),n;if(r.position==="fixed"){let{top:i,left:a,width:o,height:l}=e.getBoundingClientRect();n={top:i,left:a,width:o,height:l}}else{n=gd(e);let i=gd(t),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,n.top-=i.top,n.left-=i.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function uae(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!kI(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!kI(t);)t=t.parentElement;return t||document.documentElement}function kI(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const rj=new WeakMap;function cae(e){let{triggerRef:t,isOpen:r,onClose:n}=e;z.useEffect(()=>{if(!r||n===null)return;let i=a=>{let o=a.target;if(!t.current||o instanceof Node&&!o.contains(t.current))return;let l=n||rj.get(t.current);l&&l()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[r,n,t])}let Oa=typeof document<"u"&&window.visualViewport;function nj(e){let{direction:t}=wa(),{arrowSize:r=0,targetRef:n,overlayRef:i,scrollRef:a=i,placement:o="bottom",containerPadding:l=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:d=0,crossOffset:h=0,shouldUpdatePosition:p=!0,isOpen:v=!0,onClose:$,maxHeight:S,arrowBoundaryOffset:g=0}=e,[b,_]=z.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),E=[p,o,i.current,n.current,a.current,l,u,c,d,h,v,t,S,g,r],A=z.useCallback(()=>{if(p===!1||!v||!i.current||!n.current||!a.current||!c)return;let U=sae({placement:dae(o,t),overlayNode:i.current,targetNode:n.current,scrollNode:a.current,padding:l,shouldFlip:u,boundaryElement:c,offset:d,crossOffset:h,maxHeight:S,arrowSize:r,arrowBoundaryOffset:g});Object.keys(U.position).forEach(I=>i.current.style[I]=U.position[I]+"px"),i.current.style.maxHeight=U.maxHeight!=null?U.maxHeight+"px":void 0,_(U)},E);Sr(A,E),fae(A),$m({ref:i,onResize:A});let M=z.useRef(!1);Sr(()=>{let U,I=()=>{M.current=!0,clearTimeout(U),U=setTimeout(()=>{M.current=!1},500),A()};return Oa==null||Oa.addEventListener("resize",I),Oa==null||Oa.addEventListener("scroll",I),()=>{Oa==null||Oa.removeEventListener("resize",I),Oa==null||Oa.removeEventListener("scroll",I)}},[A]);let N=z.useCallback(()=>{M.current||$()},[$,M]);return cae({triggerRef:n,isOpen:v,onClose:$&&N}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...b.position,maxHeight:b.maxHeight}},placement:b.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:b.arrowOffsetLeft,top:b.arrowOffsetTop}},updatePosition:A}}function fae(e){Sr(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function dae(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const gl=[];function ij(e,t){let{onClose:r,shouldCloseOnBlur:n,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:l}=e;z.useEffect(()=>(i&&gl.push(t),()=>{let $=gl.indexOf(t);$>=0&&gl.splice($,1)}),[i,t]);let u=()=>{gl[gl.length-1]===t&&r&&r()},c=$=>{(!l||l($.target))&&gl[gl.length-1]===t&&($.stopPropagation(),$.preventDefault())},d=$=>{(!l||l($.target))&&(gl[gl.length-1]===t&&($.stopPropagation(),$.preventDefault()),u())},h=$=>{$.key==="Escape"&&!o&&($.stopPropagation(),$.preventDefault(),u())};Iie({ref:t,onInteractOutside:a?d:null,onInteractOutsideStart:c});let{focusWithinProps:p}=Em({isDisabled:!n,onBlurWithin:$=>{$.relatedTarget&&Uie($.relatedTarget)||(!l||l($.relatedTarget))&&r()}}),v=$=>{$.target===$.currentTarget&&$.preventDefault()};return{overlayProps:{onKeyDown:h,...p},underlayProps:{onPointerDown:v}}}function tM(e,t,r){let{type:n}=e,{isOpen:i}=t;z.useEffect(()=>{r&&r.current&&rj.set(r.current,t.close)});let a;n==="menu"?a=!0:n==="listbox"&&(a="listbox");let o=ui();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?o:null,onPress:t.toggle},overlayProps:{id:o}}}const fx=typeof document<"u"&&window.visualViewport,pae=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Ig=0,dx;function aj(e={}){let{isDisabled:t}=e;Sr(()=>{if(!t)return Ig++,Ig===1&&(Fb()?dx=vae():dx=hae()),()=>{Ig--,Ig===0&&dx()}},[t])}function hae(){return Kv(xv(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),xv(document.documentElement,"overflow","hidden"))}function vae(){let e,t=0,r=h=>{e=_y(h.target),!(e===document.documentElement&&e===document.body)&&(t=h.changedTouches[0].pageY)},n=h=>{if(!e||e===document.documentElement||e===document.body){h.preventDefault();return}let p=h.changedTouches[0].pageY,v=e.scrollTop,$=e.scrollHeight-e.clientHeight;$!==0&&((v<=0&&p>t||v>=$&&p<t)&&h.preventDefault(),t=p)},i=h=>{let p=h.target;NI(p)&&p!==document.activeElement&&(h.preventDefault(),p.style.transform="translateY(-2000px)",p.focus(),requestAnimationFrame(()=>{p.style.transform=""}))},a=h=>{let p=h.target;NI(p)&&(p.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{p.style.transform="",fx&&(fx.height<window.innerHeight?requestAnimationFrame(()=>{FI(p)}):fx.addEventListener("resize",()=>FI(p),{once:!0}))}))},o=()=>{window.scrollTo(0,0)},l=window.pageXOffset,u=window.pageYOffset,c=Kv(xv(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),xv(document.documentElement,"overflow","hidden"),xv(document.body,"marginTop",`-${u}px`));window.scrollTo(0,0);let d=Kv(Oh(document,"touchstart",r,{passive:!1,capture:!0}),Oh(document,"touchmove",n,{passive:!1,capture:!0}),Oh(document,"touchend",i,{passive:!1,capture:!0}),Oh(document,"focus",a,!0),Oh(window,"scroll",o));return()=>{c(),d(),window.scrollTo(l,u)}}function xv(e,t,r){let n=e.style[t];return e.style[t]=r,()=>{e.style[t]=n}}function Oh(e,t,r,n){return e.addEventListener(t,r,n),()=>{e.removeEventListener(t,r,n)}}function FI(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let r=_y(e);if(r!==document.documentElement&&r!==document.body&&r!==e){let n=r.getBoundingClientRect().top,i=e.getBoundingClientRect().top;i>n+e.clientHeight&&(r.scrollTop+=i-n)}e=r.parentElement}}function NI(e){return e instanceof HTMLInputElement&&!pae.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const c_=D.createContext(null);function mae(e){let{children:t}=e,r=z.useContext(c_),[n,i]=z.useState(0),a=z.useMemo(()=>({parent:r,modalCount:n,addModal(){i(o=>o+1),r&&r.addModal()},removeModal(){i(o=>o-1),r&&r.removeModal()}}),[r,n]);return D.createElement(c_.Provider,{value:a},t)}function gae(){let e=z.useContext(c_);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}var oj={},lj={};lj={dismiss:"تجاهل"};var sj={};sj={dismiss:"Отхвърляне"};var uj={};uj={dismiss:"Odstranit"};var cj={};cj={dismiss:"Luk"};var fj={};fj={dismiss:"Schließen"};var dj={};dj={dismiss:"Απόρριψη"};var pj={};pj={dismiss:"Dismiss"};var hj={};hj={dismiss:"Descartar"};var vj={};vj={dismiss:"Lõpeta"};var mj={};mj={dismiss:"Hylkää"};var gj={};gj={dismiss:"Rejeter"};var yj={};yj={dismiss:"התעלם"};var bj={};bj={dismiss:"Odbaci"};var $j={};$j={dismiss:"Elutasítás"};var xj={};xj={dismiss:"Ignora"};var wj={};wj={dismiss:"閉じる"};var _j={};_j={dismiss:"무시"};var Sj={};Sj={dismiss:"Atmesti"};var Ej={};Ej={dismiss:"Nerādīt"};var Aj={};Aj={dismiss:"Lukk"};var Cj={};Cj={dismiss:"Negeren"};var Tj={};Tj={dismiss:"Zignoruj"};var Pj={};Pj={dismiss:"Descartar"};var Mj={};Mj={dismiss:"Dispensar"};var Oj={};Oj={dismiss:"Revocare"};var Rj={};Rj={dismiss:"Пропустить"};var Ij={};Ij={dismiss:"Zrušiť"};var kj={};kj={dismiss:"Opusti"};var Fj={};Fj={dismiss:"Odbaci"};var Nj={};Nj={dismiss:"Avvisa"};var Lj={};Lj={dismiss:"Kapat"};var Dj={};Dj={dismiss:"Скасувати"};var Bj={};Bj={dismiss:"取消"};var zj={};zj={dismiss:"關閉"};oj={"ar-AE":lj,"bg-BG":sj,"cs-CZ":uj,"da-DK":cj,"de-DE":fj,"el-GR":dj,"en-US":pj,"es-ES":hj,"et-EE":vj,"fi-FI":mj,"fr-FR":gj,"he-IL":yj,"hr-HR":bj,"hu-HU":$j,"it-IT":xj,"ja-JP":wj,"ko-KR":_j,"lt-LT":Sj,"lv-LV":Ej,"nb-NO":Aj,"nl-NL":Cj,"pl-PL":Tj,"pt-BR":Pj,"pt-PT":Mj,"ro-RO":Oj,"ru-RU":Rj,"sk-SK":Ij,"sl-SI":kj,"sr-SP":Fj,"sv-SE":Nj,"tr-TR":Lj,"uk-UA":Dj,"zh-CN":Bj,"zh-TW":zj};function Md(e){let{onDismiss:t,...r}=e,n=Va(eae(oj)),i=wy(r,n.format("dismiss")),a=()=>{t&&t()};return D.createElement(Jie,null,D.createElement("button",{...i,tabIndex:-1,onClick:a}))}let Rh=new WeakMap,Ra=[];function rM(e,t=document.body){let r=new Set(e),n=new Set,i=u=>{for(let p of u.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))r.add(p);let c=p=>{if(r.has(p)||n.has(p.parentElement)&&p.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let v of r)if(p.contains(v))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},d=document.createTreeWalker(u,NodeFilter.SHOW_ELEMENT,{acceptNode:c}),h=c(u);if(h===NodeFilter.FILTER_ACCEPT&&a(u),h!==NodeFilter.FILTER_REJECT){let p=d.nextNode();for(;p!=null;)a(p),p=d.nextNode()}},a=u=>{var c;let d=(c=Rh.get(u))!==null&&c!==void 0?c:0;u.getAttribute("aria-hidden")==="true"&&d===0||(d===0&&u.setAttribute("aria-hidden","true"),n.add(u),Rh.set(u,d+1))};Ra.length&&Ra[Ra.length-1].disconnect(),i(t);let o=new MutationObserver(u=>{for(let c of u)if(!(c.type!=="childList"||c.addedNodes.length===0)&&![...r,...n].some(d=>d.contains(c.target))){for(let d of c.removedNodes)d instanceof Element&&(r.delete(d),n.delete(d));for(let d of c.addedNodes)(d instanceof HTMLElement||d instanceof SVGElement)&&(d.dataset.liveAnnouncer==="true"||d.dataset.reactAriaTopLayer==="true")?r.add(d):d instanceof Element&&i(d)}});o.observe(t,{childList:!0,subtree:!0});let l={observe(){o.observe(t,{childList:!0,subtree:!0})},disconnect(){o.disconnect()}};return Ra.push(l),()=>{o.disconnect();for(let u of n){let c=Rh.get(u);c===1?(u.removeAttribute("aria-hidden"),Rh.delete(u)):Rh.set(u,c-1)}l===Ra[Ra.length-1]?(Ra.pop(),Ra.length&&Ra[Ra.length-1].observe()):Ra.splice(Ra.indexOf(l),1)}}function yae(e,t){let{triggerRef:r,popoverRef:n,isNonModal:i,isKeyboardDismissDisabled:a,...o}=e,{overlayProps:l,underlayProps:u}=ij({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!i,isKeyboardDismissDisabled:a},n),{overlayProps:c,arrowProps:d,placement:h}=nj({...o,targetRef:r,overlayRef:n,isOpen:t.isOpen,onClose:null});return aj({isDisabled:i}),Sr(()=>{if(t.isOpen&&!i&&n.current)return rM([n.current])},[i,t.isOpen,n]),{popoverProps:tr(l,c),arrowProps:d,underlayProps:u,placement:h}}const f_=D.createContext(null);function bae(e){let t=Ec(),{portalContainer:r=t?null:document.body,isExiting:n}=e,[i,a]=z.useState(!1),o=z.useMemo(()=>({contain:i,setContain:a}),[i,a]);if(!r)return null;let l;return e.disableFocusManagement?l=D.createElement(f_.Provider,{value:o},e.children):l=D.createElement(f_.Provider,{value:o},D.createElement(ep,{restoreFocus:!0,contain:i&&!n},e.children)),Zf.createPortal(l,r)}function Uj(){let e=z.useContext(f_),t=e==null?void 0:e.setContain;Sr(()=>{t==null||t(!0)},[t])}function jj(e,t,r){let{overlayProps:n,underlayProps:i}=ij({...e,isOpen:t.isOpen,onClose:t.close},r);return aj({isDisabled:!t.isOpen}),Uj(),z.useEffect(()=>{if(t.isOpen)return rM([r.current])},[t.isOpen,r]),{modalProps:tr(n),underlayProps:i}}function LI(e){return e&&e.__esModule?e.default:e}function Db(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}const nM=D.createContext(null);nM.displayName="ProviderContext";var Hj={};Db(Hj,"spectrum",()=>d_,e=>d_=e);var d_;d_="spectrum_b37d53";var Bb={};Db(Bb,"spectrum",()=>p_,e=>p_=e);Db(Bb,"spectrum-Body",()=>h_,e=>h_=e);Db(Bb,"spectrum-Body--italic",()=>v_,e=>v_=e);var p_,h_,v_;p_="spectrum_2a241c";h_="spectrum-Body_2a241c";v_="spectrum-Body--italic_2a241c";function $ae(e,t){let r=t_("(prefers-color-scheme: dark)"),n=t_("(prefers-color-scheme: light)");return e.dark&&r?"dark":e.light&&n?"light":e.dark&&t==="dark"?"dark":e.light&&t==="light"||!e.dark||e.light?"light":"dark"}function xae(e){return t_("(any-pointer: fine)")&&e.medium?"medium":e.large?"large":"medium"}var Gj={};Gj=JSON.parse('{"name":"@react-spectrum/provider","version":"3.8.0","description":"Spectrum UI components in React","license":"Apache-2.0","main":"dist/main.js","module":"dist/module.js","exports":{"types":"./dist/types.d.ts","import":"./dist/import.mjs","require":"./dist/main.js"},"types":"dist/types.d.ts","source":"src/index.ts","files":["dist","src"],"sideEffects":["*.css"],"targets":{"main":{"includeNodeModules":["@adobe/spectrum-css-temp"]},"module":{"includeNodeModules":["@adobe/spectrum-css-temp"]}},"repository":{"type":"git","url":"https://github.com/adobe/react-spectrum"},"dependencies":{"@react-aria/i18n":"^3.8.0","@react-aria/overlays":"^3.15.0","@react-aria/utils":"^3.18.0","@react-spectrum/utils":"^3.10.0","@react-types/provider":"^3.6.2","@react-types/shared":"^3.18.1","@swc/helpers":"^0.5.0","clsx":"^1.1.1"},"devDependencies":{"@adobe/spectrum-css-temp":"3.0.0-alpha.1"},"peerDependencies":{"react":"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0","react-dom":"^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"},"publishConfig":{"access":"public"}}');const wae={S:640,M:768,L:1024,XL:1280,XXL:1536};function _ae(e,t){let r=qa(),n=r&&r.colorScheme,i=r&&r.breakpoints,{theme:a=r&&r.theme,defaultColorScheme:o}=e;if(!a)throw new Error("theme not found, the parent provider must have a theme provided");let l=$ae(a,o),u=xae(a),{locale:c}=wa(),d=!!a[n],{colorScheme:h=d?n:l,scale:p=r?r.scale:u,locale:v=r?c:null,breakpoints:$=r?i:wae,children:S,isQuiet:g,isEmphasized:b,isDisabled:_,isRequired:E,isReadOnly:A,validationState:M,...N}=e,U={version:Gj.version,theme:a,breakpoints:$,colorScheme:h,scale:p,isQuiet:g,isEmphasized:b,isDisabled:_,isRequired:E,isReadOnly:A,validationState:M},I=oie($),j={};Object.entries(U).forEach(([ce,De])=>De!==void 0&&(j[ce]=De));let he=Object.assign({},r,j),q=S,fe=Gr(N),{styleProps:ne}=Dr(N,void 0,{matchedBreakpoints:I});return(!r||e.locale||a!==r.theme||h!==r.colorScheme||p!==r.scale||Object.keys(fe).length>0||N.UNSAFE_className||Object.keys(ne.style).length>0)&&(q=D.createElement(Sae,{...e,UNSAFE_style:{isolation:r?void 0:"isolate",...ne.style},ref:t},q)),D.createElement(nM.Provider,{value:he},D.createElement(rie,{locale:v},D.createElement(aie,{matchedBreakpoints:I},D.createElement(mae,null,q))))}let zb=D.forwardRef(_ae);const Sae=D.forwardRef(function(t,r){let{children:n,...i}=t,{locale:a,direction:o}=wa(),{theme:l,colorScheme:u,scale:c}=qa(),{modalProviderProps:d}=gae(),{styleProps:h}=Dr(i),p=Bn(r),v=Object.keys(l[u])[0],$=Object.keys(l[c])[0],S=Ib(h.className,LI(Hj).spectrum,LI(Bb).spectrum,Object.values(l[u]),Object.values(l[c]),l.global?Object.values(l.global):null,{"react-spectrum-provider":Cg,spectrum:Cg,[v]:Cg,[$]:Cg});var g,b;let _={...h.style,colorScheme:(b=(g=t.colorScheme)!==null&&g!==void 0?g:u)!==null&&b!==void 0?b:Object.keys(l).filter(A=>A==="light"||A==="dark").join(" ")},E=z.useRef(!1);return z.useEffect(()=>{if(o&&p.current){let A=p.current.parentElement.closest("[dir]"),M=A&&A.getAttribute("dir");M&&M!==o&&!E.current&&(console.warn(`Language directions cannot be nested. ${o} inside ${M}.`),E.current=!0)}},[o,p,E]),D.createElement("div",{...Gr(i),...h,...d,className:S,style:_,lang:a,dir:o,ref:p},n)});function qa(){return z.useContext(nM)}function Fl(e){let t=qa();return t?Object.assign({},{isQuiet:t.isQuiet,isEmphasized:t.isEmphasized,isDisabled:t.isDisabled,isRequired:t.isRequired,isReadOnly:t.isReadOnly,validationState:t.validationState},e):e}var Wj={};Object.defineProperty(Wj,"__esModule",{value:!0});var Eae=Wj.CornerTriangle=Vj,px=Aae(z);function Aae(e){return e&&e.__esModule?e:{default:e}}function m_(){return m_=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},m_.apply(this,arguments)}function Cae(e,t){if(e==null)return{};var r=Tae(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 Tae(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 Vj(e){var t=e.scale,r=t===void 0?"M":t,n=Cae(e,["scale"]);return px.default.createElement("svg",m_({},n,n),r==="L"&&px.default.createElement("path",{d:"M5.74.01a.25.25 0 0 0-.177.073l-5.48 5.48a.25.25 0 0 0 .177.427h5.48a.25.25 0 0 0 .25-.25V.26a.25.25 0 0 0-.25-.25z"}),r==="M"&&px.default.createElement("path",{d:"M4.74.01a.25.25 0 0 0-.177.073l-4.48 4.48a.25.25 0 0 0 .177.427h4.48a.25.25 0 0 0 .25-.25V.26a.25.25 0 0 0-.25-.25z"}))}Vj.displayName="CornerTriangle";function Kj(e){return e&&e.__esModule?e.default:e}function ar(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var rr={};ar(rr,"spectrum-Icon",()=>g_,e=>g_=e);ar(rr,"spectrum-UIIcon",()=>y_,e=>y_=e);ar(rr,"spectrum-Icon--sizeXXS",()=>b_,e=>b_=e);ar(rr,"spectrum-Icon--sizeXS",()=>$_,e=>$_=e);ar(rr,"spectrum-Icon--sizeS",()=>x_,e=>x_=e);ar(rr,"spectrum-Icon--sizeM",()=>w_,e=>w_=e);ar(rr,"spectrum-Icon--sizeL",()=>__,e=>__=e);ar(rr,"spectrum-Icon--sizeXL",()=>S_,e=>S_=e);ar(rr,"spectrum-Icon--sizeXXL",()=>E_,e=>E_=e);ar(rr,"spectrum--medium",()=>A_,e=>A_=e);ar(rr,"spectrum-UIIcon--large",()=>C_,e=>C_=e);ar(rr,"spectrum-UIIcon--medium",()=>T_,e=>T_=e);ar(rr,"spectrum--large",()=>P_,e=>P_=e);ar(rr,"spectrum-UIIcon-AlertMedium",()=>M_,e=>M_=e);ar(rr,"spectrum-UIIcon-AlertSmall",()=>O_,e=>O_=e);ar(rr,"spectrum-UIIcon-ArrowDownSmall",()=>R_,e=>R_=e);ar(rr,"spectrum-UIIcon-ArrowLeftMedium",()=>I_,e=>I_=e);ar(rr,"spectrum-UIIcon-Asterisk",()=>k_,e=>k_=e);ar(rr,"spectrum-UIIcon-CheckmarkMedium",()=>F_,e=>F_=e);ar(rr,"spectrum-UIIcon-CheckmarkSmall",()=>N_,e=>N_=e);ar(rr,"spectrum-UIIcon-ChevronDownMedium",()=>L_,e=>L_=e);ar(rr,"spectrum-UIIcon-ChevronDownSmall",()=>D_,e=>D_=e);ar(rr,"spectrum-UIIcon-ChevronLeftLarge",()=>B_,e=>B_=e);ar(rr,"spectrum-UIIcon-ChevronLeftMedium",()=>z_,e=>z_=e);ar(rr,"spectrum-UIIcon-ChevronRightLarge",()=>U_,e=>U_=e);ar(rr,"spectrum-UIIcon-ChevronRightMedium",()=>j_,e=>j_=e);ar(rr,"spectrum-UIIcon-ChevronRightSmall",()=>H_,e=>H_=e);ar(rr,"spectrum-UIIcon-ChevronUpSmall",()=>G_,e=>G_=e);ar(rr,"spectrum-UIIcon-CornerTriangle",()=>W_,e=>W_=e);ar(rr,"spectrum-UIIcon-CrossLarge",()=>V_,e=>V_=e);ar(rr,"spectrum-UIIcon-CrossMedium",()=>K_,e=>K_=e);ar(rr,"spectrum-UIIcon-CrossSmall",()=>q_,e=>q_=e);ar(rr,"spectrum-UIIcon-DashSmall",()=>Y_,e=>Y_=e);ar(rr,"spectrum-UIIcon-DoubleGripper",()=>X_,e=>X_=e);ar(rr,"spectrum-UIIcon-FolderBreadcrumb",()=>Q_,e=>Q_=e);ar(rr,"spectrum-UIIcon-HelpMedium",()=>Z_,e=>Z_=e);ar(rr,"spectrum-UIIcon-HelpSmall",()=>J_,e=>J_=e);ar(rr,"spectrum-UIIcon-InfoMedium",()=>e4,e=>e4=e);ar(rr,"spectrum-UIIcon-InfoSmall",()=>t4,e=>t4=e);ar(rr,"spectrum-UIIcon-ListGripper",()=>r4,e=>r4=e);ar(rr,"spectrum-UIIcon-Magnifier",()=>n4,e=>n4=e);ar(rr,"spectrum-UIIcon-SkipLeft",()=>i4,e=>i4=e);ar(rr,"spectrum-UIIcon-SkipRight",()=>a4,e=>a4=e);ar(rr,"spectrum-UIIcon-Star",()=>o4,e=>o4=e);ar(rr,"spectrum-UIIcon-StarOutline",()=>l4,e=>l4=e);ar(rr,"spectrum-UIIcon-SuccessMedium",()=>s4,e=>s4=e);ar(rr,"spectrum-UIIcon-SuccessSmall",()=>u4,e=>u4=e);ar(rr,"spectrum-UIIcon-TripleGripper",()=>c4,e=>c4=e);var g_,y_,b_,$_,x_,w_,__,S_,E_,A_,C_,T_,P_,M_,O_,R_,I_,k_,F_,N_,L_,D_,B_,z_,U_,j_,H_,G_,W_,V_,K_,q_,Y_,X_,Q_,Z_,J_,e4,t4,r4,n4,i4,a4,o4,l4,s4,u4,c4;g_="spectrum-Icon_368b34";y_="spectrum-UIIcon_368b34";b_="spectrum-Icon--sizeXXS_368b34";$_="spectrum-Icon--sizeXS_368b34";x_="spectrum-Icon--sizeS_368b34";w_="spectrum-Icon--sizeM_368b34";__="spectrum-Icon--sizeL_368b34";S_="spectrum-Icon--sizeXL_368b34";E_="spectrum-Icon--sizeXXL_368b34";A_="spectrum--medium_368b34";C_="spectrum-UIIcon--large_368b34";T_="spectrum-UIIcon--medium_368b34";P_="spectrum--large_368b34";M_="spectrum-UIIcon-AlertMedium_368b34";O_="spectrum-UIIcon-AlertSmall_368b34";R_="spectrum-UIIcon-ArrowDownSmall_368b34";I_="spectrum-UIIcon-ArrowLeftMedium_368b34";k_="spectrum-UIIcon-Asterisk_368b34";F_="spectrum-UIIcon-CheckmarkMedium_368b34";N_="spectrum-UIIcon-CheckmarkSmall_368b34";L_="spectrum-UIIcon-ChevronDownMedium_368b34";D_="spectrum-UIIcon-ChevronDownSmall_368b34";B_="spectrum-UIIcon-ChevronLeftLarge_368b34";z_="spectrum-UIIcon-ChevronLeftMedium_368b34";U_="spectrum-UIIcon-ChevronRightLarge_368b34";j_="spectrum-UIIcon-ChevronRightMedium_368b34";H_="spectrum-UIIcon-ChevronRightSmall_368b34";G_="spectrum-UIIcon-ChevronUpSmall_368b34";W_="spectrum-UIIcon-CornerTriangle_368b34";V_="spectrum-UIIcon-CrossLarge_368b34";K_="spectrum-UIIcon-CrossMedium_368b34";q_="spectrum-UIIcon-CrossSmall_368b34";Y_="spectrum-UIIcon-DashSmall_368b34";X_="spectrum-UIIcon-DoubleGripper_368b34";Q_="spectrum-UIIcon-FolderBreadcrumb_368b34";Z_="spectrum-UIIcon-HelpMedium_368b34";J_="spectrum-UIIcon-HelpSmall_368b34";e4="spectrum-UIIcon-InfoMedium_368b34";t4="spectrum-UIIcon-InfoSmall_368b34";r4="spectrum-UIIcon-ListGripper_368b34";n4="spectrum-UIIcon-Magnifier_368b34";i4="spectrum-UIIcon-SkipLeft_368b34";a4="spectrum-UIIcon-SkipRight_368b34";o4="spectrum-UIIcon-Star_368b34";l4="spectrum-UIIcon-StarOutline_368b34";s4="spectrum-UIIcon-SuccessMedium_368b34";u4="spectrum-UIIcon-SuccessSmall_368b34";c4="spectrum-UIIcon-TripleGripper_368b34";function Pae(e){return`var(--spectrum-semantic-${e}-color-icon)`}const Mae={...Nb,color:["color",Pae]};function qj(e){e=_a(e,"icon");let{children:t,size:r,"aria-label":n,"aria-hidden":i,...a}=e,{styleProps:o}=Dr(a,Mae),l=qa(),u="M";l!==null&&(u=l.scale==="large"?"L":"M"),i||(i=void 0);let c=r||u;return D.cloneElement(t,{...Gr(a),...o,focusable:"false","aria-label":n,"aria-hidden":n?i||void 0:!0,role:"img",className:Le(Kj(rr),t.props.className,"spectrum-Icon",`spectrum-Icon--size${c}`,o.className)})}function Ho(e){e=_a(e,"icon");let{children:t,"aria-label":r,"aria-hidden":n,...i}=e,{styleProps:a}=Dr(i),o=qa(),l="M";return o!==null&&(l=o.scale==="large"?"L":"M"),n||(n=void 0),D.cloneElement(t,{...Gr(i),...a,scale:l,focusable:"false","aria-label":r,"aria-hidden":r?n||void 0:!0,role:"img",className:Le(Kj(rr),t.props.className,"spectrum-Icon",{[`spectrum-UIIcon-${t.type.displayName}`]:t.type.displayName},a.className)})}function Oae(e){return D.createElement(Ho,e,D.createElement(Eae,null))}var Yj={};Object.defineProperty(Yj,"__esModule",{value:!0});var Rae=Yj.CrossSmall=Xj,hx=Iae(z);function Iae(e){return e&&e.__esModule?e:{default:e}}function f4(){return f4=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},f4.apply(this,arguments)}function kae(e,t){if(e==null)return{};var r=Fae(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 Fae(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 Xj(e){var t=e.scale,r=t===void 0?"M":t,n=kae(e,["scale"]);return hx.default.createElement("svg",f4({},n,n),r==="L"&&hx.default.createElement("path",{d:"M9.317 8.433L5.884 5l3.433-3.433a.625.625 0 1 0-.884-.884L5 4.116 1.567.683a.625.625 0 1 0-.884.884C.83 1.713 2.77 3.657 4.116 5L.683 8.433a.625.625 0 1 0 .884.884L5 5.884l3.433 3.433a.625.625 0 0 0 .884-.884z"}),r==="M"&&hx.default.createElement("path",{d:"M7.317 6.433L4.884 4l2.433-2.433a.625.625 0 1 0-.884-.884L4 3.116 1.567.683a.625.625 0 1 0-.884.884L3.116 4 .683 6.433a.625.625 0 1 0 .884.884L4 4.884l2.433 2.433a.625.625 0 0 0 .884-.884z"}))}Xj.displayName="CrossSmall";function Nae(e){return D.createElement(Ho,e,D.createElement(Rae,null))}function xi(e){return e&&e.__esModule?e.default:e}function zr(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var or={};zr(or,"spectrum-Button",()=>d4,e=>d4=e);zr(or,"spectrum-ActionButton",()=>p4,e=>p4=e);zr(or,"spectrum-LogicButton",()=>h4,e=>h4=e);zr(or,"spectrum-FieldButton",()=>v4,e=>v4=e);zr(or,"spectrum-ClearButton",()=>m4,e=>m4=e);zr(or,"focus-ring",()=>g4,e=>g4=e);zr(or,"spectrum-FieldButton--quiet",()=>y4,e=>y4=e);zr(or,"spectrum-Icon",()=>b4,e=>b4=e);zr(or,"is-hovered",()=>$4,e=>$4=e);zr(or,"spectrum-Button-label",()=>x4,e=>x4=e);zr(or,"spectrum-Button--iconOnly",()=>w4,e=>w4=e);zr(or,"spectrum-ActionButton-label",()=>_4,e=>_4=e);zr(or,"spectrum-ActionButton-hold",()=>S4,e=>S4=e);zr(or,"spectrum-ActionButton--quiet",()=>E4,e=>E4=e);zr(or,"is-disabled",()=>A4,e=>A4=e);zr(or,"is-open",()=>C4,e=>C4=e);zr(or,"spectrum-ClearButton--small",()=>T4,e=>T4=e);zr(or,"is-active",()=>P4,e=>P4=e);zr(or,"spectrum-ClearButton--overBackground",()=>M4,e=>M4=e);zr(or,"is-selected",()=>O4,e=>O4=e);zr(or,"spectrum-ActionButton--emphasized",()=>R4,e=>R4=e);zr(or,"spectrum-ActionButton--staticWhite",()=>I4,e=>I4=e);zr(or,"spectrum-ActionButton--staticBlack",()=>k4,e=>k4=e);zr(or,"spectrum-ActionButton--staticColor",()=>F4,e=>F4=e);zr(or,"spectrum-LogicButton--and",()=>N4,e=>N4=e);zr(or,"spectrum-LogicButton--or",()=>L4,e=>L4=e);zr(or,"is-focused",()=>D4,e=>D4=e);zr(or,"is-placeholder",()=>B4,e=>B4=e);zr(or,"spectrum-FieldButton--invalid",()=>z4,e=>z4=e);zr(or,"spectrum-Button--overBackground",()=>U4,e=>U4=e);var d4,p4,h4,v4,m4,g4,y4,b4,$4,x4,w4,_4,S4,E4,A4,C4,T4,P4,M4,O4,R4,I4,k4,F4,N4,L4,D4,B4,z4,U4;d4="spectrum-Button_e2d99e";p4="spectrum-ActionButton_e2d99e";h4="spectrum-LogicButton_e2d99e";v4="spectrum-FieldButton_e2d99e";m4="spectrum-ClearButton_e2d99e";g4="focus-ring_e2d99e";y4="spectrum-FieldButton--quiet_e2d99e";b4="spectrum-Icon_e2d99e";$4="is-hovered_e2d99e";x4="spectrum-Button-label_e2d99e";w4="spectrum-Button--iconOnly_e2d99e";_4="spectrum-ActionButton-label_e2d99e";S4="spectrum-ActionButton-hold_e2d99e";E4="spectrum-ActionButton--quiet_e2d99e";A4="is-disabled_e2d99e";C4="is-open_e2d99e";T4="spectrum-ClearButton--small_e2d99e";P4="is-active_e2d99e";M4="spectrum-ClearButton--overBackground_e2d99e";O4="is-selected_e2d99e";R4="spectrum-ActionButton--emphasized_e2d99e";I4="spectrum-ActionButton--staticWhite_e2d99e";k4="spectrum-ActionButton--staticBlack_e2d99e";F4="spectrum-ActionButton--staticColor_e2d99e";N4="spectrum-LogicButton--and_e2d99e";L4="spectrum-LogicButton--or_e2d99e";D4="is-focused_e2d99e";B4="is-placeholder_e2d99e";z4="spectrum-FieldButton--invalid_e2d99e";U4="spectrum-Button--overBackground_e2d99e";function Lae(e,t){e=Fl(e),e=_a(e,"button");let{elementType:r="button",children:n,variant:i,style:a=i==="accent"||i==="cta"?"fill":"outline",staticColor:o,isDisabled:l,autoFocus:u,...c}=e,d=Jd(t),{buttonProps:h,isPressed:p}=Am(e,d),{hoverProps:v,isHovered:$}=ta({isDisabled:l}),{styleProps:S}=Dr(c),g=ed(`.${xi(or)["spectrum-Button-label"]}`,d),b=ed(`.${xi(or)["spectrum-Icon"]}`,d);return i==="cta"?i="accent":i==="overBackground"&&(i="primary",o="white"),D.createElement(qs,{focusRingClass:Le(xi(or),"focus-ring"),autoFocus:u},D.createElement(r,{...S,...tr(h,v),ref:d,"data-variant":i,"data-style":a,"data-static-color":o||void 0,className:Le(xi(or),"spectrum-Button",{"spectrum-Button--iconOnly":b&&!g,"is-disabled":l,"is-active":p,"is-hovered":$},S.className)},D.createElement(Ka,{slots:{icon:{size:"S",UNSAFE_className:Le(xi(or),"spectrum-Icon")},text:{UNSAFE_className:Le(xi(or),"spectrum-Button-label")}}},typeof n=="string"?D.createElement(tp,null,n):n)))}let J6e=D.forwardRef(Lae);function Dae(e,t){e=Fl(e),e=_a(e,"actionButton");let{isQuiet:r,isDisabled:n,staticColor:i,children:a,autoFocus:o,holdAffordance:l,...u}=e,c=Jd(t),{buttonProps:d,isPressed:h}=Am(e,c),{hoverProps:p,isHovered:v}=ta({isDisabled:n}),{styleProps:$}=Dr(u),S=D.Children.toArray(e.children).every(g=>!D.isValidElement(g));return D.createElement(qs,{focusRingClass:Le(xi(or),"focus-ring"),autoFocus:o},D.createElement("button",{...$,...tr(d,p),ref:c,className:Le(xi(or),"spectrum-ActionButton",{"spectrum-ActionButton--quiet":r,"spectrum-ActionButton--staticColor":!!i,"spectrum-ActionButton--staticWhite":i==="white","spectrum-ActionButton--staticBlack":i==="black","is-active":h,"is-disabled":n,"is-hovered":v},$.className)},l&&D.createElement(Oae,{UNSAFE_className:Le(xi(or),"spectrum-ActionButton-hold")}),D.createElement(Ka,{slots:{icon:{size:"S",UNSAFE_className:Le(xi(or),"spectrum-Icon")},text:{UNSAFE_className:Le(xi(or),"spectrum-ActionButton-label")}}},typeof a=="string"||S?D.createElement(tp,null,a):a)))}let Ub=D.forwardRef(Dae);function Bae(e,t){e=_a(e,"button");let{isQuiet:r,isDisabled:n,validationState:i,children:a,autoFocus:o,isActive:l,focusRingClass:u,...c}=e,d=Jd(t),{buttonProps:h,isPressed:p}=Am(e,d),{hoverProps:v,isHovered:$}=ta({isDisabled:n}),{styleProps:S}=Dr(c);return D.createElement(qs,{focusRingClass:Le(xi(or),"focus-ring",u),autoFocus:o},D.createElement("button",{...tr(h,v),ref:d,className:Le(xi(or),"spectrum-FieldButton",{"spectrum-FieldButton--quiet":r,"is-active":l||p,"is-disabled":n,"spectrum-FieldButton--invalid":i==="invalid","is-hovered":$},S.className)},D.createElement(Ka,{slots:{icon:{size:"S",UNSAFE_className:Le(xi(or),"spectrum-Icon")}}},a)))}let zae=D.forwardRef(Bae);function Uae(e,t){let{children:r=D.createElement(Nae,{UNSAFE_className:xi(or)["spectrum-Icon"]}),focusClassName:n,variant:i,autoFocus:a,isDisabled:o,preventFocus:l,elementType:u=l?"div":"button",...c}=e,d=Jd(t),{buttonProps:h,isPressed:p}=Am({...e,elementType:u},d),{hoverProps:v,isHovered:$}=ta({isDisabled:o}),{styleProps:S}=Dr(c);l&&delete h.tabIndex;let g=u;return D.createElement(qs,{focusRingClass:Le(xi(or),"focus-ring",n),autoFocus:a},D.createElement(g,{...S,...tr(h,v),ref:d,className:Le(xi(or),"spectrum-ClearButton",{[`spectrum-ClearButton--${i}`]:i,"is-disabled":o,"is-active":p,"is-hovered":$},S.className)},r))}let jae=D.forwardRef(Uae);var Qj={};Object.defineProperty(Qj,"__esModule",{value:!0});var Hae=Qj.ChevronDownMedium=Zj,vx=Gae(z);function Gae(e){return e&&e.__esModule?e:{default:e}}function j4(){return j4=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},j4.apply(this,arguments)}function Wae(e,t){if(e==null)return{};var r=Vae(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 Vae(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 Zj(e){var t=e.scale,r=t===void 0?"M":t,n=Wae(e,["scale"]);return vx.default.createElement("svg",j4({},n,n),r==="L"&&vx.default.createElement("path",{d:"M11.99 1.51a1 1 0 0 0-1.707-.707L6 5.086 1.717.803A1 1 0 1 0 .303 2.217l4.99 4.99a1 1 0 0 0 1.414 0l4.99-4.99a.997.997 0 0 0 .293-.707z"}),r==="M"&&vx.default.createElement("path",{d:"M9.99 1.01A1 1 0 0 0 8.283.303L5 3.586 1.717.303A1 1 0 1 0 .303 1.717l3.99 3.98a1 1 0 0 0 1.414 0l3.99-3.98a.997.997 0 0 0 .293-.707z"}))}Zj.displayName="ChevronDownMedium";function iM(e){return D.createElement(Ho,e,D.createElement(Hae,null))}function ai(){return ai=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},ai.apply(this,arguments)}function Od(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 H4(e,t){return H4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},H4(e,t)}function Cm(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,H4(e,t)}var Jj={exports:{}},Kae="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",qae=Kae,Yae=qae;function eH(){}function tH(){}tH.resetWarningCache=eH;var Xae=function(){function e(n,i,a,o,l,u){if(u!==Yae){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var 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:tH,resetWarningCache:eH};return r.PropTypes=r,r};Jj.exports=Xae();var Qae=Jj.exports;const Ar=$a(Qae);function Zae(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Jae(e,t){e.classList?e.classList.add(t):Zae(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function DI(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function eoe(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=DI(e.className,t):e.setAttribute("class",DI(e.className&&e.className.baseVal||"",t))}const BI={disabled:!1},rH=D.createContext(null);var nH=function(t){return t.scrollTop},iv="unmounted",Fu="exited",Nu="entering",Uf="entered",G4="exiting",Nl=function(e){Cm(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,u;return a.appearStatus=null,n.in?l?(u=Fu,a.appearStatus=Nu):u=Uf:n.unmountOnExit||n.mountOnEnter?u=iv:u=Fu,a.state={status:u},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===iv?{status:Fu}: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!==Nu&&o!==Uf&&(a=Nu):(o===Nu||o===Uf)&&(a=G4)}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===Nu){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Zf.findDOMNode(this);o&&nH(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fu&&this.setState({status:iv})},r.performEnter=function(i){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:i,u=this.props.nodeRef?[l]:[Zf.findDOMNode(this),l],c=u[0],d=u[1],h=this.getTimeouts(),p=l?h.appear:h.enter;if(!i&&!o||BI.disabled){this.safeSetState({status:Uf},function(){a.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Nu},function(){a.props.onEntering(c,d),a.onTransitionEnd(p,function(){a.safeSetState({status:Uf},function(){a.props.onEntered(c,d)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:Zf.findDOMNode(this);if(!a||BI.disabled){this.safeSetState({status:Fu},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:G4},function(){i.props.onExiting(l),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Fu},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:Zf.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=u[0],d=u[1];this.props.addEndListener(c,d)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===iv)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=Od(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return D.createElement(rH.Provider,{value:null},typeof o=="function"?o(i,l):D.cloneElement(D.Children.only(o),l))},t}(D.Component);Nl.contextType=rH;Nl.propTypes={};function Tf(){}Nl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Tf,onEntering:Tf,onEntered:Tf,onExit:Tf,onExiting:Tf,onExited:Tf};Nl.UNMOUNTED=iv;Nl.EXITED=Fu;Nl.ENTERING=Nu;Nl.ENTERED=Uf;Nl.EXITING=G4;const iH=Nl;var toe=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return Jae(t,n)})},mx=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return eoe(t,n)})},aM=function(e){Cm(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,u){var c=n.resolveArguments(l,u),d=c[0],h=c[1];n.removeClasses(d,"exit"),n.addClass(d,h?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(l,u)},n.onEntering=function(l,u){var c=n.resolveArguments(l,u),d=c[0],h=c[1],p=h?"appear":"enter";n.addClass(d,p,"active"),n.props.onEntering&&n.props.onEntering(l,u)},n.onEntered=function(l,u){var c=n.resolveArguments(l,u),d=c[0],h=c[1],p=h?"appear":"enter";n.removeClasses(d,p),n.addClass(d,p,"done"),n.props.onEntered&&n.props.onEntered(l,u)},n.onExit=function(l){var u=n.resolveArguments(l),c=u[0];n.removeClasses(c,"appear"),n.removeClasses(c,"enter"),n.addClass(c,"exit","base"),n.props.onExit&&n.props.onExit(l)},n.onExiting=function(l){var u=n.resolveArguments(l),c=u[0];n.addClass(c,"exit","active"),n.props.onExiting&&n.props.onExiting(l)},n.onExited=function(l){var u=n.resolveArguments(l),c=u[0];n.removeClasses(c,"exit"),n.addClass(c,"exit","done"),n.props.onExited&&n.props.onExited(l)},n.resolveArguments=function(l,u){return n.props.nodeRef?[n.props.nodeRef.current,l]:[l,u]},n.getClassNames=function(l){var u=n.props.classNames,c=typeof u=="string",d=c&&u?u+"-":"",h=c?""+d+l:u[l],p=c?h+"-active":u[l+"Active"],v=c?h+"-done":u[l+"Done"];return{baseClassName:h,activeClassName:p,doneClassName:v}},n}var r=t.prototype;return r.addClass=function(i,a,o){var l=this.getClassNames(a)[o+"ClassName"],u=this.getClassNames("enter"),c=u.doneClassName;a==="appear"&&o==="done"&&c&&(l+=" "+c),o==="active"&&i&&nH(i),l&&(this.appliedClasses[a][o]=l,toe(i,l))},r.removeClasses=function(i,a){var o=this.appliedClasses[a],l=o.base,u=o.active,c=o.done;this.appliedClasses[a]={},l&&mx(i,l),u&&mx(i,u),c&&mx(i,c)},r.render=function(){var i=this.props;i.classNames;var a=Od(i,["classNames"]);return D.createElement(iH,ai({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(D.Component);aM.defaultProps={classNames:""};aM.propTypes={};const eEe=aM;function kg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ba(e){return e&&e.__esModule?e.default:e}function Fr(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}const roe={entering:!1,entered:!0};function aH(e){return D.createElement(iH,{timeout:{enter:0,exit:350},...e},t=>D.Children.map(e.children,r=>r&&D.cloneElement(r,{isOpen:!!roe[t]})))}function noe(e,t){let{children:r,isOpen:n,disableFocusManagement:i,container:a,onEnter:o,onEntering:l,onEntered:u,onExit:c,onExiting:d,onExited:h,nodeRef:p}=e,[v,$]=z.useState(!n),S=z.useCallback(()=>{$(!1),u&&u()},[u]),g=z.useCallback(()=>{$(!0),h&&h()},[h]);return n||!v?D.createElement(bae,{portalContainer:a,disableFocusManagement:i,isExiting:!n},D.createElement(zb,{ref:t,UNSAFE_style:{background:"transparent",isolation:"isolate"},isDisabled:!1},D.createElement(aH,{in:n,appear:!0,onExit:c,onExiting:d,onExited:g,onEnter:o,onEntering:l,onEntered:S,nodeRef:p},r))):null}let jb=D.forwardRef(noe);var ya={};Fr(ya,"spectrum-Popover",()=>W4,e=>W4=e);Fr(ya,"react-spectrum-Popover",()=>V4,e=>V4=e);Fr(ya,"spectrum-Dialog-content",()=>K4,e=>K4=e);Fr(ya,"spectrum-Modal-wrapper",()=>q4,e=>q4=e);Fr(ya,"react-spectrum-Modal-wrapper",()=>Y4,e=>Y4=e);Fr(ya,"spectrum-Modal",()=>X4,e=>X4=e);Fr(ya,"react-spectrum-Modal",()=>Q4,e=>Q4=e);Fr(ya,"spectrum-Tray",()=>Z4,e=>Z4=e);Fr(ya,"react-spectrum-Tray",()=>J4,e=>J4=e);var W4,V4,K4,q4,Y4,X4,Q4,Z4,J4;W4="spectrum-Popover_38efea";V4="react-spectrum-Popover_38efea";K4="spectrum-Dialog-content_38efea";q4="spectrum-Modal-wrapper_38efea";Y4="react-spectrum-Modal-wrapper_38efea";X4="spectrum-Modal_38efea";Q4="react-spectrum-Modal_38efea";Z4="spectrum-Tray_38efea";J4="react-spectrum-Tray_38efea";var ba={};Fr(ba,"spectrum-Popover",()=>e8,e=>e8=e);Fr(ba,"is-open",()=>t8,e=>t8=e);Fr(ba,"spectrum-Popover--bottom",()=>r8,e=>r8=e);Fr(ba,"spectrum-Popover--top",()=>n8,e=>n8=e);Fr(ba,"spectrum-Popover--right",()=>i8,e=>i8=e);Fr(ba,"spectrum-Popover--left",()=>a8,e=>a8=e);Fr(ba,"spectrum-Popover--withTip",()=>o8,e=>o8=e);Fr(ba,"spectrum-Popover-tip",()=>l8,e=>l8=e);Fr(ba,"spectrum-Popover-tip-triangle",()=>s8,e=>s8=e);Fr(ba,"spectrum-Popover--dialog",()=>u8,e=>u8=e);var e8,t8,r8,n8,i8,a8,o8,l8,s8,u8;e8="spectrum-Popover_6115b8";t8="is-open_6115b8";r8="spectrum-Popover--bottom_6115b8";n8="spectrum-Popover--top_6115b8";i8="spectrum-Popover--right_6115b8";a8="spectrum-Popover--left_6115b8";o8="spectrum-Popover--withTip_6115b8";l8="spectrum-Popover-tip_6115b8";s8="spectrum-Popover-tip-triangle_6115b8";u8="spectrum-Popover--dialog_6115b8";var Hb={};Fr(Hb,"spectrum-Underlay",()=>c8,e=>c8=e);Fr(Hb,"is-open",()=>f8,e=>f8=e);Fr(Hb,"spectrum-Underlay--transparent",()=>d8,e=>d8=e);var c8,f8,d8;c8="spectrum-Underlay_eb7615";f8="is-open_eb7615";d8="spectrum-Underlay--transparent_eb7615";function oM({isOpen:e,isTransparent:t}){return D.createElement("div",{className:Le(Ba(Hb),"spectrum-Underlay",{"is-open":e,"spectrum-Underlay--transparent":t})})}let ioe={left:"right",right:"right",top:"bottom",bottom:"bottom"};function aoe(e,t){let{children:r,state:n,...i}=e,a=Bn(t),o=z.useRef(null);return D.createElement(jb,{...i,isOpen:n.isOpen,nodeRef:o},D.createElement(ooe,{ref:a,...e,wrapperRef:o},r))}const ooe=z.forwardRef((e,t)=>{let{children:r,isOpen:n,hideArrow:i,isNonModal:a,enableBothDismissButtons:o,state:l,wrapperRef:u}=e,{styleProps:c}=Dr(e),{size:d,borderWidth:h,arrowRef:p}=soe();const v=loe(t);let $=h*Math.SQRT2,S=d+$,g=S*2,{popoverProps:b,arrowProps:_,underlayProps:E,placement:A}=yae({...e,popoverRef:t,maxHeight:null,arrowSize:i?0:g,arrowBoundaryOffset:v},l),{focusWithinProps:M}=Em(e);return D.createElement("div",{ref:u},!a&&D.createElement(oM,{isTransparent:!0,...E,isOpen:n}),D.createElement("div",{...c,...tr(b,M),style:{...c.style,...b.style},ref:t,className:Le(Ba(ba),"spectrum-Popover",`spectrum-Popover--${A}`,{"spectrum-Popover--withTip":!i,"is-open":n},Le(Ba(ya),"spectrum-Popover","react-spectrum-Popover"),c.className),role:"presentation","data-testid":"popover"},(!a||o)&&D.createElement(Md,{onDismiss:l.close}),r,i?null:D.createElement(uoe,{arrowProps:_,isLandscape:ioe[A]==="bottom",arrowRef:p,primary:S,secondary:g,borderDiagonal:$}),D.createElement(Md,{onDismiss:l.close})))});function loe(e){let[t,r]=z.useState(0);return Sr(()=>{if(e.current){let n=window.getComputedStyle(e.current).borderRadius;n!==""&&r(parseInt(n,10))}},[e]),t}function soe(){let[e,t]=z.useState(20),[r,n]=z.useState(1),i=z.useRef(null);return Sr(()=>{if(i.current){let a=window.getComputedStyle(i.current).getPropertyValue("--spectrum-popover-tip-size");a!==""&&t(parseInt(a,10)/2);let o=window.getComputedStyle(i.current).getPropertyValue("--spectrum-popover-tip-borderWidth");o!==""&&n(parseInt(o,10))}},[]),{size:e,borderWidth:r,arrowRef:i}}function uoe(e){let{primary:t,secondary:r,isLandscape:n,arrowProps:i,borderDiagonal:a,arrowRef:o}=e,l=a/2,u=0,c=t-l,d=l,h=r/2,p=r-l,v=n?["M",d,u,"L",h,c,"L",p,u]:["M",u,d,"L",c,h,"L",u,p];return D.createElement("svg",{xmlns:"http://www.w3.org/svg/2000",width:Math.ceil(n?r:t),height:Math.ceil(n?t:r),className:Le(Ba(ba),"spectrum-Popover-tip"),ref:o,...i},D.createElement("path",{className:Le(Ba(ba),"spectrum-Popover-tip-triangle"),d:v.join(" ")}))}let lM=z.forwardRef(aoe);var Bs={};Fr(Bs,"spectrum-Modal",()=>p8,e=>p8=e);Fr(Bs,"is-open",()=>h8,e=>h8=e);Fr(Bs,"spectrum-Modal-wrapper",()=>v8,e=>v8=e);Fr(Bs,"spectrum-Modal--responsive",()=>m8,e=>m8=e);Fr(Bs,"spectrum-Modal--fullscreen",()=>g8,e=>g8=e);Fr(Bs,"spectrum-Modal--fullscreenTakeover",()=>y8,e=>y8=e);var p8,h8,v8,m8,g8,y8;p8="spectrum-Modal_f81956";h8="is-open_f81956";v8="spectrum-Modal-wrapper_f81956";m8="spectrum-Modal--responsive_f81956";g8="spectrum-Modal--fullscreen_f81956";y8="spectrum-Modal--fullscreenTakeover_f81956";function coe(e,t){let{children:r,state:n,...i}=e,a=Bn(t),o=z.useRef(null);return D.createElement(jb,{...i,isOpen:n.isOpen,nodeRef:o},D.createElement(doe,{...e,wrapperRef:o,ref:a},r))}let foe={fullscreen:"fullscreen",fullscreenTakeover:"fullscreenTakeover"},doe=z.forwardRef(function(e,t){let{type:r,children:n,state:i,isOpen:a,wrapperRef:o}=e,l=foe[r],{styleProps:u}=Dr(e),{modalProps:c,underlayProps:d}=jj(e,i,t),h=Le(Ba(Bs),"spectrum-Modal-wrapper",Le(Ba(ya),"spectrum-Modal-wrapper","react-spectrum-Modal-wrapper")),p=Le(Ba(Bs),"spectrum-Modal",{"is-open":a},Le(Ba(ya),"spectrum-Modal","react-spectrum-Modal"),{[`spectrum-Modal--${l}`]:l},u.className),$={"--spectrum-visual-viewport-height":FU().height+"px"};return D.createElement("div",{ref:o},D.createElement(oM,{...d,isOpen:a}),D.createElement("div",{className:h,style:$},D.createElement("div",{...u,...c,ref:t,className:p,"data-testid":"modal"},n)))}),poe=z.forwardRef(coe);var Rd={};Fr(Rd,"spectrum-Tray",()=>b8,e=>b8=e);Fr(Rd,"is-open",()=>$8,e=>$8=e);Fr(Rd,"spectrum-Tray-wrapper",()=>x8,e=>x8=e);Fr(Rd,"spectrum-Tray--fixedHeight",()=>w8,e=>w8=e);var b8,$8,x8,w8;b8="spectrum-Tray_23bf66";$8="is-open_23bf66";x8="spectrum-Tray-wrapper_23bf66";w8="spectrum-Tray--fixedHeight_23bf66";function hoe(e,t){let{children:r,state:n,...i}=e,a=Bn(t),o=z.useRef(null);return D.createElement(jb,{...i,isOpen:n.isOpen,nodeRef:o},D.createElement(voe,{...e,wrapperRef:o,ref:a},r))}let voe=z.forwardRef(function(e,t){let{children:r,isOpen:n,isFixedHeight:i,state:a,wrapperRef:o}=e,{styleProps:l}=Dr(e),{modalProps:u,underlayProps:c}=jj({...e,isDismissable:!0},a,t),h={"--spectrum-visual-viewport-height":FU().height+"px"},p=Le(Ba(Rd),"spectrum-Tray-wrapper"),v=Le(Ba(Rd),"spectrum-Tray",{"is-open":n,"spectrum-Tray--fixedHeight":i},Le(Ba(ya),"spectrum-Tray","react-spectrum-Tray"),l.className);return D.createElement("div",{ref:o},D.createElement(oM,{...c,isOpen:n}),D.createElement("div",{className:p,style:h},D.createElement("div",{...l,...u,className:v,ref:t,"data-testid":"tray"},D.createElement(Md,{onDismiss:a.close}),r,D.createElement(Md,{onDismiss:a.close}))))}),sM=z.forwardRef(hoe);function oH(e){return F1()?e.altKey:e.ctrlKey}function jf(e){return xm()?e.metaKey:e.ctrlKey}const moe=1e3;function goe(e){let{keyboardDelegate:t,selectionManager:r,onTypeSelect:n}=e,i=z.useRef({search:"",timeout:null}).current,a=o=>{let l=yoe(o.key);if(!l||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))return;l===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),i.search+=l;let u=t.getKeyForSearch(i.search,r.focusedKey);u==null&&(u=t.getKeyForSearch(i.search)),u!=null&&(r.setFocusedKey(u),n&&n(u)),clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},moe)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function yoe(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function lH(e){let{selectionManager:t,keyboardDelegate:r,ref:n,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:l=!1,selectOnFocus:u=t.selectionBehavior==="replace",disallowTypeAhead:c=!1,shouldUseVirtualFocus:d,allowsTabNavigation:h=!1,isVirtualized:p,scrollRef:v=n}=e,{direction:$}=wa(),S=I=>{if(I.altKey&&I.key==="Tab"&&I.preventDefault(),!n.current.contains(I.target))return;const j=($e,rt)=>{$e!=null&&(t.setFocusedKey($e,rt),I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection($e):u&&!oH(I)&&t.replaceSelection($e))};switch(I.key){case"ArrowDown":if(r.getKeyBelow){var he,q;I.preventDefault();let $e=t.focusedKey!=null?r.getKeyBelow(t.focusedKey):(he=r.getFirstKey)===null||he===void 0?void 0:he.call(r);$e==null&&a&&($e=(q=r.getFirstKey)===null||q===void 0?void 0:q.call(r,t.focusedKey)),j($e)}break;case"ArrowUp":if(r.getKeyAbove){var fe,ne;I.preventDefault();let $e=t.focusedKey!=null?r.getKeyAbove(t.focusedKey):(fe=r.getLastKey)===null||fe===void 0?void 0:fe.call(r);$e==null&&a&&($e=(ne=r.getLastKey)===null||ne===void 0?void 0:ne.call(r,t.focusedKey)),j($e)}break;case"ArrowLeft":if(r.getKeyLeftOf){var ce,De;I.preventDefault();let $e=r.getKeyLeftOf(t.focusedKey);$e==null&&a&&($e=$==="rtl"?(ce=r.getFirstKey)===null||ce===void 0?void 0:ce.call(r,t.focusedKey):(De=r.getLastKey)===null||De===void 0?void 0:De.call(r,t.focusedKey)),j($e,$==="rtl"?"first":"last")}break;case"ArrowRight":if(r.getKeyRightOf){var We,Ae;I.preventDefault();let $e=r.getKeyRightOf(t.focusedKey);$e==null&&a&&($e=$==="rtl"?(We=r.getLastKey)===null||We===void 0?void 0:We.call(r,t.focusedKey):(Ae=r.getFirstKey)===null||Ae===void 0?void 0:Ae.call(r,t.focusedKey)),j($e,$==="rtl"?"last":"first")}break;case"Home":if(r.getFirstKey){I.preventDefault();let $e=r.getFirstKey(t.focusedKey,jf(I));t.setFocusedKey($e),jf(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection($e):u&&t.replaceSelection($e)}break;case"End":if(r.getLastKey){I.preventDefault();let $e=r.getLastKey(t.focusedKey,jf(I));t.setFocusedKey($e),jf(I)&&I.shiftKey&&t.selectionMode==="multiple"?t.extendSelection($e):u&&t.replaceSelection($e)}break;case"PageDown":if(r.getKeyPageBelow){I.preventDefault();let $e=r.getKeyPageBelow(t.focusedKey);j($e)}break;case"PageUp":if(r.getKeyPageAbove){I.preventDefault();let $e=r.getKeyPageAbove(t.focusedKey);j($e)}break;case"a":jf(I)&&t.selectionMode==="multiple"&&l!==!0&&(I.preventDefault(),t.selectAll());break;case"Escape":I.preventDefault(),o||t.clearSelection();break;case"Tab":if(!h){if(I.shiftKey)n.current.focus();else{let $e=ma(n.current,{tabbable:!0}),rt,Be;do Be=$e.lastChild(),Be&&(rt=Be);while(Be);rt&&!rt.contains(document.activeElement)&&xs(rt)}break}}},g=z.useRef({top:0,left:0});Hne(v,"scroll",p?null:()=>{g.current={top:v.current.scrollTop,left:v.current.scrollLeft}});let b=I=>{if(t.isFocused){I.currentTarget.contains(I.target)||t.setFocused(!1);return}if(I.currentTarget.contains(I.target)){if(t.setFocused(!0),t.focusedKey==null){let q=ne=>{ne!=null&&(t.setFocusedKey(ne),u&&t.replaceSelection(ne))},fe=I.relatedTarget;var j,he;fe&&I.currentTarget.compareDocumentPosition(fe)&Node.DOCUMENT_POSITION_FOLLOWING?q((j=t.lastSelectedKey)!==null&&j!==void 0?j:r.getLastKey()):q((he=t.firstSelectedKey)!==null&&he!==void 0?he:r.getFirstKey())}else p||(v.current.scrollTop=g.current.top,v.current.scrollLeft=g.current.left);if(!p&&t.focusedKey!=null){let q=v.current.querySelector(`[data-key="${t.focusedKey}"]`);q&&(q.contains(document.activeElement)||xs(q),Pd()==="keyboard"&&dI(q,{containingElement:n.current}))}}},_=I=>{I.currentTarget.contains(I.relatedTarget)||t.setFocused(!1)};const E=z.useRef(i);z.useEffect(()=>{if(E.current){let I=null;i==="first"&&(I=r.getFirstKey()),i==="last"&&(I=r.getLastKey());let j=t.selectedKeys;j.size&&(I=j.values().next().value),t.setFocused(!0),t.setFocusedKey(I),I==null&&!d&&Pl(n.current)}E.current=!1},[]);let A=z.useRef(t.focusedKey);z.useEffect(()=>{let I=Pd();if(t.isFocused&&t.focusedKey!=null&&(v!=null&&v.current)){let j=v.current.querySelector(`[data-key="${t.focusedKey}"]`);j&&I==="keyboard"&&(p||NU(v.current,j),dI(j,{containingElement:n.current}))}t.isFocused&&t.focusedKey==null&&A.current!=null&&Pl(n.current),A.current=t.focusedKey},[p,v,t.focusedKey,t.isFocused,n]);let M={onKeyDown:S,onFocus:b,onBlur:_,onMouseDown(I){v.current===I.target&&I.preventDefault()}},{typeSelectProps:N}=goe({keyboardDelegate:r,selectionManager:t});c||(M=tr(N,M));let U;return d||(U=t.focusedKey==null?0:-1),{collectionProps:{...M,tabIndex:U}}}function sH(e){let{selectionManager:t,key:r,ref:n,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:o,isDisabled:l,onAction:u,allowsDifferentPressOrigin:c}=e,d=q=>{if(q.pointerType==="keyboard"&&oH(q))t.toggleSelection(r);else{if(t.selectionMode==="none")return;t.selectionMode==="single"?t.isSelected(r)&&!t.disallowEmptySelection?t.toggleSelection(r):t.replaceSelection(r):q&&q.shiftKey?t.extendSelection(r):t.selectionBehavior==="toggle"||q&&(jf(q)||q.pointerType==="touch"||q.pointerType==="virtual")?t.toggleSelection(r):t.replaceSelection(r)}};z.useEffect(()=>{r===t.focusedKey&&t.isFocused&&!a&&(o?o():document.activeElement!==n.current&&Pl(n.current))},[n,r,t.focusedKey,t.childFocusStrategy,t.isFocused,a]),l=l||t.isDisabled(r);let h={};!a&&!l?h={tabIndex:r===t.focusedKey?0:-1,onFocus(q){q.target===n.current&&t.setFocusedKey(r)}}:l&&(h.onMouseDown=q=>{q.preventDefault()});let p=!l&&t.canSelectItem(r),v=u&&!l,$=v&&(t.selectionBehavior==="replace"?!p:t.isEmpty),S=v&&p&&t.selectionBehavior==="replace",g=$||S,b=z.useRef(null),_=g&&p,E=z.useRef(!1),A=z.useRef(!1),M={};i?(M.onPressStart=q=>{b.current=q.pointerType,E.current=_,q.pointerType==="keyboard"&&(!g||UI())&&d(q)},c?(M.onPressUp=q=>{q.pointerType!=="keyboard"&&d(q)},M.onPress=$?()=>u():null):M.onPress=q=>{if($||S&&q.pointerType!=="mouse"){if(q.pointerType==="keyboard"&&!zI())return;u()}else q.pointerType!=="keyboard"&&d(q)}):(M.onPressStart=q=>{b.current=q.pointerType,E.current=_,A.current=$,(q.pointerType==="mouse"&&!$||q.pointerType==="keyboard"&&(!u||UI()))&&d(q)},M.onPress=q=>{(q.pointerType==="touch"||q.pointerType==="pen"||q.pointerType==="virtual"||q.pointerType==="keyboard"&&g&&zI()||q.pointerType==="mouse"&&A.current)&&(g?u():d(q))}),h["data-key"]=r,M.preventFocusOnPress=a;let{pressProps:N,isPressed:U}=_m(M),I=S?q=>{b.current==="mouse"&&(q.stopPropagation(),q.preventDefault(),u())}:void 0,{longPressProps:j}=QU({isDisabled:!_,onLongPress(q){q.pointerType==="touch"&&(d(q),t.setSelectionBehavior("toggle"))}});return{itemProps:tr(h,p||$?N:{},_?j:{},{onDoubleClick:I,onDragStartCapture:q=>{b.current==="touch"&&E.current&&q.preventDefault()}}),isPressed:U,isSelected:t.isSelected(r),isFocused:t.isFocused&&t.focusedKey===r,isDisabled:l,allowsSelection:p,hasAction:g}}function zI(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function UI(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class uH{getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,r,n){let i=this.getItem(t);if(!i)return null;let a=i.getBoundingClientRect();do t=r(t),i=this.getItem(t);while(i&&n(a,i.getBoundingClientRect()));return t}isSameRow(t,r){return t.top===r.top||t.left!==r.left}isSameColumn(t,r){return t.left===r.left||t.top!==r.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getNextKey(r),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,r=>this.getPreviousKey(r),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,r){return r?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,r=>this.getNextColumn(r,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${t}"]`)}getKeyPageAbove(t){let r=this.ref.current,n=this.getItem(t);if(!n)return null;if(!Sy(r))return this.getFirstKey();let i=r.getBoundingClientRect(),a=n.getBoundingClientRect();if(this.orientation==="horizontal"){let o=i.x-r.scrollLeft,l=Math.max(0,a.x-o+a.width-i.width);for(;n&&a.x-o>l;)t=this.getKeyAbove(t),n=t==null?null:this.getItem(t),a=n==null?void 0:n.getBoundingClientRect()}else{let o=i.y-r.scrollTop,l=Math.max(0,a.y-o+a.height-i.height);for(;n&&a.y-o>l;)t=this.getKeyAbove(t),n=t==null?null:this.getItem(t),a=n==null?void 0:n.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let r=this.ref.current,n=this.getItem(t);if(!n)return null;if(!Sy(r))return this.getLastKey();let i=r.getBoundingClientRect(),a=n.getBoundingClientRect();if(this.orientation==="horizontal"){let o=i.x-r.scrollLeft,l=Math.min(r.scrollWidth,a.x-o-a.width+i.width);for(;n&&a.x-o<l;)t=this.getKeyBelow(t),n=t==null?null:this.getItem(t),a=n==null?void 0:n.getBoundingClientRect()}else{let o=i.y-r.scrollTop,l=Math.min(r.scrollHeight,a.y-o-a.height+i.height);for(;n&&a.y-o<l;)t=this.getKeyBelow(t),n=t==null?null:this.getItem(t),a=n==null?void 0:n.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,i=r||this.getFirstKey();for(;i!=null;){let a=n.getItem(i),o=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(o,t)===0)return i;i=this.getKeyBelow(i)}return null}constructor(...t){if(t.length===1){let r=t[0];this.collection=r.collection,this.ref=r.ref,this.disabledKeys=r.disabledKeys||new Set,this.orientation=r.orientation,this.direction=r.direction,this.layout=r.layout||"stack"}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function cH(e){let{selectionManager:t,collection:r,disabledKeys:n,ref:i,keyboardDelegate:a,autoFocus:o,shouldFocusWrap:l,isVirtualized:u,disallowEmptySelection:c,selectOnFocus:d=t.selectionBehavior==="replace",disallowTypeAhead:h,shouldUseVirtualFocus:p,allowsTabNavigation:v}=e,$=VP({usage:"search",sensitivity:"base"}),S=t.disabledBehavior,g=z.useMemo(()=>a||new uH(r,S==="selection"?new Set:n,i,$),[a,r,n,i,$,S]),{collectionProps:b}=lH({ref:i,selectionManager:t,keyboardDelegate:g,autoFocus:o,shouldFocusWrap:l,disallowEmptySelection:c,selectOnFocus:d,disallowTypeAhead:h,shouldUseVirtualFocus:p,allowsTabNavigation:v,isVirtualized:u,scrollRef:i});return{listProps:b}}function boe(e){return e&&e.__esModule?e.default:e}var fH={},dH={};dH={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var pH={};pH={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var hH={};hH={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var vH={};vH={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var mH={};mH={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var gH={};gH={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var yH={};yH={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var bH={};bH={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var $H={};$H={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var xH={};xH={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var wH={};wH={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var _H={};_H={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var SH={};SH={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var EH={};EH={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var AH={};AH={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var CH={};CH={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var TH={};TH={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var PH={};PH={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var MH={};MH={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var OH={};OH={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var RH={};RH={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var IH={};IH={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var kH={};kH={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var FH={};FH={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var NH={};NH={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var LH={};LH={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var DH={};DH={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var BH={};BH={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var zH={};zH={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var UH={};UH={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var jH={};jH={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var HH={};HH={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var GH={};GH={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var WH={};WH={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};fH={"ar-AE":dH,"bg-BG":pH,"cs-CZ":hH,"da-DK":vH,"de-DE":mH,"el-GR":gH,"en-US":yH,"es-ES":bH,"et-EE":$H,"fi-FI":xH,"fr-FR":wH,"he-IL":_H,"hr-HR":SH,"hu-HU":EH,"it-IT":AH,"ja-JP":CH,"ko-KR":TH,"lt-LT":PH,"lv-LV":MH,"nb-NO":OH,"nl-NL":RH,"pl-PL":IH,"pt-BR":kH,"pt-PT":FH,"ro-RO":NH,"ru-RU":LH,"sk-SK":DH,"sl-SI":BH,"sr-SP":zH,"sv-SE":UH,"tr-TR":jH,"uk-UA":HH,"zh-CN":GH,"zh-TW":WH};function VH(e,t,r){let{type:n="menu",isDisabled:i,trigger:a="press"}=e,o=ui(),{triggerProps:l,overlayProps:u}=tM({type:n},t,r),c=v=>{if(!i&&!(a==="longPress"&&!v.altKey)&&r&&r.current)switch(v.key){case"Enter":case" ":if(a==="longPress")return;case"ArrowDown":"continuePropagation"in v||v.stopPropagation(),v.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in v||v.stopPropagation(),v.preventDefault(),t.toggle("last");break;default:"continuePropagation"in v&&v.continuePropagation()}},d=Va(boe(fH)),{longPressProps:h}=QU({isDisabled:i||a!=="longPress",accessibilityDescription:d.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={onPressStart(v){v.pointerType!=="touch"&&v.pointerType!=="keyboard"&&!i&&t.toggle(v.pointerType==="virtual"?"first":null)},onPress(v){v.pointerType==="touch"&&!i&&t.toggle()}};return delete l.onPress,{menuTriggerProps:{...l,...a==="press"?p:h,id:o,onKeyDown:c},menuProps:{...u,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const KH=new WeakMap;function $oe(e,t,r){let{shouldFocusWrap:n=!0,...i}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let a=Gr(e,{labelable:!0}),{listProps:o}=cH({...i,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:n});return KH.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:tr(a,{role:"menu","aria-hidden":t.expandedKeys.size>0?!0:void 0,...o,onKeyDown:l=>{l.key!=="Escape"&&o.onKeyDown(l)}})}}function xoe(e,t,r){let{key:n,closeOnSelect:i,isVirtualized:a,"aria-haspopup":o}=e,{direction:l}=wa(),u=!!o,c=t.expandedKeys.has(n);var d;let h=(d=e.isDisabled)!==null&&d!==void 0?d:t.disabledKeys.has(n);var p;let v=(p=e.isSelected)!==null&&p!==void 0?p:t.selectionManager.isSelected(n),$=z.useRef(),S=z.useCallback(()=>{$.current&&(clearTimeout($.current),$.current=void 0)},[$]),g=Da(()=>{S(),t.setExpandedKeys(new Set([n]))});Sr(()=>()=>S(),[S]);let b=KH.get(t),_=e.onClose||b.onClose,E=z.useCallback(()=>{g()},[]),A=u?E:e.onAction||b.onAction,M="menuitem";t.selectionManager.selectionMode==="single"?M="menuitemradio":t.selectionManager.selectionMode==="multiple"&&(M="menuitemcheckbox");let N=Cl(),U=Cl(),I=Cl(),j={"aria-disabled":h||void 0,role:M,"aria-label":e["aria-label"],"aria-labelledby":N,"aria-describedby":[U,I].filter(Boolean).join(" ")||void 0};t.selectionManager.selectionMode!=="none"&&(j["aria-checked"]=v),a&&(j["aria-posinset"]=t.collection.getItem(n).index,j["aria-setsize"]=UP(t.collection)),o!=null&&(j["aria-haspopup"]=o,j["aria-expanded"]=c?"true":"false");let he=$e=>{$e.pointerType==="keyboard"&&A&&A(n)},q=$e=>{$e.pointerType!=="keyboard"&&(A&&A(n),!u&&_&&(i??t.selectionManager.selectionMode!=="multiple")&&_())},{itemProps:fe,isFocused:ne}=sH({selectionManager:t.selectionManager,key:n,ref:r,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0}),{pressProps:ce,isPressed:De}=_m({onPressStart:he,onPressUp:q,isDisabled:h||u&&t.expandedKeys.has(n)}),{hoverProps:We}=ta({isDisabled:h,onHoverStart(){!lc()&&!(u&&t.expandedKeys.has(n))&&(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(n),n===t.selectionManager.focusedKey&&t.selectionManager.isFocused&&document.activeElement!==r.current&&Pl(r.current))},onHoverChange:$e=>{$e&&u&&!t.expandedKeys.has(n)?$.current||($.current=setTimeout(()=>{g()},200)):$e||S()}}),{keyboardProps:Ae}=QP({onKeyDown:$e=>{if($e.repeat){$e.continuePropagation();return}switch($e.key){case" ":!h&&t.selectionManager.selectionMode==="none"&&!u&&i!==!1&&_&&_();break;case"Enter":!h&&i!==!1&&!u&&_&&_();break;case"ArrowRight":u&&l==="ltr"?g():$e.continuePropagation();break;case"ArrowLeft":u&&l==="rtl"?g():$e.continuePropagation();break;default:$e.continuePropagation();break}}});return{menuItemProps:{...j,...tr(fe,ce,We,Ae)},labelProps:{id:N},descriptionProps:{id:U},keyboardShortcutProps:{id:I},isFocused:ne,isSelected:v,isPressed:De,isDisabled:h}}function woe(e){let{heading:t,"aria-label":r}=e,n=ui();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}function uM(e){let[t,r]=bm(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const n=z.useCallback(()=>{r(!0)},[r]),i=z.useCallback(()=>{r(!1)},[r]),a=z.useCallback(()=>{r(!t)},[r,t]);return{isOpen:t,setOpen:r,open:n,close:i,toggle:a}}function qH(e){let t=uM(e),[r,n]=z.useState(null);return{focusStrategy:r,...t,open(i=null){n(i),t.open()},toggle(i=null){n(i),t.toggle()}}}class so extends Set{constructor(t,r,n){super(t),t instanceof so?(this.anchorKey=r||t.anchorKey,this.currentKey=n||t.currentKey):(this.anchorKey=r,this.currentKey=n)}}function _oe(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function YH(e){let{selectionMode:t="none",disallowEmptySelection:r,allowDuplicateSelectionEvents:n,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,o=z.useRef(!1),[,l]=z.useState(!1),u=z.useRef(null),c=z.useRef(null),[,d]=z.useState(null),h=z.useMemo(()=>jI(e.selectedKeys),[e.selectedKeys]),p=z.useMemo(()=>jI(e.defaultSelectedKeys,new so),[e.defaultSelectedKeys]),[v,$]=bm(h,p,e.onSelectionChange),S=z.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[g,b]=z.useState(i);i==="replace"&&g==="toggle"&&typeof v=="object"&&v.size===0&&b("replace");let _=z.useRef(i);return z.useEffect(()=>{i!==_.current&&(b(i),_.current=i)},[i]),{selectionMode:t,disallowEmptySelection:r,selectionBehavior:g,setSelectionBehavior:b,get isFocused(){return o.current},setFocused(E){o.current=E,l(E)},get focusedKey(){return u.current},get childFocusStrategy(){return c.current},setFocusedKey(E,A="first"){u.current=E,c.current=A,d(E)},selectedKeys:v,setSelectedKeys(E){(n||!_oe(E,v))&&$(E)},disabledKeys:S,disabledBehavior:a}}function jI(e,t){return e?e==="all"?"all":new so(e):t}class XH{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,r){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,r)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),r=this.state.selectedKeys;return this._isSelectAll=t.every(n=>r.has(n)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!t||n&&ex(this.collection,n,t)<0)&&(t=n)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let r of this.state.selectedKeys){let n=this.collection.getItem(r);(!t||n&&ex(this.collection,n,t)>0)&&(t=n)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let r;if(this.state.selectedKeys==="all")r=new so([t],t,t);else{let n=this.state.selectedKeys,i=n.anchorKey||t;r=new so(n,i,t);for(let a of this.getKeyRange(i,n.currentKey||t))r.delete(a);for(let a of this.getKeyRange(t,i))this.canSelectItem(a)&&r.add(a)}this.state.setSelectedKeys(r)}getKeyRange(t,r){let n=this.collection.getItem(t),i=this.collection.getItem(r);return n&&i?ex(this.collection,n,i)<=0?this.getKeyRangeInternal(t,r):this.getKeyRangeInternal(r,t):[]}getKeyRangeInternal(t,r){let n=[],i=t;for(;i;){let a=this.collection.getItem(i);if((a&&a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&n.push(i),i===r)return n;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let r=this.collection.getItem(t);if(!r||r.type==="cell"&&this.allowsCellSelection)return t;for(;r.type!=="item"&&r.parentKey!=null;)r=this.collection.getItem(r.parentKey);return!r||r.type!=="item"?null:r.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let r=new so(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);r.has(t)?r.delete(t):this.canSelectItem(t)&&(r.add(t),r.anchorKey=t,r.currentKey=t),!(this.disallowEmptySelection&&r.size===0)&&this.state.setSelectedKeys(r)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let r=this.canSelectItem(t)?new so([t],t,t):new so;this.state.setSelectedKeys(r)}setSelectedKeys(t){if(this.selectionMode==="none")return;let r=new so;for(let n of t)if(n=this.getKey(n),n!=null&&(r.add(n),this.selectionMode==="single"))break;this.state.setSelectedKeys(r)}getSelectAllKeys(){let t=[],r=n=>{for(;n;){if(this.canSelectItem(n)){let i=this.collection.getItem(n);i.type==="item"&&t.push(n),i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&r(mne(ac(i,this.collection)).key)}n=this.collection.getKeyAfter(n)}};return r(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new so)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,r){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||r&&(r.pointerType==="touch"||r.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let r=this.selectedKeys;if(t.size!==r.size)return!1;for(let n of t)if(!r.has(n))return!1;for(let n of r)if(!t.has(n))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}constructor(t,r,n){this.collection=t,this.state=r;var i;this.allowsCellSelection=(i=n==null?void 0:n.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null}}class Soe{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}constructor(t,{expandedKeys:r}={}){this.keyMap=new Map,this.iterable=t,r=r||new Set;let n=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&(o.type==="section"||r.has(o.key)))for(let l of o.childNodes)n(l)};for(let o of t)n(o);let i,a=0;for(let[o,l]of this.keyMap)i?(i.nextKey=o,l.prevKey=i.key):(this.firstKey=o,l.prevKey=void 0),l.type==="item"&&(l.index=a++),i=l,i.nextKey=void 0;this.lastKey=i==null?void 0:i.key}}function Eoe(e){let[t,r]=bm(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,e.onExpandedChange),n=YH(e),i=z.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),a=OU(e,z.useCallback(l=>new Soe(l,{expandedKeys:t}),[t]),null);return z.useEffect(()=>{n.focusedKey!=null&&!a.getItem(n.focusedKey)&&n.setFocusedKey(null)},[a,n.focusedKey]),{collection:a,expandedKeys:t,disabledKeys:i,toggleKey:l=>{r(Aoe(t,l))},setExpandedKeys:r,selectionManager:new XH(a,n)}}function Aoe(e,t){let r=new Set(e);return r.has(t)?r.delete(t):r.add(t),r}var QH={};Object.defineProperty(QH,"__esModule",{value:!0});var Coe=QH.CheckmarkMedium=ZH,gx=Toe(z);function Toe(e){return e&&e.__esModule?e:{default:e}}function _8(){return _8=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},_8.apply(this,arguments)}function Poe(e,t){if(e==null)return{};var r=Moe(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 Moe(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 ZH(e){var t=e.scale,r=t===void 0?"M":t,n=Poe(e,["scale"]);return gx.default.createElement("svg",_8({},n,n),r==="L"&&gx.default.createElement("path",{d:"M6 14a1 1 0 0 1-.789-.385l-4-5a1 1 0 1 1 1.577-1.23L6 11.376l7.213-8.99a1 1 0 1 1 1.576 1.23l-8 10a1 1 0 0 1-.789.384z"}),r==="M"&&gx.default.createElement("path",{d:"M4.5 10a1.022 1.022 0 0 1-.799-.384l-2.488-3a1 1 0 0 1 1.576-1.233L4.5 7.376l4.712-5.991a1 1 0 1 1 1.576 1.23l-5.51 7A.978.978 0 0 1 4.5 10z"}))}ZH.displayName="CheckmarkMedium";function Gb(e){return D.createElement(Ho,e,D.createElement(Coe,null))}function yx(e){return e&&e.__esModule?e.default:e}function cM(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}const Ooe={...Nb,autoFlow:["gridAutoFlow",Xn],autoColumns:["gridAutoColumns",Iy],autoRows:["gridAutoRows",Iy],areas:["gridTemplateAreas",Ioe],columns:["gridTemplateColumns",HI],rows:["gridTemplateRows",HI],gap:["gap",Rr],rowGap:["rowGap",Rr],columnGap:["columnGap",Rr],justifyItems:["justifyItems",Xn],justifyContent:["justifyContent",Xn],alignItems:["alignItems",Xn],alignContent:["alignContent",Xn]};function Roe(e,t){let{children:r,...n}=e,{styleProps:i}=Dr(n,Ooe);i.style.display="grid";let a=Bn(t);return D.createElement("div",{...Gr(n),...i,ref:a},r)}function Ioe(e){return e.map(t=>`"${t}"`).join(`
42
+ `)}function Iy(e){return/^max-content|min-content|minmax|auto|fit-content|repeat|subgrid/.test(e)?e:Rr(e)}function HI(e){return Array.isArray(e)?e.map(Iy).join(" "):Iy(e)}const fM=z.forwardRef(Roe);var yd={};cM(yd,"flex-container",()=>S8,e=>S8=e);cM(yd,"flex",()=>E8,e=>E8=e);cM(yd,"flex-gap",()=>A8,e=>A8=e);var S8,E8,A8;S8="flex-container_e15493";E8="flex_e15493";A8="flex-gap_e15493";const koe={direction:["flexDirection",Xn],wrap:["flexWrap",Noe],justifyContent:["justifyContent",bx],alignItems:["alignItems",bx],alignContent:["alignContent",bx]};function Foe(e,t){let{children:r,...n}=e,i=WU(),a=(i==null?void 0:i.matchedBreakpoints)||["base"],{styleProps:o}=Dr(n),{styleProps:l}=Dr(n,koe),u=Bn(t),c=Ec();if((e.gap||e.rowGap||e.columnGap)&&(c||!Loe())){let h={...l.style,"--column-gap":e.columnGap!=null?Sf(e.columnGap,a):void 0,"--row-gap":e.rowGap!=null?Sf(e.rowGap,a):void 0,"--gap":e.gap!=null?Sf(e.gap,a):void 0};return D.createElement("div",{...Gr(n),...o,className:Le(yx(yd),"flex-container",o.className),ref:u},D.createElement("div",{className:Le(yx(yd),"flex","flex-gap"),style:h},r))}let d={...o.style,...l.style};return e.gap!=null&&(d.gap=Sf(e.gap,a)),e.columnGap!=null&&(d.columnGap=Sf(e.columnGap,a)),e.rowGap!=null&&(d.rowGap=Sf(e.rowGap,a)),D.createElement("div",{...Gr(n),className:Le(yx(yd),"flex",o.className),style:d,ref:u},r)}function bx(e){return e==="start"?"flex-start":e==="end"?"flex-end":e}function Noe(e){return typeof e=="boolean"?e?"wrap":"nowrap":e}let Fg=null;function Loe(){if(Fg!=null)return Fg;if(typeof document>"u")return!1;var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Fg=e.scrollHeight===1,e.parentNode.removeChild(e),Fg}const JH=z.forwardRef(Foe);var eG={};Object.defineProperty(eG,"__esModule",{value:!0});var Doe=eG.A4uInfoOutline=zoe,GI=Boe(z);function Boe(e){return e&&e.__esModule?e:{default:e}}function ky(){return ky=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},ky.apply(this,arguments)}function zoe(e){var t=ky({},e);return GI.default.createElement("svg",ky({viewBox:"0 0 36 36"},t,t),GI.default.createElement("path",{fillRule:"evenodd",d:"M20.15,12A2.15,2.15,0,1,1,18,9.85,2.15,2.15,0,0,1,20.15,12Zm.1835,12H20V16.3999A.4001.4001,0,0,0,19.60007,16H15.66648S14.5,16.03223,14.5,17c0,.96729,1.16651,1,1.16651,1H16v6h-.33349S14.5,24.03223,14.5,25c0,.96729,1.16651,1,1.16651,1h4.667S21.5,25.96729,21.5,25C21.5,24.03223,20.33347,24,20.33347,24ZM18,1A17,17,0,1,0,35.00008,18,17.00014,17.00014,0,0,0,18,1Zm0,30.34961A13.34961,13.34961,0,1,1,31.34967,18,13.34962,13.34962,0,0,1,18,31.34961Z"}))}function Uoe(e){return D.createElement(qj,e,D.createElement(Doe,null))}function tG(e){let t=Gr(e,{labelable:!0}),r;return e.orientation==="vertical"&&(r="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":r}}:{separatorProps:t}}var rG={};Object.defineProperty(rG,"__esModule",{value:!0});var joe=rG.A4uMore=Goe,Ng=Hoe(z);function Hoe(e){return e&&e.__esModule?e:{default:e}}function Fy(){return Fy=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},Fy.apply(this,arguments)}function Goe(e){var t=Fy({},e);return Ng.default.createElement("svg",Fy({viewBox:"0 0 36 36"},t,t),Ng.default.createElement("circle",{fillRule:"evenodd",cx:"17.8",cy:"18.2",r:"3.4"}),Ng.default.createElement("circle",{fillRule:"evenodd",cx:"29.5",cy:"18.2",r:"3.4"}),Ng.default.createElement("circle",{fillRule:"evenodd",cx:"6.1",cy:"18.2",r:"3.4"}))}function Woe(e){return D.createElement(qj,e,D.createElement(joe,null))}function Li(e){return e&&e.__esModule?e.default:e}function Xr(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}const dM=D.createContext({});function Voe(){return z.useContext(dM)}const Koe=D.createContext(void 0);function qoe(){return z.useContext(Koe)}const Yoe=D.createContext({});var _r={};Xr(_r,"spectrum-Menu-popover",()=>C8,e=>C8=e);Xr(_r,"spectrum-Menu",()=>T8,e=>T8=e);Xr(_r,"spectrum-Menu-sectionHeading",()=>P8,e=>P8=e);Xr(_r,"spectrum-Menu-checkmark",()=>M8,e=>M8=e);Xr(_r,"spectrum-Menu-item",()=>O8,e=>O8=e);Xr(_r,"is-selected",()=>R8,e=>R8=e);Xr(_r,"spectrum-Icon",()=>I8,e=>I8=e);Xr(_r,"spectrum-Menu-itemLabel",()=>k8,e=>k8=e);Xr(_r,"spectrum-Menu-itemIcon",()=>F8,e=>F8=e);Xr(_r,"spectrum-Menu-itemLabel--wrapping",()=>N8,e=>N8=e);Xr(_r,"spectrum-Menu-divider",()=>L8,e=>L8=e);Xr(_r,"spectrum-Menu-itemGrid",()=>D8,e=>D8=e);Xr(_r,"is-selectable",()=>B8,e=>B8=e);Xr(_r,"spectrum-Menu-end",()=>z8,e=>z8=e);Xr(_r,"spectrum-Menu-icon",()=>U8,e=>U8=e);Xr(_r,"spectrum-Menu-description",()=>j8,e=>j8=e);Xr(_r,"spectrum-Menu-keyboard",()=>H8,e=>H8=e);Xr(_r,"focus-ring",()=>G8,e=>G8=e);Xr(_r,"is-focused",()=>W8,e=>W8=e);Xr(_r,"is-hovered",()=>V8,e=>V8=e);Xr(_r,"is-highlighted",()=>K8,e=>K8=e);Xr(_r,"is-open",()=>q8,e=>q8=e);Xr(_r,"is-active",()=>Y8,e=>Y8=e);Xr(_r,"is-disabled",()=>X8,e=>X8=e);var C8,T8,P8,M8,O8,R8,I8,k8,F8,N8,L8,D8,B8,z8,U8,j8,H8,G8,W8,V8,K8,q8,Y8,X8;C8="spectrum-Menu-popover_7ea47c";T8="spectrum-Menu_7ea47c";P8="spectrum-Menu-sectionHeading_7ea47c";M8="spectrum-Menu-checkmark_7ea47c";O8="spectrum-Menu-item_7ea47c";R8="is-selected_7ea47c";I8="spectrum-Icon_7ea47c";k8="spectrum-Menu-itemLabel_7ea47c";F8="spectrum-Menu-itemIcon_7ea47c";N8="spectrum-Menu-itemLabel--wrapping_7ea47c";L8="spectrum-Menu-divider_7ea47c";D8="spectrum-Menu-itemGrid_7ea47c";B8="is-selectable_7ea47c";z8="spectrum-Menu-end_7ea47c";U8="spectrum-Menu-icon_7ea47c";j8="spectrum-Menu-description_7ea47c";H8="spectrum-Menu-keyboard_7ea47c";G8="focus-ring_7ea47c";W8="is-focused_7ea47c";V8="is-hovered_7ea47c";K8="is-highlighted_7ea47c";q8="is-open_7ea47c";Y8="is-active_7ea47c";X8="is-disabled_7ea47c";function Xoe(e,t){let r=z.useRef(),i=Bn(t)||r,a=z.useRef(),{children:o,align:l="start",shouldFlip:u=!0,direction:c="bottom",closeOnSelect:d,trigger:h="press"}=e,[p,v]=D.Children.toArray(o),$=qH(e),{menuTriggerProps:S,menuProps:g}=VH({trigger:h},$,i),b;switch(c){case"left":case"right":case"start":case"end":b=`${c} ${l==="end"?"bottom":"top"}`;break;case"bottom":case"top":default:b=`${c} ${l}`}let _=XP(),E={...g,state:$,ref:a,onClose:$.close,closeOnSelect:d,autoFocus:$.focusStrategy||!0,UNSAFE_style:_?{width:"100%",maxHeight:"inherit"}:void 0,UNSAFE_className:Le(Li(_r),{"spectrum-Menu-popover":!_})},A;return _?A=D.createElement(sM,{state:$},v):A=D.createElement(lM,{UNSAFE_style:{clipPath:"unset"},state:$,triggerRef:i,scrollRef:a,placement:b,hideArrow:!0,shouldFlip:u},v),D.createElement(z.Fragment,null,D.createElement(Ka,{slots:{actionButton:{holdAffordance:h==="longPress"}}},D.createElement(Sm,{...S,ref:i,isPressed:$.isOpen},p)),D.createElement(dM.Provider,{value:E},A))}let Qoe=z.forwardRef(Xoe);var nG={},iG={};iG={moreActions:"المزيد من الإجراءات",unavailable:"قُم بالتوسيع للحصول على التفاصيل"};var aG={};aG={moreActions:"Повече действия",unavailable:"Разширете за подробности"};var oG={};oG={moreActions:"Další akce",unavailable:"Podrobnosti zobrazíte rozbalením"};var lG={};lG={moreActions:"Flere handlinger",unavailable:"Udvid for detaljer"};var sG={};sG={moreActions:"Mehr Aktionen",unavailable:"Für Details erweitern"};var uG={};uG={moreActions:"Περισσότερες ενέργειες",unavailable:"Ανάπτυξη για λεπτομέρειες"};var cG={};cG={moreActions:"More actions",unavailable:"Expand for details"};var fG={};fG={moreActions:"Más acciones",unavailable:"Ampliar para más detalles"};var dG={};dG={moreActions:"Veel toiminguid",unavailable:"Laiendage üksikasjade kuvamiseks"};var pG={};pG={moreActions:"Lisää toimintoja",unavailable:"Laajenna lisätietoja"};var hG={};hG={moreActions:"Autres actions",unavailable:"Agrandir pour plus de détails"};var vG={};vG={moreActions:"פעולות נוספות",unavailable:"הרחב לפרטים"};var mG={};mG={moreActions:"Dodatne radnje",unavailable:"Proširite za detalje"};var gG={};gG={moreActions:"További lehetőségek",unavailable:"A részletekért bontsa ki"};var yG={};yG={moreActions:"Altre azioni",unavailable:"Espandi per i dettagli"};var bG={};bG={moreActions:"その他のアクション",unavailable:"展開して詳細を見る"};var $G={};$G={moreActions:"기타 액션",unavailable:"자세히 보려면 펼치기"};var xG={};xG={moreActions:"Daugiau veiksmų",unavailable:"Norėdami gauti daugiau informacijos, išskleiskite"};var wG={};wG={moreActions:"Citas darbības",unavailable:"Izvērst, lai iegūtu sīkāku informāciju"};var _G={};_G={moreActions:"Flere handlinger",unavailable:"Utvid for detaljer"};var SG={};SG={moreActions:"Meer handelingen",unavailable:"Uitvouwen voor meer informatie"};var EG={};EG={moreActions:"Więcej akcji",unavailable:"Rozwiń, aby zobaczyć szczegóły"};var AG={};AG={moreActions:"Mais ações",unavailable:"Expandir para ver detalhes"};var CG={};CG={moreActions:"Mais ações",unavailable:"Expandir para obter mais pormenores"};var TG={};TG={moreActions:"Mai multe acțiuni",unavailable:"Extindeți pentru detalii"};var PG={};PG={moreActions:"Дополнительные действия",unavailable:"Развернуть для подробностей"};var MG={};MG={moreActions:"Ďalšie akcie",unavailable:"Rozbaľte a zobrazte podrobnosti"};var OG={};OG={moreActions:"Več možnosti",unavailable:"Razširite za podrobnosti"};var RG={};RG={moreActions:"Dodatne radnje",unavailable:"Expand for details"};var IG={};IG={moreActions:"Fler åtgärder",unavailable:"Expandera för information"};var kG={};kG={moreActions:"Daha fazla eylem",unavailable:"Ayrıntıları görmek için genişletin"};var FG={};FG={moreActions:"Більше дій",unavailable:"Розгорніть для докладнішої інформації"};var NG={};NG={moreActions:"更多操作",unavailable:"展开以查看详细信息"};var LG={};LG={moreActions:"更多動作",unavailable:"展開以取得詳細資料"};nG={"ar-AE":iG,"bg-BG":aG,"cs-CZ":oG,"da-DK":lG,"de-DE":sG,"el-GR":uG,"en-US":cG,"es-ES":fG,"et-EE":dG,"fi-FI":pG,"fr-FR":hG,"he-IL":vG,"hr-HR":mG,"hu-HU":gG,"it-IT":yG,"ja-JP":bG,"ko-KR":$G,"lt-LT":xG,"lv-LV":wG,"nb-NO":_G,"nl-NL":SG,"pl-PL":EG,"pt-BR":AG,"pt-PT":CG,"ro-RO":TG,"ru-RU":PG,"sk-SK":MG,"sl-SI":OG,"sr-SP":RG,"sv-SE":IG,"tr-TR":kG,"uk-UA":FG,"zh-CN":NG,"zh-TW":LG};function DG(e){let{item:t,state:r,isVirtualized:n,onAction:i}=e,a=Va(Li(nG)),o=qoe(),{triggerRef:l}=o||{},u=!!o,c=!1;u&&(c=o.isUnavailable);let d=Gr(t.props),{onClose:h,closeOnSelect:p}=Voe(),{rendered:v,key:$}=t,S=r.selectionManager.isSelected($),g=r.disabledKeys.has($),b=z.useRef(null),_=kne(z.useMemo(()=>Cne(b,l),[b,l])),{menuItemProps:E,labelProps:A,descriptionProps:M,keyboardShortcutProps:N}=xoe({isSelected:S,isDisabled:g,"aria-label":t["aria-label"],key:$,onClose:h,closeOnSelect:p,isVirtualized:n,onAction:i,"aria-haspopup":u&&c?"dialog":void 0},r,_),U=Cl(),I={};U&&(I.id=U,E["aria-describedby"]=[E["aria-describedby"],U].filter(Boolean).join(" ")),c&&(E["aria-disabled"]="true");let j=typeof v=="string"?D.createElement(tp,null,v):v;return D.createElement(qs,{focusRingClass:Le(Li(_r),"focus-ring")},D.createElement("li",{...tr(E,d),ref:_,className:Le(Li(_r),"spectrum-Menu-item",{"is-disabled":g,"is-selected":S,"is-selectable":r.selectionManager.selectionMode!=="none","is-open":r.expandedKeys.has($)})},D.createElement(fM,{UNSAFE_className:Le(Li(_r),"spectrum-Menu-itemGrid")},D.createElement(wm,null,D.createElement(Ka,{slots:{text:{UNSAFE_className:Li(_r)["spectrum-Menu-itemLabel"],...A},end:{UNSAFE_className:Li(_r)["spectrum-Menu-end"],...I},icon:{UNSAFE_className:Li(_r)["spectrum-Menu-icon"],size:"S"},description:{UNSAFE_className:Li(_r)["spectrum-Menu-description"],...M},keyboard:{UNSAFE_className:Li(_r)["spectrum-Menu-keyboard"],...N}}},j,S&&D.createElement(Gb,{slot:"checkmark",UNSAFE_className:Le(Li(_r),"spectrum-Menu-checkmark")}),c&&D.createElement(Uoe,{slot:"end",size:"XS",alignSelf:"center","aria-label":a.format("unavailable")}))))))}function Zoe(e){let{item:t,state:r,onAction:n}=e,{itemProps:i,headingProps:a,groupProps:o}=woe({heading:t.rendered,"aria-label":t["aria-label"]}),{separatorProps:l}=tG({elementType:"li"});return D.createElement(z.Fragment,null,t.key!==r.collection.getFirstKey()&&D.createElement("li",{...l,className:Le(Li(_r),"spectrum-Menu-divider")}),D.createElement("li",i,t.rendered&&D.createElement("span",{...a,className:Le(Li(_r),"spectrum-Menu-sectionHeading")},t.rendered),D.createElement("ul",{...o,className:Le(Li(_r),"spectrum-Menu")},[...ac(t,r.collection)].map(u=>{let c=D.createElement(DG,{key:u.key,item:u,state:r,onAction:n});return u.wrapper&&(c=u.wrapper(c)),c}))))}function Joe(e,t){let r=z.useContext(dM),n={...tr(r,e)},i=Bn(t),a=z.useRef(null),o=Eoe(n),{menuProps:l}=$oe(n,o,i),{styleProps:u}=Dr(n);return kb(r,i),D.createElement(Yoe.Provider,{value:{state:o,container:a,menu:i}},D.createElement(ep,{contain:o.expandedKeys.size>0},D.createElement("ul",{...l,...u,ref:i,className:Le(Li(_r),"spectrum-Menu",u.className)},[...o.collection].map(c=>{if(c.type==="section")return D.createElement(Zoe,{key:c.key,item:c,state:o,onAction:n.onAction});let d=D.createElement(DG,{key:c.key,item:c,state:o,onAction:n.onAction});return c.wrapper&&(d=c.wrapper(d)),d})),D.createElement("div",{ref:a})))}const ele=D.forwardRef(Joe);var Wb={};Xr(Wb,"react-spectrum-ContextualHelp-button",()=>Q8,e=>Q8=e);Xr(Wb,"react-spectrum-ContextualHelp-dialog",()=>Z8,e=>Z8=e);Xr(Wb,"react-spectrum-ContextualHelp-content",()=>J8,e=>J8=e);Xr(Wb,"react-spectrum-ContextualHelp-footer",()=>eS,e=>eS=e);var Q8,Z8,J8,eS;Q8="react-spectrum-ContextualHelp-button_0cd31c";Z8="react-spectrum-ContextualHelp-dialog_0cd31c";J8="react-spectrum-ContextualHelp-content_0cd31c";eS="react-spectrum-ContextualHelp-footer_0cd31c";class tS{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let r=this.keyMap.get(t);return r?r.prevKey:null}getKeyAfter(t){let r=this.keyMap.get(t);return r?r.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const r=[...this.getKeys()];return this.getItem(r[t])}getChildren(t){let r=this.keyMap.get(t);return(r==null?void 0:r.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let r=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let o of a.childNodes)r(o)};for(let a of t)r(a);let n,i=0;for(let[a,o]of this.keyMap)n?(n.nextKey=a,o.prevKey=n.key):(this.firstKey=a,o.prevKey=void 0),o.type==="item"&&(o.index=i++),n=o,n.nextKey=void 0;this.lastKey=n==null?void 0:n.key}}function BG(e){let{filter:t}=e,r=YH(e),n=z.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=z.useCallback(c=>t?new tS(t(c)):new tS(c),[t]),a=z.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=OU(e,i,a),l=z.useMemo(()=>new XH(o,r),[o,r]);const u=z.useRef(null);return z.useEffect(()=>{if(r.focusedKey!=null&&!o.getItem(r.focusedKey)){const c=u.current.getItem(r.focusedKey),d=[...u.current.getKeys()].map(S=>{const g=u.current.getItem(S);return g.type==="item"?g:null}).filter(S=>S!==null),h=[...o.getKeys()].map(S=>{const g=o.getItem(S);return g.type==="item"?g:null}).filter(S=>S!==null),p=d.length-h.length;let v=Math.min(p>1?Math.max(c.index-p+1,0):c.index,h.length-1),$;for(;v>=0;){if(!l.isDisabled(h[v].key)){$=h[v];break}v<h.length-1?v++:(v>c.index&&(v=c.index),v--)}r.setFocusedKey($?$.key:null)}u.current=o},[o,l,r,r.focusedKey]),{collection:o,disabledKeys:n,selectionManager:l}}function tle(e){var t;let[r,n]=bm(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=z.useMemo(()=>r!=null?[r]:[],[r]),{collection:a,disabledKeys:o,selectionManager:l}=BG({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:c=>{let d=c.values().next().value;d===r&&e.onSelectionChange&&e.onSelectionChange(d),n(d)}}),u=r!=null?a.getItem(r):null;return{collection:a,disabledKeys:o,selectionManager:l,selectedKey:r,setSelectedKey:n,selectedItem:u}}var zG={};Object.defineProperty(zG,"__esModule",{value:!0});var UG=zG.AlertSmall=jG,$x=rle(z);function rle(e){return e&&e.__esModule?e:{default:e}}function rS(){return rS=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},rS.apply(this,arguments)}function nle(e,t){if(e==null)return{};var r=ile(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 ile(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 jG(e){var t=e.scale,r=t===void 0?"M":t,n=nle(e,["scale"]);return $x.default.createElement("svg",rS({},n,n),r==="L"&&$x.default.createElement("path",{d:"M8.564 1.289L.2 16.256A.5.5 0 0 0 .636 17h16.728a.5.5 0 0 0 .436-.744L9.436 1.289a.5.5 0 0 0-.872 0zM10 14.75a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25zm0-3a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25z"}),r==="M"&&$x.default.createElement("path",{d:"M6.66 1.003L.157 12.643a.389.389 0 0 0 .339.58h13.01a.389.389 0 0 0 .34-.58L7.338 1.004a.389.389 0 0 0-.678 0zm1.118 10.47a.194.194 0 0 1-.195.194H6.417a.194.194 0 0 1-.195-.195v-1.166a.194.194 0 0 1 .195-.195h1.166a.194.194 0 0 1 .195.195zm0-2.334a.194.194 0 0 1-.195.194H6.417a.194.194 0 0 1-.195-.194V4.472a.194.194 0 0 1 .195-.194h1.166a.194.194 0 0 1 .195.194z"}))}jG.displayName="AlertSmall";const HG=e=>D.createElement("svg",ai({viewBox:"0 0 14 14"},e),D.createElement("path",{d:"M12.717 8.678 9 2.175C8.422 1.103 7.058.689 5.954 1.25a2.225 2.225 0 0 0-.95.92L1.278 8.687a2.198 2.198 0 0 0 .058 2.238A2.264 2.264 0 0 0 3.278 12h7.445a2.264 2.264 0 0 0 1.941-1.075 2.2 2.2 0 0 0 .053-2.247ZM6.133 4.133c0-.478.388-.866.866-.867.478 0 .867.388.868.866v3a.868.868 0 0 1-1.734.002V4.133ZM7 11.1c-.661 0-1.2-.538-1.2-1.2 0-.661.538-1.2 1.2-1.2.661 0 1.2.538 1.2 1.2 0 .661-.538 1.2-1.2 1.2Z"}));HG.displayName=UG.displayName;function ale(e){var t,r;let n=qa();return D.createElement(Ho,e,n!=null&&(t=n.theme)!=null&&(r=t.global)!=null&&r.express?D.createElement(HG,null):D.createElement(UG,null))}var GG={};Object.defineProperty(GG,"__esModule",{value:!0});var WG=GG.InfoSmall=VG,xx=ole(z);function ole(e){return e&&e.__esModule?e:{default:e}}function nS(){return nS=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},nS.apply(this,arguments)}function lle(e,t){if(e==null)return{};var r=sle(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 sle(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 VG(e){var t=e.scale,r=t===void 0?"M":t,n=lle(e,["scale"]);return xx.default.createElement("svg",nS({},n,n),r==="L"&&xx.default.createElement("path",{d:"M9 1a8 8 0 1 0 8 8 8 8 0 0 0-8-8zm-.15 2.15a1.359 1.359 0 0 1 1.431 1.283q.004.064.001.129A1.332 1.332 0 0 1 8.85 5.994a1.353 1.353 0 0 1-1.432-1.433 1.359 1.359 0 0 1 1.304-1.412q.064-.002.128.001zM11 13.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5H8V9h-.5a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 .5.5V12h.5a.5.5 0 0 1 .5.5z"}),r==="M"&&xx.default.createElement("path",{d:"M7 .778A6.222 6.222 0 1 0 13.222 7 6.222 6.222 0 0 0 7 .778zM6.883 2.45a1.057 1.057 0 0 1 1.113.998q.003.05.001.1a1.036 1.036 0 0 1-1.114 1.114A1.052 1.052 0 0 1 5.77 3.547 1.057 1.057 0 0 1 6.784 2.45q.05-.002.1.001zm1.673 8.05a.389.389 0 0 1-.39.389H5.834a.389.389 0 0 1-.389-.389v-.778a.389.389 0 0 1 .39-.389h.388V7h-.389a.389.389 0 0 1-.389-.389v-.778a.389.389 0 0 1 .39-.389h1.555a.389.389 0 0 1 .389.39v3.5h.389a.389.389 0 0 1 .389.388z"}))}VG.displayName="InfoSmall";const KG=e=>D.createElement("svg",ai({viewBox:"0 0 14 14"},e),D.createElement("path",{d:"M7 1a6 6 0 1 0 6 6 6.007 6.007 0 0 0-6-6Zm.867 8.677a.868.868 0 0 1-1.734 0V7a.868.868 0 0 1 1.734 0v2.676ZM7 5.4c-.662 0-1.2-.538-1.2-1.2S6.338 3 7 3s1.2.539 1.2 1.2S7.662 5.4 7 5.4Z"}));KG.displayName=WG.displayName;function ule(e){var t,r;let n=qa();return D.createElement(Ho,e,n!=null&&(t=n.theme)!=null&&(r=t.global)!=null&&r.express?D.createElement(KG,null):D.createElement(WG,null))}var qG={};Object.defineProperty(qG,"__esModule",{value:!0});var YG=qG.SuccessSmall=XG,wx=cle(z);function cle(e){return e&&e.__esModule?e:{default:e}}function iS(){return iS=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},iS.apply(this,arguments)}function fle(e,t){if(e==null)return{};var r=dle(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 dle(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 XG(e){var t=e.scale,r=t===void 0?"M":t,n=fle(e,["scale"]);return wx.default.createElement("svg",iS({},n,n),r==="L"&&wx.default.createElement("path",{d:"M9 1a8 8 0 1 0 8 8 8 8 0 0 0-8-8zm5.333 4.54l-6.324 8.13a.6.6 0 0 1-.437.23h-.037a.6.6 0 0 1-.425-.176l-3.893-3.9a.6.6 0 0 1 0-.849l.663-.663a.6.6 0 0 1 .848 0L7.4 10.991l5.256-6.754a.6.6 0 0 1 .843-.1l.728.566a.6.6 0 0 1 .106.837z"}),r==="M"&&wx.default.createElement("path",{d:"M7 .778A6.222 6.222 0 1 0 13.222 7 6.222 6.222 0 0 0 7 .778zm4.148 3.53l-4.919 6.324a.467.467 0 0 1-.34.18h-.028a.467.467 0 0 1-.331-.138L2.502 7.641a.467.467 0 0 1 0-.66l.516-.516a.467.467 0 0 1 .66 0l2.078 2.084 4.088-5.254a.467.467 0 0 1 .655-.078l.566.44a.467.467 0 0 1 .083.652z"}))}XG.displayName="SuccessSmall";const QG=e=>D.createElement("svg",ai({viewBox:"0 0 14 14"},e),D.createElement("path",{d:"M11.523 3.057a6 6 0 1 0-9.046 7.887 6 6 0 0 0 9.046-7.887Zm-1.166 2.275L7.075 9.696a.867.867 0 0 1-.617.342l-.076.004a.864.864 0 0 1-.592-.235L3.55 7.704c-.17-.159-.266-.373-.274-.604s.077-.453.235-.621a.87.87 0 0 1 1.225-.04L6.27 7.881 8.973 4.29a.86.86 0 0 1 .693-.346.867.867 0 0 1 .692 1.388Z"}));QG.displayName=YG.displayName;function ple(e){var t,r;let n=qa();return D.createElement(Ho,e,n!=null&&(t=n.theme)!=null&&(r=t.global)!=null&&r.express?D.createElement(QG,null):D.createElement(YG,null))}function hle(e,t){let r=Gr(e,{labelable:!0}),{hoverProps:n}=ta({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:tr(r,n,{role:"tooltip"})}}function vle(e,t,r){let{isDisabled:n,trigger:i}=e,a=ui(),o=z.useRef(!1),l=z.useRef(!1),u=()=>{(o.current||l.current)&&t.open(l.current)},c=_=>{!o.current&&!l.current&&t.close(_)};z.useEffect(()=>{let _=E=>{r&&r.current&&E.key==="Escape"&&(E.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",_,!0),()=>{document.removeEventListener("keydown",_,!0)}},[r,t]);let d=()=>{i!=="focus"&&(Pd()==="pointer"?o.current=!0:o.current=!1,u())},h=()=>{i!=="focus"&&(l.current=!1,o.current=!1,c())},p=()=>{l.current=!1,o.current=!1,c(!0)},v=()=>{lc()&&(l.current=!0,u())},$=()=>{l.current=!1,o.current=!1,c(!0)},{hoverProps:S}=ta({isDisabled:n,onHoverStart:d,onHoverEnd:h}),{pressProps:g}=_m({onPressStart:p}),{focusableProps:b}=eM({isDisabled:n,onFocus:v,onBlur:$},r);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...tr(b,S,g)},tooltipProps:{id:a}}}const mle=1500,WI=500;let Mu={},gle=0,Ih=!1,yl=null,Ou=null;function yle(e={}){let{delay:t=mle,closeDelay:r=WI}=e,{isOpen:n,open:i,close:a}=uM(e),o=z.useMemo(()=>`${++gle}`,[]),l=z.useRef(),u=()=>{Mu[o]=h},c=()=>{for(let v in Mu)v!==o&&(Mu[v](!0),delete Mu[v])},d=()=>{clearTimeout(l.current),l.current=null,c(),u(),Ih=!0,i(),yl&&(clearTimeout(yl),yl=null),Ou&&(clearTimeout(Ou),Ou=null)},h=v=>{v||r<=0?(clearTimeout(l.current),l.current=null,a()):l.current||(l.current=setTimeout(()=>{l.current=null,a()},r)),yl&&(clearTimeout(yl),yl=null),Ih&&(Ou&&clearTimeout(Ou),Ou=setTimeout(()=>{delete Mu[o],Ou=null,Ih=!1},Math.max(WI,r)))},p=()=>{c(),u(),!n&&!yl&&!Ih?yl=setTimeout(()=>{yl=null,Ih=!0,d()},t):n||d()};return z.useEffect(()=>()=>{clearTimeout(l.current),Mu[o]&&delete Mu[o]},[o]),{isOpen:n,open:v=>{!v&&t>0&&!l.current?p():d()},close:h}}function Lg(e){return e&&e.__esModule?e.default:e}function ci(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var Cn={};ci(Cn,"spectrum-Tooltip",()=>aS,e=>aS=e);ci(Cn,"is-open",()=>oS,e=>oS=e);ci(Cn,"spectrum-Tooltip--bottom",()=>lS,e=>lS=e);ci(Cn,"spectrum-Tooltip--top",()=>sS,e=>sS=e);ci(Cn,"spectrum-Tooltip--right",()=>uS,e=>uS=e);ci(Cn,"spectrum-Tooltip--left",()=>cS,e=>cS=e);ci(Cn,"spectrum-Tooltip-tip",()=>fS,e=>fS=e);ci(Cn,"spectrum-Tooltip-typeIcon",()=>dS,e=>dS=e);ci(Cn,"spectrum-Tooltip-label",()=>pS,e=>pS=e);ci(Cn,"u-tooltip-showOnHover",()=>hS,e=>hS=e);ci(Cn,"is-hovered",()=>vS,e=>vS=e);ci(Cn,"is-focused",()=>mS,e=>mS=e);ci(Cn,"spectrum-Tooltip--negative",()=>gS,e=>gS=e);ci(Cn,"spectrum-Tooltip--error",()=>yS,e=>yS=e);ci(Cn,"spectrum-Tooltip--info",()=>bS,e=>bS=e);ci(Cn,"spectrum-Tooltip--help",()=>$S,e=>$S=e);ci(Cn,"spectrum-Tooltip--positive",()=>xS,e=>xS=e);ci(Cn,"spectrum-Tooltip--success",()=>wS,e=>wS=e);var aS,oS,lS,sS,uS,cS,fS,dS,pS,hS,vS,mS,gS,yS,bS,$S,xS,wS;aS="spectrum-Tooltip_22ae94";oS="is-open_22ae94";lS="spectrum-Tooltip--bottom_22ae94";sS="spectrum-Tooltip--top_22ae94";uS="spectrum-Tooltip--right_22ae94";cS="spectrum-Tooltip--left_22ae94";fS="spectrum-Tooltip-tip_22ae94";dS="spectrum-Tooltip-typeIcon_22ae94";pS="spectrum-Tooltip-label_22ae94";hS="u-tooltip-showOnHover_22ae94";vS="is-hovered_22ae94";mS="is-focused_22ae94";gS="spectrum-Tooltip--negative_22ae94";yS="spectrum-Tooltip--error_22ae94";bS="spectrum-Tooltip--info_22ae94";$S="spectrum-Tooltip--help_22ae94";xS="spectrum-Tooltip--positive_22ae94";wS="spectrum-Tooltip--success_22ae94";const ZG=D.createContext({});let ble={info:ule,positive:ple,negative:ale};function $le(e,t){let{ref:r,arrowProps:n,state:i,arrowRef:a,...o}=z.useContext(ZG),l=z.useRef();r=r||l,e=tr(e,o);let{variant:u="neutral",placement:c="top",isOpen:d,showIcon:h,...p}=e,{styleProps:v}=Dr(p),{tooltipProps:$}=hle(e,i);z.useImperativeHandle(t,()=>KP(r));let S=ble[u];return D.createElement("div",{...v,...$,className:Le(Lg(Cn),"spectrum-Tooltip",`spectrum-Tooltip--${u}`,`spectrum-Tooltip--${c}`,{"is-open":d},v.className),ref:r},h&&u!=="neutral"&&D.createElement(S,{UNSAFE_className:Le(Lg(Cn),"spectrum-Tooltip-typeIcon"),"aria-hidden":!0}),e.children&&D.createElement("span",{className:Le(Lg(Cn),"spectrum-Tooltip-label")},e.children),D.createElement("span",{...n,ref:a,className:Le(Lg(Cn),"spectrum-Tooltip-tip")}))}let xle=D.forwardRef($le);const wle=-1,_le=0;function _S(e){let{children:t,crossOffset:r=_le,isDisabled:n,offset:i=wle,trigger:a}=e,[o,l]=D.Children.toArray(t),u=yle(e),c=z.useRef(),d=z.useRef(),{triggerProps:h,tooltipProps:p}=vle({isDisabled:n,trigger:a},u,c),[v,$]=z.useState(0);Sr(()=>{if(d.current&&u.isOpen){let M=window.getComputedStyle(d.current).borderRadius;M!==""&&$(parseInt(M,10))}},[u.isOpen,d]);let S=z.useRef(null),[g,b]=z.useState(0);Sr(()=>{S.current&&u.isOpen&&b(S.current.getBoundingClientRect().width)},[u.isOpen,S]);let{overlayProps:_,arrowProps:E,placement:A}=nj({placement:e.placement||"top",targetRef:c,overlayRef:d,offset:i,crossOffset:r,isOpen:u.isOpen,shouldFlip:e.shouldFlip,containerPadding:e.containerPadding,arrowSize:g,arrowBoundaryOffset:v});return D.createElement(Yie,{...h,ref:c},o,D.createElement(ZG.Provider,{value:{state:u,placement:A,ref:d,UNSAFE_style:_.style,arrowProps:E,arrowRef:S,...p}},D.createElement(jb,{isOpen:u.isOpen,nodeRef:d},l)))}_S.getCollectionNode=function*(e){let t=[];D.Children.forEach(e.children,i=>{D.isValidElement(i)&&t.push(i)});let[r,n]=t;yield{element:r,wrapper:i=>D.createElement(_S,{key:i.key,...e},i,n)}};let Sle=_S;const Ele={none:"toolbar",single:"radiogroup",multiple:"toolbar"};function Ale(e,t,r){let{isDisabled:n,orientation:i="horizontal"}=e;[...t.collection.getKeys()].some(h=>!t.disabledKeys.has(h))||(n=!0);let{direction:o}=wa(),l=Vie(r),u=o==="rtl"&&i==="horizontal",c=h=>{if(h.currentTarget.contains(h.target))switch(h.key){case"ArrowRight":case"ArrowDown":h.preventDefault(),h.stopPropagation(),h.key==="ArrowRight"&&u?l.focusPrevious({wrap:!0}):l.focusNext({wrap:!0});break;case"ArrowLeft":case"ArrowUp":h.preventDefault(),h.stopPropagation(),h.key==="ArrowLeft"&&u?l.focusNext({wrap:!0}):l.focusPrevious({wrap:!0});break}},d=Ele[t.selectionManager.selectionMode];return{actionGroupProps:{...Gr(e,{labelable:!0}),role:d,"aria-orientation":d==="toolbar"?i:void 0,"aria-disabled":n,onKeyDown:c}}}const Cle={none:void 0,single:"radio",multiple:"checkbox"};function JG(e,t,r){let n=t.selectionManager.selectionMode,i={role:Cle[n]};if(n!=="none"){let l=t.selectionManager.isSelected(e.key);i["aria-checked"]=l}let a=e.key===t.selectionManager.focusedKey,o=Da(()=>{a&&t.selectionManager.setFocusedKey(null)});return z.useEffect(()=>()=>{o()},[o]),{buttonProps:tr(i,{tabIndex:a||t.selectionManager.focusedKey==null?0:-1,onFocus(){t.selectionManager.setFocusedKey(e.key)},onPress(){t.selectionManager.select(e.key)}})}}function wl(e){return e&&e.__esModule?e.default:e}function sr(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var Nr={};sr(Nr,"spectrum-Button",()=>SS,e=>SS=e);sr(Nr,"spectrum-ActionButton",()=>ES,e=>ES=e);sr(Nr,"spectrum-LogicButton",()=>AS,e=>AS=e);sr(Nr,"spectrum-FieldButton",()=>CS,e=>CS=e);sr(Nr,"spectrum-ClearButton",()=>TS,e=>TS=e);sr(Nr,"focus-ring",()=>PS,e=>PS=e);sr(Nr,"spectrum-FieldButton--quiet",()=>MS,e=>MS=e);sr(Nr,"spectrum-Icon",()=>OS,e=>OS=e);sr(Nr,"is-hovered",()=>RS,e=>RS=e);sr(Nr,"spectrum-Button-label",()=>IS,e=>IS=e);sr(Nr,"spectrum-Button--iconOnly",()=>kS,e=>kS=e);sr(Nr,"spectrum-ActionButton-label",()=>FS,e=>FS=e);sr(Nr,"spectrum-ActionButton-hold",()=>NS,e=>NS=e);sr(Nr,"spectrum-ActionButton--quiet",()=>LS,e=>LS=e);sr(Nr,"is-disabled",()=>DS,e=>DS=e);sr(Nr,"is-open",()=>BS,e=>BS=e);sr(Nr,"spectrum-ClearButton--small",()=>zS,e=>zS=e);sr(Nr,"is-active",()=>US,e=>US=e);sr(Nr,"spectrum-ClearButton--overBackground",()=>jS,e=>jS=e);sr(Nr,"is-selected",()=>HS,e=>HS=e);sr(Nr,"spectrum-ActionButton--emphasized",()=>GS,e=>GS=e);sr(Nr,"spectrum-ActionButton--staticWhite",()=>WS,e=>WS=e);sr(Nr,"spectrum-ActionButton--staticBlack",()=>VS,e=>VS=e);sr(Nr,"spectrum-ActionButton--staticColor",()=>KS,e=>KS=e);sr(Nr,"spectrum-LogicButton--and",()=>qS,e=>qS=e);sr(Nr,"spectrum-LogicButton--or",()=>YS,e=>YS=e);sr(Nr,"is-focused",()=>XS,e=>XS=e);sr(Nr,"is-placeholder",()=>QS,e=>QS=e);sr(Nr,"spectrum-FieldButton--invalid",()=>ZS,e=>ZS=e);sr(Nr,"spectrum-Button--overBackground",()=>JS,e=>JS=e);var SS,ES,AS,CS,TS,PS,MS,OS,RS,IS,kS,FS,NS,LS,DS,BS,zS,US,jS,HS,GS,WS,VS,KS,qS,YS,XS,QS,ZS,JS;SS="spectrum-Button_e2d99e";ES="spectrum-ActionButton_e2d99e";AS="spectrum-LogicButton_e2d99e";CS="spectrum-FieldButton_e2d99e";TS="spectrum-ClearButton_e2d99e";PS="focus-ring_e2d99e";MS="spectrum-FieldButton--quiet_e2d99e";OS="spectrum-Icon_e2d99e";RS="is-hovered_e2d99e";IS="spectrum-Button-label_e2d99e";kS="spectrum-Button--iconOnly_e2d99e";FS="spectrum-ActionButton-label_e2d99e";NS="spectrum-ActionButton-hold_e2d99e";LS="spectrum-ActionButton--quiet_e2d99e";DS="is-disabled_e2d99e";BS="is-open_e2d99e";zS="spectrum-ClearButton--small_e2d99e";US="is-active_e2d99e";jS="spectrum-ClearButton--overBackground_e2d99e";HS="is-selected_e2d99e";GS="spectrum-ActionButton--emphasized_e2d99e";WS="spectrum-ActionButton--staticWhite_e2d99e";VS="spectrum-ActionButton--staticBlack_e2d99e";KS="spectrum-ActionButton--staticColor_e2d99e";qS="spectrum-LogicButton--and_e2d99e";YS="spectrum-LogicButton--or_e2d99e";XS="is-focused_e2d99e";QS="is-placeholder_e2d99e";ZS="spectrum-FieldButton--invalid_e2d99e";JS="spectrum-Button--overBackground_e2d99e";var $n={};sr($n,"flex-container",()=>e6,e=>e6=e);sr($n,"flex-gap",()=>t6,e=>t6=e);sr($n,"spectrum-ActionGroup",()=>r6,e=>r6=e);sr($n,"spectrum-ActionGroup-item",()=>n6,e=>n6=e);sr($n,"spectrum-ActionGroup--vertical",()=>i6,e=>i6=e);sr($n,"spectrum-ActionGroup--quiet",()=>a6,e=>a6=e);sr($n,"spectrum-ActionGroup--justified",()=>o6,e=>o6=e);sr($n,"spectrum-ActionGroup--compact",()=>l6,e=>l6=e);sr($n,"spectrum-ActionGroup-item--isDisabled",()=>s6,e=>s6=e);sr($n,"is-selected",()=>u6,e=>u6=e);sr($n,"is-hovered",()=>c6,e=>c6=e);sr($n,"spectrum-ActionGroup--overflowCollapse",()=>f6,e=>f6=e);sr($n,"spectrum-ActionGroup-menu",()=>d6,e=>d6=e);sr($n,"spectrum-ActionGroup-menu-chevron",()=>p6,e=>p6=e);sr($n,"spectrum-ActionGroup-menu-contents",()=>h6,e=>h6=e);sr($n,"spectrum-ActionGroup-item--iconOnly",()=>v6,e=>v6=e);var e6,t6,r6,n6,i6,a6,o6,l6,s6,u6,c6,f6,d6,p6,h6,v6;e6="flex-container_7684cb";t6="flex-gap_7684cb";r6="spectrum-ActionGroup_7684cb";n6="spectrum-ActionGroup-item_7684cb";i6="spectrum-ActionGroup--vertical_7684cb";a6="spectrum-ActionGroup--quiet_7684cb";o6="spectrum-ActionGroup--justified_7684cb";l6="spectrum-ActionGroup--compact_7684cb";s6="spectrum-ActionGroup-item--isDisabled_7684cb";u6="is-selected_7684cb";c6="is-hovered_7684cb";f6="spectrum-ActionGroup--overflowCollapse_7684cb";d6="spectrum-ActionGroup-menu_7684cb";p6="spectrum-ActionGroup-menu-chevron_7684cb";h6="spectrum-ActionGroup-menu-contents_7684cb";v6="spectrum-ActionGroup-item--iconOnly_7684cb";function Tle(e,t){e=Fl(e),e=_a(e,"actionGroup");let{isEmphasized:r,density:n,isJustified:i,isDisabled:a,orientation:o="horizontal",isQuiet:l,staticColor:u,overflowMode:c="wrap",onAction:d,buttonLabelBehavior:h,summaryIcon:p,...v}=e,$=Bn(t),S=z.useRef(null),g=BG({...e,suppressTextValueWarning:!0}),{actionGroupProps:b}=Ale(e,g,$),_=o==="vertical",E={isEmphasized:r,isDisabled:a,isQuiet:l},{styleProps:A}=Dr(e),M=z.useMemo(()=>[...g.collection].every(Ae=>typeof Ae.rendered!="string"),[g.collection]),[{visibleItems:N,hideButtonText:U,isMeasuring:I},j]=HP({visibleItems:g.collection.size,hideButtonText:h==="hide"&&M,isMeasuring:!1}),he=g.selectionManager.selectionMode,q=z.useCallback(()=>{if(c==="wrap"||o==="vertical"&&he!=="none")return;let Ae=$e=>{if($.current&&S.current){let rt=Array.from($.current.children),Be=o==="horizontal"?S.current.offsetWidth:S.current.offsetHeight,Ee=$e<g.collection.size,Ke=0,Ge=0;if(Ee){let Fe=rt.pop();Fe&&(Ke+=o==="horizontal"?VI(Fe,!1,!0):KI(Fe,!1,!0))}for(let[Fe,ft]of rt.entries())if(Ke+=o==="horizontal"?VI(ft,Fe===0,Fe===rt.length-1):KI(ft,Fe===0,Fe===rt.length-1),Ke<=Be)Ge++;else break;return he!=="none"&&Ge<g.collection.size?0:Ge}return $e};j(function*(){let $e=h==="hide"&&M;yield{visibleItems:g.collection.size,hideButtonText:$e,isMeasuring:!0};let rt=Ae(g.collection.size),Be=rt<g.collection.size&&rt>0;rt<g.collection.size&&h==="collapse"&&M&&(yield{visibleItems:g.collection.size,hideButtonText:!0,isMeasuring:!0},rt=Ae(g.collection.size),Be=rt<g.collection.size&&rt>0,$e=!0),yield{visibleItems:rt,hideButtonText:$e,isMeasuring:Be},Be&&(yield{visibleItems:Ae(rt),hideButtonText:$e,isMeasuring:!1})})},[$,g.collection,j,c,he,h,M,o]),fe=z.useMemo(()=>({get current(){var Ae;return(Ae=S.current)===null||Ae===void 0?void 0:Ae.parentElement}}),[S]);$m({ref:c!=="wrap"?fe:void 0,onResize:q}),Sr(q,[q,g.collection]);let ne=[...g.collection],ce=null,De={};if(c==="collapse"&&N===0&&(De=Gr(e,{labelable:!0}),b={}),c==="collapse"&&N<g.collection.size){let Ae=ne.slice(N);ne=ne.slice(0,N),ce=D.createElement(Ole,{...De,items:Ae,onAction:d,isDisabled:a,isEmphasized:r,staticColor:u,state:g,summaryIcon:p,hideButtonText:U,isOnlyItem:N===0,orientation:o})}let We={...A.style,flexBasis:I?"100%":void 0};return D.createElement(ep,null,D.createElement("div",{...A,style:We,className:Le(wl($n),"flex-container",A.className),ref:S},D.createElement("div",{...b,ref:$,className:Le(wl($n),"flex-gap","spectrum-ActionGroup",{"spectrum-ActionGroup--quiet":l,"spectrum-ActionGroup--vertical":_,"spectrum-ActionGroup--compact":n==="compact","spectrum-ActionGroup--justified":i&&!I,"spectrum-ActionGroup--overflowCollapse":c==="collapse"},v.UNSAFE_className)},D.createElement(zb,E,ne.map(Ae=>D.createElement(Mle,{key:Ae.key,onAction:d,isDisabled:a,isEmphasized:r,staticColor:u,item:Ae,state:g,hideButtonText:U,orientation:o})),ce))))}const Ple=z.forwardRef(Tle);function Mle({item:e,state:t,isDisabled:r,isEmphasized:n,staticColor:i,onAction:a,hideButtonText:o,orientation:l}){let u=z.useRef(null),{buttonProps:c}=JG({key:e.key},t);r=r||t.disabledKeys.has(e.key);let d=t.selectionManager.isSelected(e.key),{hoverProps:h,isHovered:p}=ta({isDisabled:r}),v=Gr(e.props);a&&!r&&(c=tr(c,{onPress:()=>a(e.key)}));let $=ui(),[S,g]=z.useState("");Sr(()=>{var _;o&&g((_=document.getElementById($))===null||_===void 0?void 0:_.textContent)},[o,e.rendered,$]);let b=D.createElement(Sm,tr(c,h,v),D.createElement(wm,null,D.createElement(Ka,{slots:{text:{id:o?$:null,isHidden:o}}},D.createElement(Ub,{ref:u,UNSAFE_className:Le(wl($n),"spectrum-ActionGroup-item",{"is-selected":d,"is-hovered":p,"spectrum-ActionGroup-item--iconOnly":o,"spectrum-ActionGroup-item--isDisabled":r},Le(wl(Nr),{"spectrum-ActionButton--emphasized":n,"is-selected":d})),isDisabled:r,staticColor:i,"aria-label":e["aria-label"],"aria-labelledby":e["aria-label"]==null&&o?$:void 0},e.rendered))));return o&&S&&(b=D.createElement(Sle,{placement:l==="vertical"?"end":"top"},b,D.createElement(xle,null,S))),e.wrapper&&(b=e.wrapper(b)),b}function Ole({state:e,isDisabled:t,isEmphasized:r,staticColor:n,items:i,onAction:a,summaryIcon:o,hideButtonText:l,isOnlyItem:u,orientation:c,...d}){let h=i[0].key,{buttonProps:p}=JG({key:h},e);delete p.onPress,delete p.role,delete p["aria-checked"];let{hoverProps:v,isHovered:$}=ta({isDisabled:t}),S=d["aria-label"]||(d["aria-labelledby"]?void 0:"…"),g=d["aria-labelledby"],b=ui(),_=ui();e.selectionManager.selectionMode==="none"&&(o=null);let E=!1,A=e.selectionManager.selectionMode!=="none"&&!e.selectionManager.isEmpty;if(!o&&e.selectionManager.selectionMode==="single"&&e.selectionManager.disallowEmptySelection&&e.selectionManager.firstSelectedKey!=null){let M=e.collection.getItem(e.selectionManager.firstSelectedKey);M&&(o=M.rendered,typeof o=="string"&&(o=D.createElement(tp,null,o)),E=!!l,g=`${g??_} ${b}`)}return o&&(o=D.createElement(D.Fragment,null,D.createElement(iM,{UNSAFE_className:Le(wl($n),"spectrum-ActionGroup-menu-chevron")}),D.createElement("span",{className:Le(wl($n),"spectrum-ActionGroup-menu-contents",{"spectrum-ActionGroup-item--iconOnly":E})},o))),D.createElement(Qoe,{align:u?"start":"end",direction:c==="vertical"?"end":"bottom"},D.createElement(Ka,{slots:{text:{id:l?b:null,isHidden:l,UNSAFE_className:Le(wl($n),"spectrum-ActionGroup-menu-text")}}},D.createElement(Sm,tr(p,v),D.createElement(Ub,{...d,id:_,"aria-label":S,"aria-labelledby":g,UNSAFE_className:Le(wl($n),"spectrum-ActionGroup-item","spectrum-ActionGroup-menu",{"is-hovered":$,"is-selected":A},Le(wl(Nr),{"is-selected":A,"spectrum-ActionButton--emphasized":r})),isDisabled:t,staticColor:n},o||D.createElement(Woe,null)))),D.createElement(ele,{items:i,disabledKeys:e.disabledKeys,selectionMode:e.selectionManager.selectionMode,selectedKeys:e.selectionManager.selectedKeys,disallowEmptySelection:e.selectionManager.disallowEmptySelection,onSelectionChange:M=>e.selectionManager.setSelectedKeys(M),onAction:a},M=>D.createElement(pne,{textValue:M.textValue,...Gr(M.props)},M.rendered)))}function VI(e,t,r){let n=window.getComputedStyle(e);return e.offsetWidth+(t?0:Ny(n.marginLeft))+(r?0:Ny(n.marginRight))}function KI(e,t,r){let n=window.getComputedStyle(e);return e.offsetHeight+(t?0:Ny(n.marginTop))+(r?0:Ny(n.marginBottom))}function Ny(e){let t=parseInt(e,10);return isNaN(t)?0:t}const eW=7e3;let _x=null;function L1(e,t="assertive",r=eW){_x||(_x=new Rle),_x.announce(e,t,r)}class Rle{createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=eW){if(!this.node)return;let i=document.createElement("div");i.textContent=t,r==="assertive"?this.assertiveLog.appendChild(i):this.politeLog.appendChild(i),t!==""&&setTimeout(()=>{i.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}var tW={};Object.defineProperty(tW,"__esModule",{value:!0});var Ile=tW.CrossLarge=rW,Sx=kle(z);function kle(e){return e&&e.__esModule?e:{default:e}}function m6(){return m6=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},m6.apply(this,arguments)}function Fle(e,t){if(e==null)return{};var r=Nle(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 Nle(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 rW(e){var t=e.scale,r=t===void 0?"M":t,n=Fle(e,["scale"]);return Sx.default.createElement("svg",m6({},n,n),r==="L"&&Sx.default.createElement("path",{d:"M15.697 14.283L9.414 8l6.283-6.283A1 1 0 1 0 14.283.303L8 6.586 1.717.303A1 1 0 1 0 .303 1.717L6.586 8 .303 14.283a1 1 0 1 0 1.414 1.414L8 9.414l6.283 6.283a1 1 0 1 0 1.414-1.414z"}),r==="M"&&Sx.default.createElement("path",{d:"M11.697 10.283L7.414 6l4.283-4.283A1 1 0 1 0 10.283.303L6 4.586 1.717.303A1 1 0 1 0 .303 1.717L4.586 6 .303 10.283a1 1 0 1 0 1.414 1.414L6 7.414l4.283 4.283a1 1 0 1 0 1.414-1.414z"}))}rW.displayName="CrossLarge";function nW(e){return D.createElement(Ho,e,D.createElement(Ile,null))}function kh(e){return e&&e.__esModule?e.default:e}function Cc(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var iW={},aW={};aW={actions:"الإجراءات",actionsAvailable:"الإجراءات المتاحة.",clearSelection:"إزالة التحديد",selected:(e,t)=>`${t.plural(e.count,{"=0":"غير محدد",other:()=>`${t.number(e.count)} محدد`})}`,selectedAll:"تم تحديد الكل"};var oW={};oW={actions:"Действия",actionsAvailable:"Налични действия.",clearSelection:"Изчистване на избора",selected:(e,t)=>`${t.plural(e.count,{"=0":"Няма избрани",other:()=>`${t.number(e.count)} избрани`})}`,selectedAll:"Всички избрани"};var lW={};lW={actions:"Akce",actionsAvailable:"Dostupné akce.",clearSelection:"Vymazat výběr",selected:(e,t)=>`${t.plural(e.count,{"=0":"Nic není vybráno",other:()=>`Vybráno ${t.number(e.count)}`})}`,selectedAll:"Vybráno vše"};var sW={};sW={actions:"Handlinger",actionsAvailable:"Tilgængelige handlinger.",clearSelection:"Ryd markering",selected:(e,t)=>`${t.plural(e.count,{"=0":"Ingen valgt",other:()=>`${t.number(e.count)} valgt`})}`,selectedAll:"Alle valgt"};var uW={};uW={actions:"Aktionen",actionsAvailable:"Aktionen verfügbar.",clearSelection:"Auswahl löschen",selected:(e,t)=>`${t.plural(e.count,{"=0":"Nichts ausgewählt",other:()=>`${t.number(e.count)} ausgewählt`})}`,selectedAll:"Alles ausgewählt"};var cW={};cW={actions:"Ενέργειες",actionsAvailable:"Υπάρχουν διαθέσιμες ενέργειες.",clearSelection:"Εκκαθάριση επιλογής",selected:(e,t)=>`${t.plural(e.count,{"=0":"Δεν επιλέχθηκε κανένα",other:()=>`Επιλέχθηκαν ${t.number(e.count)}`})}`,selectedAll:"Επιλέχθηκαν όλα"};var fW={};fW={clearSelection:"Clear selection",selected:(e,t)=>`${t.plural(e.count,{"=0":"None selected",other:()=>`${t.number(e.count)} selected`})}`,selectedAll:"All selected",actions:"Actions",actionsAvailable:"Actions available."};var dW={};dW={actions:"Acciones",actionsAvailable:"Acciones disponibles.",clearSelection:"Borrar selección",selected:(e,t)=>`${t.plural(e.count,{"=0":"Nada seleccionado",other:()=>`${t.number(e.count)} seleccionado`})}`,selectedAll:"Todo seleccionado"};var pW={};pW={actions:"Toimingud",actionsAvailable:"Toimingud saadaval.",clearSelection:"Puhasta valik",selected:(e,t)=>`${t.plural(e.count,{"=0":"Pole valitud",other:()=>`${t.number(e.count)} valitud`})}`,selectedAll:"Kõik valitud"};var hW={};hW={actions:"Toiminnot",actionsAvailable:"Toiminnot käytettävissä.",clearSelection:"Poista valinta",selected:(e,t)=>`${t.plural(e.count,{"=0":"Ei mitään valittu",other:()=>`${t.number(e.count)} valittu`})}`,selectedAll:"Kaikki valittu"};var vW={};vW={actions:"Actions",actionsAvailable:"Actions disponibles.",clearSelection:"Supprimer la sélection",selected:(e,t)=>`${t.plural(e.count,{"=0":"Aucun élément sélectionné",other:()=>`${t.number(e.count)} sélectionnés`})}`,selectedAll:"Toute la sélection"};var mW={};mW={actions:"פעולות",actionsAvailable:"פעולות זמינות.",clearSelection:"נקה בחירה",selected:(e,t)=>`${t.plural(e.count,{"=0":"לא בוצעה בחירה",other:()=>`${t.number(e.count)} נבחרו`})}`,selectedAll:"כל הפריטים שנבחרו"};var gW={};gW={actions:"Radnje",actionsAvailable:"Dostupne radnje.",clearSelection:"Poništi odabir",selected:(e,t)=>`${t.plural(e.count,{"=0":"Nijedna nije odabrana",other:()=>`${t.number(e.count)} je odabrano`})}`,selectedAll:"Sve je odabrano"};var yW={};yW={actions:"Műveletek",actionsAvailable:"Műveletek állnak rendelkezésre.",clearSelection:"Kijelölés törlése",selected:(e,t)=>`${t.plural(e.count,{"=0":"Egy sincs kijelölve",other:()=>`${t.number(e.count)} kijelölve`})}`,selectedAll:"Mind kijelölve"};var bW={};bW={actions:"Azioni",actionsAvailable:"Azioni disponibili.",clearSelection:"Annulla selezione",selected:(e,t)=>`${t.plural(e.count,{"=0":"Nessuno selezionato",other:()=>`${t.number(e.count)} selezionato/i`})}`,selectedAll:"Tutti selezionati"};var $W={};$W={actions:"アクション",actionsAvailable:"アクションを利用できます。",clearSelection:"選択をクリア",selected:(e,t)=>`${t.plural(e.count,{"=0":"選択されていません",other:()=>`${t.number(e.count)} 個を選択しました`})}`,selectedAll:"すべてを選択"};var xW={};xW={actions:"액션",actionsAvailable:"사용 가능한 액션",clearSelection:"선택 항목 지우기",selected:(e,t)=>`${t.plural(e.count,{"=0":"선택된 항목 없음",other:()=>`${t.number(e.count)}개 선택됨`})}`,selectedAll:"모두 선택됨"};var wW={};wW={actions:"Veiksmai",actionsAvailable:"Galimi veiksmai.",clearSelection:"Išvalyti pasirinkimą",selected:(e,t)=>`${t.plural(e.count,{"=0":"Nieko nepasirinkta",other:()=>`Pasirinkta ${t.number(e.count)}`})}`,selectedAll:"Pasirinkta viskas"};var _W={};_W={actions:"Darbības",actionsAvailable:"Pieejamas darbības.",clearSelection:"Notīrīt atlasi",selected:(e,t)=>`${t.plural(e.count,{"=0":"Nav atlasīts nekas",other:()=>`Atlasīts: ${t.number(e.count)}`})}`,selectedAll:"Atlasīts viss"};var SW={};SW={actions:"Handlinger",actionsAvailable:"Tilgjengelige handlinger.",clearSelection:"Tøm utvalg",selected:(e,t)=>`${t.plural(e.count,{"=0":"Ingen er valgt",other:()=>`${t.number(e.count)} er valgt`})}`,selectedAll:"Alle er valgt"};var EW={};EW={actions:"Acties",actionsAvailable:"Acties beschikbaar.",clearSelection:"Selectie wissen",selected:(e,t)=>`${t.plural(e.count,{"=0":"Niets geselecteerd",other:()=>`${t.number(e.count)} geselecteerd`})}`,selectedAll:"Alles geselecteerd"};var AW={};AW={actions:"Działania",actionsAvailable:"Dostępne działania.",clearSelection:"Wyczyść zaznaczenie",selected:(e,t)=>`${t.plural(e.count,{"=0":"Nie zaznaczono żadnego elementu",other:()=>`${t.number(e.count)} zaznaczonych`})}`,selectedAll:"Wszystkie zaznaczone"};var CW={};CW={actions:"Ações",actionsAvailable:"Ações disponíveis.",clearSelection:"Limpar seleção",selected:(e,t)=>`${t.plural(e.count,{"=0":"Nada selecionado",other:()=>`${t.number(e.count)} selecionado`})}`,selectedAll:"Todos selecionados"};var TW={};TW={actions:"Ações",actionsAvailable:"Ações disponíveis.",clearSelection:"Limpar seleção",selected:(e,t)=>`${t.plural(e.count,{"=0":"Nenhum selecionado",other:()=>`${t.number(e.count)} selecionado`})}`,selectedAll:"Tudo selecionado"};var PW={};PW={actions:"Acțiuni",actionsAvailable:"Acțiuni disponibile.",clearSelection:"Goliți selecția",selected:(e,t)=>`${t.plural(e.count,{"=0":"Niciunul selectat",other:()=>`${t.number(e.count)} selectate`})}`,selectedAll:"Toate selectate"};var MW={};MW={actions:"Действия",actionsAvailable:"Возможно выполнение действий.",clearSelection:"Очистить выбор",selected:(e,t)=>`${t.plural(e.count,{"=0":"Ничего не выбоано",other:()=>`${t.number(e.count)} выбрано`})}`,selectedAll:"Выбрано все"};var OW={};OW={actions:"Akcie",actionsAvailable:"Dostupné akcie.",clearSelection:"Vymazať výber",selected:(e,t)=>`${t.plural(e.count,{"=0":"Žiadne vybraté položky",other:()=>`Počet vybratých položiek: ${t.number(e.count)}`})}`,selectedAll:"Všetky vybraté položky"};var RW={};RW={actions:"Dejanja",actionsAvailable:"Na voljo so dejanja.",clearSelection:"Počisti izbor",selected:(e,t)=>`${t.plural(e.count,{"=0":"Nič izbranih",other:()=>`${t.number(e.count)} izbranih`})}`,selectedAll:"Vsi izbrani"};var IW={};IW={actions:"Radnje",actionsAvailable:"Dostupne su radnje.",clearSelection:"Poništi izbor",selected:(e,t)=>`${t.plural(e.count,{"=0":"Ništa nije izabrano",other:()=>`${t.number(e.count)} je izabrano`})}`,selectedAll:"Sve je izabrano"};var kW={};kW={actions:"Åtgärder",actionsAvailable:"Åtgärder finns.",clearSelection:"Rensa markering",selected:(e,t)=>`${t.plural(e.count,{"=0":"Inga markerade",other:()=>`${t.number(e.count)} markerade`})}`,selectedAll:"Alla markerade"};var FW={};FW={actions:"Eylemler",actionsAvailable:"Eylemler mevcut.",clearSelection:"Seçimi temizle",selected:(e,t)=>`${t.plural(e.count,{"=0":"Hiçbiri seçilmedi",other:()=>`${t.number(e.count)} seçildi`})}`,selectedAll:"Tümü seçildi"};var NW={};NW={actions:"Дії",actionsAvailable:"Доступні дії.",clearSelection:"Очистити вибір",selected:(e,t)=>`${t.plural(e.count,{"=0":"Нічого не вибрано",other:()=>`Вибрано: ${t.number(e.count)}`})}`,selectedAll:"Усе вибрано"};var LW={};LW={actions:"操作",actionsAvailable:"有可用操作。",clearSelection:"清除选择",selected:(e,t)=>`${t.plural(e.count,{"=0":"无选择",other:()=>`已选择 ${t.number(e.count)} 个`})}`,selectedAll:"全选"};var DW={};DW={actions:"動作",actionsAvailable:"可執行的動作。",clearSelection:"清除選取項目",selected:(e,t)=>`${t.plural(e.count,{"=0":"未選取任何項目",other:()=>`已選取 ${t.number(e.count)} 個`})}`,selectedAll:"已選取所有項目"};iW={"ar-AE":aW,"bg-BG":oW,"cs-CZ":lW,"da-DK":sW,"de-DE":uW,"el-GR":cW,"en-US":fW,"es-ES":dW,"et-EE":pW,"fi-FI":hW,"fr-FR":vW,"he-IL":mW,"hr-HR":gW,"hu-HU":yW,"it-IT":bW,"ja-JP":$W,"ko-KR":xW,"lt-LT":wW,"lv-LV":_W,"nb-NO":SW,"nl-NL":EW,"pl-PL":AW,"pt-BR":CW,"pt-PT":TW,"ro-RO":PW,"ru-RU":MW,"sk-SK":OW,"sl-SI":RW,"sr-SP":IW,"sv-SE":kW,"tr-TR":FW,"uk-UA":NW,"zh-CN":LW,"zh-TW":DW};var fo={};Cc(fo,"ActionBarContainer",()=>g6,e=>g6=e);Cc(fo,"react-spectrum-ActionBar",()=>y6,e=>y6=e);Cc(fo,"is-open",()=>b6,e=>b6=e);Cc(fo,"react-spectrum-ActionBar-bar",()=>$6,e=>$6=e);Cc(fo,"react-spectrum-ActionBar--emphasized",()=>x6,e=>x6=e);Cc(fo,"react-spectrum-ActionBar-selectedCount",()=>w6,e=>w6=e);Cc(fo,"react-spectrum-ActionBar-actionGroup",()=>_6,e=>_6=e);var g6,y6,b6,$6,x6,w6,_6;g6="ActionBarContainer_cca088";y6="react-spectrum-ActionBar_cca088";b6="is-open_cca088";$6="react-spectrum-ActionBar-bar_cca088";x6="react-spectrum-ActionBar--emphasized_cca088";w6="react-spectrum-ActionBar-selectedCount_cca088";_6="react-spectrum-ActionBar-actionGroup_cca088";function Lle(e,t){let r=e.selectedItemCount!==0,n=Bn(t);return D.createElement(aH,{nodeRef:n,in:r,mountOnEnter:!0,unmountOnExit:!0},D.createElement(Ble,{...e,ref:n}))}function Dle(e,t){e=Fl(e);let{children:r,isEmphasized:n,onAction:i,onClearSelection:a,selectedItemCount:o,isOpen:l,items:u}=e,{styleProps:c}=Dr(e),d=Va(kh(iW)),[h,p]=z.useState(o);(o==="all"||o>0)&&o!==h&&p(o);let{keyboardProps:v}=QP({onKeyDown(S){S.key==="Escape"&&(S.preventDefault(),a())}}),$=z.useRef(!0);return z.useEffect(()=>{$.current&&($.current=!1,L1(d.format("actionsAvailable")))},[d]),D.createElement(ep,{restoreFocus:!0},D.createElement("div",{...Gr(e),...c,...v,ref:t,className:Le(kh(fo),"react-spectrum-ActionBar",{"react-spectrum-ActionBar--emphasized":n,"is-open":l},c.className)},D.createElement("div",{className:Le(kh(fo),"react-spectrum-ActionBar-bar")},D.createElement(Ple,{items:u,"aria-label":d.format("actions"),isQuiet:!0,staticColor:n?"white":void 0,overflowMode:"collapse",buttonLabelBehavior:"collapse",onAction:i,UNSAFE_className:Le(kh(fo),"react-spectrum-ActionBar-actionGroup")},r),D.createElement(Ub,{gridArea:"clear","aria-label":d.format("clearSelection"),onPress:()=>a(),isQuiet:!0,staticColor:n?"white":void 0},D.createElement(nW,null)),D.createElement(tp,{UNSAFE_className:Le(kh(fo),"react-spectrum-ActionBar-selectedCount")},h==="all"?d.format("selectedAll"):d.format("selected",{count:h})))))}const Ble=D.forwardRef(Dle),tEe=D.forwardRef(Lle);function qI(e){return e&&e.__esModule?e.default:e}function Tm(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var sc={};Tm(sc,"spectrum-ButtonGroup",()=>S6,e=>S6=e);Tm(sc,"spectrum-ButtonGroup-Button",()=>E6,e=>E6=e);Tm(sc,"spectrum-ButtonGroup--alignEnd",()=>A6,e=>A6=e);Tm(sc,"spectrum-ButtonGroup--alignCenter",()=>C6,e=>C6=e);Tm(sc,"spectrum-ButtonGroup--vertical",()=>T6,e=>T6=e);var S6,E6,A6,C6,T6;S6="spectrum-ButtonGroup_b10c2f";E6="spectrum-ButtonGroup-Button_b10c2f";A6="spectrum-ButtonGroup--alignEnd_b10c2f";C6="spectrum-ButtonGroup--alignCenter_b10c2f";T6="spectrum-ButtonGroup--vertical_b10c2f";function zle(e,t){let{scale:r}=qa();e=Fl(e),e=_a(e,"buttonGroup");let{children:n,orientation:i="horizontal",isDisabled:a,align:o="start",...l}=e,{styleProps:u}=Dr(l),c=Bn(t),[d,h]=HP(!1),p=z.useCallback(()=>{let $=()=>{if(c.current&&i==="horizontal"){let S=Array.from(c.current.children),g=c.current.offsetWidth+1;return!!S.some(b=>b.offsetLeft<0||b.offsetLeft+b.offsetWidth>g)}};i==="horizontal"&&h(function*(){yield!1,yield $()})},[c,i,r,h,n]);Sr(()=>{p()},[p]);let v=z.useRef();return Sr(()=>{c.current&&(v.current=c.current.parentElement)},[c.current]),$m({ref:v,onResize:p}),D.createElement("div",{...Gr(l),...u,ref:c,className:Le(qI(sc),"spectrum-ButtonGroup",{"spectrum-ButtonGroup--vertical":i==="vertical"||d,"spectrum-ButtonGroup--alignEnd":o==="end","spectrum-ButtonGroup--alignCenter":o==="center"},u.className)},D.createElement(Ka,{slots:{button:{UNSAFE_className:Le(qI(sc),"spectrum-ButtonGroup-Button")}}},D.createElement(zb,{isDisabled:a},n)))}let rEe=D.forwardRef(zle);function Ule(e){return e&&e.__esModule?e.default:e}function zn(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var In={};zn(In,"spectrum-FieldLabel",()=>P6,e=>P6=e);zn(In,"spectrum-FieldLabel--positionSide",()=>M6,e=>M6=e);zn(In,"spectrum-FieldLabel-requiredIcon",()=>O6,e=>O6=e);zn(In,"spectrum-FieldLabel--alignEnd",()=>R6,e=>R6=e);zn(In,"spectrum-Field",()=>I6,e=>I6=e);zn(In,"spectrum-Field-contextualHelp",()=>k6,e=>k6=e);zn(In,"spectrum-Field--positionTop",()=>F6,e=>F6=e);zn(In,"spectrum-Field-field",()=>N6,e=>N6=e);zn(In,"spectrum-Field--alignEnd",()=>L6,e=>L6=e);zn(In,"spectrum-Field--positionSide",()=>D6,e=>D6=e);zn(In,"spectrum-Field-wrapper",()=>B6,e=>B6=e);zn(In,"spectrum-Field--hasContextualHelp",()=>z6,e=>z6=e);zn(In,"spectrum-Form",()=>U6,e=>U6=e);zn(In,"spectrum-Form--positionSide",()=>j6,e=>j6=e);zn(In,"spectrum-Field-labelCell",()=>H6,e=>H6=e);zn(In,"spectrum-Field-labelWrapper",()=>G6,e=>G6=e);zn(In,"spectrum-Form--positionTop",()=>W6,e=>W6=e);zn(In,"spectrum-LabeledValue",()=>V6,e=>V6=e);zn(In,"spectrum-Form-itemLabel",()=>K6,e=>K6=e);zn(In,"is-disabled",()=>q6,e=>q6=e);var P6,M6,O6,R6,I6,k6,F6,N6,L6,D6,B6,z6,U6,j6,H6,G6,W6,V6,K6,q6;P6="spectrum-FieldLabel_d2db1f";M6="spectrum-FieldLabel--positionSide_d2db1f";O6="spectrum-FieldLabel-requiredIcon_d2db1f";R6="spectrum-FieldLabel--alignEnd_d2db1f";I6="spectrum-Field_d2db1f";k6="spectrum-Field-contextualHelp_d2db1f";F6="spectrum-Field--positionTop_d2db1f";N6="spectrum-Field-field_d2db1f";L6="spectrum-Field--alignEnd_d2db1f";D6="spectrum-Field--positionSide_d2db1f";B6="spectrum-Field-wrapper_d2db1f";z6="spectrum-Field--hasContextualHelp_d2db1f";U6="spectrum-Form_d2db1f";j6="spectrum-Form--positionSide_d2db1f";H6="spectrum-Field-labelCell_d2db1f";G6="spectrum-Field-labelWrapper_d2db1f";W6="spectrum-Form--positionTop_d2db1f";V6="spectrum-LabeledValue_d2db1f";K6="spectrum-Form-itemLabel_d2db1f";q6="is-disabled_d2db1f";let BW=D.createContext(null);function jle(e){let t=z.useContext(BW);return t?{...t,...e}:e}const Hle=new Set(["action","autoComplete","encType","method","target","onSubmit"]);function Gle(e,t){e=Fl(e);let{children:r,labelPosition:n="top",labelAlign:i="start",isRequired:a,necessityIndicator:o,isQuiet:l,isEmphasized:u,isDisabled:c,isReadOnly:d,validationState:h,...p}=e,{styleProps:v}=Dr(p),$=Bn(t),S={labelPosition:n,labelAlign:i,necessityIndicator:o};return D.createElement("form",{...Gr(p,{labelable:!0,propNames:Hle}),...v,noValidate:!0,ref:$,className:Le(Ule(In),"spectrum-Form",{"spectrum-Form--positionSide":n==="side","spectrum-Form--positionTop":n==="top"},v.className)},D.createElement(BW.Provider,{value:S},D.createElement(zb,{isQuiet:l,isEmphasized:u,isDisabled:c,isReadOnly:d,isRequired:a,validationState:h},r)))}const nEe=D.forwardRef(Gle);var zW={};Object.defineProperty(zW,"__esModule",{value:!0});var UW=zW.AlertMedium=jW,Ex=Wle(z);function Wle(e){return e&&e.__esModule?e:{default:e}}function Y6(){return Y6=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},Y6.apply(this,arguments)}function Vle(e,t){if(e==null)return{};var r=Kle(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 Kle(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){var t=e.scale,r=t===void 0?"M":t,n=Vle(e,["scale"]);return Ex.default.createElement("svg",Y6({},n,n),r==="L"&&Ex.default.createElement("path",{d:"M10.563 2.206l-9.249 16.55a.5.5 0 0 0 .436.744h18.5a.5.5 0 0 0 .436-.744l-9.251-16.55a.5.5 0 0 0-.872 0zm1.436 15.044a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25zm0-3.5a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25z"}),r==="M"&&Ex.default.createElement("path",{d:"M8.564 1.289L.2 16.256A.5.5 0 0 0 .636 17h16.728a.5.5 0 0 0 .436-.744L9.436 1.289a.5.5 0 0 0-.872 0zM10 14.75a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-1.5a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25zm0-3a.25.25 0 0 1-.25.25h-1.5a.25.25 0 0 1-.25-.25v-6a.25.25 0 0 1 .25-.25h1.5a.25.25 0 0 1 .25.25z"}))}jW.displayName="AlertMedium";const HW=e=>D.createElement("svg",ai({viewBox:"0 0 18 18"},e),D.createElement("path",{d:"M9 10.5a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v4.5a1 1 0 0 1-1 1Zm0 1.25A1.25 1.25 0 1 0 10.25 13 1.25 1.25 0 0 0 9 11.75Zm8.497 3.589a3.49 3.49 0 0 0 .079-3.474L12 1.815a3.385 3.385 0 0 0-5.994-.007L.416 11.88a3.485 3.485 0 0 0 .089 3.459A3.375 3.375 0 0 0 3.416 17h11.169a3.375 3.375 0 0 0 2.912-1.661ZM10.244 2.77l5.575 10.05a1.497 1.497 0 0 1-.037 1.489 1.374 1.374 0 0 1-1.197.69H3.416a1.374 1.374 0 0 1-1.197-.69 1.493 1.493 0 0 1-.046-1.474l5.593-10.08a1.386 1.386 0 0 1 2.478.015Z"}));HW.displayName=UW.displayName;function pM(e){var t,r;let n=qa();return D.createElement(Ho,e,n!=null&&(t=n.theme)!=null&&(r=t.global)!=null&&r.express?D.createElement(HW,null):D.createElement(UW,null))}var GW={};Object.defineProperty(GW,"__esModule",{value:!0});var qle=GW.Asterisk=WW,Ax=Yle(z);function Yle(e){return e&&e.__esModule?e:{default:e}}function X6(){return X6=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},X6.apply(this,arguments)}function Xle(e,t){if(e==null)return{};var r=Qle(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 Qle(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 WW(e){var t=e.scale,r=t===void 0?"M":t,n=Xle(e,["scale"]);return Ax.default.createElement("svg",X6({},n,n),r==="L"&&Ax.default.createElement("path",{d:"M7.867 7.872c.061.062.103.145 0 .228l-1.283.827c-.104.061-.145.02-.186-.083L4.804 6.07l-2.09 2.297c-.021.042-.083.083-.145 0l-.994-1.035c-.103-.062-.082-.124 0-.186l2.36-1.966-2.691-1.014c-.042 0-.104-.083-.062-.186l.703-1.41a.11.11 0 0 1 .187-.04L4.43 4.06l.145-3.02A.109.109 0 0 1 4.7.917l1.718.227c.104 0 .124.042.104.145l-.808 2.96 2.734-.828c.061-.042.124-.042.165.082l.27 1.532c.02.103 0 .145-.084.145l-2.856.227z"}),r==="M"&&Ax.default.createElement("path",{d:"M6.573 6.558c.056.055.092.13 0 .204l-1.148.74c-.093.056-.13.02-.167-.073L3.832 4.947l-1.87 2.055c-.02.037-.075.074-.13 0l-.889-.926c-.092-.055-.074-.111 0-.167l2.111-1.76-2.408-.906c-.037 0-.092-.074-.055-.167l.63-1.259a.097.097 0 0 1 .166-.036l2.111 1.37.13-2.704a.097.097 0 0 1 .111-.11L5.277.54c.092 0 .11.037.092.13l-.722 2.647 2.444-.74c.056-.038.111-.038.148.073l.241 1.37c.019.093 0 .13-.074.13l-2.556.204z"}))}WW.displayName="Asterisk";function Zle(e){return D.createElement(Ho,e,D.createElement(qle,null))}function va(e){return e&&e.__esModule?e.default:e}function an(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var Fo={};an(Fo,"spectrum-HelpText",()=>Q6,e=>Q6=e);an(Fo,"spectrum-HelpText-validationIcon",()=>Z6,e=>Z6=e);an(Fo,"spectrum-HelpText-text",()=>J6,e=>J6=e);an(Fo,"spectrum-HelpText--neutral",()=>eE,e=>eE=e);an(Fo,"is-disabled",()=>tE,e=>tE=e);an(Fo,"spectrum-HelpText--negative",()=>rE,e=>rE=e);var Q6,Z6,J6,eE,tE,rE;Q6="spectrum-HelpText_f395de";Z6="spectrum-HelpText-validationIcon_f395de";J6="spectrum-HelpText-text_f395de";eE="spectrum-HelpText--neutral_f395de";tE="is-disabled_f395de";rE="spectrum-HelpText--negative_f395de";function Jle(e,t){let{description:r,errorMessage:n,validationState:i,isDisabled:a,showErrorIcon:o,descriptionProps:l,errorMessageProps:u}=e,c=Bn(t),d=n&&i==="invalid",{styleProps:h}=Dr(e);return D.createElement("div",{...h,className:Le(va(Fo),"spectrum-HelpText",`spectrum-HelpText--${d?"negative":"neutral"}`,{"is-disabled":a},h.className),ref:c},d?D.createElement(D.Fragment,null,o&&D.createElement(pM,{UNSAFE_className:Le(va(Fo),"spectrum-HelpText-validationIcon")}),D.createElement("div",{...u,className:Le(va(Fo),"spectrum-HelpText-text")},n)):D.createElement("div",{...l,className:Le(va(Fo),"spectrum-HelpText-text")},r))}const ese=D.forwardRef(Jle);var VW={},KW={};KW={"(optional)":"(اختياري)","(required)":"(مطلوب)"};var qW={};qW={"(optional)":"(незадължително)","(required)":"(задължително)"};var YW={};YW={"(optional)":"(volitelně)","(required)":"(požadováno)"};var XW={};XW={"(optional)":"(valgfrit)","(required)":"(obligatorisk)"};var QW={};QW={"(optional)":"(optional)","(required)":"(erforderlich)"};var ZW={};ZW={"(optional)":"(προαιρετικό)","(required)":"(απαιτείται)"};var JW={};JW={"(required)":"(required)","(optional)":"(optional)"};var eV={};eV={"(optional)":"(opcional)","(required)":"(obligatorio)"};var tV={};tV={"(optional)":"(valikuline)","(required)":"(nõutav)"};var rV={};rV={"(optional)":"(valinnainen)","(required)":"(pakollinen)"};var nV={};nV={"(optional)":"(facultatif)","(required)":"(requis)"};var iV={};iV={"(optional)":"(אופציונלי)","(required)":"(נדרש)"};var aV={};aV={"(optional)":"(opcionalno)","(required)":"(obvezno)"};var oV={};oV={"(optional)":"(opcionális)","(required)":"(kötelező)"};var lV={};lV={"(optional)":"(facoltativo)","(required)":"(obbligatorio)"};var sV={};sV={"(optional)":"(オプション)","(required)":"(必須)"};var uV={};uV={"(optional)":"(선택 사항)","(required)":"(필수 사항)"};var cV={};cV={"(optional)":"(pasirenkama)","(required)":"(privaloma)"};var fV={};fV={"(optional)":"(neobligāti)","(required)":"(obligāti)"};var dV={};dV={"(optional)":"(valgfritt)","(required)":"(obligatorisk)"};var pV={};pV={"(optional)":"(optioneel)","(required)":"(vereist)"};var hV={};hV={"(optional)":"(opcjonalne)","(required)":"(wymagane)"};var vV={};vV={"(optional)":"(opcional)","(required)":"(obrigatório)"};var mV={};mV={"(optional)":"(opcional)","(required)":"(obrigatório)"};var gV={};gV={"(optional)":"(opţional)","(required)":"(obligatoriu)"};var yV={};yV={"(optional)":"(дополнительно)","(required)":"(обязательно)"};var bV={};bV={"(optional)":"(nepovinné)","(required)":"(povinné)"};var $V={};$V={"(optional)":"(opcijsko)","(required)":"(obvezno)"};var xV={};xV={"(optional)":"(opciono)","(required)":"(obavezno)"};var wV={};wV={"(optional)":"(valfritt)","(required)":"(krävs)"};var _V={};_V={"(optional)":"(isteğe bağlı)","(required)":"(gerekli)"};var SV={};SV={"(optional)":"(необов’язково)","(required)":"(обов’язково)"};var EV={};EV={"(optional)":"(可选)","(required)":"(必填)"};var AV={};AV={"(optional)":"(選填)","(required)":"(必填)"};VW={"ar-AE":KW,"bg-BG":qW,"cs-CZ":YW,"da-DK":XW,"de-DE":QW,"el-GR":ZW,"en-US":JW,"es-ES":eV,"et-EE":tV,"fi-FI":rV,"fr-FR":nV,"he-IL":iV,"hr-HR":aV,"hu-HU":oV,"it-IT":lV,"ja-JP":sV,"ko-KR":uV,"lt-LT":cV,"lv-LV":fV,"nb-NO":dV,"nl-NL":pV,"pl-PL":hV,"pt-BR":vV,"pt-PT":mV,"ro-RO":gV,"ru-RU":yV,"sk-SK":bV,"sl-SI":$V,"sr-SP":xV,"sv-SE":wV,"tr-TR":_V,"uk-UA":SV,"zh-CN":EV,"zh-TW":AV};var qr={};an(qr,"spectrum-FieldLabel",()=>nE,e=>nE=e);an(qr,"spectrum-FieldLabel--positionSide",()=>iE,e=>iE=e);an(qr,"spectrum-FieldLabel-requiredIcon",()=>aE,e=>aE=e);an(qr,"spectrum-FieldLabel--alignEnd",()=>oE,e=>oE=e);an(qr,"spectrum-Field",()=>lE,e=>lE=e);an(qr,"spectrum-Field-contextualHelp",()=>sE,e=>sE=e);an(qr,"spectrum-Field--positionTop",()=>uE,e=>uE=e);an(qr,"spectrum-Field-field",()=>cE,e=>cE=e);an(qr,"spectrum-Field--alignEnd",()=>fE,e=>fE=e);an(qr,"spectrum-Field--positionSide",()=>dE,e=>dE=e);an(qr,"spectrum-Field-wrapper",()=>pE,e=>pE=e);an(qr,"spectrum-Field--hasContextualHelp",()=>hE,e=>hE=e);an(qr,"spectrum-Form",()=>vE,e=>vE=e);an(qr,"spectrum-Form--positionSide",()=>mE,e=>mE=e);an(qr,"spectrum-Field-labelCell",()=>gE,e=>gE=e);an(qr,"spectrum-Field-labelWrapper",()=>yE,e=>yE=e);an(qr,"spectrum-Form--positionTop",()=>bE,e=>bE=e);an(qr,"spectrum-LabeledValue",()=>$E,e=>$E=e);an(qr,"spectrum-Form-itemLabel",()=>xE,e=>xE=e);an(qr,"is-disabled",()=>wE,e=>wE=e);var nE,iE,aE,oE,lE,sE,uE,cE,fE,dE,pE,hE,vE,mE,gE,yE,bE,$E,xE,wE;nE="spectrum-FieldLabel_d2db1f";iE="spectrum-FieldLabel--positionSide_d2db1f";aE="spectrum-FieldLabel-requiredIcon_d2db1f";oE="spectrum-FieldLabel--alignEnd_d2db1f";lE="spectrum-Field_d2db1f";sE="spectrum-Field-contextualHelp_d2db1f";uE="spectrum-Field--positionTop_d2db1f";cE="spectrum-Field-field_d2db1f";fE="spectrum-Field--alignEnd_d2db1f";dE="spectrum-Field--positionSide_d2db1f";pE="spectrum-Field-wrapper_d2db1f";hE="spectrum-Field--hasContextualHelp_d2db1f";vE="spectrum-Form_d2db1f";mE="spectrum-Form--positionSide_d2db1f";gE="spectrum-Field-labelCell_d2db1f";yE="spectrum-Field-labelWrapper_d2db1f";bE="spectrum-Form--positionTop_d2db1f";$E="spectrum-LabeledValue_d2db1f";xE="spectrum-Form-itemLabel_d2db1f";wE="is-disabled_d2db1f";function tse(e,t){e=Fl(e);let{children:r,labelPosition:n="top",labelAlign:i=n==="side"?"start":null,isRequired:a,necessityIndicator:o=a!=null?"icon":null,includeNecessityIndicatorInAccessibilityName:l=!1,htmlFor:u,for:c,elementType:d="label",onClick:h,...p}=e,v=Bn(t),{styleProps:$}=Dr(p),S=Va(va(VW)),g=a?S.format("(required)"):S.format("(optional)"),b=D.createElement(Zle,{UNSAFE_className:Le(va(qr),"spectrum-FieldLabel-requiredIcon"),"aria-label":l?S.format("(required)"):void 0}),_=Le(va(qr),"spectrum-FieldLabel",{"spectrum-FieldLabel--positionSide":n==="side","spectrum-FieldLabel--alignEnd":i==="end"},$.className);return D.createElement(d,{...Gr(p),...$,onClick:h,ref:v,className:_,htmlFor:d==="label"?c||u:void 0},r,(o==="label"||o==="icon"&&a)&&" ​",o==="label"&&D.createElement("span",{"aria-hidden":l?void 0:a},g),o==="icon"&&a&&b)}let rse=D.forwardRef(tse);function nse(e,t){let r=jle(e),n=r!==e;e=r;let{label:i,labelPosition:a="top",labelAlign:o,isRequired:l,necessityIndicator:u,includeNecessityIndicatorInAccessibilityName:c,validationState:d,description:h,errorMessage:p,isDisabled:v,showErrorIcon:$,contextualHelp:S,children:g,labelProps:b={},descriptionProps:_={},errorMessageProps:E={},elementType:A,wrapperClassName:M,wrapperProps:N={},...U}=e,{styleProps:I}=Dr(U),j=!!h||p&&d==="invalid",he=ui(),q=ui();i&&S&&!b.id&&(b.id=q);let fe=Le(va(qr),"spectrum-Field",{"spectrum-Field--positionTop":a==="top","spectrum-Field--positionSide":a==="side","spectrum-Field--alignEnd":o==="end","spectrum-Field--hasContextualHelp":!!e.contextualHelp},I.className,M);g=D.cloneElement(g,tr(g.props,{className:Le(va(qr),"spectrum-Field-field")}));let ne=()=>D.createElement(ese,{descriptionProps:_,errorMessageProps:E,description:h,errorMessage:p,validationState:d,isDisabled:v,showErrorIcon:$,gridArea:"helpText"}),ce=()=>a==="side"?D.createElement(JH,{direction:"column",UNSAFE_className:Le(va(qr),"spectrum-Field-wrapper")},g,j&&ne()):D.createElement(D.Fragment,null,g,j&&ne()),De=D.createElement(D.Fragment,null,i&&D.createElement(rse,{...b,labelPosition:a,labelAlign:o,isRequired:l,necessityIndicator:u,includeNecessityIndicatorInAccessibilityName:c,elementType:A},i),i&&S&&D.createElement(Ka,{slots:{actionButton:{UNSAFE_className:Le(va(qr),"spectrum-Field-contextualHelp"),id:he,"aria-labelledby":b!=null&&b.id?`${b.id} ${he}`:void 0}}},S));return n&&a==="side"&&i&&S&&(De=D.createElement("div",{className:Le(va(qr),"spectrum-Field-labelCell")},D.createElement("div",{className:Le(va(qr),"spectrum-Field-labelWrapper")},De))),D.createElement("div",{...I,...N,ref:t,className:fe},De,ce())}let hM=D.forwardRef(nse);function vM(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":i,labelElementType:a="label"}=e;t=ui(t);let o=ui(),l={};r?(n=n?`${o} ${n}`:o,l={id:o,htmlFor:a==="label"?t:void 0}):!n&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let u=wy({id:t,"aria-label":i,"aria-labelledby":n});return{labelProps:l,fieldProps:u}}function CV(e){let{description:t,errorMessage:r,validationState:n}=e,{labelProps:i,fieldProps:a}=vM(e),o=Cl([!!t,!!r,n]),l=Cl([!!t,!!r,n]);return a=tr(a,{"aria-describedby":[o,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:a,descriptionProps:{id:o},errorMessageProps:{id:l}}}const Vb=new WeakMap;function ise(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function TV(e,t){let r=Vb.get(e);if(!r)throw new Error("Unknown list");return`${r.id}-option-${ise(t)}`}function ase(e,t,r){let n=Gr(e,{labelable:!0}),{listProps:i}=cH({...e,ref:r,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys}),{focusWithinProps:a}=Em({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),o=ui(e.id);Vb.set(t,{id:o,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction});let{labelProps:l,fieldProps:u}=vM({...e,id:o,labelElementType:"span"});return{labelProps:l,listBoxProps:tr(n,a,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...tr(u,i)})}}function ose(e,t,r){let{key:n}=e,i=Vb.get(t);var a;let o=(a=e.isDisabled)!==null&&a!==void 0?a:t.disabledKeys.has(n);var l;let u=(l=e.isSelected)!==null&&l!==void 0?l:t.selectionManager.isSelected(n);var c;let d=(c=e.shouldSelectOnPressUp)!==null&&c!==void 0?c:i==null?void 0:i.shouldSelectOnPressUp;var h;let p=(h=e.shouldFocusOnHover)!==null&&h!==void 0?h:i==null?void 0:i.shouldFocusOnHover;var v;let $=(v=e.shouldUseVirtualFocus)!==null&&v!==void 0?v:i==null?void 0:i.shouldUseVirtualFocus;var S;let g=(S=e.isVirtualized)!==null&&S!==void 0?S:i==null?void 0:i.isVirtualized,b=Cl(),_=Cl(),E={role:"option","aria-disabled":o||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?u:void 0};if(xm()&&zne()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=b,E["aria-describedby"]=_),g){var A;let q=Number((A=t.collection.getItem(n))===null||A===void 0?void 0:A.index);E["aria-posinset"]=Number.isNaN(q)?void 0:q+1,E["aria-setsize"]=UP(t.collection)}let{itemProps:M,isPressed:N,isFocused:U,hasAction:I,allowsSelection:j}=sH({selectionManager:t.selectionManager,key:n,ref:r,shouldSelectOnPressUp:d,allowsDifferentPressOrigin:d&&p,isVirtualized:g,shouldUseVirtualFocus:$,isDisabled:o,onAction:i!=null&&i.onAction?()=>{var q;return i==null||(q=i.onAction)===null||q===void 0?void 0:q.call(i,n)}:void 0}),{hoverProps:he}=ta({isDisabled:o||!p,onHoverStart(){lc()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(n))}});return{optionProps:{...E,...tr(M,he),id:TV(t,n)},labelProps:{id:b},descriptionProps:{id:_},isFocused:U,isFocusVisible:U&&lc(),isSelected:u,isDisabled:o,isPressed:N,allowsSelection:j,hasAction:I}}function lse(e){let{heading:t,"aria-label":r}=e,n=ui();return{itemProps:{role:"presentation"},headingProps:t?{id:n,role:"presentation"}:{},groupProps:{role:"group","aria-label":r,"aria-labelledby":t?n:void 0}}}class sse{shouldInvalidate(t,r){return t.width!==r.width||t.height!==r.height}validate(t){}getInitialLayoutInfo(t){return t}getFinalLayoutInfo(t){return t}}class Du{copy(){let t=new Du(this.type,this.key,this.rect.copy());return t.estimatedSize=this.estimatedSize,t.opacity=this.opacity,t.transform=this.transform,t.parentKey=this.parentKey,t.isSticky=this.isSticky,t.zIndex=this.zIndex,t.allowOverflow=this.allowOverflow,t}constructor(t,r,n){this.type=t,this.key=r,this.parentKey=null,this.rect=n,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}class Zi{copy(){return new Zi(this.x,this.y)}equals(t){return this.x===t.x&&this.y===t.y}isOrigin(){return this.x===0&&this.y===0}constructor(t=0,r=0){this.x=t,this.y=r}}class gn{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new Zi(this.x,this.y)}get topRight(){return new Zi(this.maxX,this.y)}get bottomLeft(){return new Zi(this.x,this.maxY)}get bottomRight(){return new Zi(this.maxX,this.maxY)}intersects(t){return this.x<=t.x+t.width&&t.x<=this.x+this.width&&this.y<=t.y+t.height&&t.y<=this.y+this.height}containsRect(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.maxX&&this.maxY>=t.maxY}containsPoint(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.x&&this.maxY>=t.y}getCornerInRect(t){for(let r of["topLeft","topRight","bottomLeft","bottomRight"])if(t.containsPoint(this[r]))return r;return null}equals(t){return t.x===this.x&&t.y===this.y&&t.width===this.width&&t.height===this.height}pointEquals(t){return this.x===t.x&&this.y===t.y}sizeEquals(t){return this.width===t.width&&this.height===t.height}union(t){let r=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.maxX,t.maxX)-r,a=Math.max(this.maxY,t.maxY)-n;return new gn(r,n,i,a)}intersection(t){if(!this.intersects(t))return new gn(0,0,0,0);let r=Math.max(this.x,t.x),n=Math.max(this.y,t.y);return new gn(r,n,Math.min(this.maxX,t.maxX)-r,Math.min(this.maxY,t.maxY)-n)}copy(){return new gn(this.x,this.y,this.width,this.height)}constructor(t=0,r=0,n=0,i=0){this.x=t,this.y=r,this.width=n,this.height=i}}class uc{copy(){return new uc(this.width,this.height)}equals(t){return this.width===t.width&&this.height===t.height}get area(){return this.width*this.height}constructor(t=0,r=0){this.width=t,this.height=r}}let use=0;class cse{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}constructor(t){this.virtualizer=t,this.key=++use}}let Hf=typeof window<"u"?window.performance:null,YI=Hf&&(Hf.now||Hf.webkitNow||Hf.msNow||Hf.mozNow),Cx=YI?YI.bind(Hf):function(){return Date.now?Date.now():new Date().getTime()},Tx;function fse(e,t,r,n,i){let a=!1,o,l=new Promise(u=>{let c=Cx(),d=t.x-e.x,h=t.y-e.y;o=requestAnimationFrame(function p(v){Tx==null&&(Tx=v>1e12!=Cx()>1e12),Tx&&(v=Cx());let $=v-c;$>r?(i(t),u()):i(new Zi(e.x+d*n($/r),e.y+h*n($/r)))!==!1&&!a&&(o=requestAnimationFrame(p))})});return l.cancel=function(){a=!0,cancelAnimationFrame(o)},l}function dse(e){return Math.sin(e*Math.PI/2)}function XI(e,t){let r=new Set;for(let n of e.keys())t.has(n)||r.add(n);return r}function pse(e,t){let r=XI(e,t),n=XI(t,e),i=new Set;for(let a of e.keys())t.has(a)&&i.add(a);return{toRemove:r,toAdd:n,toUpdate:i}}function*hse(...e){for(let t of e)yield*t}function vse(e,t){if(e===t)return!0;if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}class Dg{addSample(t){this.count++,this.value+=(t-this.value)/this.count}constructor(){this.count=0,this.value=0}}class mse{setVisibleRect(t){let r=performance.now()-this.startTime;r<500&&(this.averageTime.addSample(r),t.x!==this.visibleRect.x&&r>0&&(this.velocity.x=(t.x-this.visibleRect.x)/r),t.y!==this.visibleRect.y&&r>0&&(this.velocity.y=(t.y-this.visibleRect.y)/r)),this.startTime=performance.now(),this.visibleRect=t}collectMetrics(){let t=performance.now()-this.startTime;if(t<500&&this.averagePerf.addSample(t),this.visibleRect.height>0){let r=Math.abs(this.velocity.y*(this.averageTime.value+this.averagePerf.value));this.overscanY.addSample(r)}if(this.visibleRect.width>0){let r=Math.abs(this.velocity.x*(this.averageTime.value+this.averagePerf.value));this.overscanX.addSample(r)}}getOverscannedRect(){let t=this.visibleRect.copy(),r=Math.round(Math.min(this.visibleRect.height*2,this.overscanY.value)/100)*100;this.velocity.y>0?(t.y-=r*.2,t.height+=r+r*.2):(t.y-=r,t.height+=r+r*.2);let n=Math.round(Math.min(this.visibleRect.width*2,this.overscanX.value)/100)*100;return this.velocity.x>0?(t.x-=n*.2,t.width+=n+n*.2):(t.x-=n,t.width+=n+n*.2),t}constructor(){this.startTime=0,this.averagePerf=new Dg,this.averageTime=new Dg,this.velocity=new Zi(5,5),this.overscanX=new Dg,this.overscanY=new Dg,this.visibleRect=new gn}}class gse{constructor(){this.level=0,this.actions=[],this.animated=!0,this.initialMap=new Map,this.finalMap=new Map,this.initialLayoutInfo=new Map,this.finalLayoutInfo=new Map,this.removed=new Map,this.toRemove=new Map}}class yse{_setContentSize(t){this._contentSize=t,this.delegate.setContentSize(t)}_setContentOffset(t){let r=new gn(t.x,t.y,this._visibleRect.width,this._visibleRect.height);this.delegate.setVisibleRect(r)}get contentSize(){return this._contentSize}get visibleRect(){return this._visibleRect}set visibleRect(t){this._setVisibleRect(t)}_setVisibleRect(t,r=!1){let n=this._visibleRect;if(t.equals(n))return;this.shouldOverscan&&this._overscanManager.setVisibleRect(t);let i=this.layout&&this.layout.shouldInvalidate(t,this._visibleRect);this._resetAnimatedContentOffset(),this._visibleRect=t,i?this.relayoutNow({offsetChanged:!t.pointEquals(n),sizeChanged:!t.sizeEquals(n)}):this.updateSubviews(r)}get collection(){return this._collection}set collection(t){this._setData(t)}_setData(t){t!==this._collection&&(this._collection?this._runTransaction(()=>{this._collection=t},this.transitionDuration>0):(this._collection=t,this.reloadData()))}reloadData(){this.relayout({contentChanged:!0})}getItem(t){return this._collection?this._collection.getItem(t):null}get persistedKeys(){return this._persistedKeys}set persistedKeys(t){vse(t,this._persistedKeys)||(this._persistedKeys=t,this.updateSubviews())}isPersistedKey(t){if(this._persistedKeys.has(t))return!0;for(let r of this._persistedKeys)for(;r!=null;){let n=this.layout.getLayoutInfo(r);if(!n)break;if(r=n.parentKey,r===t)return!0}return!1}get layout(){return this._layout}set layout(t){this.setLayout(t)}setLayout(t,r=!1){if(t===this._layout)return;let n=()=>{this._layout&&(this._layout.virtualizer=null),t.virtualizer=this,this._layout=t};r?this._runTransaction(n):(n(),this.relayout())}_getReuseType(t,r){if(t.type==="item"&&r){let n=this.delegate.getType?this.delegate.getType(r):"item",i=n==="item"?"item":t.type+"_"+n;return{type:n,reuseType:i}}return{type:t.type,reuseType:t.type}}getReusableView(t){let r=this.getItem(t.key),{reuseType:n}=this._getReuseType(t,r);this._reusableViews[n]||(this._reusableViews[n]=[]);let i=this._reusableViews[n],a=i.length>0?i.pop():new cse(this);return a.viewType=n,this._animatedContentOffset.isOrigin()||(t=t.copy(),t.rect.x+=this._animatedContentOffset.x,t.rect.y+=this._animatedContentOffset.y),a.layoutInfo=t,this._renderView(a),a}_renderView(t){let{type:r,key:n}=t.layoutInfo;t.content=this.getItem(n),t.rendered=this._renderContent(r,t.content)}_renderContent(t,r){let n=this._renderedContent.get(r);if(n!=null)return n;let i=this.delegate.renderView(t,r);return r&&this._renderedContent.set(r,i),i}get visibleViews(){return Array.from(this._visibleViews.values())}getView(t){return this._visibleViews.get(t)||null}getViewsOfType(t){return this.visibleViews.filter(r=>r.layoutInfo&&r.layoutInfo.type===t)}keyForView(t){return t&&t.layoutInfo?t.layoutInfo.key:null}keyAtPoint(t){let r=new gn(t.x,t.y,1,1),n=this.layout.getVisibleLayoutInfos(r);for(let i of n)if(i.rect.intersects(r))return i.key;return null}willUnmount(){cancelAnimationFrame(this._relayoutRaf)}relayout(t={}){if(!(this._scrollAnimation||typeof requestAnimationFrame>"u")){if(this._invalidationContext){Object.assign(this._invalidationContext,t);return}this._invalidationContext=t}}relayoutNow(t=this._invalidationContext||{}){if(this._relayoutRaf&&(cancelAnimationFrame(this._relayoutRaf),this._relayoutRaf=null,t={...this._invalidationContext,...t}),this._invalidationContext=null,!this.layout||!this._collection||this._scrollAnimation)return;let r=this._getScrollAnchor();typeof t.beforeLayout=="function"&&t.beforeLayout(),this.layout.validate(t),this._setContentSize(this.layout.getContentSize()),typeof t.afterLayout=="function"&&t.afterLayout();let n=this.getVisibleRect(),i=this._restoreScrollAnchor(r,t),a=t.contentChanged?0:i.x,o=t.contentChanged?0:i.y;a=Math.max(0,Math.min(this.contentSize.width-n.width,a)),o=Math.max(0,Math.min(this.contentSize.height-n.height,o));let l=!1;if(a!==n.x||o!==n.y?t.animated||!this._animatedContentOffset.isOrigin()?(this._animatedContentOffset.x+=n.x-a,this._animatedContentOffset.y+=n.y-o,l=this.updateSubviews(t.contentChanged)):this._setContentOffset(new Zi(a,o)):l=this.updateSubviews(t.contentChanged),t.transaction&&t.animated||this._applyLayoutInfos(),t.animated&&l){this._enableTransitions(),setTimeout(()=>{if(this._disableTransitions(),!this._animatedContentOffset.isOrigin()){let{x:c,y:d}=this.getVisibleRect();this._resetAnimatedContentOffset(),this._setContentOffset(new Zi(c,d))}typeof t.afterAnimation=="function"&&t.afterAnimation()},this.transitionDuration+100);return}else typeof t.afterAnimation=="function"&&t.afterAnimation()}_correctItemOrder(){if(!(this._isScrolling||this._transaction))for(let t of this._visibleLayoutInfos.keys()){let r=this._visibleViews.get(t);this._children.delete(r),this._children.add(r)}}_enableTransitions(){this.delegate.beginAnimations()}_disableTransitions(){this.delegate.endAnimations()}_getScrollAnchor(){if(!this.anchorScrollPosition)return null;let t=this.getVisibleRect();if(this.delegate.getScrollAnchor){let n=this.delegate.getScrollAnchor(t);if(n!=null){let i=this.layout.getLayoutInfo(n),a=i.rect.getCornerInRect(t);if(a){let o=i.key,l=i.rect[a].y-t.y;return{key:o,layoutInfo:i,corner:a,offset:l}}}}if(t.y===0&&!this.anchorScrollPositionAtTop)return null;let r=null;for(let[n,i]of this._visibleViews){let a=i.layoutInfo;if(a&&a.rect.area>0){let o=a.rect.getCornerInRect(t);if(o){let l=a.rect[o].y-t.y;(!r||l<r.offset)&&(r={key:n,layoutInfo:a,corner:o,offset:l})}}}return r}_restoreScrollAnchor(t,r){let n=this.getVisibleRect();if(t){var i;let a=!((i=r.transaction)===null||i===void 0)&&i.animated?r.transaction.finalMap.get(t.key):this.layout.getLayoutInfo(t.layoutInfo.key);if(a){let o=a.rect[t.corner].y-n.y-t.offset;n.y+=o}}return n}getVisibleRect(){let t=this.visibleRect,r=t.x-this._animatedContentOffset.x,n=t.y-this._animatedContentOffset.y;return new gn(r,n,t.width,t.height)}getVisibleLayoutInfos(){let t=this.shouldOverscan?this._overscanManager.getOverscannedRect():this.getVisibleRect();return this._visibleLayoutInfos=this._getLayoutInfoMap(t),this._visibleLayoutInfos}_getLayoutInfoMap(t,r=!1){let n=this.layout.getVisibleLayoutInfos(t),i=new Map;for(let a of n)r&&(a=a.copy()),i.set(a.key,a);return i}updateSubviews(t=!1){if(!this._collection)return;let r=this.getVisibleLayoutInfos(),n=this._visibleViews,i,a,o;if(t)i=r,a=n,o=new Set;else{({toAdd:i,toRemove:a,toUpdate:o}=pse(n,r));for(let c of o){let d=n.get(c);if(!d||!d.layoutInfo)continue;let h=this.getItem(r.get(c).key);if(d.content===h)o.delete(c);else{let{reuseType:p}=this._getReuseType(d.layoutInfo,h);d.viewType!==p&&(o.delete(c),i.add(c),a.add(c))}}if(i.size===0&&a.size===0&&o.size===0){this._transaction&&this._applyLayoutInfos();return}}let l=new Set;for(let c of a.keys()){let d=this._visibleViews.get(c);d&&(l.add(d),this._visibleViews.delete(c),this._transaction?this._transaction.toRemove.set(c,d):this.reuseView(d))}for(let c of i.keys()){let d=r.get(c),h;this._transaction&&(this._transaction.initialLayoutInfo.has(c)&&(d=this._transaction.initialLayoutInfo.get(c)),h=this._transaction.toRemove.get(c),h&&(this._transaction.toRemove.delete(c),this._applyLayoutInfo(h,d))),h||(h=this.getReusableView(d),l.has(h)||this._children.add(h)),this._visibleViews.set(c,h),l.delete(h)}for(let c of o){let d=n.get(c);this._renderedContent.delete(c),this._renderView(d)}this._transaction||this.removeViews(l),this._correctItemOrder(),this._flushVisibleViews();let u=this._transaction&&(i.size>0||a.size>0||this._hasLayoutUpdates());return u&&requestAnimationFrame(()=>{this._transaction&&requestAnimationFrame(()=>this._applyLayoutInfos())}),u}afterRender(){this._transactionQueue.length>0?this._processTransactionQueue():this._invalidationContext&&this.relayoutNow(),this.shouldOverscan&&this._overscanManager.collectMetrics()}_flushVisibleViews(){let t=new Map([[null,[]]]);for(let c of this._children){var r,n,i,a,o;((r=c.layoutInfo)===null||r===void 0?void 0:r.parentKey)!=null&&!t.has(c.layoutInfo.parentKey)&&t.set(c.layoutInfo.parentKey,[]),(n=t.get((i=c.layoutInfo)===null||i===void 0?void 0:i.parentKey))===null||n===void 0||n.push(c),t.has((a=c.layoutInfo)===null||a===void 0?void 0:a.key)||t.set((o=c.layoutInfo)===null||o===void 0?void 0:o.key,[])}let l=(c,d)=>d.map(h=>{let p=t.get(h.layoutInfo.key);return this.delegate.renderWrapper(c,h,p,v=>l(h,v))}),u=l(null,t.get(null));this.delegate.setVisibleViews(u)}_applyLayoutInfo(t,r){return t.layoutInfo===r?!1:(t.layoutInfo=r,!0)}_applyLayoutInfos(){let t=!1;for(let r of this._visibleViews.values()){let n=r.layoutInfo;if((n==null?void 0:n.key)!=null){let i=this.layout.getLayoutInfo(n.key);this._applyLayoutInfo(r,i)&&(t=!0)}}if(this._transaction){for(let r of this._transaction.toRemove.values()){let n=r.layoutInfo;if((n==null?void 0:n.key)!=null){let i=this.layout.getLayoutInfo(n.key);this._applyLayoutInfo(r,i)&&(t=!0)}}for(let r of this._transaction.removed.values()){let n=r.layoutInfo,i=this._transaction.finalLayoutInfo.get(n.key)||n;i=this.layout.getFinalLayoutInfo(i.copy()),this._applyLayoutInfo(r,i)&&(t=!0)}}t&&this._flushVisibleViews()}_hasLayoutUpdates(){if(!this._transaction)return!1;for(let t of this._visibleViews.values()){let r=t.layoutInfo;if(!r)return!0;let n=this.layout.getLayoutInfo(r.key);if(!r.rect.equals(n.rect)||r.opacity!==n.opacity||r.transform!==n.transform)return!0}return!1}reuseView(t){t.prepareForReuse(),this._reusableViews[t.viewType].push(t)}removeViews(t){for(let r of t)this._children.delete(r)}updateItemSize(t,r){if(!this.layout.updateItemSize)return;if(this._scrollAnimation){this._sizeUpdateQueue.set(t,r);return}this.layout.updateItemSize(t,r)&&this.relayout()}startScrolling(){this._isScrolling=!0}endScrolling(){this._isScrolling=!1,this._correctItemOrder(),this._flushVisibleViews()}_resetAnimatedContentOffset(){this._animatedContentOffset.isOrigin()||(this._animatedContentOffset=new Zi(0,0),this._applyLayoutInfos())}scrollToItem(t,r){if(t==null)return;let n=this.layout.getLayoutInfo(t);if(!n)return;let{duration:i=300,shouldScrollX:a=!0,shouldScrollY:o=!0,offsetX:l=0,offsetY:u=0}=r,c=this.visibleRect.x,d=this.visibleRect.y,h=n.rect.x-l,p=n.rect.y-u,v=c+this.visibleRect.width,$=d+this.visibleRect.height;return a&&(h<=c||v===0?c=h:n.rect.maxX>v&&(c+=n.rect.maxX-v)),o&&(p<=d||$===0?d=p:n.rect.maxY>$&&(d+=n.rect.maxY-$)),this.scrollTo(new Zi(c,d),i)}scrollTo(t,r=300){return this._scrollAnimation&&(this._scrollAnimation.cancel(),this._scrollAnimation=null),r<=0||this.visibleRect.pointEquals(t)?(this._setContentOffset(t),Promise.resolve()):(this.startScrolling(),this._scrollAnimation=fse(this.visibleRect,t,r,dse,n=>{this._setContentOffset(n)}),this._scrollAnimation.then(()=>{this._scrollAnimation=null;for(let[n,i]of this._sizeUpdateQueue)this.updateItemSize(n,i);this._sizeUpdateQueue.clear(),this.relayout(),this._processTransactionQueue(),this.endScrolling()}),this._scrollAnimation)}_runTransaction(t,r){this._startTransaction(),this._nextTransaction&&this._nextTransaction.actions.push(t),this._endTransaction(r)}_startTransaction(){this._nextTransaction||(this._nextTransaction=new gse),this._nextTransaction.level++}_endTransaction(t){return!this._nextTransaction||(t!=null&&(this._nextTransaction.animated=t),--this._nextTransaction.level>0)?!1:this._nextTransaction.actions.length===0?(this._nextTransaction=null,!1):(this._nextTransaction.animated==null&&(this._nextTransaction.animated=!0),this._transactionQueue.push(this._nextTransaction),this._nextTransaction=null,!0)}_processTransactionQueue(){if(this._transaction||this._scrollAnimation)return;let t=this._transactionQueue.shift();t&&this._performTransaction(t)}_getContentRect(){return new gn(0,0,this.contentSize.width,this.contentSize.height)}_performTransaction(t){this._transaction=t,this.relayoutNow({transaction:t,animated:t.animated,beforeLayout:()=>{t.animated&&(t.initialMap=this._getLayoutInfoMap(this._getContentRect(),!0));for(let r of t.actions)r()},afterLayout:()=>{t.animated?(t.finalMap=this._getLayoutInfoMap(this._getContentRect()),this._setupTransactionAnimations(t)):this._transaction=null},afterAnimation:()=>{if(t.toRemove.size>0||t.removed.size>0)for(let r of hse(t.toRemove.values(),t.removed.values()))this._children.delete(r),this.reuseView(r);this._transaction=null,this._correctItemOrder(),this._flushVisibleViews(),this._processTransactionQueue()}})}_setupTransactionAnimations(t){let{initialMap:r,finalMap:n}=t;for(let[i,a]of r)n.has(i)?t.initialLayoutInfo.set(i,a):t.finalLayoutInfo.set(a.key,a);for(let[i,a]of n)if(!r.has(i)){let o=this.layout.getInitialLayoutInfo(a.copy());t.initialLayoutInfo.set(i,o)}for(let[i,a]of this._visibleViews)!n.has(i)&&a.layoutInfo.rect.width>0&&(t.removed.set(i,a),this._visibleViews.delete(i),a.layoutInfo&&(t.finalLayoutInfo.has(a.layoutInfo.key)||t.finalLayoutInfo.set(a.layoutInfo.key,a.layoutInfo)))}constructor(t={}){this._contentSize=new uc,this._visibleRect=new gn,this._reusableViews={},this._visibleLayoutInfos=new Map,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._children=new Set,this._invalidationContext=null,this._overscanManager=new mse,this._persistedKeys=new Set,this._scrollAnimation=null,this._isScrolling=!1,this._sizeUpdateQueue=new Map,this._animatedContentOffset=new Zi(0,0),this._transaction=null,this._nextTransaction=null,this._transactionQueue=[];var r;this.transitionDuration=(r=t.transitionDuration)!==null&&r!==void 0?r:500,this.anchorScrollPosition=t.anchorScrollPosition||!1,this.anchorScrollPositionAtTop=t.anchorScrollPositionAtTop||!1,this.shouldOverscan=t.shouldOverscan!==!1;for(let n of["delegate","size","layout","collection"])t[n]&&(this[n]=t[n])}}function bse(e){let[t,r]=z.useState([]),[n,i]=z.useState(new uc),[a,o]=z.useState(!1),[l,u]=z.useState(!1),c=z.useMemo(()=>new yse,[]);c.delegate={setVisibleViews:r,setVisibleRect($){c.visibleRect=$,e.onVisibleRectChange($)},setContentSize:i,renderView:e.renderView,renderWrapper:e.renderWrapper,beginAnimations:()=>o(!0),endAnimations:()=>o(!1),getScrollAnchor:e.getScrollAnchor},c.layout=e.layout,c.collection=e.collection,c.transitionDuration=e.transitionDuration,Sr(()=>{c.afterRender()}),z.useEffect(()=>()=>c.willUnmount(),[]);let d=z.useCallback($=>{c.visibleRect=$},[c]),h=z.useCallback(()=>{c.startScrolling(),u(!0)},[c]),p=z.useCallback(()=>{c.endScrolling(),u(!1)},[c]);return z.useMemo(()=>({virtualizer:c,visibleViews:t,setVisibleRect:d,contentSize:n,isAnimating:a,isScrolling:l,startScrolling:h,endScrolling:p}),[c,t,d,n,a,l,h,p])}const QI=48;class $se extends sse{getLayoutInfo(t){let r=this.layoutInfos.get(t);return!r&&this.validRect.area<this.contentSize.area&&this.lastCollection&&(this.lastValidRect=this.validRect,this.validRect=new gn(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.validRect=new gn(0,0,this.contentSize.width,this.contentSize.height),r=this.layoutInfos.get(t)),r}getVisibleLayoutInfos(t){!this.validRect.containsRect(t)&&this.lastCollection&&(this.lastValidRect=this.validRect,this.validRect=this.validRect.union(t),this.rootNodes=this.buildCollection());let r=[],n=i=>{for(let a of i)this.isVisible(a,t)&&(r.push(a.layoutInfo),a.header&&r.push(a.header),a.children&&n(a.children))};return n(this.rootNodes),r}isVisible(t,r){return t.layoutInfo.rect.intersects(r)||t.layoutInfo.isSticky||this.virtualizer.isPersistedKey(t.layoutInfo.key)}shouldInvalidateEverything(t){return t.sizeChanged}validate(t){if(this.collection=this.virtualizer.collection,this.invalidateEverything=this.shouldInvalidateEverything(t),this.invalidateEverything&&(this.lastValidRect=this.validRect,this.validRect=this.virtualizer.getVisibleRect()),this.rootNodes=this.buildCollection(),this.lastCollection&&this.collection!==this.lastCollection){for(let n of this.lastCollection.getKeys())if(!this.collection.getItem(n)){let i=this.layoutNodes.get(n);if(i){var r;this.layoutInfos.delete(i.layoutInfo.key),this.layoutInfos.delete((r=i.header)===null||r===void 0?void 0:r.key),this.layoutNodes.delete(n)}}}this.lastWidth=this.virtualizer.visibleRect.width,this.lastCollection=this.collection,this.invalidateEverything=!1}buildCollection(){let t=this.padding,r=0,n=[];for(let l of this.collection){var i;let u=(i=this.rowHeight)!==null&&i!==void 0?i:this.estimatedRowHeight;if(l.type==="item"&&t+u<this.validRect.y&&!this.isValid(l,t)){t+=u,r++;continue}let c=this.buildChild(l,0,t);if(t=c.layoutInfo.rect.maxY,n.push(c),l.type==="item"&&t>this.validRect.maxY){t+=(this.collection.size-(n.length+r))*u;break}}if(this.isLoading){var a;let l=new gn(0,t,this.virtualizer.visibleRect.width,(a=this.loaderHeight)!==null&&a!==void 0?a:this.virtualizer.visibleRect.height),u=new Du("loader","loader",l);this.layoutInfos.set("loader",u),n.push({layoutInfo:u}),t=u.rect.maxY}if(n.length===0){var o;let l=new gn(0,t,this.virtualizer.visibleRect.width,(o=this.placeholderHeight)!==null&&o!==void 0?o:this.virtualizer.visibleRect.height),u=new Du("placeholder","placeholder",l);this.layoutInfos.set("placeholder",u),n.push({layoutInfo:u}),t=u.rect.maxY}return this.contentSize=new uc(this.virtualizer.visibleRect.width,t+this.padding),n}isValid(t,r){let n=this.layoutNodes.get(t.key);return!this.invalidateEverything&&n&&n.node===t&&r===(n.header||n.layoutInfo).rect.y&&n.layoutInfo.rect.intersects(this.lastValidRect)&&n.validRect.containsRect(n.layoutInfo.rect.intersection(this.validRect))}buildChild(t,r,n){if(this.isValid(t,n))return this.layoutNodes.get(t.key);let i=this.buildNode(t,r,n);i.node=t;var a;return i.layoutInfo.parentKey=(a=t.parentKey)!==null&&a!==void 0?a:null,this.layoutInfos.set(i.layoutInfo.key,i.layoutInfo),i.header&&this.layoutInfos.set(i.header.key,i.header),this.layoutNodes.set(t.key,i),i}buildNode(t,r,n){switch(t.type){case"section":return this.buildSection(t,r,n);case"item":return this.buildItem(t,r,n)}}buildSection(t,r,n){let i=this.virtualizer.visibleRect.width,a=this.headingHeight,o=!1;if(a==null){let S=this.layoutNodes.get(t.key);if(S&&S.header){let g=this.collection.getItem(t.key),b=this.lastCollection?this.lastCollection.getItem(t.key):null;a=S.header.rect.height,o=i!==this.lastWidth||g!==b||S.header.estimatedSize}else a=t.rendered?this.estimatedHeadingHeight:0,o=!0}a==null&&(a=QI);let l=new gn(0,n,i,a),u=new Du("header",t.key+":header",l);u.estimatedSize=o,u.parentKey=t.key,n+=u.rect.height;let c=new gn(0,n,i,0),d=new Du(t.type,t.key,c),h=n,p=0,v=[];for(let S of ac(t,this.collection)){var $;let g=($=this.rowHeight)!==null&&$!==void 0?$:this.estimatedRowHeight;if(n+g<this.validRect.y&&!this.isValid(t,n)){n+=g,p++;continue}let b=this.buildChild(S,r,n);if(n=b.layoutInfo.rect.maxY,v.push(b),n>this.validRect.maxY){n+=([...ac(t,this.collection)].length-(v.length+p))*g;break}}return c.height=n-h,{header:u,layoutInfo:d,children:v,validRect:d.rect.intersection(this.validRect)}}buildItem(t,r,n){let i=this.virtualizer.visibleRect.width,a=this.rowHeight,o=!1;if(a==null){let c=this.layoutNodes.get(t.key);c?(a=c.layoutInfo.rect.height,o=i!==this.lastWidth||t!==c.node||c.layoutInfo.estimatedSize):(a=this.estimatedRowHeight,o=!0)}a==null&&(a=QI),typeof this.indentationForItem=="function"&&(r+=this.indentationForItem(this.collection,t.key)||0);let l=new gn(r,n,i-r,a),u=new Du(t.type,t.key,l);return u.allowOverflow=!0,u.estimatedSize=o,{layoutInfo:u,validRect:u.rect}}updateItemSize(t,r){let n=this.layoutInfos.get(t);if(!n)return!1;if(n.estimatedSize=!1,n.rect.height!==r.height){let i=n.copy();i.rect.height=r.height,this.layoutInfos.set(t,i),this.updateLayoutNode(t,n,i);let a=this.collection.getItem(n.parentKey);for(;a;)this.updateLayoutNode(a.key,n,i),a=this.collection.getItem(a.parentKey);return!0}return!1}updateLayoutNode(t,r,n){let i=this.layoutNodes.get(t);i&&(i.validRect=new gn,i.header===r?i.header=n:i.layoutInfo===r&&(i.layoutInfo=n))}getContentSize(){return this.contentSize}getKeyAbove(t){let r=this.collection;for(t=r.getKeyBefore(t);t!=null;){let n=r.getItem(t);if(n.type==="item"&&(this.allowDisabledKeyFocus||!this.disabledKeys.has(n.key)))return t;t=r.getKeyBefore(t)}}getKeyBelow(t){let r=this.collection;for(t=r.getKeyAfter(t);t!=null;){let n=r.getItem(t);if(n.type==="item"&&(this.allowDisabledKeyFocus||!this.disabledKeys.has(n.key)))return t;t=r.getKeyAfter(t)}}getKeyPageAbove(t){let r=this.getLayoutInfo(t);if(r){let n=Math.max(0,r.rect.y+r.rect.height-this.virtualizer.visibleRect.height);for(;r&&r.rect.y>n;){let i=this.getKeyAbove(r.key);r=this.getLayoutInfo(i)}if(r)return r.key}return this.getFirstKey()}getKeyPageBelow(t){let r=this.getLayoutInfo(t??this.getFirstKey());if(r){let n=Math.min(this.virtualizer.contentSize.height,r.rect.y-r.rect.height+this.virtualizer.visibleRect.height);for(;r&&r.rect.y<n;){let i=this.getKeyBelow(r.key);r=this.getLayoutInfo(i)}if(r)return r.key}return this.getLastKey()}getFirstKey(){let t=this.collection,r=t.getFirstKey();for(;r!=null;){let n=t.getItem(r);if(n.type==="item"&&(this.allowDisabledKeyFocus||!this.disabledKeys.has(n.key)))return r;r=t.getKeyAfter(r)}}getLastKey(){let t=this.collection,r=t.getLastKey();for(;r!=null;){let n=t.getItem(r);if(n.type==="item"&&(this.allowDisabledKeyFocus||!this.disabledKeys.has(n.key)))return r;r=t.getKeyBefore(r)}}getKeyForSearch(t,r){if(!this.collator)return null;let n=this.collection,i=r||this.getFirstKey();for(;i!=null;){let a=n.getItem(i),o=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(o,t)===0)return i;i=this.getKeyBelow(i)}return null}getInitialLayoutInfo(t){return t.opacity=0,t.transform="scale3d(0.8, 0.8, 0.8)",t}getFinalLayoutInfo(t){return t.opacity=0,t.transform="scale3d(0.8, 0.8, 0.8)",t}getDropTargetFromPoint(t,r,n){t+=this.virtualizer.visibleRect.x,r+=this.virtualizer.visibleRect.y;let i=this.virtualizer.keyAtPoint(new Zi(t,r));if(i==null||this.collection.size===0)return{type:"root"};let a=this.getLayoutInfo(i),o=a.rect,l={type:"item",key:a.key,dropPosition:"on"};return n(l)?r<=o.y+10&&n({...l,dropPosition:"before"})?l.dropPosition="before":r>=o.maxY-10&&n({...l,dropPosition:"after"})&&(l.dropPosition="after"):r<=o.y+o.height/2&&n({...l,dropPosition:"before"})?l.dropPosition="before":n({...l,dropPosition:"after"})&&(l.dropPosition="after"),l}constructor(t={}){super(),this.disabledKeys=new Set,this.allowDisabledKeyFocus=!1,this.rowHeight=t.rowHeight,this.estimatedRowHeight=t.estimatedRowHeight,this.headingHeight=t.headingHeight,this.estimatedHeadingHeight=t.estimatedHeadingHeight,this.padding=t.padding||0,this.indentationForItem=t.indentationForItem,this.collator=t.collator,this.loaderHeight=t.loaderHeight,this.placeholderHeight=t.placeholderHeight,this.layoutInfos=new Map,this.layoutNodes=new Map,this.rootNodes=[],this.lastWidth=0,this.lastCollection=null,this.allowDisabledKeyFocus=t.allowDisabledKeyFocus,this.lastValidRect=new gn,this.validRect=new gn,this.contentSize=new uc}}function xse(e){let{value:t=0,minValue:r=0,maxValue:n=100,valueLabel:i,isIndeterminate:a,formatOptions:o={style:"percent"}}=e,l=Gr(e,{labelable:!0}),{labelProps:u,fieldProps:c}=vM({...e,labelElementType:"span"});t=Vv(t,r,n);let d=(t-r)/(n-r),h=iie(o);if(!a&&!i){let p=o.style==="percent"?d:t;i=h.format(p)}return{progressBarProps:tr(l,{...c,"aria-valuenow":a?void 0:t,"aria-valuemin":r,"aria-valuemax":n,"aria-valuetext":a?void 0:i,role:"progressbar"}),labelProps:u}}function bl(e){return e&&e.__esModule?e.default:e}function Ur(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var ra={};Ur(ra,"spectrum-BarLoader",()=>_E,e=>_E=e);Ur(ra,"spectrum-BarLoader--indeterminate",()=>SE,e=>SE=e);Ur(ra,"spectrum-BarLoader--sideLabel",()=>EE,e=>EE=e);Ur(ra,"spectrum-BarLoader-track",()=>AE,e=>AE=e);Ur(ra,"spectrum-BarLoader-fill",()=>CE,e=>CE=e);Ur(ra,"spectrum-BarLoader-label",()=>TE,e=>TE=e);Ur(ra,"spectrum-BarLoader-percentage",()=>PE,e=>PE=e);Ur(ra,"spectrum-BarLoader--small",()=>ME,e=>ME=e);Ur(ra,"indeterminate-loop-ltr",()=>OE,e=>OE=e);Ur(ra,"indeterminate-loop-rtl",()=>RE,e=>RE=e);Ur(ra,"spectrum-BarLoader--overBackground",()=>IE,e=>IE=e);Ur(ra,"is-positive",()=>kE,e=>kE=e);Ur(ra,"is-warning",()=>FE,e=>FE=e);Ur(ra,"is-critical",()=>NE,e=>NE=e);var _E,SE,EE,AE,CE,TE,PE,ME,OE,RE,IE,kE,FE,NE;_E="spectrum-BarLoader_48541f";SE="spectrum-BarLoader--indeterminate_48541f";EE="spectrum-BarLoader--sideLabel_48541f";AE="spectrum-BarLoader-track_48541f";CE="spectrum-BarLoader-fill_48541f";TE="spectrum-BarLoader-label_48541f";PE="spectrum-BarLoader-percentage_48541f";ME="spectrum-BarLoader--small_48541f";OE="indeterminate-loop-ltr_48541f";RE="indeterminate-loop-rtl_48541f";IE="spectrum-BarLoader--overBackground_48541f";kE="is-positive_48541f";FE="is-warning_48541f";NE="is-critical_48541f";var ln={};Ur(ln,"spectrum-CircleLoader--indeterminate-fill-submask-2",()=>LE,e=>LE=e);Ur(ln,"spectrum-fill-mask-2",()=>DE,e=>DE=e);Ur(ln,"spectrum-CircleLoader",()=>BE,e=>BE=e);Ur(ln,"spectrum-CircleLoader-track",()=>zE,e=>zE=e);Ur(ln,"spectrum-CircleLoader-fills",()=>UE,e=>UE=e);Ur(ln,"spectrum-CircleLoader-fill",()=>jE,e=>jE=e);Ur(ln,"spectrum-CircleLoader-fillMask1",()=>HE,e=>HE=e);Ur(ln,"spectrum-CircleLoader-fillMask2",()=>GE,e=>GE=e);Ur(ln,"spectrum-CircleLoader-fillSubMask1",()=>WE,e=>WE=e);Ur(ln,"spectrum-CircleLoader-fillSubMask2",()=>VE,e=>VE=e);Ur(ln,"spectrum-CircleLoader--small",()=>KE,e=>KE=e);Ur(ln,"spectrum-CircleLoader--large",()=>qE,e=>qE=e);Ur(ln,"spectrum-CircleLoader--indeterminate",()=>YE,e=>YE=e);Ur(ln,"spectrum-fills-rotate",()=>XE,e=>XE=e);Ur(ln,"spectrum-fill-mask-1",()=>QE,e=>QE=e);Ur(ln,"spectrum-CircleLoader--overBackground",()=>ZE,e=>ZE=e);var LE,DE,BE,zE,UE,jE,HE,GE,WE,VE,KE,qE,YE,XE,QE,ZE;LE="spectrum-CircleLoader--indeterminate-fill-submask-2_7c1153";DE="spectrum-fill-mask-2_7c1153";BE="spectrum-CircleLoader_7c1153";zE="spectrum-CircleLoader-track_7c1153";UE="spectrum-CircleLoader-fills_7c1153";jE="spectrum-CircleLoader-fill_7c1153";HE="spectrum-CircleLoader-fillMask1_7c1153";GE="spectrum-CircleLoader-fillMask2_7c1153";WE="spectrum-CircleLoader-fillSubMask1_7c1153";VE="spectrum-CircleLoader-fillSubMask2_7c1153";KE="spectrum-CircleLoader--small_7c1153";qE="spectrum-CircleLoader--large_7c1153";YE="spectrum-CircleLoader--indeterminate_7c1153";XE="spectrum-fills-rotate_7c1153";QE="spectrum-fill-mask-1_7c1153";ZE="spectrum-CircleLoader--overBackground_7c1153";function wse(e,t){let{value:r=0,minValue:n=0,maxValue:i=100,size:a="M",variant:o,isIndeterminate:l=!1,"aria-label":u,"aria-labelledby":c,...d}=e,h=Bn(t),{styleProps:p}=Dr(d);r=Vv(r,n,i);let{progressBarProps:v}=xse({...e,value:r}),$={},S={};if(!l){let g=(r-n)/(i-n)*100,b;g>0&&g<=50?(b=-180+g/50*180,$.transform=`rotate(${b}deg)`,S.transform="rotate(-180deg)"):g>50&&(b=-180+(g-50)/50*180,$.transform="rotate(0deg)",S.transform=`rotate(${b}deg)`)}return!u&&!c&&console.warn("ProgressCircle requires an aria-label or aria-labelledby attribute for accessibility"),D.createElement("div",{...p,...v,ref:h,className:Le(bl(ln),"spectrum-CircleLoader",{"spectrum-CircleLoader--indeterminate":l,"spectrum-CircleLoader--small":a==="S","spectrum-CircleLoader--large":a==="L","spectrum-CircleLoader--overBackground":o==="overBackground"},p.className)},D.createElement("div",{className:Le(bl(ln),"spectrum-CircleLoader-track")}),D.createElement("div",{className:Le(bl(ln),"spectrum-CircleLoader-fills")},D.createElement("div",{className:Le(bl(ln),"spectrum-CircleLoader-fillMask1")},D.createElement("div",{className:Le(bl(ln),"spectrum-CircleLoader-fillSubMask1"),"data-testid":"fillSubMask1",style:$},D.createElement("div",{className:Le(bl(ln),"spectrum-CircleLoader-fill")}))),D.createElement("div",{className:Le(bl(ln),"spectrum-CircleLoader-fillMask2")},D.createElement("div",{className:Le(bl(ln),"spectrum-CircleLoader-fillSubMask2"),"data-testid":"fillSubMask2",style:S},D.createElement("div",{className:Le(bl(ln),"spectrum-CircleLoader-fill")})))))}let mM=D.forwardRef(wse),Pf=null;function _se(e=!1){if(Pf===null||e){const t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";const n=document.createElement("div"),i=n.style;return i.width="100px",i.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?Pf="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Pf="negative":Pf="positive-ascending"),document.body.removeChild(t),Pf}return Pf}function Sse(e,t){let{scrollLeft:r}=e;if(t==="rtl"){let{scrollWidth:n,clientWidth:i}=e;switch(_se()){case"negative":r=-r;break;case"positive-descending":r=n-i-r;break}}return r}function Ese(e,t){let{contentSize:r,onVisibleRectChange:n,children:i,innerStyle:a,sizeToFit:o,onScrollStart:l,onScrollEnd:u,scrollDirection:c="both",...d}=e,h=z.useRef();t=t||h;let p=z.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:v}=wa(),[$,S]=z.useState(!1),g=z.useCallback(E=>{E.target===E.currentTarget&&(e.onScroll&&e.onScroll(E),Rb.flushSync(()=>{let A=E.currentTarget.scrollTop,M=Sse(E.currentTarget,v);p.scrollTop=Math.max(0,Math.min(A,r.height-p.height)),p.scrollLeft=Math.max(0,Math.min(M,r.width-p.width)),n(new gn(p.scrollLeft,p.scrollTop,p.width,p.height)),p.isScrolling||(p.isScrolling=!0,S(!0),l&&l());let N=Date.now();p.scrollEndTime<=N+50&&(p.scrollEndTime=N+300,clearTimeout(p.scrollTimeout),p.scrollTimeout=setTimeout(()=>{p.isScrolling=!1,S(!1),p.scrollTimeout=null,u&&u()},300))}))},[e,v,p,r,n,l,u]);z.useEffect(()=>()=>{clearTimeout(p.scrollTimeout)},[]);let b=z.useCallback(()=>{let E=t.current;if(!E)return;let A=E.clientWidth,M=E.clientHeight;o&&r.width>0&&r.height>0&&(o==="width"?A=Math.min(A,r.width):o==="height"&&(M=Math.min(M,r.height))),(p.width!==A||p.height!==M)&&(p.width=A,p.height=M,n(new gn(p.scrollLeft,p.scrollTop,A,M)))},[n,t,p,o,r]);Sr(()=>{b()},[b]),$m({ref:t,onResize:b});let _={padding:0,...d.style};return c==="horizontal"?(_.overflowX="auto",_.overflowY="hidden"):c==="vertical"?(_.overflowY="auto",_.overflowX="hidden"):_.overflow="auto",D.createElement("div",{...d,style:_,ref:t,onScroll:g},D.createElement("div",{role:"presentation",style:{width:r.width,height:r.height,pointerEvents:$?"none":"auto",position:"relative",...a}},i))}const Ase=D.forwardRef(Ese);function PV(e){let{layoutInfo:t,virtualizer:r,ref:n}=e,i=z.useCallback(()=>{let a=Cse(n.current);r.updateItemSize(t.key,a)},[r,t.key,n]);return Sr(()=>{t.estimatedSize&&i()}),{updateSize:i}}function Cse(e){let t=e.style.height;e.style.height="";let r=new uc(e.scrollWidth,e.scrollHeight);return e.style.height=t,r}function MV(e){let{className:t,layoutInfo:r,virtualizer:n,parent:i,children:a}=e,{direction:o}=wa(),l=z.useRef();return PV({layoutInfo:r,virtualizer:n,ref:l}),D.createElement("div",{role:"presentation",ref:l,className:t,style:JE(r,o,i)},a)}let ZI=new WeakMap;function JE(e,t,r){let n=t==="rtl"?"right":"left",i=ZI.get(e);if(i&&i[n]!=null){if(!r)return i;let o=e.rect.y-r.rect.y,l=e.rect.x-r.rect.x;if(i.top===o&&i[n]===l)return i}let a={position:e.isSticky?"sticky":"absolute",display:e.isSticky?"inline-block":void 0,overflow:e.allowOverflow?"visible":"hidden",top:e.rect.y-(r?r.rect.y:0),[n]:e.rect.x-(r?r.rect.x:0),transition:"all",WebkitTransition:"all",WebkitTransitionDuration:"inherit",transitionDuration:"inherit",width:e.rect.width,height:e.rect.height,opacity:e.opacity,zIndex:e.zIndex,transform:e.transform,contain:"size layout style"};return ZI.set(e,a),a}function Tse(e,t){let{children:r,renderWrapper:n,layout:i,collection:a,sizeToFit:o,scrollDirection:l,transitionDuration:u,isLoading:c,onLoadMore:d,focusedKey:h,shouldUseVirtualFocus:p,scrollToItem:v,autoFocus:$,...S}=e,g=z.useRef();t=t||g;let b=bse({transitionDuration:u,layout:i,collection:a,renderView:r,renderWrapper:n||Ose,onVisibleRectChange(A){t.current.scrollLeft=A.x,t.current.scrollTop=A.y}}),{virtualizerProps:_,scrollViewProps:E}=Pse(e,b,t);return D.createElement(Ase,{...tr(S,_,E),ref:t,innerStyle:b.isAnimating?{transition:`none ${b.virtualizer.transitionDuration}ms`}:void 0,contentSize:b.contentSize,onScrollStart:b.startScrolling,onScrollEnd:b.endScrolling,sizeToFit:o,scrollDirection:l},b.visibleViews)}function Pse(e,t,r){let{focusedKey:n,scrollToItem:i,shouldUseVirtualFocus:a,isLoading:o,onLoadMore:l}=e,{virtualizer:u}=t,c=z.useRef(null),d=z.useRef(!1),h=z.useRef(e.autoFocus);z.useEffect(()=>{if(u.visibleRect.height===0)return;let E=Pd();n!==c.current&&(E!=="pointer"||h.current)&&(h.current=!1,i?i(n):u.scrollToItem(n,{duration:0})),c.current=n},[n,u.visibleRect.height,u,c,i,r]),u.persistedKeys=z.useMemo(()=>n?new Set([n]):new Set,[n]);let p=z.useCallback(E=>{let A=Pd();!d.current&&r.current.contains(E.target)&&A!=="pointer"&&(i?i(n):u.scrollToItem(n,{duration:0})),d.current=E.target!==r.current},[r,u,n,i]),v=z.useCallback(E=>{d.current=r.current.contains(E.relatedTarget)},[r]),$;a||($=n!=null?-1:0,u.collection.size===0&&e.tabIndex!=null&&($=e.tabIndex));let S=z.useRef(o),g=z.useRef(e),b=z.useCallback(E=>{if(t.setVisibleRect(E),!S.current&&l){let A=t.virtualizer.contentSize.height-E.height*2;E.y>A&&(S.current=!0,l())}},[l,t]),_=z.useRef(0);return Sr(()=>{if(t.isAnimating)return;let E=S.current;e!==g.current&&(S.current=o,g.current=e),!S.current&&l&&t.contentSize.height>0&&t.contentSize.height<=t.virtualizer.visibleRect.height&&(E||t.contentSize.height!==_.current)&&(S.current=!0,l()),_.current=t.contentSize.height},[t.contentSize,t.isAnimating,t.virtualizer,o,l,e]),{virtualizerProps:{tabIndex:$,onFocus:p,onBlur:v},scrollViewProps:{onVisibleRectChange:b}}}const Mse=D.forwardRef(Tse);function Ose(e,t){return D.createElement(MV,{key:t.key,layoutInfo:t.layoutInfo,virtualizer:t.virtualizer,parent:e==null?void 0:e.layoutInfo},t.rendered)}function ha(e){return e&&e.__esModule?e.default:e}function mn(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var OV={},RV={};RV={loading:"جارٍ التحميل...",loadingMore:"جارٍ تحميل المزيد..."};var IV={};IV={loading:"Зареждане...",loadingMore:"Зареждане на още..."};var kV={};kV={loading:"Načítání...",loadingMore:"Načítání dalších..."};var FV={};FV={loading:"Indlæser ...",loadingMore:"Indlæser flere ..."};var NV={};NV={loading:"Laden...",loadingMore:"Mehr laden ..."};var LV={};LV={loading:"Φόρτωση...",loadingMore:"Φόρτωση περισσότερων..."};var DV={};DV={loading:"Loading…",loadingMore:"Loading more…"};var BV={};BV={loading:"Cargando…",loadingMore:"Cargando más…"};var zV={};zV={loading:"Laadimine...",loadingMore:"Laadi rohkem..."};var UV={};UV={loading:"Ladataan…",loadingMore:"Ladataan lisää…"};var jV={};jV={loading:"Chargement...",loadingMore:"Chargement supplémentaire..."};var HV={};HV={loading:"טוען...",loadingMore:"טוען עוד..."};var GV={};GV={loading:"Učitavam...",loadingMore:"Učitavam još..."};var WV={};WV={loading:"Betöltés folyamatban…",loadingMore:"Továbbiak betöltése folyamatban…"};var VV={};VV={loading:"Caricamento...",loadingMore:"Caricamento altri..."};var KV={};KV={loading:"読み込み中...",loadingMore:"さらに読み込み中..."};var qV={};qV={loading:"로드 중",loadingMore:"추가 로드 중"};var YV={};YV={loading:"Įkeliama...",loadingMore:"Įkeliama daugiau..."};var XV={};XV={loading:"Notiek ielāde...",loadingMore:"Tiek ielādēts vēl..."};var QV={};QV={loading:"Laster inn ...",loadingMore:"Laster inn flere ..."};var ZV={};ZV={loading:"Laden...",loadingMore:"Meer laden..."};var JV={};JV={loading:"Ładowanie...",loadingMore:"Wczytywanie większej liczby..."};var eK={};eK={loading:"Carregando...",loadingMore:"Carregando mais..."};var tK={};tK={loading:"A carregar...",loadingMore:"A carregar mais..."};var rK={};rK={loading:"Se încarcă...",loadingMore:"Se încarcă mai multe..."};var nK={};nK={loading:"Загрузка...",loadingMore:"Дополнительная загрузка..."};var iK={};iK={loading:"Načítava sa...",loadingMore:"Načítava sa viac..."};var aK={};aK={loading:"Nalaganje...",loadingMore:"Nalaganje več vsebine..."};var oK={};oK={loading:"Učitavam...",loadingMore:"Učitavam još..."};var lK={};lK={loading:"Läser in...",loadingMore:"Läser in mer..."};var sK={};sK={loading:"Yükleniyor...",loadingMore:"Daha fazla yükleniyor..."};var uK={};uK={loading:"Завантаження…",loadingMore:"Завантаження інших об’єктів..."};var cK={};cK={loading:"正在加载...",loadingMore:"正在加载更多..."};var fK={};fK={loading:"正在載入",loadingMore:"正在載入更多…"};OV={"ar-AE":RV,"bg-BG":IV,"cs-CZ":kV,"da-DK":FV,"de-DE":NV,"el-GR":LV,"en-US":DV,"es-ES":BV,"et-EE":zV,"fi-FI":UV,"fr-FR":jV,"he-IL":HV,"hr-HR":GV,"hu-HU":WV,"it-IT":VV,"ja-JP":KV,"ko-KR":qV,"lt-LT":YV,"lv-LV":XV,"nb-NO":QV,"nl-NL":ZV,"pl-PL":JV,"pt-BR":eK,"pt-PT":tK,"ro-RO":rK,"ru-RU":nK,"sk-SK":iK,"sl-SI":aK,"sr-SP":oK,"sv-SE":lK,"tr-TR":sK,"uk-UA":uK,"zh-CN":cK,"zh-TW":fK};const gM=D.createContext(null);var Pr={};mn(Pr,"spectrum-Menu-popover",()=>e9,e=>e9=e);mn(Pr,"spectrum-Menu",()=>t9,e=>t9=e);mn(Pr,"spectrum-Menu-sectionHeading",()=>r9,e=>r9=e);mn(Pr,"spectrum-Menu-checkmark",()=>n9,e=>n9=e);mn(Pr,"spectrum-Menu-item",()=>i9,e=>i9=e);mn(Pr,"is-selected",()=>a9,e=>a9=e);mn(Pr,"spectrum-Icon",()=>o9,e=>o9=e);mn(Pr,"spectrum-Menu-itemLabel",()=>l9,e=>l9=e);mn(Pr,"spectrum-Menu-itemIcon",()=>s9,e=>s9=e);mn(Pr,"spectrum-Menu-itemLabel--wrapping",()=>u9,e=>u9=e);mn(Pr,"spectrum-Menu-divider",()=>c9,e=>c9=e);mn(Pr,"spectrum-Menu-itemGrid",()=>f9,e=>f9=e);mn(Pr,"is-selectable",()=>d9,e=>d9=e);mn(Pr,"spectrum-Menu-end",()=>p9,e=>p9=e);mn(Pr,"spectrum-Menu-icon",()=>h9,e=>h9=e);mn(Pr,"spectrum-Menu-description",()=>v9,e=>v9=e);mn(Pr,"spectrum-Menu-keyboard",()=>m9,e=>m9=e);mn(Pr,"focus-ring",()=>g9,e=>g9=e);mn(Pr,"is-focused",()=>y9,e=>y9=e);mn(Pr,"is-hovered",()=>b9,e=>b9=e);mn(Pr,"is-highlighted",()=>$9,e=>$9=e);mn(Pr,"is-open",()=>x9,e=>x9=e);mn(Pr,"is-active",()=>w9,e=>w9=e);mn(Pr,"is-disabled",()=>_9,e=>_9=e);var e9,t9,r9,n9,i9,a9,o9,l9,s9,u9,c9,f9,d9,p9,h9,v9,m9,g9,y9,b9,$9,x9,w9,_9;e9="spectrum-Menu-popover_7ea47c";t9="spectrum-Menu_7ea47c";r9="spectrum-Menu-sectionHeading_7ea47c";n9="spectrum-Menu-checkmark_7ea47c";i9="spectrum-Menu-item_7ea47c";a9="is-selected_7ea47c";o9="spectrum-Icon_7ea47c";l9="spectrum-Menu-itemLabel_7ea47c";s9="spectrum-Menu-itemIcon_7ea47c";u9="spectrum-Menu-itemLabel--wrapping_7ea47c";c9="spectrum-Menu-divider_7ea47c";f9="spectrum-Menu-itemGrid_7ea47c";d9="is-selectable_7ea47c";p9="spectrum-Menu-end_7ea47c";h9="spectrum-Menu-icon_7ea47c";v9="spectrum-Menu-description_7ea47c";m9="spectrum-Menu-keyboard_7ea47c";g9="focus-ring_7ea47c";y9="is-focused_7ea47c";b9="is-hovered_7ea47c";$9="is-highlighted_7ea47c";x9="is-open_7ea47c";w9="is-active_7ea47c";_9="is-disabled_7ea47c";function Rse(e){let{item:t,shouldSelectOnPressUp:r,shouldFocusOnHover:n,shouldUseVirtualFocus:i}=e,{rendered:a,key:o}=t,l=Gr(t.props);delete l.id;let u=z.useContext(gM),c=z.useRef(),{optionProps:d,labelProps:h,descriptionProps:p,isSelected:v,isDisabled:$,isFocused:S}=ose({"aria-label":t["aria-label"],key:o,shouldSelectOnPressUp:r,shouldFocusOnHover:n,isVirtualized:!0,shouldUseVirtualFocus:i},u,c),{hoverProps:g,isHovered:b}=ta({...e,isDisabled:$}),_=typeof a=="string"?D.createElement(tp,null,a):a,E=lc();return D.createElement(qs,{focusRingClass:Le(ha(Pr),"focus-ring")},D.createElement("div",{...tr(d,n?{}:g,l),ref:c,className:Le(ha(Pr),"spectrum-Menu-item",{"is-focused":i&&S&&E,"is-disabled":$,"is-selected":v,"is-selectable":u.selectionManager.selectionMode!=="none","is-hovered":b&&!n||S&&!E})},D.createElement(fM,{UNSAFE_className:Le(ha(Pr),"spectrum-Menu-itemGrid")},D.createElement(wm,null,D.createElement(Ka,{slots:{text:{UNSAFE_className:ha(Pr)["spectrum-Menu-itemLabel"],...h},icon:{size:"S",UNSAFE_className:ha(Pr)["spectrum-Menu-icon"]},description:{UNSAFE_className:ha(Pr)["spectrum-Menu-description"],...p}}},_,v&&D.createElement(Gb,{slot:"checkmark",UNSAFE_className:Le(ha(Pr),"spectrum-Menu-checkmark")}))))))}function Ise(e){let{children:t,layoutInfo:r,headerLayoutInfo:n,virtualizer:i,item:a}=e,{headingProps:o,groupProps:l}=lse({heading:a.rendered,"aria-label":a["aria-label"]}),u=z.useRef();PV({layoutInfo:n,virtualizer:i,ref:u});let{direction:c}=wa(),d=z.useContext(gM);return D.createElement(z.Fragment,null,D.createElement("div",{role:"presentation",ref:u,style:JE(n,c)},a.key!==d.collection.getFirstKey()&&D.createElement("div",{role:"presentation",className:Le(ha(Pr),"spectrum-Menu-divider")}),a.rendered&&D.createElement("div",{...o,className:Le(ha(Pr),"spectrum-Menu-sectionHeading")},a.rendered)),D.createElement("div",{...l,style:JE(r,c),className:Le(ha(Pr),"spectrum-Menu")},t))}function dK(e,t){let{scale:r}=qa(),n=VP({usage:"search",sensitivity:"base"}),i=z.useMemo(()=>new $se({estimatedRowHeight:r==="large"?48:32,estimatedHeadingHeight:r==="large"?33:26,padding:r==="large"?5:4,loaderHeight:40,placeholderHeight:r==="large"?48:32,collator:n}),[n,r]);return i.collection=e.collection,i.disabledKeys=e.disabledKeys,Sr(()=>{if(i.isLoading!==t){var a;i.isLoading=t,(a=i.virtualizer)===null||a===void 0||a.relayoutNow()}},[i,t]),i}function kse(e,t){let{layout:r,state:n,shouldSelectOnPressUp:i,focusOnPointerEnter:a,shouldUseVirtualFocus:o,domProps:l={},transitionDuration:u=0,onScroll:c}=e,{listBoxProps:d}=ase({...e,keyboardDelegate:r,isVirtualized:!0},n,t),{styleProps:h}=Dr(e),p=Va(ha(OV)),v=($,S,g,b)=>S.viewType==="section"?D.createElement(Ise,{key:S.key,item:S.content,layoutInfo:S.layoutInfo,virtualizer:S.virtualizer,headerLayoutInfo:g.find(_=>_.viewType==="header").layoutInfo},b(g.filter(_=>_.viewType==="item"))):D.createElement(MV,{key:S.key,layoutInfo:S.layoutInfo,virtualizer:S.virtualizer,parent:$==null?void 0:$.layoutInfo},S.rendered);return D.createElement(gM.Provider,{value:n},D.createElement(ep,null,D.createElement(Mse,{...h,...tr(d,l),ref:t,focusedKey:n.selectionManager.focusedKey,autoFocus:!!e.autoFocus,sizeToFit:"height",scrollDirection:"vertical",className:Le(ha(Pr),"spectrum-Menu",h.className),layout:r,collection:n.collection,renderWrapper:v,transitionDuration:u,isLoading:e.isLoading,onLoadMore:e.onLoadMore,shouldUseVirtualFocus:o,onScroll:c},($,S)=>{if($==="item")return D.createElement(Rse,{item:S,shouldSelectOnPressUp:i,shouldFocusOnHover:a,shouldUseVirtualFocus:o});if($==="loader")return D.createElement("div",{role:"option",style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}},D.createElement(mM,{isIndeterminate:!0,size:"S","aria-label":n.collection.size>0?p.format("loadingMore"):p.format("loading"),UNSAFE_className:Le(ha(Pr),"spectrum-Dropdown-progressCircle")}));if($==="placeholder"){let g=e.renderEmptyState?e.renderEmptyState():null;return g==null?null:D.createElement("div",{role:"option"},g)}})))}const pK=D.forwardRef(kse);function Fse(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:i=!1,isReadOnly:a=!1,validationState:o,type:l="text",value:u,defaultValue:c,onChange:d=()=>{}}=e,{focusableProps:h}=eM(e,t),{labelProps:p,fieldProps:v,descriptionProps:$,errorMessageProps:S}=CV(e),g=Gr(e,{labelable:!0});const b={type:l,pattern:e.pattern};var _;return LU(t,(_=u??c)!==null&&_!==void 0?_:"",d),{labelProps:p,inputProps:tr(g,r==="input"&&b,{disabled:n,readOnly:a,"aria-required":i||void 0,"aria-invalid":o==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:e.value,defaultValue:e.value?void 0:e.defaultValue,onChange:E=>d(E.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...h,...v}),descriptionProps:$,errorMessageProps:S}}function Fh(e){return e&&e.__esModule?e.default:e}function fi(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var yn={};fi(yn,"spectrum-Textfield-input",()=>S9,e=>S9=e);fi(yn,"spectrum-Textfield",()=>E9,e=>E9=e);fi(yn,"focus-ring",()=>A9,e=>A9=e);fi(yn,"spectrum-Textfield--quiet",()=>C9,e=>C9=e);fi(yn,"spectrum-Textfield--multiline",()=>T9,e=>T9=e);fi(yn,"is-placeholder",()=>P9,e=>P9=e);fi(yn,"is-hovered",()=>M9,e=>M9=e);fi(yn,"spectrum-Textfield--valid",()=>O9,e=>O9=e);fi(yn,"spectrum-Textfield--invalid",()=>R9,e=>R9=e);fi(yn,"spectrum-Textfield--loadable",()=>I9,e=>I9=e);fi(yn,"spectrum-Textfield-wrapper",()=>k9,e=>k9=e);fi(yn,"spectrum-Textfield-wrapper--quiet",()=>F9,e=>F9=e);fi(yn,"spectrum-Textfield-validationIcon",()=>N9,e=>N9=e);fi(yn,"spectrum-Textfield-icon",()=>L9,e=>L9=e);fi(yn,"spectrum-Textfield-inputIcon",()=>D9,e=>D9=e);fi(yn,"spectrum-Textfield-circleLoader",()=>B9,e=>B9=e);fi(yn,"is-focused",()=>z9,e=>z9=e);fi(yn,"is-disabled",()=>U9,e=>U9=e);var S9,E9,A9,C9,T9,P9,M9,O9,R9,I9,k9,F9,N9,L9,D9,B9,z9,U9;S9="spectrum-Textfield-input_73bc77";E9="spectrum-Textfield_73bc77";A9="focus-ring_73bc77";C9="spectrum-Textfield--quiet_73bc77";T9="spectrum-Textfield--multiline_73bc77";P9="is-placeholder_73bc77";M9="is-hovered_73bc77";O9="spectrum-Textfield--valid_73bc77";R9="spectrum-Textfield--invalid_73bc77";I9="spectrum-Textfield--loadable_73bc77";k9="spectrum-Textfield-wrapper_73bc77";F9="spectrum-Textfield-wrapper--quiet_73bc77";N9="spectrum-Textfield-validationIcon_73bc77";L9="spectrum-Textfield-icon_73bc77";D9="spectrum-Textfield-inputIcon_73bc77";B9="spectrum-Textfield-circleLoader_73bc77";z9="is-focused_73bc77";U9="is-disabled_73bc77";function Nse(e,t){let{validationState:r,icon:n,isQuiet:i=!1,isDisabled:a,multiLine:o,autoFocus:l,inputClassName:u,wrapperChildren:c,labelProps:d,inputProps:h,descriptionProps:p,errorMessageProps:v,inputRef:$,isLoading:S,loadingIndicator:g,validationIconClassName:b,disableFocusRing:_}=e,{hoverProps:E,isHovered:A}=ta({isDisabled:a}),M=z.useRef(null),N=z.useRef(null),U=$||N;z.useImperativeHandle(t,()=>({...GU(M,U),select(){U.current&&U.current.select()},getInputElement(){return U.current}}));let I=o?"textarea":"input",j=r==="invalid"&&!a;if(n){let De=Le(Fh(yn),n.props&&n.props.UNSAFE_className,"spectrum-Textfield-icon");n=z.cloneElement(n,{UNSAFE_className:De,size:"S"})}let he=j?D.createElement(pM,null):D.createElement(Gb,null),q=z.cloneElement(he,{UNSAFE_className:Le(Fh(yn),"spectrum-Textfield-validationIcon",b)}),{focusProps:fe,isFocusVisible:ne}=ej({isTextInput:!0,autoFocus:l}),ce=D.createElement("div",{className:Le(Fh(yn),"spectrum-Textfield",{"spectrum-Textfield--invalid":j,"spectrum-Textfield--valid":r==="valid"&&!a,"spectrum-Textfield--loadable":g,"spectrum-Textfield--quiet":i,"spectrum-Textfield--multiline":o,"focus-ring":!_&&ne})},D.createElement(I,{...tr(h,E,fe),ref:U,rows:o?1:void 0,className:Le(Fh(yn),"spectrum-Textfield-input",{"spectrum-Textfield-inputIcon":n,"is-hovered":A},u)}),n,r&&!S&&!a?q:null,S&&g,c);return D.createElement(hM,{...e,labelProps:d,descriptionProps:p,errorMessageProps:v,wrapperClassName:Le(Fh(yn),"spectrum-Textfield-wrapper",{"spectrum-Textfield-wrapper--quiet":i}),showErrorIcon:!1,ref:M},ce)}const hK=z.forwardRef(Nse);function Lse(e){return e&&e.__esModule?e.default:e}var vK={},mK={};mK={buttonLabel:"عرض المقترحات",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var gK={};gK={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var yK={};yK={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var bK={};bK={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var $K={};$K={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var xK={};xK={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var wK={};wK={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var _K={};_K={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var SK={};SK={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var EK={};EK={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var AK={};AK={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} saisi, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var CK={};CK={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var TK={};TK={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var PK={};PK={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var MK={};MK={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var OK={};OK={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var RK={};RK={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var IK={};IK={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var kK={};kK={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var FK={};FK={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var NK={};NK={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var LK={};LK={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var DK={};DK={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var BK={};BK={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var zK={};zK={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var UK={};UK={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var jK={};jK={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var HK={};HK={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var GK={};GK={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var WK={};WK={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var VK={};VK={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var KK={};KK={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var qK={};qK={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var YK={};YK={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};vK={"ar-AE":mK,"bg-BG":gK,"cs-CZ":yK,"da-DK":bK,"de-DE":$K,"el-GR":xK,"en-US":wK,"es-ES":_K,"et-EE":SK,"fi-FI":EK,"fr-FR":AK,"he-IL":CK,"hr-HR":TK,"hu-HU":PK,"it-IT":MK,"ja-JP":OK,"ko-KR":RK,"lt-LT":IK,"lv-LV":kK,"nb-NO":FK,"nl-NL":NK,"pl-PL":LK,"pt-BR":DK,"pt-PT":BK,"ro-RO":zK,"ru-RU":UK,"sk-SK":jK,"sl-SI":HK,"sr-SP":GK,"sv-SE":WK,"tr-TR":VK,"uk-UA":KK,"zh-CN":qK,"zh-TW":YK};function XK(e,t){let{buttonRef:r,popoverRef:n,inputRef:i,listBoxRef:a,keyboardDelegate:o,shouldFocusWrap:l,isReadOnly:u,isDisabled:c}=e,d=Va(Lse(vK)),{menuTriggerProps:h,menuProps:p}=VH({type:"listbox",isDisabled:c||u},t,r);Vb.set(t,{id:p.id});let v=z.useMemo(()=>o||new uH(t.collection,t.disabledKeys,a),[o,t.collection,t.disabledKeys,a]),{collectionProps:$}=lH({selectionManager:t.selectionManager,keyboardDelegate:v,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:l,ref:i,isVirtualized:!0}),S=Ge=>{switch(Ge.key){case"Enter":case"Tab":t.isOpen&&Ge.key==="Enter"&&Ge.preventDefault(),t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&Ge.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},g=Ge=>{var Fe;Ge.relatedTarget===(r==null?void 0:r.current)||!((Fe=n.current)===null||Fe===void 0)&&Fe.contains(Ge.relatedTarget)||(e.onBlur&&e.onBlur(Ge),t.setFocused(!1))},b=Ge=>{t.isFocused||(e.onFocus&&e.onFocus(Ge),t.setFocused(!0))},{labelProps:_,inputProps:E,descriptionProps:A,errorMessageProps:M}=Fse({...e,onChange:t.setInputValue,onKeyDown:!u&&Kv(t.isOpen&&$.onKeyDown,S,e.onKeyDown),onBlur:g,value:t.inputValue,onFocus:b,autoComplete:"off"},i),N=Ge=>{Ge.pointerType==="touch"&&(i.current.focus(),t.toggle(null,"manual"))},U=Ge=>{Ge.pointerType!=="touch"&&(i.current.focus(),t.toggle(Ge.pointerType==="keyboard"||Ge.pointerType==="virtual"?"first":null,"manual"))},I=wy({id:h.id,"aria-label":d.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||_.id}),j=wy({id:p.id,"aria-label":d.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||_.id}),he=z.useRef(0),q=Ge=>{if(c||u)return;if(Ge.timeStamp-he.current<500){Ge.preventDefault(),i.current.focus();return}let Fe=Ge.target.getBoundingClientRect(),ft=Ge.changedTouches[0],bt=Math.ceil(Fe.left+.5*Fe.width),Gt=Math.ceil(Fe.top+.5*Fe.height);ft.clientX===bt&&ft.clientY===Gt&&(Ge.preventDefault(),i.current.focus(),t.toggle(null,"manual"),he.current=Ge.timeStamp)},fe=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var ne;let ce=(ne=fe==null?void 0:fe.parentKey)!==null&&ne!==void 0?ne:null;var De;let We=(De=t.selectionManager.focusedKey)!==null&&De!==void 0?De:null,Ae=z.useRef(ce),$e=z.useRef(We);z.useEffect(()=>{if(F1()&&fe!=null&&We!==$e.current){let Ge=t.selectionManager.isSelected(We),Fe=ce!=null?t.collection.getItem(ce):null,ft=(Fe==null?void 0:Fe["aria-label"])||(typeof(Fe==null?void 0:Fe.rendered)=="string"?Fe.rendered:"")||"",bt=d.format("focusAnnouncement",{isGroupChange:Fe&&ce!==Ae.current,groupTitle:ft,groupCount:Fe?[...ac(Fe,t.collection)].length:0,optionText:fe["aria-label"]||fe.textValue||"",isSelected:Ge});L1(bt)}Ae.current=ce,$e.current=We});let rt=UP(t.collection),Be=z.useRef(rt),Ee=z.useRef(t.isOpen);z.useEffect(()=>{let Ge=t.isOpen!==Ee.current&&(t.selectionManager.focusedKey==null||F1());if(t.isOpen&&(Ge||rt!==Be.current)){let Fe=d.format("countAnnouncement",{optionCount:rt});L1(Fe)}Be.current=rt,Ee.current=t.isOpen});let Ke=z.useRef(t.selectedKey);return z.useEffect(()=>{if(F1()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Ke.current){let Ge=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",Fe=d.format("selectedAnnouncement",{optionText:Ge});L1(Fe)}Ke.current=t.selectedKey}),z.useEffect(()=>{if(t.isOpen)return rM([i.current,n.current])},[t.isOpen,i,n]),{labelProps:_,buttonProps:{...h,...I,excludeFromTabOrder:!0,onPress:N,onPressStart:U,isDisabled:c||u},inputProps:tr(E,{role:"combobox","aria-expanded":h["aria-expanded"],"aria-controls":t.isOpen?p.id:void 0,"aria-autocomplete":"list","aria-activedescendant":fe?TV(t,fe.key):void 0,onTouchEnd:q,autoCorrect:"off",spellCheck:"false"}),listBoxProps:tr(p,j,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0}),descriptionProps:A,errorMessageProps:M}}function QK(e){var t;let{defaultFilter:r,menuTrigger:n="input",allowsEmptyCollection:i=!1,allowsCustomValue:a,shouldCloseOnBlur:o=!0}=e,[l,u]=z.useState(!1),[c,d]=z.useState(!1);var h;let[p,v]=bm(e.inputValue,(h=e.defaultInputValue)!==null&&h!==void 0?h:"",e.onInputChange),$=we=>{e.onSelectionChange&&e.onSelectionChange(we),we===_&&($e(),We())};var S;let{collection:g,selectionManager:b,selectedKey:_,setSelectedKey:E,selectedItem:A,disabledKeys:M}=tle({...e,onSelectionChange:$,items:(S=e.items)!==null&&S!==void 0?S:e.defaultItems}),N=g,U=z.useMemo(()=>e.items!=null||!r?g:Dse(g,p,r),[g,p,r,e.items]),[I,j]=z.useState(U),he=z.useRef("focus"),fe=qH({...e,onOpenChange:we=>{e.onOpenChange&&e.onOpenChange(we,we?he.current:void 0),b.setFocused(we),we||b.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),ne=(we,W)=>{let le=W==="manual"||W==="focus"&&n==="focus";(i||U.size>0||le&&N.size>0||e.items)&&(le&&!fe.isOpen&&e.items===void 0&&u(!0),he.current=W,fe.open(we))},ce=(we,W)=>{let le=W==="manual"||W==="focus"&&n==="focus";!(i||U.size>0||le&&N.size>0||e.items)&&!fe.isOpen||(le&&!fe.isOpen&&e.items===void 0&&u(!0),fe.isOpen||(he.current=W),De(we))},De=z.useCallback(we=>{fe.isOpen&&j(U),fe.toggle(we)},[fe,U]),We=z.useCallback(()=>{fe.isOpen&&(j(U),fe.close())},[fe,U]),Ae=z.useRef(p),$e=()=>{var we,W;let le=(W=(we=g.getItem(_))===null||we===void 0?void 0:we.textValue)!==null&&W!==void 0?W:"";Ae.current=le,v(le)},rt=z.useRef(!0);var Be,Ee;let Ke=z.useRef((Ee=(Be=e.selectedKey)!==null&&Be!==void 0?Be:e.defaultSelectedKey)!==null&&Ee!==void 0?Ee:null);var Ge;let Fe=z.useRef((Ge=(t=g.getItem(_))===null||t===void 0?void 0:t.textValue)!==null&&Ge!==void 0?Ge:"");z.useEffect(()=>{var we;c&&(U.size>0||i)&&!fe.isOpen&&p!==Ae.current&&n!=="manual"&&ne(null,"input"),!l&&!i&&fe.isOpen&&U.size===0&&We(),_!=null&&_!==Ke.current&&We(),p!==Ae.current&&(b.setFocusedKey(null),u(!1),p===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&E(null)),rt.current&&e.inputValue===void 0&&e.defaultInputValue===void 0&&$e(),_!==Ke.current&&(e.inputValue===void 0||e.selectedKey===void 0)?$e():Ae.current=p;var W;let le=(W=(we=g.getItem(_))===null||we===void 0?void 0:we.textValue)!==null&&W!==void 0?W:"";!c&&_!=null&&e.inputValue===void 0&&_===Ke.current&&Fe.current!==le&&(Ae.current=le,v(le)),rt.current=!1,Ke.current=_,Fe.current=le});let ft=()=>{a&&_==null?bt():Gt()},bt=()=>{Ke.current=null,E(null),We()},Gt=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var we;e.onSelectionChange(_);var W;let le=(W=(we=g.getItem(_))===null||we===void 0?void 0:we.textValue)!==null&&W!==void 0?W:"";Ae.current=le,We()}else $e(),We()};const qt=()=>{if(a){var we,W;const le=(W=(we=g.getItem(_))===null||we===void 0?void 0:we.textValue)!==null&&W!==void 0?W:"";p===le?Gt():bt()}else Gt()};let nt=()=>{fe.isOpen&&b.focusedKey!=null?_===b.focusedKey?Gt():E(b.focusedKey):qt()},At=we=>{we?n==="focus"&&ne(null,"focus"):o&&qt(),d(we)},Wt=z.useMemo(()=>fe.isOpen?l?N:U:I,[fe.isOpen,N,U,l,I]);return{...fe,toggle:ce,open:ne,close:qt,selectionManager:b,selectedKey:_,setSelectedKey:E,disabledKeys:M,isFocused:c,setFocused:At,selectedItem:A,collection:Wt,inputValue:p,setInputValue:v,commit:nt,revert:ft}}function Dse(e,t,r){return new tS(ZK(e,e,t,r))}function ZK(e,t,r,n){let i=[];for(let a of t)if(a.type==="section"&&a.hasChildNodes){let o=ZK(e,ac(a,e),r,n);[...o].some(l=>l.type==="item")&&i.push({...a,childNodes:o})}else a.type==="item"&&n(a.textValue,r)?i.push({...a}):a.type!=="item"&&i.push({...a});return i}function JK(e,t){let{role:r="dialog"}=e,n=Cl();n=e["aria-label"]?void 0:n;let i=z.useRef(!1);return z.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){Pl(t.current);let a=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current.blur(),Pl(t.current),i.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),Uj(),{dialogProps:{...Gr(e,{labelable:!0}),role:r,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||n,onBlur:a=>{i.current&&a.stopPropagation()}},titleProps:{id:n}}}function fr(e){return e&&e.__esModule?e.default:e}function tt(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var ii={};tt(ii,"no-results",()=>j9,e=>j9=e);tt(ii,"mobile-combobox",()=>H9,e=>H9=e);tt(ii,"mobile-input",()=>G9,e=>G9=e);tt(ii,"mobile-value",()=>W9,e=>W9=e);tt(ii,"tray-dialog",()=>V9,e=>V9=e);tt(ii,"tray-textfield",()=>K9,e=>K9=e);tt(ii,"has-label",()=>q9,e=>q9=e);tt(ii,"tray-textfield-input",()=>Y9,e=>Y9=e);tt(ii,"tray-listbox",()=>X9,e=>X9=e);var j9,H9,G9,W9,V9,K9,q9,Y9,X9;j9="no-results_743018";H9="mobile-combobox_743018";G9="mobile-input_743018";W9="mobile-value_743018";V9="tray-dialog_743018";K9="tray-textfield_743018";q9="has-label_743018";Y9="tray-textfield-input_743018";X9="tray-listbox_743018";var Pm={},eq={};eq={clear:"مسح",invalid:"(غير صالح)",loading:"جارٍ التحميل...",noResults:"لا توجد نتائج"};var tq={};tq={clear:"Изчисти",invalid:"(невалиден)",loading:"Зареждане...",noResults:"Няма резултати"};var rq={};rq={clear:"Vymazat",invalid:"(neplatné)",loading:"Načítání...",noResults:"Žádné výsledky"};var nq={};nq={clear:"Ryd",invalid:"(ugyldig)",loading:"Indlæser ...",noResults:"Ingen resultater"};var iq={};iq={clear:"Löschen",invalid:"(ungültig)",loading:"Wird geladen...",noResults:"Keine Ergebnisse"};var aq={};aq={clear:"Καθαρισμός",invalid:"(δεν ισχύει)",loading:"Φόρτωση...",noResults:"Χωρίς αποτέλεσμα"};var oq={};oq={loading:"Loading...",noResults:"No results",clear:"Clear",invalid:"(invalid)"};var lq={};lq={clear:"Borrar",invalid:"(no válido)",loading:"Cargando...",noResults:"Sin resultados"};var sq={};sq={clear:"Puhasta",invalid:"(kehtetu)",loading:"Laadimine...",noResults:"Tulemusi pole"};var uq={};uq={clear:"Kirkas",invalid:"(epäkelpo)",loading:"Ladataan...",noResults:"Ei tuloksia"};var cq={};cq={clear:"Effacer",invalid:"(non valide)",loading:"Chargement en cours...",noResults:"Aucun résultat"};var fq={};fq={clear:"נקי",invalid:"(לא חוקי)",loading:"טוען...",noResults:"אין תוצאות"};var dq={};dq={clear:"Izbriši",invalid:"(nevažeće)",loading:"Učitavam...",noResults:"Nema rezultata"};var pq={};pq={clear:"Törlés",invalid:"(érvénytelen)",loading:"Betöltés folyamatban…",noResults:"Nincsenek találatok"};var hq={};hq={clear:"Cancella",invalid:"(non valido)",loading:"Caricamento in corso...",noResults:"Nessun risultato"};var vq={};vq={clear:"クリア",invalid:"(無効)",loading:"読み込み中...",noResults:"結果なし"};var mq={};mq={clear:"지우기",invalid:"(유효하지 않음)",loading:"로드 중...",noResults:"결과 없음"};var gq={};gq={clear:"Skaidrus",invalid:"(netinkama)",loading:"Įkeliama...",noResults:"Be rezultatų"};var yq={};yq={clear:"Notīrīt",invalid:"(nederīgs)",loading:"Notiek ielāde...",noResults:"Nav rezultātu"};var bq={};bq={clear:"Tøm",invalid:"(ugyldig)",loading:"Laster inn ...",noResults:"Ingen resultater"};var $q={};$q={clear:"Helder",invalid:"(ongeldig)",loading:"Laden...",noResults:"Geen resultaten"};var xq={};xq={clear:"Wyczyść",invalid:"(nieprawidłowy)",loading:"Trwa ładowanie...",noResults:"Brak wyników"};var wq={};wq={clear:"Limpar",invalid:"(inválido)",loading:"Carregando...",noResults:"Nenhum resultado"};var _q={};_q={clear:"Limpar",invalid:"(inválido)",loading:"A carregar...",noResults:"Sem resultados"};var Sq={};Sq={clear:"Golire",invalid:"(nevalid)",loading:"Se încarcă...",noResults:"Niciun rezultat"};var Eq={};Eq={clear:"Очистить",invalid:"(недействительно)",loading:"Загрузка...",noResults:"Результаты отсутствуют"};var Aq={};Aq={clear:"Vymazať",invalid:"(neplatné)",loading:"Načítava sa...",noResults:"Žiadne výsledky"};var Cq={};Cq={clear:"Jasen",invalid:"(neveljavno)",loading:"Nalaganje...",noResults:"Ni rezultatov"};var Tq={};Tq={clear:"Izbriši",invalid:"(nevažeće)",loading:"Učitavam...",noResults:"Nema rezultata"};var Pq={};Pq={clear:"Rensa",invalid:"(ogiltigt)",loading:"Läser in...",noResults:"Inga resultat"};var Mq={};Mq={clear:"Temizle",invalid:"(geçersiz)",loading:"Yükleniyor...",noResults:"Sonuç yok"};var Oq={};Oq={clear:"Очистити",invalid:"(недійсне)",loading:"Завантаження...",noResults:"Результатів немає"};var Rq={};Rq={clear:"透明",invalid:"(无效)",loading:"正在加载...",noResults:"无结果"};var Iq={};Iq={clear:"清除",invalid:"(無效)",loading:"正在載入...",noResults:"無任何結果"};Pm={"ar-AE":eq,"bg-BG":tq,"cs-CZ":rq,"da-DK":nq,"de-DE":iq,"el-GR":aq,"en-US":oq,"es-ES":lq,"et-EE":sq,"fi-FI":uq,"fr-FR":cq,"he-IL":fq,"hr-HR":dq,"hu-HU":pq,"it-IT":hq,"ja-JP":vq,"ko-KR":mq,"lt-LT":gq,"lv-LV":yq,"nb-NO":bq,"nl-NL":$q,"pl-PL":xq,"pt-BR":wq,"pt-PT":_q,"ro-RO":Sq,"ru-RU":Eq,"sk-SK":Aq,"sl-SI":Cq,"sr-SP":Tq,"sv-SE":Pq,"tr-TR":Mq,"uk-UA":Oq,"zh-CN":Rq,"zh-TW":Iq};var Br={};tt(Br,"spectrum-Button",()=>Q9,e=>Q9=e);tt(Br,"spectrum-ActionButton",()=>Z9,e=>Z9=e);tt(Br,"spectrum-LogicButton",()=>J9,e=>J9=e);tt(Br,"spectrum-FieldButton",()=>e7,e=>e7=e);tt(Br,"spectrum-ClearButton",()=>t7,e=>t7=e);tt(Br,"focus-ring",()=>r7,e=>r7=e);tt(Br,"spectrum-FieldButton--quiet",()=>n7,e=>n7=e);tt(Br,"spectrum-Icon",()=>i7,e=>i7=e);tt(Br,"is-hovered",()=>a7,e=>a7=e);tt(Br,"spectrum-Button-label",()=>o7,e=>o7=e);tt(Br,"spectrum-Button--iconOnly",()=>l7,e=>l7=e);tt(Br,"spectrum-ActionButton-label",()=>s7,e=>s7=e);tt(Br,"spectrum-ActionButton-hold",()=>u7,e=>u7=e);tt(Br,"spectrum-ActionButton--quiet",()=>c7,e=>c7=e);tt(Br,"is-disabled",()=>f7,e=>f7=e);tt(Br,"is-open",()=>d7,e=>d7=e);tt(Br,"spectrum-ClearButton--small",()=>p7,e=>p7=e);tt(Br,"is-active",()=>h7,e=>h7=e);tt(Br,"spectrum-ClearButton--overBackground",()=>v7,e=>v7=e);tt(Br,"is-selected",()=>m7,e=>m7=e);tt(Br,"spectrum-ActionButton--emphasized",()=>g7,e=>g7=e);tt(Br,"spectrum-ActionButton--staticWhite",()=>y7,e=>y7=e);tt(Br,"spectrum-ActionButton--staticBlack",()=>b7,e=>b7=e);tt(Br,"spectrum-ActionButton--staticColor",()=>$7,e=>$7=e);tt(Br,"spectrum-LogicButton--and",()=>x7,e=>x7=e);tt(Br,"spectrum-LogicButton--or",()=>w7,e=>w7=e);tt(Br,"is-focused",()=>_7,e=>_7=e);tt(Br,"is-placeholder",()=>S7,e=>S7=e);tt(Br,"spectrum-FieldButton--invalid",()=>E7,e=>E7=e);tt(Br,"spectrum-Button--overBackground",()=>A7,e=>A7=e);var Q9,Z9,J9,e7,t7,r7,n7,i7,a7,o7,l7,s7,u7,c7,f7,d7,p7,h7,v7,m7,g7,y7,b7,$7,x7,w7,_7,S7,E7,A7;Q9="spectrum-Button_e2d99e";Z9="spectrum-ActionButton_e2d99e";J9="spectrum-LogicButton_e2d99e";e7="spectrum-FieldButton_e2d99e";t7="spectrum-ClearButton_e2d99e";r7="focus-ring_e2d99e";n7="spectrum-FieldButton--quiet_e2d99e";i7="spectrum-Icon_e2d99e";a7="is-hovered_e2d99e";o7="spectrum-Button-label_e2d99e";l7="spectrum-Button--iconOnly_e2d99e";s7="spectrum-ActionButton-label_e2d99e";u7="spectrum-ActionButton-hold_e2d99e";c7="spectrum-ActionButton--quiet_e2d99e";f7="is-disabled_e2d99e";d7="is-open_e2d99e";p7="spectrum-ClearButton--small_e2d99e";h7="is-active_e2d99e";v7="spectrum-ClearButton--overBackground_e2d99e";m7="is-selected_e2d99e";g7="spectrum-ActionButton--emphasized_e2d99e";y7="spectrum-ActionButton--staticWhite_e2d99e";b7="spectrum-ActionButton--staticBlack_e2d99e";$7="spectrum-ActionButton--staticColor_e2d99e";x7="spectrum-LogicButton--and_e2d99e";w7="spectrum-LogicButton--or_e2d99e";_7="is-focused_e2d99e";S7="is-placeholder_e2d99e";E7="spectrum-FieldButton--invalid_e2d99e";A7="spectrum-Button--overBackground_e2d99e";var kn={};tt(kn,"spectrum-FieldLabel",()=>C7,e=>C7=e);tt(kn,"spectrum-FieldLabel--positionSide",()=>T7,e=>T7=e);tt(kn,"spectrum-FieldLabel-requiredIcon",()=>P7,e=>P7=e);tt(kn,"spectrum-FieldLabel--alignEnd",()=>M7,e=>M7=e);tt(kn,"spectrum-Field",()=>O7,e=>O7=e);tt(kn,"spectrum-Field-contextualHelp",()=>R7,e=>R7=e);tt(kn,"spectrum-Field--positionTop",()=>I7,e=>I7=e);tt(kn,"spectrum-Field-field",()=>k7,e=>k7=e);tt(kn,"spectrum-Field--alignEnd",()=>F7,e=>F7=e);tt(kn,"spectrum-Field--positionSide",()=>N7,e=>N7=e);tt(kn,"spectrum-Field-wrapper",()=>L7,e=>L7=e);tt(kn,"spectrum-Field--hasContextualHelp",()=>D7,e=>D7=e);tt(kn,"spectrum-Form",()=>B7,e=>B7=e);tt(kn,"spectrum-Form--positionSide",()=>z7,e=>z7=e);tt(kn,"spectrum-Field-labelCell",()=>U7,e=>U7=e);tt(kn,"spectrum-Field-labelWrapper",()=>j7,e=>j7=e);tt(kn,"spectrum-Form--positionTop",()=>H7,e=>H7=e);tt(kn,"spectrum-LabeledValue",()=>G7,e=>G7=e);tt(kn,"spectrum-Form-itemLabel",()=>W7,e=>W7=e);tt(kn,"is-disabled",()=>V7,e=>V7=e);var C7,T7,P7,M7,O7,R7,I7,k7,F7,N7,L7,D7,B7,z7,U7,j7,H7,G7,W7,V7;C7="spectrum-FieldLabel_d2db1f";T7="spectrum-FieldLabel--positionSide_d2db1f";P7="spectrum-FieldLabel-requiredIcon_d2db1f";M7="spectrum-FieldLabel--alignEnd_d2db1f";O7="spectrum-Field_d2db1f";R7="spectrum-Field-contextualHelp_d2db1f";I7="spectrum-Field--positionTop_d2db1f";k7="spectrum-Field-field_d2db1f";F7="spectrum-Field--alignEnd_d2db1f";N7="spectrum-Field--positionSide_d2db1f";L7="spectrum-Field-wrapper_d2db1f";D7="spectrum-Field--hasContextualHelp_d2db1f";B7="spectrum-Form_d2db1f";z7="spectrum-Form--positionSide_d2db1f";U7="spectrum-Field-labelCell_d2db1f";j7="spectrum-Field-labelWrapper_d2db1f";H7="spectrum-Form--positionTop_d2db1f";G7="spectrum-LabeledValue_d2db1f";W7="spectrum-Form-itemLabel_d2db1f";V7="is-disabled_d2db1f";var Di={};tt(Di,"spectrum-Search",()=>K7,e=>K7=e);tt(Di,"spectrum-ClearButton",()=>q7,e=>q7=e);tt(Di,"is-quiet",()=>Y7,e=>Y7=e);tt(Di,"spectrum-Search-input",()=>X7,e=>X7=e);tt(Di,"spectrum-Search--invalid",()=>Q7,e=>Q7=e);tt(Di,"spectrum-Search--valid",()=>Z7,e=>Z7=e);tt(Di,"spectrum-Search--loadable",()=>J7,e=>J7=e);tt(Di,"spectrum-Search-circleLoader",()=>eA,e=>eA=e);tt(Di,"spectrum-Search-validationIcon",()=>tA,e=>tA=e);tt(Di,"spectrum-Textfield",()=>rA,e=>rA=e);var K7,q7,Y7,X7,Q7,Z7,J7,eA,tA,rA;K7="spectrum-Search_d3c0f3";q7="spectrum-ClearButton_d3c0f3";Y7="is-quiet_d3c0f3";X7="spectrum-Search-input_d3c0f3";Q7="spectrum-Search--invalid_d3c0f3";Z7="spectrum-Search--valid_d3c0f3";J7="spectrum-Search--loadable_d3c0f3";eA="spectrum-Search-circleLoader_d3c0f3";tA="spectrum-Search-validationIcon_d3c0f3";rA="spectrum-Textfield_d3c0f3";var mr={};tt(mr,"spectrum-InputGroup",()=>nA,e=>nA=e);tt(mr,"focus-ring",()=>iA,e=>iA=e);tt(mr,"spectrum-InputGroup--quiet",()=>aA,e=>aA=e);tt(mr,"spectrum-FieldButton",()=>oA,e=>oA=e);tt(mr,"is-disabled",()=>lA,e=>lA=e);tt(mr,"spectrum-InputGroup--invalid",()=>sA,e=>sA=e);tt(mr,"spectrum-InputGroup-field",()=>uA,e=>uA=e);tt(mr,"spectrum-InputGroup-input-validationIcon",()=>cA,e=>cA=e);tt(mr,"spectrum-InputGroup-input-circleLoader",()=>fA,e=>fA=e);tt(mr,"spectrum-InputGroup-input",()=>dA,e=>dA=e);tt(mr,"spectrum-InputGroup-icon",()=>pA,e=>pA=e);tt(mr,"spectrum-InputGroup-popover--quiet",()=>hA,e=>hA=e);tt(mr,"spectrum-Datepicker--range",()=>vA,e=>vA=e);tt(mr,"spectrum-Datepicker--datetimeRange",()=>mA,e=>mA=e);tt(mr,"spectrum-Datepicker-startField",()=>gA,e=>gA=e);tt(mr,"spectrum-Datepicker-endField",()=>yA,e=>yA=e);tt(mr,"spectrum-Datepicker--rangeDash",()=>bA,e=>bA=e);tt(mr,"is-focused",()=>$A,e=>$A=e);tt(mr,"spectrum-Datepicker-focusRing",()=>xA,e=>xA=e);tt(mr,"is-hovered",()=>wA,e=>wA=e);tt(mr,"is-selected",()=>_A,e=>_A=e);tt(mr,"spectrum-FieldButton--invalid",()=>SA,e=>SA=e);var nA,iA,aA,oA,lA,sA,uA,cA,fA,dA,pA,hA,vA,mA,gA,yA,bA,$A,xA,wA,_A,SA;nA="spectrum-InputGroup_a0942f";iA="focus-ring_a0942f";aA="spectrum-InputGroup--quiet_a0942f";oA="spectrum-FieldButton_a0942f";lA="is-disabled_a0942f";sA="spectrum-InputGroup--invalid_a0942f";uA="spectrum-InputGroup-field_a0942f";cA="spectrum-InputGroup-input-validationIcon_a0942f";fA="spectrum-InputGroup-input-circleLoader_a0942f";dA="spectrum-InputGroup-input_a0942f";pA="spectrum-InputGroup-icon_a0942f";hA="spectrum-InputGroup-popover--quiet_a0942f";vA="spectrum-Datepicker--range_a0942f";mA="spectrum-Datepicker--datetimeRange_a0942f";gA="spectrum-Datepicker-startField_a0942f";yA="spectrum-Datepicker-endField_a0942f";bA="spectrum-Datepicker--rangeDash_a0942f";$A="is-focused_a0942f";xA="spectrum-Datepicker-focusRing_a0942f";wA="is-hovered_a0942f";_A="is-selected_a0942f";SA="spectrum-FieldButton--invalid_a0942f";var xn={};tt(xn,"spectrum-Textfield-input",()=>EA,e=>EA=e);tt(xn,"spectrum-Textfield",()=>AA,e=>AA=e);tt(xn,"focus-ring",()=>CA,e=>CA=e);tt(xn,"spectrum-Textfield--quiet",()=>TA,e=>TA=e);tt(xn,"spectrum-Textfield--multiline",()=>PA,e=>PA=e);tt(xn,"is-placeholder",()=>MA,e=>MA=e);tt(xn,"is-hovered",()=>OA,e=>OA=e);tt(xn,"spectrum-Textfield--valid",()=>RA,e=>RA=e);tt(xn,"spectrum-Textfield--invalid",()=>IA,e=>IA=e);tt(xn,"spectrum-Textfield--loadable",()=>kA,e=>kA=e);tt(xn,"spectrum-Textfield-wrapper",()=>FA,e=>FA=e);tt(xn,"spectrum-Textfield-wrapper--quiet",()=>NA,e=>NA=e);tt(xn,"spectrum-Textfield-validationIcon",()=>LA,e=>LA=e);tt(xn,"spectrum-Textfield-icon",()=>DA,e=>DA=e);tt(xn,"spectrum-Textfield-inputIcon",()=>BA,e=>BA=e);tt(xn,"spectrum-Textfield-circleLoader",()=>zA,e=>zA=e);tt(xn,"is-focused",()=>UA,e=>UA=e);tt(xn,"is-disabled",()=>jA,e=>jA=e);var EA,AA,CA,TA,PA,MA,OA,RA,IA,kA,FA,NA,LA,DA,BA,zA,UA,jA;EA="spectrum-Textfield-input_73bc77";AA="spectrum-Textfield_73bc77";CA="focus-ring_73bc77";TA="spectrum-Textfield--quiet_73bc77";PA="spectrum-Textfield--multiline_73bc77";MA="is-placeholder_73bc77";OA="is-hovered_73bc77";RA="spectrum-Textfield--valid_73bc77";IA="spectrum-Textfield--invalid_73bc77";kA="spectrum-Textfield--loadable_73bc77";FA="spectrum-Textfield-wrapper_73bc77";NA="spectrum-Textfield-wrapper--quiet_73bc77";LA="spectrum-Textfield-validationIcon_73bc77";DA="spectrum-Textfield-icon_73bc77";BA="spectrum-Textfield-inputIcon_73bc77";zA="spectrum-Textfield-circleLoader_73bc77";UA="is-focused_73bc77";jA="is-disabled_73bc77";const Bse=D.forwardRef(function(t,r){t=Fl(t);let{isQuiet:n,isDisabled:i,validationState:a,isReadOnly:o,name:l,formValue:u="text",allowsCustomValue:c}=t;c&&(u="text");let{contains:d}=HU({sensitivity:"base"}),h=QK({...t,defaultFilter:d,allowsEmptyCollection:!0,shouldCloseOnBlur:!1}),p=z.useRef(),v=Jd(r,p),{triggerProps:$,overlayProps:S}=tM({type:"listbox"},h,p),{labelProps:g,fieldProps:b}=CV({...t,labelElementType:"span"});g.onClick=()=>{t.isDisabled||(p.current.focus(),Pie("keyboard"))};let _={type:"hidden",name:l,value:u==="text"?h.inputValue:h.selectedKey},E=z.useRef(null);return LU(E,_.value,u==="text"?h.setInputValue:h.setSelectedKey),D.createElement(D.Fragment,null,D.createElement(hM,{...t,labelProps:g,elementType:"span",ref:v,includeNecessityIndicatorInAccessibilityName:!0},D.createElement(zse,{...tr($,b,{autoFocus:t.autoFocus}),ref:p,isQuiet:n,isDisabled:i,isPlaceholder:!h.inputValue,validationState:a,onPress:()=>!o&&h.open(null,"manual")},h.inputValue||t.placeholder||"")),l&&D.createElement("input",{..._,ref:E}),D.createElement(sM,{state:h,isFixedHeight:!0,...S},D.createElement(Use,{...t,onClose:h.close,overlayProps:S,state:h})))}),zse=D.forwardRef(function(t,r){let{isQuiet:n,isDisabled:i,isPlaceholder:a,validationState:o,children:l,style:u,className:c}=t,d=Va(fr(Pm)),h=ui(),p=ui(),v=o==="invalid"?D.createElement(pM,{id:p,"aria-label":d.format("invalid")}):D.createElement(Gb,null),$=D.cloneElement(v,{UNSAFE_className:Le(fr(xn),"spectrum-Textfield-validationIcon",Le(fr(mr),"spectrum-InputGroup-input-validationIcon"))}),{hoverProps:S,isHovered:g}=ta({}),{buttonProps:b,isPressed:_}=Am({...t,"aria-labelledby":[t["aria-labelledby"],t["aria-label"]&&!t["aria-labelledby"]?t.id:null,h,o==="invalid"?p:null].filter(Boolean).join(" "),elementType:"div"},r);return D.createElement(qs,{focusClass:Le(fr(mr),"is-focused"),focusRingClass:Le(fr(mr),"focus-ring")},D.createElement("div",{...tr(S,b),"aria-haspopup":"dialog",ref:r,style:{...u,outline:"none"},className:Le(fr(mr),"spectrum-InputGroup",{"spectrum-InputGroup--quiet":n,"is-disabled":i,"spectrum-InputGroup--invalid":o==="invalid"&&!i,"is-hovered":g},Le(fr(ii),"mobile-combobox"),c)},D.createElement("div",{className:Le(fr(xn),"spectrum-Textfield",{"spectrum-Textfield--invalid":o==="invalid"&&!i,"spectrum-Textfield--valid":o==="valid"&&!i,"spectrum-Textfield--quiet":n},Le(fr(mr),"spectrum-InputGroup-field"))},D.createElement("div",{className:Le(fr(xn),"spectrum-Textfield-input",{"is-hovered":g,"is-placeholder":a,"is-disabled":i},Le(fr(mr),"spectrum-InputGroup-input",Le(fr(kn),"spectrum-Field-field")),Le(fr(ii),"mobile-input"))},D.createElement("span",{id:h,className:Le(fr(ii),"mobile-value")},l)),o&&!i?$:null),D.createElement("div",{className:Le(fr(Br),"spectrum-FieldButton",{"spectrum-FieldButton--quiet":n,"is-active":_,"is-disabled":i,"spectrum-FieldButton--invalid":o==="invalid"&&!i,"is-hovered":g},Le(fr(mr),"spectrum-FieldButton"))},D.createElement(iM,{UNSAFE_className:Le(fr(mr),"spectrum-Dropdown-chevron")}))))});function Use(e){let{state:t,isDisabled:r,validationState:n,label:i,overlayProps:a,loadingState:o,onLoadMore:l,onClose:u}=e,c=z.useRef(null),[d,h]=z.useState(!1),p=z.useRef(),v=z.useRef(),$=z.useRef(),S=z.useRef(),g=o==="loading"||o==="loadingMore",b=dK(t,g),_=Va(fr(Pm)),{inputProps:E,listBoxProps:A,labelProps:M}=XK({...e,keyboardDelegate:b,buttonRef:Jf(v),popoverRef:$,listBoxRef:S,inputRef:p,name:void 0},t);D.useEffect(()=>(Pl(p.current),()=>{t.setFocused(!1)}),[]);let{dialogProps:N}=JK({"aria-labelledby":ui(M.id)},$);E.role="searchbox",E["aria-haspopup"]="listbox",delete E["aria-expanded"],delete E.onTouchEnd;let U=D.createElement(jae,{preventFocus:!0,"aria-label":_.format("clear"),excludeFromTabOrder:!0,onPress:()=>{t.setInputValue(""),p.current.focus()},UNSAFE_className:Le(fr(Di),"spectrum-ClearButton"),isDisabled:r}),I=D.createElement(mM,{"aria-label":_.format("loading"),size:"S",isIndeterminate:!0,UNSAFE_className:Le(fr(Di),"spectrum-Search-circleLoader",Le(fr(xn),"spectrum-Textfield-circleLoader"))}),j=z.useRef(!1),he=()=>{j.current=!0},q=()=>{j.current=!1},fe=z.useCallback(()=>{!p.current||document.activeElement!==p.current||!j.current||$.current.focus()},[p,$,j]),ne=E.value,ce=z.useRef(ne);z.useEffect(()=>{o==="filtering"&&!d?(c.current===null&&(c.current=setTimeout(()=>{h(!0)},500)),ne!==ce.current&&(clearTimeout(c.current),c.current=setTimeout(()=>{h(!0)},500))):o!=="filtering"&&(h(!1),clearTimeout(c.current),c.current=null),ce.current=ne},[o,ne,d]);let De=We=>{We.key==="Enter"&&t.selectionManager.focusedKey==null?$.current.focus():E.onKeyDown(We)};return D.createElement(ep,{restoreFocus:!0,contain:!0},D.createElement("div",{...tr(a,N),ref:$,className:Le(fr(ii),"tray-dialog")},D.createElement(Md,{onDismiss:u}),D.createElement(hK,{label:i,labelProps:M,inputProps:{...E,onKeyDown:De},inputRef:p,isDisabled:r,isLoading:d&&o==="filtering",loadingIndicator:o!=null&&I,validationState:n,labelAlign:"start",labelPosition:"top",wrapperChildren:(t.inputValue!==""||o==="filtering"||n!=null)&&!e.isReadOnly&&U,UNSAFE_className:Le(fr(Di),"spectrum-Search","spectrum-Textfield","spectrum-Search--loadable",{"spectrum-Search--invalid":n==="invalid"&&!r,"spectrum-Search--valid":n==="valid"&&!r},Le(fr(ii),"tray-textfield",{"has-label":!!e.label})),inputClassName:Le(fr(ii),"tray-textfield-input",Le(fr(Di),"spectrum-Search-input")),validationIconClassName:Le(fr(Di),"spectrum-Search-validationIcon")}),D.createElement(pK,{...A,domProps:{onTouchStart:he,onTouchEnd:q},disallowEmptySelection:!0,shouldSelectOnPressUp:!0,focusOnPointerEnter:!0,layout:b,state:t,shouldUseVirtualFocus:!0,renderEmptyState:()=>o!=="loading"&&D.createElement("span",{className:Le(fr(ii),"no-results")},_.format("noResults")),UNSAFE_className:Le(fr(ii),"tray-listbox"),ref:S,onScroll:fe,onLoadMore:l,isLoading:g}),D.createElement(Md,{onDismiss:u})))}function jse(e,t){return e=Fl(e),e.placeholder&&console.warn("Placeholders are deprecated due to accessibility issues. Please use help text instead. See the docs for details: https://react-spectrum.adobe.com/react-spectrum/ComboBox.html#help-text"),XP()?D.createElement(Bse,{...e,menuTrigger:"input",ref:t}):D.createElement(Hse,{...e,ref:t})}const Hse=D.forwardRef(function(t,r){let{menuTrigger:n="input",shouldFlip:i=!0,direction:a="bottom",isQuiet:o,loadingState:l,onLoadMore:u,allowsCustomValue:c,name:d,formValue:h="text"}=t;c&&(h="text");let p=Va(fr(Pm)),v=l!=null,$=z.useRef(),S=gI($),g=z.useRef(),b=gI(g),_=z.useRef(),E=z.useRef(),A=Jd(r,E),{contains:M}=HU({sensitivity:"base"}),N=QK({...t,defaultFilter:M,allowsEmptyCollection:v}),U=dK(N,l==="loadingMore"),{buttonProps:I,inputProps:j,listBoxProps:he,labelProps:q,descriptionProps:fe,errorMessageProps:ne}=XK({...t,keyboardDelegate:U,buttonRef:b,popoverRef:S,listBoxRef:_,inputRef:E,menuTrigger:n,name:h==="text"?d:void 0},N),[ce,De]=z.useState(null),{scale:We}=qa(),Ae=z.useCallback(()=>{if(b.current&&E.current){let rt=b.current.offsetWidth,Be=E.current.offsetWidth;De(rt+Be)}},[b,E,De]);$m({ref:A,onResize:Ae}),Sr(Ae,[We,Ae]);let $e={width:o?null:ce,minWidth:o?`calc(${ce}px + calc(2 * var(--spectrum-dropdown-quiet-offset)))`:ce};return D.createElement(D.Fragment,null,D.createElement(hM,{...t,descriptionProps:fe,errorMessageProps:ne,labelProps:q,ref:A},D.createElement(Gse,{...t,isOpen:N.isOpen,loadingState:l,inputProps:j,inputRef:E,triggerProps:I,triggerRef:g})),d&&h==="key"&&D.createElement("input",{type:"hidden",name:d,value:N.selectedKey}),D.createElement(lM,{state:N,UNSAFE_style:$e,UNSAFE_className:Le(fr(mr),"spectrum-InputGroup-popover",{"spectrum-InputGroup-popover--quiet":o}),ref:$,triggerRef:b,scrollRef:_,placement:`${a} end`,hideArrow:!0,isNonModal:!0,shouldFlip:i},D.createElement(pK,{...he,ref:_,disallowEmptySelection:!0,autoFocus:N.focusStrategy,shouldSelectOnPressUp:!0,focusOnPointerEnter:!0,layout:U,state:N,shouldUseVirtualFocus:!0,isLoading:l==="loading"||l==="loadingMore",onLoadMore:u,renderEmptyState:()=>v&&D.createElement("span",{className:Le(fr(ii),"no-results")},l==="loading"?p.format("loading"):p.format("noResults"))})))}),Gse=D.forwardRef(function(t,r){let{isQuiet:n,isDisabled:i,validationState:a,inputProps:o,inputRef:l,triggerProps:u,triggerRef:c,autoFocus:d,style:h,className:p,loadingState:v,isOpen:$,menuTrigger:S}=t,{hoverProps:g,isHovered:b}=ta({}),_=Va(fr(Pm)),E=z.useRef(null),[A,M]=z.useState(!1),N=D.createElement(mM,{"aria-label":_.format("loading"),size:"S",isIndeterminate:!0,UNSAFE_className:Le(fr(xn),"spectrum-Textfield-circleLoader",Le(fr(mr),"spectrum-InputGroup-input-circleLoader"))}),U=v==="loading"||v==="filtering",I=o.value,j=z.useRef(I);return z.useEffect(()=>{U&&!A?(E.current===null&&(E.current=setTimeout(()=>{M(!0)},500)),I!==j.current&&(clearTimeout(E.current),E.current=setTimeout(()=>{M(!0)},500))):U||(M(!1),clearTimeout(E.current),E.current=null),j.current=I},[U,A,I]),D.createElement(qs,{within:!0,isTextInput:!0,focusClass:Le(fr(mr),"is-focused"),focusRingClass:Le(fr(mr),"focus-ring"),autoFocus:d},D.createElement("div",{...g,ref:r,style:h,className:Le(fr(mr),"spectrum-InputGroup",{"spectrum-InputGroup--quiet":n,"is-disabled":i,"spectrum-InputGroup--invalid":a==="invalid"&&!i,"is-hovered":b},p)},D.createElement(hK,{inputProps:o,inputRef:l,UNSAFE_className:Le(fr(mr),"spectrum-InputGroup-field"),inputClassName:Le(fr(mr),"spectrum-InputGroup-input"),validationIconClassName:Le(fr(mr),"spectrum-InputGroup-input-validationIcon"),isDisabled:i,isQuiet:n,validationState:a,isLoading:A&&($||S==="manual"||v==="loading"),loadingIndicator:v!=null&&N,disableFocusRing:!0}),D.createElement(Sm,{preventFocusOnPress:!0,isPressed:$},D.createElement(zae,{...u,ref:c,UNSAFE_className:Le(fr(mr),"spectrum-FieldButton"),isQuiet:n,validationState:a},D.createElement(iM,{UNSAFE_className:Le(fr(mr),"spectrum-Dropdown-chevron")})))))}),iEe=D.forwardRef(jse);function Wse(e,t){e=_a(e,"content");let{children:r,...n}=e,{styleProps:i}=Dr(n),a=Bn(t);return D.createElement("section",{...Gr(n),...i,ref:a},D.createElement(wm,null,r))}const aEe=z.forwardRef(Wse);function Vse(e){return e&&e.__esModule?e.default:e}function rp(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var Tc={};rp(Tc,"spectrum-Rule",()=>HA,e=>HA=e);rp(Tc,"spectrum-Rule--large",()=>GA,e=>GA=e);rp(Tc,"spectrum-Rule--medium",()=>WA,e=>WA=e);rp(Tc,"spectrum-Rule--small",()=>VA,e=>VA=e);rp(Tc,"spectrum-Rule--horizontal",()=>KA,e=>KA=e);rp(Tc,"spectrum-Rule--vertical",()=>qA,e=>qA=e);var HA,GA,WA,VA,KA,qA;HA="spectrum-Rule_612bb8";GA="spectrum-Rule--large_612bb8";WA="spectrum-Rule--medium_612bb8";VA="spectrum-Rule--small_612bb8";KA="spectrum-Rule--horizontal_612bb8";qA="spectrum-Rule--vertical_612bb8";let Kse={S:"small",M:"medium",L:"large"};function qse(e,t){e=_a(e,"divider");let{size:r="L",orientation:n="horizontal",...i}=e,a=Bn(t),{styleProps:o}=Dr(i),l=Kse[r],u="hr";n==="vertical"&&(u="div");let{separatorProps:c}=tG({...e,elementType:u});return D.createElement(u,{...o,className:Le(Vse(Tc),"spectrum-Rule",`spectrum-Rule--${l}`,{"spectrum-Rule--vertical":n==="vertical","spectrum-Rule--horizontal":n==="horizontal"},o.className),ref:a,...c})}let oEe=D.forwardRef(qse);function Ai(e){return e&&e.__esModule?e.default:e}function dn(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}const kq=D.createContext(null);var Fq={},Nq={};Nq={alert:"تنبيه",dismiss:"تجاهل"};var Lq={};Lq={alert:"Сигнал",dismiss:"Отхвърляне"};var Dq={};Dq={alert:"Výstraha",dismiss:"Odstranit"};var Bq={};Bq={alert:"Advarsel",dismiss:"Luk"};var zq={};zq={alert:"Warnhinweis",dismiss:"Schließen"};var Uq={};Uq={alert:"Ειδοποίηση",dismiss:"Απόρριψη"};var jq={};jq={dismiss:"Dismiss",alert:"Alert"};var Hq={};Hq={alert:"Alerta",dismiss:"Descartar"};var Gq={};Gq={alert:"Teade",dismiss:"Lõpeta"};var Wq={};Wq={alert:"Hälytys",dismiss:"Hylkää"};var Vq={};Vq={alert:"Alerte",dismiss:"Rejeter"};var Kq={};Kq={alert:"התראה",dismiss:"התעלם"};var qq={};qq={alert:"Upozorenje",dismiss:"Odbaci"};var Yq={};Yq={alert:"Figyelmeztetés",dismiss:"Elutasítás"};var Xq={};Xq={alert:"Avviso",dismiss:"Ignora"};var Qq={};Qq={alert:"アラート",dismiss:"閉じる"};var Zq={};Zq={alert:"경고",dismiss:"무시"};var Jq={};Jq={alert:"Įspėjimas",dismiss:"Atmesti"};var eY={};eY={alert:"Brīdinājums",dismiss:"Nerādīt"};var tY={};tY={alert:"Varsel",dismiss:"Lukk"};var rY={};rY={alert:"Melding",dismiss:"Negeren"};var nY={};nY={alert:"Ostrzeżenie",dismiss:"Zignoruj"};var iY={};iY={alert:"Alerta",dismiss:"Descartar"};var aY={};aY={alert:"Alerta",dismiss:"Dispensar"};var oY={};oY={alert:"Alertă",dismiss:"Revocare"};var lY={};lY={alert:"Предупреждение",dismiss:"Пропустить"};var sY={};sY={alert:"Upozornenie",dismiss:"Zrušiť"};var uY={};uY={alert:"Opozorilo",dismiss:"Opusti"};var cY={};cY={alert:"Upozorenje",dismiss:"Odbaci"};var fY={};fY={alert:"Varning",dismiss:"Avvisa"};var dY={};dY={alert:"Uyarı",dismiss:"Kapat"};var pY={};pY={alert:"Сигнал тривоги",dismiss:"Скасувати"};var hY={};hY={alert:"警报",dismiss:"取消"};var vY={};vY={alert:"警示",dismiss:"關閉"};Fq={"ar-AE":Nq,"bg-BG":Lq,"cs-CZ":Dq,"da-DK":Bq,"de-DE":zq,"el-GR":Uq,"en-US":jq,"es-ES":Hq,"et-EE":Gq,"fi-FI":Wq,"fr-FR":Vq,"he-IL":Kq,"hr-HR":qq,"hu-HU":Yq,"it-IT":Xq,"ja-JP":Qq,"ko-KR":Zq,"lt-LT":Jq,"lv-LV":eY,"nb-NO":tY,"nl-NL":rY,"pl-PL":nY,"pt-BR":iY,"pt-PT":aY,"ro-RO":oY,"ru-RU":lY,"sk-SK":sY,"sl-SI":uY,"sr-SP":cY,"sv-SE":fY,"tr-TR":dY,"uk-UA":pY,"zh-CN":hY,"zh-TW":vY};var vr={};dn(vr,"spectrum-Dialog",()=>YA,e=>YA=e);dn(vr,"spectrum-Dialog--small",()=>XA,e=>XA=e);dn(vr,"spectrum-Dialog--medium",()=>QA,e=>QA=e);dn(vr,"spectrum-Dialog--large",()=>ZA,e=>ZA=e);dn(vr,"spectrum-Dialog-hero",()=>JA,e=>JA=e);dn(vr,"spectrum-Dialog-grid",()=>eC,e=>eC=e);dn(vr,"spectrum-Dialog-heading",()=>tC,e=>tC=e);dn(vr,"spectrum-Dialog-heading--noHeader",()=>rC,e=>rC=e);dn(vr,"spectrum-Dialog-heading--noTypeIcon",()=>nC,e=>nC=e);dn(vr,"spectrum-Dialog-header",()=>iC,e=>iC=e);dn(vr,"spectrum-Dialog-header--noTypeIcon",()=>aC,e=>aC=e);dn(vr,"spectrum-Dialog-typeIcon",()=>oC,e=>oC=e);dn(vr,"spectrum-Dialog-divider",()=>lC,e=>lC=e);dn(vr,"spectrum-Dialog--noDivider",()=>sC,e=>sC=e);dn(vr,"spectrum-Dialog-content",()=>uC,e=>uC=e);dn(vr,"spectrum-Dialog-footer",()=>cC,e=>cC=e);dn(vr,"spectrum-Button",()=>fC,e=>fC=e);dn(vr,"spectrum-Dialog-buttonGroup",()=>dC,e=>dC=e);dn(vr,"spectrum-Dialog-buttonGroup--noFooter",()=>pC,e=>pC=e);dn(vr,"spectrum-Dialog--dismissable",()=>hC,e=>hC=e);dn(vr,"spectrum-Dialog-closeButton",()=>vC,e=>vC=e);dn(vr,"spectrum-Dialog--error",()=>mC,e=>mC=e);dn(vr,"spectrum-Dialog--fullscreen",()=>gC,e=>gC=e);dn(vr,"spectrum-Dialog--fullscreenTakeover",()=>yC,e=>yC=e);dn(vr,"spectrum-Dialog--warning",()=>bC,e=>bC=e);var YA,XA,QA,ZA,JA,eC,tC,rC,nC,iC,aC,oC,lC,sC,uC,cC,fC,dC,pC,hC,vC,mC,gC,yC,bC;YA="spectrum-Dialog_6d8b48";XA="spectrum-Dialog--small_6d8b48";QA="spectrum-Dialog--medium_6d8b48";ZA="spectrum-Dialog--large_6d8b48";JA="spectrum-Dialog-hero_6d8b48";eC="spectrum-Dialog-grid_6d8b48";tC="spectrum-Dialog-heading_6d8b48";rC="spectrum-Dialog-heading--noHeader_6d8b48";nC="spectrum-Dialog-heading--noTypeIcon_6d8b48";iC="spectrum-Dialog-header_6d8b48";aC="spectrum-Dialog-header--noTypeIcon_6d8b48";oC="spectrum-Dialog-typeIcon_6d8b48";lC="spectrum-Dialog-divider_6d8b48";sC="spectrum-Dialog--noDivider_6d8b48";uC="spectrum-Dialog-content_6d8b48";cC="spectrum-Dialog-footer_6d8b48";fC="spectrum-Button_6d8b48";dC="spectrum-Dialog-buttonGroup_6d8b48";pC="spectrum-Dialog-buttonGroup--noFooter_6d8b48";hC="spectrum-Dialog--dismissable_6d8b48";vC="spectrum-Dialog-closeButton_6d8b48";mC="spectrum-Dialog--error_6d8b48";gC="spectrum-Dialog--fullscreen_6d8b48";yC="spectrum-Dialog--fullscreenTakeover_6d8b48";bC="spectrum-Dialog--warning_6d8b48";let JI={S:"small",M:"medium",L:"large",fullscreen:"fullscreen",fullscreenTakeover:"fullscreenTakeover"};function Yse(e,t){e=_a(e,"dialog");let{type:r="modal",...n}=z.useContext(kq)||{},{children:i,isDismissable:a=n.isDismissable,onDismiss:o=n.onClose,size:l,...u}=e,c=Va(Ai(Fq)),{styleProps:d}=Dr(u);l=r==="popover"?l||"S":l||"L";let h=Bn(t),p=z.useRef(),v=JI[r]||JI[l],{dialogProps:$,titleProps:S}=JK(tr(n,e),h),g=ed(`.${Ai(vr)["spectrum-Dialog-header"]}`,Jf(p)),b=ed(`.${Ai(vr)["spectrum-Dialog-heading"]}`,Jf(p)),_=ed(`.${Ai(vr)["spectrum-Dialog-footer"]}`,Jf(p)),E=ed(`.${Ai(vr)["spectrum-Dialog-typeIcon"]}`,Jf(p)),A=z.useMemo(()=>({hero:{UNSAFE_className:Ai(vr)["spectrum-Dialog-hero"]},heading:{UNSAFE_className:Le(Ai(vr),"spectrum-Dialog-heading",{"spectrum-Dialog-heading--noHeader":!g,"spectrum-Dialog-heading--noTypeIcon":!E}),level:2,...S},header:{UNSAFE_className:Le(Ai(vr),"spectrum-Dialog-header",{"spectrum-Dialog-header--noHeading":!b,"spectrum-Dialog-header--noTypeIcon":!E})},typeIcon:{UNSAFE_className:Ai(vr)["spectrum-Dialog-typeIcon"]},divider:{UNSAFE_className:Ai(vr)["spectrum-Dialog-divider"],size:"M"},content:{UNSAFE_className:Ai(vr)["spectrum-Dialog-content"]},footer:{UNSAFE_className:Ai(vr)["spectrum-Dialog-footer"]},buttonGroup:{UNSAFE_className:Le(Ai(vr),"spectrum-Dialog-buttonGroup",{"spectrum-Dialog-buttonGroup--noFooter":!_}),align:"end"}}),[_,g,S]);return D.createElement("section",{...d,...$,className:Le(Ai(vr),"spectrum-Dialog",{[`spectrum-Dialog--${v}`]:v,"spectrum-Dialog--dismissable":a},d.className),ref:h},D.createElement(fM,{ref:p,UNSAFE_className:Ai(vr)["spectrum-Dialog-grid"]},D.createElement(Ka,{slots:A},i),a&&D.createElement(Ub,{UNSAFE_className:Ai(vr)["spectrum-Dialog-closeButton"],isQuiet:!0,"aria-label":c.format("dismiss"),onPress:o},D.createElement(nW,null))))}let lEe=D.forwardRef(Yse);function $C(e){let{children:t,type:r="modal",mobileType:n=r==="popover"?"modal":r,hideArrow:i,targetRef:a,isDismissable:o,isKeyboardDismissDisabled:l,...u}=e;if(!Array.isArray(t)||t.length>2)throw new Error("DialogTrigger must have exactly 2 children");let[c,d]=t;XP()&&(r!=="modal"&&n==="modal"&&(o=!0),r=n);let p=uM(e),v=z.useRef(!1);z.useEffect(()=>{v.current=p.isOpen},[p.isOpen]);let $=z.useRef(!1),S=()=>$.current=!0,g=()=>$.current=!1;if(z.useEffect(()=>()=>{(v.current||$.current)&&r!=="popover"&&r!=="tray"&&console.warn("A DialogTrigger unmounted while open. This is likely due to being placed within a trigger that unmounts or inside a conditional. Consider using a DialogContainer instead.")},[]),r==="popover")return D.createElement(Xse,{...u,state:p,targetRef:a,trigger:c,content:d,isKeyboardDismissDisabled:l,hideArrow:i});let b=()=>{switch(r){case"fullscreen":case"fullscreenTakeover":case"modal":return D.createElement(poe,{state:p,isDismissable:r==="modal"?o:!1,type:r,isKeyboardDismissDisabled:l,onExiting:S,onExited:g},typeof d=="function"?d(p.close):d);case"tray":return D.createElement(sM,{state:p,isKeyboardDismissDisabled:l},typeof d=="function"?d(p.close):d)}};return D.createElement(mY,{type:r,state:p,isDismissable:o,trigger:c,overlay:b()})}$C.getCollectionNode=function*(e){let[t]=D.Children.toArray(e.children),[,r]=e.children;yield{element:t,wrapper:n=>D.createElement($C,{key:n.key,...e},n,r)}};let sEe=$C;function Xse({state:e,targetRef:t,trigger:r,content:n,hideArrow:i,...a}){let o=z.useRef(),{triggerProps:l,overlayProps:u}=tM({type:"dialog"},e,o),c={...l,ref:t?void 0:o},d=D.createElement(lM,{...a,hideArrow:i,triggerRef:t||o,state:e},typeof n=="function"?n(e.close):n);return D.createElement(mY,{type:"popover",state:e,triggerProps:c,dialogProps:u,trigger:r,overlay:d})}function mY({type:e,state:t,isDismissable:r,dialogProps:n={},triggerProps:i={},overlay:a,trigger:o}){let l={type:e,onClose:t.close,isDismissable:r,...n};return D.createElement(z.Fragment,null,D.createElement(Sm,{...i,onPress:t.toggle,isPressed:t.isOpen&&e!=="modal"&&e!=="fullscreen"&&e!=="fullscreenTakeover"},o),D.createElement(kq.Provider,{value:l},a))}function Px(e){return e&&e.__esModule?e.default:e}function Kb(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var Qu={};Kb(Qu,"spectrum-IllustratedMessage",()=>xC,e=>xC=e);Kb(Qu,"spectrum-IllustratedMessage-heading",()=>wC,e=>wC=e);Kb(Qu,"spectrum-IllustratedMessage-description",()=>_C,e=>_C=e);Kb(Qu,"spectrum-IllustratedMessage--cta",()=>SC,e=>SC=e);var xC,wC,_C,SC;xC="spectrum-IllustratedMessage_02bd98";wC="spectrum-IllustratedMessage-heading_02bd98";_C="spectrum-IllustratedMessage-description_02bd98";SC="spectrum-IllustratedMessage--cta_02bd98";function Qse(e,t){e=_a(e,"illustration");let{children:r,...n}=e,{styleProps:i}=Dr(n),a=Le(Px(Qu),"spectrum-IllustratedMessage-heading"),o=Le(Px(Qu),"spectrum-IllustratedMessage-description"),l={heading:{UNSAFE_className:a},content:{UNSAFE_className:o}};return D.createElement(JH,{...Gr(n),UNSAFE_style:i.style,isHidden:i.hidden,UNSAFE_className:Le(Px(Qu),"spectrum-IllustratedMessage",i.className),ref:t},D.createElement(wm,null,D.createElement(Ka,{slots:l},r)))}let uEe=z.forwardRef(Qse);function Nh(e){return e&&e.__esModule?e.default:e}function vo(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var gY={};vo(gY,"spectrum--darkest",()=>EC,e=>EC=e);var EC;EC="spectrum--darkest_256eeb";var Ys={};vo(Ys,"spectrum",()=>AC,e=>AC=e);vo(Ys,"spectrum--medium",()=>CC,e=>CC=e);vo(Ys,"spectrum--large",()=>TC,e=>TC=e);vo(Ys,"spectrum--darkest",()=>PC,e=>PC=e);vo(Ys,"spectrum--dark",()=>MC,e=>MC=e);vo(Ys,"spectrum--light",()=>OC,e=>OC=e);vo(Ys,"spectrum--lightest",()=>RC,e=>RC=e);var AC,CC,TC,PC,MC,OC,RC;AC="spectrum_9e130c";CC="spectrum--medium_9e130c";TC="spectrum--large_9e130c";PC="spectrum--darkest_9e130c";MC="spectrum--dark_9e130c";OC="spectrum--light_9e130c";RC="spectrum--lightest_9e130c";var yY={};vo(yY,"spectrum--large",()=>IC,e=>IC=e);var IC;IC="spectrum--large_c40598";var bY={};vo(bY,"spectrum--light",()=>kC,e=>kC=e);var kC;kC="spectrum--light_a40724";var $Y={};vo($Y,"spectrum--medium",()=>FC,e=>FC=e);var FC;FC="spectrum--medium_4b172c";let cEe={global:Nh(Ys),light:Nh(bY),dark:Nh(gY),medium:Nh($Y),large:Nh(yY)};function ek(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 Bt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ek(Object(r),!0).forEach(function(n){Zn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ek(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ly(e){return Ly=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},Ly(e)}function Zse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tk(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 Jse(e,t,r){return t&&tk(e.prototype,t),r&&tk(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yM(e,t){return tue(e)||nue(e,t)||xY(e,t)||aue()}function Mm(e){return eue(e)||rue(e)||xY(e)||iue()}function eue(e){if(Array.isArray(e))return NC(e)}function tue(e){if(Array.isArray(e))return e}function rue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nue(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(u){a=!0,l=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function xY(e,t){if(e){if(typeof e=="string")return NC(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 NC(e,t)}}function NC(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 iue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
43
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
44
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var rk=function(){},bM={},wY={},_Y=null,SY={mark:rk,measure:rk};try{typeof window<"u"&&(bM=window),typeof document<"u"&&(wY=document),typeof MutationObserver<"u"&&(_Y=MutationObserver),typeof performance<"u"&&(SY=performance)}catch{}var oue=bM.navigator||{},nk=oue.userAgent,ik=nk===void 0?"":nk,zs=bM,fn=wY,ak=_Y,Bg=SY;zs.document;var Ll=!!fn.documentElement&&!!fn.head&&typeof fn.addEventListener=="function"&&typeof fn.createElement=="function",EY=~ik.indexOf("MSIE")||~ik.indexOf("Trident/"),zg,Ug,jg,Hg,Gg,Ml="___FONT_AWESOME___",LC=16,AY="fa",CY="svg-inline--fa",cc="data-fa-i2svg",DC="data-fa-pseudo-element",lue="data-fa-pseudo-element-pending",$M="data-prefix",xM="data-icon",ok="fontawesome-i2svg",sue="async",uue=["HTML","HEAD","STYLE","SCRIPT"],TY=function(){try{return!0}catch{return!1}}(),un="classic",En="sharp",wM=[un,En];function Om(e){return new Proxy(e,{get:function(r,n){return n in r?r[n]:r[un]}})}var qv=Om((zg={},Zn(zg,un,{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"}),Zn(zg,En,{fa:"solid",fass:"solid","fa-solid":"solid"}),zg)),Yv=Om((Ug={},Zn(Ug,un,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),Zn(Ug,En,{solid:"fass"}),Ug)),Xv=Om((jg={},Zn(jg,un,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),Zn(jg,En,{fass:"fa-solid"}),jg)),cue=Om((Hg={},Zn(Hg,un,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),Zn(Hg,En,{"fa-solid":"fass"}),Hg)),fue=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,PY="fa-layers-text",due=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,pue=Om((Gg={},Zn(Gg,un,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),Zn(Gg,En,{900:"fass"}),Gg)),MY=[1,2,3,4,5,6,7,8,9,10],hue=MY.concat([11,12,13,14,15,16,17,18,19,20]),vue=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ku={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Qv=new Set;Object.keys(Yv[un]).map(Qv.add.bind(Qv));Object.keys(Yv[En]).map(Qv.add.bind(Qv));var mue=[].concat(wM,Mm(Qv),["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",Ku.GROUP,Ku.SWAP_OPACITY,Ku.PRIMARY,Ku.SECONDARY]).concat(MY.map(function(e){return"".concat(e,"x")})).concat(hue.map(function(e){return"w-".concat(e)})),wv=zs.FontAwesomeConfig||{};function gue(e){var t=fn.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function yue(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(fn&&typeof fn.querySelector=="function"){var bue=[["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"]];bue.forEach(function(e){var t=yM(e,2),r=t[0],n=t[1],i=yue(gue(r));i!=null&&(wv[n]=i)})}var OY={styleDefault:"solid",familyDefault:"classic",cssPrefix:AY,replacementClass:CY,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};wv.familyPrefix&&(wv.cssPrefix=wv.familyPrefix);var Id=Bt(Bt({},OY),wv);Id.autoReplaceSvg||(Id.observeMutations=!1);var Kt={};Object.keys(OY).forEach(function(e){Object.defineProperty(Kt,e,{enumerable:!0,set:function(r){Id[e]=r,_v.forEach(function(n){return n(Kt)})},get:function(){return Id[e]}})});Object.defineProperty(Kt,"familyPrefix",{enumerable:!0,set:function(t){Id.cssPrefix=t,_v.forEach(function(r){return r(Kt)})},get:function(){return Id.cssPrefix}});zs.FontAwesomeConfig=Kt;var _v=[];function $ue(e){return _v.push(e),function(){_v.splice(_v.indexOf(e),1)}}var cs=LC,No={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function xue(e){if(!(!e||!Ll)){var t=fn.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var r=fn.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 fn.head.insertBefore(t,n),e}}var wue="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Zv(){for(var e=12,t="";e-- >0;)t+=wue[Math.random()*62|0];return t}function np(e){for(var t=[],r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function _M(e){return e.classList?np(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function RY(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function _ue(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,'="').concat(RY(e[r]),'" ')},"").trim()}function qb(e){return Object.keys(e||{}).reduce(function(t,r){return t+"".concat(r,": ").concat(e[r].trim(),";")},"")}function SM(e){return e.size!==No.size||e.x!==No.x||e.y!==No.y||e.rotate!==No.rotate||e.flipX||e.flipY}function Sue(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)"),u={transform:"".concat(a," ").concat(o," ").concat(l)},c={transform:"translate(".concat(n/2*-1," -256)")};return{outer:i,inner:u,path:c}}function Eue(e){var t=e.transform,r=e.width,n=r===void 0?LC:r,i=e.height,a=i===void 0?LC:i,o=e.startCentered,l=o===void 0?!1:o,u="";return l&&EY?u+="translate(".concat(t.x/cs-n/2,"em, ").concat(t.y/cs-a/2,"em) "):l?u+="translate(calc(-50% + ".concat(t.x/cs,"em), calc(-50% + ").concat(t.y/cs,"em)) "):u+="translate(".concat(t.x/cs,"em, ").concat(t.y/cs,"em) "),u+="scale(".concat(t.size/cs*(t.flipX?-1:1),", ").concat(t.size/cs*(t.flipY?-1:1),") "),u+="rotate(".concat(t.rotate,"deg) "),u}var Aue=`:root, :host {
45
+ --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";
46
+ --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";
47
+ --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";
48
+ --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";
49
+ --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
50
+ --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
51
+ --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
52
+ }
53
+
54
+ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
55
+ overflow: visible;
56
+ box-sizing: content-box;
57
+ }
58
+
59
+ .svg-inline--fa {
60
+ display: var(--fa-display, inline-block);
61
+ height: 1em;
62
+ overflow: visible;
63
+ vertical-align: -0.125em;
64
+ }
65
+ .svg-inline--fa.fa-2xs {
66
+ vertical-align: 0.1em;
67
+ }
68
+ .svg-inline--fa.fa-xs {
69
+ vertical-align: 0em;
70
+ }
71
+ .svg-inline--fa.fa-sm {
72
+ vertical-align: -0.0714285705em;
73
+ }
74
+ .svg-inline--fa.fa-lg {
75
+ vertical-align: -0.2em;
76
+ }
77
+ .svg-inline--fa.fa-xl {
78
+ vertical-align: -0.25em;
79
+ }
80
+ .svg-inline--fa.fa-2xl {
81
+ vertical-align: -0.3125em;
82
+ }
83
+ .svg-inline--fa.fa-pull-left {
84
+ margin-right: var(--fa-pull-margin, 0.3em);
85
+ width: auto;
86
+ }
87
+ .svg-inline--fa.fa-pull-right {
88
+ margin-left: var(--fa-pull-margin, 0.3em);
89
+ width: auto;
90
+ }
91
+ .svg-inline--fa.fa-li {
92
+ width: var(--fa-li-width, 2em);
93
+ top: 0.25em;
94
+ }
95
+ .svg-inline--fa.fa-fw {
96
+ width: var(--fa-fw-width, 1.25em);
97
+ }
98
+
99
+ .fa-layers svg.svg-inline--fa {
100
+ bottom: 0;
101
+ left: 0;
102
+ margin: auto;
103
+ position: absolute;
104
+ right: 0;
105
+ top: 0;
106
+ }
107
+
108
+ .fa-layers-counter, .fa-layers-text {
109
+ display: inline-block;
110
+ position: absolute;
111
+ text-align: center;
112
+ }
113
+
114
+ .fa-layers {
115
+ display: inline-block;
116
+ height: 1em;
117
+ position: relative;
118
+ text-align: center;
119
+ vertical-align: -0.125em;
120
+ width: 1em;
121
+ }
122
+ .fa-layers svg.svg-inline--fa {
123
+ -webkit-transform-origin: center center;
124
+ transform-origin: center center;
125
+ }
126
+
127
+ .fa-layers-text {
128
+ left: 50%;
129
+ top: 50%;
130
+ -webkit-transform: translate(-50%, -50%);
131
+ transform: translate(-50%, -50%);
132
+ -webkit-transform-origin: center center;
133
+ transform-origin: center center;
134
+ }
135
+
136
+ .fa-layers-counter {
137
+ background-color: var(--fa-counter-background-color, #ff253a);
138
+ border-radius: var(--fa-counter-border-radius, 1em);
139
+ box-sizing: border-box;
140
+ color: var(--fa-inverse, #fff);
141
+ line-height: var(--fa-counter-line-height, 1);
142
+ max-width: var(--fa-counter-max-width, 5em);
143
+ min-width: var(--fa-counter-min-width, 1.5em);
144
+ overflow: hidden;
145
+ padding: var(--fa-counter-padding, 0.25em 0.5em);
146
+ right: var(--fa-right, 0);
147
+ text-overflow: ellipsis;
148
+ top: var(--fa-top, 0);
149
+ -webkit-transform: scale(var(--fa-counter-scale, 0.25));
150
+ transform: scale(var(--fa-counter-scale, 0.25));
151
+ -webkit-transform-origin: top right;
152
+ transform-origin: top right;
153
+ }
154
+
155
+ .fa-layers-bottom-right {
156
+ bottom: var(--fa-bottom, 0);
157
+ right: var(--fa-right, 0);
158
+ top: auto;
159
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
160
+ transform: scale(var(--fa-layers-scale, 0.25));
161
+ -webkit-transform-origin: bottom right;
162
+ transform-origin: bottom right;
163
+ }
164
+
165
+ .fa-layers-bottom-left {
166
+ bottom: var(--fa-bottom, 0);
167
+ left: var(--fa-left, 0);
168
+ right: auto;
169
+ top: auto;
170
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
171
+ transform: scale(var(--fa-layers-scale, 0.25));
172
+ -webkit-transform-origin: bottom left;
173
+ transform-origin: bottom left;
174
+ }
175
+
176
+ .fa-layers-top-right {
177
+ top: var(--fa-top, 0);
178
+ right: var(--fa-right, 0);
179
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
180
+ transform: scale(var(--fa-layers-scale, 0.25));
181
+ -webkit-transform-origin: top right;
182
+ transform-origin: top right;
183
+ }
184
+
185
+ .fa-layers-top-left {
186
+ left: var(--fa-left, 0);
187
+ right: auto;
188
+ top: var(--fa-top, 0);
189
+ -webkit-transform: scale(var(--fa-layers-scale, 0.25));
190
+ transform: scale(var(--fa-layers-scale, 0.25));
191
+ -webkit-transform-origin: top left;
192
+ transform-origin: top left;
193
+ }
194
+
195
+ .fa-1x {
196
+ font-size: 1em;
197
+ }
198
+
199
+ .fa-2x {
200
+ font-size: 2em;
201
+ }
202
+
203
+ .fa-3x {
204
+ font-size: 3em;
205
+ }
206
+
207
+ .fa-4x {
208
+ font-size: 4em;
209
+ }
210
+
211
+ .fa-5x {
212
+ font-size: 5em;
213
+ }
214
+
215
+ .fa-6x {
216
+ font-size: 6em;
217
+ }
218
+
219
+ .fa-7x {
220
+ font-size: 7em;
221
+ }
222
+
223
+ .fa-8x {
224
+ font-size: 8em;
225
+ }
226
+
227
+ .fa-9x {
228
+ font-size: 9em;
229
+ }
230
+
231
+ .fa-10x {
232
+ font-size: 10em;
233
+ }
234
+
235
+ .fa-2xs {
236
+ font-size: 0.625em;
237
+ line-height: 0.1em;
238
+ vertical-align: 0.225em;
239
+ }
240
+
241
+ .fa-xs {
242
+ font-size: 0.75em;
243
+ line-height: 0.0833333337em;
244
+ vertical-align: 0.125em;
245
+ }
246
+
247
+ .fa-sm {
248
+ font-size: 0.875em;
249
+ line-height: 0.0714285718em;
250
+ vertical-align: 0.0535714295em;
251
+ }
252
+
253
+ .fa-lg {
254
+ font-size: 1.25em;
255
+ line-height: 0.05em;
256
+ vertical-align: -0.075em;
257
+ }
258
+
259
+ .fa-xl {
260
+ font-size: 1.5em;
261
+ line-height: 0.0416666682em;
262
+ vertical-align: -0.125em;
263
+ }
264
+
265
+ .fa-2xl {
266
+ font-size: 2em;
267
+ line-height: 0.03125em;
268
+ vertical-align: -0.1875em;
269
+ }
270
+
271
+ .fa-fw {
272
+ text-align: center;
273
+ width: 1.25em;
274
+ }
275
+
276
+ .fa-ul {
277
+ list-style-type: none;
278
+ margin-left: var(--fa-li-margin, 2.5em);
279
+ padding-left: 0;
280
+ }
281
+ .fa-ul > li {
282
+ position: relative;
283
+ }
284
+
285
+ .fa-li {
286
+ left: calc(var(--fa-li-width, 2em) * -1);
287
+ position: absolute;
288
+ text-align: center;
289
+ width: var(--fa-li-width, 2em);
290
+ line-height: inherit;
291
+ }
292
+
293
+ .fa-border {
294
+ border-color: var(--fa-border-color, #eee);
295
+ border-radius: var(--fa-border-radius, 0.1em);
296
+ border-style: var(--fa-border-style, solid);
297
+ border-width: var(--fa-border-width, 0.08em);
298
+ padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
299
+ }
300
+
301
+ .fa-pull-left {
302
+ float: left;
303
+ margin-right: var(--fa-pull-margin, 0.3em);
304
+ }
305
+
306
+ .fa-pull-right {
307
+ float: right;
308
+ margin-left: var(--fa-pull-margin, 0.3em);
309
+ }
310
+
311
+ .fa-beat {
312
+ -webkit-animation-name: fa-beat;
313
+ animation-name: fa-beat;
314
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
315
+ animation-delay: var(--fa-animation-delay, 0s);
316
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
317
+ animation-direction: var(--fa-animation-direction, normal);
318
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
319
+ animation-duration: var(--fa-animation-duration, 1s);
320
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
321
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
322
+ -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
323
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
324
+ }
325
+
326
+ .fa-bounce {
327
+ -webkit-animation-name: fa-bounce;
328
+ animation-name: fa-bounce;
329
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
330
+ animation-delay: var(--fa-animation-delay, 0s);
331
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
332
+ animation-direction: var(--fa-animation-direction, normal);
333
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
334
+ animation-duration: var(--fa-animation-duration, 1s);
335
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
336
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
337
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
338
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
339
+ }
340
+
341
+ .fa-fade {
342
+ -webkit-animation-name: fa-fade;
343
+ animation-name: fa-fade;
344
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
345
+ animation-delay: var(--fa-animation-delay, 0s);
346
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
347
+ animation-direction: var(--fa-animation-direction, normal);
348
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
349
+ animation-duration: var(--fa-animation-duration, 1s);
350
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
351
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
352
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
353
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
354
+ }
355
+
356
+ .fa-beat-fade {
357
+ -webkit-animation-name: fa-beat-fade;
358
+ animation-name: fa-beat-fade;
359
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
360
+ animation-delay: var(--fa-animation-delay, 0s);
361
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
362
+ animation-direction: var(--fa-animation-direction, normal);
363
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
364
+ animation-duration: var(--fa-animation-duration, 1s);
365
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
366
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
367
+ -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
368
+ animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
369
+ }
370
+
371
+ .fa-flip {
372
+ -webkit-animation-name: fa-flip;
373
+ animation-name: fa-flip;
374
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
375
+ animation-delay: var(--fa-animation-delay, 0s);
376
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
377
+ animation-direction: var(--fa-animation-direction, normal);
378
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
379
+ animation-duration: var(--fa-animation-duration, 1s);
380
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
381
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
382
+ -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);
383
+ animation-timing-function: var(--fa-animation-timing, ease-in-out);
384
+ }
385
+
386
+ .fa-shake {
387
+ -webkit-animation-name: fa-shake;
388
+ animation-name: fa-shake;
389
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
390
+ animation-delay: var(--fa-animation-delay, 0s);
391
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
392
+ animation-direction: var(--fa-animation-direction, normal);
393
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
394
+ animation-duration: var(--fa-animation-duration, 1s);
395
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
396
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
397
+ -webkit-animation-timing-function: var(--fa-animation-timing, linear);
398
+ animation-timing-function: var(--fa-animation-timing, linear);
399
+ }
400
+
401
+ .fa-spin {
402
+ -webkit-animation-name: fa-spin;
403
+ animation-name: fa-spin;
404
+ -webkit-animation-delay: var(--fa-animation-delay, 0s);
405
+ animation-delay: var(--fa-animation-delay, 0s);
406
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
407
+ animation-direction: var(--fa-animation-direction, normal);
408
+ -webkit-animation-duration: var(--fa-animation-duration, 2s);
409
+ animation-duration: var(--fa-animation-duration, 2s);
410
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
411
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
412
+ -webkit-animation-timing-function: var(--fa-animation-timing, linear);
413
+ animation-timing-function: var(--fa-animation-timing, linear);
414
+ }
415
+
416
+ .fa-spin-reverse {
417
+ --fa-animation-direction: reverse;
418
+ }
419
+
420
+ .fa-pulse,
421
+ .fa-spin-pulse {
422
+ -webkit-animation-name: fa-spin;
423
+ animation-name: fa-spin;
424
+ -webkit-animation-direction: var(--fa-animation-direction, normal);
425
+ animation-direction: var(--fa-animation-direction, normal);
426
+ -webkit-animation-duration: var(--fa-animation-duration, 1s);
427
+ animation-duration: var(--fa-animation-duration, 1s);
428
+ -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);
429
+ animation-iteration-count: var(--fa-animation-iteration-count, infinite);
430
+ -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));
431
+ animation-timing-function: var(--fa-animation-timing, steps(8));
432
+ }
433
+
434
+ @media (prefers-reduced-motion: reduce) {
435
+ .fa-beat,
436
+ .fa-bounce,
437
+ .fa-fade,
438
+ .fa-beat-fade,
439
+ .fa-flip,
440
+ .fa-pulse,
441
+ .fa-shake,
442
+ .fa-spin,
443
+ .fa-spin-pulse {
444
+ -webkit-animation-delay: -1ms;
445
+ animation-delay: -1ms;
446
+ -webkit-animation-duration: 1ms;
447
+ animation-duration: 1ms;
448
+ -webkit-animation-iteration-count: 1;
449
+ animation-iteration-count: 1;
450
+ transition-delay: 0s;
451
+ transition-duration: 0s;
452
+ }
453
+ }
454
+ @-webkit-keyframes fa-beat {
455
+ 0%, 90% {
456
+ -webkit-transform: scale(1);
457
+ transform: scale(1);
458
+ }
459
+ 45% {
460
+ -webkit-transform: scale(var(--fa-beat-scale, 1.25));
461
+ transform: scale(var(--fa-beat-scale, 1.25));
462
+ }
463
+ }
464
+ @keyframes fa-beat {
465
+ 0%, 90% {
466
+ -webkit-transform: scale(1);
467
+ transform: scale(1);
468
+ }
469
+ 45% {
470
+ -webkit-transform: scale(var(--fa-beat-scale, 1.25));
471
+ transform: scale(var(--fa-beat-scale, 1.25));
472
+ }
473
+ }
474
+ @-webkit-keyframes fa-bounce {
475
+ 0% {
476
+ -webkit-transform: scale(1, 1) translateY(0);
477
+ transform: scale(1, 1) translateY(0);
478
+ }
479
+ 10% {
480
+ -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
481
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
482
+ }
483
+ 30% {
484
+ -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));
485
+ 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));
486
+ }
487
+ 50% {
488
+ -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
489
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
490
+ }
491
+ 57% {
492
+ -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
493
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
494
+ }
495
+ 64% {
496
+ -webkit-transform: scale(1, 1) translateY(0);
497
+ transform: scale(1, 1) translateY(0);
498
+ }
499
+ 100% {
500
+ -webkit-transform: scale(1, 1) translateY(0);
501
+ transform: scale(1, 1) translateY(0);
502
+ }
503
+ }
504
+ @keyframes fa-bounce {
505
+ 0% {
506
+ -webkit-transform: scale(1, 1) translateY(0);
507
+ transform: scale(1, 1) translateY(0);
508
+ }
509
+ 10% {
510
+ -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
511
+ transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
512
+ }
513
+ 30% {
514
+ -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));
515
+ 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));
516
+ }
517
+ 50% {
518
+ -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
519
+ transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
520
+ }
521
+ 57% {
522
+ -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
523
+ transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
524
+ }
525
+ 64% {
526
+ -webkit-transform: scale(1, 1) translateY(0);
527
+ transform: scale(1, 1) translateY(0);
528
+ }
529
+ 100% {
530
+ -webkit-transform: scale(1, 1) translateY(0);
531
+ transform: scale(1, 1) translateY(0);
532
+ }
533
+ }
534
+ @-webkit-keyframes fa-fade {
535
+ 50% {
536
+ opacity: var(--fa-fade-opacity, 0.4);
537
+ }
538
+ }
539
+ @keyframes fa-fade {
540
+ 50% {
541
+ opacity: var(--fa-fade-opacity, 0.4);
542
+ }
543
+ }
544
+ @-webkit-keyframes fa-beat-fade {
545
+ 0%, 100% {
546
+ opacity: var(--fa-beat-fade-opacity, 0.4);
547
+ -webkit-transform: scale(1);
548
+ transform: scale(1);
549
+ }
550
+ 50% {
551
+ opacity: 1;
552
+ -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
553
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
554
+ }
555
+ }
556
+ @keyframes fa-beat-fade {
557
+ 0%, 100% {
558
+ opacity: var(--fa-beat-fade-opacity, 0.4);
559
+ -webkit-transform: scale(1);
560
+ transform: scale(1);
561
+ }
562
+ 50% {
563
+ opacity: 1;
564
+ -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));
565
+ transform: scale(var(--fa-beat-fade-scale, 1.125));
566
+ }
567
+ }
568
+ @-webkit-keyframes fa-flip {
569
+ 50% {
570
+ -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
571
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
572
+ }
573
+ }
574
+ @keyframes fa-flip {
575
+ 50% {
576
+ -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
577
+ transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
578
+ }
579
+ }
580
+ @-webkit-keyframes fa-shake {
581
+ 0% {
582
+ -webkit-transform: rotate(-15deg);
583
+ transform: rotate(-15deg);
584
+ }
585
+ 4% {
586
+ -webkit-transform: rotate(15deg);
587
+ transform: rotate(15deg);
588
+ }
589
+ 8%, 24% {
590
+ -webkit-transform: rotate(-18deg);
591
+ transform: rotate(-18deg);
592
+ }
593
+ 12%, 28% {
594
+ -webkit-transform: rotate(18deg);
595
+ transform: rotate(18deg);
596
+ }
597
+ 16% {
598
+ -webkit-transform: rotate(-22deg);
599
+ transform: rotate(-22deg);
600
+ }
601
+ 20% {
602
+ -webkit-transform: rotate(22deg);
603
+ transform: rotate(22deg);
604
+ }
605
+ 32% {
606
+ -webkit-transform: rotate(-12deg);
607
+ transform: rotate(-12deg);
608
+ }
609
+ 36% {
610
+ -webkit-transform: rotate(12deg);
611
+ transform: rotate(12deg);
612
+ }
613
+ 40%, 100% {
614
+ -webkit-transform: rotate(0deg);
615
+ transform: rotate(0deg);
616
+ }
617
+ }
618
+ @keyframes fa-shake {
619
+ 0% {
620
+ -webkit-transform: rotate(-15deg);
621
+ transform: rotate(-15deg);
622
+ }
623
+ 4% {
624
+ -webkit-transform: rotate(15deg);
625
+ transform: rotate(15deg);
626
+ }
627
+ 8%, 24% {
628
+ -webkit-transform: rotate(-18deg);
629
+ transform: rotate(-18deg);
630
+ }
631
+ 12%, 28% {
632
+ -webkit-transform: rotate(18deg);
633
+ transform: rotate(18deg);
634
+ }
635
+ 16% {
636
+ -webkit-transform: rotate(-22deg);
637
+ transform: rotate(-22deg);
638
+ }
639
+ 20% {
640
+ -webkit-transform: rotate(22deg);
641
+ transform: rotate(22deg);
642
+ }
643
+ 32% {
644
+ -webkit-transform: rotate(-12deg);
645
+ transform: rotate(-12deg);
646
+ }
647
+ 36% {
648
+ -webkit-transform: rotate(12deg);
649
+ transform: rotate(12deg);
650
+ }
651
+ 40%, 100% {
652
+ -webkit-transform: rotate(0deg);
653
+ transform: rotate(0deg);
654
+ }
655
+ }
656
+ @-webkit-keyframes fa-spin {
657
+ 0% {
658
+ -webkit-transform: rotate(0deg);
659
+ transform: rotate(0deg);
660
+ }
661
+ 100% {
662
+ -webkit-transform: rotate(360deg);
663
+ transform: rotate(360deg);
664
+ }
665
+ }
666
+ @keyframes fa-spin {
667
+ 0% {
668
+ -webkit-transform: rotate(0deg);
669
+ transform: rotate(0deg);
670
+ }
671
+ 100% {
672
+ -webkit-transform: rotate(360deg);
673
+ transform: rotate(360deg);
674
+ }
675
+ }
676
+ .fa-rotate-90 {
677
+ -webkit-transform: rotate(90deg);
678
+ transform: rotate(90deg);
679
+ }
680
+
681
+ .fa-rotate-180 {
682
+ -webkit-transform: rotate(180deg);
683
+ transform: rotate(180deg);
684
+ }
685
+
686
+ .fa-rotate-270 {
687
+ -webkit-transform: rotate(270deg);
688
+ transform: rotate(270deg);
689
+ }
690
+
691
+ .fa-flip-horizontal {
692
+ -webkit-transform: scale(-1, 1);
693
+ transform: scale(-1, 1);
694
+ }
695
+
696
+ .fa-flip-vertical {
697
+ -webkit-transform: scale(1, -1);
698
+ transform: scale(1, -1);
699
+ }
700
+
701
+ .fa-flip-both,
702
+ .fa-flip-horizontal.fa-flip-vertical {
703
+ -webkit-transform: scale(-1, -1);
704
+ transform: scale(-1, -1);
705
+ }
706
+
707
+ .fa-rotate-by {
708
+ -webkit-transform: rotate(var(--fa-rotate-angle, none));
709
+ transform: rotate(var(--fa-rotate-angle, none));
710
+ }
711
+
712
+ .fa-stack {
713
+ display: inline-block;
714
+ vertical-align: middle;
715
+ height: 2em;
716
+ position: relative;
717
+ width: 2.5em;
718
+ }
719
+
720
+ .fa-stack-1x,
721
+ .fa-stack-2x {
722
+ bottom: 0;
723
+ left: 0;
724
+ margin: auto;
725
+ position: absolute;
726
+ right: 0;
727
+ top: 0;
728
+ z-index: var(--fa-stack-z-index, auto);
729
+ }
730
+
731
+ .svg-inline--fa.fa-stack-1x {
732
+ height: 1em;
733
+ width: 1.25em;
734
+ }
735
+ .svg-inline--fa.fa-stack-2x {
736
+ height: 2em;
737
+ width: 2.5em;
738
+ }
739
+
740
+ .fa-inverse {
741
+ color: var(--fa-inverse, #fff);
742
+ }
743
+
744
+ .sr-only,
745
+ .fa-sr-only {
746
+ position: absolute;
747
+ width: 1px;
748
+ height: 1px;
749
+ padding: 0;
750
+ margin: -1px;
751
+ overflow: hidden;
752
+ clip: rect(0, 0, 0, 0);
753
+ white-space: nowrap;
754
+ border-width: 0;
755
+ }
756
+
757
+ .sr-only-focusable:not(:focus),
758
+ .fa-sr-only-focusable:not(:focus) {
759
+ position: absolute;
760
+ width: 1px;
761
+ height: 1px;
762
+ padding: 0;
763
+ margin: -1px;
764
+ overflow: hidden;
765
+ clip: rect(0, 0, 0, 0);
766
+ white-space: nowrap;
767
+ border-width: 0;
768
+ }
769
+
770
+ .svg-inline--fa .fa-primary {
771
+ fill: var(--fa-primary-color, currentColor);
772
+ opacity: var(--fa-primary-opacity, 1);
773
+ }
774
+
775
+ .svg-inline--fa .fa-secondary {
776
+ fill: var(--fa-secondary-color, currentColor);
777
+ opacity: var(--fa-secondary-opacity, 0.4);
778
+ }
779
+
780
+ .svg-inline--fa.fa-swap-opacity .fa-primary {
781
+ opacity: var(--fa-secondary-opacity, 0.4);
782
+ }
783
+
784
+ .svg-inline--fa.fa-swap-opacity .fa-secondary {
785
+ opacity: var(--fa-primary-opacity, 1);
786
+ }
787
+
788
+ .svg-inline--fa mask .fa-primary,
789
+ .svg-inline--fa mask .fa-secondary {
790
+ fill: black;
791
+ }
792
+
793
+ .fad.fa-inverse,
794
+ .fa-duotone.fa-inverse {
795
+ color: var(--fa-inverse, #fff);
796
+ }`;function IY(){var e=AY,t=CY,r=Kt.cssPrefix,n=Kt.replacementClass,i=Aue;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 lk=!1;function Mx(){Kt.autoAddCss&&!lk&&(xue(IY()),lk=!0)}var Cue={mixout:function(){return{dom:{css:IY,insertCss:Mx}}},hooks:function(){return{beforeDOMElementCreation:function(){Mx()},beforeI2svg:function(){Mx()}}}},Ol=zs||{};Ol[Ml]||(Ol[Ml]={});Ol[Ml].styles||(Ol[Ml].styles={});Ol[Ml].hooks||(Ol[Ml].hooks={});Ol[Ml].shims||(Ol[Ml].shims=[]);var po=Ol[Ml],kY=[],Tue=function e(){fn.removeEventListener("DOMContentLoaded",e),Dy=1,kY.map(function(t){return t()})},Dy=!1;Ll&&(Dy=(fn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(fn.readyState),Dy||fn.addEventListener("DOMContentLoaded",Tue));function Pue(e){Ll&&(Dy?setTimeout(e,0):kY.push(e))}function Rm(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"?RY(e):"<".concat(t," ").concat(_ue(n),">").concat(a.map(Rm).join(""),"</").concat(t,">")}function sk(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}var Mue=function(t,r){return function(n,i,a,o){return t.call(r,n,i,a,o)}},Ox=function(t,r,n,i){var a=Object.keys(t),o=a.length,l=i!==void 0?Mue(r,i):r,u,c,d;for(n===void 0?(u=1,d=t[a[0]]):(u=0,d=n);u<o;u++)c=a[u],d=l(d,t[c],c,t);return d};function Oue(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 BC(e){var t=Oue(e);return t.length===1?t[0].toString(16):null}function Rue(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 uk(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 zC(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r.skipHooks,i=n===void 0?!1:n,a=uk(t);typeof po.hooks.addPack=="function"&&!i?po.hooks.addPack(e,uk(t)):po.styles[e]=Bt(Bt({},po.styles[e]||{}),a),e==="fas"&&zC("fa",t)}var Wg,Vg,Kg,rd=po.styles,Iue=po.shims,kue=(Wg={},Zn(Wg,un,Object.values(Xv[un])),Zn(Wg,En,Object.values(Xv[En])),Wg),EM=null,FY={},NY={},LY={},DY={},BY={},Fue=(Vg={},Zn(Vg,un,Object.keys(qv[un])),Zn(Vg,En,Object.keys(qv[En])),Vg);function Nue(e){return~mue.indexOf(e)}function Lue(e,t){var r=t.split("-"),n=r[0],i=r.slice(1).join("-");return n===e&&i!==""&&!Nue(i)?i:null}var zY=function(){var t=function(a){return Ox(rd,function(o,l,u){return o[u]=Ox(l,a,{}),o},{})};FY=t(function(i,a,o){if(a[3]&&(i[a[3]]=o),a[2]){var l=a[2].filter(function(u){return typeof u=="number"});l.forEach(function(u){i[u.toString(16)]=o})}return i}),NY=t(function(i,a,o){if(i[o]=o,a[2]){var l=a[2].filter(function(u){return typeof u=="string"});l.forEach(function(u){i[u]=o})}return i}),BY=t(function(i,a,o){var l=a[2];return i[o]=o,l.forEach(function(u){i[u]=o}),i});var r="far"in rd||Kt.autoFetchSvg,n=Ox(Iue,function(i,a){var o=a[0],l=a[1],u=a[2];return l==="far"&&!r&&(l="fas"),typeof o=="string"&&(i.names[o]={prefix:l,iconName:u}),typeof o=="number"&&(i.unicodes[o.toString(16)]={prefix:l,iconName:u}),i},{names:{},unicodes:{}});LY=n.names,DY=n.unicodes,EM=Yb(Kt.styleDefault,{family:Kt.familyDefault})};$ue(function(e){EM=Yb(e.styleDefault,{family:Kt.familyDefault})});zY();function AM(e,t){return(FY[e]||{})[t]}function Due(e,t){return(NY[e]||{})[t]}function qu(e,t){return(BY[e]||{})[t]}function UY(e){return LY[e]||{prefix:null,iconName:null}}function Bue(e){var t=DY[e],r=AM("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}function Us(){return EM}var CM=function(){return{prefix:null,iconName:null,rest:[]}};function Yb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.family,n=r===void 0?un:r,i=qv[n][e],a=Yv[n][e]||Yv[n][i],o=e in po.styles?e:null;return a||o||null}var ck=(Kg={},Zn(Kg,un,Object.keys(Xv[un])),Zn(Kg,En,Object.keys(Xv[En])),Kg);function Xb(e){var t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.skipLookups,i=n===void 0?!1:n,a=(t={},Zn(t,un,"".concat(Kt.cssPrefix,"-").concat(un)),Zn(t,En,"".concat(Kt.cssPrefix,"-").concat(En)),t),o=null,l=un;(e.includes(a[un])||e.some(function(c){return ck[un].includes(c)}))&&(l=un),(e.includes(a[En])||e.some(function(c){return ck[En].includes(c)}))&&(l=En);var u=e.reduce(function(c,d){var h=Lue(Kt.cssPrefix,d);if(rd[d]?(d=kue[l].includes(d)?cue[l][d]:d,o=d,c.prefix=d):Fue[l].indexOf(d)>-1?(o=d,c.prefix=Yb(d,{family:l})):h?c.iconName=h:d!==Kt.replacementClass&&d!==a[un]&&d!==a[En]&&c.rest.push(d),!i&&c.prefix&&c.iconName){var p=o==="fa"?UY(c.iconName):{},v=qu(c.prefix,c.iconName);p.prefix&&(o=null),c.iconName=p.iconName||v||c.iconName,c.prefix=p.prefix||c.prefix,c.prefix==="far"&&!rd.far&&rd.fas&&!Kt.autoFetchSvg&&(c.prefix="fas")}return c},CM());return(e.includes("fa-brands")||e.includes("fab"))&&(u.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(u.prefix="fad"),!u.prefix&&l===En&&(rd.fass||Kt.autoFetchSvg)&&(u.prefix="fass",u.iconName=qu(u.prefix,u.iconName)||u.iconName),(u.prefix==="fa"||o==="fa")&&(u.prefix=Us()||"fas"),u}var zue=function(){function e(){Zse(this,e),this.definitions={}}return Jse(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]=Bt(Bt({},r.definitions[l]||{}),o[l]),zC(l,o[l]);var u=Xv[un][l];u&&zC(u,o[l]),zY()})}},{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,u=o.iconName,c=o.icon,d=c[2];r[l]||(r[l]={}),d.length>0&&d.forEach(function(h){typeof h=="string"&&(r[l][h]=c)}),r[l][u]=c}),r}}]),e}(),fk=[],nd={},bd={},Uue=Object.keys(bd);function jue(e,t){var r=t.mixoutsTo;return fk=e,nd={},Object.keys(bd).forEach(function(n){Uue.indexOf(n)===-1&&delete bd[n]}),fk.forEach(function(n){var i=n.mixout?n.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(r[o]=i[o]),Ly(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){nd[o]||(nd[o]=[]),nd[o].push(a[o])})}n.provides&&n.provides(bd)}),r}function UC(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=nd[e]||[];return a.forEach(function(o){t=o.apply(null,[t].concat(n))}),t}function fc(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=nd[e]||[];i.forEach(function(a){a.apply(null,r)})}function Rl(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return bd[e]?bd[e].apply(null,t):void 0}function jC(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,r=e.prefix||Us();if(t)return t=qu(r,t)||t,sk(jY.definitions,r,t)||sk(po.styles,r,t)}var jY=new zue,Hue=function(){Kt.autoReplaceSvg=!1,Kt.observeMutations=!1,fc("noAuto")},Gue={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Ll?(fc("beforeI2svg",t),Rl("pseudoElements2svg",t),Rl("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;Kt.autoReplaceSvg===!1&&(Kt.autoReplaceSvg=!0),Kt.observeMutations=!0,Pue(function(){Vue({autoReplaceSvgRoot:r}),fc("watch",t)})}},Wue={icon:function(t){if(t===null)return null;if(Ly(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:qu(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=Yb(t[0]);return{prefix:n,iconName:qu(n,r)||r}}if(typeof t=="string"&&(t.indexOf("".concat(Kt.cssPrefix,"-"))>-1||t.match(fue))){var i=Xb(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||Us(),iconName:qu(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var a=Us();return{prefix:a,iconName:qu(a,t)||t}}}},Sa={noAuto:Hue,config:Kt,dom:Gue,parse:Wue,library:jY,findIconDefinition:jC,toHtml:Rm},Vue=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.autoReplaceSvgRoot,n=r===void 0?fn:r;(Object.keys(po.styles).length>0||Kt.autoFetchSvg)&&Ll&&Kt.autoReplaceSvg&&Sa.dom.i2svg({node:n})};function Qb(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return Rm(n)})}}),Object.defineProperty(e,"node",{get:function(){if(Ll){var n=fn.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function Kue(e){var t=e.children,r=e.main,n=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(SM(o)&&r.found&&!n.found){var l=r.width,u=r.height,c={x:l/u/2,y:.5};i.style=qb(Bt(Bt({},a),{},{"transform-origin":"".concat(c.x+o.x/16,"em ").concat(c.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function que(e){var t=e.prefix,r=e.iconName,n=e.children,i=e.attributes,a=e.symbol,o=a===!0?"".concat(t,"-").concat(Kt.cssPrefix,"-").concat(r):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Bt(Bt({},i),{},{id:o}),children:n}]}]}function TM(e){var t=e.icons,r=t.main,n=t.mask,i=e.prefix,a=e.iconName,o=e.transform,l=e.symbol,u=e.title,c=e.maskId,d=e.titleId,h=e.extra,p=e.watchable,v=p===void 0?!1:p,$=n.found?n:r,S=$.width,g=$.height,b=i==="fak",_=[Kt.replacementClass,a?"".concat(Kt.cssPrefix,"-").concat(a):""].filter(function(j){return h.classes.indexOf(j)===-1}).filter(function(j){return j!==""||!!j}).concat(h.classes).join(" "),E={children:[],attributes:Bt(Bt({},h.attributes),{},{"data-prefix":i,"data-icon":a,class:_,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(S," ").concat(g)})},A=b&&!~h.classes.indexOf("fa-fw")?{width:"".concat(S/g*16*.0625,"em")}:{};v&&(E.attributes[cc]=""),u&&(E.children.push({tag:"title",attributes:{id:E.attributes["aria-labelledby"]||"title-".concat(d||Zv())},children:[u]}),delete E.attributes.title);var M=Bt(Bt({},E),{},{prefix:i,iconName:a,main:r,mask:n,maskId:c,transform:o,symbol:l,styles:Bt(Bt({},A),h.styles)}),N=n.found&&r.found?Rl("generateAbstractMask",M)||{children:[],attributes:{}}:Rl("generateAbstractIcon",M)||{children:[],attributes:{}},U=N.children,I=N.attributes;return M.children=U,M.attributes=I,l?que(M):Kue(M)}function dk(e){var t=e.content,r=e.width,n=e.height,i=e.transform,a=e.title,o=e.extra,l=e.watchable,u=l===void 0?!1:l,c=Bt(Bt(Bt({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});u&&(c[cc]="");var d=Bt({},o.styles);SM(i)&&(d.transform=Eue({transform:i,startCentered:!0,width:r,height:n}),d["-webkit-transform"]=d.transform);var h=qb(d);h.length>0&&(c.style=h);var p=[];return p.push({tag:"span",attributes:c,children:[t]}),a&&p.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),p}function Yue(e){var t=e.content,r=e.title,n=e.extra,i=Bt(Bt(Bt({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),a=qb(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 Rx=po.styles;function HC(e){var t=e[0],r=e[1],n=e.slice(4),i=yM(n,1),a=i[0],o=null;return Array.isArray(a)?o={tag:"g",attributes:{class:"".concat(Kt.cssPrefix,"-").concat(Ku.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Kt.cssPrefix,"-").concat(Ku.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(Kt.cssPrefix,"-").concat(Ku.PRIMARY),fill:"currentColor",d:a[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:r,icon:o}}var Xue={found:!1,width:512,height:512};function Que(e,t){!TY&&!Kt.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function GC(e,t){var r=t;return t==="fa"&&Kt.styleDefault!==null&&(t=Us()),new Promise(function(n,i){if(Rl("missingIconAbstract"),r==="fa"){var a=UY(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&Rx[t]&&Rx[t][e]){var o=Rx[t][e];return n(HC(o))}Que(e,t),n(Bt(Bt({},Xue),{},{icon:Kt.showMissingIcons&&e?Rl("missingIconAbstract")||{}:{}}))})}var pk=function(){},WC=Kt.measurePerformance&&Bg&&Bg.mark&&Bg.measure?Bg:{mark:pk,measure:pk},av='FA "6.2.1"',Zue=function(t){return WC.mark("".concat(av," ").concat(t," begins")),function(){return HY(t)}},HY=function(t){WC.mark("".concat(av," ").concat(t," ends")),WC.measure("".concat(av," ").concat(t),"".concat(av," ").concat(t," begins"),"".concat(av," ").concat(t," ends"))},PM={begin:Zue,end:HY},D1=function(){};function hk(e){var t=e.getAttribute?e.getAttribute(cc):null;return typeof t=="string"}function Jue(e){var t=e.getAttribute?e.getAttribute($M):null,r=e.getAttribute?e.getAttribute(xM):null;return t&&r}function ece(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Kt.replacementClass)}function tce(){if(Kt.autoReplaceSvg===!0)return B1.replace;var e=B1[Kt.autoReplaceSvg];return e||B1.replace}function rce(e){return fn.createElementNS("http://www.w3.org/2000/svg",e)}function nce(e){return fn.createElement(e)}function GY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.ceFn,n=r===void 0?e.tag==="svg"?rce:nce:r;if(typeof e=="string")return fn.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(GY(o,{ceFn:n}))}),i}function ice(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var B1={replace:function(t){var r=t[0];if(r.parentNode)if(t[1].forEach(function(i){r.parentNode.insertBefore(GY(i),r)}),r.getAttribute(cc)===null&&Kt.keepOriginalSource){var n=fn.createComment(ice(r));r.parentNode.replaceChild(n,r)}else r.remove()},nest:function(t){var r=t[0],n=t[1];if(~_M(r).indexOf(Kt.replacementClass))return B1.replace(t);var i=new RegExp("".concat(Kt.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce(function(l,u){return u===Kt.replacementClass||u.match(i)?l.toSvg.push(u):l.toNode.push(u),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 Rm(l)}).join(`
797
+ `);r.setAttribute(cc,""),r.innerHTML=o}};function vk(e){e()}function WY(e,t){var r=typeof t=="function"?t:D1;if(e.length===0)r();else{var n=vk;Kt.mutateApproach===sue&&(n=zs.requestAnimationFrame||vk),n(function(){var i=tce(),a=PM.begin("mutate");e.map(i),a(),r()})}}var MM=!1;function VY(){MM=!0}function VC(){MM=!1}var By=null;function mk(e){if(ak&&Kt.observeMutations){var t=e.treeCallback,r=t===void 0?D1:t,n=e.nodeCallback,i=n===void 0?D1:n,a=e.pseudoElementsCallback,o=a===void 0?D1:a,l=e.observeMutationsRoot,u=l===void 0?fn:l;By=new ak(function(c){if(!MM){var d=Us();np(c).forEach(function(h){if(h.type==="childList"&&h.addedNodes.length>0&&!hk(h.addedNodes[0])&&(Kt.searchPseudoElements&&o(h.target),r(h.target)),h.type==="attributes"&&h.target.parentNode&&Kt.searchPseudoElements&&o(h.target.parentNode),h.type==="attributes"&&hk(h.target)&&~vue.indexOf(h.attributeName))if(h.attributeName==="class"&&Jue(h.target)){var p=Xb(_M(h.target)),v=p.prefix,$=p.iconName;h.target.setAttribute($M,v||d),$&&h.target.setAttribute(xM,$)}else ece(h.target)&&i(h.target)})}}),Ll&&By.observe(u,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function ace(){By&&By.disconnect()}function oce(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 lce(e){var t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=e.innerText!==void 0?e.innerText.trim():"",i=Xb(_M(e));return i.prefix||(i.prefix=Us()),t&&r&&(i.prefix=t,i.iconName=r),i.iconName&&i.prefix||(i.prefix&&n.length>0&&(i.iconName=Due(i.prefix,e.innerText)||AM(i.prefix,BC(e.innerText))),!i.iconName&&Kt.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function sce(e){var t=np(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 Kt.autoA11y&&(r?t["aria-labelledby"]="".concat(Kt.replacementClass,"-title-").concat(n||Zv()):(t["aria-hidden"]="true",t.focusable="false")),t}function uce(){return{iconName:null,title:null,titleId:null,prefix:null,transform:No,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function gk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},r=lce(e),n=r.iconName,i=r.prefix,a=r.rest,o=sce(e),l=UC("parseNodeAttributes",{},e),u=t.styleParser?oce(e):[];return Bt({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:No,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:u,attributes:o}},l)}var cce=po.styles;function KY(e){var t=Kt.autoReplaceSvg==="nest"?gk(e,{styleParser:!1}):gk(e);return~t.extra.classes.indexOf(PY)?Rl("generateLayersText",e,t):Rl("generateSvgReplacementMutation",e,t)}var js=new Set;wM.map(function(e){js.add("fa-".concat(e))});Object.keys(qv[un]).map(js.add.bind(js));Object.keys(qv[En]).map(js.add.bind(js));js=Mm(js);function yk(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Ll)return Promise.resolve();var r=fn.documentElement.classList,n=function(h){return r.add("".concat(ok,"-").concat(h))},i=function(h){return r.remove("".concat(ok,"-").concat(h))},a=Kt.autoFetchSvg?js:wM.map(function(d){return"fa-".concat(d)}).concat(Object.keys(cce));a.includes("fa")||a.push("fa");var o=[".".concat(PY,":not([").concat(cc,"])")].concat(a.map(function(d){return".".concat(d,":not([").concat(cc,"])")})).join(", ");if(o.length===0)return Promise.resolve();var l=[];try{l=np(e.querySelectorAll(o))}catch{}if(l.length>0)n("pending"),i("complete");else return Promise.resolve();var u=PM.begin("onTree"),c=l.reduce(function(d,h){try{var p=KY(h);p&&d.push(p)}catch(v){TY||v.name==="MissingIcon"&&console.error(v)}return d},[]);return new Promise(function(d,h){Promise.all(c).then(function(p){WY(p,function(){n("active"),n("complete"),i("pending"),typeof t=="function"&&t(),u(),d()})}).catch(function(p){u(),h(p)})})}function fce(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;KY(e).then(function(r){r&&WY([r],t)})}function dce(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(t||{}).icon?t:jC(t||{}),i=r.mask;return i&&(i=(i||{}).icon?i:jC(i||{})),e(n,Bt(Bt({},r),{},{mask:i}))}}var pce=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.transform,i=n===void 0?No:n,a=r.symbol,o=a===void 0?!1:a,l=r.mask,u=l===void 0?null:l,c=r.maskId,d=c===void 0?null:c,h=r.title,p=h===void 0?null:h,v=r.titleId,$=v===void 0?null:v,S=r.classes,g=S===void 0?[]:S,b=r.attributes,_=b===void 0?{}:b,E=r.styles,A=E===void 0?{}:E;if(t){var M=t.prefix,N=t.iconName,U=t.icon;return Qb(Bt({type:"icon"},t),function(){return fc("beforeDOMElementCreation",{iconDefinition:t,params:r}),Kt.autoA11y&&(p?_["aria-labelledby"]="".concat(Kt.replacementClass,"-title-").concat($||Zv()):(_["aria-hidden"]="true",_.focusable="false")),TM({icons:{main:HC(U),mask:u?HC(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:M,iconName:N,transform:Bt(Bt({},No),i),symbol:o,title:p,maskId:d,titleId:$,extra:{attributes:_,styles:A,classes:g}})})}},hce={mixout:function(){return{icon:dce(pce)}},hooks:function(){return{mutationObserverCallbacks:function(r){return r.treeCallback=yk,r.nodeCallback=fce,r}}},provides:function(t){t.i2svg=function(r){var n=r.node,i=n===void 0?fn:n,a=r.callback,o=a===void 0?function(){}:a;return yk(i,o)},t.generateSvgReplacementMutation=function(r,n){var i=n.iconName,a=n.title,o=n.titleId,l=n.prefix,u=n.transform,c=n.symbol,d=n.mask,h=n.maskId,p=n.extra;return new Promise(function(v,$){Promise.all([GC(i,l),d.iconName?GC(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(S){var g=yM(S,2),b=g[0],_=g[1];v([r,TM({icons:{main:b,mask:_},prefix:l,iconName:i,transform:u,symbol:c,maskId:h,title:a,titleId:o,extra:p,watchable:!0})])}).catch($)})},t.generateAbstractIcon=function(r){var n=r.children,i=r.attributes,a=r.main,o=r.transform,l=r.styles,u=qb(l);u.length>0&&(i.style=u);var c;return SM(o)&&(c=Rl("generateAbstractTransformGrouping",{main:a,transform:o,containerWidth:a.width,iconWidth:a.width})),n.push(c||a.icon),{children:n,attributes:i}}}},vce={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 Qb({type:"layer"},function(){fc("beforeDOMElementCreation",{assembler:r,params:n});var o=[];return r(function(l){Array.isArray(l)?l.map(function(u){o=o.concat(u.abstract)}):o=o.concat(l.abstract)}),[{tag:"span",attributes:{class:["".concat(Kt.cssPrefix,"-layers")].concat(Mm(a)).join(" ")},children:o}]})}}}},mce={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,u=n.attributes,c=u===void 0?{}:u,d=n.styles,h=d===void 0?{}:d;return Qb({type:"counter",content:r},function(){return fc("beforeDOMElementCreation",{content:r,params:n}),Yue({content:r.toString(),title:a,extra:{attributes:c,styles:h,classes:["".concat(Kt.cssPrefix,"-layers-counter")].concat(Mm(l))}})})}}}},gce={mixout:function(){return{text:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.transform,a=i===void 0?No:i,o=n.title,l=o===void 0?null:o,u=n.classes,c=u===void 0?[]:u,d=n.attributes,h=d===void 0?{}:d,p=n.styles,v=p===void 0?{}:p;return Qb({type:"text",content:r},function(){return fc("beforeDOMElementCreation",{content:r,params:n}),dk({content:r,transform:Bt(Bt({},No),a),title:l,extra:{attributes:h,styles:v,classes:["".concat(Kt.cssPrefix,"-layers-text")].concat(Mm(c))}})})}}},provides:function(t){t.generateLayersText=function(r,n){var i=n.title,a=n.transform,o=n.extra,l=null,u=null;if(EY){var c=parseInt(getComputedStyle(r).fontSize,10),d=r.getBoundingClientRect();l=d.width/c,u=d.height/c}return Kt.autoA11y&&!i&&(o.attributes["aria-hidden"]="true"),Promise.resolve([r,dk({content:r.innerHTML,width:l,height:u,transform:a,title:i,extra:o,watchable:!0})])}}},yce=new RegExp('"',"ug"),bk=[1105920,1112319];function bce(e){var t=e.replace(yce,""),r=Rue(t,0),n=r>=bk[0]&&r<=bk[1],i=t.length===2?t[0]===t[1]:!1;return{value:BC(i?t[0]:t),isSecondary:n||i}}function $k(e,t){var r="".concat(lue).concat(t.replace(":","-"));return new Promise(function(n,i){if(e.getAttribute(r)!==null)return n();var a=np(e.children),o=a.filter(function(U){return U.getAttribute(DC)===t})[0],l=zs.getComputedStyle(e,t),u=l.getPropertyValue("font-family").match(due),c=l.getPropertyValue("font-weight"),d=l.getPropertyValue("content");if(o&&!u)return e.removeChild(o),n();if(u&&d!=="none"&&d!==""){var h=l.getPropertyValue("content"),p=~["Sharp"].indexOf(u[2])?En:un,v=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(u[2])?Yv[p][u[2].toLowerCase()]:pue[p][c],$=bce(h),S=$.value,g=$.isSecondary,b=u[0].startsWith("FontAwesome"),_=AM(v,S),E=_;if(b){var A=Bue(S);A.iconName&&A.prefix&&(_=A.iconName,v=A.prefix)}if(_&&!g&&(!o||o.getAttribute($M)!==v||o.getAttribute(xM)!==E)){e.setAttribute(r,E),o&&e.removeChild(o);var M=uce(),N=M.extra;N.attributes[DC]=t,GC(_,v).then(function(U){var I=TM(Bt(Bt({},M),{},{icons:{main:U,mask:CM()},prefix:v,iconName:E,extra:N,watchable:!0})),j=fn.createElement("svg");t==="::before"?e.insertBefore(j,e.firstChild):e.appendChild(j),j.outerHTML=I.map(function(he){return Rm(he)}).join(`
798
+ `),e.removeAttribute(r),n()}).catch(i)}else n()}else n()})}function $ce(e){return Promise.all([$k(e,"::before"),$k(e,"::after")])}function xce(e){return e.parentNode!==document.head&&!~uue.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(DC)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function xk(e){if(Ll)return new Promise(function(t,r){var n=np(e.querySelectorAll("*")).filter(xce).map($ce),i=PM.begin("searchPseudoElements");VY(),Promise.all(n).then(function(){i(),VC(),t()}).catch(function(){i(),VC(),r()})})}var wce={hooks:function(){return{mutationObserverCallbacks:function(r){return r.pseudoElementsCallback=xk,r}}},provides:function(t){t.pseudoElements2svg=function(r){var n=r.node,i=n===void 0?fn:n;Kt.searchPseudoElements&&xk(i)}}},wk=!1,_ce={mixout:function(){return{dom:{unwatch:function(){VY(),wk=!0}}}},hooks:function(){return{bootstrap:function(){mk(UC("mutationObserverCallbacks",{}))},noAuto:function(){ace()},watch:function(r){var n=r.observeMutationsRoot;wk?VC():mk(UC("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},_k=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)},Sce={mixout:function(){return{parse:{transform:function(r){return _k(r)}}}},hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-transform");return i&&(r.transform=_k(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)")},u="translate(".concat(i.x*32,", ").concat(i.y*32,") "),c="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),d="rotate(".concat(i.rotate," 0 0)"),h={transform:"".concat(u," ").concat(c," ").concat(d)},p={transform:"translate(".concat(o/2*-1," -256)")},v={outer:l,inner:h,path:p};return{tag:"g",attributes:Bt({},v.outer),children:[{tag:"g",attributes:Bt({},v.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Bt(Bt({},n.icon.attributes),v.path)}]}]}}}},Ix={x:0,y:0,width:"100%",height:"100%"};function Sk(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 Ece(e){return e.tag==="g"?e.children:[e]}var Ace={hooks:function(){return{parseNodeAttributes:function(r,n){var i=n.getAttribute("data-fa-mask"),a=i?Xb(i.split(" ").map(function(o){return o.trim()})):CM();return a.prefix||(a.prefix=Us()),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,u=r.transform,c=a.width,d=a.icon,h=o.width,p=o.icon,v=Sue({transform:u,containerWidth:h,iconWidth:c}),$={tag:"rect",attributes:Bt(Bt({},Ix),{},{fill:"white"})},S=d.children?{children:d.children.map(Sk)}:{},g={tag:"g",attributes:Bt({},v.inner),children:[Sk(Bt({tag:d.tag,attributes:Bt(Bt({},d.attributes),v.path)},S))]},b={tag:"g",attributes:Bt({},v.outer),children:[g]},_="mask-".concat(l||Zv()),E="clip-".concat(l||Zv()),A={tag:"mask",attributes:Bt(Bt({},Ix),{},{id:_,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[$,b]},M={tag:"defs",children:[{tag:"clipPath",attributes:{id:E},children:Ece(p)},A]};return n.push(M,{tag:"rect",attributes:Bt({fill:"currentColor","clip-path":"url(#".concat(E,")"),mask:"url(#".concat(_,")")},Ix)}),{children:n,attributes:i}}}},Cce={provides:function(t){var r=!1;zs.matchMedia&&(r=zs.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:Bt(Bt({},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=Bt(Bt({},a),{},{attributeName:"opacity"}),l={tag:"circle",attributes:Bt(Bt({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return r||l.children.push({tag:"animate",attributes:Bt(Bt({},a),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Bt(Bt({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(l),n.push({tag:"path",attributes:Bt(Bt({},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:Bt(Bt({},o),{},{values:"1;0;0;0;0;1;"})}]}),r||n.push({tag:"path",attributes:Bt(Bt({},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:Bt(Bt({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},Tce={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}}}},Pce=[Cue,hce,vce,mce,gce,wce,_ce,Sce,Ace,Cce,Tce];jue(Pce,{mixoutsTo:Sa});Sa.noAuto;Sa.config;Sa.library;Sa.dom;var KC=Sa.parse;Sa.findIconDefinition;Sa.toHtml;var Mce=Sa.icon;Sa.layer;Sa.text;Sa.counter;function Ek(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 ws(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ek(Object(r),!0).forEach(function(n){id(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ek(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zy(e){return zy=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},zy(e)}function id(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Oce(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 Rce(e,t){if(e==null)return{};var r=Oce(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 qC(e){return Ice(e)||kce(e)||Fce(e)||Nce()}function Ice(e){if(Array.isArray(e))return YC(e)}function kce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Fce(e,t){if(e){if(typeof e=="string")return YC(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 YC(e,t)}}function YC(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 Nce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
799
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lce(e){var t,r=e.beat,n=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,l=e.flash,u=e.spin,c=e.spinPulse,d=e.spinReverse,h=e.pulse,p=e.fixedWidth,v=e.inverse,$=e.border,S=e.listItem,g=e.flip,b=e.size,_=e.rotation,E=e.pull,A=(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":l,"fa-spin":u,"fa-spin-reverse":d,"fa-spin-pulse":c,"fa-pulse":h,"fa-fw":p,"fa-inverse":v,"fa-border":$,"fa-li":S,"fa-flip":g===!0,"fa-flip-horizontal":g==="horizontal"||g==="both","fa-flip-vertical":g==="vertical"||g==="both"},id(t,"fa-".concat(b),typeof b<"u"&&b!==null),id(t,"fa-rotate-".concat(_),typeof _<"u"&&_!==null&&_!==0),id(t,"fa-pull-".concat(E),typeof E<"u"&&E!==null),id(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(A).map(function(M){return A[M]?M:null}).filter(function(M){return M})}function Dce(e){return e=e-0,e===e}function qY(e){return Dce(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,r){return r?r.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var Bce=["style"];function zce(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Uce(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,r){var n=r.indexOf(":"),i=qY(r.slice(0,n)),a=r.slice(n+1).trim();return i.startsWith("webkit")?t[zce(i)]=a:t[i]=a,t},{})}function YY(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(u){return YY(e,u)}),i=Object.keys(t.attributes||{}).reduce(function(u,c){var d=t.attributes[c];switch(c){case"class":u.attrs.className=d,delete t.attributes.class;break;case"style":u.attrs.style=Uce(d);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?u.attrs[c.toLowerCase()]=d:u.attrs[qY(c)]=d}return u},{attrs:{}}),a=r.style,o=a===void 0?{}:a,l=Rce(r,Bce);return i.attrs.style=ws(ws({},i.attrs.style),o),e.apply(void 0,[t.tag,ws(ws({},i.attrs),l)].concat(qC(n)))}var XY=!1;try{XY=!0}catch{}function jce(){if(!XY&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Ak(e){if(e&&zy(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(KC.icon)return KC.icon(e);if(e===null)return null;if(e&&zy(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 kx(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?id({},e,t):{}}var Zb=D.forwardRef(function(e,t){var r=e.icon,n=e.mask,i=e.symbol,a=e.className,o=e.title,l=e.titleId,u=e.maskId,c=Ak(r),d=kx("classes",[].concat(qC(Lce(e)),qC(a.split(" ")))),h=kx("transform",typeof e.transform=="string"?KC.transform(e.transform):e.transform),p=kx("mask",Ak(n)),v=Mce(c,ws(ws(ws(ws({},d),h),p),{},{symbol:i,title:o,titleId:l,maskId:u}));if(!v)return jce("Could not find icon",c),null;var $=v.abstract,S={ref:t};return Object.keys(e).forEach(function(g){Zb.defaultProps.hasOwnProperty(g)||(S[g]=e[g])}),Hce($[0],S)});Zb.displayName="FontAwesomeIcon";Zb.propTypes={beat:Ar.bool,border:Ar.bool,beatFade:Ar.bool,bounce:Ar.bool,className:Ar.string,fade:Ar.bool,flash:Ar.bool,mask:Ar.oneOfType([Ar.object,Ar.array,Ar.string]),maskId:Ar.string,fixedWidth:Ar.bool,inverse:Ar.bool,flip:Ar.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ar.oneOfType([Ar.object,Ar.array,Ar.string]),listItem:Ar.bool,pull:Ar.oneOf(["right","left"]),pulse:Ar.bool,rotation:Ar.oneOf([0,90,180,270]),shake:Ar.bool,size:Ar.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ar.bool,spinPulse:Ar.bool,spinReverse:Ar.bool,symbol:Ar.oneOfType([Ar.bool,Ar.string]),title:Ar.string,titleId:Ar.string,transform:Ar.oneOfType([Ar.string,Ar.object]),swapOpacity:Ar.bool};Zb.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 Hce=YY.bind(null,D.createElement);function OM(e,t,...r){if(!e)throw new TypeError(QY(t,r))}function QY(e,t){let r=0;return e.replace(/%[os]/gu,()=>ZY(t[r++]))}function ZY(e){return typeof e!="object"||e===null?String(e):Object.prototype.toString.call(e)}let Gce;function Wce(e){try{const t=e instanceof Error?e:new Error(ZY(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 ho=typeof window<"u"?window:typeof self<"u"?self:typeof global<"u"?global:typeof globalThis<"u"?globalThis:void 0;let Vce;class Xs{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,`
800
+ `);console.warn(this.message,...t,n)}catch{}}}const Kce=new Xs("W01","Unable to initialize event under dispatching."),qce=new Xs("W02","Assigning any falsy value to 'cancelBubble' property has no effect."),Yce=new Xs("W03","Assigning any truthy value to 'returnValue' property has no effect."),Xce=new Xs("W04","Unable to preventDefault on non-cancelable events."),Qce=new Xs("W05","Unable to preventDefault inside passive event listener invocation."),Zce=new Xs("W06","An event listener wasn't added because it has been added already: %o, %o"),Fx=new Xs("W07","The %o option value was abandoned because the event listener wasn't added as duplicated."),Ck=new Xs("W08","The 'callback' argument must be a function or an object that has 'handleEvent' method: %o");class Dl{static get NONE(){return Tk}static get CAPTURING_PHASE(){return Pk}static get AT_TARGET(){return Mk}static get BUBBLING_PHASE(){return Ok}constructor(t,r){Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});const n=r??{};XC.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 Ln(this).type}get target(){return Ln(this).target}get srcElement(){return Ln(this).target}get currentTarget(){return Ln(this).currentTarget}composedPath(){const t=Ln(this).currentTarget;return t?[t]:[]}get NONE(){return Tk}get CAPTURING_PHASE(){return Pk}get AT_TARGET(){return Mk}get BUBBLING_PHASE(){return Ok}get eventPhase(){return Ln(this).dispatchFlag?2:0}stopPropagation(){Ln(this).stopPropagationFlag=!0}get cancelBubble(){return Ln(this).stopPropagationFlag}set cancelBubble(t){t?Ln(this).stopPropagationFlag=!0:qce.warn()}stopImmediatePropagation(){const t=Ln(this);t.stopPropagationFlag=t.stopImmediatePropagationFlag=!0}get bubbles(){return Ln(this).bubbles}get cancelable(){return Ln(this).cancelable}get returnValue(){return!Ln(this).canceledFlag}set returnValue(t){t?Yce.warn():Rk(Ln(this))}preventDefault(){Rk(Ln(this))}get defaultPrevented(){return Ln(this).canceledFlag}get composed(){return Ln(this).composed}get isTrusted(){return!1}get timeStamp(){return Ln(this).timeStamp}initEvent(t,r=!1,n=!1){const i=Ln(this);if(i.dispatchFlag){Kce.warn();return}XC.set(this,{...i,type:String(t),bubbles:!!r,cancelable:!!n,target:null,currentTarget:null,stopPropagationFlag:!1,stopImmediatePropagationFlag:!1,canceledFlag:!1})}}const Tk=0,Pk=1,Mk=2,Ok=3,XC=new WeakMap;function Ln(e,t="this"){const r=XC.get(e);return OM(r!=null,"'%s' must be an object that Event constructor created, but got another one: %o",t,e),r}function Rk(e){if(e.inPassiveListenerFlag){Qce.warn();return}if(!e.cancelable){Xce.warn();return}e.canceledFlag=!0}Object.defineProperty(Dl,"NONE",{enumerable:!0});Object.defineProperty(Dl,"CAPTURING_PHASE",{enumerable:!0});Object.defineProperty(Dl,"AT_TARGET",{enumerable:!0});Object.defineProperty(Dl,"BUBBLING_PHASE",{enumerable:!0});const Nx=Object.getOwnPropertyNames(Dl.prototype);for(let e=0;e<Nx.length;++e)Nx[e]!=="constructor"&&Object.defineProperty(Dl.prototype,Nx[e],{enumerable:!0});typeof ho<"u"&&typeof ho.Event<"u"&&Object.setPrototypeOf(Dl.prototype,ho.Event.prototype);function Jce(e){return ho.DOMException?new ho.DOMException(e,"InvalidStateError"):(Mf==null&&(Mf=class JY extends Error{constructor(r){super(r),Error.captureStackTrace&&Error.captureStackTrace(this,JY)}get code(){return 11}get name(){return"InvalidStateError"}},Object.defineProperties(Mf.prototype,{code:{enumerable:!0},name:{enumerable:!0}}),kk(Mf),kk(Mf.prototype)),new Mf(e))}let Mf;const Ik={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 kk(e){const t=Object.keys(Ik);for(let r=0;r<t.length;++r){const n=t[r],i=Ik[n];Object.defineProperty(e,n,{get(){return i},configurable:!0,enumerable:!0})}}class Jb extends Dl{static wrap(t){return new(tX(t))(t)}constructor(t){super(t.type,{bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed}),t.cancelBubble&&super.stopPropagation(),t.defaultPrevented&&super.preventDefault(),eX.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,rX(t,i))}}stopPropagation(){super.stopPropagation();const{original:t}=ps(this);"stopPropagation"in t&&t.stopPropagation()}get cancelBubble(){return super.cancelBubble}set cancelBubble(t){super.cancelBubble=t;const{original:r}=ps(this);"cancelBubble"in r&&(r.cancelBubble=t)}stopImmediatePropagation(){super.stopImmediatePropagation();const{original:t}=ps(this);"stopImmediatePropagation"in t&&t.stopImmediatePropagation()}get returnValue(){return super.returnValue}set returnValue(t){super.returnValue=t;const{original:r}=ps(this);"returnValue"in r&&(r.returnValue=t)}preventDefault(){super.preventDefault();const{original:t}=ps(this);"preventDefault"in t&&t.preventDefault()}get timeStamp(){const{original:t}=ps(this);return"timeStamp"in t?t.timeStamp:super.timeStamp}}const eX=new WeakMap;function ps(e){const t=eX.get(e);return OM(t!=null,"'this' is expected an Event object, but got",e),t}const Uy=new WeakMap;Uy.set(Object.prototype,Jb);typeof ho<"u"&&typeof ho.Event<"u"&&Uy.set(ho.Event.prototype,Jb);function tX(e){const t=Object.getPrototypeOf(e);if(t==null)return Jb;let r=Uy.get(t);return r==null&&(r=efe(tX(t),t),Uy.set(t,r)),r}function efe(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],rX(t,n[i]));return r}function rX(e,t){const r=Object.getOwnPropertyDescriptor(e,t);return{get(){const n=ps(this).original,i=n[t];return typeof i=="function"?i.bind(n):i},set(n){const i=ps(this).original;i[t]=n},configurable:r.configurable,enumerable:r.enumerable}}function tfe(e,t,r,n,i,a){return{callback:e,flags:(t?1:0)|(r?2:0)|(n?4:0),signal:i,signalListener:a}}function rfe(e){e.flags|=8}function nX(e){return(e.flags&1)===1}function iX(e){return(e.flags&2)===2}function aX(e){return(e.flags&4)===4}function nfe(e){return(e.flags&8)===8}function ife({callback:e},t,r){try{typeof e=="function"?e.call(t,r):typeof e.handleEvent=="function"&&e.handleEvent(r)}catch(n){Wce(n)}}function oX({listeners:e},t,r){for(let n=0;n<e.length;++n)if(e[n].callback===t&&nX(e[n])===r)return n;return-1}function afe(e,t,r,n,i,a){let o;a&&(o=lX.bind(null,e,t,r),a.addEventListener("abort",o));const l=tfe(t,r,n,i,a,o);return e.cow?(e.cow=!1,e.listeners=[...e.listeners,l]):e.listeners.push(l),l}function lX(e,t,r){const n=oX(e,t,r);return n!==-1?sX(e,n):!1}function sX(e,t,r=!1){const n=e.listeners[t];return rfe(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 ofe(){return Object.create(null)}function lfe(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 RM{constructor(){uX.set(this,ofe())}addEventListener(t,r,n){const i=Lx(this),{callback:a,capture:o,once:l,passive:u,signal:c,type:d}=sfe(t,r,n);if(a==null||c!=null&&c.aborted)return;const h=lfe(i,d),p=oX(h,a,o);if(p!==-1){cfe(h.listeners[p],u,l,c);return}afe(h,a,o,u,l,c)}removeEventListener(t,r,n){const i=Lx(this),{callback:a,capture:o,type:l}=ufe(t,r,n),u=i[l];a!=null&&u&&lX(u,a,o)}dispatchEvent(t){const r=Lx(this)[String(t.type)];if(r==null)return!0;const n=t instanceof Dl?t:Jb.wrap(t),i=Ln(n,"event");if(i.dispatchFlag)throw Jce("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 u=o[l];if(!nfe(u)&&(aX(u)&&sX(r,l,!a)&&(l-=1),i.inPassiveListenerFlag=iX(u),ife(u,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 uX=new WeakMap;function Lx(e,t="this"){const r=uX.get(e);return OM(r!=null,"'%s' must be an object that EventTarget constructor created, but got another one: %o",t,e),r}function sfe(e,t,r){var n;return cX(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 ufe(e,t,r){return cX(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 cX(e){if(!(typeof e=="function"||typeof e=="object"&&e!==null&&typeof e.handleEvent=="function")){if(e==null||typeof e=="object"){Ck.warn(e);return}throw new TypeError(QY(Ck.message,[e]))}}function cfe(e,t,r,n){Zce.warn(nX(e)?"capture":"bubble",e.callback),iX(e)!==t&&Fx.warn("passive"),aX(e)!==r&&Fx.warn("once"),e.signal!==n&&Fx.warn("signal")}const Dx=Object.getOwnPropertyNames(RM.prototype);for(let e=0;e<Dx.length;++e)Dx[e]!=="constructor"&&Object.defineProperty(RM.prototype,Dx[e],{enumerable:!0});typeof ho<"u"&&typeof ho.EventTarget<"u"&&Object.setPrototypeOf(RM.prototype,ho.EventTarget.prototype);var ffe="Expected a function",Fk=0/0,dfe="[object Symbol]",pfe=/^\s+|\s+$/g,hfe=/^[-+]0x[0-9a-f]+$/i,vfe=/^0b[01]+$/i,mfe=/^0o[0-7]+$/i,gfe=parseInt,yfe=typeof ir=="object"&&ir&&ir.Object===Object&&ir,bfe=typeof self=="object"&&self&&self.Object===Object&&self,$fe=yfe||bfe||Function("return this")(),xfe=Object.prototype,wfe=xfe.toString,_fe=Math.max,Sfe=Math.min,Bx=function(){return $fe.Date.now()};function Efe(e,t,r){var n,i,a,o,l,u,c=0,d=!1,h=!1,p=!0;if(typeof e!="function")throw new TypeError(ffe);t=Nk(t)||0,QC(r)&&(d=!!r.leading,h="maxWait"in r,a=h?_fe(Nk(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p);function v(N){var U=n,I=i;return n=i=void 0,c=N,o=e.apply(I,U),o}function $(N){return c=N,l=setTimeout(b,t),d?v(N):o}function S(N){var U=N-u,I=N-c,j=t-U;return h?Sfe(j,a-I):j}function g(N){var U=N-u,I=N-c;return u===void 0||U>=t||U<0||h&&I>=a}function b(){var N=Bx();if(g(N))return _(N);l=setTimeout(b,S(N))}function _(N){return l=void 0,p&&n?v(N):(n=i=void 0,o)}function E(){l!==void 0&&clearTimeout(l),c=0,n=u=i=l=void 0}function A(){return l===void 0?o:_(Bx())}function M(){var N=Bx(),U=g(N);if(n=arguments,i=this,u=N,U){if(l===void 0)return $(u);if(h)return l=setTimeout(b,t),v(u)}return l===void 0&&(l=setTimeout(b,t)),o}return M.cancel=E,M.flush=A,M}function QC(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Afe(e){return!!e&&typeof e=="object"}function Cfe(e){return typeof e=="symbol"||Afe(e)&&wfe.call(e)==dfe}function Nk(e){if(typeof e=="number")return e;if(Cfe(e))return Fk;if(QC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=QC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(pfe,"");var r=vfe.test(e);return r||mfe.test(e)?gfe(e.slice(2),r?2:8):hfe.test(e)?Fk:+e}var Tfe=Efe;const fEe=$a(Tfe);var fX={exports:{}},z1=1;function Pfe(){return z1=(z1*9301+49297)%233280,z1/233280}function Mfe(e){z1=e}var Ofe={nextValue:Pfe,seed:Mfe},ZC=Ofe,Bu="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",_s,Lk,ov;function JC(){ov=!1}function dX(e){if(!e){_s!==Bu&&(_s=Bu,JC());return}if(e!==_s){if(e.length!==Bu.length)throw new Error("Custom alphabet for shortid must be "+Bu.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 "+Bu.length+" unique characters. These characters were not unique: "+t.join(", "));_s=e,JC()}}function Rfe(e){return dX(e),_s}function Ife(e){ZC.seed(e),Lk!==e&&(JC(),Lk=e)}function kfe(){_s||dX(Bu);for(var e=_s.split(""),t=[],r=ZC.nextValue(),n;e.length>0;)r=ZC.nextValue(),n=Math.floor(r*e.length),t.push(e.splice(n,1)[0]);return t.join("")}function pX(){return ov||(ov=kfe(),ov)}function Ffe(e){var t=pX();return t[e]}function Nfe(){return _s||Bu}var IM={get:Nfe,characters:Rfe,seed:Ife,lookup:Ffe,shuffled:pX},zx=typeof window=="object"&&(window.crypto||window.msCrypto),eT;!zx||!zx.getRandomValues?eT=function(e){for(var t=[],r=0;r<e;r++)t.push(Math.floor(Math.random()*256));return t}:eT=function(e){return zx.getRandomValues(new Uint8Array(e))};var Lfe=eT,Dfe=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},Bfe=IM,zfe=Lfe,Ufe=Dfe;function jfe(e){for(var t=0,r,n="";!r;)n=n+Ufe(zfe,Bfe.get(),1),r=e<Math.pow(16,t+1),t++;return n}var Hfe=jfe,qg=Hfe,Gfe=1567752802062,Wfe=7,Yg,Dk;function Vfe(e){var t="",r=Math.floor((Date.now()-Gfe)*.001);return r===Dk?Yg++:(Yg=0,Dk=r),t=t+qg(Wfe),t=t+qg(e),Yg>0&&(t=t+qg(Yg)),t=t+qg(r),t}var Kfe=Vfe,qfe=IM;function Yfe(e){if(!e||typeof e!="string"||e.length<6)return!1;var t=new RegExp("[^"+qfe.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!t.test(e)}var Xfe=Yfe;(function(e){var t=IM,r=Kfe,n=Xfe,i=0;function a(c){return t.seed(c),e.exports}function o(c){return i=c,e.exports}function l(c){return c!==void 0&&t.characters(c),t.shuffled()}function u(){return r(i)}e.exports=u,e.exports.generate=u,e.exports.seed=a,e.exports.worker=o,e.exports.characters=l,e.exports.isValid=n})(fX);var Qfe=fX.exports,Zfe=Qfe;const dEe=$a(Zfe);var Jfe=function(){},ede=Jfe(),Bl=function(e){return e!==ede&&e!==null},tde=Bl,rde=Array.prototype.forEach,nde=Object.create,ide=function(e,t){var r;for(r in e)t[r]=e[r]},kM=function(e){var t=nde(null);return rde.call(arguments,function(r){tde(r)&&ide(Object(r),t)}),t},ade=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},Ux,Bk;function ode(){return Bk||(Bk=1,Ux=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),Ux}var lde=ade()?Math.sign:ode(),sde=lde,ude=Math.abs,cde=Math.floor,fde=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:sde(e)*cde(ude(e)))},dde=fde,pde=Math.max,Pc=function(e){return pde(0,dde(e))},hde=Pc,hX=function(e,t,r){var n;return isNaN(e)?(n=t,n>=0?r&&n?n-1:n:1):e===!1?!1:hde(e)},Go=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},vde=Bl,mo=function(e){if(!vde(e))throw new TypeError("Cannot use null or undefined");return e},mde=Go,gde=mo,yde=Function.prototype.bind,zk=Function.prototype.call,bde=Object.keys,$de=Object.prototype.propertyIsEnumerable,xde=function(e,t){return function(r,n){var i,a=arguments[2],o=arguments[3];return r=Object(gde(r)),mde(n),i=bde(r),o&&i.sort(typeof o=="function"?yde.call(o,r):void 0),typeof e!="function"&&(e=i[e]),zk.call(e,i,function(l,u){return $de.call(r,l)?zk.call(n,a,r[l],l,r,u):t})}},e2=xde("forEach"),Mc={},vX={exports:{}},wde=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")},jx,Uk;function _de(){return Uk||(Uk=1,jx=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),jx}var Hx,jk;function Sde(){if(jk)return Hx;jk=1;var e=Bl,t=Object.keys;return Hx=function(r){return t(e(r)?Object(r):r)},Hx}var Gx,Hk;function Ede(){return Hk||(Hk=1,Gx=_de()()?Object.keys:Sde()),Gx}var Wx,Gk;function Ade(){if(Gk)return Wx;Gk=1;var e=Ede(),t=mo,r=Math.max;return Wx=function(n,i){var a,o,l=r(arguments.length,2),u;for(n=Object(t(n)),u=function(c){try{n[c]=i[c]}catch(d){a||(a=d)}},o=1;o<l;++o)i=arguments[o],e(i).forEach(u);if(a!==void 0)throw a;return n},Wx}var t2=wde()?Object.assign:Ade(),Cde=Bl,Tde={function:!0,object:!0},FM=function(e){return Cde(e)&&Tde[typeof e]||!1};(function(e){var t=t2,r=FM,n=Bl,i=Error.captureStackTrace;e.exports=function(a){var o=new Error(a),l=arguments[1],u=arguments[2];return n(u)||r(l)&&(u=l,l=null),n(u)&&t(o,u),n(l)&&(o.code=l),i&&i(o,e.exports),o}})(vX);var Pde=vX.exports,tT={exports:{}},Vx,Wk;function mX(){if(Wk)return Vx;Wk=1;var e=mo,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols;return Vx=function(a,o){var l,u=Object(e(o));if(a=Object(e(a)),n(u).forEach(function(c){try{t(a,c,r(o,c))}catch(d){l=d}}),typeof i=="function"&&i(u).forEach(function(c){try{t(a,c,r(o,c))}catch(d){l=d}}),l!==void 0)throw l;return a},Vx}var Vk=Pc,gX=function(e,t){return t},Kx,Kk,qk,Yk;try{Object.defineProperty(gX,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch{}gX.length===1?(Kx={configurable:!0,writable:!1,enumerable:!1},Kk=Object.defineProperty,tT.exports=function(e,t){return t=Vk(t),e.length===t?e:(Kx.value=t,Kk(e,"length",Kx))}):(Yk=mX(),qk=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); };")}}(),tT.exports=function(e,t){var r;if(t=Vk(t),e.length===t)return e;r=qk(t)(e);try{Yk(r,e)}catch{}return r});var yX=tT.exports,bX={exports:{}},Mde=void 0,ip=function(e){return e!==Mde&&e!==null},Ode=ip,Rde={object:!0,function:!0,undefined:!0},NM=function(e){return Ode(e)?hasOwnProperty.call(Rde,typeof e):!1},Ide=NM,kde=function(e){if(!Ide(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch{return!1}},Fde=kde,Nde=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!Fde(e)},Lde=Nde,Dde=/^\s*class[\s{/}]/,Bde=Function.prototype.toString,$X=function(e){return!(!Lde(e)||Dde.test(Bde.call(e)))},qx="razdwatrzy",zde=function(){return typeof qx.contains!="function"?!1:qx.contains("dwa")===!0&&qx.contains("foo")===!1},Yx,Xk;function Ude(){if(Xk)return Yx;Xk=1;var e=String.prototype.indexOf;return Yx=function(t){return e.call(this,t,arguments[1])>-1},Yx}var xX=zde()?String.prototype.contains:Ude(),U1=ip,Qk=$X,wX=t2,_X=kM,Sv=xX,jde=bX.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],U1(e)?(r=Sv.call(e,"c"),n=Sv.call(e,"e"),i=Sv.call(e,"w")):(r=i=!0,n=!1),o={value:t,configurable:r,enumerable:n,writable:i},a?wX(_X(a),o):o};jde.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],U1(t)?Qk(t)?U1(r)?Qk(r)||(a=r,r=void 0):r=void 0:(a=t,t=r=void 0):t=void 0,U1(e)?(n=Sv.call(e,"c"),i=Sv.call(e,"e")):(n=!0,i=!1),o={get:t,set:r,configurable:n,enumerable:i},a?wX(_X(a),o):o};var go=bX.exports,rT={exports:{}};(function(e,t){var r=go,n=Go,i=Function.prototype.apply,a=Function.prototype.call,o=Object.create,l=Object.defineProperty,u=Object.defineProperties,c=Object.prototype.hasOwnProperty,d={configurable:!0,enumerable:!1,writable:!0},h,p,v,$,S,g,b;h=function(_,E){var A;return n(E),c.call(this,"__ee__")?A=this.__ee__:(A=d.value=o(null),l(this,"__ee__",d),d.value=null),A[_]?typeof A[_]=="object"?A[_].push(E):A[_]=[A[_],E]:A[_]=E,this},p=function(_,E){var A,M;return n(E),M=this,h.call(this,_,A=function(){v.call(M,_,A),i.call(E,this,arguments)}),A.__eeOnceListener__=E,this},v=function(_,E){var A,M,N,U;if(n(E),!c.call(this,"__ee__"))return this;if(A=this.__ee__,!A[_])return this;if(M=A[_],typeof M=="object")for(U=0;N=M[U];++U)(N===E||N.__eeOnceListener__===E)&&(M.length===2?A[_]=M[U?0:1]:M.splice(U,1));else(M===E||M.__eeOnceListener__===E)&&delete A[_];return this},$=function(_){var E,A,M,N,U;if(c.call(this,"__ee__")&&(N=this.__ee__[_],!!N))if(typeof N=="object"){for(A=arguments.length,U=new Array(A-1),E=1;E<A;++E)U[E-1]=arguments[E];for(N=N.slice(),E=0;M=N[E];++E)i.call(M,this,U)}else switch(arguments.length){case 1:a.call(N,this);break;case 2:a.call(N,this,arguments[1]);break;case 3:a.call(N,this,arguments[1],arguments[2]);break;default:for(A=arguments.length,U=new Array(A-1),E=1;E<A;++E)U[E-1]=arguments[E];i.call(N,this,U)}},S={on:h,once:p,off:v,emit:$},g={on:r(h),once:r(p),off:r(v),emit:r($)},b=u({},g),e.exports=t=function(_){return _==null?o(b):u(Object(_),g)},t.methods=S})(rT,rT.exports);var Hde=rT.exports,Xx,Zk;function Gde(){return Zk||(Zk=1,Xx=function(){var e=Array.from,t,r;return typeof e!="function"?!1:(t=["raz","dwa"],r=e(t),!!(r&&r!==t&&r[1]==="dwa"))}),Xx}var Qx,Jk;function Wde(){return Jk||(Jk=1,Qx=function(){return typeof globalThis!="object"||!globalThis?!1:globalThis.Array===Array}),Qx}var Zx,eF;function Vde(){if(eF)return Zx;eF=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 Zx=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__}}(),Zx}var Jx,tF;function r2(){return tF||(tF=1,Jx=Wde()()?globalThis:Vde()),Jx}var e3,rF;function Kde(){if(rF)return e3;rF=1;var e=r2(),t={object:!0,symbol:!0};return e3=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])},e3}var t3,nF;function qde(){return nF||(nF=1,t3=function(e){return e?typeof e=="symbol"?!0:!e.constructor||e.constructor.name!=="Symbol"?!1:e[e.constructor.toStringTag]==="Symbol":!1}),t3}var r3,iF;function SX(){if(iF)return r3;iF=1;var e=qde();return r3=function(t){if(!e(t))throw new TypeError(t+" is not a symbol");return t},r3}var n3,aF;function Yde(){if(aF)return n3;aF=1;var e=go,t=Object.create,r=Object.defineProperty,n=Object.prototype,i=t(null);return n3=function(a){for(var o=0,l,u;i[a+(o||"")];)++o;return a+=o||"",i[a]=!0,l="@@"+a,r(n,l,e.gs(null,function(c){u||(u=!0,r(this,l,e(c)),u=!1)})),l},n3}var i3,oF;function Xde(){if(oF)return i3;oF=1;var e=go,t=r2().Symbol;return i3=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"))})},i3}var a3,lF;function Qde(){if(lF)return a3;lF=1;var e=go,t=SX(),r=Object.create(null);return a3=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})})},a3}var o3,sF;function Zde(){if(sF)return o3;sF=1;var e=go,t=SX(),r=r2().Symbol,n=Yde(),i=Xde(),a=Qde(),o=Object.create,l=Object.defineProperties,u=Object.defineProperty,c,d,h;if(typeof r=="function")try{String(r()),h=!0}catch{}else r=null;return d=function(v){if(this instanceof d)throw new TypeError("Symbol is not a constructor");return c(v)},o3=c=function p(v){var $;if(this instanceof p)throw new TypeError("Symbol is not a constructor");return h?r(v):($=o(d.prototype),v=v===void 0?"":String(v),l($,{__description__:e("",v),__name__:e("",n(v))}))},i(c),a(c),l(d.prototype,{constructor:e(c),toString:e("",function(){return this.__name__})}),l(c.prototype,{toString:e(function(){return"Symbol ("+t(this).__description__+")"}),valueOf:e(function(){return t(this)})}),u(c.prototype,c.toPrimitive,e("",function(){var p=t(this);return typeof p=="symbol"?p:p.toString()})),u(c.prototype,c.toStringTag,e("c","Symbol")),u(d.prototype,c.toStringTag,e("c",c.prototype[c.toStringTag])),u(d.prototype,c.toPrimitive,e("c",c.prototype[c.toPrimitive])),o3}var l3,uF;function Oc(){return uF||(uF=1,l3=Kde()()?r2().Symbol:Zde()),l3}var s3,cF;function n2(){if(cF)return s3;cF=1;var e=Object.prototype.toString,t=e.call(function(){return arguments}());return s3=function(r){return e.call(r)===t},s3}var u3,fF;function Jde(){if(fF)return u3;fF=1;var e=Object.prototype.toString,t=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);return u3=function(r){return typeof r=="function"&&t(e.call(r))},u3}var c3,dF;function i2(){if(dF)return c3;dF=1;var e=Object.prototype.toString,t=e.call("");return c3=function(r){return typeof r=="string"||r&&typeof r=="object"&&(r instanceof String||e.call(r)===t)||!1},c3}var f3,pF;function epe(){if(pF)return f3;pF=1;var e=Oc().iterator,t=n2(),r=Jde(),n=Pc,i=Go,a=mo,o=Bl,l=i2(),u=Array.isArray,c=Function.prototype.call,d={configurable:!0,enumerable:!0,writable:!0,value:null},h=Object.defineProperty;return f3=function(p){var v=arguments[1],$=arguments[2],S,g,b,_,E,A,M,N,U,I;if(p=Object(a(p)),o(v)&&i(v),!this||this===Array||!r(this)){if(!v){if(t(p))return E=p.length,E!==1?Array.apply(null,p):(_=new Array(1),_[0]=p[0],_);if(u(p)){for(_=new Array(E=p.length),g=0;g<E;++g)_[g]=p[g];return _}}_=[]}else S=this;if(!u(p)){if((U=p[e])!==void 0){for(M=i(U).call(p),S&&(_=new S),N=M.next(),g=0;!N.done;)I=v?c.call(v,$,N.value,g):N.value,S?(d.value=I,h(_,g,d)):_[g]=I,N=M.next(),++g;E=g}else if(l(p)){for(E=p.length,S&&(_=new S),g=0,b=0;g<E;++g)I=p[g],g+1<E&&(A=I.charCodeAt(0),A>=55296&&A<=56319&&(I+=p[++g])),I=v?c.call(v,$,I,b):I,S?(d.value=I,h(_,b,d)):_[b]=I,++b;E=b}}if(E===void 0)for(E=n(p.length),S&&(_=new S(E)),g=0;g<E;++g)I=v?c.call(v,$,p[g],g):p[g],S?(d.value=I,h(_,g,d)):_[g]=I;return S&&(d.value=null,_.length=E),_},f3}var d3,hF;function a2(){return hF||(hF=1,d3=Gde()()?Array.from:epe()),d3}var tpe=a2(),rpe=Array.isArray,npe=function(e){return rpe(e)?e:tpe(e)},ipe=npe,ape=Bl,ope=Go,lpe=Array.prototype.slice,EX;EX=function(e){return this.map(function(t,r){return t?t(e[r]):e[r]}).concat(lpe.call(e,this.length))};var spe=function(e){return e=ipe(e),e.forEach(function(t){ape(t)&&ope(t)}),EX.bind(e)},Xg=Go,upe=function(e){var t;return typeof e=="function"?{set:e,get:e}:(t={get:Xg(e.get)},e.set!==void 0?(t.set=Xg(e.set),e.delete&&(t.delete=Xg(e.delete)),e.clear&&(t.clear=Xg(e.clear)),t):(t.set=t.get,t))},Qg=Pde,Zg=yX,Lh=go,AX=Hde.methods,cpe=spe,fpe=upe,p3=Function.prototype.apply,h3=Function.prototype.call,vF=Object.create,dpe=Object.defineProperties,ppe=AX.on,hpe=AX.emit,vpe=function(e,t,r){var n=vF(null),i,a,o,l,u,c,d,h,p,v,$,S,g,b,_;return t!==!1?a=t:isNaN(e.length)?a=1:a=e.length,r.normalizer&&(v=fpe(r.normalizer),o=v.get,l=v.set,u=v.delete,c=v.clear),r.resolvers!=null&&(_=cpe(r.resolvers)),o?b=Zg(function(E){var A,M,N=arguments;if(_&&(N=_(N)),A=o(N),A!==null&&hasOwnProperty.call(n,A))return $&&i.emit("get",A,N,this),n[A];if(N.length===1?M=h3.call(e,this,N[0]):M=p3.call(e,this,N),A===null){if(A=o(N),A!==null)throw Qg("Circular invocation","CIRCULAR_INVOCATION");A=l(N)}else if(hasOwnProperty.call(n,A))throw Qg("Circular invocation","CIRCULAR_INVOCATION");return n[A]=M,S&&i.emit("set",A,null,M),M},a):t===0?b=function(){var E;if(hasOwnProperty.call(n,"data"))return $&&i.emit("get","data",arguments,this),n.data;if(arguments.length?E=p3.call(e,this,arguments):E=h3.call(e,this),hasOwnProperty.call(n,"data"))throw Qg("Circular invocation","CIRCULAR_INVOCATION");return n.data=E,S&&i.emit("set","data",null,E),E}:b=function(E){var A,M=arguments,N;if(_&&(M=_(arguments)),N=String(M[0]),hasOwnProperty.call(n,N))return $&&i.emit("get",N,M,this),n[N];if(M.length===1?A=h3.call(e,this,M[0]):A=p3.call(e,this,M),hasOwnProperty.call(n,N))throw Qg("Circular invocation","CIRCULAR_INVOCATION");return n[N]=A,S&&i.emit("set",N,null,A),A},i={original:e,memoized:b,profileName:r.profileName,get:function(E){return _&&(E=_(E)),o?o(E):String(E[0])},has:function(E){return hasOwnProperty.call(n,E)},delete:function(E){var A;hasOwnProperty.call(n,E)&&(u&&u(E),A=n[E],delete n[E],g&&i.emit("delete",E,A))},clear:function(){var E=n;c&&c(),n=vF(null),i.emit("clear",E)},on:function(E,A){return E==="get"?$=!0:E==="set"?S=!0:E==="delete"&&(g=!0),ppe.call(this,E,A)},emit:hpe,updateEnv:function(){e=i.original}},o?d=Zg(function(E){var A,M=arguments;_&&(M=_(M)),A=o(M),A!==null&&i.delete(A)},a):t===0?d=function(){return i.delete("data")}:d=function(E){return _&&(E=_(arguments)[0]),i.delete(E)},h=Zg(function(){var E,A=arguments;return t===0?n.data:(_&&(A=_(A)),o?E=o(A):E=String(A[0]),n[E])}),p=Zg(function(){var E,A=arguments;return t===0?i.has("data"):(_&&(A=_(A)),o?E=o(A):E=String(A[0]),E===null?!1:i.has(E))}),dpe(b,{__memoized__:Lh(!0),delete:Lh(d),clear:Lh(i.clear),_get:Lh(h),_has:Lh(p)}),i},mpe=Go,gpe=e2,mF=Mc,ype=vpe,bpe=hX,$pe=function e(t){var r,n,i;if(mpe(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=bpe(r.length,t.length,r.async&&mF.async),i=ype(t,n,r),gpe(mF,function(a,o){r[o]&&a(r[o],i,r)}),e.__profiler__&&e.__profiler__(i),i.updateEnv(),i.memoized)},v3,gF;function xpe(){return gF||(gF=1,v3=function(e){var t,r,n=e.length;if(!n)return"";for(t=String(e[r=0]);--n;)t+=""+e[++r];return t}),v3}var m3,yF;function wpe(){return yF||(yF=1,m3=function(e){return e?function(t){for(var r=String(t[0]),n=0,i=e;--i;)r+=""+t[++n];return r}:function(){return""}}),m3}var g3,bF;function _pe(){return bF||(bF=1,g3=function(){var e=Number.isNaN;return typeof e!="function"?!1:!e({})&&e(NaN)&&!e(34)}),g3}var y3,$F;function Spe(){return $F||($F=1,y3=function(e){return e!==e}),y3}var b3,xF;function Epe(){return xF||(xF=1,b3=_pe()()?Number.isNaN:Spe()),b3}var $3,wF;function LM(){if(wF)return $3;wF=1;var e=Epe(),t=Pc,r=mo,n=Array.prototype.indexOf,i=Object.prototype.hasOwnProperty,a=Math.abs,o=Math.floor;return $3=function(l){var u,c,d,h;if(!e(l))return n.apply(this,arguments);for(c=t(r(this).length),d=arguments[1],isNaN(d)?d=0:d>=0?d=o(d):d=t(this.length)-o(a(d)),u=d;u<c;++u)if(i.call(this,u)&&(h=this[u],e(h)))return u;return-1},$3}var x3,_F;function Ape(){if(_F)return x3;_F=1;var e=LM(),t=Object.create;return x3=function(){var r=0,n=[],i=t(null);return{get:function(a){var o=0,l=n,u,c=a.length;if(c===0)return l[c]||null;if(l=l[c]){for(;o<c-1;){if(u=e.call(l[0],a[o]),u===-1)return null;l=l[1][u],++o}return u=e.call(l[0],a[o]),u===-1?null:l[1][u]||null}return null},set:function(a){var o=0,l=n,u,c=a.length;if(c===0)l[c]=++r;else{for(l[c]||(l[c]=[[],[]]),l=l[c];o<c-1;)u=e.call(l[0],a[o]),u===-1&&(u=l[0].push(a[o])-1,l[1].push([[],[]])),l=l[1][u],++o;u=e.call(l[0],a[o]),u===-1&&(u=l[0].push(a[o])-1),l[1][u]=++r}return i[r]=a,r},delete:function(a){var o=0,l=n,u,c=i[a],d=c.length,h=[];if(d===0)delete l[d];else if(l=l[d]){for(;o<d-1;){if(u=e.call(l[0],c[o]),u===-1)return;h.push(l,u),l=l[1][u],++o}if(u=e.call(l[0],c[o]),u===-1)return;for(a=l[1][u],l[0].splice(u,1),l[1].splice(u,1);!l[0].length&&h.length;)u=h.pop(),l=h.pop(),l[0].splice(u,1),l[1].splice(u,1)}delete i[a]},clear:function(){n=[],i=t(null)}}},x3}var w3,SF;function Cpe(){if(SF)return w3;SF=1;var e=LM();return w3=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=[]}}},w3}var _3,EF;function Tpe(){if(EF)return _3;EF=1;var e=LM(),t=Object.create;return _3=function(r){var n=0,i=[[],[]],a=t(null);return{get:function(o){for(var l=0,u=i,c;l<r-1;){if(c=e.call(u[0],o[l]),c===-1)return null;u=u[1][c],++l}return c=e.call(u[0],o[l]),c===-1?null:u[1][c]||null},set:function(o){for(var l=0,u=i,c;l<r-1;)c=e.call(u[0],o[l]),c===-1&&(c=u[0].push(o[l])-1,u[1].push([[],[]])),u=u[1][c],++l;return c=e.call(u[0],o[l]),c===-1&&(c=u[0].push(o[l])-1),u[1][c]=++n,a[n]=o,n},delete:function(o){for(var l=0,u=i,c,d=[],h=a[o];l<r-1;){if(c=e.call(u[0],h[l]),c===-1)return;d.push(u,c),u=u[1][c],++l}if(c=e.call(u[0],h[l]),c!==-1){for(o=u[1][c],u[0].splice(c,1),u[1].splice(c,1);!u[0].length&&d.length;)c=d.pop(),u=d.pop(),u[0].splice(c,1),u[1].splice(c,1);delete a[o]}},clear:function(){i=[[],[]],a=t(null)}}},_3}var AF={},S3,CF;function DM(){if(CF)return S3;CF=1;var e=Go,t=e2,r=Function.prototype.call;return S3=function(n,i){var a={},o=arguments[2];return e(i),t(n,function(l,u,c,d){a[u]=r.call(i,o,l,u,c,d)}),a},S3}var E3,TF;function BM(){if(TF)return E3;TF=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 E3=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}(),E3}var PF;function Ppe(){if(PF)return AF;PF=1;var e=a2(),t=DM(),r=mX(),n=yX,i=BM(),a=Array.prototype.slice,o=Function.prototype.apply,l=Object.create;return Mc.async=function(u,c){var d=l(null),h=l(null),p=c.memoized,v=c.original,$,S,g;c.memoized=n(function(b){var _=arguments,E=_[_.length-1];return typeof E=="function"&&($=E,_=a.call(_,0,-1)),p.apply(S=this,g=_)},p);try{r(c.memoized,p)}catch{}c.on("get",function(b){var _,E,A;if($){if(d[b]){typeof d[b]=="function"?d[b]=[d[b],$]:d[b].push($),$=null;return}_=$,E=S,A=g,$=S=g=null,i(function(){var M;hasOwnProperty.call(h,b)?(M=h[b],c.emit("getasync",b,A,E),o.call(_,M.context,M.args)):($=_,S=E,g=A,p.apply(E,A))})}}),c.original=function(){var b,_,E,A;return $?(b=e(arguments),_=function M(N){var U,I,j=M.id;if(j==null){i(o.bind(M,this,arguments));return}if(delete M.id,U=d[j],delete d[j],!!U)return I=e(arguments),c.has(j)&&(N?c.delete(j):(h[j]={context:this,args:I},c.emit("setasync",j,typeof U=="function"?1:U.length))),typeof U=="function"?A=o.call(U,this,I):U.forEach(function(he){A=o.call(he,this,I)},this),A},E=$,$=S=g=null,b.push(_),A=o.call(v,this,b),_.cb=E,$=_,A):o.call(v,this,arguments)},c.on("set",function(b){if(!$){c.delete(b);return}d[b]?typeof d[b]=="function"?d[b]=[d[b],$.cb]:d[b].push($.cb):d[b]=$.cb,delete $.cb,$.id=b,$=null}),c.on("delete",function(b){var _;hasOwnProperty.call(d,b)||h[b]&&(_=h[b],delete h[b],c.emit("deleteasync",b,a.call(_.args,1)))}),c.on("clear",function(){var b=h;h=l(null),c.emit("clearasync",t(b,function(_){return a.call(_.args,1)}))})},AF}var MF={},A3,OF;function Mpe(){if(OF)return A3;OF=1;var e=Array.prototype.forEach,t=Object.create;return A3=function(r){var n=t(null);return e.call(arguments,function(i){n[i]=!0}),n},A3}var C3,RF;function CX(){return RF||(RF=1,C3=function(e){return typeof e=="function"}),C3}var T3,IF;function Ope(){if(IF)return T3;IF=1;var e=CX();return T3=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{throw new TypeError("Passed argument cannot be stringifed")}},T3}var P3,kF;function Rpe(){if(kF)return P3;kF=1;var e=mo,t=Ope();return P3=function(r){return t(e(r))},P3}var M3,FF;function Ipe(){if(FF)return M3;FF=1;var e=CX();return M3=function(t){try{return t&&e(t.toString)?t.toString():String(t)}catch{return"<Non-coercible to string value>"}},M3}var O3,NF;function kpe(){if(NF)return O3;NF=1;var e=Ipe(),t=/[\n\r\u2028\u2029]/g;return O3=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},O3}var Jg={exports:{}},LF;function TX(){if(LF)return Jg.exports;LF=1,Jg.exports=e,Jg.exports.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return Jg.exports}var DF;function Fpe(){if(DF)return MF;DF=1;var e=DM(),t=Mpe(),r=Rpe(),n=kpe(),i=TX(),a=BM(),o=Object.create,l=t("then","then:finally","done","done:finally");return Mc.promise=function(u,c){var d=o(null),h=o(null),p=o(null);if(u===!0)u=null;else if(u=r(u),!l[u])throw new TypeError("'"+n(u)+"' is not valid promise mode");c.on("set",function(v,$,S){var g=!1;if(!i(S)){h[v]=S,c.emit("setasync",v,1);return}d[v]=1,p[v]=S;var b=function(M){var N=d[v];if(g)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)
801
+ Consider to rely on 'then' or 'done' mode instead.`);N&&(delete d[v],h[v]=M,c.emit("setasync",v,N))},_=function(){g=!0,d[v]&&(delete d[v],delete p[v],c.delete(v))},E=u;if(E||(E="then"),E==="then"){var A=function(){a(_)};S=S.then(function(M){a(b.bind(this,M))},A),typeof S.finally=="function"&&S.finally(A)}else if(E==="done"){if(typeof S.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");S.done(b,_)}else if(E==="done:finally"){if(typeof S.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof S.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");S.done(b),S.finally(_)}}),c.on("get",function(v,$,S){var g;if(d[v]){++d[v];return}g=p[v];var b=function(){c.emit("getasync",v,$,S)};i(g)?typeof g.done=="function"?g.done(b):g.then(function(){a(b)}):b()}),c.on("delete",function(v){if(delete p[v],d[v]){delete d[v];return}if(hasOwnProperty.call(h,v)){var $=h[v];delete h[v],c.emit("deleteasync",v,[$])}}),c.on("clear",function(){var v=h;h=o(null),d=o(null),p=o(null),c.emit("clearasync",e(v,function($){return[$]}))})},MF}var BF={},zF;function Npe(){if(zF)return BF;zF=1;var e=Go,t=e2,r=Mc,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(u,c){n.call(i,null,c)}),a.on("clearasync",function(u){t(u,function(c,d){l(d,c)})});return}a.on("delete",l=function(u,c){i(c)}),a.on("clear",function(u){t(u,function(c,d){l(d,c)})})},BF}var UF={},R3,jF;function Lpe(){return jF||(jF=1,R3=2147483647),R3}var I3,HF;function Dpe(){if(HF)return I3;HF=1;var e=Pc,t=Lpe();return I3=function(r){if(r=e(r),r>t)throw new TypeError(r+" exceeds maximum possible timeout");return r},I3}var GF;function Bpe(){if(GF)return UF;GF=1;var e=a2(),t=e2,r=BM(),n=TX(),i=Dpe(),a=Mc,o=Function.prototype,l=Math.max,u=Math.min,c=Object.create;return a.maxAge=function(d,h,p){var v,$,S,g;d=i(d),d&&(v=c(null),$=p.async&&a.async||p.promise&&a.promise?"async":"",h.on("set"+$,function(b){v[b]=setTimeout(function(){h.delete(b)},d),typeof v[b].unref=="function"&&v[b].unref(),g&&(g[b]&&g[b]!=="nextTick"&&clearTimeout(g[b]),g[b]=setTimeout(function(){delete g[b]},S),typeof g[b].unref=="function"&&g[b].unref())}),h.on("delete"+$,function(b){clearTimeout(v[b]),delete v[b],g&&(g[b]!=="nextTick"&&clearTimeout(g[b]),delete g[b])}),p.preFetch&&(p.preFetch===!0||isNaN(p.preFetch)?S=.333:S=l(u(Number(p.preFetch),1),0),S&&(g={},S=(1-S)*d,h.on("get"+$,function(b,_,E){g[b]||(g[b]="nextTick",r(function(){var A;g[b]==="nextTick"&&(delete g[b],h.delete(b),p.async&&(_=e(_),_.push(o)),A=h.memoized.apply(E,_),p.promise&&n(A)&&(typeof A.done=="function"?A.done(o,o):A.then(o,o)))}))}))),h.on("clear"+$,function(){t(v,function(b){clearTimeout(b)}),v={},g&&(t(g,function(b){b!=="nextTick"&&clearTimeout(b)}),g={})}))},UF}var WF={},k3,VF;function zpe(){if(VF)return k3;VF=1;var e=Pc,t=Object.create,r=Object.prototype.hasOwnProperty;return k3=function(n){var i=0,a=1,o=t(null),l=t(null),u=0,c;return n=e(n),{hit:function(d){var h=l[d],p=++u;if(o[p]=d,l[d]=p,!h)return++i,i<=n?void 0:(d=o[a],c(d),d);if(delete o[h],a===h)for(;!r.call(o,++a););},delete:c=function(d){var h=l[d];if(h&&(delete o[h],delete l[d],--i,a===h)){if(!i){u=0,a=1;return}for(;!r.call(o,++a););}},clear:function(){i=0,a=1,o=t(null),l=t(null),u=0}}},k3}var KF;function Upe(){if(KF)return WF;KF=1;var e=Pc,t=zpe(),r=Mc;return r.max=function(n,i,a){var o,l,u;n=e(n),n&&(l=t(n),o=a.async&&r.async||a.promise&&r.promise?"async":"",i.on("set"+o,u=function(c){c=l.hit(c),c!==void 0&&i.delete(c)}),i.on("get"+o,u),i.on("delete"+o,l.delete),i.on("clear"+o,l.clear))},WF}var qF={},YF;function jpe(){if(YF)return qF;YF=1;var e=go,t=Mc,r=Object.create,n=Object.defineProperties;return t.refCounter=function(i,a,o){var l,u;l=r(null),u=o.async&&t.async||o.promise&&t.promise?"async":"",a.on("set"+u,function(c,d){l[c]=d||1}),a.on("get"+u,function(c){++l[c]}),a.on("delete"+u,function(c){delete l[c]}),a.on("clear"+u,function(){l={}}),n(a.memoized,{deleteRef:e(function(){var c=a.get(arguments);return c===null||!l[c]?null:--l[c]?!1:(a.delete(c),!0)}),getRefCount:e(function(){var c=a.get(arguments);return c===null||!l[c]?0:l[c]})})},qF}var Hpe=kM,Gpe=hX,Wpe=$pe,Vpe=function(e){var t=Hpe(arguments[1]),r;return t.normalizer||(r=t.length=Gpe(t.length,e.length,t.async),r!==0&&(t.primitive?r===!1?t.normalizer=xpe():r>1&&(t.normalizer=wpe()(r)):r===!1?t.normalizer=Ape()():r===1?t.normalizer=Cpe()():t.normalizer=Tpe()(r))),t.async&&Ppe(),t.promise&&Fpe(),t.dispose&&Npe(),t.maxAge&&Bpe(),t.max&&Upe(),t.refCounter&&jpe(),Wpe(e,t)};const pEe=$a(Vpe);var PX={exports:{}};/*!
802
+ Copyright (c) 2018 Jed Watson.
803
+ Licensed under the MIT License (MIT), see
804
+ http://jedwatson.github.io/classnames
805
+ */(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 u in a)t.call(a,u)&&a[u]&&n.push(u)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(PX);var Kpe=PX.exports;const hEe=$a(Kpe);/**!
806
+ * @fileOverview Kickass library to create and place poppers near their reference elements.
807
+ * @version 1.16.1
808
+ * @license
809
+ * Copyright (c) 2016 Federico Zivolo and contributors
810
+ *
811
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
812
+ * of this software and associated documentation files (the "Software"), to deal
813
+ * in the Software without restriction, including without limitation the rights
814
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
815
+ * copies of the Software, and to permit persons to whom the Software is
816
+ * furnished to do so, subject to the following conditions:
817
+ *
818
+ * The above copyright notice and this permission notice shall be included in all
819
+ * copies or substantial portions of the Software.
820
+ *
821
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
822
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
823
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
824
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
825
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
826
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
827
+ * SOFTWARE.
828
+ */var Im=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",qpe=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(Im&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();function Ype(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function Xpe(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},qpe))}}var Qpe=Im&&window.Promise,Zpe=Qpe?Ype:Xpe;function MX(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function Rc(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,n=r.getComputedStyle(e,null);return t?n[t]:n}function zM(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function km(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Rc(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(r+i+n)?e:km(zM(e))}function OX(e){return e&&e.referenceNode?e.referenceNode:e}var XF=Im&&!!(window.MSInputMethodContext&&document.documentMode),QF=Im&&/MSIE 10/.test(navigator.userAgent);function ap(e){return e===11?XF:e===10?QF:XF||QF}function kd(e){if(!e)return document.documentElement;for(var t=ap(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&&Rc(r,"position")==="static"?kd(r):r}function Jpe(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||kd(e.firstElementChild)===e}function nT(e){return e.parentNode!==null?nT(e.parentNode):e}function jy(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 Jpe(o)?o:kd(o);var l=nT(e);return l.host?jy(l.host,t):jy(e,nT(t).host)}function Fd(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 ehe(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=Fd(t,"top"),i=Fd(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 ZF(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 JF(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],ap(10)?parseInt(r["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function RX(e){var t=e.body,r=e.documentElement,n=ap(10)&&getComputedStyle(r);return{height:JF("Height",t,r,n),width:JF("Width",t,r,n)}}var the=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},rhe=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}}(),Nd=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},za=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 Hs(e){return za({},e,{right:e.left+e.width,bottom:e.top+e.height})}function iT(e){var t={};try{if(ap(10)){t=e.getBoundingClientRect();var r=Fd(e,"top"),n=Fd(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"?RX(e.ownerDocument):{},o=a.width||e.clientWidth||i.width,l=a.height||e.clientHeight||i.height,u=e.offsetWidth-o,c=e.offsetHeight-l;if(u||c){var d=Rc(e);u-=ZF(d,"x"),c-=ZF(d,"y"),i.width-=u,i.height-=c}return Hs(i)}function UM(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=ap(10),i=t.nodeName==="HTML",a=iT(e),o=iT(t),l=km(e),u=Rc(t),c=parseFloat(u.borderTopWidth),d=parseFloat(u.borderLeftWidth);r&&i&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var h=Hs({top:a.top-o.top-c,left:a.left-o.left-d,width:a.width,height:a.height});if(h.marginTop=0,h.marginLeft=0,!n&&i){var p=parseFloat(u.marginTop),v=parseFloat(u.marginLeft);h.top-=c-p,h.bottom-=c-p,h.left-=d-v,h.right-=d-v,h.marginTop=p,h.marginLeft=v}return(n&&!r?t.contains(l):t===l&&l.nodeName!=="BODY")&&(h=ehe(h,t)),h}function nhe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,n=UM(e,r),i=Math.max(r.clientWidth,window.innerWidth||0),a=Math.max(r.clientHeight,window.innerHeight||0),o=t?0:Fd(r),l=t?0:Fd(r,"left"),u={top:o-n.top+n.marginTop,left:l-n.left+n.marginLeft,width:i,height:a};return Hs(u)}function IX(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(Rc(e,"position")==="fixed")return!0;var r=zM(e);return r?IX(r):!1}function kX(e){if(!e||!e.parentElement||ap())return document.documentElement;for(var t=e.parentElement;t&&Rc(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function jM(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a={top:0,left:0},o=i?kX(e):jy(e,OX(t));if(n==="viewport")a=nhe(o,i);else{var l=void 0;n==="scrollParent"?(l=km(zM(t)),l.nodeName==="BODY"&&(l=e.ownerDocument.documentElement)):n==="window"?l=e.ownerDocument.documentElement:l=n;var u=UM(l,o,i);if(l.nodeName==="HTML"&&!IX(o)){var c=RX(e.ownerDocument),d=c.height,h=c.width;a.top+=u.top-u.marginTop,a.bottom=d+u.top,a.left+=u.left-u.marginLeft,a.right=h+u.left}else a=u}r=r||0;var p=typeof r=="number";return a.left+=p?r:r.left||0,a.top+=p?r:r.top||0,a.right-=p?r:r.right||0,a.bottom-=p?r:r.bottom||0,a}function ihe(e){var t=e.width,r=e.height;return t*r}function FX(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=jM(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}},u=Object.keys(l).map(function(p){return za({key:p},l[p],{area:ihe(l[p])})}).sort(function(p,v){return v.area-p.area}),c=u.filter(function(p){var v=p.width,$=p.height;return v>=r.clientWidth&&$>=r.clientHeight}),d=c.length>0?c[0].key:u[0].key,h=e.split("-")[1];return d+(h?"-"+h:"")}function NX(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,i=n?kX(t):jy(t,OX(r));return UM(r,i,n)}function LX(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 Hy(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 DX(e,t,r){r=r.split("-")[0];var n=LX(e),i={width:n.width,height:n.height},a=["right","left"].indexOf(r)!==-1,o=a?"top":"left",l=a?"left":"top",u=a?"height":"width",c=a?"width":"height";return i[o]=t[o]+t[u]/2-n[u]/2,r===l?i[l]=t[l]-n[c]:i[l]=t[Hy(l)],i}function Fm(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function ahe(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(i){return i[t]===r});var n=Fm(e,function(i){return i[t]===r});return e.indexOf(n)}function BX(e,t,r){var n=r===void 0?e:e.slice(0,ahe(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&&MX(a)&&(t.offsets.popper=Hs(t.offsets.popper),t.offsets.reference=Hs(t.offsets.reference),t=a(t,i))}),t}function ohe(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=NX(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=FX(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=DX(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=BX(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function zX(e,t){return e.some(function(r){var n=r.name,i=r.enabled;return i&&n===t})}function HM(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 lhe(){return this.state.isDestroyed=!0,zX(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[HM("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function UX(e){var t=e.ownerDocument;return t?t.defaultView:window}function jX(e,t,r,n){var i=e.nodeName==="BODY",a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,r,{passive:!0}),i||jX(km(a.parentNode),t,r,n),n.push(a)}function she(e,t,r,n){r.updateBound=n,UX(e).addEventListener("resize",r.updateBound,{passive:!0});var i=km(e);return jX(i,"scroll",r.updateBound,r.scrollParents),r.scrollElement=i,r.eventsEnabled=!0,r}function uhe(){this.state.eventsEnabled||(this.state=she(this.reference,this.options,this.state,this.scheduleUpdate))}function che(e,t){return UX(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 fhe(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=che(this.reference,this.state))}function GM(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function aT(e,t){Object.keys(t).forEach(function(r){var n="";["width","height","top","right","bottom","left"].indexOf(r)!==-1&&GM(t[r])&&(n="px"),e.style[r]=t[r]+n})}function dhe(e,t){Object.keys(t).forEach(function(r){var n=t[r];n!==!1?e.setAttribute(r,t[r]):e.removeAttribute(r)})}function phe(e){return aT(e.instance.popper,e.styles),dhe(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&aT(e.arrowElement,e.arrowStyles),e}function hhe(e,t,r,n,i){var a=NX(i,t,e,r.positionFixed),o=FX(r.placement,a,t,e,r.modifiers.flip.boundariesElement,r.modifiers.flip.padding);return t.setAttribute("x-placement",o),aT(t,{position:r.positionFixed?"fixed":"absolute"}),r}function vhe(e,t){var r=e.offsets,n=r.popper,i=r.reference,a=Math.round,o=Math.floor,l=function(b){return b},u=a(i.width),c=a(n.width),d=["left","right"].indexOf(e.placement)!==-1,h=e.placement.indexOf("-")!==-1,p=u%2===c%2,v=u%2===1&&c%2===1,$=t?d||h||p?a:o:l,S=t?a:l;return{left:$(v&&!h&&t?n.left-1:n.left),top:S(n.top),bottom:S(n.bottom),right:$(n.right)}}var mhe=Im&&/Firefox/i.test(navigator.userAgent);function ghe(e,t){var r=t.x,n=t.y,i=e.offsets.popper,a=Fm(e.instance.modifiers,function(E){return E.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=kd(e.instance.popper),u=iT(l),c={position:i.position},d=vhe(e,window.devicePixelRatio<2||!mhe),h=r==="bottom"?"top":"bottom",p=n==="right"?"left":"right",v=HM("transform"),$=void 0,S=void 0;if(h==="bottom"?l.nodeName==="HTML"?S=-l.clientHeight+d.bottom:S=-u.height+d.bottom:S=d.top,p==="right"?l.nodeName==="HTML"?$=-l.clientWidth+d.right:$=-u.width+d.right:$=d.left,o&&v)c[v]="translate3d("+$+"px, "+S+"px, 0)",c[h]=0,c[p]=0,c.willChange="transform";else{var g=h==="bottom"?-1:1,b=p==="right"?-1:1;c[h]=S*g,c[p]=$*b,c.willChange=h+", "+p}var _={"x-placement":e.placement};return e.attributes=za({},_,e.attributes),e.styles=za({},c,e.styles),e.arrowStyles=za({},e.offsets.arrow,e.arrowStyles),e}function HX(e,t,r){var n=Fm(e,function(l){var u=l.name;return u===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 yhe(e,t){var r;if(!HX(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,u=["left","right"].indexOf(i)!==-1,c=u?"height":"width",d=u?"Top":"Left",h=d.toLowerCase(),p=u?"left":"top",v=u?"bottom":"right",$=LX(n)[c];l[v]-$<o[h]&&(e.offsets.popper[h]-=o[h]-(l[v]-$)),l[h]+$>o[v]&&(e.offsets.popper[h]+=l[h]+$-o[v]),e.offsets.popper=Hs(e.offsets.popper);var S=l[h]+l[c]/2-$/2,g=Rc(e.instance.popper),b=parseFloat(g["margin"+d]),_=parseFloat(g["border"+d+"Width"]),E=S-e.offsets.popper[h]-b-_;return E=Math.max(Math.min(o[c]-$,E),0),e.arrowElement=n,e.offsets.arrow=(r={},Nd(r,h,Math.round(E)),Nd(r,p,""),r),e}function bhe(e){return e==="end"?"start":e==="start"?"end":e}var GX=["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"],F3=GX.slice(3);function eN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=F3.indexOf(e),n=F3.slice(r+1).concat(F3.slice(0,r));return t?n.reverse():n}var N3={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function $he(e,t){if(zX(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=jM(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],i=Hy(n),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case N3.FLIP:o=[n,i];break;case N3.CLOCKWISE:o=eN(n);break;case N3.COUNTERCLOCKWISE:o=eN(n,!0);break;default:o=t.behavior}return o.forEach(function(l,u){if(n!==l||o.length===u+1)return e;n=e.placement.split("-")[0],i=Hy(n);var c=e.offsets.popper,d=e.offsets.reference,h=Math.floor,p=n==="left"&&h(c.right)>h(d.left)||n==="right"&&h(c.left)<h(d.right)||n==="top"&&h(c.bottom)>h(d.top)||n==="bottom"&&h(c.top)<h(d.bottom),v=h(c.left)<h(r.left),$=h(c.right)>h(r.right),S=h(c.top)<h(r.top),g=h(c.bottom)>h(r.bottom),b=n==="left"&&v||n==="right"&&$||n==="top"&&S||n==="bottom"&&g,_=["top","bottom"].indexOf(n)!==-1,E=!!t.flipVariations&&(_&&a==="start"&&v||_&&a==="end"&&$||!_&&a==="start"&&S||!_&&a==="end"&&g),A=!!t.flipVariationsByContent&&(_&&a==="start"&&$||_&&a==="end"&&v||!_&&a==="start"&&g||!_&&a==="end"&&S),M=E||A;(p||b||M)&&(e.flipped=!0,(p||b)&&(n=o[u+1]),M&&(a=bhe(a)),e.placement=n+(a?"-"+a:""),e.offsets.popper=za({},e.offsets.popper,DX(e.instance.popper,e.offsets.reference,e.placement)),e=BX(e.instance.modifiers,e,"flip"))}),e}function xhe(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",u=o?"left":"top",c=o?"width":"height";return r[l]<a(n[u])&&(e.offsets.popper[u]=a(n[u])-r[c]),r[u]>a(n[l])&&(e.offsets.popper[u]=a(n[l])),e}function whe(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 u=Hs(l);return u[t]/100*a}else if(o==="vh"||o==="vw"){var c=void 0;return o==="vh"?c=Math.max(document.documentElement.clientHeight,window.innerHeight||0):c=Math.max(document.documentElement.clientWidth,window.innerWidth||0),c/100*a}else return a}function _he(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(Fm(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 u=/\s*,\s*|\s+/,c=l!==-1?[o.slice(0,l).concat([o[l].split(u)[0]]),[o[l].split(u)[1]].concat(o.slice(l+1))]:[o];return c=c.map(function(d,h){var p=(h===1?!a:a)?"height":"width",v=!1;return d.reduce(function($,S){return $[$.length-1]===""&&["+","-"].indexOf(S)!==-1?($[$.length-1]=S,v=!0,$):v?($[$.length-1]+=S,v=!1,$):$.concat(S)},[]).map(function($){return whe($,p,t,r)})}),c.forEach(function(d,h){d.forEach(function(p,v){GM(p)&&(i[h]+=p*(d[v-1]==="-"?-1:1))})}),i}function She(e,t){var r=t.offset,n=e.placement,i=e.offsets,a=i.popper,o=i.reference,l=n.split("-")[0],u=void 0;return GM(+r)?u=[+r,0]:u=_he(r,a,o,l),l==="left"?(a.top+=u[0],a.left-=u[1]):l==="right"?(a.top+=u[0],a.left+=u[1]):l==="top"?(a.left+=u[0],a.top-=u[1]):l==="bottom"&&(a.left+=u[0],a.top+=u[1]),e.popper=a,e}function Ehe(e,t){var r=t.boundariesElement||kd(e.instance.popper);e.instance.reference===r&&(r=kd(r));var n=HM("transform"),i=e.instance.popper.style,a=i.top,o=i.left,l=i[n];i.top="",i.left="",i[n]="";var u=jM(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);i.top=a,i.left=o,i[n]=l,t.boundaries=u;var c=t.priority,d=e.offsets.popper,h={primary:function(v){var $=d[v];return d[v]<u[v]&&!t.escapeWithReference&&($=Math.max(d[v],u[v])),Nd({},v,$)},secondary:function(v){var $=v==="right"?"left":"top",S=d[$];return d[v]>u[v]&&!t.escapeWithReference&&(S=Math.min(d[$],u[v]-(v==="right"?d.width:d.height))),Nd({},$,S)}};return c.forEach(function(p){var v=["left","top"].indexOf(p)!==-1?"primary":"secondary";d=za({},d,h[v](p))}),e.offsets.popper=d,e}function Ahe(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,u=l?"left":"top",c=l?"width":"height",d={start:Nd({},u,a[u]),end:Nd({},u,a[u]+a[c]-o[c])};e.offsets.popper=za({},o,d[n])}return e}function Che(e){if(!HX(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=Fm(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 The(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=Hy(t),e.offsets.popper=Hs(i),e}var Phe={shift:{order:100,enabled:!0,fn:Ahe},offset:{order:200,enabled:!0,fn:She,offset:0},preventOverflow:{order:300,enabled:!0,fn:Ehe,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:xhe},arrow:{order:500,enabled:!0,fn:yhe,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:$he,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:The},hide:{order:800,enabled:!0,fn:Che},computeStyle:{order:850,enabled:!0,fn:ghe,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:phe,onLoad:hhe,gpuAcceleration:void 0}},Mhe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Phe},o2=function(){function e(t,r){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};the(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=Zpe(this.update.bind(this)),this.options=za({},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(za({},e.Defaults.modifiers,i.modifiers)).forEach(function(o){n.options.modifiers[o]=za({},e.Defaults.modifiers[o]||{},i.modifiers?i.modifiers[o]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(o){return za({name:o},n.options.modifiers[o])}).sort(function(o,l){return o.order-l.order}),this.modifiers.forEach(function(o){o.enabled&&MX(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 rhe(e,[{key:"update",value:function(){return ohe.call(this)}},{key:"destroy",value:function(){return lhe.call(this)}},{key:"enableEventListeners",value:function(){return uhe.call(this)}},{key:"disableEventListeners",value:function(){return fhe.call(this)}}]),e}();o2.Utils=(typeof window<"u"?window:global).PopperUtils;o2.placements=GX;o2.Defaults=Mhe;const vEe=o2;function Jv(e){return Jv=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},Jv(e)}function Ohe(e,t){if(Jv(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Jv(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rhe(e){var t=Ohe(e,"string");return Jv(t)==="symbol"?t:String(t)}function Ihe(e,t,r){return t=Rhe(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tN(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 rN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tN(Object(r),!0).forEach(function(n){Ihe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yi(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 nN=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),L3=function(){return Math.random().toString(36).substring(7).split("").join(".")},em={INIT:"@@redux/INIT"+L3(),REPLACE:"@@redux/REPLACE"+L3(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+L3()}};function khe(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 WM(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(yi(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(yi(1));return r(WM)(e,t)}if(typeof e!="function")throw new Error(yi(2));var i=e,a=t,o=[],l=o,u=!1;function c(){l===o&&(l=o.slice())}function d(){if(u)throw new Error(yi(3));return a}function h(S){if(typeof S!="function")throw new Error(yi(4));if(u)throw new Error(yi(5));var g=!0;return c(),l.push(S),function(){if(g){if(u)throw new Error(yi(6));g=!1,c();var _=l.indexOf(S);l.splice(_,1),o=null}}}function p(S){if(!khe(S))throw new Error(yi(7));if(typeof S.type>"u")throw new Error(yi(8));if(u)throw new Error(yi(9));try{u=!0,a=i(a,S)}finally{u=!1}for(var g=o=l,b=0;b<g.length;b++){var _=g[b];_()}return S}function v(S){if(typeof S!="function")throw new Error(yi(10));i=S,p({type:em.REPLACE})}function $(){var S,g=h;return S={subscribe:function(_){if(typeof _!="object"||_===null)throw new Error(yi(11));function E(){_.next&&_.next(d())}E();var A=g(E);return{unsubscribe:A}}},S[nN]=function(){return this},S}return p({type:em.INIT}),n={dispatch:p,subscribe:h,getState:d,replaceReducer:v},n[nN]=$,n}var Fhe=WM;function Nhe(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:em.INIT});if(typeof n>"u")throw new Error(yi(12));if(typeof r(void 0,{type:em.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(yi(13))})}function Lhe(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{Nhe(r)}catch(l){o=l}return function(u,c){if(u===void 0&&(u={}),o)throw o;for(var d=!1,h={},p=0;p<a.length;p++){var v=a[p],$=r[v],S=u[v],g=$(S,c);if(typeof g>"u")throw c&&c.type,new Error(yi(14));h[v]=g,d=d||g!==S}return d=d||a.length!==Object.keys(u).length,d?h:u}}function iN(e,t){return function(){return t(e.apply(this,arguments))}}function Dhe(e,t){if(typeof e=="function")return iN(e,t);if(typeof e!="object"||e===null)throw new Error(yi(16));var r={};for(var n in e){var i=e[n];typeof i=="function"&&(r[n]=iN(i,t))}return r}function WX(){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 Bhe(){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(yi(15))},o={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(u){return u(o)});return a=WX.apply(void 0,l)(i.dispatch),rN(rN({},i),{},{dispatch:a})}}}const mEe=Object.freeze(Object.defineProperty({__proto__:null,__DO_NOT_USE__ActionTypes:em,applyMiddleware:Bhe,bindActionCreators:Dhe,combineReducers:Lhe,compose:WX,createStore:WM,legacy_createStore:Fhe},Symbol.toStringTag,{value:"Module"}));var Uo=D.createContext(null);function zhe(e){e()}var VX=zhe,Uhe=function(t){return VX=t},jhe=function(){return VX};function Hhe(){var e=jhe(),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 aN={notify:function(){},get:function(){return[]}};function VM(e,t){var r,n=aN;function i(h){return u(),n.subscribe(h)}function a(){n.notify()}function o(){d.onStateChange&&d.onStateChange()}function l(){return!!r}function u(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=Hhe())}function c(){r&&(r(),r=void 0,n.clear(),n=aN)}var d={addNestedSub:i,notifyNestedSubs:a,handleChangeWrapper:o,isSubscribed:l,trySubscribe:u,tryUnsubscribe:c,getListeners:function(){return n}};return d}var Gy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?z.useLayoutEffect:z.useEffect;function Ghe(e){var t=e.store,r=e.context,n=e.children,i=z.useMemo(function(){var l=VM(t);return l.onStateChange=l.notifyNestedSubs,{store:t,subscription:l}},[t]),a=z.useMemo(function(){return t.getState()},[t]);Gy(function(){var l=i.subscription;return l.trySubscribe(),a!==t.getState()&&l.notifyNestedSubs(),function(){l.tryUnsubscribe(),l.onStateChange=null}},[i,a]);var o=r||Uo;return D.createElement(o.Provider,{value:i},n)}var KX={exports:{}},Wr={};/** @license React v16.13.1
829
+ * react-is.production.min.js
830
+ *
831
+ * Copyright (c) Facebook, Inc. and its affiliates.
832
+ *
833
+ * This source code is licensed under the MIT license found in the
834
+ * LICENSE file in the root directory of this source tree.
835
+ */var di=typeof Symbol=="function"&&Symbol.for,KM=di?Symbol.for("react.element"):60103,qM=di?Symbol.for("react.portal"):60106,l2=di?Symbol.for("react.fragment"):60107,s2=di?Symbol.for("react.strict_mode"):60108,u2=di?Symbol.for("react.profiler"):60114,c2=di?Symbol.for("react.provider"):60109,f2=di?Symbol.for("react.context"):60110,YM=di?Symbol.for("react.async_mode"):60111,d2=di?Symbol.for("react.concurrent_mode"):60111,p2=di?Symbol.for("react.forward_ref"):60112,h2=di?Symbol.for("react.suspense"):60113,Whe=di?Symbol.for("react.suspense_list"):60120,v2=di?Symbol.for("react.memo"):60115,m2=di?Symbol.for("react.lazy"):60116,Vhe=di?Symbol.for("react.block"):60121,Khe=di?Symbol.for("react.fundamental"):60117,qhe=di?Symbol.for("react.responder"):60118,Yhe=di?Symbol.for("react.scope"):60119;function Ea(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case KM:switch(e=e.type,e){case YM:case d2:case l2:case u2:case s2:case h2:return e;default:switch(e=e&&e.$$typeof,e){case f2:case p2:case m2:case v2:case c2:return e;default:return t}}case qM:return t}}}function qX(e){return Ea(e)===d2}Wr.AsyncMode=YM;Wr.ConcurrentMode=d2;Wr.ContextConsumer=f2;Wr.ContextProvider=c2;Wr.Element=KM;Wr.ForwardRef=p2;Wr.Fragment=l2;Wr.Lazy=m2;Wr.Memo=v2;Wr.Portal=qM;Wr.Profiler=u2;Wr.StrictMode=s2;Wr.Suspense=h2;Wr.isAsyncMode=function(e){return qX(e)||Ea(e)===YM};Wr.isConcurrentMode=qX;Wr.isContextConsumer=function(e){return Ea(e)===f2};Wr.isContextProvider=function(e){return Ea(e)===c2};Wr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===KM};Wr.isForwardRef=function(e){return Ea(e)===p2};Wr.isFragment=function(e){return Ea(e)===l2};Wr.isLazy=function(e){return Ea(e)===m2};Wr.isMemo=function(e){return Ea(e)===v2};Wr.isPortal=function(e){return Ea(e)===qM};Wr.isProfiler=function(e){return Ea(e)===u2};Wr.isStrictMode=function(e){return Ea(e)===s2};Wr.isSuspense=function(e){return Ea(e)===h2};Wr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===l2||e===d2||e===u2||e===s2||e===h2||e===Whe||typeof e=="object"&&e!==null&&(e.$$typeof===m2||e.$$typeof===v2||e.$$typeof===c2||e.$$typeof===f2||e.$$typeof===p2||e.$$typeof===Khe||e.$$typeof===qhe||e.$$typeof===Yhe||e.$$typeof===Vhe)};Wr.typeOf=Ea;KX.exports=Wr;var Xhe=KX.exports,XM=Xhe,Qhe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Zhe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Jhe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},YX={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},QM={};QM[XM.ForwardRef]=Jhe;QM[XM.Memo]=YX;function oN(e){return XM.isMemo(e)?YX:QM[e.$$typeof]||Qhe}var eve=Object.defineProperty,tve=Object.getOwnPropertyNames,lN=Object.getOwnPropertySymbols,rve=Object.getOwnPropertyDescriptor,nve=Object.getPrototypeOf,sN=Object.prototype;function XX(e,t,r){if(typeof t!="string"){if(sN){var n=nve(t);n&&n!==sN&&XX(e,n,r)}var i=tve(t);lN&&(i=i.concat(lN(t)));for(var a=oN(e),o=oN(t),l=0;l<i.length;++l){var u=i[l];if(!Zhe[u]&&!(r&&r[u])&&!(o&&o[u])&&!(a&&a[u])){var c=rve(t,u);try{eve(e,u,c)}catch{}}}}return e}var ive=XX;const uN=$a(ive);var QX={exports:{}},Zr={};/** @license React v17.0.2
836
+ * react-is.production.min.js
837
+ *
838
+ * Copyright (c) Facebook, Inc. and its affiliates.
839
+ *
840
+ * This source code is licensed under the MIT license found in the
841
+ * LICENSE file in the root directory of this source tree.
842
+ */var g2=60103,y2=60106,Nm=60107,Lm=60108,Dm=60114,Bm=60109,zm=60110,Um=60112,jm=60113,ZM=60120,Hm=60115,Gm=60116,ZX=60121,JX=60122,eQ=60117,tQ=60129,rQ=60131;if(typeof Symbol=="function"&&Symbol.for){var mi=Symbol.for;g2=mi("react.element"),y2=mi("react.portal"),Nm=mi("react.fragment"),Lm=mi("react.strict_mode"),Dm=mi("react.profiler"),Bm=mi("react.provider"),zm=mi("react.context"),Um=mi("react.forward_ref"),jm=mi("react.suspense"),ZM=mi("react.suspense_list"),Hm=mi("react.memo"),Gm=mi("react.lazy"),ZX=mi("react.block"),JX=mi("react.server.block"),eQ=mi("react.fundamental"),tQ=mi("react.debug_trace_mode"),rQ=mi("react.legacy_hidden")}function yo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case g2:switch(e=e.type,e){case Nm:case Dm:case Lm:case jm:case ZM:return e;default:switch(e=e&&e.$$typeof,e){case zm:case Um:case Gm:case Hm:case Bm:return e;default:return t}}case y2:return t}}}var ave=Bm,ove=g2,lve=Um,sve=Nm,uve=Gm,cve=Hm,fve=y2,dve=Dm,pve=Lm,hve=jm;Zr.ContextConsumer=zm;Zr.ContextProvider=ave;Zr.Element=ove;Zr.ForwardRef=lve;Zr.Fragment=sve;Zr.Lazy=uve;Zr.Memo=cve;Zr.Portal=fve;Zr.Profiler=dve;Zr.StrictMode=pve;Zr.Suspense=hve;Zr.isAsyncMode=function(){return!1};Zr.isConcurrentMode=function(){return!1};Zr.isContextConsumer=function(e){return yo(e)===zm};Zr.isContextProvider=function(e){return yo(e)===Bm};Zr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===g2};Zr.isForwardRef=function(e){return yo(e)===Um};Zr.isFragment=function(e){return yo(e)===Nm};Zr.isLazy=function(e){return yo(e)===Gm};Zr.isMemo=function(e){return yo(e)===Hm};Zr.isPortal=function(e){return yo(e)===y2};Zr.isProfiler=function(e){return yo(e)===Dm};Zr.isStrictMode=function(e){return yo(e)===Lm};Zr.isSuspense=function(e){return yo(e)===jm};Zr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Nm||e===Dm||e===tQ||e===Lm||e===jm||e===ZM||e===rQ||typeof e=="object"&&e!==null&&(e.$$typeof===Gm||e.$$typeof===Hm||e.$$typeof===Bm||e.$$typeof===zm||e.$$typeof===Um||e.$$typeof===eQ||e.$$typeof===ZX||e[0]===JX)};Zr.typeOf=yo;QX.exports=Zr;var vve=QX.exports,mve=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],gve=["reactReduxForwardedRef"],yve=[],bve=[null,null];function $ve(e,t){var r=e[1];return[t.payload,r+1]}function cN(e,t,r){Gy(function(){return e.apply(void 0,t)},r)}function xve(e,t,r,n,i,a,o){e.current=n,t.current=i,r.current=!1,a.current&&(a.current=null,o())}function wve(e,t,r,n,i,a,o,l,u,c){if(e){var d=!1,h=null,p=function(){if(!d){var S=t.getState(),g,b;try{g=n(S,i.current)}catch(_){b=_,h=_}b||(h=null),g===a.current?o.current||u():(a.current=g,l.current=g,o.current=!0,c({type:"STORE_UPDATED",payload:{error:b}}))}};r.onStateChange=p,r.trySubscribe(),p();var v=function(){if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,h)throw h};return v}}var _ve=function(){return[null,0]};function nQ(e,t){t===void 0&&(t={});var r=t,n=r.getDisplayName,i=n===void 0?function(E){return"ConnectAdvanced("+E+")"}:n,a=r.methodName,o=a===void 0?"connectAdvanced":a,l=r.renderCountProp,u=l===void 0?void 0:l,c=r.shouldHandleStateChanges,d=c===void 0?!0:c,h=r.storeKey,p=h===void 0?"store":h;r.withRef;var v=r.forwardRef,$=v===void 0?!1:v,S=r.context,g=S===void 0?Uo:S,b=Od(r,mve),_=g;return function(A){var M=A.displayName||A.name||"Component",N=i(M),U=ai({},b,{getDisplayName:i,methodName:o,renderCountProp:u,shouldHandleStateChanges:d,storeKey:p,displayName:N,wrappedComponentName:M,WrappedComponent:A}),I=b.pure;function j(ce){return e(ce.dispatch,U)}var he=I?z.useMemo:function(ce){return ce()};function q(ce){var De=z.useMemo(function(){var ge=ce.reactReduxForwardedRef,He=Od(ce,gve);return[ce.context,ge,He]},[ce]),We=De[0],Ae=De[1],$e=De[2],rt=z.useMemo(function(){return We&&We.Consumer&&vve.isContextConsumer(D.createElement(We.Consumer,null))?We:_},[We,_]),Be=z.useContext(rt),Ee=!!ce.store&&!!ce.store.getState&&!!ce.store.dispatch;Be&&Be.store;var Ke=Ee?ce.store:Be.store,Ge=z.useMemo(function(){return j(Ke)},[Ke]),Fe=z.useMemo(function(){if(!d)return bve;var ge=VM(Ke,Ee?null:Be.subscription),He=ge.notifyNestedSubs.bind(ge);return[ge,He]},[Ke,Ee,Be]),ft=Fe[0],bt=Fe[1],Gt=z.useMemo(function(){return Ee?Be:ai({},Be,{subscription:ft})},[Ee,Be,ft]),qt=z.useReducer($ve,yve,_ve),nt=qt[0],At=nt[0],Wt=qt[1];if(At&&At.error)throw At.error;var we=z.useRef(),W=z.useRef($e),le=z.useRef(),R=z.useRef(!1),T=he(function(){return le.current&&$e===W.current?le.current:Ge(Ke.getState(),$e)},[Ke,At,$e]);cN(xve,[W,we,R,$e,T,le,bt]),cN(wve,[d,Ke,ft,Ge,W,we,R,le,bt,Wt],[Ke,ft,Ge]);var O=z.useMemo(function(){return D.createElement(A,ai({},T,{ref:Ae}))},[Ae,A,T]),H=z.useMemo(function(){return d?D.createElement(rt.Provider,{value:Gt},O):O},[rt,O,Gt]);return H}var fe=I?D.memo(q):q;if(fe.WrappedComponent=A,fe.displayName=q.displayName=N,$){var ne=D.forwardRef(function(De,We){return D.createElement(fe,ai({},De,{reactReduxForwardedRef:We}))});return ne.displayName=N,ne.WrappedComponent=A,uN(ne,A)}return uN(fe,A)}}function fN(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function j1(e,t){if(fN(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])||!fN(e[r[i]],t[r[i]]))return!1;return!0}function Sve(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 JM(e){return function(r,n){var i=e(r,n);function a(){return i}return a.dependsOnOwnProps=!1,a}}function dN(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?!!e.dependsOnOwnProps:e.length!==1}function iQ(e,t){return function(n,i){i.displayName;var a=function(l,u){return a.dependsOnOwnProps?a.mapToProps(l,u):a.mapToProps(l)};return a.dependsOnOwnProps=!0,a.mapToProps=function(l,u){a.mapToProps=e,a.dependsOnOwnProps=dN(e);var c=a(l,u);return typeof c=="function"&&(a.mapToProps=c,a.dependsOnOwnProps=dN(c),c=a(l,u)),c},a}}function Eve(e){return typeof e=="function"?iQ(e):void 0}function Ave(e){return e?void 0:JM(function(t){return{dispatch:t}})}function Cve(e){return e&&typeof e=="object"?JM(function(t){return Sve(e,t)}):void 0}const Tve=[Eve,Ave,Cve];function Pve(e){return typeof e=="function"?iQ(e):void 0}function Mve(e){return e?void 0:JM(function(){return{}})}const Ove=[Pve,Mve];function Rve(e,t,r){return ai({},r,e,t)}function Ive(e){return function(r,n){n.displayName;var i=n.pure,a=n.areMergedPropsEqual,o=!1,l;return function(c,d,h){var p=e(c,d,h);return o?(!i||!a(p,l))&&(l=p):(o=!0,l=p),l}}}function kve(e){return typeof e=="function"?Ive(e):void 0}function Fve(e){return e?void 0:function(){return Rve}}const Nve=[kve,Fve];var Lve=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Dve(e,t,r,n){return function(a,o){return r(e(a,o),t(n,o),o)}}function Bve(e,t,r,n,i){var a=i.areStatesEqual,o=i.areOwnPropsEqual,l=i.areStatePropsEqual,u=!1,c,d,h,p,v;function $(E,A){return c=E,d=A,h=e(c,d),p=t(n,d),v=r(h,p,d),u=!0,v}function S(){return h=e(c,d),t.dependsOnOwnProps&&(p=t(n,d)),v=r(h,p,d),v}function g(){return e.dependsOnOwnProps&&(h=e(c,d)),t.dependsOnOwnProps&&(p=t(n,d)),v=r(h,p,d),v}function b(){var E=e(c,d),A=!l(E,h);return h=E,A&&(v=r(h,p,d)),v}function _(E,A){var M=!o(A,d),N=!a(E,c);return c=E,d=A,M&&N?S():M?g():N?b():v}return function(A,M){return u?_(A,M):$(A,M)}}function zve(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,i=t.initMergeProps,a=Od(t,Lve),o=r(e,a),l=n(e,a),u=i(e,a),c=a.pure?Bve:Dve;return c(o,l,u,e,a)}var Uve=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function D3(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 jve(e,t){return e===t}function Hve(e){var t=e===void 0?{}:e,r=t.connectHOC,n=r===void 0?nQ:r,i=t.mapStateToPropsFactories,a=i===void 0?Ove:i,o=t.mapDispatchToPropsFactories,l=o===void 0?Tve:o,u=t.mergePropsFactories,c=u===void 0?Nve:u,d=t.selectorFactory,h=d===void 0?zve:d;return function(v,$,S,g){g===void 0&&(g={});var b=g,_=b.pure,E=_===void 0?!0:_,A=b.areStatesEqual,M=A===void 0?jve:A,N=b.areOwnPropsEqual,U=N===void 0?j1:N,I=b.areStatePropsEqual,j=I===void 0?j1:I,he=b.areMergedPropsEqual,q=he===void 0?j1:he,fe=Od(b,Uve),ne=D3(v,a,"mapStateToProps"),ce=D3($,l,"mapDispatchToProps"),De=D3(S,c,"mergeProps");return n(h,ai({methodName:"connect",getDisplayName:function(Ae){return"Connect("+Ae+")"},shouldHandleStateChanges:!!v,initMapStateToProps:ne,initMapDispatchToProps:ce,initMergeProps:De,pure:E,areStatesEqual:M,areOwnPropsEqual:U,areStatePropsEqual:j,areMergedPropsEqual:q},fe))}}const eO=Hve();function aQ(){var e=z.useContext(Uo);return e}function tO(e){e===void 0&&(e=Uo);var t=e===Uo?aQ:function(){return z.useContext(e)};return function(){var n=t(),i=n.store;return i}}var oQ=tO();function lQ(e){e===void 0&&(e=Uo);var t=e===Uo?oQ:tO(e);return function(){var n=t();return n.dispatch}}var Gve=lQ(),Wve=function(t,r){return t===r};function Vve(e,t,r,n){var i=z.useReducer(function($){return $+1},0),a=i[1],o=z.useMemo(function(){return VM(r,n)},[r,n]),l=z.useRef(),u=z.useRef(),c=z.useRef(),d=z.useRef(),h=r.getState(),p;try{if(e!==u.current||h!==c.current||l.current){var v=e(h);d.current===void 0||!t(v,d.current)?p=v:p=d.current}else p=d.current}catch($){throw l.current&&($.message+=`
843
+ The error may be correlated with this previous error:
844
+ `+l.current.stack+`
845
+
846
+ `),$}return Gy(function(){u.current=e,c.current=h,d.current=p,l.current=void 0}),Gy(function(){function $(){try{var S=r.getState();if(S===c.current)return;var g=u.current(S);if(t(g,d.current))return;d.current=g,c.current=S}catch(b){l.current=b}a()}return o.onStateChange=$,o.trySubscribe(),$(),function(){return o.tryUnsubscribe()}},[r,o]),p}function sQ(e){e===void 0&&(e=Uo);var t=e===Uo?aQ:function(){return z.useContext(e)};return function(n,i){i===void 0&&(i=Wve);var a=t(),o=a.store,l=a.subscription,u=Vve(n,i,o,l);return z.useDebugValue(u),u}}var Kve=sQ();Uhe(Rb.unstable_batchedUpdates);const gEe=Object.freeze(Object.defineProperty({__proto__:null,Provider:Ghe,ReactReduxContext:Uo,batch:Rb.unstable_batchedUpdates,connect:eO,connectAdvanced:nQ,createDispatchHook:lQ,createSelectorHook:sQ,createStoreHook:tO,shallowEqual:j1,useDispatch:Gve,useSelector:Kve,useStore:oQ},Symbol.toStringTag,{value:"Module"}));function qve(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 uQ(e,t){var r=z.useState(function(){return{inputs:t,result:e()}})[0],n=z.useRef(!0),i=z.useRef(r),a=n.current||!!(t&&i.current.inputs&&qve(t,i.current.inputs)),o=a?i.current:{inputs:t,result:e()};return z.useEffect(function(){n.current=!1,i.current=o},[o]),o.result}function Yve(e,t){return uQ(function(){return e},t)}var Bi=uQ,ri=Yve,Xve=!0,B3="Invariant failed";function Qve(e,t){if(!e){if(Xve)throw new Error(B3);var r=typeof t=="function"?t():t,n=r?B3+": "+r:B3;throw new Error(n)}}var ad=function(t){var r=t.top,n=t.right,i=t.bottom,a=t.left,o=n-a,l=i-r,u={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 u},cQ=function(t,r){return{top:t.top-r.top,left:t.left-r.left,bottom:t.bottom+r.bottom,right:t.right+r.right}},pN=function(t,r){return{top:t.top+r.top,left:t.left+r.left,bottom:t.bottom-r.bottom,right:t.right-r.right}},Zve=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},z3={top:0,right:0,bottom:0,left:0},rO=function(t){var r=t.borderBox,n=t.margin,i=n===void 0?z3:n,a=t.border,o=a===void 0?z3:a,l=t.padding,u=l===void 0?z3:l,c=ad(cQ(r,i)),d=ad(pN(r,o)),h=ad(pN(d,u));return{marginBox:c,borderBox:ad(r),paddingBox:d,contentBox:h,margin:i,border:o,padding:u}},Ia=function(t){var r=t.slice(0,-2),n=t.slice(-2);if(n!=="px")return 0;var i=Number(r);return isNaN(i)&&Qve(!1),i},Jve=function(){return{x:window.pageXOffset,y:window.pageYOffset}},eme=function(t,r){var n=t.borderBox,i=t.border,a=t.margin,o=t.padding,l=Zve(n,r);return rO({borderBox:l,border:i,margin:a,padding:o})},oT=function(t,r){return r===void 0&&(r=Jve()),eme(t,r)},fQ=function(t,r){var n={top:Ia(r.marginTop),right:Ia(r.marginRight),bottom:Ia(r.marginBottom),left:Ia(r.marginLeft)},i={top:Ia(r.paddingTop),right:Ia(r.paddingRight),bottom:Ia(r.paddingBottom),left:Ia(r.paddingLeft)},a={top:Ia(r.borderTopWidth),right:Ia(r.borderRightWidth),bottom:Ia(r.borderBottomWidth),left:Ia(r.borderLeftWidth)};return rO({borderBox:t,margin:n,padding:i,border:a})},dQ=function(t){var r=t.getBoundingClientRect(),n=window.getComputedStyle(t);return fQ(r,n)},hN=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function tme(e,t){return!!(e===t||hN(e)&&hN(t))}function rme(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!tme(e[r],t[r]))return!1;return!0}function Dn(e,t){t===void 0&&(t=rme);var r,n=[],i,a=!1;function o(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return a&&r===this&&t(l,n)||(i=e.apply(this,l),a=!0,r=this,n=l),i}return o}var nme=function(t){var r=[],n=null,i=function(){for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];r=l,!n&&(n=requestAnimationFrame(function(){n=null,t.apply(void 0,r)}))};return i.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},i};const ime=nme;function pQ(e,t){}pQ.bind(null,"warn");pQ.bind(null,"error");function ame(){}function ome(e,t){return ai({},e,{},t)}function lme(e,t,r){var n=t.map(function(i){var a=ome(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 sme="Invariant failed";function Wy(e){this.message=e}Wy.prototype.toString=function(){return this.message};function pa(e,t){if(!e)throw new Wy(sme)}(function(e){Cm(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=ame,n.onWindowError=function(l){var u=n.getCallbacks();u.isDragging()&&u.tryAbort();var c=l.error;c instanceof Wy&&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=lme(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(i){if(i instanceof Wy){this.setState({});return}throw i},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},t})(D.Component);var dc={x:0,y:0},ume=function(t,r){return{x:t.x-r.x,y:t.y-r.y}},cme=function(t,r){return t.x===r.x&&t.y===r.y},fme=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},dme=function(t,r,n){var i;return n===void 0&&(n=0),i={},i[t]=r,i[t==="x"?"y":"x"]=n,i},pme=function(e,t){var r=ad({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},hme=function(t,r){return{top:t.top+r.y,left:t.left+r.x,bottom:t.bottom+r.y,right:t.right+r.x}},vme={top:0,right:0,bottom:0,left:0},mme=function(t,r){return r?hme(t,r.scroll.diff.displacement):t},gme=function(t,r,n){if(n&&n.increasedBy){var i;return ai({},t,(i={},i[r.end]=t[r.end]+n.increasedBy[r.line],i))}return t},yme=function(t,r){return r&&r.shouldClipSubject?pme(r.pageMarginBox,t):ad(t)},bme=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,i=e.frame,a=mme(t.marginBox,i),o=gme(a,n,r),l=yme(o,i);return{page:t,withPlaceholder:r,active:l}};function hQ(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function $me(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 vQ(e,t){if(e.find)return e.find(t);var r=$me(e,t);if(r!==-1)return e[r]}Dn(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})});Dn(function(e){return e.reduce(function(t,r){return t[r.descriptor.id]=r,t},{})});var xme=Dn(function(e){return hQ(e)}),wme=Dn(function(e){return hQ(e)});Dn(function(e,t){var r=wme(t).filter(function(n){return e===n.descriptor.droppableId}).sort(function(n,i){return n.descriptor.index-i.descriptor.index});return r});function _me(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}Dn(function(e,t){return t.filter(function(r){return r.descriptor.id!==e.descriptor.id})});var Sme={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},Eme={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};Dn(function(t,r){var n=r[t.line];return{value:n,point:dme(t.line,n)}});var H1=function(e){var t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null},Ame=function(t){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:t}},Cme=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}},nO={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},tm={opacity:{drop:0,combining:.7},scale:{drop:.75}},Tme={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Ru=Tme.outOfTheWay+"s "+nO.outOfTheWay,G1={fluid:"opacity "+Ru,snap:"transform "+Ru+", opacity "+Ru,drop:function(t){var r=t+"s "+nO.drop;return"transform "+r+", opacity "+r},outOfTheWay:"transform "+Ru,placeholder:"height "+Ru+", width "+Ru+", margin "+Ru},vN=function(t){return cme(t,dc)?null:"translate("+t.x+"px, "+t.y+"px)"},lT={moveTo:vN,drop:function(t,r){var n=vN(t);return n?r?n+" scale("+tm.scale.drop+")":n:null}},mQ=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,i=e.width,a=ume({x:r,y:t},{x:i,y:n}),o={x:Math.max(0,a.x),y:Math.max(0,a.y)};return o},Pme=function(){var e=document.documentElement;return e||pa(!1),e},Mme=function(){var e=Pme(),t=mQ({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t};Dn(function(e){return xme(e).filter(function(t){return!(!t.isEnabled||!t.frame)})});var Ome="data-rbd",mN={contextId:Ome+"-scroll-container-context-id"},Ev=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?z.useLayoutEffect:z.useEffect,gQ=D.createContext(null),Rme=0,Ime={separator:"::"};function yQ(e,t){return t===void 0&&(t=Ime),Bi(function(){return""+e+t.separator+Rme++},[t.separator,e])}var iO=D.createContext(null);function kme(e){var t=z.useRef(e);return z.useEffect(function(){t.current=e}),t}var Fme=9,Nme=13,Lme=33,Dme=34,Bme=35,zme=36,e1;e1={},e1[Nme]=!0,e1[Fme]=!0;(function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],r=vQ(t,function(n){return"on"+n in document});return r||e})();var Of;Of={},Of[Dme]=!0,Of[Lme]=!0,Of[zme]=!0,Of[Bme]=!0;(function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],r=vQ(t,function(n){return n in Element.prototype});return r||e})();var bQ=function(t){return function(r){return t===r}},Ume=bQ("scroll"),jme=bQ("auto"),gN=function(t,r){return r(t.overflowX)||r(t.overflowY)},Hme=function(t){var r=window.getComputedStyle(t),n={overflowX:r.overflowX,overflowY:r.overflowY};return gN(n,Ume)||gN(n,jme)},Gme=function(){return!1},Wme=function e(t){return t==null?null:t===document.body?Gme()?t:null:t===document.documentElement?null:Hme(t)?t:e(t.parentElement)},sT=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Vme=function e(t){if(!t)return!1;var r=window.getComputedStyle(t);return r.position==="fixed"?!0:e(t.parentElement)},Kme=function(e){var t=Wme(e),r=Vme(e);return{closestScrollable:t,isFixedOnPage:r}},qme=function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,i=e.isFixedOnPage,a=e.direction,o=e.client,l=e.page,u=e.closest,c=function(){if(!u)return null;var v=u.scrollSize,$=u.client,S=mQ({scrollHeight:v.scrollHeight,scrollWidth:v.scrollWidth,height:$.paddingBox.height,width:$.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:$,scrollSize:v,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:S,diff:{value:dc,displacement:dc}}}}(),d=a==="vertical"?Sme:Eme,h=bme({page:l,withPlaceholder:null,axis:d,frame:c}),p={descriptor:t,isCombineEnabled:n,isFixedOnPage:i,axis:d,isEnabled:r,client:o,page:l,frame:c,subject:h};return p},Yme=function(t,r){var n=dQ(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,u={top:i,right:l,bottom:o,left:a},c=cQ(u,n.border),d=rO({borderBox:c,margin:n.margin,border:n.border,padding:n.padding});return d},Xme=function(e){var t=e.ref,r=e.descriptor,n=e.env,i=e.windowScroll,a=e.direction,o=e.isDropDisabled,l=e.isCombineEnabled,u=e.shouldClipSubject,c=n.closestScrollable,d=Yme(t,c),h=oT(d,i),p=function(){if(!c)return null;var $=dQ(c),S={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:$,page:oT($,i),scroll:sT(c),scrollSize:S,shouldClipSubject:u}}(),v=qme({descriptor:r,isEnabled:!o,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:a,client:d,page:h,closest:p});return v},Qme={passive:!1},Zme={passive:!0},yN=function(e){return e.shouldPublishImmediately?Qme:Zme};function Vy(e){var t=z.useContext(e);return t||pa(!1),t}var t1=function(t){return t&&t.env.closestScrollable||null};function Jme(e){var t=z.useRef(null),r=Vy(iO),n=yQ("droppable"),i=r.registry,a=r.marshal,o=kme(e),l=Bi(function(){return{id:e.droppableId,type:e.type,mode:e.mode}},[e.droppableId,e.mode,e.type]),u=z.useRef(l),c=Bi(function(){return Dn(function(A,M){t.current||pa(!1);var N={x:A,y:M};a.updateDroppableScroll(l.id,N)})},[l.id,a]),d=ri(function(){var A=t.current;return!A||!A.env.closestScrollable?dc:sT(A.env.closestScrollable)},[]),h=ri(function(){var A=d();c(A.x,A.y)},[d,c]),p=Bi(function(){return ime(h)},[h]),v=ri(function(){var A=t.current,M=t1(A);A&&M||pa(!1);var N=A.scrollOptions;if(N.shouldPublishImmediately){h();return}p()},[p,h]),$=ri(function(A,M){t.current&&pa(!1);var N=o.current,U=N.getDroppableRef();U||pa(!1);var I=Kme(U),j={ref:U,descriptor:l,env:I,scrollOptions:M};t.current=j;var he=Xme({ref:U,descriptor:l,env:I,windowScroll:A,direction:N.direction,isDropDisabled:N.isDropDisabled,isCombineEnabled:N.isCombineEnabled,shouldClipSubject:!N.ignoreContainerClipping}),q=I.closestScrollable;return q&&(q.setAttribute(mN.contextId,r.contextId),q.addEventListener("scroll",v,yN(j.scrollOptions))),he},[r.contextId,l,v,o]),S=ri(function(){var A=t.current,M=t1(A);return A&&M||pa(!1),sT(M)},[]),g=ri(function(){var A=t.current;A||pa(!1);var M=t1(A);t.current=null,M&&(p.cancel(),M.removeAttribute(mN.contextId),M.removeEventListener("scroll",v,yN(A.scrollOptions)))},[v,p]),b=ri(function(A){var M=t.current;M||pa(!1);var N=t1(M);N||pa(!1),N.scrollTop+=A.y,N.scrollLeft+=A.x},[]),_=Bi(function(){return{getDimensionAndWatchScroll:$,getScrollWhileDragging:S,dragStopped:g,scroll:b}},[g,$,S,b]),E=Bi(function(){return{uniqueId:n,descriptor:l,callbacks:_}},[_,l,n]);Ev(function(){return u.current=E.descriptor,i.droppable.register(E),function(){t.current&&g(),i.droppable.unregister(E)}},[_,l,g,E,a,i.droppable]),Ev(function(){t.current&&a.updateDroppableIsEnabled(u.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),Ev(function(){t.current&&a.updateDroppableIsCombineEnabled(u.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}function U3(){}var bN={width:0,height:0,margin:vme},e0e=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate;return r||i==="close"?bN:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}},t0e=function(t){var r=t.isAnimatingOpenOnMount,n=t.placeholder,i=t.animate,a=e0e({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"?G1.placeholder:null}};function r0e(e){var t=z.useRef(null),r=ri(function(){t.current&&(clearTimeout(t.current),t.current=null)},[]),n=e.animate,i=e.onTransitionEnd,a=e.onClose,o=e.contextId,l=z.useState(e.animate==="open"),u=l[0],c=l[1];z.useEffect(function(){return u?n!=="open"?(r(),c(!1),U3):t.current?U3:(t.current=setTimeout(function(){t.current=null,c(!1)}),r):U3},[n,u,r]);var d=ri(function(p){p.propertyName==="height"&&(i(),n==="close"&&a())},[n,a,i]),h=t0e({isAnimatingOpenOnMount:u,animate:e.animate,placeholder:e.placeholder});return D.createElement(e.placeholder.tagName,{style:h,"data-rbd-placeholder-context-id":o,onTransitionEnd:d,ref:e.innerRef})}var n0e=D.memo(r0e),aO=D.createContext(null),i0e=function(e){Cm(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}(D.PureComponent),$N={dragging:5e3,dropAnimating:4500},a0e=function(t,r){return r?G1.drop(r.duration):t?G1.snap:G1.fluid},o0e=function(t,r){return t?r?tm.opacity.drop:tm.opacity.combining:null},l0e=function(t){return t.forceShouldAnimate!=null?t.forceShouldAnimate:t.mode==="SNAP"};function s0e(e){var t=e.dimension,r=t.client,n=e.offset,i=e.combineWith,a=e.dropping,o=!!i,l=l0e(e),u=!!a,c=u?lT.drop(n,o):lT.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:a0e(l,a),transform:c,opacity:o0e(o,u),zIndex:u?$N.dropAnimating:$N.dragging,pointerEvents:"none"};return d}function u0e(e){return{transform:lT.moveTo(e.offset),transition:e.shouldAnimateDisplacement?null:"none"}}function c0e(e){return e.type==="DRAGGING"?s0e(e):u0e(e)}function f0e(e,t,r){r===void 0&&(r=dc);var n=window.getComputedStyle(t),i=t.getBoundingClientRect(),a=fQ(i,n),o=oT(a,r),l={client:a,tagName:t.tagName.toLowerCase(),display:n.display},u={x:a.marginBox.width,y:a.marginBox.height},c={descriptor:e,placeholder:l,displaceBy:u,client:a,page:o};return c}function d0e(e){var t=yQ("draggable"),r=e.descriptor,n=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,o=e.shouldRespectForcePress,l=e.isEnabled,u=Bi(function(){return{canDragInteractiveElements:a,shouldRespectForcePress:o,isEnabled:l}},[a,l,o]),c=ri(function(v){var $=i();return $||pa(!1),f0e(r,$,v)},[r,i]),d=Bi(function(){return{uniqueId:t,descriptor:r,options:u,getDimension:c}},[r,c,u,t]),h=z.useRef(d),p=z.useRef(!0);Ev(function(){return n.draggable.register(h.current),function(){return n.draggable.unregister(h.current)}},[n.draggable]),Ev(function(){if(p.current){p.current=!1;return}var v=h.current;h.current=d,n.draggable.update(d,v)},[d,n.draggable])}function p0e(e){e.preventDefault()}function h0e(e){var t=z.useRef(null),r=ri(function(j){t.current=j},[]),n=ri(function(){return t.current},[]),i=Vy(iO),a=i.contextId,o=i.dragHandleUsageInstructionsId,l=i.registry,u=Vy(aO),c=u.type,d=u.droppableId,h=Bi(function(){return{id:e.draggableId,index:e.index,type:c,droppableId:d}},[e.draggableId,e.index,c,d]),p=e.children,v=e.draggableId,$=e.isEnabled,S=e.shouldRespectForcePress,g=e.canDragInteractiveElements,b=e.isClone,_=e.mapped,E=e.dropAnimationFinished;if(!b){var A=Bi(function(){return{descriptor:h,registry:l,getDraggableRef:n,canDragInteractiveElements:g,shouldRespectForcePress:S,isEnabled:$}},[h,l,n,g,S,$]);d0e(A)}var M=Bi(function(){return $?{tabIndex:0,role:"button","aria-describedby":o,"data-rbd-drag-handle-draggable-id":v,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:p0e}:null},[a,o,v,$]),N=ri(function(j){_.type==="DRAGGING"&&_.dropping&&j.propertyName==="transform"&&E()},[E,_]),U=Bi(function(){var j=c0e(_),he=_.type==="DRAGGING"&&_.dropping?N:null,q={innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":v,style:j,onTransitionEnd:he},dragHandleProps:M};return q},[a,M,v,_,N,r]),I=Bi(function(){return{draggableId:h.id,type:h.type,source:{index:h.index,droppableId:h.droppableId}}},[h.droppableId,h.id,h.index,h.type]);return p(U,_.snapshot,I)}var $Q=function(e,t){return e===t},xQ=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null},v0e=function(t){return t.combine?t.combine.draggableId:null},m0e=function(t){return t.at&&t.at.type==="COMBINE"?t.at.combine.draggableId:null};function g0e(){var e=Dn(function(i,a){return{x:i,y:a}}),t=Dn(function(i,a,o,l,u){return{isDragging:!0,isClone:a,isDropAnimating:!!u,dropAnimation:u,mode:i,draggingOver:o,combineWith:l,combineTargetFor:null}}),r=Dn(function(i,a,o,l,u,c,d){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:u,combineWith:c,mode:a,offset:i,dimension:o,forceShouldAnimate:d,snapshot:t(a,l,u,c,null)}}}),n=function(a,o){if(a.isDragging){if(a.critical.draggable.id!==o.draggableId)return null;var l=a.current.client.offset,u=a.dimensions.draggables[o.draggableId],c=H1(a.impact),d=m0e(a.impact),h=a.forceShouldAnimate;return r(e(l.x,l.y),a.movementMode,u,o.isClone,c,d,h)}if(a.phase==="DROP_ANIMATING"){var p=a.completed;if(p.result.draggableId!==o.draggableId)return null;var v=o.isClone,$=a.dimensions.draggables[o.draggableId],S=p.result,g=S.mode,b=xQ(S),_=v0e(S),E=a.dropDuration,A={duration:E,curve:nO.drop,moveTo:a.newHomeClientOffset,opacity:_?tm.opacity.drop:null,scale:_?tm.scale.drop:null};return{mapped:{type:"DRAGGING",offset:a.newHomeClientOffset,dimension:$,dropping:A,draggingOver:b,combineWith:_,mode:g,forceShouldAnimate:null,snapshot:t(g,v,b,_,A)}}}return null};return n}function wQ(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var y0e={mapped:{type:"SECONDARY",offset:dc,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:wQ(null)}};function b0e(){var e=Dn(function(o,l){return{x:o,y:l}}),t=Dn(wQ),r=Dn(function(o,l,u){return l===void 0&&(l=null),{mapped:{type:"SECONDARY",offset:o,combineTargetFor:l,shouldAnimateDisplacement:u,snapshot:t(l)}}}),n=function(l){return l?r(dc,l,!0):null},i=function(l,u,c,d){var h=c.displaced.visible[l],p=!!(d.inVirtualList&&d.effected[l]),v=_me(c),$=v&&v.draggableId===l?u:null;if(!h){if(!p)return n($);if(c.displaced.invisible[l])return null;var S=fme(d.displacedBy.point),g=e(S.x,S.y);return r(g,$,!0)}if(p)return n($);var b=c.displacedBy.point,_=e(b.x,b.y);return r(_,$,h.shouldAnimate)},a=function(l,u){if(l.isDragging)return l.critical.draggable.id===u.draggableId?null:i(u.draggableId,l.critical.draggable.id,l.impact,l.afterCritical);if(l.phase==="DROP_ANIMATING"){var c=l.completed;return c.result.draggableId===u.draggableId?null:i(u.draggableId,c.result.draggableId,c.impact,c.afterCritical)}return null};return a}var $0e=function(){var t=g0e(),r=b0e(),n=function(a,o){return t(a,o)||r(a,o)||y0e};return n},x0e={dropAnimationFinished:Cme},w0e=eO($0e,x0e,null,{context:gQ,pure:!0,areStatePropsEqual:$Q})(h0e);function _Q(e){var t=Vy(aO),r=t.isUsingCloneFor;return r===e.draggableId&&!e.isClone?null:D.createElement(w0e,e)}function yEe(e){var t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,r=!!e.disableInteractiveElementBlocking,n=!!e.shouldRespectForcePress;return D.createElement(_Q,ai({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n}))}function _0e(e){var t=z.useContext(iO);t||pa(!1);var r=t.contextId,n=t.isMovementAllowed,i=z.useRef(null),a=z.useRef(null),o=e.children,l=e.droppableId,u=e.type,c=e.mode,d=e.direction,h=e.ignoreContainerClipping,p=e.isDropDisabled,v=e.isCombineEnabled,$=e.snapshot,S=e.useClone,g=e.updateViewportMaxScroll,b=e.getContainerForClone,_=ri(function(){return i.current},[]),E=ri(function(q){i.current=q},[]);ri(function(){return a.current},[]);var A=ri(function(q){a.current=q},[]),M=ri(function(){n()&&g({maxScroll:Mme()})},[n,g]);Jme({droppableId:l,type:u,mode:c,direction:d,isDropDisabled:p,isCombineEnabled:v,ignoreContainerClipping:h,getDroppableRef:_});var N=D.createElement(i0e,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},function(q){var fe=q.onClose,ne=q.data,ce=q.animate;return D.createElement(n0e,{placeholder:ne,onClose:fe,innerRef:A,animate:ce,contextId:r,onTransitionEnd:M})}),U=Bi(function(){return{innerRef:E,placeholder:N,droppableProps:{"data-rbd-droppable-id":l,"data-rbd-droppable-context-id":r}}},[r,l,N,E]),I=S?S.dragging.draggableId:null,j=Bi(function(){return{droppableId:l,type:u,isUsingCloneFor:I}},[l,I,u]);function he(){if(!S)return null;var q=S.dragging,fe=S.render,ne=D.createElement(_Q,{draggableId:q.draggableId,index:q.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(ce,De){return fe(ce,De,q)});return Zf.createPortal(ne,b())}return D.createElement(aO.Provider,{value:j},o(U,$),he())}var j3=function(t,r){return t===r.droppable.type},xN=function(t,r){return r.draggables[t.draggable.id]},S0e=function(){var t={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},r=ai({},t,{shouldAnimatePlaceholder:!1}),n=Dn(function(o){return{draggableId:o.id,type:o.type,source:{index:o.index,droppableId:o.droppableId}}}),i=Dn(function(o,l,u,c,d,h){var p=d.descriptor.id,v=d.descriptor.droppableId===o;if(v){var $=h?{render:h,dragging:n(d.descriptor)}:null,S={isDraggingOver:u,draggingOverWith:u?p:null,draggingFromThisWith:p,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!1,snapshot:S,useClone:$}}if(!l)return r;if(!c)return t;var g={isDraggingOver:u,draggingOverWith:p,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:d.placeholder,shouldAnimatePlaceholder:!0,snapshot:g,useClone:null}}),a=function(l,u){var c=u.droppableId,d=u.type,h=!u.isDropDisabled,p=u.renderClone;if(l.isDragging){var v=l.critical;if(!j3(d,v))return r;var $=xN(v,l.dimensions),S=H1(l.impact)===c;return i(c,h,S,S,$,p)}if(l.phase==="DROP_ANIMATING"){var g=l.completed;if(!j3(d,g.critical))return r;var b=xN(g.critical,l.dimensions);return i(c,h,xQ(g.result)===c,H1(g.impact)===c,b,p)}if(l.phase==="IDLE"&&l.completed&&!l.shouldFlush){var _=l.completed;if(!j3(d,_.critical))return r;var E=H1(_.impact)===c,A=!!(_.impact.at&&_.impact.at.type==="COMBINE"),M=_.critical.droppable.id===c;return E?A?t:r:M?t:r}return r};return a},E0e={updateViewportMaxScroll:Ame};function A0e(){return document.body||pa(!1),document.body}var C0e={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:A0e},T0e=eO(S0e,E0e,null,{context:gQ,pure:!0,areStatePropsEqual:$Q})(_0e);T0e.defaultProps=C0e;var P0e=typeof performance=="object"&&typeof performance.now=="function",wN=P0e?function(){return performance.now()}:function(){return Date.now()};function _N(e){cancelAnimationFrame(e.id)}function M0e(e,t){var r=wN();function n(){wN()-r>=t?e.call(null):i.id=requestAnimationFrame(n)}var i={id:requestAnimationFrame(n)};return i}var Rf=null;function SN(e){if(e===void 0&&(e=!1),Rf===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?Rf="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Rf="negative":Rf="positive-ascending"),document.body.removeChild(t),Rf}return Rf}var O0e=150,R0e=function(t,r){return t};function I0e(e){var t,r,n=e.getItemOffset,i=e.getEstimatedTotalSize,a=e.getItemSize,o=e.getOffsetForIndexAndAlignment,l=e.getStartIndexForOffset,u=e.getStopIndexForStartIndex,c=e.initInstanceProps,d=e.shouldResetStyleCacheOnItemSizeChange,h=e.validateProps;return r=t=function(p){Cm(v,p);function v(S){var g;return g=p.call(this,S)||this,g._instanceProps=c(g.props,kg(kg(g))),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:kg(kg(g)),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=Dn(function(b,_,E,A){return g.props.onItemsRendered({overscanStartIndex:b,overscanStopIndex:_,visibleStartIndex:E,visibleStopIndex:A})}),g._callOnScroll=void 0,g._callOnScroll=Dn(function(b,_,E){return g.props.onScroll({scrollDirection:b,scrollOffset:_,scrollUpdateWasRequested:E})}),g._getItemStyle=void 0,g._getItemStyle=function(b){var _=g.props,E=_.direction,A=_.itemSize,M=_.layout,N=g._getItemStyleCache(d&&A,d&&M,d&&E),U;if(N.hasOwnProperty(b))U=N[b];else{var I=n(g.props,b,g._instanceProps),j=a(g.props,b,g._instanceProps),he=E==="horizontal"||M==="horizontal",q=E==="rtl",fe=he?I:0;N[b]=U={position:"absolute",left:q?void 0:fe,right:q?fe:void 0,top:he?0:I,height:he?"100%":j,width:he?j:"100%"}}return U},g._getItemStyleCache=void 0,g._getItemStyleCache=Dn(function(b,_,E){return{}}),g._onScrollHorizontal=function(b){var _=b.currentTarget,E=_.clientWidth,A=_.scrollLeft,M=_.scrollWidth;g.setState(function(N){if(N.scrollOffset===A)return null;var U=g.props.direction,I=A;if(U==="rtl")switch(SN()){case"negative":I=-A;break;case"positive-descending":I=M-E-A;break}return I=Math.max(0,Math.min(I,M-E)),{isScrolling:!0,scrollDirection:N.scrollOffset<A?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(b){var _=b.currentTarget,E=_.clientHeight,A=_.scrollHeight,M=_.scrollTop;g.setState(function(N){if(N.scrollOffset===M)return null;var U=Math.max(0,Math.min(M,A-E));return{isScrolling:!0,scrollDirection:N.scrollOffset<U?"forward":"backward",scrollOffset:U,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(b){var _=g.props.outerRef;g._outerRef=b,typeof _=="function"?_(b):_!=null&&typeof _=="object"&&_.hasOwnProperty("current")&&(_.current=b)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&_N(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=M0e(g._resetIsScrolling,O0e)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}v.getDerivedStateFromProps=function(g,b){return k0e(g,b),h(g),null};var $=v.prototype;return $.scrollTo=function(g){g=Math.max(0,g),this.setState(function(b){return b.scrollOffset===g?null:{scrollDirection:b.scrollOffset<g?"forward":"backward",scrollOffset:g,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},$.scrollToItem=function(g,b){b===void 0&&(b="auto");var _=this.props.itemCount,E=this.state.scrollOffset;g=Math.max(0,Math.min(g,_-1)),this.scrollTo(o(this.props,g,b,E,this._instanceProps))},$.componentDidMount=function(){var g=this.props,b=g.direction,_=g.initialScrollOffset,E=g.layout;if(typeof _=="number"&&this._outerRef!=null){var A=this._outerRef;b==="horizontal"||E==="horizontal"?A.scrollLeft=_:A.scrollTop=_}this._callPropsCallbacks()},$.componentDidUpdate=function(){var g=this.props,b=g.direction,_=g.layout,E=this.state,A=E.scrollOffset,M=E.scrollUpdateWasRequested;if(M&&this._outerRef!=null){var N=this._outerRef;if(b==="horizontal"||_==="horizontal")if(b==="rtl")switch(SN()){case"negative":N.scrollLeft=-A;break;case"positive-ascending":N.scrollLeft=A;break;default:var U=N.clientWidth,I=N.scrollWidth;N.scrollLeft=I-U-A;break}else N.scrollLeft=A;else N.scrollTop=A}this._callPropsCallbacks()},$.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&_N(this._resetIsScrollingTimeoutId)},$.render=function(){var g=this.props,b=g.children,_=g.className,E=g.direction,A=g.height,M=g.innerRef,N=g.innerElementType,U=g.innerTagName,I=g.itemCount,j=g.itemData,he=g.itemKey,q=he===void 0?R0e:he,fe=g.layout,ne=g.outerElementType,ce=g.outerTagName,De=g.style,We=g.useIsScrolling,Ae=g.width,$e=this.state.isScrolling,rt=E==="horizontal"||fe==="horizontal",Be=rt?this._onScrollHorizontal:this._onScrollVertical,Ee=this._getRangeToRender(),Ke=Ee[0],Ge=Ee[1],Fe=[];if(I>0)for(var ft=Ke;ft<=Ge;ft++)Fe.push(z.createElement(b,{data:j,key:q(ft,j),index:ft,isScrolling:We?$e:void 0,style:this._getItemStyle(ft)}));var bt=i(this.props,this._instanceProps);return z.createElement(ne||ce||"div",{className:_,onScroll:Be,ref:this._outerRefSetter,style:ai({position:"relative",height:A,width:Ae,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:E},De)},z.createElement(N||U||"div",{children:Fe,ref:M,style:{height:rt?"100%":bt,pointerEvents:$e?"none":void 0,width:rt?bt:"100%"}}))},$._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var b=this._getRangeToRender(),_=b[0],E=b[1],A=b[2],M=b[3];this._callOnItemsRendered(_,E,A,M)}}if(typeof this.props.onScroll=="function"){var N=this.state,U=N.scrollDirection,I=N.scrollOffset,j=N.scrollUpdateWasRequested;this._callOnScroll(U,I,j)}},$._getRangeToRender=function(){var g=this.props,b=g.itemCount,_=g.overscanCount,E=this.state,A=E.isScrolling,M=E.scrollDirection,N=E.scrollOffset;if(b===0)return[0,0,0,0];var U=l(this.props,N,this._instanceProps),I=u(this.props,U,N,this._instanceProps),j=!A||M==="backward"?Math.max(1,_):1,he=!A||M==="forward"?Math.max(1,_):1;return[Math.max(0,U-j),Math.max(0,Math.min(b-1,I+he)),U,I]},v}(z.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},r}var k0e=function(t,r){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,r.instance},bEe=I0e({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,u=t.itemSize,c=t.layout,d=t.width,h=a==="horizontal"||c==="horizontal",p=h?d:o,v=Math.max(0,l*u-p),$=Math.min(v,r*u),S=Math.max(0,r*u-p+u);switch(n==="smart"&&(i>=S-p&&i<=$+p?n="auto":n="center"),n){case"start":return $;case"end":return S;case"center":{var g=Math.round(S+($-S)/2);return g<Math.ceil(p/2)?0:g>v+Math.floor(p/2)?v:g}case"auto":default:return i>=S&&i<=$?i:i<S?S:$}},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,u=t.layout,c=t.width,d=i==="horizontal"||u==="horizontal",h=r*l,p=d?c:a,v=Math.ceil((p+n-h)/l);return Math.max(0,Math.min(o-1,r+v-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}}),F0e=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},N0e=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}}(),L0e=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},D0e=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)},EN=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},B0e=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var l=t[Symbol.iterator](),u;!(i=(u=l.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(c){a=!0,o=c}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")}}(),ja=void 0;typeof window<"u"?ja=window:typeof self<"u"?ja=self:ja=global;var uT=null,cT=null,AN=20,H3=ja.clearTimeout,CN=ja.setTimeout,G3=ja.cancelAnimationFrame||ja.mozCancelAnimationFrame||ja.webkitCancelAnimationFrame,TN=ja.requestAnimationFrame||ja.mozRequestAnimationFrame||ja.webkitRequestAnimationFrame;G3==null||TN==null?(uT=H3,cT=function(t){return CN(t,AN)}):(uT=function(t){var r=B0e(t,2),n=r[0],i=r[1];G3(n),H3(i)},cT=function(t){var r=TN(function(){H3(n),t()}),n=CN(function(){G3(r),t()},AN);return[r,n]});function z0e(e){var t=void 0,r=void 0,n=void 0,i=void 0,a=void 0,o=void 0,l=void 0,u=typeof document<"u"&&document.attachEvent;if(!u){o=function(A){var M=A.__resizeTriggers__,N=M.firstElementChild,U=M.lastElementChild,I=N.firstElementChild;U.scrollLeft=U.scrollWidth,U.scrollTop=U.scrollHeight,I.style.width=N.offsetWidth+1+"px",I.style.height=N.offsetHeight+1+"px",N.scrollLeft=N.scrollWidth,N.scrollTop=N.scrollHeight},a=function(A){return A.offsetWidth!==A.__resizeLast__.width||A.offsetHeight!==A.__resizeLast__.height},l=function(A){if(!(A.target.className&&typeof A.target.className.indexOf=="function"&&A.target.className.indexOf("contract-trigger")<0&&A.target.className.indexOf("expand-trigger")<0)){var M=this;o(this),this.__resizeRAF__&&uT(this.__resizeRAF__),this.__resizeRAF__=cT(function(){a(M)&&(M.__resizeLast__.width=M.offsetWidth,M.__resizeLast__.height=M.offsetHeight,M.__resizeListeners__.forEach(function(I){I.call(M,A)}))})}};var c=!1,d="";n="animationstart";var h="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),v="";{var $=document.createElement("fakeelement");if($.style.animationName!==void 0&&(c=!0),c===!1){for(var S=0;S<h.length;S++)if($.style[h[S]+"AnimationName"]!==void 0){v=h[S],d="-"+v.toLowerCase()+"-",n=p[S],c=!0;break}}}r="resizeanim",t="@"+d+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",i=d+"animation: 1ms "+r+"; "}var g=function(A){if(!A.getElementById("detectElementResize")){var M=(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%; }',N=A.head||A.getElementsByTagName("head")[0],U=A.createElement("style");U.id="detectElementResize",U.type="text/css",e!=null&&U.setAttribute("nonce",e),U.styleSheet?U.styleSheet.cssText=M:U.appendChild(A.createTextNode(M)),N.appendChild(U)}},b=function(A,M){if(u)A.attachEvent("onresize",M);else{if(!A.__resizeTriggers__){var N=A.ownerDocument,U=ja.getComputedStyle(A);U&&U.position==="static"&&(A.style.position="relative"),g(N),A.__resizeLast__={},A.__resizeListeners__=[],(A.__resizeTriggers__=N.createElement("div")).className="resize-triggers";var I=N.createElement("div");I.className="expand-trigger",I.appendChild(N.createElement("div"));var j=N.createElement("div");j.className="contract-trigger",A.__resizeTriggers__.appendChild(I),A.__resizeTriggers__.appendChild(j),A.appendChild(A.__resizeTriggers__),o(A),A.addEventListener("scroll",l,!0),n&&(A.__resizeTriggers__.__animationListener__=function(q){q.animationName===r&&o(A)},A.__resizeTriggers__.addEventListener(n,A.__resizeTriggers__.__animationListener__))}A.__resizeListeners__.push(M)}},_=function(A,M){if(u)A.detachEvent("onresize",M);else if(A.__resizeListeners__.splice(A.__resizeListeners__.indexOf(M),1),!A.__resizeListeners__.length){A.removeEventListener("scroll",l,!0),A.__resizeTriggers__.__animationListener__&&(A.__resizeTriggers__.removeEventListener(n,A.__resizeTriggers__.__animationListener__),A.__resizeTriggers__.__animationListener__=null);try{A.__resizeTriggers__=!A.removeChild(A.__resizeTriggers__)}catch{}}};return{addResizeListener:b,removeResizeListener:_}}var U0e=function(e){D0e(t,e);function t(){var r,n,i,a;F0e(this,t);for(var o=arguments.length,l=Array(o),u=0;u<o;u++)l[u]=arguments[u];return a=(n=(i=EN(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 c=i.props,d=c.disableHeight,h=c.disableWidth,p=c.onResize;if(i._parentNode){var v=i._parentNode.offsetHeight||0,$=i._parentNode.offsetWidth||0,S=window.getComputedStyle(i._parentNode)||{},g=parseInt(S.paddingLeft,10)||0,b=parseInt(S.paddingRight,10)||0,_=parseInt(S.paddingTop,10)||0,E=parseInt(S.paddingBottom,10)||0,A=v-_-E,M=$-g-b;(!d&&i.state.height!==A||!h&&i.state.width!==M)&&(i.setState({height:v-_-E,width:$-g-b}),p({height:v,width:$}))}},i._setRef=function(c){i._autoSizer=c},n),EN(i,a)}return N0e(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=z0e(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,u=n.style,c=this.state,d=c.height,h=c.width,p={overflow:"visible"},v={},$=!1;return o||(d===0&&($=!0),p.height=0,v.height=d),l||(h===0&&($=!0),p.width=0,v.width=h),z.createElement("div",{className:a,ref:this._setRef,style:L0e({},p,u)},!$&&i(v))}}]),t}(z.PureComponent);U0e.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var j0e=9007199254740991,H0e="[object Arguments]",G0e="[object Function]",W0e="[object GeneratorFunction]",V0e=typeof ir=="object"&&ir&&ir.Object===Object&&ir,K0e=typeof self=="object"&&self&&self.Object===Object&&self,q0e=V0e||K0e||Function("return this")();function Y0e(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var oO=Object.prototype,X0e=oO.hasOwnProperty,SQ=oO.toString,PN=q0e.Symbol,Q0e=oO.propertyIsEnumerable,MN=PN?PN.isConcatSpreadable:void 0;function EQ(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=Z0e),i||(i=[]);++a<o;){var l=e[a];t>0&&r(l)?t>1?EQ(l,t-1,r,n,i):Y0e(i,l):n||(i[i.length]=l)}return i}function Z0e(e){return tge(e)||ege(e)||!!(MN&&e&&e[MN])}function J0e(e){var t=e?e.length:0;return t?EQ(e,1):[]}function ege(e){return nge(e)&&X0e.call(e,"callee")&&(!Q0e.call(e,"callee")||SQ.call(e)==H0e)}var tge=Array.isArray;function rge(e){return e!=null&&age(e.length)&&!ige(e)}function nge(e){return lge(e)&&rge(e)}function ige(e){var t=oge(e)?SQ.call(e):"";return t==G0e||t==W0e}function age(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=j0e}function oge(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function lge(e){return!!e&&typeof e=="object"}var sge=J0e;const $Ee=$a(sge);var ON=0/0,uge="[object Symbol]",cge=/^\s+|\s+$/g,fge=/^[-+]0x[0-9a-f]+$/i,dge=/^0b[01]+$/i,pge=/^0o[0-7]+$/i,hge=parseInt,vge=Object.prototype,mge=vge.toString;function gge(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}function RN(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function yge(e){return!!e&&typeof e=="object"}function bge(e){return typeof e=="symbol"||yge(e)&&mge.call(e)==uge}function W3(e){if(typeof e=="number")return e;if(bge(e))return ON;if(RN(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=RN(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(cge,"");var r=dge.test(e);return r||pge.test(e)?hge(e.slice(2),r?2:8):fge.test(e)?ON:+e}function $ge(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=W3(r),r=r===r?r:0),t!==void 0&&(t=W3(t),t=t===t?t:0),gge(W3(e),t,r)}var xge=$ge;const xEe=$a(xge);var IN=Object.prototype.toString,AQ=function(t){var r=IN.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&IN.call(t.callee)==="[object Function]"),n},V3,kN;function wge(){if(kN)return V3;kN=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=AQ,i=Object.prototype.propertyIsEnumerable,a=!i.call({toString:null},"toString"),o=i.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(p){var v=p.constructor;return v&&v.prototype===p},c={$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 p in window)try{if(!c["$"+p]&&t.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{u(window[p])}catch{return!0}}catch{return!0}return!1}(),h=function(p){if(typeof window>"u"||!d)return u(p);try{return u(p)}catch{return!1}};e=function(v){var $=v!==null&&typeof v=="object",S=r.call(v)==="[object Function]",g=n(v),b=$&&r.call(v)==="[object String]",_=[];if(!$&&!S&&!g)throw new TypeError("Object.keys called on a non-object");var E=o&&S;if(b&&v.length>0&&!t.call(v,0))for(var A=0;A<v.length;++A)_.push(String(A));if(g&&v.length>0)for(var M=0;M<v.length;++M)_.push(String(M));else for(var N in v)!(E&&N==="prototype")&&t.call(v,N)&&_.push(String(N));if(a)for(var U=h(v),I=0;I<l.length;++I)!(U&&l[I]==="constructor")&&t.call(v,l[I])&&_.push(l[I]);return _}}return V3=e,V3}var _ge=Array.prototype.slice,Sge=AQ,FN=Object.keys,W1=FN?function(t){return FN(t)}:wge(),NN=Object.keys;W1.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 Sge(n)?NN(_ge.call(n)):NN(n)})}else Object.keys=W1;return Object.keys||W1};var lO=W1,b2=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},Ege=b2,Qs=function(){return Ege()&&!!Symbol.toStringTag},LN=typeof Symbol<"u"&&Symbol,Age=b2,sO=function(){return typeof LN!="function"||typeof Symbol!="function"||typeof LN("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Age()},Cge="Function.prototype.bind called on incompatible ",K3=Array.prototype.slice,Tge=Object.prototype.toString,Pge="[object Function]",Mge=function(t){var r=this;if(typeof r!="function"||Tge.call(r)!==Pge)throw new TypeError(Cge+r);for(var n=K3.call(arguments,1),i,a=function(){if(this instanceof i){var d=r.apply(this,n.concat(K3.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(K3.call(arguments)))},o=Math.max(0,r.length-n.length),l=[],u=0;u<o;u++)l.push("$"+u);if(i=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")(a),r.prototype){var c=function(){};c.prototype=r.prototype,i.prototype=new c,c.prototype=null}return i},Oge=Mge,uO=Function.prototype.bind||Oge,Rge=uO,Ige=Rge.call(Function.call,Object.prototype.hasOwnProperty),Mr,Ld=SyntaxError,CQ=Function,$d=TypeError,q3=function(e){try{return CQ('"use strict"; return ('+e+").constructor;")()}catch{}},Zu=Object.getOwnPropertyDescriptor;if(Zu)try{Zu({},"")}catch{Zu=null}var Y3=function(){throw new $d},kge=Zu?function(){try{return arguments.callee,Y3}catch{try{return Zu(arguments,"callee").get}catch{return Y3}}}():Y3,If=sO(),hs=Object.getPrototypeOf||function(e){return e.__proto__},Gf={},Fge=typeof Uint8Array>"u"?Mr:hs(Uint8Array),xd={"%AggregateError%":typeof AggregateError>"u"?Mr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Mr:ArrayBuffer,"%ArrayIteratorPrototype%":If?hs([][Symbol.iterator]()):Mr,"%AsyncFromSyncIteratorPrototype%":Mr,"%AsyncFunction%":Gf,"%AsyncGenerator%":Gf,"%AsyncGeneratorFunction%":Gf,"%AsyncIteratorPrototype%":Gf,"%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%":CQ,"%GeneratorFunction%":Gf,"%Int8Array%":typeof Int8Array>"u"?Mr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Mr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Mr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":If?hs(hs([][Symbol.iterator]())):Mr,"%JSON%":typeof JSON=="object"?JSON:Mr,"%Map%":typeof Map>"u"?Mr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!If?Mr:hs(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"||!If?Mr:hs(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Mr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":If?hs(""[Symbol.iterator]()):Mr,"%Symbol%":If?Symbol:Mr,"%SyntaxError%":Ld,"%ThrowTypeError%":kge,"%TypedArray%":Fge,"%TypeError%":$d,"%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},Nge=function e(t){var r;if(t==="%AsyncFunction%")r=q3("async function () {}");else if(t==="%GeneratorFunction%")r=q3("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=q3("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&(r=hs(i.prototype))}return xd[t]=r,r},DN={"%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"]},Wm=uO,Ky=Ige,Lge=Wm.call(Function.call,Array.prototype.concat),Dge=Wm.call(Function.apply,Array.prototype.splice),BN=Wm.call(Function.call,String.prototype.replace),qy=Wm.call(Function.call,String.prototype.slice),Bge=Wm.call(Function.call,RegExp.prototype.exec),zge=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Uge=/\\(\\)?/g,jge=function(t){var r=qy(t,0,1),n=qy(t,-1);if(r==="%"&&n!=="%")throw new Ld("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Ld("invalid intrinsic syntax, expected opening `%`");var i=[];return BN(t,zge,function(a,o,l,u){i[i.length]=l?BN(u,Uge,"$1"):o||a}),i},Hge=function(t,r){var n=t,i;if(Ky(DN,n)&&(i=DN[n],n="%"+i[0]+"%"),Ky(xd,n)){var a=xd[n];if(a===Gf&&(a=Nge(n)),typeof a>"u"&&!r)throw new $d("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:a}}throw new Ld("intrinsic "+t+" does not exist!")},Zs=function(t,r){if(typeof t!="string"||t.length===0)throw new $d("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new $d('"allowMissing" argument must be a boolean');if(Bge(/^%?[^%]*%?$/,t)===null)throw new Ld("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=jge(t),i=n.length>0?n[0]:"",a=Hge("%"+i+"%",r),o=a.name,l=a.value,u=!1,c=a.alias;c&&(i=c[0],Dge(n,Lge([0,1],c)));for(var d=1,h=!0;d<n.length;d+=1){var p=n[d],v=qy(p,0,1),$=qy(p,-1);if((v==='"'||v==="'"||v==="`"||$==='"'||$==="'"||$==="`")&&v!==$)throw new Ld("property names with quotes must have matching quotes");if((p==="constructor"||!h)&&(u=!0),i+="."+p,o="%"+i+"%",Ky(xd,o))l=xd[o];else if(l!=null){if(!(p in l)){if(!r)throw new $d("base intrinsic for "+t+" exists, but the property is not available.");return}if(Zu&&d+1>=n.length){var S=Zu(l,p);h=!!S,h&&"get"in S&&!("originalValue"in S.get)?l=S.get:l=l[p]}else h=Ky(l,p),l=l[p];h&&!u&&(xd[o]=l)}}return l},TQ={exports:{}};(function(e){var t=uO,r=Zs,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),u=r("%Math.max%");if(l)try{l({},"a",{value:1})}catch{l=null}e.exports=function(h){var p=a(t,i,arguments);if(o&&l){var v=o(p,"length");v.configurable&&l(p,"length",{value:1+u(0,h.length-(arguments.length-1))})}return p};var c=function(){return a(t,n,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(TQ);var $2=TQ.exports,PQ=Zs,MQ=$2,Gge=MQ(PQ("String.prototype.indexOf")),Wo=function(t,r){var n=PQ(t,!!r);return typeof n=="function"&&Gge(t,".prototype.")>-1?MQ(n):n},Wge=Qs(),Vge=Wo,fT=Vge("Object.prototype.toString"),x2=function(t){return Wge&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:fT(t)==="[object Arguments]"},OQ=function(t){return x2(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&fT(t)!=="[object Array]"&&fT(t.callee)==="[object Function]"},Kge=function(){return x2(arguments)}();x2.isLegacyArguments=OQ;var RQ=Kge?x2:OQ,qge=Zs,dT=qge("%Object.defineProperty%",!0),pT=function(){if(dT)try{return dT({},"a",{value:1}),!0}catch{return!1}return!1};pT.hasArrayLengthDefineBug=function(){if(!pT())return null;try{return dT([],"length",{value:1}).length!==1}catch{return!0}};var Yge=pT,Xge=lO,Qge=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Zge=Object.prototype.toString,Jge=Array.prototype.concat,IQ=Object.defineProperty,e1e=function(e){return typeof e=="function"&&Zge.call(e)==="[object Function]"},t1e=Yge(),kQ=IQ&&t1e,r1e=function(e,t,r,n){t in e&&(!e1e(n)||!n())||(kQ?IQ(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},FQ=function(e,t){var r=arguments.length>2?arguments[2]:{},n=Xge(t);Qge&&(n=Jge.call(n,Object.getOwnPropertySymbols(t)));for(var i=0;i<n.length;i+=1)r1e(e,n[i],t[n[i]],r[n[i]])};FQ.supportsDescriptors=!!kQ;var Ic=FQ,zN=function(e){return e!==e},NQ=function(t,r){return t===0&&r===0?1/t===1/r:!!(t===r||zN(t)&&zN(r))},n1e=NQ,LQ=function(){return typeof Object.is=="function"?Object.is:n1e},i1e=LQ,a1e=Ic,o1e=function(){var t=i1e();return a1e(Object,{is:t},{is:function(){return Object.is!==t}}),t},l1e=Ic,s1e=$2,u1e=NQ,DQ=LQ,c1e=o1e,BQ=s1e(DQ(),Object);l1e(BQ,{getPolyfill:DQ,implementation:u1e,shim:c1e});var f1e=BQ,hT=Wo,zQ=Qs(),UQ,jQ,vT,mT;if(zQ){UQ=hT("Object.prototype.hasOwnProperty"),jQ=hT("RegExp.prototype.exec"),vT={};var X3=function(){throw vT};mT={toString:X3,valueOf:X3},typeof Symbol.toPrimitive=="symbol"&&(mT[Symbol.toPrimitive]=X3)}var d1e=hT("Object.prototype.toString"),p1e=Object.getOwnPropertyDescriptor,h1e="[object RegExp]",v1e=zQ?function(t){if(!t||typeof t!="object")return!1;var r=p1e(t,"lastIndex"),n=r&&UQ(r,"value");if(!n)return!1;try{jQ(t,mT)}catch(i){return i===vT}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:d1e(t)===h1e},HQ={exports:{}},rm=function(){return typeof function(){}.name=="string"},Av=Object.getOwnPropertyDescriptor;if(Av)try{Av([],"length")}catch{Av=null}rm.functionsHaveConfigurableNames=function(){if(!rm()||!Av)return!1;var t=Av(function(){},"name");return!!t&&!!t.configurable};var m1e=Function.prototype.bind;rm.boundFunctionsHaveNames=function(){return rm()&&typeof m1e=="function"&&function(){}.bind().name!==""};var g1e=rm;(function(e){var t=g1e.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"})})(HQ);var GQ=HQ.exports,y1e=GQ,b1e=Ic.supportsDescriptors,$1e=Object.getOwnPropertyDescriptor,WQ=function(){if(b1e&&/a/mig.flags==="gim"){var t=$1e(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 y1e},x1e=Ic.supportsDescriptors,w1e=WQ,_1e=Object.getOwnPropertyDescriptor,S1e=Object.defineProperty,E1e=TypeError,UN=Object.getPrototypeOf,A1e=/a/,C1e=function(){if(!x1e||!UN)throw new E1e("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=w1e(),r=UN(A1e),n=_1e(r,"flags");return(!n||n.get!==t)&&S1e(r,"flags",{configurable:!0,enumerable:!1,get:t}),t},T1e=Ic,P1e=$2,M1e=GQ,VQ=WQ,O1e=C1e,KQ=P1e(VQ());T1e(KQ,{getPolyfill:VQ,implementation:M1e,shim:O1e});var R1e=KQ,I1e={}.toString,qQ=Array.isArray||function(e){return I1e.call(e)=="[object Array]"},k1e=Date.prototype.getDay,F1e=function(t){try{return k1e.call(t),!0}catch{return!1}},N1e=Object.prototype.toString,L1e="[object Date]",D1e=Qs(),B1e=function(t){return typeof t!="object"||t===null?!1:D1e?F1e(t):N1e.call(t)===L1e},z1e=String.prototype.valueOf,U1e=function(t){try{return z1e.call(t),!0}catch{return!1}},j1e=Object.prototype.toString,H1e="[object String]",G1e=Qs(),YQ=function(t){return typeof t=="string"?!0:typeof t!="object"?!1:G1e?U1e(t):j1e.call(t)===H1e},W1e=Number.prototype.toString,V1e=function(t){try{return W1e.call(t),!0}catch{return!1}},K1e=Object.prototype.toString,q1e="[object Number]",Y1e=Qs(),X1e=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:Y1e?V1e(t):K1e.call(t)===q1e},XQ=Wo,Q1e=XQ("Boolean.prototype.toString"),Z1e=XQ("Object.prototype.toString"),J1e=function(t){try{return Q1e(t),!0}catch{return!1}},eye="[object Boolean]",tye=Qs(),rye=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:tye&&Symbol.toStringTag in t?J1e(t):Z1e(t)===eye},gT={exports:{}},nye=Object.prototype.toString,iye=sO();if(iye){var aye=Symbol.prototype.toString,oye=/^Symbol\(.*\)$/,lye=function(t){return typeof t.valueOf()!="symbol"?!1:oye.test(aye.call(t))};gT.exports=function(t){if(typeof t=="symbol")return!0;if(nye.call(t)!=="[object Symbol]")return!1;try{return lye(t)}catch{return!1}}}else gT.exports=function(t){return!1};var sye=gT.exports,yT={exports:{}},jN=typeof BigInt<"u"&&BigInt,uye=function(){return typeof jN=="function"&&typeof BigInt=="function"&&typeof jN(42)=="bigint"&&typeof BigInt(42)=="bigint"},cye=uye();if(cye){var fye=BigInt.prototype.valueOf,dye=function(t){try{return fye.call(t),!0}catch{}return!1};yT.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:dye(t)}}else yT.exports=function(t){return!1};var pye=yT.exports,hye=YQ,vye=X1e,mye=rye,gye=sye,yye=pye,bye=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(hye(t))return"String";if(vye(t))return"Number";if(mye(t))return"Boolean";if(gye(t))return"Symbol";if(yye(t))return"BigInt"},cO=typeof Map=="function"&&Map.prototype?Map:null,$ye=typeof Set=="function"&&Set.prototype?Set:null,Yy;cO||(Yy=function(t){return!1});var QQ=cO?Map.prototype.has:null,HN=$ye?Set.prototype.has:null;!Yy&&!QQ&&(Yy=function(t){return!1});var ZQ=Yy||function(t){if(!t||typeof t!="object")return!1;try{if(QQ.call(t),HN)try{HN.call(t)}catch{return!0}return t instanceof cO}catch{}return!1},xye=typeof Map=="function"&&Map.prototype?Map:null,fO=typeof Set=="function"&&Set.prototype?Set:null,Xy;fO||(Xy=function(t){return!1});var GN=xye?Map.prototype.has:null,JQ=fO?Set.prototype.has:null;!Xy&&!JQ&&(Xy=function(t){return!1});var eZ=Xy||function(t){if(!t||typeof t!="object")return!1;try{if(JQ.call(t),GN)try{GN.call(t)}catch{return!0}return t instanceof fO}catch{}return!1},Qy=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,WN=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Zy;Qy||(Zy=function(t){return!1});var bT=Qy?Qy.prototype.has:null,Q3=WN?WN.prototype.has:null;!Zy&&!bT&&(Zy=function(t){return!1});var wye=Zy||function(t){if(!t||typeof t!="object")return!1;try{if(bT.call(t,bT),Q3)try{Q3.call(t,Q3)}catch{return!0}return t instanceof Qy}catch{}return!1},$T={exports:{}},_ye=Zs,tZ=Wo,Sye=_ye("%WeakSet%",!0),Z3=tZ("WeakSet.prototype.has",!0);if(Z3){var J3=tZ("WeakMap.prototype.has",!0);$T.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Z3(t,Z3),J3)try{J3(t,J3)}catch{return!0}return t instanceof Sye}catch{}return!1}}else $T.exports=function(t){return!1};var Eye=$T.exports,Aye=ZQ,Cye=eZ,Tye=wye,Pye=Eye,Mye=function(t){if(t&&typeof t=="object"){if(Aye(t))return"Map";if(Cye(t))return"Set";if(Tye(t))return"WeakMap";if(Pye(t))return"WeakSet"}return!1},V1={exports:{}},VN=RQ;if(sO()||b2()){var ew=Symbol.iterator;V1.exports=function(t){if(t!=null&&typeof t[ew]<"u")return t[ew]();if(VN(t))return Array.prototype[ew].call(t)}}else{var Oye=qQ,Rye=YQ,KN=Zs,Iye=KN("%Map%",!0),kye=KN("%Set%",!0),oo=Wo,qN=oo("Array.prototype.push"),YN=oo("String.prototype.charCodeAt"),Fye=oo("String.prototype.slice"),Nye=function(t,r){var n=t.length;if(r+1>=n)return r+1;var i=YN(t,r);if(i<55296||i>56319)return r+1;var a=YN(t,r+1);return a<56320||a>57343?r+1:r+2},tw=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}}}},XN=function(t,r){if(Oye(t)||VN(t))return tw(t);if(Rye(t)){var n=0;return{next:function(){var a=Nye(t,n),o=Fye(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(!Iye&&!kye)V1.exports=function(t){if(t!=null)return XN(t,!0)};else{var Lye=ZQ,Dye=eZ,QN=oo("Map.prototype.forEach",!0),ZN=oo("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var JN=oo("Map.prototype.iterator",!0),eL=oo("Set.prototype.iterator",!0),tL=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 rL=oo("Map.prototype.@@iterator",!0)||oo("Map.prototype._es6-shim iterator_",!0),nL=oo("Set.prototype.@@iterator",!0)||oo("Set.prototype._es6-shim iterator_",!0),Bye=function(t){if(Lye(t)){if(JN)return tL(JN(t));if(rL)return rL(t);if(QN){var r=[];return QN(t,function(i,a){qN(r,[a,i])}),tw(r)}}if(Dye(t)){if(eL)return tL(eL(t));if(nL)return nL(t);if(ZN){var n=[];return ZN(t,function(i){qN(n,i)}),tw(n)}}};V1.exports=function(t){return Bye(t)||XN(t)}}}var zye=V1.exports;const Uye={},jye=Object.freeze(Object.defineProperty({__proto__:null,default:Uye},Symbol.toStringTag,{value:"Module"})),xT=bc(jye);var dO=typeof Map=="function"&&Map.prototype,rw=Object.getOwnPropertyDescriptor&&dO?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Jy=dO&&rw&&typeof rw.get=="function"?rw.get:null,Hye=dO&&Map.prototype.forEach,pO=typeof Set=="function"&&Set.prototype,nw=Object.getOwnPropertyDescriptor&&pO?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,eb=pO&&nw&&typeof nw.get=="function"?nw.get:null,Gye=pO&&Set.prototype.forEach,Wye=typeof WeakMap=="function"&&WeakMap.prototype,Cv=Wye?WeakMap.prototype.has:null,Vye=typeof WeakSet=="function"&&WeakSet.prototype,Tv=Vye?WeakSet.prototype.has:null,Kye=typeof WeakRef=="function"&&WeakRef.prototype,iL=Kye?WeakRef.prototype.deref:null,qye=Boolean.prototype.valueOf,Yye=Object.prototype.toString,Xye=Function.prototype.toString,Qye=String.prototype.match,hO=String.prototype.slice,Ss=String.prototype.replace,Zye=String.prototype.toUpperCase,aL=String.prototype.toLowerCase,rZ=RegExp.prototype.test,oL=Array.prototype.concat,Po=Array.prototype.join,Jye=Array.prototype.slice,lL=Math.floor,wT=typeof BigInt=="function"?BigInt.prototype.valueOf:null,iw=Object.getOwnPropertySymbols,_T=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Dd=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Ri=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Dd||"symbol")?Symbol.toStringTag:null,nZ=Object.prototype.propertyIsEnumerable,sL=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function uL(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||rZ.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-lL(-e):lL(e);if(n!==e){var i=String(n),a=hO.call(t,i.length+1);return Ss.call(i,r,"$&_")+"."+Ss.call(Ss.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ss.call(t,r,"$&_")}var ST=xT,cL=ST.custom,fL=aZ(cL)?cL:null,ebe=function e(t,r,n,i){var a=r||{};if(vs(a,"quoteStyle")&&a.quoteStyle!=="single"&&a.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(vs(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=vs(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(vs(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(vs(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 lZ(t,a);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return l?uL(t,u):u}if(typeof t=="bigint"){var c=String(t)+"n";return l?uL(t,c):c}var d=typeof a.depth>"u"?5:a.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return ET(t)?"[Array]":"[Object]";var h=ybe(a,n);if(typeof i>"u")i=[];else if(oZ(i,t)>=0)return"[Circular]";function p(ne,ce,De){if(ce&&(i=Jye.call(i),i.push(ce)),De){var We={depth:a.depth};return vs(a,"quoteStyle")&&(We.quoteStyle=a.quoteStyle),e(ne,We,n+1,i)}return e(ne,a,n+1,i)}if(typeof t=="function"&&!dL(t)){var v=ube(t),$=r1(t,p);return"[Function"+(v?": "+v:" (anonymous)")+"]"+($.length>0?" { "+Po.call($,", ")+" }":"")}if(aZ(t)){var S=Dd?Ss.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):_T.call(t);return typeof t=="object"&&!Dd?Dh(S):S}if(vbe(t)){for(var g="<"+aL.call(String(t.nodeName)),b=t.attributes||[],_=0;_<b.length;_++)g+=" "+b[_].name+"="+iZ(tbe(b[_].value),"double",a);return g+=">",t.childNodes&&t.childNodes.length&&(g+="..."),g+="</"+aL.call(String(t.nodeName))+">",g}if(ET(t)){if(t.length===0)return"[]";var E=r1(t,p);return h&&!gbe(E)?"["+AT(E,h)+"]":"[ "+Po.call(E,", ")+" ]"}if(nbe(t)){var A=r1(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!nZ.call(t,"cause")?"{ ["+String(t)+"] "+Po.call(oL.call("[cause]: "+p(t.cause),A),", ")+" }":A.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Po.call(A,", ")+" }"}if(typeof t=="object"&&o){if(fL&&typeof t[fL]=="function"&&ST)return ST(t,{depth:d-n});if(o!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(cbe(t)){var M=[];return Hye.call(t,function(ne,ce){M.push(p(ce,t,!0)+" => "+p(ne,t))}),pL("Map",Jy.call(t),M,h)}if(pbe(t)){var N=[];return Gye.call(t,function(ne){N.push(p(ne,t))}),pL("Set",eb.call(t),N,h)}if(fbe(t))return aw("WeakMap");if(hbe(t))return aw("WeakSet");if(dbe(t))return aw("WeakRef");if(abe(t))return Dh(p(Number(t)));if(lbe(t))return Dh(p(wT.call(t)));if(obe(t))return Dh(qye.call(t));if(ibe(t))return Dh(p(String(t)));if(!rbe(t)&&!dL(t)){var U=r1(t,p),I=sL?sL(t)===Object.prototype:t instanceof Object||t.constructor===Object,j=t instanceof Object?"":"null prototype",he=!I&&Ri&&Object(t)===t&&Ri in t?hO.call(Js(t),8,-1):j?"Object":"",q=I||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",fe=q+(he||j?"["+Po.call(oL.call([],he||[],j||[]),": ")+"] ":"");return U.length===0?fe+"{}":h?fe+"{"+AT(U,h)+"}":fe+"{ "+Po.call(U,", ")+" }"}return String(t)};function iZ(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function tbe(e){return Ss.call(String(e),/"/g,"&quot;")}function ET(e){return Js(e)==="[object Array]"&&(!Ri||!(typeof e=="object"&&Ri in e))}function rbe(e){return Js(e)==="[object Date]"&&(!Ri||!(typeof e=="object"&&Ri in e))}function dL(e){return Js(e)==="[object RegExp]"&&(!Ri||!(typeof e=="object"&&Ri in e))}function nbe(e){return Js(e)==="[object Error]"&&(!Ri||!(typeof e=="object"&&Ri in e))}function ibe(e){return Js(e)==="[object String]"&&(!Ri||!(typeof e=="object"&&Ri in e))}function abe(e){return Js(e)==="[object Number]"&&(!Ri||!(typeof e=="object"&&Ri in e))}function obe(e){return Js(e)==="[object Boolean]"&&(!Ri||!(typeof e=="object"&&Ri in e))}function aZ(e){if(Dd)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!_T)return!1;try{return _T.call(e),!0}catch{}return!1}function lbe(e){if(!e||typeof e!="object"||!wT)return!1;try{return wT.call(e),!0}catch{}return!1}var sbe=Object.prototype.hasOwnProperty||function(e){return e in this};function vs(e,t){return sbe.call(e,t)}function Js(e){return Yye.call(e)}function ube(e){if(e.name)return e.name;var t=Qye.call(Xye.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function oZ(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 cbe(e){if(!Jy||!e||typeof e!="object")return!1;try{Jy.call(e);try{eb.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function fbe(e){if(!Cv||!e||typeof e!="object")return!1;try{Cv.call(e,Cv);try{Tv.call(e,Tv)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function dbe(e){if(!iL||!e||typeof e!="object")return!1;try{return iL.call(e),!0}catch{}return!1}function pbe(e){if(!eb||!e||typeof e!="object")return!1;try{eb.call(e);try{Jy.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function hbe(e){if(!Tv||!e||typeof e!="object")return!1;try{Tv.call(e,Tv);try{Cv.call(e,Cv)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function vbe(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function lZ(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return lZ(hO.call(e,0,t.maxStringLength),t)+n}var i=Ss.call(Ss.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,mbe);return iZ(i,"single",t)}function mbe(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":"")+Zye.call(t.toString(16))}function Dh(e){return"Object("+e+")"}function aw(e){return e+" { ? }"}function pL(e,t,r,n){var i=n?AT(r,n):Po.call(r,", ");return e+" ("+t+") {"+i+"}"}function gbe(e){for(var t=0;t<e.length;t++)if(oZ(e[t],`
847
+ `)>=0)return!1;return!0}function ybe(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Po.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Po.call(Array(t+1),r)}}function AT(e,t){if(e.length===0)return"";var r=`
848
+ `+t.prev+t.base;return r+Po.call(e,","+r)+`
849
+ `+t.prev}function r1(e,t){var r=ET(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=vs(e,i)?t(e[i],e):""}var a=typeof iw=="function"?iw(e):[],o;if(Dd){o={};for(var l=0;l<a.length;l++)o["$"+a[l]]=a[l]}for(var u in e)vs(e,u)&&(r&&String(Number(u))===u&&u<e.length||Dd&&o["$"+u]instanceof Symbol||(rZ.call(/[^\w$]/,u)?n.push(t(u,e)+": "+t(e[u],e)):n.push(u+": "+t(e[u],e))));if(typeof iw=="function")for(var c=0;c<a.length;c++)nZ.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}var vO=Zs,op=Wo,bbe=ebe,$be=vO("%TypeError%"),n1=vO("%WeakMap%",!0),i1=vO("%Map%",!0),xbe=op("WeakMap.prototype.get",!0),wbe=op("WeakMap.prototype.set",!0),_be=op("WeakMap.prototype.has",!0),Sbe=op("Map.prototype.get",!0),Ebe=op("Map.prototype.set",!0),Abe=op("Map.prototype.has",!0),mO=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},Cbe=function(e,t){var r=mO(e,t);return r&&r.value},Tbe=function(e,t,r){var n=mO(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},Pbe=function(e,t){return!!mO(e,t)},Mbe=function(){var t,r,n,i={assert:function(a){if(!i.has(a))throw new $be("Side channel does not contain "+bbe(a))},get:function(a){if(n1&&a&&(typeof a=="object"||typeof a=="function")){if(t)return xbe(t,a)}else if(i1){if(r)return Sbe(r,a)}else if(n)return Cbe(n,a)},has:function(a){if(n1&&a&&(typeof a=="object"||typeof a=="function")){if(t)return _be(t,a)}else if(i1){if(r)return Abe(r,a)}else if(n)return Pbe(n,a);return!1},set:function(a,o){n1&&a&&(typeof a=="object"||typeof a=="function")?(t||(t=new n1),wbe(t,a,o)):i1?(r||(r=new i1),Ebe(r,a,o)):(n||(n={key:{},next:null}),Tbe(n,a,o))}};return i},Obe=Object.prototype.hasOwnProperty,Rbe=Object.prototype.toString,sZ=function(t,r,n){if(Rbe.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)Obe.call(t,o)&&r.call(n,t[o],o,t)},ow=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Ibe=typeof globalThis>"u"?ir:globalThis,uZ=function(){for(var t=[],r=0;r<ow.length;r++)typeof Ibe[ow[r]]=="function"&&(t[t.length]=ow[r]);return t},lw,hL;function kbe(){if(hL)return lw;hL=1;var e=Zs,t=e("%Object.getOwnPropertyDescriptor%",!0);if(t)try{t([],"length")}catch{t=null}return lw=t,lw}var sw,vL;function cZ(){return vL||(vL=1,sw=kbe()),sw}var uw,mL;function Fbe(){if(mL)return uw;mL=1;var e=sZ,t=uZ,r=Wo,n=r("Object.prototype.toString"),i=Qs(),a=typeof globalThis>"u"?ir:globalThis,o=t(),l=r("Array.prototype.indexOf",!0)||function($,S){for(var g=0;g<$.length;g+=1)if($[g]===S)return g;return-1},u=r("String.prototype.slice"),c={},d=cZ(),h=Object.getPrototypeOf;i&&d&&h&&e(o,function(v){var $=new a[v];if(Symbol.toStringTag in $){var S=h($),g=d(S,Symbol.toStringTag);if(!g){var b=h(S);g=d(b,Symbol.toStringTag)}c[v]=g.get}});var p=function($){var S=!1;return e(c,function(g,b){if(!S)try{S=g.call($)===b}catch{}}),S};return uw=function($){if(!$||typeof $!="object")return!1;if(!i||!(Symbol.toStringTag in $)){var S=u(n($),8,-1);return l(o,S)>-1}return d?p($):!1},uw}var fZ=sZ,Nbe=uZ,dZ=Wo,Lbe=dZ("Object.prototype.toString"),pZ=Qs(),gL=typeof globalThis>"u"?ir:globalThis,Dbe=Nbe(),Bbe=dZ("String.prototype.slice"),hZ={},cw=cZ(),fw=Object.getPrototypeOf;pZ&&cw&&fw&&fZ(Dbe,function(e){if(typeof gL[e]=="function"){var t=new gL[e];if(Symbol.toStringTag in t){var r=fw(t),n=cw(r,Symbol.toStringTag);if(!n){var i=fw(r);n=cw(i,Symbol.toStringTag)}hZ[e]=n.get}}});var zbe=function(t){var r=!1;return fZ(hZ,function(n,i){if(!r)try{var a=n.call(t);a===i&&(r=a)}catch{}}),r},Ube=Fbe(),jbe=function(t){return Ube(t)?!pZ||!(Symbol.toStringTag in t)?Bbe(Lbe(t),8,-1):zbe(t):!1},Hbe=lO,vZ=b2(),mZ=Wo,yL=Object,Gbe=mZ("Array.prototype.push"),bL=mZ("Object.prototype.propertyIsEnumerable"),Wbe=vZ?Object.getOwnPropertySymbols:null,gZ=function(t,r){if(t==null)throw new TypeError("target must be an object");var n=yL(t);if(arguments.length===1)return n;for(var i=1;i<arguments.length;++i){var a=yL(arguments[i]),o=Hbe(a),l=vZ&&(Object.getOwnPropertySymbols||Wbe);if(l)for(var u=l(a),c=0;c<u.length;++c){var d=u[c];bL(a,d)&&Gbe(o,d)}for(var h=0;h<o.length;++h){var p=o[h];if(bL(a,p)){var v=a[p];n[p]=v}}}return n},dw=gZ,Vbe=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},Kbe=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},yZ=function(){return!Object.assign||Vbe()||Kbe()?dw:Object.assign},qbe=Ic,Ybe=yZ,Xbe=function(){var t=Ybe();return qbe(Object,{assign:t},{assign:function(){return Object.assign!==t}}),t},Qbe=Ic,Zbe=$2,Jbe=gZ,bZ=yZ,e2e=Xbe,t2e=Zbe.apply(bZ()),$Z=function(t,r){return t2e(Object,arguments)};Qbe($Z,{getPolyfill:bZ,implementation:Jbe,shim:e2e});var r2e=$Z,$L=lO,xL=RQ,wL=f1e,_L=v1e,SL=R1e,EL=qQ,AL=B1e,CL=bye,n2e=Zs,zl=Wo,TL=Mye,Bd=zye,i2e=Mbe,PL=jbe,xZ=r2e,ML=zl("Date.prototype.getTime"),pw=Object.getPrototypeOf,OL=zl("Object.prototype.toString"),tb=n2e("%Set%",!0),CT=zl("Map.prototype.has",!0),rb=zl("Map.prototype.get",!0),RL=zl("Map.prototype.size",!0),nb=zl("Set.prototype.add",!0),wZ=zl("Set.prototype.delete",!0),ib=zl("Set.prototype.has",!0),K1=zl("Set.prototype.size",!0);function IL(e,t,r,n){for(var i=Bd(e),a;(a=i.next())&&!a.done;)if(Il(t,a.value,r,n))return wZ(e,a.value),!0;return!1}function _Z(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 a2e(e,t,r,n,i,a){var o=_Z(r);if(o!=null)return o;var l=rb(t,o),u=xZ({},i,{strict:!1});return typeof l>"u"&&!CT(t,o)||!Il(n,l,u,a)?!1:!CT(e,o)&&Il(n,l,u,a)}function o2e(e,t,r){var n=_Z(r);return n??(ib(t,n)&&!ib(e,n))}function kL(e,t,r,n,i,a){for(var o=Bd(e),l,u;(l=o.next())&&!l.done;)if(u=l.value,Il(r,u,i,a)&&Il(n,rb(t,u),i,a))return wZ(e,u),!0;return!1}function Il(e,t,r,n){var i=r||{};if(i.strict?wL(e,t):e===t)return!0;var a=CL(e),o=CL(t);if(a!==o)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return i.strict?wL(e,t):e==t;var l=n.has(e),u=n.has(t),c;if(l&&u){if(n.get(e)===n.get(t))return!0}else c={};return l||n.set(e,c),u||n.set(t,c),u2e(e,t,i,n)}function FL(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 l2e(e,t,r,n){if(K1(e)!==K1(t))return!1;for(var i=Bd(e),a=Bd(t),o,l,u;(o=i.next())&&!o.done;)if(o.value&&typeof o.value=="object")u||(u=new tb),nb(u,o.value);else if(!ib(t,o.value)){if(r.strict||!o2e(e,t,o.value))return!1;u||(u=new tb),nb(u,o.value)}if(u){for(;(l=a.next())&&!l.done;)if(l.value&&typeof l.value=="object"){if(!IL(u,l.value,r.strict,n))return!1}else if(!r.strict&&!ib(e,l.value)&&!IL(u,l.value,r.strict,n))return!1;return K1(u)===0}return!0}function s2e(e,t,r,n){if(RL(e)!==RL(t))return!1;for(var i=Bd(e),a=Bd(t),o,l,u,c,d,h;(o=i.next())&&!o.done;)if(c=o.value[0],d=o.value[1],c&&typeof c=="object")u||(u=new tb),nb(u,c);else if(h=rb(t,c),typeof h>"u"&&!CT(t,c)||!Il(d,h,r,n)){if(r.strict||!a2e(e,t,c,d,r,n))return!1;u||(u=new tb),nb(u,c)}if(u){for(;(l=a.next())&&!l.done;)if(c=l.value[0],h=l.value[1],c&&typeof c=="object"){if(!kL(u,e,c,h,r,n))return!1}else if(!r.strict&&(!e.has(c)||!Il(rb(e,c),h,r,n))&&!kL(u,e,c,h,xZ({},r,{strict:!1}),n))return!1;return K1(u)===0}return!0}function u2e(e,t,r,n){var i,a;if(typeof e!=typeof t||e==null||t==null||OL(e)!==OL(t)||xL(e)!==xL(t))return!1;var o=EL(e),l=EL(t);if(o!==l)return!1;var u=e instanceof Error,c=t instanceof Error;if(u!==c||(u||c)&&(e.name!==t.name||e.message!==t.message))return!1;var d=_L(e),h=_L(t);if(d!==h||(d||h)&&(e.source!==t.source||SL(e)!==SL(t)))return!1;var p=AL(e),v=AL(t);if(p!==v||(p||v)&&ML(e)!==ML(t)||r.strict&&pw&&pw(e)!==pw(t)||PL(e)!==PL(t))return!1;var $=FL(e),S=FL(t);if($!==S)return!1;if($||S){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 g=$L(e),b=$L(t);if(g.length!==b.length)return!1;for(g.sort(),b.sort(),i=g.length-1;i>=0;i--)if(g[i]!=b[i])return!1;for(i=g.length-1;i>=0;i--)if(a=g[i],!Il(e[a],t[a],r,n))return!1;var _=TL(e),E=TL(t);return _!==E?!1:_==="Set"||E==="Set"?l2e(e,t,r,n):_==="Map"?s2e(e,t,r,n):!0}var c2e=function(t,r,n){return Il(t,r,n,i2e())};const wEe=$a(c2e);var f2e={exports:{}};/*! Native Promise Only
850
+ v0.8.1 (c) Kyle Simpson
851
+ MIT License: http://getify.mit-license.org
852
+ */(function(e){(function(r,n,i){n[r]=n[r]||i(),e.exports&&(e.exports=n[r])})("Promise",typeof ir<"u"?ir:ir,function(){var r,n,i,a=Object.prototype.toString,o=typeof setImmediate<"u"?function(E){return setImmediate(E)}:setTimeout;try{Object.defineProperty({},"x",{}),r=function(E,A,M,N){return Object.defineProperty(E,A,{value:M,writable:!0,configurable:N!==!1})}}catch{r=function(A,M,N){return A[M]=N,A}}i=function(){var E,A,M;function N(U,I){this.fn=U,this.self=I,this.next=void 0}return{add:function(I,j){M=new N(I,j),A?A.next=M:E=M,A=M,M=void 0},drain:function(){var I=E;for(E=A=n=void 0;I;)I.fn.call(I.self),I=I.next}}}();function l(_,E){i.add(_,E),n||(n=o(i.drain))}function u(_){var E,A=typeof _;return _!=null&&(A=="object"||A=="function")&&(E=_.then),typeof E=="function"?E:!1}function c(){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(_,E,A){var M,N;try{E===!1?A.reject(_.msg):(E===!0?M=_.msg:M=E.call(void 0,_.msg),M===A.promise?A.reject(TypeError("Promise-chain cycle")):(N=u(M))?N.call(M,A.resolve,A.reject):A.resolve(M))}catch(U){A.reject(U)}}function h(_){var E,A=this;if(!A.triggered){A.triggered=!0,A.def&&(A=A.def);try{(E=u(_))?l(function(){var M=new $(A);try{E.call(_,function(){h.apply(M,arguments)},function(){p.apply(M,arguments)})}catch(N){p.call(M,N)}}):(A.msg=_,A.state=1,A.chain.length>0&&l(c,A))}catch(M){p.call(new $(A),M)}}}function p(_){var E=this;E.triggered||(E.triggered=!0,E.def&&(E=E.def),E.msg=_,E.state=2,E.chain.length>0&&l(c,E))}function v(_,E,A,M){for(var N=0;N<E.length;N++)(function(I){_.resolve(E[I]).then(function(he){A(I,he)},M)})(N)}function $(_){this.def=_,this.triggered=!1}function S(_){this.promise=_,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function g(_){if(typeof _!="function")throw TypeError("Not a function");if(this.__NPO__!==0)throw TypeError("Not a promise");this.__NPO__=1;var E=new S(this);this.then=function(M,N){var U={success:typeof M=="function"?M:!0,failure:typeof N=="function"?N:!1};return U.promise=new this.constructor(function(j,he){if(typeof j!="function"||typeof he!="function")throw TypeError("Not a function");U.resolve=j,U.reject=he}),E.chain.push(U),E.state!==0&&l(c,E),U.promise},this.catch=function(M){return this.then(void 0,M)};try{_.call(void 0,function(M){h.call(E,M)},function(M){p.call(E,M)})}catch(A){p.call(E,A)}}var b=r({},"constructor",g,!1);return g.prototype=b,r(b,"__NPO__",0,!1),r(g,"resolve",function(E){var A=this;return E&&typeof E=="object"&&E.__NPO__===1?E:new A(function(N,U){if(typeof N!="function"||typeof U!="function")throw TypeError("Not a function");N(E)})}),r(g,"reject",function(E){return new this(function(M,N){if(typeof M!="function"||typeof N!="function")throw TypeError("Not a function");N(E)})}),r(g,"all",function(E){var A=this;return a.call(E)!="[object Array]"?A.reject(TypeError("Not an array")):E.length===0?A.resolve([]):new A(function(N,U){if(typeof N!="function"||typeof U!="function")throw TypeError("Not a function");var I=E.length,j=Array(I),he=0;v(A,E,function(fe,ne){j[fe]=ne,++he===I&&N(j)},U)})}),r(g,"race",function(E){var A=this;return a.call(E)!="[object Array]"?A.reject(TypeError("Not an array")):new A(function(N,U){if(typeof N!="function"||typeof U!="function")throw TypeError("Not a function");v(A,E,function(j,he){N(he)},U)})}),g})})(f2e);var SZ={exports:{}};(function(e){(function(){var t={version:"3.8.0"},r=[].slice,n=function(s){return r.call(s)},i=self.document;function a(s){return s&&(s.ownerDocument||s.document||s).documentElement}function o(s){return s&&(s.ownerDocument&&s.ownerDocument.defaultView||s.document&&s||s.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch{n=function(f){for(var m=f.length,y=new Array(m);m--;)y[m]=f[m];return y}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement("DIV").style.setProperty("opacity",0,"")}catch{var l=this.Element.prototype,u=l.setAttribute,c=l.setAttributeNS,d=this.CSSStyleDeclaration.prototype,h=d.setProperty;l.setAttribute=function(f,m){u.call(this,f,m+"")},l.setAttributeNS=function(f,m,y){c.call(this,f,m,y+"")},d.setProperty=function(f,m,y){h.call(this,f,m+"",y)}}t.ascending=p;function p(s,f){return s<f?-1:s>f?1:s>=f?0:NaN}t.descending=function(s,f){return f<s?-1:f>s?1:f>=s?0:NaN},t.min=function(s,f){var m=-1,y=s.length,x,w;if(arguments.length===1){for(;++m<y;)if((w=s[m])!=null&&w>=w){x=w;break}for(;++m<y;)(w=s[m])!=null&&x>w&&(x=w)}else{for(;++m<y;)if((w=f.call(s,s[m],m))!=null&&w>=w){x=w;break}for(;++m<y;)(w=f.call(s,s[m],m))!=null&&x>w&&(x=w)}return x},t.max=function(s,f){var m=-1,y=s.length,x,w;if(arguments.length===1){for(;++m<y;)if((w=s[m])!=null&&w>=w){x=w;break}for(;++m<y;)(w=s[m])!=null&&w>x&&(x=w)}else{for(;++m<y;)if((w=f.call(s,s[m],m))!=null&&w>=w){x=w;break}for(;++m<y;)(w=f.call(s,s[m],m))!=null&&w>x&&(x=w)}return x},t.extent=function(s,f){var m=-1,y=s.length,x,w,P;if(arguments.length===1){for(;++m<y;)if((w=s[m])!=null&&w>=w){x=P=w;break}for(;++m<y;)(w=s[m])!=null&&(x>w&&(x=w),P<w&&(P=w))}else{for(;++m<y;)if((w=f.call(s,s[m],m))!=null&&w>=w){x=P=w;break}for(;++m<y;)(w=f.call(s,s[m],m))!=null&&(x>w&&(x=w),P<w&&(P=w))}return[x,P]};function v(s){return s===null?NaN:+s}function $(s){return!isNaN(s)}t.sum=function(s,f){var m=0,y=s.length,x,w=-1;if(arguments.length===1)for(;++w<y;)$(x=+s[w])&&(m+=x);else for(;++w<y;)$(x=+f.call(s,s[w],w))&&(m+=x);return m},t.mean=function(s,f){var m=0,y=s.length,x,w=-1,P=y;if(arguments.length===1)for(;++w<y;)$(x=v(s[w]))?m+=x:--P;else for(;++w<y;)$(x=v(f.call(s,s[w],w)))?m+=x:--P;if(P)return m/P},t.quantile=function(s,f){var m=(s.length-1)*f+1,y=Math.floor(m),x=+s[y-1],w=m-y;return w?x+w*(s[y]-x):x},t.median=function(s,f){var m=[],y=s.length,x,w=-1;if(arguments.length===1)for(;++w<y;)$(x=v(s[w]))&&m.push(x);else for(;++w<y;)$(x=v(f.call(s,s[w],w)))&&m.push(x);if(m.length)return t.quantile(m.sort(p),.5)},t.variance=function(s,f){var m=s.length,y=0,x,w,P=0,C=-1,k=0;if(arguments.length===1)for(;++C<m;)$(x=v(s[C]))&&(w=x-y,y+=w/++k,P+=w*(x-y));else for(;++C<m;)$(x=v(f.call(s,s[C],C)))&&(w=x-y,y+=w/++k,P+=w*(x-y));if(k>1)return P/(k-1)},t.deviation=function(){var s=t.variance.apply(this,arguments);return s&&Math.sqrt(s)};function S(s){return{left:function(f,m,y,x){for(arguments.length<3&&(y=0),arguments.length<4&&(x=f.length);y<x;){var w=y+x>>>1;s(f[w],m)<0?y=w+1:x=w}return y},right:function(f,m,y,x){for(arguments.length<3&&(y=0),arguments.length<4&&(x=f.length);y<x;){var w=y+x>>>1;s(f[w],m)>0?x=w:y=w+1}return y}}}var g=S(p);t.bisectLeft=g.left,t.bisect=t.bisectRight=g.right,t.bisector=function(s){return S(s.length===1?function(f,m){return p(s(f),m)}:s)},t.shuffle=function(s,f,m){(y=arguments.length)<3&&(m=s.length,y<2&&(f=0));for(var y=m-f,x,w;y;)w=Math.random()*y--|0,x=s[y+f],s[y+f]=s[w+f],s[w+f]=x;return s},t.permute=function(s,f){for(var m=f.length,y=new Array(m);m--;)y[m]=s[f[m]];return y},t.pairs=function(s){for(var f=0,m=s.length-1,y=s[0],x=new Array(m<0?0:m);f<m;)x[f]=[y,y=s[++f]];return x},t.transpose=function(s){if(!(w=s.length))return[];for(var f=-1,m=t.min(s,b),y=new Array(m);++f<m;)for(var x=-1,w,P=y[f]=new Array(w);++x<w;)P[x]=s[x][f];return y};function b(s){return s.length}t.zip=function(){return t.transpose(arguments)},t.keys=function(s){var f=[];for(var m in s)f.push(m);return f},t.values=function(s){var f=[];for(var m in s)f.push(s[m]);return f},t.entries=function(s){var f=[];for(var m in s)f.push({key:m,value:s[m]});return f},t.merge=function(s){for(var f=s.length,m,y=-1,x=0,w,P;++y<f;)x+=s[y].length;for(w=new Array(x);--f>=0;)for(P=s[f],m=P.length;--m>=0;)w[--x]=P[m];return w};var _=Math.abs;t.range=function(s,f,m){if(arguments.length<3&&(m=1,arguments.length<2&&(f=s,s=0)),(f-s)/m===1/0)throw new Error("infinite range");var y=[],x=E(_(m)),w=-1,P;if(s*=x,f*=x,m*=x,m<0)for(;(P=s+m*++w)>f;)y.push(P/x);else for(;(P=s+m*++w)<f;)y.push(P/x);return y};function E(s){for(var f=1;s*f%1;)f*=10;return f}function A(s,f){for(var m in f)Object.defineProperty(s.prototype,m,{value:f[m],enumerable:!1})}t.map=function(s,f){var m=new M;if(s instanceof M)s.forEach(function(C,k){m.set(C,k)});else if(Array.isArray(s)){var y=-1,x=s.length,w;if(arguments.length===1)for(;++y<x;)m.set(y,s[y]);else for(;++y<x;)m.set(f.call(s,w=s[y],y),w)}else for(var P in s)m.set(P,s[P]);return m};function M(){this._=Object.create(null)}var N="__proto__",U="\0";A(M,{has:he,get:function(s){return this._[I(s)]},set:function(s,f){return this._[I(s)]=f},remove:q,keys:fe,values:function(){var s=[];for(var f in this._)s.push(this._[f]);return s},entries:function(){var s=[];for(var f in this._)s.push({key:j(f),value:this._[f]});return s},size:ne,empty:ce,forEach:function(s){for(var f in this._)s.call(this,j(f),this._[f])}});function I(s){return(s+="")===N||s[0]===U?U+s:s}function j(s){return(s+="")[0]===U?s.slice(1):s}function he(s){return I(s)in this._}function q(s){return(s=I(s))in this._&&delete this._[s]}function fe(){var s=[];for(var f in this._)s.push(j(f));return s}function ne(){var s=0;for(var f in this._)++s;return s}function ce(){for(var s in this._)return!1;return!0}t.nest=function(){var s={},f=[],m=[],y,x;function w(C,k,L){if(L>=f.length)return x?x.call(s,k):y?k.sort(y):k;for(var B=-1,G=k.length,V=f[L++],ue,de,Y,J=new M,ie;++B<G;)(ie=J.get(ue=V(de=k[B])))?ie.push(de):J.set(ue,[de]);return C?(de=C(),Y=function(pe,ve){de.set(pe,w(C,ve,L))}):(de={},Y=function(pe,ve){de[pe]=w(C,ve,L)}),J.forEach(Y),de}function P(C,k){if(k>=f.length)return C;var L=[],B=m[k++];return C.forEach(function(G,V){L.push({key:G,values:P(V,k)})}),B?L.sort(function(G,V){return B(G.key,V.key)}):L}return s.map=function(C,k){return w(k,C,0)},s.entries=function(C){return P(w(t.map,C,0),0)},s.key=function(C){return f.push(C),s},s.sortKeys=function(C){return m[f.length-1]=C,s},s.sortValues=function(C){return y=C,s},s.rollup=function(C){return x=C,s},s},t.set=function(s){var f=new De;if(s)for(var m=0,y=s.length;m<y;++m)f.add(s[m]);return f};function De(){this._=Object.create(null)}A(De,{has:he,add:function(s){return this._[I(s+="")]=!0,s},remove:q,values:fe,size:ne,empty:ce,forEach:function(s){for(var f in this._)s.call(this,j(f))}}),t.behavior={};function We(s){return s}t.rebind=function(s,f){for(var m=1,y=arguments.length,x;++m<y;)s[x=arguments[m]]=Ae(s,f,f[x]);return s};function Ae(s,f,m){return function(){var y=m.apply(f,arguments);return y===f?s:y}}function $e(s,f){if(f in s)return f;f=f.charAt(0).toUpperCase()+f.slice(1);for(var m=0,y=rt.length;m<y;++m){var x=rt[m]+f;if(x in s)return x}}var rt=["webkit","ms","moz","Moz","o","O"];function Be(){}t.dispatch=function(){for(var s=new Ee,f=-1,m=arguments.length;++f<m;)s[arguments[f]]=Ke(s);return s};function Ee(){}Ee.prototype.on=function(s,f){var m=s.indexOf("."),y="";if(m>=0&&(y=s.slice(m+1),s=s.slice(0,m)),s)return arguments.length<2?this[s].on(y):this[s].on(y,f);if(arguments.length===2){if(f==null)for(s in this)this.hasOwnProperty(s)&&this[s].on(y,null);return this}};function Ke(s){var f=[],m=new M;function y(){for(var x=f,w=-1,P=x.length,C;++w<P;)(C=x[w].on)&&C.apply(this,arguments);return s}return y.on=function(x,w){var P=m.get(x),C;return arguments.length<2?P&&P.on:(P&&(P.on=null,f=f.slice(0,C=f.indexOf(P)).concat(f.slice(C+1)),m.remove(x)),w&&f.push(m.set(x,{on:w})),s)},y}t.event=null;function Ge(){t.event.preventDefault()}function Fe(){for(var s=t.event,f;f=s.sourceEvent;)s=f;return s}function ft(s){for(var f=new Ee,m=0,y=arguments.length;++m<y;)f[arguments[m]]=Ke(f);return f.of=function(x,w){return function(P){try{var C=P.sourceEvent=t.event;P.target=s,t.event=P,f[P.type].apply(x,w)}finally{t.event=C}}},f}t.requote=function(s){return s.replace(bt,"\\$&")};var bt=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,Gt={}.__proto__?function(s,f){s.__proto__=f}:function(s,f){for(var m in f)s[m]=f[m]};function qt(s){return Gt(s,we),s}var nt=function(s,f){return f.querySelector(s)},At=function(s,f){return f.querySelectorAll(s)},Wt=function(s,f){var m=s.matches||s[$e(s,"matchesSelector")];return Wt=function(y,x){return m.call(y,x)},Wt(s,f)};typeof Sizzle=="function"&&(nt=function(s,f){return Sizzle(s,f)[0]||null},At=Sizzle,Wt=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var we=t.selection.prototype=[];we.select=function(s){var f=[],m,y,x,w;s=W(s);for(var P=-1,C=this.length;++P<C;){f.push(m=[]),m.parentNode=(x=this[P]).parentNode;for(var k=-1,L=x.length;++k<L;)(w=x[k])?(m.push(y=s.call(w,w.__data__,k,P)),y&&"__data__"in w&&(y.__data__=w.__data__)):m.push(null)}return qt(f)};function W(s){return typeof s=="function"?s:function(){return nt(s,this)}}we.selectAll=function(s){var f=[],m,y;s=le(s);for(var x=-1,w=this.length;++x<w;)for(var P=this[x],C=-1,k=P.length;++C<k;)(y=P[C])&&(f.push(m=n(s.call(y,y.__data__,C,x))),m.parentNode=y);return qt(f)};function le(s){return typeof s=="function"?s:function(){return At(s,this)}}var R="http://www.w3.org/1999/xhtml",T={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:T,qualify:function(s){var f=s.indexOf(":"),m=s;return f>=0&&(m=s.slice(0,f))!=="xmlns"&&(s=s.slice(f+1)),T.hasOwnProperty(m)?{space:T[m],local:s}:s}},we.attr=function(s,f){if(arguments.length<2){if(typeof s=="string"){var m=this.node();return s=t.ns.qualify(s),s.local?m.getAttributeNS(s.space,s.local):m.getAttribute(s)}for(f in s)this.each(O(f,s[f]));return this}return this.each(O(s,f))};function O(s,f){s=t.ns.qualify(s);function m(){this.removeAttribute(s)}function y(){this.removeAttributeNS(s.space,s.local)}function x(){this.setAttribute(s,f)}function w(){this.setAttributeNS(s.space,s.local,f)}function P(){var k=f.apply(this,arguments);k==null?this.removeAttribute(s):this.setAttribute(s,k)}function C(){var k=f.apply(this,arguments);k==null?this.removeAttributeNS(s.space,s.local):this.setAttributeNS(s.space,s.local,k)}return f==null?s.local?y:m:typeof f=="function"?s.local?C:P:s.local?w:x}function H(s){return s.trim().replace(/\s+/g," ")}we.classed=function(s,f){if(arguments.length<2){if(typeof s=="string"){var m=this.node(),y=(s=He(s)).length,x=-1;if(f=m.classList){for(;++x<y;)if(!f.contains(s[x]))return!1}else for(f=m.getAttribute("class");++x<y;)if(!ge(s[x]).test(f))return!1;return!0}for(f in s)this.each(Xe(f,s[f]));return this}return this.each(Xe(s,f))};function ge(s){return new RegExp("(?:^|\\s+)"+t.requote(s)+"(?:\\s+|$)","g")}function He(s){return(s+"").trim().split(/^|\s+/)}function Xe(s,f){s=He(s).map(er);var m=s.length;function y(){for(var w=-1;++w<m;)s[w](this,f)}function x(){for(var w=-1,P=f.apply(this,arguments);++w<m;)s[w](this,P)}return typeof f=="function"?x:y}function er(s){var f=ge(s);return function(m,y){if(x=m.classList)return y?x.add(s):x.remove(s);var x=m.getAttribute("class")||"";y?(f.lastIndex=0,f.test(x)||m.setAttribute("class",H(x+" "+s))):m.setAttribute("class",H(x.replace(f," ")))}}we.style=function(s,f,m){var y=arguments.length;if(y<3){if(typeof s!="string"){y<2&&(f="");for(m in s)this.each(xr(m,s[m],f));return this}if(y<2){var x=this.node();return o(x).getComputedStyle(x,null).getPropertyValue(s)}m=""}return this.each(xr(s,f,m))};function xr(s,f,m){function y(){this.style.removeProperty(s)}function x(){this.style.setProperty(s,f,m)}function w(){var P=f.apply(this,arguments);P==null?this.style.removeProperty(s):this.style.setProperty(s,P,m)}return f==null?y:typeof f=="function"?w:x}we.property=function(s,f){if(arguments.length<2){if(typeof s=="string")return this.node()[s];for(f in s)this.each(pr(f,s[f]));return this}return this.each(pr(s,f))};function pr(s,f){function m(){delete this[s]}function y(){this[s]=f}function x(){var w=f.apply(this,arguments);w==null?delete this[s]:this[s]=w}return f==null?m:typeof f=="function"?x:y}we.text=function(s){return arguments.length?this.each(typeof s=="function"?function(){var f=s.apply(this,arguments);this.textContent=f??""}:s==null?function(){this.textContent=""}:function(){this.textContent=s}):this.node().textContent},we.html=function(s){return arguments.length?this.each(typeof s=="function"?function(){var f=s.apply(this,arguments);this.innerHTML=f??""}:s==null?function(){this.innerHTML=""}:function(){this.innerHTML=s}):this.node().innerHTML},we.append=function(s){return s=Tn(s),this.select(function(){return this.appendChild(s.apply(this,arguments))})};function Tn(s){function f(){var y=this.ownerDocument,x=this.namespaceURI;return x===R&&y.documentElement.namespaceURI===R?y.createElement(s):y.createElementNS(x,s)}function m(){return this.ownerDocument.createElementNS(s.space,s.local)}return typeof s=="function"?s:(s=t.ns.qualify(s)).local?m:f}we.insert=function(s,f){return s=Tn(s),f=W(f),this.select(function(){return this.insertBefore(s.apply(this,arguments),f.apply(this,arguments)||null)})},we.remove=function(){return this.each(Jr)};function Jr(){var s=this.parentNode;s&&s.removeChild(this)}we.data=function(s,f){var m=-1,y=this.length,x,w;if(!arguments.length){for(s=new Array(y=(x=this[0]).length);++m<y;)(w=x[m])&&(s[m]=w.__data__);return s}function P(B,G){var V,ue=B.length,de=G.length,Y=Math.min(ue,de),J=new Array(de),ie=new Array(de),pe=new Array(ue),ve,oe;if(f){var je=new M,Qe=new Array(ue),ut;for(V=-1;++V<ue;)(ve=B[V])&&(je.has(ut=f.call(ve,ve.__data__,V))?pe[V]=ve:je.set(ut,ve),Qe[V]=ut);for(V=-1;++V<de;)(ve=je.get(ut=f.call(G,oe=G[V],V)))?ve!==!0&&(J[V]=ve,ve.__data__=oe):ie[V]=bo(oe),je.set(ut,!0);for(V=-1;++V<ue;)V in Qe&&je.get(Qe[V])!==!0&&(pe[V]=B[V])}else{for(V=-1;++V<Y;)ve=B[V],oe=G[V],ve?(ve.__data__=oe,J[V]=ve):ie[V]=bo(oe);for(;V<de;++V)ie[V]=bo(G[V]);for(;V<ue;++V)pe[V]=B[V]}ie.update=J,ie.parentNode=J.parentNode=pe.parentNode=B.parentNode,C.push(ie),k.push(J),L.push(pe)}var C=r0([]),k=qt([]),L=qt([]);if(typeof s=="function")for(;++m<y;)P(x=this[m],s.call(x,x.parentNode.__data__,m));else for(;++m<y;)P(x=this[m],s);return k.enter=function(){return C},k.exit=function(){return L},k};function bo(s){return{__data__:s}}we.datum=function(s){return arguments.length?this.property("__data__",s):this.property("__data__")},we.filter=function(s){var f=[],m,y,x;typeof s!="function"&&(s=ru(s));for(var w=0,P=this.length;w<P;w++){f.push(m=[]),m.parentNode=(y=this[w]).parentNode;for(var C=0,k=y.length;C<k;C++)(x=y[C])&&s.call(x,x.__data__,C,w)&&m.push(x)}return qt(f)};function ru(s){return function(){return Wt(this,s)}}we.order=function(){for(var s=-1,f=this.length;++s<f;)for(var m=this[s],y=m.length-1,x=m[y],w;--y>=0;)(w=m[y])&&(x&&x!==w.nextSibling&&x.parentNode.insertBefore(w,x),x=w);return this},we.sort=function(s){s=Vo.apply(this,arguments);for(var f=-1,m=this.length;++f<m;)this[f].sort(s);return this.order()};function Vo(s){return arguments.length||(s=p),function(f,m){return f&&m?s(f.__data__,m.__data__):!f-!m}}we.each=function(s){return Aa(this,function(f,m,y){s.call(f,f.__data__,m,y)})};function Aa(s,f){for(var m=0,y=s.length;m<y;m++)for(var x=s[m],w=0,P=x.length,C;w<P;w++)(C=x[w])&&f(C,w,m);return s}we.call=function(s){var f=n(arguments);return s.apply(f[0]=this,f),this},we.empty=function(){return!this.node()},we.node=function(){for(var s=0,f=this.length;s<f;s++)for(var m=this[s],y=0,x=m.length;y<x;y++){var w=m[y];if(w)return w}return null},we.size=function(){var s=0;return Aa(this,function(){++s}),s};function r0(s){return Gt(s,Ya),s}var Ya=[];t.selection.enter=r0,t.selection.enter.prototype=Ya,Ya.append=we.append,Ya.empty=we.empty,Ya.node=we.node,Ya.call=we.call,Ya.size=we.size,Ya.select=function(s){for(var f=[],m,y,x,w,P,C=-1,k=this.length;++C<k;){x=(w=this[C]).update,f.push(m=[]),m.parentNode=w.parentNode;for(var L=-1,B=w.length;++L<B;)(P=w[L])?(m.push(x[L]=y=s.call(w.parentNode,P.__data__,L,C)),y.__data__=P.__data__):m.push(null)}return qt(f)},Ya.insert=function(s,f){return arguments.length<2&&(f=nu(this)),we.insert.call(this,s,f)};function nu(s){var f,m;return function(y,x,w){var P=s[w].update,C=P.length,k;for(w!=m&&(m=w,f=0),x>=f&&(f=x+1);!(k=P[f])&&++f<C;);return k}}t.select=function(s){var f;return typeof s=="string"?(f=[nt(s,i)],f.parentNode=i.documentElement):(f=[s],f.parentNode=a(s)),qt([f])},t.selectAll=function(s){var f;return typeof s=="string"?(f=n(At(s,i)),f.parentNode=i.documentElement):(f=n(s),f.parentNode=null),qt([f])},we.on=function(s,f,m){var y=arguments.length;if(y<3){if(typeof s!="string"){y<2&&(f=!1);for(m in s)this.each(Lc(m,s[m],f));return this}if(y<2)return(y=this.node()["__on"+s])&&y._;m=!1}return this.each(Lc(s,f,m))};function Lc(s,f,m){var y="__on"+s,x=s.indexOf("."),w=Bc;x>0&&(s=s.slice(0,x));var P=Dc.get(s);P&&(s=P,w=K2);function C(){var B=this[y];B&&(this.removeEventListener(s,B,B.$),delete this[y])}function k(){var B=w(f,n(arguments));C.call(this),this.addEventListener(s,this[y]=B,B.$=m),B._=f}function L(){var B=new RegExp("^__on([^.]+)"+t.requote(s)+"$"),G;for(var V in this)if(G=V.match(B)){var ue=this[V];this.removeEventListener(G[1],ue,ue.$),delete this[V]}}return x?f?k:C:f?Be:L}var Dc=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});i&&Dc.forEach(function(s){"on"+s in i&&Dc.remove(s)});function Bc(s,f){return function(m){var y=t.event;t.event=m,f[0]=this.__data__;try{s.apply(this,f)}finally{t.event=y}}}function K2(s,f){var m=Bc(s,f);return function(y){var x=this,w=y.relatedTarget;(!w||w!==x&&!(w.compareDocumentPosition(x)&8))&&m.call(x,y)}}var Ko,q2=0;function zc(s){var f=".dragsuppress-"+ ++q2,m="click"+f,y=t.select(o(s)).on("touchmove"+f,Ge).on("dragstart"+f,Ge).on("selectstart"+f,Ge);if(Ko==null&&(Ko="onselectstart"in s?!1:$e(s.style,"userSelect")),Ko){var x=a(s).style,w=x[Ko];x[Ko]="none"}return function(P){if(y.on(f,null),Ko&&(x[Ko]=w),P){var C=function(){y.on(m,null)};y.on(m,function(){Ge(),C()},!0),setTimeout(C,0)}}}t.mouse=function(s){return ia(s,Fe())};var Un=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ia(s,f){f.changedTouches&&(f=f.changedTouches[0]);var m=s.ownerSVGElement||s;if(m.createSVGPoint){var y=m.createSVGPoint();if(Un<0){var x=o(s);if(x.scrollX||x.scrollY){m=t.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var w=m[0][0].getScreenCTM();Un=!(w.f||w.e),m.remove()}}return Un?(y.x=f.pageX,y.y=f.pageY):(y.x=f.clientX,y.y=f.clientY),y=y.matrixTransform(s.getScreenCTM().inverse()),[y.x,y.y]}var P=s.getBoundingClientRect();return[f.clientX-P.left-s.clientLeft,f.clientY-P.top-s.clientTop]}t.touch=function(s,f,m){if(arguments.length<3&&(m=f,f=Fe().changedTouches),f){for(var y=0,x=f.length,w;y<x;++y)if((w=f[y]).identifier===m)return ia(s,w)}},t.behavior.drag=function(){var s=ft(x,"drag","dragstart","dragend"),f=null,m=w(Be,t.mouse,o,"mousemove","mouseup"),y=w(Ii,t.touch,We,"touchmove","touchend");function x(){this.on("mousedown.drag",m).on("touchstart.drag",y)}function w(P,C,k,L,B){return function(){var G=this,V=t.event.target.correspondingElement||t.event.target,ue=G.parentNode,de=s.of(G,arguments),Y=0,J=P(),ie=".drag"+(J==null?"":"-"+J),pe,ve=t.select(k(V)).on(L+ie,Qe).on(B+ie,ut),oe=zc(V),je=C(ue,J);f?(pe=f.apply(G,arguments),pe=[pe.x-je[0],pe.y-je[1]]):pe=[0,0],de({type:"dragstart"});function Qe(){var Ze=C(ue,J),pt,xt;Ze&&(pt=Ze[0]-je[0],xt=Ze[1]-je[1],Y|=pt|xt,je=Ze,de({type:"drag",x:Ze[0]+pe[0],y:Ze[1]+pe[1],dx:pt,dy:xt}))}function ut(){C(ue,J)&&(ve.on(L+ie,null).on(B+ie,null),oe(Y),de({type:"dragend"}))}}}return x.origin=function(P){return arguments.length?(f=P,x):f},t.rebind(x,s,"on")};function Ii(){return t.event.changedTouches[0].identifier}t.touches=function(s,f){return arguments.length<2&&(f=Fe().touches),f?n(f).map(function(m){var y=ia(s,m);return y.identifier=m.identifier,y}):[]};var hr=1e-6,n0=hr*hr,Xa=Math.PI,Ul=2*Xa,i0=Ul-hr,Ca=Xa/2,a0=Xa/180,iu=180/Xa;function Y2(s,f,m){return(f[0]-s[0])*(m[1]-s[1])-(f[1]-s[1])*(m[0]-s[0])}function o0(s){return s>1?Ca:s<-1?-Ca:Math.asin(s)}function X2(s){return((s=Math.exp(s))-1/s)/2}function l0(s){return((s=Math.exp(s))+1/s)/2}function Q2(s){return((s=Math.exp(2*s))-1)/(s+1)}var au=Math.SQRT2,up=2,s0=4;t.interpolateZoom=function(s,f){var m=s[0],y=s[1],x=s[2],w=f[0],P=f[1],C=f[2],k=w-m,L=P-y,B=k*k+L*L,G,V;if(B<n0)V=Math.log(C/x)/au,G=function(pe){return[m+pe*k,y+pe*L,x*Math.exp(au*pe*V)]};else{var ue=Math.sqrt(B),de=(C*C-x*x+s0*B)/(2*x*up*ue),Y=(C*C-x*x-s0*B)/(2*C*up*ue),J=Math.log(Math.sqrt(de*de+1)-de),ie=Math.log(Math.sqrt(Y*Y+1)-Y);V=(ie-J)/au,G=function(pe){var ve=pe*V,oe=l0(J),je=x/(up*ue)*(oe*Q2(au*ve+J)-X2(J));return[m+je*k,y+je*L,x*oe/l0(au*ve+J)]}}return G.duration=V*1e3,G},t.behavior.zoom=function(){var s={x:0,y:0,k:1},f,m,y,x=[960,500],w=ou,P=250,C=0,k="mousedown.zoom",L="mousemove.zoom",B="mouseup.zoom",G,V="touchstart.zoom",ue,de=ft(ve,"zoomstart","zoom","zoomend"),Y,J,ie,pe;cp||(cp="onwheel"in i?(Uc=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},"wheel"):"onmousewheel"in i?(Uc=function(){return t.event.wheelDelta},"mousewheel"):(Uc=function(){return-t.event.detail},"MozMousePixelScroll"));function ve(ct){ct.on(k,Vt).on(cp+".zoom",en).on("dblclick.zoom",Cr).on(V,gr)}ve.event=function(ct){ct.each(function(){var Xt=de.of(this,arguments),Zt=s;no?t.select(this).transition().each("start.zoom",function(){s=this.__chart__||{x:0,y:0,k:1},xt(Xt)}).tween("zoom:zoom",function(){var yr=x[0],Vr=x[1],hn=m?m[0]:yr/2,Pn=m?m[1]:Vr/2,ei=t.interpolateZoom([(hn-s.x)/s.k,(Pn-s.y)/s.k,yr/s.k],[(hn-Zt.x)/Zt.k,(Pn-Zt.y)/Zt.k,yr/Zt.k]);return function(hi){var Gn=ei(hi),Si=yr/Gn[2];this.__chart__=s={x:hn-Gn[0]*Si,y:Pn-Gn[1]*Si,k:Si},Yt(Xt)}}).each("interrupt.zoom",function(){Et(Xt)}).each("end.zoom",function(){Et(Xt)}):(this.__chart__=s,xt(Xt),Yt(Xt),Et(Xt))})},ve.translate=function(ct){return arguments.length?(s={x:+ct[0],y:+ct[1],k:s.k},pt(),ve):[s.x,s.y]},ve.scale=function(ct){return arguments.length?(s={x:s.x,y:s.y,k:null},Qe(+ct),pt(),ve):s.k},ve.scaleExtent=function(ct){return arguments.length?(w=ct==null?ou:[+ct[0],+ct[1]],ve):w},ve.center=function(ct){return arguments.length?(y=ct&&[+ct[0],+ct[1]],ve):y},ve.size=function(ct){return arguments.length?(x=ct&&[+ct[0],+ct[1]],ve):x},ve.duration=function(ct){return arguments.length?(P=+ct,ve):P},ve.x=function(ct){return arguments.length?(J=ct,Y=ct.copy(),s={x:0,y:0,k:1},ve):J},ve.y=function(ct){return arguments.length?(pe=ct,ie=ct.copy(),s={x:0,y:0,k:1},ve):pe};function oe(ct){return[(ct[0]-s.x)/s.k,(ct[1]-s.y)/s.k]}function je(ct){return[ct[0]*s.k+s.x,ct[1]*s.k+s.y]}function Qe(ct){s.k=Math.max(w[0],Math.min(w[1],ct))}function ut(ct,Xt){Xt=je(Xt),s.x+=ct[0]-Xt[0],s.y+=ct[1]-Xt[1]}function Ze(ct,Xt,Zt,yr){ct.__chart__={x:s.x,y:s.y,k:s.k},Qe(Math.pow(2,yr)),ut(m=Xt,Zt),ct=t.select(ct),P>0&&(ct=ct.transition().duration(P)),ct.call(ve.event)}function pt(){J&&J.domain(Y.range().map(function(ct){return(ct-s.x)/s.k}).map(Y.invert)),pe&&pe.domain(ie.range().map(function(ct){return(ct-s.y)/s.k}).map(ie.invert))}function xt(ct){C++||ct({type:"zoomstart"})}function Yt(ct){pt(),ct({type:"zoom",scale:s.k,translate:[s.x,s.y]})}function Et(ct){--C||(ct({type:"zoomend"}),m=null)}function Vt(){var ct=this,Xt=de.of(ct,arguments),Zt=0,yr=t.select(o(ct)).on(L,Pn).on(B,ei),Vr=oe(t.mouse(ct)),hn=zc(ct);$f.call(ct),xt(Xt);function Pn(){Zt=1,ut(t.mouse(ct),Vr),Yt(Xt)}function ei(){yr.on(L,null).on(B,null),hn(Zt),Et(Xt)}}function gr(){var ct=this,Xt=de.of(ct,arguments),Zt={},yr=0,Vr,hn=".zoom-"+t.event.changedTouches[0].identifier,Pn="touchmove"+hn,ei="touchend"+hn,hi=[],Gn=t.select(ct),Si=zc(ct);X(),xt(Xt),Gn.on(k,null).on(V,X);function F(){var ze=t.touches(ct);return Vr=s.k,ze.forEach(function(Te){Te.identifier in Zt&&(Zt[Te.identifier]=oe(Te))}),ze}function X(){var ze=t.event.target;t.select(ze).on(Pn,re).on(ei,Re),hi.push(ze);for(var Te=t.event.changedTouches,Me=0,it=Te.length;Me<it;++Me)Zt[Te[Me].identifier]=null;var at=F(),st=Date.now();if(at.length===1){if(st-ue<500){var mt=at[0];Ze(ct,mt,Zt[mt.identifier],Math.floor(Math.log(s.k)/Math.LN2)+1),Ge()}ue=st}else if(at.length>1){var mt=at[0],Ft=at[1],Tt=mt[0]-Ft[0],dt=mt[1]-Ft[1];yr=Tt*Tt+dt*dt}}function re(){var ze=t.touches(ct),Te,Me,it,at;$f.call(ct);for(var st=0,mt=ze.length;st<mt;++st,at=null)if(it=ze[st],at=Zt[it.identifier]){if(Me)break;Te=it,Me=at}if(at){var Ft=(Ft=it[0]-Te[0])*Ft+(Ft=it[1]-Te[1])*Ft,Tt=yr&&Math.sqrt(Ft/yr);Te=[(Te[0]+it[0])/2,(Te[1]+it[1])/2],Me=[(Me[0]+at[0])/2,(Me[1]+at[1])/2],Qe(Tt*Vr)}ue=null,ut(Te,Me),Yt(Xt)}function Re(){if(t.event.touches.length){for(var ze=t.event.changedTouches,Te=0,Me=ze.length;Te<Me;++Te)delete Zt[ze[Te].identifier];for(var it in Zt)return void F()}t.selectAll(hi).on(hn,null),Gn.on(k,Vt).on(V,gr),Si(),Et(Xt)}}function en(){var ct=de.of(this,arguments);G?clearTimeout(G):($f.call(this),f=oe(m=y||t.mouse(this)),xt(ct)),G=setTimeout(function(){G=null,Et(ct)},50),Ge(),Qe(Math.pow(2,Uc()*.002)*s.k),ut(m,f),Yt(ct)}function Cr(){var ct=t.mouse(this),Xt=Math.log(s.k)/Math.LN2;Ze(this,ct,oe(ct),t.event.shiftKey?Math.ceil(Xt)-1:Math.floor(Xt)+1)}return t.rebind(ve,de,"on")};var ou=[0,1/0],Uc,cp;t.color=$o;function $o(){}$o.prototype.toString=function(){return this.rgb()+""},t.hsl=ji;function ji(s,f,m){return this instanceof ji?(this.h=+s,this.s=+f,void(this.l=+m)):arguments.length<2?s instanceof ji?new ji(s.h,s.s,s.l):Yo(""+s,gp,ji):new ji(s,f,m)}var jc=ji.prototype=new $o;jc.brighter=function(s){return s=Math.pow(.7,arguments.length?s:1),new ji(this.h,this.s,this.l/s)},jc.darker=function(s){return s=Math.pow(.7,arguments.length?s:1),new ji(this.h,this.s,s*this.l)},jc.rgb=function(){return Hc(this.h,this.s,this.l)};function Hc(s,f,m){var y,x;s=isNaN(s)?0:(s%=360)<0?s+360:s,f=isNaN(f)||f<0?0:f>1?1:f,m=m<0?0:m>1?1:m,x=m<=.5?m*(1+f):m+f-m*f,y=2*m-x;function w(C){return C>360?C-=360:C<0&&(C+=360),C<60?y+(x-y)*C/60:C<180?x:C<240?y+(x-y)*(240-C)/60:y}function P(C){return Math.round(w(C)*255)}return new jn(P(s+120),P(s),P(s-120))}t.hcl=aa;function aa(s,f,m){return this instanceof aa?(this.h=+s,this.c=+f,void(this.l=+m)):arguments.length<2?s instanceof aa?new aa(s.h,s.c,s.l):s instanceof Fn?f0(s.l,s.a,s.b):f0((s=Xo((s=t.rgb(s)).r,s.g,s.b)).l,s.a,s.b):new aa(s,f,m)}var lu=aa.prototype=new $o;lu.brighter=function(s){return new aa(this.h,this.c,Math.min(100,this.l+qo*(arguments.length?s:1)))},lu.darker=function(s){return new aa(this.h,this.c,Math.max(0,this.l-qo*(arguments.length?s:1)))},lu.rgb=function(){return su(this.h,this.c,this.l).rgb()};function su(s,f,m){return isNaN(s)&&(s=0),isNaN(f)&&(f=0),new Fn(m,Math.cos(s*=a0)*f,Math.sin(s)*f)}t.lab=Fn;function Fn(s,f,m){return this instanceof Fn?(this.l=+s,this.a=+f,void(this.b=+m)):arguments.length<2?s instanceof Fn?new Fn(s.l,s.a,s.b):s instanceof aa?su(s.h,s.c,s.l):Xo((s=jn(s)).r,s.g,s.b):new Fn(s,f,m)}var qo=18,fp=.95047,dp=1,u0=1.08883,pp=Fn.prototype=new $o;pp.brighter=function(s){return new Fn(Math.min(100,this.l+qo*(arguments.length?s:1)),this.a,this.b)},pp.darker=function(s){return new Fn(Math.max(0,this.l-qo*(arguments.length?s:1)),this.a,this.b)},pp.rgb=function(){return c0(this.l,this.a,this.b)};function c0(s,f,m){var y=(s+16)/116,x=y+f/500,w=y-m/200;return x=hp(x)*fp,y=hp(y)*dp,w=hp(w)*u0,new jn(mp(3.2404542*x-1.5371385*y-.4985314*w),mp(-.969266*x+1.8760108*y+.041556*w),mp(.0556434*x-.2040259*y+1.0572252*w))}function f0(s,f,m){return s>0?new aa(Math.atan2(m,f)*iu,Math.sqrt(f*f+m*m),s):new aa(NaN,NaN,s)}function hp(s){return s>.206893034?s*s*s:(s-4/29)/7.787037}function vp(s){return s>.008856?Math.pow(s,1/3):7.787037*s+4/29}function mp(s){return Math.round(255*(s<=.00304?12.92*s:1.055*Math.pow(s,1/2.4)-.055))}t.rgb=jn;function jn(s,f,m){return this instanceof jn?(this.r=~~s,this.g=~~f,void(this.b=~~m)):arguments.length<2?s instanceof jn?new jn(s.r,s.g,s.b):Yo(""+s,jn,Hc):new jn(s,f,m)}function d0(s){return new jn(s>>16,s>>8&255,s&255)}function Gc(s){return d0(s)+""}var xo=jn.prototype=new $o;xo.brighter=function(s){s=Math.pow(.7,arguments.length?s:1);var f=this.r,m=this.g,y=this.b,x=30;return!f&&!m&&!y?new jn(x,x,x):(f&&f<x&&(f=x),m&&m<x&&(m=x),y&&y<x&&(y=x),new jn(Math.min(255,f/s),Math.min(255,m/s),Math.min(255,y/s)))},xo.darker=function(s){return s=Math.pow(.7,arguments.length?s:1),new jn(s*this.r,s*this.g,s*this.b)},xo.hsl=function(){return gp(this.r,this.g,this.b)},xo.toString=function(){return"#"+jl(this.r)+jl(this.g)+jl(this.b)};function jl(s){return s<16?"0"+Math.max(0,s).toString(16):Math.min(255,s).toString(16)}function Yo(s,f,m){var y=0,x=0,w=0,P,C,k;if(P=/([a-z]+)\((.*)\)/.exec(s=s.toLowerCase()),P)switch(C=P[2].split(","),P[1]){case"hsl":return m(parseFloat(C[0]),parseFloat(C[1])/100,parseFloat(C[2])/100);case"rgb":return f(wo(C[0]),wo(C[1]),wo(C[2]))}return(k=Hl.get(s))?f(k.r,k.g,k.b):(s!=null&&s.charAt(0)==="#"&&!isNaN(k=parseInt(s.slice(1),16))&&(s.length===4?(y=(k&3840)>>4,y=y>>4|y,x=k&240,x=x>>4|x,w=k&15,w=w<<4|w):s.length===7&&(y=(k&16711680)>>16,x=(k&65280)>>8,w=k&255)),f(y,x,w))}function gp(s,f,m){var y=Math.min(s/=255,f/=255,m/=255),x=Math.max(s,f,m),w=x-y,P,C,k=(x+y)/2;return w?(C=k<.5?w/(x+y):w/(2-x-y),s==x?P=(f-m)/w+(f<m?6:0):f==x?P=(m-s)/w+2:P=(s-f)/w+4,P*=60):(P=NaN,C=k>0&&k<1?0:P),new ji(P,C,k)}function Xo(s,f,m){s=Wc(s),f=Wc(f),m=Wc(m);var y=vp((.4124564*s+.3575761*f+.1804375*m)/fp),x=vp((.2126729*s+.7151522*f+.072175*m)/dp),w=vp((.0193339*s+.119192*f+.9503041*m)/u0);return Fn(116*x-16,500*(y-x),200*(x-w))}function Wc(s){return(s/=255)<=.04045?s/12.92:Math.pow((s+.055)/1.055,2.4)}function wo(s){var f=parseFloat(s);return s.charAt(s.length-1)==="%"?Math.round(f*2.55):f}var Hl=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});Hl.forEach(function(s,f){Hl.set(s,d0(f))});function Or(s){return typeof s=="function"?s:function(){return s}}t.functor=Or,t.xhr=yp(We);function yp(s){return function(f,m,y){return arguments.length===2&&typeof m=="function"&&(y=m,m=null),Vc(f,m,s,y)}}function Vc(s,f,m,y){var x={},w=t.dispatch("beforesend","progress","load","error"),P={},C=new XMLHttpRequest,k=null;self.XDomainRequest&&!("withCredentials"in C)&&/^(http(s)?:)?\/\//.test(s)&&(C=new XDomainRequest),"onload"in C?C.onload=C.onerror=L:C.onreadystatechange=function(){C.readyState>3&&L()};function L(){var B=C.status,G;if(!B&&Z2(C)||B>=200&&B<300||B===304){try{G=m.call(x,C)}catch(V){w.error.call(x,V);return}w.load.call(x,G)}else w.error.call(x,C)}return C.onprogress=function(B){var G=t.event;t.event=B;try{w.progress.call(x,C)}finally{t.event=G}},x.header=function(B,G){return B=(B+"").toLowerCase(),arguments.length<2?P[B]:(G==null?delete P[B]:P[B]=G+"",x)},x.mimeType=function(B){return arguments.length?(f=B==null?null:B+"",x):f},x.responseType=function(B){return arguments.length?(k=B,x):k},x.response=function(B){return m=B,x},["get","post"].forEach(function(B){x[B]=function(){return x.send.apply(x,[B].concat(n(arguments)))}}),x.send=function(B,G,V){if(arguments.length===2&&typeof G=="function"&&(V=G,G=null),C.open(B,s,!0),f!=null&&!("accept"in P)&&(P.accept=f+",*/*"),C.setRequestHeader)for(var ue in P)C.setRequestHeader(ue,P[ue]);return f!=null&&C.overrideMimeType&&C.overrideMimeType(f),k!=null&&(C.responseType=k),V!=null&&x.on("error",V).on("load",function(de){V(null,de)}),w.beforesend.call(x,C),C.send(G??null),x},x.abort=function(){return C.abort(),x},t.rebind(x,w,"on"),y==null?x:x.get(p0(y))}function p0(s){return s.length===1?function(f,m){s(f==null?m:null)}:s}function Z2(s){var f=s.responseType;return f&&f!=="text"?s.response:s.responseText}t.dsv=function(s,f){var m=new RegExp('["'+s+`
853
+ ]`),y=s.charCodeAt(0);function x(L,B,G){arguments.length<3&&(G=B,B=null);var V=Vc(L,f,B==null?w:P(B),G);return V.row=function(ue){return arguments.length?V.response((B=ue)==null?w:P(ue)):B},V}function w(L){return x.parse(L.responseText)}function P(L){return function(B){return x.parse(B.responseText,L)}}x.parse=function(L,B){var G;return x.parseRows(L,function(V,ue){if(G)return G(V,ue-1);var de=function(Y){for(var J={},ie=V.length,pe=0;pe<ie;++pe)J[V[pe]]=Y[pe];return J};G=B?function(Y,J){return B(de(Y),J)}:de})},x.parseRows=function(L,B){var G={},V={},ue=[],de=L.length,Y=0,J=0,ie,pe;function ve(){if(Y>=de)return V;if(pe)return pe=!1,G;var je=Y;if(L.charCodeAt(je)===34){for(var Qe=je;Qe++<de;)if(L.charCodeAt(Qe)===34){if(L.charCodeAt(Qe+1)!==34)break;++Qe}Y=Qe+2;var ut=L.charCodeAt(Qe+1);return ut===13?(pe=!0,L.charCodeAt(Qe+2)===10&&++Y):ut===10&&(pe=!0),L.slice(je+1,Qe).replace(/""/g,'"')}for(;Y<de;){var ut=L.charCodeAt(Y++),Ze=1;if(ut===10)pe=!0;else if(ut===13)pe=!0,L.charCodeAt(Y)===10&&(++Y,++Ze);else if(ut!==y)continue;return L.slice(je,Y-Ze)}return L.slice(je)}for(;(ie=ve())!==V;){for(var oe=[];ie!==G&&ie!==V;)oe.push(ie),ie=ve();B&&(oe=B(oe,J++))==null||ue.push(oe)}return ue},x.format=function(L){if(Array.isArray(L[0]))return x.formatRows(L);var B=new De,G=[];return L.forEach(function(V){for(var ue in V)B.has(ue)||G.push(B.add(ue))}),[G.map(k).join(s)].concat(L.map(function(V){return G.map(function(ue){return k(V[ue])}).join(s)})).join(`
854
+ `)},x.formatRows=function(L){return L.map(C).join(`
855
+ `)};function C(L){return L.map(k).join(s)}function k(L){return m.test(L)?'"'+L.replace(/\"/g,'""')+'"':L}return x},t.csv=t.dsv(",","text/csv"),t.tsv=t.dsv(" ","text/tab-separated-values");var Kc,uu,oa,qc,la=this[$e(this,"requestAnimationFrame")]||function(s){setTimeout(s,17)};t.timer=function(){Gl.apply(this,arguments)};function Gl(s,f,m){var y=arguments.length;y<2&&(f=0),y<3&&(m=Date.now());var x=m+f,w={c:s,t:x,n:null};return uu?uu.n=w:Kc=w,uu=w,oa||(qc=clearTimeout(qc),oa=1,la(Wl)),w}function Wl(){var s=_o(),f=Yc()-s;f>24?(isFinite(f)&&(clearTimeout(qc),qc=setTimeout(Wl,f)),oa=0):(oa=1,la(Wl))}t.timer.flush=function(){_o(),Yc()};function _o(){for(var s=Date.now(),f=Kc;f;)s>=f.t&&f.c(s-f.t)&&(f.c=null),f=f.n;return s}function Yc(){for(var s,f=Kc,m=1/0;f;)f.c?(f.t<m&&(m=f.t),f=(s=f).n):f=s?s.n=f.n:Kc=f.n;return uu=s,m}t.round=function(s,f){return f?Math.round(s*(f=Math.pow(10,f)))/f:Math.round(s)},t.geom={};function Qa(s){return s[0]}function Za(s){return s[1]}t.geom.hull=function(s){var f=Qa,m=Za;if(arguments.length)return y(s);function y(x){if(x.length<3)return[];var w=Or(f),P=Or(m),C,k=x.length,L=[],B=[];for(C=0;C<k;C++)L.push([+w.call(this,x[C],C),+P.call(this,x[C],C),C]);for(L.sort(h0),C=0;C<k;C++)B.push([L[C][0],-L[C][1]]);var G=cu(L),V=cu(B),ue=V[0]===G[0],de=V[V.length-1]===G[G.length-1],Y=[];for(C=G.length-1;C>=0;--C)Y.push(x[L[G[C]][2]]);for(C=+ue;C<V.length-de;++C)Y.push(x[L[V[C]][2]]);return Y}return y.x=function(x){return arguments.length?(f=x,y):f},y.y=function(x){return arguments.length?(m=x,y):m},y};function cu(s){for(var f=s.length,m=[0,1],y=2,x=2;x<f;x++){for(;y>1&&Y2(s[m[y-2]],s[m[y-1]],s[x])<=0;)--y;m[y++]=x}return m.slice(0,y)}function h0(s,f){return s[0]-f[0]||s[1]-f[1]}t.geom.polygon=function(s){return Gt(s,Vl),s};var Vl=t.geom.polygon.prototype=[];Vl.area=function(){for(var s=-1,f=this.length,m,y=this[f-1],x=0;++s<f;)m=y,y=this[s],x+=m[1]*y[0]-m[0]*y[1];return x*.5},Vl.centroid=function(s){var f=-1,m=this.length,y=0,x=0,w,P=this[m-1],C;for(arguments.length||(s=-1/(6*this.area()));++f<m;)w=P,P=this[f],C=w[0]*P[1]-P[0]*w[1],y+=(w[0]+P[0])*C,x+=(w[1]+P[1])*C;return[y*s,x*s]},Vl.clip=function(s){for(var f,m=v0(s),y=-1,x=this.length-v0(this),w,P,C=this[x-1],k,L,B;++y<x;){for(f=s.slice(),s.length=0,k=this[y],L=f[(P=f.length-m)-1],w=-1;++w<P;)B=f[w],Xc(B,C,k)?(Xc(L,C,k)||s.push(bp(L,B,C,k)),s.push(B)):Xc(L,C,k)&&s.push(bp(L,B,C,k)),L=B;m&&s.push(s[0]),C=k}return s};function Xc(s,f,m){return(m[0]-f[0])*(s[1]-f[1])<(m[1]-f[1])*(s[0]-f[0])}function bp(s,f,m,y){var x=s[0],w=m[0],P=f[0]-x,C=y[0]-w,k=s[1],L=m[1],B=f[1]-k,G=y[1]-L,V=(C*(k-L)-G*(x-w))/(G*P-C*B);return[x+V*P,k+V*B]}function v0(s){var f=s[0],m=s[s.length-1];return!(f[0]-m[0]||f[1]-m[1])}var Kl,Qo,So,fu=[],du,Zo,Jo=[];function $p(){Jc(this),this.edge=this.site=this.circle=null}function Qc(s){var f=fu.pop()||new $p;return f.site=s,f}function pu(s){sa(s),So.remove(s),fu.push(s),Jc(s)}function xp(s){var f=s.circle,m=f.x,y=f.cy,x={x:m,y},w=s.P,P=s.N,C=[s];pu(s);for(var k=w;k.circle&&_(m-k.circle.x)<hr&&_(y-k.circle.cy)<hr;)w=k.P,C.unshift(k),pu(k),k=w;C.unshift(k),sa(k);for(var L=P;L.circle&&_(m-L.circle.x)<hr&&_(y-L.circle.cy)<hr;)P=L.N,C.push(L),pu(L),L=P;C.push(L),sa(L);var B=C.length,G;for(G=1;G<B;++G)L=C[G],k=C[G-1],ql(L.edge,k.site,L.site,x);k=C[0],L=C[B-1],L.edge=vu(k.site,L.site,null,x),el(k),el(L)}function m0(s){for(var f=s.x,m=s.y,y,x,w,P,C=So._;C;)if(w=wp(C,m)-f,w>hr)C=C.L;else if(P=f-g0(C,m),P>hr){if(!C.R){y=C;break}C=C.R}else{w>-hr?(y=C.P,x=C):P>-hr?(y=C,x=C.N):y=x=C;break}var k=Qc(s);if(So.insert(y,k),!(!y&&!x)){if(y===x){sa(y),x=Qc(y.site),So.insert(k,x),k.edge=x.edge=vu(y.site,k.site),el(y),el(x);return}if(!x){k.edge=vu(y.site,k.site);return}sa(y),sa(x);var L=y.site,B=L.x,G=L.y,V=s.x-B,ue=s.y-G,de=x.site,Y=de.x-B,J=de.y-G,ie=2*(V*J-ue*Y),pe=V*V+ue*ue,ve=Y*Y+J*J,oe={x:(J*pe-ue*ve)/ie+B,y:(V*ve-Y*pe)/ie+G};ql(x.edge,L,de,oe),k.edge=vu(L,s,null,oe),x.edge=vu(s,de,null,oe),el(y),el(x)}}function wp(s,f){var m=s.site,y=m.x,x=m.y,w=x-f;if(!w)return y;var P=s.P;if(!P)return-1/0;m=P.site;var C=m.x,k=m.y,L=k-f;if(!L)return C;var B=C-y,G=1/w-1/L,V=B/L;return G?(-V+Math.sqrt(V*V-2*G*(B*B/(-2*L)-k+L/2+x-w/2)))/G+y:(y+C)/2}function g0(s,f){var m=s.N;if(m)return wp(m,f);var y=s.site;return y.y===f?y.x:1/0}function _p(s){this.site=s,this.edges=[]}_p.prototype.prepare=function(){for(var s=this.edges,f=s.length,m;f--;)m=s[f].edge,(!m.b||!m.a)&&s.splice(f,1);return s.sort(Sp),s.length};function y0(s){for(var f=s[0][0],m=s[1][0],y=s[0][1],x=s[1][1],w,P,C,k,L=Qo,B=L.length,G,V,ue,de,Y,J;B--;)if(G=L[B],!(!G||!G.prepare()))for(ue=G.edges,de=ue.length,V=0;V<de;)J=ue[V].end(),C=J.x,k=J.y,Y=ue[++V%de].start(),w=Y.x,P=Y.y,(_(C-w)>hr||_(k-P)>hr)&&(ue.splice(V,0,new Zc(J2(G.site,J,_(C-f)<hr&&x-k>hr?{x:f,y:_(w-f)<hr?P:x}:_(k-x)<hr&&m-C>hr?{x:_(P-x)<hr?w:m,y:x}:_(C-m)<hr&&k-y>hr?{x:m,y:_(w-m)<hr?P:y}:_(k-y)<hr&&C-f>hr?{x:_(P-y)<hr?w:f,y}:null),G.site,null)),++de)}function Sp(s,f){return f.angle-s.angle}function b0(){Jc(this),this.x=this.y=this.arc=this.site=this.cy=null}function el(s){var f=s.P,m=s.N;if(!(!f||!m)){var y=f.site,x=s.site,w=m.site;if(y!==w){var P=x.x,C=x.y,k=y.x-P,L=y.y-C,B=w.x-P,J=w.y-C,G=2*(k*J-L*B);if(!(G>=-n0)){var V=k*k+L*L,ue=B*B+J*J,de=(J*V-L*ue)/G,Y=(k*ue-B*V)/G,J=Y+C,ie=Jo.pop()||new b0;ie.arc=s,ie.site=x,ie.x=de+P,ie.y=J+Math.sqrt(de*de+Y*Y),ie.cy=J,s.circle=ie;for(var pe=null,ve=Zo._;ve;)if(ie.y<ve.y||ie.y===ve.y&&ie.x<=ve.x)if(ve.L)ve=ve.L;else{pe=ve.P;break}else if(ve.R)ve=ve.R;else{pe=ve;break}Zo.insert(pe,ie),pe||(du=ie)}}}}function sa(s){var f=s.circle;f&&(f.P||(du=f.N),Zo.remove(f),Jo.push(f),Jc(f),s.circle=null)}function Ep(s,f,m,y){return function(x){var w=x.a,P=x.b,C=w.x,k=w.y,L=P.x,B=P.y,G=0,V=1,ue=L-C,de=B-k,Y;if(Y=s-C,!(!ue&&Y>0)){if(Y/=ue,ue<0){if(Y<G)return;Y<V&&(V=Y)}else if(ue>0){if(Y>V)return;Y>G&&(G=Y)}if(Y=m-C,!(!ue&&Y<0)){if(Y/=ue,ue<0){if(Y>V)return;Y>G&&(G=Y)}else if(ue>0){if(Y<G)return;Y<V&&(V=Y)}if(Y=f-k,!(!de&&Y>0)){if(Y/=de,de<0){if(Y<G)return;Y<V&&(V=Y)}else if(de>0){if(Y>V)return;Y>G&&(G=Y)}if(Y=y-k,!(!de&&Y<0)){if(Y/=de,de<0){if(Y>V)return;Y>G&&(G=Y)}else if(de>0){if(Y<G)return;Y<V&&(V=Y)}return G>0&&(x.a={x:C+G*ue,y:k+G*de}),V<1&&(x.b={x:C+V*ue,y:k+V*de}),x}}}}}}function Ap(s){for(var f=Kl,m=Ep(s[0][0],s[0][1],s[1][0],s[1][1]),y=f.length,x;y--;)x=f[y],(!hu(x,s)||!m(x)||_(x.a.x-x.b.x)<hr&&_(x.a.y-x.b.y)<hr)&&(x.a=x.b=null,f.splice(y,1))}function hu(s,f){var m=s.b;if(m)return!0;var y=s.a,x=f[0][0],w=f[1][0],P=f[0][1],C=f[1][1],k=s.l,L=s.r,B=k.x,G=k.y,V=L.x,ue=L.y,de=(B+V)/2,Y=(G+ue)/2,J,ie;if(ue===G){if(de<x||de>=w)return;if(B>V){if(!y)y={x:de,y:P};else if(y.y>=C)return;m={x:de,y:C}}else{if(!y)y={x:de,y:C};else if(y.y<P)return;m={x:de,y:P}}}else if(J=(B-V)/(ue-G),ie=Y-J*de,J<-1||J>1)if(B>V){if(!y)y={x:(P-ie)/J,y:P};else if(y.y>=C)return;m={x:(C-ie)/J,y:C}}else{if(!y)y={x:(C-ie)/J,y:C};else if(y.y<P)return;m={x:(P-ie)/J,y:P}}else if(G<ue){if(!y)y={x,y:J*x+ie};else if(y.x>=w)return;m={x:w,y:J*w+ie}}else{if(!y)y={x:w,y:J*w+ie};else if(y.x<x)return;m={x,y:J*x+ie}}return s.a=y,s.b=m,!0}function $0(s,f){this.l=s,this.r=f,this.a=this.b=null}function vu(s,f,m,y){var x=new $0(s,f);return Kl.push(x),m&&ql(x,s,f,m),y&&ql(x,f,s,y),Qo[s.i].edges.push(new Zc(x,s,f)),Qo[f.i].edges.push(new Zc(x,f,s)),x}function J2(s,f,m){var y=new $0(s,null);return y.a=f,y.b=m,Kl.push(y),y}function ql(s,f,m,y){!s.a&&!s.b?(s.a=y,s.l=f,s.r=m):s.l===m?s.b=y:s.a=y}function Zc(s,f,m){var y=s.a,x=s.b;this.edge=s,this.site=f,this.angle=m?Math.atan2(m.y-f.y,m.x-f.x):s.l===f?Math.atan2(x.x-y.x,y.y-x.y):Math.atan2(y.x-x.x,x.y-y.y)}Zc.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 Cp(){this._=null}function Jc(s){s.U=s.C=s.L=s.R=s.P=s.N=null}Cp.prototype={insert:function(s,f){var m,y,x;if(s){if(f.P=s,f.N=s.N,s.N&&(s.N.P=f),s.N=f,s.R){for(s=s.R;s.L;)s=s.L;s.L=f}else s.R=f;m=s}else this._?(s=ef(this._),f.P=null,f.N=s,s.P=s.L=f,m=s):(f.P=f.N=null,this._=f,m=null);for(f.L=f.R=null,f.U=m,f.C=!0,s=f;m&&m.C;)y=m.U,m===y.L?(x=y.R,x&&x.C?(m.C=x.C=!1,y.C=!0,s=y):(s===m.R&&(tl(this,m),s=m,m=s.U),m.C=!1,y.C=!0,mu(this,y))):(x=y.L,x&&x.C?(m.C=x.C=!1,y.C=!0,s=y):(s===m.L&&(mu(this,m),s=m,m=s.U),m.C=!1,y.C=!0,tl(this,y))),m=s.U;this._.C=!1},remove:function(s){s.N&&(s.N.P=s.P),s.P&&(s.P.N=s.N),s.N=s.P=null;var f=s.U,m,y=s.L,x=s.R,w,P;if(y?x?w=ef(x):w=y:w=x,f?f.L===s?f.L=w:f.R=w:this._=w,y&&x?(P=w.C,w.C=s.C,w.L=y,y.U=w,w!==x?(f=w.U,w.U=s.U,s=w.R,f.L=s,w.R=x,x.U=w):(w.U=f,f=w,s=w.R)):(P=s.C,s=w),s&&(s.U=f),!P){if(s&&s.C){s.C=!1;return}do{if(s===this._)break;if(s===f.L){if(m=f.R,m.C&&(m.C=!1,f.C=!0,tl(this,f),m=f.R),m.L&&m.L.C||m.R&&m.R.C){(!m.R||!m.R.C)&&(m.L.C=!1,m.C=!0,mu(this,m),m=f.R),m.C=f.C,f.C=m.R.C=!1,tl(this,f),s=this._;break}}else if(m=f.L,m.C&&(m.C=!1,f.C=!0,mu(this,f),m=f.L),m.L&&m.L.C||m.R&&m.R.C){(!m.L||!m.L.C)&&(m.R.C=!1,m.C=!0,tl(this,m),m=f.L),m.C=f.C,f.C=m.L.C=!1,mu(this,f),s=this._;break}m.C=!0,s=f,f=f.U}while(!s.C);s&&(s.C=!1)}}};function tl(s,f){var m=f,y=f.R,x=m.U;x?x.L===m?x.L=y:x.R=y:s._=y,y.U=x,m.U=y,m.R=y.L,m.R&&(m.R.U=m),y.L=m}function mu(s,f){var m=f,y=f.L,x=m.U;x?x.L===m?x.L=y:x.R=y:s._=y,y.U=x,m.U=y,m.L=y.R,m.L&&(m.L.U=m),y.R=m}function ef(s){for(;s.L;)s=s.L;return s}function tf(s,f){var m=s.sort(x0).pop(),y,x,w;for(Kl=[],Qo=new Array(s.length),So=new Cp,Zo=new Cp;;)if(w=du,m&&(!w||m.y<w.y||m.y===w.y&&m.x<w.x))(m.x!==y||m.y!==x)&&(Qo[m.i]=new _p(m),m0(m),y=m.x,x=m.y),m=s.pop();else if(w)xp(w.arc);else break;f&&(Ap(f),y0(f));var P={cells:Qo,edges:Kl};return So=Zo=Kl=Qo=null,P}function x0(s,f){return f.y-s.y||f.x-s.x}t.geom.voronoi=function(s){var f=Qa,m=Za,y=f,x=m,w=Yl;if(s)return P(s);function P(k){var L=new Array(k.length),B=w[0][0],G=w[0][1],V=w[1][0],ue=w[1][1];return tf(C(k),w).cells.forEach(function(de,Y){var J=de.edges,ie=de.site,pe=L[Y]=J.length?J.map(function(ve){var oe=ve.start();return[oe.x,oe.y]}):ie.x>=B&&ie.x<=V&&ie.y>=G&&ie.y<=ue?[[B,ue],[V,ue],[V,G],[B,G]]:[];pe.point=k[Y]}),L}function C(k){return k.map(function(L,B){return{x:Math.round(y(L,B)/hr)*hr,y:Math.round(x(L,B)/hr)*hr,i:B}})}return P.links=function(k){return tf(C(k)).edges.filter(function(L){return L.l&&L.r}).map(function(L){return{source:k[L.l.i],target:k[L.r.i]}})},P.triangles=function(k){var L=[];return tf(C(k)).cells.forEach(function(B,G){for(var V=B.site,ue=B.edges.sort(Sp),de=-1,Y=ue.length,J,ie=ue[Y-1].edge,pe=ie.l===V?ie.r:ie.l;++de<Y;)J=pe,ie=ue[de].edge,pe=ie.l===V?ie.r:ie.l,G<J.i&&G<pe.i&&e$(V,J,pe)<0&&L.push([k[G],k[J.i],k[pe.i]])}),L},P.x=function(k){return arguments.length?(y=Or(f=k),P):f},P.y=function(k){return arguments.length?(x=Or(m=k),P):m},P.clipExtent=function(k){return arguments.length?(w=k??Yl,P):w===Yl?null:w},P.size=function(k){return arguments.length?P.clipExtent(k&&[[0,0],k]):w===Yl?null:w&&w[1]},P};var Yl=[[-1e6,-1e6],[1e6,1e6]];function e$(s,f,m){return(s.x-m.x)*(f.y-s.y)-(s.x-f.x)*(m.y-s.y)}t.geom.delaunay=function(s){return t.geom.voronoi().triangles(s)},t.geom.quadtree=function(s,f,m,y,x){var w=Qa,P=Za,C;if(C=arguments.length)return w=rf,P=t$,C===3&&(x=m,y=f,m=f=0),k(s);function k(L){var B,G=Or(w),V=Or(P),ue,de,Y,J,ie,pe,ve,oe;if(f!=null)ie=f,pe=m,ve=y,oe=x;else if(ve=oe=-(ie=pe=1/0),ue=[],de=[],J=L.length,C)for(Y=0;Y<J;++Y)B=L[Y],B.x<ie&&(ie=B.x),B.y<pe&&(pe=B.y),B.x>ve&&(ve=B.x),B.y>oe&&(oe=B.y),ue.push(B.x),de.push(B.y);else for(Y=0;Y<J;++Y){var je=+G(B=L[Y],Y),Qe=+V(B,Y);je<ie&&(ie=je),Qe<pe&&(pe=Qe),je>ve&&(ve=je),Qe>oe&&(oe=Qe),ue.push(je),de.push(Qe)}var ut=ve-ie,Ze=oe-pe;ut>Ze?oe=pe+ut:ve=ie+Ze;function pt(Et,Vt,gr,en,Cr,ct,Xt,Zt){if(!(isNaN(gr)||isNaN(en)))if(Et.leaf){var yr=Et.x,Vr=Et.y;if(yr!=null)if(_(yr-gr)+_(Vr-en)<.01)xt(Et,Vt,gr,en,Cr,ct,Xt,Zt);else{var hn=Et.point;Et.x=Et.y=Et.point=null,xt(Et,hn,yr,Vr,Cr,ct,Xt,Zt),xt(Et,Vt,gr,en,Cr,ct,Xt,Zt)}else Et.x=gr,Et.y=en,Et.point=Vt}else xt(Et,Vt,gr,en,Cr,ct,Xt,Zt)}function xt(Et,Vt,gr,en,Cr,ct,Xt,Zt){var yr=(Cr+Xt)*.5,Vr=(ct+Zt)*.5,hn=gr>=yr,Pn=en>=Vr,ei=Pn<<1|hn;Et.leaf=!1,Et=Et.nodes[ei]||(Et.nodes[ei]=w0()),hn?Cr=yr:Xt=yr,Pn?ct=Vr:Zt=Vr,pt(Et,Vt,gr,en,Cr,ct,Xt,Zt)}var Yt=w0();if(Yt.add=function(Et){pt(Yt,Et,+G(Et,++Y),+V(Et,Y),ie,pe,ve,oe)},Yt.visit=function(Et){gu(Et,Yt,ie,pe,ve,oe)},Yt.find=function(Et){return r$(Yt,Et[0],Et[1],ie,pe,ve,oe)},Y=-1,f==null){for(;++Y<J;)pt(Yt,L[Y],ue[Y],de[Y],ie,pe,ve,oe);--Y}else L.forEach(Yt.add);return ue=de=L=B=null,Yt}return k.x=function(L){return arguments.length?(w=L,k):w},k.y=function(L){return arguments.length?(P=L,k):P},k.extent=function(L){return arguments.length?(L==null?f=m=y=x=null:(f=+L[0][0],m=+L[0][1],y=+L[1][0],x=+L[1][1]),k):f==null?null:[[f,m],[y,x]]},k.size=function(L){return arguments.length?(L==null?f=m=y=x=null:(f=m=0,y=+L[0],x=+L[1]),k):f==null?null:[y-f,x-m]},k};function rf(s){return s.x}function t$(s){return s.y}function w0(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function gu(s,f,m,y,x,w){if(!s(f,m,y,x,w)){var P=(m+x)*.5,C=(y+w)*.5,k=f.nodes;k[0]&&gu(s,k[0],m,y,P,C),k[1]&&gu(s,k[1],P,y,x,C),k[2]&&gu(s,k[2],m,C,P,w),k[3]&&gu(s,k[3],P,C,x,w)}}function r$(s,f,m,y,x,w,P){var C=1/0,k;return function L(B,G,V,ue,de){if(!(G>w||V>P||ue<y||de<x)){if(Y=B.point){var Y,J=f-B.x,ie=m-B.y,pe=J*J+ie*ie;if(pe<C){var ve=Math.sqrt(C=pe);y=f-ve,x=m-ve,w=f+ve,P=m+ve,k=Y}}for(var oe=B.nodes,je=(G+ue)*.5,Qe=(V+de)*.5,ut=f>=je,Ze=m>=Qe,pt=Ze<<1|ut,xt=pt+4;pt<xt;++pt)if(B=oe[pt&3])switch(pt&3){case 0:L(B,G,V,je,Qe);break;case 1:L(B,je,V,ue,Qe);break;case 2:L(B,G,Qe,je,de);break;case 3:L(B,je,Qe,ue,de);break}}}(s,y,x,w,P),k}t.interpolateRgb=Tp;function Tp(s,f){s=t.rgb(s),f=t.rgb(f);var m=s.r,y=s.g,x=s.b,w=f.r-m,P=f.g-y,C=f.b-x;return function(k){return"#"+jl(Math.round(m+w*k))+jl(Math.round(y+P*k))+jl(Math.round(x+C*k))}}t.interpolateObject=_0;function _0(s,f){var m={},y={},x;for(x in s)x in f?m[x]=Ta(s[x],f[x]):y[x]=s[x];for(x in f)x in s||(y[x]=f[x]);return function(w){for(x in m)y[x]=m[x](w);return y}}t.interpolateNumber=Ja;function Ja(s,f){return s=+s,f=+f,function(m){return s*(1-m)+f*m}}t.interpolateString=Pp;function Pp(s,f){var m=rl.lastIndex=Mp.lastIndex=0,y,x,w,P=-1,C=[],k=[];for(s=s+"",f=f+"";(y=rl.exec(s))&&(x=Mp.exec(f));)(w=x.index)>m&&(w=f.slice(m,w),C[P]?C[P]+=w:C[++P]=w),(y=y[0])===(x=x[0])?C[P]?C[P]+=x:C[++P]=x:(C[++P]=null,k.push({i:P,x:Ja(y,x)})),m=Mp.lastIndex;return m<f.length&&(w=f.slice(m),C[P]?C[P]+=w:C[++P]=w),C.length<2?k[0]?(f=k[0].x,function(L){return f(L)+""}):function(){return f}:(f=k.length,function(L){for(var B=0,G;B<f;++B)C[(G=k[B]).i]=G.x(L);return C.join("")})}var rl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Mp=new RegExp(rl.source,"g");t.interpolate=Ta;function Ta(s,f){for(var m=t.interpolators.length,y;--m>=0&&!(y=t.interpolators[m](s,f)););return y}t.interpolators=[function(s,f){var m=typeof f;return(m==="string"?Hl.has(f.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(f)?Tp:Pp:f instanceof $o?Tp:Array.isArray(f)?_i:m==="object"&&isNaN(f)?_0:Ja)(s,f)}],t.interpolateArray=_i;function _i(s,f){var m=[],y=[],x=s.length,w=f.length,P=Math.min(s.length,f.length),C;for(C=0;C<P;++C)m.push(Ta(s[C],f[C]));for(;C<x;++C)y[C]=s[C];for(;C<w;++C)y[C]=f[C];return function(k){for(C=0;C<P;++C)y[C]=m[C](k);return y}}var nl=function(){return We},S0=t.map({linear:nl,poly:Nn,quad:function(){return C0},cubic:function(){return n$},sin:function(){return T0},exp:function(){return P0},circle:function(){return il},elastic:M0,back:O0,bounce:function(){return i$}}),E0=t.map({in:We,out:Op,"in-out":Rp,"out-in":function(s){return Rp(Op(s))}});t.ease=function(s){var f=s.indexOf("-"),m=f>=0?s.slice(0,f):s,y=f>=0?s.slice(f+1):"in";return m=S0.get(m)||nl,y=E0.get(y)||We,A0(y(m.apply(null,r.call(arguments,1))))};function A0(s){return function(f){return f<=0?0:f>=1?1:s(f)}}function Op(s){return function(f){return 1-s(1-f)}}function Rp(s){return function(f){return .5*(f<.5?s(2*f):2-s(2-2*f))}}function C0(s){return s*s}function n$(s){return s*s*s}function Xl(s){if(s<=0)return 0;if(s>=1)return 1;var f=s*s,m=f*s;return 4*(s<.5?m:3*(s-f)+m-.75)}function Nn(s){return function(f){return Math.pow(f,s)}}function T0(s){return 1-Math.cos(s*Ca)}function P0(s){return Math.pow(2,10*(s-1))}function il(s){return 1-Math.sqrt(1-s*s)}function M0(s,f){var m;return arguments.length<2&&(f=.45),arguments.length?m=f/Ul*Math.asin(1/s):(s=1,m=f/4),function(y){return 1+s*Math.pow(2,-10*y)*Math.sin((y-m)*Ul/f)}}function O0(s){return s||(s=1.70158),function(f){return f*f*((s+1)*f-s)}}function i$(s){return s<1/2.75?7.5625*s*s:s<2/2.75?7.5625*(s-=1.5/2.75)*s+.75:s<2.5/2.75?7.5625*(s-=2.25/2.75)*s+.9375:7.5625*(s-=2.625/2.75)*s+.984375}t.interpolateHcl=a$;function a$(s,f){s=t.hcl(s),f=t.hcl(f);var m=s.h,y=s.c,x=s.l,w=f.h-m,P=f.c-y,C=f.l-x;return isNaN(P)&&(P=0,y=isNaN(y)?f.c:y),isNaN(w)?(w=0,m=isNaN(m)?f.h:m):w>180?w-=360:w<-180&&(w+=360),function(k){return su(m+w*k,y+P*k,x+C*k)+""}}t.interpolateHsl=o$;function o$(s,f){s=t.hsl(s),f=t.hsl(f);var m=s.h,y=s.s,x=s.l,w=f.h-m,P=f.s-y,C=f.l-x;return isNaN(P)&&(P=0,y=isNaN(y)?f.s:y),isNaN(w)?(w=0,m=isNaN(m)?f.h:m):w>180?w-=360:w<-180&&(w+=360),function(k){return Hc(m+w*k,y+P*k,x+C*k)+""}}t.interpolateLab=l$;function l$(s,f){s=t.lab(s),f=t.lab(f);var m=s.l,y=s.a,x=s.b,w=f.l-m,P=f.a-y,C=f.b-x;return function(k){return c0(m+w*k,y+P*k,x+C*k)+""}}t.interpolateRound=nf;function nf(s,f){return f-=s,function(m){return Math.round(s+f*m)}}t.transform=function(s){var f=i.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(m){if(m!=null){f.setAttribute("transform",m);var y=f.transform.baseVal.consolidate()}return new Ip(y?y.matrix:s$)})(s)};function Ip(s){var f=[s.a,s.b],m=[s.c,s.d],y=kp(f),x=R0(f,m),w=kp(I0(m,f,-x))||0;f[0]*m[1]<m[0]*f[1]&&(f[0]*=-1,f[1]*=-1,y*=-1,x*=-1),this.rotate=(y?Math.atan2(f[1],f[0]):Math.atan2(-m[0],m[1]))*iu,this.translate=[s.e,s.f],this.scale=[y,w],this.skew=w?Math.atan2(x,w)*iu:0}Ip.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};function R0(s,f){return s[0]*f[0]+s[1]*f[1]}function kp(s){var f=Math.sqrt(R0(s,s));return f&&(s[0]/=f,s[1]/=f),f}function I0(s,f,m){return s[0]+=m*f[0],s[1]+=m*f[1],s}var s$={a:1,b:0,c:0,d:1,e:0,f:0};t.interpolateTransform=Fp;function eo(s){return s.length?s.pop()+",":""}function u$(s,f,m,y){if(s[0]!==f[0]||s[1]!==f[1]){var x=m.push("translate(",null,",",null,")");y.push({i:x-4,x:Ja(s[0],f[0])},{i:x-2,x:Ja(s[1],f[1])})}else(f[0]||f[1])&&m.push("translate("+f+")")}function Eo(s,f,m,y){s!==f?(s-f>180?f+=360:f-s>180&&(s+=360),y.push({i:m.push(eo(m)+"rotate(",null,")")-2,x:Ja(s,f)})):f&&m.push(eo(m)+"rotate("+f+")")}function af(s,f,m,y){s!==f?y.push({i:m.push(eo(m)+"skewX(",null,")")-2,x:Ja(s,f)}):f&&m.push(eo(m)+"skewX("+f+")")}function k0(s,f,m,y){if(s[0]!==f[0]||s[1]!==f[1]){var x=m.push(eo(m)+"scale(",null,",",null,")");y.push({i:x-4,x:Ja(s[0],f[0])},{i:x-2,x:Ja(s[1],f[1])})}else(f[0]!==1||f[1]!==1)&&m.push(eo(m)+"scale("+f+")")}function Fp(s,f){var m=[],y=[];return s=t.transform(s),f=t.transform(f),u$(s.translate,f.translate,m,y),Eo(s.rotate,f.rotate,m,y),af(s.skew,f.skew,m,y),k0(s.scale,f.scale,m,y),s=f=null,function(x){for(var w=-1,P=y.length,C;++w<P;)m[(C=y[w]).i]=C.x(x);return m.join("")}}function F0(s,f){return f=(f-=s=+s)||1/f,function(m){return(m-s)/f}}function N0(s,f){return f=(f-=s=+s)||1/f,function(m){return Math.max(0,Math.min(1,(m-s)/f))}}t.layout={},t.layout.bundle=function(){return function(s){for(var f=[],m=-1,y=s.length;++m<y;)f.push(L0(s[m]));return f}};function L0(s){for(var f=s.source,m=s.target,y=D0(f,m),x=[f];f!==y;)f=f.parent,x.push(f);for(var w=x.length;m!==y;)x.splice(w,0,m),m=m.parent;return x}function Np(s){for(var f=[],m=s.parent;m!=null;)f.push(s),s=m,m=m.parent;return f.push(s),f}function D0(s,f){if(s===f)return s;for(var m=Np(s),y=Np(f),x=m.pop(),w=y.pop(),P=null;x===w;)P=x,x=m.pop(),w=y.pop();return P}t.layout.chord=function(){var s={},f,m,y,x,w=0,P,C,k;function L(){var G={},V=[],ue=t.range(x),de=[],Y,J,ie,pe,ve;for(f=[],m=[],Y=0,pe=-1;++pe<x;){for(J=0,ve=-1;++ve<x;)J+=y[pe][ve];V.push(J),de.push(t.range(x)),Y+=J}for(P&&ue.sort(function(Yt,Et){return P(V[Yt],V[Et])}),C&&de.forEach(function(Yt,Et){Yt.sort(function(Vt,gr){return C(y[Et][Vt],y[Et][gr])})}),Y=(Ul-w*x)/Y,J=0,pe=-1;++pe<x;){for(ie=J,ve=-1;++ve<x;){var oe=ue[pe],je=de[oe][ve],Qe=y[oe][je],ut=J,Ze=J+=Qe*Y;G[oe+"-"+je]={index:oe,subindex:je,startAngle:ut,endAngle:Ze,value:Qe}}m[oe]={index:oe,startAngle:ie,endAngle:J,value:V[oe]},J+=w}for(pe=-1;++pe<x;)for(ve=pe-1;++ve<x;){var pt=G[pe+"-"+ve],xt=G[ve+"-"+pe];(pt.value||xt.value)&&f.push(pt.value<xt.value?{source:xt,target:pt}:{source:pt,target:xt})}k&&B()}function B(){f.sort(function(G,V){return k((G.source.value+G.target.value)/2,(V.source.value+V.target.value)/2)})}return s.matrix=function(G){return arguments.length?(x=(y=G)&&y.length,f=m=null,s):y},s.padding=function(G){return arguments.length?(w=G,f=m=null,s):w},s.sortGroups=function(G){return arguments.length?(P=G,f=m=null,s):P},s.sortSubgroups=function(G){return arguments.length?(C=G,f=null,s):C},s.sortChords=function(G){return arguments.length?(k=G,f&&B(),s):k},s.chords=function(){return f||L(),f},s.groups=function(){return m||L(),m},s},t.layout.force=function(){var s={},f=t.dispatch("start","tick","end"),m,y=[1,1],x,w,P=.9,C=to,k=Lp,L=-30,B=Ql,G=.1,V=.64,ue=[],de=[],Y,J,ie;function pe(oe){return function(je,Qe,ut,Ze){if(je.point!==oe){var pt=je.cx-oe.x,xt=je.cy-oe.y,Yt=Ze-Qe,Et=pt*pt+xt*xt;if(Yt*Yt/V<Et){if(Et<B){var Vt=je.charge/Et;oe.px-=pt*Vt,oe.py-=xt*Vt}return!0}if(je.point&&Et&&Et<B){var Vt=je.pointCharge/Et;oe.px-=pt*Vt,oe.py-=xt*Vt}}return!je.charge}}s.tick=function(){if((w*=.99)<.005)return m=null,f.end({type:"end",alpha:w=0}),!0;var oe=ue.length,je=de.length,Qe,ut,Ze,pt,xt,Yt,Et,Vt,gr;for(ut=0;ut<je;++ut)Ze=de[ut],pt=Ze.source,xt=Ze.target,Vt=xt.x-pt.x,gr=xt.y-pt.y,(Yt=Vt*Vt+gr*gr)&&(Yt=w*J[ut]*((Yt=Math.sqrt(Yt))-Y[ut])/Yt,Vt*=Yt,gr*=Yt,xt.x-=Vt*(Et=pt.weight+xt.weight?pt.weight/(pt.weight+xt.weight):.5),xt.y-=gr*Et,pt.x+=Vt*(Et=1-Et),pt.y+=gr*Et);if((Et=w*G)&&(Vt=y[0]/2,gr=y[1]/2,ut=-1,Et))for(;++ut<oe;)Ze=ue[ut],Ze.x+=(Vt-Ze.x)*Et,Ze.y+=(gr-Ze.y)*Et;if(L)for(j0(Qe=t.geom.quadtree(ue),w,ie),ut=-1;++ut<oe;)(Ze=ue[ut]).fixed||Qe.visit(pe(Ze));for(ut=-1;++ut<oe;)Ze=ue[ut],Ze.fixed?(Ze.x=Ze.px,Ze.y=Ze.py):(Ze.x-=(Ze.px-(Ze.px=Ze.x))*P,Ze.y-=(Ze.py-(Ze.py=Ze.y))*P);f.tick({type:"tick",alpha:w})},s.nodes=function(oe){return arguments.length?(ue=oe,s):ue},s.links=function(oe){return arguments.length?(de=oe,s):de},s.size=function(oe){return arguments.length?(y=oe,s):y},s.linkDistance=function(oe){return arguments.length?(C=typeof oe=="function"?oe:+oe,s):C},s.distance=s.linkDistance,s.linkStrength=function(oe){return arguments.length?(k=typeof oe=="function"?oe:+oe,s):k},s.friction=function(oe){return arguments.length?(P=+oe,s):P},s.charge=function(oe){return arguments.length?(L=typeof oe=="function"?oe:+oe,s):L},s.chargeDistance=function(oe){return arguments.length?(B=oe*oe,s):Math.sqrt(B)},s.gravity=function(oe){return arguments.length?(G=+oe,s):G},s.theta=function(oe){return arguments.length?(V=oe*oe,s):Math.sqrt(V)},s.alpha=function(oe){return arguments.length?(oe=+oe,w?oe>0?w=oe:(m.c=null,m.t=NaN,m=null,f.end({type:"end",alpha:w=0})):oe>0&&(f.start({type:"start",alpha:w=oe}),m=Gl(s.tick)),s):w},s.start=function(){var oe,je=ue.length,Qe=de.length,ut=y[0],Ze=y[1],pt,xt;for(oe=0;oe<je;++oe)(xt=ue[oe]).index=oe,xt.weight=0;for(oe=0;oe<Qe;++oe)xt=de[oe],typeof xt.source=="number"&&(xt.source=ue[xt.source]),typeof xt.target=="number"&&(xt.target=ue[xt.target]),++xt.source.weight,++xt.target.weight;for(oe=0;oe<je;++oe)xt=ue[oe],isNaN(xt.x)&&(xt.x=Yt("x",ut)),isNaN(xt.y)&&(xt.y=Yt("y",Ze)),isNaN(xt.px)&&(xt.px=xt.x),isNaN(xt.py)&&(xt.py=xt.y);if(Y=[],typeof C=="function")for(oe=0;oe<Qe;++oe)Y[oe]=+C.call(this,de[oe],oe);else for(oe=0;oe<Qe;++oe)Y[oe]=C;if(J=[],typeof k=="function")for(oe=0;oe<Qe;++oe)J[oe]=+k.call(this,de[oe],oe);else for(oe=0;oe<Qe;++oe)J[oe]=k;if(ie=[],typeof L=="function")for(oe=0;oe<je;++oe)ie[oe]=+L.call(this,ue[oe],oe);else for(oe=0;oe<je;++oe)ie[oe]=L;function Yt(Et,Vt){if(!pt){for(pt=new Array(je),Cr=0;Cr<je;++Cr)pt[Cr]=[];for(Cr=0;Cr<Qe;++Cr){var gr=de[Cr];pt[gr.source.index].push(gr.target),pt[gr.target.index].push(gr.source)}}for(var en=pt[oe],Cr=-1,ct=en.length,Xt;++Cr<ct;)if(!isNaN(Xt=en[Cr][Et]))return Xt;return Math.random()*Vt}return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(x||(x=t.behavior.drag().origin(We).on("dragstart.force",B0).on("drag.force",ve).on("dragend.force",z0)),!arguments.length)return x;this.on("mouseover.force",ua).on("mouseout.force",U0).call(x)};function ve(oe){oe.px=t.event.x,oe.py=t.event.y,s.resume()}return t.rebind(s,f,"on")};function B0(s){s.fixed|=2}function z0(s){s.fixed&=-7}function ua(s){s.fixed|=4,s.px=s.x,s.py=s.y}function U0(s){s.fixed&=-5}function j0(s,f,m){var y=0,x=0;if(s.charge=0,!s.leaf)for(var w=s.nodes,P=w.length,C=-1,k;++C<P;)k=w[C],k!=null&&(j0(k,f,m),s.charge+=k.charge,y+=k.charge*k.cx,x+=k.charge*k.cy);if(s.point){s.leaf||(s.point.x+=Math.random()-.5,s.point.y+=Math.random()-.5);var L=f*m[s.point.index];s.charge+=s.pointCharge=L,y+=L*s.point.x,x+=L*s.point.y}s.cx=y/s.charge,s.cy=x/s.charge}var to=20,Lp=1,Ql=1/0;t.layout.hierarchy=function(){var s=c$,f=H0,m=G0;function y(x){var w=[x],P=[],C;for(x.depth=0;(C=w.pop())!=null;)if(P.push(C),(L=f.call(y,C,C.depth))&&(k=L.length)){for(var k,L,B;--k>=0;)w.push(B=L[k]),B.parent=C,B.depth=C.depth+1;m&&(C.value=0),C.children=L}else m&&(C.value=+m.call(y,C,C.depth)||0),delete C.children;return ca(x,function(G){var V,ue;s&&(V=G.children)&&V.sort(s),m&&(ue=G.parent)&&(ue.value+=G.value)}),P}return y.sort=function(x){return arguments.length?(s=x,y):s},y.children=function(x){return arguments.length?(f=x,y):f},y.value=function(x){return arguments.length?(m=x,y):m},y.revalue=function(x){return m&&(Jl(x,function(w){w.children&&(w.value=0)}),ca(x,function(w){var P;w.children||(w.value=+m.call(y,w,w.depth)||0),(P=w.parent)&&(P.value+=w.value)})),x},y};function Zl(s,f){return t.rebind(s,f,"sort","children","value"),s.nodes=s,s.links=f$,s}function Jl(s,f){for(var m=[s];(s=m.pop())!=null;)if(f(s),(x=s.children)&&(y=x.length))for(var y,x;--y>=0;)m.push(x[y])}function ca(s,f){for(var m=[s],y=[];(s=m.pop())!=null;)if(y.push(s),(P=s.children)&&(w=P.length))for(var x=-1,w,P;++x<w;)m.push(P[x]);for(;(s=y.pop())!=null;)f(s)}function H0(s){return s.children}function G0(s){return s.value}function c$(s,f){return f.value-s.value}function f$(s){return t.merge(s.map(function(f){return(f.children||[]).map(function(m){return{source:f,target:m}})}))}t.layout.partition=function(){var s=t.layout.hierarchy(),f=[1,1];function m(w,P,C,k){var L=w.children;if(w.x=P,w.y=w.depth*k,w.dx=C,w.dy=k,L&&(G=L.length)){var B=-1,G,V,ue;for(C=w.value?C/w.value:0;++B<G;)m(V=L[B],P,ue=V.value*C,k),P+=ue}}function y(w){var P=w.children,C=0;if(P&&(L=P.length))for(var k=-1,L;++k<L;)C=Math.max(C,y(P[k]));return 1+C}function x(w,P){var C=s.call(this,w,P);return m(C[0],0,f[0],f[1]/y(C[0])),C}return x.size=function(w){return arguments.length?(f=w,x):f},Zl(x,s)},t.layout.pie=function(){var s=Number,f=W0,m=0,y=Ul,x=0;function w(P){var C=P.length,k=P.map(function(pe,ve){return+s.call(w,pe,ve)}),L=+(typeof m=="function"?m.apply(this,arguments):m),B=(typeof y=="function"?y.apply(this,arguments):y)-L,G=Math.min(Math.abs(B)/C,+(typeof x=="function"?x.apply(this,arguments):x)),V=G*(B<0?-1:1),ue=t.sum(k),de=ue?(B-C*V)/ue:0,Y=t.range(C),J=[],ie;return f!=null&&Y.sort(f===W0?function(pe,ve){return k[ve]-k[pe]}:function(pe,ve){return f(P[pe],P[ve])}),Y.forEach(function(pe){J[pe]={data:P[pe],value:ie=k[pe],startAngle:L,endAngle:L+=ie*de+V,padAngle:G}}),J}return w.value=function(P){return arguments.length?(s=P,w):s},w.sort=function(P){return arguments.length?(f=P,w):f},w.startAngle=function(P){return arguments.length?(m=P,w):m},w.endAngle=function(P){return arguments.length?(y=P,w):y},w.padAngle=function(P){return arguments.length?(x=P,w):x},w};var W0={};t.layout.stack=function(){var s=We,f=Bp,m=zp,y=h$,x=d$,w=p$;function P(C,k){if(!(de=C.length))return C;var L=C.map(function(pe,ve){return s.call(P,pe,ve)}),B=L.map(function(pe){return pe.map(function(ve,oe){return[x.call(P,ve,oe),w.call(P,ve,oe)]})}),G=f.call(P,B,k);L=t.permute(L,G),B=t.permute(B,G);var V=m.call(P,B,k),ue=L[0].length,de,Y,J,ie;for(J=0;J<ue;++J)for(y.call(P,L[0][J],ie=V[J],B[0][J][1]),Y=1;Y<de;++Y)y.call(P,L[Y][J],ie+=B[Y-1][J][1],B[Y][J][1]);return C}return P.values=function(C){return arguments.length?(s=C,P):s},P.order=function(C){return arguments.length?(f=typeof C=="function"?C:Dp.get(C)||Bp,P):f},P.offset=function(C){return arguments.length?(m=typeof C=="function"?C:of.get(C)||zp,P):m},P.x=function(C){return arguments.length?(x=C,P):x},P.y=function(C){return arguments.length?(w=C,P):w},P.out=function(C){return arguments.length?(y=C,P):y},P};function d$(s){return s.x}function p$(s){return s.y}function h$(s,f,m){s.y0=f,s.y=m}var Dp=t.map({"inside-out":function(s){var f=s.length,m,y,x=s.map(V0),w=s.map(lf),P=t.range(f).sort(function(G,V){return x[G]-x[V]}),C=0,k=0,L=[],B=[];for(m=0;m<f;++m)y=P[m],C<k?(C+=w[y],L.push(y)):(k+=w[y],B.push(y));return B.reverse().concat(L)},reverse:function(s){return t.range(s.length).reverse()},default:Bp}),of=t.map({silhouette:function(s){var f=s.length,m=s[0].length,y=[],x=0,w,P,C,k=[];for(P=0;P<m;++P){for(w=0,C=0;w<f;w++)C+=s[w][P][1];C>x&&(x=C),y.push(C)}for(P=0;P<m;++P)k[P]=(x-y[P])/2;return k},wiggle:function(s){var f=s.length,m=s[0],y=m.length,x,w,P,C,k,L,B,G,V,ue=[];for(ue[0]=G=V=0,w=1;w<y;++w){for(x=0,C=0;x<f;++x)C+=s[x][w][1];for(x=0,k=0,B=m[w][0]-m[w-1][0];x<f;++x){for(P=0,L=(s[x][w][1]-s[x][w-1][1])/(2*B);P<x;++P)L+=(s[P][w][1]-s[P][w-1][1])/B;k+=L*s[x][w][1]}ue[w]=G-=C?k/C*B:0,G<V&&(V=G)}for(w=0;w<y;++w)ue[w]-=V;return ue},expand:function(s){var f=s.length,m=s[0].length,y=1/f,x,w,P,C=[];for(w=0;w<m;++w){for(x=0,P=0;x<f;x++)P+=s[x][w][1];if(P)for(x=0;x<f;x++)s[x][w][1]/=P;else for(x=0;x<f;x++)s[x][w][1]=y}for(w=0;w<m;++w)C[w]=0;return C},zero:zp});function Bp(s){return t.range(s.length)}function zp(s){for(var f=-1,m=s[0].length,y=[];++f<m;)y[f]=0;return y}function V0(s){for(var f=1,m=0,y=s[0][1],x,w=s.length;f<w;++f)(x=s[f][1])>y&&(m=f,y=x);return m}function lf(s){return s.reduce(Up,0)}function Up(s,f){return s+f[1]}t.layout.histogram=function(){var s=!0,f=Number,m=m$,y=v$;function x(w,V){for(var C=[],k=w.map(f,this),L=m.call(this,k,V),B=y.call(this,L,k,V),G,V=-1,ue=k.length,de=B.length-1,Y=s?1:1/ue,J;++V<de;)G=C[V]=[],G.dx=B[V+1]-(G.x=B[V]),G.y=0;if(de>0)for(V=-1;++V<ue;)J=k[V],J>=L[0]&&J<=L[1]&&(G=C[t.bisect(B,J,1,de)-1],G.y+=Y,G.push(w[V]));return C}return x.value=function(w){return arguments.length?(f=w,x):f},x.range=function(w){return arguments.length?(m=Or(w),x):m},x.bins=function(w){return arguments.length?(y=typeof w=="number"?function(P){return jp(P,w)}:Or(w),x):y},x.frequency=function(w){return arguments.length?(s=!!w,x):s},x};function v$(s,f){return jp(s,Math.ceil(Math.log(f.length)/Math.LN2+1))}function jp(s,f){for(var m=-1,y=+s[0],x=(s[1]-y)/f,w=[];++m<=f;)w[m]=x*m+y;return w}function m$(s){return[t.min(s),t.max(s)]}t.layout.pack=function(){var s=t.layout.hierarchy().sort(g$),f=0,m=[1,1],y;function x(w,P){var C=s.call(this,w,P),k=C[0],L=m[0],B=m[1],G=y==null?Math.sqrt:typeof y=="function"?y:function(){return y};if(k.x=k.y=0,ca(k,function(ue){ue.r=+G(ue.value)}),ca(k,Gp),f){var V=f*(y?1:Math.max(2*k.r/L,2*k.r/B))/2;ca(k,function(ue){ue.r+=V}),ca(k,Gp),ca(k,function(ue){ue.r-=V})}return Y0(k,L/2,B/2,y?1:1/Math.max(2*k.r/L,2*k.r/B)),C}return x.size=function(w){return arguments.length?(m=w,x):m},x.radius=function(w){return arguments.length?(y=w==null||typeof w=="function"?w:+w,x):y},x.padding=function(w){return arguments.length?(f=+w,x):f},Zl(x,s)};function g$(s,f){return s.value-f.value}function Hp(s,f){var m=s._pack_next;s._pack_next=f,f._pack_prev=s,f._pack_next=m,m._pack_prev=f}function K0(s,f){s._pack_next=f,f._pack_prev=s}function q0(s,f){var m=f.x-s.x,y=f.y-s.y,x=s.r+f.r;return .999*x*x>m*m+y*y}function Gp(s){if(!(f=s.children)||!(V=f.length))return;var f,m=1/0,y=-1/0,x=1/0,w=-1/0,P,C,k,L,B,G,V;function ue(oe){m=Math.min(oe.x-oe.r,m),y=Math.max(oe.x+oe.r,y),x=Math.min(oe.y-oe.r,x),w=Math.max(oe.y+oe.r,w)}if(f.forEach(y$),P=f[0],P.x=-P.r,P.y=0,ue(P),V>1&&(C=f[1],C.x=C.r,C.y=0,ue(C),V>2))for(k=f[2],X0(P,C,k),ue(k),Hp(P,k),P._pack_prev=k,Hp(k,C),C=P._pack_next,L=3;L<V;L++){X0(P,C,k=f[L]);var de=0,Y=1,J=1;for(B=C._pack_next;B!==C;B=B._pack_next,Y++)if(q0(B,k)){de=1;break}if(de==1)for(G=P._pack_prev;G!==B._pack_prev&&!q0(G,k);G=G._pack_prev,J++);de?(Y<J||Y==J&&C.r<P.r?K0(P,C=B):K0(P=G,C),L--):(Hp(P,k),C=k,ue(k))}var ie=(m+y)/2,pe=(x+w)/2,ve=0;for(L=0;L<V;L++)k=f[L],k.x-=ie,k.y-=pe,ve=Math.max(ve,k.r+Math.sqrt(k.x*k.x+k.y*k.y));s.r=ve,f.forEach(b$)}function y$(s){s._pack_next=s._pack_prev=s}function b$(s){delete s._pack_next,delete s._pack_prev}function Y0(s,f,m,y){var x=s.children;if(s.x=f+=y*s.x,s.y=m+=y*s.y,s.r*=y,x)for(var w=-1,P=x.length;++w<P;)Y0(x[w],f,m,y)}function X0(s,f,m){var y=s.r+m.r,x=f.x-s.x,w=f.y-s.y;if(y&&(x||w)){var P=f.r+m.r,C=x*x+w*w;P*=P,y*=y;var k=.5+(y-P)/(2*C),L=Math.sqrt(Math.max(0,2*P*(y+C)-(y-=C)*y-P*P))/(2*C);m.x=s.x+k*x+L*w,m.y=s.y+k*w-L*x}else m.x=s.x+y,m.y=s.y}t.layout.tree=function(){var s=t.layout.hierarchy().sort(null).value(null),f=Q0,m=[1,1],y=null;function x(B,G){var V=s.call(this,B,G),ue=V[0],de=w(ue);if(ca(de,P),de.parent.m=-de.z,Jl(de,C),y)Jl(ue,L);else{var Y=ue,J=ue,ie=ue;Jl(ue,function(je){je.x<Y.x&&(Y=je),je.x>J.x&&(J=je),je.depth>ie.depth&&(ie=je)});var pe=f(Y,J)/2-Y.x,ve=m[0]/(J.x+f(J,Y)/2+pe),oe=m[1]/(ie.depth||1);Jl(ue,function(je){je.x=(je.x+pe)*ve,je.y=je.depth*oe})}return V}function w(B){for(var G={A:null,children:[B]},V=[G],ue;(ue=V.pop())!=null;)for(var de=ue.children,Y,J=0,ie=de.length;J<ie;++J)V.push((de[J]=Y={_:de[J],parent:ue,children:(Y=de[J].children)&&Y.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:J}).a=Y);return G.children[0]}function P(B){var G=B.children,V=B.parent.children,ue=B.i?V[B.i-1]:null;if(G.length){x$(B);var de=(G[0].z+G[G.length-1].z)/2;ue?(B.z=ue.z+f(B._,ue._),B.m=B.z-de):B.z=de}else ue&&(B.z=ue.z+f(B._,ue._));B.parent.A=k(B,ue,B.parent.A||V[0])}function C(B){B._.x=B.z+B.parent.m,B.m+=B.parent.m}function k(B,G,V){if(G){for(var ue=B,de=B,Y=G,J=ue.parent.children[0],ie=ue.m,pe=de.m,ve=Y.m,oe=J.m,je;Y=Vp(Y),ue=Wp(ue),Y&&ue;)J=Wp(J),de=Vp(de),de.a=B,je=Y.z+ve-ue.z-ie+f(Y._,ue._),je>0&&($$(Pa(Y,B,V),B,je),ie+=je,pe+=je),ve+=Y.m,ie+=ue.m,oe+=J.m,pe+=de.m;Y&&!Vp(de)&&(de.t=Y,de.m+=ve-pe),ue&&!Wp(J)&&(J.t=ue,J.m+=ie-oe,V=B)}return V}function L(B){B.x*=m[0],B.y=B.depth*m[1]}return x.separation=function(B){return arguments.length?(f=B,x):f},x.size=function(B){return arguments.length?(y=(m=B)==null?L:null,x):y?null:m},x.nodeSize=function(B){return arguments.length?(y=(m=B)==null?null:L,x):y?m:null},Zl(x,s)};function Q0(s,f){return s.parent==f.parent?1:2}function Wp(s){var f=s.children;return f.length?f[0]:s.t}function Vp(s){var f=s.children,m;return(m=f.length)?f[m-1]:s.t}function $$(s,f,m){var y=m/(f.i-s.i);f.c-=y,f.s+=m,s.c+=y,f.z+=m,f.m+=m}function x$(s){for(var f=0,m=0,y=s.children,x=y.length,w;--x>=0;)w=y[x],w.z+=f,w.m+=f,f+=w.s+(m+=w.c)}function Pa(s,f,m){return s.a.parent===f.parent?s.a:m}t.layout.cluster=function(){var s=t.layout.hierarchy().sort(null).value(null),f=Q0,m=[1,1],y=!1;function x(w,P){var C=s.call(this,w,P),k=C[0],L,B=0;ca(k,function(Y){var J=Y.children;J&&J.length?(Y.x=w$(J),Y.y=Z0(J)):(Y.x=L?B+=f(Y,L):0,Y.y=0,L=Y)});var G=J0(k),V=eg(k),ue=G.x-f(G,V)/2,de=V.x+f(V,G)/2;return ca(k,y?function(Y){Y.x=(Y.x-k.x)*m[0],Y.y=(k.y-Y.y)*m[1]}:function(Y){Y.x=(Y.x-ue)/(de-ue)*m[0],Y.y=(1-(k.y?Y.y/k.y:1))*m[1]}),C}return x.separation=function(w){return arguments.length?(f=w,x):f},x.size=function(w){return arguments.length?(y=(m=w)==null,x):y?null:m},x.nodeSize=function(w){return arguments.length?(y=(m=w)!=null,x):y?m:null},Zl(x,s)};function Z0(s){return 1+t.max(s,function(f){return f.y})}function w$(s){return s.reduce(function(f,m){return f+m.x},0)/s.length}function J0(s){var f=s.children;return f&&f.length?J0(f[0]):s}function eg(s){var f=s.children,m;return f&&(m=f.length)?eg(f[m-1]):s}t.layout.treemap=function(){var s=t.layout.hierarchy(),f=Math.round,m=[1,1],y=null,x=Kp,w=!1,P,C="squarify",k=.5*(1+Math.sqrt(5));function L(Y,J){for(var ie=-1,pe=Y.length,ve,oe;++ie<pe;)oe=(ve=Y[ie]).value*(J<0?0:J),ve.area=isNaN(oe)||oe<=0?0:oe}function B(Y){var J=Y.children;if(J&&J.length){var ie=x(Y),pe=[],ve=J.slice(),oe,je=1/0,Qe,ut=C==="slice"?ie.dx:C==="dice"?ie.dy:C==="slice-dice"?Y.depth&1?ie.dy:ie.dx:Math.min(ie.dx,ie.dy),Ze;for(L(ve,ie.dx*ie.dy/Y.value),pe.area=0;(Ze=ve.length)>0;)pe.push(oe=ve[Ze-1]),pe.area+=oe.area,C!=="squarify"||(Qe=V(pe,ut))<=je?(ve.pop(),je=Qe):(pe.area-=pe.pop().area,ue(pe,ut,ie,!1),ut=Math.min(ie.dx,ie.dy),pe.length=pe.area=0,je=1/0);pe.length&&(ue(pe,ut,ie,!0),pe.length=pe.area=0),J.forEach(B)}}function G(Y){var J=Y.children;if(J&&J.length){var ie=x(Y),pe=J.slice(),ve,oe=[];for(L(pe,ie.dx*ie.dy/Y.value),oe.area=0;ve=pe.pop();)oe.push(ve),oe.area+=ve.area,ve.z!=null&&(ue(oe,ve.z?ie.dx:ie.dy,ie,!pe.length),oe.length=oe.area=0);J.forEach(G)}}function V(Y,J){for(var ie=Y.area,pe,ve=0,oe=1/0,je=-1,Qe=Y.length;++je<Qe;)(pe=Y[je].area)&&(pe<oe&&(oe=pe),pe>ve&&(ve=pe));return ie*=ie,J*=J,ie?Math.max(J*ve*k/ie,ie/(J*oe*k)):1/0}function ue(Y,J,ie,pe){var ve=-1,oe=Y.length,je=ie.x,Qe=ie.y,ut=J?f(Y.area/J):0,Ze;if(J==ie.dx){for((pe||ut>ie.dy)&&(ut=ie.dy);++ve<oe;)Ze=Y[ve],Ze.x=je,Ze.y=Qe,Ze.dy=ut,je+=Ze.dx=Math.min(ie.x+ie.dx-je,ut?f(Ze.area/ut):0);Ze.z=!0,Ze.dx+=ie.x+ie.dx-je,ie.y+=ut,ie.dy-=ut}else{for((pe||ut>ie.dx)&&(ut=ie.dx);++ve<oe;)Ze=Y[ve],Ze.x=je,Ze.y=Qe,Ze.dx=ut,Qe+=Ze.dy=Math.min(ie.y+ie.dy-Qe,ut?f(Ze.area/ut):0);Ze.z=!1,Ze.dy+=ie.y+ie.dy-Qe,ie.x+=ut,ie.dx-=ut}}function de(Y){var J=P||s(Y),ie=J[0];return ie.x=ie.y=0,ie.value?(ie.dx=m[0],ie.dy=m[1]):ie.dx=ie.dy=0,P&&s.revalue(ie),L([ie],ie.dx*ie.dy/ie.value),(P?G:B)(ie),w&&(P=J),J}return de.size=function(Y){return arguments.length?(m=Y,de):m},de.padding=function(Y){if(!arguments.length)return y;function J(ve){var oe=Y.call(de,ve,ve.depth);return oe==null?Kp(ve):tg(ve,typeof oe=="number"?[oe,oe,oe,oe]:oe)}function ie(ve){return tg(ve,Y)}var pe;return x=(y=Y)==null?Kp:(pe=typeof Y)=="function"?J:(pe==="number"&&(Y=[Y,Y,Y,Y]),ie),de},de.round=function(Y){return arguments.length?(f=Y?Math.round:Number,de):f!=Number},de.sticky=function(Y){return arguments.length?(w=Y,P=null,de):w},de.ratio=function(Y){return arguments.length?(k=Y,de):k},de.mode=function(Y){return arguments.length?(C=Y+"",de):C},Zl(de,s)};function Kp(s){return{x:s.x,y:s.y,dx:s.dx,dy:s.dy}}function tg(s,f){var m=s.x+f[3],y=s.y+f[0],x=s.dx-f[1]-f[3],w=s.dy-f[0]-f[2];return x<0&&(m+=x/2,x=0),w<0&&(y+=w/2,w=0),{x:m,y,dx:x,dy:w}}t.random={normal:function(s,f){var m=arguments.length;return m<2&&(f=1),m<1&&(s=0),function(){var y,x,w;do y=Math.random()*2-1,x=Math.random()*2-1,w=y*y+x*x;while(!w||w>1);return s+f*y*Math.sqrt(-2*Math.log(w)/w)}},logNormal:function(){var s=t.random.normal.apply(t,arguments);return function(){return Math.exp(s())}},bates:function(s){var f=t.random.irwinHall(s);return function(){return f()/s}},irwinHall:function(s){return function(){for(var f=0,m=0;m<s;m++)f+=Math.random();return f}}},t.scale={};function sf(s){var f=s[0],m=s[s.length-1];return f<m?[f,m]:[m,f]}function uf(s){return s.rangeExtent?s.rangeExtent():sf(s.range())}function _$(s,f,m,y){var x=m(s[0],s[1]),w=y(f[0],f[1]);return function(P){return w(x(P))}}function _n(s,f){var m=0,y=s.length-1,x=s[m],w=s[y],P;return w<x&&(P=m,m=y,y=P,P=x,x=w,w=P),s[m]=f.floor(x),s[y]=f.ceil(w),s}function al(s){return s?{floor:function(f){return Math.floor(f/s)*s},ceil:function(f){return Math.ceil(f/s)*s}}:es}var es={floor:We,ceil:We};function S$(s,f,m,y){var x=[],w=[],P=0,C=Math.min(s.length,f.length)-1;for(s[C]<s[0]&&(s=s.slice().reverse(),f=f.slice().reverse());++P<=C;)x.push(m(s[P-1],s[P])),w.push(y(f[P-1],f[P]));return function(k){var L=t.bisect(s,k,1,C)-1;return w[L](x[L](k))}}t.scale.linear=function(){return ol([0,1],[0,1],Ta,!1)};function ol(s,f,m,y){var x,w;function P(){var k=Math.min(s.length,f.length)>2?S$:_$,L=y?N0:F0;return x=k(s,f,L,m),w=k(f,s,L,Ta),C}function C(k){return x(k)}return C.invert=function(k){return w(k)},C.domain=function(k){return arguments.length?(s=k.map(Number),P()):s},C.range=function(k){return arguments.length?(f=k,P()):f},C.rangeRound=function(k){return C.range(k).interpolate(nf)},C.clamp=function(k){return arguments.length?(y=k,P()):y},C.interpolate=function(k){return arguments.length?(m=k,P()):m},C.ticks=function(k){return bu(s,k)},C.tickFormat=function(k,L){return d3_scale_linearTickFormat(s,k,L)},C.nice=function(k){return ll(s,k),P()},C.copy=function(){return ol(s,f,m,y)},P()}function qp(s,f){return t.rebind(s,f,"range","rangeRound","interpolate","clamp")}function ll(s,f){return _n(s,al(yu(s,f)[2])),_n(s,al(yu(s,f)[2])),s}function yu(s,f){f==null&&(f=10);var m=sf(s),y=m[1]-m[0],x=Math.pow(10,Math.floor(Math.log(y/f)/Math.LN10)),w=f/y*x;return w<=.15?x*=10:w<=.35?x*=5:w<=.75&&(x*=2),m[0]=Math.ceil(m[0]/x)*x,m[1]=Math.floor(m[1]/x)*x+x*.5,m[2]=x,m}function bu(s,f){return t.range.apply(t,yu(s,f))}t.scale.log=function(){return cf(t.scale.linear().domain([0,1]),10,!0,[1,10])};function cf(s,f,m,y){function x(C){return(m?Math.log(C<0?0:C):-Math.log(C>0?0:-C))/Math.log(f)}function w(C){return m?Math.pow(f,C):-Math.pow(f,-C)}function P(C){return s(x(C))}return P.invert=function(C){return w(s.invert(C))},P.domain=function(C){return arguments.length?(m=C[0]>=0,s.domain((y=C.map(Number)).map(x)),P):y},P.base=function(C){return arguments.length?(f=+C,s.domain(y.map(x)),P):f},P.nice=function(){var C=_n(y.map(x),m?Math:Yp);return s.domain(C),y=C.map(w),P},P.ticks=function(){var C=sf(y),k=[],L=C[0],B=C[1],G=Math.floor(x(L)),V=Math.ceil(x(B)),ue=f%1?2:f;if(isFinite(V-G)){if(m){for(;G<V;G++)for(var de=1;de<ue;de++)k.push(w(G)*de);k.push(w(G))}else for(k.push(w(G));G++<V;)for(var de=ue-1;de>0;de--)k.push(w(G)*de);for(G=0;k[G]<L;G++);for(V=k.length;k[V-1]>B;V--);k=k.slice(G,V)}return k},P.copy=function(){return cf(s.copy(),f,m,y)},qp(P,s)}var Yp={floor:function(s){return-Math.ceil(-s)},ceil:function(s){return-Math.floor(-s)}};t.scale.pow=function(){return ff(t.scale.linear(),1,[0,1])};function ff(s,f,m){var y=sl(f),x=sl(1/f);function w(P){return s(y(P))}return w.invert=function(P){return x(s.invert(P))},w.domain=function(P){return arguments.length?(s.domain((m=P.map(Number)).map(y)),w):m},w.ticks=function(P){return bu(m,P)},w.tickFormat=function(P,C){return d3_scale_linearTickFormat(m,P,C)},w.nice=function(P){return w.domain(ll(m,P))},w.exponent=function(P){return arguments.length?(y=sl(f=P),x=sl(1/f),s.domain(m.map(y)),w):f},w.copy=function(){return ff(s.copy(),f,m)},qp(w,s)}function sl(s){return function(f){return f<0?-Math.pow(-f,s):Math.pow(f,s)}}t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return Xp([],{t:"range",a:[[]]})};function Xp(s,f){var m,y,x;function w(C){return y[((m.get(C)||(f.t==="range"?m.set(C,s.push(C)):NaN))-1)%y.length]}function P(C,k){return t.range(s.length).map(function(L){return C+k*L})}return w.domain=function(C){if(!arguments.length)return s;s=[],m=new M;for(var k=-1,L=C.length,B;++k<L;)m.has(B=C[k])||m.set(B,s.push(B));return w[f.t].apply(w,f.a)},w.range=function(C){return arguments.length?(y=C,x=0,f={t:"range",a:arguments},w):y},w.rangePoints=function(C,k){arguments.length<2&&(k=0);var L=C[0],B=C[1],G=s.length<2?(L=(L+B)/2,0):(B-L)/(s.length-1+k);return y=P(L+G*k/2,G),x=0,f={t:"rangePoints",a:arguments},w},w.rangeRoundPoints=function(C,k){arguments.length<2&&(k=0);var L=C[0],B=C[1],G=s.length<2?(L=B=Math.round((L+B)/2),0):(B-L)/(s.length-1+k)|0;return y=P(L+Math.round(G*k/2+(B-L-(s.length-1+k)*G)/2),G),x=0,f={t:"rangeRoundPoints",a:arguments},w},w.rangeBands=function(C,k,L){arguments.length<2&&(k=0),arguments.length<3&&(L=k);var B=C[1]<C[0],G=C[B-0],V=C[1-B],ue=(V-G)/(s.length-k+2*L);return y=P(G+ue*L,ue),B&&y.reverse(),x=ue*(1-k),f={t:"rangeBands",a:arguments},w},w.rangeRoundBands=function(C,k,L){arguments.length<2&&(k=0),arguments.length<3&&(L=k);var B=C[1]<C[0],G=C[B-0],V=C[1-B],ue=Math.floor((V-G)/(s.length-k+2*L));return y=P(G+Math.round((V-G-(s.length-k)*ue)/2),ue),B&&y.reverse(),x=Math.round(ue*(1-k)),f={t:"rangeRoundBands",a:arguments},w},w.rangeBand=function(){return x},w.rangeExtent=function(){return sf(f.a[0])},w.copy=function(){return Xp(s,f)},w.domain(s)}t.scale.category10=function(){return t.scale.ordinal().range(rg)},t.scale.category20=function(){return t.scale.ordinal().range(ng)},t.scale.category20b=function(){return t.scale.ordinal().range(ig)},t.scale.category20c=function(){return t.scale.ordinal().range(ag)};var rg=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Gc),ng=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Gc),ig=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Gc),ag=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Gc);t.scale.quantile=function(){return df([],[])};function df(s,f){var m;function y(){var w=0,P=f.length;for(m=[];++w<P;)m[w-1]=t.quantile(s,w/P);return x}function x(w){if(!isNaN(w=+w))return f[t.bisect(m,w)]}return x.domain=function(w){return arguments.length?(s=w.map(v).filter($).sort(p),y()):s},x.range=function(w){return arguments.length?(f=w,y()):f},x.quantiles=function(){return m},x.invertExtent=function(w){return w=f.indexOf(w),w<0?[NaN,NaN]:[w>0?m[w-1]:s[0],w<m.length?m[w]:s[s.length-1]]},x.copy=function(){return df(s,f)},y()}t.scale.quantize=function(){return pf(0,1,[0,1])};function pf(s,f,m){var y,x;function w(C){return m[Math.max(0,Math.min(x,Math.floor(y*(C-s))))]}function P(){return y=m.length/(f-s),x=m.length-1,w}return w.domain=function(C){return arguments.length?(s=+C[0],f=+C[C.length-1],P()):[s,f]},w.range=function(C){return arguments.length?(m=C,P()):m},w.invertExtent=function(C){return C=m.indexOf(C),C=C<0?NaN:C/y+s,[C,C+1/y]},w.copy=function(){return pf(s,f,m)},P()}t.scale.threshold=function(){return Qp([.5],[0,1])};function Qp(s,f){function m(y){if(y<=y)return f[t.bisect(s,y)]}return m.domain=function(y){return arguments.length?(s=y,m):s},m.range=function(y){return arguments.length?(f=y,m):f},m.invertExtent=function(y){return y=f.indexOf(y),[s[y-1],s[y]]},m.copy=function(){return Qp(s,f)},m}t.scale.identity=function(){return Zp([0,1])};function Zp(s){function f(m){return+m}return f.invert=f,f.domain=f.range=function(m){return arguments.length?(s=m.map(f),f):s},f.ticks=function(m){return bu(s,m)},f.tickFormat=function(m,y){return d3_scale_linearTickFormat(s,m,y)},f.copy=function(){return Zp(s)},f}t.svg={};function og(){return 0}t.svg.arc=function(){var s=Jp,f=lg,m=og,y=$u,x=eh,w=hf,P=th;function C(){var L=Math.max(0,+s.apply(this,arguments)),B=Math.max(0,+f.apply(this,arguments)),G=x.apply(this,arguments)-Ca,V=w.apply(this,arguments)-Ca,ue=Math.abs(V-G),de=G>V?0:1;if(B<L&&(Y=B,B=L,L=Y),ue>=i0)return k(B,de)+(L?k(L,1-de):"")+"Z";var Y,J,ie,pe,ve=0,oe=0,je,Qe,ut,Ze,pt,xt,Yt,Et,Vt=[];if((pe=(+P.apply(this,arguments)||0)/2)&&(ie=y===$u?Math.sqrt(L*L+B*B):+y.apply(this,arguments),de||(oe*=-1),B&&(oe=o0(ie/B*Math.sin(pe))),L&&(ve=o0(ie/L*Math.sin(pe)))),B){je=B*Math.cos(G+oe),Qe=B*Math.sin(G+oe),ut=B*Math.cos(V-oe),Ze=B*Math.sin(V-oe);var gr=Math.abs(V-G-2*oe)<=Xa?0:1;if(oe&&xu(je,Qe,ut,Ze)===de^gr){var en=(G+V)/2;je=B*Math.cos(en),Qe=B*Math.sin(en),ut=Ze=null}}else je=Qe=0;if(L){pt=L*Math.cos(V-ve),xt=L*Math.sin(V-ve),Yt=L*Math.cos(G+ve),Et=L*Math.sin(G+ve);var Cr=Math.abs(G-V+2*ve)<=Xa?0:1;if(ve&&xu(pt,xt,Yt,Et)===1-de^Cr){var ct=(G+V)/2;pt=L*Math.cos(ct),xt=L*Math.sin(ct),Yt=Et=null}}else pt=xt=0;if(ue>hr&&(Y=Math.min(Math.abs(B-L)/2,+m.apply(this,arguments)))>.001){J=L<B^de?0:1;var Xt=Y,Zt=Y;if(ue<Xa){var yr=Yt==null?[pt,xt]:ut==null?[je,Qe]:bp([je,Qe],[Yt,Et],[ut,Ze],[pt,xt]),Vr=je-yr[0],hn=Qe-yr[1],Pn=ut-yr[0],ei=Ze-yr[1],hi=1/Math.sin(Math.acos((Vr*Pn+hn*ei)/(Math.sqrt(Vr*Vr+hn*hn)*Math.sqrt(Pn*Pn+ei*ei)))/2),Gn=Math.sqrt(yr[0]*yr[0]+yr[1]*yr[1]);Zt=Math.min(Y,(L-Gn)/(hi-1)),Xt=Math.min(Y,(B-Gn)/(hi+1))}if(ut!=null){var Si=ts(Yt==null?[pt,xt]:[Yt,Et],[je,Qe],B,Xt,de),F=ts([ut,Ze],[pt,xt],B,Xt,de);Y===Xt?Vt.push("M",Si[0],"A",Xt,",",Xt," 0 0,",J," ",Si[1],"A",B,",",B," 0 ",1-de^xu(Si[1][0],Si[1][1],F[1][0],F[1][1]),",",de," ",F[1],"A",Xt,",",Xt," 0 0,",J," ",F[0]):Vt.push("M",Si[0],"A",Xt,",",Xt," 0 1,",J," ",F[0])}else Vt.push("M",je,",",Qe);if(Yt!=null){var X=ts([je,Qe],[Yt,Et],L,-Zt,de),re=ts([pt,xt],ut==null?[je,Qe]:[ut,Ze],L,-Zt,de);Y===Zt?Vt.push("L",re[0],"A",Zt,",",Zt," 0 0,",J," ",re[1],"A",L,",",L," 0 ",de^xu(re[1][0],re[1][1],X[1][0],X[1][1]),",",1-de," ",X[1],"A",Zt,",",Zt," 0 0,",J," ",X[0]):Vt.push("L",re[0],"A",Zt,",",Zt," 0 0,",J," ",X[0])}else Vt.push("L",pt,",",xt)}else Vt.push("M",je,",",Qe),ut!=null&&Vt.push("A",B,",",B," 0 ",gr,",",de," ",ut,",",Ze),Vt.push("L",pt,",",xt),Yt!=null&&Vt.push("A",L,",",L," 0 ",Cr,",",1-de," ",Yt,",",Et);return Vt.push("Z"),Vt.join("")}function k(L,B){return"M0,"+L+"A"+L+","+L+" 0 1,"+B+" 0,"+-L+"A"+L+","+L+" 0 1,"+B+" 0,"+L}return C.innerRadius=function(L){return arguments.length?(s=Or(L),C):s},C.outerRadius=function(L){return arguments.length?(f=Or(L),C):f},C.cornerRadius=function(L){return arguments.length?(m=Or(L),C):m},C.padRadius=function(L){return arguments.length?(y=L==$u?$u:Or(L),C):y},C.startAngle=function(L){return arguments.length?(x=Or(L),C):x},C.endAngle=function(L){return arguments.length?(w=Or(L),C):w},C.padAngle=function(L){return arguments.length?(P=Or(L),C):P},C.centroid=function(){var L=(+s.apply(this,arguments)+ +f.apply(this,arguments))/2,B=(+x.apply(this,arguments)+ +w.apply(this,arguments))/2-Ca;return[Math.cos(B)*L,Math.sin(B)*L]},C};var $u="auto";function Jp(s){return s.innerRadius}function lg(s){return s.outerRadius}function eh(s){return s.startAngle}function hf(s){return s.endAngle}function th(s){return s&&s.padAngle}function xu(s,f,m,y){return(s-m)*f-(f-y)*s>0?0:1}function ts(s,f,m,y,x){var w=s[0]-f[0],P=s[1]-f[1],C=(x?y:-y)/Math.sqrt(w*w+P*P),k=C*P,L=-C*w,B=s[0]+k,G=s[1]+L,V=f[0]+k,ue=f[1]+L,de=(B+V)/2,Y=(G+ue)/2,J=V-B,ie=ue-G,pe=J*J+ie*ie,ve=m-y,oe=B*ue-V*G,je=(ie<0?-1:1)*Math.sqrt(Math.max(0,ve*ve*pe-oe*oe)),Qe=(oe*ie-J*je)/pe,ut=(-oe*J-ie*je)/pe,Ze=(oe*ie+J*je)/pe,pt=(-oe*J+ie*je)/pe,xt=Qe-de,Yt=ut-Y,Et=Ze-de,Vt=pt-Y;return xt*xt+Yt*Yt>Et*Et+Vt*Vt&&(Qe=Ze,ut=pt),[[Qe-k,ut-L],[Qe*m/ve,ut*m/ve]]}function rh(){return!0}function nh(s){var f=Qa,m=Za,y=rh,x=Hi,w=x.key,P=.7;function C(k){var L=[],B=[],G=-1,V=k.length,ue,de=Or(f),Y=Or(m);function J(){L.push("M",x(s(B),P))}for(;++G<V;)y.call(this,ue=k[G],G)?B.push([+de.call(this,ue,G),+Y.call(this,ue,G)]):B.length&&(J(),B=[]);return B.length&&J(),L.length?L.join(""):null}return C.x=function(k){return arguments.length?(f=k,C):f},C.y=function(k){return arguments.length?(m=k,C):m},C.defined=function(k){return arguments.length?(y=k,C):y},C.interpolate=function(k){return arguments.length?(typeof k=="function"?w=x=k:w=(x=wu.get(k)||Hi).key,C):w},C.tension=function(k){return arguments.length?(P=k,C):P},C}t.svg.line=function(){return nh(We)};var wu=t.map({linear:Hi,"linear-closed":ih,step:ah,"step-before":_u,"step-after":ul,basis:Su,"basis-open":mf,"basis-closed":rs,bundle:ns,cardinal:ro,"cardinal-open":sg,"cardinal-closed":vf,monotone:E$});wu.forEach(function(s,f){f.key=s,f.closed=/-closed$/.test(s)});function Hi(s){return s.length>1?s.join("L"):s+"Z"}function ih(s){return s.join("L")+"Z"}function ah(s){for(var f=0,m=s.length,y=s[0],x=[y[0],",",y[1]];++f<m;)x.push("H",(y[0]+(y=s[f])[0])/2,"V",y[1]);return m>1&&x.push("H",y[0]),x.join("")}function _u(s){for(var f=0,m=s.length,y=s[0],x=[y[0],",",y[1]];++f<m;)x.push("V",(y=s[f])[1],"H",y[0]);return x.join("")}function ul(s){for(var f=0,m=s.length,y=s[0],x=[y[0],",",y[1]];++f<m;)x.push("H",(y=s[f])[0],"V",y[1]);return x.join("")}function sg(s,f){return s.length<4?Hi(s):s[1]+cl(s.slice(1,-1),Ao(s,f))}function vf(s,f){return s.length<3?ih(s):s[0]+cl((s.push(s[0]),s),Ao([s[s.length-2]].concat(s,[s[1]]),f))}function ro(s,f){return s.length<3?Hi(s):s[0]+cl(s,Ao(s,f))}function cl(s,f){if(f.length<1||s.length!=f.length&&s.length!=f.length+2)return Hi(s);var m=s.length!=f.length,y="",x=s[0],w=s[1],P=f[0],C=P,k=1;if(m&&(y+="Q"+(w[0]-P[0]*2/3)+","+(w[1]-P[1]*2/3)+","+w[0]+","+w[1],x=s[1],k=2),f.length>1){C=f[1],w=s[k],k++,y+="C"+(x[0]+P[0])+","+(x[1]+P[1])+","+(w[0]-C[0])+","+(w[1]-C[1])+","+w[0]+","+w[1];for(var L=2;L<f.length;L++,k++)w=s[k],C=f[L],y+="S"+(w[0]-C[0])+","+(w[1]-C[1])+","+w[0]+","+w[1]}if(m){var B=s[k];y+="Q"+(w[0]+C[0]*2/3)+","+(w[1]+C[1]*2/3)+","+B[0]+","+B[1]}return y}function Ao(s,f){for(var m=[],y=(1-f)/2,x,w=s[0],P=s[1],C=1,k=s.length;++C<k;)x=w,w=P,P=s[C],m.push([y*(P[0]-x[0]),y*(P[1]-x[1])]);return m}function Su(s){if(s.length<3)return Hi(s);var f=1,m=s.length,y=s[0],x=y[0],w=y[1],P=[x,x,x,(y=s[1])[0]],C=[w,w,w,y[1]],k=[x,",",w,"L",Hn(fa,P),",",Hn(fa,C)];for(s.push(s[m-1]);++f<=m;)y=s[f],P.shift(),P.push(y[0]),C.shift(),C.push(y[1]),Eu(k,P,C);return s.pop(),k.push("L",y),k.join("")}function mf(s){if(s.length<4)return Hi(s);for(var f=[],m=-1,y=s.length,x,w=[0],P=[0];++m<3;)x=s[m],w.push(x[0]),P.push(x[1]);for(f.push(Hn(fa,w)+","+Hn(fa,P)),--m;++m<y;)x=s[m],w.shift(),w.push(x[0]),P.shift(),P.push(x[1]),Eu(f,w,P);return f.join("")}function rs(s){for(var f,m=-1,y=s.length,x=y+4,w,P=[],C=[];++m<4;)w=s[m%y],P.push(w[0]),C.push(w[1]);for(f=[Hn(fa,P),",",Hn(fa,C)],--m;++m<x;)w=s[m%y],P.shift(),P.push(w[0]),C.shift(),C.push(w[1]),Eu(f,P,C);return f.join("")}function ns(s,f){var m=s.length-1;if(m)for(var y=s[0][0],x=s[0][1],w=s[m][0]-y,P=s[m][1]-x,C=-1,k,L;++C<=m;)k=s[C],L=C/m,k[0]=f*k[0]+(1-f)*(y+L*w),k[1]=f*k[1]+(1-f)*(x+L*P);return Su(s)}function Hn(s,f){return s[0]*f[0]+s[1]*f[1]+s[2]*f[2]+s[3]*f[3]}var gf=[0,2/3,1/3,0],yf=[0,1/3,2/3,0],fa=[0,1/6,2/3,1/6];function Eu(s,f,m){s.push("C",Hn(gf,f),",",Hn(gf,m),",",Hn(yf,f),",",Hn(yf,m),",",Hn(fa,f),",",Hn(fa,m))}function Au(s,f){return(f[1]-s[1])/(f[0]-s[0])}function is(s){for(var f=0,m=s.length-1,y=[],x=s[0],w=s[1],P=y[0]=Au(x,w);++f<m;)y[f]=(P+(P=Au(x=w,w=s[f+1])))/2;return y[f]=P,y}function as(s){for(var f=[],m,y,x,w,P=is(s),C=-1,k=s.length-1;++C<k;)m=Au(s[C],s[C+1]),_(m)<hr?P[C]=P[C+1]=0:(y=P[C]/m,x=P[C+1]/m,w=y*y+x*x,w>9&&(w=m*3/Math.sqrt(w),P[C]=w*y,P[C+1]=w*x));for(C=-1;++C<=k;)w=(s[Math.min(k,C+1)][0]-s[Math.max(0,C-1)][0])/(6*(1+P[C]*P[C])),f.push([w||0,P[C]*w||0]);return f}function E$(s){return s.length<3?Hi(s):s[0]+cl(s,as(s))}t.svg.line.radial=function(){var s=nh(ug);return s.radius=s.x,delete s.x,s.angle=s.y,delete s.y,s};function ug(s){for(var f,m=-1,y=s.length,x,w;++m<y;)f=s[m],x=f[0],w=f[1]-Ca,f[0]=x*Math.cos(w),f[1]=x*Math.sin(w);return s}function oh(s){var f=Qa,m=Qa,y=0,x=Za,w=rh,P=Hi,C=P.key,k=P,L="L",B=.7;function G(V){var ue=[],de=[],Y=[],J=-1,ie=V.length,pe,ve=Or(f),oe=Or(y),je=f===m?function(){return ut}:Or(m),Qe=y===x?function(){return Ze}:Or(x),ut,Ze;function pt(){ue.push("M",P(s(Y),B),L,k(s(de.reverse()),B),"Z")}for(;++J<ie;)w.call(this,pe=V[J],J)?(de.push([ut=+ve.call(this,pe,J),Ze=+oe.call(this,pe,J)]),Y.push([+je.call(this,pe,J),+Qe.call(this,pe,J)])):de.length&&(pt(),de=[],Y=[]);return de.length&&pt(),ue.length?ue.join(""):null}return G.x=function(V){return arguments.length?(f=m=V,G):m},G.x0=function(V){return arguments.length?(f=V,G):f},G.x1=function(V){return arguments.length?(m=V,G):m},G.y=function(V){return arguments.length?(y=x=V,G):x},G.y0=function(V){return arguments.length?(y=V,G):y},G.y1=function(V){return arguments.length?(x=V,G):x},G.defined=function(V){return arguments.length?(w=V,G):w},G.interpolate=function(V){return arguments.length?(typeof V=="function"?C=P=V:C=(P=wu.get(V)||Hi).key,k=P.reverse||P,L=P.closed?"M":"L",G):C},G.tension=function(V){return arguments.length?(B=V,G):B},G}_u.reverse=ul,ul.reverse=_u,t.svg.area=function(){return oh(We)},t.svg.area.radial=function(){var s=oh(ug);return s.radius=s.x,delete s.x,s.innerRadius=s.x0,delete s.x0,s.outerRadius=s.x1,delete s.x1,s.angle=s.y,delete s.y,s.startAngle=s.y0,delete s.y0,s.endAngle=s.y1,delete s.y1,s};function lh(s){return s.source}function sh(s){return s.target}t.svg.chord=function(){var s=lh,f=sh,m=A$,y=eh,x=hf;function w(B,G){var V=P(this,s,B,G),ue=P(this,f,B,G);return"M"+V.p0+k(V.r,V.p1,V.a1-V.a0)+(C(V,ue)?L(V.r,V.p1,V.r,V.p0):L(V.r,V.p1,ue.r,ue.p0)+k(ue.r,ue.p1,ue.a1-ue.a0)+L(ue.r,ue.p1,V.r,V.p0))+"Z"}function P(B,G,V,ue){var de=G.call(B,V,ue),Y=m.call(B,de,ue),J=y.call(B,de,ue)-Ca,ie=x.call(B,de,ue)-Ca;return{r:Y,a0:J,a1:ie,p0:[Y*Math.cos(J),Y*Math.sin(J)],p1:[Y*Math.cos(ie),Y*Math.sin(ie)]}}function C(B,G){return B.a0==G.a0&&B.a1==G.a1}function k(B,G,V){return"A"+B+","+B+" 0 "+ +(V>Xa)+",1 "+G}function L(B,G,V,ue){return"Q 0,0 "+ue}return w.radius=function(B){return arguments.length?(m=Or(B),w):m},w.source=function(B){return arguments.length?(s=Or(B),w):s},w.target=function(B){return arguments.length?(f=Or(B),w):f},w.startAngle=function(B){return arguments.length?(y=Or(B),w):y},w.endAngle=function(B){return arguments.length?(x=Or(B),w):x},w};function A$(s){return s.radius}t.svg.diagonal=function(){var s=lh,f=sh,m=fl;function y(x,w){var P=s.call(this,x,w),C=f.call(this,x,w),k=(P.y+C.y)/2,L=[P,{x:P.x,y:k},{x:C.x,y:k},C];return L=L.map(m),"M"+L[0]+"C"+L[1]+" "+L[2]+" "+L[3]}return y.source=function(x){return arguments.length?(s=Or(x),y):s},y.target=function(x){return arguments.length?(f=Or(x),y):f},y.projection=function(x){return arguments.length?(m=x,y):m},y};function fl(s){return[s.x,s.y]}t.svg.diagonal.radial=function(){var s=t.svg.diagonal(),f=fl,m=s.projection;return s.projection=function(y){return arguments.length?m(uh(f=y)):f},s};function uh(s){return function(){var f=s.apply(this,arguments),m=f[0],y=f[1]-Ca;return[m*Math.cos(y),m*Math.sin(y)]}}t.svg.symbol=function(){var s=T$,f=C$;function m(y,x){return(fg.get(s.call(this,y,x))||cg)(f.call(this,y,x))}return m.type=function(y){return arguments.length?(s=Or(y),m):s},m.size=function(y){return arguments.length?(f=Or(y),m):f},m};function C$(){return 64}function T$(){return"circle"}function cg(s){var f=Math.sqrt(s/Xa);return"M0,"+f+"A"+f+","+f+" 0 1,1 0,"+-f+"A"+f+","+f+" 0 1,1 0,"+f+"Z"}var fg=t.map({circle:cg,cross:function(s){var f=Math.sqrt(s/5)/2;return"M"+-3*f+","+-f+"H"+-f+"V"+-3*f+"H"+f+"V"+-f+"H"+3*f+"V"+f+"H"+f+"V"+3*f+"H"+-f+"V"+f+"H"+-3*f+"Z"},diamond:function(s){var f=Math.sqrt(s/(2*dg)),m=f*dg;return"M0,"+-f+"L"+m+",0 0,"+f+" "+-m+",0Z"},square:function(s){var f=Math.sqrt(s)/2;return"M"+-f+","+-f+"L"+f+","+-f+" "+f+","+f+" "+-f+","+f+"Z"},"triangle-down":function(s){var f=Math.sqrt(s/bf),m=f*bf/2;return"M0,"+m+"L"+f+","+-m+" "+-f+","+-m+"Z"},"triangle-up":function(s){var f=Math.sqrt(s/bf),m=f*bf/2;return"M0,"+-m+"L"+f+","+m+" "+-f+","+m+"Z"}});t.svg.symbolTypes=fg.keys();var bf=Math.sqrt(3),dg=Math.tan(30*a0);we.transition=function(s){for(var f=no||++xf,m=Tu(s),y=[],x,w,P=os||{time:Date.now(),ease:Xl,delay:0,duration:250},C=-1,k=this.length;++C<k;){y.push(x=[]);for(var L=this[C],B=-1,G=L.length;++B<G;)(w=L[B])&&ls(w,B,m,f,P),x.push(w)}return Cu(y,m,f)},we.interrupt=function(s){return this.each(s==null?$f:pg(Tu(s)))};var $f=pg(Tu());function pg(s){return function(){var f,m,y;(f=this[s])&&(y=f[m=f.active])&&(y.timer.c=null,y.timer.t=NaN,--f.count?delete f[m]:delete this[s],f.active+=.5,y.event&&y.event.interrupt.call(this,this.__data__,y.index))}}function Cu(s,f,m){return Gt(s,pn),s.namespace=f,s.id=m,s}var pn=[],xf=0,no,os;pn.call=we.call,pn.empty=we.empty,pn.node=we.node,pn.size=we.size,t.transition=function(s,f){return s&&s.transition?no?s.transition(f):s:t.selection().transition(s)},t.transition.prototype=pn,pn.select=function(s){var f=this.id,m=this.namespace,y=[],x,w,P;s=W(s);for(var C=-1,k=this.length;++C<k;){y.push(x=[]);for(var L=this[C],B=-1,G=L.length;++B<G;)(P=L[B])&&(w=s.call(P,P.__data__,B,C))?("__data__"in P&&(w.__data__=P.__data__),ls(w,B,m,f,P[m][f]),x.push(w)):x.push(null)}return Cu(y,m,f)},pn.selectAll=function(s){var f=this.id,m=this.namespace,y=[],x,w,P,C,k;s=le(s);for(var L=-1,B=this.length;++L<B;)for(var G=this[L],V=-1,ue=G.length;++V<ue;)if(P=G[V]){k=P[m][f],w=s.call(P,P.__data__,V,L),y.push(x=[]);for(var de=-1,Y=w.length;++de<Y;)(C=w[de])&&ls(C,de,m,f,k),x.push(C)}return Cu(y,m,f)},pn.filter=function(s){var f=[],m,y,x;typeof s!="function"&&(s=ru(s));for(var w=0,P=this.length;w<P;w++){f.push(m=[]);for(var y=this[w],C=0,k=y.length;C<k;C++)(x=y[C])&&s.call(x,x.__data__,C,w)&&m.push(x)}return Cu(f,this.namespace,this.id)},pn.tween=function(s,f){var m=this.id,y=this.namespace;return arguments.length<2?this.node()[y][m].tween.get(s):Aa(this,f==null?function(x){x[y][m].tween.remove(s)}:function(x){x[y][m].tween.set(s,f)})};function wf(s,f,m,y){var x=s.id,w=s.namespace;return Aa(s,typeof m=="function"?function(P,C,k){P[w][x].tween.set(f,y(m.call(P,P.__data__,C,k)))}:(m=y(m),function(P){P[w][x].tween.set(f,m)}))}pn.attr=function(s,f){if(arguments.length<2){for(f in s)this.attr(f,s[f]);return this}var m=s=="transform"?Fp:Ta,y=t.ns.qualify(s);function x(){this.removeAttribute(y)}function w(){this.removeAttributeNS(y.space,y.local)}function P(k){return k==null?x:(k+="",function(){var L=this.getAttribute(y),B;return L!==k&&(B=m(L,k),function(G){this.setAttribute(y,B(G))})})}function C(k){return k==null?w:(k+="",function(){var L=this.getAttributeNS(y.space,y.local),B;return L!==k&&(B=m(L,k),function(G){this.setAttributeNS(y.space,y.local,B(G))})})}return wf(this,"attr."+s,f,y.local?C:P)},pn.attrTween=function(s,f){var m=t.ns.qualify(s);function y(w,P){var C=f.call(this,w,P,this.getAttribute(m));return C&&function(k){this.setAttribute(m,C(k))}}function x(w,P){var C=f.call(this,w,P,this.getAttributeNS(m.space,m.local));return C&&function(k){this.setAttributeNS(m.space,m.local,C(k))}}return this.tween("attr."+s,m.local?x:y)},pn.style=function(s,f,m){var y=arguments.length;if(y<3){if(typeof s!="string"){y<2&&(f="");for(m in s)this.style(m,s[m],f);return this}m=""}function x(){this.style.removeProperty(s)}function w(P){return P==null?x:(P+="",function(){var C=o(this).getComputedStyle(this,null).getPropertyValue(s),k;return C!==P&&(k=Ta(C,P),function(L){this.style.setProperty(s,k(L),m)})})}return wf(this,"style."+s,f,w)},pn.styleTween=function(s,f,m){arguments.length<3&&(m="");function y(x,w){var P=f.call(this,x,w,o(this).getComputedStyle(this,null).getPropertyValue(s));return P&&function(C){this.style.setProperty(s,P(C),m)}}return this.tween("style."+s,y)},pn.text=function(s){return wf(this,"text",s,ch)};function ch(s){return s==null&&(s=""),function(){this.textContent=s}}pn.remove=function(){var s=this.namespace;return this.each("end.transition",function(){var f;this[s].count<2&&(f=this.parentNode)&&f.removeChild(this)})},pn.ease=function(s){var f=this.id,m=this.namespace;return arguments.length<1?this.node()[m][f].ease:(typeof s!="function"&&(s=t.ease.apply(t,arguments)),Aa(this,function(y){y[m][f].ease=s}))},pn.delay=function(s){var f=this.id,m=this.namespace;return arguments.length<1?this.node()[m][f].delay:Aa(this,typeof s=="function"?function(y,x,w){y[m][f].delay=+s.call(y,y.__data__,x,w)}:(s=+s,function(y){y[m][f].delay=s}))},pn.duration=function(s){var f=this.id,m=this.namespace;return arguments.length<1?this.node()[m][f].duration:Aa(this,typeof s=="function"?function(y,x,w){y[m][f].duration=Math.max(1,s.call(y,y.__data__,x,w))}:(s=Math.max(1,s),function(y){y[m][f].duration=s}))},pn.each=function(s,f){var m=this.id,y=this.namespace;if(arguments.length<2){var x=os,w=no;try{no=m,Aa(this,function(P,C,k){os=P[y][m],s.call(P,P.__data__,C,k)})}finally{os=x,no=w}}else Aa(this,function(P){var C=P[y][m];(C.event||(C.event=t.dispatch("start","end","interrupt"))).on(s,f)});return this},pn.transition=function(){for(var s=this.id,f=++xf,m=this.namespace,y=[],x,w,P,C,k=0,L=this.length;k<L;k++){y.push(x=[]);for(var w=this[k],B=0,G=w.length;B<G;B++)(P=w[B])&&(C=P[m][s],ls(P,B,m,f,{time:C.time,ease:C.ease,delay:C.delay+C.duration,duration:C.duration})),x.push(P)}return Cu(y,m,f)};function Tu(s){return s==null?"__transition__":"__transition_"+s+"__"}function ls(s,f,m,y,x){var w=s[m]||(s[m]={active:0,count:0}),P=w[y],C,k,L,B,G;function V(Y){var J=P.delay;if(k.t=J+C,J<=Y)return ue(Y-J);k.c=ue}function ue(Y){var J=w.active,ie=w[J];ie&&(ie.timer.c=null,ie.timer.t=NaN,--w.count,delete w[J],ie.event&&ie.event.interrupt.call(s,s.__data__,ie.index));for(var pe in w)if(+pe<y){var ve=w[pe];ve.timer.c=null,ve.timer.t=NaN,--w.count,delete w[pe]}k.c=de,Gl(function(){return k.c&&de(Y||1)&&(k.c=null,k.t=NaN),1},0,C),w.active=y,P.event&&P.event.start.call(s,s.__data__,f),G=[],P.tween.forEach(function(oe,je){(je=je.call(s,s.__data__,f))&&G.push(je)}),B=P.ease,L=P.duration}function de(Y){for(var J=Y/L,ie=B(J),pe=G.length;pe>0;)G[--pe].call(s,ie);if(J>=1)return P.event&&P.event.end.call(s,s.__data__,f),--w.count?delete w[y]:delete s[m],1}P||(C=x.time,k=Gl(V,0,C),P=w[y]={tween:new M,time:C,timer:k,delay:x.delay,duration:x.duration,ease:x.ease,index:f},x=null,++w.count)}t.svg.axis=function(){var s=t.scale.linear(),f=fh,m=6,y=6,x=3,w=[10],P=null,C;function k(L){L.each(function(){var B=t.select(this),G=this.__chart__||s,V=this.__chart__=s.copy(),ue=P??(V.ticks?V.ticks.apply(V,w):V.domain()),de=C??(V.tickFormat?V.tickFormat.apply(V,w):We),Y=B.selectAll(".tick").data(ue,V),J=Y.enter().insert("g",".domain").attr("class","tick").style("opacity",hr),ie=t.transition(Y.exit()).style("opacity",hr).remove(),pe=t.transition(Y.order()).style("opacity",1),ve=Math.max(m,0)+x,oe,je=uf(V),Qe=B.selectAll(".domain").data([0]),ut=(Qe.enter().append("path").attr("class","domain"),t.transition(Qe));J.append("line"),J.append("text");var Ze=J.select("line"),pt=pe.select("line"),xt=Y.select("text").text(de),Yt=J.select("text"),Et=pe.select("text"),Vt=f==="top"||f==="left"?-1:1,gr,en,Cr,ct;if(f==="bottom"||f==="top"?(oe=ph,gr="x",Cr="y",en="x2",ct="y2",xt.attr("dy",Vt<0?"0em":".71em").style("text-anchor","middle"),ut.attr("d","M"+je[0]+","+Vt*y+"V0H"+je[1]+"V"+Vt*y)):(oe=hh,gr="y",Cr="x",en="y2",ct="x2",xt.attr("dy",".32em").style("text-anchor",Vt<0?"end":"start"),ut.attr("d","M"+Vt*y+","+je[0]+"H0V"+je[1]+"H"+Vt*y)),Ze.attr(ct,Vt*m),Yt.attr(Cr,Vt*ve),pt.attr(en,0).attr(ct,Vt*m),Et.attr(gr,0).attr(Cr,Vt*ve),V.rangeBand){var Xt=V,Zt=Xt.rangeBand()/2;G=V=function(yr){return Xt(yr)+Zt}}else G.rangeBand?G=V:ie.call(oe,V,G);J.call(oe,G,V),pe.call(oe,V,V)})}return k.scale=function(L){return arguments.length?(s=L,k):s},k.orient=function(L){return arguments.length?(f=L in dh?L+"":fh,k):f},k.ticks=function(){return arguments.length?(w=n(arguments),k):w},k.tickValues=function(L){return arguments.length?(P=L,k):P},k.tickFormat=function(L){return arguments.length?(C=L,k):C},k.tickSize=function(L){var B=arguments.length;return B?(m=+L,y=+arguments[B-1],k):m},k.innerTickSize=function(L){return arguments.length?(m=+L,k):m},k.outerTickSize=function(L){return arguments.length?(y=+L,k):y},k.tickPadding=function(L){return arguments.length?(x=+L,k):x},k.tickSubdivide=function(){return arguments.length&&k},k};var fh="bottom",dh={top:1,right:1,bottom:1,left:1};function ph(s,f,m){s.attr("transform",function(y){var x=f(y);return"translate("+(isFinite(x)?x:m(y))+",0)"})}function hh(s,f,m){s.attr("transform",function(y){var x=f(y);return"translate(0,"+(isFinite(x)?x:m(y))+")"})}t.svg.brush=function(){var s=ft(B,"brushstart","brush","brushend"),f=null,m=null,y=[0,0],x=[0,0],w,P,C=!0,k=!0,L=Pu[0];function B(Y){Y.each(function(){var J=t.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",de).on("touchstart.brush",de),ie=J.selectAll(".background").data([0]);ie.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),J.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var pe=J.selectAll(".resize").data(L,We);pe.exit().remove(),pe.enter().append("g").attr("class",function(Qe){return"resize "+Qe}).style("cursor",function(Qe){return vh[Qe]}).append("rect").attr("x",function(Qe){return/[ew]$/.test(Qe)?-3:null}).attr("y",function(Qe){return/^[ns]/.test(Qe)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),pe.style("display",B.empty()?"none":null);var ve=t.transition(J),oe=t.transition(ie),je;f&&(je=uf(f),oe.attr("x",je[0]).attr("width",je[1]-je[0]),V(ve)),m&&(je=uf(m),oe.attr("y",je[0]).attr("height",je[1]-je[0]),ue(ve)),G(ve)})}B.event=function(Y){Y.each(function(){var J=s.of(this,arguments),ie={x:y,y:x,i:w,j:P},pe=this.__chart__||ie;this.__chart__=ie,no?t.select(this).transition().each("start.brush",function(){w=pe.i,P=pe.j,y=pe.x,x=pe.y,J({type:"brushstart"})}).tween("brush:brush",function(){var ve=_i(y,ie.x),oe=_i(x,ie.y);return w=P=null,function(je){y=ie.x=ve(je),x=ie.y=oe(je),J({type:"brush",mode:"resize"})}}).each("end.brush",function(){w=ie.i,P=ie.j,J({type:"brush",mode:"resize"}),J({type:"brushend"})}):(J({type:"brushstart"}),J({type:"brush",mode:"resize"}),J({type:"brushend"}))})};function G(Y){Y.selectAll(".resize").attr("transform",function(J){return"translate("+y[+/e$/.test(J)]+","+x[+/^s/.test(J)]+")"})}function V(Y){Y.select(".extent").attr("x",y[0]),Y.selectAll(".extent,.n>rect,.s>rect").attr("width",y[1]-y[0])}function ue(Y){Y.select(".extent").attr("y",x[0]),Y.selectAll(".extent,.e>rect,.w>rect").attr("height",x[1]-x[0])}function de(){var Y=this,J=t.select(t.event.target),ie=s.of(Y,arguments),pe=t.select(Y),ve=J.datum(),oe=!/^(n|s)$/.test(ve)&&f,je=!/^(e|w)$/.test(ve)&&m,Qe=J.classed("extent"),ut=zc(Y),Ze,pt=t.mouse(Y),xt,Yt=t.select(o(Y)).on("keydown.brush",gr).on("keyup.brush",en);if(t.event.changedTouches?Yt.on("touchmove.brush",Cr).on("touchend.brush",Xt):Yt.on("mousemove.brush",Cr).on("mouseup.brush",Xt),pe.interrupt().selectAll("*").interrupt(),Qe)pt[0]=y[0]-pt[0],pt[1]=x[0]-pt[1];else if(ve){var Et=+/w$/.test(ve),Vt=+/^n/.test(ve);xt=[y[1-Et]-pt[0],x[1-Vt]-pt[1]],pt[0]=y[Et],pt[1]=x[Vt]}else t.event.altKey&&(Ze=pt.slice());pe.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",J.style("cursor")),ie({type:"brushstart"}),Cr();function gr(){t.event.keyCode==32&&(Qe||(Ze=null,pt[0]-=y[1],pt[1]-=x[1],Qe=2),Ge())}function en(){t.event.keyCode==32&&Qe==2&&(pt[0]+=y[1],pt[1]+=x[1],Qe=0,Ge())}function Cr(){var Zt=t.mouse(Y),yr=!1;xt&&(Zt[0]+=xt[0],Zt[1]+=xt[1]),Qe||(t.event.altKey?(Ze||(Ze=[(y[0]+y[1])/2,(x[0]+x[1])/2]),pt[0]=y[+(Zt[0]<Ze[0])],pt[1]=x[+(Zt[1]<Ze[1])]):Ze=null),oe&&ct(Zt,f,0)&&(V(pe),yr=!0),je&&ct(Zt,m,1)&&(ue(pe),yr=!0),yr&&(G(pe),ie({type:"brush",mode:Qe?"move":"resize"}))}function ct(Zt,yr,Vr){var hn=uf(yr),Pn=hn[0],ei=hn[1],hi=pt[Vr],Gn=Vr?x:y,Si=Gn[1]-Gn[0],F,X;if(Qe&&(Pn-=hi,ei-=Si+hi),F=(Vr?k:C)?Math.max(Pn,Math.min(ei,Zt[Vr])):Zt[Vr],Qe?X=(F+=hi)+Si:(Ze&&(hi=Math.max(Pn,Math.min(ei,2*Ze[Vr]-F))),hi<F?(X=F,F=hi):X=hi),Gn[0]!=F||Gn[1]!=X)return Vr?P=null:w=null,Gn[0]=F,Gn[1]=X,!0}function Xt(){Cr(),pe.style("pointer-events","all").selectAll(".resize").style("display",B.empty()?"none":null),t.select("body").style("cursor",null),Yt.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),ut(),ie({type:"brushend"})}}return B.x=function(Y){return arguments.length?(f=Y,L=Pu[!f<<1|!m],B):f},B.y=function(Y){return arguments.length?(m=Y,L=Pu[!f<<1|!m],B):m},B.clamp=function(Y){return arguments.length?(f&&m?(C=!!Y[0],k=!!Y[1]):f?C=!!Y:m&&(k=!!Y),B):f&&m?[C,k]:f?C:m?k:null},B.extent=function(Y){var J,ie,pe,ve,oe;return arguments.length?(f&&(J=Y[0],ie=Y[1],m&&(J=J[0],ie=ie[0]),w=[J,ie],f.invert&&(J=f(J),ie=f(ie)),ie<J&&(oe=J,J=ie,ie=oe),(J!=y[0]||ie!=y[1])&&(y=[J,ie])),m&&(pe=Y[0],ve=Y[1],f&&(pe=pe[1],ve=ve[1]),P=[pe,ve],m.invert&&(pe=m(pe),ve=m(ve)),ve<pe&&(oe=pe,pe=ve,ve=oe),(pe!=x[0]||ve!=x[1])&&(x=[pe,ve])),B):(f&&(w?(J=w[0],ie=w[1]):(J=y[0],ie=y[1],f.invert&&(J=f.invert(J),ie=f.invert(ie)),ie<J&&(oe=J,J=ie,ie=oe))),m&&(P?(pe=P[0],ve=P[1]):(pe=x[0],ve=x[1],m.invert&&(pe=m.invert(pe),ve=m.invert(ve)),ve<pe&&(oe=pe,pe=ve,ve=oe))),f&&m?[[J,pe],[ie,ve]]:f?[J,ie]:m&&[pe,ve])},B.clear=function(){return B.empty()||(y=[0,0],x=[0,0],w=P=null),B},B.empty=function(){return!!f&&y[0]==y[1]||!!m&&x[0]==x[1]},t.rebind(B,s,"on")};var vh={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Pu=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]];t.text=yp(function(s){return s.responseText}),t.json=function(s,f){return Vc(s,"application/json",mh,f)};function mh(s){return JSON.parse(s.responseText)}t.html=function(s,f){return Vc(s,"text/html",gh,f)};function gh(s){var f=i.createRange();return f.selectNode(i.body),f.createContextualFragment(s.responseText)}t.xml=yp(function(s){return s.responseXML}),e.exports?e.exports=t:this.d3=t}).apply(self)})(SZ);var _Ee=SZ.exports,hw=new Date,vw=new Date;function Jn(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 u=[],c;if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return u;do u.push(c=new Date(+a)),t(a,l),e(a);while(c<a&&a<o);return u},i.filter=function(a){return Jn(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 hw.setTime(+a),vw.setTime(+o),e(hw),e(vw),Math.floor(r(hw,vw))},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 ab=Jn(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});ab.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Jn(function(t){t.setTime(Math.floor(t/e)*e)},function(t,r){t.setTime(+t+r*e)},function(t,r){return(r-t)/e}):ab};const NL=ab;var LL=ab.range,ob=1e3,pc=6e4,lb=36e5,EZ=864e5,AZ=6048e5,CZ=Jn(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*ob)},function(e,t){return(t-e)/ob},function(e){return e.getUTCSeconds()});const DL=CZ;var BL=CZ.range,TZ=Jn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ob)},function(e,t){e.setTime(+e+t*pc)},function(e,t){return(t-e)/pc},function(e){return e.getMinutes()});const d2e=TZ;var p2e=TZ.range,PZ=Jn(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ob-e.getMinutes()*pc)},function(e,t){e.setTime(+e+t*lb)},function(e,t){return(t-e)/lb},function(e){return e.getHours()});const h2e=PZ;var v2e=PZ.range,MZ=Jn(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())*pc)/EZ},function(e){return e.getDate()-1});const gO=MZ;var m2e=MZ.range;function kc(e){return Jn(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())*pc)/AZ})}var sb=kc(0),nm=kc(1),OZ=kc(2),RZ=kc(3),hc=kc(4),IZ=kc(5),kZ=kc(6),zL=sb.range,g2e=nm.range,y2e=OZ.range,b2e=RZ.range,$2e=hc.range,x2e=IZ.range,w2e=kZ.range,FZ=Jn(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 _2e=FZ;var S2e=FZ.range,yO=Jn(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()});yO.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Jn(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 zd=yO;var E2e=yO.range,NZ=Jn(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*pc)},function(e,t){return(t-e)/pc},function(e){return e.getUTCMinutes()});const A2e=NZ;var C2e=NZ.range,LZ=Jn(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*lb)},function(e,t){return(t-e)/lb},function(e){return e.getUTCHours()});const T2e=LZ;var P2e=LZ.range,DZ=Jn(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/EZ},function(e){return e.getUTCDate()-1});const bO=DZ;var M2e=DZ.range;function Fc(e){return Jn(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)/AZ})}var ub=Fc(0),im=Fc(1),BZ=Fc(2),zZ=Fc(3),vc=Fc(4),UZ=Fc(5),jZ=Fc(6),UL=ub.range,O2e=im.range,R2e=BZ.range,I2e=zZ.range,k2e=vc.range,F2e=UZ.range,N2e=jZ.range,HZ=Jn(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 L2e=HZ;var D2e=HZ.range,$O=Jn(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()});$O.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Jn(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 Ud=$O;var B2e=$O.range;const z2e=Object.freeze(Object.defineProperty({__proto__:null,timeDay:gO,timeDays:m2e,timeFriday:IZ,timeFridays:x2e,timeHour:h2e,timeHours:v2e,timeInterval:Jn,timeMillisecond:NL,timeMilliseconds:LL,timeMinute:d2e,timeMinutes:p2e,timeMonday:nm,timeMondays:g2e,timeMonth:_2e,timeMonths:S2e,timeSaturday:kZ,timeSaturdays:w2e,timeSecond:DL,timeSeconds:BL,timeSunday:sb,timeSundays:zL,timeThursday:hc,timeThursdays:$2e,timeTuesday:OZ,timeTuesdays:y2e,timeWednesday:RZ,timeWednesdays:b2e,timeWeek:sb,timeWeeks:zL,timeYear:zd,timeYears:E2e,utcDay:bO,utcDays:M2e,utcFriday:UZ,utcFridays:F2e,utcHour:T2e,utcHours:P2e,utcMillisecond:NL,utcMilliseconds:LL,utcMinute:A2e,utcMinutes:C2e,utcMonday:im,utcMondays:O2e,utcMonth:L2e,utcMonths:D2e,utcSaturday:jZ,utcSaturdays:N2e,utcSecond:DL,utcSeconds:BL,utcSunday:ub,utcSundays:UL,utcThursday:vc,utcThursdays:k2e,utcTuesday:BZ,utcTuesdays:R2e,utcWednesday:zZ,utcWednesdays:I2e,utcWeek:ub,utcWeeks:UL,utcYear:Ud,utcYears:B2e},Symbol.toStringTag,{value:"Module"}));function mw(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 gw(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 Bh(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function GZ(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,u=e.shortMonths,c=zh(i),d=Uh(i),h=zh(a),p=Uh(a),v=zh(o),$=Uh(o),S=zh(l),g=Uh(l),b=zh(u),_=Uh(u),E={a:Ae,A:$e,b:rt,B:Be,c:null,d:KL,e:KL,f:u$e,g:b$e,G:x$e,H:o$e,I:l$e,j:s$e,L:WZ,m:c$e,M:f$e,p:Ee,q:Ke,Q:XL,s:QL,S:d$e,u:p$e,U:h$e,V:v$e,w:m$e,W:g$e,x:null,X:null,y:y$e,Y:$$e,Z:w$e,"%":YL},A={a:Ge,A:Fe,b:ft,B:bt,c:null,d:qL,e:qL,f:A$e,g:N$e,G:D$e,H:_$e,I:S$e,j:E$e,L:KZ,m:C$e,M:T$e,p:Gt,q:qt,Q:XL,s:QL,S:P$e,u:M$e,U:O$e,V:R$e,w:I$e,W:k$e,x:null,X:null,y:F$e,Y:L$e,Z:B$e,"%":YL},M={a:he,A:q,b:fe,B:ne,c:ce,d:WL,e:WL,f:r$e,g:GL,G:HL,H:VL,I:VL,j:Z2e,L:t$e,m:Q2e,M:J2e,p:j,q:X2e,Q:i$e,s:a$e,S:e$e,u:W2e,U:V2e,V:K2e,w:G2e,W:q2e,x:De,X:We,y:GL,Y:HL,Z:Y2e,"%":n$e};E.x=N(r,E),E.X=N(n,E),E.c=N(t,E),A.x=N(r,A),A.X=N(n,A),A.c=N(t,A);function N(nt,At){return function(Wt){var we=[],W=-1,le=0,R=nt.length,T,O,H;for(Wt instanceof Date||(Wt=new Date(+Wt));++W<R;)nt.charCodeAt(W)===37&&(we.push(nt.slice(le,W)),(O=jL[T=nt.charAt(++W)])!=null?T=nt.charAt(++W):O=T==="e"?" ":"0",(H=At[T])&&(T=H(Wt,O)),we.push(T),le=W+1);return we.push(nt.slice(le,W)),we.join("")}}function U(nt,At){return function(Wt){var we=Bh(1900,void 0,1),W=I(we,nt,Wt+="",0),le,R;if(W!=Wt.length)return null;if("Q"in we)return new Date(we.Q);if("s"in we)return new Date(we.s*1e3+("L"in we?we.L:0));if(At&&!("Z"in we)&&(we.Z=0),"p"in we&&(we.H=we.H%12+we.p*12),we.m===void 0&&(we.m="q"in we?we.q:0),"V"in we){if(we.V<1||we.V>53)return null;"w"in we||(we.w=1),"Z"in we?(le=gw(Bh(we.y,0,1)),R=le.getUTCDay(),le=R>4||R===0?im.ceil(le):im(le),le=bO.offset(le,(we.V-1)*7),we.y=le.getUTCFullYear(),we.m=le.getUTCMonth(),we.d=le.getUTCDate()+(we.w+6)%7):(le=mw(Bh(we.y,0,1)),R=le.getDay(),le=R>4||R===0?nm.ceil(le):nm(le),le=gO.offset(le,(we.V-1)*7),we.y=le.getFullYear(),we.m=le.getMonth(),we.d=le.getDate()+(we.w+6)%7)}else("W"in we||"U"in we)&&("w"in we||(we.w="u"in we?we.u%7:"W"in we?1:0),R="Z"in we?gw(Bh(we.y,0,1)).getUTCDay():mw(Bh(we.y,0,1)).getDay(),we.m=0,we.d="W"in we?(we.w+6)%7+we.W*7-(R+5)%7:we.w+we.U*7-(R+6)%7);return"Z"in we?(we.H+=we.Z/100|0,we.M+=we.Z%100,gw(we)):mw(we)}}function I(nt,At,Wt,we){for(var W=0,le=At.length,R=Wt.length,T,O;W<le;){if(we>=R)return-1;if(T=At.charCodeAt(W++),T===37){if(T=At.charAt(W++),O=M[T in jL?At.charAt(W++):T],!O||(we=O(nt,Wt,we))<0)return-1}else if(T!=Wt.charCodeAt(we++))return-1}return we}function j(nt,At,Wt){var we=c.exec(At.slice(Wt));return we?(nt.p=d[we[0].toLowerCase()],Wt+we[0].length):-1}function he(nt,At,Wt){var we=v.exec(At.slice(Wt));return we?(nt.w=$[we[0].toLowerCase()],Wt+we[0].length):-1}function q(nt,At,Wt){var we=h.exec(At.slice(Wt));return we?(nt.w=p[we[0].toLowerCase()],Wt+we[0].length):-1}function fe(nt,At,Wt){var we=b.exec(At.slice(Wt));return we?(nt.m=_[we[0].toLowerCase()],Wt+we[0].length):-1}function ne(nt,At,Wt){var we=S.exec(At.slice(Wt));return we?(nt.m=g[we[0].toLowerCase()],Wt+we[0].length):-1}function ce(nt,At,Wt){return I(nt,t,At,Wt)}function De(nt,At,Wt){return I(nt,r,At,Wt)}function We(nt,At,Wt){return I(nt,n,At,Wt)}function Ae(nt){return o[nt.getDay()]}function $e(nt){return a[nt.getDay()]}function rt(nt){return u[nt.getMonth()]}function Be(nt){return l[nt.getMonth()]}function Ee(nt){return i[+(nt.getHours()>=12)]}function Ke(nt){return 1+~~(nt.getMonth()/3)}function Ge(nt){return o[nt.getUTCDay()]}function Fe(nt){return a[nt.getUTCDay()]}function ft(nt){return u[nt.getUTCMonth()]}function bt(nt){return l[nt.getUTCMonth()]}function Gt(nt){return i[+(nt.getUTCHours()>=12)]}function qt(nt){return 1+~~(nt.getUTCMonth()/3)}return{format:function(nt){var At=N(nt+="",E);return At.toString=function(){return nt},At},parse:function(nt){var At=U(nt+="",!1);return At.toString=function(){return nt},At},utcFormat:function(nt){var At=N(nt+="",A);return At.toString=function(){return nt},At},utcParse:function(nt){var At=U(nt+="",!0);return At.toString=function(){return nt},At}}}var jL={"-":"",_:" ",0:"0"},pi=/^\s*\d+/,U2e=/^%/,j2e=/[\\^$*+?|[\]().{}]/g;function kr(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 H2e(e){return e.replace(j2e,"\\$&")}function zh(e){return new RegExp("^(?:"+e.map(H2e).join("|")+")","i")}function Uh(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function G2e(e,t,r){var n=pi.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function W2e(e,t,r){var n=pi.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function V2e(e,t,r){var n=pi.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function K2e(e,t,r){var n=pi.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function q2e(e,t,r){var n=pi.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function HL(e,t,r){var n=pi.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function GL(e,t,r){var n=pi.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Y2e(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 X2e(e,t,r){var n=pi.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Q2e(e,t,r){var n=pi.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function WL(e,t,r){var n=pi.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Z2e(e,t,r){var n=pi.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function VL(e,t,r){var n=pi.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function J2e(e,t,r){var n=pi.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function e$e(e,t,r){var n=pi.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function t$e(e,t,r){var n=pi.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function r$e(e,t,r){var n=pi.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function n$e(e,t,r){var n=U2e.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function i$e(e,t,r){var n=pi.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function a$e(e,t,r){var n=pi.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function KL(e,t){return kr(e.getDate(),t,2)}function o$e(e,t){return kr(e.getHours(),t,2)}function l$e(e,t){return kr(e.getHours()%12||12,t,2)}function s$e(e,t){return kr(1+gO.count(zd(e),e),t,3)}function WZ(e,t){return kr(e.getMilliseconds(),t,3)}function u$e(e,t){return WZ(e,t)+"000"}function c$e(e,t){return kr(e.getMonth()+1,t,2)}function f$e(e,t){return kr(e.getMinutes(),t,2)}function d$e(e,t){return kr(e.getSeconds(),t,2)}function p$e(e){var t=e.getDay();return t===0?7:t}function h$e(e,t){return kr(sb.count(zd(e)-1,e),t,2)}function VZ(e){var t=e.getDay();return t>=4||t===0?hc(e):hc.ceil(e)}function v$e(e,t){return e=VZ(e),kr(hc.count(zd(e),e)+(zd(e).getDay()===4),t,2)}function m$e(e){return e.getDay()}function g$e(e,t){return kr(nm.count(zd(e)-1,e),t,2)}function y$e(e,t){return kr(e.getFullYear()%100,t,2)}function b$e(e,t){return e=VZ(e),kr(e.getFullYear()%100,t,2)}function $$e(e,t){return kr(e.getFullYear()%1e4,t,4)}function x$e(e,t){var r=e.getDay();return e=r>=4||r===0?hc(e):hc.ceil(e),kr(e.getFullYear()%1e4,t,4)}function w$e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+kr(t/60|0,"0",2)+kr(t%60,"0",2)}function qL(e,t){return kr(e.getUTCDate(),t,2)}function _$e(e,t){return kr(e.getUTCHours(),t,2)}function S$e(e,t){return kr(e.getUTCHours()%12||12,t,2)}function E$e(e,t){return kr(1+bO.count(Ud(e),e),t,3)}function KZ(e,t){return kr(e.getUTCMilliseconds(),t,3)}function A$e(e,t){return KZ(e,t)+"000"}function C$e(e,t){return kr(e.getUTCMonth()+1,t,2)}function T$e(e,t){return kr(e.getUTCMinutes(),t,2)}function P$e(e,t){return kr(e.getUTCSeconds(),t,2)}function M$e(e){var t=e.getUTCDay();return t===0?7:t}function O$e(e,t){return kr(ub.count(Ud(e)-1,e),t,2)}function qZ(e){var t=e.getUTCDay();return t>=4||t===0?vc(e):vc.ceil(e)}function R$e(e,t){return e=qZ(e),kr(vc.count(Ud(e),e)+(Ud(e).getUTCDay()===4),t,2)}function I$e(e){return e.getUTCDay()}function k$e(e,t){return kr(im.count(Ud(e)-1,e),t,2)}function F$e(e,t){return kr(e.getUTCFullYear()%100,t,2)}function N$e(e,t){return e=qZ(e),kr(e.getUTCFullYear()%100,t,2)}function L$e(e,t){return kr(e.getUTCFullYear()%1e4,t,4)}function D$e(e,t){var r=e.getUTCDay();return e=r>=4||r===0?vc(e):vc.ceil(e),kr(e.getUTCFullYear()%1e4,t,4)}function B$e(){return"+0000"}function YL(){return"%"}function XL(e){return+e}function QL(e){return Math.floor(+e/1e3)}var kf,YZ,XZ,xO,wO;QZ({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 QZ(e){return kf=GZ(e),YZ=kf.format,XZ=kf.parse,xO=kf.utcFormat,wO=kf.utcParse,kf}var ZZ="%Y-%m-%dT%H:%M:%S.%LZ";function z$e(e){return e.toISOString()}var U$e=Date.prototype.toISOString?z$e:xO(ZZ);const j$e=U$e;function H$e(e){var t=new Date(e);return isNaN(t)?null:t}var G$e=+new Date("2000-01-01T00:00:00.000Z")?H$e:wO(ZZ);const W$e=G$e,V$e=Object.freeze(Object.defineProperty({__proto__:null,isoFormat:j$e,isoParse:W$e,get timeFormat(){return YZ},timeFormatDefaultLocale:QZ,timeFormatLocale:GZ,get timeParse(){return XZ},get utcFormat(){return xO},get utcParse(){return wO}},Symbol.toStringTag,{value:"Module"})),SEe=bc(V$e);function K$e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function cb(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 jd(e){return e=cb(Math.abs(e)),e?e[1]:NaN}function q$e(e,t){return function(r,n){for(var i=r.length,a=[],o=0,l=e[0],u=0;i>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),a.push(r.substring(i-=l,i+l)),!((u+=l+1)>n));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Y$e(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var X$e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function fb(e){if(!(t=X$e.exec(e)))throw new Error("invalid format: "+e);var t;return new w2({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]})}fb.prototype=w2.prototype;function w2(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+""}w2.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 Q$e(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 JZ;function Z$e(e,t){var r=cb(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(JZ=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")+cb(e,Math.max(0,t+a-1))[0]}function ZL(e,t){var r=cb(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 JL={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:K$e,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 ZL(e*100,t)},r:ZL,s:Z$e,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function eD(e){return e}var tD=Array.prototype.map,rD=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function eJ(e){var t=e.grouping===void 0||e.thousands===void 0?eD:q$e(tD.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?eD:Y$e(tD.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"-":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(h){h=fb(h);var p=h.fill,v=h.align,$=h.sign,S=h.symbol,g=h.zero,b=h.width,_=h.comma,E=h.precision,A=h.trim,M=h.type;M==="n"?(_=!0,M="g"):JL[M]||(E===void 0&&(E=12),A=!0,M="g"),(g||p==="0"&&v==="=")&&(g=!0,p="0",v="=");var N=S==="$"?r:S==="#"&&/[boxX]/.test(M)?"0"+M.toLowerCase():"",U=S==="$"?n:/[%p]/.test(M)?o:"",I=JL[M],j=/[defgprs%]/.test(M);E=E===void 0?6:/[gprs]/.test(M)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function he(q){var fe=N,ne=U,ce,De,We;if(M==="c")ne=I(q)+ne,q="";else{q=+q;var Ae=q<0||1/q<0;if(q=isNaN(q)?u:I(Math.abs(q),E),A&&(q=Q$e(q)),Ae&&+q==0&&$!=="+"&&(Ae=!1),fe=(Ae?$==="("?$:l:$==="-"||$==="("?"":$)+fe,ne=(M==="s"?rD[8+JZ/3]:"")+ne+(Ae&&$==="("?")":""),j){for(ce=-1,De=q.length;++ce<De;)if(We=q.charCodeAt(ce),48>We||We>57){ne=(We===46?i+q.slice(ce+1):q.slice(ce))+ne,q=q.slice(0,ce);break}}}_&&!g&&(q=t(q,1/0));var $e=fe.length+q.length+ne.length,rt=$e<b?new Array(b-$e+1).join(p):"";switch(_&&g&&(q=t(rt+q,rt.length?b-ne.length:1/0),rt=""),v){case"<":q=fe+q+ne+rt;break;case"=":q=fe+rt+q+ne;break;case"^":q=rt.slice(0,$e=rt.length>>1)+fe+q+ne+rt.slice($e);break;default:q=rt+fe+q+ne;break}return a(q)}return he.toString=function(){return h+""},he}function d(h,p){var v=c((h=fb(h),h.type="f",h)),$=Math.max(-8,Math.min(8,Math.floor(jd(p)/3)))*3,S=Math.pow(10,-$),g=rD[8+$/3];return function(b){return v(S*b)+g}}return{format:c,formatPrefix:d}}var a1,tJ,rJ;nJ({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function nJ(e){return a1=eJ(e),tJ=a1.format,rJ=a1.formatPrefix,a1}function J$e(e){return Math.max(0,-jd(Math.abs(e)))}function exe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(jd(t)/3)))*3-jd(Math.abs(e)))}function txe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,jd(t)-jd(e))+1}const rxe=Object.freeze(Object.defineProperty({__proto__:null,FormatSpecifier:w2,get format(){return tJ},formatDefaultLocale:nJ,formatLocale:eJ,get formatPrefix(){return rJ},formatSpecifier:fb,precisionFixed:J$e,precisionPrefix:exe,precisionRound:txe},Symbol.toStringTag,{value:"Module"})),EEe=bc(rxe);var nxe=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},ixe=nxe,AEe=function(e){var t=typeof e;if(t==="string"){var r=e;if(e=+e,e===0&&ixe(r))return!1}else if(t!=="number")return!1;return e-e<1},iJ={exports:{}};(function(e){(function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,l=t.max,u=t.random;function c(W,le){if(W=W||"",le=le||{},W instanceof c)return W;if(!(this instanceof c))return new c(W,le);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=le.format||R.format,this._gradientType=le.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++}c.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(),le,R,T,O,H,ge;return le=W.r/255,R=W.g/255,T=W.b/255,le<=.03928?O=le/12.92:O=t.pow((le+.055)/1.055,2.4),R<=.03928?H=R/12.92:H=t.pow((R+.055)/1.055,2.4),T<=.03928?ge=T/12.92:ge=t.pow((T+.055)/1.055,2.4),.2126*O+.7152*H+.0722*ge},setAlpha:function(W){return this._a=rt(W),this._roundA=a(100*this._a)/100,this},toHsv:function(){var W=$(this._r,this._g,this._b);return{h:W.h*360,s:W.s,v:W.v,a:this._a}},toHsvString:function(){var W=$(this._r,this._g,this._b),le=a(W.h*360),R=a(W.s*100),T=a(W.v*100);return this._a==1?"hsv("+le+", "+R+"%, "+T+"%)":"hsva("+le+", "+R+"%, "+T+"%, "+this._roundA+")"},toHsl:function(){var W=p(this._r,this._g,this._b);return{h:W.h*360,s:W.s,l:W.l,a:this._a}},toHslString:function(){var W=p(this._r,this._g,this._b),le=a(W.h*360),R=a(W.s*100),T=a(W.l*100);return this._a==1?"hsl("+le+", "+R+"%, "+T+"%)":"hsla("+le+", "+R+"%, "+T+"%, "+this._roundA+")"},toHex:function(W){return g(this._r,this._g,this._b,W)},toHexString:function(W){return"#"+this.toHex(W)},toHex8:function(W){return b(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(Be(this._r,255)*100)+"%",g:a(Be(this._g,255)*100)+"%",b:a(Be(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(Be(this._r,255)*100)+"%, "+a(Be(this._g,255)*100)+"%, "+a(Be(this._b,255)*100)+"%)":"rgba("+a(Be(this._r,255)*100)+"%, "+a(Be(this._g,255)*100)+"%, "+a(Be(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Ae[g(this._r,this._g,this._b,!0)]||!1},toFilter:function(W){var le="#"+_(this._r,this._g,this._b,this._a),R=le,T=this._gradientType?"GradientType = 1, ":"";if(W){var O=c(W);R="#"+_(O._r,O._g,O._b,O._a)}return"progid:DXImageTransform.Microsoft.gradient("+T+"startColorstr="+le+",endColorstr="+R+")"},toString:function(W){var le=!!W;W=W||this._format;var R=!1,T=this._a<1&&this._a>=0,O=!le&&T&&(W==="hex"||W==="hex6"||W==="hex3"||W==="hex4"||W==="hex8"||W==="name");return O?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 c(this.toString())},_applyModification:function(W,le){var R=W.apply(null,[this].concat([].slice.call(le)));return this._r=R._r,this._g=R._g,this._b=R._b,this.setAlpha(R._a),this},lighten:function(){return this._applyModification(N,arguments)},brighten:function(){return this._applyModification(U,arguments)},darken:function(){return this._applyModification(I,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(A,arguments)},greyscale:function(){return this._applyModification(M,arguments)},spin:function(){return this._applyModification(j,arguments)},_applyCombination:function(W,le){return W.apply(null,[this].concat([].slice.call(le)))},analogous:function(){return this._applyCombination(ce,arguments)},complement:function(){return this._applyCombination(he,arguments)},monochromatic:function(){return this._applyCombination(De,arguments)},splitcomplement:function(){return this._applyCombination(ne,arguments)},triad:function(){return this._applyCombination(q,arguments)},tetrad:function(){return this._applyCombination(fe,arguments)}},c.fromRatio=function(W,le){if(typeof W=="object"){var R={};for(var T in W)W.hasOwnProperty(T)&&(T==="a"?R[T]=W[T]:R[T]=bt(W[T]));W=R}return c(W,le)};function d(W){var le={r:0,g:0,b:0},R=1,T=null,O=null,H=null,ge=!1,He=!1;return typeof W=="string"&&(W=Wt(W)),typeof W=="object"&&(At(W.r)&&At(W.g)&&At(W.b)?(le=h(W.r,W.g,W.b),ge=!0,He=String(W.r).substr(-1)==="%"?"prgb":"rgb"):At(W.h)&&At(W.s)&&At(W.v)?(T=bt(W.s),O=bt(W.v),le=S(W.h,T,O),ge=!0,He="hsv"):At(W.h)&&At(W.s)&&At(W.l)&&(T=bt(W.s),H=bt(W.l),le=v(W.h,T,H),ge=!0,He="hsl"),W.hasOwnProperty("a")&&(R=W.a)),R=rt(R),{ok:ge,format:W.format||He,r:o(255,l(le.r,0)),g:o(255,l(le.g,0)),b:o(255,l(le.b,0)),a:R}}function h(W,le,R){return{r:Be(W,255)*255,g:Be(le,255)*255,b:Be(R,255)*255}}function p(W,le,R){W=Be(W,255),le=Be(le,255),R=Be(R,255);var T=l(W,le,R),O=o(W,le,R),H,ge,He=(T+O)/2;if(T==O)H=ge=0;else{var Xe=T-O;switch(ge=He>.5?Xe/(2-T-O):Xe/(T+O),T){case W:H=(le-R)/Xe+(le<R?6:0);break;case le:H=(R-W)/Xe+2;break;case R:H=(W-le)/Xe+4;break}H/=6}return{h:H,s:ge,l:He}}function v(W,le,R){var T,O,H;W=Be(W,360),le=Be(le,100),R=Be(R,100);function ge(er,xr,pr){return pr<0&&(pr+=1),pr>1&&(pr-=1),pr<1/6?er+(xr-er)*6*pr:pr<1/2?xr:pr<2/3?er+(xr-er)*(2/3-pr)*6:er}if(le===0)T=O=H=R;else{var He=R<.5?R*(1+le):R+le-R*le,Xe=2*R-He;T=ge(Xe,He,W+1/3),O=ge(Xe,He,W),H=ge(Xe,He,W-1/3)}return{r:T*255,g:O*255,b:H*255}}function $(W,le,R){W=Be(W,255),le=Be(le,255),R=Be(R,255);var T=l(W,le,R),O=o(W,le,R),H,ge,He=T,Xe=T-O;if(ge=T===0?0:Xe/T,T==O)H=0;else{switch(T){case W:H=(le-R)/Xe+(le<R?6:0);break;case le:H=(R-W)/Xe+2;break;case R:H=(W-le)/Xe+4;break}H/=6}return{h:H,s:ge,v:He}}function S(W,le,R){W=Be(W,360)*6,le=Be(le,100),R=Be(R,100);var T=t.floor(W),O=W-T,H=R*(1-le),ge=R*(1-O*le),He=R*(1-(1-O)*le),Xe=T%6,er=[R,ge,H,H,He,R][Xe],xr=[He,R,R,ge,H,H][Xe],pr=[H,H,He,R,R,ge][Xe];return{r:er*255,g:xr*255,b:pr*255}}function g(W,le,R,T){var O=[ft(a(W).toString(16)),ft(a(le).toString(16)),ft(a(R).toString(16))];return T&&O[0].charAt(0)==O[0].charAt(1)&&O[1].charAt(0)==O[1].charAt(1)&&O[2].charAt(0)==O[2].charAt(1)?O[0].charAt(0)+O[1].charAt(0)+O[2].charAt(0):O.join("")}function b(W,le,R,T,O){var H=[ft(a(W).toString(16)),ft(a(le).toString(16)),ft(a(R).toString(16)),ft(Gt(T))];return O&&H[0].charAt(0)==H[0].charAt(1)&&H[1].charAt(0)==H[1].charAt(1)&&H[2].charAt(0)==H[2].charAt(1)&&H[3].charAt(0)==H[3].charAt(1)?H[0].charAt(0)+H[1].charAt(0)+H[2].charAt(0)+H[3].charAt(0):H.join("")}function _(W,le,R,T){var O=[ft(Gt(T)),ft(a(W).toString(16)),ft(a(le).toString(16)),ft(a(R).toString(16))];return O.join("")}c.equals=function(W,le){return!W||!le?!1:c(W).toRgbString()==c(le).toRgbString()},c.random=function(){return c.fromRatio({r:u(),g:u(),b:u()})};function E(W,le){le=le===0?0:le||10;var R=c(W).toHsl();return R.s-=le/100,R.s=Ee(R.s),c(R)}function A(W,le){le=le===0?0:le||10;var R=c(W).toHsl();return R.s+=le/100,R.s=Ee(R.s),c(R)}function M(W){return c(W).desaturate(100)}function N(W,le){le=le===0?0:le||10;var R=c(W).toHsl();return R.l+=le/100,R.l=Ee(R.l),c(R)}function U(W,le){le=le===0?0:le||10;var R=c(W).toRgb();return R.r=l(0,o(255,R.r-a(255*-(le/100)))),R.g=l(0,o(255,R.g-a(255*-(le/100)))),R.b=l(0,o(255,R.b-a(255*-(le/100)))),c(R)}function I(W,le){le=le===0?0:le||10;var R=c(W).toHsl();return R.l-=le/100,R.l=Ee(R.l),c(R)}function j(W,le){var R=c(W).toHsl(),T=(R.h+le)%360;return R.h=T<0?360+T:T,c(R)}function he(W){var le=c(W).toHsl();return le.h=(le.h+180)%360,c(le)}function q(W){var le=c(W).toHsl(),R=le.h;return[c(W),c({h:(R+120)%360,s:le.s,l:le.l}),c({h:(R+240)%360,s:le.s,l:le.l})]}function fe(W){var le=c(W).toHsl(),R=le.h;return[c(W),c({h:(R+90)%360,s:le.s,l:le.l}),c({h:(R+180)%360,s:le.s,l:le.l}),c({h:(R+270)%360,s:le.s,l:le.l})]}function ne(W){var le=c(W).toHsl(),R=le.h;return[c(W),c({h:(R+72)%360,s:le.s,l:le.l}),c({h:(R+216)%360,s:le.s,l:le.l})]}function ce(W,le,R){le=le||6,R=R||30;var T=c(W).toHsl(),O=360/R,H=[c(W)];for(T.h=(T.h-(O*le>>1)+720)%360;--le;)T.h=(T.h+O)%360,H.push(c(T));return H}function De(W,le){le=le||6;for(var R=c(W).toHsv(),T=R.h,O=R.s,H=R.v,ge=[],He=1/le;le--;)ge.push(c({h:T,s:O,v:H})),H=(H+He)%1;return ge}c.mix=function(W,le,R){R=R===0?0:R||50;var T=c(W).toRgb(),O=c(le).toRgb(),H=R/100,ge={r:(O.r-T.r)*H+T.r,g:(O.g-T.g)*H+T.g,b:(O.b-T.b)*H+T.b,a:(O.a-T.a)*H+T.a};return c(ge)},c.readability=function(W,le){var R=c(W),T=c(le);return(t.max(R.getLuminance(),T.getLuminance())+.05)/(t.min(R.getLuminance(),T.getLuminance())+.05)},c.isReadable=function(W,le,R){var T=c.readability(W,le),O,H;switch(H=!1,O=we(R),O.level+O.size){case"AAsmall":case"AAAlarge":H=T>=4.5;break;case"AAlarge":H=T>=3;break;case"AAAsmall":H=T>=7;break}return H},c.mostReadable=function(W,le,R){var T=null,O=0,H,ge,He,Xe;R=R||{},ge=R.includeFallbackColors,He=R.level,Xe=R.size;for(var er=0;er<le.length;er++)H=c.readability(W,le[er]),H>O&&(O=H,T=c(le[er]));return c.isReadable(W,T,{level:He,size:Xe})||!ge?T:(R.includeFallbackColors=!1,c.mostReadable(W,["#fff","#000"],R))};var We=c.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"},Ae=c.hexNames=$e(We);function $e(W){var le={};for(var R in W)W.hasOwnProperty(R)&&(le[W[R]]=R);return le}function rt(W){return W=parseFloat(W),(isNaN(W)||W<0||W>1)&&(W=1),W}function Be(W,le){Ge(W)&&(W="100%");var R=Fe(W);return W=o(le,l(0,parseFloat(W))),R&&(W=parseInt(W*le,10)/100),t.abs(W-le)<1e-6?1:W%le/parseFloat(le)}function Ee(W){return o(1,l(0,W))}function Ke(W){return parseInt(W,16)}function Ge(W){return typeof W=="string"&&W.indexOf(".")!=-1&&parseFloat(W)===1}function Fe(W){return typeof W=="string"&&W.indexOf("%")!=-1}function ft(W){return W.length==1?"0"+W:""+W}function bt(W){return W<=1&&(W=W*100+"%"),W}function Gt(W){return t.round(parseFloat(W)*255).toString(16)}function qt(W){return Ke(W)/255}var nt=function(){var W="[-\\+]?\\d+%?",le="[-\\+]?\\d*\\.\\d+%?",R="(?:"+le+")|(?:"+W+")",T="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?",O="[\\s|\\(]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")[,|\\s]+("+R+")\\s*\\)?";return{CSS_UNIT:new RegExp(R),rgb:new RegExp("rgb"+T),rgba:new RegExp("rgba"+O),hsl:new RegExp("hsl"+T),hsla:new RegExp("hsla"+O),hsv:new RegExp("hsv"+T),hsva:new RegExp("hsva"+O),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!!nt.CSS_UNIT.exec(W)}function Wt(W){W=W.replace(r,"").replace(n,"").toLowerCase();var le=!1;if(We[W])W=We[W],le=!0;else if(W=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var R;return(R=nt.rgb.exec(W))?{r:R[1],g:R[2],b:R[3]}:(R=nt.rgba.exec(W))?{r:R[1],g:R[2],b:R[3],a:R[4]}:(R=nt.hsl.exec(W))?{h:R[1],s:R[2],l:R[3]}:(R=nt.hsla.exec(W))?{h:R[1],s:R[2],l:R[3],a:R[4]}:(R=nt.hsv.exec(W))?{h:R[1],s:R[2],v:R[3]}:(R=nt.hsva.exec(W))?{h:R[1],s:R[2],v:R[3],a:R[4]}:(R=nt.hex8.exec(W))?{r:Ke(R[1]),g:Ke(R[2]),b:Ke(R[3]),a:qt(R[4]),format:le?"name":"hex8"}:(R=nt.hex6.exec(W))?{r:Ke(R[1]),g:Ke(R[2]),b:Ke(R[3]),format:le?"name":"hex"}:(R=nt.hex4.exec(W))?{r:Ke(R[1]+""+R[1]),g:Ke(R[2]+""+R[2]),b:Ke(R[3]+""+R[3]),a:qt(R[4]+""+R[4]),format:le?"name":"hex8"}:(R=nt.hex3.exec(W))?{r:Ke(R[1]+""+R[1]),g:Ke(R[2]+""+R[2]),b:Ke(R[3]+""+R[3]),format:le?"name":"hex"}:!1}function we(W){var le,R;return W=W||{level:"AA",size:"small"},le=(W.level||"AA").toUpperCase(),R=(W.size||"small").toLowerCase(),le!=="AA"&&le!=="AAA"&&(le="AA"),R!=="small"&&R!=="large"&&(R="small"),{level:le,size:R}}e.exports?e.exports=c:window.tinycolor=c})(Math)})(iJ);var CEe=iJ.exports,axe=oxe;function oxe(){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 lxe=sxe;function sxe(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 uxe=cxe;function cxe(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 aJ=fxe;function fxe(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 dxe=pxe;function pxe(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 hxe=vxe;function vxe(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],l=t[5],u=t[6],c=t[7],d=t[8],h=t[9],p=t[10],v=t[11],$=t[12],S=t[13],g=t[14],b=t[15],_=r*l-n*o,E=r*u-i*o,A=r*c-a*o,M=n*u-i*l,N=n*c-a*l,U=i*c-a*u,I=d*S-h*$,j=d*g-p*$,he=d*b-v*$,q=h*g-p*S,fe=h*b-v*S,ne=p*b-v*g,ce=_*ne-E*fe+A*q+M*he-N*j+U*I;return ce?(ce=1/ce,e[0]=(l*ne-u*fe+c*q)*ce,e[1]=(i*fe-n*ne-a*q)*ce,e[2]=(S*U-g*N+b*M)*ce,e[3]=(p*N-h*U-v*M)*ce,e[4]=(u*he-o*ne-c*j)*ce,e[5]=(r*ne-i*he+a*j)*ce,e[6]=(g*A-$*U-b*E)*ce,e[7]=(d*U-p*A+v*E)*ce,e[8]=(o*fe-l*he+c*I)*ce,e[9]=(n*he-r*fe-a*I)*ce,e[10]=($*N-S*A+b*_)*ce,e[11]=(h*A-d*N-v*_)*ce,e[12]=(l*j-o*q-u*I)*ce,e[13]=(r*q-n*j+i*I)*ce,e[14]=(S*E-$*M-g*_)*ce,e[15]=(d*M-h*E+p*_)*ce,e):null}var mxe=gxe;function gxe(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=t[4],l=t[5],u=t[6],c=t[7],d=t[8],h=t[9],p=t[10],v=t[11],$=t[12],S=t[13],g=t[14],b=t[15];return e[0]=l*(p*b-v*g)-h*(u*b-c*g)+S*(u*v-c*p),e[1]=-(n*(p*b-v*g)-h*(i*b-a*g)+S*(i*v-a*p)),e[2]=n*(u*b-c*g)-l*(i*b-a*g)+S*(i*c-a*u),e[3]=-(n*(u*v-c*p)-l*(i*v-a*p)+h*(i*c-a*u)),e[4]=-(o*(p*b-v*g)-d*(u*b-c*g)+$*(u*v-c*p)),e[5]=r*(p*b-v*g)-d*(i*b-a*g)+$*(i*v-a*p),e[6]=-(r*(u*b-c*g)-o*(i*b-a*g)+$*(i*c-a*u)),e[7]=r*(u*v-c*p)-o*(i*v-a*p)+d*(i*c-a*u),e[8]=o*(h*b-v*S)-d*(l*b-c*S)+$*(l*v-c*h),e[9]=-(r*(h*b-v*S)-d*(n*b-a*S)+$*(n*v-a*h)),e[10]=r*(l*b-c*S)-o*(n*b-a*S)+$*(n*c-a*l),e[11]=-(r*(l*v-c*h)-o*(n*v-a*h)+d*(n*c-a*l)),e[12]=-(o*(h*g-p*S)-d*(l*g-u*S)+$*(l*p-u*h)),e[13]=r*(h*g-p*S)-d*(n*g-i*S)+$*(n*p-i*h),e[14]=-(r*(l*g-u*S)-o*(n*g-i*S)+$*(n*u-i*l)),e[15]=r*(l*p-u*h)-o*(n*p-i*h)+d*(n*u-i*l),e}var yxe=bxe;function bxe(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],l=e[6],u=e[7],c=e[8],d=e[9],h=e[10],p=e[11],v=e[12],$=e[13],S=e[14],g=e[15],b=t*o-r*a,_=t*l-n*a,E=t*u-i*a,A=r*l-n*o,M=r*u-i*o,N=n*u-i*l,U=c*$-d*v,I=c*S-h*v,j=c*g-p*v,he=d*S-h*$,q=d*g-p*$,fe=h*g-p*S;return b*fe-_*q+E*he+A*j-M*I+N*U}var $xe=xxe;function xxe(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],l=t[4],u=t[5],c=t[6],d=t[7],h=t[8],p=t[9],v=t[10],$=t[11],S=t[12],g=t[13],b=t[14],_=t[15],E=r[0],A=r[1],M=r[2],N=r[3];return e[0]=E*n+A*l+M*h+N*S,e[1]=E*i+A*u+M*p+N*g,e[2]=E*a+A*c+M*v+N*b,e[3]=E*o+A*d+M*$+N*_,E=r[4],A=r[5],M=r[6],N=r[7],e[4]=E*n+A*l+M*h+N*S,e[5]=E*i+A*u+M*p+N*g,e[6]=E*a+A*c+M*v+N*b,e[7]=E*o+A*d+M*$+N*_,E=r[8],A=r[9],M=r[10],N=r[11],e[8]=E*n+A*l+M*h+N*S,e[9]=E*i+A*u+M*p+N*g,e[10]=E*a+A*c+M*v+N*b,e[11]=E*o+A*d+M*$+N*_,E=r[12],A=r[13],M=r[14],N=r[15],e[12]=E*n+A*l+M*h+N*S,e[13]=E*i+A*u+M*p+N*g,e[14]=E*a+A*c+M*v+N*b,e[15]=E*o+A*d+M*$+N*_,e}var wxe=_xe;function _xe(e,t,r){var n=r[0],i=r[1],a=r[2],o,l,u,c,d,h,p,v,$,S,g,b;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],u=t[2],c=t[3],d=t[4],h=t[5],p=t[6],v=t[7],$=t[8],S=t[9],g=t[10],b=t[11],e[0]=o,e[1]=l,e[2]=u,e[3]=c,e[4]=d,e[5]=h,e[6]=p,e[7]=v,e[8]=$,e[9]=S,e[10]=g,e[11]=b,e[12]=o*n+d*i+$*a+t[12],e[13]=l*n+h*i+S*a+t[13],e[14]=u*n+p*i+g*a+t[14],e[15]=c*n+v*i+b*a+t[15]),e}var Sxe=Exe;function Exe(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 Axe=Cxe;function Cxe(e,t,r,n){var i=n[0],a=n[1],o=n[2],l=Math.sqrt(i*i+a*a+o*o),u,c,d,h,p,v,$,S,g,b,_,E,A,M,N,U,I,j,he,q,fe,ne,ce,De;return Math.abs(l)<1e-6?null:(l=1/l,i*=l,a*=l,o*=l,u=Math.sin(r),c=Math.cos(r),d=1-c,h=t[0],p=t[1],v=t[2],$=t[3],S=t[4],g=t[5],b=t[6],_=t[7],E=t[8],A=t[9],M=t[10],N=t[11],U=i*i*d+c,I=a*i*d+o*u,j=o*i*d-a*u,he=i*a*d-o*u,q=a*a*d+c,fe=o*a*d+i*u,ne=i*o*d+a*u,ce=a*o*d-i*u,De=o*o*d+c,e[0]=h*U+S*I+E*j,e[1]=p*U+g*I+A*j,e[2]=v*U+b*I+M*j,e[3]=$*U+_*I+N*j,e[4]=h*he+S*q+E*fe,e[5]=p*he+g*q+A*fe,e[6]=v*he+b*q+M*fe,e[7]=$*he+_*q+N*fe,e[8]=h*ne+S*ce+E*De,e[9]=p*ne+g*ce+A*De,e[10]=v*ne+b*ce+M*De,e[11]=$*ne+_*ce+N*De,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}var Txe=Pxe;function Pxe(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[4],o=t[5],l=t[6],u=t[7],c=t[8],d=t[9],h=t[10],p=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+c*n,e[5]=o*i+d*n,e[6]=l*i+h*n,e[7]=u*i+p*n,e[8]=c*i-a*n,e[9]=d*i-o*n,e[10]=h*i-l*n,e[11]=p*i-u*n,e}var Mxe=Oxe;function Oxe(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],l=t[2],u=t[3],c=t[8],d=t[9],h=t[10],p=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-c*n,e[1]=o*i-d*n,e[2]=l*i-h*n,e[3]=u*i-p*n,e[8]=a*n+c*i,e[9]=o*n+d*i,e[10]=l*n+h*i,e[11]=u*n+p*i,e}var Rxe=Ixe;function Ixe(e,t,r){var n=Math.sin(r),i=Math.cos(r),a=t[0],o=t[1],l=t[2],u=t[3],c=t[4],d=t[5],h=t[6],p=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+c*n,e[1]=o*i+d*n,e[2]=l*i+h*n,e[3]=u*i+p*n,e[4]=c*i-a*n,e[5]=d*i-o*n,e[6]=h*i-l*n,e[7]=p*i-u*n,e}var kxe=Fxe;function Fxe(e,t,r){var n,i,a,o=r[0],l=r[1],u=r[2],c=Math.sqrt(o*o+l*l+u*u);return Math.abs(c)<1e-6?null:(c=1/c,o*=c,l*=c,u*=c,n=Math.sin(t),i=Math.cos(t),a=1-i,e[0]=o*o*a+i,e[1]=l*o*a+u*n,e[2]=u*o*a-l*n,e[3]=0,e[4]=o*l*a-u*n,e[5]=l*l*a+i,e[6]=u*l*a+o*n,e[7]=0,e[8]=o*u*a+l*n,e[9]=l*u*a-o*n,e[10]=u*u*a+i,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}var Nxe=Lxe;function Lxe(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3],l=n+n,u=i+i,c=a+a,d=n*l,h=n*u,p=n*c,v=i*u,$=i*c,S=a*c,g=o*l,b=o*u,_=o*c;return e[0]=1-(v+S),e[1]=h+_,e[2]=p-b,e[3]=0,e[4]=h-_,e[5]=1-(d+S),e[6]=$+g,e[7]=0,e[8]=p+b,e[9]=$-g,e[10]=1-(d+v),e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}var Dxe=Bxe;function Bxe(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 zxe=Uxe;function Uxe(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 jxe=Hxe;function Hxe(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 Gxe=Wxe;function Wxe(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 Vxe=Kxe;function Kxe(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 qxe=Yxe;function Yxe(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,l=n+n,u=i+i,c=r*o,d=n*o,h=n*l,p=i*o,v=i*l,$=i*u,S=a*o,g=a*l,b=a*u;return e[0]=1-h-$,e[1]=d+b,e[2]=p-g,e[3]=0,e[4]=d-b,e[5]=1-c-$,e[6]=v+S,e[7]=0,e[8]=p+g,e[9]=v-S,e[10]=1-c-h,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var Xxe=Qxe;function Qxe(e,t,r,n,i,a,o){var l=1/(r-t),u=1/(i-n),c=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*u,e[6]=0,e[7]=0,e[8]=(r+t)*l,e[9]=(i+n)*u,e[10]=(o+a)*c,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*c,e[15]=0,e}var Zxe=Jxe;function Jxe(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 e3e=t3e;function t3e(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),u=2/(o+l),c=2/(i+a);return e[0]=u,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=c,e[6]=0,e[7]=0,e[8]=-((o-l)*u*.5),e[9]=(i-a)*c*.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 r3e=n3e;function n3e(e,t,r,n,i,a,o){var l=1/(t-r),u=1/(n-i),c=1/(a-o);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*u,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*c,e[11]=0,e[12]=(t+r)*l,e[13]=(i+n)*u,e[14]=(o+a)*c,e[15]=1,e}var i3e=aJ,a3e=o3e;function o3e(e,t,r,n){var i,a,o,l,u,c,d,h,p,v,$=t[0],S=t[1],g=t[2],b=n[0],_=n[1],E=n[2],A=r[0],M=r[1],N=r[2];return Math.abs($-A)<1e-6&&Math.abs(S-M)<1e-6&&Math.abs(g-N)<1e-6?i3e(e):(d=$-A,h=S-M,p=g-N,v=1/Math.sqrt(d*d+h*h+p*p),d*=v,h*=v,p*=v,i=_*p-E*h,a=E*d-b*p,o=b*h-_*d,v=Math.sqrt(i*i+a*a+o*o),v?(v=1/v,i*=v,a*=v,o*=v):(i=0,a=0,o=0),l=h*o-p*a,u=p*i-d*o,c=d*a-h*i,v=Math.sqrt(l*l+u*u+c*c),v?(v=1/v,l*=v,u*=v,c*=v):(l=0,u=0,c=0),e[0]=i,e[1]=l,e[2]=d,e[3]=0,e[4]=a,e[5]=u,e[6]=h,e[7]=0,e[8]=o,e[9]=c,e[10]=p,e[11]=0,e[12]=-(i*$+a*S+o*g),e[13]=-(l*$+u*S+c*g),e[14]=-(d*$+h*S+p*g),e[15]=1,e)}var l3e=s3e;function s3e(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 TEe={create:axe,clone:lxe,copy:uxe,identity:aJ,transpose:dxe,invert:hxe,adjoint:mxe,determinant:yxe,multiply:$xe,translate:wxe,scale:Sxe,rotate:Axe,rotateX:Txe,rotateY:Mxe,rotateZ:Rxe,fromRotation:kxe,fromRotationTranslation:Nxe,fromScaling:Dxe,fromTranslation:zxe,fromXRotation:jxe,fromYRotation:Gxe,fromZRotation:Vxe,fromQuat:qxe,frustum:Xxe,perspective:Zxe,perspectiveFromFieldOfView:e3e,ortho:r3e,lookAt:a3e,str:l3e},_2={exports:{}};_2.exports=_O;_2.exports.isMobile=_O;_2.exports.default=_O;const u3e=/(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,c3e=/CrOS/,f3e=/android|ipad|playbook|silk/i;function _O(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=u3e.test(t)&&!c3e.test(t)||!!e.tablet&&f3e.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}var PEe=_2.exports,d3e=!0,p3e=d3e,TT;typeof ir.matchMedia=="function"?TT=!ir.matchMedia("(hover: none)").matches:TT=p3e;var MEe=TT,SO={exports:{}},wd=typeof Reflect=="object"?Reflect:null,nD=wd&&typeof wd.apply=="function"?wd.apply:function(t,r,n){return Function.prototype.apply.call(t,r,n)},q1;wd&&typeof wd.ownKeys=="function"?q1=wd.ownKeys:Object.getOwnPropertySymbols?q1=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:q1=function(t){return Object.getOwnPropertyNames(t)};function h3e(e){console&&console.warn&&console.warn(e)}var oJ=Number.isNaN||function(t){return t!==t};function Yr(){Yr.init.call(this)}SO.exports=Yr;SO.exports.once=y3e;Yr.EventEmitter=Yr;Yr.prototype._events=void 0;Yr.prototype._eventsCount=0;Yr.prototype._maxListeners=void 0;var iD=10;function S2(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(Yr,"defaultMaxListeners",{enumerable:!0,get:function(){return iD},set:function(e){if(typeof e!="number"||e<0||oJ(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");iD=e}});Yr.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};Yr.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||oJ(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 lJ(e){return e._maxListeners===void 0?Yr.defaultMaxListeners:e._maxListeners}Yr.prototype.getMaxListeners=function(){return lJ(this)};Yr.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 u=a[t];if(u===void 0)return!1;if(typeof u=="function")nD(u,this,r);else for(var c=u.length,d=dJ(u,c),n=0;n<c;++n)nD(d[n],this,r);return!0};function sJ(e,t,r,n){var i,a,o;if(S2(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=lJ(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,h3e(l)}return e}Yr.prototype.addListener=function(t,r){return sJ(this,t,r,!1)};Yr.prototype.on=Yr.prototype.addListener;Yr.prototype.prependListener=function(t,r){return sJ(this,t,r,!0)};function v3e(){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 uJ(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=v3e.bind(n);return i.listener=r,n.wrapFn=i,i}Yr.prototype.once=function(t,r){return S2(r),this.on(t,uJ(this,t,r)),this};Yr.prototype.prependOnceListener=function(t,r){return S2(r),this.prependListener(t,uJ(this,t,r)),this};Yr.prototype.removeListener=function(t,r){var n,i,a,o,l;if(S2(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():m3e(n,a),n.length===1&&(i[t]=n[0]),i.removeListener!==void 0&&this.emit("removeListener",t,l||r)}return this};Yr.prototype.off=Yr.prototype.removeListener;Yr.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 cJ(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?g3e(i):dJ(i,i.length)}Yr.prototype.listeners=function(t){return cJ(this,t,!0)};Yr.prototype.rawListeners=function(t){return cJ(this,t,!1)};Yr.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):fJ.call(e,t)};Yr.prototype.listenerCount=fJ;function fJ(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}Yr.prototype.eventNames=function(){return this._eventsCount>0?q1(this._events):[]};function dJ(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function m3e(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function g3e(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}function y3e(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))}pJ(e,t,a,{once:!0}),t!=="error"&&b3e(e,i,{once:!0})})}function b3e(e,t,r){typeof e.on=="function"&&pJ(e,"error",t,r)}function pJ(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 OEe=SO.exports,hJ=x3e,yw={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},$3e=/([astvzqmhlc])([^astvzqmhlc]*)/ig;function x3e(e){var t=[];return e.replace($3e,function(r,n,i){var a=n.toLowerCase();for(i=_3e(i),a=="m"&&i.length>2&&(t.push([n].concat(i.splice(0,2))),a="l",n=n=="m"?"l":"L");;){if(i.length==yw[a])return i.unshift(n),t.push(i);if(i.length<yw[a])throw new Error("malformed path data");t.push([n].concat(i.splice(0,yw[a])))}}),t}var w3e=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;function _3e(e){var t=e.match(w3e);return t?t.map(Number):[]}var S3e={left:0,top:0},REe=E3e;function E3e(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=A3e(t);return r[0]=n-a.left,r[1]=i-a.top,r}function A3e(e){return e===window||e===document||e===document.body?S3e:e.getBoundingClientRect()}function C3e(){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 IEe=C3e();function T3e(){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 P3e=T3e;function M3e(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],u=i[1],c=r[0],d=r[1];return(l-a)*(d-o)-(u-o)*(c-a)>=-e},pointBetween:function(r,n,i){var a=r[1]-n[1],o=i[0]-n[0],l=r[0]-n[0],u=i[1]-n[1],c=l*o+a*u;if(c<e)return!1;var d=o*o+u*u;return!(c-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],u=n[1]-i[1];return Math.abs(a*u-l*o)<e},linesIntersect:function(r,n,i,a){var o=n[0]-r[0],l=n[1]-r[1],u=a[0]-i[0],c=a[1]-i[1],d=o*c-l*u;if(Math.abs(d)<e)return!1;var h=r[0]-i[0],p=r[1]-i[1],v=(u*p-c*h)/d,$=(o*p-l*h)/d,S={alongA:0,alongB:0,pt:[r[0]+v*o,r[1]+v*l]};return v<=-e?S.alongA=-2:v<e?S.alongA=-1:v-1<=-e?S.alongA=0:v-1<e?S.alongA=1:S.alongA=2,$<=-e?S.alongB=-2:$<e?S.alongB=-1:$-1<=-e?S.alongB=0:$-1<e?S.alongB=1:S.alongB=2,S},pointInsideRegion:function(r,n){for(var i=r[0],a=r[1],o=n[n.length-1][0],l=n[n.length-1][1],u=!1,c=0;c<n.length;c++){var d=n[c][0],h=n[c][1];h-a>e!=l-a>e&&(o-d)*(a-h)/(l-h)+d-i>e&&(u=!u),o=d,l=h}return u}};return t}var O3e=M3e,R3e={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}},I3e=R3e,jh=I3e;function k3e(e,t,r){function n($,S){return{id:r?r.segmentId():-1,start:$,end:S,myFill:{above:null,below:null},otherFill:null}}function i($,S,g){return{id:r?r.segmentId():-1,start:$,end:S,myFill:{above:g.myFill.above,below:g.myFill.below},otherFill:null}}var a=jh.create();function o($,S,g,b,_,E){var A=t.pointsCompare(S,_);return A!==0?A:t.pointsSame(g,E)?0:$!==b?$?1:-1:t.pointAboveOrOnLine(g,b?_:E,b?E:_)?1:-1}function l($,S){a.insertBefore($,function(g){var b=o($.isStart,$.pt,S,g.isStart,g.pt,g.other.pt);return b<0})}function u($,S){var g=jh.node({isStart:!0,pt:$.start,seg:$,primary:S,other:null,status:null});return l(g,$.end),g}function c($,S,g){var b=jh.node({isStart:!1,pt:S.end,seg:S,primary:g,other:$,status:null});$.other=b,l(b,$.pt)}function d($,S){var g=u($,S);return c(g,$,S),g}function h($,S){r&&r.segmentChop($.seg,S),$.other.remove(),$.seg.end=S,$.other.pt=S,l($.other,$.pt)}function p($,S){var g=i(S,$.seg.end,$.seg);return h($,S),d(g,$.primary)}function v($,S){var g=jh.create();function b(ce,De){var We=ce.seg.start,Ae=ce.seg.end,$e=De.seg.start,rt=De.seg.end;return t.pointsCollinear(We,$e,rt)?t.pointsCollinear(Ae,$e,rt)||t.pointAboveOrOnLine(Ae,$e,rt)?1:-1:t.pointAboveOrOnLine(We,$e,rt)?1:-1}function _(ce){return g.findTransition(function(De){var We=b(ce,De.ev);return We>0})}function E(ce,De){var We=ce.seg,Ae=De.seg,$e=We.start,rt=We.end,Be=Ae.start,Ee=Ae.end;r&&r.checkIntersection(We,Ae);var Ke=t.linesIntersect($e,rt,Be,Ee);if(Ke===!1){if(!t.pointsCollinear($e,rt,Be)||t.pointsSame($e,Ee)||t.pointsSame(rt,Be))return!1;var Ge=t.pointsSame($e,Be),Fe=t.pointsSame(rt,Ee);if(Ge&&Fe)return De;var ft=!Ge&&t.pointBetween($e,Be,Ee),bt=!Fe&&t.pointBetween(rt,Be,Ee);if(Ge)return bt?p(De,rt):p(ce,Ee),De;ft&&(Fe||(bt?p(De,rt):p(ce,Ee)),p(De,$e))}else Ke.alongA===0&&(Ke.alongB===-1?p(ce,Be):Ke.alongB===0?p(ce,Ke.pt):Ke.alongB===1&&p(ce,Ee)),Ke.alongB===0&&(Ke.alongA===-1?p(De,$e):Ke.alongA===0?p(De,Ke.pt):Ke.alongA===1&&p(De,rt));return!1}for(var A=[];!a.isEmpty();){var M=a.getHead();if(r&&r.vert(M.pt[0]),M.isStart){let ce=function(){if(U){var De=E(M,U);if(De)return De}return I?E(M,I):!1};r&&r.segmentNew(M.seg,M.primary);var N=_(M),U=N.before?N.before.ev:null,I=N.after?N.after.ev:null;r&&r.tempStatus(M.seg,U?U.seg:!1,I?I.seg:!1);var j=ce();if(j){if(e){var he;M.seg.myFill.below===null?he=!0:he=M.seg.myFill.above!==M.seg.myFill.below,he&&(j.seg.myFill.above=!j.seg.myFill.above)}else j.seg.otherFill=M.seg.myFill;r&&r.segmentUpdate(j.seg),M.other.remove(),M.remove()}if(a.getHead()!==M){r&&r.rewind(M.seg);continue}if(e){var he;M.seg.myFill.below===null?he=!0:he=M.seg.myFill.above!==M.seg.myFill.below,I?M.seg.myFill.below=I.seg.myFill.above:M.seg.myFill.below=$,he?M.seg.myFill.above=!M.seg.myFill.below:M.seg.myFill.above=M.seg.myFill.below}else if(M.seg.otherFill===null){var q;I?M.primary===I.primary?q=I.seg.otherFill.above:q=I.seg.myFill.above:q=M.primary?S:$,M.seg.otherFill={above:q,below:q}}r&&r.status(M.seg,U?U.seg:!1,I?I.seg:!1),M.other.status=N.insert(jh.node({ev:M}))}else{var fe=M.status;if(fe===null)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(g.exists(fe.prev)&&g.exists(fe.next)&&E(fe.prev.ev,fe.next.ev),r&&r.statusRemove(fe.ev.seg),fe.remove(),!M.primary){var ne=M.seg.myFill;M.seg.myFill=M.seg.otherFill,M.seg.otherFill=ne}A.push(M.seg)}a.getHead().remove()}return r&&r.done(),A}return e?{addRegion:function($){for(var S,g=$[$.length-1],b=0;b<$.length;b++){S=g,g=$[b];var _=t.pointsCompare(S,g);_!==0&&d(n(_<0?S:g,_<0?g:S),!0)}},calculate:function($){return v($,!1)}}:{calculate:function($,S,g,b){return $.forEach(function(_){d(i(_.start,_.end,_),!0)}),g.forEach(function(_){d(i(_.start,_.end,_),!1)}),v(S,b)}}}var F3e=k3e;function N3e(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 u={index:0,matches_head:!1,matches_pt1:!1},c={index:0,matches_head:!1,matches_pt1:!1},d=u;function h(fe,ne,ce){return d.index=fe,d.matches_head=ne,d.matches_pt1=ce,d===u?(d=c,!1):(d=null,!0)}for(var p=0;p<n.length;p++){var v=n[p],$=v[0];v[1];var S=v[v.length-1];if(v[v.length-2],t.pointsSame($,o)){if(h(p,!0,!0))break}else if(t.pointsSame($,l)){if(h(p,!0,!1))break}else if(t.pointsSame(S,o)){if(h(p,!1,!0))break}else if(t.pointsSame(S,l)&&h(p,!1,!1))break}if(d===u){n.push([o,l]),r&&r.chainNew(o,l);return}if(d===c){r&&r.chainMatch(u.index);var g=u.index,b=u.matches_pt1?l:o,_=u.matches_head,v=n[g],E=_?v[0]:v[v.length-1],A=_?v[1]:v[v.length-2],M=_?v[v.length-1]:v[0],N=_?v[v.length-2]:v[1];if(t.pointsCollinear(A,E,b)&&(_?(r&&r.chainRemoveHead(u.index,b),v.shift()):(r&&r.chainRemoveTail(u.index,b),v.pop()),E=A),t.pointsSame(M,b)){n.splice(g,1),t.pointsCollinear(N,M,E)&&(_?(r&&r.chainRemoveTail(u.index,E),v.pop()):(r&&r.chainRemoveHead(u.index,E),v.shift())),r&&r.chainClose(u.index),i.push(v);return}_?(r&&r.chainAddHead(u.index,b),v.unshift(b)):(r&&r.chainAddTail(u.index,b),v.push(b));return}function U(fe){r&&r.chainReverse(fe),n[fe].reverse()}function I(fe,ne){var ce=n[fe],De=n[ne],We=ce[ce.length-1],Ae=ce[ce.length-2],$e=De[0],rt=De[1];t.pointsCollinear(Ae,We,$e)&&(r&&r.chainRemoveTail(fe,We),ce.pop(),We=Ae),t.pointsCollinear(We,$e,rt)&&(r&&r.chainRemoveHead(ne,$e),De.shift()),r&&r.chainJoin(fe,ne),n[fe]=ce.concat(De),n.splice(ne,1)}var j=u.index,he=c.index;r&&r.chainConnect(j,he);var q=n[j].length<n[he].length;u.matches_head?c.matches_head?q?(U(j),I(j,he)):(U(he),I(he,j)):I(he,j):c.matches_head?I(j,he):q?(U(j),I(he,j)):(U(he),I(j,he))}),i}var L3e=N3e;function Hh(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 D3e={union:function(e,t){return Hh(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return Hh(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return Hh(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return Hh(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return Hh(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}},B3e=D3e,z3e={toPolygon:function(e,t){function r(a){if(a.length<=0)return e.segments({inverted:!1,regions:[]});function o(c){var d=c.slice(0,c.length-1);return e.segments({inverted:!1,regions:[d]})}for(var l=o(a[0]),u=1;u<a.length;u++)l=e.selectDifference(e.combine(l,o(a[u])));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(v,$){return t.pointInsideRegion([(v[0][0]+v[1][0])*.5,(v[0][1]+v[1][1])*.5],$)}function i(v){return{region:v,children:[]}}var a=i(null);function o(v,$){for(var S=0;S<v.children.length;S++){var g=v.children[S];if(n($,g.region)){o(g,$);return}}for(var b=i($),S=0;S<v.children.length;S++){var g=v.children[S];n(g.region,$)&&(b.children.push(g),v.children.splice(S,1),S--)}v.children.push(b)}for(var l=0;l<r.regions.length;l++){var u=r.regions[l];u.length<3||o(a,u)}function c(v,$){for(var S=0,g=v[v.length-1][0],b=v[v.length-1][1],_=[],E=0;E<v.length;E++){var A=v[E][0],M=v[E][1];_.push([A,M]),S+=M*g-A*b,g=A,b=M}var N=S<0;return N!==$&&_.reverse(),_.push([_[0][0],_[0][1]]),_}var d=[];function h(v){var $=[c(v.region,!1)];d.push($);for(var S=0;S<v.children.length;S++)$.push(p(v.children[S]))}function p(v){for(var $=0;$<v.children.length;$++)h(v.children[$]);return c(v.region,!0)}for(var l=0;l<a.children.length;l++)h(a.children[l]);return d.length<=0?{type:"Polygon",coordinates:[]}:d.length==1?{type:"Polygon",coordinates:d[0]}:{type:"MultiPolygon",coordinates:d}}},U3e=z3e;/*
856
+ * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
857
+ * @license MIT
858
+ * @preserve Project Home: https://github.com/voidqk/polybooljs
859
+ */var j3e=P3e,H3e=O3e,aD=F3e,G3e=L3e,Gh=B3e,oD=U3e,ka=!1,Wh=H3e(),Xi;Xi={buildLog:function(e){return e===!0?ka=j3e():e===!1&&(ka=!1),ka===!1?!1:ka.list},epsilon:function(e){return Wh.epsilon(e)},segments:function(e){var t=aD(!0,Wh,ka);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var r=aD(!1,Wh,ka);return{combined:r.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:Gh.union(e.combined,ka),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:Gh.intersect(e.combined,ka),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:Gh.difference(e.combined,ka),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:Gh.differenceRev(e.combined,ka),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:Gh.xor(e.combined,ka),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:G3e(e.segments,Wh,ka),inverted:e.inverted}},polygonFromGeoJSON:function(e){return oD.toPolygon(Xi,e)},polygonToGeoJSON:function(e){return oD.fromPolygon(Xi,Wh,e)},union:function(e,t){return Vh(e,t,Xi.selectUnion)},intersect:function(e,t){return Vh(e,t,Xi.selectIntersect)},difference:function(e,t){return Vh(e,t,Xi.selectDifference)},differenceRev:function(e,t){return Vh(e,t,Xi.selectDifferenceRev)},xor:function(e,t){return Vh(e,t,Xi.selectXor)}};function Vh(e,t,r){var n=Xi.segments(e),i=Xi.segments(t),a=Xi.combine(n,i),o=r(a);return Xi.polygon(o)}typeof window=="object"&&(window.PolyBool=Xi);var kEe=Xi,FEe=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 u=i-n,c=0,d=u-1;c<u;d=c++){var h=r[c+n][0],p=r[c+n][1],v=r[d+n][0],$=r[d+n][1],S=p>o!=$>o&&a<(v-h)*(o-p)/($-p)+h;S&&(l=!l)}return l};const NEe=bc(z2e);function W3e(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,l=e[o],u=r!==void 0?r(l,t):l-t;u>=0?(a=o,i=o-1):n=o+1}return a}function V3e(e,t,r,n,i){for(var a=i+1;n<=i;){var o=n+i>>>1,l=e[o],u=r!==void 0?r(l,t):l-t;u>0?(a=o,i=o-1):n=o+1}return a}function K3e(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,l=e[o],u=r!==void 0?r(l,t):l-t;u<0?(a=o,n=o+1):i=o-1}return a}function q3e(e,t,r,n,i){for(var a=n-1;n<=i;){var o=n+i>>>1,l=e[o],u=r!==void 0?r(l,t):l-t;u<=0?(a=o,n=o+1):i=o-1}return a}function Y3e(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 X3e={ge:function(e,t,r,n,i){return Kh(e,t,r,n,i,W3e)},gt:function(e,t,r,n,i){return Kh(e,t,r,n,i,V3e)},lt:function(e,t,r,n,i){return Kh(e,t,r,n,i,K3e)},le:function(e,t,r,n,i){return Kh(e,t,r,n,i,q3e)},eq:function(e,t,r,n,i){return Kh(e,t,r,n,i,Y3e)}},Vm=Q3e;function Q3e(e,t,r){return t<r?e<t?t:e>r?r:e:e<r?r:e>t?t:e}var eu=function(t,r,n){var i={},a,o;if(typeof r=="string"&&(r=lD(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]=lD(r[a]);var u={};for(a in r){var c=r[a];if(Array.isArray(c))for(o=0;o<c.length;o++){var d=c[o];if(n&&(u[d]=!0),d in t){if(i[a]=t[d],n)for(var h=o;h<c.length;h++)u[c[h]]=!0;break}}else a in t&&(r[a]&&(i[a]=t[a]),n&&(u[a]=!0))}if(n)for(a in t)u[a]||(i[a]=t[a]);return i},bw={};function lD(e){return bw[e]?bw[e]:(typeof e=="string"&&(e=bw[e]=e.split(/\s*,\s*|\s+/)),e)}var Z3e=eu,E2=J3e;function J3e(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=Z3e(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 Km=ewe;function ewe(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 vJ=function(){for(var e=0;e<arguments.length;e++)if(arguments[e]!==void 0)return arguments[e]},EO=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}},sD=EO,qm=twe;function twe(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,u;(!t||typeof t=="string")&&(t=new(sD(t||"float32"))(i+r));var c=t.length-r;if(i!==c)throw new Error("source length "+i+" ("+n+"x"+e.length+") does not match destination length "+c);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=sD(t||"float32");if(Array.isArray(e)||t==="array")for(t=new d(e.length+r),a=0,l=r,u=t.length;l<u;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 rwe=function(e){var t=typeof e;return e!==null&&(t==="object"||t==="function")},nwe=Math.log2||function(e){return Math.log(e)*Math.LOG2E};const uD=X3e,cD=Vm,iwe=E2,awe=Km,fD=eu,$w=vJ,owe=qm,lwe=rwe,swe=EO,dD=nwe,uwe=1073741824;var cwe=function(t,r){r||(r={}),t=owe(t,"float64"),r=fD(r,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});let n=$w(r.maxDepth,255),i=$w(r.bounds,awe(t,2));i[0]===i[2]&&i[2]++,i[1]===i[3]&&i[3]++;let a=pD(t,i),o=t.length>>>1,l;r.dtype||(r.dtype="array"),typeof r.dtype=="string"?l=new(swe(r.dtype))(o):r.dtype&&(l=r.dtype,Array.isArray(l)&&(l.length=o));for(let b=0;b<o;++b)l[b]=b;let u=[],c=[],d=[],h=[];v(0,0,1,l,0,1);let p=0;for(let b=0;b<u.length;b++){let _=u[b];if(l.set)l.set(_,p);else for(let A=0,M=_.length;A<M;A++)l[A+p]=_[A];let E=p+u[b].length;h[b]=[p,E],p=E}return l.range=$,l;function v(b,_,E,A,M,N){if(!A.length)return null;let U=u[M]||(u[M]=[]),I=d[M]||(d[M]=[]),j=c[M]||(c[M]=[]),he=U.length;if(M++,M>n||N>uwe){for(let $e=0;$e<A.length;$e++)U.push(A[$e]),I.push(N),j.push(null,null,null,null);return he}if(U.push(A[0]),I.push(N),A.length<=1)return j.push(null,null,null,null),he;let q=E*.5,fe=b+q,ne=_+q,ce=[],De=[],We=[],Ae=[];for(let $e=1,rt=A.length;$e<rt;$e++){let Be=A[$e],Ee=a[Be*2],Ke=a[Be*2+1];Ee<fe?Ke<ne?ce.push(Be):De.push(Be):Ke<ne?We.push(Be):Ae.push(Be)}return N<<=2,j.push(v(b,_,q,ce,M,N),v(b,ne,q,De,M,N+1),v(fe,_,q,We,M,N+2),v(fe,ne,q,Ae,M,N+3)),he}function $(...b){let _;if(lwe(b[b.length-1])){let We=b.pop();!b.length&&(We.x!=null||We.l!=null||We.left!=null)&&(b=[We],_={}),_=fD(We,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else _={};b.length||(b=i);let E=iwe(...b),[A,M,N,U]=[Math.min(E.x,E.x+E.width),Math.min(E.y,E.y+E.height),Math.max(E.x,E.x+E.width),Math.max(E.y,E.y+E.height)],[I,j,he,q]=pD([A,M,N,U],i),fe=$w(_.level,u.length);if(_.d!=null){let We;typeof _.d=="number"?We=[_.d,_.d]:_.d.length&&(We=_.d),fe=Math.min(Math.max(Math.ceil(-dD(Math.abs(We[0])/(i[2]-i[0]))),Math.ceil(-dD(Math.abs(We[1])/(i[3]-i[1])))),fe)}if(fe=Math.min(fe,u.length),_.lod)return S(I,j,he,q,fe);let ne=[];ce(0,0,1,0,0,1);function ce(We,Ae,$e,rt,Be,Ee){if(Be===null||Ee===null)return;let Ke=We+$e,Ge=Ae+$e;if(I>Ke||j>Ge||he<We||q<Ae||rt>=fe||Be===Ee)return;let Fe=u[rt];Ee===void 0&&(Ee=Fe.length);for(let W=Be;W<Ee;W++){let le=Fe[W],R=t[le*2],T=t[le*2+1];R>=A&&R<=N&&T>=M&&T<=U&&ne.push(le)}let ft=c[rt],bt=ft[Be*4+0],Gt=ft[Be*4+1],qt=ft[Be*4+2],nt=ft[Be*4+3],At=De(ft,Be+1),Wt=$e*.5,we=rt+1;ce(We,Ae,Wt,we,bt,Gt||qt||nt||At),ce(We,Ae+Wt,Wt,we,Gt,qt||nt||At),ce(We+Wt,Ae,Wt,we,qt,nt||At),ce(We+Wt,Ae+Wt,Wt,we,nt,At)}function De(We,Ae){let $e=null,rt=0;for(;$e===null;)if($e=We[Ae*4+rt],rt++,rt>We.length)return null;return $e}return ne}function S(b,_,E,A,M){let N=[];for(let U=0;U<M;U++){let I=d[U],j=h[U][0],he=g(b,_,U),q=g(E,A,U),fe=uD.ge(I,he),ne=uD.gt(I,q,fe,I.length-1);N[U]=[fe+j,ne+j]}return N}function g(b,_,E){let A=1,M=.5,N=.5,U=.5;for(let I=0;I<E;I++)A<<=2,A+=b<M?_<N?0:1:_<N?2:3,U*=.5,M+=b<M?-U:U,N+=_<N?-U:U;return A}};function pD(e,t){let[r,n,i,a]=t,o=1/(i-r),l=1/(a-n),u=new Array(e.length);for(let c=0,d=e.length/2;c<d;c++)u[2*c]=cD((e[2*c]-r)*o,0,1),u[2*c+1]=cD((e[2*c+1]-n)*l,0,1);return u}var fwe=cwe,mJ=dwe;function dwe(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 u=1;u<a.length;)a[u++]+=n,a[u++]+=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 pwe=function(){function e(t,r){var n=[],i=!0,a=!1,o=void 0;try{for(var l=t[Symbol.iterator](),u;!(i=(u=l.next()).done)&&(n.push(u.value),!(r&&n.length===r));i=!0);}catch(c){a=!0,o=c}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")}}(),Pv=Math.PI*2,xw=function(t,r,n,i,a,o,l){var u=t.x,c=t.y;u*=r,c*=n;var d=i*u-a*c,h=a*u+i*c;return{x:d+o,y:h+l}},hwe=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}]},hD=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)},vwe=function(t,r,n,i,a,o,l,u,c,d,h,p){var v=Math.pow(a,2),$=Math.pow(o,2),S=Math.pow(h,2),g=Math.pow(p,2),b=v*$-v*g-$*S;b<0&&(b=0),b/=v*g+$*S,b=Math.sqrt(b)*(l===u?-1:1);var _=b*a/o*p,E=b*-o/a*h,A=d*_-c*E+(t+n)/2,M=c*_+d*E+(r+i)/2,N=(h-_)/a,U=(p-E)/o,I=(-h-_)/a,j=(-p-E)/o,he=hD(1,0,N,U),q=hD(N,U,I,j);return u===0&&q>0&&(q-=Pv),u===1&&q<0&&(q+=Pv),[A,M,he,q]},mwe=function(t){var r=t.px,n=t.py,i=t.cx,a=t.cy,o=t.rx,l=t.ry,u=t.xAxisRotation,c=u===void 0?0:u,d=t.largeArcFlag,h=d===void 0?0:d,p=t.sweepFlag,v=p===void 0?0:p,$=[];if(o===0||l===0)return[];var S=Math.sin(c*Pv/360),g=Math.cos(c*Pv/360),b=g*(r-i)/2+S*(n-a)/2,_=-S*(r-i)/2+g*(n-a)/2;if(b===0&&_===0)return[];o=Math.abs(o),l=Math.abs(l);var E=Math.pow(b,2)/Math.pow(o,2)+Math.pow(_,2)/Math.pow(l,2);E>1&&(o*=Math.sqrt(E),l*=Math.sqrt(E));var A=vwe(r,n,i,a,o,l,h,v,S,g,b,_),M=pwe(A,4),N=M[0],U=M[1],I=M[2],j=M[3],he=Math.abs(j)/(Pv/4);Math.abs(1-he)<1e-7&&(he=1);var q=Math.max(Math.ceil(he),1);j/=q;for(var fe=0;fe<q;fe++)$.push(hwe(I,j)),I+=j;return $.map(function(ne){var ce=xw(ne[0],o,l,g,S,N,U),De=ce.x,We=ce.y,Ae=xw(ne[1],o,l,g,S,N,U),$e=Ae.x,rt=Ae.y,Be=xw(ne[2],o,l,g,S,N,U),Ee=Be.x,Ke=Be.y;return{x1:De,y1:We,x2:$e,y2:rt,x:Ee,y:Ke}})};const gwe=Object.freeze(Object.defineProperty({__proto__:null,default:mwe},Symbol.toStringTag,{value:"Module"})),ywe=bc(gwe);var bwe=xwe,$we=ywe;function xwe(e){for(var t,r=[],n=0,i=0,a=0,o=0,l=null,u=null,c=0,d=0,h=0,p=e.length;h<p;h++){var v=e[h],$=v[0];switch($){case"M":a=v[1],o=v[2];break;case"A":var S=$we({px:c,py:d,cx:v[6],cy:v[7],rx:v[1],ry:v[2],xAxisRotation:v[3],largeArcFlag:v[4],sweepFlag:v[5]});if(!S.length)continue;for(var g=0,b;g<S.length;g++)b=S[g],v=["C",b.x1,b.y1,b.x2,b.y2,b.x,b.y],g<S.length-1&&r.push(v);break;case"S":var _=c,E=d;(t=="C"||t=="S")&&(_+=_-n,E+=E-i),v=["C",_,E,v[1],v[2],v[3],v[4]];break;case"T":t=="Q"||t=="T"?(l=c*2-l,u=d*2-u):(l=c,u=d),v=vD(c,d,l,u,v[1],v[2]);break;case"Q":l=v[1],u=v[2],v=vD(c,d,v[1],v[2],v[3],v[4]);break;case"L":v=o1(c,d,v[1],v[2]);break;case"H":v=o1(c,d,v[1],d);break;case"V":v=o1(c,d,c,v[1]);break;case"Z":v=o1(c,d,a,o);break}t=$,c=v[v.length-2],d=v[v.length-1],v.length>4?(n=v[v.length-4],i=v[v.length-3]):(n=c,i=d),r.push(v)}return r}function o1(e,t,r,n){return["C",e,t,r,n,r,n]}function vD(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 gJ=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))},wwe=hJ,_we=mJ,Swe=bwe,Ewe=gJ,Awe=Cwe;function Cwe(e){if(Array.isArray(e)&&e.length===1&&typeof e[0]=="string"&&(e=e[0]),typeof e=="string"){if(!Ewe(e))throw Error("String is not an SVG path.");e=wwe(e)}if(!Array.isArray(e))throw Error("Argument should be a string or an array of path segments.");if(e=_we(e),e=Swe(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 Lu=Math.PI,mD=bJ(120),Twe=Pwe;function Pwe(e){for(var t,r=[],n=0,i=0,a=0,o=0,l=null,u=null,c=0,d=0,h=0,p=e.length;h<p;h++){var v=e[h],$=v[0];switch($){case"M":a=v[1],o=v[2];break;case"A":v=yJ(c,d,v[1],v[2],bJ(v[3]),v[4],v[5],v[6],v[7]),v.unshift("C"),v.length>7&&(r.push(v.splice(0,7)),v.unshift("C"));break;case"S":var S=c,g=d;(t=="C"||t=="S")&&(S+=S-n,g+=g-i),v=["C",S,g,v[1],v[2],v[3],v[4]];break;case"T":t=="Q"||t=="T"?(l=c*2-l,u=d*2-u):(l=c,u=d),v=gD(c,d,l,u,v[1],v[2]);break;case"Q":l=v[1],u=v[2],v=gD(c,d,v[1],v[2],v[3],v[4]);break;case"L":v=l1(c,d,v[1],v[2]);break;case"H":v=l1(c,d,v[1],d);break;case"V":v=l1(c,d,c,v[1]);break;case"Z":v=l1(c,d,a,o);break}t=$,c=v[v.length-2],d=v[v.length-1],v.length>4?(n=v[v.length-4],i=v[v.length-3]):(n=c,i=d),r.push(v)}return r}function l1(e,t,r,n){return["C",e,t,r,n,r,n]}function gD(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 yJ(e,t,r,n,i,a,o,l,u,c){if(c)E=c[0],A=c[1],b=c[2],_=c[3];else{var d=ww(e,t,-i);e=d.x,t=d.y,d=ww(l,u,-i),l=d.x,u=d.y;var h=(e-l)/2,p=(t-u)/2,v=h*h/(r*r)+p*p/(n*n);v>1&&(v=Math.sqrt(v),r=v*r,n=v*n);var $=r*r,S=n*n,g=(a==o?-1:1)*Math.sqrt(Math.abs(($*S-$*p*p-S*h*h)/($*p*p+S*h*h)));g==1/0&&(g=1);var b=g*r*p/n+(e+l)/2,_=g*-n*h/r+(t+u)/2,E=Math.asin(((t-_)/n).toFixed(9)),A=Math.asin(((u-_)/n).toFixed(9));E=e<b?Lu-E:E,A=l<b?Lu-A:A,E<0&&(E=Lu*2+E),A<0&&(A=Lu*2+A),o&&E>A&&(E=E-Lu*2),!o&&A>E&&(A=A-Lu*2)}if(Math.abs(A-E)>mD){var M=A,N=l,U=u;A=E+mD*(o&&A>E?1:-1),l=b+r*Math.cos(A),u=_+n*Math.sin(A);var I=yJ(l,u,r,n,i,0,o,N,U,[A,M,b,_])}var j=Math.tan((A-E)/4),he=4/3*r*j,q=4/3*n*j,fe=[2*e-(e+he*Math.sin(E)),2*t-(t-q*Math.cos(E)),l+he*Math.sin(A),u-q*Math.cos(A),l,u];if(c)return fe;I&&(fe=fe.concat(I));for(var ne=0;ne<fe.length;){var ce=ww(fe[ne],fe[ne+1],i);fe[ne++]=ce.x,fe[ne++]=ce.y}return fe}function ww(e,t,r){return{x:e*Math.cos(r)-t*Math.sin(r),y:e*Math.sin(r)+t*Math.cos(r)}}function bJ(e){return e*(Lu/180)}var Mwe=mJ,Owe=Twe,Rwe={M:"moveTo",C:"bezierCurveTo"},Iwe=function(e,t){e.beginPath(),Owe(Mwe(t)).forEach(function(r){var n=r[0],i=r.slice(1);e[Rwe[n]].apply(e,i)}),e.closePath()},kwe=Vm,Fwe=Nwe,Mv=1e20;function Nwe(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,u,c,d,h,p,v,$,S;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,u=e,t.stride?d=t.stride:d=Math.floor(e.length/a/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(p=e,h=p.getContext("2d"),a=p.width,o=p.height,v=h.getImageData(0,0,a,o),u=v.data,d=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(p=e.canvas,h=e,a=p.width,o=p.height,v=h.getImageData(0,0,a,o),u=v.data,d=4):window.ImageData&&e instanceof window.ImageData&&(v=e,a=e.width,o=e.height,u=v.data,d=4);if(l=Math.max(a,o),window.Uint8ClampedArray&&u instanceof window.Uint8ClampedArray||window.Uint8Array&&u instanceof window.Uint8Array)for(c=u,u=Array(a*o),$=0,S=c.length;$<S;$++)u[$]=c[$*d+i]/255;else if(d!==1)throw Error("Raw data can have only 1 value per pixel");var g=Array(a*o),b=Array(a*o),_=Array(l),E=Array(l),A=Array(l+1),M=Array(l);for($=0,S=a*o;$<S;$++){var N=u[$];g[$]=N===1?0:N===0?Mv:Math.pow(Math.max(0,.5-N),2),b[$]=N===1?Mv:N===0?0:Math.pow(Math.max(0,N-.5),2)}yD(g,a,o,_,E,M,A),yD(b,a,o,_,E,M,A);var U=window.Float32Array?new Float32Array(a*o):new Array(a*o);for($=0,S=a*o;$<S;$++)U[$]=kwe(1-((g[$]-b[$])/n+r),0,1);return U}function yD(e,t,r,n,i,a,o){for(var l=0;l<t;l++){for(var u=0;u<r;u++)n[u]=e[u*t+l];for(bD(n,i,a,o,r),u=0;u<r;u++)e[u*t+l]=i[u]}for(u=0;u<r;u++){for(l=0;l<t;l++)n[l]=e[u*t+l];for(bD(n,i,a,o,t),l=0;l<t;l++)e[u*t+l]=Math.sqrt(i[l])}}function bD(e,t,r,n,i){r[0]=0,n[0]=-Mv,n[1]=+Mv;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]=+Mv}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 Lwe=Awe,Dwe=hJ,Bwe=Iwe,zwe=gJ,Uwe=Fwe,PT=document.createElement("canvas"),Ni=PT.getContext("2d"),LEe=jwe;function jwe(e,t){if(!zwe(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=PT.width=t.w||t.width||200,n=PT.height=t.h||t.height||200);var i=Math.min(r,n),a=t.stroke||0,o=t.viewbox||t.viewBox||Lwe(e),l=[r/(o[2]-o[0]),n/(o[3]-o[1])],u=Math.min(l[0]||0,l[1]||0)/2;if(Ni.fillStyle="black",Ni.fillRect(0,0,r,n),Ni.fillStyle="white",a&&(typeof a!="number"&&(a=1),a>0?Ni.strokeStyle="white":Ni.strokeStyle="black",Ni.lineWidth=Math.abs(a)),Ni.translate(r*.5,n*.5),Ni.scale(u,u),Hwe()){var c=new Path2D(e);Ni.fill(c),a&&Ni.stroke(c)}else{var d=Dwe(e);Bwe(Ni,d),Ni.fill(),a&&Ni.stroke()}Ni.setTransform(1,0,0,1,0,0);var h=Uwe(Ni,{cutoff:t.cutoff!=null?t.cutoff:.5,radius:t.radius!=null?t.radius:i*.5});return h}var s1;function Hwe(){if(s1!=null)return s1;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return s1=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var r=e.getImageData(0,0,1,1);return s1=r&&r.data&&r.data[3]===255}var Gwe={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]},Wwe=Object.prototype.toString,$J=function(e){var t;return Wwe.call(e)==="[object Object]"&&(t=Object.getPrototypeOf(e),t===null||t===Object.getPrototypeOf({}))},$D=Gwe,Vwe=$J,Iu=vJ,Kwe=qwe,xD={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function qwe(e){var t,r=[],n=1,i;if(typeof e=="string")if($D[e])r=$D[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 u=t[1],c=u==="rgb",a=u.replace(/a$/,"");i=a;var o=a==="cmyk"?4:a==="gray"?1:3;r=t[2].trim().split(/\s*,\s*/).map(function(v,$){if(/%$/.test(v))return $===o?parseFloat(v)/100:a==="rgb"?parseFloat(v)*255/100:parseFloat(v);if(a[$]==="h"){if(/deg$/.test(v))return parseFloat(v);if(xD[v]!==void 0)return xD[v]}return parseFloat(v)}),u===a&&r.push(1),n=c||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(h){return parseFloat(h)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else if(!isNaN(e))i="rgb",r=[e>>>16,(e&65280)>>>8,e&255];else if(Vwe(e)){var d=Iu(e.r,e.red,e.R,null);d!==null?(i="rgb",r=[d,Iu(e.g,e.green,e.G),Iu(e.b,e.blue,e.B)]):(i="hsl",r=[Iu(e.h,e.hue,e.H),Iu(e.s,e.saturation,e.S),Iu(e.l,e.lightness,e.L,e.b,e.brightness)]),n=Iu(e.a,e.alpha,e.opacity,1),e.opacity!=null&&(n/=100)}else(Array.isArray(e)||ir.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 Ywe={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},Xwe=Ywe,Qwe={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,u;if(r===0)return u=n*255,[u,u,u];n<.5?a=n*(1+r):a=n+r-n*r,i=2*n-a,l=[0,0,0];for(var c=0;c<3;c++)o=t+1/3*-(c-1),o<0?o++:o>1&&o--,6*o<1?u=i+(a-i)*6*o:2*o<1?u=a:3*o<2?u=i+(a-i)*(2/3-o)*6:u=i,l[c]=u*255;return l}};Xwe.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,u,c;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),c=(i+a)/2,a===i?u=0:c<=.5?u=o/(a+i):u=o/(2-a-i),[l,u*100,c*100]};var Zwe=Kwe,Jwe=Qwe,u1=Vm,e5e=function(t){var r,n=Zwe(t);return n.space?(r=Array(3),r[0]=u1(n.values[0],0,255),r[1]=u1(n.values[1],0,255),r[2]=u1(n.values[2],0,255),n.space[0]==="h"&&(r=Jwe.rgb(r)),r.push(u1(n.alpha,0,1)),r):[]},t5e=e5e,c1=Vm,r5e=EO,A2=function(t,r){(r==="float"||!r)&&(r="array"),r==="uint"&&(r="uint8"),r==="uint_clamped"&&(r="uint8_clamped");var n=r5e(r),i=new n(4),a=r!=="uint8"&&r!=="uint8_clamped";return(!t.length||typeof t=="string")&&(t=t5e(t),t[0]/=255,t[1]/=255,t[2]/=255),n5e(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]=c1(Math.floor(t[0]*255),0,255),i[1]=c1(Math.floor(t[1]*255),0,255),i[2]=c1(Math.floor(t[2]*255),0,255),i[3]=t[3]==null?255:c1(Math.floor(t[3]*255),0,255)),i)};function n5e(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 C2={exports:{}},f1=Vm;C2.exports=xJ;C2.exports.to=xJ;C2.exports.from=i5e;function xJ(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=f1(r,0,255)&255,n=f1(n,0,255)&255,i=f1(i,0,255)&255,a=f1(a,0,255)&255;var o=r*16777216+(n<<16)+(i<<8)+a;return o}function i5e(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 a5e=C2.exports,wJ=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("")},_J=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 u;if(o[l]===!0)u=r[l];else{if(o[l]===!1)continue;if(typeof o[l]=="function"&&(u=o[l](r[l],t,r),u===void 0))continue}t[l]=u}}return t},o5e=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)),Hd={exports:{}};Hd.exports=Ov;Hd.exports.float32=Hd.exports.float=Ov;Hd.exports.fract32=Hd.exports.fract=l5e;var wD=new Float32Array(1);function l5e(e,t){if(e.length){if(e instanceof Float32Array)return new Float32Array(e.length);t instanceof Float32Array||(t=Ov(e));for(var r=0,n=t.length;r<n;r++)t[r]=e[r]-t[r];return t}return Ov(e-Ov(e))}function Ov(e){return e.length?e instanceof Float32Array?e:new Float32Array(e):(wD[0]=e,wD[0])}var AO=Hd.exports;function s5e(e,t){return f5e(e)||p5e(e,t)||SJ(e,t)||v5e()}function u5e(e){return c5e(e)||d5e(e)||SJ(e)||h5e()}function c5e(e){if(Array.isArray(e))return MT(e)}function f5e(e){if(Array.isArray(e))return e}function d5e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function p5e(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(u){a=!0,l=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(a)throw l}}return n}}function SJ(e,t){if(e){if(typeof e=="string")return MT(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 MT(e,t)}}function MT(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 h5e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
860
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v5e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
861
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m5e=A2,g5e=Km,y5e=a5e,b5e=fwe,Ju=$c,d1=wJ,$5e=eu,x5e=_J,w5e=qm,_D=o5e,p1=AO,_5e=E2,S5e=ni;function ni(e,t){var r=this;if(!(this instanceof ni))return new ni(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=[],u=[null],c=[null],d=255,h=100;this.tooManyColors=_D,i=e.texture({data:new Uint8Array(d*4),width:d,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),Ju(this,{regl:e,gl:n,groups:l,markerCache:c,markerTextures:u,palette:a,paletteIds:o,paletteTexture:i,maxColors:d,maxSize:h,canvas:n.canvas}),this.update(t);var p={uniforms:{constPointSize:!!t.constPointSize,opacity:e.prop("opacity"),paletteSize:function(g,b){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(g,b){return b.xAttr||{buffer:b.positionBuffer,stride:8,offset:0}},y:function(g,b){return b.yAttr||{buffer:b.positionBuffer,stride:8,offset:4}},xFract:function(g,b){return b.xAttr?{constant:[0,0]}:{buffer:b.positionFractBuffer,stride:8,offset:0}},yFract:function(g,b){return b.yAttr?{constant:[0,0]}:{buffer:b.positionFractBuffer,stride:8,offset:4}},size:function(g,b){return b.size.length?{buffer:b.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(b.size*255/r.maxSize)]}},borderSize:function(g,b){return b.borderSize.length?{buffer:b.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(b.borderSize*255/r.maxSize)]}},colorId:function(g,b){return b.color.length?{buffer:b.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(b.color*4,b.color*4+4):[b.color]}},borderColorId:function(g,b){return b.borderColor.length?{buffer:b.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(b.borderColor*4,b.borderColor*4+4):[b.borderColor]}},isActive:function(g,b){return b.activation===!0?{constant:[1]}:b.activation?b.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"},v=Ju({},p);v.frag=d1([`precision highp float;
862
+ #define GLSLIFY 1
863
+
864
+ uniform float opacity;
865
+ uniform sampler2D markerTexture;
866
+
867
+ varying vec4 fragColor, fragBorderColor;
868
+ varying float fragWidth, fragBorderColorLevel, fragColorLevel;
869
+
870
+ float smoothStep(float x, float y) {
871
+ return 1.0 / (1.0 + exp(50.0*(x - y)));
872
+ }
873
+
874
+ void main() {
875
+ float dist = texture2D(markerTexture, gl_PointCoord).r, delta = fragWidth;
876
+
877
+ // max-distance alpha
878
+ if (dist < 0.003) discard;
879
+
880
+ // null-border case
881
+ if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {
882
+ float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);
883
+ gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);
884
+ }
885
+ else {
886
+ float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);
887
+ float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);
888
+
889
+ vec4 color = fragBorderColor;
890
+ color.a *= borderColorAmt;
891
+ color = mix(color, fragColor, colorAmt);
892
+ color.a *= opacity;
893
+
894
+ gl_FragColor = color;
895
+ }
896
+
897
+ }
898
+ `]),v.vert=d1([`precision highp float;
899
+ #define GLSLIFY 1
900
+
901
+ attribute float x, y, xFract, yFract;
902
+ attribute float size, borderSize;
903
+ attribute vec4 colorId, borderColorId;
904
+ attribute float isActive;
905
+
906
+ uniform bool constPointSize;
907
+ uniform float pixelRatio;
908
+ uniform vec2 scale, scaleFract, translate, translateFract, paletteSize;
909
+ uniform sampler2D paletteTexture;
910
+
911
+ const float maxSize = 100.;
912
+ const float borderLevel = .5;
913
+
914
+ varying vec4 fragColor, fragBorderColor;
915
+ varying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;
916
+
917
+ float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
918
+
919
+ bool isDirect = (paletteSize.x < 1.);
920
+
921
+ vec4 getColor(vec4 id) {
922
+ return isDirect ? id / 255. : texture2D(paletteTexture,
923
+ vec2(
924
+ (id.x + .5) / paletteSize.x,
925
+ (id.y + .5) / paletteSize.y
926
+ )
927
+ );
928
+ }
929
+
930
+ void main() {
931
+ // ignore inactive points
932
+ if (isActive == 0.) return;
933
+
934
+ vec2 position = vec2(x, y);
935
+ vec2 positionFract = vec2(xFract, yFract);
936
+
937
+ vec4 color = getColor(colorId);
938
+ vec4 borderColor = getColor(borderColorId);
939
+
940
+ float size = size * maxSize / 255.;
941
+ float borderSize = borderSize * maxSize / 255.;
942
+
943
+ gl_PointSize = 2. * size * pointSizeScale;
944
+ fragPointSize = size * pixelRatio;
945
+
946
+ vec2 pos = (position + translate) * scale
947
+ + (positionFract + translateFract) * scale
948
+ + (position + translate) * scaleFract
949
+ + (positionFract + translateFract) * scaleFract;
950
+
951
+ gl_Position = vec4(pos * 2. - 1., 0., 1.);
952
+
953
+ fragColor = color;
954
+ fragBorderColor = borderColor;
955
+ fragWidth = 1. / gl_PointSize;
956
+
957
+ fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);
958
+ fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);
959
+ }`]),this.drawMarker=e(v);var $=Ju({},p);$.frag=d1([`precision highp float;
960
+ #define GLSLIFY 1
961
+
962
+ varying vec4 fragColor, fragBorderColor;
963
+ varying float fragBorderRadius, fragWidth;
964
+
965
+ uniform float opacity;
966
+
967
+ float smoothStep(float edge0, float edge1, float x) {
968
+ float t;
969
+ t = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);
970
+ return t * t * (3.0 - 2.0 * t);
971
+ }
972
+
973
+ void main() {
974
+ float radius, alpha = 1.0, delta = fragWidth;
975
+
976
+ radius = length(2.0 * gl_PointCoord.xy - 1.0);
977
+
978
+ if (radius > 1.0 + delta) {
979
+ discard;
980
+ }
981
+
982
+ alpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);
983
+
984
+ float borderRadius = fragBorderRadius;
985
+ float ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);
986
+ vec4 color = mix(fragColor, fragBorderColor, ratio);
987
+ color.a *= alpha * opacity;
988
+ gl_FragColor = color;
989
+ }
990
+ `]),$.vert=d1([`precision highp float;
991
+ #define GLSLIFY 1
992
+
993
+ attribute float x, y, xFract, yFract;
994
+ attribute float size, borderSize;
995
+ attribute vec4 colorId, borderColorId;
996
+ attribute float isActive;
997
+
998
+ uniform bool constPointSize;
999
+ uniform float pixelRatio;
1000
+ uniform vec2 paletteSize, scale, scaleFract, translate, translateFract;
1001
+ uniform sampler2D paletteTexture;
1002
+
1003
+ const float maxSize = 100.;
1004
+
1005
+ varying vec4 fragColor, fragBorderColor;
1006
+ varying float fragBorderRadius, fragWidth;
1007
+
1008
+ float pointSizeScale = (constPointSize) ? 2. : pixelRatio;
1009
+
1010
+ bool isDirect = (paletteSize.x < 1.);
1011
+
1012
+ vec4 getColor(vec4 id) {
1013
+ return isDirect ? id / 255. : texture2D(paletteTexture,
1014
+ vec2(
1015
+ (id.x + .5) / paletteSize.x,
1016
+ (id.y + .5) / paletteSize.y
1017
+ )
1018
+ );
1019
+ }
1020
+
1021
+ void main() {
1022
+ // ignore inactive points
1023
+ if (isActive == 0.) return;
1024
+
1025
+ vec2 position = vec2(x, y);
1026
+ vec2 positionFract = vec2(xFract, yFract);
1027
+
1028
+ vec4 color = getColor(colorId);
1029
+ vec4 borderColor = getColor(borderColorId);
1030
+
1031
+ float size = size * maxSize / 255.;
1032
+ float borderSize = borderSize * maxSize / 255.;
1033
+
1034
+ gl_PointSize = (size + borderSize) * pointSizeScale;
1035
+
1036
+ vec2 pos = (position + translate) * scale
1037
+ + (positionFract + translateFract) * scale
1038
+ + (position + translate) * scaleFract
1039
+ + (positionFract + translateFract) * scaleFract;
1040
+
1041
+ gl_Position = vec4(pos * 2. - 1., 0., 1.);
1042
+
1043
+ fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);
1044
+ fragColor = color;
1045
+ fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;
1046
+ fragWidth = 1. / gl_PointSize;
1047
+ }
1048
+ `]),_D&&($.frag=$.frag.replace("smoothstep","smoothStep"),v.frag=v.frag.replace("smoothstep","smoothStep")),this.drawCircle=e($)}ni.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};ni.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this};ni.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};ni.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,u5e(this.getMarkerDrawOptions(a,n,t)));i.length&&this.drawMarker(i)}};ni.prototype.getMarkerDrawOptions=function(e,t,r){var n=t.range,i=t.tree,a=t.viewport,o=t.activation,l=t.selectionBuffer,u=t.count;if(this.regl,!i)return r?[Ju({},t,{markerTexture:this.markerTextures[e],activation:o[e],count:r.length,elements:r,offset:0})]:[Ju({},t,{markerTexture:this.markerTextures[e],activation:o[e],offset:0})];var c=[],d=i.range(n,{lod:!0,px:[(n[2]-n[0])/a.width,(n[3]-n[1])/a.height]});if(r){for(var h=o[e],p=h.data,v=new Uint8Array(u),$=0;$<r.length;$++){var S=r[$];v[S]=p?p[S]:1}l.subdata(v)}for(var g=d.length;g--;){var b=s5e(d[g],2),_=b[0],E=b[1];c.push(Ju({},t,{markerTexture:this.markerTextures[e],activation:r?l:o[e],offset:_,count:E-_}))}return c};ni.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,u=this.maxColors,c=this.palette;this.groups=i=r.map(function(d,h){var p=i[h];if(d===void 0)return p;d===null?d={positions:null}:typeof d=="function"?d={ondraw:d}:typeof d[0]=="number"&&(d={positions:d}),d=$5e(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),p||(i[h]=p={id:h,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=Ju({},ni.defaults,d)),d.positions&&!("marker"in d)&&(d.marker=p.marker,delete p.marker),d.marker&&!("positions"in d)&&(d.positions=p.positions,delete p.positions);var v=0,$=0;if(x5e(p,d,[{snap:!0,size:function(Ae,$e){return Ae==null&&(Ae=ni.defaults.size),v+=Ae&&Ae.length?1:0,Ae},borderSize:function(Ae,$e){return Ae==null&&(Ae=ni.defaults.borderSize),v+=Ae&&Ae.length?1:0,Ae},opacity:parseFloat,color:function(Ae,$e){return Ae==null&&(Ae=ni.defaults.color),Ae=e.updateColor(Ae),$++,Ae},borderColor:function(Ae,$e){return Ae==null&&(Ae=ni.defaults.borderColor),Ae=e.updateColor(Ae),$++,Ae},bounds:function(Ae,$e,rt){return"range"in rt||(rt.range=null),Ae},positions:function(Ae,$e,rt){var Be=$e.snap,Ee=$e.positionBuffer,Ke=$e.positionFractBuffer,Ge=$e.selectionBuffer;if(Ae.x||Ae.y)return Ae.x.length?$e.xAttr={buffer:o.buffer(Ae.x),offset:0,stride:4,count:Ae.x.length}:$e.xAttr={buffer:Ae.x.buffer,offset:Ae.x.offset*4||0,stride:(Ae.x.stride||1)*4,count:Ae.x.count},Ae.y.length?$e.yAttr={buffer:o.buffer(Ae.y),offset:0,stride:4,count:Ae.y.length}:$e.yAttr={buffer:Ae.y.buffer,offset:Ae.y.offset*4||0,stride:(Ae.y.stride||1)*4,count:Ae.y.count},$e.count=Math.max($e.xAttr.count,$e.yAttr.count),Ae;Ae=w5e(Ae,"float64");var Fe=$e.count=Math.floor(Ae.length/2),ft=$e.bounds=Fe?g5e(Ae,2):null;if(!rt.range&&!$e.range&&(delete $e.range,rt.range=ft),!rt.marker&&!$e.marker&&(delete $e.marker,rt.marker=null),Be&&(Be===!0||Fe>Be)?$e.tree=b5e(Ae,{bounds:ft}):Be&&Be.length&&($e.tree=Be),$e.tree){var bt={primitive:"points",usage:"static",data:$e.tree,type:"uint32"};$e.elements?$e.elements(bt):$e.elements=o.elements(bt)}var Gt=p1.float32(Ae);Ee({data:Gt,usage:"dynamic"});var qt=p1.fract32(Ae,Gt);return Ke({data:qt,usage:"dynamic"}),Ge({data:new Uint8Array(Fe),type:"uint8",usage:"stream"}),Ae}},{marker:function(Ae,$e,rt){var Be=$e.activation;if(Be.forEach(function(qt){return qt&&qt.destroy&&qt.destroy()}),Be.length=0,!Ae||typeof Ae[0]=="number"){var Ee=e.addMarker(Ae);Be[Ee]=!0}else{for(var Ke=[],Ge=0,Fe=Math.min(Ae.length,$e.count);Ge<Fe;Ge++){var ft=e.addMarker(Ae[Ge]);Ke[ft]||(Ke[ft]=new Uint8Array($e.count)),Ke[ft][Ge]=1}for(var bt=0;bt<Ke.length;bt++)if(Ke[bt]){var Gt={data:Ke[bt],type:"uint8",usage:"static"};Be[bt]?Be[bt](Gt):Be[bt]=o.buffer(Gt),Be[bt].data=Ke[bt]}}return Ae},range:function(Ae,$e,rt){var Be=$e.bounds;if(Be)return Ae||(Ae=Be),$e.scale=[1/(Ae[2]-Ae[0]),1/(Ae[3]-Ae[1])],$e.translate=[-Ae[0],-Ae[1]],$e.scaleFract=p1.fract($e.scale),$e.translateFract=p1.fract($e.translate),Ae},viewport:function(Ae){var $e=_5e(Ae||[a.drawingBufferWidth,a.drawingBufferHeight]);return $e}}]),v){var S=p,g=S.count,b=S.size,_=S.borderSize,E=S.sizeBuffer,A=new Uint8Array(g*2);if(b.length||_.length)for(var M=0;M<g;M++)A[M*2]=Math.round((b[M]==null?b:b[M])*255/l),A[M*2+1]=Math.round((_[M]==null?_:_[M])*255/l);E({data:A,usage:"dynamic"})}if($){var N=p,U=N.count,I=N.color,j=N.borderColor,he=N.colorBuffer,q;if(e.tooManyColors){if(I.length||j.length){q=new Uint8Array(U*8);for(var fe=0;fe<U;fe++){var ne=I[fe];q[fe*8]=c[ne*4],q[fe*8+1]=c[ne*4+1],q[fe*8+2]=c[ne*4+2],q[fe*8+3]=c[ne*4+3];var ce=j[fe];q[fe*8+4]=c[ce*4],q[fe*8+5]=c[ce*4+1],q[fe*8+6]=c[ce*4+2],q[fe*8+7]=c[ce*4+3]}}}else if(I.length||j.length){q=new Uint8Array(U*4+2);for(var De=0;De<U;De++)I[De]!=null&&(q[De*4]=I[De]%u,q[De*4+1]=Math.floor(I[De]/u)),j[De]!=null&&(q[De*4+2]=j[De]%u,q[De*4+3]=Math.floor(j[De]/u))}he({data:q||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return p})}};ni.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 u=Math.floor(Math.sqrt(a.length));return i=t.length,n.push(e),t.push(r.texture({channels:1,data:a,radius:u,mag:"linear",min:"linear"})),i};ni.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 u=0;u<e.length;u++){var c=e[u];c=m5e(c,"uint8");var d=y5e(c,!1);if(t[d]==null){var h=r.length;t[d]=Math.floor(h/4),r[h]=c[0],r[h+1]=c[1],r[h+2]=c[2],r[h+3]=c[3]}i[u]=t[d]}return!this.tooManyColors&&r.length>n*4&&(this.tooManyColors=!0),this.updatePalette(r),i.length===1?i[0]:i};ni.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)}};ni.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 E5e=$c,A5e=function(t,r){var n=new S5e(t,r),i=n.render.bind(n);return E5e(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},DEe=A5e,CO={exports:{}};CO.exports=T2;CO.exports.default=T2;function T2(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,a=EJ(e,0,i,r,!0),o=[];if(!a||a.next===a.prev)return o;var l,u,c,d,h,p,v;if(n&&(a=O5e(e,t,a,r)),e.length>80*r){l=c=e[0],u=d=e[1];for(var $=r;$<i;$+=r)h=e[$],p=e[$+1],h<l&&(l=h),p<u&&(u=p),h>c&&(c=h),p>d&&(d=p);v=Math.max(c-l,d-u),v=v!==0?1/v:0}return am(a,o,r,l,u,v),o}function EJ(e,t,r,n,i){var a,o;if(i===IT(e,t,r,n)>0)for(a=t;a<r;a+=n)o=SD(a,e[a],e[a+1],o);else for(a=r-n;a>=t;a-=n)o=SD(a,e[a],e[a+1],o);return o&&P2(o,o.next)&&(lm(o),o=o.next),o}function Gs(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(P2(r,r.next)||bn(r.prev,r,r.next)===0)){if(lm(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function am(e,t,r,n,i,a,o){if(e){!o&&a&&N5e(e,n,i,a);for(var l=e,u,c;e.prev!==e.next;){if(u=e.prev,c=e.next,a?T5e(e,n,i,a):C5e(e)){t.push(u.i/r),t.push(e.i/r),t.push(c.i/r),lm(e),e=c.next,l=c.next;continue}if(e=c,e===l){o?o===1?(e=P5e(Gs(e),t,r),am(e,t,r,n,i,a,2)):o===2&&M5e(e,t,r,n,i,a):am(Gs(e),t,r,n,i,a,1);break}}}}function C5e(e){var t=e.prev,r=e,n=e.next;if(bn(t,r,n)>=0)return!1;for(var i=e.next.next;i!==e.prev;){if(od(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&bn(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function T5e(e,t,r,n){var i=e.prev,a=e,o=e.next;if(bn(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,u=i.y<a.y?i.y<o.y?i.y:o.y:a.y<o.y?a.y:o.y,c=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,h=OT(l,u,t,r,n),p=OT(c,d,t,r,n),v=e.prevZ,$=e.nextZ;v&&v.z>=h&&$&&$.z<=p;){if(v!==e.prev&&v!==e.next&&od(i.x,i.y,a.x,a.y,o.x,o.y,v.x,v.y)&&bn(v.prev,v,v.next)>=0||(v=v.prevZ,$!==e.prev&&$!==e.next&&od(i.x,i.y,a.x,a.y,o.x,o.y,$.x,$.y)&&bn($.prev,$,$.next)>=0))return!1;$=$.nextZ}for(;v&&v.z>=h;){if(v!==e.prev&&v!==e.next&&od(i.x,i.y,a.x,a.y,o.x,o.y,v.x,v.y)&&bn(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;$&&$.z<=p;){if($!==e.prev&&$!==e.next&&od(i.x,i.y,a.x,a.y,o.x,o.y,$.x,$.y)&&bn($.prev,$,$.next)>=0)return!1;$=$.nextZ}return!0}function P5e(e,t,r){var n=e;do{var i=n.prev,a=n.next.next;!P2(i,a)&&AJ(i,n,n.next,a)&&om(i,a)&&om(a,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(a.i/r),lm(n),lm(n.next),n=e=a),n=n.next}while(n!==e);return Gs(n)}function M5e(e,t,r,n,i,a){var o=e;do{for(var l=o.next.next;l!==o.prev;){if(o.i!==l.i&&B5e(o,l)){var u=CJ(o,l);o=Gs(o,o.next),u=Gs(u,u.next),am(o,t,r,n,i,a),am(u,t,r,n,i,a);return}l=l.next}o=o.next}while(o!==e)}function O5e(e,t,r,n){var i=[],a,o,l,u,c;for(a=0,o=t.length;a<o;a++)l=t[a]*n,u=a<o-1?t[a+1]*n:e.length,c=EJ(e,l,u,n,!1),c===c.next&&(c.steiner=!0),i.push(D5e(c));for(i.sort(R5e),a=0;a<i.length;a++)r=I5e(i[a],r),r=Gs(r,r.next);return r}function R5e(e,t){return e.x-t.x}function I5e(e,t){var r=k5e(e,t);if(!r)return t;var n=CJ(r,e),i=Gs(r,r.next);return Gs(n,n.next),t===r?i:t}function k5e(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 u=o,c=o.x,d=o.y,h=1/0,p;r=o;do n>=r.x&&r.x>=c&&n!==r.x&&od(i<d?n:a,i,c,d,i<d?a:n,i,r.x,r.y)&&(p=Math.abs(i-r.y)/(n-r.x),om(r,e)&&(p<h||p===h&&(r.x>o.x||r.x===o.x&&F5e(o,r)))&&(o=r,h=p)),r=r.next;while(r!==u);return o}function F5e(e,t){return bn(e.prev,e,t.prev)<0&&bn(t.next,e,e.next)<0}function N5e(e,t,r,n){var i=e;do i.z===null&&(i.z=OT(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,L5e(i)}function L5e(e){var t,r,n,i,a,o,l,u,c=1;do{for(r=e,e=null,a=null,o=0;r;){for(o++,n=r,l=0,t=0;t<c&&(l++,n=n.nextZ,!!n);t++);for(u=c;l>0||u>0&&n;)l!==0&&(u===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,l--):(i=n,n=n.nextZ,u--),a?a.nextZ=i:e=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o>1);return e}function OT(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 D5e(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 od(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 B5e(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!z5e(e,t)&&(om(e,t)&&om(t,e)&&U5e(e,t)&&(bn(e.prev,e,t.prev)||bn(e,t.prev,t))||P2(e,t)&&bn(e.prev,e,e.next)>0&&bn(t.prev,t,t.next)>0)}function bn(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function P2(e,t){return e.x===t.x&&e.y===t.y}function AJ(e,t,r,n){var i=v1(bn(e,t,r)),a=v1(bn(e,t,n)),o=v1(bn(r,n,e)),l=v1(bn(r,n,t));return!!(i!==a&&o!==l||i===0&&h1(e,r,t)||a===0&&h1(e,n,t)||o===0&&h1(r,e,n)||l===0&&h1(r,t,n))}function h1(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 v1(e){return e>0?1:e<0?-1:0}function z5e(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&&AJ(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function om(e,t){return bn(e.prev,e,e.next)<0?bn(e,t,e.next)>=0&&bn(e,e.prev,t)>=0:bn(e,t,e.prev)<0||bn(e,e.next,t)<0}function U5e(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 CJ(e,t){var r=new RT(e.i,e.x,e.y),n=new RT(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 SD(e,t,r,n){var i=new RT(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 lm(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 RT(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}T2.deviation=function(e,t,r,n){var i=t&&t.length,a=i?t[0]*r:e.length,o=Math.abs(IT(e,0,a,r));if(i)for(var l=0,u=t.length;l<u;l++){var c=t[l]*r,d=l<u-1?t[l+1]*r:e.length;o-=Math.abs(IT(e,c,d,r))}var h=0;for(l=0;l<n.length;l+=3){var p=n[l]*r,v=n[l+1]*r,$=n[l+2]*r;h+=Math.abs((e[p]-e[$])*(e[v+1]-e[p+1])-(e[p]-e[v])*(e[$+1]-e[p+1]))}return o===0&&h===0?0:Math.abs((h-o)/o)};function IT(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}T2.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 j5e=CO.exports,H5e=Km,G5e=W5e;function W5e(e,t,r){if(!e||e.length==null)throw Error("Argument should be an array");t==null&&(t=1),r==null&&(r=H5e(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 u=i-a;for(o=n;o<l;o+=t)isNaN(e[o])||(e[o]=u===0?.5:(e[o]-a)/u)}}return e}var V5e=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")},_w,ED;function TJ(){if(ED)return _w;ED=1;var e=Object.create,t=Object.getPrototypeOf,r={};return _w=function(){var n=Object.setPrototypeOf,i=arguments[0]||e;return typeof n!="function"?!1:t(n(i(null),r))===r},_w}var Sw,AD;function K5e(){if(AD)return Sw;AD=1;var e=Object.create,t;return TJ()()||(t=PJ()),Sw=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)})}(),Sw}var Ew,CD;function PJ(){if(CD)return Ew;CD=1;var e=FM,t=mo,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")},Ew=function(o){var l,u;return o?(o.level===2?o.set?(u=o.set,l=function(c,d){return u.call(a(c,d),d),c}):l=function(c,d){return a(c,d).__proto__=d,c}:l=function c(d,h){var p;return a(d,h),p=r.call(c.nullPolyfill,d),p&&delete c.nullPolyfill.__proto__,h===null&&(h=c.nullPolyfill),d.__proto__=h,p&&n(c.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={},u,c=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(c){try{u=c.set,u.call(o,l)}catch{}if(Object.getPrototypeOf(o)===l)return{set:u,level:2}}return o.__proto__=l,Object.getPrototypeOf(o)===l?{level:2}:(o={},o.__proto__=l,Object.getPrototypeOf(o)===l?{level:1}:!1)}()),K5e(),Ew}var Aw,TD;function TO(){return TD||(TD=1,Aw=TJ()()?Object.setPrototypeOf:PJ()),Aw}var Cw,PD;function q5e(){if(PD)return Cw;PD=1;var e=FM;return Cw=function(t){if(!e(t))throw new TypeError(t+" is not an Object");return t},Cw}var Tw,MD;function Y5e(){if(MD)return Tw;MD=1;var e=Object.create(null),t=Math.random;return Tw=function(){var r;do r=t().toString(36).slice(2);while(e[r]);return r},Tw}var Pw={exports:{}},Mw,OD;function X5e(){if(OD)return Mw;OD=1;var e=mo;return Mw=function(){return e(this).length=0,this},Mw}var Ow,RD;function Q5e(){if(RD)return Ow;RD=1;var e=ip,t=NM,r=Object.prototype.toString;return Ow=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}},Ow}var Rw,ID;function Z5e(){return ID||(ID=1,Rw=function(e){try{return e.toString()}catch{try{return String(e)}catch{return null}}}),Rw}var Iw,kD;function J5e(){if(kD)return Iw;kD=1;var e=Z5e(),t=/[\n\r\u2028\u2029]/g;return Iw=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`
1049
+ `:return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}}),n)},Iw}var kw,FD;function MJ(){if(FD)return kw;FD=1;var e=ip,t=NM,r=Q5e(),n=J5e(),i=function(a,o){return a.replace("%v",n(o))};return kw=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 u=r(l.errorMessage);throw e(u)||(u=o),new TypeError(i(u,a))},kw}var Fw,ND;function e_e(){if(ND)return Fw;ND=1;var e=MJ(),t=ip;return Fw=function(r){return t(r)?r:e(r,"Cannot use %v",arguments[1])},Fw}var Nw,LD;function t_e(){if(LD)return Nw;LD=1;var e=MJ(),t=$X;return Nw=function(r){return t(r)?r:e(r,"%v is not a plain function",arguments[1])},Nw}var Lw,DD;function r_e(){if(DD)return Lw;DD=1;var e=a2(),t=t2,r=mo;return Lw=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(u){(o.ensure||u in n)&&(l[u]=n[u])}):t(l,n),l},Lw}var Dw,BD;function n_e(){if(BD)return Dw;BD=1;var e=ip,t=e_e(),r=t_e(),n=r_e(),i=kM,a=DM(),o=Function.prototype.bind,l=Object.defineProperty,u=Object.prototype.hasOwnProperty,c;return c=function(d,h,p){var v=t(h)&&r(h.value),$;return $=n(h),delete $.writable,delete $.value,$.get=function(){return!p.overwriteDefinition&&u.call(this,d)?v:(h.value=o.call(v,p.resolveContext?p.resolveContext(this):this),l(this,d,h),this[d])},$},Dw=function(d){var h=i(arguments[1]);return e(h.resolveContext)&&r(h.resolveContext),a(d,function(p,v){return c(v,p,h)})},Dw}var Bw,zD;function OJ(){if(zD)return Bw;zD=1;var e=X5e(),t=t2,r=Go,n=mo,i=go,a=n_e(),o=Oc(),l=Object.defineProperty,u=Object.defineProperties,c;return Bw=c=function(d,h){if(!(this instanceof c))throw new TypeError("Constructor requires 'new'");u(this,{__list__:i("w",n(d)),__context__:i("w",h),__nextIndex__:i("w",0)}),h&&(r(h.on),h.on("_add",this._onAdd),h.on("_delete",this._onDelete),h.on("_clear",this._onClear))},delete c.prototype.constructor,u(c.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(h,p){h>=d&&(this.__redo__[p]=++h)},this),this.__redo__.push(d)}}),_onDelete:i(function(d){var h;d>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(h=this.__redo__.indexOf(d),h!==-1&&this.__redo__.splice(h,1),this.__redo__.forEach(function(p,v){p>d&&(this.__redo__[v]=--p)},this)))}),_onClear:i(function(){this.__redo__&&e.call(this.__redo__),this.__nextIndex__=0})}))),l(c.prototype,o.iterator,i(function(){return this})),Bw}var UD;function i_e(){if(UD)return Pw.exports;UD=1;var e=TO(),t=xX,r=go,n=Oc(),i=OJ(),a=Object.defineProperty,o;return o=Pw.exports=function(l,u){if(!(this instanceof o))throw new TypeError("Constructor requires 'new'");i.call(this,l),u?t.call(u,"key+value")?u="key+value":t.call(u,"key")?u="key":u="value":u="value",a(this,"__kind__",r("",u))},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")),Pw.exports}var zw={exports:{}},jD;function a_e(){if(jD)return zw.exports;jD=1;var e=TO(),t=go,r=Oc(),n=OJ(),i=Object.defineProperty,a;return a=zw.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],u;return this.__nextIndex__===this.__length__?l:(u=l.charCodeAt(0),u>=55296&&u<=56319?l+this.__list__[this.__nextIndex__++]:l)})}),i(a.prototype,r.toStringTag,t("c","String Iterator")),zw.exports}var Uw,HD;function o_e(){if(HD)return Uw;HD=1;var e=n2(),t=Bl,r=i2(),n=Oc().iterator,i=Array.isArray;return Uw=function(a){return t(a)?i(a)||r(a)||e(a)?!0:typeof a[n]=="function":!1},Uw}var jw,GD;function l_e(){if(GD)return jw;GD=1;var e=o_e();return jw=function(t){if(!e(t))throw new TypeError(t+" is not iterable");return t},jw}var Hw,WD;function RJ(){if(WD)return Hw;WD=1;var e=n2(),t=i2(),r=i_e(),n=a_e(),i=l_e(),a=Oc().iterator;return Hw=function(o){return typeof i(o)[a]=="function"?o[a]():e(o)?new r(o):t(o)?new n(o):new r(o)},Hw}var Gw,VD;function s_e(){if(VD)return Gw;VD=1;var e=n2(),t=Go,r=i2(),n=RJ(),i=Array.isArray,a=Function.prototype.call,o=Array.prototype.some;return Gw=function(l,u){var c,d=arguments[2],h,p,v,$,S,g,b;if(i(l)||e(l)?c="array":r(l)?c="string":l=n(l),t(u),p=function(){v=!0},c==="array"){o.call(l,function(_){return a.call(u,d,_,p),v});return}if(c==="string"){for(S=l.length,$=0;$<S&&(g=l[$],$+1<S&&(b=g.charCodeAt(0),b>=55296&&b<=56319&&(g+=l[++$])),a.call(u,d,g,p),!v);++$);return}for(h=l.next();!h.done;){if(a.call(u,d,h.value,p),v)return;h=l.next()}},Gw}var Ww,KD;function u_e(){return KD||(KD=1,Ww=function(){return typeof WeakMap!="function"?!1:Object.prototype.toString.call(new WeakMap)==="[object WeakMap]"}()),Ww}var Vw,qD;function c_e(){if(qD)return Vw;qD=1;var e=Bl,t=TO(),r=q5e(),n=mo,i=Y5e(),a=go,o=RJ(),l=s_e(),u=Oc().toStringTag,c=u_e(),d=Array.isArray,h=Object.defineProperty,p=Object.prototype.hasOwnProperty,v=Object.getPrototypeOf,$;return Vw=$=function(){var S=arguments[0],g;if(!(this instanceof $))throw new TypeError("Constructor requires 'new'");return g=c&&t&&WeakMap!==$?t(new WeakMap,v(this)):this,e(S)&&(d(S)||(S=o(S))),h(g,"__weakMapData__",a("c","$weakMap$"+i())),S&&l(S,function(b){n(b),g.set(b[0],b[1])}),g},c&&(t&&t($,WeakMap),$.prototype=Object.create(WeakMap.prototype,{constructor:a($)})),Object.defineProperties($.prototype,{delete:a(function(S){return p.call(r(S),this.__weakMapData__)?(delete S[this.__weakMapData__],!0):!1}),get:a(function(S){if(p.call(r(S),this.__weakMapData__))return S[this.__weakMapData__]}),has:a(function(S){return p.call(r(S),this.__weakMapData__)}),set:a(function(S,g){return h(r(S),this.__weakMapData__,a("c",g)),this}),toString:a(function(){return"[object WeakMap]"})}),h($.prototype,u,a("c","WeakMap")),Vw}var IJ=V5e()?WeakMap:c_e(),f_e=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 m1=A2,d_e=Km,kT=$c,Ff=wJ,p_e=eu,h_e=qm,YD=j5e,v_e=G5e,{float32:m_e,fract32:Kw}=AO,g_e=IJ,XD=E2,y_e=f_e;var BEe=Hr;function Hr(e,t){if(!(this instanceof Hr))return new Hr(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=Hr.shaders.has(e)?Hr.shaders.get(e):Hr.shaders.set(e,Hr.createShaders(e)).get(e),this.update(t)}Hr.dashMult=2;Hr.maxPatternLength=256;Hr.precisionThreshold=3e6;Hr.maxPoints=1e4;Hr.maxLines=2048;Hr.shaders=new g_e;Hr.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(kT({vert:Ff("./rect-vert.glsl"),frag:Ff("./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(kT({cull:{enable:!0,face:"back"},vert:Ff("./miter-vert.glsl"),frag:Ff("./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:Ff("./fill-vert.glsl"),frag:Ff("./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}};Hr.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};Hr.prototype.render=function(...e){e.length&&this.update(...e),this.draw()};Hr.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>Hr.precisionThreshold||t.scale[1]*t.viewport.height>Hr.precisionThreshold?this.shaders.rect(t):t.join==="rect"||!t.join&&(t.thickness<=2||t.count>=Hr.maxPoints)?this.shaders.rect(t):this.shaders.miter(t)))}),this};Hr.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=p_e(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=kT({},Hr.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<Hr.maxLines&&(o.depth=2*(Hr.maxLines-1-a%Hr.maxLines)/Hr.maxLines-1)),i.join!=null&&(o.join=i.join),i.hole!=null&&(o.hole=i.hole),i.fill!=null&&(o.fill=i.fill?m1(i.fill,"uint8"):null),i.viewport!=null&&(o.viewport=XD(i.viewport)),o.viewport||(o.viewport=XD([r.drawingBufferWidth,r.drawingBufferHeight])),i.close!=null&&(o.close=i.close),i.positions===null&&(i.positions=[]),i.positions){let c,d;if(i.positions.x&&i.positions.y){let $=i.positions.x,S=i.positions.y;d=o.count=Math.max($.length,S.length),c=new Float64Array(d*2);for(let g=0;g<d;g++)c[g*2]=$[g],c[g*2+1]=S[g]}else c=h_e(i.positions,"float64"),d=o.count=Math.floor(c.length/2);let h=o.bounds=d_e(c,2);if(o.fill){let $=[],S={},g=0;for(let b=0,_=0,E=o.count;b<E;b++){let A=c[b*2],M=c[b*2+1];isNaN(A)||isNaN(M)||A==null||M==null?(A=c[g*2],M=c[g*2+1],S[b]=g):g=b,$[_++]=A,$[_++]=M}if(i.splitNull){o.count-1 in S||(S[o.count]=o.count-1);let b=Object.keys(S).map(Number).sort((M,N)=>M-N),_=[],E=0,A=o.hole!=null?o.hole[0]:null;if(A!=null){let M=y_e(b,N=>N>=A);b=b.slice(0,M),b.push(A)}for(let M=0;M<b.length;M++){let N=$.slice(E*2,b[M]*2).concat(A?$.slice(A*2):[]),U=(o.hole||[]).map(j=>j-A+(b[M]-E)),I=YD(N,U);I=I.map(j=>j+E+(j+E<b[M]?0:A-b[M])),_.push(...I),E=b[M]+1}for(let M=0,N=_.length;M<N;M++)S[_[M]]!=null&&(_[M]=S[_[M]]);o.triangles=_}else{let b=YD($,o.hole||[]);for(let _=0,E=b.length;_<E;_++)S[b[_]]!=null&&(b[_]=S[b[_]]);o.triangles=b}}let p=new Float64Array(c);v_e(p,2,h);let v=new Float64Array(d*2+6);o.close?c[0]===c[d*2-2]&&c[1]===c[d*2-1]?(v[0]=p[d*2-4],v[1]=p[d*2-3]):(v[0]=p[d*2-2],v[1]=p[d*2-1]):(v[0]=p[0],v[1]=p[1]),v.set(p,2),o.close?c[0]===c[d*2-2]&&c[1]===c[d*2-1]?(v[d*2+2]=p[2],v[d*2+3]=p[3],o.count-=1):(v[d*2+2]=p[0],v[d*2+3]=p[1],v[d*2+4]=p[2],v[d*2+5]=p[3]):(v[d*2+2]=p[d*2-2],v[d*2+3]=p[d*2-1],v[d*2+4]=p[d*2-2],v[d*2+5]=p[d*2-1]);var l=m_e(v);o.positionBuffer(l);var u=Kw(v,l);o.positionFractBuffer(u)}if(i.range?o.range=i.range:o.range||(o.range=o.bounds),(i.range||i.positions)&&o.count){let c=o.bounds,d=c[2]-c[0],h=c[3]-c[1],p=o.range[2]-o.range[0],v=o.range[3]-o.range[1];o.scale=[d/p,h/v],o.translate=[-o.range[0]/p+c[0]/p||0,-o.range[1]/v+c[1]/v||0],o.scaleFract=Kw(o.scale),o.translateFract=Kw(o.translate)}if(i.dashes){let c=0,d;if(!i.dashes||i.dashes.length<2)c=1,d=new Uint8Array([255,255,255,255,255,255,255,255]);else{c=0;for(let v=0;v<i.dashes.length;++v)c+=i.dashes[v];d=new Uint8Array(c*Hr.dashMult);let h=0,p=255;for(let v=0;v<2;v++)for(let $=0;$<i.dashes.length;++$){for(let S=0,g=i.dashes[$]*Hr.dashMult*.5;S<g;++S)d[h++]=p;p^=255}}o.dashLength=c,o.dashTexture({channels:1,data:d,width:d.length,height:1,mag:"linear",min:"linear"},0,0)}if(i.color){let c=o.count,d=i.color;d||(d="transparent");let h=new Uint8Array(c*4+4);if(!Array.isArray(d)||typeof d[0]=="number"){let p=m1(d,"uint8");for(let v=0;v<c+1;v++)h.set(p,v*4)}else{for(let p=0;p<c;p++){let v=m1(d[p],"uint8");h.set(v,p*4)}h.set(m1(d[0],"uint8"),c*4)}o.colorBuffer({usage:"dynamic",type:"uint8",data:h})}}}),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};Hr.prototype.destroy=function(){return this.passes.forEach(e=>{e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()}),this.passes.length=0,this};const b_e=Km,$_e=A2,x_e=_J,w_e=eu,QD=$c,ZD=qm,{float32:__e,fract32:qw}=AO;var zEe=S_e;const JD=[[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 S_e(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,u,c={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)}),u=e.buffer({usage:"static",type:"float",data:JD}),$(t),n=e({vert:`
1050
+ precision highp float;
1051
+
1052
+ attribute vec2 position, positionFract;
1053
+ attribute vec4 error;
1054
+ attribute vec4 color;
1055
+
1056
+ attribute vec2 direction, lineOffset, capOffset;
1057
+
1058
+ uniform vec4 viewport;
1059
+ uniform float lineWidth, capSize;
1060
+ uniform vec2 scale, scaleFract, translate, translateFract;
1061
+
1062
+ varying vec4 fragColor;
1063
+
1064
+ void main() {
1065
+ fragColor = color / 255.;
1066
+
1067
+ vec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;
1068
+
1069
+ vec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;
1070
+
1071
+ vec2 position = position + dxy;
1072
+
1073
+ vec2 pos = (position + translate) * scale
1074
+ + (positionFract + translateFract) * scale
1075
+ + (position + translate) * scaleFract
1076
+ + (positionFract + translateFract) * scaleFract;
1077
+
1078
+ pos += pixelOffset / viewport.zw;
1079
+
1080
+ gl_Position = vec4(pos * 2. - 1., 0, 1);
1081
+ }
1082
+ `,frag:`
1083
+ precision highp float;
1084
+
1085
+ varying vec4 fragColor;
1086
+
1087
+ uniform float opacity;
1088
+
1089
+ void main() {
1090
+ gl_FragColor = fragColor;
1091
+ gl_FragColor.a *= opacity;
1092
+ }
1093
+ `,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:(g,b)=>[b.viewport.x,b.viewport.y,g.viewportWidth,g.viewportHeight]},attributes:{color:{buffer:o,offset:(g,b)=>b.offset*4,divisor:1},position:{buffer:i,offset:(g,b)=>b.offset*8,divisor:1},positionFract:{buffer:a,offset:(g,b)=>b.offset*8,divisor:1},error:{buffer:l,offset:(g,b)=>b.offset*16,divisor:1},direction:{buffer:u,stride:24,offset:0},lineOffset:{buffer:u,stride:24,offset:8},capOffset:{buffer:u,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:JD.length}),QD(h,{update:$,draw:p,destroy:S,regl:e,gl:r,canvas:r.canvas,groups:d}),h;function h(g){g?$(g):g===null&&S(),p()}function p(g){if(typeof g=="number")return v(g);g&&!Array.isArray(g)&&(g=[g]),e._refresh(),d.forEach((b,_)=>{if(b){if(g&&(g[_]?b.draw=!0:b.draw=!1),!b.draw){b.draw=!0;return}v(_)}})}function v(g){typeof g=="number"&&(g=d[g]),g!=null&&g&&g.count&&g.color&&g.opacity&&g.positions&&g.positions.length>1&&(g.scaleRatio=[g.scale[0]*g.viewport.width,g.scale[1]*g.viewport.height],n(g),g.after&&g.after(g))}function $(g){if(!g)return;g.length!=null?typeof g[0]=="number"&&(g=[{positions:g}]):Array.isArray(g)||(g=[g]);let b=0,_=0;if(h.groups=d=g.map((M,N)=>{let U=d[N];if(M)typeof M=="function"?M={after:M}:typeof M[0]=="number"&&(M={positions:M});else return U;return M=w_e(M,{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"}),U||(d[N]=U={id:N,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},M=QD({},c,M)),x_e(U,M,[{lineWidth:I=>+I*.5,capSize:I=>+I*.5,opacity:parseFloat,errors:I=>(I=ZD(I),_+=I.length,I),positions:(I,j)=>(I=ZD(I,"float64"),j.count=Math.floor(I.length/2),j.bounds=b_e(I,2),j.offset=b,b+=j.count,I)},{color:(I,j)=>{let he=j.count;if(I||(I="transparent"),!Array.isArray(I)||typeof I[0]=="number"){let fe=I;I=Array(he);for(let ne=0;ne<he;ne++)I[ne]=fe}if(I.length<he)throw Error("Not enough colors");let q=new Uint8Array(he*4);for(let fe=0;fe<he;fe++){let ne=$_e(I[fe],"uint8");q.set(ne,fe*4)}return q},range:(I,j,he)=>{let q=j.bounds;return I||(I=q),j.scale=[1/(I[2]-I[0]),1/(I[3]-I[1])],j.translate=[-I[0],-I[1]],j.scaleFract=qw(j.scale),j.translateFract=qw(j.translate),I},viewport:I=>{let j;return Array.isArray(I)?j={x:I[0],y:I[1],width:I[2]-I[0],height:I[3]-I[1]}:I?(j={x:I.x||I.left||0,y:I.y||I.top||0},I.right?j.width=I.right-j.x:j.width=I.w||I.width||0,I.bottom?j.height=I.bottom-j.y:j.height=I.h||I.height||0):j={x:0,y:0,width:r.drawingBufferWidth,height:r.drawingBufferHeight},j}}]),U}),b||_){let M=d.reduce((j,he,q)=>j+(he?he.count:0),0),N=new Float64Array(M*2),U=new Uint8Array(M*4),I=new Float32Array(M*4);d.forEach((j,he)=>{if(!j)return;let{positions:q,count:fe,offset:ne,color:ce,errors:De}=j;fe&&(U.set(ce,ne*4),I.set(De,ne*4),N.set(q,ne*2))});var E=__e(N);i(E);var A=qw(N,E);a(A),o(U),l(I)}}function S(){i.destroy(),a.destroy(),o.destroy(),l.destroy(),u.destroy()}}var eB=/[\'\"]/,E_e=function(t){return t?(eB.test(t.charAt(0))&&(t=t.substr(1)),eB.test(t.charAt(t.length-1))&&(t=t.substr(0,t.length-1)),t):""};const kJ=["inherit","initial","unset"],FJ=["caption","icon","menu","message-box","small-caption","status-bar"],NJ=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"],LJ=["normal","italic","oblique"],DJ=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"];function BJ(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(u){var c=new RegExp(["\\",u[0],"[^\\",u[0],"\\",u[1],"]*\\",u[1]].join("")),d=[];function h(p,v,$){var S=r.push(p.slice(u[0].length,-u[1].length))-1;return d.push(S),i+S+i}r.forEach(function(p,v){for(var $,S=0;p!=$;)if($=p,p=p.replace(c,h),S++>1e4)throw Error("References have circular dependency. Please, check them.");r[v]=p}),d=d.reverse(),r=r.map(function(p){return d.forEach(function(v){p=p.replace(new RegExp("(\\"+i+v+"\\"+i+")","g"),u[0]+"$1"+u[1])}),p})});var o=new RegExp("\\"+i+"([0-9]+)\\"+i);function l(u,c,d){for(var h=[],p,v=0;p=o.exec(u);){if(v++>1e4)throw Error("Circular references in parenthesis");h.push(u.slice(0,p.index)),h.push(l(c[p[1]],c)),u=u.slice(p.index+p[0].length)}return h.push(u),h}return a?r:l(r[0],r)}function zJ(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 u(c,d){return Array.isArray(d)&&(d=d.reduce(u,"")),c+d},"");function l(u,c){if(e[c]==null)throw Error("Reference "+c+"is undefined");return e[c]}}function PO(e,t){return Array.isArray(e)?zJ(e,t):BJ(e,t)}PO.parse=BJ;PO.stringify=zJ;var A_e=PO,tB=A_e,C_e=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(h){return h.length===1&&(h=h+h),h}));var i=tB.parse(t,{flat:!0,brackets:n.ignore}),a=i[0],o=a.split(r);if(n.escape){for(var l=[],u=0;u<o.length;u++){var c=o[u],d=o[u+1];c[c.length-1]==="\\"&&c[c.length-2]!=="\\"?(l.push(c+r+d),u++):l.push(c)}o=l}for(var u=0;u<o.length;u++)i[0]=o[u],o[u]=tB.stringify(i,{flat:!0});return o};const T_e=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"];var P_e=T_e,UJ={isSize:function(t){return/^[\d\.]/.test(t)||t.indexOf("/")!==-1||P_e.indexOf(t)!==-1}},M_e=E_e,O_e=kJ,R_e=FJ,I_e=NJ,k_e=LJ,F_e=DJ,Yw=C_e,N_e=UJ.isSize,L_e=jJ,qh=jJ.cache={};function jJ(e){if(typeof e!="string")throw new Error("Font argument must be a string.");if(qh[e])return qh[e];if(e==="")throw new Error("Cannot parse an empty string.");if(R_e.indexOf(e)!==-1)return qh[e]={system:e};for(var t={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},r=Yw(e,/\s+/),n;n=r.shift();){if(O_e.indexOf(n)!==-1)return["style","variant","weight","stretch"].forEach(function(a){t[a]=n}),qh[e]=t;if(k_e.indexOf(n)!==-1){t.style=n;continue}if(n==="normal"||n==="small-caps"){t.variant=n;continue}if(F_e.indexOf(n)!==-1){t.stretch=n;continue}if(I_e.indexOf(n)!==-1){t.weight=n;continue}if(N_e(n)){var i=Yw(n,"/");if(t.size=i[0],i[1]!=null?t.lineHeight=rB(i[1]):r[0]==="/"&&(r.shift(),t.lineHeight=rB(r.shift())),!r.length)throw new Error("Missing required font-family.");return t.family=Yw(r.join(" "),/\s*,\s*/).map(M_e),qh[e]=t}throw new Error("Unknown or unsupported font token: "+n)}throw new Error("Missing required font-size.")}function rB(e){var t=parseFloat(e);return t.toString()===e?t:e}var D_e=eu,B_e=UJ.isSize,z_e=Ym(kJ),U_e=Ym(FJ),j_e=Ym(NJ),H_e=Ym(LJ),G_e=Ym(DJ),W_e={normal:1,"small-caps":1},V_e={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},Xw={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"},HJ=function(t){if(t=D_e(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&&Yh(t.system,U_e),t.system;if(Yh(t.style,H_e),Yh(t.variant,W_e),Yh(t.weight,j_e),Yh(t.stretch,G_e),t.size==null&&(t.size=Xw.size),typeof t.size=="number"&&(t.size+="px"),!B_e)throw Error("Bad size value `"+t.size+"`");t.family||(t.family=Xw.family),Array.isArray(t.family)&&(t.family.length||(t.family=[Xw.family]),t.family=t.family.map(function(n){return V_e[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 Yh(e,t){if(e&&!t[e]&&!z_e[e])throw Error("Unknown keyword `"+e+"`");return e}function Ym(e){for(var t={},r=0;r<e.length;r++)t[e[r]]=1;return t}var K_e={parse:L_e,stringify:HJ},GJ={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ir,function(){var r=function(F,X){for(var re=Object.keys(X),Re=0;Re<re.length;++Re)F[re[Re]]=X[re[Re]];return F},n=0,i=0,a=5,o=6;function l(F,X){this.id=n++,this.type=F,this.data=X}function u(F){return F.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function c(F){if(F.length===0)return[];var X=F.charAt(0),re=F.charAt(F.length-1);if(F.length>1&&X===re&&(X==='"'||X==="'"))return['"'+u(F.substr(1,F.length-2))+'"'];var Re=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(F);if(Re)return c(F.substr(0,Re.index)).concat(c(Re[1])).concat(c(F.substr(Re.index+Re[0].length)));var ze=F.split(".");if(ze.length===1)return['"'+u(F)+'"'];for(var Te=[],Me=0;Me<ze.length;++Me)Te=Te.concat(c(ze[Me]));return Te}function d(F){return"["+c(F).join("][")+"]"}function h(F,X){return new l(F,d(X+""))}function p(F){return typeof F=="function"&&!F._reglType||F instanceof l}function v(F,X){if(typeof F=="function")return new l(i,F);if(typeof F=="number"||typeof F=="boolean")return new l(a,F);if(Array.isArray(F))return new l(o,F.map(function(re,Re){return v(re)}));if(F instanceof l)return F}var $={DynamicVariable:l,define:h,isDynamic:p,unbox:v,accessor:d},S={next:typeof requestAnimationFrame=="function"?function(F){return requestAnimationFrame(F)}:function(F){return setTimeout(F,16)},cancel:typeof cancelAnimationFrame=="function"?function(F){return cancelAnimationFrame(F)}:clearTimeout},g=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function b(){var F={"":0},X=[""];return{id:function(re){var Re=F[re];return Re||(Re=F[re]=X.length,X.push(re),Re)},str:function(re){return X[re]}}}function _(F,X,re){var Re=document.createElement("canvas");r(Re.style,{border:0,margin:0,padding:0,top:0,left:0,width:"100%",height:"100%"}),F.appendChild(Re),F===document.body&&(Re.style.position="absolute",r(F.style,{margin:0,padding:0}));function ze(){var it=window.innerWidth,at=window.innerHeight;if(F!==document.body){var st=Re.getBoundingClientRect();it=st.right-st.left,at=st.bottom-st.top}Re.width=re*it,Re.height=re*at}var Te;F!==document.body&&typeof ResizeObserver=="function"?(Te=new ResizeObserver(function(){setTimeout(ze)}),Te.observe(F)):window.addEventListener("resize",ze,!1);function Me(){Te?Te.disconnect():window.removeEventListener("resize",ze),F.removeChild(Re)}return ze(),{canvas:Re,onDestroy:Me}}function E(F,X){function re(Re){try{return F.getContext(Re,X)}catch{return null}}return re("webgl")||re("experimental-webgl")||re("webgl-experimental")}function A(F){return typeof F.nodeName=="string"&&typeof F.appendChild=="function"&&typeof F.getBoundingClientRect=="function"}function M(F){return typeof F.drawArrays=="function"||typeof F.drawElements=="function"}function N(F){return typeof F=="string"?F.split():F}function U(F){return typeof F=="string"?document.querySelector(F):F}function I(F){var X=F||{},re,Re,ze,Te,Me={},it=[],at=[],st=typeof window>"u"?1:window.devicePixelRatio,mt=!1,Ft={},Tt=function(be){},dt=function(){};if(typeof X=="string"?re=document.querySelector(X):typeof X=="object"&&(A(X)?re=X:M(X)?(Te=X,ze=Te.canvas):("gl"in X?Te=X.gl:"canvas"in X?ze=U(X.canvas):"container"in X&&(Re=U(X.container)),"attributes"in X&&(Me=X.attributes),"extensions"in X&&(it=N(X.extensions)),"optionalExtensions"in X&&(at=N(X.optionalExtensions)),"onDone"in X&&(Tt=X.onDone),"profile"in X&&(mt=!!X.profile),"pixelRatio"in X&&(st=+X.pixelRatio),"cachedCode"in X&&(Ft=X.cachedCode))),re&&(re.nodeName.toLowerCase()==="canvas"?ze=re:Re=re),!Te){if(!ze){var Je=_(Re||document.body,Tt,st);if(!Je)return null;ze=Je.canvas,dt=Je.onDestroy}Me.premultipliedAlpha===void 0&&(Me.premultipliedAlpha=!0),Te=E(ze,Me)}return Te?{gl:Te,canvas:ze,container:Re,extensions:it,optionalExtensions:at,pixelRatio:st,profile:mt,cachedCode:Ft,onDone:Tt,onDestroy:dt}:(dt(),Tt("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function j(F,X){var re={};function Re(Me){var it=Me.toLowerCase(),at;try{at=re[it]=F.getExtension(it)}catch{}return!!at}for(var ze=0;ze<X.extensions.length;++ze){var Te=X.extensions[ze];if(!Re(Te))return X.onDestroy(),X.onDone('"'+Te+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return X.optionalExtensions.forEach(Re),{extensions:re,restore:function(){Object.keys(re).forEach(function(Me){if(re[Me]&&!Re(Me))throw new Error("(regl): error restoring extension "+Me)})}}}function he(F,X){for(var re=Array(F),Re=0;Re<F;++Re)re[Re]=X(Re);return re}var q=5120,fe=5121,ne=5122,ce=5123,De=5124,We=5125,Ae=5126;function $e(F){for(var X=16;X<=1<<28;X*=16)if(F<=X)return X;return 0}function rt(F){var X,re;return X=(F>65535)<<4,F>>>=X,re=(F>255)<<3,F>>>=re,X|=re,re=(F>15)<<2,F>>>=re,X|=re,re=(F>3)<<1,F>>>=re,X|=re,X|F>>1}function Be(){var F=he(8,function(){return[]});function X(Te){var Me=$e(Te),it=F[rt(Me)>>2];return it.length>0?it.pop():new ArrayBuffer(Me)}function re(Te){F[rt(Te.byteLength)>>2].push(Te)}function Re(Te,Me){var it=null;switch(Te){case q:it=new Int8Array(X(Me),0,Me);break;case fe:it=new Uint8Array(X(Me),0,Me);break;case ne:it=new Int16Array(X(2*Me),0,Me);break;case ce:it=new Uint16Array(X(2*Me),0,Me);break;case De:it=new Int32Array(X(4*Me),0,Me);break;case We:it=new Uint32Array(X(4*Me),0,Me);break;case Ae:it=new Float32Array(X(4*Me),0,Me);break;default:return null}return it.length!==Me?it.subarray(0,Me):it}function ze(Te){re(Te.buffer)}return{alloc:X,free:re,allocType:Re,freeType:ze}}var Ee=Be();Ee.zero=Be();var Ke=3408,Ge=3410,Fe=3411,ft=3412,bt=3413,Gt=3414,qt=3415,nt=33901,At=33902,Wt=3379,we=3386,W=34921,le=36347,R=36348,T=35661,O=35660,H=34930,ge=36349,He=34076,Xe=34024,er=7936,xr=7937,pr=7938,Tn=35724,Jr=34047,bo=36063,ru=34852,Vo=3553,Aa=34067,r0=34069,Ya=33984,nu=6408,Lc=5126,Dc=5121,Bc=36160,K2=36053,Ko=36064,q2=16384,zc=function(F,X){var re=1;X.ext_texture_filter_anisotropic&&(re=F.getParameter(Jr));var Re=1,ze=1;X.webgl_draw_buffers&&(Re=F.getParameter(ru),ze=F.getParameter(bo));var Te=!!X.oes_texture_float;if(Te){var Me=F.createTexture();F.bindTexture(Vo,Me),F.texImage2D(Vo,0,nu,1,1,0,nu,Lc,null);var it=F.createFramebuffer();if(F.bindFramebuffer(Bc,it),F.framebufferTexture2D(Bc,Ko,Vo,Me,0),F.bindTexture(Vo,null),F.checkFramebufferStatus(Bc)!==K2)Te=!1;else{F.viewport(0,0,1,1),F.clearColor(1,0,0,1),F.clear(q2);var at=Ee.allocType(Lc,4);F.readPixels(0,0,1,1,nu,Lc,at),F.getError()?Te=!1:(F.deleteFramebuffer(it),F.deleteTexture(Me),Te=at[0]===1),Ee.freeType(at)}}var st=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),mt=!0;if(!st){var Ft=F.createTexture(),Tt=Ee.allocType(Dc,36);F.activeTexture(Ya),F.bindTexture(Aa,Ft),F.texImage2D(r0,0,nu,3,3,0,nu,Dc,Tt),Ee.freeType(Tt),F.bindTexture(Aa,null),F.deleteTexture(Ft),mt=!F.getError()}return{colorBits:[F.getParameter(Ge),F.getParameter(Fe),F.getParameter(ft),F.getParameter(bt)],depthBits:F.getParameter(Gt),stencilBits:F.getParameter(qt),subpixelBits:F.getParameter(Ke),extensions:Object.keys(X).filter(function(dt){return!!X[dt]}),maxAnisotropic:re,maxDrawbuffers:Re,maxColorAttachments:ze,pointSizeDims:F.getParameter(nt),lineWidthDims:F.getParameter(At),maxViewportDims:F.getParameter(we),maxCombinedTextureUnits:F.getParameter(T),maxCubeMapSize:F.getParameter(He),maxRenderbufferSize:F.getParameter(Xe),maxTextureUnits:F.getParameter(H),maxTextureSize:F.getParameter(Wt),maxAttributes:F.getParameter(W),maxVertexUniforms:F.getParameter(le),maxVertexTextureUnits:F.getParameter(O),maxVaryingVectors:F.getParameter(R),maxFragmentUniforms:F.getParameter(ge),glsl:F.getParameter(Tn),renderer:F.getParameter(xr),vendor:F.getParameter(er),version:F.getParameter(pr),readFloat:Te,npotTextureCube:mt}},Un=function(F){return F instanceof Uint8Array||F instanceof Uint16Array||F instanceof Uint32Array||F instanceof Int8Array||F instanceof Int16Array||F instanceof Int32Array||F instanceof Float32Array||F instanceof Float64Array||F instanceof Uint8ClampedArray};function ia(F){return!!F&&typeof F=="object"&&Array.isArray(F.shape)&&Array.isArray(F.stride)&&typeof F.offset=="number"&&F.shape.length===F.stride.length&&(Array.isArray(F.data)||Un(F.data))}var Ii=function(F){return Object.keys(F).map(function(X){return F[X]})},hr={shape:a0,flatten:Ca};function n0(F,X,re){for(var Re=0;Re<X;++Re)re[Re]=F[Re]}function Xa(F,X,re,Re){for(var ze=0,Te=0;Te<X;++Te)for(var Me=F[Te],it=0;it<re;++it)Re[ze++]=Me[it]}function Ul(F,X,re,Re,ze,Te){for(var Me=Te,it=0;it<X;++it)for(var at=F[it],st=0;st<re;++st)for(var mt=at[st],Ft=0;Ft<Re;++Ft)ze[Me++]=mt[Ft]}function i0(F,X,re,Re,ze){for(var Te=1,Me=re+1;Me<X.length;++Me)Te*=X[Me];var it=X[re];if(X.length-re===4){var at=X[re+1],st=X[re+2],mt=X[re+3];for(Me=0;Me<it;++Me)Ul(F[Me],at,st,mt,Re,ze),ze+=Te}else for(Me=0;Me<it;++Me)i0(F[Me],X,re+1,Re,ze),ze+=Te}function Ca(F,X,re,Re){var ze=1;if(X.length)for(var Te=0;Te<X.length;++Te)ze*=X[Te];else ze=0;var Me=Re||Ee.allocType(re,ze);switch(X.length){case 0:break;case 1:n0(F,X[0],Me);break;case 2:Xa(F,X[0],X[1],Me);break;case 3:Ul(F,X[0],X[1],X[2],Me,0);break;default:i0(F,X,0,Me,0)}return Me}function a0(F){for(var X=[],re=F;re.length;re=re[0])X.push(re.length);return X}var iu={"[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},Y2=5120,o0=5122,X2=5124,l0=5121,Q2=5123,au=5125,up=5126,s0=5126,ou={int8:Y2,int16:o0,int32:X2,uint8:l0,uint16:Q2,uint32:au,float:up,float32:s0},Uc=35048,cp=35040,$o={dynamic:Uc,stream:cp,static:35044},ji=hr.flatten,jc=hr.shape,Hc=35044,aa=35040,lu=5121,su=5126,Fn=[];Fn[5120]=1,Fn[5122]=2,Fn[5124]=4,Fn[5121]=1,Fn[5123]=2,Fn[5125]=4,Fn[5126]=4;function qo(F){return iu[Object.prototype.toString.call(F)]|0}function fp(F,X){for(var re=0;re<X.length;++re)F[re]=X[re]}function dp(F,X,re,Re,ze,Te,Me){for(var it=0,at=0;at<re;++at)for(var st=0;st<Re;++st)F[it++]=X[ze*at+Te*st+Me]}function u0(F,X,re,Re){var ze=0,Te={};function Me(be){this.id=ze++,this.buffer=F.createBuffer(),this.type=be,this.usage=Hc,this.byteLength=0,this.dimension=1,this.dtype=lu,this.persistentData=null,re.profile&&(this.stats={size:0})}Me.prototype.bind=function(){F.bindBuffer(this.type,this.buffer)},Me.prototype.destroy=function(){Tt(this)};var it=[];function at(be,ke){var et=it.pop();return et||(et=new Me(be)),et.bind(),Ft(et,ke,aa,0,1,!1),et}function st(be){it.push(be)}function mt(be,ke,et){be.byteLength=ke.byteLength,F.bufferData(be.type,ke,et)}function Ft(be,ke,et,ot,Ve,$t){var ht;if(be.usage=et,Array.isArray(ke)){if(be.dtype=ot||su,ke.length>0){var Nt;if(Array.isArray(ke[0])){ht=jc(ke);for(var qe=1,Ue=1;Ue<ht.length;++Ue)qe*=ht[Ue];be.dimension=qe,Nt=ji(ke,ht,be.dtype),mt(be,Nt,et),$t?be.persistentData=Nt:Ee.freeType(Nt)}else if(typeof ke[0]=="number"){be.dimension=Ve;var wt=Ee.allocType(be.dtype,ke.length);fp(wt,ke),mt(be,wt,et),$t?be.persistentData=wt:Ee.freeType(wt)}else Un(ke[0])&&(be.dimension=ke[0].length,be.dtype=ot||qo(ke[0])||su,Nt=ji(ke,[ke.length,ke[0].length],be.dtype),mt(be,Nt,et),$t?be.persistentData=Nt:Ee.freeType(Nt))}}else if(Un(ke))be.dtype=ot||qo(ke),be.dimension=Ve,mt(be,ke,et),$t&&(be.persistentData=new Uint8Array(new Uint8Array(ke.buffer)));else if(ia(ke)){ht=ke.shape;var Ie=ke.stride,gt=ke.offset,lt=0,Lt=0,ur=0,St=0;ht.length===1?(lt=ht[0],Lt=1,ur=Ie[0],St=0):ht.length===2&&(lt=ht[0],Lt=ht[1],ur=Ie[0],St=Ie[1]),be.dtype=ot||qo(ke.data)||su,be.dimension=Lt;var Ht=Ee.allocType(be.dtype,lt*Lt);dp(Ht,ke.data,lt,Lt,ur,St,gt),mt(be,Ht,et),$t?be.persistentData=Ht:Ee.freeType(Ht)}else ke instanceof ArrayBuffer&&(be.dtype=lu,be.dimension=Ve,mt(be,ke,et),$t&&(be.persistentData=new Uint8Array(new Uint8Array(ke))))}function Tt(be){X.bufferCount--,Re(be);var ke=be.buffer;F.deleteBuffer(ke),be.buffer=null,delete Te[be.id]}function dt(be,ke,et,ot){X.bufferCount++;var Ve=new Me(ke);Te[Ve.id]=Ve;function $t(qe){var Ue=Hc,wt=null,Ie=0,gt=0,lt=1;return Array.isArray(qe)||Un(qe)||ia(qe)||qe instanceof ArrayBuffer?wt=qe:typeof qe=="number"?Ie=qe|0:qe&&("data"in qe&&(wt=qe.data),"usage"in qe&&(Ue=$o[qe.usage]),"type"in qe&&(gt=ou[qe.type]),"dimension"in qe&&(lt=qe.dimension|0),"length"in qe&&(Ie=qe.length|0)),Ve.bind(),wt?Ft(Ve,wt,Ue,gt,lt,ot):(Ie&&F.bufferData(Ve.type,Ie,Ue),Ve.dtype=gt||lu,Ve.usage=Ue,Ve.dimension=lt,Ve.byteLength=Ie),re.profile&&(Ve.stats.size=Ve.byteLength*Fn[Ve.dtype]),$t}function ht(qe,Ue){F.bufferSubData(Ve.type,Ue,qe)}function Nt(qe,Ue){var wt=(Ue||0)|0,Ie;if(Ve.bind(),Un(qe)||qe instanceof ArrayBuffer)ht(qe,wt);else if(Array.isArray(qe)){if(qe.length>0){if(typeof qe[0]=="number"){var gt=Ee.allocType(Ve.dtype,qe.length);fp(gt,qe),ht(gt,wt),Ee.freeType(gt)}else if(Array.isArray(qe[0])||Un(qe[0])){Ie=jc(qe);var lt=ji(qe,Ie,Ve.dtype);ht(lt,wt),Ee.freeType(lt)}}}else if(ia(qe)){Ie=qe.shape;var Lt=qe.stride,ur=0,St=0,Ht=0,vt=0;Ie.length===1?(ur=Ie[0],St=1,Ht=Lt[0],vt=0):Ie.length===2&&(ur=Ie[0],St=Ie[1],Ht=Lt[0],vt=Lt[1]);var cr=Array.isArray(qe.data)?Ve.dtype:qo(qe.data),br=Ee.allocType(cr,ur*St);dp(br,qe.data,ur,St,Ht,vt,qe.offset),ht(br,wt),Ee.freeType(br)}return $t}return et||$t(be),$t._reglType="buffer",$t._buffer=Ve,$t.subdata=Nt,re.profile&&($t.stats=Ve.stats),$t.destroy=function(){Tt(Ve)},$t}function Je(){Ii(Te).forEach(function(be){be.buffer=F.createBuffer(),F.bindBuffer(be.type,be.buffer),F.bufferData(be.type,be.persistentData||be.byteLength,be.usage)})}return re.profile&&(X.getTotalBufferSize=function(){var be=0;return Object.keys(Te).forEach(function(ke){be+=Te[ke].stats.size}),be}),{create:dt,createStream:at,destroyStream:st,clear:function(){Ii(Te).forEach(Tt),it.forEach(Tt)},getBuffer:function(be){return be&&be._buffer instanceof Me?be._buffer:null},restore:Je,_initBuffer:Ft}}var pp=0,c0=0,f0=1,hp=1,vp=4,mp=4,jn={points:pp,point:c0,lines:f0,line:hp,triangles:vp,triangle:mp,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},d0=0,Gc=1,xo=4,jl=5120,Yo=5121,gp=5122,Xo=5123,Wc=5124,wo=5125,Hl=34963,Or=35040,yp=35044;function Vc(F,X,re,Re){var ze={},Te=0,Me={uint8:Yo,uint16:Xo};X.oes_element_index_uint&&(Me.uint32=wo);function it(Je){this.id=Te++,ze[this.id]=this,this.buffer=Je,this.primType=xo,this.vertCount=0,this.type=0}it.prototype.bind=function(){this.buffer.bind()};var at=[];function st(Je){var be=at.pop();return be||(be=new it(re.create(null,Hl,!0,!1)._buffer)),Ft(be,Je,Or,-1,-1,0,0),be}function mt(Je){at.push(Je)}function Ft(Je,be,ke,et,ot,Ve,$t){Je.buffer.bind();var ht;if(be){var Nt=$t;!$t&&(!Un(be)||ia(be)&&!Un(be.data))&&(Nt=X.oes_element_index_uint?wo:Xo),re._initBuffer(Je.buffer,be,ke,Nt,3)}else F.bufferData(Hl,Ve,ke),Je.buffer.dtype=ht||Yo,Je.buffer.usage=ke,Je.buffer.dimension=3,Je.buffer.byteLength=Ve;if(ht=$t,!$t){switch(Je.buffer.dtype){case Yo:case jl:ht=Yo;break;case Xo:case gp:ht=Xo;break;case wo:case Wc:ht=wo;break}Je.buffer.dtype=ht}Je.type=ht;var qe=ot;qe<0&&(qe=Je.buffer.byteLength,ht===Xo?qe>>=1:ht===wo&&(qe>>=2)),Je.vertCount=qe;var Ue=et;if(et<0){Ue=xo;var wt=Je.buffer.dimension;wt===1&&(Ue=d0),wt===2&&(Ue=Gc),wt===3&&(Ue=xo)}Je.primType=Ue}function Tt(Je){Re.elementsCount--,delete ze[Je.id],Je.buffer.destroy(),Je.buffer=null}function dt(Je,be){var ke=re.create(null,Hl,!0),et=new it(ke._buffer);Re.elementsCount++;function ot(Ve){if(!Ve)ke(),et.primType=xo,et.vertCount=0,et.type=Yo;else if(typeof Ve=="number")ke(Ve),et.primType=xo,et.vertCount=Ve|0,et.type=Yo;else{var $t=null,ht=yp,Nt=-1,qe=-1,Ue=0,wt=0;Array.isArray(Ve)||Un(Ve)||ia(Ve)?$t=Ve:("data"in Ve&&($t=Ve.data),"usage"in Ve&&(ht=$o[Ve.usage]),"primitive"in Ve&&(Nt=jn[Ve.primitive]),"count"in Ve&&(qe=Ve.count|0),"type"in Ve&&(wt=Me[Ve.type]),"length"in Ve?Ue=Ve.length|0:(Ue=qe,wt===Xo||wt===gp?Ue*=2:(wt===wo||wt===Wc)&&(Ue*=4))),Ft(et,$t,ht,Nt,qe,Ue,wt)}return ot}return ot(Je),ot._reglType="elements",ot._elements=et,ot.subdata=function(Ve,$t){return ke.subdata(Ve,$t),ot},ot.destroy=function(){Tt(et)},ot}return{create:dt,createStream:st,destroyStream:mt,getElements:function(Je){return typeof Je=="function"&&Je._elements instanceof it?Je._elements:null},clear:function(){Ii(ze).forEach(Tt)}}}var p0=new Float32Array(1),Z2=new Uint32Array(p0.buffer),Kc=5123;function uu(F){for(var X=Ee.allocType(Kc,F.length),re=0;re<F.length;++re)if(isNaN(F[re]))X[re]=65535;else if(F[re]===1/0)X[re]=31744;else if(F[re]===-1/0)X[re]=64512;else{p0[0]=F[re];var Re=Z2[0],ze=Re>>>31<<15,Te=(Re<<1>>>24)-127,Me=Re>>13&(1<<10)-1;if(Te<-24)X[re]=ze;else if(Te<-14){var it=-14-Te;X[re]=ze+(Me+(1<<10)>>it)}else Te>15?X[re]=ze+31744:X[re]=ze+(Te+15<<10)+Me}return X}function oa(F){return Array.isArray(F)||Un(F)}var qc=34467,la=3553,Gl=34067,Wl=34069,_o=6408,Yc=6406,Qa=6407,Za=6409,cu=6410,h0=32854,Vl=32855,Xc=36194,bp=32819,v0=32820,Kl=33635,Qo=34042,So=6402,fu=34041,du=35904,Zo=35906,Jo=36193,$p=33776,Qc=33777,pu=33778,xp=33779,m0=35986,wp=35987,g0=34798,_p=35840,y0=35841,Sp=35842,b0=35843,el=36196,sa=5121,Ep=5123,Ap=5125,hu=5126,$0=10242,vu=10243,J2=10497,ql=33071,Zc=33648,Cp=10240,Jc=10241,tl=9728,mu=9729,ef=9984,tf=9985,x0=9986,Yl=9987,e$=33170,rf=4352,t$=4353,w0=4354,gu=34046,r$=3317,Tp=37440,_0=37441,Ja=37443,Pp=37444,rl=33984,Mp=[ef,x0,tf,Yl],Ta=[0,Za,cu,Qa,_o],_i={};_i[Za]=_i[Yc]=_i[So]=1,_i[fu]=_i[cu]=2,_i[Qa]=_i[du]=3,_i[_o]=_i[Zo]=4;function nl(F){return"[object "+F+"]"}var S0=nl("HTMLCanvasElement"),E0=nl("OffscreenCanvas"),A0=nl("CanvasRenderingContext2D"),Op=nl("ImageBitmap"),Rp=nl("HTMLImageElement"),C0=nl("HTMLVideoElement"),n$=Object.keys(iu).concat([S0,E0,A0,Op,Rp,C0]),Xl=[];Xl[sa]=1,Xl[hu]=4,Xl[Jo]=2,Xl[Ep]=2,Xl[Ap]=4;var Nn=[];Nn[h0]=2,Nn[Vl]=2,Nn[Xc]=2,Nn[fu]=4,Nn[$p]=.5,Nn[Qc]=.5,Nn[pu]=1,Nn[xp]=1,Nn[m0]=.5,Nn[wp]=1,Nn[g0]=1,Nn[_p]=.5,Nn[y0]=.25,Nn[Sp]=.5,Nn[b0]=.25,Nn[el]=.5;function T0(F){return Array.isArray(F)&&(F.length===0||typeof F[0]=="number")}function P0(F){if(!Array.isArray(F))return!1;var X=F.length;return!(X===0||!oa(F[0]))}function il(F){return Object.prototype.toString.call(F)}function M0(F){return il(F)===S0}function O0(F){return il(F)===E0}function i$(F){return il(F)===A0}function a$(F){return il(F)===Op}function o$(F){return il(F)===Rp}function l$(F){return il(F)===C0}function nf(F){if(!F)return!1;var X=il(F);return n$.indexOf(X)>=0?!0:T0(F)||P0(F)||ia(F)}function Ip(F){return iu[Object.prototype.toString.call(F)]|0}function R0(F,X){var re=X.length;switch(F.type){case sa:case Ep:case Ap:case hu:var Re=Ee.allocType(F.type,re);Re.set(X),F.data=Re;break;case Jo:F.data=uu(X);break}}function kp(F,X){return Ee.allocType(F.type===Jo?hu:F.type,X)}function I0(F,X){F.type===Jo?(F.data=uu(X),Ee.freeType(X)):F.data=X}function s$(F,X,re,Re,ze,Te){for(var Me=F.width,it=F.height,at=F.channels,st=Me*it*at,mt=kp(F,st),Ft=0,Tt=0;Tt<it;++Tt)for(var dt=0;dt<Me;++dt)for(var Je=0;Je<at;++Je)mt[Ft++]=X[re*dt+Re*Tt+ze*Je+Te];I0(F,mt)}function eo(F,X,re,Re,ze,Te){var Me;if(typeof Nn[F]<"u"?Me=Nn[F]:Me=_i[F]*Xl[X],Te&&(Me*=6),ze){for(var it=0,at=re;at>=1;)it+=Me*at*at,at/=2;return it}else return Me*re*Re}function u$(F,X,re,Re,ze,Te,Me){var it={"don't care":rf,"dont care":rf,nice:w0,fast:t$},at={repeat:J2,clamp:ql,mirror:Zc},st={nearest:tl,linear:mu},mt=r({mipmap:Yl,"nearest mipmap nearest":ef,"linear mipmap nearest":tf,"nearest mipmap linear":x0,"linear mipmap linear":Yl},st),Ft={none:0,browser:Pp},Tt={uint8:sa,rgba4:bp,rgb565:Kl,"rgb5 a1":v0},dt={alpha:Yc,luminance:Za,"luminance alpha":cu,rgb:Qa,rgba:_o,rgba4:h0,"rgb5 a1":Vl,rgb565:Xc},Je={};X.ext_srgb&&(dt.srgb=du,dt.srgba=Zo),X.oes_texture_float&&(Tt.float32=Tt.float=hu),X.oes_texture_half_float&&(Tt.float16=Tt["half float"]=Jo),X.webgl_depth_texture&&(r(dt,{depth:So,"depth stencil":fu}),r(Tt,{uint16:Ep,uint32:Ap,"depth stencil":Qo})),X.webgl_compressed_texture_s3tc&&r(Je,{"rgb s3tc dxt1":$p,"rgba s3tc dxt1":Qc,"rgba s3tc dxt3":pu,"rgba s3tc dxt5":xp}),X.webgl_compressed_texture_atc&&r(Je,{"rgb atc":m0,"rgba atc explicit alpha":wp,"rgba atc interpolated alpha":g0}),X.webgl_compressed_texture_pvrtc&&r(Je,{"rgb pvrtc 4bppv1":_p,"rgb pvrtc 2bppv1":y0,"rgba pvrtc 4bppv1":Sp,"rgba pvrtc 2bppv1":b0}),X.webgl_compressed_texture_etc1&&(Je["rgb etc1"]=el);var be=Array.prototype.slice.call(F.getParameter(qc));Object.keys(Je).forEach(function(Z){var Pe=Je[Z];be.indexOf(Pe)>=0&&(dt[Z]=Pe)});var ke=Object.keys(dt);re.textureFormats=ke;var et=[];Object.keys(dt).forEach(function(Z){var Pe=dt[Z];et[Pe]=Z});var ot=[];Object.keys(Tt).forEach(function(Z){var Pe=Tt[Z];ot[Pe]=Z});var Ve=[];Object.keys(st).forEach(function(Z){var Pe=st[Z];Ve[Pe]=Z});var $t=[];Object.keys(mt).forEach(function(Z){var Pe=mt[Z];$t[Pe]=Z});var ht=[];Object.keys(at).forEach(function(Z){var Pe=at[Z];ht[Pe]=Z});var Nt=ke.reduce(function(Z,Pe){var Ce=dt[Pe];return Ce===Za||Ce===Yc||Ce===Za||Ce===cu||Ce===So||Ce===fu||X.ext_srgb&&(Ce===du||Ce===Zo)?Z[Ce]=Ce:Ce===Vl||Pe.indexOf("rgba")>=0?Z[Ce]=_o:Z[Ce]=Qa,Z},{});function qe(){this.internalformat=_o,this.format=_o,this.type=sa,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=Pp,this.width=0,this.height=0,this.channels=0}function Ue(Z,Pe){Z.internalformat=Pe.internalformat,Z.format=Pe.format,Z.type=Pe.type,Z.compressed=Pe.compressed,Z.premultiplyAlpha=Pe.premultiplyAlpha,Z.flipY=Pe.flipY,Z.unpackAlignment=Pe.unpackAlignment,Z.colorSpace=Pe.colorSpace,Z.width=Pe.width,Z.height=Pe.height,Z.channels=Pe.channels}function wt(Z,Pe){if(!(typeof Pe!="object"||!Pe)){if("premultiplyAlpha"in Pe&&(Z.premultiplyAlpha=Pe.premultiplyAlpha),"flipY"in Pe&&(Z.flipY=Pe.flipY),"alignment"in Pe&&(Z.unpackAlignment=Pe.alignment),"colorSpace"in Pe&&(Z.colorSpace=Ft[Pe.colorSpace]),"type"in Pe){var Ce=Pe.type;Z.type=Tt[Ce]}var Mt=Z.width,dr=Z.height,tn=Z.channels,Ot=!1;"shape"in Pe?(Mt=Pe.shape[0],dr=Pe.shape[1],Pe.shape.length===3&&(tn=Pe.shape[2],Ot=!0)):("radius"in Pe&&(Mt=dr=Pe.radius),"width"in Pe&&(Mt=Pe.width),"height"in Pe&&(dr=Pe.height),"channels"in Pe&&(tn=Pe.channels,Ot=!0)),Z.width=Mt|0,Z.height=dr|0,Z.channels=tn|0;var K=!1;if("format"in Pe){var Q=Pe.format,ae=Z.internalformat=dt[Q];Z.format=Nt[ae],Q in Tt&&("type"in Pe||(Z.type=Tt[Q])),Q in Je&&(Z.compressed=!0),K=!0}!Ot&&K?Z.channels=_i[Z.format]:Ot&&!K&&Z.channels!==Ta[Z.format]&&(Z.format=Z.internalformat=Ta[Z.channels])}}function Ie(Z){F.pixelStorei(Tp,Z.flipY),F.pixelStorei(_0,Z.premultiplyAlpha),F.pixelStorei(Ja,Z.colorSpace),F.pixelStorei(r$,Z.unpackAlignment)}function gt(){qe.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function lt(Z,Pe){var Ce=null;if(nf(Pe)?Ce=Pe:Pe&&(wt(Z,Pe),"x"in Pe&&(Z.xOffset=Pe.x|0),"y"in Pe&&(Z.yOffset=Pe.y|0),nf(Pe.data)&&(Ce=Pe.data)),Pe.copy){var Mt=ze.viewportWidth,dr=ze.viewportHeight;Z.width=Z.width||Mt-Z.xOffset,Z.height=Z.height||dr-Z.yOffset,Z.needsCopy=!0}else if(!Ce)Z.width=Z.width||1,Z.height=Z.height||1,Z.channels=Z.channels||4;else if(Un(Ce))Z.channels=Z.channels||4,Z.data=Ce,!("type"in Pe)&&Z.type===sa&&(Z.type=Ip(Ce));else if(T0(Ce))Z.channels=Z.channels||4,R0(Z,Ce),Z.alignment=1,Z.needsFree=!0;else if(ia(Ce)){var tn=Ce.data;!Array.isArray(tn)&&Z.type===sa&&(Z.type=Ip(tn));var Ot=Ce.shape,K=Ce.stride,Q,ae,Oe,_e,xe,ye;Ot.length===3?(Oe=Ot[2],ye=K[2]):(Oe=1,ye=1),Q=Ot[0],ae=Ot[1],_e=K[0],xe=K[1],Z.alignment=1,Z.width=Q,Z.height=ae,Z.channels=Oe,Z.format=Z.internalformat=Ta[Oe],Z.needsFree=!0,s$(Z,tn,_e,xe,ye,Ce.offset)}else if(M0(Ce)||O0(Ce)||i$(Ce))M0(Ce)||O0(Ce)?Z.element=Ce:Z.element=Ce.canvas,Z.width=Z.element.width,Z.height=Z.element.height,Z.channels=4;else if(a$(Ce))Z.element=Ce,Z.width=Ce.width,Z.height=Ce.height,Z.channels=4;else if(o$(Ce))Z.element=Ce,Z.width=Ce.naturalWidth,Z.height=Ce.naturalHeight,Z.channels=4;else if(l$(Ce))Z.element=Ce,Z.width=Ce.videoWidth,Z.height=Ce.videoHeight,Z.channels=4;else if(P0(Ce)){var me=Z.width||Ce[0].length,te=Z.height||Ce.length,se=Z.channels;oa(Ce[0][0])?se=se||Ce[0][0].length:se=se||1;for(var ee=hr.shape(Ce),Se=1,Ne=0;Ne<ee.length;++Ne)Se*=ee[Ne];var Ye=kp(Z,Se);hr.flatten(Ce,ee,"",Ye),I0(Z,Ye),Z.alignment=1,Z.width=me,Z.height=te,Z.channels=se,Z.format=Z.internalformat=Ta[se],Z.needsFree=!0}Z.type===hu||Z.type}function Lt(Z,Pe,Ce){var Mt=Z.element,dr=Z.data,tn=Z.internalformat,Ot=Z.format,K=Z.type,Q=Z.width,ae=Z.height;Ie(Z),Mt?F.texImage2D(Pe,Ce,Ot,Ot,K,Mt):Z.compressed?F.compressedTexImage2D(Pe,Ce,tn,Q,ae,0,dr):Z.needsCopy?(Re(),F.copyTexImage2D(Pe,Ce,Ot,Z.xOffset,Z.yOffset,Q,ae,0)):F.texImage2D(Pe,Ce,Ot,Q,ae,0,Ot,K,dr||null)}function ur(Z,Pe,Ce,Mt,dr){var tn=Z.element,Ot=Z.data,K=Z.internalformat,Q=Z.format,ae=Z.type,Oe=Z.width,_e=Z.height;Ie(Z),tn?F.texSubImage2D(Pe,dr,Ce,Mt,Q,ae,tn):Z.compressed?F.compressedTexSubImage2D(Pe,dr,Ce,Mt,K,Oe,_e,Ot):Z.needsCopy?(Re(),F.copyTexSubImage2D(Pe,dr,Ce,Mt,Z.xOffset,Z.yOffset,Oe,_e)):F.texSubImage2D(Pe,dr,Ce,Mt,Oe,_e,Q,ae,Ot)}var St=[];function Ht(){return St.pop()||new gt}function vt(Z){Z.needsFree&&Ee.freeType(Z.data),gt.call(Z),St.push(Z)}function cr(){qe.call(this),this.genMipmaps=!1,this.mipmapHint=rf,this.mipmask=0,this.images=Array(16)}function br(Z,Pe,Ce){var Mt=Z.images[0]=Ht();Z.mipmask=1,Mt.width=Z.width=Pe,Mt.height=Z.height=Ce,Mt.channels=Z.channels=4}function Er(Z,Pe){var Ce=null;if(nf(Pe))Ce=Z.images[0]=Ht(),Ue(Ce,Z),lt(Ce,Pe),Z.mipmask=1;else if(wt(Z,Pe),Array.isArray(Pe.mipmap))for(var Mt=Pe.mipmap,dr=0;dr<Mt.length;++dr)Ce=Z.images[dr]=Ht(),Ue(Ce,Z),Ce.width>>=dr,Ce.height>>=dr,lt(Ce,Mt[dr]),Z.mipmask|=1<<dr;else Ce=Z.images[0]=Ht(),Ue(Ce,Z),lt(Ce,Pe),Z.mipmask=1;Ue(Z,Z.images[0]),Z.compressed&&(Z.internalformat===$p||Z.internalformat===Qc||Z.internalformat===pu||Z.internalformat)}function Wn(Z,Pe){for(var Ce=Z.images,Mt=0;Mt<Ce.length;++Mt){if(!Ce[Mt])return;Lt(Ce[Mt],Pe,Mt)}}var $r=[];function Gi(){var Z=$r.pop()||new cr;qe.call(Z),Z.mipmask=0;for(var Pe=0;Pe<16;++Pe)Z.images[Pe]=null;return Z}function Kr(Z){for(var Pe=Z.images,Ce=0;Ce<Pe.length;++Ce)Pe[Ce]&&vt(Pe[Ce]),Pe[Ce]=null;$r.push(Z)}function vi(){this.minFilter=tl,this.magFilter=tl,this.wrapS=ql,this.wrapT=ql,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=rf}function Wi(Z,Pe){if("min"in Pe){var Ce=Pe.min;Z.minFilter=mt[Ce],Mp.indexOf(Z.minFilter)>=0&&!("faces"in Pe)&&(Z.genMipmaps=!0)}if("mag"in Pe){var Mt=Pe.mag;Z.magFilter=st[Mt]}var dr=Z.wrapS,tn=Z.wrapT;if("wrap"in Pe){var Ot=Pe.wrap;typeof Ot=="string"?dr=tn=at[Ot]:Array.isArray(Ot)&&(dr=at[Ot[0]],tn=at[Ot[1]])}else{if("wrapS"in Pe){var K=Pe.wrapS;dr=at[K]}if("wrapT"in Pe){var Q=Pe.wrapT;tn=at[Q]}}if(Z.wrapS=dr,Z.wrapT=tn,"anisotropic"in Pe&&(Pe.anisotropic,Z.anisotropic=Pe.anisotropic),"mipmap"in Pe){var ae=!1;switch(typeof Pe.mipmap){case"string":Z.mipmapHint=it[Pe.mipmap],Z.genMipmaps=!0,ae=!0;break;case"boolean":ae=Z.genMipmaps=Pe.mipmap;break;case"object":Z.genMipmaps=!1,ae=!0;break}ae&&!("min"in Pe)&&(Z.minFilter=ef)}}function Ei(Z,Pe){F.texParameteri(Pe,Jc,Z.minFilter),F.texParameteri(Pe,Cp,Z.magFilter),F.texParameteri(Pe,$0,Z.wrapS),F.texParameteri(Pe,vu,Z.wrapT),X.ext_texture_filter_anisotropic&&F.texParameteri(Pe,gu,Z.anisotropic),Z.genMipmaps&&(F.hint(e$,Z.mipmapHint),F.generateMipmap(Pe))}var io=0,Vn={},Kn=re.maxTextureUnits,Jt=Array(Kn).map(function(){return null});function da(Z){qe.call(this),this.mipmask=0,this.internalformat=_o,this.id=io++,this.refCount=1,this.target=Z,this.texture=F.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new vi,Me.profile&&(this.stats={size:0})}function jr(Z){F.activeTexture(rl),F.bindTexture(Z.target,Z.texture)}function qn(){var Z=Jt[0];Z?F.bindTexture(Z.target,Z.texture):F.bindTexture(la,null)}function ki(Z){var Pe=Z.texture,Ce=Z.unit,Mt=Z.target;Ce>=0&&(F.activeTexture(rl+Ce),F.bindTexture(Mt,null),Jt[Ce]=null),F.deleteTexture(Pe),Z.texture=null,Z.params=null,Z.pixels=null,Z.refCount=0,delete Vn[Z.id],Te.textureCount--}r(da.prototype,{bind:function(){var Z=this;Z.bindCount+=1;var Pe=Z.unit;if(Pe<0){for(var Ce=0;Ce<Kn;++Ce){var Mt=Jt[Ce];if(Mt){if(Mt.bindCount>0)continue;Mt.unit=-1}Jt[Ce]=Z,Pe=Ce;break}Me.profile&&Te.maxTextureUnits<Pe+1&&(Te.maxTextureUnits=Pe+1),Z.unit=Pe,F.activeTexture(rl+Pe),F.bindTexture(Z.target,Z.texture)}return Pe},unbind:function(){this.bindCount-=1},decRef:function(){--this.refCount<=0&&ki(this)}});function Fi(Z,Pe){var Ce=new da(la);Vn[Ce.id]=Ce,Te.textureCount++;function Mt(Ot,K){var Q=Ce.texInfo;vi.call(Q);var ae=Gi();return typeof Ot=="number"?typeof K=="number"?br(ae,Ot|0,K|0):br(ae,Ot|0,Ot|0):Ot?(Wi(Q,Ot),Er(ae,Ot)):br(ae,1,1),Q.genMipmaps&&(ae.mipmask=(ae.width<<1)-1),Ce.mipmask=ae.mipmask,Ue(Ce,ae),Ce.internalformat=ae.internalformat,Mt.width=ae.width,Mt.height=ae.height,jr(Ce),Wn(ae,la),Ei(Q,la),qn(),Kr(ae),Me.profile&&(Ce.stats.size=eo(Ce.internalformat,Ce.type,ae.width,ae.height,Q.genMipmaps,!1)),Mt.format=et[Ce.internalformat],Mt.type=ot[Ce.type],Mt.mag=Ve[Q.magFilter],Mt.min=$t[Q.minFilter],Mt.wrapS=ht[Q.wrapS],Mt.wrapT=ht[Q.wrapT],Mt}function dr(Ot,K,Q,ae){var Oe=K|0,_e=Q|0,xe=ae|0,ye=Ht();return Ue(ye,Ce),ye.width=0,ye.height=0,lt(ye,Ot),ye.width=ye.width||(Ce.width>>xe)-Oe,ye.height=ye.height||(Ce.height>>xe)-_e,jr(Ce),ur(ye,la,Oe,_e,xe),qn(),vt(ye),Mt}function tn(Ot,K){var Q=Ot|0,ae=K|0||Q;if(Q===Ce.width&&ae===Ce.height)return Mt;Mt.width=Ce.width=Q,Mt.height=Ce.height=ae,jr(Ce);for(var Oe=0;Ce.mipmask>>Oe;++Oe){var _e=Q>>Oe,xe=ae>>Oe;if(!_e||!xe)break;F.texImage2D(la,Oe,Ce.format,_e,xe,0,Ce.format,Ce.type,null)}return qn(),Me.profile&&(Ce.stats.size=eo(Ce.internalformat,Ce.type,Q,ae,!1,!1)),Mt}return Mt(Z,Pe),Mt.subimage=dr,Mt.resize=tn,Mt._reglType="texture2d",Mt._texture=Ce,Me.profile&&(Mt.stats=Ce.stats),Mt.destroy=function(){Ce.decRef()},Mt}function nr(Z,Pe,Ce,Mt,dr,tn){var Ot=new da(Gl);Vn[Ot.id]=Ot,Te.cubeCount++;var K=new Array(6);function Q(_e,xe,ye,me,te,se){var ee,Se=Ot.texInfo;for(vi.call(Se),ee=0;ee<6;++ee)K[ee]=Gi();if(typeof _e=="number"||!_e){var Ne=_e|0||1;for(ee=0;ee<6;++ee)br(K[ee],Ne,Ne)}else if(typeof _e=="object")if(xe)Er(K[0],_e),Er(K[1],xe),Er(K[2],ye),Er(K[3],me),Er(K[4],te),Er(K[5],se);else if(Wi(Se,_e),wt(Ot,_e),"faces"in _e){var Ye=_e.faces;for(ee=0;ee<6;++ee)Ue(K[ee],Ot),Er(K[ee],Ye[ee])}else for(ee=0;ee<6;++ee)Er(K[ee],_e);for(Ue(Ot,K[0]),Se.genMipmaps?Ot.mipmask=(K[0].width<<1)-1:Ot.mipmask=K[0].mipmask,Ot.internalformat=K[0].internalformat,Q.width=K[0].width,Q.height=K[0].height,jr(Ot),ee=0;ee<6;++ee)Wn(K[ee],Wl+ee);for(Ei(Se,Gl),qn(),Me.profile&&(Ot.stats.size=eo(Ot.internalformat,Ot.type,Q.width,Q.height,Se.genMipmaps,!0)),Q.format=et[Ot.internalformat],Q.type=ot[Ot.type],Q.mag=Ve[Se.magFilter],Q.min=$t[Se.minFilter],Q.wrapS=ht[Se.wrapS],Q.wrapT=ht[Se.wrapT],ee=0;ee<6;++ee)Kr(K[ee]);return Q}function ae(_e,xe,ye,me,te){var se=ye|0,ee=me|0,Se=te|0,Ne=Ht();return Ue(Ne,Ot),Ne.width=0,Ne.height=0,lt(Ne,xe),Ne.width=Ne.width||(Ot.width>>Se)-se,Ne.height=Ne.height||(Ot.height>>Se)-ee,jr(Ot),ur(Ne,Wl+_e,se,ee,Se),qn(),vt(Ne),Q}function Oe(_e){var xe=_e|0;if(xe!==Ot.width){Q.width=Ot.width=xe,Q.height=Ot.height=xe,jr(Ot);for(var ye=0;ye<6;++ye)for(var me=0;Ot.mipmask>>me;++me)F.texImage2D(Wl+ye,me,Ot.format,xe>>me,xe>>me,0,Ot.format,Ot.type,null);return qn(),Me.profile&&(Ot.stats.size=eo(Ot.internalformat,Ot.type,Q.width,Q.height,!1,!0)),Q}}return Q(Z,Pe,Ce,Mt,dr,tn),Q.subimage=ae,Q.resize=Oe,Q._reglType="textureCube",Q._texture=Ot,Me.profile&&(Q.stats=Ot.stats),Q.destroy=function(){Ot.decRef()},Q}function wr(){for(var Z=0;Z<Kn;++Z)F.activeTexture(rl+Z),F.bindTexture(la,null),Jt[Z]=null;Ii(Vn).forEach(ki),Te.cubeCount=0,Te.textureCount=0}Me.profile&&(Te.getTotalTextureSize=function(){var Z=0;return Object.keys(Vn).forEach(function(Pe){Z+=Vn[Pe].stats.size}),Z});function Qr(){for(var Z=0;Z<Kn;++Z){var Pe=Jt[Z];Pe&&(Pe.bindCount=0,Pe.unit=-1,Jt[Z]=null)}Ii(Vn).forEach(function(Ce){Ce.texture=F.createTexture(),F.bindTexture(Ce.target,Ce.texture);for(var Mt=0;Mt<32;++Mt)if(Ce.mipmask&1<<Mt)if(Ce.target===la)F.texImage2D(la,Mt,Ce.internalformat,Ce.width>>Mt,Ce.height>>Mt,0,Ce.internalformat,Ce.type,null);else for(var dr=0;dr<6;++dr)F.texImage2D(Wl+dr,Mt,Ce.internalformat,Ce.width>>Mt,Ce.height>>Mt,0,Ce.internalformat,Ce.type,null);Ei(Ce.texInfo,Ce.target)})}function Yn(){for(var Z=0;Z<Kn;++Z){var Pe=Jt[Z];Pe&&(Pe.bindCount=0,Pe.unit=-1,Jt[Z]=null),F.activeTexture(rl+Z),F.bindTexture(la,null),F.bindTexture(Gl,null)}}return{create2D:Fi,createCube:nr,clear:wr,getTexture:function(Z){return null},restore:Qr,refresh:Yn}}var Eo=36161,af=32854,k0=32855,Fp=36194,F0=33189,N0=36168,L0=34041,Np=35907,D0=34836,B0=34842,z0=34843,ua=[];ua[af]=2,ua[k0]=2,ua[Fp]=2,ua[F0]=2,ua[N0]=1,ua[L0]=4,ua[Np]=4,ua[D0]=16,ua[B0]=8,ua[z0]=6;function U0(F,X,re){return ua[F]*X*re}var j0=function(F,X,re,Re,ze){var Te={rgba4:af,rgb565:Fp,"rgb5 a1":k0,depth:F0,stencil:N0,"depth stencil":L0};X.ext_srgb&&(Te.srgba=Np),X.ext_color_buffer_half_float&&(Te.rgba16f=B0,Te.rgb16f=z0),X.webgl_color_buffer_float&&(Te.rgba32f=D0);var Me=[];Object.keys(Te).forEach(function(dt){var Je=Te[dt];Me[Je]=dt});var it=0,at={};function st(dt){this.id=it++,this.refCount=1,this.renderbuffer=dt,this.format=af,this.width=0,this.height=0,ze.profile&&(this.stats={size:0})}st.prototype.decRef=function(){--this.refCount<=0&&mt(this)};function mt(dt){var Je=dt.renderbuffer;F.bindRenderbuffer(Eo,null),F.deleteRenderbuffer(Je),dt.renderbuffer=null,dt.refCount=0,delete at[dt.id],Re.renderbufferCount--}function Ft(dt,Je){var be=new st(F.createRenderbuffer());at[be.id]=be,Re.renderbufferCount++;function ke(ot,Ve){var $t=0,ht=0,Nt=af;if(typeof ot=="object"&&ot){var qe=ot;if("shape"in qe){var Ue=qe.shape;$t=Ue[0]|0,ht=Ue[1]|0}else"radius"in qe&&($t=ht=qe.radius|0),"width"in qe&&($t=qe.width|0),"height"in qe&&(ht=qe.height|0);"format"in qe&&(Nt=Te[qe.format])}else typeof ot=="number"?($t=ot|0,typeof Ve=="number"?ht=Ve|0:ht=$t):ot||($t=ht=1);if(!($t===be.width&&ht===be.height&&Nt===be.format))return ke.width=be.width=$t,ke.height=be.height=ht,be.format=Nt,F.bindRenderbuffer(Eo,be.renderbuffer),F.renderbufferStorage(Eo,Nt,$t,ht),ze.profile&&(be.stats.size=U0(be.format,be.width,be.height)),ke.format=Me[be.format],ke}function et(ot,Ve){var $t=ot|0,ht=Ve|0||$t;return $t===be.width&&ht===be.height||(ke.width=be.width=$t,ke.height=be.height=ht,F.bindRenderbuffer(Eo,be.renderbuffer),F.renderbufferStorage(Eo,be.format,$t,ht),ze.profile&&(be.stats.size=U0(be.format,be.width,be.height))),ke}return ke(dt,Je),ke.resize=et,ke._reglType="renderbuffer",ke._renderbuffer=be,ze.profile&&(ke.stats=be.stats),ke.destroy=function(){be.decRef()},ke}ze.profile&&(Re.getTotalRenderbufferSize=function(){var dt=0;return Object.keys(at).forEach(function(Je){dt+=at[Je].stats.size}),dt});function Tt(){Ii(at).forEach(function(dt){dt.renderbuffer=F.createRenderbuffer(),F.bindRenderbuffer(Eo,dt.renderbuffer),F.renderbufferStorage(Eo,dt.format,dt.width,dt.height)}),F.bindRenderbuffer(Eo,null)}return{create:Ft,clear:function(){Ii(at).forEach(mt)},restore:Tt}},to=36160,Lp=36161,Ql=3553,Zl=34069,Jl=36064,ca=36096,H0=36128,G0=33306,c$=36053,f$=36193,W0=5121,d$=5126,p$=6407,h$=6408,Dp=[];Dp[h$]=4,Dp[p$]=3;var of=[];of[W0]=1,of[d$]=4,of[f$]=2;function Bp(F,X,re,Re,ze,Te){var Me={cur:null,next:null,dirty:!1,setFBO:null},it=["rgba"],at=["rgba4","rgb565","rgb5 a1"];X.ext_srgb&&at.push("srgba"),X.ext_color_buffer_half_float&&at.push("rgba16f","rgb16f"),X.webgl_color_buffer_float&&at.push("rgba32f"),X.oes_texture_half_float,X.oes_texture_float;function st(Ie,gt,lt){this.target=Ie,this.texture=gt,this.renderbuffer=lt;var Lt=0,ur=0;gt?(Lt=gt.width,ur=gt.height):lt&&(Lt=lt.width,ur=lt.height),this.width=Lt,this.height=ur}function mt(Ie){Ie&&(Ie.texture&&Ie.texture._texture.decRef(),Ie.renderbuffer&&Ie.renderbuffer._renderbuffer.decRef())}function Ft(Ie,gt,lt){if(Ie)if(Ie.texture){var Lt=Ie.texture._texture;Math.max(1,Lt.width),Math.max(1,Lt.height),Lt.refCount+=1}else{var ur=Ie.renderbuffer._renderbuffer;ur.refCount+=1}}function Tt(Ie,gt){gt&&(gt.texture?F.framebufferTexture2D(to,Ie,gt.target,gt.texture._texture.texture,0):F.framebufferRenderbuffer(to,Ie,Lp,gt.renderbuffer._renderbuffer.renderbuffer))}function dt(Ie){var gt=Ql,lt=null,Lt=null,ur=Ie;typeof Ie=="object"&&(ur=Ie.data,"target"in Ie&&(gt=Ie.target|0));var St=ur._reglType;return St==="texture2d"||St==="textureCube"?lt=ur:St==="renderbuffer"&&(Lt=ur,gt=Lp),new st(gt,lt,Lt)}function Je(Ie,gt,lt,Lt,ur){if(lt){var St=Re.create2D({width:Ie,height:gt,format:Lt,type:ur});return St._texture.refCount=0,new st(Ql,St,null)}else{var Ht=ze.create({width:Ie,height:gt,format:Lt});return Ht._renderbuffer.refCount=0,new st(Lp,null,Ht)}}function be(Ie){return Ie&&(Ie.texture||Ie.renderbuffer)}function ke(Ie,gt,lt){Ie&&(Ie.texture?Ie.texture.resize(gt,lt):Ie.renderbuffer&&Ie.renderbuffer.resize(gt,lt),Ie.width=gt,Ie.height=lt)}var et=0,ot={};function Ve(){this.id=et++,ot[this.id]=this,this.framebuffer=F.createFramebuffer(),this.width=0,this.height=0,this.colorAttachments=[],this.depthAttachment=null,this.stencilAttachment=null,this.depthStencilAttachment=null}function $t(Ie){Ie.colorAttachments.forEach(mt),mt(Ie.depthAttachment),mt(Ie.stencilAttachment),mt(Ie.depthStencilAttachment)}function ht(Ie){var gt=Ie.framebuffer;F.deleteFramebuffer(gt),Ie.framebuffer=null,Te.framebufferCount--,delete ot[Ie.id]}function Nt(Ie){var gt;F.bindFramebuffer(to,Ie.framebuffer);var lt=Ie.colorAttachments;for(gt=0;gt<lt.length;++gt)Tt(Jl+gt,lt[gt]);for(gt=lt.length;gt<re.maxColorAttachments;++gt)F.framebufferTexture2D(to,Jl+gt,Ql,null,0);F.framebufferTexture2D(to,G0,Ql,null,0),F.framebufferTexture2D(to,ca,Ql,null,0),F.framebufferTexture2D(to,H0,Ql,null,0),Tt(ca,Ie.depthAttachment),Tt(H0,Ie.stencilAttachment),Tt(G0,Ie.depthStencilAttachment);var Lt=F.checkFramebufferStatus(to);F.isContextLost(),F.bindFramebuffer(to,Me.next?Me.next.framebuffer:null),Me.cur=Me.next,F.getError()}function qe(Ie,gt){var lt=new Ve;Te.framebufferCount++;function Lt(St,Ht){var vt,cr=0,br=0,Er=!0,Wn=!0,$r=null,Gi=!0,Kr="rgba",vi="uint8",Wi=1,Ei=null,io=null,Vn=null,Kn=!1;if(typeof St=="number")cr=St|0,br=Ht|0||cr;else if(!St)cr=br=1;else{var Jt=St;if("shape"in Jt){var da=Jt.shape;cr=da[0],br=da[1]}else"radius"in Jt&&(cr=br=Jt.radius),"width"in Jt&&(cr=Jt.width),"height"in Jt&&(br=Jt.height);("color"in Jt||"colors"in Jt)&&($r=Jt.color||Jt.colors),$r||("colorCount"in Jt&&(Wi=Jt.colorCount|0),"colorTexture"in Jt&&(Gi=!!Jt.colorTexture,Kr="rgba4"),"colorType"in Jt&&(vi=Jt.colorType,Gi||(vi==="half float"||vi==="float16"?Kr="rgba16f":(vi==="float"||vi==="float32")&&(Kr="rgba32f"))),"colorFormat"in Jt&&(Kr=Jt.colorFormat,it.indexOf(Kr)>=0?Gi=!0:at.indexOf(Kr)>=0&&(Gi=!1))),("depthTexture"in Jt||"depthStencilTexture"in Jt)&&(Kn=!!(Jt.depthTexture||Jt.depthStencilTexture)),"depth"in Jt&&(typeof Jt.depth=="boolean"?Er=Jt.depth:(Ei=Jt.depth,Wn=!1)),"stencil"in Jt&&(typeof Jt.stencil=="boolean"?Wn=Jt.stencil:(io=Jt.stencil,Er=!1)),"depthStencil"in Jt&&(typeof Jt.depthStencil=="boolean"?Er=Wn=Jt.depthStencil:(Vn=Jt.depthStencil,Er=!1,Wn=!1))}var jr=null,qn=null,ki=null,Fi=null;if(Array.isArray($r))jr=$r.map(dt);else if($r)jr=[dt($r)];else for(jr=new Array(Wi),vt=0;vt<Wi;++vt)jr[vt]=Je(cr,br,Gi,Kr,vi);for(cr=cr||jr[0].width,br=br||jr[0].height,Ei?qn=dt(Ei):Er&&!Wn&&(qn=Je(cr,br,Kn,"depth","uint32")),io?ki=dt(io):Wn&&!Er&&(ki=Je(cr,br,!1,"stencil","uint8")),Vn?Fi=dt(Vn):!Ei&&!io&&Wn&&Er&&(Fi=Je(cr,br,Kn,"depth stencil","depth stencil")),vt=0;vt<jr.length;++vt)Ft(jr[vt]),jr[vt]&&jr[vt].texture&&Dp[jr[vt].texture._texture.format]*of[jr[vt].texture._texture.type];return Ft(qn),Ft(ki),Ft(Fi),$t(lt),lt.width=cr,lt.height=br,lt.colorAttachments=jr,lt.depthAttachment=qn,lt.stencilAttachment=ki,lt.depthStencilAttachment=Fi,Lt.color=jr.map(be),Lt.depth=be(qn),Lt.stencil=be(ki),Lt.depthStencil=be(Fi),Lt.width=lt.width,Lt.height=lt.height,Nt(lt),Lt}function ur(St,Ht){var vt=Math.max(St|0,1),cr=Math.max(Ht|0||vt,1);if(vt===lt.width&&cr===lt.height)return Lt;for(var br=lt.colorAttachments,Er=0;Er<br.length;++Er)ke(br[Er],vt,cr);return ke(lt.depthAttachment,vt,cr),ke(lt.stencilAttachment,vt,cr),ke(lt.depthStencilAttachment,vt,cr),lt.width=Lt.width=vt,lt.height=Lt.height=cr,Nt(lt),Lt}return Lt(Ie,gt),r(Lt,{resize:ur,_reglType:"framebuffer",_framebuffer:lt,destroy:function(){ht(lt),$t(lt)},use:function(St){Me.setFBO({framebuffer:Lt},St)}})}function Ue(Ie){var gt=Array(6);function lt(ur){var St,Ht={color:null},vt=0,cr=null,br="rgba",Er="uint8",Wn=1;if(typeof ur=="number")vt=ur|0;else if(!ur)vt=1;else{var $r=ur;if("shape"in $r){var Gi=$r.shape;vt=Gi[0]}else"radius"in $r&&(vt=$r.radius|0),"width"in $r?vt=$r.width|0:"height"in $r&&(vt=$r.height|0);("color"in $r||"colors"in $r)&&(cr=$r.color||$r.colors),cr||("colorCount"in $r&&(Wn=$r.colorCount|0),"colorType"in $r&&(Er=$r.colorType),"colorFormat"in $r&&(br=$r.colorFormat)),"depth"in $r&&(Ht.depth=$r.depth),"stencil"in $r&&(Ht.stencil=$r.stencil),"depthStencil"in $r&&(Ht.depthStencil=$r.depthStencil)}var Kr;if(cr)if(Array.isArray(cr))for(Kr=[],St=0;St<cr.length;++St)Kr[St]=cr[St];else Kr=[cr];else{Kr=Array(Wn);var vi={radius:vt,format:br,type:Er};for(St=0;St<Wn;++St)Kr[St]=Re.createCube(vi)}for(Ht.color=Array(Kr.length),St=0;St<Kr.length;++St){var Wi=Kr[St];vt=vt||Wi.width,Ht.color[St]={target:Zl,data:Kr[St]}}for(St=0;St<6;++St){for(var Ei=0;Ei<Kr.length;++Ei)Ht.color[Ei].target=Zl+St;St>0&&(Ht.depth=gt[0].depth,Ht.stencil=gt[0].stencil,Ht.depthStencil=gt[0].depthStencil),gt[St]?gt[St](Ht):gt[St]=qe(Ht)}return r(lt,{width:vt,height:vt,color:Kr})}function Lt(ur){var St,Ht=ur|0;if(Ht===lt.width)return lt;var vt=lt.color;for(St=0;St<vt.length;++St)vt[St].resize(Ht);for(St=0;St<6;++St)gt[St].resize(Ht);return lt.width=lt.height=Ht,lt}return lt(Ie),r(lt,{faces:gt,resize:Lt,_reglType:"framebufferCube",destroy:function(){gt.forEach(function(ur){ur.destroy()})}})}function wt(){Me.cur=null,Me.next=null,Me.dirty=!0,Ii(ot).forEach(function(Ie){Ie.framebuffer=F.createFramebuffer(),Nt(Ie)})}return r(Me,{getFramebuffer:function(Ie){if(typeof Ie=="function"&&Ie._reglType==="framebuffer"){var gt=Ie._framebuffer;if(gt instanceof Ve)return gt}return null},create:qe,createCube:Ue,clear:function(){Ii(ot).forEach(ht)},restore:wt})}var zp=5126,V0=34962,lf=34963;function Up(){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=zp,this.offset=0,this.stride=0,this.divisor=0}function v$(F,X,re,Re,ze,Te,Me){for(var it=re.maxAttributes,at=new Array(it),st=0;st<it;++st)at[st]=new Up;var mt=0,Ft={},Tt={Record:Up,scope:{},state:at,currentVAO:null,targetVAO:null,restore:Je()?ht:function(){},createVAO:Nt,getVAO:ke,destroyBuffer:dt,setVAO:Je()?et:ot,clear:Je()?Ve:function(){}};function dt(qe){for(var Ue=0;Ue<at.length;++Ue){var wt=at[Ue];wt.buffer===qe&&(F.disableVertexAttribArray(Ue),wt.buffer=null)}}function Je(){return X.oes_vertex_array_object}function be(){return X.angle_instanced_arrays}function ke(qe){return typeof qe=="function"&&qe._vao?qe._vao:null}function et(qe){if(qe!==Tt.currentVAO){var Ue=Je();qe?Ue.bindVertexArrayOES(qe.vao):Ue.bindVertexArrayOES(null),Tt.currentVAO=qe}}function ot(qe){if(qe!==Tt.currentVAO){if(qe)qe.bindAttrs();else{for(var Ue=be(),wt=0;wt<at.length;++wt){var Ie=at[wt];Ie.buffer?(F.enableVertexAttribArray(wt),Ie.buffer.bind(),F.vertexAttribPointer(wt,Ie.size,Ie.type,Ie.normalized,Ie.stride,Ie.offfset),Ue&&Ie.divisor&&Ue.vertexAttribDivisorANGLE(wt,Ie.divisor)):(F.disableVertexAttribArray(wt),F.vertexAttrib4f(wt,Ie.x,Ie.y,Ie.z,Ie.w))}Me.elements?F.bindBuffer(lf,Me.elements.buffer.buffer):F.bindBuffer(lf,null)}Tt.currentVAO=qe}}function Ve(){Ii(Ft).forEach(function(qe){qe.destroy()})}function $t(){this.id=++mt,this.attributes=[],this.elements=null,this.ownsElements=!1,this.count=0,this.offset=0,this.instances=-1,this.primitive=4;var qe=Je();qe?this.vao=qe.createVertexArrayOES():this.vao=null,Ft[this.id]=this,this.buffers=[]}$t.prototype.bindAttrs=function(){for(var qe=be(),Ue=this.attributes,wt=0;wt<Ue.length;++wt){var Ie=Ue[wt];Ie.buffer?(F.enableVertexAttribArray(wt),F.bindBuffer(V0,Ie.buffer.buffer),F.vertexAttribPointer(wt,Ie.size,Ie.type,Ie.normalized,Ie.stride,Ie.offset),qe&&Ie.divisor&&qe.vertexAttribDivisorANGLE(wt,Ie.divisor)):(F.disableVertexAttribArray(wt),F.vertexAttrib4f(wt,Ie.x,Ie.y,Ie.z,Ie.w))}for(var gt=Ue.length;gt<it;++gt)F.disableVertexAttribArray(gt);var lt=Te.getElements(this.elements);lt?F.bindBuffer(lf,lt.buffer.buffer):F.bindBuffer(lf,null)},$t.prototype.refresh=function(){var qe=Je();qe&&(qe.bindVertexArrayOES(this.vao),this.bindAttrs(),Tt.currentVAO=null,qe.bindVertexArrayOES(null))},$t.prototype.destroy=function(){if(this.vao){var qe=Je();this===Tt.currentVAO&&(Tt.currentVAO=null,qe.bindVertexArrayOES(null)),qe.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&&(this.elements.destroy(),this.elements=null,this.ownsElements=!1),Ft[this.id]&&(delete Ft[this.id],Re.vaoCount-=1)};function ht(){var qe=Je();qe&&Ii(Ft).forEach(function(Ue){Ue.refresh()})}function Nt(qe){var Ue=new $t;Re.vaoCount+=1;function wt(Ie){var gt;if(Array.isArray(Ie))gt=Ie,Ue.elements&&Ue.ownsElements&&Ue.elements.destroy(),Ue.elements=null,Ue.ownsElements=!1,Ue.offset=0,Ue.count=0,Ue.instances=-1,Ue.primitive=4;else{if(Ie.elements){var lt=Ie.elements;Ue.ownsElements?typeof lt=="function"&&lt._reglType==="elements"?(Ue.elements.destroy(),Ue.ownsElements=!1):(Ue.elements(lt),Ue.ownsElements=!1):Te.getElements(Ie.elements)?(Ue.elements=Ie.elements,Ue.ownsElements=!1):(Ue.elements=Te.create(Ie.elements),Ue.ownsElements=!0)}else Ue.elements=null,Ue.ownsElements=!1;gt=Ie.attributes,Ue.offset=0,Ue.count=-1,Ue.instances=-1,Ue.primitive=4,Ue.elements&&(Ue.count=Ue.elements._elements.vertCount,Ue.primitive=Ue.elements._elements.primType),"offset"in Ie&&(Ue.offset=Ie.offset|0),"count"in Ie&&(Ue.count=Ie.count|0),"instances"in Ie&&(Ue.instances=Ie.instances|0),"primitive"in Ie&&(Ue.primitive=jn[Ie.primitive])}var Lt={},ur=Ue.attributes;ur.length=gt.length;for(var St=0;St<gt.length;++St){var Ht=gt[St],vt=ur[St]=new Up,cr=Ht.data||Ht;if(Array.isArray(cr)||Un(cr)||ia(cr)){var br;Ue.buffers[St]&&(br=Ue.buffers[St],Un(cr)&&br._buffer.byteLength>=cr.byteLength?br.subdata(cr):(br.destroy(),Ue.buffers[St]=null)),Ue.buffers[St]||(br=Ue.buffers[St]=ze.create(Ht,V0,!1,!0)),vt.buffer=ze.getBuffer(br),vt.size=vt.buffer.dimension|0,vt.normalized=!1,vt.type=vt.buffer.dtype,vt.offset=0,vt.stride=0,vt.divisor=0,vt.state=1,Lt[St]=1}else ze.getBuffer(Ht)?(vt.buffer=ze.getBuffer(Ht),vt.size=vt.buffer.dimension|0,vt.normalized=!1,vt.type=vt.buffer.dtype,vt.offset=0,vt.stride=0,vt.divisor=0,vt.state=1):ze.getBuffer(Ht.buffer)?(vt.buffer=ze.getBuffer(Ht.buffer),vt.size=(+Ht.size||vt.buffer.dimension)|0,vt.normalized=!!Ht.normalized||!1,"type"in Ht?vt.type=ou[Ht.type]:vt.type=vt.buffer.dtype,vt.offset=(Ht.offset||0)|0,vt.stride=(Ht.stride||0)|0,vt.divisor=(Ht.divisor||0)|0,vt.state=1):"x"in Ht&&(vt.x=+Ht.x||0,vt.y=+Ht.y||0,vt.z=+Ht.z||0,vt.w=+Ht.w||0,vt.state=2)}for(var Er=0;Er<Ue.buffers.length;++Er)!Lt[Er]&&Ue.buffers[Er]&&(Ue.buffers[Er].destroy(),Ue.buffers[Er]=null);return Ue.refresh(),wt}return wt.destroy=function(){for(var Ie=0;Ie<Ue.buffers.length;++Ie)Ue.buffers[Ie]&&Ue.buffers[Ie].destroy();Ue.buffers.length=0,Ue.ownsElements&&(Ue.elements.destroy(),Ue.elements=null,Ue.ownsElements=!1),Ue.destroy()},wt._vao=Ue,wt._reglType="vao",wt(qe)}return Tt}var jp=35632,m$=35633,g$=35718,Hp=35721;function K0(F,X,re,Re){var ze={},Te={};function Me(be,ke,et,ot){this.name=be,this.id=ke,this.location=et,this.info=ot}function it(be,ke){for(var et=0;et<be.length;++et)if(be[et].id===ke.id){be[et].location=ke.location;return}be.push(ke)}function at(be,ke,et){var ot=be===jp?ze:Te,Ve=ot[ke];if(!Ve){var $t=X.str(ke);Ve=F.createShader(be),F.shaderSource(Ve,$t),F.compileShader(Ve),ot[ke]=Ve}return Ve}var st={},mt=[],Ft=0;function Tt(be,ke){this.id=Ft++,this.fragId=be,this.vertId=ke,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,Re.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function dt(be,ke,et){var ot,Ve,$t=at(jp,be.fragId),ht=at(m$,be.vertId),Nt=be.program=F.createProgram();if(F.attachShader(Nt,$t),F.attachShader(Nt,ht),et)for(ot=0;ot<et.length;++ot){var qe=et[ot];F.bindAttribLocation(Nt,qe[0],qe[1])}F.linkProgram(Nt);var Ue=F.getProgramParameter(Nt,g$);Re.profile&&(be.stats.uniformsCount=Ue);var wt=be.uniforms;for(ot=0;ot<Ue;++ot)if(Ve=F.getActiveUniform(Nt,ot),Ve)if(Ve.size>1)for(var Ie=0;Ie<Ve.size;++Ie){var gt=Ve.name.replace("[0]","["+Ie+"]");it(wt,new Me(gt,X.id(gt),F.getUniformLocation(Nt,gt),Ve))}else it(wt,new Me(Ve.name,X.id(Ve.name),F.getUniformLocation(Nt,Ve.name),Ve));var lt=F.getProgramParameter(Nt,Hp);Re.profile&&(be.stats.attributesCount=lt);var Lt=be.attributes;for(ot=0;ot<lt;++ot)Ve=F.getActiveAttrib(Nt,ot),Ve&&it(Lt,new Me(Ve.name,X.id(Ve.name),F.getAttribLocation(Nt,Ve.name),Ve))}Re.profile&&(re.getMaxUniformsCount=function(){var be=0;return mt.forEach(function(ke){ke.stats.uniformsCount>be&&(be=ke.stats.uniformsCount)}),be},re.getMaxAttributesCount=function(){var be=0;return mt.forEach(function(ke){ke.stats.attributesCount>be&&(be=ke.stats.attributesCount)}),be});function Je(){ze={},Te={};for(var be=0;be<mt.length;++be)dt(mt[be],null,mt[be].attributes.map(function(ke){return[ke.location,ke.name]}))}return{clear:function(){var be=F.deleteShader.bind(F);Ii(ze).forEach(be),ze={},Ii(Te).forEach(be),Te={},mt.forEach(function(ke){F.deleteProgram(ke.program)}),mt.length=0,st={},re.shaderCount=0},program:function(be,ke,et,ot){var Ve=st[ke];Ve||(Ve=st[ke]={});var $t=Ve[be];if($t&&($t.refCount++,!ot))return $t;var ht=new Tt(ke,be);return re.shaderCount++,dt(ht,et,ot),$t||(Ve[be]=ht),mt.push(ht),r(ht,{destroy:function(){if(ht.refCount--,ht.refCount<=0){F.deleteProgram(ht.program);var Nt=mt.indexOf(ht);mt.splice(Nt,1),re.shaderCount--}Ve[ht.vertId].refCount<=0&&(F.deleteShader(Te[ht.vertId]),delete Te[ht.vertId],delete st[ht.fragId][ht.vertId]),Object.keys(st[ht.fragId]).length||(F.deleteShader(ze[ht.fragId]),delete ze[ht.fragId],delete st[ht.fragId])}})},restore:Je,shader:at,frag:-1,vert:-1}}var q0=6408,Gp=5121,y$=3333,b$=5126;function Y0(F,X,re,Re,ze,Te,Me){function it(mt){var Ft;X.next===null?Ft=Gp:Ft=X.next.colorAttachments[0].texture._texture.type;var Tt=0,dt=0,Je=Re.framebufferWidth,be=Re.framebufferHeight,ke=null;Un(mt)?ke=mt:mt&&(Tt=mt.x|0,dt=mt.y|0,Je=(mt.width||Re.framebufferWidth-Tt)|0,be=(mt.height||Re.framebufferHeight-dt)|0,ke=mt.data||null),re();var et=Je*be*4;return ke||(Ft===Gp?ke=new Uint8Array(et):Ft===b$&&(ke=ke||new Float32Array(et))),F.pixelStorei(y$,4),F.readPixels(Tt,dt,Je,be,q0,Ft,ke),ke}function at(mt){var Ft;return X.setFBO({framebuffer:mt.framebuffer},function(){Ft=it(mt)}),Ft}function st(mt){return!mt||!("framebuffer"in mt)?it(mt):at(mt)}return st}function X0(F){return Wp(Q0(Vp(F)))}function Q0(F){return x$(_$($$(F),F.length*8))}function Wp(F){for(var X="0123456789abcdef",re="",Re,ze=0;ze<F.length;ze++)Re=F.charCodeAt(ze),re+=X.charAt(Re>>>4&15)+X.charAt(Re&15);return re}function Vp(F){for(var X="",re=-1,Re,ze;++re<F.length;)Re=F.charCodeAt(re),ze=re+1<F.length?F.charCodeAt(re+1):0,55296<=Re&&Re<=56319&&56320<=ze&&ze<=57343&&(Re=65536+((Re&1023)<<10)+(ze&1023),re++),Re<=127?X+=String.fromCharCode(Re):Re<=2047?X+=String.fromCharCode(192|Re>>>6&31,128|Re&63):Re<=65535?X+=String.fromCharCode(224|Re>>>12&15,128|Re>>>6&63,128|Re&63):Re<=2097151&&(X+=String.fromCharCode(240|Re>>>18&7,128|Re>>>12&63,128|Re>>>6&63,128|Re&63));return X}function $$(F){for(var X=Array(F.length>>2),re=0;re<X.length;re++)X[re]=0;for(var re=0;re<F.length*8;re+=8)X[re>>5]|=(F.charCodeAt(re/8)&255)<<24-re%32;return X}function x$(F){for(var X="",re=0;re<F.length*32;re+=8)X+=String.fromCharCode(F[re>>5]>>>24-re%32&255);return X}function Pa(F,X){return F>>>X|F<<32-X}function Z0(F,X){return F>>>X}function w$(F,X,re){return F&X^~F&re}function J0(F,X,re){return F&X^F&re^X&re}function eg(F){return Pa(F,2)^Pa(F,13)^Pa(F,22)}function Kp(F){return Pa(F,6)^Pa(F,11)^Pa(F,25)}function tg(F){return Pa(F,7)^Pa(F,18)^Z0(F,3)}function sf(F){return Pa(F,17)^Pa(F,19)^Z0(F,10)}var uf=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 _$(F,X){var re=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),Re=new Array(64),ze,Te,Me,it,at,st,mt,Ft,Tt,dt,Je,be;for(F[X>>5]|=128<<24-X%32,F[(X+64>>9<<4)+15]=X,Tt=0;Tt<F.length;Tt+=16){for(ze=re[0],Te=re[1],Me=re[2],it=re[3],at=re[4],st=re[5],mt=re[6],Ft=re[7],dt=0;dt<64;dt++)dt<16?Re[dt]=F[dt+Tt]:Re[dt]=_n(_n(_n(sf(Re[dt-2]),Re[dt-7]),tg(Re[dt-15])),Re[dt-16]),Je=_n(_n(_n(_n(Ft,Kp(at)),w$(at,st,mt)),uf[dt]),Re[dt]),be=_n(eg(ze),J0(ze,Te,Me)),Ft=mt,mt=st,st=at,at=_n(it,Je),it=Me,Me=Te,Te=ze,ze=_n(Je,be);re[0]=_n(ze,re[0]),re[1]=_n(Te,re[1]),re[2]=_n(Me,re[2]),re[3]=_n(it,re[3]),re[4]=_n(at,re[4]),re[5]=_n(st,re[5]),re[6]=_n(mt,re[6]),re[7]=_n(Ft,re[7])}return re}function _n(F,X){var re=(F&65535)+(X&65535),Re=(F>>16)+(X>>16)+(re>>16);return Re<<16|re&65535}function al(F){return Array.prototype.slice.call(F)}function es(F){return al(F).join("")}function S$(F){var X=F&&F.cache,re=0,Re=[],ze=[],Te=[];function Me(Je,be){var ke=be&&be.stable;if(!ke){for(var et=0;et<ze.length;++et)if(ze[et]===Je&&!Te[et])return Re[et]}var ot="g"+re++;return Re.push(ot),ze.push(Je),Te.push(ke),ot}function it(){var Je=[];function be(){Je.push.apply(Je,al(arguments))}var ke=[];function et(){var ot="v"+re++;return ke.push(ot),arguments.length>0&&(Je.push(ot,"="),Je.push.apply(Je,al(arguments)),Je.push(";")),ot}return r(be,{def:et,toString:function(){return es([ke.length>0?"var "+ke.join(",")+";":"",es(Je)])}})}function at(){var Je=it(),be=it(),ke=Je.toString,et=be.toString;function ot(Ve,$t){be(Ve,$t,"=",Je.def(Ve,$t),";")}return r(function(){Je.apply(Je,al(arguments))},{def:Je.def,entry:Je,exit:be,save:ot,set:function(Ve,$t,ht){ot(Ve,$t),Je(Ve,$t,"=",ht,";")},toString:function(){return ke()+et()}})}function st(){var Je=es(arguments),be=at(),ke=at(),et=be.toString,ot=ke.toString;return r(be,{then:function(){return be.apply(be,al(arguments)),this},else:function(){return ke.apply(ke,al(arguments)),this},toString:function(){var Ve=ot();return Ve&&(Ve="else{"+Ve+"}"),es(["if(",Je,"){",et(),"}",Ve])}})}var mt=it(),Ft={};function Tt(Je,be){var ke=[];function et(){var Nt="a"+ke.length;return ke.push(Nt),Nt}be=be||0;for(var ot=0;ot<be;++ot)et();var Ve=at(),$t=Ve.toString,ht=Ft[Je]=r(Ve,{arg:et,toString:function(){return es(["function(",ke.join(),"){",$t(),"}"])}});return ht}function dt(){var Je=['"use strict";',mt,"return {"];Object.keys(Ft).forEach(function(ot){Je.push('"',ot,'":',Ft[ot].toString(),",")}),Je.push("}");var be=es(Je).replace(/;/g,`;
1094
+ `).replace(/}/g,`}
1095
+ `).replace(/{/g,`{
1096
+ `),ke;if(X&&(ke=X0(be),X[ke]))return X[ke].apply(null,ze);var et=Function.apply(null,Re.concat(be));return X&&(X[ke]=et),et.apply(null,ze)}return{global:mt,link:Me,block:it,proc:Tt,scope:at,cond:st,compile:dt}}var ol="xyzw".split(""),qp=5121,ll=1,yu=2,bu=0,cf=1,Yp=2,ff=3,sl=4,Xp=5,rg=6,ng="dither",ig="blend.enable",ag="blend.color",df="blend.equation",pf="blend.func",Qp="depth.enable",Zp="depth.func",og="depth.range",$u="depth.mask",Jp="colorMask",lg="cull.enable",eh="cull.face",hf="frontFace",th="lineWidth",xu="polygonOffset.enable",ts="polygonOffset.offset",rh="sample.alpha",nh="sample.enable",wu="sample.coverage",Hi="stencil.enable",ih="stencil.mask",ah="stencil.func",_u="stencil.opFront",ul="stencil.opBack",sg="scissor.enable",vf="scissor.box",ro="viewport",cl="profile",Ao="framebuffer",Su="vert",mf="frag",rs="elements",ns="primitive",Hn="count",gf="offset",yf="instances",fa="vao",Eu="Width",Au="Height",is=Ao+Eu,as=Ao+Au,E$=ro+Eu,ug=ro+Au,oh="drawingBuffer",lh=oh+Eu,sh=oh+Au,A$=[pf,df,ah,_u,ul,wu,ro,vf,ts],fl=34962,uh=34963,C$=2884,T$=3042,cg=3024,fg=2960,bf=2929,dg=3089,$f=32823,pg=32926,Cu=32928,pn=5126,xf=35664,no=35665,os=35666,wf=5124,ch=35667,Tu=35668,ls=35669,fh=35670,dh=35671,ph=35672,hh=35673,vh=35674,Pu=35675,mh=35676,gh=35678,s=35680,f=4,m=1028,y=1029,x=2304,w=2305,P=32775,C=32776,k=519,L=7680,B=0,G=1,V=32774,ue=513,de=36160,Y=36064,J={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},ie={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},pe={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},ve={cw:x,ccw:w};function oe(F){return Array.isArray(F)||Un(F)||ia(F)}function je(F){return F.sort(function(X,re){return X===ro?-1:re===ro?1:X<re?-1:1})}function Qe(F,X,re,Re){this.thisDep=F,this.contextDep=X,this.propDep=re,this.append=Re}function ut(F){return F&&!(F.thisDep||F.contextDep||F.propDep)}function Ze(F){return new Qe(!1,!1,!1,F)}function pt(F,X){var re=F.type;if(re===bu){var Re=F.data.length;return new Qe(!0,Re>=1,Re>=2,X)}else if(re===sl){var ze=F.data;return new Qe(ze.thisDep,ze.contextDep,ze.propDep,X)}else{if(re===Xp)return new Qe(!1,!1,!1,X);if(re===rg){for(var Te=!1,Me=!1,it=!1,at=0;at<F.data.length;++at){var st=F.data[at];if(st.type===cf)it=!0;else if(st.type===Yp)Me=!0;else if(st.type===ff)Te=!0;else if(st.type===bu){Te=!0;var mt=st.data;mt>=1&&(Me=!0),mt>=2&&(it=!0)}else st.type===sl&&(Te=Te||st.data.thisDep,Me=Me||st.data.contextDep,it=it||st.data.propDep)}return new Qe(Te,Me,it,X)}else return new Qe(re===ff,re===Yp,re===cf,X)}}var xt=new Qe(!1,!1,!1,function(){});function Yt(F,X,re,Re,ze,Te,Me,it,at,st,mt,Ft,Tt,dt,Je,be){var ke=st.Record,et={add:32774,subtract:32778,"reverse subtract":32779};re.ext_blend_minmax&&(et.min=P,et.max=C);var ot=re.angle_instanced_arrays,Ve=re.webgl_draw_buffers,$t=re.oes_vertex_array_object,ht={dirty:!0,profile:be.profile},Nt={},qe=[],Ue={},wt={};function Ie(K){return K.replace(".","_")}function gt(K,Q,ae){var Oe=Ie(K);qe.push(K),Nt[Oe]=ht[Oe]=!!ae,Ue[Oe]=Q}function lt(K,Q,ae){var Oe=Ie(K);qe.push(K),Array.isArray(ae)?(ht[Oe]=ae.slice(),Nt[Oe]=ae.slice()):ht[Oe]=Nt[Oe]=ae,wt[Oe]=Q}function Lt(K){return!!isNaN(K)}gt(ng,cg),gt(ig,T$),lt(ag,"blendColor",[0,0,0,0]),lt(df,"blendEquationSeparate",[V,V]),lt(pf,"blendFuncSeparate",[G,B,G,B]),gt(Qp,bf,!0),lt(Zp,"depthFunc",ue),lt(og,"depthRange",[0,1]),lt($u,"depthMask",!0),lt(Jp,Jp,[!0,!0,!0,!0]),gt(lg,C$),lt(eh,"cullFace",y),lt(hf,hf,w),lt(th,th,1),gt(xu,$f),lt(ts,"polygonOffset",[0,0]),gt(rh,pg),gt(nh,Cu),lt(wu,"sampleCoverage",[1,!1]),gt(Hi,fg),lt(ih,"stencilMask",-1),lt(ah,"stencilFunc",[k,0,-1]),lt(_u,"stencilOpSeparate",[m,L,L,L]),lt(ul,"stencilOpSeparate",[y,L,L,L]),gt(sg,dg),lt(vf,"scissor",[0,0,F.drawingBufferWidth,F.drawingBufferHeight]),lt(ro,ro,[0,0,F.drawingBufferWidth,F.drawingBufferHeight]);var ur={gl:F,context:Tt,strings:X,next:Nt,current:ht,draw:Ft,elements:Te,buffer:ze,shader:mt,attributes:st.state,vao:st,uniforms:at,framebuffer:it,extensions:re,timer:dt,isBufferArgs:oe},St={primTypes:jn,compareFuncs:ie,blendFuncs:J,blendEquations:et,stencilOps:pe,glTypes:ou,orientationType:ve};Ve&&(St.backBuffer=[y],St.drawBuffer=he(Re.maxDrawbuffers,function(K){return K===0?[0]:he(K,function(Q){return Y+Q})}));var Ht=0;function vt(){var K=S$({cache:Je}),Q=K.link,ae=K.global;K.id=Ht++,K.batchId="0";var Oe=Q(ur),_e=K.shared={props:"a0"};Object.keys(ur).forEach(function(se){_e[se]=ae.def(Oe,".",se)});var xe=K.next={},ye=K.current={};Object.keys(wt).forEach(function(se){Array.isArray(ht[se])&&(xe[se]=ae.def(_e.next,".",se),ye[se]=ae.def(_e.current,".",se))});var me=K.constants={};Object.keys(St).forEach(function(se){me[se]=ae.def(JSON.stringify(St[se]))}),K.invoke=function(se,ee){switch(ee.type){case bu:var Se=["this",_e.context,_e.props,K.batchId];return se.def(Q(ee.data),".call(",Se.slice(0,Math.max(ee.data.length+1,4)),")");case cf:return se.def(_e.props,ee.data);case Yp:return se.def(_e.context,ee.data);case ff:return se.def("this",ee.data);case sl:return ee.data.append(K,se),ee.data.ref;case Xp:return ee.data.toString();case rg:return ee.data.map(function(Ne){return K.invoke(se,Ne)})}},K.attribCache={};var te={};return K.scopeAttrib=function(se){var ee=X.id(se);if(ee in te)return te[ee];var Se=st.scope[ee];Se||(Se=st.scope[ee]=new ke);var Ne=te[ee]=Q(Se);return Ne},K}function cr(K){var Q=K.static,ae=K.dynamic,Oe;if(cl in Q){var _e=!!Q[cl];Oe=Ze(function(ye,me){return _e}),Oe.enable=_e}else if(cl in ae){var xe=ae[cl];Oe=pt(xe,function(ye,me){return ye.invoke(me,xe)})}return Oe}function br(K,Q){var ae=K.static,Oe=K.dynamic;if(Ao in ae){var _e=ae[Ao];return _e?(_e=it.getFramebuffer(_e),Ze(function(ye,me){var te=ye.link(_e),se=ye.shared;me.set(se.framebuffer,".next",te);var ee=se.context;return me.set(ee,"."+is,te+".width"),me.set(ee,"."+as,te+".height"),te})):Ze(function(ye,me){var te=ye.shared;me.set(te.framebuffer,".next","null");var se=te.context;return me.set(se,"."+is,se+"."+lh),me.set(se,"."+as,se+"."+sh),"null"})}else if(Ao in Oe){var xe=Oe[Ao];return pt(xe,function(ye,me){var te=ye.invoke(me,xe),se=ye.shared,ee=se.framebuffer,Se=me.def(ee,".getFramebuffer(",te,")");me.set(ee,".next",Se);var Ne=se.context;return me.set(Ne,"."+is,Se+"?"+Se+".width:"+Ne+"."+lh),me.set(Ne,"."+as,Se+"?"+Se+".height:"+Ne+"."+sh),Se})}else return null}function Er(K,Q,ae){var Oe=K.static,_e=K.dynamic;function xe(te){if(te in Oe){var se=Oe[te],ee=!0,Se=se.x|0,Ne=se.y|0,Ye,zt;return"width"in se?Ye=se.width|0:ee=!1,"height"in se?zt=se.height|0:ee=!1,new Qe(!ee&&Q&&Q.thisDep,!ee&&Q&&Q.contextDep,!ee&&Q&&Q.propDep,function(Dt,Pt){var Ut=Dt.shared.context,Ct=Ye;"width"in se||(Ct=Pt.def(Ut,".",is,"-",Se));var Rt=zt;return"height"in se||(Rt=Pt.def(Ut,".",as,"-",Ne)),[Se,Ne,Ct,Rt]})}else if(te in _e){var kt=_e[te],_t=pt(kt,function(Dt,Pt){var Ut=Dt.invoke(Pt,kt),Ct=Dt.shared.context,Rt=Pt.def(Ut,".x|0"),It=Pt.def(Ut,".y|0"),Qt=Pt.def('"width" in ',Ut,"?",Ut,".width|0:","(",Ct,".",is,"-",Rt,")"),rn=Pt.def('"height" in ',Ut,"?",Ut,".height|0:","(",Ct,".",as,"-",It,")");return[Rt,It,Qt,rn]});return Q&&(_t.thisDep=_t.thisDep||Q.thisDep,_t.contextDep=_t.contextDep||Q.contextDep,_t.propDep=_t.propDep||Q.propDep),_t}else return Q?new Qe(Q.thisDep,Q.contextDep,Q.propDep,function(Dt,Pt){var Ut=Dt.shared.context;return[0,0,Pt.def(Ut,".",is),Pt.def(Ut,".",as)]}):null}var ye=xe(ro);if(ye){var me=ye;ye=new Qe(ye.thisDep,ye.contextDep,ye.propDep,function(te,se){var ee=me.append(te,se),Se=te.shared.context;return se.set(Se,"."+E$,ee[2]),se.set(Se,"."+ug,ee[3]),ee})}return{viewport:ye,scissor_box:xe(vf)}}function Wn(K,Q){var ae=K.static,Oe=typeof ae[mf]=="string"&&typeof ae[Su]=="string";if(Oe){if(Object.keys(Q.dynamic).length>0)return null;var _e=Q.static,xe=Object.keys(_e);if(xe.length>0&&typeof _e[xe[0]]=="number"){for(var ye=[],me=0;me<xe.length;++me)ye.push([_e[xe[me]]|0,xe[me]]);return ye}}return null}function $r(K,Q,ae){var Oe=K.static,_e=K.dynamic;function xe(ee){if(ee in Oe){var Se=X.id(Oe[ee]),Ne=Ze(function(){return Se});return Ne.id=Se,Ne}else if(ee in _e){var Ye=_e[ee];return pt(Ye,function(zt,kt){var _t=zt.invoke(kt,Ye),Dt=kt.def(zt.shared.strings,".id(",_t,")");return Dt})}return null}var ye=xe(mf),me=xe(Su),te=null,se;return ut(ye)&&ut(me)?(te=mt.program(me.id,ye.id,null,ae),se=Ze(function(ee,Se){return ee.link(te)})):se=new Qe(ye&&ye.thisDep||me&&me.thisDep,ye&&ye.contextDep||me&&me.contextDep,ye&&ye.propDep||me&&me.propDep,function(ee,Se){var Ne=ee.shared.shader,Ye;ye?Ye=ye.append(ee,Se):Ye=Se.def(Ne,".",mf);var zt;me?zt=me.append(ee,Se):zt=Se.def(Ne,".",Su);var kt=Ne+".program("+zt+","+Ye;return Se.def(kt+")")}),{frag:ye,vert:me,progVar:se,program:te}}function Gi(K,Q){var ae=K.static,Oe=K.dynamic,_e={},xe=!1;function ye(){if(fa in ae){var Pt=ae[fa];return Pt!==null&&st.getVAO(Pt)===null&&(Pt=st.createVAO(Pt)),xe=!0,_e.vao=Pt,Ze(function(Ct){var Rt=st.getVAO(Pt);return Rt?Ct.link(Rt):"null"})}else if(fa in Oe){xe=!0;var Ut=Oe[fa];return pt(Ut,function(Ct,Rt){var It=Ct.invoke(Rt,Ut);return Rt.def(Ct.shared.vao+".getVAO("+It+")")})}return null}var me=ye(),te=!1;function se(){if(rs in ae){var Pt=ae[rs];if(_e.elements=Pt,oe(Pt)){var Ut=_e.elements=Te.create(Pt,!0);Pt=Te.getElements(Ut),te=!0}else Pt&&(Pt=Te.getElements(Pt),te=!0);var Ct=Ze(function(It,Qt){if(Pt){var rn=It.link(Pt);return It.ELEMENTS=rn,rn}return It.ELEMENTS=null,null});return Ct.value=Pt,Ct}else if(rs in Oe){te=!0;var Rt=Oe[rs];return pt(Rt,function(It,Qt){var rn=It.shared,Vi=rn.isBufferArgs,dl=rn.elements,ss=It.invoke(Qt,Rt),us=Qt.def("null"),Ma=Qt.def(Vi,"(",ss,")"),yh=It.cond(Ma).then(us,"=",dl,".createStream(",ss,");").else(us,"=",dl,".getElements(",ss,");");return Qt.entry(yh),Qt.exit(It.cond(Ma).then(dl,".destroyStream(",us,");")),It.ELEMENTS=us,us})}else if(xe)return new Qe(me.thisDep,me.contextDep,me.propDep,function(It,Qt){return Qt.def(It.shared.vao+".currentVAO?"+It.shared.elements+".getElements("+It.shared.vao+".currentVAO.elements):null")});return null}var ee=se();function Se(){if(ns in ae){var Pt=ae[ns];return _e.primitive=Pt,Ze(function(Ct,Rt){return jn[Pt]})}else if(ns in Oe){var Ut=Oe[ns];return pt(Ut,function(Ct,Rt){var It=Ct.constants.primTypes,Qt=Ct.invoke(Rt,Ut);return Rt.def(It,"[",Qt,"]")})}else{if(te)return ut(ee)?ee.value?Ze(function(Ct,Rt){return Rt.def(Ct.ELEMENTS,".primType")}):Ze(function(){return f}):new Qe(ee.thisDep,ee.contextDep,ee.propDep,function(Ct,Rt){var It=Ct.ELEMENTS;return Rt.def(It,"?",It,".primType:",f)});if(xe)return new Qe(me.thisDep,me.contextDep,me.propDep,function(Ct,Rt){return Rt.def(Ct.shared.vao+".currentVAO?"+Ct.shared.vao+".currentVAO.primitive:"+f)})}return null}function Ne(Pt,Ut){if(Pt in ae){var Ct=ae[Pt]|0;return Ut?_e.offset=Ct:_e.instances=Ct,Ze(function(It,Qt){return Ut&&(It.OFFSET=Ct),Ct})}else if(Pt in Oe){var Rt=Oe[Pt];return pt(Rt,function(It,Qt){var rn=It.invoke(Qt,Rt);return Ut&&(It.OFFSET=rn),rn})}else if(Ut){if(te)return Ze(function(It,Qt){return It.OFFSET=0,0});if(xe)return new Qe(me.thisDep,me.contextDep,me.propDep,function(It,Qt){return Qt.def(It.shared.vao+".currentVAO?"+It.shared.vao+".currentVAO.offset:0")})}else if(xe)return new Qe(me.thisDep,me.contextDep,me.propDep,function(It,Qt){return Qt.def(It.shared.vao+".currentVAO?"+It.shared.vao+".currentVAO.instances:-1")});return null}var Ye=Ne(gf,!0);function zt(){if(Hn in ae){var Pt=ae[Hn]|0;return _e.count=Pt,Ze(function(){return Pt})}else if(Hn in Oe){var Ut=Oe[Hn];return pt(Ut,function(Qt,rn){var Vi=Qt.invoke(rn,Ut);return Vi})}else if(te)if(ut(ee)){if(ee)return Ye?new Qe(Ye.thisDep,Ye.contextDep,Ye.propDep,function(Qt,rn){var Vi=rn.def(Qt.ELEMENTS,".vertCount-",Qt.OFFSET);return Vi}):Ze(function(Qt,rn){return rn.def(Qt.ELEMENTS,".vertCount")});var Ct=Ze(function(){return-1});return Ct}else{var Rt=new Qe(ee.thisDep||Ye.thisDep,ee.contextDep||Ye.contextDep,ee.propDep||Ye.propDep,function(Qt,rn){var Vi=Qt.ELEMENTS;return Qt.OFFSET?rn.def(Vi,"?",Vi,".vertCount-",Qt.OFFSET,":-1"):rn.def(Vi,"?",Vi,".vertCount:-1")});return Rt}else if(xe){var It=new Qe(me.thisDep,me.contextDep,me.propDep,function(Qt,rn){return rn.def(Qt.shared.vao,".currentVAO?",Qt.shared.vao,".currentVAO.count:-1")});return It}return null}var kt=Se(),_t=zt(),Dt=Ne(yf,!1);return{elements:ee,primitive:kt,count:_t,instances:Dt,offset:Ye,vao:me,vaoActive:xe,elementsActive:te,static:_e}}function Kr(K,Q){var ae=K.static,Oe=K.dynamic,_e={};return qe.forEach(function(xe){var ye=Ie(xe);function me(te,se){if(xe in ae){var ee=te(ae[xe]);_e[ye]=Ze(function(){return ee})}else if(xe in Oe){var Se=Oe[xe];_e[ye]=pt(Se,function(Ne,Ye){return se(Ne,Ye,Ne.invoke(Ye,Se))})}}switch(xe){case lg:case ig:case ng:case Hi:case Qp:case sg:case xu:case rh:case nh:case $u:return me(function(te){return te},function(te,se,ee){return ee});case Zp:return me(function(te){return ie[te]},function(te,se,ee){var Se=te.constants.compareFuncs;return se.def(Se,"[",ee,"]")});case og:return me(function(te){return te},function(te,se,ee){var Se=se.def("+",ee,"[0]"),Ne=se.def("+",ee,"[1]");return[Se,Ne]});case pf:return me(function(te){var se="srcRGB"in te?te.srcRGB:te.src,ee="srcAlpha"in te?te.srcAlpha:te.src,Se="dstRGB"in te?te.dstRGB:te.dst,Ne="dstAlpha"in te?te.dstAlpha:te.dst;return[J[se],J[Se],J[ee],J[Ne]]},function(te,se,ee){var Se=te.constants.blendFuncs;function Ne(Ut,Ct){var Rt=se.def('"',Ut,Ct,'" in ',ee,"?",ee,".",Ut,Ct,":",ee,".",Ut);return Rt}var Ye=Ne("src","RGB"),zt=Ne("dst","RGB"),kt=se.def(Se,"[",Ye,"]"),_t=se.def(Se,"[",Ne("src","Alpha"),"]"),Dt=se.def(Se,"[",zt,"]"),Pt=se.def(Se,"[",Ne("dst","Alpha"),"]");return[kt,Dt,_t,Pt]});case df:return me(function(te){if(typeof te=="string")return[et[te],et[te]];if(typeof te=="object")return[et[te.rgb],et[te.alpha]]},function(te,se,ee){var Se=te.constants.blendEquations,Ne=se.def(),Ye=se.def(),zt=te.cond("typeof ",ee,'==="string"');return zt.then(Ne,"=",Ye,"=",Se,"[",ee,"];"),zt.else(Ne,"=",Se,"[",ee,".rgb];",Ye,"=",Se,"[",ee,".alpha];"),se(zt),[Ne,Ye]});case ag:return me(function(te){return he(4,function(se){return+te[se]})},function(te,se,ee){return he(4,function(Se){return se.def("+",ee,"[",Se,"]")})});case ih:return me(function(te){return te|0},function(te,se,ee){return se.def(ee,"|0")});case ah:return me(function(te){var se=te.cmp||"keep",ee=te.ref||0,Se="mask"in te?te.mask:-1;return[ie[se],ee,Se]},function(te,se,ee){var Se=te.constants.compareFuncs,Ne=se.def('"cmp" in ',ee,"?",Se,"[",ee,".cmp]",":",L),Ye=se.def(ee,".ref|0"),zt=se.def('"mask" in ',ee,"?",ee,".mask|0:-1");return[Ne,Ye,zt]});case _u:case ul:return me(function(te){var se=te.fail||"keep",ee=te.zfail||"keep",Se=te.zpass||"keep";return[xe===ul?y:m,pe[se],pe[ee],pe[Se]]},function(te,se,ee){var Se=te.constants.stencilOps;function Ne(Ye){return se.def('"',Ye,'" in ',ee,"?",Se,"[",ee,".",Ye,"]:",L)}return[xe===ul?y:m,Ne("fail"),Ne("zfail"),Ne("zpass")]});case ts:return me(function(te){var se=te.factor|0,ee=te.units|0;return[se,ee]},function(te,se,ee){var Se=se.def(ee,".factor|0"),Ne=se.def(ee,".units|0");return[Se,Ne]});case eh:return me(function(te){var se=0;return te==="front"?se=m:te==="back"&&(se=y),se},function(te,se,ee){return se.def(ee,'==="front"?',m,":",y)});case th:return me(function(te){return te},function(te,se,ee){return ee});case hf:return me(function(te){return ve[te]},function(te,se,ee){return se.def(ee+'==="cw"?'+x+":"+w)});case Jp:return me(function(te){return te.map(function(se){return!!se})},function(te,se,ee){return he(4,function(Se){return"!!"+ee+"["+Se+"]"})});case wu:return me(function(te){var se="value"in te?te.value:1,ee=!!te.invert;return[se,ee]},function(te,se,ee){var Se=se.def('"value" in ',ee,"?+",ee,".value:1"),Ne=se.def("!!",ee,".invert");return[Se,Ne]})}}),_e}function vi(K,Q){var ae=K.static,Oe=K.dynamic,_e={};return Object.keys(ae).forEach(function(xe){var ye=ae[xe],me;if(typeof ye=="number"||typeof ye=="boolean")me=Ze(function(){return ye});else if(typeof ye=="function"){var te=ye._reglType;te==="texture2d"||te==="textureCube"?me=Ze(function(se){return se.link(ye)}):(te==="framebuffer"||te==="framebufferCube")&&(me=Ze(function(se){return se.link(ye.color[0])}))}else oa(ye)&&(me=Ze(function(se){var ee=se.global.def("[",he(ye.length,function(Se){return ye[Se]}),"]");return ee}));me.value=ye,_e[xe]=me}),Object.keys(Oe).forEach(function(xe){var ye=Oe[xe];_e[xe]=pt(ye,function(me,te){return me.invoke(te,ye)})}),_e}function Wi(K,Q){var ae=K.static,Oe=K.dynamic,_e={};return Object.keys(ae).forEach(function(xe){var ye=ae[xe],me=X.id(xe),te=new ke;if(oe(ye))te.state=ll,te.buffer=ze.getBuffer(ze.create(ye,fl,!1,!0)),te.type=0;else{var se=ze.getBuffer(ye);if(se)te.state=ll,te.buffer=se,te.type=0;else if("constant"in ye){var ee=ye.constant;te.buffer="null",te.state=yu,typeof ee=="number"?te.x=ee:ol.forEach(function(Dt,Pt){Pt<ee.length&&(te[Dt]=ee[Pt])})}else{oe(ye.buffer)?se=ze.getBuffer(ze.create(ye.buffer,fl,!1,!0)):se=ze.getBuffer(ye.buffer);var Se=ye.offset|0,Ne=ye.stride|0,Ye=ye.size|0,zt=!!ye.normalized,kt=0;"type"in ye&&(kt=ou[ye.type]);var _t=ye.divisor|0;te.buffer=se,te.state=ll,te.size=Ye,te.normalized=zt,te.type=kt||se.dtype,te.offset=Se,te.stride=Ne,te.divisor=_t}}_e[xe]=Ze(function(Dt,Pt){var Ut=Dt.attribCache;if(me in Ut)return Ut[me];var Ct={isStream:!1};return Object.keys(te).forEach(function(Rt){Ct[Rt]=te[Rt]}),te.buffer&&(Ct.buffer=Dt.link(te.buffer),Ct.type=Ct.type||Ct.buffer+".dtype"),Ut[me]=Ct,Ct})}),Object.keys(Oe).forEach(function(xe){var ye=Oe[xe];function me(te,se){var ee=te.invoke(se,ye),Se=te.shared,Ne=te.constants,Ye=Se.isBufferArgs,zt=Se.buffer,kt={isStream:se.def(!1)},_t=new ke;_t.state=ll,Object.keys(_t).forEach(function(Ct){kt[Ct]=se.def(""+_t[Ct])});var Dt=kt.buffer,Pt=kt.type;se("if(",Ye,"(",ee,")){",kt.isStream,"=true;",Dt,"=",zt,".createStream(",fl,",",ee,");",Pt,"=",Dt,".dtype;","}else{",Dt,"=",zt,".getBuffer(",ee,");","if(",Dt,"){",Pt,"=",Dt,".dtype;",'}else if("constant" in ',ee,"){",kt.state,"=",yu,";","if(typeof "+ee+'.constant === "number"){',kt[ol[0]],"=",ee,".constant;",ol.slice(1).map(function(Ct){return kt[Ct]}).join("="),"=0;","}else{",ol.map(function(Ct,Rt){return kt[Ct]+"="+ee+".constant.length>"+Rt+"?"+ee+".constant["+Rt+"]:0;"}).join(""),"}}else{","if(",Ye,"(",ee,".buffer)){",Dt,"=",zt,".createStream(",fl,",",ee,".buffer);","}else{",Dt,"=",zt,".getBuffer(",ee,".buffer);","}",Pt,'="type" in ',ee,"?",Ne.glTypes,"[",ee,".type]:",Dt,".dtype;",kt.normalized,"=!!",ee,".normalized;");function Ut(Ct){se(kt[Ct],"=",ee,".",Ct,"|0;")}return Ut("size"),Ut("offset"),Ut("stride"),Ut("divisor"),se("}}"),se.exit("if(",kt.isStream,"){",zt,".destroyStream(",Dt,");","}"),kt}_e[xe]=pt(ye,me)}),_e}function Ei(K){var Q=K.static,ae=K.dynamic,Oe={};return Object.keys(Q).forEach(function(_e){var xe=Q[_e];Oe[_e]=Ze(function(ye,me){return typeof xe=="number"||typeof xe=="boolean"?""+xe:ye.link(xe)})}),Object.keys(ae).forEach(function(_e){var xe=ae[_e];Oe[_e]=pt(xe,function(ye,me){return ye.invoke(me,xe)})}),Oe}function io(K,Q,ae,Oe,_e){K.static,K.dynamic;var xe=Wn(K,Q),ye=br(K),me=Er(K,ye),te=Gi(K),se=Kr(K),ee=$r(K,_e,xe);function Se(Dt){var Pt=me[Dt];Pt&&(se[Dt]=Pt)}Se(ro),Se(Ie(vf));var Ne=Object.keys(se).length>0,Ye={framebuffer:ye,draw:te,shader:ee,state:se,dirty:Ne,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(Ye.profile=cr(K),Ye.uniforms=vi(ae),Ye.drawVAO=Ye.scopeVAO=te.vao,!Ye.drawVAO&&ee.program&&!xe&&re.angle_instanced_arrays&&te.static.elements){var zt=!0,kt=ee.program.attributes.map(function(Dt){var Pt=Q.static[Dt];return zt=zt&&!!Pt,Pt});if(zt&&kt.length>0){var _t=st.getVAO(st.createVAO({attributes:kt,elements:te.static.elements}));Ye.drawVAO=new Qe(null,null,null,function(Dt,Pt){return Dt.link(_t)}),Ye.useVAO=!0}}return xe?Ye.useVAO=!0:Ye.attributes=Wi(Q),Ye.context=Ei(Oe),Ye}function Vn(K,Q,ae){var Oe=K.shared,_e=Oe.context,xe=K.scope();Object.keys(ae).forEach(function(ye){Q.save(_e,"."+ye);var me=ae[ye],te=me.append(K,Q);Array.isArray(te)?xe(_e,".",ye,"=[",te.join(),"];"):xe(_e,".",ye,"=",te,";")}),Q(xe)}function Kn(K,Q,ae,Oe){var _e=K.shared,xe=_e.gl,ye=_e.framebuffer,me;Ve&&(me=Q.def(_e.extensions,".webgl_draw_buffers"));var te=K.constants,se=te.drawBuffer,ee=te.backBuffer,Se;ae?Se=ae.append(K,Q):Se=Q.def(ye,".next"),Oe||Q("if(",Se,"!==",ye,".cur){"),Q("if(",Se,"){",xe,".bindFramebuffer(",de,",",Se,".framebuffer);"),Ve&&Q(me,".drawBuffersWEBGL(",se,"[",Se,".colorAttachments.length]);"),Q("}else{",xe,".bindFramebuffer(",de,",null);"),Ve&&Q(me,".drawBuffersWEBGL(",ee,");"),Q("}",ye,".cur=",Se,";"),Oe||Q("}")}function Jt(K,Q,ae){var Oe=K.shared,_e=Oe.gl,xe=K.current,ye=K.next,me=Oe.current,te=Oe.next,se=K.cond(me,".dirty");qe.forEach(function(ee){var Se=Ie(ee);if(!(Se in ae.state)){var Ne,Ye;if(Se in ye){Ne=ye[Se],Ye=xe[Se];var zt=he(ht[Se].length,function(_t){return se.def(Ne,"[",_t,"]")});se(K.cond(zt.map(function(_t,Dt){return _t+"!=="+Ye+"["+Dt+"]"}).join("||")).then(_e,".",wt[Se],"(",zt,");",zt.map(function(_t,Dt){return Ye+"["+Dt+"]="+_t}).join(";"),";"))}else{Ne=se.def(te,".",Se);var kt=K.cond(Ne,"!==",me,".",Se);se(kt),Se in Ue?kt(K.cond(Ne).then(_e,".enable(",Ue[Se],");").else(_e,".disable(",Ue[Se],");"),me,".",Se,"=",Ne,";"):kt(_e,".",wt[Se],"(",Ne,");",me,".",Se,"=",Ne,";")}}}),Object.keys(ae.state).length===0&&se(me,".dirty=false;"),Q(se)}function da(K,Q,ae,Oe){var _e=K.shared,xe=K.current,ye=_e.current,me=_e.gl,te;je(Object.keys(ae)).forEach(function(se){var ee=ae[se];if(!(Oe&&!Oe(ee))){var Se=ee.append(K,Q);if(Ue[se]){var Ne=Ue[se];ut(ee)?(te=K.link(Se,{stable:!0}),Q(K.cond(te).then(me,".enable(",Ne,");").else(me,".disable(",Ne,");")),Q(ye,".",se,"=",te,";")):(Q(K.cond(Se).then(me,".enable(",Ne,");").else(me,".disable(",Ne,");")),Q(ye,".",se,"=",Se,";"))}else if(oa(Se)){var Ye=xe[se];Q(me,".",wt[se],"(",Se,");",Se.map(function(zt,kt){return Ye+"["+kt+"]="+zt}).join(";"),";")}else ut(ee)?(te=K.link(Se,{stable:!0}),Q(me,".",wt[se],"(",te,");",ye,".",se,"=",te,";")):Q(me,".",wt[se],"(",Se,");",ye,".",se,"=",Se,";")}})}function jr(K,Q){ot&&(K.instancing=Q.def(K.shared.extensions,".angle_instanced_arrays"))}function qn(K,Q,ae,Oe,_e){var xe=K.shared,ye=K.stats,me=xe.current,te=xe.timer,se=ae.profile;function ee(){return typeof performance>"u"?"Date.now()":"performance.now()"}var Se,Ne;function Ye(Ut){Se=Q.def(),Ut(Se,"=",ee(),";"),typeof _e=="string"?Ut(ye,".count+=",_e,";"):Ut(ye,".count++;"),dt&&(Oe?(Ne=Q.def(),Ut(Ne,"=",te,".getNumPendingQueries();")):Ut(te,".beginQuery(",ye,");"))}function zt(Ut){Ut(ye,".cpuTime+=",ee(),"-",Se,";"),dt&&(Oe?Ut(te,".pushScopeStats(",Ne,",",te,".getNumPendingQueries(),",ye,");"):Ut(te,".endQuery();"))}function kt(Ut){var Ct=Q.def(me,".profile");Q(me,".profile=",Ut,";"),Q.exit(me,".profile=",Ct,";")}var _t;if(se){if(ut(se)){se.enable?(Ye(Q),zt(Q.exit),kt("true")):kt("false");return}_t=se.append(K,Q),kt(_t)}else _t=Q.def(me,".profile");var Dt=K.block();Ye(Dt),Q("if(",_t,"){",Dt,"}");var Pt=K.block();zt(Pt),Q.exit("if(",_t,"){",Pt,"}")}function ki(K,Q,ae,Oe,_e){var xe=K.shared;function ye(te){switch(te){case xf:case ch:case dh:return 2;case no:case Tu:case ph:return 3;case os:case ls:case hh:return 4;default:return 1}}function me(te,se,ee){var Se=xe.gl,Ne=Q.def(te,".location"),Ye=Q.def(xe.attributes,"[",Ne,"]"),zt=ee.state,kt=ee.buffer,_t=[ee.x,ee.y,ee.z,ee.w],Dt=["buffer","normalized","offset","stride"];function Pt(){Q("if(!",Ye,".buffer){",Se,".enableVertexAttribArray(",Ne,");}");var Ct=ee.type,Rt;if(ee.size?Rt=Q.def(ee.size,"||",se):Rt=se,Q("if(",Ye,".type!==",Ct,"||",Ye,".size!==",Rt,"||",Dt.map(function(Qt){return Ye+"."+Qt+"!=="+ee[Qt]}).join("||"),"){",Se,".bindBuffer(",fl,",",kt,".buffer);",Se,".vertexAttribPointer(",[Ne,Rt,Ct,ee.normalized,ee.stride,ee.offset],");",Ye,".type=",Ct,";",Ye,".size=",Rt,";",Dt.map(function(Qt){return Ye+"."+Qt+"="+ee[Qt]+";"}).join(""),"}"),ot){var It=ee.divisor;Q("if(",Ye,".divisor!==",It,"){",K.instancing,".vertexAttribDivisorANGLE(",[Ne,It],");",Ye,".divisor=",It,";}")}}function Ut(){Q("if(",Ye,".buffer){",Se,".disableVertexAttribArray(",Ne,");",Ye,".buffer=null;","}if(",ol.map(function(Ct,Rt){return Ye+"."+Ct+"!=="+_t[Rt]}).join("||"),"){",Se,".vertexAttrib4f(",Ne,",",_t,");",ol.map(function(Ct,Rt){return Ye+"."+Ct+"="+_t[Rt]+";"}).join(""),"}")}zt===ll?Pt():zt===yu?Ut():(Q("if(",zt,"===",ll,"){"),Pt(),Q("}else{"),Ut(),Q("}"))}Oe.forEach(function(te){var se=te.name,ee=ae.attributes[se],Se;if(ee){if(!_e(ee))return;Se=ee.append(K,Q)}else{if(!_e(xt))return;var Ne=K.scopeAttrib(se);Se={},Object.keys(new ke).forEach(function(Ye){Se[Ye]=Q.def(Ne,".",Ye)})}me(K.link(te),ye(te.info.type),Se)})}function Fi(K,Q,ae,Oe,_e,xe){for(var ye=K.shared,me=ye.gl,te,se=0;se<Oe.length;++se){var ee=Oe[se],Se=ee.name,Ne=ee.info.type,Ye=ae.uniforms[Se],zt=K.link(ee),kt=zt+".location",_t;if(Ye){if(!_e(Ye))continue;if(ut(Ye)){var Dt=Ye.value;if(Ne===gh||Ne===s){var Pt=K.link(Dt._texture||Dt.color[0]._texture);Q(me,".uniform1i(",kt,",",Pt+".bind());"),Q.exit(Pt,".unbind();")}else if(Ne===vh||Ne===Pu||Ne===mh){var Ut=K.global.def("new Float32Array(["+Array.prototype.slice.call(Dt)+"])"),Ct=2;Ne===Pu?Ct=3:Ne===mh&&(Ct=4),Q(me,".uniformMatrix",Ct,"fv(",kt,",false,",Ut,");")}else{switch(Ne){case pn:te="1f";break;case xf:te="2f";break;case no:te="3f";break;case os:te="4f";break;case fh:te="1i";break;case wf:te="1i";break;case dh:te="2i";break;case ch:te="2i";break;case ph:te="3i";break;case Tu:te="3i";break;case hh:te="4i";break;case ls:te="4i";break}Q(me,".uniform",te,"(",kt,",",oa(Dt)?Array.prototype.slice.call(Dt):Dt,");")}continue}else _t=Ye.append(K,Q)}else{if(!_e(xt))continue;_t=Q.def(ye.uniforms,"[",X.id(Se),"]")}Ne===gh?Q("if(",_t,"&&",_t,'._reglType==="framebuffer"){',_t,"=",_t,".color[0];","}"):Ne===s&&Q("if(",_t,"&&",_t,'._reglType==="framebufferCube"){',_t,"=",_t,".color[0];","}");var Rt=1;switch(Ne){case gh:case s:var It=Q.def(_t,"._texture");Q(me,".uniform1i(",kt,",",It,".bind());"),Q.exit(It,".unbind();");continue;case wf:case fh:te="1i";break;case ch:case dh:te="2i",Rt=2;break;case Tu:case ph:te="3i",Rt=3;break;case ls:case hh:te="4i",Rt=4;break;case pn:te="1f";break;case xf:te="2f",Rt=2;break;case no:te="3f",Rt=3;break;case os:te="4f",Rt=4;break;case vh:te="Matrix2fv";break;case Pu:te="Matrix3fv";break;case mh:te="Matrix4fv";break}if(te.charAt(0)==="M"){Q(me,".uniform",te,"(",kt,",");var Qt=Math.pow(Ne-vh+2,2),rn=K.global.def("new Float32Array(",Qt,")");Array.isArray(_t)?Q("false,(",he(Qt,function(Ma){return rn+"["+Ma+"]="+_t[Ma]}),",",rn,")"):Q("false,(Array.isArray(",_t,")||",_t," instanceof Float32Array)?",_t,":(",he(Qt,function(Ma){return rn+"["+Ma+"]="+_t+"["+Ma+"]"}),",",rn,")"),Q(");")}else if(Rt>1){for(var Vi=[],dl=[],ss=0;ss<Rt;++ss)Array.isArray(_t)?dl.push(_t[ss]):dl.push(Q.def(_t+"["+ss+"]")),xe&&Vi.push(Q.def());xe&&Q("if(!",K.batchId,"||",Vi.map(function(Ma,yh){return Ma+"!=="+dl[yh]}).join("||"),"){",Vi.map(function(Ma,yh){return Ma+"="+dl[yh]+";"}).join("")),Q(me,".uniform",te,"(",kt,",",dl.join(","),");"),xe&&Q("}")}else{if(xe){var us=Q.def();Q("if(!",K.batchId,"||",us,"!==",_t,"){",us,"=",_t,";")}Q(me,".uniform",te,"(",kt,",",_t,");"),xe&&Q("}")}}}function nr(K,Q,ae,Oe){var _e=K.shared,xe=_e.gl,ye=_e.draw,me=Oe.draw;function te(){var Rt=me.elements,It,Qt=Q;return Rt?((Rt.contextDep&&Oe.contextDynamic||Rt.propDep)&&(Qt=ae),It=Rt.append(K,Qt),me.elementsActive&&Qt("if("+It+")"+xe+".bindBuffer("+uh+","+It+".buffer.buffer);")):(It=Qt.def(),Qt(It,"=",ye,".",rs,";","if(",It,"){",xe,".bindBuffer(",uh,",",It,".buffer.buffer);}","else if(",_e.vao,".currentVAO){",It,"=",K.shared.elements+".getElements("+_e.vao,".currentVAO.elements);",$t?"":"if("+It+")"+xe+".bindBuffer("+uh+","+It+".buffer.buffer);","}")),It}function se(){var Rt=me.count,It,Qt=Q;return Rt?((Rt.contextDep&&Oe.contextDynamic||Rt.propDep)&&(Qt=ae),It=Rt.append(K,Qt)):It=Qt.def(ye,".",Hn),It}var ee=te();function Se(Rt){var It=me[Rt];return It?It.contextDep&&Oe.contextDynamic||It.propDep?It.append(K,ae):It.append(K,Q):Q.def(ye,".",Rt)}var Ne=Se(ns),Ye=Se(gf),zt=se();if(typeof zt=="number"){if(zt===0)return}else ae("if(",zt,"){"),ae.exit("}");var kt,_t;ot&&(kt=Se(yf),_t=K.instancing);var Dt=ee+".type",Pt=me.elements&&ut(me.elements)&&!me.vaoActive;function Ut(){function Rt(){ae(_t,".drawElementsInstancedANGLE(",[Ne,zt,Dt,Ye+"<<(("+Dt+"-"+qp+")>>1)",kt],");")}function It(){ae(_t,".drawArraysInstancedANGLE(",[Ne,Ye,zt,kt],");")}ee&&ee!=="null"?Pt?Rt():(ae("if(",ee,"){"),Rt(),ae("}else{"),It(),ae("}")):It()}function Ct(){function Rt(){ae(xe+".drawElements("+[Ne,zt,Dt,Ye+"<<(("+Dt+"-"+qp+")>>1)"]+");")}function It(){ae(xe+".drawArrays("+[Ne,Ye,zt]+");")}ee&&ee!=="null"?Pt?Rt():(ae("if(",ee,"){"),Rt(),ae("}else{"),It(),ae("}")):It()}ot&&(typeof kt!="number"||kt>=0)?typeof kt=="string"?(ae("if(",kt,">0){"),Ut(),ae("}else if(",kt,"<0){"),Ct(),ae("}")):Ut():Ct()}function wr(K,Q,ae,Oe,_e){var xe=vt(),ye=xe.proc("body",_e);return ot&&(xe.instancing=ye.def(xe.shared.extensions,".angle_instanced_arrays")),K(xe,ye,ae,Oe),xe.compile().body}function Qr(K,Q,ae,Oe){jr(K,Q),ae.useVAO?ae.drawVAO?Q(K.shared.vao,".setVAO(",ae.drawVAO.append(K,Q),");"):Q(K.shared.vao,".setVAO(",K.shared.vao,".targetVAO);"):(Q(K.shared.vao,".setVAO(null);"),ki(K,Q,ae,Oe.attributes,function(){return!0})),Fi(K,Q,ae,Oe.uniforms,function(){return!0},!1),nr(K,Q,Q,ae)}function Yn(K,Q){var ae=K.proc("draw",1);jr(K,ae),Vn(K,ae,Q.context),Kn(K,ae,Q.framebuffer),Jt(K,ae,Q),da(K,ae,Q.state),qn(K,ae,Q,!1,!0);var Oe=Q.shader.progVar.append(K,ae);if(ae(K.shared.gl,".useProgram(",Oe,".program);"),Q.shader.program)Qr(K,ae,Q,Q.shader.program);else{ae(K.shared.vao,".setVAO(null);");var _e=K.global.def("{}"),xe=ae.def(Oe,".id"),ye=ae.def(_e,"[",xe,"]");ae(K.cond(ye).then(ye,".call(this,a0);").else(ye,"=",_e,"[",xe,"]=",K.link(function(me){return wr(Qr,K,Q,me,1)}),"(",Oe,");",ye,".call(this,a0);"))}Object.keys(Q.state).length>0&&ae(K.shared.current,".dirty=true;"),K.shared.vao&&ae(K.shared.vao,".setVAO(null);")}function Z(K,Q,ae,Oe){K.batchId="a1",jr(K,Q);function _e(){return!0}ki(K,Q,ae,Oe.attributes,_e),Fi(K,Q,ae,Oe.uniforms,_e,!1),nr(K,Q,Q,ae)}function Pe(K,Q,ae,Oe){jr(K,Q);var _e=ae.contextDep,xe=Q.def(),ye="a0",me="a1",te=Q.def();K.shared.props=te,K.batchId=xe;var se=K.scope(),ee=K.scope();Q(se.entry,"for(",xe,"=0;",xe,"<",me,";++",xe,"){",te,"=",ye,"[",xe,"];",ee,"}",se.exit);function Se(Dt){return Dt.contextDep&&_e||Dt.propDep}function Ne(Dt){return!Se(Dt)}if(ae.needsContext&&Vn(K,ee,ae.context),ae.needsFramebuffer&&Kn(K,ee,ae.framebuffer),da(K,ee,ae.state,Se),ae.profile&&Se(ae.profile)&&qn(K,ee,ae,!1,!0),Oe)ae.useVAO?ae.drawVAO?Se(ae.drawVAO)?ee(K.shared.vao,".setVAO(",ae.drawVAO.append(K,ee),");"):se(K.shared.vao,".setVAO(",ae.drawVAO.append(K,se),");"):se(K.shared.vao,".setVAO(",K.shared.vao,".targetVAO);"):(se(K.shared.vao,".setVAO(null);"),ki(K,se,ae,Oe.attributes,Ne),ki(K,ee,ae,Oe.attributes,Se)),Fi(K,se,ae,Oe.uniforms,Ne,!1),Fi(K,ee,ae,Oe.uniforms,Se,!0),nr(K,se,ee,ae);else{var Ye=K.global.def("{}"),zt=ae.shader.progVar.append(K,ee),kt=ee.def(zt,".id"),_t=ee.def(Ye,"[",kt,"]");ee(K.shared.gl,".useProgram(",zt,".program);","if(!",_t,"){",_t,"=",Ye,"[",kt,"]=",K.link(function(Dt){return wr(Z,K,ae,Dt,2)}),"(",zt,");}",_t,".call(this,a0[",xe,"],",xe,");")}}function Ce(K,Q){var ae=K.proc("batch",2);K.batchId="0",jr(K,ae);var Oe=!1,_e=!0;Object.keys(Q.context).forEach(function(Ye){Oe=Oe||Q.context[Ye].propDep}),Oe||(Vn(K,ae,Q.context),_e=!1);var xe=Q.framebuffer,ye=!1;xe?(xe.propDep?Oe=ye=!0:xe.contextDep&&Oe&&(ye=!0),ye||Kn(K,ae,xe)):Kn(K,ae,null),Q.state.viewport&&Q.state.viewport.propDep&&(Oe=!0);function me(Ye){return Ye.contextDep&&Oe||Ye.propDep}Jt(K,ae,Q),da(K,ae,Q.state,function(Ye){return!me(Ye)}),(!Q.profile||!me(Q.profile))&&qn(K,ae,Q,!1,"a1"),Q.contextDep=Oe,Q.needsContext=_e,Q.needsFramebuffer=ye;var te=Q.shader.progVar;if(te.contextDep&&Oe||te.propDep)Pe(K,ae,Q,null);else{var se=te.append(K,ae);if(ae(K.shared.gl,".useProgram(",se,".program);"),Q.shader.program)Pe(K,ae,Q,Q.shader.program);else{ae(K.shared.vao,".setVAO(null);");var ee=K.global.def("{}"),Se=ae.def(se,".id"),Ne=ae.def(ee,"[",Se,"]");ae(K.cond(Ne).then(Ne,".call(this,a0,a1);").else(Ne,"=",ee,"[",Se,"]=",K.link(function(Ye){return wr(Pe,K,Q,Ye,2)}),"(",se,");",Ne,".call(this,a0,a1);"))}}Object.keys(Q.state).length>0&&ae(K.shared.current,".dirty=true;"),K.shared.vao&&ae(K.shared.vao,".setVAO(null);")}function Mt(K,Q){var ae=K.proc("scope",3);K.batchId="a2";var Oe=K.shared,_e=Oe.current;if(Vn(K,ae,Q.context),Q.framebuffer&&Q.framebuffer.append(K,ae),je(Object.keys(Q.state)).forEach(function(me){var te=Q.state[me],se=te.append(K,ae);oa(se)?se.forEach(function(ee,Se){Lt(ee)?ae.set(K.next[me],"["+Se+"]",ee):ae.set(K.next[me],"["+Se+"]",K.link(ee,{stable:!0}))}):ut(te)?ae.set(Oe.next,"."+me,K.link(se,{stable:!0})):ae.set(Oe.next,"."+me,se)}),qn(K,ae,Q,!0,!0),[rs,gf,Hn,yf,ns].forEach(function(me){var te=Q.draw[me];if(te){var se=te.append(K,ae);Lt(se)?ae.set(Oe.draw,"."+me,se):ae.set(Oe.draw,"."+me,K.link(se),{stable:!0})}}),Object.keys(Q.uniforms).forEach(function(me){var te=Q.uniforms[me].append(K,ae);Array.isArray(te)&&(te="["+te.map(function(se){return Lt(se)?se:K.link(se,{stable:!0})})+"]"),ae.set(Oe.uniforms,"["+K.link(X.id(me),{stable:!0})+"]",te)}),Object.keys(Q.attributes).forEach(function(me){var te=Q.attributes[me].append(K,ae),se=K.scopeAttrib(me);Object.keys(new ke).forEach(function(ee){ae.set(se,"."+ee,te[ee])})}),Q.scopeVAO){var xe=Q.scopeVAO.append(K,ae);Lt(xe)?ae.set(Oe.vao,".targetVAO",xe):ae.set(Oe.vao,".targetVAO",K.link(xe,{stable:!0}))}function ye(me){var te=Q.shader[me];if(te){var se=te.append(K,ae);Lt(se)?ae.set(Oe.shader,"."+me,se):ae.set(Oe.shader,"."+me,K.link(se,{stable:!0}))}}ye(Su),ye(mf),Object.keys(Q.state).length>0&&(ae(_e,".dirty=true;"),ae.exit(_e,".dirty=true;")),ae("a1(",K.shared.context,",a0,",K.batchId,");")}function dr(K){if(!(typeof K!="object"||oa(K))){for(var Q=Object.keys(K),ae=0;ae<Q.length;++ae)if($.isDynamic(K[Q[ae]]))return!0;return!1}}function tn(K,Q,ae){var Oe=Q.static[ae];if(!Oe||!dr(Oe))return;var _e=K.global,xe=Object.keys(Oe),ye=!1,me=!1,te=!1,se=K.global.def("{}");xe.forEach(function(Se){var Ne=Oe[Se];if($.isDynamic(Ne)){typeof Ne=="function"&&(Ne=Oe[Se]=$.unbox(Ne));var Ye=pt(Ne,null);ye=ye||Ye.thisDep,te=te||Ye.propDep,me=me||Ye.contextDep}else{switch(_e(se,".",Se,"="),typeof Ne){case"number":_e(Ne);break;case"string":_e('"',Ne,'"');break;case"object":Array.isArray(Ne)&&_e("[",Ne.join(),"]");break;default:_e(K.link(Ne));break}_e(";")}});function ee(Se,Ne){xe.forEach(function(Ye){var zt=Oe[Ye];if($.isDynamic(zt)){var kt=Se.invoke(Ne,zt);Ne(se,".",Ye,"=",kt,";")}})}Q.dynamic[ae]=new $.DynamicVariable(sl,{thisDep:ye,contextDep:me,propDep:te,ref:se,append:ee}),delete Q.static[ae]}function Ot(K,Q,ae,Oe,_e){var xe=vt();xe.stats=xe.link(_e),Object.keys(Q.static).forEach(function(me){tn(xe,Q,me)}),A$.forEach(function(me){tn(xe,K,me)});var ye=io(K,Q,ae,Oe,xe);return ye.shader.program&&(ye.shader.program.attributes.sort(function(me,te){return me.name<te.name?-1:1}),ye.shader.program.uniforms.sort(function(me,te){return me.name<te.name?-1:1})),Yn(xe,ye),Mt(xe,ye),Ce(xe,ye),r(xe.compile(),{destroy:function(){ye.shader.program.destroy()}})}return{next:Nt,current:ht,procs:function(){var K=vt(),Q=K.proc("poll"),ae=K.proc("refresh"),Oe=K.block();Q(Oe),ae(Oe);var _e=K.shared,xe=_e.gl,ye=_e.next,me=_e.current;Oe(me,".dirty=false;"),Kn(K,Q),Kn(K,ae,null,!0);var te;ot&&(te=K.link(ot)),re.oes_vertex_array_object&&ae(K.link(re.oes_vertex_array_object),".bindVertexArrayOES(null);");var se=ae.def(_e.attributes),ee=ae.def(0),Se=K.cond(ee,".buffer");Se.then(xe,".enableVertexAttribArray(i);",xe,".bindBuffer(",fl,",",ee,".buffer.buffer);",xe,".vertexAttribPointer(i,",ee,".size,",ee,".type,",ee,".normalized,",ee,".stride,",ee,".offset);").else(xe,".disableVertexAttribArray(i);",xe,".vertexAttrib4f(i,",ee,".x,",ee,".y,",ee,".z,",ee,".w);",ee,".buffer=null;");var Ne=K.link(Re.maxAttributes,{stable:!0});return ae("for(var i=0;i<",Ne,";++i){",ee,"=",se,"[i];",Se,"}"),ot&&ae("for(var i=0;i<",Ne,";++i){",te,".vertexAttribDivisorANGLE(i,",se,"[i].divisor);","}"),ae(K.shared.vao,".currentVAO=null;",K.shared.vao,".setVAO(",K.shared.vao,".targetVAO);"),Object.keys(Ue).forEach(function(Ye){var zt=Ue[Ye],kt=Oe.def(ye,".",Ye),_t=K.block();_t("if(",kt,"){",xe,".enable(",zt,")}else{",xe,".disable(",zt,")}",me,".",Ye,"=",kt,";"),ae(_t),Q("if(",kt,"!==",me,".",Ye,"){",_t,"}")}),Object.keys(wt).forEach(function(Ye){var zt=wt[Ye],kt=ht[Ye],_t,Dt,Pt=K.block();if(Pt(xe,".",zt,"("),oa(kt)){var Ut=kt.length;_t=K.global.def(ye,".",Ye),Dt=K.global.def(me,".",Ye),Pt(he(Ut,function(Ct){return _t+"["+Ct+"]"}),");",he(Ut,function(Ct){return Dt+"["+Ct+"]="+_t+"["+Ct+"];"}).join("")),Q("if(",he(Ut,function(Ct){return _t+"["+Ct+"]!=="+Dt+"["+Ct+"]"}).join("||"),"){",Pt,"}")}else _t=Oe.def(ye,".",Ye),Dt=Oe.def(me,".",Ye),Pt(_t,");",me,".",Ye,"=",_t,";"),Q("if(",_t,"!==",Dt,"){",Pt,"}");ae(Pt)}),K.compile()}(),compile:Ot}}function Et(){return{vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0}}var Vt=34918,gr=34919,en=35007,Cr=function(F,X){if(!X.ext_disjoint_timer_query)return null;var re=[];function Re(){return re.pop()||X.ext_disjoint_timer_query.createQueryEXT()}function ze(et){re.push(et)}var Te=[];function Me(et){var ot=Re();X.ext_disjoint_timer_query.beginQueryEXT(en,ot),Te.push(ot),dt(Te.length-1,Te.length,et)}function it(){X.ext_disjoint_timer_query.endQueryEXT(en)}function at(){this.startQueryIndex=-1,this.endQueryIndex=-1,this.sum=0,this.stats=null}var st=[];function mt(){return st.pop()||new at}function Ft(et){st.push(et)}var Tt=[];function dt(et,ot,Ve){var $t=mt();$t.startQueryIndex=et,$t.endQueryIndex=ot,$t.sum=0,$t.stats=Ve,Tt.push($t)}var Je=[],be=[];function ke(){var et,ot,Ve=Te.length;if(Ve!==0){be.length=Math.max(be.length,Ve+1),Je.length=Math.max(Je.length,Ve+1),Je[0]=0,be[0]=0;var $t=0;for(et=0,ot=0;ot<Te.length;++ot){var ht=Te[ot];X.ext_disjoint_timer_query.getQueryObjectEXT(ht,gr)?($t+=X.ext_disjoint_timer_query.getQueryObjectEXT(ht,Vt),ze(ht)):Te[et++]=ht,Je[ot+1]=$t,be[ot+1]=et}for(Te.length=et,et=0,ot=0;ot<Tt.length;++ot){var Nt=Tt[ot],qe=Nt.startQueryIndex,Ue=Nt.endQueryIndex;Nt.sum+=Je[Ue]-Je[qe];var wt=be[qe],Ie=be[Ue];Ie===wt?(Nt.stats.gpuTime+=Nt.sum/1e6,Ft(Nt)):(Nt.startQueryIndex=wt,Nt.endQueryIndex=Ie,Tt[et++]=Nt)}Tt.length=et}}return{beginQuery:Me,endQuery:it,pushScopeStats:dt,update:ke,getNumPendingQueries:function(){return Te.length},clear:function(){re.push.apply(re,Te);for(var et=0;et<re.length;et++)X.ext_disjoint_timer_query.deleteQueryEXT(re[et]);Te.length=0,re.length=0},restore:function(){Te.length=0,re.length=0}}},ct=16384,Xt=256,Zt=1024,yr=34962,Vr="webglcontextlost",hn="webglcontextrestored",Pn=1,ei=2,hi=3;function Gn(F,X){for(var re=0;re<F.length;++re)if(F[re]===X)return re;return-1}function Si(F){var X=I(F);if(!X)return null;var re=X.gl,Re=re.getContextAttributes();re.isContextLost();var ze=j(re,X);if(!ze)return null;var Te=b(),Me=Et(),it=X.cachedCode||{},at=ze.extensions,st=Cr(re,at),mt=g(),Ft=re.drawingBufferWidth,Tt=re.drawingBufferHeight,dt={tick:0,time:0,viewportWidth:Ft,viewportHeight:Tt,framebufferWidth:Ft,framebufferHeight:Tt,drawingBufferWidth:Ft,drawingBufferHeight:Tt,pixelRatio:X.pixelRatio},Je={},be={elements:null,primitive:4,count:-1,offset:0,instances:-1},ke=zc(re,at),et=u0(re,Me,X,$t),ot=Vc(re,at,et,Me),Ve=v$(re,at,ke,Me,et,ot,be);function $t(nr){return Ve.destroyBuffer(nr)}var ht=K0(re,Te,Me,X),Nt=u$(re,at,ke,function(){wt.procs.poll()},dt,Me,X),qe=j0(re,at,ke,Me,X),Ue=Bp(re,at,ke,Nt,qe,Me),wt=Yt(re,Te,at,ke,et,ot,Nt,Ue,Je,Ve,ht,be,dt,st,it,X),Ie=Y0(re,Ue,wt.procs.poll,dt),gt=wt.next,lt=re.canvas,Lt=[],ur=[],St=[],Ht=[X.onDestroy],vt=null;function cr(){if(Lt.length===0){st&&st.update(),vt=null;return}vt=S.next(cr),Kn();for(var nr=Lt.length-1;nr>=0;--nr){var wr=Lt[nr];wr&&wr(dt,null,0)}re.flush(),st&&st.update()}function br(){!vt&&Lt.length>0&&(vt=S.next(cr))}function Er(){vt&&(S.cancel(cr),vt=null)}function Wn(nr){nr.preventDefault(),Er(),ur.forEach(function(wr){wr()})}function $r(nr){re.getError(),ze.restore(),ht.restore(),et.restore(),Nt.restore(),qe.restore(),Ue.restore(),Ve.restore(),st&&st.restore(),wt.procs.refresh(),br(),St.forEach(function(wr){wr()})}lt&&(lt.addEventListener(Vr,Wn,!1),lt.addEventListener(hn,$r,!1));function Gi(){Lt.length=0,Er(),lt&&(lt.removeEventListener(Vr,Wn),lt.removeEventListener(hn,$r)),ht.clear(),Ue.clear(),qe.clear(),Ve.clear(),Nt.clear(),ot.clear(),et.clear(),st&&st.clear(),Ht.forEach(function(nr){nr()})}function Kr(nr){function wr(_e){var xe=r({},_e);delete xe.uniforms,delete xe.attributes,delete xe.context,delete xe.vao,"stencil"in xe&&xe.stencil.op&&(xe.stencil.opBack=xe.stencil.opFront=xe.stencil.op,delete xe.stencil.op);function ye(me){if(me in xe){var te=xe[me];delete xe[me],Object.keys(te).forEach(function(se){xe[me+"."+se]=te[se]})}}return ye("blend"),ye("depth"),ye("cull"),ye("stencil"),ye("polygonOffset"),ye("scissor"),ye("sample"),"vao"in _e&&(xe.vao=_e.vao),xe}function Qr(_e,xe){var ye={},me={};return Object.keys(_e).forEach(function(te){var se=_e[te];if($.isDynamic(se)){me[te]=$.unbox(se,te);return}else if(xe&&Array.isArray(se)){for(var ee=0;ee<se.length;++ee)if($.isDynamic(se[ee])){me[te]=$.unbox(se,te);return}}ye[te]=se}),{dynamic:me,static:ye}}var Yn=Qr(nr.context||{},!0),Z=Qr(nr.uniforms||{},!0),Pe=Qr(nr.attributes||{},!1),Ce=Qr(wr(nr),!1),Mt={gpuTime:0,cpuTime:0,count:0},dr=wt.compile(Ce,Pe,Z,Yn,Mt),tn=dr.draw,Ot=dr.batch,K=dr.scope,Q=[];function ae(_e){for(;Q.length<_e;)Q.push(null);return Q}function Oe(_e,xe){var ye;if(typeof _e=="function")return K.call(this,null,_e,0);if(typeof xe=="function")if(typeof _e=="number")for(ye=0;ye<_e;++ye)K.call(this,null,xe,ye);else if(Array.isArray(_e))for(ye=0;ye<_e.length;++ye)K.call(this,_e[ye],xe,ye);else return K.call(this,_e,xe,0);else if(typeof _e=="number"){if(_e>0)return Ot.call(this,ae(_e|0),_e|0)}else if(Array.isArray(_e)){if(_e.length)return Ot.call(this,_e,_e.length)}else return tn.call(this,_e)}return r(Oe,{stats:Mt,destroy:function(){dr.destroy()}})}var vi=Ue.setFBO=Kr({framebuffer:$.define.call(null,Pn,"framebuffer")});function Wi(nr,wr){var Qr=0;wt.procs.poll();var Yn=wr.color;Yn&&(re.clearColor(+Yn[0]||0,+Yn[1]||0,+Yn[2]||0,+Yn[3]||0),Qr|=ct),"depth"in wr&&(re.clearDepth(+wr.depth),Qr|=Xt),"stencil"in wr&&(re.clearStencil(wr.stencil|0),Qr|=Zt),re.clear(Qr)}function Ei(nr){if("framebuffer"in nr)if(nr.framebuffer&&nr.framebuffer_reglType==="framebufferCube")for(var wr=0;wr<6;++wr)vi(r({framebuffer:nr.framebuffer.faces[wr]},nr),Wi);else vi(nr,Wi);else Wi(null,nr)}function io(nr){Lt.push(nr);function wr(){var Qr=Gn(Lt,nr);function Yn(){var Z=Gn(Lt,Yn);Lt[Z]=Lt[Lt.length-1],Lt.length-=1,Lt.length<=0&&Er()}Lt[Qr]=Yn}return br(),{cancel:wr}}function Vn(){var nr=gt.viewport,wr=gt.scissor_box;nr[0]=nr[1]=wr[0]=wr[1]=0,dt.viewportWidth=dt.framebufferWidth=dt.drawingBufferWidth=nr[2]=wr[2]=re.drawingBufferWidth,dt.viewportHeight=dt.framebufferHeight=dt.drawingBufferHeight=nr[3]=wr[3]=re.drawingBufferHeight}function Kn(){dt.tick+=1,dt.time=da(),Vn(),wt.procs.poll()}function Jt(){Nt.refresh(),Vn(),wt.procs.refresh(),st&&st.update()}function da(){return(g()-mt)/1e3}Jt();function jr(nr,wr){var Qr;switch(nr){case"frame":return io(wr);case"lost":Qr=ur;break;case"restore":Qr=St;break;case"destroy":Qr=Ht;break}return Qr.push(wr),{cancel:function(){for(var Yn=0;Yn<Qr.length;++Yn)if(Qr[Yn]===wr){Qr[Yn]=Qr[Qr.length-1],Qr.pop();return}}}}function qn(){return it}function ki(nr){Object.entries(nr).forEach(function(wr){it[wr[0]]=wr[1]})}var Fi=r(Kr,{clear:Ei,prop:$.define.bind(null,Pn),context:$.define.bind(null,ei),this:$.define.bind(null,hi),draw:Kr({}),buffer:function(nr){return et.create(nr,yr,!1,!1)},elements:function(nr){return ot.create(nr,!1)},texture:Nt.create2D,cube:Nt.createCube,renderbuffer:qe.create,framebuffer:Ue.create,framebufferCube:Ue.createCube,vao:Ve.createVAO,attributes:Re,frame:io,on:jr,limits:ke,hasExtension:function(nr){return ke.extensions.indexOf(nr.toLowerCase())>=0},read:Ie,destroy:Gi,_gl:re,_refresh:Jt,poll:function(){Kn(),st&&st.update()},now:da,stats:Me,getCachedCode:qn,preloadCachedCode:ki});return X.onDone(null,Fi),Fi}return Si})})(GJ);var q_e=GJ.exports,Y_e=eu,X_e=function(t){if(t?typeof t=="string"&&(t={container:t}):t={},iB(t)?t={container:t}:Q_e(t)?t={container:t}:Z_e(t)?t={gl:t}:t=Y_e(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=ir.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}iB(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=aB(),t.container.appendChild(t.canvas),nB(t))}else if(!t.canvas)if(typeof document<"u")t.container=document.body||document.documentElement,t.canvas=aB(),t.container.appendChild(t.canvas),nB(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 nB(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*ir.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*ir.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 iB(e){return typeof e.getContext=="function"&&"width"in e&&"height"in e}function Q_e(e){return typeof e.nodeName=="string"&&typeof e.appendChild=="function"&&typeof e.getBoundingClientRect=="function"}function Z_e(e){return typeof e.drawArrays=="function"||typeof e.drawElements=="function"}function aB(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}var J_e=HJ,e4e=[32,126],t4e=r4e;function r4e(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||e4e;if(n&&typeof n!="string"&&(n=J_e(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],u=0;l<=a[1];l++)o[u++]=String.fromCharCode(l);a=o}t=t.slice(),r.width=t[0],r.height=t[1];var c=r.getContext("2d");c.fillStyle="#000",c.fillRect(0,0,r.width,r.height),c.font=n,c.textAlign="center",c.textBaseline="middle",c.fillStyle="#fff";for(var d=i[0]/2,h=i[1]/2,l=0;l<a.length;l++)c.fillText(a[l],d,h),(d+=i[0])>t[0]-i[0]/2&&(d=i[0]/2,h+=i[1]);return r}var Tr={},wn={},MO=32;wn.INT_BITS=MO;wn.INT_MAX=2147483647;wn.INT_MIN=-1<<MO-1;wn.sign=function(e){return(e>0)-(e<0)};wn.abs=function(e){var t=e>>MO-1;return(e^t)-t};wn.min=function(e,t){return t^(e^t)&-(e<t)};wn.max=function(e,t){return e^(e^t)&-(e<t)};wn.isPow2=function(e){return!(e&e-1)&&!!e};wn.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};wn.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};wn.popCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24};function WJ(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}wn.countTrailingZeros=WJ;wn.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};wn.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)};wn.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var lv=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}})(lv);wn.reverse=function(e){return lv[e&255]<<24|lv[e>>>8&255]<<16|lv[e>>>16&255]<<8|lv[e>>>24&255]};wn.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};wn.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};wn.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};wn.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};wn.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>WJ(e)+1};function VJ(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]=VJ(e,t,r+1);return i}function n4e(e,t){var r,n;for(r=new Array(e),n=0;n<e;++n)r[n]=t;return r}function i4e(e,t){switch(typeof t>"u"&&(t=0),typeof e){case"number":if(e>0)return n4e(e|0,t);break;case"object":if(typeof e.length=="number")return VJ(e,t,0);break}return[]}var a4e=i4e,KJ={},M2={};M2.byteLength=s4e;M2.toByteArray=c4e;M2.fromByteArray=p4e;var Oo=[],Fa=[],o4e=typeof Uint8Array<"u"?Uint8Array:Array,Qw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Nf=0,l4e=Qw.length;Nf<l4e;++Nf)Oo[Nf]=Qw[Nf],Fa[Qw.charCodeAt(Nf)]=Nf;Fa["-".charCodeAt(0)]=62;Fa["_".charCodeAt(0)]=63;function qJ(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 s4e(e){var t=qJ(e),r=t[0],n=t[1];return(r+n)*3/4-n}function u4e(e,t,r){return(t+r)*3/4-r}function c4e(e){var t,r=qJ(e),n=r[0],i=r[1],a=new o4e(u4e(e,n,i)),o=0,l=i>0?n-4:n,u;for(u=0;u<l;u+=4)t=Fa[e.charCodeAt(u)]<<18|Fa[e.charCodeAt(u+1)]<<12|Fa[e.charCodeAt(u+2)]<<6|Fa[e.charCodeAt(u+3)],a[o++]=t>>16&255,a[o++]=t>>8&255,a[o++]=t&255;return i===2&&(t=Fa[e.charCodeAt(u)]<<2|Fa[e.charCodeAt(u+1)]>>4,a[o++]=t&255),i===1&&(t=Fa[e.charCodeAt(u)]<<10|Fa[e.charCodeAt(u+1)]<<4|Fa[e.charCodeAt(u+2)]>>2,a[o++]=t>>8&255,a[o++]=t&255),a}function f4e(e){return Oo[e>>18&63]+Oo[e>>12&63]+Oo[e>>6&63]+Oo[e&63]}function d4e(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(f4e(n));return i.join("")}function p4e(e){for(var t,r=e.length,n=r%3,i=[],a=16383,o=0,l=r-n;o<l;o+=a)i.push(d4e(e,o,o+a>l?l:o+a));return n===1?(t=e[r-1],i.push(Oo[t>>2]+Oo[t<<4&63]+"==")):n===2&&(t=(e[r-2]<<8)+e[r-1],i.push(Oo[t>>10]+Oo[t>>4&63]+Oo[t<<2&63]+"=")),i.join("")}var OO={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */OO.read=function(e,t,r,n,i){var a,o,l=i*8-n-1,u=(1<<l)-1,c=u>>1,d=-7,h=r?i-1:0,p=r?-1:1,v=e[t+h];for(h+=p,a=v&(1<<-d)-1,v>>=-d,d+=l;d>0;a=a*256+e[t+h],h+=p,d-=8);for(o=a&(1<<-d)-1,a>>=-d,d+=n;d>0;o=o*256+e[t+h],h+=p,d-=8);if(a===0)a=1-c;else{if(a===u)return o?NaN:(v?-1:1)*(1/0);o=o+Math.pow(2,n),a=a-c}return(v?-1:1)*o*Math.pow(2,a-n)};OO.write=function(e,t,r,n,i,a){var o,l,u,c=a*8-i-1,d=(1<<c)-1,h=d>>1,p=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=n?0:a-1,$=n?1:-1,S=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*(u=Math.pow(2,-o))<1&&(o--,u*=2),o+h>=1?t+=p/u:t+=p*Math.pow(2,1-h),t*u>=2&&(o++,u/=2),o+h>=d?(l=0,o=d):o+h>=1?(l=(t*u-1)*Math.pow(2,i),o=o+h):(l=t*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;e[r+v]=l&255,v+=$,l/=256,i-=8);for(o=o<<i|l,c+=i;c>0;e[r+v]=o&255,v+=$,o/=256,c-=8);e[r+v-$]|=S*128};/*!
1097
+ * The buffer module from node.js, for the browser.
1098
+ *
1099
+ * @author Feross Aboukhadijeh <https://feross.org>
1100
+ * @license MIT
1101
+ */(function(e){var t=M2,r=OO;e.Buffer=o,e.SlowBuffer=g,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 T=new Uint8Array(R);return T.__proto__=o.prototype,T}function o(R,T,O){if(typeof R=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(R)}return l(R,T,O)}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,T,O){if(typeof R=="string")return h(R,T);if(ArrayBuffer.isView(R))return p(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 v(R,T,O);if(typeof R=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var H=R.valueOf&&R.valueOf();if(H!=null&&H!==R)return o.from(H,T,O);var ge=$(R);if(ge)return ge;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof R[Symbol.toPrimitive]=="function")return o.from(R[Symbol.toPrimitive]("string"),T,O);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,T,O){return l(R,T,O)},o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array;function u(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 c(R,T,O){return u(R),R<=0?a(R):T!==void 0?typeof O=="string"?a(R).fill(T,O):a(R).fill(T):a(R)}o.alloc=function(R,T,O){return c(R,T,O)};function d(R){return u(R),a(R<0?0:S(R)|0)}o.allocUnsafe=function(R){return d(R)},o.allocUnsafeSlow=function(R){return d(R)};function h(R,T){if((typeof T!="string"||T==="")&&(T="utf8"),!o.isEncoding(T))throw new TypeError("Unknown encoding: "+T);var O=b(R,T)|0,H=a(O),ge=H.write(R,T);return ge!==O&&(H=H.slice(0,ge)),H}function p(R){for(var T=R.length<0?0:S(R.length)|0,O=a(T),H=0;H<T;H+=1)O[H]=R[H]&255;return O}function v(R,T,O){if(T<0||R.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if(R.byteLength<T+(O||0))throw new RangeError('"length" is outside of buffer bounds');var H;return T===void 0&&O===void 0?H=new Uint8Array(R):O===void 0?H=new Uint8Array(R,T):H=new Uint8Array(R,T,O),H.__proto__=o.prototype,H}function $(R){if(o.isBuffer(R)){var T=S(R.length)|0,O=a(T);return O.length===0||R.copy(O,0,0,T),O}if(R.length!==void 0)return typeof R.length!="number"||le(R.length)?a(0):p(R);if(R.type==="Buffer"&&Array.isArray(R.data))return p(R.data)}function S(R){if(R>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return R|0}function g(R){return+R!=R&&(R=0),o.alloc(+R)}o.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==o.prototype},o.compare=function(T,O){if(W(T,Uint8Array)&&(T=o.from(T,T.offset,T.byteLength)),W(O,Uint8Array)&&(O=o.from(O,O.offset,O.byteLength)),!o.isBuffer(T)||!o.isBuffer(O))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===O)return 0;for(var H=T.length,ge=O.length,He=0,Xe=Math.min(H,ge);He<Xe;++He)if(T[He]!==O[He]){H=T[He],ge=O[He];break}return H<ge?-1:ge<H?1:0},o.isEncoding=function(T){switch(String(T).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(T,O){if(!Array.isArray(T))throw new TypeError('"list" argument must be an Array of Buffers');if(T.length===0)return o.alloc(0);var H;if(O===void 0)for(O=0,H=0;H<T.length;++H)O+=T[H].length;var ge=o.allocUnsafe(O),He=0;for(H=0;H<T.length;++H){var Xe=T[H];if(W(Xe,Uint8Array)&&(Xe=o.from(Xe)),!o.isBuffer(Xe))throw new TypeError('"list" argument must be an Array of Buffers');Xe.copy(ge,He),He+=Xe.length}return ge};function b(R,T){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 O=R.length,H=arguments.length>2&&arguments[2]===!0;if(!H&&O===0)return 0;for(var ge=!1;;)switch(T){case"ascii":case"latin1":case"binary":return O;case"utf8":case"utf-8":return qt(R).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O*2;case"hex":return O>>>1;case"base64":return Wt(R).length;default:if(ge)return H?-1:qt(R).length;T=(""+T).toLowerCase(),ge=!0}}o.byteLength=b;function _(R,T,O){var H=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((O===void 0||O>this.length)&&(O=this.length),O<=0)||(O>>>=0,T>>>=0,O<=T))return"";for(R||(R="utf8");;)switch(R){case"hex":return $e(this,T,O);case"utf8":case"utf-8":return ne(this,T,O);case"ascii":return We(this,T,O);case"latin1":case"binary":return Ae(this,T,O);case"base64":return fe(this,T,O);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rt(this,T,O);default:if(H)throw new TypeError("Unknown encoding: "+R);R=(R+"").toLowerCase(),H=!0}}o.prototype._isBuffer=!0;function E(R,T,O){var H=R[T];R[T]=R[O],R[O]=H}o.prototype.swap16=function(){var T=this.length;if(T%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var O=0;O<T;O+=2)E(this,O,O+1);return this},o.prototype.swap32=function(){var T=this.length;if(T%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var O=0;O<T;O+=4)E(this,O,O+3),E(this,O+1,O+2);return this},o.prototype.swap64=function(){var T=this.length;if(T%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var O=0;O<T;O+=8)E(this,O,O+7),E(this,O+1,O+6),E(this,O+2,O+5),E(this,O+3,O+4);return this},o.prototype.toString=function(){var T=this.length;return T===0?"":arguments.length===0?ne(this,0,T):_.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(T){if(!o.isBuffer(T))throw new TypeError("Argument must be a Buffer");return this===T?!0:o.compare(this,T)===0},o.prototype.inspect=function(){var T="",O=e.INSPECT_MAX_BYTES;return T=this.toString("hex",0,O).replace(/(.{2})/g,"$1 ").trim(),this.length>O&&(T+=" ... "),"<Buffer "+T+">"},o.prototype.compare=function(T,O,H,ge,He){if(W(T,Uint8Array)&&(T=o.from(T,T.offset,T.byteLength)),!o.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(O===void 0&&(O=0),H===void 0&&(H=T?T.length:0),ge===void 0&&(ge=0),He===void 0&&(He=this.length),O<0||H>T.length||ge<0||He>this.length)throw new RangeError("out of range index");if(ge>=He&&O>=H)return 0;if(ge>=He)return-1;if(O>=H)return 1;if(O>>>=0,H>>>=0,ge>>>=0,He>>>=0,this===T)return 0;for(var Xe=He-ge,er=H-O,xr=Math.min(Xe,er),pr=this.slice(ge,He),Tn=T.slice(O,H),Jr=0;Jr<xr;++Jr)if(pr[Jr]!==Tn[Jr]){Xe=pr[Jr],er=Tn[Jr];break}return Xe<er?-1:er<Xe?1:0};function A(R,T,O,H,ge){if(R.length===0)return-1;if(typeof O=="string"?(H=O,O=0):O>2147483647?O=2147483647:O<-2147483648&&(O=-2147483648),O=+O,le(O)&&(O=ge?0:R.length-1),O<0&&(O=R.length+O),O>=R.length){if(ge)return-1;O=R.length-1}else if(O<0)if(ge)O=0;else return-1;if(typeof T=="string"&&(T=o.from(T,H)),o.isBuffer(T))return T.length===0?-1:M(R,T,O,H,ge);if(typeof T=="number")return T=T&255,typeof Uint8Array.prototype.indexOf=="function"?ge?Uint8Array.prototype.indexOf.call(R,T,O):Uint8Array.prototype.lastIndexOf.call(R,T,O):M(R,[T],O,H,ge);throw new TypeError("val must be string, number or Buffer")}function M(R,T,O,H,ge){var He=1,Xe=R.length,er=T.length;if(H!==void 0&&(H=String(H).toLowerCase(),H==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(R.length<2||T.length<2)return-1;He=2,Xe/=2,er/=2,O/=2}function xr(ru,Vo){return He===1?ru[Vo]:ru.readUInt16BE(Vo*He)}var pr;if(ge){var Tn=-1;for(pr=O;pr<Xe;pr++)if(xr(R,pr)===xr(T,Tn===-1?0:pr-Tn)){if(Tn===-1&&(Tn=pr),pr-Tn+1===er)return Tn*He}else Tn!==-1&&(pr-=pr-Tn),Tn=-1}else for(O+er>Xe&&(O=Xe-er),pr=O;pr>=0;pr--){for(var Jr=!0,bo=0;bo<er;bo++)if(xr(R,pr+bo)!==xr(T,bo)){Jr=!1;break}if(Jr)return pr}return-1}o.prototype.includes=function(T,O,H){return this.indexOf(T,O,H)!==-1},o.prototype.indexOf=function(T,O,H){return A(this,T,O,H,!0)},o.prototype.lastIndexOf=function(T,O,H){return A(this,T,O,H,!1)};function N(R,T,O,H){O=Number(O)||0;var ge=R.length-O;H?(H=Number(H),H>ge&&(H=ge)):H=ge;var He=T.length;H>He/2&&(H=He/2);for(var Xe=0;Xe<H;++Xe){var er=parseInt(T.substr(Xe*2,2),16);if(le(er))return Xe;R[O+Xe]=er}return Xe}function U(R,T,O,H){return we(qt(T,R.length-O),R,O,H)}function I(R,T,O,H){return we(nt(T),R,O,H)}function j(R,T,O,H){return I(R,T,O,H)}function he(R,T,O,H){return we(Wt(T),R,O,H)}function q(R,T,O,H){return we(At(T,R.length-O),R,O,H)}o.prototype.write=function(T,O,H,ge){if(O===void 0)ge="utf8",H=this.length,O=0;else if(H===void 0&&typeof O=="string")ge=O,H=this.length,O=0;else if(isFinite(O))O=O>>>0,isFinite(H)?(H=H>>>0,ge===void 0&&(ge="utf8")):(ge=H,H=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var He=this.length-O;if((H===void 0||H>He)&&(H=He),T.length>0&&(H<0||O<0)||O>this.length)throw new RangeError("Attempt to write outside buffer bounds");ge||(ge="utf8");for(var Xe=!1;;)switch(ge){case"hex":return N(this,T,O,H);case"utf8":case"utf-8":return U(this,T,O,H);case"ascii":return I(this,T,O,H);case"latin1":case"binary":return j(this,T,O,H);case"base64":return he(this,T,O,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,T,O,H);default:if(Xe)throw new TypeError("Unknown encoding: "+ge);ge=(""+ge).toLowerCase(),Xe=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(R,T,O){return T===0&&O===R.length?t.fromByteArray(R):t.fromByteArray(R.slice(T,O))}function ne(R,T,O){O=Math.min(R.length,O);for(var H=[],ge=T;ge<O;){var He=R[ge],Xe=null,er=He>239?4:He>223?3:He>191?2:1;if(ge+er<=O){var xr,pr,Tn,Jr;switch(er){case 1:He<128&&(Xe=He);break;case 2:xr=R[ge+1],(xr&192)===128&&(Jr=(He&31)<<6|xr&63,Jr>127&&(Xe=Jr));break;case 3:xr=R[ge+1],pr=R[ge+2],(xr&192)===128&&(pr&192)===128&&(Jr=(He&15)<<12|(xr&63)<<6|pr&63,Jr>2047&&(Jr<55296||Jr>57343)&&(Xe=Jr));break;case 4:xr=R[ge+1],pr=R[ge+2],Tn=R[ge+3],(xr&192)===128&&(pr&192)===128&&(Tn&192)===128&&(Jr=(He&15)<<18|(xr&63)<<12|(pr&63)<<6|Tn&63,Jr>65535&&Jr<1114112&&(Xe=Jr))}}Xe===null?(Xe=65533,er=1):Xe>65535&&(Xe-=65536,H.push(Xe>>>10&1023|55296),Xe=56320|Xe&1023),H.push(Xe),ge+=er}return De(H)}var ce=4096;function De(R){var T=R.length;if(T<=ce)return String.fromCharCode.apply(String,R);for(var O="",H=0;H<T;)O+=String.fromCharCode.apply(String,R.slice(H,H+=ce));return O}function We(R,T,O){var H="";O=Math.min(R.length,O);for(var ge=T;ge<O;++ge)H+=String.fromCharCode(R[ge]&127);return H}function Ae(R,T,O){var H="";O=Math.min(R.length,O);for(var ge=T;ge<O;++ge)H+=String.fromCharCode(R[ge]);return H}function $e(R,T,O){var H=R.length;(!T||T<0)&&(T=0),(!O||O<0||O>H)&&(O=H);for(var ge="",He=T;He<O;++He)ge+=Gt(R[He]);return ge}function rt(R,T,O){for(var H=R.slice(T,O),ge="",He=0;He<H.length;He+=2)ge+=String.fromCharCode(H[He]+H[He+1]*256);return ge}o.prototype.slice=function(T,O){var H=this.length;T=~~T,O=O===void 0?H:~~O,T<0?(T+=H,T<0&&(T=0)):T>H&&(T=H),O<0?(O+=H,O<0&&(O=0)):O>H&&(O=H),O<T&&(O=T);var ge=this.subarray(T,O);return ge.__proto__=o.prototype,ge};function Be(R,T,O){if(R%1!==0||R<0)throw new RangeError("offset is not uint");if(R+T>O)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUIntLE=function(T,O,H){T=T>>>0,O=O>>>0,H||Be(T,O,this.length);for(var ge=this[T],He=1,Xe=0;++Xe<O&&(He*=256);)ge+=this[T+Xe]*He;return ge},o.prototype.readUIntBE=function(T,O,H){T=T>>>0,O=O>>>0,H||Be(T,O,this.length);for(var ge=this[T+--O],He=1;O>0&&(He*=256);)ge+=this[T+--O]*He;return ge},o.prototype.readUInt8=function(T,O){return T=T>>>0,O||Be(T,1,this.length),this[T]},o.prototype.readUInt16LE=function(T,O){return T=T>>>0,O||Be(T,2,this.length),this[T]|this[T+1]<<8},o.prototype.readUInt16BE=function(T,O){return T=T>>>0,O||Be(T,2,this.length),this[T]<<8|this[T+1]},o.prototype.readUInt32LE=function(T,O){return T=T>>>0,O||Be(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+this[T+3]*16777216},o.prototype.readUInt32BE=function(T,O){return T=T>>>0,O||Be(T,4,this.length),this[T]*16777216+(this[T+1]<<16|this[T+2]<<8|this[T+3])},o.prototype.readIntLE=function(T,O,H){T=T>>>0,O=O>>>0,H||Be(T,O,this.length);for(var ge=this[T],He=1,Xe=0;++Xe<O&&(He*=256);)ge+=this[T+Xe]*He;return He*=128,ge>=He&&(ge-=Math.pow(2,8*O)),ge},o.prototype.readIntBE=function(T,O,H){T=T>>>0,O=O>>>0,H||Be(T,O,this.length);for(var ge=O,He=1,Xe=this[T+--ge];ge>0&&(He*=256);)Xe+=this[T+--ge]*He;return He*=128,Xe>=He&&(Xe-=Math.pow(2,8*O)),Xe},o.prototype.readInt8=function(T,O){return T=T>>>0,O||Be(T,1,this.length),this[T]&128?(255-this[T]+1)*-1:this[T]},o.prototype.readInt16LE=function(T,O){T=T>>>0,O||Be(T,2,this.length);var H=this[T]|this[T+1]<<8;return H&32768?H|4294901760:H},o.prototype.readInt16BE=function(T,O){T=T>>>0,O||Be(T,2,this.length);var H=this[T+1]|this[T]<<8;return H&32768?H|4294901760:H},o.prototype.readInt32LE=function(T,O){return T=T>>>0,O||Be(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},o.prototype.readInt32BE=function(T,O){return T=T>>>0,O||Be(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},o.prototype.readFloatLE=function(T,O){return T=T>>>0,O||Be(T,4,this.length),r.read(this,T,!0,23,4)},o.prototype.readFloatBE=function(T,O){return T=T>>>0,O||Be(T,4,this.length),r.read(this,T,!1,23,4)},o.prototype.readDoubleLE=function(T,O){return T=T>>>0,O||Be(T,8,this.length),r.read(this,T,!0,52,8)},o.prototype.readDoubleBE=function(T,O){return T=T>>>0,O||Be(T,8,this.length),r.read(this,T,!1,52,8)};function Ee(R,T,O,H,ge,He){if(!o.isBuffer(R))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>ge||T<He)throw new RangeError('"value" argument is out of bounds');if(O+H>R.length)throw new RangeError("Index out of range")}o.prototype.writeUIntLE=function(T,O,H,ge){if(T=+T,O=O>>>0,H=H>>>0,!ge){var He=Math.pow(2,8*H)-1;Ee(this,T,O,H,He,0)}var Xe=1,er=0;for(this[O]=T&255;++er<H&&(Xe*=256);)this[O+er]=T/Xe&255;return O+H},o.prototype.writeUIntBE=function(T,O,H,ge){if(T=+T,O=O>>>0,H=H>>>0,!ge){var He=Math.pow(2,8*H)-1;Ee(this,T,O,H,He,0)}var Xe=H-1,er=1;for(this[O+Xe]=T&255;--Xe>=0&&(er*=256);)this[O+Xe]=T/er&255;return O+H},o.prototype.writeUInt8=function(T,O,H){return T=+T,O=O>>>0,H||Ee(this,T,O,1,255,0),this[O]=T&255,O+1},o.prototype.writeUInt16LE=function(T,O,H){return T=+T,O=O>>>0,H||Ee(this,T,O,2,65535,0),this[O]=T&255,this[O+1]=T>>>8,O+2},o.prototype.writeUInt16BE=function(T,O,H){return T=+T,O=O>>>0,H||Ee(this,T,O,2,65535,0),this[O]=T>>>8,this[O+1]=T&255,O+2},o.prototype.writeUInt32LE=function(T,O,H){return T=+T,O=O>>>0,H||Ee(this,T,O,4,4294967295,0),this[O+3]=T>>>24,this[O+2]=T>>>16,this[O+1]=T>>>8,this[O]=T&255,O+4},o.prototype.writeUInt32BE=function(T,O,H){return T=+T,O=O>>>0,H||Ee(this,T,O,4,4294967295,0),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4},o.prototype.writeIntLE=function(T,O,H,ge){if(T=+T,O=O>>>0,!ge){var He=Math.pow(2,8*H-1);Ee(this,T,O,H,He-1,-He)}var Xe=0,er=1,xr=0;for(this[O]=T&255;++Xe<H&&(er*=256);)T<0&&xr===0&&this[O+Xe-1]!==0&&(xr=1),this[O+Xe]=(T/er>>0)-xr&255;return O+H},o.prototype.writeIntBE=function(T,O,H,ge){if(T=+T,O=O>>>0,!ge){var He=Math.pow(2,8*H-1);Ee(this,T,O,H,He-1,-He)}var Xe=H-1,er=1,xr=0;for(this[O+Xe]=T&255;--Xe>=0&&(er*=256);)T<0&&xr===0&&this[O+Xe+1]!==0&&(xr=1),this[O+Xe]=(T/er>>0)-xr&255;return O+H},o.prototype.writeInt8=function(T,O,H){return T=+T,O=O>>>0,H||Ee(this,T,O,1,127,-128),T<0&&(T=255+T+1),this[O]=T&255,O+1},o.prototype.writeInt16LE=function(T,O,H){return T=+T,O=O>>>0,H||Ee(this,T,O,2,32767,-32768),this[O]=T&255,this[O+1]=T>>>8,O+2},o.prototype.writeInt16BE=function(T,O,H){return T=+T,O=O>>>0,H||Ee(this,T,O,2,32767,-32768),this[O]=T>>>8,this[O+1]=T&255,O+2},o.prototype.writeInt32LE=function(T,O,H){return T=+T,O=O>>>0,H||Ee(this,T,O,4,2147483647,-2147483648),this[O]=T&255,this[O+1]=T>>>8,this[O+2]=T>>>16,this[O+3]=T>>>24,O+4},o.prototype.writeInt32BE=function(T,O,H){return T=+T,O=O>>>0,H||Ee(this,T,O,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[O]=T>>>24,this[O+1]=T>>>16,this[O+2]=T>>>8,this[O+3]=T&255,O+4};function Ke(R,T,O,H,ge,He){if(O+H>R.length)throw new RangeError("Index out of range");if(O<0)throw new RangeError("Index out of range")}function Ge(R,T,O,H,ge){return T=+T,O=O>>>0,ge||Ke(R,T,O,4),r.write(R,T,O,H,23,4),O+4}o.prototype.writeFloatLE=function(T,O,H){return Ge(this,T,O,!0,H)},o.prototype.writeFloatBE=function(T,O,H){return Ge(this,T,O,!1,H)};function Fe(R,T,O,H,ge){return T=+T,O=O>>>0,ge||Ke(R,T,O,8),r.write(R,T,O,H,52,8),O+8}o.prototype.writeDoubleLE=function(T,O,H){return Fe(this,T,O,!0,H)},o.prototype.writeDoubleBE=function(T,O,H){return Fe(this,T,O,!1,H)},o.prototype.copy=function(T,O,H,ge){if(!o.isBuffer(T))throw new TypeError("argument should be a Buffer");if(H||(H=0),!ge&&ge!==0&&(ge=this.length),O>=T.length&&(O=T.length),O||(O=0),ge>0&&ge<H&&(ge=H),ge===H||T.length===0||this.length===0)return 0;if(O<0)throw new RangeError("targetStart out of bounds");if(H<0||H>=this.length)throw new RangeError("Index out of range");if(ge<0)throw new RangeError("sourceEnd out of bounds");ge>this.length&&(ge=this.length),T.length-O<ge-H&&(ge=T.length-O+H);var He=ge-H;if(this===T&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(O,H,ge);else if(this===T&&H<O&&O<ge)for(var Xe=He-1;Xe>=0;--Xe)T[Xe+O]=this[Xe+H];else Uint8Array.prototype.set.call(T,this.subarray(H,ge),O);return He},o.prototype.fill=function(T,O,H,ge){if(typeof T=="string"){if(typeof O=="string"?(ge=O,O=0,H=this.length):typeof H=="string"&&(ge=H,H=this.length),ge!==void 0&&typeof ge!="string")throw new TypeError("encoding must be a string");if(typeof ge=="string"&&!o.isEncoding(ge))throw new TypeError("Unknown encoding: "+ge);if(T.length===1){var He=T.charCodeAt(0);(ge==="utf8"&&He<128||ge==="latin1")&&(T=He)}}else typeof T=="number"&&(T=T&255);if(O<0||this.length<O||this.length<H)throw new RangeError("Out of range index");if(H<=O)return this;O=O>>>0,H=H===void 0?this.length:H>>>0,T||(T=0);var Xe;if(typeof T=="number")for(Xe=O;Xe<H;++Xe)this[Xe]=T;else{var er=o.isBuffer(T)?T:o.from(T,ge),xr=er.length;if(xr===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(Xe=0;Xe<H-O;++Xe)this[Xe+O]=er[Xe%xr]}return this};var ft=/[^+/0-9A-Za-z-_]/g;function bt(R){if(R=R.split("=")[0],R=R.trim().replace(ft,""),R.length<2)return"";for(;R.length%4!==0;)R=R+"=";return R}function Gt(R){return R<16?"0"+R.toString(16):R.toString(16)}function qt(R,T){T=T||1/0;for(var O,H=R.length,ge=null,He=[],Xe=0;Xe<H;++Xe){if(O=R.charCodeAt(Xe),O>55295&&O<57344){if(!ge){if(O>56319){(T-=3)>-1&&He.push(239,191,189);continue}else if(Xe+1===H){(T-=3)>-1&&He.push(239,191,189);continue}ge=O;continue}if(O<56320){(T-=3)>-1&&He.push(239,191,189),ge=O;continue}O=(ge-55296<<10|O-56320)+65536}else ge&&(T-=3)>-1&&He.push(239,191,189);if(ge=null,O<128){if((T-=1)<0)break;He.push(O)}else if(O<2048){if((T-=2)<0)break;He.push(O>>6|192,O&63|128)}else if(O<65536){if((T-=3)<0)break;He.push(O>>12|224,O>>6&63|128,O&63|128)}else if(O<1114112){if((T-=4)<0)break;He.push(O>>18|240,O>>12&63|128,O>>6&63|128,O&63|128)}else throw new Error("Invalid code point")}return He}function nt(R){for(var T=[],O=0;O<R.length;++O)T.push(R.charCodeAt(O)&255);return T}function At(R,T){for(var O,H,ge,He=[],Xe=0;Xe<R.length&&!((T-=2)<0);++Xe)O=R.charCodeAt(Xe),H=O>>8,ge=O%256,He.push(ge),He.push(H);return He}function Wt(R){return t.toByteArray(bt(R))}function we(R,T,O,H){for(var ge=0;ge<H&&!(ge+O>=T.length||ge>=R.length);++ge)T[ge+O]=R[ge];return ge}function W(R,T){return R instanceof T||R!=null&&R.constructor!=null&&R.constructor.name!=null&&R.constructor.name===T.name}function le(R){return R!==R}})(KJ);var Ws=wn,gi=a4e,YJ=KJ.Buffer;ir.__TYPEDARRAY_POOL||(ir.__TYPEDARRAY_POOL={UINT8:gi([32,0]),UINT16:gi([32,0]),UINT32:gi([32,0]),BIGUINT64:gi([32,0]),INT8:gi([32,0]),INT16:gi([32,0]),INT32:gi([32,0]),BIGINT64:gi([32,0]),FLOAT:gi([32,0]),DOUBLE:gi([32,0]),DATA:gi([32,0]),UINT8C:gi([32,0]),BUFFER:gi([32,0])});var h4e=typeof Uint8ClampedArray<"u",v4e=typeof BigUint64Array<"u",m4e=typeof BigInt64Array<"u",Mn=ir.__TYPEDARRAY_POOL;Mn.UINT8C||(Mn.UINT8C=gi([32,0]));Mn.BIGUINT64||(Mn.BIGUINT64=gi([32,0]));Mn.BIGINT64||(Mn.BIGINT64=gi([32,0]));Mn.BUFFER||(Mn.BUFFER=gi([32,0]));var O2=Mn.DATA,R2=Mn.BUFFER;Tr.free=function(t){if(YJ.isBuffer(t))R2[Ws.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=Ws.log2(r)|0;O2[n].push(t)}};function XJ(e){if(e){var t=e.length||e.byteLength,r=Ws.log2(t);O2[r].push(e)}}function g4e(e){XJ(e.buffer)}Tr.freeUint8=Tr.freeUint16=Tr.freeUint32=Tr.freeBigUint64=Tr.freeInt8=Tr.freeInt16=Tr.freeInt32=Tr.freeBigInt64=Tr.freeFloat32=Tr.freeFloat=Tr.freeFloat64=Tr.freeDouble=Tr.freeUint8Clamped=Tr.freeDataView=g4e;Tr.freeArrayBuffer=XJ;Tr.freeBuffer=function(t){R2[Ws.log2(t.length)].push(t)};Tr.malloc=function(t,r){if(r===void 0||r==="arraybuffer")return na(t);switch(r){case"uint8":return RO(t);case"uint16":return QJ(t);case"uint32":return ZJ(t);case"int8":return JJ(t);case"int16":return eee(t);case"int32":return tee(t);case"float":case"float32":return ree(t);case"double":case"float64":return nee(t);case"uint8_clamped":return iee(t);case"bigint64":return oee(t);case"biguint64":return aee(t);case"buffer":return see(t);case"data":case"dataview":return lee(t);default:return null}return null};function na(t){var t=Ws.nextPow2(t),r=Ws.log2(t),n=O2[r];return n.length>0?n.pop():new ArrayBuffer(t)}Tr.mallocArrayBuffer=na;function RO(e){return new Uint8Array(na(e),0,e)}Tr.mallocUint8=RO;function QJ(e){return new Uint16Array(na(2*e),0,e)}Tr.mallocUint16=QJ;function ZJ(e){return new Uint32Array(na(4*e),0,e)}Tr.mallocUint32=ZJ;function JJ(e){return new Int8Array(na(e),0,e)}Tr.mallocInt8=JJ;function eee(e){return new Int16Array(na(2*e),0,e)}Tr.mallocInt16=eee;function tee(e){return new Int32Array(na(4*e),0,e)}Tr.mallocInt32=tee;function ree(e){return new Float32Array(na(4*e),0,e)}Tr.mallocFloat32=Tr.mallocFloat=ree;function nee(e){return new Float64Array(na(8*e),0,e)}Tr.mallocFloat64=Tr.mallocDouble=nee;function iee(e){return h4e?new Uint8ClampedArray(na(e),0,e):RO(e)}Tr.mallocUint8Clamped=iee;function aee(e){return v4e?new BigUint64Array(na(8*e),0,e):null}Tr.mallocBigUint64=aee;function oee(e){return m4e?new BigInt64Array(na(8*e),0,e):null}Tr.mallocBigInt64=oee;function lee(e){return new DataView(na(e),0,e)}Tr.mallocDataView=lee;function see(e){e=Ws.nextPow2(e);var t=Ws.log2(e),r=R2[t];return r.length>0?r.pop():new YJ(e)}Tr.mallocBuffer=see;Tr.clearCache=function(){for(var t=0;t<32;++t)Mn.UINT8[t].length=0,Mn.UINT16[t].length=0,Mn.UINT32[t].length=0,Mn.INT8[t].length=0,Mn.INT16[t].length=0,Mn.INT32[t].length=0,Mn.FLOAT[t].length=0,Mn.DOUBLE[t].length=0,Mn.BIGUINT64[t].length=0,Mn.BIGINT64[t].length=0,Mn.UINT8C[t].length=0,O2[t].length=0,R2[t].length=0};var uee=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},y4e=uee,b4e=cee,Xh=96;function FT(e,t){var r=y4e(getComputedStyle(e).getPropertyValue(t));return r[0]*cee(r[1],e)}function $4e(e,t){var r=document.createElement("div");r.style["font-size"]="128"+e,t.appendChild(r);var n=FT(r,"font-size")/128;return t.removeChild(r),n}function cee(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 $4e(e,t);case"em":return FT(t,"font-size");case"rem":return FT(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 Xh;case"cm":return Xh/2.54;case"mm":return Xh/25.4;case"pt":return Xh/72;case"pc":return Xh/6}return 1}var x4e=I2,w4e=I2.canvas=document.createElement("canvas"),g1=w4e.getContext("2d"),fee=db([32,126]);I2.createPairs=db;I2.ascii=fee;function I2(e,t){Array.isArray(e)&&(e=e.join(", "));var r={},n,i=16,a=.05;t&&(t.length===2&&typeof t[0]=="number"?n=db(t):Array.isArray(t)?n=t:(t.o?n=db(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),t.threshold!=null&&(a=t.threshold))),n||(n=fee),g1.font=i+"px "+e;for(var o=0;o<n.length;o++){var l=n[o],u=g1.measureText(l[0]).width+g1.measureText(l[1]).width,c=g1.measureText(l).width;if(Math.abs(u-c)>i*a){var d=(c-u)/i;r[l]=d*1e3}}return r}function db(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 _4e=gs;gs.canvas=document.createElement("canvas");gs.cache={};function gs(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(gs.cache[r]&&n<=gs.cache[r].em)return oB(gs.cache[r],l);var u=t.canvas||gs.canvas,c=u.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"},h=Math.ceil(n*1.5);u.height=h,u.width=h*.5,c.font=o;var p="H",v={top:0};c.clearRect(0,0,h,h),c.textBaseline="top",c.fillStyle="black",c.fillText(p,0,0);var $=Co(c.getImageData(0,0,h,h));c.clearRect(0,0,h,h),c.textBaseline="bottom",c.fillText(p,0,h);var S=Co(c.getImageData(0,0,h,h));v.lineHeight=v.bottom=h-S+$,c.clearRect(0,0,h,h),c.textBaseline="alphabetic",c.fillText(p,0,h);var g=Co(c.getImageData(0,0,h,h)),b=h-g-1+$;v.baseline=v.alphabetic=b,c.clearRect(0,0,h,h),c.textBaseline="middle",c.fillText(p,0,h*.5);var _=Co(c.getImageData(0,0,h,h));v.median=v.middle=h-_-1+$-h*.5,c.clearRect(0,0,h,h),c.textBaseline="hanging",c.fillText(p,0,h*.5);var E=Co(c.getImageData(0,0,h,h));v.hanging=h-E-1+$-h*.5,c.clearRect(0,0,h,h),c.textBaseline="ideographic",c.fillText(p,0,h);var A=Co(c.getImageData(0,0,h,h));if(v.ideographic=h-A-1+$,d.upper&&(c.clearRect(0,0,h,h),c.textBaseline="top",c.fillText(d.upper,0,0),v.upper=Co(c.getImageData(0,0,h,h)),v.capHeight=v.baseline-v.upper),d.lower&&(c.clearRect(0,0,h,h),c.textBaseline="top",c.fillText(d.lower,0,0),v.lower=Co(c.getImageData(0,0,h,h)),v.xHeight=v.baseline-v.lower),d.tittle&&(c.clearRect(0,0,h,h),c.textBaseline="top",c.fillText(d.tittle,0,0),v.tittle=Co(c.getImageData(0,0,h,h))),d.ascent&&(c.clearRect(0,0,h,h),c.textBaseline="top",c.fillText(d.ascent,0,0),v.ascent=Co(c.getImageData(0,0,h,h))),d.descent&&(c.clearRect(0,0,h,h),c.textBaseline="top",c.fillText(d.descent,0,0),v.descent=lB(c.getImageData(0,0,h,h))),d.overshoot){c.clearRect(0,0,h,h),c.textBaseline="top",c.fillText(d.overshoot,0,0);var M=lB(c.getImageData(0,0,h,h));v.overshoot=M-b}for(var N in v)v[N]/=n;return v.em=n,gs.cache[r]=v,oB(v,l)}function oB(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 Co(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 lB(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 Lf=K_e,S4e=eu,E4e=q_e,A4e=X_e,C4e=IJ,Zw=A2,T4e=t4e,fs=Tr,P4e=E2,M4e=$J,O4e=uee,R4e=b4e,I4e=x4e,k4e=$c,F4e=_4e,N4e=qm,L4e=wn,sB=L4e.nextPow2,uB=new C4e,Y1=!1;if(document.body){var Jw=document.body.appendChild(document.createElement("div"));Jw.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(Jw).fontStretch&&(Y1=!0),document.body.removeChild(Jw)}var Lr=function(t){D4e(t)?(t={regl:t},this.gl=t.regl._gl):this.gl=A4e(t),this.shader=uB.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||E4e({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(),uB.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(M4e(t)?t:{})};Lr.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:`
1102
+ precision highp float;
1103
+ attribute float width, charOffset, char;
1104
+ attribute vec2 position;
1105
+ uniform float fontSize, charStep, em, align, baseline;
1106
+ uniform vec4 viewport;
1107
+ uniform vec4 color;
1108
+ uniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;
1109
+ varying vec2 charCoord, charId;
1110
+ varying float charWidth;
1111
+ varying vec4 fontColor;
1112
+ void main () {
1113
+ vec2 offset = floor(em * (vec2(align + charOffset, baseline)
1114
+ + vec2(positionOffset.x, -positionOffset.y)))
1115
+ / (viewport.zw * scale.xy);
1116
+
1117
+ vec2 position = (position + translate) * scale;
1118
+ position += offset * scale;
1119
+
1120
+ charCoord = position * viewport.zw + viewport.xy;
1121
+
1122
+ gl_Position = vec4(position * 2. - 1., 0, 1);
1123
+
1124
+ gl_PointSize = charStep;
1125
+
1126
+ charId.x = mod(char, atlasDim.x);
1127
+ charId.y = floor(char / atlasDim.x);
1128
+
1129
+ charWidth = width * em;
1130
+
1131
+ fontColor = color / 255.;
1132
+ }`,frag:`
1133
+ precision highp float;
1134
+ uniform float fontSize, charStep, opacity;
1135
+ uniform vec2 atlasSize;
1136
+ uniform vec4 viewport;
1137
+ uniform sampler2D atlas;
1138
+ varying vec4 fontColor;
1139
+ varying vec2 charCoord, charId;
1140
+ varying float charWidth;
1141
+
1142
+ float lightness(vec4 color) {
1143
+ return color.r * 0.299 + color.g * 0.587 + color.b * 0.114;
1144
+ }
1145
+
1146
+ void main () {
1147
+ vec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;
1148
+ float halfCharStep = floor(charStep * .5 + .5);
1149
+
1150
+ // invert y and shift by 1px (FF expecially needs that)
1151
+ uv.y = charStep - uv.y;
1152
+
1153
+ // ignore points outside of character bounding box
1154
+ float halfCharWidth = ceil(charWidth * .5);
1155
+ if (floor(uv.x) > halfCharStep + halfCharWidth ||
1156
+ floor(uv.x) < halfCharStep - halfCharWidth) return;
1157
+
1158
+ uv += charId * charStep;
1159
+ uv = uv / atlasSize;
1160
+
1161
+ vec4 color = fontColor;
1162
+ vec4 mask = texture2D(atlas, uv);
1163
+
1164
+ float maskY = lightness(mask);
1165
+ // float colorY = lightness(color);
1166
+ color.a *= maskY;
1167
+ color.a *= opacity;
1168
+
1169
+ // color.a += .1;
1170
+
1171
+ // antialiasing, see yiq color space y-channel formula
1172
+ // color.rgb += (1. - color.rgb) * (1. - mask.rgb);
1173
+
1174
+ gl_FragColor = color;
1175
+ }`}),n={};return{regl:t,draw:r,atlas:n}};Lr.prototype.update=function(t){var r=this;if(typeof t=="string")t={text:t};else if(!t)return;t=S4e(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(Fe){return parseFloat(Fe)}):this.opacity=parseFloat(t.opacity)),t.viewport!=null&&(this.viewport=P4e(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=N4e(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=Lr.baseFontSize+"px sans-serif");var n=!1,i=!1;if(t.font&&(Array.isArray(t.font)?t.font:[t.font]).forEach(function(Fe,ft){if(typeof Fe=="string")try{Fe=Lf.parse(Fe)}catch{Fe=Lf.parse(Lr.baseFontSize+"px "+Fe)}else Fe=Lf.parse(Lf.stringify(Fe));var bt=Lf.stringify({size:Lr.baseFontSize,family:Fe.family,stretch:Y1?Fe.stretch:void 0,variant:Fe.variant,weight:Fe.weight,style:Fe.style}),Gt=O4e(Fe.size),qt=Math.round(Gt[0]*R4e(Gt[1]));if(qt!==r.fontSize[ft]&&(i=!0,r.fontSize[ft]=qt),(!r.font[ft]||bt!=r.font[ft].baseString)&&(n=!0,r.font[ft]=Lr.fonts[bt],!r.font[ft])){var nt=Fe.family.join(", "),At=[Fe.style];Fe.style!=Fe.variant&&At.push(Fe.variant),Fe.variant!=Fe.weight&&At.push(Fe.weight),Y1&&Fe.weight!=Fe.stretch&&At.push(Fe.stretch),r.font[ft]={baseString:bt,family:nt,weight:Fe.weight,stretch:Fe.stretch,style:Fe.style,variant:Fe.variant,width:{},kerning:{},metrics:F4e(nt,{origin:"top",fontSize:Lr.baseFontSize,fontStyle:At.join(" ")})},Lr.fonts[bt]=r.font[ft]}}),(n||i)&&this.font.forEach(function(Fe,ft){var bt=Lf.stringify({size:r.fontSize[ft],family:Fe.family,stretch:Y1?Fe.stretch:void 0,variant:Fe.variant,weight:Fe.weight,style:Fe.style});if(r.fontAtlas[ft]=r.shader.atlas[bt],!r.fontAtlas[ft]){var Gt=Fe.metrics;r.shader.atlas[bt]=r.fontAtlas[ft]={fontString:bt,step:Math.ceil(r.fontSize[ft]*Gt.bottom*.5)*2,em:r.fontSize[ft],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 u=1;u<t.text.length;u++)this.textOffsets[u]=this.textOffsets[u-1]+t.text[u-1].length,this.count+=t.text[u].length,this.counts.push(t.text[u].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(Fe,ft){Lr.atlasContext.font=Fe.baseString;for(var bt=r.fontAtlas[ft],Gt=0;Gt<r.text.length;Gt++){var qt=r.text.charAt(Gt);if(bt.ids[qt]==null&&(bt.ids[qt]=bt.chars.length,bt.chars.push(qt),l.push(qt)),Fe.width[qt]==null&&(Fe.width[qt]=Lr.atlasContext.measureText(qt).width/Lr.baseFontSize,r.kerning)){var nt=[];for(var At in Fe.width)nt.push(At+qt,qt+At);k4e(Fe.kerning,I4e(Fe.family,{pairs:nt}))}}})}if(t.position)if(t.position.length>2){for(var c=!t.position[0].length,d=fs.mallocFloat(this.count*2),h=0,p=0;h<this.counts.length;h++){var v=this.counts[h];if(c)for(var $=0;$<v;$++)d[p++]=t.position[h*2],d[p++]=t.position[h*2+1];else for(var S=0;S<v;S++)d[p++]=t.position[h][0],d[p++]=t.position[h][1]}this.position.call?this.position({type:"float",data:d}):this.position=this.regl.buffer({type:"float",data:d}),fs.freeFloat(d)}else this.position.destroy&&this.position.destroy(),this.position={constant:t.position};if(t.text||n){var g=fs.mallocUint8(this.count),b=fs.mallocFloat(this.count*2);this.textWidth=[];for(var _=0,E=0;_<this.counts.length;_++){for(var A=this.counts[_],M=this.font[_]||this.font[0],N=this.fontAtlas[_]||this.fontAtlas[0],U=0;U<A;U++){var I=this.text.charAt(E),j=this.text.charAt(E-1);if(g[E]=N.ids[I],b[E*2]=M.width[I],U){var he=b[E*2-2],q=b[E*2],fe=b[E*2-1],ne=fe+he*.5+q*.5;if(this.kerning){var ce=M.kerning[j+I];ce&&(ne+=ce*.001)}b[E*2+1]=ne}else b[E*2+1]=b[E*2]*.5;E++}this.textWidth.push(b.length?b[E*2-2]*.5+b[E*2-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:g,type:"uint8",usage:"stream"}),this.sizeBuffer({data:b,type:"float",usage:"stream"}),fs.freeUint8(g),fs.freeFloat(b),l.length&&this.font.forEach(function(Fe,ft){var bt=r.fontAtlas[ft],Gt=bt.step,qt=Math.floor(Lr.maxAtlasSize/Gt),nt=Math.min(qt,bt.chars.length),At=Math.ceil(bt.chars.length/nt),Wt=sB(nt*Gt),we=sB(At*Gt);bt.width=Wt,bt.height=we,bt.rows=At,bt.cols=nt,bt.em&&bt.texture({data:T4e({canvas:Lr.atlasCanvas,font:bt.fontString,chars:bt.chars,shape:[Wt,we],step:[Gt,Gt]})})})}if(t.align&&(this.align=t.align,this.alignOffset=this.textWidth.map(function(Fe,ft){var bt=Array.isArray(r.align)?r.align.length>1?r.align[ft]:r.align[0]:r.align;if(typeof bt=="number")return bt;switch(bt){case"right":case"end":return-Fe;case"center":case"centre":case"middle":return-Fe*.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(Fe,ft){var bt=(r.font[ft]||r.font[0]).metrics,Gt=0;return Gt+=bt.bottom*.5,typeof Fe=="number"?Gt+=Fe-bt.baseline:Gt+=-bt[Fe],Gt*=-1,Gt})),t.color!=null)if(t.color||(t.color="transparent"),typeof t.color=="string"||!isNaN(t.color))this.color=Zw(t.color,"uint8");else{var De;if(typeof t.color[0]=="number"&&t.color.length>this.counts.length){var We=t.color.length;De=fs.mallocUint8(We);for(var Ae=(t.color.subarray||t.color.slice).bind(t.color),$e=0;$e<We;$e+=4)De.set(Zw(Ae($e,$e+4),"uint8"),$e)}else{var rt=t.color.length;De=fs.mallocUint8(rt*4);for(var Be=0;Be<rt;Be++)De.set(Zw(t.color[Be]||0,"uint8"),Be*4)}this.color=De}if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity){var Ee=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(Ee){var Ke=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(Ke);for(var Ge=0;Ge<this.batch.length;Ge++)this.batch[Ge]={count:this.counts.length>1?this.counts[Ge]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Ge]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(Ge*4,Ge*4+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Ge]:this.opacity,baseline:this.baselineOffset[Ge]!=null?this.baselineOffset[Ge]:this.baselineOffset[0],align:this.align?this.alignOffset[Ge]!=null?this.alignOffset[Ge]:this.alignOffset[0]:0,atlas:this.fontAtlas[Ge]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(Ge*2,Ge*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=[]}};Lr.prototype.destroy=function(){};Lr.prototype.kerning=!0;Lr.prototype.position={constant:new Float32Array(2)};Lr.prototype.translate=null;Lr.prototype.scale=null;Lr.prototype.font=null;Lr.prototype.text="";Lr.prototype.positionOffset=[0,0];Lr.prototype.opacity=1;Lr.prototype.color=new Uint8Array([0,0,0,255]);Lr.prototype.alignOffset=[0,0];Lr.maxAtlasSize=1024;Lr.atlasCanvas=document.createElement("canvas");Lr.atlasContext=Lr.atlasCanvas.getContext("2d",{alpha:!1});Lr.baseFontSize=64;Lr.fonts={};function D4e(e){return typeof e=="function"&&e._gl&&e.prop&&e.texture&&e.buffer}var UEe=Lr;function B4e(e,t){return e.parent===t.parent?1:2}function z4e(e){return e.reduce(U4e,0)/e.length}function U4e(e,t){return e+t.x}function j4e(e){return 1+e.reduce(H4e,0)}function H4e(e,t){return Math.max(e,t.y)}function G4e(e){for(var t;t=e.children;)e=t[0];return e}function W4e(e){for(var t;t=e.children;)e=t[t.length-1];return e}function V4e(){var e=B4e,t=1,r=1,n=!1;function i(a){var o,l=0;a.eachAfter(function(p){var v=p.children;v?(p.x=z4e(v),p.y=j4e(v)):(p.x=o?l+=e(p,o):0,p.y=0,o=p)});var u=G4e(a),c=W4e(a),d=u.x-e(u,c)/2,h=c.x+e(c,u)/2;return a.eachAfter(n?function(p){p.x=(p.x-a.x)*t,p.y=(a.y-p.y)*r}:function(p){p.x=(p.x-d)/(h-d)*t,p.y=(1-(a.y?p.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 K4e(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 q4e(){return this.eachAfter(K4e)}function Y4e(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 X4e(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 Q4e(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 Z4e(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 J4e(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function e8e(e){for(var t=this,r=t8e(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 t8e(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 r8e(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function n8e(){var e=[];return this.each(function(t){e.push(t)}),e}function i8e(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function a8e(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t}function IO(e,t){var r=new Gd(e),n=+e.value&&(r.value=e.value),i,a=[r],o,l,u,c;for(t==null&&(t=l8e);i=a.pop();)if(n&&(i.value=+i.data.value),(l=t(i.data))&&(c=l.length))for(i.children=new Array(c),u=c-1;u>=0;--u)a.push(o=i.children[u]=new Gd(l[u])),o.parent=i,o.depth=i.depth+1;return r.eachBefore(dee)}function o8e(){return IO(this).eachBefore(s8e)}function l8e(e){return e.children}function s8e(e){e.data=e.data.data}function dee(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Gd(e){this.data=e,this.depth=this.height=0,this.parent=null}Gd.prototype=IO.prototype={constructor:Gd,count:q4e,each:Y4e,eachAfter:Q4e,eachBefore:X4e,sum:Z4e,sort:J4e,path:e8e,ancestors:r8e,descendants:n8e,leaves:i8e,links:a8e,copy:o8e};var u8e=Array.prototype.slice;function c8e(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 pee(e){for(var t=0,r=(e=c8e(u8e.call(e))).length,n=[],i,a;t<r;)i=e[t],a&&hee(a,i)?++t:(a=d8e(n=f8e(n,i)),t=0);return a}function f8e(e,t){var r,n;if(e5(t,e))return[t];for(r=0;r<e.length;++r)if(y1(t,e[r])&&e5(sv(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(y1(sv(e[r],e[n]),t)&&y1(sv(e[r],t),e[n])&&y1(sv(e[n],t),e[r])&&e5(vee(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function y1(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 hee(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 e5(e,t){for(var r=0;r<t.length;++r)if(!hee(e,t[r]))return!1;return!0}function d8e(e){switch(e.length){case 1:return p8e(e[0]);case 2:return sv(e[0],e[1]);case 3:return vee(e[0],e[1],e[2])}}function p8e(e){return{x:e.x,y:e.y,r:e.r}}function sv(e,t){var r=e.x,n=e.y,i=e.r,a=t.x,o=t.y,l=t.r,u=a-r,c=o-n,d=l-i,h=Math.sqrt(u*u+c*c);return{x:(r+a+u/h*d)/2,y:(n+o+c/h*d)/2,r:(h+i+l)/2}}function vee(e,t,r){var n=e.x,i=e.y,a=e.r,o=t.x,l=t.y,u=t.r,c=r.x,d=r.y,h=r.r,p=n-o,v=n-c,$=i-l,S=i-d,g=u-a,b=h-a,_=n*n+i*i-a*a,E=_-o*o-l*l+u*u,A=_-c*c-d*d+h*h,M=v*$-p*S,N=($*A-S*E)/(M*2)-n,U=(S*g-$*b)/M,I=(v*E-p*A)/(M*2)-i,j=(p*b-v*g)/M,he=U*U+j*j-1,q=2*(a+N*U+I*j),fe=N*N+I*I-a*a,ne=-(he?(q+Math.sqrt(q*q-4*he*fe))/(2*he):fe/q);return{x:n+N+U*ne,y:i+I+j*ne,r:ne}}function cB(e,t,r){var n=e.x-t.x,i,a,o=e.y-t.y,l,u,c=n*n+o*o;c?(a=t.r+r.r,a*=a,u=e.r+r.r,u*=u,a>u?(i=(c+u-a)/(2*c),l=Math.sqrt(Math.max(0,u/c-i*i)),r.x=e.x-i*n-l*o,r.y=e.y-i*o+l*n):(i=(c+a-u)/(2*c),l=Math.sqrt(Math.max(0,a/c-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 fB(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 dB(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 b1(e){this._=e,this.next=null,this.previous=null}function mee(e){if(!(i=e.length))return 0;var t,r,n,i,a,o,l,u,c,d,h;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;cB(r,t,n=e[2]),t=new b1(t),r=new b1(r),n=new b1(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(l=3;l<i;++l){cB(t._,r._,n=e[l]),n=new b1(n),u=r.next,c=t.previous,d=r._.r,h=t._.r;do if(d<=h){if(fB(u._,n._)){r=u,t.next=r,r.previous=t,--l;continue e}d+=u._.r,u=u.next}else{if(fB(c._,n._)){t=c,t.next=r,r.previous=t,--l;continue e}h+=c._.r,c=c.previous}while(u!==c.next);for(n.previous=t,n.next=r,t.next=r.previous=r=n,a=dB(t);(n=n.next)!==r;)(o=dB(n))<a&&(t=n,a=o);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=pee(t),l=0;l<i;++l)t=e[l],t.x-=n.x,t.y-=n.y;return n.r}function h8e(e){return mee(e),e}function v8e(e){return e==null?null:pb(e)}function pb(e){if(typeof e!="function")throw new Error;return e}function zu(){return 0}function Wf(e){return function(){return e}}function m8e(e){return Math.sqrt(e.value)}function g8e(){var e=null,t=1,r=1,n=zu;function i(a){return a.x=t/2,a.y=r/2,e?a.eachBefore(pB(e)).eachAfter(t5(n,.5)).eachBefore(hB(1)):a.eachBefore(pB(m8e)).eachAfter(t5(zu,1)).eachAfter(t5(n,a.r/Math.min(t,r))).eachBefore(hB(Math.min(t,r)/(2*a.r))),a}return i.radius=function(a){return arguments.length?(e=v8e(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:Wf(+a),i):n},i}function pB(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function t5(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=mee(n),o)for(i=0;i<a;++i)n[i].r-=o;r.r=l+o}}}function hB(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 gee(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 Xm(e,t,r,n,i){for(var a=e.children,o,l=-1,u=a.length,c=e.value&&(n-t)/e.value;++l<u;)o=a[l],o.y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*c}function y8e(){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(gee),o}function a(o,l){return function(u){u.children&&Xm(u,u.x0,o*(u.depth+1)/l,u.x1,o*(u.depth+2)/l);var c=u.x0,d=u.y0,h=u.x1-r,p=u.y1-r;h<c&&(c=h=(c+h)/2),p<d&&(d=p=(d+p)/2),u.x0=c,u.y0=d,u.x1=h,u.y1=p}}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 vB="$",b8e={depth:-1},mB={};function $8e(e){return e.id}function x8e(e){return e.parentId}function w8e(){var e=$8e,t=x8e;function r(n){var i,a,o=n.length,l,u,c,d=new Array(o),h,p,v={};for(a=0;a<o;++a)i=n[a],c=d[a]=new Gd(i),(h=e(i,a,n))!=null&&(h+="")&&(p=vB+(c.id=h),v[p]=p in v?mB:c);for(a=0;a<o;++a)if(c=d[a],h=t(n[a],a,n),h==null||!(h+="")){if(l)throw new Error("multiple roots");l=c}else{if(u=v[vB+h],!u)throw new Error("missing: "+h);if(u===mB)throw new Error("ambiguous: "+h);u.children?u.children.push(c):u.children=[c],c.parent=u}if(!l)throw new Error("no root");if(l.parent=b8e,l.eachBefore(function($){$.depth=$.parent.depth+1,--o}).eachBefore(dee),l.parent=null,o>0)throw new Error("cycle");return l}return r.id=function(n){return arguments.length?(e=pb(n),r):e},r.parentId=function(n){return arguments.length?(t=pb(n),r):t},r}function _8e(e,t){return e.parent===t.parent?1:2}function r5(e){var t=e.children;return t?t[0]:e.t}function n5(e){var t=e.children;return t?t[t.length-1]:e.t}function S8e(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 E8e(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 A8e(e,t,r){return e.a.parent===t.parent?e.a:r}function X1(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}X1.prototype=Object.create(Gd.prototype);function C8e(e){for(var t=new X1(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 X1(a[o],o)),i.parent=r;return(t.parent=new X1(null,0)).children=[t],t}function T8e(){var e=_8e,t=1,r=1,n=null;function i(c){var d=C8e(c);if(d.eachAfter(a),d.parent.m=-d.z,d.eachBefore(o),n)c.eachBefore(u);else{var h=c,p=c,v=c;c.eachBefore(function(_){_.x<h.x&&(h=_),_.x>p.x&&(p=_),_.depth>v.depth&&(v=_)});var $=h===p?1:e(h,p)/2,S=$-h.x,g=t/(p.x+$+S),b=r/(v.depth||1);c.eachBefore(function(_){_.x=(_.x+S)*g,_.y=_.depth*b})}return c}function a(c){var d=c.children,h=c.parent.children,p=c.i?h[c.i-1]:null;if(d){E8e(c);var v=(d[0].z+d[d.length-1].z)/2;p?(c.z=p.z+e(c._,p._),c.m=c.z-v):c.z=v}else p&&(c.z=p.z+e(c._,p._));c.parent.A=l(c,p,c.parent.A||h[0])}function o(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function l(c,d,h){if(d){for(var p=c,v=c,$=d,S=p.parent.children[0],g=p.m,b=v.m,_=$.m,E=S.m,A;$=n5($),p=r5(p),$&&p;)S=r5(S),v=n5(v),v.a=c,A=$.z+_-p.z-g+e($._,p._),A>0&&(S8e(A8e($,c,h),c,A),g+=A,b+=A),_+=$.m,g+=p.m,E+=S.m,b+=v.m;$&&!n5(v)&&(v.t=$,v.m+=_-b),p&&!r5(S)&&(S.t=p,S.m+=g-E,h=c)}return h}function u(c){c.x*=t,c.y=c.depth*r}return i.separation=function(c){return arguments.length?(e=c,i):e},i.size=function(c){return arguments.length?(n=!1,t=+c[0],r=+c[1],i):n?null:[t,r]},i.nodeSize=function(c){return arguments.length?(n=!0,t=+c[0],r=+c[1],i):n?[t,r]:null},i}function k2(e,t,r,n,i){for(var a=e.children,o,l=-1,u=a.length,c=e.value&&(i-r)/e.value;++l<u;)o=a[l],o.x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*c}var yee=(1+Math.sqrt(5))/2;function bee(e,t,r,n,i,a){for(var o=[],l=t.children,u,c,d=0,h=0,p=l.length,v,$,S=t.value,g,b,_,E,A,M,N;d<p;){v=i-r,$=a-n;do g=l[h++].value;while(!g&&h<p);for(b=_=g,M=Math.max($/v,v/$)/(S*e),N=g*g*M,A=Math.max(_/N,N/b);h<p;++h){if(g+=c=l[h].value,c<b&&(b=c),c>_&&(_=c),N=g*g*M,E=Math.max(_/N,N/b),E>A){g-=c;break}A=E}o.push(u={value:g,dice:v<$,children:l.slice(d,h)}),u.dice?Xm(u,r,n,i,S?n+=$*g/S:a):k2(u,r,n,S?r+=v*g/S:i,a),S-=g,d=h}return o}const $ee=function e(t){function r(n,i,a,o,l){bee(t,n,i,a,o,l)}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(yee);function P8e(){var e=$ee,t=!1,r=1,n=1,i=[0],a=zu,o=zu,l=zu,u=zu,c=zu;function d(p){return p.x0=p.y0=0,p.x1=r,p.y1=n,p.eachBefore(h),i=[0],t&&p.eachBefore(gee),p}function h(p){var v=i[p.depth],$=p.x0+v,S=p.y0+v,g=p.x1-v,b=p.y1-v;g<$&&($=g=($+g)/2),b<S&&(S=b=(S+b)/2),p.x0=$,p.y0=S,p.x1=g,p.y1=b,p.children&&(v=i[p.depth+1]=a(p)/2,$+=c(p)-v,S+=o(p)-v,g-=l(p)-v,b-=u(p)-v,g<$&&($=g=($+g)/2),b<S&&(S=b=(S+b)/2),e(p,$,S,g,b))}return d.round=function(p){return arguments.length?(t=!!p,d):t},d.size=function(p){return arguments.length?(r=+p[0],n=+p[1],d):[r,n]},d.tile=function(p){return arguments.length?(e=pb(p),d):e},d.padding=function(p){return arguments.length?d.paddingInner(p).paddingOuter(p):d.paddingInner()},d.paddingInner=function(p){return arguments.length?(a=typeof p=="function"?p:Wf(+p),d):a},d.paddingOuter=function(p){return arguments.length?d.paddingTop(p).paddingRight(p).paddingBottom(p).paddingLeft(p):d.paddingTop()},d.paddingTop=function(p){return arguments.length?(o=typeof p=="function"?p:Wf(+p),d):o},d.paddingRight=function(p){return arguments.length?(l=typeof p=="function"?p:Wf(+p),d):l},d.paddingBottom=function(p){return arguments.length?(u=typeof p=="function"?p:Wf(+p),d):u},d.paddingLeft=function(p){return arguments.length?(c=typeof p=="function"?p:Wf(+p),d):c},d}function M8e(e,t,r,n,i){var a=e.children,o,l=a.length,u,c=new Array(l+1);for(c[0]=u=o=0;o<l;++o)c[o+1]=u+=a[o].value;d(0,l,e.value,t,r,n,i);function d(h,p,v,$,S,g,b){if(h>=p-1){var _=a[h];_.x0=$,_.y0=S,_.x1=g,_.y1=b;return}for(var E=c[h],A=v/2+E,M=h+1,N=p-1;M<N;){var U=M+N>>>1;c[U]<A?M=U+1:N=U}A-c[M-1]<c[M]-A&&h+1<M&&--M;var I=c[M]-E,j=v-I;if(g-$>b-S){var he=($*j+g*I)/v;d(h,M,I,$,S,he,b),d(M,p,j,he,S,g,b)}else{var q=(S*j+b*I)/v;d(h,M,I,$,S,g,q),d(M,p,j,$,q,g,b)}}}function O8e(e,t,r,n,i){(e.depth&1?k2:Xm)(e,t,r,n,i)}const R8e=function e(t){function r(n,i,a,o,l){if((u=n._squarify)&&u.ratio===t)for(var u,c,d,h,p=-1,v,$=u.length,S=n.value;++p<$;){for(c=u[p],d=c.children,h=c.value=0,v=d.length;h<v;++h)c.value+=d[h].value;c.dice?Xm(c,i,a,o,a+=(l-a)*c.value/S):k2(c,i,a,i+=(o-i)*c.value/S,l),S-=c.value}else n._squarify=u=bee(t,n,i,a,o,l),u.ratio=t}return r.ratio=function(n){return e((n=+n)>1?n:1)},r}(yee),I8e=Object.freeze(Object.defineProperty({__proto__:null,cluster:V4e,hierarchy:IO,pack:g8e,packEnclose:pee,packSiblings:h8e,partition:y8e,stratify:w8e,tree:T8e,treemap:P8e,treemapBinary:M8e,treemapDice:Xm,treemapResquarify:R8e,treemapSlice:k2,treemapSliceDice:O8e,treemapSquarify:$ee},Symbol.toStringTag,{value:"Module"})),jEe=bc(I8e);function lp(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Qm(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function tu(){}var mc=.7,Wd=1/mc,_d="\\s*([+-]?\\d+)\\s*",sm="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Bo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",k8e=/^#([0-9a-f]{3,8})$/,F8e=new RegExp(`^rgb\\(${_d},${_d},${_d}\\)$`),N8e=new RegExp(`^rgb\\(${Bo},${Bo},${Bo}\\)$`),L8e=new RegExp(`^rgba\\(${_d},${_d},${_d},${sm}\\)$`),D8e=new RegExp(`^rgba\\(${Bo},${Bo},${Bo},${sm}\\)$`),B8e=new RegExp(`^hsl\\(${sm},${Bo},${Bo}\\)$`),z8e=new RegExp(`^hsla\\(${sm},${Bo},${Bo},${sm}\\)$`),gB={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};lp(tu,um,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:yB,formatHex:yB,formatHex8:U8e,formatHsl:j8e,formatRgb:bB,toString:bB});function yB(){return this.rgb().formatHex()}function U8e(){return this.rgb().formatHex8()}function j8e(){return xee(this).formatHsl()}function bB(){return this.rgb().formatRgb()}function um(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=k8e.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?$B(t):r===3?new oi(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?$1(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?$1(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=F8e.exec(e))?new oi(t[1],t[2],t[3],1):(t=N8e.exec(e))?new oi(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=L8e.exec(e))?$1(t[1],t[2],t[3],t[4]):(t=D8e.exec(e))?$1(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=B8e.exec(e))?_B(t[1],t[2]/100,t[3]/100,1):(t=z8e.exec(e))?_B(t[1],t[2]/100,t[3]/100,t[4]):gB.hasOwnProperty(e)?$B(gB[e]):e==="transparent"?new oi(NaN,NaN,NaN,0):null}function $B(e){return new oi(e>>16&255,e>>8&255,e&255,1)}function $1(e,t,r,n){return n<=0&&(e=t=r=NaN),new oi(e,t,r,n)}function kO(e){return e instanceof tu||(e=um(e)),e?(e=e.rgb(),new oi(e.r,e.g,e.b,e.opacity)):new oi}function hb(e,t,r,n){return arguments.length===1?kO(e):new oi(e,t,r,n??1)}function oi(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}lp(oi,hb,Qm(tu,{brighter(e){return e=e==null?Wd:Math.pow(Wd,e),new oi(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?mc:Math.pow(mc,e),new oi(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new oi(ec(this.r),ec(this.g),ec(this.b),vb(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:xB,formatHex:xB,formatHex8:H8e,formatRgb:wB,toString:wB}));function xB(){return`#${Yu(this.r)}${Yu(this.g)}${Yu(this.b)}`}function H8e(){return`#${Yu(this.r)}${Yu(this.g)}${Yu(this.b)}${Yu((isNaN(this.opacity)?1:this.opacity)*255)}`}function wB(){const e=vb(this.opacity);return`${e===1?"rgb(":"rgba("}${ec(this.r)}, ${ec(this.g)}, ${ec(this.b)}${e===1?")":`, ${e})`}`}function vb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ec(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Yu(e){return e=ec(e),(e<16?"0":"")+e.toString(16)}function _B(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new uo(e,t,r,n)}function xee(e){if(e instanceof uo)return new uo(e.h,e.s,e.l,e.opacity);if(e instanceof tu||(e=um(e)),!e)return new uo;if(e instanceof uo)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,u=(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/=u<.5?a+i:2-a-i,o*=60):l=u>0&&u<1?0:o,new uo(o,l,u,e.opacity)}function NT(e,t,r,n){return arguments.length===1?xee(e):new uo(e,t,r,n??1)}function uo(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}lp(uo,NT,Qm(tu,{brighter(e){return e=e==null?Wd:Math.pow(Wd,e),new uo(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?mc:Math.pow(mc,e),new uo(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 oi(i5(e>=240?e-240:e+120,i,n),i5(e,i,n),i5(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new uo(SB(this.h),x1(this.s),x1(this.l),vb(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=vb(this.opacity);return`${e===1?"hsl(":"hsla("}${SB(this.h)}, ${x1(this.s)*100}%, ${x1(this.l)*100}%${e===1?")":`, ${e})`}`}}));function SB(e){return e=(e||0)%360,e<0?e+360:e}function x1(e){return Math.max(0,Math.min(1,e||0))}function i5(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 wee=Math.PI/180,_ee=180/Math.PI,mb=18,See=.96422,Eee=1,Aee=.82521,Cee=4/29,Sd=6/29,Tee=3*Sd*Sd,G8e=Sd*Sd*Sd;function Pee(e){if(e instanceof zo)return new zo(e.l,e.a,e.b,e.opacity);if(e instanceof El)return Mee(e);e instanceof oi||(e=kO(e));var t=s5(e.r),r=s5(e.g),n=s5(e.b),i=a5((.2225045*t+.7168786*r+.0606169*n)/Eee),a,o;return t===r&&r===n?a=o=i:(a=a5((.4360747*t+.3850649*r+.1430804*n)/See),o=a5((.0139322*t+.0971045*r+.7141733*n)/Aee)),new zo(116*i-16,500*(a-i),200*(i-o),e.opacity)}function LT(e,t,r,n){return arguments.length===1?Pee(e):new zo(e,t,r,n??1)}function zo(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}lp(zo,LT,Qm(tu,{brighter(e){return new zo(this.l+mb*(e??1),this.a,this.b,this.opacity)},darker(e){return new zo(this.l-mb*(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=See*o5(t),e=Eee*o5(e),r=Aee*o5(r),new oi(l5(3.1338561*t-1.6168667*e-.4906146*r),l5(-.9787684*t+1.9161415*e+.033454*r),l5(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function a5(e){return e>G8e?Math.pow(e,1/3):e/Tee+Cee}function o5(e){return e>Sd?e*e*e:Tee*(e-Cee)}function l5(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function s5(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function W8e(e){if(e instanceof El)return new El(e.h,e.c,e.l,e.opacity);if(e instanceof zo||(e=Pee(e)),e.a===0&&e.b===0)return new El(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*_ee;return new El(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function DT(e,t,r,n){return arguments.length===1?W8e(e):new El(e,t,r,n??1)}function El(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function Mee(e){if(isNaN(e.h))return new zo(e.l,0,0,e.opacity);var t=e.h*wee;return new zo(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}lp(El,DT,Qm(tu,{brighter(e){return new El(this.h,this.c,this.l+mb*(e??1),this.opacity)},darker(e){return new El(this.h,this.c,this.l-mb*(e??1),this.opacity)},rgb(){return Mee(this).rgb()}}));var Oee=-.14861,FO=1.78277,NO=-.29227,F2=-.90649,cm=1.97294,EB=cm*F2,AB=cm*FO,CB=FO*NO-F2*Oee;function V8e(e){if(e instanceof tc)return new tc(e.h,e.s,e.l,e.opacity);e instanceof oi||(e=kO(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(CB*n+EB*t-AB*r)/(CB+EB-AB),a=n-i,o=(cm*(r-i)-NO*a)/F2,l=Math.sqrt(o*o+a*a)/(cm*i*(1-i)),u=l?Math.atan2(o,a)*_ee-120:NaN;return new tc(u<0?u+360:u,l,i,e.opacity)}function BT(e,t,r,n){return arguments.length===1?V8e(e):new tc(e,t,r,n??1)}function tc(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}lp(tc,BT,Qm(tu,{brighter(e){return e=e==null?Wd:Math.pow(Wd,e),new tc(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?mc:Math.pow(mc,e),new tc(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*wee,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new oi(255*(t+r*(Oee*n+FO*i)),255*(t+r*(NO*n+F2*i)),255*(t+r*(cm*n)),this.opacity)}}));function Ree(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 Iee(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 Ree((r-n/t)*t,o,i,a,l)}}function kee(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 Ree((r-n/t)*t,i,a,o,l)}}const N2=e=>()=>e;function Fee(e,t){return function(r){return e+r*t}}function K8e(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 L2(e,t){var r=t-e;return r?Fee(e,r>180||r<-180?r-360*Math.round(r/360):r):N2(isNaN(e)?t:e)}function q8e(e){return(e=+e)==1?li:function(t,r){return r-t?K8e(t,r,e):N2(isNaN(t)?r:t)}}function li(e,t){var r=t-e;return r?Fee(e,r):N2(isNaN(e)?t:e)}const zT=function e(t){var r=q8e(t);function n(i,a){var o=r((i=hb(i)).r,(a=hb(a)).r),l=r(i.g,a.g),u=r(i.b,a.b),c=li(i.opacity,a.opacity);return function(d){return i.r=o(d),i.g=l(d),i.b=u(d),i.opacity=c(d),i+""}}return n.gamma=e,n}(1);function Nee(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=hb(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(u){return l.r=n(u),l.g=i(u),l.b=a(u),l+""}}}var Y8e=Nee(Iee),X8e=Nee(kee);function LO(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 Lee(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Q8e(e,t){return(Lee(t)?LO:Dee)(e,t)}function Dee(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]=D2(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 Bee(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Mo(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function zee(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]=D2(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var UT=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,u5=new RegExp(UT.source,"g");function Z8e(e){return function(){return e}}function J8e(e){return function(t){return e(t)+""}}function Uee(e,t){var r=UT.lastIndex=u5.lastIndex=0,n,i,a,o=-1,l=[],u=[];for(e=e+"",t=t+"";(n=UT.exec(e))&&(i=u5.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,u.push({i:o,x:Mo(n,i)})),r=u5.lastIndex;return r<t.length&&(a=t.slice(r),l[o]?l[o]+=a:l[++o]=a),l.length<2?u[0]?J8e(u[0].x):Z8e(t):(t=u.length,function(c){for(var d=0,h;d<t;++d)l[(h=u[d]).i]=h.x(c);return l.join("")})}function D2(e,t){var r=typeof t,n;return t==null||r==="boolean"?N2(t):(r==="number"?Mo:r==="string"?(n=um(t))?(t=n,zT):Uee:t instanceof um?zT:t instanceof Date?Bee:Lee(t)?LO:Array.isArray(t)?Dee:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?zee:Mo)(e,t)}function eSe(e){var t=e.length;return function(r){return e[Math.max(0,Math.min(t-1,Math.floor(r*t)))]}}function tSe(e,t){var r=L2(+e,+t);return function(n){var i=r(n);return i-360*Math.floor(i/360)}}function rSe(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var TB=180/Math.PI,jT={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function jee(e,t,r,n,i,a){var o,l,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*r+t*n)&&(r-=e*u,n-=t*u),(l=Math.sqrt(r*r+n*n))&&(r/=l,n/=l,u/=l),e*n<t*r&&(e=-e,t=-t,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*TB,skewX:Math.atan(u)*TB,scaleX:o,scaleY:l}}var w1;function nSe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?jT:jee(t.a,t.b,t.c,t.d,t.e,t.f)}function iSe(e){return e==null||(w1||(w1=document.createElementNS("http://www.w3.org/2000/svg","g")),w1.setAttribute("transform",e),!(e=w1.transform.baseVal.consolidate()))?jT:(e=e.matrix,jee(e.a,e.b,e.c,e.d,e.e,e.f))}function Hee(e,t,r,n){function i(c){return c.length?c.pop()+" ":""}function a(c,d,h,p,v,$){if(c!==h||d!==p){var S=v.push("translate(",null,t,null,r);$.push({i:S-4,x:Mo(c,h)},{i:S-2,x:Mo(d,p)})}else(h||p)&&v.push("translate("+h+t+p+r)}function o(c,d,h,p){c!==d?(c-d>180?d+=360:d-c>180&&(c+=360),p.push({i:h.push(i(h)+"rotate(",null,n)-2,x:Mo(c,d)})):d&&h.push(i(h)+"rotate("+d+n)}function l(c,d,h,p){c!==d?p.push({i:h.push(i(h)+"skewX(",null,n)-2,x:Mo(c,d)}):d&&h.push(i(h)+"skewX("+d+n)}function u(c,d,h,p,v,$){if(c!==h||d!==p){var S=v.push(i(v)+"scale(",null,",",null,")");$.push({i:S-4,x:Mo(c,h)},{i:S-2,x:Mo(d,p)})}else(h!==1||p!==1)&&v.push(i(v)+"scale("+h+","+p+")")}return function(c,d){var h=[],p=[];return c=e(c),d=e(d),a(c.translateX,c.translateY,d.translateX,d.translateY,h,p),o(c.rotate,d.rotate,h,p),l(c.skewX,d.skewX,h,p),u(c.scaleX,c.scaleY,d.scaleX,d.scaleY,h,p),c=d=null,function(v){for(var $=-1,S=p.length,g;++$<S;)h[(g=p[$]).i]=g.x(v);return h.join("")}}}var aSe=Hee(nSe,"px, ","px)","deg)"),oSe=Hee(iSe,", ",")",")"),lSe=1e-12;function PB(e){return((e=Math.exp(e))+1/e)/2}function sSe(e){return((e=Math.exp(e))-1/e)/2}function uSe(e){return((e=Math.exp(2*e))-1)/(e+1)}const cSe=function e(t,r,n){function i(a,o){var l=a[0],u=a[1],c=a[2],d=o[0],h=o[1],p=o[2],v=d-l,$=h-u,S=v*v+$*$,g,b;if(S<lSe)b=Math.log(p/c)/t,g=function(U){return[l+U*v,u+U*$,c*Math.exp(t*U*b)]};else{var _=Math.sqrt(S),E=(p*p-c*c+n*S)/(2*c*r*_),A=(p*p-c*c-n*S)/(2*p*r*_),M=Math.log(Math.sqrt(E*E+1)-E),N=Math.log(Math.sqrt(A*A+1)-A);b=(N-M)/t,g=function(U){var I=U*b,j=PB(M),he=c/(r*_)*(j*uSe(t*I+M)-sSe(M));return[l+he*v,u+he*$,c*j/PB(t*I+M)]}}return g.duration=b*1e3*t/Math.SQRT2,g}return i.rho=function(a){var o=Math.max(.001,+a),l=o*o,u=l*l;return e(o,l,u)},i}(Math.SQRT2,2,4);function Gee(e){return function(t,r){var n=e((t=NT(t)).h,(r=NT(r)).h),i=li(t.s,r.s),a=li(t.l,r.l),o=li(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 fSe=Gee(L2);var dSe=Gee(li);function pSe(e,t){var r=li((e=LT(e)).l,(t=LT(t)).l),n=li(e.a,t.a),i=li(e.b,t.b),a=li(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 Wee(e){return function(t,r){var n=e((t=DT(t)).h,(r=DT(r)).h),i=li(t.c,r.c),a=li(t.l,r.l),o=li(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 hSe=Wee(L2);var vSe=Wee(li);function Vee(e){return function t(r){r=+r;function n(i,a){var o=e((i=BT(i)).h,(a=BT(a)).h),l=li(i.s,a.s),u=li(i.l,a.l),c=li(i.opacity,a.opacity);return function(d){return i.h=o(d),i.s=l(d),i.l=u(Math.pow(d,r)),i.opacity=c(d),i+""}}return n.gamma=t,n}(1)}const mSe=Vee(L2);var gSe=Vee(li);function ySe(e,t){t===void 0&&(t=e,e=D2);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 bSe(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r}const $Se=Object.freeze(Object.defineProperty({__proto__:null,interpolate:D2,interpolateArray:Q8e,interpolateBasis:Iee,interpolateBasisClosed:kee,interpolateCubehelix:mSe,interpolateCubehelixLong:gSe,interpolateDate:Bee,interpolateDiscrete:eSe,interpolateHcl:hSe,interpolateHclLong:vSe,interpolateHsl:fSe,interpolateHslLong:dSe,interpolateHue:tSe,interpolateLab:pSe,interpolateNumber:Mo,interpolateNumberArray:LO,interpolateObject:zee,interpolateRgb:zT,interpolateRgbBasis:Y8e,interpolateRgbBasisClosed:X8e,interpolateRound:rSe,interpolateString:Uee,interpolateTransformCss:aSe,interpolateTransformSvg:oSe,interpolateZoom:cSe,piecewise:ySe,quantize:bSe},Symbol.toStringTag,{value:"Module"})),HEe=bc($Se);var xSe="Expected a function",Kee="__lodash_hash_undefined__",qee=1/0,wSe=9007199254740991,_Se="[object Function]",SSe="[object GeneratorFunction]",ESe="[object Symbol]",ASe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,CSe=/^\w*$/,TSe=/^\./,PSe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,MSe=/[\\^$.*+?()[\]{}|]/g,OSe=/\\(\\)?/g,RSe=/^\[object .+?Constructor\]$/,ISe=/^(?:0|[1-9]\d*)$/,kSe=typeof ir=="object"&&ir&&ir.Object===Object&&ir,FSe=typeof self=="object"&&self&&self.Object===Object&&self,DO=kSe||FSe||Function("return this")();function NSe(e,t){return e==null?void 0:e[t]}function LSe(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var DSe=Array.prototype,BSe=Function.prototype,Yee=Object.prototype,c5=DO["__core-js_shared__"],MB=function(){var e=/[^.]+$/.exec(c5&&c5.keys&&c5.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Xee=BSe.toString,B2=Yee.hasOwnProperty,Qee=Yee.toString,zSe=RegExp("^"+Xee.call(B2).replace(MSe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),OB=DO.Symbol,USe=DSe.splice,jSe=Zee(DO,"Map"),fm=Zee(Object,"create"),RB=OB?OB.prototype:void 0,IB=RB?RB.toString:void 0;function gc(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 HSe(){this.__data__=fm?fm(null):{}}function GSe(e){return this.has(e)&&delete this.__data__[e]}function WSe(e){var t=this.__data__;if(fm){var r=t[e];return r===Kee?void 0:r}return B2.call(t,e)?t[e]:void 0}function VSe(e){var t=this.__data__;return fm?t[e]!==void 0:B2.call(t,e)}function KSe(e,t){var r=this.__data__;return r[e]=fm&&t===void 0?Kee:t,this}gc.prototype.clear=HSe;gc.prototype.delete=GSe;gc.prototype.get=WSe;gc.prototype.has=VSe;gc.prototype.set=KSe;function sp(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 qSe(){this.__data__=[]}function YSe(e){var t=this.__data__,r=z2(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():USe.call(t,r,1),!0}function XSe(e){var t=this.__data__,r=z2(t,e);return r<0?void 0:t[r][1]}function QSe(e){return z2(this.__data__,e)>-1}function ZSe(e,t){var r=this.__data__,n=z2(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}sp.prototype.clear=qSe;sp.prototype.delete=YSe;sp.prototype.get=XSe;sp.prototype.has=QSe;sp.prototype.set=ZSe;function Nc(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 JSe(){this.__data__={hash:new gc,map:new(jSe||sp),string:new gc}}function e6e(e){return U2(this,e).delete(e)}function t6e(e){return U2(this,e).get(e)}function r6e(e){return U2(this,e).has(e)}function n6e(e,t){return U2(this,e).set(e,t),this}Nc.prototype.clear=JSe;Nc.prototype.delete=e6e;Nc.prototype.get=t6e;Nc.prototype.has=r6e;Nc.prototype.set=n6e;function i6e(e,t,r){var n=e[t];(!(B2.call(e,t)&&Jee(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function z2(e,t){for(var r=e.length;r--;)if(Jee(e[r][0],t))return r;return-1}function a6e(e){if(!gb(e)||d6e(e))return!1;var t=m6e(e)||LSe(e)?zSe:RSe;return t.test(v6e(e))}function o6e(e,t,r,n){if(!gb(e))return e;t=c6e(t,e)?[t]:s6e(t);for(var i=-1,a=t.length,o=a-1,l=e;l!=null&&++i<a;){var u=h6e(t[i]),c=r;if(i!=o){var d=l[u];c=n?n(d,u,l):void 0,c===void 0&&(c=gb(d)?d:u6e(t[i+1])?[]:{})}i6e(l,u,c),l=l[u]}return e}function l6e(e){if(typeof e=="string")return e;if(zO(e))return IB?IB.call(e):"";var t=e+"";return t=="0"&&1/e==-qee?"-0":t}function s6e(e){return ete(e)?e:p6e(e)}function U2(e,t){var r=e.__data__;return f6e(t)?r[typeof t=="string"?"string":"hash"]:r.map}function Zee(e,t){var r=NSe(e,t);return a6e(r)?r:void 0}function u6e(e,t){return t=t??wSe,!!t&&(typeof e=="number"||ISe.test(e))&&e>-1&&e%1==0&&e<t}function c6e(e,t){if(ete(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||zO(e)?!0:CSe.test(e)||!ASe.test(e)||t!=null&&e in Object(t)}function f6e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function d6e(e){return!!MB&&MB in e}var p6e=BO(function(e){e=y6e(e);var t=[];return TSe.test(e)&&t.push(""),e.replace(PSe,function(r,n,i,a){t.push(i?a.replace(OSe,"$1"):n||r)}),t});function h6e(e){if(typeof e=="string"||zO(e))return e;var t=e+"";return t=="0"&&1/e==-qee?"-0":t}function v6e(e){if(e!=null){try{return Xee.call(e)}catch{}try{return e+""}catch{}}return""}function BO(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(xSe);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(BO.Cache||Nc),r}BO.Cache=Nc;function Jee(e,t){return e===t||e!==e&&t!==t}var ete=Array.isArray;function m6e(e){var t=gb(e)?Qee.call(e):"";return t==_Se||t==SSe}function gb(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function g6e(e){return!!e&&typeof e=="object"}function zO(e){return typeof e=="symbol"||g6e(e)&&Qee.call(e)==ESe}function y6e(e){return e==null?"":l6e(e)}function b6e(e,t,r){return e==null?e:o6e(e,t,r)}var $6e=b6e;const GEe=$a($6e);/*! js-cookie v3.0.5 | MIT */function _1(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 x6e={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 HT(e,t){function r(i,a,o){if(!(typeof document>"u")){o=_1({},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 u in o)o[u]&&(l+="; "+u,o[u]!==!0&&(l+="="+o[u].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 u=a[l].split("="),c=u.slice(1).join("=");try{var d=decodeURIComponent(u[0]);if(o[d]=e.read(c,d),i===d)break}catch{}}return i?o[i]:o}}return Object.create({set:r,get:n,remove:function(i,a){r(i,"",_1({},a,{expires:-1}))},withAttributes:function(i){return HT(this.converter,_1({},this.attributes,i))},withConverter:function(i){return HT(_1({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var WEe=HT(x6e,{path:"/"});var Zm={},j2={},tte={};(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})(tte);var rte={},yc={};yc.__esModule=!0;yc.InternalServerError=yc.OK=void 0;yc.OK=200;yc.InternalServerError=500;(function(e){var t=ir&&ir.__spreadArray||function(l,u,c){if(c||arguments.length===2)for(var d=0,h=u.length,p;d<h;d++)(p||!(d in u))&&(p||(p=Array.prototype.slice.call(u,0,d)),p[d]=u[d]);return l.concat(p||Array.prototype.slice.call(u))};e.__esModule=!0;var r=xT,n=xT,i=yc,a=function(l){for(var u=[],c=1;c<arguments.length;c++)u[c-1]=arguments[c];return typeof l!="string"?{on:function(d,h){h(new Error("URL must be a string."))}}:l.indexOf("https://")===0?n.get.apply(n,t([l],u,!1)):r.get.apply(r,t([l],u,!1))},o=function(l){return new Promise(function(u,c){a(l,function(d){if(d.statusCode!==i.OK)return c(new Error("HTTP Error Response: "+d.statusCode+" "+d.statusMessage+" ("+l+")"));var h=null;d.on("data",function(p){if(h===null){h=p;return}h+=p}),d.on("end",function(){return u(h)})}).on("error",c)})};e.default=o})(rte);var nte={},Is={};Is.__esModule=!0;Is.DONE=Is.OPENED=Is.UNSENT=void 0;Is.UNSENT=0;Is.OPENED=1;Is.DONE=4;(function(e){e.__esModule=!0;var t=yc,r=Is,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})(nte);j2.__esModule=!0;j2.createLoadRemoteModule=void 0;var w6e=tte,_6e=rte,S6e=nte,E6e=typeof window<"u"&&typeof window.document<"u",A6e=E6e?S6e.default:_6e.default,C6e=function(e){throw new Error("Could not require '"+e+"'. The 'requires' function was not provided.")},T6e=function(e){var t=e===void 0?{}:e,r=t.requires,n=t.fetcher,i=r||C6e,a=n||A6e;return(0,w6e.default)(function(o){return a(o).then(function(l){var u={},c={exports:u},d=new Function("require","module","exports",l);return d(i,c,u),c.exports})})};j2.createLoadRemoteModule=T6e;var H2={};H2.__esModule=!0;H2.createRequires=void 0;var P6e=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]}};H2.createRequires=P6e;(function(e){var t=ir&&ir.__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=j2;t(e,r,"createLoadRemoteModule","default");var n=H2;t(e,n,"createRequires")})(Zm);const VEe=$a(Zm);var M6e={},Jm={},O6e=ir&&ir.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Jm.__esModule=!0;Jm.createUseRemoteComponent=void 0;var kB=z,R6e=O6e(Zm),I6e=function(e){var t=R6e.default(e),r=function(n,i){i===void 0&&(i="default");var a=kB.useState({loading:!0,err:void 0,component:void 0}),o=a[0],l=o.loading,u=o.err,c=o.component,d=a[1];return kB.useEffect(function(){var h=d;return h({loading:!0,err:void 0,component:void 0}),t(n).then(function(p){return h({loading:!1,err:void 0,component:p[i]})}).catch(function(p){return h({loading:!1,err:p,component:void 0})}),function(){h=function(){}}},[n]),[l,u,c]};return r};Jm.createUseRemoteComponent=I6e;var e0={};e0.__esModule=!0;e0.createRequires=void 0;var k6e=function(e){return typeof e=="function"?e():e||{}},F6e=function(e){var t=!1;return function(r){if(t||(e=k6e(e),t=!0),!(r in e))throw new Error("Could not require '"+r+"'. '"+r+"' does not exist in dependencies.");return e[r]}};e0.createRequires=F6e;var UO={};(function(e){var t=ir&&ir.__assign||function(){return t=Object.assign||function(o){for(var l,u=1,c=arguments.length;u<c;u++){l=arguments[u];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 u=t({},l);return u["remote-component.config.js"]={resolve:u},u};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})(UO);var t0={},GT=ir&&ir.__assign||function(){return GT=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},GT.apply(this,arguments)},N6e=ir&&ir.__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},L6e=ir&&ir.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t0.__esModule=!0;t0.createRemoteComponent=void 0;var FB=L6e(z),D6e=Jm,B6e=function(e){var t=D6e.createUseRemoteComponent(e),r=function(n){var i=n.url,a=n.fallback,o=a===void 0?null:a,l=n.render,u=N6e(n,["url","fallback","render"]),c=t(i),d=c[0],h=c[1],p=c[2];return d?o:l?l({err:h,Component:p}):h||!p?FB.default.createElement("div",null,"Unknown Error: ",(h||"UNKNOWN").toString()):FB.default.createElement(p,GT({},u))};return r};t0.createRemoteComponent=B6e;var G2={};G2.__esModule=!0;G2.RemoteComponent=void 0;var z6e=t0,U6e=e0,j6e=UO,H6e=U6e.createRequires(j6e.getDependencies);G2.RemoteComponent=z6e.createRemoteComponent({requires:H6e});var W2={},G6e=ir&&ir.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};W2.__esModule=!0;W2.fetchRemoteComponent=void 0;var W6e=G6e(Zm),V6e=function(e){var t=e.requires,r=e.fetcher,n=e.url,i=e.imports,a=i===void 0?"default":i,o=W6e.default({requires:t,fetcher:r});return o(n).then(function(l){var u=l&&l[a];if(!u)throw new Error("Could not load '"+a+"' from '"+n+"'.");return u})};W2.fetchRemoteComponent=V6e;var V2={},K6e=ir&&ir.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};V2.__esModule=!0;V2.getServerSideProps=void 0;var q6e=K6e(Zm),Y6e=function(e){var t=e.url,r=e.requires,n=e.context,i=e.imports,a=i===void 0?"default":i,o=q6e.default({requires:r});return o(t).then(function(l){var u=l&&l[a]&&l[a].getServerSideProps;return typeof u=="function"?u(n):{}})};V2.getServerSideProps=Y6e;(function(e){var t=ir&&ir.__createBinding||(Object.create?function(c,d,h,p){p===void 0&&(p=h),Object.defineProperty(c,p,{enumerable:!0,get:function(){return d[h]}})}:function(c,d,h,p){p===void 0&&(p=h),c[p]=d[h]});e.__esModule=!0,e.getServerSideProps=e.fetchRemoteComponent=e.RemoteComponent=e.createRemoteComponent=e.getDependencies=e.createRequires=e.createUseRemoteComponent=void 0;var r=Jm;t(e,r,"createUseRemoteComponent");var n=e0;t(e,n,"createRequires");var i=UO;t(e,i,"getDependencies");var a=t0;t(e,a,"createRemoteComponent");var o=G2;t(e,o,"RemoteComponent");var l=W2;t(e,l,"fetchRemoteComponent");var u=V2;t(e,u,"getServerSideProps")})(M6e);export{sEe as $,jEe as A,HEe as B,Q6e as C,eEe as D,hEe as E,Zb as F,D as G,GEe as H,wEe as I,Dn as J,fEe as K,pEe as L,Ub as M,qj as N,tp as O,RM as P,dEe as Q,Zf as R,lEe as S,Z6e as T,oEe as U,aEe as V,nEe as W,rEe as X,J6e as Y,vEe as Z,Ar as _,SEe as a,tEe as a0,U0e as a1,bEe as a2,yEe as a3,T0e as a4,$Ee as a5,xEe as a6,pne as a7,iEe as a8,cEe as a9,uEe as aa,WEe as ab,mEe as ac,gEe as ad,Zm as ae,VEe as af,M6e as ag,EEe as b,hJ as c,_Ee as d,OEe as e,AEe as f,TEe as g,MEe as h,PEe as i,IEe as j,kEe as k,qxe as l,REe as m,FEe as n,NEe as o,Qae as p,A2 as q,z as r,LEe as s,CEe as t,fwe as u,q_e as v,DEe as w,BEe as x,zEe as y,UEe as z};
1176
+ //# sourceMappingURL=vendor-7af3c298.js.map