hardpy 0.13.0__py3-none-any.whl → 0.14.0__py3-none-any.whl
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.
- hardpy/cli/cli.py +2 -0
- hardpy/common/config.py +5 -0
- hardpy/hardpy_panel/frontend/dist/assets/{allPaths-Cg7WZDXy.js → allPaths-CV5wjLMB.js} +1 -1
- hardpy/hardpy_panel/frontend/dist/assets/{allPathsLoader-C79wUwqR.js → allPathsLoader-JIzW_pSb.js} +2 -2
- hardpy/hardpy_panel/frontend/dist/assets/browser-ponyfill-CccdstaD.js +2 -0
- hardpy/hardpy_panel/frontend/dist/assets/index-6RIgWzcZ.js +790 -0
- hardpy/hardpy_panel/frontend/dist/assets/{splitPathsBySizeLoader-hWuLTMwD.js → splitPathsBySizeLoader-DkZadBcn.js} +1 -1
- hardpy/hardpy_panel/frontend/dist/index.html +1 -1
- hardpy/hardpy_panel/frontend/dist/locales/de/translation.json +60 -0
- hardpy/hardpy_panel/frontend/dist/locales/en/translation.json +60 -0
- hardpy/hardpy_panel/frontend/dist/locales/es/translation.json +60 -0
- hardpy/hardpy_panel/frontend/dist/locales/fr/translation.json +60 -0
- hardpy/hardpy_panel/frontend/dist/locales/ja/translation.json +60 -0
- hardpy/hardpy_panel/frontend/dist/locales/ru/translation.json +60 -0
- hardpy/hardpy_panel/frontend/dist/locales/zh/translation.json +60 -0
- hardpy/pytest_hardpy/result/report_loader/stand_cloud_loader.py +8 -2
- {hardpy-0.13.0.dist-info → hardpy-0.14.0.dist-info}/METADATA +1 -1
- {hardpy-0.13.0.dist-info → hardpy-0.14.0.dist-info}/RECORD +21 -13
- hardpy/hardpy_panel/frontend/dist/assets/index-De5CJ3kt.js +0 -790
- {hardpy-0.13.0.dist-info → hardpy-0.14.0.dist-info}/WHEEL +0 -0
- {hardpy-0.13.0.dist-info → hardpy-0.14.0.dist-info}/entry_points.txt +0 -0
- {hardpy-0.13.0.dist-info → hardpy-0.14.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,790 @@
|
|
|
1
|
+
function oR(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function oo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function $M(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var Vw={exports:{}},ym={},Ww={exports:{}},Lt={},Vx;function jM(){if(Vx)return Lt;Vx=1;/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.iterator;function v($){return $===null||typeof $!="object"?null:($=m&&$[m]||$["@@iterator"],typeof $=="function"?$:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,A={};function C($,B,Y){this.props=$,this.context=B,this.refs=A,this.updater=Y||S}C.prototype.isReactComponent={},C.prototype.setState=function($,B){if(typeof $!="object"&&typeof $!="function"&&$!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,$,B,"setState")},C.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function E(){}E.prototype=C.prototype;function k($,B,Y){this.props=$,this.context=B,this.refs=A,this.updater=Y||S}var T=k.prototype=new E;T.constructor=k,b(T,C.prototype),T.isPureReactComponent=!0;var x=Array.isArray,w=Object.prototype.hasOwnProperty,R={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function F($,B,Y){var ae,le={},ie=null,q=null;if(B!=null)for(ae in B.ref!==void 0&&(q=B.ref),B.key!==void 0&&(ie=""+B.key),B)w.call(B,ae)&&!I.hasOwnProperty(ae)&&(le[ae]=B[ae]);var se=arguments.length-2;if(se===1)le.children=Y;else if(1<se){for(var ee=Array(se),Ce=0;Ce<se;Ce++)ee[Ce]=arguments[Ce+2];le.children=ee}if($&&$.defaultProps)for(ae in se=$.defaultProps,se)le[ae]===void 0&&(le[ae]=se[ae]);return{$$typeof:t,type:$,key:ie,ref:q,props:le,_owner:R.current}}function U($,B){return{$$typeof:t,type:$.type,key:B,ref:$.ref,props:$.props,_owner:$._owner}}function V($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function K($){var B={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(Y){return B[Y]})}var Z=/\/+/g;function J($,B){return typeof $=="object"&&$!==null&&$.key!=null?K(""+$.key):B.toString(36)}function oe($,B,Y,ae,le){var ie=typeof $;(ie==="undefined"||ie==="boolean")&&($=null);var q=!1;if($===null)q=!0;else switch(ie){case"string":case"number":q=!0;break;case"object":switch($.$$typeof){case t:case e:q=!0}}if(q)return q=$,le=le(q),$=ae===""?"."+J(q,0):ae,x(le)?(Y="",$!=null&&(Y=$.replace(Z,"$&/")+"/"),oe(le,B,Y,"",function(Ce){return Ce})):le!=null&&(V(le)&&(le=U(le,Y+(!le.key||q&&q.key===le.key?"":(""+le.key).replace(Z,"$&/")+"/")+$)),B.push(le)),1;if(q=0,ae=ae===""?".":ae+":",x($))for(var se=0;se<$.length;se++){ie=$[se];var ee=ae+J(ie,se);q+=oe(ie,B,Y,ee,le)}else if(ee=v($),typeof ee=="function")for($=ee.call($),se=0;!(ie=$.next()).done;)ie=ie.value,ee=ae+J(ie,se++),q+=oe(ie,B,Y,ee,le);else if(ie==="object")throw B=String($),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.");return q}function fe($,B,Y){if($==null)return $;var ae=[],le=0;return oe($,ae,"","",function(ie){return B.call(Y,ie,le++)}),ae}function Q($){if($._status===-1){var B=$._result;B=B(),B.then(function(Y){($._status===0||$._status===-1)&&($._status=1,$._result=Y)},function(Y){($._status===0||$._status===-1)&&($._status=2,$._result=Y)}),$._status===-1&&($._status=0,$._result=B)}if($._status===1)return $._result.default;throw $._result}var re={current:null},z={transition:null},W={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:z,ReactCurrentOwner:R};return Lt.Children={map:fe,forEach:function($,B,Y){fe($,function(){B.apply(this,arguments)},Y)},count:function($){var B=0;return fe($,function(){B++}),B},toArray:function($){return fe($,function(B){return B})||[]},only:function($){if(!V($))throw Error("React.Children.only expected to receive a single React element child.");return $}},Lt.Component=C,Lt.Fragment=n,Lt.Profiler=i,Lt.PureComponent=k,Lt.StrictMode=r,Lt.Suspense=f,Lt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,Lt.cloneElement=function($,B,Y){if($==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+$+".");var ae=b({},$.props),le=$.key,ie=$.ref,q=$._owner;if(B!=null){if(B.ref!==void 0&&(ie=B.ref,q=R.current),B.key!==void 0&&(le=""+B.key),$.type&&$.type.defaultProps)var se=$.type.defaultProps;for(ee in B)w.call(B,ee)&&!I.hasOwnProperty(ee)&&(ae[ee]=B[ee]===void 0&&se!==void 0?se[ee]:B[ee])}var ee=arguments.length-2;if(ee===1)ae.children=Y;else if(1<ee){se=Array(ee);for(var Ce=0;Ce<ee;Ce++)se[Ce]=arguments[Ce+2];ae.children=se}return{$$typeof:t,type:$.type,key:le,ref:ie,props:ae,_owner:q}},Lt.createContext=function($){return $={$$typeof:l,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},$.Provider={$$typeof:o,_context:$},$.Consumer=$},Lt.createElement=F,Lt.createFactory=function($){var B=F.bind(null,$);return B.type=$,B},Lt.createRef=function(){return{current:null}},Lt.forwardRef=function($){return{$$typeof:c,render:$}},Lt.isValidElement=V,Lt.lazy=function($){return{$$typeof:g,_payload:{_status:-1,_result:$},_init:Q}},Lt.memo=function($,B){return{$$typeof:h,type:$,compare:B===void 0?null:B}},Lt.startTransition=function($){var B=z.transition;z.transition={};try{$()}finally{z.transition=B}},Lt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Lt.useCallback=function($,B){return re.current.useCallback($,B)},Lt.useContext=function($){return re.current.useContext($)},Lt.useDebugValue=function(){},Lt.useDeferredValue=function($){return re.current.useDeferredValue($)},Lt.useEffect=function($,B){return re.current.useEffect($,B)},Lt.useId=function(){return re.current.useId()},Lt.useImperativeHandle=function($,B,Y){return re.current.useImperativeHandle($,B,Y)},Lt.useInsertionEffect=function($,B){return re.current.useInsertionEffect($,B)},Lt.useLayoutEffect=function($,B){return re.current.useLayoutEffect($,B)},Lt.useMemo=function($,B){return re.current.useMemo($,B)},Lt.useReducer=function($,B,Y){return re.current.useReducer($,B,Y)},Lt.useRef=function($){return re.current.useRef($)},Lt.useState=function($){return re.current.useState($)},Lt.useSyncExternalStore=function($,B,Y){return re.current.useSyncExternalStore($,B,Y)},Lt.useTransition=function(){return re.current.useTransition()},Lt.version="18.2.0",Lt}var Wx;function a_(){return Wx||(Wx=1,Ww.exports=jM()),Ww.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Gx;function zM(){if(Gx)return ym;Gx=1;var t=a_(),e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function l(c,f,h){var g,m={},v=null,S=null;h!==void 0&&(v=""+h),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(S=f.ref);for(g in f)r.call(f,g)&&!o.hasOwnProperty(g)&&(m[g]=f[g]);if(c&&c.defaultProps)for(g in f=c.defaultProps,f)m[g]===void 0&&(m[g]=f[g]);return{$$typeof:e,type:c,key:v,ref:S,props:m,_owner:i.current}}return ym.Fragment=n,ym.jsx=l,ym.jsxs=l,ym}var Bx;function HM(){return Bx||(Bx=1,Vw.exports=zM()),Vw.exports}var ve=HM(),N=a_();const je=oo(N),s_=oR({__proto__:null,default:je},[N]);var m0={},Gw={exports:{}},Qi={},Bw={exports:{}},Kw={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Kx;function qM(){return Kx||(Kx=1,function(t){function e(z,W){var $=z.length;z.push(W);e:for(;0<$;){var B=$-1>>>1,Y=z[B];if(0<i(Y,W))z[B]=W,z[$]=Y,$=B;else break e}}function n(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var W=z[0],$=z.pop();if($!==W){z[0]=$;e:for(var B=0,Y=z.length,ae=Y>>>1;B<ae;){var le=2*(B+1)-1,ie=z[le],q=le+1,se=z[q];if(0>i(ie,$))q<Y&&0>i(se,ie)?(z[B]=se,z[q]=$,B=q):(z[B]=ie,z[le]=$,B=le);else if(q<Y&&0>i(se,$))z[B]=se,z[q]=$,B=q;else break e}}return W}function i(z,W){var $=z.sortIndex-W.sortIndex;return $!==0?$:z.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}var f=[],h=[],g=1,m=null,v=3,S=!1,b=!1,A=!1,C=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(z){for(var W=n(h);W!==null;){if(W.callback===null)r(h);else if(W.startTime<=z)r(h),W.sortIndex=W.expirationTime,e(f,W);else break;W=n(h)}}function x(z){if(A=!1,T(z),!b)if(n(f)!==null)b=!0,Q(w);else{var W=n(h);W!==null&&re(x,W.startTime-z)}}function w(z,W){b=!1,A&&(A=!1,E(F),F=-1),S=!0;var $=v;try{for(T(W),m=n(f);m!==null&&(!(m.expirationTime>W)||z&&!K());){var B=m.callback;if(typeof B=="function"){m.callback=null,v=m.priorityLevel;var Y=B(m.expirationTime<=W);W=t.unstable_now(),typeof Y=="function"?m.callback=Y:m===n(f)&&r(f),T(W)}else r(f);m=n(f)}if(m!==null)var ae=!0;else{var le=n(h);le!==null&&re(x,le.startTime-W),ae=!1}return ae}finally{m=null,v=$,S=!1}}var R=!1,I=null,F=-1,U=5,V=-1;function K(){return!(t.unstable_now()-V<U)}function Z(){if(I!==null){var z=t.unstable_now();V=z;var W=!0;try{W=I(!0,z)}finally{W?J():(R=!1,I=null)}}else R=!1}var J;if(typeof k=="function")J=function(){k(Z)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,fe=oe.port2;oe.port1.onmessage=Z,J=function(){fe.postMessage(null)}}else J=function(){C(Z,0)};function Q(z){I=z,R||(R=!0,J())}function re(z,W){F=C(function(){z(t.unstable_now())},W)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(z){z.callback=null},t.unstable_continueExecution=function(){b||S||(b=!0,Q(w))},t.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<z?Math.floor(1e3/z):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_getFirstCallbackNode=function(){return n(f)},t.unstable_next=function(z){switch(v){case 1:case 2:case 3:var W=3;break;default:W=v}var $=v;v=W;try{return z()}finally{v=$}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(z,W){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var $=v;v=z;try{return W()}finally{v=$}},t.unstable_scheduleCallback=function(z,W,$){var B=t.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?B+$:B):$=B,z){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=$+Y,z={id:g++,callback:W,priorityLevel:z,startTime:$,expirationTime:Y,sortIndex:-1},$>B?(z.sortIndex=$,e(h,z),n(f)===null&&z===n(h)&&(A?(E(F),F=-1):A=!0,re(x,$-B))):(z.sortIndex=Y,e(f,z),b||S||(b=!0,Q(w))),z},t.unstable_shouldYield=K,t.unstable_wrapCallback=function(z){var W=v;return function(){var $=v;v=W;try{return z.apply(this,arguments)}finally{v=$}}}}(Kw)),Kw}var Xx;function UM(){return Xx||(Xx=1,Bw.exports=qM()),Bw.exports}/**
|
|
26
|
+
* @license React
|
|
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 Yx;function VM(){if(Yx)return Qi;Yx=1;var t=a_(),e=UM();function n(a){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+a,p=1;p<arguments.length;p++)s+="&args[]="+encodeURIComponent(arguments[p]);return"Minified React error #"+a+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function o(a,s){l(a,s),l(a+"Capture",s)}function l(a,s){for(i[a]=s,a=0;a<s.length;a++)r.add(s[a])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,h=/^[: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]*$/,g={},m={};function v(a){return f.call(m,a)?!0:f.call(g,a)?!1:h.test(a)?m[a]=!0:(g[a]=!0,!1)}function S(a,s,p,y){if(p!==null&&p.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return y?!1:p!==null?!p.acceptsBooleans:(a=a.toLowerCase().slice(0,5),a!=="data-"&&a!=="aria-");default:return!1}}function b(a,s,p,y){if(s===null||typeof s>"u"||S(a,s,p,y))return!0;if(y)return!1;if(p!==null)switch(p.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function A(a,s,p,y,O,L,H){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=y,this.attributeNamespace=O,this.mustUseProperty=p,this.propertyName=a,this.type=s,this.sanitizeURL=L,this.removeEmptyString=H}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){C[a]=new A(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var s=a[0];C[s]=new A(s,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){C[a]=new A(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){C[a]=new A(a,2,!1,a,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(a){C[a]=new A(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){C[a]=new A(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){C[a]=new A(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){C[a]=new A(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){C[a]=new A(a,5,!1,a.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function k(a){return a[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(a){var s=a.replace(E,k);C[s]=new A(s,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var s=a.replace(E,k);C[s]=new A(s,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var s=a.replace(E,k);C[s]=new A(s,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){C[a]=new A(a,1,!1,a.toLowerCase(),null,!1,!1)}),C.xlinkHref=new A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){C[a]=new A(a,1,!1,a.toLowerCase(),null,!0,!0)});function T(a,s,p,y){var O=C.hasOwnProperty(s)?C[s]:null;(O!==null?O.type!==0:y||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(b(s,p,O,y)&&(p=null),y||O===null?v(s)&&(p===null?a.removeAttribute(s):a.setAttribute(s,""+p)):O.mustUseProperty?a[O.propertyName]=p===null?O.type===3?!1:"":p:(s=O.attributeName,y=O.attributeNamespace,p===null?a.removeAttribute(s):(O=O.type,p=O===3||O===4&&p===!0?"":""+p,y?a.setAttributeNS(y,s,p):a.setAttribute(s,p))))}var x=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),R=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),K=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),J=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),fe=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),re=Symbol.for("react.offscreen"),z=Symbol.iterator;function W(a){return a===null||typeof a!="object"?null:(a=z&&a[z]||a["@@iterator"],typeof a=="function"?a:null)}var $=Object.assign,B;function Y(a){if(B===void 0)try{throw Error()}catch(p){var s=p.stack.trim().match(/\n( *(at )?)/);B=s&&s[1]||""}return`
|
|
34
|
+
`+B+a}var ae=!1;function le(a,s){if(!a||ae)return"";ae=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(_e){var y=_e}Reflect.construct(a,[],s)}else{try{s.call()}catch(_e){y=_e}a.call(s.prototype)}else{try{throw Error()}catch(_e){y=_e}a()}}catch(_e){if(_e&&y&&typeof _e.stack=="string"){for(var O=_e.stack.split(`
|
|
35
|
+
`),L=y.stack.split(`
|
|
36
|
+
`),H=O.length-1,te=L.length-1;1<=H&&0<=te&&O[H]!==L[te];)te--;for(;1<=H&&0<=te;H--,te--)if(O[H]!==L[te]){if(H!==1||te!==1)do if(H--,te--,0>te||O[H]!==L[te]){var ue=`
|
|
37
|
+
`+O[H].replace(" at new "," at ");return a.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",a.displayName)),ue}while(1<=H&&0<=te);break}}}finally{ae=!1,Error.prepareStackTrace=p}return(a=a?a.displayName||a.name:"")?Y(a):""}function ie(a){switch(a.tag){case 5:return Y(a.type);case 16:return Y("Lazy");case 13:return Y("Suspense");case 19:return Y("SuspenseList");case 0:case 2:case 15:return a=le(a.type,!1),a;case 11:return a=le(a.type.render,!1),a;case 1:return a=le(a.type,!0),a;default:return""}}function q(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case I:return"Fragment";case R:return"Portal";case U:return"Profiler";case F:return"StrictMode";case J:return"Suspense";case oe:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case K:return(a.displayName||"Context")+".Consumer";case V:return(a._context.displayName||"Context")+".Provider";case Z:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case fe:return s=a.displayName||null,s!==null?s:q(a.type)||"Memo";case Q:s=a._payload,a=a._init;try{return q(a(s))}catch{}}return null}function se(a){var s=a.type;switch(a.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=s.render,a=a.displayName||a.name||"",s.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return q(s);case 8:return s===F?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function ee(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Ce(a){var s=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function xe(a){var s=Ce(a)?"checked":"value",p=Object.getOwnPropertyDescriptor(a.constructor.prototype,s),y=""+a[s];if(!a.hasOwnProperty(s)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var O=p.get,L=p.set;return Object.defineProperty(a,s,{configurable:!0,get:function(){return O.call(this)},set:function(H){y=""+H,L.call(this,H)}}),Object.defineProperty(a,s,{enumerable:p.enumerable}),{getValue:function(){return y},setValue:function(H){y=""+H},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function Re(a){a._valueTracker||(a._valueTracker=xe(a))}function Me(a){if(!a)return!1;var s=a._valueTracker;if(!s)return!0;var p=s.getValue(),y="";return a&&(y=Ce(a)?a.checked?"true":"false":a.value),a=y,a!==p?(s.setValue(a),!0):!1}function qe(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}function Je(a,s){var p=s.checked;return $({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:p??a._wrapperState.initialChecked})}function ye(a,s){var p=s.defaultValue==null?"":s.defaultValue,y=s.checked!=null?s.checked:s.defaultChecked;p=ee(s.value!=null?s.value:p),a._wrapperState={initialChecked:y,initialValue:p,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function be(a,s){s=s.checked,s!=null&&T(a,"checked",s,!1)}function ke(a,s){be(a,s);var p=ee(s.value),y=s.type;if(p!=null)y==="number"?(p===0&&a.value===""||a.value!=p)&&(a.value=""+p):a.value!==""+p&&(a.value=""+p);else if(y==="submit"||y==="reset"){a.removeAttribute("value");return}s.hasOwnProperty("value")?Fe(a,s.type,p):s.hasOwnProperty("defaultValue")&&Fe(a,s.type,ee(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(a.defaultChecked=!!s.defaultChecked)}function Ee(a,s,p){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var y=s.type;if(!(y!=="submit"&&y!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+a._wrapperState.initialValue,p||s===a.value||(a.value=s),a.defaultValue=s}p=a.name,p!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,p!==""&&(a.name=p)}function Fe(a,s,p){(s!=="number"||qe(a.ownerDocument)!==a)&&(p==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+p&&(a.defaultValue=""+p))}var Ae=Array.isArray;function ze(a,s,p,y){if(a=a.options,s){s={};for(var O=0;O<p.length;O++)s["$"+p[O]]=!0;for(p=0;p<a.length;p++)O=s.hasOwnProperty("$"+a[p].value),a[p].selected!==O&&(a[p].selected=O),O&&y&&(a[p].defaultSelected=!0)}else{for(p=""+ee(p),s=null,O=0;O<a.length;O++){if(a[O].value===p){a[O].selected=!0,y&&(a[O].defaultSelected=!0);return}s!==null||a[O].disabled||(s=a[O])}s!==null&&(s.selected=!0)}}function nt(a,s){if(s.dangerouslySetInnerHTML!=null)throw Error(n(91));return $({},s,{value:void 0,defaultValue:void 0,children:""+a._wrapperState.initialValue})}function ct(a,s){var p=s.value;if(p==null){if(p=s.children,s=s.defaultValue,p!=null){if(s!=null)throw Error(n(92));if(Ae(p)){if(1<p.length)throw Error(n(93));p=p[0]}s=p}s==null&&(s=""),p=s}a._wrapperState={initialValue:ee(p)}}function Ge(a,s){var p=ee(s.value),y=ee(s.defaultValue);p!=null&&(p=""+p,p!==a.value&&(a.value=p),s.defaultValue==null&&a.defaultValue!==p&&(a.defaultValue=p)),y!=null&&(a.defaultValue=""+y)}function _t(a){var s=a.textContent;s===a._wrapperState.initialValue&&s!==""&&s!==null&&(a.value=s)}function Kt(a){switch(a){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 jn(a,s){return a==null||a==="http://www.w3.org/1999/xhtml"?Kt(s):a==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":a}var Qt,Zr=function(a){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,p,y,O){MSApp.execUnsafeLocalFunction(function(){return a(s,p,y,O)})}:a}(function(a,s){if(a.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in a)a.innerHTML=s;else{for(Qt=Qt||document.createElement("div"),Qt.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=Qt.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;s.firstChild;)a.appendChild(s.firstChild)}});function ur(a,s){if(s){var p=a.firstChild;if(p&&p===a.lastChild&&p.nodeType===3){p.nodeValue=s;return}}a.textContent=s}var Mr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Xe=["Webkit","ms","Moz","O"];Object.keys(Mr).forEach(function(a){Xe.forEach(function(s){s=s+a.charAt(0).toUpperCase()+a.substring(1),Mr[s]=Mr[a]})});function it(a,s,p){return s==null||typeof s=="boolean"||s===""?"":p||typeof s!="number"||s===0||Mr.hasOwnProperty(a)&&Mr[a]?(""+s).trim():s+"px"}function It(a,s){a=a.style;for(var p in s)if(s.hasOwnProperty(p)){var y=p.indexOf("--")===0,O=it(p,s[p],y);p==="float"&&(p="cssFloat"),y?a.setProperty(p,O):a[p]=O}}var Jn=$({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 mn(a,s){if(s){if(Jn[a]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(n(137,a));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(n(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(n(61))}if(s.style!=null&&typeof s.style!="object")throw Error(n(62))}}function Jr(a,s){if(a.indexOf("-")===-1)return typeof s.is=="string";switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Er=null;function Ao(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Ro=null,Tr=null,Ni=null;function tn(a){if(a=Xa(a)){if(typeof Ro!="function")throw Error(n(280));var s=a.stateNode;s&&(s=Et(s),Ro(a.stateNode,a.type,s))}}function Os(a){Tr?Ni?Ni.push(a):Ni=[a]:Tr=a}function Ol(){if(Tr){var a=Tr,s=Ni;if(Ni=Tr=null,tn(a),s)for(a=0;a<s.length;a++)tn(s[a])}}function on(a,s){return a(s)}function gn(){}var er=!1;function Or(a,s,p){if(er)return a(s,p);er=!0;try{return on(a,s,p)}finally{er=!1,(Tr!==null||Ni!==null)&&(gn(),Ol())}}function mi(a,s){var p=a.stateNode;if(p===null)return null;var y=Et(p);if(y===null)return null;p=y[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(y=!y.disabled)||(a=a.type,y=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!y;break e;default:a=!1}if(a)return null;if(p&&typeof p!="function")throw Error(n(231,s,typeof p));return p}var Pa=!1;if(c)try{var gi={};Object.defineProperty(gi,"passive",{get:function(){Pa=!0}}),window.addEventListener("test",gi,gi),window.removeEventListener("test",gi,gi)}catch{Pa=!1}function As(a,s,p,y,O,L,H,te,ue){var _e=Array.prototype.slice.call(arguments,3);try{s.apply(p,_e)}catch(Pe){this.onError(Pe)}}var Pi=!1,Ir=null,tr=!1,ta=null,ei={onError:function(a){Pi=!0,Ir=a}};function Rf(a,s,p,y,O,L,H,te,ue){Pi=!1,Ir=null,As.apply(ei,arguments)}function Di(a,s,p,y,O,L,H,te,ue){if(Rf.apply(this,arguments),Pi){if(Pi){var _e=Ir;Pi=!1,Ir=null}else throw Error(n(198));tr||(tr=!0,ta=_e)}}function ti(a){var s=a,p=a;if(a.alternate)for(;s.return;)s=s.return;else{a=s;do s=a,(s.flags&4098)!==0&&(p=s.return),a=s.return;while(a)}return s.tag===3?p:null}function kf(a){if(a.tag===13){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function ao(a){if(ti(a)!==a)throw Error(n(188))}function Nf(a){var s=a.alternate;if(!s){if(s=ti(a),s===null)throw Error(n(188));return s!==a?null:a}for(var p=a,y=s;;){var O=p.return;if(O===null)break;var L=O.alternate;if(L===null){if(y=O.return,y!==null){p=y;continue}break}if(O.child===L.child){for(L=O.child;L;){if(L===p)return ao(O),a;if(L===y)return ao(O),s;L=L.sibling}throw Error(n(188))}if(p.return!==y.return)p=O,y=L;else{for(var H=!1,te=O.child;te;){if(te===p){H=!0,p=O,y=L;break}if(te===y){H=!0,y=O,p=L;break}te=te.sibling}if(!H){for(te=L.child;te;){if(te===p){H=!0,p=L,y=O;break}if(te===y){H=!0,y=L,p=O;break}te=te.sibling}if(!H)throw Error(n(189))}}if(p.alternate!==y)throw Error(n(190))}if(p.tag!==3)throw Error(n(188));return p.stateNode.current===p?a:s}function Rs(a){return a=Nf(a),a!==null?ku(a):null}function ku(a){if(a.tag===5||a.tag===6)return a;for(a=a.child;a!==null;){var s=ku(a);if(s!==null)return s;a=a.sibling}return null}var Pf=e.unstable_scheduleCallback,Df=e.unstable_cancelCallback,ip=e.unstable_shouldYield,Al=e.unstable_requestPaint,Ot=e.unstable_now,ko=e.unstable_getCurrentPriorityLevel,Nu=e.unstable_ImmediatePriority,Lf=e.unstable_UserBlockingPriority,Rl=e.unstable_NormalPriority,Mf=e.unstable_LowPriority,Pu=e.unstable_IdlePriority,ks=null,Li=null;function Da(a){if(Li&&typeof Li.onCommitFiberRoot=="function")try{Li.onCommitFiberRoot(ks,a,void 0,(a.current.flags&128)===128)}catch{}}var vi=Math.clz32?Math.clz32:ut,op=Math.log,If=Math.LN2;function ut(a){return a>>>=0,a===0?32:31-(op(a)/If|0)|0}var kt=64,Cn=4194304;function cr(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function at(a,s){var p=a.pendingLanes;if(p===0)return 0;var y=0,O=a.suspendedLanes,L=a.pingedLanes,H=p&268435455;if(H!==0){var te=H&~O;te!==0?y=cr(te):(L&=H,L!==0&&(y=cr(L)))}else H=p&~O,H!==0?y=cr(H):L!==0&&(y=cr(L));if(y===0)return 0;if(s!==0&&s!==y&&(s&O)===0&&(O=y&-y,L=s&-s,O>=L||O===16&&(L&4194240)!==0))return s;if((y&4)!==0&&(y|=p&16),s=a.entangledLanes,s!==0)for(a=a.entanglements,s&=y;0<s;)p=31-vi(s),O=1<<p,y|=a[p],s&=~O;return y}function La(a,s){switch(a){case 1:case 2:case 4:return s+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function na(a,s){for(var p=a.suspendedLanes,y=a.pingedLanes,O=a.expirationTimes,L=a.pendingLanes;0<L;){var H=31-vi(L),te=1<<H,ue=O[H];ue===-1?((te&p)===0||(te&y)!==0)&&(O[H]=La(te,s)):ue<=s&&(a.expiredLanes|=te),L&=~te}}function Mi(a){return a=a.pendingLanes&-1073741825,a!==0?a:a&1073741824?1073741824:0}function ap(){var a=kt;return kt<<=1,(kt&4194240)===0&&(kt=64),a}function Ff(a){for(var s=[],p=0;31>p;p++)s.push(a);return s}function Ns(a,s,p){a.pendingLanes|=s,s!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,s=31-vi(s),a[s]=p}function B_(a,s){var p=a.pendingLanes&~s;a.pendingLanes=s,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=s,a.mutableReadLanes&=s,a.entangledLanes&=s,s=a.entanglements;var y=a.eventTimes;for(a=a.expirationTimes;0<p;){var O=31-vi(p),L=1<<O;s[O]=0,y[O]=-1,a[O]=-1,p&=~L}}function $f(a,s){var p=a.entangledLanes|=s;for(a=a.entanglements;p;){var y=31-vi(p),O=1<<y;O&s|a[y]&s&&(a[y]|=s),p&=~O}}var Vt=0;function jf(a){return a&=-a,1<a?4<a?(a&268435455)!==0?16:536870912:4:1}var Ps,zf,sp,Qg,lp,Hf=!1,Du=[],ra=null,Ma=null,Ia=null,Lu=new Map,kl=new Map,Fa=[],K_="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 Zg(a,s){switch(a){case"focusin":case"focusout":ra=null;break;case"dragenter":case"dragleave":Ma=null;break;case"mouseover":case"mouseout":Ia=null;break;case"pointerover":case"pointerout":Lu.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":kl.delete(s.pointerId)}}function Mu(a,s,p,y,O,L){return a===null||a.nativeEvent!==L?(a={blockedOn:s,domEventName:p,eventSystemFlags:y,nativeEvent:L,targetContainers:[O]},s!==null&&(s=Xa(s),s!==null&&zf(s)),a):(a.eventSystemFlags|=y,s=a.targetContainers,O!==null&&s.indexOf(O)===-1&&s.push(O),a)}function up(a,s,p,y,O){switch(s){case"focusin":return ra=Mu(ra,a,s,p,y,O),!0;case"dragenter":return Ma=Mu(Ma,a,s,p,y,O),!0;case"mouseover":return Ia=Mu(Ia,a,s,p,y,O),!0;case"pointerover":var L=O.pointerId;return Lu.set(L,Mu(Lu.get(L)||null,a,s,p,y,O)),!0;case"gotpointercapture":return L=O.pointerId,kl.set(L,Mu(kl.get(L)||null,a,s,p,y,O)),!0}return!1}function Jg(a){var s=$i(a.target);if(s!==null){var p=ti(s);if(p!==null){if(s=p.tag,s===13){if(s=kf(p),s!==null){a.blockedOn=s,lp(a.priority,function(){sp(p)});return}}else if(s===3&&p.stateNode.current.memoizedState.isDehydrated){a.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}a.blockedOn=null}function qf(a){if(a.blockedOn!==null)return!1;for(var s=a.targetContainers;0<s.length;){var p=fp(a.domEventName,a.eventSystemFlags,s[0],a.nativeEvent);if(p===null){p=a.nativeEvent;var y=new p.constructor(p.type,p);Er=y,p.target.dispatchEvent(y),Er=null}else return s=Xa(p),s!==null&&zf(s),a.blockedOn=p,!1;s.shift()}return!0}function ev(a,s,p){qf(a)&&p.delete(s)}function X_(){Hf=!1,ra!==null&&qf(ra)&&(ra=null),Ma!==null&&qf(Ma)&&(Ma=null),Ia!==null&&qf(Ia)&&(Ia=null),Lu.forEach(ev),kl.forEach(ev)}function Iu(a,s){a.blockedOn===s&&(a.blockedOn=null,Hf||(Hf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,X_)))}function Xt(a){function s(O){return Iu(O,a)}if(0<Du.length){Iu(Du[0],a);for(var p=1;p<Du.length;p++){var y=Du[p];y.blockedOn===a&&(y.blockedOn=null)}}for(ra!==null&&Iu(ra,a),Ma!==null&&Iu(Ma,a),Ia!==null&&Iu(Ia,a),Lu.forEach(s),kl.forEach(s),p=0;p<Fa.length;p++)y=Fa[p],y.blockedOn===a&&(y.blockedOn=null);for(;0<Fa.length&&(p=Fa[0],p.blockedOn===null);)Jg(p),p.blockedOn===null&&Fa.shift()}var Wt=x.ReactCurrentBatchConfig,Uf=!0;function Y_(a,s,p,y){var O=Vt,L=Wt.transition;Wt.transition=null;try{Vt=1,cp(a,s,p,y)}finally{Vt=O,Wt.transition=L}}function Q_(a,s,p,y){var O=Vt,L=Wt.transition;Wt.transition=null;try{Vt=4,cp(a,s,p,y)}finally{Vt=O,Wt.transition=L}}function cp(a,s,p,y){if(Uf){var O=fp(a,s,p,y);if(O===null)Ku(a,s,y,Vf,p),Zg(a,y);else if(up(O,a,s,p,y))y.stopPropagation();else if(Zg(a,y),s&4&&-1<K_.indexOf(a)){for(;O!==null;){var L=Xa(O);if(L!==null&&Ps(L),L=fp(a,s,p,y),L===null&&Ku(a,s,y,Vf,p),L===O)break;O=L}O!==null&&y.stopPropagation()}else Ku(a,s,y,null,p)}}var Vf=null;function fp(a,s,p,y){if(Vf=null,a=Ao(y),a=$i(a),a!==null)if(s=ti(a),s===null)a=null;else if(p=s.tag,p===13){if(a=kf(s),a!==null)return a;a=null}else if(p===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;a=null}else s!==a&&(a=null);return Vf=a,null}function dp(a){switch(a){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ko()){case Nu:return 1;case Lf:return 4;case Rl:case Mf:return 16;case Pu:return 536870912;default:return 16}default:return 16}}var $a=null,zn=null,Nl=null;function ja(){if(Nl)return Nl;var a,s=zn,p=s.length,y,O="value"in $a?$a.value:$a.textContent,L=O.length;for(a=0;a<p&&s[a]===O[a];a++);var H=p-a;for(y=1;y<=H&&s[p-y]===O[L-y];y++);return Nl=O.slice(a,1<y?1-y:void 0)}function Fu(a){var s=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&s===13&&(a=13)):a=s,a===10&&(a=13),32<=a||a===13?a:0}function Pl(){return!0}function yi(){return!1}function ni(a){function s(p,y,O,L,H){this._reactName=p,this._targetInst=O,this.type=y,this.nativeEvent=L,this.target=H,this.currentTarget=null;for(var te in a)a.hasOwnProperty(te)&&(p=a[te],this[te]=p?p(L):L[te]);return this.isDefaultPrevented=(L.defaultPrevented!=null?L.defaultPrevented:L.returnValue===!1)?Pl:yi,this.isPropagationStopped=yi,this}return $(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=Pl)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=Pl)},persist:function(){},isPersistent:Pl}),s}var Ds={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wf=ni(Ds),Dl=$({},Ds,{view:0,detail:0}),tv=ni(Dl),Gf,Fr,$u,$r=$({},Dl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qa,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==$u&&($u&&a.type==="mousemove"?(Gf=a.screenX-$u.screenX,Fr=a.screenY-$u.screenY):Fr=Gf=0,$u=a),Gf)},movementY:function(a){return"movementY"in a?a.movementY:Fr}}),nv=ni($r),rv=$({},$r,{dataTransfer:0}),za=ni(rv),Bf=$({},Dl,{relatedTarget:0}),ju=ni(Bf),ln=$({},Ds,{animationName:0,elapsedTime:0,pseudoElement:0}),Ha=ni(ln),hp=$({},Ds,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),Z_=ni(hp),pp=$({},Ds,{data:0}),iv=ni(pp),J_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ew={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"},ov={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kf(a){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(a):(a=ov[a])?!!s[a]:!1}function qa(){return Kf}var tw=$({},Dl,{key:function(a){if(a.key){var s=J_[a.key]||a.key;if(s!=="Unidentified")return s}return a.type==="keypress"?(a=Fu(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?ew[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qa,charCode:function(a){return a.type==="keypress"?Fu(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Fu(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),av=ni(tw),sv=$({},$r,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Xf=ni(sv),mp=$({},Dl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qa}),lv=ni(mp),nw=$({},Ds,{propertyName:0,elapsedTime:0,pseudoElement:0}),gp=ni(nw),vp=$({},$r,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),rw=ni(vp),uv=[9,13,27,32],jr=c&&"CompositionEvent"in window,Ls=null;c&&"documentMode"in document&&(Ls=document.documentMode);var zu=c&&"TextEvent"in window&&!Ls,yp=c&&(!jr||Ls&&8<Ls&&11>=Ls),_p=" ",cv=!1;function fv(a,s){switch(a){case"keyup":return uv.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dv(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Ll=!1;function iw(a,s){switch(a){case"compositionend":return dv(s);case"keypress":return s.which!==32?null:(cv=!0,_p);case"textInput":return a=s.data,a===_p&&cv?null:a;default:return null}}function Ml(a,s){if(Ll)return a==="compositionend"||!jr&&fv(a,s)?(a=ja(),Nl=zn=$a=null,Ll=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return yp&&s.locale!=="ko"?null:s.data;default:return null}}var ow={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 hv(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s==="input"?!!ow[a.type]:s==="textarea"}function Yf(a,s,p,y){Os(y),s=Yu(s,"onChange"),0<s.length&&(p=new Wf("onChange","change",null,p,y),a.push({event:p,listeners:s}))}var Il=null,Ii=null;function Qf(a){Gu(a,0)}function Zf(a){var s=dr(a);if(Me(s))return a}function aw(a,s){if(a==="change")return s}var pv=!1;if(c){var Ua;if(c){var _i="oninput"in document;if(!_i){var wp=document.createElement("div");wp.setAttribute("oninput","return;"),_i=typeof wp.oninput=="function"}Ua=_i}else Ua=!1;pv=Ua&&(!document.documentMode||9<document.documentMode)}function mv(){Il&&(Il.detachEvent("onpropertychange",gv),Ii=Il=null)}function gv(a){if(a.propertyName==="value"&&Zf(Ii)){var s=[];Yf(s,Ii,a,Ao(a)),Or(Qf,s)}}function sw(a,s,p){a==="focusin"?(mv(),Il=s,Ii=p,Il.attachEvent("onpropertychange",gv)):a==="focusout"&&mv()}function lw(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Zf(Ii)}function uw(a,s){if(a==="click")return Zf(s)}function Fl(a,s){if(a==="input"||a==="change")return Zf(s)}function he(a,s){return a===s&&(a!==0||1/a===1/s)||a!==a&&s!==s}var Se=typeof Object.is=="function"?Object.is:he;function we(a,s){if(Se(a,s))return!0;if(typeof a!="object"||a===null||typeof s!="object"||s===null)return!1;var p=Object.keys(a),y=Object.keys(s);if(p.length!==y.length)return!1;for(y=0;y<p.length;y++){var O=p[y];if(!f.call(s,O)||!Se(a[O],s[O]))return!1}return!0}function Be(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function gt(a,s){var p=Be(a);a=0;for(var y;p;){if(p.nodeType===3){if(y=a+p.textContent.length,a<=s&&y>=s)return{node:p,offset:s-a};a=y}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=Be(p)}}function qt(a,s){return a&&s?a===s?!0:a&&a.nodeType===3?!1:s&&s.nodeType===3?qt(a,s.parentNode):"contains"in a?a.contains(s):a.compareDocumentPosition?!!(a.compareDocumentPosition(s)&16):!1:!1}function Pn(){for(var a=window,s=qe();s instanceof a.HTMLIFrameElement;){try{var p=typeof s.contentWindow.location.href=="string"}catch{p=!1}if(p)a=s.contentWindow;else break;s=qe(a.document)}return s}function Yt(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}function Sp(a){var s=Pn(),p=a.focusedElem,y=a.selectionRange;if(s!==p&&p&&p.ownerDocument&&qt(p.ownerDocument.documentElement,p)){if(y!==null&&Yt(p)){if(s=y.start,a=y.end,a===void 0&&(a=s),"selectionStart"in p)p.selectionStart=s,p.selectionEnd=Math.min(a,p.value.length);else if(a=(s=p.ownerDocument||document)&&s.defaultView||window,a.getSelection){a=a.getSelection();var O=p.textContent.length,L=Math.min(y.start,O);y=y.end===void 0?L:Math.min(y.end,O),!a.extend&&L>y&&(O=y,y=L,L=O),O=gt(p,L);var H=gt(p,y);O&&H&&(a.rangeCount!==1||a.anchorNode!==O.node||a.anchorOffset!==O.offset||a.focusNode!==H.node||a.focusOffset!==H.offset)&&(s=s.createRange(),s.setStart(O.node,O.offset),a.removeAllRanges(),L>y?(a.addRange(s),a.extend(H.node,H.offset)):(s.setEnd(H.node,H.offset),a.addRange(s)))}}for(s=[],a=p;a=a.parentNode;)a.nodeType===1&&s.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<s.length;p++)a=s[p],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var cw=c&&"documentMode"in document&&11>=document.documentMode,fr=null,$l=null,Hu=null,Va=!1;function qu(a,s,p){var y=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Va||fr==null||fr!==qe(y)||(y=fr,"selectionStart"in y&&Yt(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),Hu&&we(Hu,y)||(Hu=y,y=Yu($l,"onSelect"),0<y.length&&(s=new Wf("onSelect","select",null,s,p),a.push({event:s,listeners:y}),s.target=fr)))}function Ms(a,s){var p={};return p[a.toLowerCase()]=s.toLowerCase(),p["Webkit"+a]="webkit"+s,p["Moz"+a]="moz"+s,p}var Ft={animationend:Ms("Animation","AnimationEnd"),animationiteration:Ms("Animation","AnimationIteration"),animationstart:Ms("Animation","AnimationStart"),transitionend:Ms("Transition","TransitionEnd")},bp={},Cp={};c&&(Cp=document.createElement("div").style,"AnimationEvent"in window||(delete Ft.animationend.animation,delete Ft.animationiteration.animation,delete Ft.animationstart.animation),"TransitionEvent"in window||delete Ft.transitionend.transition);function Is(a){if(bp[a])return bp[a];if(!Ft[a])return a;var s=Ft[a],p;for(p in s)if(s.hasOwnProperty(p)&&p in Cp)return bp[a]=s[p];return a}var vv=Is("animationend"),yv=Is("animationiteration"),_v=Is("animationstart"),Uu=Is("transitionend"),ia=new Map,Vu="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function oa(a,s){ia.set(a,s),o(s,[a])}for(var jl=0;jl<Vu.length;jl++){var Jf=Vu[jl],wv=Jf.toLowerCase(),ed=Jf[0].toUpperCase()+Jf.slice(1);oa(wv,"on"+ed)}oa(vv,"onAnimationEnd"),oa(yv,"onAnimationIteration"),oa(_v,"onAnimationStart"),oa("dblclick","onDoubleClick"),oa("focusin","onFocus"),oa("focusout","onBlur"),oa(Uu,"onTransitionEnd"),l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Wu=new Set("cancel close invalid load scroll toggle".split(" ").concat(zl));function Wa(a,s,p){var y=a.type||"unknown-event";a.currentTarget=p,Di(y,s,void 0,a),a.currentTarget=null}function Gu(a,s){s=(s&4)!==0;for(var p=0;p<a.length;p++){var y=a[p],O=y.event;y=y.listeners;e:{var L=void 0;if(s)for(var H=y.length-1;0<=H;H--){var te=y[H],ue=te.instance,_e=te.currentTarget;if(te=te.listener,ue!==L&&O.isPropagationStopped())break e;Wa(O,te,_e),L=ue}else for(H=0;H<y.length;H++){if(te=y[H],ue=te.instance,_e=te.currentTarget,te=te.listener,ue!==L&&O.isPropagationStopped())break e;Wa(O,te,_e),L=ue}}}if(tr)throw a=ta,tr=!1,ta=null,a}function an(a,s){var p=s[$s];p===void 0&&(p=s[$s]=new Set);var y=a+"__bubble";p.has(y)||(Bu(s,a,2,!1),p.add(y))}function xp(a,s,p){var y=0;s&&(y|=4),Bu(p,a,y,s)}var td="_reactListening"+Math.random().toString(36).slice(2);function Ga(a){if(!a[td]){a[td]=!0,r.forEach(function(p){p!=="selectionchange"&&(Wu.has(p)||xp(p,!1,a),xp(p,!0,a))});var s=a.nodeType===9?a:a.ownerDocument;s===null||s[td]||(s[td]=!0,xp("selectionchange",!1,s))}}function Bu(a,s,p,y){switch(dp(s)){case 1:var O=Y_;break;case 4:O=Q_;break;default:O=cp}p=O.bind(null,s,p,a),O=void 0,!Pa||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(O=!0),y?O!==void 0?a.addEventListener(s,p,{capture:!0,passive:O}):a.addEventListener(s,p,!0):O!==void 0?a.addEventListener(s,p,{passive:O}):a.addEventListener(s,p,!1)}function Ku(a,s,p,y,O){var L=y;if((s&1)===0&&(s&2)===0&&y!==null)e:for(;;){if(y===null)return;var H=y.tag;if(H===3||H===4){var te=y.stateNode.containerInfo;if(te===O||te.nodeType===8&&te.parentNode===O)break;if(H===4)for(H=y.return;H!==null;){var ue=H.tag;if((ue===3||ue===4)&&(ue=H.stateNode.containerInfo,ue===O||ue.nodeType===8&&ue.parentNode===O))return;H=H.return}for(;te!==null;){if(H=$i(te),H===null)return;if(ue=H.tag,ue===5||ue===6){y=L=H;continue e}te=te.parentNode}}y=y.return}Or(function(){var _e=L,Pe=Ao(p),Ie=[];e:{var Ne=ia.get(a);if(Ne!==void 0){var Ve=Wf,Ye=a;switch(a){case"keypress":if(Fu(p)===0)break e;case"keydown":case"keyup":Ve=av;break;case"focusin":Ye="focus",Ve=ju;break;case"focusout":Ye="blur",Ve=ju;break;case"beforeblur":case"afterblur":Ve=ju;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ve=nv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ve=za;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ve=lv;break;case vv:case yv:case _v:Ve=Ha;break;case Uu:Ve=gp;break;case"scroll":Ve=tv;break;case"wheel":Ve=rw;break;case"copy":case"cut":case"paste":Ve=Z_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ve=Xf}var Qe=(s&4)!==0,Rn=!Qe&&a==="scroll",me=Qe?Ne!==null?Ne+"Capture":null:Ne;Qe=[];for(var de=_e,ge;de!==null;){ge=de;var $e=ge.stateNode;if(ge.tag===5&&$e!==null&&(ge=$e,me!==null&&($e=mi(de,me),$e!=null&&Qe.push(Xu(de,$e,ge)))),Rn)break;de=de.return}0<Qe.length&&(Ne=new Ve(Ne,Ye,null,p,Pe),Ie.push({event:Ne,listeners:Qe}))}}if((s&7)===0){e:{if(Ne=a==="mouseover"||a==="pointerover",Ve=a==="mouseout"||a==="pointerout",Ne&&p!==Er&&(Ye=p.relatedTarget||p.fromElement)&&($i(Ye)||Ye[Fi]))break e;if((Ve||Ne)&&(Ne=Pe.window===Pe?Pe:(Ne=Pe.ownerDocument)?Ne.defaultView||Ne.parentWindow:window,Ve?(Ye=p.relatedTarget||p.toElement,Ve=_e,Ye=Ye?$i(Ye):null,Ye!==null&&(Rn=ti(Ye),Ye!==Rn||Ye.tag!==5&&Ye.tag!==6)&&(Ye=null)):(Ve=null,Ye=_e),Ve!==Ye)){if(Qe=nv,$e="onMouseLeave",me="onMouseEnter",de="mouse",(a==="pointerout"||a==="pointerover")&&(Qe=Xf,$e="onPointerLeave",me="onPointerEnter",de="pointer"),Rn=Ve==null?Ne:dr(Ve),ge=Ye==null?Ne:dr(Ye),Ne=new Qe($e,de+"leave",Ve,p,Pe),Ne.target=Rn,Ne.relatedTarget=ge,$e=null,$i(Pe)===_e&&(Qe=new Qe(me,de+"enter",Ye,p,Pe),Qe.target=ge,Qe.relatedTarget=Rn,$e=Qe),Rn=$e,Ve&&Ye)t:{for(Qe=Ve,me=Ye,de=0,ge=Qe;ge;ge=Hl(ge))de++;for(ge=0,$e=me;$e;$e=Hl($e))ge++;for(;0<de-ge;)Qe=Hl(Qe),de--;for(;0<ge-de;)me=Hl(me),ge--;for(;de--;){if(Qe===me||me!==null&&Qe===me.alternate)break t;Qe=Hl(Qe),me=Hl(me)}Qe=null}else Qe=null;Ve!==null&&Sv(Ie,Ne,Ve,Qe,!1),Ye!==null&&Rn!==null&&Sv(Ie,Rn,Ye,Qe,!0)}}e:{if(Ne=_e?dr(_e):window,Ve=Ne.nodeName&&Ne.nodeName.toLowerCase(),Ve==="select"||Ve==="input"&&Ne.type==="file")var tt=aw;else if(hv(Ne))if(pv)tt=Fl;else{tt=lw;var st=sw}else(Ve=Ne.nodeName)&&Ve.toLowerCase()==="input"&&(Ne.type==="checkbox"||Ne.type==="radio")&&(tt=uw);if(tt&&(tt=tt(a,_e))){Yf(Ie,tt,p,Pe);break e}st&&st(a,Ne,_e),a==="focusout"&&(st=Ne._wrapperState)&&st.controlled&&Ne.type==="number"&&Fe(Ne,"number",Ne.value)}switch(st=_e?dr(_e):window,a){case"focusin":(hv(st)||st.contentEditable==="true")&&(fr=st,$l=_e,Hu=null);break;case"focusout":Hu=$l=fr=null;break;case"mousedown":Va=!0;break;case"contextmenu":case"mouseup":case"dragend":Va=!1,qu(Ie,p,Pe);break;case"selectionchange":if(cw)break;case"keydown":case"keyup":qu(Ie,p,Pe)}var ot;if(jr)e:{switch(a){case"compositionstart":var ft="onCompositionStart";break e;case"compositionend":ft="onCompositionEnd";break e;case"compositionupdate":ft="onCompositionUpdate";break e}ft=void 0}else Ll?fv(a,p)&&(ft="onCompositionEnd"):a==="keydown"&&p.keyCode===229&&(ft="onCompositionStart");ft&&(yp&&p.locale!=="ko"&&(Ll||ft!=="onCompositionStart"?ft==="onCompositionEnd"&&Ll&&(ot=ja()):($a=Pe,zn="value"in $a?$a.value:$a.textContent,Ll=!0)),st=Yu(_e,ft),0<st.length&&(ft=new iv(ft,a,null,p,Pe),Ie.push({event:ft,listeners:st}),ot?ft.data=ot:(ot=dv(p),ot!==null&&(ft.data=ot)))),(ot=zu?iw(a,p):Ml(a,p))&&(_e=Yu(_e,"onBeforeInput"),0<_e.length&&(Pe=new iv("onBeforeInput","beforeinput",null,p,Pe),Ie.push({event:Pe,listeners:_e}),Pe.data=ot))}Gu(Ie,s)})}function Xu(a,s,p){return{instance:a,listener:s,currentTarget:p}}function Yu(a,s){for(var p=s+"Capture",y=[];a!==null;){var O=a,L=O.stateNode;O.tag===5&&L!==null&&(O=L,L=mi(a,p),L!=null&&y.unshift(Xu(a,L,O)),L=mi(a,s),L!=null&&y.push(Xu(a,L,O))),a=a.return}return y}function Hl(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5);return a||null}function Sv(a,s,p,y,O){for(var L=s._reactName,H=[];p!==null&&p!==y;){var te=p,ue=te.alternate,_e=te.stateNode;if(ue!==null&&ue===y)break;te.tag===5&&_e!==null&&(te=_e,O?(ue=mi(p,L),ue!=null&&H.unshift(Xu(p,ue,te))):O||(ue=mi(p,L),ue!=null&&H.push(Xu(p,ue,te)))),p=p.return}H.length!==0&&a.push({event:s,listeners:H})}var Hn=/\r\n?/g,Ar=/\u0000|\uFFFD/g;function bv(a){return(typeof a=="string"?a:""+a).replace(Hn,`
|
|
38
|
+
`).replace(Ar,"")}function nd(a,s,p){if(s=bv(s),bv(a)!==s&&p)throw Error(n(425))}function Qu(){}var Ep=null,Zu=null;function Fs(a,s){return a==="textarea"||a==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Ju=typeof setTimeout=="function"?setTimeout:void 0,ql=typeof clearTimeout=="function"?clearTimeout:void 0,Ul=typeof Promise=="function"?Promise:void 0,ec=typeof queueMicrotask=="function"?queueMicrotask:typeof Ul<"u"?function(a){return Ul.resolve(null).then(a).catch(rd)}:Ju;function rd(a){setTimeout(function(){throw a})}function Ba(a,s){var p=s,y=0;do{var O=p.nextSibling;if(a.removeChild(p),O&&O.nodeType===8)if(p=O.data,p==="/$"){if(y===0){a.removeChild(O),Xt(s);return}y--}else p!=="$"&&p!=="$?"&&p!=="$!"||y++;p=O}while(p);Xt(s)}function Ka(a){for(;a!=null;a=a.nextSibling){var s=a.nodeType;if(s===1||s===3)break;if(s===8){if(s=a.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return a}function Cv(a){a=a.previousSibling;for(var s=0;a;){if(a.nodeType===8){var p=a.data;if(p==="$"||p==="$!"||p==="$?"){if(s===0)return a;s--}else p==="/$"&&s++}a=a.previousSibling}return null}var Vl=Math.random().toString(36).slice(2),No="__reactFiber$"+Vl,tc="__reactProps$"+Vl,Fi="__reactContainer$"+Vl,$s="__reactEvents$"+Vl,xv="__reactListeners$"+Vl,G="__reactHandles$"+Vl;function $i(a){var s=a[No];if(s)return s;for(var p=a.parentNode;p;){if(s=p[Fi]||p[No]){if(p=s.alternate,s.child!==null||p!==null&&p.child!==null)for(a=Cv(a);a!==null;){if(p=a[No])return p;a=Cv(a)}return s}a=p,p=a.parentNode}return null}function Xa(a){return a=a[No]||a[Fi],!a||a.tag!==5&&a.tag!==6&&a.tag!==13&&a.tag!==3?null:a}function dr(a){if(a.tag===5||a.tag===6)return a.stateNode;throw Error(n(33))}function Et(a){return a[tc]||null}var Tp=[],Wl=-1;function Ya(a){return{current:a}}function Gt(a){0>Wl||(a.current=Tp[Wl],Tp[Wl]=null,Wl--)}function nn(a,s){Wl++,Tp[Wl]=a.current,a.current=s}var Qa={},Rr=Ya(Qa),ri=Ya(!1),js=Qa;function ii(a,s){var p=a.type.contextTypes;if(!p)return Qa;var y=a.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===s)return y.__reactInternalMemoizedMaskedChildContext;var O={},L;for(L in p)O[L]=s[L];return y&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=s,a.__reactInternalMemoizedMaskedChildContext=O),O}function oi(a){return a=a.childContextTypes,a!=null}function id(){Gt(ri),Gt(Rr)}function Ev(a,s,p){if(Rr.current!==Qa)throw Error(n(168));nn(Rr,s),nn(ri,p)}function Tv(a,s,p){var y=a.stateNode;if(s=s.childContextTypes,typeof y.getChildContext!="function")return p;y=y.getChildContext();for(var O in y)if(!(O in s))throw Error(n(108,se(a)||"Unknown",O));return $({},p,y)}function od(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Qa,js=Rr.current,nn(Rr,a),nn(ri,ri.current),!0}function Po(a,s,p){var y=a.stateNode;if(!y)throw Error(n(169));p?(a=Tv(a,s,js),y.__reactInternalMemoizedMergedChildContext=a,Gt(ri),Gt(Rr),nn(Rr,a)):Gt(ri),nn(ri,p)}var aa=null,ad=!1,Op=!1;function Ov(a){aa===null?aa=[a]:aa.push(a)}function fw(a){ad=!0,Ov(a)}function ai(){if(!Op&&aa!==null){Op=!0;var a=0,s=Vt;try{var p=aa;for(Vt=1;a<p.length;a++){var y=p[a];do y=y(!0);while(y!==null)}aa=null,ad=!1}catch(O){throw aa!==null&&(aa=aa.slice(a+1)),Pf(Nu,ai),O}finally{Vt=s,Op=!1}}return null}var Gl=[],Bl=0,si=null,sd=0,ji=[],zi=0,zs=null,sa=1,Do="";function Za(a,s){Gl[Bl++]=sd,Gl[Bl++]=si,si=a,sd=s}function Av(a,s,p){ji[zi++]=sa,ji[zi++]=Do,ji[zi++]=zs,zs=a;var y=sa;a=Do;var O=32-vi(y)-1;y&=~(1<<O),p+=1;var L=32-vi(s)+O;if(30<L){var H=O-O%5;L=(y&(1<<H)-1).toString(32),y>>=H,O-=H,sa=1<<32-vi(s)+O|p<<O|y,Do=L+a}else sa=1<<L|p<<O|y,Do=a}function Ap(a){a.return!==null&&(Za(a,1),Av(a,1,0))}function nc(a){for(;a===si;)si=Gl[--Bl],Gl[Bl]=null,sd=Gl[--Bl],Gl[Bl]=null;for(;a===zs;)zs=ji[--zi],ji[zi]=null,Do=ji[--zi],ji[zi]=null,sa=ji[--zi],ji[zi]=null}var hr=null,kr=null,un=!1,Hi=null;function Rv(a,s){var p=Bi(5,null,null,0);p.elementType="DELETED",p.stateNode=s,p.return=a,s=a.deletions,s===null?(a.deletions=[p],a.flags|=16):s.push(p)}function Lo(a,s){switch(a.tag){case 5:var p=a.type;return s=s.nodeType!==1||p.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(a.stateNode=s,hr=a,kr=Ka(s.firstChild),!0):!1;case 6:return s=a.pendingProps===""||s.nodeType!==3?null:s,s!==null?(a.stateNode=s,hr=a,kr=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(p=zs!==null?{id:sa,overflow:Do}:null,a.memoizedState={dehydrated:s,treeContext:p,retryLane:1073741824},p=Bi(18,null,null,0),p.stateNode=s,p.return=a,a.child=p,hr=a,kr=null,!0):!1;default:return!1}}function rc(a){return(a.mode&1)!==0&&(a.flags&128)===0}function la(a){if(un){var s=kr;if(s){var p=s;if(!Lo(a,s)){if(rc(a))throw Error(n(418));s=Ka(p.nextSibling);var y=hr;s&&Lo(a,s)?Rv(y,p):(a.flags=a.flags&-4097|2,un=!1,hr=a)}}else{if(rc(a))throw Error(n(418));a.flags=a.flags&-4097|2,un=!1,hr=a}}}function wi(a){for(a=a.return;a!==null&&a.tag!==5&&a.tag!==3&&a.tag!==13;)a=a.return;hr=a}function ld(a){if(a!==hr)return!1;if(!un)return wi(a),un=!0,!1;var s;if((s=a.tag!==3)&&!(s=a.tag!==5)&&(s=a.type,s=s!=="head"&&s!=="body"&&!Fs(a.type,a.memoizedProps)),s&&(s=kr)){if(rc(a))throw Rp(),Error(n(418));for(;s;)Rv(a,s),s=Ka(s.nextSibling)}if(wi(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(n(317));e:{for(a=a.nextSibling,s=0;a;){if(a.nodeType===8){var p=a.data;if(p==="/$"){if(s===0){kr=Ka(a.nextSibling);break e}s--}else p!=="$"&&p!=="$!"&&p!=="$?"||s++}a=a.nextSibling}kr=null}}else kr=hr?Ka(a.stateNode.nextSibling):null;return!0}function Rp(){for(var a=kr;a;)a=Ka(a.nextSibling)}function Hs(){kr=hr=null,un=!1}function qs(a){Hi===null?Hi=[a]:Hi.push(a)}var Ja=x.ReactCurrentBatchConfig;function qi(a,s){if(a&&a.defaultProps){s=$({},s),a=a.defaultProps;for(var p in a)s[p]===void 0&&(s[p]=a[p]);return s}return s}var ud=Ya(null),Us=null,Kl=null,cd=null;function qn(){cd=Kl=Us=null}function ic(a){var s=ud.current;Gt(ud),a._currentValue=s}function fd(a,s,p){for(;a!==null;){var y=a.alternate;if((a.childLanes&s)!==s?(a.childLanes|=s,y!==null&&(y.childLanes|=s)):y!==null&&(y.childLanes&s)!==s&&(y.childLanes|=s),a===p)break;a=a.return}}function zr(a,s){Us=a,cd=Kl=null,a=a.dependencies,a!==null&&a.firstContext!==null&&((a.lanes&s)!==0&&(qr=!0),a.firstContext=null)}function li(a){var s=a._currentValue;if(cd!==a)if(a={context:a,memoizedValue:s,next:null},Kl===null){if(Us===null)throw Error(n(308));Kl=a,Us.dependencies={lanes:0,firstContext:a}}else Kl=Kl.next=a;return s}var Mo=null;function ua(a){Mo===null?Mo=[a]:Mo.push(a)}function kp(a,s,p,y){var O=s.interleaved;return O===null?(p.next=p,ua(s)):(p.next=O.next,O.next=p),s.interleaved=p,vn(a,y)}function vn(a,s){a.lanes|=s;var p=a.alternate;for(p!==null&&(p.lanes|=s),p=a,a=a.return;a!==null;)a.childLanes|=s,p=a.alternate,p!==null&&(p.childLanes|=s),p=a,a=a.return;return p.tag===3?p.stateNode:null}var Io=!1;function Np(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function kv(a,s){a=a.updateQueue,s.updateQueue===a&&(s.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects})}function ca(a,s){return{eventTime:a,lane:s,tag:0,payload:null,callback:null,next:null}}function Fo(a,s,p){var y=a.updateQueue;if(y===null)return null;if(y=y.shared,(jt&2)!==0){var O=y.pending;return O===null?s.next=s:(s.next=O.next,O.next=s),y.pending=s,vn(a,p)}return O=y.interleaved,O===null?(s.next=s,ua(y)):(s.next=O.next,O.next=s),y.interleaved=s,vn(a,p)}function dd(a,s,p){if(s=s.updateQueue,s!==null&&(s=s.shared,(p&4194240)!==0)){var y=s.lanes;y&=a.pendingLanes,p|=y,s.lanes=p,$f(a,p)}}function Xl(a,s){var p=a.updateQueue,y=a.alternate;if(y!==null&&(y=y.updateQueue,p===y)){var O=null,L=null;if(p=p.firstBaseUpdate,p!==null){do{var H={eventTime:p.eventTime,lane:p.lane,tag:p.tag,payload:p.payload,callback:p.callback,next:null};L===null?O=L=H:L=L.next=H,p=p.next}while(p!==null);L===null?O=L=s:L=L.next=s}else O=L=s;p={baseState:y.baseState,firstBaseUpdate:O,lastBaseUpdate:L,shared:y.shared,effects:y.effects},a.updateQueue=p;return}a=p.lastBaseUpdate,a===null?p.firstBaseUpdate=s:a.next=s,p.lastBaseUpdate=s}function oc(a,s,p,y){var O=a.updateQueue;Io=!1;var L=O.firstBaseUpdate,H=O.lastBaseUpdate,te=O.shared.pending;if(te!==null){O.shared.pending=null;var ue=te,_e=ue.next;ue.next=null,H===null?L=_e:H.next=_e,H=ue;var Pe=a.alternate;Pe!==null&&(Pe=Pe.updateQueue,te=Pe.lastBaseUpdate,te!==H&&(te===null?Pe.firstBaseUpdate=_e:te.next=_e,Pe.lastBaseUpdate=ue))}if(L!==null){var Ie=O.baseState;H=0,Pe=_e=ue=null,te=L;do{var Ne=te.lane,Ve=te.eventTime;if((y&Ne)===Ne){Pe!==null&&(Pe=Pe.next={eventTime:Ve,lane:0,tag:te.tag,payload:te.payload,callback:te.callback,next:null});e:{var Ye=a,Qe=te;switch(Ne=s,Ve=p,Qe.tag){case 1:if(Ye=Qe.payload,typeof Ye=="function"){Ie=Ye.call(Ve,Ie,Ne);break e}Ie=Ye;break e;case 3:Ye.flags=Ye.flags&-65537|128;case 0:if(Ye=Qe.payload,Ne=typeof Ye=="function"?Ye.call(Ve,Ie,Ne):Ye,Ne==null)break e;Ie=$({},Ie,Ne);break e;case 2:Io=!0}}te.callback!==null&&te.lane!==0&&(a.flags|=64,Ne=O.effects,Ne===null?O.effects=[te]:Ne.push(te))}else Ve={eventTime:Ve,lane:Ne,tag:te.tag,payload:te.payload,callback:te.callback,next:null},Pe===null?(_e=Pe=Ve,ue=Ie):Pe=Pe.next=Ve,H|=Ne;if(te=te.next,te===null){if(te=O.shared.pending,te===null)break;Ne=te,te=Ne.next,Ne.next=null,O.lastBaseUpdate=Ne,O.shared.pending=null}}while(!0);if(Pe===null&&(ue=Ie),O.baseState=ue,O.firstBaseUpdate=_e,O.lastBaseUpdate=Pe,s=O.shared.interleaved,s!==null){O=s;do H|=O.lane,O=O.next;while(O!==s)}else L===null&&(O.shared.lanes=0);rs|=H,a.lanes=H,a.memoizedState=Ie}}function Nv(a,s,p){if(a=s.effects,s.effects=null,a!==null)for(s=0;s<a.length;s++){var y=a[s],O=y.callback;if(O!==null){if(y.callback=null,y=p,typeof O!="function")throw Error(n(191,O));O.call(y)}}}var Pv=new t.Component().refs;function Vs(a,s,p,y){s=a.memoizedState,p=p(y,s),p=p==null?s:$({},s,p),a.memoizedState=p,a.lanes===0&&(a.updateQueue.baseState=p)}var hd={isMounted:function(a){return(a=a._reactInternals)?ti(a)===a:!1},enqueueSetState:function(a,s,p){a=a._reactInternals;var y=Wr(),O=as(a),L=ca(y,O);L.payload=s,p!=null&&(L.callback=p),s=Fo(a,L,O),s!==null&&(mo(s,a,O,y),dd(s,a,O))},enqueueReplaceState:function(a,s,p){a=a._reactInternals;var y=Wr(),O=as(a),L=ca(y,O);L.tag=1,L.payload=s,p!=null&&(L.callback=p),s=Fo(a,L,O),s!==null&&(mo(s,a,O,y),dd(s,a,O))},enqueueForceUpdate:function(a,s){a=a._reactInternals;var p=Wr(),y=as(a),O=ca(p,y);O.tag=2,s!=null&&(O.callback=s),s=Fo(a,O,y),s!==null&&(mo(s,a,y,p),dd(s,a,y))}};function Dv(a,s,p,y,O,L,H){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(y,L,H):s.prototype&&s.prototype.isPureReactComponent?!we(p,y)||!we(O,L):!0}function pd(a,s,p){var y=!1,O=Qa,L=s.contextType;return typeof L=="object"&&L!==null?L=li(L):(O=oi(s)?js:Rr.current,y=s.contextTypes,L=(y=y!=null)?ii(a,O):Qa),s=new s(p,L),a.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=hd,a.stateNode=s,s._reactInternals=a,y&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=O,a.__reactInternalMemoizedMaskedChildContext=L),s}function Pp(a,s,p,y){a=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(p,y),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(p,y),s.state!==a&&hd.enqueueReplaceState(s,s.state,null)}function Dp(a,s,p,y){var O=a.stateNode;O.props=p,O.state=a.memoizedState,O.refs=Pv,Np(a);var L=s.contextType;typeof L=="object"&&L!==null?O.context=li(L):(L=oi(s)?js:Rr.current,O.context=ii(a,L)),O.state=a.memoizedState,L=s.getDerivedStateFromProps,typeof L=="function"&&(Vs(a,s,L,p),O.state=a.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(s=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),s!==O.state&&hd.enqueueReplaceState(O,O.state,null),oc(a,p,O,y),O.state=a.memoizedState),typeof O.componentDidMount=="function"&&(a.flags|=4194308)}function ac(a,s,p){if(a=p.ref,a!==null&&typeof a!="function"&&typeof a!="object"){if(p._owner){if(p=p._owner,p){if(p.tag!==1)throw Error(n(309));var y=p.stateNode}if(!y)throw Error(n(147,a));var O=y,L=""+a;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===L?s.ref:(s=function(H){var te=O.refs;te===Pv&&(te=O.refs={}),H===null?delete te[L]:te[L]=H},s._stringRef=L,s)}if(typeof a!="string")throw Error(n(284));if(!p._owner)throw Error(n(290,a))}return a}function md(a,s){throw a=Object.prototype.toString.call(s),Error(n(31,a==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":a))}function Lp(a){var s=a._init;return s(a._payload)}function gd(a){function s(me,de){if(a){var ge=me.deletions;ge===null?(me.deletions=[de],me.flags|=16):ge.push(de)}}function p(me,de){if(!a)return null;for(;de!==null;)s(me,de),de=de.sibling;return null}function y(me,de){for(me=new Map;de!==null;)de.key!==null?me.set(de.key,de):me.set(de.index,de),de=de.sibling;return me}function O(me,de){return me=go(me,de),me.index=0,me.sibling=null,me}function L(me,de,ge){return me.index=ge,a?(ge=me.alternate,ge!==null?(ge=ge.index,ge<de?(me.flags|=2,de):ge):(me.flags|=2,de)):(me.flags|=1048576,de)}function H(me){return a&&me.alternate===null&&(me.flags|=2),me}function te(me,de,ge,$e){return de===null||de.tag!==6?(de=dm(ge,me.mode,$e),de.return=me,de):(de=O(de,ge),de.return=me,de)}function ue(me,de,ge,$e){var tt=ge.type;return tt===I?Pe(me,de,ge.props.children,$e,ge.key):de!==null&&(de.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===Q&&Lp(tt)===de.type)?($e=O(de,ge.props),$e.ref=ac(me,de,ge),$e.return=me,$e):($e=Bd(ge.type,ge.key,ge.props,null,me.mode,$e),$e.ref=ac(me,de,ge),$e.return=me,$e)}function _e(me,de,ge,$e){return de===null||de.tag!==4||de.stateNode.containerInfo!==ge.containerInfo||de.stateNode.implementation!==ge.implementation?(de=hm(ge,me.mode,$e),de.return=me,de):(de=O(de,ge.children||[]),de.return=me,de)}function Pe(me,de,ge,$e,tt){return de===null||de.tag!==7?(de=Zs(ge,me.mode,$e,tt),de.return=me,de):(de=O(de,ge),de.return=me,de)}function Ie(me,de,ge){if(typeof de=="string"&&de!==""||typeof de=="number")return de=dm(""+de,me.mode,ge),de.return=me,de;if(typeof de=="object"&&de!==null){switch(de.$$typeof){case w:return ge=Bd(de.type,de.key,de.props,null,me.mode,ge),ge.ref=ac(me,null,de),ge.return=me,ge;case R:return de=hm(de,me.mode,ge),de.return=me,de;case Q:var $e=de._init;return Ie(me,$e(de._payload),ge)}if(Ae(de)||W(de))return de=Zs(de,me.mode,ge,null),de.return=me,de;md(me,de)}return null}function Ne(me,de,ge,$e){var tt=de!==null?de.key:null;if(typeof ge=="string"&&ge!==""||typeof ge=="number")return tt!==null?null:te(me,de,""+ge,$e);if(typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case w:return ge.key===tt?ue(me,de,ge,$e):null;case R:return ge.key===tt?_e(me,de,ge,$e):null;case Q:return tt=ge._init,Ne(me,de,tt(ge._payload),$e)}if(Ae(ge)||W(ge))return tt!==null?null:Pe(me,de,ge,$e,null);md(me,ge)}return null}function Ve(me,de,ge,$e,tt){if(typeof $e=="string"&&$e!==""||typeof $e=="number")return me=me.get(ge)||null,te(de,me,""+$e,tt);if(typeof $e=="object"&&$e!==null){switch($e.$$typeof){case w:return me=me.get($e.key===null?ge:$e.key)||null,ue(de,me,$e,tt);case R:return me=me.get($e.key===null?ge:$e.key)||null,_e(de,me,$e,tt);case Q:var st=$e._init;return Ve(me,de,ge,st($e._payload),tt)}if(Ae($e)||W($e))return me=me.get(ge)||null,Pe(de,me,$e,tt,null);md(de,$e)}return null}function Ye(me,de,ge,$e){for(var tt=null,st=null,ot=de,ft=de=0,ir=null;ot!==null&&ft<ge.length;ft++){ot.index>ft?(ir=ot,ot=null):ir=ot.sibling;var Ut=Ne(me,ot,ge[ft],$e);if(Ut===null){ot===null&&(ot=ir);break}a&&ot&&Ut.alternate===null&&s(me,ot),de=L(Ut,de,ft),st===null?tt=Ut:st.sibling=Ut,st=Ut,ot=ir}if(ft===ge.length)return p(me,ot),un&&Za(me,ft),tt;if(ot===null){for(;ft<ge.length;ft++)ot=Ie(me,ge[ft],$e),ot!==null&&(de=L(ot,de,ft),st===null?tt=ot:st.sibling=ot,st=ot);return un&&Za(me,ft),tt}for(ot=y(me,ot);ft<ge.length;ft++)ir=Ve(ot,me,ft,ge[ft],$e),ir!==null&&(a&&ir.alternate!==null&&ot.delete(ir.key===null?ft:ir.key),de=L(ir,de,ft),st===null?tt=ir:st.sibling=ir,st=ir);return a&&ot.forEach(function(ls){return s(me,ls)}),un&&Za(me,ft),tt}function Qe(me,de,ge,$e){var tt=W(ge);if(typeof tt!="function")throw Error(n(150));if(ge=tt.call(ge),ge==null)throw Error(n(151));for(var st=tt=null,ot=de,ft=de=0,ir=null,Ut=ge.next();ot!==null&&!Ut.done;ft++,Ut=ge.next()){ot.index>ft?(ir=ot,ot=null):ir=ot.sibling;var ls=Ne(me,ot,Ut.value,$e);if(ls===null){ot===null&&(ot=ir);break}a&&ot&&ls.alternate===null&&s(me,ot),de=L(ls,de,ft),st===null?tt=ls:st.sibling=ls,st=ls,ot=ir}if(Ut.done)return p(me,ot),un&&Za(me,ft),tt;if(ot===null){for(;!Ut.done;ft++,Ut=ge.next())Ut=Ie(me,Ut.value,$e),Ut!==null&&(de=L(Ut,de,ft),st===null?tt=Ut:st.sibling=Ut,st=Ut);return un&&Za(me,ft),tt}for(ot=y(me,ot);!Ut.done;ft++,Ut=ge.next())Ut=Ve(ot,me,ft,Ut.value,$e),Ut!==null&&(a&&Ut.alternate!==null&&ot.delete(Ut.key===null?ft:Ut.key),de=L(Ut,de,ft),st===null?tt=Ut:st.sibling=Ut,st=Ut);return a&&ot.forEach(function(Pw){return s(me,Pw)}),un&&Za(me,ft),tt}function Rn(me,de,ge,$e){if(typeof ge=="object"&&ge!==null&&ge.type===I&&ge.key===null&&(ge=ge.props.children),typeof ge=="object"&&ge!==null){switch(ge.$$typeof){case w:e:{for(var tt=ge.key,st=de;st!==null;){if(st.key===tt){if(tt=ge.type,tt===I){if(st.tag===7){p(me,st.sibling),de=O(st,ge.props.children),de.return=me,me=de;break e}}else if(st.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===Q&&Lp(tt)===st.type){p(me,st.sibling),de=O(st,ge.props),de.ref=ac(me,st,ge),de.return=me,me=de;break e}p(me,st);break}else s(me,st);st=st.sibling}ge.type===I?(de=Zs(ge.props.children,me.mode,$e,ge.key),de.return=me,me=de):($e=Bd(ge.type,ge.key,ge.props,null,me.mode,$e),$e.ref=ac(me,de,ge),$e.return=me,me=$e)}return H(me);case R:e:{for(st=ge.key;de!==null;){if(de.key===st)if(de.tag===4&&de.stateNode.containerInfo===ge.containerInfo&&de.stateNode.implementation===ge.implementation){p(me,de.sibling),de=O(de,ge.children||[]),de.return=me,me=de;break e}else{p(me,de);break}else s(me,de);de=de.sibling}de=hm(ge,me.mode,$e),de.return=me,me=de}return H(me);case Q:return st=ge._init,Rn(me,de,st(ge._payload),$e)}if(Ae(ge))return Ye(me,de,ge,$e);if(W(ge))return Qe(me,de,ge,$e);md(me,ge)}return typeof ge=="string"&&ge!==""||typeof ge=="number"?(ge=""+ge,de!==null&&de.tag===6?(p(me,de.sibling),de=O(de,ge),de.return=me,me=de):(p(me,de),de=dm(ge,me.mode,$e),de.return=me,me=de),H(me)):p(me,de)}return Rn}var Yl=gd(!0),vd=gd(!1),Ql={},so=Ya(Ql),Zl=Ya(Ql),es=Ya(Ql);function Ws(a){if(a===Ql)throw Error(n(174));return a}function yd(a,s){switch(nn(es,s),nn(Zl,a),nn(so,Ql),a=s.nodeType,a){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:jn(null,"");break;default:a=a===8?s.parentNode:s,s=a.namespaceURI||null,a=a.tagName,s=jn(s,a)}Gt(so),nn(so,s)}function Gs(){Gt(so),Gt(Zl),Gt(es)}function Lv(a){Ws(es.current);var s=Ws(so.current),p=jn(s,a.type);s!==p&&(nn(Zl,a),nn(so,p))}function _d(a){Zl.current===a&&(Gt(so),Gt(Zl))}var yn=Ya(0);function Jl(a){for(var s=a;s!==null;){if(s.tag===13){var p=s.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||p.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var wd=[];function sc(){for(var a=0;a<wd.length;a++)wd[a]._workInProgressVersionPrimary=null;wd.length=0}var Sd=x.ReactCurrentDispatcher,lc=x.ReactCurrentBatchConfig,vt=0,_n=null,Un=null,xn=null,uc=!1,cc=!1,fc=0,Ui=0;function Nr(){throw Error(n(321))}function eu(a,s){if(s===null)return!1;for(var p=0;p<s.length&&p<a.length;p++)if(!Se(a[p],s[p]))return!1;return!0}function dc(a,s,p,y,O,L){if(vt=L,_n=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,Sd.current=a===null||a.memoizedState===null?ru:vc,a=p(y,O),cc){L=0;do{if(cc=!1,fc=0,25<=L)throw Error(n(301));L+=1,xn=Un=null,s.updateQueue=null,Sd.current=hw,a=p(y,O)}while(cc)}if(Sd.current=gc,s=Un!==null&&Un.next!==null,vt=0,xn=Un=_n=null,uc=!1,s)throw Error(n(300));return a}function bd(){var a=fc!==0;return fc=0,a}function lo(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xn===null?_n.memoizedState=xn=a:xn=xn.next=a,xn}function cn(){if(Un===null){var a=_n.alternate;a=a!==null?a.memoizedState:null}else a=Un.next;var s=xn===null?_n.memoizedState:xn.next;if(s!==null)xn=s,Un=a;else{if(a===null)throw Error(n(310));Un=a,a={memoizedState:Un.memoizedState,baseState:Un.baseState,baseQueue:Un.baseQueue,queue:Un.queue,next:null},xn===null?_n.memoizedState=xn=a:xn=xn.next=a}return xn}function Vi(a,s){return typeof s=="function"?s(a):s}function hc(a){var s=cn(),p=s.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=a;var y=Un,O=y.baseQueue,L=p.pending;if(L!==null){if(O!==null){var H=O.next;O.next=L.next,L.next=H}y.baseQueue=O=L,p.pending=null}if(O!==null){L=O.next,y=y.baseState;var te=H=null,ue=null,_e=L;do{var Pe=_e.lane;if((vt&Pe)===Pe)ue!==null&&(ue=ue.next={lane:0,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null}),y=_e.hasEagerState?_e.eagerState:a(y,_e.action);else{var Ie={lane:Pe,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null};ue===null?(te=ue=Ie,H=y):ue=ue.next=Ie,_n.lanes|=Pe,rs|=Pe}_e=_e.next}while(_e!==null&&_e!==L);ue===null?H=y:ue.next=te,Se(y,s.memoizedState)||(qr=!0),s.memoizedState=y,s.baseState=H,s.baseQueue=ue,p.lastRenderedState=y}if(a=p.interleaved,a!==null){O=a;do L=O.lane,_n.lanes|=L,rs|=L,O=O.next;while(O!==a)}else O===null&&(p.lanes=0);return[s.memoizedState,p.dispatch]}function Cd(a){var s=cn(),p=s.queue;if(p===null)throw Error(n(311));p.lastRenderedReducer=a;var y=p.dispatch,O=p.pending,L=s.memoizedState;if(O!==null){p.pending=null;var H=O=O.next;do L=a(L,H.action),H=H.next;while(H!==O);Se(L,s.memoizedState)||(qr=!0),s.memoizedState=L,s.baseQueue===null&&(s.baseState=L),p.lastRenderedState=L}return[L,y]}function pc(){}function Mp(a,s){var p=_n,y=cn(),O=s(),L=!Se(y.memoizedState,O);if(L&&(y.memoizedState=O,qr=!0),y=y.queue,$p(Ed.bind(null,p,y,a),[a]),y.getSnapshot!==s||L||xn!==null&&xn.memoizedState.tag&1){if(p.flags|=2048,Wi(9,Ip.bind(null,p,y,O,s),void 0,null),rr===null)throw Error(n(349));(vt&30)!==0||xd(p,s,O)}return O}function xd(a,s,p){a.flags|=16384,a={getSnapshot:s,value:p},s=_n.updateQueue,s===null?(s={lastEffect:null,stores:null},_n.updateQueue=s,s.stores=[a]):(p=s.stores,p===null?s.stores=[a]:p.push(a))}function Ip(a,s,p,y){s.value=p,s.getSnapshot=y,Td(s)&&fa(a)}function Ed(a,s,p){return p(function(){Td(s)&&fa(a)})}function Td(a){var s=a.getSnapshot;a=a.value;try{var p=s();return!Se(a,p)}catch{return!0}}function fa(a){var s=vn(a,1);s!==null&&mo(s,a,1,-1)}function Mv(a){var s=lo();return typeof a=="function"&&(a=a()),s.memoizedState=s.baseState=a,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vi,lastRenderedState:a},s.queue=a,a=a.dispatch=nu.bind(null,_n,a),[s.memoizedState,a]}function Wi(a,s,p,y){return a={tag:a,create:s,destroy:p,deps:y,next:null},s=_n.updateQueue,s===null?(s={lastEffect:null,stores:null},_n.updateQueue=s,s.lastEffect=a.next=a):(p=s.lastEffect,p===null?s.lastEffect=a.next=a:(y=p.next,p.next=a,a.next=y,s.lastEffect=a)),a}function Fp(){return cn().memoizedState}function mc(a,s,p,y){var O=lo();_n.flags|=a,O.memoizedState=Wi(1|s,p,void 0,y===void 0?null:y)}function tu(a,s,p,y){var O=cn();y=y===void 0?null:y;var L=void 0;if(Un!==null){var H=Un.memoizedState;if(L=H.destroy,y!==null&&eu(y,H.deps)){O.memoizedState=Wi(s,p,L,y);return}}_n.flags|=a,O.memoizedState=Wi(1|s,p,L,y)}function Iv(a,s){return mc(8390656,8,a,s)}function $p(a,s){return tu(2048,8,a,s)}function Fv(a,s){return tu(4,2,a,s)}function jp(a,s){return tu(4,4,a,s)}function zp(a,s){if(typeof s=="function")return a=a(),s(a),function(){s(null)};if(s!=null)return a=a(),s.current=a,function(){s.current=null}}function $v(a,s,p){return p=p!=null?p.concat([a]):null,tu(4,4,zp.bind(null,s,a),p)}function Od(){}function Hp(a,s){var p=cn();s=s===void 0?null:s;var y=p.memoizedState;return y!==null&&s!==null&&eu(s,y[1])?y[0]:(p.memoizedState=[a,s],a)}function Hr(a,s){var p=cn();s=s===void 0?null:s;var y=p.memoizedState;return y!==null&&s!==null&&eu(s,y[1])?y[0]:(a=a(),p.memoizedState=[a,s],a)}function uo(a,s,p){return(vt&21)===0?(a.baseState&&(a.baseState=!1,qr=!0),a.memoizedState=p):(Se(p,s)||(p=ap(),_n.lanes|=p,rs|=p,a.baseState=!0),s)}function dw(a,s){var p=Vt;Vt=p!==0&&4>p?p:4,a(!0);var y=lc.transition;lc.transition={};try{a(!1),s()}finally{Vt=p,lc.transition=y}}function jv(){return cn().memoizedState}function Ad(a,s,p){var y=as(a);if(p={lane:y,action:p,hasEagerState:!1,eagerState:null,next:null},qp(a))Up(s,p);else if(p=kp(a,s,p,y),p!==null){var O=Wr();mo(p,a,y,O),zv(p,s,y)}}function nu(a,s,p){var y=as(a),O={lane:y,action:p,hasEagerState:!1,eagerState:null,next:null};if(qp(a))Up(s,O);else{var L=a.alternate;if(a.lanes===0&&(L===null||L.lanes===0)&&(L=s.lastRenderedReducer,L!==null))try{var H=s.lastRenderedState,te=L(H,p);if(O.hasEagerState=!0,O.eagerState=te,Se(te,H)){var ue=s.interleaved;ue===null?(O.next=O,ua(s)):(O.next=ue.next,ue.next=O),s.interleaved=O;return}}catch{}finally{}p=kp(a,s,O,y),p!==null&&(O=Wr(),mo(p,a,y,O),zv(p,s,y))}}function qp(a){var s=a.alternate;return a===_n||s!==null&&s===_n}function Up(a,s){cc=uc=!0;var p=a.pending;p===null?s.next=s:(s.next=p.next,p.next=s),a.pending=s}function zv(a,s,p){if((p&4194240)!==0){var y=s.lanes;y&=a.pendingLanes,p|=y,s.lanes=p,$f(a,p)}}var gc={readContext:li,useCallback:Nr,useContext:Nr,useEffect:Nr,useImperativeHandle:Nr,useInsertionEffect:Nr,useLayoutEffect:Nr,useMemo:Nr,useReducer:Nr,useRef:Nr,useState:Nr,useDebugValue:Nr,useDeferredValue:Nr,useTransition:Nr,useMutableSource:Nr,useSyncExternalStore:Nr,useId:Nr,unstable_isNewReconciler:!1},ru={readContext:li,useCallback:function(a,s){return lo().memoizedState=[a,s===void 0?null:s],a},useContext:li,useEffect:Iv,useImperativeHandle:function(a,s,p){return p=p!=null?p.concat([a]):null,mc(4194308,4,zp.bind(null,s,a),p)},useLayoutEffect:function(a,s){return mc(4194308,4,a,s)},useInsertionEffect:function(a,s){return mc(4,2,a,s)},useMemo:function(a,s){var p=lo();return s=s===void 0?null:s,a=a(),p.memoizedState=[a,s],a},useReducer:function(a,s,p){var y=lo();return s=p!==void 0?p(s):s,y.memoizedState=y.baseState=s,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:s},y.queue=a,a=a.dispatch=Ad.bind(null,_n,a),[y.memoizedState,a]},useRef:function(a){var s=lo();return a={current:a},s.memoizedState=a},useState:Mv,useDebugValue:Od,useDeferredValue:function(a){return lo().memoizedState=a},useTransition:function(){var a=Mv(!1),s=a[0];return a=dw.bind(null,a[1]),lo().memoizedState=a,[s,a]},useMutableSource:function(){},useSyncExternalStore:function(a,s,p){var y=_n,O=lo();if(un){if(p===void 0)throw Error(n(407));p=p()}else{if(p=s(),rr===null)throw Error(n(349));(vt&30)!==0||xd(y,s,p)}O.memoizedState=p;var L={value:p,getSnapshot:s};return O.queue=L,Iv(Ed.bind(null,y,L,a),[a]),y.flags|=2048,Wi(9,Ip.bind(null,y,L,p,s),void 0,null),p},useId:function(){var a=lo(),s=rr.identifierPrefix;if(un){var p=Do,y=sa;p=(y&~(1<<32-vi(y)-1)).toString(32)+p,s=":"+s+"R"+p,p=fc++,0<p&&(s+="H"+p.toString(32)),s+=":"}else p=Ui++,s=":"+s+"r"+p.toString(32)+":";return a.memoizedState=s},unstable_isNewReconciler:!1},vc={readContext:li,useCallback:Hp,useContext:li,useEffect:$p,useImperativeHandle:$v,useInsertionEffect:Fv,useLayoutEffect:jp,useMemo:Hr,useReducer:hc,useRef:Fp,useState:function(){return hc(Vi)},useDebugValue:Od,useDeferredValue:function(a){var s=cn();return uo(s,Un.memoizedState,a)},useTransition:function(){var a=hc(Vi)[0],s=cn().memoizedState;return[a,s]},useMutableSource:pc,useSyncExternalStore:Mp,useId:jv,unstable_isNewReconciler:!1},hw={readContext:li,useCallback:Hp,useContext:li,useEffect:$p,useImperativeHandle:$v,useInsertionEffect:Fv,useLayoutEffect:jp,useMemo:Hr,useReducer:Cd,useRef:Fp,useState:function(){return Cd(Vi)},useDebugValue:Od,useDeferredValue:function(a){var s=cn();return Un===null?s.memoizedState=a:uo(s,Un.memoizedState,a)},useTransition:function(){var a=Cd(Vi)[0],s=cn().memoizedState;return[a,s]},useMutableSource:pc,useSyncExternalStore:Mp,useId:jv,unstable_isNewReconciler:!1};function Bs(a,s){try{var p="",y=s;do p+=ie(y),y=y.return;while(y);var O=p}catch(L){O=`
|
|
39
|
+
Error generating stack: `+L.message+`
|
|
40
|
+
`+L.stack}return{value:a,source:s,stack:O,digest:null}}function Rd(a,s,p){return{value:a,source:null,stack:p??null,digest:s??null}}function iu(a,s){try{console.error(s.value)}catch(p){setTimeout(function(){throw p})}}var Hv=typeof WeakMap=="function"?WeakMap:Map;function yc(a,s,p){p=ca(-1,p),p.tag=3,p.payload={element:null};var y=s.value;return p.callback=function(){zd||(zd=!0,om=y),iu(a,s)},p}function kd(a,s,p){p=ca(-1,p),p.tag=3;var y=a.type.getDerivedStateFromError;if(typeof y=="function"){var O=s.value;p.payload=function(){return y(O)},p.callback=function(){iu(a,s)}}var L=a.stateNode;return L!==null&&typeof L.componentDidCatch=="function"&&(p.callback=function(){iu(a,s),typeof y!="function"&&(is===null?is=new Set([this]):is.add(this));var H=s.stack;this.componentDidCatch(s.value,{componentStack:H!==null?H:""})}),p}function _c(a,s,p){var y=a.pingCache;if(y===null){y=a.pingCache=new Hv;var O=new Set;y.set(s,O)}else O=y.get(s),O===void 0&&(O=new Set,y.set(s,O));O.has(p)||(O.add(p),a=Sw.bind(null,a,s,p),s.then(a,a))}function qv(a){do{var s;if((s=a.tag===13)&&(s=a.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return a;a=a.return}while(a!==null);return null}function Vp(a,s,p,y,O){return(a.mode&1)===0?(a===s?a.flags|=65536:(a.flags|=128,p.flags|=131072,p.flags&=-52805,p.tag===1&&(p.alternate===null?p.tag=17:(s=ca(-1,1),s.tag=2,Fo(p,s,1))),p.lanes|=1),a):(a.flags|=65536,a.lanes=O,a)}var Nd=x.ReactCurrentOwner,qr=!1;function pr(a,s,p,y){s.child=a===null?vd(s,null,p,y):Yl(s,a.child,p,y)}function Uv(a,s,p,y,O){p=p.render;var L=s.ref;return zr(s,O),y=dc(a,s,p,y,L,O),p=bd(),a!==null&&!qr?(s.updateQueue=a.updateQueue,s.flags&=-2053,a.lanes&=~O,co(a,s,O)):(un&&p&&Ap(s),s.flags|=1,pr(a,s,y,O),s.child)}function Wp(a,s,p,y,O){if(a===null){var L=p.type;return typeof L=="function"&&!Gd(L)&&L.defaultProps===void 0&&p.compare===null&&p.defaultProps===void 0?(s.tag=15,s.type=L,$o(a,s,L,y,O)):(a=Bd(p.type,null,y,s,s.mode,O),a.ref=s.ref,a.return=s,s.child=a)}if(L=a.child,(a.lanes&O)===0){var H=L.memoizedProps;if(p=p.compare,p=p!==null?p:we,p(H,y)&&a.ref===s.ref)return co(a,s,O)}return s.flags|=1,a=go(L,y),a.ref=s.ref,a.return=s,s.child=a}function $o(a,s,p,y,O){if(a!==null){var L=a.memoizedProps;if(we(L,y)&&a.ref===s.ref)if(qr=!1,s.pendingProps=y=L,(a.lanes&O)!==0)(a.flags&131072)!==0&&(qr=!0);else return s.lanes=a.lanes,co(a,s,O)}return Kp(a,s,p,y,O)}function Gp(a,s,p){var y=s.pendingProps,O=y.children,L=a!==null?a.memoizedState:null;if(y.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},nn(lu,bi),bi|=p;else{if((p&1073741824)===0)return a=L!==null?L.baseLanes|p:p,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:a,cachePool:null,transitions:null},s.updateQueue=null,nn(lu,bi),bi|=a,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},y=L!==null?L.baseLanes:p,nn(lu,bi),bi|=y}else L!==null?(y=L.baseLanes|p,s.memoizedState=null):y=p,nn(lu,bi),bi|=y;return pr(a,s,O,p),s.child}function Bp(a,s){var p=s.ref;(a===null&&p!==null||a!==null&&a.ref!==p)&&(s.flags|=512,s.flags|=2097152)}function Kp(a,s,p,y,O){var L=oi(p)?js:Rr.current;return L=ii(s,L),zr(s,O),p=dc(a,s,p,y,L,O),y=bd(),a!==null&&!qr?(s.updateQueue=a.updateQueue,s.flags&=-2053,a.lanes&=~O,co(a,s,O)):(un&&y&&Ap(s),s.flags|=1,pr(a,s,p,O),s.child)}function Xp(a,s,p,y,O){if(oi(p)){var L=!0;od(s)}else L=!1;if(zr(s,O),s.stateNode===null)Dd(a,s),pd(s,p,y),Dp(s,p,y,O),y=!0;else if(a===null){var H=s.stateNode,te=s.memoizedProps;H.props=te;var ue=H.context,_e=p.contextType;typeof _e=="object"&&_e!==null?_e=li(_e):(_e=oi(p)?js:Rr.current,_e=ii(s,_e));var Pe=p.getDerivedStateFromProps,Ie=typeof Pe=="function"||typeof H.getSnapshotBeforeUpdate=="function";Ie||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(te!==y||ue!==_e)&&Pp(s,H,y,_e),Io=!1;var Ne=s.memoizedState;H.state=Ne,oc(s,y,H,O),ue=s.memoizedState,te!==y||Ne!==ue||ri.current||Io?(typeof Pe=="function"&&(Vs(s,p,Pe,y),ue=s.memoizedState),(te=Io||Dv(s,p,te,y,Ne,ue,_e))?(Ie||typeof H.UNSAFE_componentWillMount!="function"&&typeof H.componentWillMount!="function"||(typeof H.componentWillMount=="function"&&H.componentWillMount(),typeof H.UNSAFE_componentWillMount=="function"&&H.UNSAFE_componentWillMount()),typeof H.componentDidMount=="function"&&(s.flags|=4194308)):(typeof H.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=y,s.memoizedState=ue),H.props=y,H.state=ue,H.context=_e,y=te):(typeof H.componentDidMount=="function"&&(s.flags|=4194308),y=!1)}else{H=s.stateNode,kv(a,s),te=s.memoizedProps,_e=s.type===s.elementType?te:qi(s.type,te),H.props=_e,Ie=s.pendingProps,Ne=H.context,ue=p.contextType,typeof ue=="object"&&ue!==null?ue=li(ue):(ue=oi(p)?js:Rr.current,ue=ii(s,ue));var Ve=p.getDerivedStateFromProps;(Pe=typeof Ve=="function"||typeof H.getSnapshotBeforeUpdate=="function")||typeof H.UNSAFE_componentWillReceiveProps!="function"&&typeof H.componentWillReceiveProps!="function"||(te!==Ie||Ne!==ue)&&Pp(s,H,y,ue),Io=!1,Ne=s.memoizedState,H.state=Ne,oc(s,y,H,O);var Ye=s.memoizedState;te!==Ie||Ne!==Ye||ri.current||Io?(typeof Ve=="function"&&(Vs(s,p,Ve,y),Ye=s.memoizedState),(_e=Io||Dv(s,p,_e,y,Ne,Ye,ue)||!1)?(Pe||typeof H.UNSAFE_componentWillUpdate!="function"&&typeof H.componentWillUpdate!="function"||(typeof H.componentWillUpdate=="function"&&H.componentWillUpdate(y,Ye,ue),typeof H.UNSAFE_componentWillUpdate=="function"&&H.UNSAFE_componentWillUpdate(y,Ye,ue)),typeof H.componentDidUpdate=="function"&&(s.flags|=4),typeof H.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof H.componentDidUpdate!="function"||te===a.memoizedProps&&Ne===a.memoizedState||(s.flags|=4),typeof H.getSnapshotBeforeUpdate!="function"||te===a.memoizedProps&&Ne===a.memoizedState||(s.flags|=1024),s.memoizedProps=y,s.memoizedState=Ye),H.props=y,H.state=Ye,H.context=ue,y=_e):(typeof H.componentDidUpdate!="function"||te===a.memoizedProps&&Ne===a.memoizedState||(s.flags|=4),typeof H.getSnapshotBeforeUpdate!="function"||te===a.memoizedProps&&Ne===a.memoizedState||(s.flags|=1024),y=!1)}return Yp(a,s,p,y,L,O)}function Yp(a,s,p,y,O,L){Bp(a,s);var H=(s.flags&128)!==0;if(!y&&!H)return O&&Po(s,p,!1),co(a,s,L);y=s.stateNode,Nd.current=s;var te=H&&typeof p.getDerivedStateFromError!="function"?null:y.render();return s.flags|=1,a!==null&&H?(s.child=Yl(s,a.child,null,L),s.child=Yl(s,null,te,L)):pr(a,s,te,L),s.memoizedState=y.state,O&&Po(s,p,!0),s.child}function Vv(a){var s=a.stateNode;s.pendingContext?Ev(a,s.pendingContext,s.pendingContext!==s.context):s.context&&Ev(a,s.context,!1),yd(a,s.containerInfo)}function jo(a,s,p,y,O){return Hs(),qs(O),s.flags|=256,pr(a,s,p,y),s.child}var wc={dehydrated:null,treeContext:null,retryLane:0};function Sc(a){return{baseLanes:a,cachePool:null,transitions:null}}function Pd(a,s,p){var y=s.pendingProps,O=yn.current,L=!1,H=(s.flags&128)!==0,te;if((te=H)||(te=a!==null&&a.memoizedState===null?!1:(O&2)!==0),te?(L=!0,s.flags&=-129):(a===null||a.memoizedState!==null)&&(O|=1),nn(yn,O&1),a===null)return la(s),a=s.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?((s.mode&1)===0?s.lanes=1:a.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(H=y.children,a=y.fallback,L?(y=s.mode,L=s.child,H={mode:"hidden",children:H},(y&1)===0&&L!==null?(L.childLanes=0,L.pendingProps=H):L=Kd(H,y,0,null),a=Zs(a,y,p,null),L.return=s,a.return=s,L.sibling=a,s.child=L,s.child.memoizedState=Sc(p),s.memoizedState=wc,a):ou(s,H));if(O=a.memoizedState,O!==null&&(te=O.dehydrated,te!==null))return lt(a,s,H,y,te,O,p);if(L){L=y.fallback,H=s.mode,O=a.child,te=O.sibling;var ue={mode:"hidden",children:y.children};return(H&1)===0&&s.child!==O?(y=s.child,y.childLanes=0,y.pendingProps=ue,s.deletions=null):(y=go(O,ue),y.subtreeFlags=O.subtreeFlags&14680064),te!==null?L=go(te,L):(L=Zs(L,H,p,null),L.flags|=2),L.return=s,y.return=s,y.sibling=L,s.child=y,y=L,L=s.child,H=a.child.memoizedState,H=H===null?Sc(p):{baseLanes:H.baseLanes|p,cachePool:null,transitions:H.transitions},L.memoizedState=H,L.childLanes=a.childLanes&~p,s.memoizedState=wc,y}return L=a.child,a=L.sibling,y=go(L,{mode:"visible",children:y.children}),(s.mode&1)===0&&(y.lanes=p),y.return=s,y.sibling=null,a!==null&&(p=s.deletions,p===null?(s.deletions=[a],s.flags|=16):p.push(a)),s.child=y,s.memoizedState=null,y}function ou(a,s){return s=Kd({mode:"visible",children:s},a.mode,0,null),s.return=a,a.child=s}function da(a,s,p,y){return y!==null&&qs(y),Yl(s,a.child,null,p),a=ou(s,s.pendingProps.children),a.flags|=2,s.memoizedState=null,a}function lt(a,s,p,y,O,L,H){if(p)return s.flags&256?(s.flags&=-257,y=Rd(Error(n(422))),da(a,s,H,y)):s.memoizedState!==null?(s.child=a.child,s.flags|=128,null):(L=y.fallback,O=s.mode,y=Kd({mode:"visible",children:y.children},O,0,null),L=Zs(L,O,H,null),L.flags|=2,y.return=s,L.return=s,y.sibling=L,s.child=y,(s.mode&1)!==0&&Yl(s,a.child,null,H),s.child.memoizedState=Sc(H),s.memoizedState=wc,L);if((s.mode&1)===0)return da(a,s,H,null);if(O.data==="$!"){if(y=O.nextSibling&&O.nextSibling.dataset,y)var te=y.dgst;return y=te,L=Error(n(419)),y=Rd(L,y,void 0),da(a,s,H,y)}if(te=(H&a.childLanes)!==0,qr||te){if(y=rr,y!==null){switch(H&-H){case 4:O=2;break;case 16:O=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:O=32;break;case 536870912:O=268435456;break;default:O=0}O=(O&(y.suspendedLanes|H))!==0?0:O,O!==0&&O!==L.retryLane&&(L.retryLane=O,vn(a,O),mo(y,a,O,-1))}return fm(),y=Rd(Error(n(421))),da(a,s,H,y)}return O.data==="$?"?(s.flags|=128,s.child=a.child,s=bw.bind(null,a),O._reactRetry=s,null):(a=L.treeContext,kr=Ka(O.nextSibling),hr=s,un=!0,Hi=null,a!==null&&(ji[zi++]=sa,ji[zi++]=Do,ji[zi++]=zs,sa=a.id,Do=a.overflow,zs=s),s=ou(s,y.children),s.flags|=4096,s)}function bc(a,s,p){a.lanes|=s;var y=a.alternate;y!==null&&(y.lanes|=s),fd(a.return,s,p)}function Cc(a,s,p,y,O){var L=a.memoizedState;L===null?a.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:y,tail:p,tailMode:O}:(L.isBackwards=s,L.rendering=null,L.renderingStartTime=0,L.last=y,L.tail=p,L.tailMode=O)}function ts(a,s,p){var y=s.pendingProps,O=y.revealOrder,L=y.tail;if(pr(a,s,y.children,p),y=yn.current,(y&2)!==0)y=y&1|2,s.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=s.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&bc(a,p,s);else if(a.tag===19)bc(a,p,s);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break e;for(;a.sibling===null;){if(a.return===null||a.return===s)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}y&=1}if(nn(yn,y),(s.mode&1)===0)s.memoizedState=null;else switch(O){case"forwards":for(p=s.child,O=null;p!==null;)a=p.alternate,a!==null&&Jl(a)===null&&(O=p),p=p.sibling;p=O,p===null?(O=s.child,s.child=null):(O=p.sibling,p.sibling=null),Cc(s,!1,O,p,L);break;case"backwards":for(p=null,O=s.child,s.child=null;O!==null;){if(a=O.alternate,a!==null&&Jl(a)===null){s.child=O;break}a=O.sibling,O.sibling=p,p=O,O=a}Cc(s,!0,p,null,L);break;case"together":Cc(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function Dd(a,s){(s.mode&1)===0&&a!==null&&(a.alternate=null,s.alternate=null,s.flags|=2)}function co(a,s,p){if(a!==null&&(s.dependencies=a.dependencies),rs|=s.lanes,(p&s.childLanes)===0)return null;if(a!==null&&s.child!==a.child)throw Error(n(153));if(s.child!==null){for(a=s.child,p=go(a,a.pendingProps),s.child=p,p.return=s;a.sibling!==null;)a=a.sibling,p=p.sibling=go(a,a.pendingProps),p.return=s;p.sibling=null}return s.child}function Wv(a,s,p){switch(s.tag){case 3:Vv(s),Hs();break;case 5:Lv(s);break;case 1:oi(s.type)&&od(s);break;case 4:yd(s,s.stateNode.containerInfo);break;case 10:var y=s.type._context,O=s.memoizedProps.value;nn(ud,y._currentValue),y._currentValue=O;break;case 13:if(y=s.memoizedState,y!==null)return y.dehydrated!==null?(nn(yn,yn.current&1),s.flags|=128,null):(p&s.child.childLanes)!==0?Pd(a,s,p):(nn(yn,yn.current&1),a=co(a,s,p),a!==null?a.sibling:null);nn(yn,yn.current&1);break;case 19:if(y=(p&s.childLanes)!==0,(a.flags&128)!==0){if(y)return ts(a,s,p);s.flags|=128}if(O=s.memoizedState,O!==null&&(O.rendering=null,O.tail=null,O.lastEffect=null),nn(yn,yn.current),y)break;return null;case 22:case 23:return s.lanes=0,Gp(a,s,p)}return co(a,s,p)}var mr,Qp,Gv,Zp;mr=function(a,s){for(var p=s.child;p!==null;){if(p.tag===5||p.tag===6)a.appendChild(p.stateNode);else if(p.tag!==4&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===s)break;for(;p.sibling===null;){if(p.return===null||p.return===s)return;p=p.return}p.sibling.return=p.return,p=p.sibling}},Qp=function(){},Gv=function(a,s,p,y){var O=a.memoizedProps;if(O!==y){a=s.stateNode,Ws(so.current);var L=null;switch(p){case"input":O=Je(a,O),y=Je(a,y),L=[];break;case"select":O=$({},O,{value:void 0}),y=$({},y,{value:void 0}),L=[];break;case"textarea":O=nt(a,O),y=nt(a,y),L=[];break;default:typeof O.onClick!="function"&&typeof y.onClick=="function"&&(a.onclick=Qu)}mn(p,y);var H;p=null;for(_e in O)if(!y.hasOwnProperty(_e)&&O.hasOwnProperty(_e)&&O[_e]!=null)if(_e==="style"){var te=O[_e];for(H in te)te.hasOwnProperty(H)&&(p||(p={}),p[H]="")}else _e!=="dangerouslySetInnerHTML"&&_e!=="children"&&_e!=="suppressContentEditableWarning"&&_e!=="suppressHydrationWarning"&&_e!=="autoFocus"&&(i.hasOwnProperty(_e)?L||(L=[]):(L=L||[]).push(_e,null));for(_e in y){var ue=y[_e];if(te=O?.[_e],y.hasOwnProperty(_e)&&ue!==te&&(ue!=null||te!=null))if(_e==="style")if(te){for(H in te)!te.hasOwnProperty(H)||ue&&ue.hasOwnProperty(H)||(p||(p={}),p[H]="");for(H in ue)ue.hasOwnProperty(H)&&te[H]!==ue[H]&&(p||(p={}),p[H]=ue[H])}else p||(L||(L=[]),L.push(_e,p)),p=ue;else _e==="dangerouslySetInnerHTML"?(ue=ue?ue.__html:void 0,te=te?te.__html:void 0,ue!=null&&te!==ue&&(L=L||[]).push(_e,ue)):_e==="children"?typeof ue!="string"&&typeof ue!="number"||(L=L||[]).push(_e,""+ue):_e!=="suppressContentEditableWarning"&&_e!=="suppressHydrationWarning"&&(i.hasOwnProperty(_e)?(ue!=null&&_e==="onScroll"&&an("scroll",a),L||te===ue||(L=[])):(L=L||[]).push(_e,ue))}p&&(L=L||[]).push("style",p);var _e=L;(s.updateQueue=_e)&&(s.flags|=4)}},Zp=function(a,s,p,y){p!==y&&(s.flags|=4)};function xc(a,s){if(!un)switch(a.tailMode){case"hidden":s=a.tail;for(var p=null;s!==null;)s.alternate!==null&&(p=s),s=s.sibling;p===null?a.tail=null:p.sibling=null;break;case"collapsed":p=a.tail;for(var y=null;p!==null;)p.alternate!==null&&(y=p),p=p.sibling;y===null?s||a.tail===null?a.tail=null:a.tail.sibling=null:y.sibling=null}}function gr(a){var s=a.alternate!==null&&a.alternate.child===a.child,p=0,y=0;if(s)for(var O=a.child;O!==null;)p|=O.lanes|O.childLanes,y|=O.subtreeFlags&14680064,y|=O.flags&14680064,O.return=a,O=O.sibling;else for(O=a.child;O!==null;)p|=O.lanes|O.childLanes,y|=O.subtreeFlags,y|=O.flags,O.return=a,O=O.sibling;return a.subtreeFlags|=y,a.childLanes=p,s}function pw(a,s,p){var y=s.pendingProps;switch(nc(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gr(s),null;case 1:return oi(s.type)&&id(),gr(s),null;case 3:return y=s.stateNode,Gs(),Gt(ri),Gt(Rr),sc(),y.pendingContext&&(y.context=y.pendingContext,y.pendingContext=null),(a===null||a.child===null)&&(ld(s)?s.flags|=4:a===null||a.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Hi!==null&&(lm(Hi),Hi=null))),Qp(a,s),gr(s),null;case 5:_d(s);var O=Ws(es.current);if(p=s.type,a!==null&&s.stateNode!=null)Gv(a,s,p,y,O),a.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!y){if(s.stateNode===null)throw Error(n(166));return gr(s),null}if(a=Ws(so.current),ld(s)){y=s.stateNode,p=s.type;var L=s.memoizedProps;switch(y[No]=s,y[tc]=L,a=(s.mode&1)!==0,p){case"dialog":an("cancel",y),an("close",y);break;case"iframe":case"object":case"embed":an("load",y);break;case"video":case"audio":for(O=0;O<zl.length;O++)an(zl[O],y);break;case"source":an("error",y);break;case"img":case"image":case"link":an("error",y),an("load",y);break;case"details":an("toggle",y);break;case"input":ye(y,L),an("invalid",y);break;case"select":y._wrapperState={wasMultiple:!!L.multiple},an("invalid",y);break;case"textarea":ct(y,L),an("invalid",y)}mn(p,L),O=null;for(var H in L)if(L.hasOwnProperty(H)){var te=L[H];H==="children"?typeof te=="string"?y.textContent!==te&&(L.suppressHydrationWarning!==!0&&nd(y.textContent,te,a),O=["children",te]):typeof te=="number"&&y.textContent!==""+te&&(L.suppressHydrationWarning!==!0&&nd(y.textContent,te,a),O=["children",""+te]):i.hasOwnProperty(H)&&te!=null&&H==="onScroll"&&an("scroll",y)}switch(p){case"input":Re(y),Ee(y,L,!0);break;case"textarea":Re(y),_t(y);break;case"select":case"option":break;default:typeof L.onClick=="function"&&(y.onclick=Qu)}y=O,s.updateQueue=y,y!==null&&(s.flags|=4)}else{H=O.nodeType===9?O:O.ownerDocument,a==="http://www.w3.org/1999/xhtml"&&(a=Kt(p)),a==="http://www.w3.org/1999/xhtml"?p==="script"?(a=H.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild)):typeof y.is=="string"?a=H.createElement(p,{is:y.is}):(a=H.createElement(p),p==="select"&&(H=a,y.multiple?H.multiple=!0:y.size&&(H.size=y.size))):a=H.createElementNS(a,p),a[No]=s,a[tc]=y,mr(a,s,!1,!1),s.stateNode=a;e:{switch(H=Jr(p,y),p){case"dialog":an("cancel",a),an("close",a),O=y;break;case"iframe":case"object":case"embed":an("load",a),O=y;break;case"video":case"audio":for(O=0;O<zl.length;O++)an(zl[O],a);O=y;break;case"source":an("error",a),O=y;break;case"img":case"image":case"link":an("error",a),an("load",a),O=y;break;case"details":an("toggle",a),O=y;break;case"input":ye(a,y),O=Je(a,y),an("invalid",a);break;case"option":O=y;break;case"select":a._wrapperState={wasMultiple:!!y.multiple},O=$({},y,{value:void 0}),an("invalid",a);break;case"textarea":ct(a,y),O=nt(a,y),an("invalid",a);break;default:O=y}mn(p,O),te=O;for(L in te)if(te.hasOwnProperty(L)){var ue=te[L];L==="style"?It(a,ue):L==="dangerouslySetInnerHTML"?(ue=ue?ue.__html:void 0,ue!=null&&Zr(a,ue)):L==="children"?typeof ue=="string"?(p!=="textarea"||ue!=="")&&ur(a,ue):typeof ue=="number"&&ur(a,""+ue):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(i.hasOwnProperty(L)?ue!=null&&L==="onScroll"&&an("scroll",a):ue!=null&&T(a,L,ue,H))}switch(p){case"input":Re(a),Ee(a,y,!1);break;case"textarea":Re(a),_t(a);break;case"option":y.value!=null&&a.setAttribute("value",""+ee(y.value));break;case"select":a.multiple=!!y.multiple,L=y.value,L!=null?ze(a,!!y.multiple,L,!1):y.defaultValue!=null&&ze(a,!!y.multiple,y.defaultValue,!0);break;default:typeof O.onClick=="function"&&(a.onclick=Qu)}switch(p){case"button":case"input":case"select":case"textarea":y=!!y.autoFocus;break e;case"img":y=!0;break e;default:y=!1}}y&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return gr(s),null;case 6:if(a&&s.stateNode!=null)Zp(a,s,a.memoizedProps,y);else{if(typeof y!="string"&&s.stateNode===null)throw Error(n(166));if(p=Ws(es.current),Ws(so.current),ld(s)){if(y=s.stateNode,p=s.memoizedProps,y[No]=s,(L=y.nodeValue!==p)&&(a=hr,a!==null))switch(a.tag){case 3:nd(y.nodeValue,p,(a.mode&1)!==0);break;case 5:a.memoizedProps.suppressHydrationWarning!==!0&&nd(y.nodeValue,p,(a.mode&1)!==0)}L&&(s.flags|=4)}else y=(p.nodeType===9?p:p.ownerDocument).createTextNode(y),y[No]=s,s.stateNode=y}return gr(s),null;case 13:if(Gt(yn),y=s.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(un&&kr!==null&&(s.mode&1)!==0&&(s.flags&128)===0)Rp(),Hs(),s.flags|=98560,L=!1;else if(L=ld(s),y!==null&&y.dehydrated!==null){if(a===null){if(!L)throw Error(n(318));if(L=s.memoizedState,L=L!==null?L.dehydrated:null,!L)throw Error(n(317));L[No]=s}else Hs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;gr(s),L=!1}else Hi!==null&&(lm(Hi),Hi=null),L=!0;if(!L)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=p,s):(y=y!==null,y!==(a!==null&&a.memoizedState!==null)&&y&&(s.child.flags|=8192,(s.mode&1)!==0&&(a===null||(yn.current&1)!==0?Vn===0&&(Vn=3):fm())),s.updateQueue!==null&&(s.flags|=4),gr(s),null);case 4:return Gs(),Qp(a,s),a===null&&Ga(s.stateNode.containerInfo),gr(s),null;case 10:return ic(s.type._context),gr(s),null;case 17:return oi(s.type)&&id(),gr(s),null;case 19:if(Gt(yn),L=s.memoizedState,L===null)return gr(s),null;if(y=(s.flags&128)!==0,H=L.rendering,H===null)if(y)xc(L,!1);else{if(Vn!==0||a!==null&&(a.flags&128)!==0)for(a=s.child;a!==null;){if(H=Jl(a),H!==null){for(s.flags|=128,xc(L,!1),y=H.updateQueue,y!==null&&(s.updateQueue=y,s.flags|=4),s.subtreeFlags=0,y=p,p=s.child;p!==null;)L=p,a=y,L.flags&=14680066,H=L.alternate,H===null?(L.childLanes=0,L.lanes=a,L.child=null,L.subtreeFlags=0,L.memoizedProps=null,L.memoizedState=null,L.updateQueue=null,L.dependencies=null,L.stateNode=null):(L.childLanes=H.childLanes,L.lanes=H.lanes,L.child=H.child,L.subtreeFlags=0,L.deletions=null,L.memoizedProps=H.memoizedProps,L.memoizedState=H.memoizedState,L.updateQueue=H.updateQueue,L.type=H.type,a=H.dependencies,L.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),p=p.sibling;return nn(yn,yn.current&1|2),s.child}a=a.sibling}L.tail!==null&&Ot()>Ks&&(s.flags|=128,y=!0,xc(L,!1),s.lanes=4194304)}else{if(!y)if(a=Jl(H),a!==null){if(s.flags|=128,y=!0,p=a.updateQueue,p!==null&&(s.updateQueue=p,s.flags|=4),xc(L,!0),L.tail===null&&L.tailMode==="hidden"&&!H.alternate&&!un)return gr(s),null}else 2*Ot()-L.renderingStartTime>Ks&&p!==1073741824&&(s.flags|=128,y=!0,xc(L,!1),s.lanes=4194304);L.isBackwards?(H.sibling=s.child,s.child=H):(p=L.last,p!==null?p.sibling=H:s.child=H,L.last=H)}return L.tail!==null?(s=L.tail,L.rendering=s,L.tail=s.sibling,L.renderingStartTime=Ot(),s.sibling=null,p=yn.current,nn(yn,y?p&1|2:p&1),s):(gr(s),null);case 22:case 23:return cm(),y=s.memoizedState!==null,a!==null&&a.memoizedState!==null!==y&&(s.flags|=8192),y&&(s.mode&1)!==0?(bi&1073741824)!==0&&(gr(s),s.subtreeFlags&6&&(s.flags|=8192)):gr(s),null;case 24:return null;case 25:return null}throw Error(n(156,s.tag))}function mw(a,s){switch(nc(s),s.tag){case 1:return oi(s.type)&&id(),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return Gs(),Gt(ri),Gt(Rr),sc(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 5:return _d(s),null;case 13:if(Gt(yn),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(n(340));Hs()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return Gt(yn),null;case 4:return Gs(),null;case 10:return ic(s.type._context),null;case 22:case 23:return cm(),null;case 24:return null;default:return null}}var Ld=!1,fn=!1,Ur=typeof WeakSet=="function"?WeakSet:Set,Ke=null;function au(a,s){var p=a.ref;if(p!==null)if(typeof p=="function")try{p(null)}catch(y){wn(a,s,y)}else p.current=null}function Ec(a,s,p){try{p()}catch(y){wn(a,s,y)}}var Bv=!1;function gw(a,s){if(Ep=Uf,a=Pn(),Yt(a)){if("selectionStart"in a)var p={start:a.selectionStart,end:a.selectionEnd};else e:{p=(p=a.ownerDocument)&&p.defaultView||window;var y=p.getSelection&&p.getSelection();if(y&&y.rangeCount!==0){p=y.anchorNode;var O=y.anchorOffset,L=y.focusNode;y=y.focusOffset;try{p.nodeType,L.nodeType}catch{p=null;break e}var H=0,te=-1,ue=-1,_e=0,Pe=0,Ie=a,Ne=null;t:for(;;){for(var Ve;Ie!==p||O!==0&&Ie.nodeType!==3||(te=H+O),Ie!==L||y!==0&&Ie.nodeType!==3||(ue=H+y),Ie.nodeType===3&&(H+=Ie.nodeValue.length),(Ve=Ie.firstChild)!==null;)Ne=Ie,Ie=Ve;for(;;){if(Ie===a)break t;if(Ne===p&&++_e===O&&(te=H),Ne===L&&++Pe===y&&(ue=H),(Ve=Ie.nextSibling)!==null)break;Ie=Ne,Ne=Ie.parentNode}Ie=Ve}p=te===-1||ue===-1?null:{start:te,end:ue}}else p=null}p=p||{start:0,end:0}}else p=null;for(Zu={focusedElem:a,selectionRange:p},Uf=!1,Ke=s;Ke!==null;)if(s=Ke,a=s.child,(s.subtreeFlags&1028)!==0&&a!==null)a.return=s,Ke=a;else for(;Ke!==null;){s=Ke;try{var Ye=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(Ye!==null){var Qe=Ye.memoizedProps,Rn=Ye.memoizedState,me=s.stateNode,de=me.getSnapshotBeforeUpdate(s.elementType===s.type?Qe:qi(s.type,Qe),Rn);me.__reactInternalSnapshotBeforeUpdate=de}break;case 3:var ge=s.stateNode.containerInfo;ge.nodeType===1?ge.textContent="":ge.nodeType===9&&ge.documentElement&&ge.removeChild(ge.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch($e){wn(s,s.return,$e)}if(a=s.sibling,a!==null){a.return=s.return,Ke=a;break}Ke=s.return}return Ye=Bv,Bv=!1,Ye}function ha(a,s,p){var y=s.updateQueue;if(y=y!==null?y.lastEffect:null,y!==null){var O=y=y.next;do{if((O.tag&a)===a){var L=O.destroy;O.destroy=void 0,L!==void 0&&Ec(s,p,L)}O=O.next}while(O!==y)}}function Tc(a,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var p=s=s.next;do{if((p.tag&a)===a){var y=p.create;p.destroy=y()}p=p.next}while(p!==s)}}function Md(a){var s=a.ref;if(s!==null){var p=a.stateNode;switch(a.tag){case 5:a=p;break;default:a=p}typeof s=="function"?s(a):s.current=a}}function Kv(a){var s=a.alternate;s!==null&&(a.alternate=null,Kv(s)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(s=a.stateNode,s!==null&&(delete s[No],delete s[tc],delete s[$s],delete s[xv],delete s[G])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function Xv(a){return a.tag===5||a.tag===3||a.tag===4}function Yv(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Xv(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Jp(a,s,p){var y=a.tag;if(y===5||y===6)a=a.stateNode,s?p.nodeType===8?p.parentNode.insertBefore(a,s):p.insertBefore(a,s):(p.nodeType===8?(s=p.parentNode,s.insertBefore(a,p)):(s=p,s.appendChild(a)),p=p._reactRootContainer,p!=null||s.onclick!==null||(s.onclick=Qu));else if(y!==4&&(a=a.child,a!==null))for(Jp(a,s,p),a=a.sibling;a!==null;)Jp(a,s,p),a=a.sibling}function Id(a,s,p){var y=a.tag;if(y===5||y===6)a=a.stateNode,s?p.insertBefore(a,s):p.appendChild(a);else if(y!==4&&(a=a.child,a!==null))for(Id(a,s,p),a=a.sibling;a!==null;)Id(a,s,p),a=a.sibling}var nr=null,fo=!1;function zo(a,s,p){for(p=p.child;p!==null;)em(a,s,p),p=p.sibling}function em(a,s,p){if(Li&&typeof Li.onCommitFiberUnmount=="function")try{Li.onCommitFiberUnmount(ks,p)}catch{}switch(p.tag){case 5:fn||au(p,s);case 6:var y=nr,O=fo;nr=null,zo(a,s,p),nr=y,fo=O,nr!==null&&(fo?(a=nr,p=p.stateNode,a.nodeType===8?a.parentNode.removeChild(p):a.removeChild(p)):nr.removeChild(p.stateNode));break;case 18:nr!==null&&(fo?(a=nr,p=p.stateNode,a.nodeType===8?Ba(a.parentNode,p):a.nodeType===1&&Ba(a,p),Xt(a)):Ba(nr,p.stateNode));break;case 4:y=nr,O=fo,nr=p.stateNode.containerInfo,fo=!0,zo(a,s,p),nr=y,fo=O;break;case 0:case 11:case 14:case 15:if(!fn&&(y=p.updateQueue,y!==null&&(y=y.lastEffect,y!==null))){O=y=y.next;do{var L=O,H=L.destroy;L=L.tag,H!==void 0&&((L&2)!==0||(L&4)!==0)&&Ec(p,s,H),O=O.next}while(O!==y)}zo(a,s,p);break;case 1:if(!fn&&(au(p,s),y=p.stateNode,typeof y.componentWillUnmount=="function"))try{y.props=p.memoizedProps,y.state=p.memoizedState,y.componentWillUnmount()}catch(te){wn(p,s,te)}zo(a,s,p);break;case 21:zo(a,s,p);break;case 22:p.mode&1?(fn=(y=fn)||p.memoizedState!==null,zo(a,s,p),fn=y):zo(a,s,p);break;default:zo(a,s,p)}}function su(a){var s=a.updateQueue;if(s!==null){a.updateQueue=null;var p=a.stateNode;p===null&&(p=a.stateNode=new Ur),s.forEach(function(y){var O=Cw.bind(null,a,y);p.has(y)||(p.add(y),y.then(O,O))})}}function Si(a,s){var p=s.deletions;if(p!==null)for(var y=0;y<p.length;y++){var O=p[y];try{var L=a,H=s,te=H;e:for(;te!==null;){switch(te.tag){case 5:nr=te.stateNode,fo=!1;break e;case 3:nr=te.stateNode.containerInfo,fo=!0;break e;case 4:nr=te.stateNode.containerInfo,fo=!0;break e}te=te.return}if(nr===null)throw Error(n(160));em(L,H,O),nr=null,fo=!1;var ue=O.alternate;ue!==null&&(ue.return=null),O.return=null}catch(_e){wn(O,s,_e)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)tm(s,a),s=s.sibling}function tm(a,s){var p=a.alternate,y=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:if(Si(s,a),ho(a),y&4){try{ha(3,a,a.return),Tc(3,a)}catch(Qe){wn(a,a.return,Qe)}try{ha(5,a,a.return)}catch(Qe){wn(a,a.return,Qe)}}break;case 1:Si(s,a),ho(a),y&512&&p!==null&&au(p,p.return);break;case 5:if(Si(s,a),ho(a),y&512&&p!==null&&au(p,p.return),a.flags&32){var O=a.stateNode;try{ur(O,"")}catch(Qe){wn(a,a.return,Qe)}}if(y&4&&(O=a.stateNode,O!=null)){var L=a.memoizedProps,H=p!==null?p.memoizedProps:L,te=a.type,ue=a.updateQueue;if(a.updateQueue=null,ue!==null)try{te==="input"&&L.type==="radio"&&L.name!=null&&be(O,L),Jr(te,H);var _e=Jr(te,L);for(H=0;H<ue.length;H+=2){var Pe=ue[H],Ie=ue[H+1];Pe==="style"?It(O,Ie):Pe==="dangerouslySetInnerHTML"?Zr(O,Ie):Pe==="children"?ur(O,Ie):T(O,Pe,Ie,_e)}switch(te){case"input":ke(O,L);break;case"textarea":Ge(O,L);break;case"select":var Ne=O._wrapperState.wasMultiple;O._wrapperState.wasMultiple=!!L.multiple;var Ve=L.value;Ve!=null?ze(O,!!L.multiple,Ve,!1):Ne!==!!L.multiple&&(L.defaultValue!=null?ze(O,!!L.multiple,L.defaultValue,!0):ze(O,!!L.multiple,L.multiple?[]:"",!1))}O[tc]=L}catch(Qe){wn(a,a.return,Qe)}}break;case 6:if(Si(s,a),ho(a),y&4){if(a.stateNode===null)throw Error(n(162));O=a.stateNode,L=a.memoizedProps;try{O.nodeValue=L}catch(Qe){wn(a,a.return,Qe)}}break;case 3:if(Si(s,a),ho(a),y&4&&p!==null&&p.memoizedState.isDehydrated)try{Xt(s.containerInfo)}catch(Qe){wn(a,a.return,Qe)}break;case 4:Si(s,a),ho(a);break;case 13:Si(s,a),ho(a),O=a.child,O.flags&8192&&(L=O.memoizedState!==null,O.stateNode.isHidden=L,!L||O.alternate!==null&&O.alternate.memoizedState!==null||(im=Ot())),y&4&&su(a);break;case 22:if(Pe=p!==null&&p.memoizedState!==null,a.mode&1?(fn=(_e=fn)||Pe,Si(s,a),fn=_e):Si(s,a),ho(a),y&8192){if(_e=a.memoizedState!==null,(a.stateNode.isHidden=_e)&&!Pe&&(a.mode&1)!==0)for(Ke=a,Pe=a.child;Pe!==null;){for(Ie=Ke=Pe;Ke!==null;){switch(Ne=Ke,Ve=Ne.child,Ne.tag){case 0:case 11:case 14:case 15:ha(4,Ne,Ne.return);break;case 1:au(Ne,Ne.return);var Ye=Ne.stateNode;if(typeof Ye.componentWillUnmount=="function"){y=Ne,p=Ne.return;try{s=y,Ye.props=s.memoizedProps,Ye.state=s.memoizedState,Ye.componentWillUnmount()}catch(Qe){wn(y,p,Qe)}}break;case 5:au(Ne,Ne.return);break;case 22:if(Ne.memoizedState!==null){ns(Ie);continue}}Ve!==null?(Ve.return=Ne,Ke=Ve):ns(Ie)}Pe=Pe.sibling}e:for(Pe=null,Ie=a;;){if(Ie.tag===5){if(Pe===null){Pe=Ie;try{O=Ie.stateNode,_e?(L=O.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none"):(te=Ie.stateNode,ue=Ie.memoizedProps.style,H=ue!=null&&ue.hasOwnProperty("display")?ue.display:null,te.style.display=it("display",H))}catch(Qe){wn(a,a.return,Qe)}}}else if(Ie.tag===6){if(Pe===null)try{Ie.stateNode.nodeValue=_e?"":Ie.memoizedProps}catch(Qe){wn(a,a.return,Qe)}}else if((Ie.tag!==22&&Ie.tag!==23||Ie.memoizedState===null||Ie===a)&&Ie.child!==null){Ie.child.return=Ie,Ie=Ie.child;continue}if(Ie===a)break e;for(;Ie.sibling===null;){if(Ie.return===null||Ie.return===a)break e;Pe===Ie&&(Pe=null),Ie=Ie.return}Pe===Ie&&(Pe=null),Ie.sibling.return=Ie.return,Ie=Ie.sibling}}break;case 19:Si(s,a),ho(a),y&4&&su(a);break;case 21:break;default:Si(s,a),ho(a)}}function ho(a){var s=a.flags;if(s&2){try{e:{for(var p=a.return;p!==null;){if(Xv(p)){var y=p;break e}p=p.return}throw Error(n(160))}switch(y.tag){case 5:var O=y.stateNode;y.flags&32&&(ur(O,""),y.flags&=-33);var L=Yv(a);Id(a,L,O);break;case 3:case 4:var H=y.stateNode.containerInfo,te=Yv(a);Jp(a,te,H);break;default:throw Error(n(161))}}catch(ue){wn(a,a.return,ue)}a.flags&=-3}s&4096&&(a.flags&=-4097)}function Fd(a,s,p){Ke=a,nm(a)}function nm(a,s,p){for(var y=(a.mode&1)!==0;Ke!==null;){var O=Ke,L=O.child;if(O.tag===22&&y){var H=O.memoizedState!==null||Ld;if(!H){var te=O.alternate,ue=te!==null&&te.memoizedState!==null||fn;te=Ld;var _e=fn;if(Ld=H,(fn=ue)&&!_e)for(Ke=O;Ke!==null;)H=Ke,ue=H.child,H.tag===22&&H.memoizedState!==null?Qv(O):ue!==null?(ue.return=H,Ke=ue):Qv(O);for(;L!==null;)Ke=L,nm(L),L=L.sibling;Ke=O,Ld=te,fn=_e}po(a)}else(O.subtreeFlags&8772)!==0&&L!==null?(L.return=O,Ke=L):po(a)}}function po(a){for(;Ke!==null;){var s=Ke;if((s.flags&8772)!==0){var p=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:fn||Tc(5,s);break;case 1:var y=s.stateNode;if(s.flags&4&&!fn)if(p===null)y.componentDidMount();else{var O=s.elementType===s.type?p.memoizedProps:qi(s.type,p.memoizedProps);y.componentDidUpdate(O,p.memoizedState,y.__reactInternalSnapshotBeforeUpdate)}var L=s.updateQueue;L!==null&&Nv(s,L,y);break;case 3:var H=s.updateQueue;if(H!==null){if(p=null,s.child!==null)switch(s.child.tag){case 5:p=s.child.stateNode;break;case 1:p=s.child.stateNode}Nv(s,H,p)}break;case 5:var te=s.stateNode;if(p===null&&s.flags&4){p=te;var ue=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":ue.autoFocus&&p.focus();break;case"img":ue.src&&(p.src=ue.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var _e=s.alternate;if(_e!==null){var Pe=_e.memoizedState;if(Pe!==null){var Ie=Pe.dehydrated;Ie!==null&&Xt(Ie)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}fn||s.flags&512&&Md(s)}catch(Ne){wn(s,s.return,Ne)}}if(s===a){Ke=null;break}if(p=s.sibling,p!==null){p.return=s.return,Ke=p;break}Ke=s.return}}function ns(a){for(;Ke!==null;){var s=Ke;if(s===a){Ke=null;break}var p=s.sibling;if(p!==null){p.return=s.return,Ke=p;break}Ke=s.return}}function Qv(a){for(;Ke!==null;){var s=Ke;try{switch(s.tag){case 0:case 11:case 15:var p=s.return;try{Tc(4,s)}catch(ue){wn(s,p,ue)}break;case 1:var y=s.stateNode;if(typeof y.componentDidMount=="function"){var O=s.return;try{y.componentDidMount()}catch(ue){wn(s,O,ue)}}var L=s.return;try{Md(s)}catch(ue){wn(s,L,ue)}break;case 5:var H=s.return;try{Md(s)}catch(ue){wn(s,H,ue)}}}catch(ue){wn(s,s.return,ue)}if(s===a){Ke=null;break}var te=s.sibling;if(te!==null){te.return=s.return,Ke=te;break}Ke=s.return}}var Zv=Math.ceil,$d=x.ReactCurrentDispatcher,rm=x.ReactCurrentOwner,Gi=x.ReactCurrentBatchConfig,jt=0,rr=null,Dn=null,vr=0,bi=0,lu=Ya(0),Vn=0,Oc=null,rs=0,Ac=0,jd=0,Rc=null,ui=null,im=0,Ks=1/0,pa=null,zd=!1,om=null,is=null,Hd=!1,os=null,Vr=0,kc=0,am=null,qd=-1,Nc=0;function Wr(){return(jt&6)!==0?Ot():qd!==-1?qd:qd=Ot()}function as(a){return(a.mode&1)===0?1:(jt&2)!==0&&vr!==0?vr&-vr:Ja.transition!==null?(Nc===0&&(Nc=ap()),Nc):(a=Vt,a!==0||(a=window.event,a=a===void 0?16:dp(a.type)),a)}function mo(a,s,p,y){if(50<kc)throw kc=0,am=null,Error(n(185));Ns(a,p,y),((jt&2)===0||a!==rr)&&(a===rr&&((jt&2)===0&&(Ac|=p),Vn===4&&ss(a,vr)),ci(a,y),p===1&&jt===0&&(s.mode&1)===0&&(Ks=Ot()+500,ad&&ai()))}function ci(a,s){var p=a.callbackNode;na(a,s);var y=at(a,a===rr?vr:0);if(y===0)p!==null&&Df(p),a.callbackNode=null,a.callbackPriority=0;else if(s=y&-y,a.callbackPriority!==s){if(p!=null&&Df(p),s===1)a.tag===0?fw(Jv.bind(null,a)):Ov(Jv.bind(null,a)),ec(function(){(jt&6)===0&&ai()}),p=null;else{switch(jf(y)){case 1:p=Nu;break;case 4:p=Lf;break;case 16:p=Rl;break;case 536870912:p=Pu;break;default:p=Rl}p=a0(p,Ud.bind(null,a))}a.callbackPriority=s,a.callbackNode=p}}function Ud(a,s){if(qd=-1,Nc=0,(jt&6)!==0)throw Error(n(327));var p=a.callbackNode;if(uu()&&a.callbackNode!==p)return null;var y=at(a,a===rr?vr:0);if(y===0)return null;if((y&30)!==0||(y&a.expiredLanes)!==0||s)s=Vd(a,y);else{s=y;var O=jt;jt|=2;var L=t0();(rr!==a||vr!==s)&&(pa=null,Ks=Ot()+500,Ys(a,s));do try{_w();break}catch(te){e0(a,te)}while(!0);qn(),$d.current=L,jt=O,Dn!==null?s=0:(rr=null,vr=0,s=Vn)}if(s!==0){if(s===2&&(O=Mi(a),O!==0&&(y=O,s=sm(a,O))),s===1)throw p=Oc,Ys(a,0),ss(a,y),ci(a,Ot()),p;if(s===6)ss(a,y);else{if(O=a.current.alternate,(y&30)===0&&!vw(O)&&(s=Vd(a,y),s===2&&(L=Mi(a),L!==0&&(y=L,s=sm(a,L))),s===1))throw p=Oc,Ys(a,0),ss(a,y),ci(a,Ot()),p;switch(a.finishedWork=O,a.finishedLanes=y,s){case 0:case 1:throw Error(n(345));case 2:Qs(a,ui,pa);break;case 3:if(ss(a,y),(y&130023424)===y&&(s=im+500-Ot(),10<s)){if(at(a,0)!==0)break;if(O=a.suspendedLanes,(O&y)!==y){Wr(),a.pingedLanes|=a.suspendedLanes&O;break}a.timeoutHandle=Ju(Qs.bind(null,a,ui,pa),s);break}Qs(a,ui,pa);break;case 4:if(ss(a,y),(y&4194240)===y)break;for(s=a.eventTimes,O=-1;0<y;){var H=31-vi(y);L=1<<H,H=s[H],H>O&&(O=H),y&=~L}if(y=O,y=Ot()-y,y=(120>y?120:480>y?480:1080>y?1080:1920>y?1920:3e3>y?3e3:4320>y?4320:1960*Zv(y/1960))-y,10<y){a.timeoutHandle=Ju(Qs.bind(null,a,ui,pa),y);break}Qs(a,ui,pa);break;case 5:Qs(a,ui,pa);break;default:throw Error(n(329))}}}return ci(a,Ot()),a.callbackNode===p?Ud.bind(null,a):null}function sm(a,s){var p=Rc;return a.current.memoizedState.isDehydrated&&(Ys(a,s).flags|=256),a=Vd(a,s),a!==2&&(s=ui,ui=p,s!==null&&lm(s)),a}function lm(a){ui===null?ui=a:ui.push.apply(ui,a)}function vw(a){for(var s=a;;){if(s.flags&16384){var p=s.updateQueue;if(p!==null&&(p=p.stores,p!==null))for(var y=0;y<p.length;y++){var O=p[y],L=O.getSnapshot;O=O.value;try{if(!Se(L(),O))return!1}catch{return!1}}}if(p=s.child,s.subtreeFlags&16384&&p!==null)p.return=s,s=p;else{if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function ss(a,s){for(s&=~jd,s&=~Ac,a.suspendedLanes|=s,a.pingedLanes&=~s,a=a.expirationTimes;0<s;){var p=31-vi(s),y=1<<p;a[p]=-1,s&=~y}}function Jv(a){if((jt&6)!==0)throw Error(n(327));uu();var s=at(a,0);if((s&1)===0)return ci(a,Ot()),null;var p=Vd(a,s);if(a.tag!==0&&p===2){var y=Mi(a);y!==0&&(s=y,p=sm(a,y))}if(p===1)throw p=Oc,Ys(a,0),ss(a,s),ci(a,Ot()),p;if(p===6)throw Error(n(345));return a.finishedWork=a.current.alternate,a.finishedLanes=s,Qs(a,ui,pa),ci(a,Ot()),null}function um(a,s){var p=jt;jt|=1;try{return a(s)}finally{jt=p,jt===0&&(Ks=Ot()+500,ad&&ai())}}function Xs(a){os!==null&&os.tag===0&&(jt&6)===0&&uu();var s=jt;jt|=1;var p=Gi.transition,y=Vt;try{if(Gi.transition=null,Vt=1,a)return a()}finally{Vt=y,Gi.transition=p,jt=s,(jt&6)===0&&ai()}}function cm(){bi=lu.current,Gt(lu)}function Ys(a,s){a.finishedWork=null,a.finishedLanes=0;var p=a.timeoutHandle;if(p!==-1&&(a.timeoutHandle=-1,ql(p)),Dn!==null)for(p=Dn.return;p!==null;){var y=p;switch(nc(y),y.tag){case 1:y=y.type.childContextTypes,y!=null&&id();break;case 3:Gs(),Gt(ri),Gt(Rr),sc();break;case 5:_d(y);break;case 4:Gs();break;case 13:Gt(yn);break;case 19:Gt(yn);break;case 10:ic(y.type._context);break;case 22:case 23:cm()}p=p.return}if(rr=a,Dn=a=go(a.current,null),vr=bi=s,Vn=0,Oc=null,jd=Ac=rs=0,ui=Rc=null,Mo!==null){for(s=0;s<Mo.length;s++)if(p=Mo[s],y=p.interleaved,y!==null){p.interleaved=null;var O=y.next,L=p.pending;if(L!==null){var H=L.next;L.next=O,y.next=H}p.pending=y}Mo=null}return a}function e0(a,s){do{var p=Dn;try{if(qn(),Sd.current=gc,uc){for(var y=_n.memoizedState;y!==null;){var O=y.queue;O!==null&&(O.pending=null),y=y.next}uc=!1}if(vt=0,xn=Un=_n=null,cc=!1,fc=0,rm.current=null,p===null||p.return===null){Vn=1,Oc=s,Dn=null;break}e:{var L=a,H=p.return,te=p,ue=s;if(s=vr,te.flags|=32768,ue!==null&&typeof ue=="object"&&typeof ue.then=="function"){var _e=ue,Pe=te,Ie=Pe.tag;if((Pe.mode&1)===0&&(Ie===0||Ie===11||Ie===15)){var Ne=Pe.alternate;Ne?(Pe.updateQueue=Ne.updateQueue,Pe.memoizedState=Ne.memoizedState,Pe.lanes=Ne.lanes):(Pe.updateQueue=null,Pe.memoizedState=null)}var Ve=qv(H);if(Ve!==null){Ve.flags&=-257,Vp(Ve,H,te,L,s),Ve.mode&1&&_c(L,_e,s),s=Ve,ue=_e;var Ye=s.updateQueue;if(Ye===null){var Qe=new Set;Qe.add(ue),s.updateQueue=Qe}else Ye.add(ue);break e}else{if((s&1)===0){_c(L,_e,s),fm();break e}ue=Error(n(426))}}else if(un&&te.mode&1){var Rn=qv(H);if(Rn!==null){(Rn.flags&65536)===0&&(Rn.flags|=256),Vp(Rn,H,te,L,s),qs(Bs(ue,te));break e}}L=ue=Bs(ue,te),Vn!==4&&(Vn=2),Rc===null?Rc=[L]:Rc.push(L),L=H;do{switch(L.tag){case 3:L.flags|=65536,s&=-s,L.lanes|=s;var me=yc(L,ue,s);Xl(L,me);break e;case 1:te=ue;var de=L.type,ge=L.stateNode;if((L.flags&128)===0&&(typeof de.getDerivedStateFromError=="function"||ge!==null&&typeof ge.componentDidCatch=="function"&&(is===null||!is.has(ge)))){L.flags|=65536,s&=-s,L.lanes|=s;var $e=kd(L,te,s);Xl(L,$e);break e}}L=L.return}while(L!==null)}r0(p)}catch(tt){s=tt,Dn===p&&p!==null&&(Dn=p=p.return);continue}break}while(!0)}function t0(){var a=$d.current;return $d.current=gc,a===null?gc:a}function fm(){(Vn===0||Vn===3||Vn===2)&&(Vn=4),rr===null||(rs&268435455)===0&&(Ac&268435455)===0||ss(rr,vr)}function Vd(a,s){var p=jt;jt|=2;var y=t0();(rr!==a||vr!==s)&&(pa=null,Ys(a,s));do try{yw();break}catch(O){e0(a,O)}while(!0);if(qn(),jt=p,$d.current=y,Dn!==null)throw Error(n(261));return rr=null,vr=0,Vn}function yw(){for(;Dn!==null;)n0(Dn)}function _w(){for(;Dn!==null&&!ip();)n0(Dn)}function n0(a){var s=o0(a.alternate,a,bi);a.memoizedProps=a.pendingProps,s===null?r0(a):Dn=s,rm.current=null}function r0(a){var s=a;do{var p=s.alternate;if(a=s.return,(s.flags&32768)===0){if(p=pw(p,s,bi),p!==null){Dn=p;return}}else{if(p=mw(p,s),p!==null){p.flags&=32767,Dn=p;return}if(a!==null)a.flags|=32768,a.subtreeFlags=0,a.deletions=null;else{Vn=6,Dn=null;return}}if(s=s.sibling,s!==null){Dn=s;return}Dn=s=a}while(s!==null);Vn===0&&(Vn=5)}function Qs(a,s,p){var y=Vt,O=Gi.transition;try{Gi.transition=null,Vt=1,ww(a,s,p,y)}finally{Gi.transition=O,Vt=y}return null}function ww(a,s,p,y){do uu();while(os!==null);if((jt&6)!==0)throw Error(n(327));p=a.finishedWork;var O=a.finishedLanes;if(p===null)return null;if(a.finishedWork=null,a.finishedLanes=0,p===a.current)throw Error(n(177));a.callbackNode=null,a.callbackPriority=0;var L=p.lanes|p.childLanes;if(B_(a,L),a===rr&&(Dn=rr=null,vr=0),(p.subtreeFlags&2064)===0&&(p.flags&2064)===0||Hd||(Hd=!0,a0(Rl,function(){return uu(),null})),L=(p.flags&15990)!==0,(p.subtreeFlags&15990)!==0||L){L=Gi.transition,Gi.transition=null;var H=Vt;Vt=1;var te=jt;jt|=4,rm.current=null,gw(a,p),tm(p,a),Sp(Zu),Uf=!!Ep,Zu=Ep=null,a.current=p,Fd(p),Al(),jt=te,Vt=H,Gi.transition=L}else a.current=p;if(Hd&&(Hd=!1,os=a,Vr=O),L=a.pendingLanes,L===0&&(is=null),Da(p.stateNode),ci(a,Ot()),s!==null)for(y=a.onRecoverableError,p=0;p<s.length;p++)O=s[p],y(O.value,{componentStack:O.stack,digest:O.digest});if(zd)throw zd=!1,a=om,om=null,a;return(Vr&1)!==0&&a.tag!==0&&uu(),L=a.pendingLanes,(L&1)!==0?a===am?kc++:(kc=0,am=a):kc=0,ai(),null}function uu(){if(os!==null){var a=jf(Vr),s=Gi.transition,p=Vt;try{if(Gi.transition=null,Vt=16>a?16:a,os===null)var y=!1;else{if(a=os,os=null,Vr=0,(jt&6)!==0)throw Error(n(331));var O=jt;for(jt|=4,Ke=a.current;Ke!==null;){var L=Ke,H=L.child;if((Ke.flags&16)!==0){var te=L.deletions;if(te!==null){for(var ue=0;ue<te.length;ue++){var _e=te[ue];for(Ke=_e;Ke!==null;){var Pe=Ke;switch(Pe.tag){case 0:case 11:case 15:ha(8,Pe,L)}var Ie=Pe.child;if(Ie!==null)Ie.return=Pe,Ke=Ie;else for(;Ke!==null;){Pe=Ke;var Ne=Pe.sibling,Ve=Pe.return;if(Kv(Pe),Pe===_e){Ke=null;break}if(Ne!==null){Ne.return=Ve,Ke=Ne;break}Ke=Ve}}}var Ye=L.alternate;if(Ye!==null){var Qe=Ye.child;if(Qe!==null){Ye.child=null;do{var Rn=Qe.sibling;Qe.sibling=null,Qe=Rn}while(Qe!==null)}}Ke=L}}if((L.subtreeFlags&2064)!==0&&H!==null)H.return=L,Ke=H;else e:for(;Ke!==null;){if(L=Ke,(L.flags&2048)!==0)switch(L.tag){case 0:case 11:case 15:ha(9,L,L.return)}var me=L.sibling;if(me!==null){me.return=L.return,Ke=me;break e}Ke=L.return}}var de=a.current;for(Ke=de;Ke!==null;){H=Ke;var ge=H.child;if((H.subtreeFlags&2064)!==0&&ge!==null)ge.return=H,Ke=ge;else e:for(H=de;Ke!==null;){if(te=Ke,(te.flags&2048)!==0)try{switch(te.tag){case 0:case 11:case 15:Tc(9,te)}}catch(tt){wn(te,te.return,tt)}if(te===H){Ke=null;break e}var $e=te.sibling;if($e!==null){$e.return=te.return,Ke=$e;break e}Ke=te.return}}if(jt=O,ai(),Li&&typeof Li.onPostCommitFiberRoot=="function")try{Li.onPostCommitFiberRoot(ks,a)}catch{}y=!0}return y}finally{Vt=p,Gi.transition=s}}return!1}function Wd(a,s,p){s=Bs(p,s),s=yc(a,s,1),a=Fo(a,s,1),s=Wr(),a!==null&&(Ns(a,1,s),ci(a,s))}function wn(a,s,p){if(a.tag===3)Wd(a,a,p);else for(;s!==null;){if(s.tag===3){Wd(s,a,p);break}else if(s.tag===1){var y=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof y.componentDidCatch=="function"&&(is===null||!is.has(y))){a=Bs(p,a),a=kd(s,a,1),s=Fo(s,a,1),a=Wr(),s!==null&&(Ns(s,1,a),ci(s,a));break}}s=s.return}}function Sw(a,s,p){var y=a.pingCache;y!==null&&y.delete(s),s=Wr(),a.pingedLanes|=a.suspendedLanes&p,rr===a&&(vr&p)===p&&(Vn===4||Vn===3&&(vr&130023424)===vr&&500>Ot()-im?Ys(a,0):jd|=p),ci(a,s)}function i0(a,s){s===0&&((a.mode&1)===0?s=1:(s=Cn,Cn<<=1,(Cn&130023424)===0&&(Cn=4194304)));var p=Wr();a=vn(a,s),a!==null&&(Ns(a,s,p),ci(a,p))}function bw(a){var s=a.memoizedState,p=0;s!==null&&(p=s.retryLane),i0(a,p)}function Cw(a,s){var p=0;switch(a.tag){case 13:var y=a.stateNode,O=a.memoizedState;O!==null&&(p=O.retryLane);break;case 19:y=a.stateNode;break;default:throw Error(n(314))}y!==null&&y.delete(s),i0(a,p)}var o0;o0=function(a,s,p){if(a!==null)if(a.memoizedProps!==s.pendingProps||ri.current)qr=!0;else{if((a.lanes&p)===0&&(s.flags&128)===0)return qr=!1,Wv(a,s,p);qr=(a.flags&131072)!==0}else qr=!1,un&&(s.flags&1048576)!==0&&Av(s,sd,s.index);switch(s.lanes=0,s.tag){case 2:var y=s.type;Dd(a,s),a=s.pendingProps;var O=ii(s,Rr.current);zr(s,p),O=dc(null,s,y,a,O,p);var L=bd();return s.flags|=1,typeof O=="object"&&O!==null&&typeof O.render=="function"&&O.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,oi(y)?(L=!0,od(s)):L=!1,s.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,Np(s),O.updater=hd,s.stateNode=O,O._reactInternals=s,Dp(s,y,a,p),s=Yp(null,s,y,!0,L,p)):(s.tag=0,un&&L&&Ap(s),pr(null,s,O,p),s=s.child),s;case 16:y=s.elementType;e:{switch(Dd(a,s),a=s.pendingProps,O=y._init,y=O(y._payload),s.type=y,O=s.tag=Ew(y),a=qi(y,a),O){case 0:s=Kp(null,s,y,a,p);break e;case 1:s=Xp(null,s,y,a,p);break e;case 11:s=Uv(null,s,y,a,p);break e;case 14:s=Wp(null,s,y,qi(y.type,a),p);break e}throw Error(n(306,y,""))}return s;case 0:return y=s.type,O=s.pendingProps,O=s.elementType===y?O:qi(y,O),Kp(a,s,y,O,p);case 1:return y=s.type,O=s.pendingProps,O=s.elementType===y?O:qi(y,O),Xp(a,s,y,O,p);case 3:e:{if(Vv(s),a===null)throw Error(n(387));y=s.pendingProps,L=s.memoizedState,O=L.element,kv(a,s),oc(s,y,null,p);var H=s.memoizedState;if(y=H.element,L.isDehydrated)if(L={element:y,isDehydrated:!1,cache:H.cache,pendingSuspenseBoundaries:H.pendingSuspenseBoundaries,transitions:H.transitions},s.updateQueue.baseState=L,s.memoizedState=L,s.flags&256){O=Bs(Error(n(423)),s),s=jo(a,s,y,p,O);break e}else if(y!==O){O=Bs(Error(n(424)),s),s=jo(a,s,y,p,O);break e}else for(kr=Ka(s.stateNode.containerInfo.firstChild),hr=s,un=!0,Hi=null,p=vd(s,null,y,p),s.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling;else{if(Hs(),y===O){s=co(a,s,p);break e}pr(a,s,y,p)}s=s.child}return s;case 5:return Lv(s),a===null&&la(s),y=s.type,O=s.pendingProps,L=a!==null?a.memoizedProps:null,H=O.children,Fs(y,O)?H=null:L!==null&&Fs(y,L)&&(s.flags|=32),Bp(a,s),pr(a,s,H,p),s.child;case 6:return a===null&&la(s),null;case 13:return Pd(a,s,p);case 4:return yd(s,s.stateNode.containerInfo),y=s.pendingProps,a===null?s.child=Yl(s,null,y,p):pr(a,s,y,p),s.child;case 11:return y=s.type,O=s.pendingProps,O=s.elementType===y?O:qi(y,O),Uv(a,s,y,O,p);case 7:return pr(a,s,s.pendingProps,p),s.child;case 8:return pr(a,s,s.pendingProps.children,p),s.child;case 12:return pr(a,s,s.pendingProps.children,p),s.child;case 10:e:{if(y=s.type._context,O=s.pendingProps,L=s.memoizedProps,H=O.value,nn(ud,y._currentValue),y._currentValue=H,L!==null)if(Se(L.value,H)){if(L.children===O.children&&!ri.current){s=co(a,s,p);break e}}else for(L=s.child,L!==null&&(L.return=s);L!==null;){var te=L.dependencies;if(te!==null){H=L.child;for(var ue=te.firstContext;ue!==null;){if(ue.context===y){if(L.tag===1){ue=ca(-1,p&-p),ue.tag=2;var _e=L.updateQueue;if(_e!==null){_e=_e.shared;var Pe=_e.pending;Pe===null?ue.next=ue:(ue.next=Pe.next,Pe.next=ue),_e.pending=ue}}L.lanes|=p,ue=L.alternate,ue!==null&&(ue.lanes|=p),fd(L.return,p,s),te.lanes|=p;break}ue=ue.next}}else if(L.tag===10)H=L.type===s.type?null:L.child;else if(L.tag===18){if(H=L.return,H===null)throw Error(n(341));H.lanes|=p,te=H.alternate,te!==null&&(te.lanes|=p),fd(H,p,s),H=L.sibling}else H=L.child;if(H!==null)H.return=L;else for(H=L;H!==null;){if(H===s){H=null;break}if(L=H.sibling,L!==null){L.return=H.return,H=L;break}H=H.return}L=H}pr(a,s,O.children,p),s=s.child}return s;case 9:return O=s.type,y=s.pendingProps.children,zr(s,p),O=li(O),y=y(O),s.flags|=1,pr(a,s,y,p),s.child;case 14:return y=s.type,O=qi(y,s.pendingProps),O=qi(y.type,O),Wp(a,s,y,O,p);case 15:return $o(a,s,s.type,s.pendingProps,p);case 17:return y=s.type,O=s.pendingProps,O=s.elementType===y?O:qi(y,O),Dd(a,s),s.tag=1,oi(y)?(a=!0,od(s)):a=!1,zr(s,p),pd(s,y,O),Dp(s,y,O,p),Yp(null,s,y,!0,a,p);case 19:return ts(a,s,p);case 22:return Gp(a,s,p)}throw Error(n(156,s.tag))};function a0(a,s){return Pf(a,s)}function xw(a,s,p,y){this.tag=a,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bi(a,s,p,y){return new xw(a,s,p,y)}function Gd(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Ew(a){if(typeof a=="function")return Gd(a)?1:0;if(a!=null){if(a=a.$$typeof,a===Z)return 11;if(a===fe)return 14}return 2}function go(a,s){var p=a.alternate;return p===null?(p=Bi(a.tag,s,a.key,a.mode),p.elementType=a.elementType,p.type=a.type,p.stateNode=a.stateNode,p.alternate=a,a.alternate=p):(p.pendingProps=s,p.type=a.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=a.flags&14680064,p.childLanes=a.childLanes,p.lanes=a.lanes,p.child=a.child,p.memoizedProps=a.memoizedProps,p.memoizedState=a.memoizedState,p.updateQueue=a.updateQueue,s=a.dependencies,p.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},p.sibling=a.sibling,p.index=a.index,p.ref=a.ref,p}function Bd(a,s,p,y,O,L){var H=2;if(y=a,typeof a=="function")Gd(a)&&(H=1);else if(typeof a=="string")H=5;else e:switch(a){case I:return Zs(p.children,O,L,s);case F:H=8,O|=8;break;case U:return a=Bi(12,p,s,O|2),a.elementType=U,a.lanes=L,a;case J:return a=Bi(13,p,s,O),a.elementType=J,a.lanes=L,a;case oe:return a=Bi(19,p,s,O),a.elementType=oe,a.lanes=L,a;case re:return Kd(p,O,L,s);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case V:H=10;break e;case K:H=9;break e;case Z:H=11;break e;case fe:H=14;break e;case Q:H=16,y=null;break e}throw Error(n(130,a==null?a:typeof a,""))}return s=Bi(H,p,s,O),s.elementType=a,s.type=y,s.lanes=L,s}function Zs(a,s,p,y){return a=Bi(7,a,y,s),a.lanes=p,a}function Kd(a,s,p,y){return a=Bi(22,a,y,s),a.elementType=re,a.lanes=p,a.stateNode={isHidden:!1},a}function dm(a,s,p){return a=Bi(6,a,null,s),a.lanes=p,a}function hm(a,s,p){return s=Bi(4,a.children!==null?a.children:[],a.key,s),s.lanes=p,s.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},s}function Tw(a,s,p,y,O){this.tag=s,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ff(0),this.expirationTimes=Ff(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ff(0),this.identifierPrefix=y,this.onRecoverableError=O,this.mutableSourceEagerHydrationData=null}function pm(a,s,p,y,O,L,H,te,ue){return a=new Tw(a,s,p,te,ue),s===1?(s=1,L===!0&&(s|=8)):s=0,L=Bi(3,null,null,s),a.current=L,L.stateNode=a,L.memoizedState={element:y,isDehydrated:p,cache:null,transitions:null,pendingSuspenseBoundaries:null},Np(L),a}function Ow(a,s,p){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:R,key:y==null?null:""+y,children:a,containerInfo:s,implementation:p}}function s0(a){if(!a)return Qa;a=a._reactInternals;e:{if(ti(a)!==a||a.tag!==1)throw Error(n(170));var s=a;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(oi(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(n(171))}if(a.tag===1){var p=a.type;if(oi(p))return Tv(a,p,s)}return s}function l0(a,s,p,y,O,L,H,te,ue){return a=pm(p,y,!0,a,O,L,H,te,ue),a.context=s0(null),p=a.current,y=Wr(),O=as(p),L=ca(y,O),L.callback=s??null,Fo(p,L,O),a.current.lanes=O,Ns(a,O,y),ci(a,y),a}function Xd(a,s,p,y){var O=s.current,L=Wr(),H=as(O);return p=s0(p),s.context===null?s.context=p:s.pendingContext=p,s=ca(L,H),s.payload={element:a},y=y===void 0?null:y,y!==null&&(s.callback=y),a=Fo(O,s,H),a!==null&&(mo(a,O,H,L),dd(a,O,H)),H}function Yd(a){if(a=a.current,!a.child)return null;switch(a.child.tag){case 5:return a.child.stateNode;default:return a.child.stateNode}}function u0(a,s){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var p=a.retryLane;a.retryLane=p!==0&&p<s?p:s}}function mm(a,s){u0(a,s),(a=a.alternate)&&u0(a,s)}function Aw(){return null}var c0=typeof reportError=="function"?reportError:function(a){console.error(a)};function Qd(a){this._internalRoot=a}Pc.prototype.render=Qd.prototype.render=function(a){var s=this._internalRoot;if(s===null)throw Error(n(409));Xd(a,s,null,null)},Pc.prototype.unmount=Qd.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var s=a.containerInfo;Xs(function(){Xd(null,a,null,null)}),s[Fi]=null}};function Pc(a){this._internalRoot=a}Pc.prototype.unstable_scheduleHydration=function(a){if(a){var s=Qg();a={blockedOn:null,target:a,priority:s};for(var p=0;p<Fa.length&&s!==0&&s<Fa[p].priority;p++);Fa.splice(p,0,a),p===0&&Jg(a)}};function gm(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function Zd(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11&&(a.nodeType!==8||a.nodeValue!==" react-mount-point-unstable "))}function f0(){}function Rw(a,s,p,y,O){if(O){if(typeof y=="function"){var L=y;y=function(){var _e=Yd(H);L.call(_e)}}var H=l0(s,y,a,0,null,!1,!1,"",f0);return a._reactRootContainer=H,a[Fi]=H.current,Ga(a.nodeType===8?a.parentNode:a),Xs(),H}for(;O=a.lastChild;)a.removeChild(O);if(typeof y=="function"){var te=y;y=function(){var _e=Yd(ue);te.call(_e)}}var ue=pm(a,0,!1,null,null,!1,!1,"",f0);return a._reactRootContainer=ue,a[Fi]=ue.current,Ga(a.nodeType===8?a.parentNode:a),Xs(function(){Xd(s,ue,p,y)}),ue}function Js(a,s,p,y,O){var L=p._reactRootContainer;if(L){var H=L;if(typeof O=="function"){var te=O;O=function(){var ue=Yd(H);te.call(ue)}}Xd(s,H,a,O)}else H=Rw(p,s,a,O,y);return Yd(H)}Ps=function(a){switch(a.tag){case 3:var s=a.stateNode;if(s.current.memoizedState.isDehydrated){var p=cr(s.pendingLanes);p!==0&&($f(s,p|1),ci(s,Ot()),(jt&6)===0&&(Ks=Ot()+500,ai()))}break;case 13:Xs(function(){var y=vn(a,1);if(y!==null){var O=Wr();mo(y,a,1,O)}}),mm(a,1)}},zf=function(a){if(a.tag===13){var s=vn(a,134217728);if(s!==null){var p=Wr();mo(s,a,134217728,p)}mm(a,134217728)}},sp=function(a){if(a.tag===13){var s=as(a),p=vn(a,s);if(p!==null){var y=Wr();mo(p,a,s,y)}mm(a,s)}},Qg=function(){return Vt},lp=function(a,s){var p=Vt;try{return Vt=a,s()}finally{Vt=p}},Ro=function(a,s,p){switch(s){case"input":if(ke(a,p),s=p.name,p.type==="radio"&&s!=null){for(p=a;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<p.length;s++){var y=p[s];if(y!==a&&y.form===a.form){var O=Et(y);if(!O)throw Error(n(90));Me(y),ke(y,O)}}}break;case"textarea":Ge(a,p);break;case"select":s=p.value,s!=null&&ze(a,!!p.multiple,s,!1)}},on=um,gn=Xs;var kw={usingClientEntryPoint:!1,Events:[Xa,dr,Et,Os,Ol,um]},Dc={findFiberByHostInstance:$i,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Nw={bundleType:Dc.bundleType,version:Dc.version,rendererPackageName:Dc.rendererPackageName,rendererConfig:Dc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){return a=Rs(a),a===null?null:a.stateNode},findFiberByHostInstance:Dc.findFiberByHostInstance||Aw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Jd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jd.isDisabled&&Jd.supportsFiber)try{ks=Jd.inject(Nw),Li=Jd}catch{}}return Qi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kw,Qi.createPortal=function(a,s){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gm(s))throw Error(n(200));return Ow(a,s,null,p)},Qi.createRoot=function(a,s){if(!gm(a))throw Error(n(299));var p=!1,y="",O=c0;return s!=null&&(s.unstable_strictMode===!0&&(p=!0),s.identifierPrefix!==void 0&&(y=s.identifierPrefix),s.onRecoverableError!==void 0&&(O=s.onRecoverableError)),s=pm(a,1,!1,null,null,p,!1,y,O),a[Fi]=s.current,Ga(a.nodeType===8?a.parentNode:a),new Qd(s)},Qi.findDOMNode=function(a){if(a==null)return null;if(a.nodeType===1)return a;var s=a._reactInternals;if(s===void 0)throw typeof a.render=="function"?Error(n(188)):(a=Object.keys(a).join(","),Error(n(268,a)));return a=Rs(s),a=a===null?null:a.stateNode,a},Qi.flushSync=function(a){return Xs(a)},Qi.hydrate=function(a,s,p){if(!Zd(s))throw Error(n(200));return Js(null,a,s,!0,p)},Qi.hydrateRoot=function(a,s,p){if(!gm(a))throw Error(n(405));var y=p!=null&&p.hydratedSources||null,O=!1,L="",H=c0;if(p!=null&&(p.unstable_strictMode===!0&&(O=!0),p.identifierPrefix!==void 0&&(L=p.identifierPrefix),p.onRecoverableError!==void 0&&(H=p.onRecoverableError)),s=l0(s,null,a,1,p??null,O,!1,L,H),a[Fi]=s.current,Ga(a),y)for(a=0;a<y.length;a++)p=y[a],O=p._getVersion,O=O(p._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[p,O]:s.mutableSourceEagerHydrationData.push(p,O);return new Pc(s)},Qi.render=function(a,s,p){if(!Zd(s))throw Error(n(200));return Js(null,a,s,!1,p)},Qi.unmountComponentAtNode=function(a){if(!Zd(a))throw Error(n(40));return a._reactRootContainer?(Xs(function(){Js(null,null,a,!1,function(){a._reactRootContainer=null,a[Fi]=null})}),!0):!1},Qi.unstable_batchedUpdates=um,Qi.unstable_renderSubtreeIntoContainer=function(a,s,p,y){if(!Zd(p))throw Error(n(200));if(a==null||a._reactInternals===void 0)throw Error(n(38));return Js(a,s,p,!1,y)},Qi.version="18.2.0-next-9e3b772b8-20220608",Qi}var Qx;function aR(){if(Qx)return Gw.exports;Qx=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),Gw.exports=VM(),Gw.exports}var Zx;function WM(){if(Zx)return m0;Zx=1;var t=aR();return m0.createRoot=t.createRoot,m0.hydrateRoot=t.hydrateRoot,m0}var GM=WM();const BM=oo(GM),KM=(t,e,n,r)=>{const i=[n,{code:e,...r||{}}];if(t?.services?.logger?.forward)return t.services.logger.forward(i,"warn","react-i18next::",!0);yu(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),t?.services?.logger?.warn?t.services.logger.warn(...i):console?.warn&&console.warn(...i)},Jx={},SS=(t,e,n,r)=>{yu(n)&&Jx[n]||(yu(n)&&(Jx[n]=new Date),KM(t,e,n,r))},sR=(t,e)=>()=>{if(t.isInitialized)e();else{const n=()=>{setTimeout(()=>{t.off("initialized",n)},0),e()};t.on("initialized",n)}},bS=(t,e,n)=>{t.loadNamespaces(e,sR(t,n))},eE=(t,e,n,r)=>{if(yu(n)&&(n=[n]),t.options.preload&&t.options.preload.indexOf(e)>-1)return bS(t,n,r);n.forEach(i=>{t.options.ns.indexOf(i)<0&&t.options.ns.push(i)}),t.loadLanguages(e,sR(t,r))},XM=(t,e,n={})=>!e.languages||!e.languages.length?(SS(e,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:e.languages}),!0):e.hasLoadedNamespace(t,{lng:n.lng,precheck:(r,i)=>{if(n.bindI18n?.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!i(r.isLanguageChangingTo,t))return!1}}),YM=t=>t.displayName||t.name||(yu(t)&&t.length>0?t:"Unknown"),yu=t=>typeof t=="string",QM=t=>typeof t=="object"&&t!==null,ZM=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,JM={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},e4=t=>JM[t],t4=t=>t.replace(ZM,e4);let CS={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:t4};const n4=(t={})=>{CS={...CS,...t}},r4=()=>CS;let lR;const i4=t=>{lR=t},o4=()=>lR,tE={type:"3rdParty",init(t){n4(t.options.react),i4(t)}},a4=N.createContext();class s4{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const l4=(t,e)=>{const n=N.useRef();return N.useEffect(()=>{n.current=t},[t,e]),n.current},uR=(t,e,n,r)=>t.getFixedT(e,n,r),u4=(t,e,n,r)=>N.useCallback(uR(t,e,n,r),[t,e,n,r]),Og=(t,e={})=>{const{i18n:n}=e,{i18n:r,defaultNS:i}=N.useContext(a4)||{},o=n||r||o4();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new s4),!o){SS(o,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const x=(R,I)=>yu(I)?I:QM(I)&&yu(I.defaultValue)?I.defaultValue:Array.isArray(R)?R[R.length-1]:R,w=[x,{},!1];return w.t=x,w.i18n={},w.ready=!1,w}o.options.react?.wait&&SS(o,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l={...r4(),...o.options.react,...e},{useSuspense:c,keyPrefix:f}=l;let h=i||o.options?.defaultNS;h=yu(h)?[h]:h||["translation"],o.reportNamespaces.addUsedNamespaces?.(h);const g=(o.isInitialized||o.initializedStoreOnce)&&h.every(x=>XM(x,o,l)),m=u4(o,e.lng||null,l.nsMode==="fallback"?h:h[0],f),v=()=>m,S=()=>uR(o,e.lng||null,l.nsMode==="fallback"?h:h[0],f),[b,A]=N.useState(v);let C=h.join();e.lng&&(C=`${e.lng}${C}`);const E=l4(C),k=N.useRef(!0);N.useEffect(()=>{const{bindI18n:x,bindI18nStore:w}=l;k.current=!0,!g&&!c&&(e.lng?eE(o,e.lng,h,()=>{k.current&&A(S)}):bS(o,h,()=>{k.current&&A(S)})),g&&E&&E!==C&&k.current&&A(S);const R=()=>{k.current&&A(S)};return x&&o?.on(x,R),w&&o?.store.on(w,R),()=>{k.current=!1,o&&x?.split(" ").forEach(I=>o.off(I,R)),w&&o&&w.split(" ").forEach(I=>o.store.off(I,R))}},[o,C]),N.useEffect(()=>{k.current&&g&&A(v)},[o,f,g]);const T=[b,o,g];if(T.t=b,T.i18n=o,T.ready=g,g||!g&&!c)return T;throw new Promise(x=>{e.lng?eE(o,e.lng,h,()=>x()):bS(o,h,()=>x())})},Wb=(t,e={})=>function(r){function i({forwardedRef:l,...c}){const[f,h,g]=Og(t,{...c,keyPrefix:e.keyPrefix}),m={...c,t:f,i18n:h,tReady:g};return e.withRef&&l?m.ref=l:!e.withRef&&l&&(m.forwardedRef=l),N.createElement(r,m)}i.displayName=`withI18nextTranslation(${YM(r)})`,i.WrappedComponent=r;const o=(l,c)=>N.createElement(i,Object.assign({},l,{forwardedRef:c}));return e.withRef?N.forwardRef(o):i},c4={},f4=Object.freeze(Object.defineProperty({__proto__:null,default:c4},Symbol.toStringTag,{value:"Module"})),d4=$M(f4);var g0={},nE;function h4(){if(nE)return g0;nE=1;var t={};return g0.test=function(){return typeof t.queueMicrotask=="function"},g0.install=function(e){return function(){t.queueMicrotask(e)}},g0}var v0={},rE;function p4(){if(rE)return v0;rE=1;var t={},e=t.MutationObserver||t.WebKitMutationObserver;return v0.test=function(){return e},v0.install=function(n){var r=0,i=new e(n),o=t.document.createTextNode("");return i.observe(o,{characterData:!0}),function(){o.data=r=++r%2}},v0}var y0={},iE;function m4(){if(iE)return y0;iE=1;var t={};return y0.test=function(){return t.setImmediate?!1:typeof t.MessageChannel<"u"},y0.install=function(e){var n=new t.MessageChannel;return n.port1.onmessage=e,function(){n.port2.postMessage(0)}},y0}var _0={},oE;function g4(){if(oE)return _0;oE=1;var t={};return _0.test=function(){return"document"in t&&"onreadystatechange"in t.document.createElement("script")},_0.install=function(e){return function(){var n=t.document.createElement("script");return n.onreadystatechange=function(){e(),n.onreadystatechange=null,n.parentNode.removeChild(n),n=null},t.document.documentElement.appendChild(n),e}},_0}var w0={},aE;function v4(){return aE||(aE=1,w0.test=function(){return!0},w0.install=function(t){return function(){setTimeout(t,0)}}),w0}var Xw,sE;function y4(){if(sE)return Xw;sE=1;var t=[d4,h4(),p4(),m4(),g4(),v4()],e,n,r=-1,i=[],o=!1;function l(){!e||!n||(e=!1,n.length?i=n.concat(i):r=-1,i.length&&c())}function c(){if(!e){o=!1,e=!0;for(var S=i.length,b=setTimeout(l);S;){for(n=i,i=[];n&&++r<S;)n[r].run();r=-1,S=i.length}n=null,r=-1,e=!1,clearTimeout(b)}}for(var f,h=-1,g=t.length;++h<g;)if(t[h]&&t[h].test&&t[h].test()){f=t[h].install(c);break}function m(S,b){this.fun=S,this.array=b}m.prototype.run=function(){var S=this.fun,b=this.array;switch(b.length){case 0:return S();case 1:return S(b[0]);case 2:return S(b[0],b[1]);case 3:return S(b[0],b[1],b[2]);default:return S.apply(null,b)}},Xw=v;function v(S){var b=new Array(arguments.length-1);if(arguments.length>1)for(var A=1;A<arguments.length;A++)b[A-1]=arguments[A];i.push(new m(S,b)),!o&&!e&&(o=!0,f())}return Xw}var _4=y4();const vs=oo(_4);var Yw={exports:{}},lE;function w4(){return lE||(lE=1,function(t,e){(function(n){t.exports=n()})(function(n){var r=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(E,k){var T=E[0],x=E[1],w=E[2],R=E[3];T+=(x&w|~x&R)+k[0]-680876936|0,T=(T<<7|T>>>25)+x|0,R+=(T&x|~T&w)+k[1]-389564586|0,R=(R<<12|R>>>20)+T|0,w+=(R&T|~R&x)+k[2]+606105819|0,w=(w<<17|w>>>15)+R|0,x+=(w&R|~w&T)+k[3]-1044525330|0,x=(x<<22|x>>>10)+w|0,T+=(x&w|~x&R)+k[4]-176418897|0,T=(T<<7|T>>>25)+x|0,R+=(T&x|~T&w)+k[5]+1200080426|0,R=(R<<12|R>>>20)+T|0,w+=(R&T|~R&x)+k[6]-1473231341|0,w=(w<<17|w>>>15)+R|0,x+=(w&R|~w&T)+k[7]-45705983|0,x=(x<<22|x>>>10)+w|0,T+=(x&w|~x&R)+k[8]+1770035416|0,T=(T<<7|T>>>25)+x|0,R+=(T&x|~T&w)+k[9]-1958414417|0,R=(R<<12|R>>>20)+T|0,w+=(R&T|~R&x)+k[10]-42063|0,w=(w<<17|w>>>15)+R|0,x+=(w&R|~w&T)+k[11]-1990404162|0,x=(x<<22|x>>>10)+w|0,T+=(x&w|~x&R)+k[12]+1804603682|0,T=(T<<7|T>>>25)+x|0,R+=(T&x|~T&w)+k[13]-40341101|0,R=(R<<12|R>>>20)+T|0,w+=(R&T|~R&x)+k[14]-1502002290|0,w=(w<<17|w>>>15)+R|0,x+=(w&R|~w&T)+k[15]+1236535329|0,x=(x<<22|x>>>10)+w|0,T+=(x&R|w&~R)+k[1]-165796510|0,T=(T<<5|T>>>27)+x|0,R+=(T&w|x&~w)+k[6]-1069501632|0,R=(R<<9|R>>>23)+T|0,w+=(R&x|T&~x)+k[11]+643717713|0,w=(w<<14|w>>>18)+R|0,x+=(w&T|R&~T)+k[0]-373897302|0,x=(x<<20|x>>>12)+w|0,T+=(x&R|w&~R)+k[5]-701558691|0,T=(T<<5|T>>>27)+x|0,R+=(T&w|x&~w)+k[10]+38016083|0,R=(R<<9|R>>>23)+T|0,w+=(R&x|T&~x)+k[15]-660478335|0,w=(w<<14|w>>>18)+R|0,x+=(w&T|R&~T)+k[4]-405537848|0,x=(x<<20|x>>>12)+w|0,T+=(x&R|w&~R)+k[9]+568446438|0,T=(T<<5|T>>>27)+x|0,R+=(T&w|x&~w)+k[14]-1019803690|0,R=(R<<9|R>>>23)+T|0,w+=(R&x|T&~x)+k[3]-187363961|0,w=(w<<14|w>>>18)+R|0,x+=(w&T|R&~T)+k[8]+1163531501|0,x=(x<<20|x>>>12)+w|0,T+=(x&R|w&~R)+k[13]-1444681467|0,T=(T<<5|T>>>27)+x|0,R+=(T&w|x&~w)+k[2]-51403784|0,R=(R<<9|R>>>23)+T|0,w+=(R&x|T&~x)+k[7]+1735328473|0,w=(w<<14|w>>>18)+R|0,x+=(w&T|R&~T)+k[12]-1926607734|0,x=(x<<20|x>>>12)+w|0,T+=(x^w^R)+k[5]-378558|0,T=(T<<4|T>>>28)+x|0,R+=(T^x^w)+k[8]-2022574463|0,R=(R<<11|R>>>21)+T|0,w+=(R^T^x)+k[11]+1839030562|0,w=(w<<16|w>>>16)+R|0,x+=(w^R^T)+k[14]-35309556|0,x=(x<<23|x>>>9)+w|0,T+=(x^w^R)+k[1]-1530992060|0,T=(T<<4|T>>>28)+x|0,R+=(T^x^w)+k[4]+1272893353|0,R=(R<<11|R>>>21)+T|0,w+=(R^T^x)+k[7]-155497632|0,w=(w<<16|w>>>16)+R|0,x+=(w^R^T)+k[10]-1094730640|0,x=(x<<23|x>>>9)+w|0,T+=(x^w^R)+k[13]+681279174|0,T=(T<<4|T>>>28)+x|0,R+=(T^x^w)+k[0]-358537222|0,R=(R<<11|R>>>21)+T|0,w+=(R^T^x)+k[3]-722521979|0,w=(w<<16|w>>>16)+R|0,x+=(w^R^T)+k[6]+76029189|0,x=(x<<23|x>>>9)+w|0,T+=(x^w^R)+k[9]-640364487|0,T=(T<<4|T>>>28)+x|0,R+=(T^x^w)+k[12]-421815835|0,R=(R<<11|R>>>21)+T|0,w+=(R^T^x)+k[15]+530742520|0,w=(w<<16|w>>>16)+R|0,x+=(w^R^T)+k[2]-995338651|0,x=(x<<23|x>>>9)+w|0,T+=(w^(x|~R))+k[0]-198630844|0,T=(T<<6|T>>>26)+x|0,R+=(x^(T|~w))+k[7]+1126891415|0,R=(R<<10|R>>>22)+T|0,w+=(T^(R|~x))+k[14]-1416354905|0,w=(w<<15|w>>>17)+R|0,x+=(R^(w|~T))+k[5]-57434055|0,x=(x<<21|x>>>11)+w|0,T+=(w^(x|~R))+k[12]+1700485571|0,T=(T<<6|T>>>26)+x|0,R+=(x^(T|~w))+k[3]-1894986606|0,R=(R<<10|R>>>22)+T|0,w+=(T^(R|~x))+k[10]-1051523|0,w=(w<<15|w>>>17)+R|0,x+=(R^(w|~T))+k[1]-2054922799|0,x=(x<<21|x>>>11)+w|0,T+=(w^(x|~R))+k[8]+1873313359|0,T=(T<<6|T>>>26)+x|0,R+=(x^(T|~w))+k[15]-30611744|0,R=(R<<10|R>>>22)+T|0,w+=(T^(R|~x))+k[6]-1560198380|0,w=(w<<15|w>>>17)+R|0,x+=(R^(w|~T))+k[13]+1309151649|0,x=(x<<21|x>>>11)+w|0,T+=(w^(x|~R))+k[4]-145523070|0,T=(T<<6|T>>>26)+x|0,R+=(x^(T|~w))+k[11]-1120210379|0,R=(R<<10|R>>>22)+T|0,w+=(T^(R|~x))+k[2]+718787259|0,w=(w<<15|w>>>17)+R|0,x+=(R^(w|~T))+k[9]-343485551|0,x=(x<<21|x>>>11)+w|0,E[0]=T+E[0]|0,E[1]=x+E[1]|0,E[2]=w+E[2]|0,E[3]=R+E[3]|0}function o(E){var k=[],T;for(T=0;T<64;T+=4)k[T>>2]=E.charCodeAt(T)+(E.charCodeAt(T+1)<<8)+(E.charCodeAt(T+2)<<16)+(E.charCodeAt(T+3)<<24);return k}function l(E){var k=[],T;for(T=0;T<64;T+=4)k[T>>2]=E[T]+(E[T+1]<<8)+(E[T+2]<<16)+(E[T+3]<<24);return k}function c(E){var k=E.length,T=[1732584193,-271733879,-1732584194,271733878],x,w,R,I,F,U;for(x=64;x<=k;x+=64)i(T,o(E.substring(x-64,x)));for(E=E.substring(x-64),w=E.length,R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=0;x<w;x+=1)R[x>>2]|=E.charCodeAt(x)<<(x%4<<3);if(R[x>>2]|=128<<(x%4<<3),x>55)for(i(T,R),x=0;x<16;x+=1)R[x]=0;return I=k*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),F=parseInt(I[2],16),U=parseInt(I[1],16)||0,R[14]=F,R[15]=U,i(T,R),T}function f(E){var k=E.length,T=[1732584193,-271733879,-1732584194,271733878],x,w,R,I,F,U;for(x=64;x<=k;x+=64)i(T,l(E.subarray(x-64,x)));for(E=x-64<k?E.subarray(x-64):new Uint8Array(0),w=E.length,R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x=0;x<w;x+=1)R[x>>2]|=E[x]<<(x%4<<3);if(R[x>>2]|=128<<(x%4<<3),x>55)for(i(T,R),x=0;x<16;x+=1)R[x]=0;return I=k*8,I=I.toString(16).match(/(.*?)(.{0,8})$/),F=parseInt(I[2],16),U=parseInt(I[1],16)||0,R[14]=F,R[15]=U,i(T,R),T}function h(E){var k="",T;for(T=0;T<4;T+=1)k+=r[E>>T*8+4&15]+r[E>>T*8&15];return k}function g(E){var k;for(k=0;k<E.length;k+=1)E[k]=h(E[k]);return E.join("")}g(c("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&function(){function E(k,T){return k=k|0||0,k<0?Math.max(k+T,0):Math.min(k,T)}ArrayBuffer.prototype.slice=function(k,T){var x=this.byteLength,w=E(k,x),R=x,I,F,U,V;return T!==n&&(R=E(T,x)),w>R?new ArrayBuffer(0):(I=R-w,F=new ArrayBuffer(I),U=new Uint8Array(F),V=new Uint8Array(this,w,I),U.set(V),F)}}();function m(E){return/[\u0080-\uFFFF]/.test(E)&&(E=unescape(encodeURIComponent(E))),E}function v(E,k){var T=E.length,x=new ArrayBuffer(T),w=new Uint8Array(x),R;for(R=0;R<T;R+=1)w[R]=E.charCodeAt(R);return k?w:x}function S(E){return String.fromCharCode.apply(null,new Uint8Array(E))}function b(E,k,T){var x=new Uint8Array(E.byteLength+k.byteLength);return x.set(new Uint8Array(E)),x.set(new Uint8Array(k),E.byteLength),x}function A(E){var k=[],T=E.length,x;for(x=0;x<T-1;x+=2)k.push(parseInt(E.substr(x,2),16));return String.fromCharCode.apply(String,k)}function C(){this.reset()}return C.prototype.append=function(E){return this.appendBinary(m(E)),this},C.prototype.appendBinary=function(E){this._buff+=E,this._length+=E.length;var k=this._buff.length,T;for(T=64;T<=k;T+=64)i(this._hash,o(this._buff.substring(T-64,T)));return this._buff=this._buff.substring(T-64),this},C.prototype.end=function(E){var k=this._buff,T=k.length,x,w=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],R;for(x=0;x<T;x+=1)w[x>>2]|=k.charCodeAt(x)<<(x%4<<3);return this._finish(w,T),R=g(this._hash),E&&(R=A(R)),this.reset(),R},C.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},C.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},C.prototype.setState=function(E){return this._buff=E.buff,this._length=E.length,this._hash=E.hash,this},C.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},C.prototype._finish=function(E,k){var T=k,x,w,R;if(E[T>>2]|=128<<(T%4<<3),T>55)for(i(this._hash,E),T=0;T<16;T+=1)E[T]=0;x=this._length*8,x=x.toString(16).match(/(.*?)(.{0,8})$/),w=parseInt(x[2],16),R=parseInt(x[1],16)||0,E[14]=w,E[15]=R,i(this._hash,E)},C.hash=function(E,k){return C.hashBinary(m(E),k)},C.hashBinary=function(E,k){var T=c(E),x=g(T);return k?A(x):x},C.ArrayBuffer=function(){this.reset()},C.ArrayBuffer.prototype.append=function(E){var k=b(this._buff.buffer,E),T=k.length,x;for(this._length+=E.byteLength,x=64;x<=T;x+=64)i(this._hash,l(k.subarray(x-64,x)));return this._buff=x-64<T?new Uint8Array(k.buffer.slice(x-64)):new Uint8Array(0),this},C.ArrayBuffer.prototype.end=function(E){var k=this._buff,T=k.length,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],w,R;for(w=0;w<T;w+=1)x[w>>2]|=k[w]<<(w%4<<3);return this._finish(x,T),R=g(this._hash),E&&(R=A(R)),this.reset(),R},C.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},C.ArrayBuffer.prototype.getState=function(){var E=C.prototype.getState.call(this);return E.buff=S(E.buff),E},C.ArrayBuffer.prototype.setState=function(E){return E.buff=v(E.buff,!0),C.prototype.setState.call(this,E)},C.ArrayBuffer.prototype.destroy=C.prototype.destroy,C.ArrayBuffer.prototype._finish=C.prototype._finish,C.ArrayBuffer.hash=function(E,k){var T=f(new Uint8Array(E)),x=g(T);return k?A(x):x},C})}(Yw)),Yw.exports}var S4=w4();const xS=oo(S4);var S0,b4=new Uint8Array(16);function C4(){if(!S0&&(S0=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!S0))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return S0(b4)}const x4=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function E4(t){return typeof t=="string"&&x4.test(t)}var Gr=[];for(var Qw=0;Qw<256;++Qw)Gr.push((Qw+256).toString(16).substr(1));function T4(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Gr[t[e+0]]+Gr[t[e+1]]+Gr[t[e+2]]+Gr[t[e+3]]+"-"+Gr[t[e+4]]+Gr[t[e+5]]+"-"+Gr[t[e+6]]+Gr[t[e+7]]+"-"+Gr[t[e+8]]+Gr[t[e+9]]+"-"+Gr[t[e+10]]+Gr[t[e+11]]+Gr[t[e+12]]+Gr[t[e+13]]+Gr[t[e+14]]+Gr[t[e+15]]).toLowerCase();if(!E4(n))throw TypeError("Stringified UUID is invalid");return n}function Gb(t,e,n){t=t||{};var r=t.random||(t.rng||C4)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return T4(r)}var b0={},uE;function O4(){if(uE)return b0;uE=1,b0.stringify=function(n){var r=[];r.push({obj:n});for(var i="",o,l,c,f,h,g,m,v,S,b,A;o=r.pop();)if(l=o.obj,c=o.prefix||"",f=o.val||"",i+=c,f)i+=f;else if(typeof l!="object")i+=typeof l>"u"?null:JSON.stringify(l);else if(l===null)i+="null";else if(Array.isArray(l)){for(r.push({val:"]"}),h=l.length-1;h>=0;h--)g=h===0?"":",",r.push({obj:l[h],prefix:g});r.push({val:"["})}else{m=[];for(v in l)l.hasOwnProperty(v)&&m.push(v);for(r.push({val:"}"}),h=m.length-1;h>=0;h--)S=m[h],b=l[S],A=h>0?",":"",A+=JSON.stringify(S)+":",r.push({obj:b,prefix:A});r.push({val:"{"})}return i};function t(e,n,r){var i=r[r.length-1];e===i.element&&(r.pop(),i=r[r.length-1]);var o=i.element,l=i.index;if(Array.isArray(o))o.push(e);else if(l===n.length-2){var c=n.pop();o[c]=e}else n.push(e)}return b0.parse=function(e){for(var n=[],r=[],i=0,o,l,c,f,h,g,m,v,S;;){if(o=e[i++],o==="}"||o==="]"||typeof o>"u"){if(n.length===1)return n.pop();t(n.pop(),n,r);continue}switch(o){case" ":case" ":case`
|
|
41
|
+
`:case":":case",":break;case"n":i+=3,t(null,n,r);break;case"t":i+=3,t(!0,n,r);break;case"f":i+=4,t(!1,n,r);break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"-":for(l="",i--;;)if(c=e[i++],/[\d\.\-e\+]/.test(c))l+=c;else{i--;break}t(parseFloat(l),n,r);break;case'"':for(f="",h=void 0,g=0;m=e[i++],m!=='"'||h==="\\"&&g%2===1;)f+=m,h=m,h==="\\"?g++:g=0;t(JSON.parse('"'+f+'"'),n,r);break;case"[":v={element:[],index:n.length},n.push(v.element),r.push(v);break;case"{":S={element:{},index:n.length},n.push(S.element),r.push(S);break;default:throw new Error("unexpectedly reached end of input: "+o)}}},b0}var A4=O4();const cR=oo(A4);var C0={exports:{}},cE;function R4(){if(cE)return C0.exports;cE=1;var t=typeof Reflect=="object"?Reflect:null,e=t&&typeof t.apply=="function"?t.apply:function(w,R,I){return Function.prototype.apply.call(w,R,I)},n;t&&typeof t.ownKeys=="function"?n=t.ownKeys:Object.getOwnPropertySymbols?n=function(w){return Object.getOwnPropertyNames(w).concat(Object.getOwnPropertySymbols(w))}:n=function(w){return Object.getOwnPropertyNames(w)};function r(x){console&&console.warn&&console.warn(x)}var i=Number.isNaN||function(w){return w!==w};function o(){o.init.call(this)}C0.exports=o,C0.exports.once=E,o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var l=10;function c(x){if(typeof x!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof x)}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(x){if(typeof x!="number"||x<0||i(x))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+x+".");l=x}}),o.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},o.prototype.setMaxListeners=function(w){if(typeof w!="number"||w<0||i(w))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+w+".");return this._maxListeners=w,this};function f(x){return x._maxListeners===void 0?o.defaultMaxListeners:x._maxListeners}o.prototype.getMaxListeners=function(){return f(this)},o.prototype.emit=function(w){for(var R=[],I=1;I<arguments.length;I++)R.push(arguments[I]);var F=w==="error",U=this._events;if(U!==void 0)F=F&&U.error===void 0;else if(!F)return!1;if(F){var V;if(R.length>0&&(V=R[0]),V instanceof Error)throw V;var K=new Error("Unhandled error."+(V?" ("+V.message+")":""));throw K.context=V,K}var Z=U[w];if(Z===void 0)return!1;if(typeof Z=="function")e(Z,this,R);else for(var J=Z.length,oe=b(Z,J),I=0;I<J;++I)e(oe[I],this,R);return!0};function h(x,w,R,I){var F,U,V;if(c(R),U=x._events,U===void 0?(U=x._events=Object.create(null),x._eventsCount=0):(U.newListener!==void 0&&(x.emit("newListener",w,R.listener?R.listener:R),U=x._events),V=U[w]),V===void 0)V=U[w]=R,++x._eventsCount;else if(typeof V=="function"?V=U[w]=I?[R,V]:[V,R]:I?V.unshift(R):V.push(R),F=f(x),F>0&&V.length>F&&!V.warned){V.warned=!0;var K=new Error("Possible EventEmitter memory leak detected. "+V.length+" "+String(w)+" listeners added. Use emitter.setMaxListeners() to increase limit");K.name="MaxListenersExceededWarning",K.emitter=x,K.type=w,K.count=V.length,r(K)}return x}o.prototype.addListener=function(w,R){return h(this,w,R,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(w,R){return h(this,w,R,!0)};function g(){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 m(x,w,R){var I={fired:!1,wrapFn:void 0,target:x,type:w,listener:R},F=g.bind(I);return F.listener=R,I.wrapFn=F,F}o.prototype.once=function(w,R){return c(R),this.on(w,m(this,w,R)),this},o.prototype.prependOnceListener=function(w,R){return c(R),this.prependListener(w,m(this,w,R)),this},o.prototype.removeListener=function(w,R){var I,F,U,V,K;if(c(R),F=this._events,F===void 0)return this;if(I=F[w],I===void 0)return this;if(I===R||I.listener===R)--this._eventsCount===0?this._events=Object.create(null):(delete F[w],F.removeListener&&this.emit("removeListener",w,I.listener||R));else if(typeof I!="function"){for(U=-1,V=I.length-1;V>=0;V--)if(I[V]===R||I[V].listener===R){K=I[V].listener,U=V;break}if(U<0)return this;U===0?I.shift():A(I,U),I.length===1&&(F[w]=I[0]),F.removeListener!==void 0&&this.emit("removeListener",w,K||R)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(w){var R,I,F;if(I=this._events,I===void 0)return this;if(I.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):I[w]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete I[w]),this;if(arguments.length===0){var U=Object.keys(I),V;for(F=0;F<U.length;++F)V=U[F],V!=="removeListener"&&this.removeAllListeners(V);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(R=I[w],typeof R=="function")this.removeListener(w,R);else if(R!==void 0)for(F=R.length-1;F>=0;F--)this.removeListener(w,R[F]);return this};function v(x,w,R){var I=x._events;if(I===void 0)return[];var F=I[w];return F===void 0?[]:typeof F=="function"?R?[F.listener||F]:[F]:R?C(F):b(F,F.length)}o.prototype.listeners=function(w){return v(this,w,!0)},o.prototype.rawListeners=function(w){return v(this,w,!1)},o.listenerCount=function(x,w){return typeof x.listenerCount=="function"?x.listenerCount(w):S.call(x,w)},o.prototype.listenerCount=S;function S(x){var w=this._events;if(w!==void 0){var R=w[x];if(typeof R=="function")return 1;if(R!==void 0)return R.length}return 0}o.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function b(x,w){for(var R=new Array(w),I=0;I<w;++I)R[I]=x[I];return R}function A(x,w){for(;w+1<x.length;w++)x[w]=x[w+1];x.pop()}function C(x){for(var w=new Array(x.length),R=0;R<w.length;++R)w[R]=x[R].listener||x[R];return w}function E(x,w){return new Promise(function(R,I){function F(V){x.removeListener(w,U),I(V)}function U(){typeof x.removeListener=="function"&&x.removeListener("error",F),R([].slice.call(arguments))}T(x,w,U,{once:!0}),w!=="error"&&k(x,F,{once:!0})})}function k(x,w,R){typeof x.on=="function"&&T(x,"error",w,R)}function T(x,w,R,I){if(typeof x.on=="function")I.once?x.once(w,R):x.on(w,R);else if(typeof x.addEventListener=="function")x.addEventListener(w,function F(U){I.once&&x.removeEventListener(w,F),R(U)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof x)}return C0.exports}var k4=R4();const dl=oo(k4);function l_(t){return"$"+t}function fR(t){return t.substring(1)}function gl(){this._store={}}gl.prototype.get=function(t){var e=l_(t);return this._store[e]};gl.prototype.set=function(t,e){var n=l_(t);return this._store[n]=e,!0};gl.prototype.has=function(t){var e=l_(t);return e in this._store};gl.prototype.keys=function(){return Object.keys(this._store).map(t=>fR(t))};gl.prototype.delete=function(t){var e=l_(t),n=e in this._store;return delete this._store[e],n};gl.prototype.forEach=function(t){for(var e=Object.keys(this._store),n=0,r=e.length;n<r;n++){var i=e[n],o=this._store[i];i=fR(i),t(o,i)}};Object.defineProperty(gl.prototype,"size",{get:function(){return Object.keys(this._store).length}});function Ag(t){if(this._store=new gl,t&&Array.isArray(t))for(var e=0,n=t.length;e<n;e++)this.add(t[e])}Ag.prototype.add=function(t){return this._store.set(t,!0)};Ag.prototype.has=function(t){return this._store.has(t)};Ag.prototype.forEach=function(t){this._store.forEach(function(e,n){t(n)})};Object.defineProperty(Ag.prototype,"size",{get:function(){return this._store.size}});function N4(){if(typeof Symbol>"u"||typeof Map>"u"||typeof Set>"u")return!1;var t=Object.getOwnPropertyDescriptor(Map,Symbol.species);return t&&"get"in t&&Map[Symbol.species]===Map}var Ch,Ji;N4()?(Ch=Set,Ji=Map):(Ch=Ag,Ji=gl);function P4(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer||typeof Blob<"u"&&t instanceof Blob}function D4(t){if(typeof t.slice=="function")return t.slice(0);var e=new ArrayBuffer(t.byteLength),n=new Uint8Array(e),r=new Uint8Array(t);return n.set(r),e}function L4(t){if(t instanceof ArrayBuffer)return D4(t);var e=t.size,n=t.type;return typeof t.slice=="function"?t.slice(0,e,n):t.webkitSlice(0,e,n)}var dR=Function.prototype.toString,M4=dR.call(Object);function I4(t){var e=Object.getPrototypeOf(t);if(e===null)return!0;var n=e.constructor;return typeof n=="function"&&n instanceof n&&dR.call(n)==M4}function wr(t){var e,n,r;if(!t||typeof t!="object")return t;if(Array.isArray(t)){for(e=[],n=0,r=t.length;n<r;n++)e[n]=wr(t[n]);return e}if(t instanceof Date&&isFinite(t))return t.toISOString();if(P4(t))return L4(t);if(!I4(t))return t;e={};for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=wr(t[n]);typeof i<"u"&&(e[n]=i)}return e}function hR(t){var e=!1;return function(...n){if(e)throw new Error("once called more than once");e=!0,t.apply(this,n)}}function pR(t){return function(...e){e=wr(e);var n=this,r=typeof e[e.length-1]=="function"?e.pop():!1,i=new Promise(function(o,l){var c;try{var f=hR(function(h,g){h?l(h):o(g)});e.push(f),c=t.apply(n,e),c&&typeof c.then=="function"&&o(c)}catch(h){l(h)}});return r&&i.then(function(o){r(null,o)},r),i}}function F4(t,e,n){if(t.constructor.listeners("debug").length){for(var r=["api",t.name,e],i=0;i<n.length-1;i++)r.push(n[i]);t.constructor.emit("debug",r);var o=n[n.length-1];n[n.length-1]=function(l,c){var f=["api",t.name,e];f=f.concat(l?["error",l]:["success",c]),t.constructor.emit("debug",f),o(l,c)}}}function Bn(t,e){return pR(function(...n){if(this._closed)return Promise.reject(new Error("database is closed"));if(this._destroyed)return Promise.reject(new Error("database is destroyed"));var r=this;return F4(r,t,n),this.taskqueue.isReady?e.apply(this,n):new Promise(function(i,o){r.taskqueue.addTask(function(l){l?o(l):i(r[t].apply(r,n))})})})}function Rg(t,e){for(var n={},r=0,i=e.length;r<i;r++){var o=e[r];o in t&&(n[o]=t[o])}return n}var $4=6;function fE(t){return t}function j4(t){return[{ok:t}]}function mR(t,e,n){var r=e.docs,i=new Ji;r.forEach(function(A){i.has(A.id)?i.get(A.id).push(A):i.set(A.id,[A])});var o=i.size,l=0,c=new Array(o);function f(){var A=[];c.forEach(function(C){C.docs.forEach(function(E){A.push({id:C.id,docs:[E]})})}),n(null,{results:A})}function h(){++l===o&&f()}function g(A,C,E){c[A]={id:C,docs:E},h()}var m=[];i.forEach(function(A,C){m.push(C)});var v=0;function S(){if(!(v>=m.length)){var A=Math.min(v+$4,m.length),C=m.slice(v,A);b(C,v),v+=C.length}}function b(A,C){A.forEach(function(E,k){var T=C+k,x=i.get(E),w=Rg(x[0],["atts_since","attachments"]);w.open_revs=x.map(function(I){return I.rev}),w.open_revs=w.open_revs.filter(fE);var R=fE;w.open_revs.length===0&&(delete w.open_revs,R=j4),["revs","attachments","binary","ajax","latest"].forEach(function(I){I in e&&(w[I]=e[I])}),t.get(E,w,function(I,F){var U;I?U=[{error:I}]:U=R(F),g(T,E,U),S()})})}S()}var ES;try{localStorage.setItem("_pouch_check_localstorage",1),ES=!!localStorage.getItem("_pouch_check_localstorage")}catch{ES=!1}function gy(){return ES}class z4 extends dl{constructor(){super(),this._listeners={},gy()&&addEventListener("storage",e=>{this.emit(e.key)})}addListener(e,n,r,i){if(this._listeners[n])return;var o=!1,l=this;function c(){if(!l._listeners[n])return;if(o){o="waiting";return}o=!0;var f=Rg(i,["style","include_docs","attachments","conflicts","filter","doc_ids","view","since","query_params","binary","return_docs"]);function h(){o=!1}r.changes(f).on("change",function(g){g.seq>i.since&&!i.cancelled&&(i.since=g.seq,i.onChange(g))}).on("complete",function(){o==="waiting"&&vs(c),o=!1}).on("error",h)}this._listeners[n]=c,this.on(e,c)}removeListener(e,n){n in this._listeners&&(super.removeListener(e,this._listeners[n]),delete this._listeners[n])}notifyLocalWindows(e){gy()&&(localStorage[e]=localStorage[e]==="a"?"b":"a")}notify(e){this.emit(e),this.notifyLocalWindows(e)}}function Yo(t){if(typeof console<"u"&&typeof console[t]=="function"){var e=Array.prototype.slice.call(arguments,1);console[t].apply(console,e)}}function H4(t,e){var n=6e5;t=parseInt(t,10)||0,e=parseInt(e,10),e!==e||e<=t?e=(t||1)<<1:e=e+1,e>n&&(t=n>>1,e=n);var r=Math.random(),i=e-t;return~~(i*r+t)}function q4(t){var e=0;return t||(e=2e3),H4(t,e)}function TS(t,e){Yo("info","The above "+t+" is totally normal. "+e)}var OS;typeof Object.assign=="function"?OS=Object.assign:OS=function(t){for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(r!=null)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e};var rf=OS;let bn=class extends Error{constructor(e,n,r){super(),this.status=e,this.name=n,this.message=r,this.error=!0}toString(){return JSON.stringify({status:this.status,name:this.name,message:this.message,reason:this.reason})}};new bn(401,"unauthorized","Name or password is incorrect.");var U4=new bn(400,"bad_request","Missing JSON list of 'docs'"),Vo=new bn(404,"not_found","missing"),xh=new bn(409,"conflict","Document update conflict"),gR=new bn(400,"bad_request","_id field must contain a string"),V4=new bn(412,"missing_id","_id is required for puts"),W4=new bn(400,"bad_request","Only reserved document ids may start with underscore.");new bn(412,"precondition_failed","Database not open");var Bb=new bn(500,"unknown_error","Database encountered an unknown error"),vR=new bn(500,"badarg","Some query argument is invalid");new bn(400,"invalid_request","Request was invalid");var G4=new bn(400,"query_parse_error","Some query parameter is invalid"),dE=new bn(500,"doc_validation","Bad special document member"),u_=new bn(400,"bad_request","Something wrong with the request"),Zw=new bn(400,"bad_request","Document must be a JSON object");new bn(404,"not_found","Database not found");var Kb=new bn(500,"indexed_db_went_bad","unknown");new bn(500,"web_sql_went_bad","unknown");new bn(500,"levelDB_went_went_bad","unknown");new bn(403,"forbidden","Forbidden by design doc validate_doc_update function");var yR=new bn(400,"bad_request","Invalid rev format");new bn(412,"file_exists","The database could not be created, the file already exists.");var B4=new bn(412,"missing_stub","A pre-existing attachment stub wasn't found");new bn(413,"invalid_url","Provided URL is invalid");function bt(t,e){function n(r){for(var i=Object.getOwnPropertyNames(t),o=0,l=i.length;o<l;o++)typeof t[i[o]]!="function"&&(this[i[o]]=t[i[o]]);this.stack===void 0&&(this.stack=new Error().stack),r!==void 0&&(this.reason=r)}return n.prototype=bn.prototype,new n(e)}function Eh(t){if(typeof t!="object"){var e=t;t=Bb,t.data=e}return"error"in t&&t.error==="conflict"&&(t.name="conflict",t.status=409),"name"in t||(t.name=t.error||"unknown"),"status"in t||(t.status=500),"message"in t||(t.message=t.message||t.reason),"stack"in t||(t.stack=new Error().stack),t}function K4(t,e,n){try{return!t(e,n)}catch(i){var r="Filter function threw: "+i.toString();return bt(u_,r)}}function Xb(t){var e={},n=t.filter&&typeof t.filter=="function";return e.query=t.query_params,function(i){i.doc||(i.doc={});var o=n&&K4(t.filter,i.doc,e);if(typeof o=="object")return o;if(o)return!1;if(!t.include_docs)delete i.doc;else if(!t.attachments)for(var l in i.doc._attachments)Object.prototype.hasOwnProperty.call(i.doc._attachments,l)&&(i.doc._attachments[l].stub=!0);return!0}}function vy(t){for(var e=[],n=0,r=t.length;n<r;n++)e=e.concat(t[n]);return e}function _R(t){var e;if(t?typeof t!="string"?e=bt(gR):/^_/.test(t)&&!/^_(design|local)/.test(t)&&(e=bt(W4)):e=bt(V4),e)throw e}function hs(t){return typeof t._remote=="boolean"?t._remote:typeof t.type=="function"?(Yo("warn","db.type() is deprecated and will be removed in a future version of PouchDB"),t.type()==="http"):!1}function X4(t,e){return"listenerCount"in t?t.listenerCount(e):dl.listenerCount(t,e)}function AS(t){if(!t)return null;var e=t.split("/");return e.length===2?e:e.length===1?[t,t]:null}function hE(t){var e=AS(t);return e?e.join("/"):null}var pE=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],mE="queryKey",Y4=/(?:^|&)([^&=]*)=?([^&]*)/g,Q4=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/;function wR(t){for(var e=Q4.exec(t),n={},r=14;r--;){var i=pE[r],o=e[r]||"",l=["user","password"].indexOf(i)!==-1;n[i]=l?decodeURIComponent(o):o}return n[mE]={},n[pE[12]].replace(Y4,function(c,f,h){f&&(n[mE][f]=h)}),n}function Yb(t,e){var n=[],r=[];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n.push(i),r.push(e[i]));return n.push(t),Function.apply(null,n).apply(null,r)}function yy(t,e,n){return t.get(e).catch(function(r){if(r.status!==404)throw r;return{}}).then(function(r){var i=r._rev,o=n(r);return o?(o._id=e,o._rev=i,Z4(t,o,n)):{updated:!1,rev:i}})}function Z4(t,e,n){return t.put(e).then(function(r){return{updated:!0,rev:r.rev}},function(r){if(r.status!==409)throw r;return yy(t,e._id,n)})}var Qb=function(t){return atob(t)},kg=function(t){return btoa(t)};function Zb(t,e){t=t||[],e=e||{};try{return new Blob(t,e)}catch(o){if(o.name!=="TypeError")throw o;for(var n=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,r=new n,i=0;i<t.length;i+=1)r.append(t[i]);return r.getBlob(e.type)}}function J4(t){for(var e=t.length,n=new ArrayBuffer(e),r=new Uint8Array(n),i=0;i<e;i++)r[i]=t.charCodeAt(i);return n}function Jb(t,e){return Zb([J4(t)],{type:e})}function eC(t,e){return Jb(Qb(t),e)}function eI(t){for(var e="",n=new Uint8Array(t),r=n.byteLength,i=0;i<r;i++)e+=String.fromCharCode(n[i]);return e}function SR(t,e){var n=new FileReader,r=typeof n.readAsBinaryString=="function";n.onloadend=function(i){var o=i.target.result||"";if(r)return e(o);e(eI(o))},r?n.readAsBinaryString(t):n.readAsArrayBuffer(t)}function bR(t,e){SR(t,function(n){e(n)})}function tC(t,e){bR(t,function(n){e(kg(n))})}function tI(t,e){var n=new FileReader;n.onloadend=function(r){var i=r.target.result||new ArrayBuffer(0);e(i)},n.readAsArrayBuffer(t)}var nI=self.setImmediate||self.setTimeout,rI=32768;function iI(t){return kg(t)}function oI(t,e,n){return t.webkitSlice?t.webkitSlice(e,n):t.slice(e,n)}function aI(t,e,n,r,i){(n>0||r<e.size)&&(e=oI(e,n,r)),tI(e,function(o){t.append(o),i()})}function sI(t,e,n,r,i){(n>0||r<e.length)&&(e=e.substring(n,r)),t.appendBinary(e),i()}function nC(t,e){var n=typeof t=="string",r=n?t.length:t.size,i=Math.min(rI,r),o=Math.ceil(r/i),l=0,c=n?new xS:new xS.ArrayBuffer,f=n?sI:aI;function h(){nI(m)}function g(){var v=c.end(!0),S=iI(v);e(S),c.destroy()}function m(){var v=l*i,S=v+i;l++,l<o?f(c,t,v,S,h):f(c,t,v,S,g)}m()}function CR(t){return xS.hash(t)}function xR(t,e){if(!e)return Gb().replace(/-/g,"").toLowerCase();var n=rf({},t);return delete n._rev_tree,CR(JSON.stringify(n))}var c_=Gb;function of(t){for(var e,n,r,i=t.rev_tree.slice(),o;o=i.pop();){var l=o.ids,c=l[2],f=o.pos;if(c.length){for(var h=0,g=c.length;h<g;h++)i.push({pos:f+1,ids:c[h]});continue}var m=!!l[1].deleted,v=l[0];(!e||(r!==m?r:n!==f?n<f:e<v))&&(e=v,n=f,r=m)}return n+"-"+e}function af(t,e){for(var n=t.slice(),r;r=n.pop();)for(var i=r.pos,o=r.ids,l=o[2],c=e(l.length===0,i,o[0],r.ctx,o[1]),f=0,h=l.length;f<h;f++)n.push({pos:i+1,ids:l[f],ctx:c})}function lI(t,e){return t.pos-e.pos}function rC(t){var e=[];af(t,function(i,o,l,c,f){i&&e.push({rev:o+"-"+l,pos:o,opts:f})}),e.sort(lI).reverse();for(var n=0,r=e.length;n<r;n++)delete e[n].pos;return e}function iC(t){for(var e=of(t),n=rC(t.rev_tree),r=[],i=0,o=n.length;i<o;i++){var l=n[i];l.rev!==e&&!l.opts.deleted&&r.push(l.rev)}return r}function uI(t){var e=[];return af(t.rev_tree,function(n,r,i,o,l){l.status==="available"&&!n&&(e.push(r+"-"+i),l.status="missing")}),e}function cI(t,e){let n=[];const r=t.slice();let i;for(;i=r.pop();){const{pos:o,ids:l}=i,c=`${o}-${l[0]}`,f=l[2];if(n.push(c),c===e){if(f.length!==0)throw new Error("The requested revision is not a leaf");return n.reverse()}(f.length===0||f.length>1)&&(n=[]);for(let h=0,g=f.length;h<g;h++)r.push({pos:o+1,ids:f[h]})}if(n.length===0)throw new Error("The requested revision does not exist");return n.reverse()}function ER(t){for(var e=[],n=t.slice(),r;r=n.pop();){var i=r.pos,o=r.ids,l=o[0],c=o[1],f=o[2],h=f.length===0,g=r.history?r.history.slice():[];g.push({id:l,opts:c}),h&&e.push({pos:i+1-g.length,ids:g});for(var m=0,v=f.length;m<v;m++)n.push({pos:i+1,ids:f[m],history:g})}return e.reverse()}function fI(t,e){return t.pos-e.pos}function dI(t,e,n){for(var r=0,i=t.length,o;r<i;)o=r+i>>>1,n(t[o],e)<0?r=o+1:i=o;return r}function hI(t,e,n){var r=dI(t,e,n);t.splice(r,0,e)}function gE(t,e){for(var n,r,i=e,o=t.length;i<o;i++){var l=t[i],c=[l.id,l.opts,[]];r?(r[2].push(c),r=c):n=r=c}return n}function pI(t,e){return t[0]<e[0]?-1:1}function vE(t,e){for(var n=[{tree1:t,tree2:e}],r=!1;n.length>0;){var i=n.pop(),o=i.tree1,l=i.tree2;(o[1].status||l[1].status)&&(o[1].status=o[1].status==="available"||l[1].status==="available"?"available":"missing");for(var c=0;c<l[2].length;c++){if(!o[2][0]){r="new_leaf",o[2][0]=l[2][c];continue}for(var f=!1,h=0;h<o[2].length;h++)o[2][h][0]===l[2][c][0]&&(n.push({tree1:o[2][h],tree2:l[2][c]}),f=!0);f||(r="new_branch",hI(o[2],l[2][c],pI))}}return{conflicts:r,tree:t}}function TR(t,e,n){var r=[],i=!1,o=!1,l;if(!t.length)return{tree:[e],conflicts:"new_leaf"};for(var c=0,f=t.length;c<f;c++){var h=t[c];if(h.pos===e.pos&&h.ids[0]===e.ids[0])l=vE(h.ids,e.ids),r.push({pos:h.pos,ids:l.tree}),i=i||l.conflicts,o=!0;else if(n!==!0){var g=h.pos<e.pos?h:e,m=h.pos<e.pos?e:h,v=m.pos-g.pos,S=[],b=[];for(b.push({ids:g.ids,diff:v,parent:null,parentIdx:null});b.length>0;){var A=b.pop();if(A.diff===0){A.ids[0]===m.ids[0]&&S.push(A);continue}for(var C=A.ids[2],E=0,k=C.length;E<k;E++)b.push({ids:C[E],diff:A.diff-1,parent:A.ids,parentIdx:E})}var T=S[0];T?(l=vE(T.ids,m.ids),T.parent[2][T.parentIdx]=l.tree,r.push({pos:g.pos,ids:g.ids}),i=i||l.conflicts,o=!0):r.push(h)}else r.push(h)}return o||r.push(e),r.sort(fI),{tree:r,conflicts:i||"internal_node"}}function mI(t,e){for(var n=ER(t),r,i,o=0,l=n.length;o<l;o++){var c=n[o],f=c.ids,h;if(f.length>e){r||(r={});var g=f.length-e;h={pos:c.pos+g,ids:gE(f,g)};for(var m=0;m<g;m++){var v=c.pos+m+"-"+f[m].id;r[v]=!0}}else h={pos:c.pos,ids:gE(f,0)};i?i=TR(i,h,!0).tree:i=[h]}return r&&af(i,function(S,b,A){delete r[b+"-"+A]}),{tree:i,revs:r?Object.keys(r):[]}}function OR(t,e,n){var r=TR(t,e),i=mI(r.tree,n);return{tree:i.tree,stemmedRevs:i.revs,conflicts:r.conflicts}}function gI(t,e){for(var n=t.slice(),r=e.split("-"),i=parseInt(r[0],10),o=r[1],l;l=n.pop();){if(l.pos===i&&l.ids[0]===o)return!0;for(var c=l.ids[2],f=0,h=c.length;f<h;f++)n.push({pos:l.pos+1,ids:c[f]})}return!1}function vI(t){return t.ids}function cl(t,e){e||(e=of(t));for(var n=e.substring(e.indexOf("-")+1),r=t.rev_tree.map(vI),i;i=r.pop();){if(i[0]===n)return!!i[1].deleted;r=r.concat(i[2])}}function Qc(t){return/^_local/.test(t)}function yI(t,e){for(var n=e.rev_tree.slice(),r;r=n.pop();){var i=r.pos,o=r.ids,l=o[0],c=o[1],f=o[2],h=f.length===0,g=r.history?r.history.slice():[];if(g.push({id:l,pos:i,opts:c}),h)for(var m=0,v=g.length;m<v;m++){var S=g[m],b=S.pos+"-"+S.id;if(b===t)return i+"-"+l}for(var A=0,C=f.length;A<C;A++)n.push({pos:i+1,ids:f[A],history:g})}throw new Error("Unable to resolve latest revision for id "+e.id+", rev "+t)}function _I(t,e,n,r){try{t.emit("change",e,n,r)}catch(i){Yo("error",'Error in .on("change", function):',i)}}function wI(t,e,n){var r=[{rev:t._rev}];n.style==="all_docs"&&(r=rC(e.rev_tree).map(function(o){return{rev:o.rev}}));var i={id:e.id,changes:r,doc:t};return cl(e,t._rev)&&(i.deleted=!0),n.conflicts&&(i.doc._conflicts=iC(e),i.doc._conflicts.length||delete i.doc._conflicts),i}class SI extends dl{constructor(e,n,r){super(),this.db=e,n=n?wr(n):{};var i=n.complete=hR((c,f)=>{c?X4(this,"error")>0&&this.emit("error",c):this.emit("complete",f),this.removeAllListeners(),e.removeListener("destroyed",o)});r&&(this.on("complete",function(c){r(null,c)}),this.on("error",r));const o=()=>{this.cancel()};e.once("destroyed",o),n.onChange=(c,f,h)=>{this.isCancelled||_I(this,c,f,h)};var l=new Promise(function(c,f){n.complete=function(h,g){h?f(h):c(g)}});this.once("cancel",function(){e.removeListener("destroyed",o),n.complete(null,{status:"cancelled"})}),this.then=l.then.bind(l),this.catch=l.catch.bind(l),this.then(function(c){i(null,c)},i),e.taskqueue.isReady?this.validateChanges(n):e.taskqueue.addTask(c=>{c?n.complete(c):this.isCancelled?this.emit("cancel"):this.validateChanges(n)})}cancel(){this.isCancelled=!0,this.db.taskqueue.isReady&&this.emit("cancel")}validateChanges(e){var n=e.complete;Ct._changesFilterPlugin?Ct._changesFilterPlugin.validate(e,r=>{if(r)return n(r);this.doChanges(e)}):this.doChanges(e)}doChanges(e){var n=e.complete;if(e=wr(e),"live"in e&&!("continuous"in e)&&(e.continuous=e.live),e.processChange=wI,e.since==="latest"&&(e.since="now"),e.since||(e.since=0),e.since==="now"){this.db.info().then(i=>{if(this.isCancelled){n(null,{status:"cancelled"});return}e.since=i.update_seq,this.doChanges(e)},n);return}if(Ct._changesFilterPlugin){if(Ct._changesFilterPlugin.normalize(e),Ct._changesFilterPlugin.shouldFilter(this,e))return Ct._changesFilterPlugin.filter(this,e)}else["doc_ids","filter","selector","view"].forEach(function(i){i in e&&Yo("warn",'The "'+i+'" option was passed in to changes/replicate, but pouchdb-changes-filter plugin is not installed, so it was ignored. Please install the plugin to enable filtering.')});"descending"in e||(e.descending=!1),e.limit=e.limit===0?1:e.limit,e.complete=n;var r=this.db._changes(e);if(r&&typeof r.cancel=="function"){const i=this.cancel;this.cancel=(...o)=>{r.cancel(),i.apply(this,o)}}}}function yE(t,e){return t<e?-1:t>e?1:0}function Jw(t,e){return function(n,r){n||r[0]&&r[0].error?(n=n||r[0],n.docId=e,t(n)):t(null,r.length?r[0]:r)}}function bI(t){for(var e=0;e<t.length;e++){var n=t[e];if(n._deleted)delete n._attachments;else if(n._attachments)for(var r=Object.keys(n._attachments),i=0;i<r.length;i++){var o=r[i];n._attachments[o]=Rg(n._attachments[o],["data","digest","content_type","length","revpos","stub"])}}}function CI(t,e){var n=yE(t._id,e._id);if(n!==0)return n;var r=t._revisions?t._revisions.start:0,i=e._revisions?e._revisions.start:0;return yE(r,i)}function xI(t){var e={},n=[];return af(t,function(r,i,o,l){var c=i+"-"+o;return r&&(e[c]=0),l!==void 0&&n.push({from:l,to:c}),c}),n.reverse(),n.forEach(function(r){e[r.from]===void 0?e[r.from]=1+e[r.to]:e[r.from]=Math.min(e[r.from],1+e[r.to])}),e}function EI(t){var e="limit"in t?t.keys.slice(t.skip,t.limit+t.skip):t.skip>0?t.keys.slice(t.skip):t.keys;t.keys=e,t.skip=0,delete t.limit,t.descending&&(e.reverse(),t.descending=!1)}function AR(t){var e=t._compactionQueue[0],n=e.opts,r=e.callback;t.get("_local/compaction").catch(function(){return!1}).then(function(i){i&&i.last_seq&&(n.last_seq=i.last_seq),t._compact(n,function(o,l){o?r(o):r(null,l),vs(function(){t._compactionQueue.shift(),t._compactionQueue.length&&AR(t)})})})}function TI(t,e,n){return t.get("_local/purges").then(function(r){const i=r.purgeSeq+1;return r.purges.push({docId:e,rev:n,purgeSeq:i}),r.purges.length>self.purged_infos_limit&&r.purges.splice(0,r.purges.length-self.purged_infos_limit),r.purgeSeq=i,r}).catch(function(r){if(r.status!==404)throw r;return{_id:"_local/purges",purges:[{docId:e,rev:n,purgeSeq:0}],purgeSeq:0}}).then(function(r){return t.put(r)})}function OI(t){return t.charAt(0)==="_"?t+" is not a valid attachment name, attachment names cannot start with '_'":!1}class RR extends dl{_setup(){this.post=Bn("post",function(e,n,r){if(typeof n=="function"&&(r=n,n={}),typeof e!="object"||Array.isArray(e))return r(bt(Zw));this.bulkDocs({docs:[e]},n,Jw(r,e._id))}).bind(this),this.put=Bn("put",function(e,n,r){if(typeof n=="function"&&(r=n,n={}),typeof e!="object"||Array.isArray(e))return r(bt(Zw));if(_R(e._id),Qc(e._id)&&typeof this._putLocal=="function")return e._deleted?this._removeLocal(e,r):this._putLocal(e,r);const i=l=>{typeof this._put=="function"&&n.new_edits!==!1?this._put(e,n,l):this.bulkDocs({docs:[e]},n,Jw(l,e._id))};n.force&&e._rev?(o(),i(function(l){var c=l?null:{ok:!0,id:e._id,rev:e._rev};r(l,c)})):i(r);function o(){var l=e._rev.split("-"),c=l[1],f=parseInt(l[0],10),h=f+1,g=xR();e._revisions={start:h,ids:[g,c]},e._rev=h+"-"+g,n.new_edits=!1}}).bind(this),this.putAttachment=Bn("putAttachment",function(e,n,r,i,o){var l=this;typeof o=="function"&&(o=i,i=r,r=null),typeof o>"u"&&(o=i,i=r,r=null),o||Yo("warn","Attachment",n,"on document",e,"is missing content_type");function c(f){var h="_rev"in f?parseInt(f._rev,10):0;return f._attachments=f._attachments||{},f._attachments[n]={content_type:o,data:i,revpos:++h},l.put(f)}return l.get(e).then(function(f){if(f._rev!==r)throw bt(xh);return c(f)},function(f){if(f.reason===Vo.message)return c({_id:e});throw f})}).bind(this),this.removeAttachment=Bn("removeAttachment",function(e,n,r,i){this.get(e,(o,l)=>{if(o){i(o);return}if(l._rev!==r){i(bt(xh));return}if(!l._attachments)return i();delete l._attachments[n],Object.keys(l._attachments).length===0&&delete l._attachments,this.put(l,i)})}).bind(this),this.remove=Bn("remove",function(e,n,r,i){var o;typeof n=="string"?(o={_id:e,_rev:n},typeof r=="function"&&(i=r,r={})):(o=e,typeof n=="function"?(i=n,r={}):(i=r,r=n)),r=r||{},r.was_delete=!0;var l={_id:o._id,_rev:o._rev||r.rev};if(l._deleted=!0,Qc(l._id)&&typeof this._removeLocal=="function")return this._removeLocal(o,i);this.bulkDocs({docs:[l]},r,Jw(i,l._id))}).bind(this),this.revsDiff=Bn("revsDiff",function(e,n,r){typeof n=="function"&&(r=n,n={});var i=Object.keys(e);if(!i.length)return r(null,{});var o=0,l=new Ji;function c(h,g){l.has(h)||l.set(h,{missing:[]}),l.get(h).missing.push(g)}function f(h,g){var m=e[h].slice(0);af(g,function(v,S,b,A,C){var E=S+"-"+b,k=m.indexOf(E);k!==-1&&(m.splice(k,1),C.status!=="available"&&c(h,E))}),m.forEach(function(v){c(h,v)})}i.map(function(h){this._getRevisionTree(h,function(g,m){if(g&&g.status===404&&g.message==="missing")l.set(h,{missing:e[h]});else{if(g)return r(g);f(h,m)}if(++o===i.length){var v={};return l.forEach(function(S,b){v[b]=S}),r(null,v)}})},this)}).bind(this),this.bulkGet=Bn("bulkGet",function(e,n){mR(this,e,n)}).bind(this),this.compactDocument=Bn("compactDocument",function(e,n,r){this._getRevisionTree(e,(i,o)=>{if(i)return r(i);var l=xI(o),c=[],f=[];Object.keys(l).forEach(function(h){l[h]>n&&c.push(h)}),af(o,function(h,g,m,v,S){var b=g+"-"+m;S.status==="available"&&c.indexOf(b)!==-1&&f.push(b)}),this._doCompaction(e,f,r)})}).bind(this),this.compact=Bn("compact",function(e,n){typeof e=="function"&&(n=e,e={}),e=e||{},this._compactionQueue=this._compactionQueue||[],this._compactionQueue.push({opts:e,callback:n}),this._compactionQueue.length===1&&AR(this)}).bind(this),this.get=Bn("get",function(e,n,r){if(typeof n=="function"&&(r=n,n={}),typeof e!="string")return r(bt(gR));if(Qc(e)&&typeof this._getLocal=="function")return this._getLocal(e,r);var i=[];const o=()=>{var f=[],h=i.length;if(!h)return r(null,f);i.forEach(g=>{this.get(e,{rev:g,revs:n.revs,latest:n.latest,attachments:n.attachments,binary:n.binary},function(m,v){if(m)f.push({missing:g});else{for(var S,b=0,A=f.length;b<A;b++)if(f[b].ok&&f[b].ok._rev===v._rev){S=!0;break}S||f.push({ok:v})}h--,h||r(null,f)})})};if(n.open_revs){if(n.open_revs==="all")this._getRevisionTree(e,function(f,h){if(f)return r(f);i=rC(h).map(function(g){return g.rev}),o()});else if(Array.isArray(n.open_revs)){i=n.open_revs;for(var l=0;l<i.length;l++){var c=i[l];if(!(typeof c=="string"&&/^\d+-/.test(c)))return r(bt(yR))}o()}else return r(bt(Bb,"function_clause"));return}return this._get(e,n,(f,h)=>{if(f)return f.docId=e,r(f);var g=h.doc,m=h.metadata,v=h.ctx;if(n.conflicts){var S=iC(m);S.length&&(g._conflicts=S)}if(cl(m,g._rev)&&(g._deleted=!0),n.revs||n.revs_info){for(var b=g._rev.split("-"),A=parseInt(b[0],10),C=b[1],E=ER(m.rev_tree),k=null,T=0;T<E.length;T++){var x=E[T],w=x.ids.map(function(J){return J.id}).indexOf(C),R=w===A-1;(R||!k&&w!==-1)&&(k=x)}if(!k)return f=new Error("invalid rev tree"),f.docId=e,r(f);var I=k.ids.map(function(J){return J.id}).indexOf(g._rev.split("-")[1])+1,F=k.ids.length-I;if(k.ids.splice(I,F),k.ids.reverse(),n.revs&&(g._revisions={start:k.pos+k.ids.length-1,ids:k.ids.map(function(J){return J.id})}),n.revs_info){var U=k.pos+k.ids.length;g._revs_info=k.ids.map(function(J){return U--,{rev:U+"-"+J.id,status:J.opts.status}})}}if(n.attachments&&g._attachments){var V=g._attachments,K=Object.keys(V).length;if(K===0)return r(null,g);Object.keys(V).forEach(J=>{this._getAttachment(g._id,J,V[J],{rev:g._rev,binary:n.binary,ctx:v},function(oe,fe){var Q=g._attachments[J];Q.data=fe,delete Q.stub,delete Q.length,--K||r(null,g)})})}else{if(g._attachments)for(var Z in g._attachments)Object.prototype.hasOwnProperty.call(g._attachments,Z)&&(g._attachments[Z].stub=!0);r(null,g)}})}).bind(this),this.getAttachment=Bn("getAttachment",function(e,n,r,i){r instanceof Function&&(i=r,r={}),this._get(e,r,(o,l)=>{if(o)return i(o);if(l.doc._attachments&&l.doc._attachments[n])r.ctx=l.ctx,r.binary=!0,this._getAttachment(e,n,l.doc._attachments[n],r,i);else return i(bt(Vo))})}).bind(this),this.allDocs=Bn("allDocs",function(e,n){if(typeof e=="function"&&(n=e,e={}),e.skip=typeof e.skip<"u"?e.skip:0,e.start_key&&(e.startkey=e.start_key),e.end_key&&(e.endkey=e.end_key),"keys"in e){if(!Array.isArray(e.keys))return n(new TypeError("options.keys must be an array"));var r=["startkey","endkey","key"].filter(function(i){return i in e})[0];if(r){n(bt(G4,"Query parameter `"+r+"` is not compatible with multi-get"));return}if(!hs(this)&&(EI(e),e.keys.length===0))return this._allDocs({limit:0},n)}return this._allDocs(e,n)}).bind(this),this.close=Bn("close",function(e){return this._closed=!0,this.emit("closed"),this._close(e)}).bind(this),this.info=Bn("info",function(e){this._info((n,r)=>{if(n)return e(n);r.db_name=r.db_name||this.name,r.auto_compaction=!!(this.auto_compaction&&!hs(this)),r.adapter=this.adapter,e(null,r)})}).bind(this),this.id=Bn("id",function(e){return this._id(e)}).bind(this),this.bulkDocs=Bn("bulkDocs",function(e,n,r){if(typeof n=="function"&&(r=n,n={}),n=n||{},Array.isArray(e)&&(e={docs:e}),!e||!e.docs||!Array.isArray(e.docs))return r(bt(U4));for(var i=0;i<e.docs.length;++i)if(typeof e.docs[i]!="object"||Array.isArray(e.docs[i]))return r(bt(Zw));var o;if(e.docs.forEach(function(f){f._attachments&&Object.keys(f._attachments).forEach(function(h){o=o||OI(h),f._attachments[h].content_type||Yo("warn","Attachment",h,"on document",f._id,"is missing content_type")})}),o)return r(bt(u_,o));"new_edits"in n||("new_edits"in e?n.new_edits=e.new_edits:n.new_edits=!0);var l=this;!n.new_edits&&!hs(l)&&e.docs.sort(CI),bI(e.docs);var c=e.docs.map(function(f){return f._id});this._bulkDocs(e,n,function(f,h){if(f)return r(f);if(n.new_edits||(h=h.filter(function(v){return v.error})),!hs(l))for(var g=0,m=h.length;g<m;g++)h[g].id=h[g].id||c[g];r(null,h)})}).bind(this),this.registerDependentDatabase=Bn("registerDependentDatabase",function(e,n){var r=wr(this.__opts);this.__opts.view_adapter&&(r.adapter=this.__opts.view_adapter);var i=new this.constructor(e,r);function o(l){return l.dependentDbs=l.dependentDbs||{},l.dependentDbs[e]?!1:(l.dependentDbs[e]=!0,l)}yy(this,"_local/_pouch_dependentDbs",o).then(function(){n(null,{db:i})}).catch(n)}).bind(this),this.destroy=Bn("destroy",function(e,n){typeof e=="function"&&(n=e,e={});var r="use_prefix"in this?this.use_prefix:!0;const i=()=>{this._destroy(e,(o,l)=>{if(o)return n(o);this._destroyed=!0,this.emit("destroyed"),n(null,l||{ok:!0})})};if(hs(this))return i();this.get("_local/_pouch_dependentDbs",(o,l)=>{if(o)return o.status!==404?n(o):i();var c=l.dependentDbs,f=this.constructor,h=Object.keys(c).map(g=>{var m=r?g.replace(new RegExp("^"+f.prefix),""):g;return new f(m,this.__opts).destroy()});Promise.all(h).then(i,n)})}).bind(this)}_compact(e,n){var r={return_docs:!1,last_seq:e.last_seq||0},i=[],o,l=0;const c=g=>{this.activeTasks.update(o,{completed_items:++l}),i.push(this.compactDocument(g.id,0))},f=g=>{this.activeTasks.remove(o,g),n(g)},h=g=>{var m=g.last_seq;Promise.all(i).then(()=>yy(this,"_local/compaction",v=>!v.last_seq||v.last_seq<m?(v.last_seq=m,v):!1)).then(()=>{this.activeTasks.remove(o),n(null,{ok:!0})}).catch(f)};this.info().then(g=>{o=this.activeTasks.add({name:"database_compaction",total_items:g.update_seq-r.last_seq}),this.changes(r).on("change",c).on("complete",h).on("error",f)})}changes(e,n){return typeof e=="function"&&(n=e,e={}),e=e||{},e.return_docs="return_docs"in e?e.return_docs:!e.live,new SI(this,e,n)}type(){return typeof this._type=="function"?this._type():this.adapter}}RR.prototype.purge=Bn("_purge",function(t,e,n){if(typeof this._purge>"u")return n(bt(Bb,"Purge is not implemented in the "+this.adapter+" adapter."));var r=this;r._getRevisionTree(t,(i,o)=>{if(i)return n(i);if(!o)return n(bt(Vo));let l;try{l=cI(o,e)}catch(c){return n(c.message||c)}r._purge(t,l,(c,f)=>{if(c)return n(c);TI(r,t,e).then(function(){return n(null,f)})})})});class AI{constructor(){this.isReady=!1,this.failed=!1,this.queue=[]}execute(){var e;if(this.failed)for(;e=this.queue.shift();)e(this.failed);else for(;e=this.queue.shift();)e()}fail(e){this.failed=e,this.execute()}ready(e){this.isReady=!0,this.db=e,this.execute()}addTask(e){this.queue.push(e),this.failed&&this.execute()}}function RI(t,e){var n=t.match(/([a-z-]*):\/\/(.*)/);if(n)return{name:/https?/.test(n[1])?n[1]+"://"+n[2]:n[2],adapter:n[1]};var r=Ct.adapters,i=Ct.preferredAdapters,o=Ct.prefix,l=e.adapter;if(!l)for(var c=0;c<i.length;++c){if(l=i[c],l==="idb"&&"websql"in r&&gy()&&localStorage["_pouch__websqldb_"+o+t]){Yo("log",'PouchDB is downgrading "'+t+'" to WebSQL to avoid data loss, because it was already opened with WebSQL.');continue}break}var f=r[l],h=f&&"use_prefix"in f?f.use_prefix:!0;return{name:h?o+t:t,adapter:l}}function kI(t,e){t.prototype=Object.create(e.prototype,{constructor:{value:t}})}function kR(t,e){let n=function(...r){if(!(this instanceof n))return new n(...r);e.apply(this,r)};return kI(n,t),n}function NI(t){function e(r){t.removeListener("closed",n),r||t.constructor.emit("destroyed",t.name)}function n(){t.removeListener("destroyed",e),t.constructor.emit("unref",t)}t.once("destroyed",e),t.once("closed",n),t.constructor.emit("ref",t)}class _E extends RR{constructor(e,n){super(),this._setup(e,n)}_setup(e,n){if(super._setup(),n=n||{},e&&typeof e=="object"&&(n=e,e=n.name,delete n.name),n.deterministic_revs===void 0&&(n.deterministic_revs=!0),this.__opts=n=wr(n),this.auto_compaction=n.auto_compaction,this.purged_infos_limit=n.purged_infos_limit||1e3,this.prefix=Ct.prefix,typeof e!="string")throw new Error("Missing/invalid DB name");var r=(n.prefix||"")+e,i=RI(r,n);if(n.name=i.name,n.adapter=n.adapter||i.adapter,this.name=e,this._adapter=n.adapter,Ct.emit("debug",["adapter","Picked adapter: ",n.adapter]),!Ct.adapters[n.adapter]||!Ct.adapters[n.adapter].valid())throw new Error("Invalid Adapter: "+n.adapter);if(n.view_adapter&&(!Ct.adapters[n.view_adapter]||!Ct.adapters[n.view_adapter].valid()))throw new Error("Invalid View Adapter: "+n.view_adapter);this.taskqueue=new AI,this.adapter=n.adapter,Ct.adapters[n.adapter].call(this,n,o=>{if(o)return this.taskqueue.fail(o);NI(this),this.emit("created",this),Ct.emit("created",this.name),this.taskqueue.ready(this)})}}const Ct=kR(_E,function(t,e){_E.prototype._setup.call(this,t,e)});var PI=typeof AbortController<"u"?AbortController:function(){return{abort:function(){}}},NR=fetch,yh=Headers;class DI{constructor(){this.tasks={}}list(){return Object.values(this.tasks)}add(e){const n=Gb();return this.tasks[n]={id:n,name:e.name,total_items:e.total_items,created_at:new Date().toJSON()},n}get(e){return this.tasks[e]}remove(e,n){return delete this.tasks[e],this.tasks}update(e,n){const r=this.tasks[e];if(typeof r<"u"){const i={id:r.id,name:r.name,created_at:r.created_at,total_items:n.total_items||r.total_items,completed_items:n.completed_items||r.completed_items,updated_at:new Date().toJSON()};this.tasks[e]=i}return this.tasks}}Ct.adapters={};Ct.preferredAdapters=[];Ct.prefix="_pouch_";var wE=new dl;function LI(t){Object.keys(dl.prototype).forEach(function(n){typeof dl.prototype[n]=="function"&&(t[n]=wE[n].bind(wE))});var e=t._destructionListeners=new Ji;t.on("ref",function(r){e.has(r.name)||e.set(r.name,[]),e.get(r.name).push(r)}),t.on("unref",function(r){if(e.has(r.name)){var i=e.get(r.name),o=i.indexOf(r);o<0||(i.splice(o,1),i.length>1?e.set(r.name,i):e.delete(r.name))}}),t.on("destroyed",function(r){if(e.has(r)){var i=e.get(r);e.delete(r),i.forEach(function(o){o.emit("destroyed",!0)})}})}LI(Ct);Ct.adapter=function(t,e,n){e.valid()&&(Ct.adapters[t]=e,n&&Ct.preferredAdapters.push(t))};Ct.plugin=function(t){if(typeof t=="function")t(Ct);else{if(typeof t!="object"||Object.keys(t).length===0)throw new Error('Invalid plugin: got "'+t+'", expected an object or a function');Object.keys(t).forEach(function(e){Ct.prototype[e]=t[e]})}return this.__defaults&&(Ct.__defaults=rf({},this.__defaults)),Ct};Ct.defaults=function(t){let e=kR(Ct,function(n,r){r=r||{},n&&typeof n=="object"&&(r=n,n=r.name,delete r.name),r=rf({},e.__defaults,r),Ct.call(this,n,r)});return e.preferredAdapters=Ct.preferredAdapters.slice(),Object.keys(Ct).forEach(function(n){n in e||(e[n]=Ct[n])}),e.__defaults=rf({},this.__defaults,t),e};Ct.fetch=function(t,e){return NR(t,e)};Ct.prototype.activeTasks=Ct.activeTasks=new DI;var MI="8.0.1";function oC(t,e){for(var n=t,r=0,i=e.length;r<i;r++){var o=e[r];if(n=n[o],!n)break}return n}function II(t,e){return t<e?-1:t>e?1:0}function aC(t){for(var e=[],n="",r=0,i=t.length;r<i;r++){var o=t[r];r>0&&t[r-1]==="\\"&&(o==="$"||o===".")?n=n.substring(0,n.length-1)+o:o==="."?(e.push(n),n=""):n+=o}return e.push(n),e}var FI=["$or","$nor","$not"];function PR(t){return FI.indexOf(t)>-1}function DR(t){return Object.keys(t)[0]}function $I(t){return t[DR(t)]}function Xm(t){var e={},n={$or:!0,$nor:!0};return t.forEach(function(r){Object.keys(r).forEach(function(i){var o=r[i];if(typeof o!="object"&&(o={$eq:o}),PR(i))if(o instanceof Array){if(n[i]){n[i]=!1,e[i]=o;return}var l=[];e[i].forEach(function(f){Object.keys(o).forEach(function(h){var g=o[h],m=Math.max(Object.keys(f).length,Object.keys(g).length),v=Xm([f,g]);Object.keys(v).length<=m||l.push(v)})}),e[i]=l}else e[i]=Xm([o]);else{var c=e[i]=e[i]||{};Object.keys(o).forEach(function(f){var h=o[f];if(f==="$gt"||f==="$gte")return jI(f,h,c);if(f==="$lt"||f==="$lte")return zI(f,h,c);if(f==="$ne")return HI(h,c);if(f==="$eq")return qI(h,c);if(f==="$regex")return UI(h,c);c[f]=h})}})}),e}function jI(t,e,n){typeof n.$eq<"u"||(typeof n.$gte<"u"?t==="$gte"?e>n.$gte&&(n.$gte=e):e>=n.$gte&&(delete n.$gte,n.$gt=e):typeof n.$gt<"u"?t==="$gte"?e>n.$gt&&(delete n.$gt,n.$gte=e):e>n.$gt&&(n.$gt=e):n[t]=e)}function zI(t,e,n){typeof n.$eq<"u"||(typeof n.$lte<"u"?t==="$lte"?e<n.$lte&&(n.$lte=e):e<=n.$lte&&(delete n.$lte,n.$lt=e):typeof n.$lt<"u"?t==="$lte"?e<n.$lt&&(delete n.$lt,n.$lte=e):e<n.$lt&&(n.$lt=e):n[t]=e)}function HI(t,e){"$ne"in e?e.$ne.push(t):e.$ne=[t]}function qI(t,e){delete e.$gt,delete e.$gte,delete e.$lt,delete e.$lte,delete e.$ne,e.$eq=t}function UI(t,e){"$regex"in e?e.$regex.push(t):e.$regex=[t]}function LR(t){for(var e in t){if(Array.isArray(t))for(var n in t)t[n].$and&&(t[n]=Xm(t[n].$and));var r=t[e];typeof r=="object"&&LR(r)}return t}function MR(t,e){for(var n in t){n==="$and"&&(e=!0);var r=t[n];typeof r=="object"&&(e=MR(r,e))}return e}function VI(t){var e=wr(t);MR(e,!1)&&(e=LR(e),"$and"in e&&(e=Xm(e.$and))),["$or","$nor"].forEach(function(l){l in e&&e[l].forEach(function(c){for(var f=Object.keys(c),h=0;h<f.length;h++){var g=f[h],m=c[g];(typeof m!="object"||m===null)&&(c[g]={$eq:m})}})}),"$not"in e&&(e.$not=Xm([e.$not]));for(var n=Object.keys(e),r=0;r<n.length;r++){var i=n[r],o=e[i];(typeof o!="object"||o===null)&&(o={$eq:o}),e[i]=o}return RS(e),e}function RS(t){Object.keys(t).forEach(function(e){var n=t[e];Array.isArray(n)?n.forEach(function(r){r&&typeof r=="object"&&RS(r)}):e==="$ne"?t.$ne=[n]:e==="$regex"?t.$regex=[n]:n&&typeof n=="object"&&RS(n)})}function WI(t,e,n){for(var r="",i=n-t.length;r.length<i;)r+=e;return r}function GI(t,e,n){var r=WI(t,e,n);return r+t}var IR=-324,kS=3,NS="";function Yn(t,e){if(t===e)return 0;t=sf(t),e=sf(e);var n=PS(t),r=PS(e);if(n-r!==0)return n-r;switch(typeof t){case"number":return t-e;case"boolean":return t<e?-1:1;case"string":return ZI(t,e)}return Array.isArray(t)?QI(t,e):JI(t,e)}function sf(t){switch(typeof t){case"undefined":return null;case"number":return t===1/0||t===-1/0||isNaN(t)?null:t;case"object":var e=t;if(Array.isArray(t)){var n=t.length;t=new Array(n);for(var r=0;r<n;r++)t[r]=sf(e[r])}else{if(t instanceof Date)return t.toJSON();if(t!==null){t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=e[i];typeof o<"u"&&(t[i]=sf(o))}}}}return t}function BI(t){if(t!==null)switch(typeof t){case"boolean":return t?1:0;case"number":return e8(t);case"string":return t.replace(/\u0002/g,"").replace(/\u0001/g,"").replace(/\u0000/g,"");case"object":var e=Array.isArray(t),n=e?t:Object.keys(t),r=-1,i=n.length,o="";if(e)for(;++r<i;)o+=ya(n[r]);else for(;++r<i;){var l=n[r];o+=ya(l)+ya(t[l])}return o}return""}function ya(t){var e="\0";return t=sf(t),PS(t)+NS+BI(t)+e}function KI(t,e){var n=e,r,i=t[e]==="1";if(i)r=0,e++;else{var o=t[e]==="0";e++;var l="",c=t.substring(e,e+kS),f=parseInt(c,10)+IR;for(o&&(f=-f),e+=kS;;){var h=t[e];if(h==="\0")break;l+=h,e++}l=l.split("."),l.length===1?r=parseInt(l,10):r=parseFloat(l[0]+"."+l[1]),o&&(r=r-10),f!==0&&(r=parseFloat(r+"e"+f))}return{num:r,length:e-n}}function XI(t,e){var n=t.pop();if(e.length){var r=e[e.length-1];n===r.element&&(e.pop(),r=e[e.length-1]);var i=r.element,o=r.index;if(Array.isArray(i))i.push(n);else if(o===t.length-2){var l=t.pop();i[l]=n}else t.push(n)}}function YI(t){for(var e=[],n=[],r=0;;){var i=t[r++];if(i==="\0"){if(e.length===1)return e.pop();XI(e,n);continue}switch(i){case"1":e.push(null);break;case"2":e.push(t[r]==="1"),r++;break;case"3":var o=KI(t,r);e.push(o.num),r+=o.length;break;case"4":for(var l="";;){var c=t[r];if(c==="\0")break;l+=c,r++}l=l.replace(/\u0001\u0001/g,"\0").replace(/\u0001\u0002/g,"").replace(/\u0002\u0002/g,""),e.push(l);break;case"5":var f={element:[],index:e.length};e.push(f.element),n.push(f);break;case"6":var h={element:{},index:e.length};e.push(h.element),n.push(h);break;default:throw new Error("bad collationIndex or unexpectedly reached end of input: "+i)}}}function QI(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){var i=Yn(t[r],e[r]);if(i!==0)return i}return t.length===e.length?0:t.length>e.length?1:-1}function ZI(t,e){return t===e?0:t>e?1:-1}function JI(t,e){for(var n=Object.keys(t),r=Object.keys(e),i=Math.min(n.length,r.length),o=0;o<i;o++){var l=Yn(n[o],r[o]);if(l!==0||(l=Yn(t[n[o]],e[r[o]]),l!==0))return l}return n.length===r.length?0:n.length>r.length?1:-1}function PS(t){var e=["boolean","number","string","object"],n=e.indexOf(typeof t);if(~n)return t===null?1:Array.isArray(t)?5:n<3?n+2:n+3;if(Array.isArray(t))return 5}function e8(t){if(t===0)return"1";var e=t.toExponential().split(/e\+?/),n=parseInt(e[1],10),r=t<0,i=r?"0":"2",o=(r?-n:n)-IR,l=GI(o.toString(),"0",kS);i+=NS+l;var c=Math.abs(parseFloat(e[0]));r&&(c=10-c);var f=c.toFixed(20);return f=f.replace(/\.?0+$/,""),i+=NS+f,i}function t8(t){function e(n){return t.map(function(r){var i=DR(r),o=aC(i),l=oC(n,o);return l})}return function(n,r){var i=e(n.doc),o=e(r.doc),l=Yn(i,o);return l!==0?l:II(n.doc._id,r.doc._id)}}function n8(t,e,n){if(t=t.filter(function(l){return _h(l.doc,e.selector,n)}),e.sort){var r=t8(e.sort);t=t.sort(r),typeof e.sort[0]!="string"&&$I(e.sort[0])==="desc"&&(t=t.reverse())}if("limit"in e||"skip"in e){var i=e.skip||0,o=("limit"in e?e.limit:t.length)+i;t=t.slice(i,o)}return t}function _h(t,e,n){return n.every(function(r){var i=e[r],o=aC(r),l=oC(t,o);return PR(r)?r8(r,i,t):_y(i,t,o,l)})}function _y(t,e,n,r){return t?typeof t=="object"?Object.keys(t).every(function(i){var o=t[i];if(i.indexOf("$")===0)return SE(i,e,o,n,r);var l=aC(i);if(r===void 0&&typeof o!="object"&&l.length>0)return!1;var c=oC(r,l);return typeof o=="object"?_y(o,e,n,c):SE("$eq",e,o,l,c)}):t===r:!0}function r8(t,e,n){return t==="$or"?e.some(function(r){return _h(n,r,Object.keys(r))}):t==="$not"?!_h(n,e,Object.keys(e)):!e.find(function(r){return _h(n,r,Object.keys(r))})}function SE(t,e,n,r,i){if(!CE[t])throw new Error('unknown operator "'+t+'" - should be one of $eq, $lte, $lt, $gt, $gte, $exists, $ne, $in, $nin, $size, $mod, $regex, $elemMatch, $type, $allMatch or $all');return CE[t](e,n,r,i)}function _m(t){return typeof t<"u"&&t!==null}function Mc(t){return typeof t<"u"}function i8(t,e){if(typeof t!="number"||parseInt(t,10)!==t)return!1;var n=e[0],r=e[1];return t%n===r}function bE(t,e){return e.some(function(n){return t instanceof Array?t.some(function(r){return Yn(n,r)===0}):Yn(n,t)===0})}function o8(t,e){return e.every(function(n){return t.some(function(r){return Yn(n,r)===0})})}function a8(t,e){return t.length===e}function s8(t,e){var n=new RegExp(e);return n.test(t)}function l8(t,e){switch(e){case"null":return t===null;case"boolean":return typeof t=="boolean";case"number":return typeof t=="number";case"string":return typeof t=="string";case"array":return t instanceof Array;case"object":return{}.toString.call(t)==="[object Object]"}}var CE={$elemMatch:function(t,e,n,r){return!Array.isArray(r)||r.length===0?!1:typeof r[0]=="object"&&r[0]!==null?r.some(function(i){return _h(i,e,Object.keys(e))}):r.some(function(i){return _y(e,t,n,i)})},$allMatch:function(t,e,n,r){return!Array.isArray(r)||r.length===0?!1:typeof r[0]=="object"&&r[0]!==null?r.every(function(i){return _h(i,e,Object.keys(e))}):r.every(function(i){return _y(e,t,n,i)})},$eq:function(t,e,n,r){return Mc(r)&&Yn(r,e)===0},$gte:function(t,e,n,r){return Mc(r)&&Yn(r,e)>=0},$gt:function(t,e,n,r){return Mc(r)&&Yn(r,e)>0},$lte:function(t,e,n,r){return Mc(r)&&Yn(r,e)<=0},$lt:function(t,e,n,r){return Mc(r)&&Yn(r,e)<0},$exists:function(t,e,n,r){return e?Mc(r):!Mc(r)},$mod:function(t,e,n,r){return _m(r)&&i8(r,e)},$ne:function(t,e,n,r){return e.every(function(i){return Yn(r,i)!==0})},$in:function(t,e,n,r){return _m(r)&&bE(r,e)},$nin:function(t,e,n,r){return _m(r)&&!bE(r,e)},$size:function(t,e,n,r){return _m(r)&&Array.isArray(r)&&a8(r,e)},$all:function(t,e,n,r){return Array.isArray(r)&&o8(r,e)},$regex:function(t,e,n,r){return _m(r)&&typeof r=="string"&&e.every(function(i){return s8(r,i)})},$type:function(t,e,n,r){return l8(r,e)}};function u8(t,e){if(typeof e!="object")throw new Error("Selector error: expected a JSON object");e=VI(e);var n={doc:t},r=n8([n],{selector:e},Object.keys(e));return r&&r.length===1}function c8(t){return Yb(`"use strict";
|
|
42
|
+
return `+t+";",{})}function f8(t){var e=["return function(doc) {",' "use strict";'," var emitted = false;"," var emit = function (a, b) {"," emitted = true;"," };"," var view = "+t+";"," view(doc);"," if (emitted) {"," return true;"," }","};"].join(`
|
|
43
|
+
`);return Yb(e,{})}function d8(t,e){if(t.selector&&t.filter&&t.filter!=="_selector"){var n=typeof t.filter=="string"?t.filter:"function";return e(new Error('selector invalid for filter "'+n+'"'))}e()}function h8(t){t.view&&!t.filter&&(t.filter="_view"),t.selector&&!t.filter&&(t.filter="_selector"),t.filter&&typeof t.filter=="string"&&(t.filter==="_view"?t.view=hE(t.view):t.filter=hE(t.filter))}function p8(t,e){return e.filter&&typeof e.filter=="string"&&!e.doc_ids&&!hs(t.db)}function m8(t,e){var n=e.complete;if(e.filter==="_view"){if(!e.view||typeof e.view!="string"){var r=bt(u_,"`view` filter parameter not found or invalid.");return n(r)}var i=AS(e.view);t.db.get("_design/"+i[0],function(l,c){if(t.isCancelled)return n(null,{status:"cancelled"});if(l)return n(Eh(l));var f=c&&c.views&&c.views[i[1]]&&c.views[i[1]].map;if(!f)return n(bt(Vo,c.views?"missing json key: "+i[1]:"missing json key: views"));e.filter=f8(f),t.doChanges(e)})}else if(e.selector)e.filter=function(l){return u8(l,e.selector)},t.doChanges(e);else{var o=AS(e.filter);t.db.get("_design/"+o[0],function(l,c){if(t.isCancelled)return n(null,{status:"cancelled"});if(l)return n(Eh(l));var f=c&&c.filters&&c.filters[o[1]];if(!f)return n(bt(Vo,c&&c.filters?"missing json key: "+o[1]:"missing json key: filters"));e.filter=c8(f),t.doChanges(e)})}}function g8(t){t._changesFilterPlugin={validate:d8,normalize:h8,shouldFilter:p8,filter:m8}}Ct.plugin(g8);Ct.version=MI;function FR(t){return t.reduce(function(e,n){return e[n]=!0,e},{})}var v8=FR(["_id","_rev","_access","_attachments","_deleted","_revisions","_revs_info","_conflicts","_deleted_conflicts","_local_seq","_rev_tree","_replication_id","_replication_state","_replication_state_time","_replication_state_reason","_replication_stats","_removed"]),y8=FR(["_access","_attachments","_replication_id","_replication_state","_replication_state_time","_replication_state_reason","_replication_stats"]);function xE(t){if(!/^\d+-/.test(t))return bt(yR);var e=t.indexOf("-"),n=t.substring(0,e),r=t.substring(e+1);return{prefix:parseInt(n,10),id:r}}function _8(t,e){for(var n=t.start-t.ids.length+1,r=t.ids,i=[r[0],e,[]],o=1,l=r.length;o<l;o++)i=[r[o],{status:"missing"},[i]];return[{pos:n,ids:i}]}function $R(t,e,n){n||(n={deterministic_revs:!0});var r,i,o,l={status:"available"};if(t._deleted&&(l.deleted=!0),e)if(t._id||(t._id=c_()),i=xR(t,n.deterministic_revs),t._rev){if(o=xE(t._rev),o.error)return o;t._rev_tree=[{pos:o.prefix,ids:[o.id,{status:"missing"},[[i,l,[]]]]}],r=o.prefix+1}else t._rev_tree=[{pos:1,ids:[i,l,[]]}],r=1;else if(t._revisions&&(t._rev_tree=_8(t._revisions,l),r=t._revisions.start,i=t._revisions.ids[0]),!t._rev_tree){if(o=xE(t._rev),o.error)return o;r=o.prefix,i=o.id,t._rev_tree=[{pos:r,ids:[i,l,[]]}]}_R(t._id),t._rev=r+"-"+i;var c={metadata:{},data:{}};for(var f in t)if(Object.prototype.hasOwnProperty.call(t,f)){var h=f[0]==="_";if(h&&!v8[f]){var g=bt(dE,f);throw g.message=dE.message+": "+f,g}else h&&!y8[f]?c.metadata[f.slice(1)]=t[f]:c.data[f]=t[f]}return c}function w8(t){try{return Qb(t)}catch{var e=bt(vR,"Attachment is not a valid base64 string");return{error:e}}}function S8(t,e,n){var r=w8(t.data);if(r.error)return n(r.error);t.length=r.length,e==="blob"?t.data=Jb(r,t.content_type):e==="base64"?t.data=kg(r):t.data=r,nC(r,function(i){t.digest="md5-"+i,n()})}function b8(t,e,n){nC(t.data,function(r){t.digest="md5-"+r,t.length=t.data.size||t.data.length||0,e==="binary"?bR(t.data,function(i){t.data=i,n()}):e==="base64"?tC(t.data,function(i){t.data=i,n()}):n()})}function C8(t,e,n){if(t.stub)return n();typeof t.data=="string"?S8(t,e,n):b8(t,e,n)}function x8(t,e,n){if(!t.length)return n();var r=0,i;t.forEach(function(l){var c=l.data&&l.data._attachments?Object.keys(l.data._attachments):[],f=0;if(!c.length)return o();function h(m){i=m,f++,f===c.length&&o()}for(var g in l.data._attachments)Object.prototype.hasOwnProperty.call(l.data._attachments,g)&&C8(l.data._attachments[g],e,h)});function o(){r++,t.length===r&&(i?n(i):n())}}function E8(t,e,n,r,i,o,l,c){if(gI(e.rev_tree,n.metadata.rev)&&!c)return r[i]=n,o();var f=e.winningRev||of(e),h="deleted"in e?e.deleted:cl(e,f),g="deleted"in n.metadata?n.metadata.deleted:cl(n.metadata),m=/^1-/.test(n.metadata.rev);if(h&&!g&&c&&m){var v=n.data;v._rev=f,v._id=n.metadata.id,n=$R(v,c)}var S=OR(e.rev_tree,n.metadata.rev_tree[0],t),b=c&&(h&&g&&S.conflicts!=="new_leaf"||!h&&S.conflicts!=="new_leaf"||h&&!g&&S.conflicts==="new_branch");if(b){var A=bt(xh);return r[i]=A,o()}var C=n.metadata.rev;n.metadata.rev_tree=S.tree,n.stemmedRevs=S.stemmedRevs||[],e.rev_map&&(n.metadata.rev_map=e.rev_map);var E=of(n.metadata),k=cl(n.metadata,E),T=h===k?0:h<k?-1:1,x;C===E?x=k:x=cl(n.metadata,C),l(n,E,k,x,!0,T,i,o)}function T8(t){return t.metadata.rev_tree[0].ids[1].status==="missing"}function O8(t,e,n,r,i,o,l,c,f){t=t||1e3;function h(A,C,E){var k=of(A.metadata),T=cl(A.metadata,k);if("was_delete"in c&&T)return o[C]=bt(Vo,"deleted"),E();var x=g&&T8(A);if(x){var w=bt(xh);return o[C]=w,E()}var R=T?0:1;l(A,k,T,T,!1,R,C,E)}var g=c.new_edits,m=new Ji,v=0,S=e.length;function b(){++v===S&&f&&f()}e.forEach(function(A,C){if(A._id&&Qc(A._id)){var E=A._deleted?"_removeLocal":"_putLocal";n[E](A,{ctx:i},function(T,x){o[C]=T||x,b()});return}var k=A.metadata.id;m.has(k)?(S--,m.get(k).push([A,C])):m.set(k,[[A,C]])}),m.forEach(function(A,C){var E=0;function k(){++E<A.length?T():b()}function T(){var x=A[E],w=x[0],R=x[1];if(r.has(C))E8(t,r.get(C),w,o,R,k,l,g);else{var I=OR([],w.metadata.rev_tree[0],t);w.metadata.rev_tree=I.tree,w.stemmedRevs=I.stemmedRevs||[],h(w,R,k)}}T()})}var A8=5,ar="document-store",Br="by-sequence",Wo="attach-store",Wc="attach-seq-store",Ei="meta-store",us="local-store",DS="detect-blob-support";function R8(t){try{return JSON.parse(t)}catch{return cR.parse(t)}}function k8(t){try{return JSON.stringify(t)}catch{return cR.stringify(t)}}function ds(t){return function(e){var n="unknown_error";e.target&&e.target.error&&(n=e.target.error.name||e.target.error.message),t(bt(Kb,n,e.type))}}function LS(t,e,n){return{data:k8(t),winningRev:e,deletedOrLocal:n?"1":"0",seq:t.seq,id:t.id}}function Gc(t){if(!t)return null;var e=R8(t.data);return e.winningRev=t.winningRev,e.deleted=t.deletedOrLocal==="1",e.seq=t.seq,e}function wy(t){if(!t)return t;var e=t._doc_id_rev.lastIndexOf(":");return t._id=t._doc_id_rev.substring(0,e-1),t._rev=t._doc_id_rev.substring(e+1),delete t._doc_id_rev,t}function jR(t,e,n,r){n?r(t?typeof t!="string"?t:eC(t,e):Zb([""],{type:e})):t?typeof t!="string"?SR(t,function(i){r(kg(i))}):r(t):r("")}function zR(t,e,n,r){var i=Object.keys(t._attachments||{});if(!i.length)return r&&r();var o=0;function l(){++o===i.length&&r&&r()}function c(f,h){var g=f._attachments[h],m=g.digest,v=n.objectStore(Wo).get(m);v.onsuccess=function(S){g.body=S.target.result.body,l()}}i.forEach(function(f){e.attachments&&e.include_docs?c(t,f):(t._attachments[f].stub=!0,l())})}function MS(t,e){return Promise.all(t.map(function(n){if(n.doc&&n.doc._attachments){var r=Object.keys(n.doc._attachments);return Promise.all(r.map(function(i){var o=n.doc._attachments[i];if("body"in o){var l=o.body,c=o.content_type;return new Promise(function(f){jR(l,c,e,function(h){n.doc._attachments[i]=rf(Rg(o,["digest","content_type"]),{data:h}),f()})})}}))}}))}function HR(t,e,n){var r=[],i=n.objectStore(Br),o=n.objectStore(Wo),l=n.objectStore(Wc),c=t.length;function f(){c--,c||h()}function h(){r.length&&r.forEach(function(g){var m=l.index("digestSeq").count(IDBKeyRange.bound(g+"::",g+"::",!1,!1));m.onsuccess=function(v){var S=v.target.result;S||o.delete(g)}})}t.forEach(function(g){var m=i.index("_doc_id_rev"),v=e+"::"+g;m.getKey(v).onsuccess=function(S){var b=S.target.result;if(typeof b!="number")return f();i.delete(b);var A=l.index("seq").openCursor(IDBKeyRange.only(b));A.onsuccess=function(C){var E=C.target.result;if(E){var k=E.value.digestSeq.split("::")[0];r.push(k),l.delete(E.primaryKey),E.continue()}else f()}}})}function _a(t,e,n){try{return{txn:t.transaction(e,n)}}catch(r){return{error:r}}}var Pm=new z4;function N8(t,e,n,r,i,o){for(var l=e.docs,c,f,h,g,m,v,S,b,A=0,C=l.length;A<C;A++){var E=l[A];E._id&&Qc(E._id)||(E=l[A]=$R(E,n.new_edits,t),E.error&&!S&&(S=E))}if(S)return o(S);var k=!1,T=0,x=new Array(l.length),w=new Ji,R=!1,I=r._meta.blobSupport?"blob":"base64";x8(l,I,function(B){if(B)return o(B);F()});function F(){var B=[ar,Br,Wo,us,Wc,Ei],Y=_a(i,B,"readwrite");if(Y.error)return o(Y.error);c=Y.txn,c.onabort=ds(o),c.ontimeout=ds(o),c.oncomplete=J,f=c.objectStore(ar),h=c.objectStore(Br),g=c.objectStore(Wo),m=c.objectStore(Wc),v=c.objectStore(Ei),v.get(Ei).onsuccess=function(ae){b=ae.target.result,K()},fe(function(ae){if(ae)return R=!0,o(ae);Z()})}function U(){k=!0,K()}function V(){O8(t.revs_limit,l,r,w,c,x,Q,n,U)}function K(){!b||!k||(b.docCount+=T,v.put(b))}function Z(){if(!l.length)return;var B=0;function Y(){++B===l.length&&V()}function ae(ee){var Ce=Gc(ee.target.result);Ce&&w.set(Ce.id,Ce),Y()}for(var le=0,ie=l.length;le<ie;le++){var q=l[le];if(q._id&&Qc(q._id)){Y();continue}var se=f.get(q.metadata.id);se.onsuccess=ae}}function J(){R||(Pm.notify(r._meta.name),o(null,x))}function oe(B,Y){var ae=g.get(B);ae.onsuccess=function(le){if(le.target.result)Y();else{var ie=bt(B4,"unknown stub attachment with digest "+B);ie.status=412,Y(ie)}}}function fe(B){var Y=[];if(l.forEach(function(q){q.data&&q.data._attachments&&Object.keys(q.data._attachments).forEach(function(se){var ee=q.data._attachments[se];ee.stub&&Y.push(ee.digest)})}),!Y.length)return B();var ae=0,le;function ie(){++ae===Y.length&&B(le)}Y.forEach(function(q){oe(q,function(se){se&&!le&&(le=se),ie()})})}function Q(B,Y,ae,le,ie,q,se,ee){B.metadata.winningRev=Y,B.metadata.deleted=ae;var Ce=B.data;Ce._id=B.metadata.id,Ce._rev=B.metadata.rev,le&&(Ce._deleted=!0);var xe=Ce._attachments&&Object.keys(Ce._attachments).length;if(xe)return z(B,Y,ae,ie,se,ee);T+=q,K(),re(B,Y,ae,ie,se,ee)}function re(B,Y,ae,le,ie,q){var se=B.data,ee=B.metadata;se._doc_id_rev=ee.id+"::"+ee.rev,delete se._id,delete se._rev;function Ce(qe){var Je=B.stemmedRevs||[];le&&r.auto_compaction&&(Je=Je.concat(uI(B.metadata))),Je&&Je.length&&HR(Je,B.metadata.id,c),ee.seq=qe.target.result;var ye=LS(ee,Y,ae),be=f.put(ye);be.onsuccess=Re}function xe(qe){qe.preventDefault(),qe.stopPropagation();var Je=h.index("_doc_id_rev"),ye=Je.getKey(se._doc_id_rev);ye.onsuccess=function(be){var ke=h.put(se,be.target.result);ke.onsuccess=Ce}}function Re(){x[ie]={ok:!0,id:ee.id,rev:ee.rev},w.set(B.metadata.id,B.metadata),W(B,ee.seq,q)}var Me=h.put(se);Me.onsuccess=Ce,Me.onerror=xe}function z(B,Y,ae,le,ie,q){var se=B.data,ee=0,Ce=Object.keys(se._attachments);function xe(){ee===Ce.length&&re(B,Y,ae,le,ie,q)}function Re(){ee++,xe()}Ce.forEach(function(Me){var qe=B.data._attachments[Me];if(qe.stub)ee++,xe();else{var Je=qe.data;delete qe.data,qe.revpos=parseInt(Y,10);var ye=qe.digest;$(ye,Je,Re)}})}function W(B,Y,ae){var le=0,ie=Object.keys(B.data._attachments||{});if(!ie.length)return ae();function q(){++le===ie.length&&ae()}function se(Ce){var xe=B.data._attachments[Ce].digest,Re=m.put({seq:Y,digestSeq:xe+"::"+Y});Re.onsuccess=q,Re.onerror=function(Me){Me.preventDefault(),Me.stopPropagation(),q()}}for(var ee=0;ee<ie.length;ee++)se(ie[ee])}function $(B,Y,ae){var le=g.count(B);le.onsuccess=function(ie){var q=ie.target.result;if(q)return ae();var se={digest:B,body:Y},ee=g.put(se);ee.onsuccess=ae}}}function qR(t,e,n,r,i){r===-1&&(r=1e3);var o=typeof t.getAll=="function"&&typeof t.getAllKeys=="function"&&r>1&&!n,l,c,f;function h(S){c=S.target.result,l&&i(l,c,f)}function g(S){l=S.target.result,c&&i(l,c,f)}function m(){if(!l.length)return i();var S=l[l.length-1],b;if(e&&e.upper)try{b=IDBKeyRange.bound(S,e.upper,!0,e.upperOpen)}catch(A){if(A.name==="DataError"&&A.code===0)return i()}else b=IDBKeyRange.lowerBound(S,!0);e=b,l=null,c=null,t.getAll(e,r).onsuccess=h,t.getAllKeys(e,r).onsuccess=g}function v(S){var b=S.target.result;if(!b)return i();i([b.key],[b.value],b)}o?(f={continue:m},t.getAll(e,r).onsuccess=h,t.getAllKeys(e,r).onsuccess=g):n?t.openCursor(e,"prev").onsuccess=v:t.openCursor(e).onsuccess=v}function P8(t,e,n){if(typeof t.getAll=="function"){t.getAll(e).onsuccess=n;return}var r=[];function i(o){var l=o.target.result;l?(r.push(l.value),l.continue()):n({target:{result:r}})}t.openCursor(e).onsuccess=i}function D8(t,e,n){var r=new Array(t.length),i=0;t.forEach(function(o,l){e.get(o).onsuccess=function(c){c.target.result?r[l]=c.target.result:r[l]={key:o,error:"not_found"},i++,i===t.length&&n(t,r,{})}})}function L8(t,e,n,r,i){try{if(t&&e)return i?IDBKeyRange.bound(e,t,!n,!1):IDBKeyRange.bound(t,e,!1,!n);if(t)return i?IDBKeyRange.upperBound(t):IDBKeyRange.lowerBound(t);if(e)return i?IDBKeyRange.lowerBound(e,!n):IDBKeyRange.upperBound(e,!n);if(r)return IDBKeyRange.only(r)}catch(o){return{error:o}}return null}function M8(t,e,n){var r="startkey"in t?t.startkey:!1,i="endkey"in t?t.endkey:!1,o="key"in t?t.key:!1,l="keys"in t?t.keys:!1,c=t.skip||0,f=typeof t.limit=="number"?t.limit:-1,h=t.inclusive_end!==!1,g,m;if(!l&&(g=L8(r,i,h,o,t.descending),m=g&&g.error,m&&!(m.name==="DataError"&&m.code===0)))return n(bt(Kb,m.name,m.message));var v=[ar,Br,Ei];t.attachments&&v.push(Wo);var S=_a(e,v,"readonly");if(S.error)return n(S.error);var b=S.txn;b.oncomplete=J,b.onabort=ds(n);var A=b.objectStore(ar),C=b.objectStore(Br),E=b.objectStore(Ei),k=C.index("_doc_id_rev"),T=[],x,w;E.get(Ei).onsuccess=function(oe){x=oe.target.result.docCount},t.update_seq&&R(C,function(oe){oe.target.result&&oe.target.result.length>0&&(w=oe.target.result[0])});function R(oe,fe){function Q(re){var z=re.target.result,W=void 0;return z&&z.key&&(W=z.key),fe({target:{result:[W]}})}oe.openCursor(null,"prev").onsuccess=Q}function I(oe,fe,Q){var re=oe.id+"::"+Q;k.get(re).onsuccess=function(W){if(fe.doc=wy(W.target.result)||{},t.conflicts){var $=iC(oe);$.length&&(fe.doc._conflicts=$)}zR(fe.doc,t,b)}}function F(oe,fe){var Q={id:fe.id,key:fe.id,value:{rev:oe}},re=fe.deleted;re?l&&(T.push(Q),Q.value.deleted=!0,Q.doc=null):c--<=0&&(T.push(Q),t.include_docs&&I(fe,Q,oe))}function U(oe){for(var fe=0,Q=oe.length;fe<Q&&T.length!==f;fe++){var re=oe[fe];if(re.error&&l){T.push(re);continue}var z=Gc(re),W=z.winningRev;F(W,z)}}function V(oe,fe,Q){Q&&(U(fe),T.length<f&&Q.continue())}function K(oe){var fe=oe.target.result;t.descending&&(fe=fe.reverse()),U(fe)}function Z(){var oe={total_rows:x,offset:t.skip,rows:T};t.update_seq&&w!==void 0&&(oe.update_seq=w),n(null,oe)}function J(){t.attachments?MS(T,t.binary).then(Z):Z()}if(!(m||f===0)){if(l)return D8(t.keys,A,V);if(f===-1)return P8(A,g,K);qR(A,g,t.descending,f+c,V)}}function I8(t){return new Promise(function(e){var n=Zb([""]),r=t.objectStore(DS).put(n,"key");r.onsuccess=function(){var i=navigator.userAgent.match(/Chrome\/(\d+)/),o=navigator.userAgent.match(/Edge\//);e(o||!i||parseInt(i[1],10)>=43)},r.onerror=t.onabort=function(i){i.preventDefault(),i.stopPropagation(),e(!1)}}).catch(function(){return!1})}function F8(t,e){var n=t.objectStore(ar).index("deletedOrLocal");n.count(IDBKeyRange.only("0")).onsuccess=function(r){e(r.target.result)}}var IS=!1,FS=[];function $8(t,e,n,r){try{t(e,n)}catch(i){r.emit("error",i)}}function EE(){IS||!FS.length||(IS=!0,FS.shift()())}function j8(t,e,n){FS.push(function(){t(function(o,l){$8(e,o,l,n),IS=!1,vs(function(){EE()})})}),EE()}function z8(t,e,n,r){if(t=wr(t),t.continuous){var i=n+":"+c_();return Pm.addListener(n,i,e,t),Pm.notify(n),{cancel:function(){Pm.removeListener(n,i)}}}var o=t.doc_ids&&new Ch(t.doc_ids);t.since=t.since||0;var l=t.since,c="limit"in t?t.limit:-1;c===0&&(c=1);var f=[],h=0,g=Xb(t),m=new Ji,v,S,b,A;function C(F,U,V){if(!V||!F.length)return;var K=new Array(F.length),Z=new Array(F.length);function J(Q,re){var z=t.processChange(re,Q,t);l=z.seq=Q.seq;var W=g(z);return typeof W=="object"?Promise.reject(W):W?(h++,t.return_docs&&f.push(z),t.attachments&&t.include_docs?new Promise(function($){zR(re,t,v,function(){MS([z],t.binary).then(function(){$(z)})})}):Promise.resolve(z)):Promise.resolve()}function oe(){for(var Q=[],re=0,z=K.length;re<z&&h!==c;re++){var W=K[re];if(W){var $=Z[re];Q.push(J($,W))}}Promise.all(Q).then(function(B){for(var Y=0,ae=B.length;Y<ae;Y++)B[Y]&&t.onChange(B[Y])}).catch(t.complete),h!==c&&V.continue()}var fe=0;U.forEach(function(Q,re){var z=wy(Q),W=F[re];k(z,W,function($,B){Z[re]=$,K[re]=B,++fe===F.length&&oe()})})}function E(F,U,V,K){if(V.seq!==U)return K();if(V.winningRev===F._rev)return K(V,F);var Z=F._id+"::"+V.winningRev,J=A.get(Z);J.onsuccess=function(oe){K(V,wy(oe.target.result))}}function k(F,U,V){if(o&&!o.has(F._id))return V();var K=m.get(F._id);if(K)return E(F,U,K,V);b.get(F._id).onsuccess=function(Z){K=Gc(Z.target.result),m.set(F._id,K),E(F,U,K,V)}}function T(){t.complete(null,{results:f,last_seq:l})}function x(){!t.continuous&&t.attachments?MS(f).then(T):T()}var w=[ar,Br];t.attachments&&w.push(Wo);var R=_a(r,w,"readonly");if(R.error)return t.complete(R.error);v=R.txn,v.onabort=ds(t.complete),v.oncomplete=x,S=v.objectStore(Br),b=v.objectStore(ar),A=S.index("_doc_id_rev");var I=t.since&&!t.descending?IDBKeyRange.lowerBound(t.since,!0):null;qR(S,I,t.descending,c,C)}var nh=new Ji,e1,t1=new Ji;function UR(t,e){var n=this;j8(function(r){H8(n,t,r)},e,n.constructor)}function H8(t,e,n){var r=e.name,i=null,o=null;t._meta=null;function l(C){return function(E,k){E&&E instanceof Error&&!E.reason&&o&&(E.reason=o),C(E,k)}}function c(C){var E=C.createObjectStore(ar,{keyPath:"id"});C.createObjectStore(Br,{autoIncrement:!0}).createIndex("_doc_id_rev","_doc_id_rev",{unique:!0}),C.createObjectStore(Wo,{keyPath:"digest"}),C.createObjectStore(Ei,{keyPath:"id",autoIncrement:!1}),C.createObjectStore(DS),E.createIndex("deletedOrLocal","deletedOrLocal",{unique:!1}),C.createObjectStore(us,{keyPath:"_id"});var k=C.createObjectStore(Wc,{autoIncrement:!0});k.createIndex("seq","seq"),k.createIndex("digestSeq","digestSeq",{unique:!0})}function f(C,E){var k=C.objectStore(ar);k.createIndex("deletedOrLocal","deletedOrLocal",{unique:!1}),k.openCursor().onsuccess=function(T){var x=T.target.result;if(x){var w=x.value,R=cl(w);w.deletedOrLocal=R?"1":"0",k.put(w),x.continue()}else E()}}function h(C){C.createObjectStore(us,{keyPath:"_id"}).createIndex("_doc_id_rev","_doc_id_rev",{unique:!0})}function g(C,E){var k=C.objectStore(us),T=C.objectStore(ar),x=C.objectStore(Br),w=T.openCursor();w.onsuccess=function(R){var I=R.target.result;if(I){var F=I.value,U=F.id,V=Qc(U),K=of(F);if(V){var Z=U+"::"+K,J=U+"::",oe=U+"::~",fe=x.index("_doc_id_rev"),Q=IDBKeyRange.bound(J,oe,!1,!1),re=fe.openCursor(Q);re.onsuccess=function(z){if(re=z.target.result,!re)T.delete(I.primaryKey),I.continue();else{var W=re.value;W._doc_id_rev===Z&&k.put(W),x.delete(re.primaryKey),re.continue()}}}else I.continue()}else E&&E()}}function m(C){var E=C.createObjectStore(Wc,{autoIncrement:!0});E.createIndex("seq","seq"),E.createIndex("digestSeq","digestSeq",{unique:!0})}function v(C,E){var k=C.objectStore(Br),T=C.objectStore(Wo),x=C.objectStore(Wc),w=T.count();w.onsuccess=function(R){var I=R.target.result;if(!I)return E();k.openCursor().onsuccess=function(F){var U=F.target.result;if(!U)return E();for(var V=U.value,K=U.primaryKey,Z=Object.keys(V._attachments||{}),J={},oe=0;oe<Z.length;oe++){var fe=V._attachments[Z[oe]];J[fe.digest]=!0}var Q=Object.keys(J);for(oe=0;oe<Q.length;oe++){var re=Q[oe];x.put({seq:K,digestSeq:re+"::"+K})}U.continue()}}}function S(C){function E(w){return w.data?Gc(w):(w.deleted=w.deletedOrLocal==="1",w)}var k=C.objectStore(Br),T=C.objectStore(ar),x=T.openCursor();x.onsuccess=function(w){var R=w.target.result;if(!R)return;var I=E(R.value);I.winningRev=I.winningRev||of(I);function F(){var V=I.id+"::",K=I.id+"::",Z=k.index("_doc_id_rev").openCursor(IDBKeyRange.bound(V,K)),J=0;Z.onsuccess=function(oe){var fe=oe.target.result;if(!fe)return I.seq=J,U();var Q=fe.primaryKey;Q>J&&(J=Q),fe.continue()}}function U(){var V=LS(I,I.winningRev,I.deleted),K=T.put(V);K.onsuccess=function(){R.continue()}}if(I.seq)return U();F()}}t._remote=!1,t.type=function(){return"idb"},t._id=pR(function(C){C(null,t._meta.instanceId)}),t._bulkDocs=function(E,k,T){N8(e,E,k,t,i,l(T))},t._get=function(E,k,T){var x,w,R,I=k.ctx;if(!I){var F=_a(i,[ar,Br,Wo],"readonly");if(F.error)return T(F.error);I=F.txn}function U(){T(R,{doc:x,metadata:w,ctx:I})}I.objectStore(ar).get(E).onsuccess=function(V){if(w=Gc(V.target.result),!w)return R=bt(Vo,"missing"),U();var K;if(k.rev)K=k.latest?yI(k.rev,w):k.rev;else{K=w.winningRev;var Z=cl(w);if(Z)return R=bt(Vo,"deleted"),U()}var J=I.objectStore(Br),oe=w.id+"::"+K;J.index("_doc_id_rev").get(oe).onsuccess=function(fe){if(x=fe.target.result,x&&(x=wy(x)),!x)return R=bt(Vo,"missing"),U();U()}}},t._getAttachment=function(C,E,k,T,x){var w;if(T.ctx)w=T.ctx;else{var R=_a(i,[ar,Br,Wo],"readonly");if(R.error)return x(R.error);w=R.txn}var I=k.digest,F=k.content_type;w.objectStore(Wo).get(I).onsuccess=function(U){var V=U.target.result.body;jR(V,F,T.binary,function(K){x(null,K)})}},t._info=function(E){var k,T,x=_a(i,[Ei,Br],"readonly");if(x.error)return E(x.error);var w=x.txn;w.objectStore(Ei).get(Ei).onsuccess=function(R){T=R.target.result.docCount},w.objectStore(Br).openCursor(null,"prev").onsuccess=function(R){var I=R.target.result;k=I?I.key:0},w.oncomplete=function(){E(null,{doc_count:T,update_seq:k,idb_attachment_format:t._meta.blobSupport?"binary":"base64"})}},t._allDocs=function(E,k){M8(E,i,l(k))},t._changes=function(E){return z8(E,t,r,i)},t._close=function(C){i.close(),nh.delete(r),C()},t._getRevisionTree=function(C,E){var k=_a(i,[ar],"readonly");if(k.error)return E(k.error);var T=k.txn,x=T.objectStore(ar).get(C);x.onsuccess=function(w){var R=Gc(w.target.result);R?E(null,R.rev_tree):E(bt(Vo))}},t._doCompaction=function(C,E,k){var T=[ar,Br,Wo,Wc],x=_a(i,T,"readwrite");if(x.error)return k(x.error);var w=x.txn,R=w.objectStore(ar);R.get(C).onsuccess=function(I){var F=Gc(I.target.result);af(F.rev_tree,function(K,Z,J,oe,fe){var Q=Z+"-"+J;E.indexOf(Q)!==-1&&(fe.status="missing")}),HR(E,C,w);var U=F.winningRev,V=F.deleted;w.objectStore(ar).put(LS(F,U,V))},w.onabort=ds(k),w.oncomplete=function(){k()}},t._getLocal=function(C,E){var k=_a(i,[us],"readonly");if(k.error)return E(k.error);var T=k.txn,x=T.objectStore(us).get(C);x.onerror=ds(E),x.onsuccess=function(w){var R=w.target.result;R?(delete R._doc_id_rev,E(null,R)):E(bt(Vo))}},t._putLocal=function(C,E,k){typeof E=="function"&&(k=E,E={}),delete C._revisions;var T=C._rev,x=C._id;T?C._rev="0-"+(parseInt(T.split("-")[1],10)+1):C._rev="0-1";var w=E.ctx,R;if(!w){var I=_a(i,[us],"readwrite");if(I.error)return k(I.error);w=I.txn,w.onerror=ds(k),w.oncomplete=function(){R&&k(null,R)}}var F=w.objectStore(us),U;T?(U=F.get(x),U.onsuccess=function(V){var K=V.target.result;if(!K||K._rev!==T)k(bt(xh));else{var Z=F.put(C);Z.onsuccess=function(){R={ok:!0,id:C._id,rev:C._rev},E.ctx&&k(null,R)}}}):(U=F.add(C),U.onerror=function(V){k(bt(xh)),V.preventDefault(),V.stopPropagation()},U.onsuccess=function(){R={ok:!0,id:C._id,rev:C._rev},E.ctx&&k(null,R)})},t._removeLocal=function(C,E,k){typeof E=="function"&&(k=E,E={});var T=E.ctx;if(!T){var x=_a(i,[us],"readwrite");if(x.error)return k(x.error);T=x.txn,T.oncomplete=function(){w&&k(null,w)}}var w,R=C._id,I=T.objectStore(us),F=I.get(R);F.onerror=ds(k),F.onsuccess=function(U){var V=U.target.result;!V||V._rev!==C._rev?k(bt(Vo)):(I.delete(R),w={ok:!0,id:R,rev:"0-0"},E.ctx&&k(null,w))}},t._destroy=function(C,E){Pm.removeAllListeners(r);var k=t1.get(r);k&&k.result&&(k.result.close(),nh.delete(r));var T=indexedDB.deleteDatabase(r);T.onsuccess=function(){t1.delete(r),gy()&&r in localStorage&&delete localStorage[r],E(null,{ok:!0})},T.onerror=ds(E)};var b=nh.get(r);if(b)return i=b.idb,t._meta=b.global,vs(function(){n(null,t)});var A=indexedDB.open(r,A8);t1.set(r,A),A.onupgradeneeded=function(C){var E=C.target.result;if(C.oldVersion<1)return c(E);var k=C.currentTarget.transaction;C.oldVersion<3&&h(E),C.oldVersion<4&&m(E);var T=[f,g,v,S],x=C.oldVersion;function w(){var R=T[x-1];x++,R&&R(k,w)}w()},A.onsuccess=function(C){i=C.target.result,i.onversionchange=function(){i.close(),nh.delete(r)},i.onabort=function(U){Yo("error","Database has a global failure",U.target.error),o=U.target.error,i.close(),nh.delete(r)};var E=i.transaction([Ei,DS,ar],"readwrite"),k=!1,T,x,w,R;function I(){typeof w>"u"||!k||(t._meta={name:r,instanceId:R,blobSupport:w},nh.set(r,{idb:i,global:t._meta}),n(null,t))}function F(){if(!(typeof x>"u"||typeof T>"u")){var U=r+"_id";U in T?R=T[U]:T[U]=R=c_(),T.docCount=x,E.objectStore(Ei).put(T)}}E.objectStore(Ei).get(Ei).onsuccess=function(U){T=U.target.result||{id:Ei},F()},F8(E,function(U){x=U,F()}),e1||(e1=I8(E)),e1.then(function(U){w=U,I()}),E.oncomplete=function(){k=!0,I()},E.onabort=ds(n)},A.onerror=function(C){var E=C.target.error&&C.target.error.message;E?E.indexOf("stored database is a higher version")!==-1&&(E=new Error('This DB was created with the newer "indexeddb" adapter, but you are trying to open it with the older "idb" adapter')):E="Failed to open indexedDB, are you in private browsing mode?",Yo("error",E),n(bt(Kb,E))}}UR.valid=function(){try{return typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}};function q8(t){t.adapter("idb",UR,!0)}function U8(t,e){return new Promise(function(n,r){var i=0,o=0,l=0,c=t.length,f;function h(){i++,t[o++]().then(m,v)}function g(){++l===c?f?r(f):n():S()}function m(){i--,g()}function v(b){i--,f=f||b,g()}function S(){for(;i<e&&o<c;)h()}S()})}const V8=25,W8=50,x0=5e3,G8=1e4;let n1={};function r1(t){let e=t.doc||t.ok,n=e&&e._attachments;n&&Object.keys(n).forEach(function(r){let i=n[r];i.data=eC(i.data,i.content_type)})}function Ic(t){return/^_design/.test(t)?"_design/"+encodeURIComponent(t.slice(8)):/^_local/.test(t)?"_local/"+encodeURIComponent(t.slice(7)):encodeURIComponent(t)}function TE(t){return!t._attachments||!Object.keys(t._attachments)?Promise.resolve():Promise.all(Object.keys(t._attachments).map(function(e){let n=t._attachments[e];if(n.data&&typeof n.data!="string")return new Promise(function(r){tC(n.data,r)}).then(function(r){n.data=r})}))}function B8(t){if(!t.prefix)return!1;let e=wR(t.prefix).protocol;return e==="http"||e==="https"}function K8(t,e){if(B8(e)){let i=e.name.substr(e.prefix.length);t=e.prefix.replace(/\/?$/,"/")+encodeURIComponent(i)}let n=wR(t);(n.user||n.password)&&(n.auth={username:n.user,password:n.password});let r=n.path.replace(/(^\/|\/$)/g,"").split("/");return n.db=r.pop(),n.db.indexOf("%")===-1&&(n.db=encodeURIComponent(n.db)),n.path=r.join("/"),n}function yr(t,e){return J0(t,t.db+"/"+e)}function J0(t,e){let n=t.path?"/":"";return t.protocol+"://"+t.host+(t.port?":"+t.port:"")+"/"+t.path+n+e}function E0(t){return"?"+Object.keys(t).map(function(e){return e+"="+encodeURIComponent(t[e])}).join("&")}function X8(t){let e=typeof navigator<"u"&&navigator.userAgent?navigator.userAgent.toLowerCase():"",n=e.indexOf("msie")!==-1,r=e.indexOf("trident")!==-1,i=e.indexOf("edge")!==-1,o=!("method"in t)||t.method==="GET";return(n||r||i)&&o}function $S(t,e){let n=this,r=K8(t.name,t),i=yr(r,"");t=wr(t);const o=async function(m,v){if(v=v||{},v.headers=v.headers||new yh,v.credentials="include",t.auth||r.auth){let A=t.auth||r.auth,C=A.username+":"+A.password,E=kg(unescape(encodeURIComponent(C)));v.headers.set("Authorization","Basic "+E)}let S=t.headers||{};return Object.keys(S).forEach(function(A){v.headers.append(A,S[A])}),X8(v)&&(m+=(m.indexOf("?")===-1?"?":"&")+"_nonce="+Date.now()),await(t.fetch||NR)(m,v)};function l(m,v){return Bn(m,function(...S){h().then(function(){return v.apply(this,S)}).catch(function(b){S.pop()(b)})}).bind(n)}async function c(m,v){let S={};v=v||{},v.headers=v.headers||new yh,v.headers.get("Content-Type")||v.headers.set("Content-Type","application/json"),v.headers.get("Accept")||v.headers.set("Accept","application/json");const b=await o(m,v);S.ok=b.ok,S.status=b.status;const A=await b.json();if(S.data=A,!S.ok)throw S.data.status=S.status,Eh(S.data);return Array.isArray(S.data)&&(S.data=S.data.map(function(C){return C.error||C.missing?Eh(C):C})),S}let f;async function h(){return t.skip_setup?Promise.resolve():f||(f=c(i).catch(function(m){return m&&m.status&&m.status===404?(TS(404,"PouchDB is just detecting if the remote exists."),c(i,{method:"PUT"})):Promise.reject(m)}).catch(function(m){return m&&m.status&&m.status===412?!0:Promise.reject(m)}),f.catch(function(){f=null}),f)}vs(function(){e(null,n)}),n._remote=!0,n.type=function(){return"http"},n.id=l("id",async function(m){let v;try{v=await(await o(J0(r,""))).json()}catch{v={}}let S=v&&v.uuid?v.uuid+r.db:yr(r,"");m(null,S)}),n.compact=l("compact",async function(m,v){typeof m=="function"&&(v=m,m={}),m=wr(m),await c(yr(r,"_compact"),{method:"POST"});function S(){n.info(function(b,A){A&&!A.compact_running?v(null,{ok:!0}):setTimeout(S,m.interval||200)})}S()}),n.bulkGet=Bn("bulkGet",function(m,v){let S=this;async function b(k){let T={};m.revs&&(T.revs=!0),m.attachments&&(T.attachments=!0),m.latest&&(T.latest=!0);try{const x=await c(yr(r,"_bulk_get"+E0(T)),{method:"POST",body:JSON.stringify({docs:m.docs})});m.attachments&&m.binary&&x.data.results.forEach(function(w){w.docs.forEach(r1)}),k(null,x.data)}catch(x){k(x)}}function A(){let k=W8,T=Math.ceil(m.docs.length/k),x=0,w=new Array(T);function R(I){return function(F,U){w[I]=U.results,++x===T&&v(null,{results:vy(w)})}}for(let I=0;I<T;I++){let F=Rg(m,["revs","attachments","binary","latest"]);F.docs=m.docs.slice(I*k,Math.min(m.docs.length,(I+1)*k)),mR(S,F,R(I))}}let C=J0(r,""),E=n1[C];typeof E!="boolean"?b(function(k,T){k?(n1[C]=!1,TS(k.status,"PouchDB is just detecting if the remote supports the _bulk_get API."),A()):(n1[C]=!0,v(null,T))}):E?b(v):A()}),n._info=async function(m){try{await h();const S=await(await o(yr(r,""))).json();S.host=yr(r,""),m(null,S)}catch(v){m(v)}},n.fetch=async function(m,v){await h();const S=m.substring(0,1)==="/"?J0(r,m.substring(1)):yr(r,m);return o(S,v)},n.get=l("get",async function(m,v,S){typeof v=="function"&&(S=v,v={}),v=wr(v);let b={};v.revs&&(b.revs=!0),v.revs_info&&(b.revs_info=!0),v.latest&&(b.latest=!0),v.open_revs&&(v.open_revs!=="all"&&(v.open_revs=JSON.stringify(v.open_revs)),b.open_revs=v.open_revs),v.rev&&(b.rev=v.rev),v.conflicts&&(b.conflicts=v.conflicts),v.update_seq&&(b.update_seq=v.update_seq),m=Ic(m);function A(k){let T=k._attachments,x=T&&Object.keys(T);if(!T||!x.length)return;async function w(I){const F=T[I],U=Ic(k._id)+"/"+g(I)+"?rev="+k._rev,V=await o(yr(r,U));let K;"buffer"in V?K=await V.buffer():K=await V.blob();let Z;if(v.binary){let J=Object.getOwnPropertyDescriptor(K.__proto__,"type");(!J||J.set)&&(K.type=F.content_type),Z=K}else Z=await new Promise(function(J){tC(K,J)});delete F.stub,delete F.length,F.data=Z}let R=x.map(function(I){return function(){return w(I)}});return U8(R,5)}function C(k){return Array.isArray(k)?Promise.all(k.map(function(T){if(T.ok)return A(T.ok)})):A(k)}const E=yr(r,m+E0(b));try{const k=await c(E);v.attachments&&await C(k.data),S(null,k.data)}catch(k){k.docId=m,S(k)}}),n.remove=l("remove",async function(m,v,S,b){let A;typeof v=="string"?(A={_id:m,_rev:v},typeof S=="function"&&(b=S,S={})):(A=m,typeof v=="function"?(b=v,S={}):(b=S,S=v));const C=A._rev||S.rev,E=yr(r,Ic(A._id))+"?rev="+C;try{const k=await c(E,{method:"DELETE"});b(null,k.data)}catch(k){b(k)}});function g(m){return m.split("/").map(encodeURIComponent).join("/")}n.getAttachment=l("getAttachment",async function(m,v,S,b){typeof S=="function"&&(b=S,S={});const A=S.rev?"?rev="+S.rev:"",C=yr(r,Ic(m))+"/"+g(v)+A;let E;try{const T=await o(C,{method:"GET"});if(!T.ok)throw T;E=T.headers.get("content-type");let x;if(typeof process<"u"&&!process.browser&&typeof T.buffer=="function"?x=await T.buffer():x=await T.blob(),typeof process<"u"&&!process.browser){var k=Object.getOwnPropertyDescriptor(x.__proto__,"type");(!k||k.set)&&(x.type=E)}b(null,x)}catch(T){b(T)}}),n.removeAttachment=l("removeAttachment",async function(m,v,S,b){const A=yr(r,Ic(m)+"/"+g(v))+"?rev="+S;try{const C=await c(A,{method:"DELETE"});b(null,C.data)}catch(C){b(C)}}),n.putAttachment=l("putAttachment",async function(m,v,S,b,A,C){typeof A=="function"&&(C=A,A=b,b=S,S=null);const E=Ic(m)+"/"+g(v);let k=yr(r,E);if(S&&(k+="?rev="+S),typeof b=="string"){let T;try{T=Qb(b)}catch{return C(bt(vR,"Attachment is not a valid base64 string"))}b=T?Jb(T,A):""}try{const T=await c(k,{headers:new yh({"Content-Type":A}),method:"PUT",body:b});C(null,T.data)}catch(T){C(T)}}),n._bulkDocs=async function(m,v,S){m.new_edits=v.new_edits;try{await h(),await Promise.all(m.docs.map(TE));const b=await c(yr(r,"_bulk_docs"),{method:"POST",body:JSON.stringify(m)});S(null,b.data)}catch(b){S(b)}},n._put=async function(m,v,S){try{await h(),await TE(m);const b=await c(yr(r,Ic(m._id)),{method:"PUT",body:JSON.stringify(m)});S(null,b.data)}catch(b){b.docId=m&&m._id,S(b)}},n.allDocs=l("allDocs",async function(m,v){typeof m=="function"&&(v=m,m={}),m=wr(m);let S={},b,A="GET";m.conflicts&&(S.conflicts=!0),m.update_seq&&(S.update_seq=!0),m.descending&&(S.descending=!0),m.include_docs&&(S.include_docs=!0),m.attachments&&(S.attachments=!0),m.key&&(S.key=JSON.stringify(m.key)),m.start_key&&(m.startkey=m.start_key),m.startkey&&(S.startkey=JSON.stringify(m.startkey)),m.end_key&&(m.endkey=m.end_key),m.endkey&&(S.endkey=JSON.stringify(m.endkey)),typeof m.inclusive_end<"u"&&(S.inclusive_end=!!m.inclusive_end),typeof m.limit<"u"&&(S.limit=m.limit),typeof m.skip<"u"&&(S.skip=m.skip);let C=E0(S);typeof m.keys<"u"&&(A="POST",b={keys:m.keys});try{const E=await c(yr(r,"_all_docs"+C),{method:A,body:JSON.stringify(b)});m.include_docs&&m.attachments&&m.binary&&E.data.rows.forEach(r1),v(null,E.data)}catch(E){v(E)}}),n._changes=function(m){let v="batch_size"in m?m.batch_size:V8;m=wr(m),m.continuous&&!("heartbeat"in m)&&(m.heartbeat=G8);let S="timeout"in m?m.timeout:30*1e3;"timeout"in m&&m.timeout&&S-m.timeout<x0&&(S=m.timeout+x0),"heartbeat"in m&&m.heartbeat&&S-m.heartbeat<x0&&(S=m.heartbeat+x0);let b={};"timeout"in m&&m.timeout&&(b.timeout=m.timeout);let A=typeof m.limit<"u"?m.limit:!1,C=A;if(m.style&&(b.style=m.style),(m.include_docs||m.filter&&typeof m.filter=="function")&&(b.include_docs=!0),m.attachments&&(b.attachments=!0),m.continuous&&(b.feed="longpoll"),m.seq_interval&&(b.seq_interval=m.seq_interval),m.conflicts&&(b.conflicts=!0),m.descending&&(b.descending=!0),m.update_seq&&(b.update_seq=!0),"heartbeat"in m&&m.heartbeat&&(b.heartbeat=m.heartbeat),m.filter&&typeof m.filter=="string"&&(b.filter=m.filter),m.view&&typeof m.view=="string"&&(b.filter="_view",b.view=m.view),m.query_params&&typeof m.query_params=="object")for(let F in m.query_params)Object.prototype.hasOwnProperty.call(m.query_params,F)&&(b[F]=m.query_params[F]);let E="GET",k;m.doc_ids?(b.filter="_doc_ids",E="POST",k={doc_ids:m.doc_ids}):m.selector&&(b.filter="_selector",E="POST",k={selector:m.selector});let T=new PI,x;const w=async function(F,U){if(m.aborted)return;b.since=F,typeof b.since=="object"&&(b.since=JSON.stringify(b.since)),m.descending?A&&(b.limit=C):b.limit=!A||C>v?v:C;let V=yr(r,"_changes"+E0(b)),K={signal:T.signal,method:E,body:JSON.stringify(k)};if(x=F,!m.aborted)try{await h();const Z=await c(V,K);U(null,Z.data)}catch(Z){U(Z)}};let R={results:[]};const I=function(F,U){if(m.aborted)return;let V=0;if(U&&U.results){V=U.results.length,R.last_seq=U.last_seq;let Z=null,J=null;typeof U.pending=="number"&&(Z=U.pending),(typeof R.last_seq=="string"||typeof R.last_seq=="number")&&(J=R.last_seq),m.query_params,U.results=U.results.filter(function(oe){C--;let fe=Xb(m)(oe);return fe&&(m.include_docs&&m.attachments&&m.binary&&r1(oe),m.return_docs&&R.results.push(oe),m.onChange(oe,Z,J)),fe})}else if(F){m.aborted=!0,m.complete(F);return}U&&U.last_seq&&(x=U.last_seq);let K=A&&C<=0||U&&V<v||m.descending;m.continuous&&!(A&&C<=0)||!K?vs(function(){w(x,I)}):m.complete(null,R)};return w(m.since||0,I),{cancel:function(){m.aborted=!0,T.abort()}}},n.revsDiff=l("revsDiff",async function(m,v,S){typeof v=="function"&&(S=v,v={});try{const b=await c(yr(r,"_revs_diff"),{method:"POST",body:JSON.stringify(m)});S(null,b.data)}catch(b){S(b)}}),n._close=function(m){m()},n._destroy=async function(m,v){try{const S=await c(yr(r,""),{method:"DELETE"});v(null,S)}catch(S){S.status===404?v(null,{ok:!0}):v(S)}}}$S.valid=function(){return!0};function Y8(t){t.adapter("http",$S,!1),t.adapter("https",$S,!1)}class Hc extends Error{constructor(e){super(),this.status=400,this.name="query_parse_error",this.message=e,this.error=!0;try{Error.captureStackTrace(this,Hc)}catch{}}}class f_ extends Error{constructor(e){super(),this.status=404,this.name="not_found",this.message=e,this.error=!0;try{Error.captureStackTrace(this,f_)}catch{}}}class d_ extends Error{constructor(e){super(),this.status=500,this.name="invalid_value",this.message=e,this.error=!0;try{Error.captureStackTrace(this,d_)}catch{}}}function VR(t,e){return e&&t.then(function(n){vs(function(){e(null,n)})},function(n){vs(function(){e(n)})}),t}function Q8(t){return function(...e){var n=e.pop(),r=t.apply(this,e);return typeof n=="function"&&VR(r,n),r}}function Z8(t,e){return t.then(function(n){return e().then(function(){return n})},function(n){return e().then(function(){throw n})})}function i1(t,e){return function(){var n=arguments,r=this;return t.add(function(){return e.apply(r,n)})}}function OE(t){var e=new Ch(t),n=new Array(e.size),r=-1;return e.forEach(function(i){n[++r]=i}),n}function o1(t){var e=new Array(t.size),n=-1;return t.forEach(function(r,i){e[++n]=i}),e}function AE(t){var e="builtin "+t+" function requires map values to be numbers or number arrays";return new d_(e)}function jS(t){for(var e=0,n=0,r=t.length;n<r;n++){var i=t[n];if(typeof i!="number")if(Array.isArray(i)){e=typeof e=="number"?[e]:e;for(var o=0,l=i.length;o<l;o++){var c=i[o];if(typeof c!="number")throw AE("_sum");typeof e[o]>"u"?e.push(c):e[o]+=c}}else throw AE("_sum");else typeof e=="number"?e+=i:e[0]+=i}return e}var J8=Yo.bind(null,"log"),eF=Array.isArray,tF=JSON.parse;function WR(t,e){return Yb("return ("+t.replace(/;\s*$/,"")+");",{emit:e,sum:jS,log:J8,isArray:eF,toJSON:tF})}class zS{constructor(){this.promise=new Promise(function(e){e()})}add(e){return this.promise=this.promise.catch(function(){}).then(function(){return e()}),this.promise}finish(){return this.promise}}function RE(t){if(!t)return"undefined";switch(typeof t){case"function":return t.toString();case"string":return t.toString();default:return JSON.stringify(t)}}function nF(t,e){return RE(t)+RE(e)+"undefined"}async function kE(t,e,n,r,i,o){const l=nF(n,r);let c;if(!i&&(c=t._cachedViews=t._cachedViews||{},c[l]))return c[l];const f=t.info().then(async function(h){const g=h.db_name+"-mrview-"+(i?"temp":CR(l));function m(C){C.views=C.views||{};let E=e;E.indexOf("/")===-1&&(E=e+"/"+e);const k=C.views[E]=C.views[E]||{};if(!k[g])return k[g]=!0,C}await yy(t,"_local/"+o,m);const S=(await t.registerDependentDatabase(g)).db;S.auto_compaction=!0;const b={name:g,db:S,sourceDB:t,adapter:t.adapter,mapFun:n,reduceFun:r};let A;try{A=await b.db.get("_local/lastSeq")}catch(C){if(C.status!==404)throw C}return b.seq=A?A.seq:0,c&&b.db.once("destroyed",function(){delete c[l]}),b});return c&&(c[l]=f),f}var NE={},PE=new zS,rF=50;function a1(t){return t.indexOf("/")===-1?[t,t]:t.split("/")}function iF(t){return t.length===1&&/^1-/.test(t[0].rev)}function DE(t,e,n){try{t.emit("error",e)}catch{Yo("error",`The user's map/reduce function threw an uncaught error.
|
|
44
|
+
You can debug this error by doing:
|
|
45
|
+
myDatabase.on('error', function (err) { debugger; });
|
|
46
|
+
Please double-check your map/reduce function.`),Yo("error",e,n)}}function oF(t,e,n,r){function i(z,W,$){try{W($)}catch(B){DE(z,B,{fun:W,doc:$})}}function o(z,W,$,B,Y){try{return{output:W($,B,Y)}}catch(ae){return DE(z,ae,{fun:W,keys:$,values:B,rereduce:Y}),{error:ae}}}function l(z,W){const $=Yn(z.key,W.key);return $!==0?$:Yn(z.value,W.value)}function c(z,W,$){return $=$||0,typeof W=="number"?z.slice($,W+$):$>0?z.slice($):z}function f(z){const W=z.value;return W&&typeof W=="object"&&W._id||z.id}function h(z){z.rows.forEach(function(W){const $=W.doc&&W.doc._attachments;$&&Object.keys($).forEach(function(B){const Y=$[B];$[B].data=eC(Y.data,Y.content_type)})})}function g(z){return function(W){return z.include_docs&&z.attachments&&z.binary&&h(W),W}}function m(z,W,$,B){let Y=W[z];typeof Y<"u"&&(B&&(Y=encodeURIComponent(JSON.stringify(Y))),$.push(z+"="+Y))}function v(z){if(typeof z<"u"){const W=Number(z);return!isNaN(W)&&W===parseInt(z,10)?W:z}}function S(z){return z.group_level=v(z.group_level),z.limit=v(z.limit),z.skip=v(z.skip),z}function b(z){if(z){if(typeof z!="number")return new Hc(`Invalid value for integer: "${z}"`);if(z<0)return new Hc(`Invalid value for positive integer: "${z}"`)}}function A(z,W){const $=z.descending?"endkey":"startkey",B=z.descending?"startkey":"endkey";if(typeof z[$]<"u"&&typeof z[B]<"u"&&Yn(z[$],z[B])>0)throw new Hc("No rows can match your key range, reverse your start_key and end_key or set {descending : true}");if(W.reduce&&z.reduce!==!1){if(z.include_docs)throw new Hc("{include_docs:true} is invalid for reduce");if(z.keys&&z.keys.length>1&&!z.group&&!z.group_level)throw new Hc("Multi-key fetches for reduce views must use {group: true}")}["group_level","limit","skip"].forEach(function(Y){const ae=b(z[Y]);if(ae)throw ae})}async function C(z,W,$){let B=[],Y,ae="GET",le;if(m("reduce",$,B),m("include_docs",$,B),m("attachments",$,B),m("limit",$,B),m("descending",$,B),m("group",$,B),m("group_level",$,B),m("skip",$,B),m("stale",$,B),m("conflicts",$,B),m("startkey",$,B,!0),m("start_key",$,B,!0),m("endkey",$,B,!0),m("end_key",$,B,!0),m("inclusive_end",$,B),m("key",$,B,!0),m("update_seq",$,B),B=B.join("&"),B=B===""?"":"?"+B,typeof $.keys<"u"){const ee=`keys=${encodeURIComponent(JSON.stringify($.keys))}`;ee.length+B.length+1<=2e3?B+=(B[0]==="?"?"&":"?")+ee:(ae="POST",typeof W=="string"?Y={keys:$.keys}:W.keys=$.keys)}if(typeof W=="string"){const se=a1(W),ee=await z.fetch("_design/"+se[0]+"/_view/"+se[1]+B,{headers:new yh({"Content-Type":"application/json"}),method:ae,body:JSON.stringify(Y)});le=ee.ok;const Ce=await ee.json();if(!le)throw Ce.status=ee.status,Eh(Ce);return Ce.rows.forEach(function(xe){if(xe.value&&xe.value.error&&xe.value.error==="builtin_reduce_error")throw new Error(xe.reason)}),new Promise(function(xe){xe(Ce)}).then(g($))}Y=Y||{},Object.keys(W).forEach(function(se){Array.isArray(W[se])?Y[se]=W[se]:Y[se]=W[se].toString()});const ie=await z.fetch("_temp_view"+B,{headers:new yh({"Content-Type":"application/json"}),method:"POST",body:JSON.stringify(Y)});le=ie.ok;const q=await ie.json();if(!le)throw q.status=ie.status,Eh(q);return new Promise(function(se){se(q)}).then(g($))}function E(z,W,$){return new Promise(function(B,Y){z._query(W,$,function(ae,le){if(ae)return Y(ae);B(le)})})}function k(z){return new Promise(function(W,$){z._viewCleanup(function(B,Y){if(B)return $(B);W(Y)})})}function T(z){return function(W){if(W.status===404)return z;throw W}}async function x(z,W,$){const B="_local/doc_"+z,Y={_id:B,keys:[]},ae=$.get(z),le=ae[0],ie=ae[1];function q(){return iF(ie)?Promise.resolve(Y):W.db.get(B).catch(T(Y))}function se(Re){return Re.keys.length?W.db.allDocs({keys:Re.keys,include_docs:!0}):Promise.resolve({rows:[]})}function ee(Re,Me){const qe=[],Je=new Ch;for(let be=0,ke=Me.rows.length;be<ke;be++){const Fe=Me.rows[be].doc;if(Fe&&(qe.push(Fe),Je.add(Fe._id),Fe._deleted=!le.has(Fe._id),!Fe._deleted)){const Ae=le.get(Fe._id);"value"in Ae&&(Fe.value=Ae.value)}}const ye=o1(le);return ye.forEach(function(be){if(!Je.has(be)){const ke={_id:be},Ee=le.get(be);"value"in Ee&&(ke.value=Ee.value),qe.push(ke)}}),Re.keys=OE(ye.concat(Re.keys)),qe.push(Re),qe}const Ce=await q(),xe=await se(Ce);return ee(Ce,xe)}function w(z){return z.sourceDB.get("_local/purges").then(function(W){const $=W.purgeSeq;return z.db.get("_local/purgeSeq").then(function(B){return B._rev}).catch(function(B){if(B.status!==404)throw B}).then(function(B){return z.db.put({_id:"_local/purgeSeq",_rev:B,purgeSeq:$})})}).catch(function(W){if(W.status!==404)throw W})}function R(z,W,$){var B="_local/lastSeq";return z.db.get(B).catch(T({_id:B,seq:0})).then(function(Y){var ae=o1(W);return Promise.all(ae.map(function(le){return x(le,z,W)})).then(function(le){var ie=vy(le);return Y.seq=$,ie.push(Y),z.db.bulkDocs({docs:ie})}).then(()=>w(z))})}function I(z){const W=typeof z=="string"?z:z.name;let $=NE[W];return $||($=NE[W]=new zS),$}async function F(z,W){return i1(I(z),function(){return U(z,W)})()}async function U(z,W){let $,B,Y;function ae(be,ke){const Ee={id:B._id,key:sf(be)};typeof ke<"u"&&ke!==null&&(Ee.value=sf(ke)),$.push(Ee)}const le=e(z.mapFun,ae);let ie=z.seq||0;function q(){return z.sourceDB.info().then(function(be){Y=z.sourceDB.activeTasks.add({name:"view_indexing",total_items:be.update_seq-ie})})}function se(be,ke){return function(){return R(z,be,ke)}}let ee=0;const Ce={view:z.name,indexed_docs:ee};z.sourceDB.emit("indexing",Ce);const xe=new zS;async function Re(){const be=await z.sourceDB.changes({return_docs:!0,conflicts:!0,include_docs:!0,style:"all_docs",since:ie,limit:W.changes_batch_size}),ke=await Me();return qe(be,ke)}function Me(){return z.db.get("_local/purgeSeq").then(function(be){return be.purgeSeq}).catch(function(be){if(be&&be.status!==404)throw be;return-1}).then(function(be){return z.sourceDB.get("_local/purges").then(function(ke){const Ee=ke.purges.filter(function(Ae,ze){return ze>be}).map(Ae=>Ae.docId),Fe=Ee.filter(function(Ae,ze){return Ee.indexOf(Ae)===ze});return Promise.all(Fe.map(function(Ae){return z.sourceDB.get(Ae).then(function(ze){return{docId:Ae,doc:ze}}).catch(function(ze){if(ze.status!==404)throw ze;return{docId:Ae}})}))}).catch(function(ke){if(ke&&ke.status!==404)throw ke;return[]})})}function qe(be,ke){var Ee=be.results;if(!Ee.length&&!ke.length)return;for(let ze of ke)if(Ee.findIndex(function(ct){return ct.id===ze.docId})<0){const ct={_id:ze.docId,doc:{_id:ze.docId,_deleted:1},changes:[]};ze.doc&&(ct.doc=ze.doc,ct.changes.push({rev:ze.doc._rev})),Ee.push(ct)}var Fe=Je(Ee);xe.add(se(Fe,ie)),ee=ee+Ee.length;const Ae={view:z.name,last_seq:be.last_seq,results_count:Ee.length,indexed_docs:ee};if(z.sourceDB.emit("indexing",Ae),z.sourceDB.activeTasks.update(Y,{completed_items:ee}),!(Ee.length<W.changes_batch_size))return Re()}function Je(be){const ke=new Ji;for(let Ee=0,Fe=be.length;Ee<Fe;Ee++){const Ae=be[Ee];if(Ae.doc._id[0]!=="_"){$=[],B=Ae.doc,B._deleted||i(z.sourceDB,le,B),$.sort(l);const ze=ye($);ke.set(Ae.doc._id,[ze,Ae.changes])}ie=Ae.seq}return ke}function ye(be){const ke=new Ji;let Ee;for(let Fe=0,Ae=be.length;Fe<Ae;Fe++){const ze=be[Fe],nt=[ze.key,ze.id];Fe>0&&Yn(ze.key,Ee)===0&&nt.push(Fe),ke.set(ya(nt),ze),Ee=ze.key}return ke}try{await q(),await Re(),await xe.finish(),z.seq=ie,z.sourceDB.activeTasks.remove(Y)}catch(be){z.sourceDB.activeTasks.remove(Y,be)}}function V(z,W,$){$.group_level===0&&delete $.group_level;const B=$.group||$.group_level,Y=n(z.reduceFun),ae=[],le=isNaN($.group_level)?Number.POSITIVE_INFINITY:$.group_level;W.forEach(function(ie){const q=ae[ae.length-1];let se=B?ie.key:null;if(B&&Array.isArray(se)&&(se=se.slice(0,le)),q&&Yn(q.groupKey,se)===0){q.keys.push([ie.key,ie.id]),q.values.push(ie.value);return}ae.push({keys:[[ie.key,ie.id]],values:[ie.value],groupKey:se})}),W=[];for(let ie=0,q=ae.length;ie<q;ie++){const se=ae[ie],ee=o(z.sourceDB,Y,se.keys,se.values,!1);if(ee.error&&ee.error instanceof d_)throw ee.error;W.push({value:ee.error?null:ee.output,key:se.groupKey})}return{rows:c(W,$.limit,$.skip)}}function K(z,W){return i1(I(z),function(){return Z(z,W)})()}async function Z(z,W){let $;const B=z.reduceFun&&W.reduce!==!1,Y=W.skip||0;typeof W.keys<"u"&&!W.keys.length&&(W.limit=0,delete W.keys);async function ae(ie){ie.include_docs=!0;const q=await z.db.allDocs(ie);return $=q.total_rows,q.rows.map(function(se){if("value"in se.doc&&typeof se.doc.value=="object"&&se.doc.value!==null){const Ce=Object.keys(se.doc.value).sort(),xe=["id","key","value"];if(!(Ce<xe||Ce>xe))return se.doc.value}const ee=YI(se.doc._id);return{key:ee[0],id:ee[1],value:"value"in se.doc?se.doc.value:null}})}async function le(ie){let q;if(B?q=V(z,ie,W):typeof W.keys>"u"?q={total_rows:$,offset:Y,rows:ie}:q={total_rows:$,offset:Y,rows:c(ie,W.limit,W.skip)},W.update_seq&&(q.update_seq=z.seq),W.include_docs){const ee=OE(ie.map(f)),Ce=await z.sourceDB.allDocs({keys:ee,include_docs:!0,conflicts:W.conflicts,attachments:W.attachments,binary:W.binary});var se=new Ji;return Ce.rows.forEach(function(xe){se.set(xe.id,xe.doc)}),ie.forEach(function(xe){var Re=f(xe),Me=se.get(Re);Me&&(xe.doc=Me)}),q}else return q}if(typeof W.keys<"u"){const q=W.keys.map(function(Ce){const xe={startkey:ya([Ce]),endkey:ya([Ce,{}])};return W.update_seq&&(xe.update_seq=!0),ae(xe)}),se=await Promise.all(q),ee=vy(se);return le(ee)}else{const ie={descending:W.descending};W.update_seq&&(ie.update_seq=!0);let q,se;if("start_key"in W&&(q=W.start_key),"startkey"in W&&(q=W.startkey),"end_key"in W&&(se=W.end_key),"endkey"in W&&(se=W.endkey),typeof q<"u"&&(ie.startkey=W.descending?ya([q,{}]):ya([q])),typeof se<"u"){let Ce=W.inclusive_end!==!1;W.descending&&(Ce=!Ce),ie.endkey=ya(Ce?[se,{}]:[se])}if(typeof W.key<"u"){const Ce=ya([W.key]),xe=ya([W.key,{}]);ie.descending?(ie.endkey=Ce,ie.startkey=xe):(ie.startkey=Ce,ie.endkey=xe)}B||(typeof W.limit=="number"&&(ie.limit=W.limit),ie.skip=Y);const ee=await ae(ie);return le(ee)}}async function J(z){return(await z.fetch("_view_cleanup",{headers:new yh({"Content-Type":"application/json"}),method:"POST"})).json()}async function oe(z){try{const W=await z.get("_local/"+t),$=new Ji;Object.keys(W.views).forEach(function(q){const se=a1(q),ee="_design/"+se[0],Ce=se[1];let xe=$.get(ee);xe||(xe=new Ch,$.set(ee,xe)),xe.add(Ce)});const B={keys:o1($),include_docs:!0},Y=await z.allDocs(B),ae={};Y.rows.forEach(function(q){const se=q.key.substring(8);$.get(q.key).forEach(function(ee){let Ce=se+"/"+ee;W.views[Ce]||(Ce=ee);const xe=Object.keys(W.views[Ce]),Re=q.doc&&q.doc.views&&q.doc.views[ee];xe.forEach(function(Me){ae[Me]=ae[Me]||Re})})});const ie=Object.keys(ae).filter(function(q){return!ae[q]}).map(function(q){return i1(I(q),function(){return new z.constructor(q,z.__opts).destroy()})()});return Promise.all(ie).then(function(){return{ok:!0}})}catch(W){if(W.status===404)return{ok:!0};throw W}}async function fe(z,W,$){if(typeof z._query=="function")return E(z,W,$);if(hs(z))return C(z,W,$);const B={changes_batch_size:z.__opts.view_update_changes_batch_size||rF};if(typeof W!="string")return A($,W),PE.add(async function(){const Y=await kE(z,"temp_view/temp_view",W.map,W.reduce,!0,t);return Z8(F(Y,B).then(function(){return K(Y,$)}),function(){return Y.db.destroy()})}),PE.finish();{const Y=W,ae=a1(Y),le=ae[0],ie=ae[1],q=await z.get("_design/"+le);if(W=q.views&&q.views[ie],!W)throw new f_(`ddoc ${q._id} has no view named ${ie}`);r(q,ie),A($,W);const se=await kE(z,Y,W.map,W.reduce,!1,t);return $.stale==="ok"||$.stale==="update_after"?($.stale==="update_after"&&vs(function(){F(se,B)}),K(se,$)):(await F(se,B),K(se,$))}}function Q(z,W,$){const B=this;typeof W=="function"&&($=W,W={}),W=W?S(W):{},typeof z=="function"&&(z={map:z});const Y=Promise.resolve().then(function(){return fe(B,z,W)});return VR(Y,$),Y}const re=Q8(function(){const z=this;return typeof z._viewCleanup=="function"?k(z):hs(z)?J(z):oe(z)});return{query:Q,viewCleanup:re}}var s1={_sum:function(t,e){return jS(e)},_count:function(t,e){return e.length},_stats:function(t,e){function n(r){for(var i=0,o=0,l=r.length;o<l;o++){var c=r[o];i+=c*c}return i}return{sum:jS(e),min:Math.min.apply(null,e),max:Math.max.apply(null,e),count:e.length,sumsqr:n(e)}}};function aF(t){if(/^_sum/.test(t))return s1._sum;if(/^_count/.test(t))return s1._count;if(/^_stats/.test(t))return s1._stats;if(/^_/.test(t))throw new Error(t+" is not a supported reduce function.")}function sF(t,e){if(typeof t=="function"&&t.length===2){var n=t;return function(r){return n(r,e)}}else return WR(t.toString(),e)}function lF(t){var e=t.toString(),n=aF(e);return n||WR(e)}function uF(t,e){var n=t.views&&t.views[e];if(typeof n.map!="string")throw new f_("ddoc "+t._id+" has no string view named "+e+", instead found object of type: "+typeof n.map)}var cF="mrviews",GR=oF(cF,sF,lF,uF);function fF(t,e,n){return GR.query.call(this,t,e,n)}function dF(t){return GR.viewCleanup.call(this,t)}var hF={query:fF,viewCleanup:dF};function pF(t,e,n){return!t._attachments||!t._attachments[n]||t._attachments[n].digest!==e._attachments[n].digest}function LE(t,e){var n=Object.keys(e._attachments);return Promise.all(n.map(function(r){return t.getAttachment(e._id,r,{rev:e._rev})}))}function mF(t,e,n){var r=hs(e)&&!hs(t),i=Object.keys(n._attachments);return r?t.get(n._id).then(function(o){return Promise.all(i.map(function(l){return pF(o,n,l)?e.getAttachment(n._id,l):t.getAttachment(o._id,l)}))}).catch(function(o){if(o.status!==404)throw o;return LE(e,n)}):LE(e,n)}function gF(t){var e=[];return Object.keys(t).forEach(function(n){var r=t[n].missing;r.forEach(function(i){e.push({id:n,rev:i})})}),{docs:e,revs:!0,latest:!0}}function vF(t,e,n,r){n=wr(n);var i=[],o=!0;function l(){var f=gF(n);if(f.docs.length)return t.bulkGet(f).then(function(h){if(r.cancelled)throw new Error("cancelled");return Promise.all(h.results.map(function(g){return Promise.all(g.docs.map(function(m){var v=m.ok;return m.error&&(o=!1),!v||!v._attachments?v:mF(e,t,v).then(function(S){var b=Object.keys(v._attachments);return S.forEach(function(A,C){var E=v._attachments[b[C]];delete E.stub,delete E.length,E.data=A}),v})}))})).then(function(g){i=i.concat(vy(g).filter(Boolean))})})}function c(){return{ok:o,docs:i}}return Promise.resolve().then(l).then(c)}var ME=1,IE="pouchdb",yF=5,cs=0;function HS(t,e,n,r,i){return t.get(e).catch(function(o){if(o.status===404)return(t.adapter==="http"||t.adapter==="https")&&TS(404,"PouchDB is just checking if a remote checkpoint exists."),{session_id:r,_id:e,history:[],replicator:IE,version:ME};throw o}).then(function(o){if(!i.cancelled&&o.last_seq!==n)return o.history=(o.history||[]).filter(function(l){return l.session_id!==r}),o.history.unshift({last_seq:n,session_id:r}),o.history=o.history.slice(0,yF),o.version=ME,o.replicator=IE,o.session_id=r,o.last_seq=n,t.put(o).catch(function(l){if(l.status===409)return HS(t,e,n,r,i);throw l})})}class FE{constructor(e,n,r,i,o){this.src=e,this.target=n,this.id=r,this.returnValue=i,this.opts=o||{}}writeCheckpoint(e,n){var r=this;return this.updateTarget(e,n).then(function(){return r.updateSource(e,n)})}updateTarget(e,n){return this.opts.writeTargetCheckpoint?HS(this.target,this.id,e,n,this.returnValue):Promise.resolve(!0)}updateSource(e,n){if(this.opts.writeSourceCheckpoint){var r=this;return HS(this.src,this.id,e,n,this.returnValue).catch(function(i){if(jE(i))return r.opts.writeSourceCheckpoint=!1,!0;throw i})}else return Promise.resolve(!0)}getCheckpoint(){var e=this;return e.opts&&e.opts.writeSourceCheckpoint&&!e.opts.writeTargetCheckpoint?e.src.get(e.id).then(function(n){return n.last_seq||cs}).catch(function(n){if(n.status!==404)throw n;return cs}):e.target.get(e.id).then(function(n){return e.opts&&e.opts.writeTargetCheckpoint&&!e.opts.writeSourceCheckpoint?n.last_seq||cs:e.src.get(e.id).then(function(r){if(n.version!==r.version)return cs;var i;return n.version?i=n.version.toString():i="undefined",i in $E?$E[i](n,r):cs},function(r){if(r.status===404&&n.last_seq)return e.src.put({_id:e.id,last_seq:cs}).then(function(){return cs},function(i){return jE(i)?(e.opts.writeSourceCheckpoint=!1,n.last_seq):cs});throw r})}).catch(function(n){if(n.status!==404)throw n;return cs})}}var $E={undefined:function(t,e){return Yn(t.last_seq,e.last_seq)===0?e.last_seq:0},1:function(t,e){return _F(e,t).last_seq}};function _F(t,e){return t.session_id===e.session_id?{last_seq:t.last_seq,history:t.history}:BR(t.history,e.history)}function BR(t,e){var n=t[0],r=t.slice(1),i=e[0],o=e.slice(1);if(!n||e.length===0)return{last_seq:cs,history:[]};var l=n.session_id;if(qS(l,e))return{last_seq:n.last_seq,history:t};var c=i.session_id;return qS(c,r)?{last_seq:i.last_seq,history:o}:BR(r,o)}function qS(t,e){var n=e[0],r=e.slice(1);return!t||e.length===0?!1:t===n.session_id?!0:qS(t,r)}function jE(t){return typeof t.status=="number"&&Math.floor(t.status/100)===4}function KR(t,e,n,r,i){return this instanceof FE?KR:new FE(t,e,n,r,i)}var zE=0;function wF(t,e,n,r){if(t.retry===!1){e.emit("error",n),e.removeAllListeners();return}if(typeof t.back_off_function!="function"&&(t.back_off_function=q4),e.emit("requestError",n),e.state==="active"||e.state==="pending"){e.emit("paused",n),e.state="stopped";var i=function(){t.current_back_off=zE},o=function(){e.removeListener("active",i)};e.once("paused",o),e.once("active",i)}t.current_back_off=t.current_back_off||zE,t.current_back_off=t.back_off_function(t.current_back_off),setTimeout(r,t.current_back_off)}function SF(t){return Object.keys(t).sort(Yn).reduce(function(e,n){return e[n]=t[n],e},{})}function bF(t,e,n){var r=n.doc_ids?n.doc_ids.sort(Yn):"",i=n.filter?n.filter.toString():"",o="",l="",c="";return n.selector&&(c=JSON.stringify(n.selector)),n.filter&&n.query_params&&(o=JSON.stringify(SF(n.query_params))),n.filter&&n.filter==="_view"&&(l=n.view.toString()),Promise.all([t.id(),e.id()]).then(function(f){var h=f[0]+f[1]+i+l+o+r+c;return new Promise(function(g){nC(h,g)})}).then(function(f){return f=f.replace(/\//g,".").replace(/\+/g,"_"),"_local/"+f})}function XR(t,e,n,r,i){var o=[],l,c={seq:0,changes:[],docs:[]},f=!1,h=!1,g=!1,m=0,v=0,S=n.continuous||n.live||!1,b=n.batch_size||100,A=n.batches_limit||10,C=n.style||"all_docs",E=!1,k=n.doc_ids,T=n.selector,x,w,R=[],I=c_(),F;i=i||{ok:!0,start_time:new Date().toISOString(),docs_read:0,docs_written:0,doc_write_failures:0,errors:[]};var U={};r.ready(t,e);function V(){return w?Promise.resolve():bF(t,e,n).then(function(q){x=q;var se={};n.checkpoint===!1?se={writeSourceCheckpoint:!1,writeTargetCheckpoint:!1}:n.checkpoint==="source"?se={writeSourceCheckpoint:!0,writeTargetCheckpoint:!1}:n.checkpoint==="target"?se={writeSourceCheckpoint:!1,writeTargetCheckpoint:!0}:se={writeSourceCheckpoint:!0,writeTargetCheckpoint:!0},w=new KR(t,e,x,r,se)})}function K(){if(R=[],l.docs.length!==0){var q=l.docs,se={timeout:n.timeout};return e.bulkDocs({docs:q,new_edits:!1},se).then(function(ee){if(r.cancelled)throw z(),new Error("cancelled");var Ce=Object.create(null);ee.forEach(function(Re){Re.error&&(Ce[Re.id]=Re)});var xe=Object.keys(Ce).length;i.doc_write_failures+=xe,i.docs_written+=q.length-xe,q.forEach(function(Re){var Me=Ce[Re._id];if(Me){i.errors.push(Me);var qe=(Me.name||"").toLowerCase();if(qe==="unauthorized"||qe==="forbidden")r.emit("denied",wr(Me));else throw Me}else R.push(Re)})},function(ee){throw i.doc_write_failures+=q.length,ee})}}function Z(){if(l.error)throw new Error("There was a problem getting docs.");i.last_seq=v=l.seq;var q=wr(i);return R.length&&(q.docs=R,typeof l.pending=="number"&&(q.pending=l.pending,delete l.pending),r.emit("change",q)),f=!0,t.info().then(function(se){var ee=t.activeTasks.get(F);if(!(!l||!ee)){var Ce=ee.completed_items||0,xe=parseInt(se.update_seq,10)-parseInt(m,10);t.activeTasks.update(F,{completed_items:Ce+l.changes.length,total_items:xe})}}),w.writeCheckpoint(l.seq,I).then(function(){if(r.emit("checkpoint",{checkpoint:l.seq}),f=!1,r.cancelled)throw z(),new Error("cancelled");l=void 0,Y()}).catch(function(se){throw ie(se),se})}function J(){var q={};return l.changes.forEach(function(se){r.emit("checkpoint",{revs_diff:se}),se.id!=="_user/"&&(q[se.id]=se.changes.map(function(ee){return ee.rev}))}),e.revsDiff(q).then(function(se){if(r.cancelled)throw z(),new Error("cancelled");l.diffs=se})}function oe(){return vF(t,e,l.diffs,r).then(function(q){l.error=!q.ok,q.docs.forEach(function(se){delete l.diffs[se._id],i.docs_read++,l.docs.push(se)})})}function fe(){if(!(r.cancelled||l)){if(o.length===0){Q(!0);return}l=o.shift(),r.emit("checkpoint",{start_next_batch:l.seq}),J().then(oe).then(K).then(Z).then(fe).catch(function(q){re("batch processing terminated with error",q)})}}function Q(q){if(c.changes.length===0){o.length===0&&!l&&((S&&U.live||h)&&(r.state="pending",r.emit("paused")),h&&z());return}(q||h||c.changes.length>=b)&&(o.push(c),c={seq:0,changes:[],docs:[]},(r.state==="pending"||r.state==="stopped")&&(r.state="active",r.emit("active")),fe())}function re(q,se){g||(se.message||(se.message=q),i.ok=!1,i.status="aborting",o=[],c={seq:0,changes:[],docs:[]},z(se))}function z(q){if(!g&&!(r.cancelled&&(i.status="cancelled",f)))if(i.status=i.status||"complete",i.end_time=new Date().toISOString(),i.last_seq=v,g=!0,t.activeTasks.remove(F,q),q){q=bt(q),q.result=i;var se=(q.name||"").toLowerCase();se==="unauthorized"||se==="forbidden"?(r.emit("error",q),r.removeAllListeners()):wF(n,r,q,function(){XR(t,e,n,r)})}else r.emit("complete",i),r.removeAllListeners()}function W(q,se,ee){if(r.cancelled)return z();typeof se=="number"&&(c.pending=se);var Ce=Xb(n)(q);if(!Ce){var xe=t.activeTasks.get(F);if(xe){var Re=xe.completed_items||0;t.activeTasks.update(F,{completed_items:++Re})}return}c.seq=q.seq||ee,c.changes.push(q),r.emit("checkpoint",{pending_batch:c.seq}),vs(function(){Q(o.length===0&&U.live)})}function $(q){if(E=!1,r.cancelled)return z();if(q.results.length>0)U.since=q.results[q.results.length-1].seq,Y(),Q(!0);else{var se=function(){S?(U.live=!0,Y()):h=!0,Q(!0)};!l&&q.results.length===0?(f=!0,w.writeCheckpoint(q.last_seq,I).then(function(){if(f=!1,i.last_seq=v=q.last_seq,r.cancelled)throw z(),new Error("cancelled");se()}).catch(ie)):se()}}function B(q){if(E=!1,r.cancelled)return z();re("changes rejected",q)}function Y(){if(!(!E&&!h&&o.length<A))return;E=!0;function q(){ee.cancel()}function se(){r.removeListener("cancel",q)}r._changes&&(r.removeListener("cancel",r._abortChanges),r._changes.cancel()),r.once("cancel",q);var ee=t.changes(U).on("change",W);ee.then(se,se),ee.then($).catch(B),n.retry&&(r._changes=ee,r._abortChanges=q)}function ae(q){return t.info().then(function(se){var ee=typeof n.since>"u"?parseInt(se.update_seq,10)-parseInt(q,10):parseInt(se.update_seq,10);return F=t.activeTasks.add({name:`${S?"continuous ":""}replication from ${se.db_name}`,total_items:ee}),q})}function le(){V().then(function(){if(r.cancelled){z();return}return w.getCheckpoint().then(ae).then(function(q){v=q,m=q,U={since:v,limit:b,batch_size:b,style:C,doc_ids:k,selector:T,return_docs:!0},n.filter&&(typeof n.filter!="string"?U.include_docs=!0:U.filter=n.filter),"heartbeat"in n&&(U.heartbeat=n.heartbeat),"timeout"in n&&(U.timeout=n.timeout),n.query_params&&(U.query_params=n.query_params),n.view&&(U.view=n.view),Y()})}).catch(function(q){re("getCheckpoint rejected with ",q)})}function ie(q){f=!1,re("writeCheckpoint completed with error",q)}if(r.cancelled){z();return}r._addedListeners||(r.once("cancel",z),typeof n.complete=="function"&&(r.once("error",n.complete),r.once("complete",function(q){n.complete(null,q)})),r._addedListeners=!0),typeof n.since>"u"?le():V().then(function(){return f=!0,w.writeCheckpoint(n.since,I)}).then(function(){if(f=!1,r.cancelled){z();return}v=n.since,le()}).catch(ie)}class CF extends dl{constructor(){super(),this.cancelled=!1,this.state="pending";const e=new Promise((n,r)=>{this.once("complete",n),this.once("error",r)});this.then=function(n,r){return e.then(n,r)},this.catch=function(n){return e.catch(n)},this.catch(function(){})}cancel(){this.cancelled=!0,this.state="cancelled",this.emit("cancel")}ready(e,n){if(this._readyCalled)return;this._readyCalled=!0;const r=()=>{this.cancel()};e.once("destroyed",r),n.once("destroyed",r);function i(){e.removeListener("destroyed",r),n.removeListener("destroyed",r)}this.once("complete",i),this.once("error",i)}}function Sy(t,e){var n=e.PouchConstructor;return typeof t=="string"?new n(t,e):t}function US(t,e,n,r){if(typeof n=="function"&&(r=n,n={}),typeof n>"u"&&(n={}),n.doc_ids&&!Array.isArray(n.doc_ids))throw bt(u_,"`doc_ids` filter parameter is not a list.");n.complete=r,n=wr(n),n.continuous=n.continuous||n.live,n.retry="retry"in n?n.retry:!1,n.PouchConstructor=n.PouchConstructor||this;var i=new CF(n),o=Sy(t,n),l=Sy(e,n);return XR(o,l,n,i),i}function xF(t,e,n,r){return typeof n=="function"&&(r=n,n={}),typeof n>"u"&&(n={}),n=wr(n),n.PouchConstructor=n.PouchConstructor||this,t=Sy(t,n),e=Sy(e,n),new EF(t,e,n,r)}class EF extends dl{constructor(e,n,r,i){super(),this.canceled=!1;const o=r.push?rf({},r,r.push):r,l=r.pull?rf({},r,r.pull):r;this.push=US(e,n,o),this.pull=US(n,e,l),this.pushPaused=!0,this.pullPaused=!0;const c=T=>{this.emit("change",{direction:"pull",change:T})},f=T=>{this.emit("change",{direction:"push",change:T})},h=T=>{this.emit("denied",{direction:"push",doc:T})},g=T=>{this.emit("denied",{direction:"pull",doc:T})},m=()=>{this.pushPaused=!0,this.pullPaused&&this.emit("paused")},v=()=>{this.pullPaused=!0,this.pushPaused&&this.emit("paused")},S=()=>{this.pushPaused=!1,this.pullPaused&&this.emit("active",{direction:"push"})},b=()=>{this.pullPaused=!1,this.pushPaused&&this.emit("active",{direction:"pull"})};let A={};const C=T=>(x,w)=>{(x==="change"&&(w===c||w===f)||x==="denied"&&(w===g||w===h)||x==="paused"&&(w===v||w===m)||x==="active"&&(w===b||w===S))&&(x in A||(A[x]={}),A[x][T]=!0,Object.keys(A[x]).length===2&&this.removeAllListeners(x))};r.live&&(this.push.on("complete",this.pull.cancel.bind(this.pull)),this.pull.on("complete",this.push.cancel.bind(this.push)));function E(T,x,w){T.listeners(x).indexOf(w)==-1&&T.on(x,w)}this.on("newListener",function(T){T==="change"?(E(this.pull,"change",c),E(this.push,"change",f)):T==="denied"?(E(this.pull,"denied",g),E(this.push,"denied",h)):T==="active"?(E(this.pull,"active",b),E(this.push,"active",S)):T==="paused"&&(E(this.pull,"paused",v),E(this.push,"paused",m))}),this.on("removeListener",function(T){T==="change"?(this.pull.removeListener("change",c),this.push.removeListener("change",f)):T==="denied"?(this.pull.removeListener("denied",g),this.push.removeListener("denied",h)):T==="active"?(this.pull.removeListener("active",b),this.push.removeListener("active",S)):T==="paused"&&(this.pull.removeListener("paused",v),this.push.removeListener("paused",m))}),this.pull.on("removeListener",C("pull")),this.push.on("removeListener",C("push"));const k=Promise.all([this.push,this.pull]).then(T=>{const x={push:T[0],pull:T[1]};return this.emit("complete",x),i&&i(null,x),this.removeAllListeners(),x},T=>{if(this.cancel(),i?i(T):this.emit("error",T),this.removeAllListeners(),i)throw T});this.then=function(T,x){return k.then(T,x)},this.catch=function(T){return k.catch(T)}}cancel(){this.canceled||(this.canceled=!0,this.push.cancel(),this.pull.cancel())}}function TF(t){t.replicate=US,t.sync=xF,Object.defineProperty(t.prototype,"replicate",{get:function(){var e=this;return typeof this.replicateMethods>"u"&&(this.replicateMethods={from:function(n,r,i){return e.constructor.replicate(n,e,r,i)},to:function(n,r,i){return e.constructor.replicate(e,n,r,i)}}),this.replicateMethods}}),t.prototype.sync=function(e,n,r){return this.constructor.sync(this,e,n,r)}}Ct.plugin(q8).plugin(Y8).plugin(hF).plugin(TF);function h_(t){return"$"+t}function YR(t){return t.substring(1)}function Tu(){this._store={}}Tu.prototype.get=function(t){var e=h_(t);return this._store[e]};Tu.prototype.set=function(t,e){var n=h_(t);return this._store[n]=e,!0};Tu.prototype.has=function(t){var e=h_(t);return e in this._store};Tu.prototype.keys=function(){return Object.keys(this._store).map(t=>YR(t))};Tu.prototype.delete=function(t){var e=h_(t),n=e in this._store;return delete this._store[e],n};Tu.prototype.forEach=function(t){for(var e=Object.keys(this._store),n=0,r=e.length;n<r;n++){var i=e[n],o=this._store[i];i=YR(i),t(o,i)}};Object.defineProperty(Tu.prototype,"size",{get:function(){return Object.keys(this._store).length}});function p_(t){if(this._store=new Tu,t&&Array.isArray(t))for(var e=0,n=t.length;e<n;e++)this.add(t[e])}p_.prototype.add=function(t){return this._store.set(t,!0)};p_.prototype.has=function(t){return this._store.has(t)};p_.prototype.forEach=function(t){this._store.forEach(function(e,n){t(n)})};Object.defineProperty(p_.prototype,"size",{get:function(){return this._store.size}});class An extends Error{constructor(e,n,r){super(),this.status=e,this.name=n,this.message=r,this.error=!0}toString(){return JSON.stringify({status:this.status,name:this.name,message:this.message,reason:this.reason})}}new An(401,"unauthorized","Name or password is incorrect.");new An(400,"bad_request","Missing JSON list of 'docs'");new An(404,"not_found","missing");new An(409,"conflict","Document update conflict");new An(400,"bad_request","_id field must contain a string");new An(412,"missing_id","_id is required for puts");new An(400,"bad_request","Only reserved document ids may start with underscore.");new An(412,"precondition_failed","Database not open");new An(500,"unknown_error","Database encountered an unknown error");new An(500,"badarg","Some query argument is invalid");new An(400,"invalid_request","Request was invalid");new An(400,"query_parse_error","Some query parameter is invalid");new An(500,"doc_validation","Bad special document member");new An(400,"bad_request","Something wrong with the request");new An(400,"bad_request","Document must be a JSON object");new An(404,"not_found","Database not found");new An(500,"indexed_db_went_bad","unknown");new An(500,"web_sql_went_bad","unknown");new An(500,"levelDB_went_went_bad","unknown");new An(403,"forbidden","Forbidden by design doc validate_doc_update function");new An(400,"bad_request","Invalid rev format");new An(412,"file_exists","The database could not be created, the file already exists.");new An(412,"missing_stub","A pre-existing attachment stub wasn't found");new An(413,"invalid_url","Provided URL is invalid");function OF(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer||typeof Blob<"u"&&t instanceof Blob}function AF(t){if(typeof t.slice=="function")return t.slice(0);var e=new ArrayBuffer(t.byteLength),n=new Uint8Array(e),r=new Uint8Array(t);return n.set(r),e}function RF(t){if(t instanceof ArrayBuffer)return AF(t);var e=t.size,n=t.type;return typeof t.slice=="function"?t.slice(0,e,n):t.webkitSlice(0,e,n)}var QR=Function.prototype.toString,kF=QR.call(Object);function NF(t){var e=Object.getPrototypeOf(t);if(e===null)return!0;var n=e.constructor;return typeof n=="function"&&n instanceof n&&QR.call(n)==kF}function VS(t){var e,n,r;if(!t||typeof t!="object")return t;if(Array.isArray(t)){for(e=[],n=0,r=t.length;n<r;n++)e[n]=VS(t[n]);return e}if(t instanceof Date&&isFinite(t))return t.toISOString();if(OF(t))return RF(t);if(!NF(t))return t;e={};for(n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=VS(t[n]);typeof i<"u"&&(e[n]=i)}return e}var HE;try{localStorage.setItem("_pouch_check_localstorage",1),HE=!!localStorage.getItem("_pouch_check_localstorage")}catch{HE=!1}var wm=function(t,e,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(t,n):i?i.value=n:e.set(t,n),n},Bt=function(t,e,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(t):r?r.value:e.get(t)},sh,Am,or,du,hu;class PF{constructor(e){sh.set(this,void 0),Am.set(this,void 0),or.set(this,null),du.set(this,new Map),hu.set(this,!1),wm(this,sh,e,"f"),wm(this,Am,()=>{this.unsubscribeAll()},"f"),e.once("destroyed",Bt(this,Am,"f"))}subscribeToDocs(e,n){var r;if(Bt(this,hu,"f"))return()=>{};Bt(this,or,"f")==null&&wm(this,or,DF(Bt(this,sh,"f")),"f");const i=Array.isArray(e)&&e.length>0;if(i)for(const l of e??[])if(Bt(this,or,"f").ids.has(l))(r=Bt(this,or,"f").ids.get(l))===null||r===void 0||r.add(n);else{const c=new Set;c.add(n),Bt(this,or,"f").ids.set(l,c)}else Bt(this,or,"f").all.add(n);let o=!1;return()=>{var l,c,f,h;if(!(o||Bt(this,hu,"f"))){if(o=!0,i)for(const g of e??[]){const m=(l=Bt(this,or,"f"))===null||l===void 0?void 0:l.ids.get(g);m?.delete(n),m?.size===0&&((c=Bt(this,or,"f"))===null||c===void 0||c.ids.delete(g))}else(f=Bt(this,or,"f"))===null||f===void 0||f.all.delete(n);((h=Bt(this,or,"f"))===null||h===void 0?void 0:h.all.size)===0&&Bt(this,or,"f").ids.size===0&&(Bt(this,or,"f").changesFeed.cancel(),wm(this,or,null,"f"))}}}subscribeToView(e,n){if(Bt(this,hu,"f"))return()=>{};let r;Bt(this,du,"f").has(e)?r=Bt(this,du,"f").get(e):(r=LF(Bt(this,sh,"f"),e),Bt(this,du,"f").set(e,r)),r.callbacks.add(n);let i=!1;return()=>{i||Bt(this,hu,"f")||(i=!0,r.callbacks.delete(n),r.callbacks.size===0&&(r.feed.cancel(),Bt(this,du,"f").delete(e)))}}unsubscribeAll(){if(!Bt(this,hu,"f")){wm(this,hu,!0,"f"),Bt(this,sh,"f").removeListener("destroyed",Bt(this,Am,"f")),Bt(this,or,"f")&&(Bt(this,or,"f").changesFeed.cancel(),Bt(this,or,"f").all.clear(),Bt(this,or,"f").ids.forEach(e=>{e.clear()}),Bt(this,or,"f").ids.clear());for(const e of Bt(this,du,"f").values())e.feed.cancel(),e.callbacks.clear();Bt(this,du,"f").clear()}}}sh=new WeakMap,Am=new WeakMap,or=new WeakMap,du=new WeakMap,hu=new WeakMap;function DF(t){let e=null;return e={changesFeed:t.changes({since:"now",live:!0}).on("change",r=>{var i;const o=((i=e?.all.size)!==null&&i!==void 0?i:0)>0,l=e?.ids.get(r.id);r.deleted?(o&&e&&T0(e.all,!0,r.id),l&&T0(l,!0,r.id)):t.get(r.id).then(c=>{o&&e&&T0(e.all,!1,r.id,c),l&&T0(l,!1,r.id,c)}).catch(console.error)}),all:new Set,ids:new Map},e}function T0(t,e,n,r){for(const i of t)try{const o=r?VS(r):void 0;i(e,n,o)}catch(o){console.error(o)}}function LF(t,e){let n=null;return n={feed:t.changes({since:"now",live:!0,filter:"_view",view:e}).on("change",i=>{var o;for(const l of(o=n?.callbacks)!==null&&o!==void 0?o:[])try{l(i.id)}catch(c){console.error(c)}}),callbacks:new Set},n}const WS=N.createContext({defaultKey:"",databases:{}});function MF(t){const{pouchdb:e,name:n}=t,{databases:r,default:i}=t;let o,l;if(r!=null&&i!=null)o=r,l=i.toString();else if(e!=null)l=n?.toString()||e.name,o={[l]:e};else throw new TypeError("databases argument must be pared with the default argument");const c=IF(o),f=N.useContext(WS).databases,h=N.useMemo(()=>({defaultKey:l,databases:Object.assign(Object.assign({},f),c)}),[c,l,f]);return je.createElement(WS.Provider,{value:h},t.children)}function IF(t){const[e,n]=N.useState(t),[r,i]=N.useState(null);if(r&&t===e)return r;const o={},l=new Set(Object.keys(r??{}));let c=!1;for(const[f,h]of Object.entries(t))r&&e[f]===h?(o[f]=r[f],l.delete(f)):(c=!0,o[f]={pouchdb:h,subscriptionManager:new PF(h)});if(c||l.size>0)n(t),i(o);else if(r)return r;if(r)for(const f of l)r[f].subscriptionManager.unsubscribeAll();return o}function FF(t){const{defaultKey:e,databases:n}=N.useContext(WS);if(e===""&&n[e]==null&&Object.keys(n).length===0)throw new Error("could not find PouchDB context value; please ensure the component is wrapped in a <Provider>");const r=t==="_default"?e:t??e;if(!(r in n))throw new Error(`could not find a PouchDB database with name of "${t}"`);return n[r]}function $F(t){const[e,n]=N.useReducer(jF,t,l=>(typeof l=="function"&&(l=l()),l||(l={}),Object.assign(Object.assign({},l),{error:null,state:"loading"}))),r=N.useMemo(()=>Object.assign(Object.assign({},e),{loading:e.state==="loading"}),[e]),i=N.useRef(e);i.current=e;const o=N.useCallback(l=>{const c=l(i.current);n({type:"loading_finished",payload:c})},[]);return[r,n,o]}function jF(t,e){switch(e.type){case"loading_started":return Object.assign(Object.assign({},t),{state:"loading"});case"loading_finished":return Object.assign(Object.assign({},e.payload),{error:null,state:"done"});case"loading_error":return Object.assign(Object.assign(Object.assign({},t),e.payload.setResult?e.payload.result||{}:{}),{state:"error",error:e.payload.error});default:return t}}var l1,qE;function zF(){return qE||(qE=1,l1=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(e)){if(r=e.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!t(e[i],n[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(o=Object.keys(e),r=o.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;i--!==0;){var l=o[i];if(!t(e[l],n[l]))return!1}return!0}return e!==e&&n!==n}),l1}var HF=zF();const qF=oo(HF);function UF(t){const e=N.useRef(t);return N.useMemo(()=>qF(e.current,t)?e.current:(e.current=t,t),[t])}function VF(t){const{pouchdb:e,subscriptionManager:n}=FF(t?.db),{include_docs:r,conflicts:i,attachments:o,binary:l,limit:c,skip:f,descending:h,update_seq:g}=t||{},{startkey:m,endkey:v,inclusive_end:S}=t||{},{key:b}=t||{},A=UF(t?.keys),[C,E,k]=$F(()=>({rows:[],total_rows:0,offset:0}));return N.useEffect(()=>{let T=!0,x=!1,w=!1;const R={include_docs:r,conflicts:i,attachments:o,binary:l,limit:c,skip:f,descending:h,update_seq:g,startkey:m,endkey:v,inclusive_end:S,key:b,keys:A},I=async()=>{if(x){w=!0;return}x=!0,w=!1,E({type:"loading_started"});try{const V=await e.allDocs(R);T&&E({type:"loading_finished",payload:V})}catch(V){T&&E({type:"loading_error",payload:{error:V,setResult:!1}})}finally{x=!1,w&&T&&I()}};I();let F=null;b!=null?F=[b]:A!=null&&(F=A);const U=n.subscribeToDocs(F,(V,K)=>{!T||!WF(K,m,v,S,h)||(V?k(Z=>{const J=Z.rows.filter(oe=>oe.id!==K);return Object.assign(Object.assign({},Z),{rows:J,total_rows:Z.total_rows-(Z.rows.length-J.length)})}):I())});return()=>{T=!1,U()}},[E,k,e,n,r,i,o,l,m,v,S,c,f,h,b,A,g]),C}function WF(t,e,n,r,i){return e&&(i&&t>e||!i&&t<e)?!1:n==null?!0:r?i?t>=n:t<=n:i?t>n:t<n}const yt=t=>typeof t=="string",Sm=()=>{let t,e;const n=new Promise((r,i)=>{t=r,e=i});return n.resolve=t,n.reject=e,n},UE=t=>t==null?"":""+t,GF=(t,e,n)=>{t.forEach(r=>{e[r]&&(n[r]=e[r])})},BF=/###/g,VE=t=>t&&t.indexOf("###")>-1?t.replace(BF,"."):t,WE=t=>!t||yt(t),Dm=(t,e,n)=>{const r=yt(e)?e.split("."):e;let i=0;for(;i<r.length-1;){if(WE(t))return{};const o=VE(r[i]);!t[o]&&n&&(t[o]=new n),Object.prototype.hasOwnProperty.call(t,o)?t=t[o]:t={},++i}return WE(t)?{}:{obj:t,k:VE(r[i])}},GE=(t,e,n)=>{const{obj:r,k:i}=Dm(t,e,Object);if(r!==void 0||e.length===1){r[i]=n;return}let o=e[e.length-1],l=e.slice(0,e.length-1),c=Dm(t,l,Object);for(;c.obj===void 0&&l.length;)o=`${l[l.length-1]}.${o}`,l=l.slice(0,l.length-1),c=Dm(t,l,Object),c?.obj&&typeof c.obj[`${c.k}.${o}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${o}`]=n},KF=(t,e,n,r)=>{const{obj:i,k:o}=Dm(t,e,Object);i[o]=i[o]||[],i[o].push(n)},by=(t,e)=>{const{obj:n,k:r}=Dm(t,e);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},XF=(t,e,n)=>{const r=by(t,n);return r!==void 0?r:by(e,n)},ZR=(t,e,n)=>{for(const r in e)r!=="__proto__"&&r!=="constructor"&&(r in t?yt(t[r])||t[r]instanceof String||yt(e[r])||e[r]instanceof String?n&&(t[r]=e[r]):ZR(t[r],e[r],n):t[r]=e[r]);return t},rh=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var YF={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const QF=t=>yt(t)?t.replace(/[&<>"'\/]/g,e=>YF[e]):t;class ZF{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const r=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,r),this.regExpQueue.push(e),r}}const JF=[" ",",","?","!",";"],e3=new ZF(20),t3=(t,e,n)=>{e=e||"",n=n||"";const r=JF.filter(l=>e.indexOf(l)<0&&n.indexOf(l)<0);if(r.length===0)return!0;const i=e3.getRegExp(`(${r.map(l=>l==="?"?"\\?":l).join("|")})`);let o=!i.test(t);if(!o){const l=t.indexOf(n);l>0&&!i.test(t.substring(0,l))&&(o=!0)}return o},GS=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return Object.prototype.hasOwnProperty.call(t,e)?t[e]:void 0;const r=e.split(n);let i=t;for(let o=0;o<r.length;){if(!i||typeof i!="object")return;let l,c="";for(let f=o;f<r.length;++f)if(f!==o&&(c+=n),c+=r[f],l=i[c],l!==void 0){if(["string","number","boolean"].indexOf(typeof l)>-1&&f<r.length-1)continue;o+=f-o+1;break}i=l}return i},Cy=t=>t?.replace("_","-"),n3={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console?.[t]?.apply?.(console,e)}};class xy{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||n3,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,r,i){return i&&!this.debug?null:(yt(e[0])&&(e[0]=`${r}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new xy(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new xy(this.logger,e)}}var ps=new xy;class m_{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(l=>{let[c,f]=l;for(let h=0;h<f;h++)c(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(l=>{let[c,f]=l;for(let h=0;h<f;h++)c.apply(c,[e,...r])})}}class BE extends m_{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;e.indexOf(".")>-1?c=e.split("."):(c=[e,n],r&&(Array.isArray(r)?c.push(...r):yt(r)&&o?c.push(...r.split(o)):c.push(r)));const f=by(this.data,c);return!f&&!n&&!r&&e.indexOf(".")>-1&&(e=c[0],n=c[1],r=c.slice(2).join(".")),f||!l||!yt(r)?f:GS(this.data?.[e]?.[n],r,o)}addResource(e,n,r,i){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let c=[e,n];r&&(c=c.concat(l?r.split(l):r)),e.indexOf(".")>-1&&(c=e.split("."),i=n,n=c[1]),this.addNamespaces(n),GE(this.data,c,i),o.silent||this.emit("added",e,n,r,i)}addResources(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const o in r)(yt(r[o])||Array.isArray(r[o]))&&this.addResource(e,n,o,r[o],{silent:!0});i.silent||this.emit("added",e,n,r)}addResourceBundle(e,n,r,i,o){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[e,n];e.indexOf(".")>-1&&(c=e.split("."),i=r,r=n,n=c[1]),this.addNamespaces(n);let f=by(this.data,c)||{};l.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?ZR(f,r,o):f={...f,...r},GE(this.data,c,f),l.silent||this.emit("added",e,n,r)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var JR={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,r,i){return t.forEach(o=>{e=this.processors[o]?.process(e,n,r,i)??e}),e}};const KE={},XE=t=>!yt(t)&&typeof t!="boolean"&&typeof t!="number";class Ey extends m_{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),GF(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ps.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};return e==null?!1:this.resolve(e,n)?.res!==void 0}extractFromKey(e,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let o=n.ns||this.options.defaultNS||[];const l=r&&e.indexOf(r)>-1,c=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!t3(e,r,i);if(l&&!c){const f=e.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:e,namespaces:yt(o)?[o]:o};const h=e.split(r);(r!==i||r===i&&this.options.ns.indexOf(h[0])>-1)&&(o=h.shift()),e=h.join(i)}return{key:e,namespaces:yt(o)?[o]:o}}translate(e,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:l,namespaces:c}=this.extractFromKey(e[e.length-1],n),f=c[c.length-1],h=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h?.toLowerCase()==="cimode"){if(g){const K=n.nsSeparator||this.options.nsSeparator;return i?{res:`${f}${K}${l}`,usedKey:l,exactUsedKey:l,usedLng:h,usedNS:f,usedParams:this.getUsedParamsDetails(n)}:`${f}${K}${l}`}return i?{res:l,usedKey:l,exactUsedKey:l,usedLng:h,usedNS:f,usedParams:this.getUsedParamsDetails(n)}:l}const m=this.resolve(e,n);let v=m?.res;const S=m?.usedKey||l,b=m?.exactUsedKey||l,A=["[object Number]","[object Function]","[object RegExp]"],C=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,E=!this.i18nFormat||this.i18nFormat.handleAsObject,k=n.count!==void 0&&!yt(n.count),T=Ey.hasDefaultValue(n),x=k?this.pluralResolver.getSuffix(h,n.count,n):"",w=n.ordinal&&k?this.pluralResolver.getSuffix(h,n.count,{ordinal:!1}):"",R=k&&!n.ordinal&&n.count===0,I=R&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${x}`]||n[`defaultValue${w}`]||n.defaultValue;let F=v;E&&!v&&T&&(F=I);const U=XE(F),V=Object.prototype.toString.apply(F);if(E&&F&&U&&A.indexOf(V)<0&&!(yt(C)&&Array.isArray(F))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const K=this.options.returnedObjectHandler?this.options.returnedObjectHandler(S,F,{...n,ns:c}):`key '${l} (${this.language})' returned an object instead of string.`;return i?(m.res=K,m.usedParams=this.getUsedParamsDetails(n),m):K}if(o){const K=Array.isArray(F),Z=K?[]:{},J=K?b:S;for(const oe in F)if(Object.prototype.hasOwnProperty.call(F,oe)){const fe=`${J}${o}${oe}`;T&&!v?Z[oe]=this.translate(fe,{...n,defaultValue:XE(I)?I[oe]:void 0,joinArrays:!1,ns:c}):Z[oe]=this.translate(fe,{...n,joinArrays:!1,ns:c}),Z[oe]===fe&&(Z[oe]=F[oe])}v=Z}}else if(E&&yt(C)&&Array.isArray(v))v=v.join(C),v&&(v=this.extendTranslation(v,e,n,r));else{let K=!1,Z=!1;!this.isValidLookup(v)&&T&&(K=!0,v=I),this.isValidLookup(v)||(Z=!0,v=l);const oe=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:v,fe=T&&I!==v&&this.options.updateMissing;if(Z||K||fe){if(this.logger.log(fe?"updateKey":"missingKey",h,f,l,fe?I:v),o){const W=this.resolve(l,{...n,keySeparator:!1});W&&W.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Q=[];const re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&re&&re[0])for(let W=0;W<re.length;W++)Q.push(re[W]);else this.options.saveMissingTo==="all"?Q=this.languageUtils.toResolveHierarchy(n.lng||this.language):Q.push(n.lng||this.language);const z=(W,$,B)=>{const Y=T&&B!==v?B:oe;this.options.missingKeyHandler?this.options.missingKeyHandler(W,f,$,Y,fe,n):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(W,f,$,Y,fe,n),this.emit("missingKey",W,f,$,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?Q.forEach(W=>{const $=this.pluralResolver.getSuffixes(W,n);R&&n[`defaultValue${this.options.pluralSeparator}zero`]&&$.indexOf(`${this.options.pluralSeparator}zero`)<0&&$.push(`${this.options.pluralSeparator}zero`),$.forEach(B=>{z([W],l+B,n[`defaultValue${B}`]||I)})}):z(Q,l,I))}v=this.extendTranslation(v,e,n,m,r),Z&&v===l&&this.options.appendNamespaceToMissingKey&&(v=`${f}:${l}`),(Z||K)&&this.options.parseMissingKeyHandler&&(v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${f}:${l}`:l,K?v:void 0))}return i?(m.res=v,m.usedParams=this.getUsedParamsDetails(n),m):v}extendTranslation(e,n,r,i,o){var l=this;if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const h=yt(e)&&(r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let g;if(h){const v=e.match(this.interpolator.nestingRegexp);g=v&&v.length}let m=r.replace&&!yt(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),e=this.interpolator.interpolate(e,m,r.lng||this.language||i.usedLng,r),h){const v=e.match(this.interpolator.nestingRegexp),S=v&&v.length;g<S&&(r.nest=!1)}!r.lng&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var v=arguments.length,S=new Array(v),b=0;b<v;b++)S[b]=arguments[b];return o?.[0]===S[0]&&!r.context?(l.logger.warn(`It seems you are nesting recursively key: ${S[0]} in key: ${n[0]}`),null):l.translate(...S,n)},r)),r.interpolation&&this.interpolator.reset()}const c=r.postProcess||this.options.postProcess,f=yt(c)?[c]:c;return e!=null&&f?.length&&r.applyPostProcessor!==!1&&(e=JR.handle(f,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,o,l,c;return yt(e)&&(e=[e]),e.forEach(f=>{if(this.isValidLookup(r))return;const h=this.extractFromKey(f,n),g=h.key;i=g;let m=h.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));const v=n.count!==void 0&&!yt(n.count),S=v&&!n.ordinal&&n.count===0,b=n.context!==void 0&&(yt(n.context)||typeof n.context=="number")&&n.context!=="",A=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(C=>{this.isValidLookup(r)||(c=C,!KE[`${A[0]}-${C}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(c)&&(KE[`${A[0]}-${C}`]=!0,this.logger.warn(`key "${i}" for languages "${A.join(", ")}" won't get resolved as namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),A.forEach(E=>{if(this.isValidLookup(r))return;l=E;const k=[g];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(k,g,E,C,n);else{let x;v&&(x=this.pluralResolver.getSuffix(E,n.count,n));const w=`${this.options.pluralSeparator}zero`,R=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(k.push(g+x),n.ordinal&&x.indexOf(R)===0&&k.push(g+x.replace(R,this.options.pluralSeparator)),S&&k.push(g+w)),b){const I=`${g}${this.options.contextSeparator}${n.context}`;k.push(I),v&&(k.push(I+x),n.ordinal&&x.indexOf(R)===0&&k.push(I+x.replace(R,this.options.pluralSeparator)),S&&k.push(I+w))}}let T;for(;T=k.pop();)this.isValidLookup(r)||(o=T,r=this.getResource(E,C,T,n))}))})}),{res:r,usedKey:i,exactUsedKey:o,usedLng:l,usedNS:c}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,n,r,i):this.resourceStore.getResource(e,n,r,i)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=e.replace&&!yt(e.replace);let i=r?e.replace:e;if(r&&typeof e.count<"u"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const o of n)delete i[o]}return i}static hasDefaultValue(e){const n="defaultValue";for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n===r.substring(0,n.length)&&e[r]!==void 0)return!0;return!1}}class YE{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ps.create("languageUtils")}getScriptPartFromCode(e){if(e=Cy(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Cy(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(yt(e)&&e.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(e)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let n;return e.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&e.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(o=>{if(o===i)return o;if(!(o.indexOf("-")<0&&i.indexOf("-")<0)&&(o.indexOf("-")>0&&i.indexOf("-")<0&&o.substring(0,o.indexOf("-"))===i||o.indexOf(i)===0&&i.length>1))return o})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),yt(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let r=e[n];return r||(r=e[this.getScriptPartFromCode(n)]),r||(r=e[this.formatLanguageCode(n)]),r||(r=e[this.getLanguagePartFromCode(n)]),r||(r=e.default),r||[]}toResolveHierarchy(e,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],e),i=[],o=l=>{l&&(this.isSupportedCode(l)?i.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return yt(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&o(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&o(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&o(this.getLanguagePartFromCode(e))):yt(e)&&o(this.formatLanguageCode(e)),r.forEach(l=>{i.indexOf(l)<0&&o(this.formatLanguageCode(l))}),i}}const QE={zero:0,one:1,two:2,few:3,many:4,other:5},ZE={select:t=>t===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class r3{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=ps.create("pluralResolver"),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=Cy(e==="dev"?"en":e),i=n.ordinal?"ordinal":"cardinal",o=JSON.stringify({cleanedCode:r,type:i});if(o in this.pluralRulesCache)return this.pluralRulesCache[o];let l;try{l=new Intl.PluralRules(r,{type:i})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),ZE;if(!e.match(/-|_/))return ZE;const f=this.languageUtils.getLanguagePartFromCode(e);l=this.getRule(f,n)}return this.pluralRulesCache[o]=l,l}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,r).map(i=>`${n}${i}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(e,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((i,o)=>QE[i]-QE[o]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(e,r);return i?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",n,r))}}const JE=function(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=XF(t,e,n);return!o&&i&&yt(n)&&(o=GS(t,n,r),o===void 0&&(o=GS(e,n,r))),o},u1=t=>t.replace(/\$/g,"$$$$");class i3{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ps.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:o,prefixEscaped:l,suffix:c,suffixEscaped:f,formatSeparator:h,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:v,nestingPrefixEscaped:S,nestingSuffix:b,nestingSuffixEscaped:A,nestingOptionsSeparator:C,maxReplaces:E,alwaysFormat:k}=e.interpolation;this.escape=n!==void 0?n:QF,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=o?rh(o):l||"{{",this.suffix=c?rh(c):f||"}}",this.formatSeparator=h||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=v?rh(v):S||rh("$t("),this.nestingSuffix=b?rh(b):A||rh(")"),this.nestingOptionsSeparator=C||",",this.maxReplaces=E||1e3,this.alwaysFormat=k!==void 0?k:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,r)=>n?.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,n,r,i){let o,l,c;const f=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},h=S=>{if(S.indexOf(this.formatSeparator)<0){const E=JE(n,f,S,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(E,void 0,r,{...i,...n,interpolationkey:S}):E}const b=S.split(this.formatSeparator),A=b.shift().trim(),C=b.join(this.formatSeparator).trim();return this.format(JE(n,f,A,this.options.keySeparator,this.options.ignoreJSONStructure),C,r,{...i,...n,interpolationkey:A})};this.resetRegExp();const g=i?.missingInterpolationHandler||this.options.missingInterpolationHandler,m=i?.interpolation?.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:S=>u1(S)},{regex:this.regexp,safeValue:S=>this.escapeValue?u1(this.escape(S)):u1(S)}].forEach(S=>{for(c=0;o=S.regex.exec(e);){const b=o[1].trim();if(l=h(b),l===void 0)if(typeof g=="function"){const C=g(e,o,i);l=yt(C)?C:""}else if(i&&Object.prototype.hasOwnProperty.call(i,b))l="";else if(m){l=o[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${e}`),l="";else!yt(l)&&!this.useRawValueToEscape&&(l=UE(l));const A=S.safeValue(l);if(e=e.replace(o[0],A),m?(S.regex.lastIndex+=l.length,S.regex.lastIndex-=o[0].length):S.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),e}nest(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,l;const c=(f,h)=>{const g=this.nestingOptionsSeparator;if(f.indexOf(g)<0)return f;const m=f.split(new RegExp(`${g}[ ]*{`));let v=`{${m[1]}`;f=m[0],v=this.interpolate(v,l);const S=v.match(/'/g),b=v.match(/"/g);((S?.length??0)%2===0&&!b||b.length%2!==0)&&(v=v.replace(/'/g,'"'));try{l=JSON.parse(v),h&&(l={...h,...l})}catch(A){return this.logger.warn(`failed parsing options string in nesting for key ${f}`,A),`${f}${g}${v}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,f};for(;i=this.nestingRegexp.exec(e);){let f=[];l={...r},l=l.replace&&!yt(l.replace)?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;let h=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const g=i[1].split(this.formatSeparator).map(m=>m.trim());i[1]=g.shift(),f=g,h=!0}if(o=n(c.call(this,i[1].trim(),l),l),o&&i[0]===e&&!yt(o))return o;yt(o)||(o=UE(o)),o||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${e}`),o=""),h&&(o=f.reduce((g,m)=>this.format(g,m,r.lng,{...r,interpolationkey:i[1].trim()}),o.trim())),e=e.replace(i[0],o),this.regexp.lastIndex=0}return e}}const o3=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const r=t.split("(");e=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);e==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(l=>{if(l){const[c,...f]=l.split(":"),h=f.join(":").trim().replace(/^'+|'+$/g,""),g=c.trim();n[g]||(n[g]=h),h==="false"&&(n[g]=!1),h==="true"&&(n[g]=!0),isNaN(h)||(n[g]=parseInt(h,10))}})}return{formatName:e,formatOptions:n}},ih=t=>{const e={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const l=r+JSON.stringify(o);let c=e[l];return c||(c=t(Cy(r),i),e[l]=c),c(n)}};class a3{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ps.create("formatter"),this.options=e,this.formats={number:ih((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return o=>i.format(o)}),currency:ih((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return o=>i.format(o)}),datetime:ih((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return o=>i.format(o)}),relativetime:ih((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return o=>i.format(o,r.range||"day")}),list:ih((n,r)=>{const i=new Intl.ListFormat(n,{...r});return o=>i.format(o)})},this.init(e)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=ih(n)}format(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=n.split(this.formatSeparator);if(o.length>1&&o[0].indexOf("(")>1&&o[0].indexOf(")")<0&&o.find(c=>c.indexOf(")")>-1)){const c=o.findIndex(f=>f.indexOf(")")>-1);o[0]=[o[0],...o.splice(1,c)].join(this.formatSeparator)}return o.reduce((c,f)=>{const{formatName:h,formatOptions:g}=o3(f);if(this.formats[h]){let m=c;try{const v=i?.formatParams?.[i.interpolationkey]||{},S=v.locale||v.lng||i.locale||i.lng||r;m=this.formats[h](c,S,{...g,...i,...v})}catch(v){this.logger.warn(v)}return m}else this.logger.warn(`there was no format function for ${h}`);return c},e)}}const s3=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class l3 extends m_{constructor(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=ps.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(r,i.backend,i)}queueLoad(e,n,r,i){const o={},l={},c={},f={};return e.forEach(h=>{let g=!0;n.forEach(m=>{const v=`${h}|${m}`;!r.reload&&this.store.hasResourceBundle(h,m)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?l[v]===void 0&&(l[v]=!0):(this.state[v]=1,g=!1,l[v]===void 0&&(l[v]=!0),o[v]===void 0&&(o[v]=!0),f[m]===void 0&&(f[m]=!0)))}),g||(c[h]=!0)}),(Object.keys(o).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(o),pending:Object.keys(l),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(f)}}loaded(e,n,r){const i=e.split("|"),o=i[0],l=i[1];n&&this.emit("failedLoading",o,l,n),!n&&r&&this.store.addResourceBundle(o,l,r,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&r&&(this.state[e]=0);const c={};this.queue.forEach(f=>{KF(f.loaded,[o],l),s3(f,e),n&&f.errors.push(n),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(h=>{c[h]||(c[h]={});const g=f.loaded[h];g.length&&g.forEach(m=>{c[h][m]===void 0&&(c[h][m]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(f=>!f.done)}read(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,l=arguments.length>5?arguments[5]:void 0;if(!e.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:r,tried:i,wait:o,callback:l});return}this.readingCalls++;const c=(h,g)=>{if(this.readingCalls--,this.waitingReads.length>0){const m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(h&&g&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,r,i+1,o*2,l)},o);return}l(h,g)},f=this.backend[r].bind(this.backend);if(f.length===2){try{const h=f(e,n);h&&typeof h.then=="function"?h.then(g=>c(null,g)).catch(c):c(null,h)}catch(h){c(h)}return}return f(e,n,c)}prepareLoading(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();yt(e)&&(e=this.languageUtils.toResolveHierarchy(e)),yt(n)&&(n=[n]);const o=this.queueLoad(e,n,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach(l=>{this.loadOne(l)})}load(e,n,r){this.prepareLoading(e,n,{},r)}reload(e,n,r){this.prepareLoading(e,n,{reload:!0},r)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(l,c)=>{l&&this.logger.warn(`${n}loading namespace ${o} for language ${i} failed`,l),!l&&c&&this.logger.log(`${n}loaded namespace ${o} for language ${i}`,c),this.loaded(e,l,c)})}saveMissing(e,n,r,i,o){let l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend?.create){const f={...l,isUpdate:o},h=this.backend.create.bind(this.backend);if(h.length<6)try{let g;h.length===5?g=h(e,n,r,i,f):g=h(e,n,r,i),g&&typeof g.then=="function"?g.then(m=>c(null,m)).catch(c):c(null,g)}catch(g){c(g)}else h(e,n,r,i,c,f)}!e||!e[0]||this.store.addResource(e[0],n,r,i)}}}const eT=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),yt(t[1])&&(e.defaultValue=t[1]),yt(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(r=>{e[r]=n[r]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),tT=t=>(yt(t.ns)&&(t.ns=[t.ns]),yt(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),yt(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs?.indexOf?.("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),typeof t.initImmediate=="boolean"&&(t.initAsync=t.initImmediate),t),O0=()=>{},u3=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class Ym extends m_{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=tT(e),this.services={},this.logger=ps,this.modules={external:[]},u3(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),n.defaultNS==null&&n.ns&&(yt(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=eT();this.options={...i,...this.options,...tT(n)},this.options.interpolation={...i.interpolation,...this.options.interpolation},n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const o=g=>g?typeof g=="function"?new g:g:null;if(!this.options.isClone){this.modules.logger?ps.init(o(this.modules.logger),this.options):ps.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:g=a3;const m=new YE(this.options);this.store=new BE(this.options.resources,this.options);const v=this.services;v.logger=ps,v.resourceStore=this.store,v.languageUtils=m,v.pluralResolver=new r3(m,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(v.formatter=o(g),v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new i3(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new l3(o(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",function(S){for(var b=arguments.length,A=new Array(b>1?b-1:0),C=1;C<b;C++)A[C-1]=arguments[C];e.emit(S,...A)}),this.modules.languageDetector&&(v.languageDetector=o(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=o(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new Ey(this.services,this.options),this.translator.on("*",function(S){for(var b=arguments.length,A=new Array(b>1?b-1:0),C=1;C<b;C++)A[C-1]=arguments[C];e.emit(S,...A)}),this.modules.external.forEach(S=>{S.init&&S.init(this)})}if(this.format=this.options.interpolation.format,r||(r=O0),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return e.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return e.store[g](...arguments),e}});const f=Sm(),h=()=>{const g=(m,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),f.resolve(v),r(m,v)};if(this.languages&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)};return this.options.resources||!this.options.initAsync?h():setTimeout(h,0),f}loadResources(e){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O0;const i=yt(e)?e:this.language;if(typeof e=="function"&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i?.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(h=>{h!=="cimode"&&o.indexOf(h)<0&&o.push(h)})};i?l(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(f=>l(f)),this.options.preload?.forEach?.(c=>l(c)),this.services.backendConnector.load(o,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(e,n,r){const i=Sm();return typeof e=="function"&&(r=e,e=void 0),typeof n=="function"&&(r=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),r||(r=O0),this.services.backendConnector.reload(e,n,o=>{i.resolve(),r(o)}),i}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&JR.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(e,n){var r=this;this.isLanguageChangingTo=e;const i=Sm();this.emit("languageChanging",e);const o=f=>{this.language=f,this.languages=this.services.languageUtils.toResolveHierarchy(f),this.resolvedLanguage=void 0,this.setResolvedLanguage(f)},l=(f,h)=>{h?(o(h),this.translator.changeLanguage(h),this.isLanguageChangingTo=void 0,this.emit("languageChanged",h),this.logger.log("languageChanged",h)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(f,function(){return r.t(...arguments)})},c=f=>{!e&&!f&&this.services.languageDetector&&(f=[]);const h=yt(f)?f:this.services.languageUtils.getBestMatchFromCodes(f);h&&(this.language||o(h),this.translator.language||this.translator.changeLanguage(h),this.services.languageDetector?.cacheUserLanguage?.(h)),this.loadResources(h,g=>{l(g,h)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(e),i}getFixedT(e,n,r){var i=this;const o=function(l,c){let f;if(typeof c!="object"){for(var h=arguments.length,g=new Array(h>2?h-2:0),m=2;m<h;m++)g[m-2]=arguments[m];f=i.options.overloadTranslationOptionHandler([l,c].concat(g))}else f={...c};f.lng=f.lng||o.lng,f.lngs=f.lngs||o.lngs,f.ns=f.ns||o.ns,f.keyPrefix!==""&&(f.keyPrefix=f.keyPrefix||r||o.keyPrefix);const v=i.options.keySeparator||".";let S;return f.keyPrefix&&Array.isArray(l)?S=l.map(b=>`${f.keyPrefix}${v}${b}`):S=f.keyPrefix?`${f.keyPrefix}${v}${l}`:l,i.t(S,f)};return yt(e)?o.lng=e:o.lngs=e,o.ns=n,o.keyPrefix=r,o}t(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.translator?.translate(...n)}exists(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.translator?.exists(...n)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,o=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const l=(c,f)=>{const h=this.services.backendConnector.state[`${c}|${f}`];return h===-1||h===0||h===2};if(n.precheck){const c=n.precheck(this,l);if(c!==void 0)return c}return!!(this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(r,e)&&(!i||l(o,e)))}loadNamespaces(e,n){const r=Sm();return this.options.ns?(yt(e)&&(e=[e]),e.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(e,n){const r=Sm();yt(e)&&(e=[e]);const i=this.options.preload||[],o=e.filter(l=>i.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return o.length?(this.options.preload=i.concat(o),this.loadResources(l=>{r.resolve(),n&&n(l)}),r):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services?.languageUtils||new YE(eT());return n.indexOf(r.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Ym(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O0;const r=e.forkResourceStore;r&&delete e.forkResourceStore;const i={...this.options,...e,isClone:!0},o=new Ym(i);if((e.debug!==void 0||e.prefix!==void 0)&&(o.logger=o.logger.clone(e)),["store","services","language"].forEach(c=>{o[c]=this[c]}),o.services={...this.services},o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},r){const c=Object.keys(this.store.data).reduce((f,h)=>(f[h]={...this.store.data[h]},Object.keys(f[h]).reduce((g,m)=>(g[m]={...f[h][m]},g),{})),{});o.store=new BE(c,i),o.services.resourceStore=o.store}return o.translator=new Ey(o.services,i),o.translator.on("*",function(c){for(var f=arguments.length,h=new Array(f>1?f-1:0),g=1;g<f;g++)h[g-1]=arguments[g];o.emit(c,...h)}),o.init(i,n),o.translator.options=i,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Sr=Ym.createInstance();Sr.createInstance=Ym.createInstance;Sr.createInstance;Sr.dir;Sr.init;Sr.loadResources;Sr.reloadResources;Sr.use;Sr.changeLanguage;Sr.getFixedT;Sr.t;Sr.exists;Sr.setDefaultNamespace;Sr.hasLoadedNamespace;Sr.loadNamespaces;Sr.loadLanguages;function BS(t){"@babel/helpers - typeof";return BS=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},BS(t)}function e2(){return typeof XMLHttpRequest=="function"||(typeof XMLHttpRequest>"u"?"undefined":BS(XMLHttpRequest))==="object"}function c3(t){return!!t&&typeof t.then=="function"}function f3(t){return c3(t)?t:Promise.resolve(t)}const d3="modulepreload",h3=function(t){return"/"+t},nT={},KS=function(e,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=l?.nonce||l?.getAttribute("nonce");i=Promise.allSettled(n.map(f=>{if(f=h3(f),f in nT)return;nT[f]=!0;const h=f.endsWith(".css"),g=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${g}`))return;const m=document.createElement("link");if(m.rel=h?"stylesheet":d3,h||(m.as="script"),m.crossOrigin="",m.href=f,c&&m.setAttribute("nonce",c),document.head.appendChild(m),h)return new Promise((v,S)=>{m.addEventListener("load",v),m.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return i.then(l=>{for(const c of l||[])c.status==="rejected"&&o(c.reason);return e().catch(o)})};var di={};function rT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function iT(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?rT(Object(n),!0).forEach(function(r){p3(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rT(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function p3(t,e,n){return(e=m3(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m3(t){var e=g3(t,"string");return lf(e)=="symbol"?e:e+""}function g3(t,e){if(lf(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(lf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function lf(t){"@babel/helpers - typeof";return lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lf(t)}var bu=typeof fetch=="function"?fetch:void 0;typeof di<"u"&&di.fetch?bu=di.fetch:typeof window<"u"&&window.fetch&&(bu=window.fetch);var Qm;e2()&&(typeof di<"u"&&di.XMLHttpRequest?Qm=di.XMLHttpRequest:typeof window<"u"&&window.XMLHttpRequest&&(Qm=window.XMLHttpRequest));var Ty;typeof ActiveXObject=="function"&&(typeof di<"u"&&di.ActiveXObject?Ty=di.ActiveXObject:typeof window<"u"&&window.ActiveXObject&&(Ty=window.ActiveXObject));typeof bu!="function"&&(bu=void 0);if(!bu&&!Qm&&!Ty)try{KS(()=>import("./browser-ponyfill-CccdstaD.js").then(t=>t.b),[]).then(function(t){bu=t.default}).catch(function(){})}catch{}var XS=function(e,n){if(n&&lf(n)==="object"){var r="";for(var i in n)r+="&"+encodeURIComponent(i)+"="+encodeURIComponent(n[i]);if(!r)return e;e=e+(e.indexOf("?")!==-1?"&":"?")+r.slice(1)}return e},oT=function(e,n,r,i){var o=function(f){if(!f.ok)return r(f.statusText||"Error",{status:f.status});f.text().then(function(h){r(null,{status:f.status,data:h})}).catch(r)};if(i){var l=i(e,n);if(l instanceof Promise){l.then(o).catch(r);return}}typeof fetch=="function"?fetch(e,n).then(o).catch(r):bu(e,n).then(o).catch(r)},aT=!1,v3=function(e,n,r,i){e.queryStringParams&&(n=XS(n,e.queryStringParams));var o=iT({},typeof e.customHeaders=="function"?e.customHeaders():e.customHeaders);typeof window>"u"&&typeof di<"u"&&typeof di.process<"u"&&di.process.versions&&di.process.versions.node&&(o["User-Agent"]="i18next-http-backend (node/".concat(di.process.version,"; ").concat(di.process.platform," ").concat(di.process.arch,")")),r&&(o["Content-Type"]="application/json");var l=typeof e.requestOptions=="function"?e.requestOptions(r):e.requestOptions,c=iT({method:r?"POST":"GET",body:r?e.stringify(r):void 0,headers:o},aT?{}:l),f=typeof e.alternateFetch=="function"&&e.alternateFetch.length>=1?e.alternateFetch:void 0;try{oT(n,c,i,f)}catch(h){if(!l||Object.keys(l).length===0||!h.message||h.message.indexOf("not implemented")<0)return i(h);try{Object.keys(l).forEach(function(g){delete c[g]}),oT(n,c,i,f),aT=!0}catch(g){i(g)}}},y3=function(e,n,r,i){r&&lf(r)==="object"&&(r=XS("",r).slice(1)),e.queryStringParams&&(n=XS(n,e.queryStringParams));try{var o=Qm?new Qm:new Ty("MSXML2.XMLHTTP.3.0");o.open(r?"POST":"GET",n,1),e.crossDomain||o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.withCredentials=!!e.withCredentials,r&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.overrideMimeType&&o.overrideMimeType("application/json");var l=e.customHeaders;if(l=typeof l=="function"?l():l,l)for(var c in l)o.setRequestHeader(c,l[c]);o.onreadystatechange=function(){o.readyState>3&&i(o.status>=400?o.statusText:null,{status:o.status,data:o.responseText})},o.send(r)}catch(f){console&&console.log(f)}},_3=function(e,n,r,i){if(typeof r=="function"&&(i=r,r=void 0),i=i||function(){},bu&&n.indexOf("file:")!==0)return v3(e,n,r,i);if(e2()||typeof ActiveXObject=="function")return y3(e,n,r,i);i(new Error("No fetch and no xhr implementation found!"))};function Th(t){"@babel/helpers - typeof";return Th=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Th(t)}function sT(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function c1(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?sT(Object(n),!0).forEach(function(r){t2(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sT(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function w3(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,n2(r.key),r)}}function b3(t,e,n){return e&&S3(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function t2(t,e,n){return(e=n2(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n2(t){var e=C3(t,"string");return Th(e)=="symbol"?e:e+""}function C3(t,e){if(Th(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(Th(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}var x3=function(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:function(n){return JSON.parse(n)},stringify:JSON.stringify,parsePayload:function(n,r,i){return t2({},r,i||"")},parseLoadPayload:function(n,r){},request:_3,reloadInterval:typeof window<"u"?!1:60*60*1e3,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}}},YS=function(){function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};w3(this,t),this.services=e,this.options=n,this.allOptions=r,this.type="backend",this.init(e,n,r)}return b3(t,[{key:"init",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(this.services=n,this.options=c1(c1(c1({},x3()),this.options||{}),i),this.allOptions=o,this.services&&this.options.reloadInterval){var l=setInterval(function(){return r.reload()},this.options.reloadInterval);Th(l)==="object"&&typeof l.unref=="function"&&l.unref()}}},{key:"readMulti",value:function(n,r,i){this._readAny(n,n,r,r,i)}},{key:"read",value:function(n,r,i){this._readAny([n],n,[r],r,i)}},{key:"_readAny",value:function(n,r,i,o,l){var c=this,f=this.options.loadPath;typeof this.options.loadPath=="function"&&(f=this.options.loadPath(n,i)),f=f3(f),f.then(function(h){if(!h)return l(null,{});var g=c.services.interpolator.interpolate(h,{lng:n.join("+"),ns:i.join("+")});c.loadUrl(g,l,r,o)})}},{key:"loadUrl",value:function(n,r,i,o){var l=this,c=typeof i=="string"?[i]:i,f=typeof o=="string"?[o]:o,h=this.options.parseLoadPayload(c,f);this.options.request(this.options,n,h,function(g,m){if(m&&(m.status>=500&&m.status<600||!m.status))return r("failed loading "+n+"; status code: "+m.status,!0);if(m&&m.status>=400&&m.status<500)return r("failed loading "+n+"; status code: "+m.status,!1);if(!m&&g&&g.message){var v=g.message.toLowerCase(),S=["failed","fetch","network","load"].find(function(C){return v.indexOf(C)>-1});if(S)return r("failed loading "+n+": "+g.message,!0)}if(g)return r(g,!1);var b,A;try{typeof m.data=="string"?b=l.options.parse(m.data,i,o):b=m.data}catch{A="failed parsing "+n+" to json"}if(A)return r(A,!1);r(null,b)})}},{key:"create",value:function(n,r,i,o,l){var c=this;if(this.options.addPath){typeof n=="string"&&(n=[n]);var f=this.options.parsePayload(r,i,o),h=0,g=[],m=[];n.forEach(function(v){var S=c.options.addPath;typeof c.options.addPath=="function"&&(S=c.options.addPath(v,r));var b=c.services.interpolator.interpolate(S,{lng:v,ns:r});c.options.request(c.options,b,f,function(A,C){h+=1,g.push(A),m.push(C),h===n.length&&typeof l=="function"&&l(g,m)})})}}},{key:"reload",value:function(){var n=this,r=this.services,i=r.backendConnector,o=r.languageUtils,l=r.logger,c=i.language;if(!(c&&c.toLowerCase()==="cimode")){var f=[],h=function(m){var v=o.toResolveHierarchy(m);v.forEach(function(S){f.indexOf(S)<0&&f.push(S)})};h(c),this.allOptions.preload&&this.allOptions.preload.forEach(function(g){return h(g)}),f.forEach(function(g){n.allOptions.ns.forEach(function(m){i.read(g,m,"read",null,null,function(v,S){v&&l.warn("loading namespace ".concat(m," for language ").concat(g," failed"),v),!v&&S&&l.log("loaded namespace ".concat(m," for language ").concat(g),S),i.loaded("".concat(g,"|").concat(m),v,S)})})})}}}])}();YS.type="backend";const E3=async()=>{try{const n=(await(await fetch("/api/hardpy_config")).json()).frontend?.language??"en";await Sr.use(YS).use(tE).init({lng:n,fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1},backend:{loadPath:"/locales/{{lng}}/translation.json"}}),console.log("i18n initialized with:",Sr.language)}catch(t){console.error("Error initializing i18n:",t),await Sr.use(YS).use(tE).init({lng:"en",fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1},backend:{loadPath:"/locales/{{lng}}/translation.json"}}),console.log("i18n initialized with:",Sr.language)}};E3();var Zm={LEFT:"left",RIGHT:"right"},T3={ZERO:0},Oi={NONE:"none",PRIMARY:"primary",SUCCESS:"success",WARNING:"warning",DANGER:"danger"},Ng={BOTTOM:"bottom",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",LEFT:"left",LEFT_BOTTOM:"left-bottom",LEFT_TOP:"left-top",RIGHT:"right",RIGHT_BOTTOM:"right-bottom",RIGHT_TOP:"right-top",TOP:"top",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},Ze="bp5";typeof BLUEPRINT_NAMESPACE<"u"?Ze=BLUEPRINT_NAMESPACE:typeof REACT_APP_BLUEPRINT_NAMESPACE<"u"&&(Ze=REACT_APP_BLUEPRINT_NAMESPACE);var Jm="".concat(Ze,"-active"),O3="".concat(Ze,"-align-left"),r2="".concat(Ze,"-align-right"),sC="".concat(Ze,"-compact"),lT="".concat(Ze,"-dark"),Pg="".concat(Ze,"-disabled"),uf="".concat(Ze,"-fill"),A3="".concat(Ze,"-fixed-top"),R3="".concat(Ze,"-inline"),i2="".concat(Ze,"-interactive"),hl="".concat(Ze,"-large"),k3="".concat(Ze,"-loading"),lC="".concat(Ze,"-minimal"),N3="".concat(Ze,"-outlined"),P3="".concat(Ze,"-read-only"),o2="".concat(Ze,"-round"),a2="".concat(Ze,"-selected"),eg="".concat(Ze,"-small"),D3="".concat(Ze,"-vertical");S_(Ng.TOP);S_(Ng.BOTTOM);S_(Ng.LEFT);S_(Ng.RIGHT);ro(Oi.PRIMARY);ro(Oi.SUCCESS);ro(Oi.WARNING);ro(Oi.DANGER);var L3="".concat(Ze,"-text-disabled"),M3="".concat(Ze,"-text-overflow-ellipsis"),I3="".concat(Ze,"-blockquote"),F3="".concat(Ze,"-code"),$3="".concat(Ze,"-code-block"),Wh="".concat(Ze,"-heading"),s2="".concat(Ze,"-list"),g_="".concat(Ze,"-alert"),j3="".concat(g_,"-body"),z3="".concat(g_,"-contents"),H3="".concat(g_,"-footer"),v_="".concat(Ze,"-button"),q3="".concat(v_,"-spinner"),U3="".concat(v_,"-text"),uC="".concat(Ze,"-callout"),V3="".concat(uC,"-has-body-content"),W3="".concat(uC,"-icon"),G3="".concat(Ze,"-card"),l2="".concat(Ze,"-collapse"),B3="".concat(l2,"-body"),Gh="".concat(Ze,"-dialog"),K3="".concat(Gh,"-container"),X3="".concat(Gh,"-header"),u2="".concat(Gh,"-body"),Y3="".concat(Gh,"-close-button"),Q3="".concat(Gh,"-footer"),Z3="".concat(Ze,"-divider"),c2="".concat(Ze,"-drawer"),J3="".concat(c2,"-body"),e$="".concat(c2,"-footer"),t$="".concat(Ze,"-flex-expander"),y_="".concat(Ze,"-input"),n$="".concat(y_,"-group"),r$="".concat(y_,"-left-container"),i$="".concat(y_,"-action"),f2="".concat(Ze,"-control"),d2="".concat(f2,"-indicator"),uT="".concat(d2,"-child"),o$="".concat(Ze,"-checkbox"),a$="".concat(Ze,"-radio"),h2="".concat(Ze,"-switch"),cT="".concat(h2,"-inner-text"),s$="".concat(Ze,"-label"),p2="".concat(Ze,"-menu"),Dg="".concat(p2,"-item"),l$="".concat(Dg,"-is-selectable"),u$="".concat(Dg,"-selected-icon"),c$="".concat(Dg,"-icon"),f$="".concat(Dg,"-label"),QS="".concat(Ze,"-submenu"),d$="".concat(QS,"-icon"),__="".concat(Ze,"-navbar"),h$="".concat(__,"-group"),p$="".concat(__,"-heading"),m$="".concat(__,"-divider"),vl="".concat(Ze,"-overlay"),g$="".concat(vl,"-backdrop"),v$="".concat(vl,"-content"),y$="".concat(vl,"-inline"),tg="".concat(vl,"-open"),_$="".concat(vl,"-scroll-container"),m2="".concat(vl,"-start-focus-trap"),g2="".concat(vl,"-end-focus-trap"),Kr="".concat(Ze,"-popover"),f1="".concat(Kr,"-arrow"),w$="".concat(Kr,"-backdrop"),d1="".concat(Kr,"-capturing-dismiss"),S$="".concat(Kr,"-content"),b$="".concat(Kr,"-placement"),Oy="".concat(Kr,"-dismiss"),C$="".concat(Oy,"-override"),x$="".concat(Kr,"-match-target-width"),E$="".concat(Kr,"-open"),T$="".concat(Kr,"-popper-escaped"),O$="".concat(Kr,"-reference-hidden"),A$="".concat(Kr,"-target"),R$="".concat(Kr,"-transition-container"),k$="".concat(Ze,"-progress-bar"),N$="".concat(Ze,"-progress-meter"),P$="".concat(Ze,"-no-stripes"),D$="".concat(Ze,"-no-animation"),L$="".concat(Ze,"-portal"),fT="".concat(Ze,"-skeleton"),w_="".concat(Ze,"-spinner"),M$="".concat(w_,"-animation"),I$="".concat(w_,"-head"),F$="".concat(Ze,"-no-spin"),$$="".concat(w_,"-track"),yl="".concat(Ze,"-tab"),j$="".concat(yl,"-icon"),z$="".concat(yl,"-tag"),v2="".concat(yl,"-indicator"),H$="".concat(v2,"-wrapper"),q$="".concat(yl,"-list"),cC="".concat(yl,"-panel"),U$="".concat(yl,"s"),y2="".concat(Ze,"-tag"),V$="".concat(y2,"-remove"),W$="".concat(Ze,"-tooltip"),fC="".concat(Ze,"-icon"),G$="".concat(fC,"-standard"),B$="".concat(fC,"-large");function dC(t){switch(t){case Zm.LEFT:return O3;case Zm.RIGHT:return r2;default:return}}function K$(t){if(t!==void 0)return"".concat(Ze,"-elevation-").concat(t)}function X$(t){if(t!=null)return t.indexOf("".concat(Ze,"-icon-"))===0?t:"".concat(Ze,"-icon-").concat(t)}function ro(t){if(!(t==null||t===Oi.NONE))return"".concat(Ze,"-intent-").concat(t.toLowerCase())}function S_(t){if(t!==void 0)return"".concat(Ze,"-position-").concat(t)}var ZS=function(t,e){return ZS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},ZS(t,e)};function Qn(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ZS(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var Le=function(){return Le=Object.assign||function(e){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Le.apply(this,arguments)};function Nn(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function Ra(t,e,n,r){var i=arguments.length,o=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(l=t[c])&&(o=(i<3?l(o):i>3?l(e,n,o):l(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}function hn(t,e,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function c(g){try{h(r.next(g))}catch(m){l(m)}}function f(g){try{h(r.throw(g))}catch(m){l(m)}}function h(g){g.done?o(g.value):i(g.value).then(c,f)}h((r=r.apply(t,e||[])).next())})}function dh(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(h){return function(g){return f([h,g])}}function f(h){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,h[0]&&(n=0)),n;)try{if(r=1,i&&(o=h[0]&2?i.return:h[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,h[1])).done)return o;switch(i=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,i=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){n.label=h[1];break}if(h[0]===6&&n.label<o[1]){n.label=o[1],o=h;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(h);break}o[2]&&n.ops.pop(),n.trys.pop();continue}h=e.call(t,n)}catch(g){h=[6,g],i=0}finally{r=o=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}var Y$={BLACK:"#111418",DARK_GRAY1:"#1C2127",DARK_GRAY2:"#252A31",DARK_GRAY3:"#2F343C",DARK_GRAY4:"#383E47",DARK_GRAY5:"#404854",GRAY1:"#5F6B7C",GRAY2:"#738091",GRAY3:"#8F99A8",GRAY4:"#ABB3BF",GRAY5:"#C5CBD3",LIGHT_GRAY1:"#D3D8DE",LIGHT_GRAY2:"#DCE0E5",LIGHT_GRAY3:"#E5E8EB",LIGHT_GRAY4:"#EDEFF2",LIGHT_GRAY5:"#F6F7F9",WHITE:"#FFFFFF"},Q$={BLUE1:"#184A90",BLUE2:"#215DB0",BLUE3:"#2D72D2",BLUE4:"#4C90F0",BLUE5:"#8ABBFF",GREEN1:"#165A36",GREEN2:"#1C6E42",GREEN3:"#238551",GREEN4:"#32A467",GREEN5:"#72CA9B",ORANGE1:"#77450D",ORANGE2:"#935610",ORANGE3:"#C87619",ORANGE4:"#EC9A3C",ORANGE5:"#FBB360",RED1:"#8E292C",RED2:"#AC2F33",RED3:"#CD4246",RED4:"#E76A6E",RED5:"#FA999C"},Z$={CERULEAN1:"#0C5174",CERULEAN2:"#0F6894",CERULEAN3:"#147EB3",CERULEAN4:"#3FA6DA",CERULEAN5:"#68C1EE",FOREST1:"#1D7324",FOREST2:"#238C2C",FOREST3:"#29A634",FOREST4:"#43BF4D",FOREST5:"#62D96B",GOLD1:"#5C4405",GOLD2:"#866103",GOLD3:"#D1980B",GOLD4:"#F0B726",GOLD5:"#FBD065",INDIGO1:"#5642A6",INDIGO2:"#634DBF",INDIGO3:"#7961DB",INDIGO4:"#9881F3",INDIGO5:"#BDADFF",LIME1:"#43501B",LIME2:"#5A701A",LIME3:"#8EB125",LIME4:"#B6D94C",LIME5:"#D4F17E",ROSE1:"#A82255",ROSE2:"#C22762",ROSE3:"#DB2C6F",ROSE4:"#F5498B",ROSE5:"#FF66A1",SEPIA1:"#5E4123",SEPIA2:"#7A542E",SEPIA3:"#946638",SEPIA4:"#AF855A",SEPIA5:"#D0B090",TURQUOISE1:"#004D46",TURQUOISE2:"#007067",TURQUOISE3:"#00A396",TURQUOISE4:"#13C9BA",TURQUOISE5:"#7AE1D8",VERMILION1:"#96290D",VERMILION2:"#B83211",VERMILION3:"#D33D17",VERMILION4:"#EB6847",VERMILION5:"#FF9980",VIOLET1:"#5C255C",VIOLET2:"#7C327C",VIOLET3:"#9D3F9D",VIOLET4:"#BD6BBD",VIOLET5:"#D69FD6"},dT=Le(Le(Le({},Y$),Q$),Z$);function J$(t,e,n){return n===void 0&&(n=function(r,i){return r===i}),t==null&&e==null?!0:t==null||e==null||t.length!==e.length?!1:t.every(function(r,i){return n(r,e[i])})}function e6(t,e,n){if(t==null&&e==null)return!0;if(t==null||e==null)return!1;if(Array.isArray(t)||Array.isArray(e))return!1;if(n!=null)return h1(t,e,n);var r=Object.keys(t),i=Object.keys(e);return h1(t,e,{include:r})&&h1(t,e,{include:i})}function h1(t,e,n){return t6(t,e,n).every(function(r){return t.hasOwnProperty(r)===e.hasOwnProperty(r)&&t[r]===e[r]})}function t6(t,e,n){if(n6(n))return n.include;if(r6(n)){var r=Object.keys(t),i=Object.keys(e),o=i6(r.concat(i));return n.exclude.forEach(function(l){return delete o[l]}),Object.keys(o)}return[]}function n6(t){return t!=null&&t.include!=null}function r6(t){return t!=null&&t.exclude!=null}function i6(t){return t.reduce(function(e,n){return e[n]=!0,e},{})}function _2(){return typeof window<"u"&&window.document!=null}function o6(t,e){return t===e||t.contains(e)}function JS(t,e){var n;if(t==null)return document.activeElement;var r=(n=t.getRootNode(e))!==null&&n!==void 0?n:document;return r.activeElement}function a6(t){return function(e){return t.some(function(n){return e.key===n})&&e.target.dispatchEvent(new MouseEvent("click",Le(Le({},e),{view:void 0})))}}function s6(t){return typeof t=="function"}var $n="[Blueprint]",l6=$n+" <Alert> cancelButtonText and onCancel should be set together.",u6=$n+" <Alert> canEscapeKeyCancel enabled without onCancel or onClose handler.",c6=$n+" <Alert> canOutsideClickCancel enabled without onCancel or onClose handler.",f6=$n+" <InputGroup> leftElement and leftIcon prop are mutually exclusive, with leftElement taking priority.",d6="".concat($n," <Popover> requires renderTarget prop or a child element."),h6="".concat($n,' <Popover hasBackdrop={true}> requires interactionKind="click".'),p6="".concat($n," <Popover> supports only one child which is rendered as its target; additional children are ignored."),m6=$n+" <Popover> with children ignores renderTarget prop; use either prop or children.",g6=$n+" Disabling <Popover> with empty/whitespace content...",v6=$n+" <Popover usePortal={false}> ignores hasBackdrop",y6=$n+" <Popover> supports either placement or position prop, not both.",_6=$n+" <Popover> onInteraction is ignored when uncontrolled.",w6=$n+" <Popover> targetProps value is ignored when renderTarget API is used.",S6=$n+" <Portal> context blueprintPortalClassName must be string",b6=$n+" setting blueprintPortalClassName via legacy React context API is deprecated, use <PortalProvider> instead.",C6=$n+" <Spinner> Classes.SMALL/LARGE are ignored if size prop is set.",x6=$n+" <Dialog> iconName is ignored if title is omitted.",E6=$n+" <Dialog> isCloseButtonShown prop is ignored if title is omitted.",T6=$n+" <Overlay2> was used outside of a <OverlaysProvider> context. This will no longer be supported in Blueprint v6. See https://github.com/palantir/blueprint/wiki/Overlay2-migration",O6=$n+" <Overlay2> cannot use childRef and childRefs props simultaneously",A6=$n+" <Overlay2> requires childRefs prop when rendering multiple child elements",R6=$n+" <Overlay2> requires each child element to have a unique key prop when childRefs is used";function Oh(t){return typeof NODE_ENV<"u"&&NODE_ENV===t}function w2(t,e,n){return t==null?t:Math.min(Math.max(t,e),n)}var hT=new Map;function k6(t){var e,n=(e=hT.get(t))!==null&&e!==void 0?e:0;return hT.set(t,n+1),"".concat(t,"-").concat(n)}function S2(t){return typeof t=="string"&&t.trim().length===0}function ng(t,e){return e===void 0&&(e=!1),t==null||t===""||t===!1||!e&&Array.isArray(t)&&(t.length===0||t.every(function(n){return ng(n,!0)}))}function b2(t,e,n){if(e===void 0&&(e="span"),n===void 0&&(n={}),!(t==null||typeof t=="boolean"||S2(t)))return typeof t=="string"||typeof t=="number"||N6(t)||P6(t)?N.createElement(e,n,t):C2(t)?Object.keys(n).length>0?N.cloneElement(t,n):t:void 0}function C2(t){return typeof t=="object"&&typeof t.type<"u"&&typeof t.props<"u"}function N6(t){return typeof t.type=="symbol"}function P6(t){return Array.isArray(t)}function x2(t,e){return t!=null&&t.type!=null&&t.type.displayName!=null&&t.type.displayName===e.displayName}function D6(){return N.version.startsWith("18")}function rg(t){return t.key==="Enter"||t.key===" "}function L6(t){return t!=null&&typeof t!="function"}function M6(t){return typeof t=="function"}function hC(t,e){L6(t)?t.current=e:M6(t)&&t(e)}function cf(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(n){t.forEach(function(r){hC(r,n)})}}function Uo(t){return t===null?null:typeof t.current>"u"?t:t.current}function I6(t,e,n){return function(r){t[e]=r,hC(n,r)}}var lr=function(t){Qn(e,t);function e(n){var r=t.call(this,n)||this;return r.timeoutIds=[],r.requestIds=[],r.clearTimeouts=function(){if(r.timeoutIds.length>0){for(var i=0,o=r.timeoutIds;i<o.length;i++){var l=o[i];window.clearTimeout(l)}r.timeoutIds=[]}},r.cancelAnimationFrames=function(){if(r.requestIds.length>0){for(var i=0,o=r.requestIds;i<o.length;i++){var l=o[i];window.cancelAnimationFrame(l)}r.requestIds=[]}},Oh("production")||r.validateProps(r.props),r}return e.prototype.componentDidUpdate=function(n,r,i){Oh("production")||this.validateProps(this.props)},e.prototype.componentWillUnmount=function(){this.clearTimeouts(),this.cancelAnimationFrames()},e.prototype.requestAnimationFrame=function(n){var r=window.requestAnimationFrame(n);return this.requestIds.push(r),function(){return window.cancelAnimationFrame(r)}},e.prototype.setTimeout=function(n,r){var i=window.setTimeout(n,r);return this.timeoutIds.push(i),function(){return window.clearTimeout(i)}},e.prototype.validateProps=function(n){},e}(N.PureComponent),Ht="Blueprint5",pT=["active","alignText","asyncControl","containerRef","current","elementRef","ellipsizeText","fill","icon","iconSize","inputClassName","inputRef","intent","inline","large","loading","leftElement","leftIcon","minimal","onRemove","outlined","panel","panelClassName","popoverProps","rightElement","rightIcon","round","size","small","tagName","text","textClassName"];function ff(t,e,n){return e===void 0&&(e=pT),n===void 0&&(n=!1),n&&(e=e.concat(pT)),e.reduce(function(r,i){return i.indexOf("-")!==-1||r.hasOwnProperty(i)&&delete r[i],r},Le({},t))}var p1={exports:{}};/*!
|
|
47
|
+
Copyright (c) 2018 Jed Watson.
|
|
48
|
+
Licensed under the MIT License (MIT), see
|
|
49
|
+
http://jedwatson.github.io/classnames
|
|
50
|
+
*/var mT;function F6(){return mT||(mT=1,function(t){(function(){var e={}.hasOwnProperty;function n(){for(var o="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(o=i(o,r(c)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var l="";for(var c in o)e.call(o,c)&&o[c]&&(l=i(l,c));return l}function i(o,l){return l?o?o+" "+l:o+l:o}t.exports?(n.default=n,t.exports=n):window.classNames=n})()}(p1)),p1.exports}var $6=F6();const et=oo($6);function j6(t){return t.toLowerCase()}var z6=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],H6=/[^A-Z0-9]+/gi;function E2(t,e){e===void 0&&(e={});for(var n=e.splitRegexp,r=n===void 0?z6:n,i=e.stripRegexp,o=i===void 0?H6:i,l=e.transform,c=l===void 0?j6:l,f=e.delimiter,h=f===void 0?" ":f,g=gT(gT(t,r,"$1\0$2"),o,"\0"),m=0,v=g.length;g.charAt(m)==="\0";)m++;for(;g.charAt(v-1)==="\0";)v--;return g.slice(m,v).split("\0").map(c).join(h)}function gT(t,e,n){return e instanceof RegExp?t.replace(e,n):e.reduce(function(r,i){return r.replace(i,n)},t)}function q6(t,e){var n=t.charAt(0),r=t.substr(1).toLowerCase();return e>0&&n>="0"&&n<="9"?"_"+n+r:""+n.toUpperCase()+r}function U6(t,e){return e===void 0&&(e={}),E2(t,Le({delimiter:"",transform:q6},e))}function V6(t,e){return e===void 0&&(e={}),E2(t,Le({delimiter:"."},e))}function W6(t,e){return e===void 0&&(e={}),V6(t,Le({delimiter:"_"},e))}var mt;(function(t){t[t.STANDARD=16]="STANDARD",t[t.LARGE=20]="LARGE"})(mt||(mt={}));var D,P;(function(t){t.AddClip="add-clip",t.AddColumnLeft="add-column-left",t.AddColumnRight="add-column-right",t.AddLocation="add-location",t.AddRowBottom="add-row-bottom",t.AddRowTop="add-row-top",t.AddToArtifact="add-to-artifact",t.AddToFolder="add-to-folder",t.Add="add",t.AimpointsTarget="aimpoints-target",t.Airplane="airplane",t.AlignCenter="align-center",t.AlignJustify="align-justify",t.AlignLeft="align-left",t.AlignRight="align-right",t.AlignmentBottom="alignment-bottom",t.AlignmentHorizontalCenter="alignment-horizontal-center",t.AlignmentLeft="alignment-left",t.AlignmentRight="alignment-right",t.AlignmentTop="alignment-top",t.AlignmentVerticalCenter="alignment-vertical-center",t.Ammunition="ammunition",t.Anchor="anchor",t.Annotation="annotation",t.Antenna="antenna",t.AppHeader="app-header",t.Application="application",t.Applications="applications",t.Archive="archive",t.AreaOfInterest="area-of-interest",t.ArrayBoolean="array-boolean",t.ArrayDate="array-date",t.ArrayFloatingPoint="array-floating-point",t.ArrayNumeric="array-numeric",t.ArrayString="array-string",t.ArrayTimestamp="array-timestamp",t.Array="array",t.ArrowBottomLeft="arrow-bottom-left",t.ArrowBottomRight="arrow-bottom-right",t.ArrowDown="arrow-down",t.ArrowLeft="arrow-left",t.ArrowRight="arrow-right",t.ArrowTopLeft="arrow-top-left",t.ArrowTopRight="arrow-top-right",t.ArrowUp="arrow-up",t.ArrowsHorizontal="arrows-horizontal",t.ArrowsVertical="arrows-vertical",t.Asterisk="asterisk",t.At="at",t.AutomaticUpdates="automatic-updates",t.Axle="axle",t.Backlink="backlink",t.Badge="badge",t.BanCircle="ban-circle",t.BankAccount="bank-account",t.Barcode="barcode",t.Blank="blank",t.BlockedPerson="blocked-person",t.Bold="bold",t.Book="book",t.Bookmark="bookmark",t.Box="box",t.Briefcase="briefcase",t.BringData="bring-data",t.BringForward="bring-forward",t.Bug="bug",t.Buggy="buggy",t.Build="build",t.Calculator="calculator",t.Calendar="calendar",t.Camera="camera",t.CaretDown="caret-down",t.CaretLeft="caret-left",t.CaretRight="caret-right",t.CaretUp="caret-up",t.CargoShip="cargo-ship",t.CellTower="cell-tower",t.Changes="changes",t.Chart="chart",t.Chat="chat",t.ChevronBackward="chevron-backward",t.ChevronDown="chevron-down",t.ChevronForward="chevron-forward",t.ChevronLeft="chevron-left",t.ChevronRight="chevron-right",t.ChevronUp="chevron-up",t.CircleArrowDown="circle-arrow-down",t.CircleArrowLeft="circle-arrow-left",t.CircleArrowRight="circle-arrow-right",t.CircleArrowUp="circle-arrow-up",t.Circle="circle",t.Citation="citation",t.Clean="clean",t.Clip="clip",t.Clipboard="clipboard",t.CloudDownload="cloud-download",t.CloudTick="cloud-tick",t.CloudUpload="cloud-upload",t.Cloud="cloud",t.CodeBlock="code-block",t.Code="code",t.Cog="cog",t.CollapseAll="collapse-all",t.ColorFill="color-fill",t.ColumnLayout="column-layout",t.Comment="comment",t.Comparison="comparison",t.Compass="compass",t.Compressed="compressed",t.Confirm="confirm",t.Console="console",t.Contrast="contrast",t.Control="control",t.CreditCard="credit-card",t.Crop="crop",t.CrossCircle="cross-circle",t.Cross="cross",t.Crown="crown",t.CubeAdd="cube-add",t.CubeRemove="cube-remove",t.Cube="cube",t.CurvedRangeChart="curved-range-chart",t.Cut="cut",t.Cycle="cycle",t.Dashboard="dashboard",t.DataConnection="data-connection",t.DataLineage="data-lineage",t.Database="database",t.Delete="delete",t.Delta="delta",t.DeriveColumn="derive-column",t.Desktop="desktop",t.Detection="detection",t.Diagnosis="diagnosis",t.DiagramTree="diagram-tree",t.DirectionLeft="direction-left",t.DirectionRight="direction-right",t.Disable="disable",t.Divide="divide",t.DocumentOpen="document-open",t.DocumentShare="document-share",t.Document="document",t.Dollar="dollar",t.Dot="dot",t.DoubleCaretHorizontal="double-caret-horizontal",t.DoubleCaretVertical="double-caret-vertical",t.DoubleChevronDown="double-chevron-down",t.DoubleChevronLeft="double-chevron-left",t.DoubleChevronRight="double-chevron-right",t.DoubleChevronUp="double-chevron-up",t.DoughnutChart="doughnut-chart",t.Download="download",t.DragHandleHorizontal="drag-handle-horizontal",t.DragHandleVertical="drag-handle-vertical",t.Draw="draw",t.DrawerLeftFilled="drawer-left-filled",t.DrawerLeft="drawer-left",t.DrawerRightFilled="drawer-right-filled",t.DrawerRight="drawer-right",t.DriveTime="drive-time",t.Duplicate="duplicate",t.Edit="edit",t.Eject="eject",t.Emoji="emoji",t.Endnote="endnote",t.Endorsed="endorsed",t.Envelope="envelope",t.Equals="equals",t.Eraser="eraser",t.Error="error",t.Euro="euro",t.Exchange="exchange",t.ExcludeRow="exclude-row",t.ExpandAll="expand-all",t.Explain="explain",t.Export="export",t.EyeOff="eye-off",t.EyeOn="eye-on",t.EyeOpen="eye-open",t.FastBackward="fast-backward",t.FastForward="fast-forward",t.FeedSubscribed="feed-subscribed",t.Feed="feed",t.Film="film",t.FilterKeep="filter-keep",t.FilterList="filter-list",t.FilterOpen="filter-open",t.FilterRemove="filter-remove",t.Filter="filter",t.Flag="flag",t.Flame="flame",t.Flash="flash",t.FloatingPoint="floating-point",t.FloppyDisk="floppy-disk",t.FlowBranch="flow-branch",t.FlowEnd="flow-end",t.FlowLinear="flow-linear",t.FlowReviewBranch="flow-review-branch",t.FlowReview="flow-review",t.Flows="flows",t.FolderClose="folder-close",t.FolderNew="folder-new",t.FolderOpen="folder-open",t.FolderSharedOpen="folder-shared-open",t.FolderShared="folder-shared",t.Follower="follower",t.Following="following",t.Font="font",t.Fork="fork",t.Form="form",t.Fuel="fuel",t.FullCircle="full-circle",t.FullStackedChart="full-stacked-chart",t.Fullscreen="fullscreen",t.Function="function",t.GanttChart="gantt-chart",t.Generate="generate",t.Geofence="geofence",t.Geolocation="geolocation",t.Geosearch="geosearch",t.Geotime="geotime",t.GitBranch="git-branch",t.GitCommit="git-commit",t.GitMerge="git-merge",t.GitNewBranch="git-new-branch",t.GitPull="git-pull",t.GitPush="git-push",t.GitRepo="git-repo",t.Glass="glass",t.GlobeNetwork="globe-network",t.Globe="globe",t.GraphRemove="graph-remove",t.Graph="graph",t.GreaterThanOrEqualTo="greater-than-or-equal-to",t.GreaterThan="greater-than",t.GridView="grid-view",t.Grid="grid",t.GroupItem="group-item",t.GroupObjects="group-objects",t.GroupedBarChart="grouped-bar-chart",t.HandDown="hand-down",t.HandLeft="hand-left",t.HandRight="hand-right",t.HandUp="hand-up",t.Hand="hand",t.Hat="hat",t.HeaderOne="header-one",t.HeaderThree="header-three",t.HeaderTwo="header-two",t.Header="header",t.Headset="headset",t.HeartBroken="heart-broken",t.Heart="heart",t.HeatGrid="heat-grid",t.Heatmap="heatmap",t.Helicopter="helicopter",t.Help="help",t.HelperManagement="helper-management",t.HighPriority="high-priority",t.HighVoltagePole="high-voltage-pole",t.Highlight="highlight",t.History="history",t.Home="home",t.HorizontalBarChartAsc="horizontal-bar-chart-asc",t.HorizontalBarChartDesc="horizontal-bar-chart-desc",t.HorizontalBarChart="horizontal-bar-chart",t.HorizontalDistribution="horizontal-distribution",t.HorizontalInbetween="horizontal-inbetween",t.Hurricane="hurricane",t.IdNumber="id-number",t.ImageRotateLeft="image-rotate-left",t.ImageRotateRight="image-rotate-right",t.Import="import",t.InboxFiltered="inbox-filtered",t.InboxGeo="inbox-geo",t.InboxSearch="inbox-search",t.InboxUpdate="inbox-update",t.Inbox="inbox",t.InfoSign="info-sign",t.Inheritance="inheritance",t.InheritedGroup="inherited-group",t.InnerJoin="inner-join",t.Input="input",t.Insert="insert",t.Intelligence="intelligence",t.Intersection="intersection",t.IpAddress="ip-address",t.IssueClosed="issue-closed",t.IssueNew="issue-new",t.Issue="issue",t.Italic="italic",t.JoinTable="join-table",t.KeyBackspace="key-backspace",t.KeyCommand="key-command",t.KeyControl="key-control",t.KeyDelete="key-delete",t.KeyEnter="key-enter",t.KeyEscape="key-escape",t.KeyOption="key-option",t.KeyShift="key-shift",t.KeyTab="key-tab",t.Key="key",t.KnownVehicle="known-vehicle",t.LabTest="lab-test",t.Label="label",t.LayerOutline="layer-outline",t.Layer="layer",t.Layers="layers",t.LayoutAuto="layout-auto",t.LayoutBalloon="layout-balloon",t.LayoutCircle="layout-circle",t.LayoutGrid="layout-grid",t.LayoutGroupBy="layout-group-by",t.LayoutHierarchy="layout-hierarchy",t.LayoutLinear="layout-linear",t.LayoutSkewGrid="layout-skew-grid",t.LayoutSortedClusters="layout-sorted-clusters",t.Layout="layout",t.Learning="learning",t.LeftJoin="left-join",t.LengthenText="lengthen-text",t.LessThanOrEqualTo="less-than-or-equal-to",t.LessThan="less-than",t.Lifesaver="lifesaver",t.Lightbulb="lightbulb",t.Lightning="lightning",t.Link="link",t.ListColumns="list-columns",t.ListDetailView="list-detail-view",t.List="list",t.Locate="locate",t.Lock="lock",t.Locomotive="locomotive",t.LogIn="log-in",t.LogOut="log-out",t.LowVoltagePole="low-voltage-pole",t.Manual="manual",t.ManuallyEnteredData="manually-entered-data",t.ManyToMany="many-to-many",t.ManyToOne="many-to-one",t.MapCreate="map-create",t.MapMarker="map-marker",t.Map="map",t.Maximize="maximize",t.Media="media",t.MenuClosed="menu-closed",t.MenuOpen="menu-open",t.Menu="menu",t.MergeColumns="merge-columns",t.MergeLinks="merge-links",t.Microphone="microphone",t.Minimize="minimize",t.Minus="minus",t.MobilePhone="mobile-phone",t.MobileVideo="mobile-video",t.ModalFilled="modal-filled",t.Modal="modal",t.Model="model",t.Moon="moon",t.More="more",t.Mountain="mountain",t.Move="move",t.Mugshot="mugshot",t.MultiSelect="multi-select",t.Music="music",t.Nest="nest",t.NewDrawing="new-drawing",t.NewGridItem="new-grid-item",t.NewLayer="new-layer",t.NewLayers="new-layers",t.NewLink="new-link",t.NewObject="new-object",t.NewPerson="new-person",t.NewPrescription="new-prescription",t.NewShield="new-shield",t.NewTextBox="new-text-box",t.Ninja="ninja",t.NotEqualTo="not-equal-to",t.NotificationsSnooze="notifications-snooze",t.NotificationsUpdated="notifications-updated",t.Notifications="notifications",t.NumberedList="numbered-list",t.Numerical="numerical",t.Office="office",t.Offline="offline",t.OilField="oil-field",t.OneColumn="one-column",t.OneToMany="one-to-many",t.OneToOne="one-to-one",t.OpenApplication="open-application",t.Outdated="outdated",t.PageLayout="page-layout",t.PanelStats="panel-stats",t.PanelTable="panel-table",t.Paperclip="paperclip",t.Paragraph="paragraph",t.PasteVariable="paste-variable",t.PathSearch="path-search",t.Path="path",t.Pause="pause",t.People="people",t.Percentage="percentage",t.Person="person",t.PhoneCall="phone-call",t.PhoneForward="phone-forward",t.Phone="phone",t.PieChart="pie-chart",t.Pin="pin",t.PivotTable="pivot-table",t.Pivot="pivot",t.Play="play",t.Playbook="playbook",t.Plus="plus",t.PolygonFilter="polygon-filter",t.Power="power",t.PredictiveAnalysis="predictive-analysis",t.Prescription="prescription",t.Presentation="presentation",t.Print="print",t.Projects="projects",t.Properties="properties",t.Property="property",t.PublishFunction="publish-function",t.Pulse="pulse",t.Rain="rain",t.Random="random",t.Record="record",t.RectHeight="rect-height",t.RectWidth="rect-width",t.Rectangle="rectangle",t.Redo="redo",t.Refresh="refresh",t.Regex="regex",t.RegressionChart="regression-chart",t.RemoveColumnLeft="remove-column-left",t.RemoveColumnRight="remove-column-right",t.RemoveColumn="remove-column",t.RemoveRowBottom="remove-row-bottom",t.RemoveRowTop="remove-row-top",t.Remove="remove",t.Repeat="repeat",t.Reset="reset",t.Resolve="resolve",t.Rig="rig",t.RightJoin="right-join",t.Ring="ring",t.RocketSlant="rocket-slant",t.Rocket="rocket",t.RotateDocument="rotate-document",t.RotatePage="rotate-page",t.Route="route",t.Satellite="satellite",t.Saved="saved",t.ScatterPlot="scatter-plot",t.SearchAround="search-around",t.SearchTemplate="search-template",t.SearchText="search-text",t.Search="search",t.SegmentedControl="segmented-control",t.Select="select",t.Selection="selection",t.SendBackward="send-backward",t.SendMessage="send-message",t.SendToGraph="send-to-graph",t.SendToMap="send-to-map",t.SendTo="send-to",t.Sensor="sensor",t.SeriesAdd="series-add",t.SeriesConfiguration="series-configuration",t.SeriesDerived="series-derived",t.SeriesFiltered="series-filtered",t.SeriesSearch="series-search",t.Settings="settings",t.Shapes="shapes",t.Share="share",t.SharedFilter="shared-filter",t.Shield="shield",t.Ship="ship",t.Shop="shop",t.ShoppingCart="shopping-cart",t.ShortenText="shorten-text",t.SignalSearch="signal-search",t.SimCard="sim-card",t.Slash="slash",t.SmallCross="small-cross",t.SmallInfoSign="small-info-sign",t.SmallMinus="small-minus",t.SmallPlus="small-plus",t.SmallSquare="small-square",t.SmallTick="small-tick",t.Snowflake="snowflake",t.SoccerBall="soccer-ball",t.SocialMedia="social-media",t.SortAlphabeticalDesc="sort-alphabetical-desc",t.SortAlphabetical="sort-alphabetical",t.SortAsc="sort-asc",t.SortDesc="sort-desc",t.SortNumericalDesc="sort-numerical-desc",t.SortNumerical="sort-numerical",t.Sort="sort",t.SpellCheck="spell-check",t.SplitColumns="split-columns",t.SportsStadium="sports-stadium",t.Square="square",t.StackedChart="stacked-chart",t.StadiumGeometry="stadium-geometry",t.StarEmpty="star-empty",t.Star="star",t.StepBackward="step-backward",t.StepChart="step-chart",t.StepForward="step-forward",t.Stop="stop",t.Stopwatch="stopwatch",t.Strikethrough="strikethrough",t.Style="style",t.Subscript="subscript",t.Superscript="superscript",t.SwapHorizontal="swap-horizontal",t.SwapVertical="swap-vertical",t.Switch="switch",t.SymbolCircle="symbol-circle",t.SymbolCross="symbol-cross",t.SymbolDiamond="symbol-diamond",t.SymbolRectangle="symbol-rectangle",t.SymbolSquare="symbol-square",t.SymbolTriangleDown="symbol-triangle-down",t.SymbolTriangleUp="symbol-triangle-up",t.Syringe="syringe",t.Tag="tag",t.TakeAction="take-action",t.Tank="tank",t.Target="target",t.Taxi="taxi",t.Team="team",t.Temperature="temperature",t.TextHighlight="text-highlight",t.ThDerived="th-derived",t.ThDisconnect="th-disconnect",t.ThFiltered="th-filtered",t.ThList="th-list",t.Th="th",t.ThirdParty="third-party",t.ThumbsDown="thumbs-down",t.ThumbsUp="thumbs-up",t.TickCircle="tick-circle",t.Tick="tick",t.Time="time",t.TimelineAreaChart="timeline-area-chart",t.TimelineBarChart="timeline-bar-chart",t.TimelineEvents="timeline-events",t.TimelineLineChart="timeline-line-chart",t.Tint="tint",t.Torch="torch",t.Tractor="tractor",t.Train="train",t.Translate="translate",t.Trash="trash",t.Tree="tree",t.TrendingDown="trending-down",t.TrendingUp="trending-up",t.Trophy="trophy",t.Truck="truck",t.TwoColumns="two-columns",t.Unarchive="unarchive",t.Underline="underline",t.Undo="undo",t.UngroupObjects="ungroup-objects",t.UnknownVehicle="unknown-vehicle",t.Unlink="unlink",t.Unlock="unlock",t.Unpin="unpin",t.Unresolve="unresolve",t.Updated="updated",t.Upload="upload",t.User="user",t.Variable="variable",t.VerticalBarChartAsc="vertical-bar-chart-asc",t.VerticalBarChartDesc="vertical-bar-chart-desc",t.VerticalDistribution="vertical-distribution",t.VerticalInbetween="vertical-inbetween",t.Video="video",t.Virus="virus",t.VolumeDown="volume-down",t.VolumeOff="volume-off",t.VolumeUp="volume-up",t.Walk="walk",t.WarningSign="warning-sign",t.WaterfallChart="waterfall-chart",t.Waves="waves",t.WidgetButton="widget-button",t.WidgetFooter="widget-footer",t.WidgetHeader="widget-header",t.Widget="widget",t.Wind="wind",t.Wrench="wrench",t.ZoomIn="zoom-in",t.ZoomOut="zoom-out",t.ZoomToFit="zoom-to-fit"})(P||(P={}));D={},D[P.AddClip]="61697",D[P.AddColumnLeft]="61698",D[P.AddColumnRight]="61699",D[P.AddLocation]="61700",D[P.AddRowBottom]="61701",D[P.AddRowTop]="61702",D[P.AddToArtifact]="61703",D[P.AddToFolder]="61704",D[P.Add]="61705",D[P.AimpointsTarget]="62261",D[P.Airplane]="61706",D[P.AlignCenter]="61707",D[P.AlignJustify]="61708",D[P.AlignLeft]="61709",D[P.AlignRight]="61710",D[P.AlignmentBottom]="61711",D[P.AlignmentHorizontalCenter]="61712",D[P.AlignmentLeft]="61713",D[P.AlignmentRight]="61714",D[P.AlignmentTop]="61715",D[P.AlignmentVerticalCenter]="61716",D[P.Ammunition]="62274",D[P.Anchor]="62256",D[P.Annotation]="61717",D[P.Antenna]="61718",D[P.AppHeader]="61719",D[P.Application]="61720",D[P.Applications]="61721",D[P.Archive]="61722",D[P.AreaOfInterest]="61723",D[P.ArrayBoolean]="61724",D[P.ArrayDate]="61725",D[P.ArrayFloatingPoint]="62253",D[P.ArrayNumeric]="61726",D[P.ArrayString]="61727",D[P.ArrayTimestamp]="61728",D[P.Array]="61729",D[P.ArrowBottomLeft]="61730",D[P.ArrowBottomRight]="61731",D[P.ArrowDown]="61732",D[P.ArrowLeft]="61733",D[P.ArrowRight]="61734",D[P.ArrowTopLeft]="61735",D[P.ArrowTopRight]="61736",D[P.ArrowUp]="61737",D[P.ArrowsHorizontal]="61738",D[P.ArrowsVertical]="61739",D[P.Asterisk]="61740",D[P.At]="62257",D[P.AutomaticUpdates]="61741",D[P.Axle]="62264",D[P.Backlink]="61742",D[P.Badge]="61743",D[P.BanCircle]="61744",D[P.BankAccount]="61745",D[P.Barcode]="61746",D[P.Blank]="61747",D[P.BlockedPerson]="61748",D[P.Bold]="61749",D[P.Book]="61750",D[P.Bookmark]="61751",D[P.Box]="61752",D[P.Briefcase]="61753",D[P.BringData]="61754",D[P.BringForward]="62292",D[P.Bug]="62254",D[P.Buggy]="61755",D[P.Build]="61756",D[P.Calculator]="61757",D[P.Calendar]="61758",D[P.Camera]="61759",D[P.CaretDown]="61760",D[P.CaretLeft]="61761",D[P.CaretRight]="61762",D[P.CaretUp]="61763",D[P.CargoShip]="61764",D[P.CellTower]="61765",D[P.Changes]="61766",D[P.Chart]="61767",D[P.Chat]="61768",D[P.ChevronBackward]="61769",D[P.ChevronDown]="61770",D[P.ChevronForward]="61771",D[P.ChevronLeft]="61772",D[P.ChevronRight]="61773",D[P.ChevronUp]="61774",D[P.CircleArrowDown]="61775",D[P.CircleArrowLeft]="61776",D[P.CircleArrowRight]="61777",D[P.CircleArrowUp]="61778",D[P.Circle]="61779",D[P.Citation]="61780",D[P.Clean]="61781",D[P.Clip]="61782",D[P.Clipboard]="61783",D[P.CloudDownload]="61784",D[P.CloudTick]="62286",D[P.CloudUpload]="61785",D[P.Cloud]="61786",D[P.CodeBlock]="61787",D[P.Code]="61788",D[P.Cog]="61789",D[P.CollapseAll]="61790",D[P.ColorFill]="62248",D[P.ColumnLayout]="61791",D[P.Comment]="61792",D[P.Comparison]="61793",D[P.Compass]="61794",D[P.Compressed]="61795",D[P.Confirm]="61796",D[P.Console]="61797",D[P.Contrast]="61798",D[P.Control]="61799",D[P.CreditCard]="61800",D[P.Crop]="62291",D[P.CrossCircle]="62262",D[P.Cross]="61801",D[P.Crown]="61802",D[P.CubeAdd]="61803",D[P.CubeRemove]="61804",D[P.Cube]="61805",D[P.CurvedRangeChart]="61806",D[P.Cut]="61807",D[P.Cycle]="61808",D[P.Dashboard]="61809",D[P.DataConnection]="61810",D[P.DataLineage]="61811",D[P.Database]="61812",D[P.Delete]="61813",D[P.Delta]="61814",D[P.DeriveColumn]="61815",D[P.Desktop]="61816",D[P.Detection]="62273",D[P.Diagnosis]="61817",D[P.DiagramTree]="61818",D[P.DirectionLeft]="61819",D[P.DirectionRight]="61820",D[P.Disable]="61821",D[P.Divide]="62247",D[P.DocumentOpen]="61822",D[P.DocumentShare]="61823",D[P.Document]="61824",D[P.Dollar]="61825",D[P.Dot]="61826",D[P.DoubleCaretHorizontal]="61827",D[P.DoubleCaretVertical]="61828",D[P.DoubleChevronDown]="61829",D[P.DoubleChevronLeft]="61830",D[P.DoubleChevronRight]="61831",D[P.DoubleChevronUp]="61832",D[P.DoughnutChart]="61833",D[P.Download]="61834",D[P.DragHandleHorizontal]="61835",D[P.DragHandleVertical]="61836",D[P.Draw]="61837",D[P.DrawerLeftFilled]="61838",D[P.DrawerLeft]="61839",D[P.DrawerRightFilled]="61840",D[P.DrawerRight]="61841",D[P.DriveTime]="61842",D[P.Duplicate]="61843",D[P.Edit]="61844",D[P.Eject]="61845",D[P.Emoji]="61846",D[P.Endnote]="62294",D[P.Endorsed]="61847",D[P.Envelope]="61848",D[P.Equals]="61849",D[P.Eraser]="61850",D[P.Error]="61851",D[P.Euro]="61852",D[P.Exchange]="61853",D[P.ExcludeRow]="61854",D[P.ExpandAll]="61855",D[P.Explain]="62285",D[P.Export]="61856",D[P.EyeOff]="61857",D[P.EyeOn]="61858",D[P.EyeOpen]="61859",D[P.FastBackward]="61860",D[P.FastForward]="61861",D[P.FeedSubscribed]="61862",D[P.Feed]="61863",D[P.Film]="61864",D[P.FilterKeep]="61865",D[P.FilterList]="61866",D[P.FilterOpen]="61867",D[P.FilterRemove]="61868",D[P.Filter]="61869",D[P.Flag]="61870",D[P.Flame]="61871",D[P.Flash]="61872",D[P.FloatingPoint]="62252",D[P.FloppyDisk]="61873",D[P.FlowBranch]="61874",D[P.FlowEnd]="61875",D[P.FlowLinear]="61876",D[P.FlowReviewBranch]="61877",D[P.FlowReview]="61878",D[P.Flows]="61879",D[P.FolderClose]="61880",D[P.FolderNew]="61881",D[P.FolderOpen]="61882",D[P.FolderSharedOpen]="61883",D[P.FolderShared]="61884",D[P.Follower]="61885",D[P.Following]="61886",D[P.Font]="61887",D[P.Fork]="61888",D[P.Form]="61889",D[P.Fuel]="62243",D[P.FullCircle]="61890",D[P.FullStackedChart]="61891",D[P.Fullscreen]="61892",D[P.Function]="61893",D[P.GanttChart]="61894",D[P.Generate]="62284",D[P.Geofence]="61895",D[P.Geolocation]="61896",D[P.Geosearch]="61897",D[P.Geotime]="62276",D[P.GitBranch]="61898",D[P.GitCommit]="61899",D[P.GitMerge]="61900",D[P.GitNewBranch]="61901",D[P.GitPull]="61902",D[P.GitPush]="61903",D[P.GitRepo]="61904",D[P.Glass]="61905",D[P.GlobeNetwork]="61906",D[P.Globe]="61907",D[P.GraphRemove]="61908",D[P.Graph]="61909",D[P.GreaterThanOrEqualTo]="61910",D[P.GreaterThan]="61911",D[P.GridView]="61912",D[P.Grid]="61913",D[P.GroupItem]="62282",D[P.GroupObjects]="61914",D[P.GroupedBarChart]="61915",D[P.HandDown]="61916",D[P.HandLeft]="61917",D[P.HandRight]="61918",D[P.HandUp]="61919",D[P.Hand]="61920",D[P.Hat]="61921",D[P.HeaderOne]="61922",D[P.HeaderThree]="61923",D[P.HeaderTwo]="61924",D[P.Header]="61925",D[P.Headset]="61926",D[P.HeartBroken]="61927",D[P.Heart]="61928",D[P.HeatGrid]="61929",D[P.Heatmap]="61930",D[P.Helicopter]="61931",D[P.Help]="61932",D[P.HelperManagement]="61933",D[P.HighPriority]="61934",D[P.HighVoltagePole]="62259",D[P.Highlight]="61935",D[P.History]="61936",D[P.Home]="61937",D[P.HorizontalBarChartAsc]="61938",D[P.HorizontalBarChartDesc]="61939",D[P.HorizontalBarChart]="61940",D[P.HorizontalDistribution]="61941",D[P.HorizontalInbetween]="62249",D[P.Hurricane]="61942",D[P.IdNumber]="61943",D[P.ImageRotateLeft]="61944",D[P.ImageRotateRight]="61945",D[P.Import]="61946",D[P.InboxFiltered]="61947",D[P.InboxGeo]="61948",D[P.InboxSearch]="61949",D[P.InboxUpdate]="61950",D[P.Inbox]="61951",D[P.InfoSign]="61952",D[P.Inheritance]="61953",D[P.InheritedGroup]="61954",D[P.InnerJoin]="61955",D[P.Input]="62283",D[P.Insert]="61956",D[P.Intelligence]="62263",D[P.Intersection]="61957",D[P.IpAddress]="61958",D[P.IssueClosed]="61959",D[P.IssueNew]="61960",D[P.Issue]="61961",D[P.Italic]="61962",D[P.JoinTable]="61963",D[P.KeyBackspace]="61964",D[P.KeyCommand]="61965",D[P.KeyControl]="61966",D[P.KeyDelete]="61967",D[P.KeyEnter]="61968",D[P.KeyEscape]="61969",D[P.KeyOption]="61970",D[P.KeyShift]="61971",D[P.KeyTab]="61972",D[P.Key]="61973",D[P.KnownVehicle]="61974",D[P.LabTest]="61975",D[P.Label]="61976",D[P.LayerOutline]="61977",D[P.Layer]="61978",D[P.Layers]="61979",D[P.LayoutAuto]="61980",D[P.LayoutBalloon]="61981",D[P.LayoutCircle]="61982",D[P.LayoutGrid]="61983",D[P.LayoutGroupBy]="61984",D[P.LayoutHierarchy]="61985",D[P.LayoutLinear]="61986",D[P.LayoutSkewGrid]="61987",D[P.LayoutSortedClusters]="61988",D[P.Layout]="61989",D[P.Learning]="61990",D[P.LeftJoin]="61991",D[P.LengthenText]="62270",D[P.LessThanOrEqualTo]="61992",D[P.LessThan]="61993",D[P.Lifesaver]="61994",D[P.Lightbulb]="61995",D[P.Lightning]="61996",D[P.Link]="61997",D[P.ListColumns]="61998",D[P.ListDetailView]="61999",D[P.List]="62000",D[P.Locate]="62001",D[P.Lock]="62002",D[P.Locomotive]="62267",D[P.LogIn]="62003",D[P.LogOut]="62004",D[P.LowVoltagePole]="62258",D[P.Manual]="62005",D[P.ManuallyEnteredData]="62006",D[P.ManyToMany]="62007",D[P.ManyToOne]="62008",D[P.MapCreate]="62009",D[P.MapMarker]="62010",D[P.Map]="62011",D[P.Maximize]="62012",D[P.Media]="62013",D[P.MenuClosed]="62014",D[P.MenuOpen]="62015",D[P.Menu]="62016",D[P.MergeColumns]="62017",D[P.MergeLinks]="62018",D[P.Microphone]="62275",D[P.Minimize]="62019",D[P.Minus]="62020",D[P.MobilePhone]="62021",D[P.MobileVideo]="62022",D[P.ModalFilled]="62023",D[P.Modal]="62024",D[P.Model]="62269",D[P.Moon]="62025",D[P.More]="62026",D[P.Mountain]="62027",D[P.Move]="62028",D[P.Mugshot]="62029",D[P.MultiSelect]="62030",D[P.Music]="62031",D[P.Nest]="62032",D[P.NewDrawing]="62033",D[P.NewGridItem]="62034",D[P.NewLayer]="62035",D[P.NewLayers]="62036",D[P.NewLink]="62037",D[P.NewObject]="62038",D[P.NewPerson]="62039",D[P.NewPrescription]="62040",D[P.NewShield]="62281",D[P.NewTextBox]="62041",D[P.Ninja]="62042",D[P.NotEqualTo]="62043",D[P.NotificationsSnooze]="62044",D[P.NotificationsUpdated]="62045",D[P.Notifications]="62046",D[P.NumberedList]="62047",D[P.Numerical]="62048",D[P.Office]="62049",D[P.Offline]="62050",D[P.OilField]="62051",D[P.OneColumn]="62052",D[P.OneToMany]="62053",D[P.OneToOne]="62054",D[P.OpenApplication]="62251",D[P.Outdated]="62055",D[P.PageLayout]="62056",D[P.PanelStats]="62057",D[P.PanelTable]="62058",D[P.Paperclip]="62059",D[P.Paragraph]="62060",D[P.PasteVariable]="62278",D[P.PathSearch]="62061",D[P.Path]="62062",D[P.Pause]="62063",D[P.People]="62064",D[P.Percentage]="62065",D[P.Person]="62066",D[P.PhoneCall]="62279",D[P.PhoneForward]="62280",D[P.Phone]="62067",D[P.PieChart]="62068",D[P.Pin]="62069",D[P.PivotTable]="62070",D[P.Pivot]="62071",D[P.Play]="62072",D[P.Playbook]="62244",D[P.Plus]="62073",D[P.PolygonFilter]="62074",D[P.Power]="62075",D[P.PredictiveAnalysis]="62076",D[P.Prescription]="62077",D[P.Presentation]="62078",D[P.Print]="62079",D[P.Projects]="62080",D[P.Properties]="62081",D[P.Property]="62082",D[P.PublishFunction]="62083",D[P.Pulse]="62084",D[P.Rain]="62085",D[P.Random]="62086",D[P.Record]="62087",D[P.RectHeight]="62245",D[P.RectWidth]="62246",D[P.Rectangle]="62241",D[P.Redo]="62088",D[P.Refresh]="62089",D[P.Regex]="62255",D[P.RegressionChart]="62090",D[P.RemoveColumnLeft]="62091",D[P.RemoveColumnRight]="62092",D[P.RemoveColumn]="62093",D[P.RemoveRowBottom]="62094",D[P.RemoveRowTop]="62095",D[P.Remove]="62096",D[P.Repeat]="62097",D[P.Reset]="62098",D[P.Resolve]="62099",D[P.Rig]="62100",D[P.RightJoin]="62101",D[P.Ring]="62102",D[P.RocketSlant]="62103",D[P.Rocket]="62104",D[P.RotateDocument]="62105",D[P.RotatePage]="62106",D[P.Route]="62107",D[P.Satellite]="62108",D[P.Saved]="62109",D[P.ScatterPlot]="62110",D[P.SearchAround]="62111",D[P.SearchTemplate]="62112",D[P.SearchText]="62113",D[P.Search]="62114",D[P.SegmentedControl]="62115",D[P.Select]="62116",D[P.Selection]="62117",D[P.SendBackward]="62293",D[P.SendMessage]="62118",D[P.SendToGraph]="62119",D[P.SendToMap]="62120",D[P.SendTo]="62121",D[P.Sensor]="62268",D[P.SeriesAdd]="62122",D[P.SeriesConfiguration]="62123",D[P.SeriesDerived]="62124",D[P.SeriesFiltered]="62125",D[P.SeriesSearch]="62126",D[P.Settings]="62127",D[P.Shapes]="62128",D[P.Share]="62129",D[P.SharedFilter]="62130",D[P.Shield]="62131",D[P.Ship]="62132",D[P.Shop]="62133",D[P.ShoppingCart]="62134",D[P.ShortenText]="62271",D[P.SignalSearch]="62135",D[P.SimCard]="62136",D[P.Slash]="62137",D[P.SmallCross]="62138",D[P.SmallInfoSign]="62260",D[P.SmallMinus]="62139",D[P.SmallPlus]="62140",D[P.SmallSquare]="62141",D[P.SmallTick]="62142",D[P.Snowflake]="62143",D[P.SoccerBall]="62288",D[P.SocialMedia]="62144",D[P.SortAlphabeticalDesc]="62145",D[P.SortAlphabetical]="62146",D[P.SortAsc]="62147",D[P.SortDesc]="62148",D[P.SortNumericalDesc]="62149",D[P.SortNumerical]="62150",D[P.Sort]="62151",D[P.SpellCheck]="62272",D[P.SplitColumns]="62152",D[P.SportsStadium]="62289",D[P.Square]="62153",D[P.StackedChart]="62154",D[P.StadiumGeometry]="62155",D[P.StarEmpty]="62156",D[P.Star]="62157",D[P.StepBackward]="62158",D[P.StepChart]="62159",D[P.StepForward]="62160",D[P.Stop]="62161",D[P.Stopwatch]="62162",D[P.Strikethrough]="62163",D[P.Style]="62164",D[P.Subscript]="62265",D[P.Superscript]="62266",D[P.SwapHorizontal]="62165",D[P.SwapVertical]="62166",D[P.Switch]="62167",D[P.SymbolCircle]="62168",D[P.SymbolCross]="62169",D[P.SymbolDiamond]="62170",D[P.SymbolRectangle]="62242",D[P.SymbolSquare]="62171",D[P.SymbolTriangleDown]="62172",D[P.SymbolTriangleUp]="62173",D[P.Syringe]="62174",D[P.Tag]="62175",D[P.TakeAction]="62176",D[P.Tank]="62177",D[P.Target]="62178",D[P.Taxi]="62179",D[P.Team]="62290",D[P.Temperature]="62180",D[P.TextHighlight]="62181",D[P.ThDerived]="62182",D[P.ThDisconnect]="62183",D[P.ThFiltered]="62184",D[P.ThList]="62185",D[P.Th]="62186",D[P.ThirdParty]="62187",D[P.ThumbsDown]="62188",D[P.ThumbsUp]="62189",D[P.TickCircle]="62190",D[P.Tick]="62191",D[P.Time]="62192",D[P.TimelineAreaChart]="62193",D[P.TimelineBarChart]="62194",D[P.TimelineEvents]="62195",D[P.TimelineLineChart]="62196",D[P.Tint]="62197",D[P.Torch]="62198",D[P.Tractor]="62199",D[P.Train]="62200",D[P.Translate]="62201",D[P.Trash]="62202",D[P.Tree]="62203",D[P.TrendingDown]="62204",D[P.TrendingUp]="62205",D[P.Trophy]="62287",D[P.Truck]="62206",D[P.TwoColumns]="62207",D[P.Unarchive]="62208",D[P.Underline]="62209",D[P.Undo]="62210",D[P.UngroupObjects]="62211",D[P.UnknownVehicle]="62212",D[P.Unlink]="62277",D[P.Unlock]="62213",D[P.Unpin]="62214",D[P.Unresolve]="62215",D[P.Updated]="62216",D[P.Upload]="62217",D[P.User]="62218",D[P.Variable]="62219",D[P.VerticalBarChartAsc]="62220",D[P.VerticalBarChartDesc]="62221",D[P.VerticalDistribution]="62222",D[P.VerticalInbetween]="62250",D[P.Video]="62223",D[P.Virus]="62224",D[P.VolumeDown]="62225",D[P.VolumeOff]="62226",D[P.VolumeUp]="62227",D[P.Walk]="62228",D[P.WarningSign]="62229",D[P.WaterfallChart]="62230",D[P.Waves]="62231",D[P.WidgetButton]="62232",D[P.WidgetFooter]="62233",D[P.WidgetHeader]="62234",D[P.Widget]="62235",D[P.Wind]="62236",D[P.Wrench]="62237",D[P.ZoomIn]="62238",D[P.ZoomOut]="62239",D[P.ZoomToFit]="62240";var T2={},O2={};for(var m1=0,vT=Object.values(P);m1<vT.length;m1++){var A0=vT[m1];T2[U6(A0)]=A0,O2[W6(A0).toUpperCase()]=A0}var A2=Le(Le({},T2),O2),G6=new Set(Object.values(A2));function B6(t){return typeof NODE_ENV<"u"&&NODE_ENV===t}function K6(t,e){return hn(this,void 0,void 0,function(){var n,r,i;return dh(this,function(o){switch(o.label){case 0:return n=B6("development")&&typeof performance<"u",n&&(r=performance.now(),console.info("Started '".concat(t,"'..."))),[4,e()];case 1:return o.sent(),n&&(i=Math.round(performance.now()-r),console.info("Finished '".concat(t,"' in ").concat(i,"ms"))),[2]}})})}function X6(t){return hn(this,void 0,void 0,function(){var e,n;return dh(this,function(r){switch(r.label){case 0:return e=t.loader,n=e===void 0?lh.defaultLoader:e,typeof n!="function"?[3,1]:[2,n];case 1:return n!=="all"?[3,3]:[4,KS(()=>import("./allPathsLoader-JIzW_pSb.js"),[])];case 2:return[2,r.sent().allPathsLoader];case 3:return[4,KS(()=>import("./splitPathsBySizeLoader-DkZadBcn.js"),[])];case 4:return[2,r.sent().splitPathsBySizeLoader]}})})}var Rm=function(){function t(){this.defaultLoader="split-by-size",this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}return t.setLoaderOptions=function(e){e.loader!==void 0&&(lh.defaultLoader=e.loader)},t.load=function(e,n,r){return hn(this,void 0,void 0,function(){var i=this;return dh(this,function(o){switch(o.label){case 0:return Array.isArray(e)||(e=[e]),[4,Promise.all(e.map(function(l){return i.loadImpl(l,n,r)}))];case 1:return o.sent(),[2]}})})},t.loadAll=function(e){return hn(this,void 0,void 0,function(){var n,r=this;return dh(this,function(i){return n=Object.values(A2),K6("[Blueprint] loading all icons",function(){return hn(r,void 0,void 0,function(){return dh(this,function(o){switch(o.label){case 0:return[4,Promise.all([this.load(n,mt.STANDARD,e),this.load(n,mt.LARGE,e)])];case 1:return o.sent(),[2]}})})}),[2]})})},t.getPaths=function(e,n){if(this.isValidIconName(e)){var r=n<mt.LARGE?lh.loadedIconPaths16:lh.loadedIconPaths20;return r.get(e)}},t.loadImpl=function(e,n,r){return r===void 0&&(r={}),hn(this,void 0,void 0,function(){var i,o,l,c,f;return dh(this,function(h){switch(h.label){case 0:return this.isValidIconName(e)?(i=n<mt.LARGE?lh.loadedIconPaths16:lh.loadedIconPaths20,i.has(e)?[2]:[4,X6(r)]):(console.error("[Blueprint] Unknown icon '".concat(e,"'")),[2]);case 1:o=h.sent(),h.label=2;case 2:return h.trys.push([2,4,,5]),l=n<mt.LARGE?mt.STANDARD:mt.LARGE,[4,o(e,l)];case 3:return c=h.sent(),i.set(e,c),[3,5];case 4:return f=h.sent(),console.error("[Blueprint] Unable to load ".concat(n,"px icon '").concat(e,"'"),f),[3,5];case 5:return[2]}})})},t.isValidIconName=function(e){return G6.has(e)},t}(),lh=new Rm,Y6="bp5",yT="".concat(Y6,"-icon"),_T=new Map;function Q6(t){var e,n=(e=_T.get(t))!==null&&e!==void 0?e:0;return _T.set(t,n+1),"".concat(t,"-").concat(n)}var _l=N.forwardRef(function(t,e){var n=t.children,r=t.className,i=t.color,o=t.htmlTitle,l=t.iconName,c=t.size,f=c===void 0?mt.STANDARD:c,h=t.svgProps,g=t.tagName,m=g===void 0?"span":g,v=t.title,S=Nn(t,["children","className","color","htmlTitle","iconName","size","svgProps","tagName","title"]),b=f>=mt.LARGE,A=b?mt.LARGE:mt.STANDARD,C="0 0 ".concat(A," ").concat(A),E=Q6("iconTitle"),k=Le({fill:i,height:f,role:"img",viewBox:C,width:f},h);return m===null?N.createElement("svg",Le({"aria-labelledby":v?E:void 0,"data-icon":l,ref:e},k,S,{className:et(r,h?.className)}),v&&N.createElement("title",{id:E},v),n):N.createElement(m,Le(Le({"aria-hidden":v?void 0:!0},S),{className:et(yT,"".concat(yT,"-").concat(l),r),ref:e,title:o}),N.createElement("svg",Le({"data-icon":l},k,{className:h?.className}),v&&N.createElement("title",null,v),n))});_l.displayName="Blueprint5.SVGIconContainer";var pC=N.forwardRef(function(t,e){var n=t.size>=mt.LARGE,r=n?mt.LARGE:mt.STANDARD,i="".concat(-1*r/.05/2),o={transformOrigin:"center"};return N.createElement(_l,Le({iconName:"caret-right",ref:e},t),N.createElement("path",{d:n?"M280 200C280 206.2 277 211.4 272.6 215.2L272.8 215.4L152.8 315.4L152.6 315.2C149.2 318 144.8 320 140 320C129 320 120 311 120 300V100C120 89 129 80 140 80C144.8 80 149.2 82 152.6 84.8L152.8 84.6L272.8 184.6L272.6 184.8C277 188.6 280 193.8 280 200z":"M220 160C220 163 218.6 165.6 216.6 167.4L216.6 167.4L136.6 237.4L136.6 237.4C134.8 239 132.6 240 130 240C124.4 240 120 235.6 120 230V90C120 84.4 124.4 80 130 80C132.6 80 134.8 81 136.6 82.6C136.6 82.6 136.6 82.6 136.6 82.6L216.6 152.6L216.6 152.6C218.6 154.4 220 157 220 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:o}))});pC.defaultProps={size:mt.STANDARD};pC.displayName="Blueprint5.Icon.CaretRight";var mC=N.forwardRef(function(t,e){var n=t.size>=mt.LARGE,r=n?mt.LARGE:mt.STANDARD,i="".concat(-1*r/.05/2),o={transformOrigin:"center"};return N.createElement(_l,Le({iconName:"error",ref:e},t),N.createElement("path",{d:n?"M200 400C89.6 400 0 310.4 0 200C0 89.6 89.6 0 200 0S400 89.6 400 200C400 310.4 310.4 400 200 400zM220 80H180V120H220V80zM220 140H180V320H220V140z":"M159.8 320.2C71.4 320.2 -0.2 248.6 -0.2 160.2S71.4 0.2 159.8 0.2S319.8 71.8 319.8 160.2S248.2 320.2 159.8 320.2zM179.8 60.2H139.8V100.2H179.8V60.2zM179.8 120.2H139.8V260.2H179.8V120.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:o}))});mC.defaultProps={size:mt.STANDARD};mC.displayName="Blueprint5.Icon.Error";var gC=N.forwardRef(function(t,e){var n=t.size>=mt.LARGE,r=n?mt.LARGE:mt.STANDARD,i="".concat(-1*r/.05/2),o={transformOrigin:"center"};return N.createElement(_l,Le({iconName:"info-sign",ref:e},t),N.createElement("path",{d:n?"M200 400C89.6 400 0 310.4 0 200C0 89.6 89.6 0 200 0S400 89.6 400 200C400 310.4 310.4 400 200 400zM180 320H220V280H180V320zM260 80H140V100H180V240H160V260H220V100H260V80z":"M160 320C71.6 320 0 248.4 0 160S71.6 0 160 0S320 71.6 320 160S248.4 320 160 320zM140 260H180V220H140V260zM200 60H120V80H140V180H120V200H180V80H200V60z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:o}))});gC.defaultProps={size:mt.STANDARD};gC.displayName="Blueprint5.Icon.InfoSign";var b_=N.forwardRef(function(t,e){var n=t.size>=mt.LARGE,r=n?mt.LARGE:mt.STANDARD,i="".concat(-1*r/.05/2),o={transformOrigin:"center"};return N.createElement(_l,Le({iconName:"small-cross",ref:e},t),N.createElement("path",{d:n?"M228.2 200L294 265.8C297.8 269.4 300 274.4 300 280C300 291 291 300 280 300C274.4000000000001 300 269.4000000000001 297.8 265.8 294.2L200 228.2L134.2 294.2C130.6 297.8 125.6 300 120 300C109 300 100 291 100 280C100 274.4 102.2 269.4 105.8 265.8L171.8 200L106 134.2000000000001C102.2 130.6 100 125.6 100 120C100 109 109 100 120 100C125.6 100 130.6 102.2 134.2 105.8L200 171.8L265.8 106C269.4000000000001 102.2 274.4000000000001 100 280 100C291 100 300 109 300 120C300 125.6 297.8 130.6 294.2000000000001 134.2000000000001L228.2 200z":"M188.2 160L234 205.8C237.8 209.4 240 214.4 240 220C240 231 231 240 220 240C214.4 240 209.4 237.8 205.8 234.2L160 188.2L114.2 234.2C110.6 237.8 105.6 240 100 240C89 240 80 231 80 220C80 214.4 82.2 209.4 85.8 205.8L131.8 160L86 114.2C82.2 110.6 80 105.6 80 100C80 89 89 80 100 80C105.6 80 110.6 82.2 114.2 85.8L160 131.8L205.8 86C209.4 82.2 214.4 80 220 80C231 80 240 89 240 100C240 105.6 237.8 110.6 234.2 114.2L188.2 160z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:o}))});b_.defaultProps={size:mt.STANDARD};b_.displayName="Blueprint5.Icon.SmallCross";var vC=N.forwardRef(function(t,e){var n=t.size>=mt.LARGE,r=n?mt.LARGE:mt.STANDARD,i="".concat(-1*r/.05/2),o={transformOrigin:"center"};return N.createElement(_l,Le({iconName:"small-tick",ref:e},t),N.createElement("path",{d:n?"M300 300C294.4000000000001 300 289.4000000000001 297.8 285.8 294.2L160 168.2L114.2 214.2C110.6 217.8 105.6 220 100 220C89 220 80 211 80 200C80 194.4 82.2 189.4 85.8 185.8L145.8 125.8C149.4 122.2 154.4 120 160 120S170.6 122.2 174.2 125.8L314.2000000000001 265.8C317.8 269.4 320 274.4 320 280C320 291 311 300 300 300z":"M240 220C234.4 220 229.4 217.8 225.8 214.2L140 128.2L94.2 174.2C90.6 177.8 85.6 180 80 180C69 180 60 171 60 160C60 154.4 62.2 149.4 65.8 145.8L125.8 85.8C129.4 82.2 134.4 80 140 80S150.6 82.2 154.2 85.8L254.2 185.8C257.8 189.4 260 194.4 260 200C260 211 251 220 240 220z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:o}))});vC.defaultProps={size:mt.STANDARD};vC.displayName="Blueprint5.Icon.SmallTick";var yC=N.forwardRef(function(t,e){var n=t.size>=mt.LARGE,r=n?mt.LARGE:mt.STANDARD,i="".concat(-1*r/.05/2),o={transformOrigin:"center"};return N.createElement(_l,Le({iconName:"tick",ref:e},t),N.createElement("path",{d:n?"M340 320C334.4 320 329.4 317.8 325.8 314.2L140 128.2L74.2 194C70.6 197.8 65.6 200 60 200C49 200 40 191 40 180C40 174.4 42.2 169.4 45.8 165.8L125.8 85.8C129.4 82.2 134.4 80 140 80S150.6 82.2 154.2 85.8L354.2000000000001 285.8C357.8 289.4 360 294.4 360 300C360 311 351 320 340 320z":"M280 260C274.4000000000001 260 269.4000000000001 257.8 265.8 254.2L120 108.2L54.2 174.2C50.6 177.8 45.6 180 40 180C29 180 20 171 20 160C20 154.4 22.2 149.4 25.8 145.8L105.8 65.8C109.4 62.2 114.4 60 120 60S130.6 62.2 134.2 65.8L294.2000000000001 225.8C297.8 229.4 300 234.4 300 240C300 251 291 260 280 260z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:o}))});yC.defaultProps={size:mt.STANDARD};yC.displayName="Blueprint5.Icon.Tick";var _C=N.forwardRef(function(t,e){var n=t.size>=mt.LARGE,r=n?mt.LARGE:mt.STANDARD,i="".concat(-1*r/.05/2),o={transformOrigin:"center"};return N.createElement(_l,Le({iconName:"warning-sign",ref:e},t),N.createElement("path",{d:n?"M397.2 49.6C397.2 49.6 397.4000000000001 49.8000000000001 397.4000000000001 49.8000000000001L217.4 369.8000000000001C217.4 369.8000000000001 217.2 369.6 217.2 369.6C213.8 375.8 207.4 380 200 380S186.2 375.8 182.8 369.6L182.6 369.8L2.6 49.8L2.8 49.5999999999999C1.2 46.8 0 43.6 0 40C0 29 9 20 20 20H380C391 20 400 29 400 40C400 43.6 398.8 46.8 397.2 49.6zM220 60H180V100H220V60zM220 120H180V280H220V120z":"M316.8 50L317 50.2L177 290.2L176.8 290C173.4 296 167.2 300 159.8 300S146.4 296 142.8 290C142.8 290 142.6 290.2 142.6 290.2L2.6 50.2L2.8 50C1 47 -0.2 43.8 -0.2 40C-0.2 29 8.8 20 19.8 20H299.8C310.8 20 319.8 29 319.8 40C319.8 43.8 318.6 47 316.8 50zM179.8 60.2H139.8V100.2H179.8V60.2zM179.8 120.2H139.8V220.2H179.8V120.2z",fillRule:"evenodd",transform:"scale(0.05, -0.05) translate(".concat(i,", ").concat(i,")"),style:o}))});_C.defaultProps={size:mt.STANDARD};_C.displayName="Blueprint5.Icon.WarningSign";var Dr=N.forwardRef(function(t,e){var n,r,i=t.autoLoad,o=t.className,l=t.color,c=t.icon,f=t.intent,h=t.tagName,g=t.svgProps,m=t.title,v=t.htmlTitle,S=Nn(t,["autoLoad","className","color","icon","intent","tagName","svgProps","title","htmlTitle"]),b=(r=(n=t.iconSize)!==null&&n!==void 0?n:t.size)!==null&&r!==void 0?r:mt.STANDARD,A=N.useState(function(){return typeof c=="string"?Rm.getPaths(c,b):void 0}),C=A[0],E=A[1];if(N.useEffect(function(){var x=!1;if(typeof c=="string"){var w=Rm.getPaths(c,b);w!==void 0?E(w):i?Rm.load(c,b).then(function(){x||E(Rm.getPaths(c,b))}).catch(function(R){console.error("[Blueprint] Icon '".concat(c,"' (").concat(b,"px) could not be loaded."),R)}):console.error("[Blueprint] Icon '".concat(c,"' (").concat(b,"px) is not loaded yet and autoLoad={false}, did you call Icons.load('").concat(c,"', ").concat(b,")?"))}return function(){x=!0}},[i,c,b]),c==null||typeof c=="boolean")return null;if(typeof c!="string")return c;if(C==null){var k=b===mt.STANDARD?G$:b===mt.LARGE?B$:void 0;return N.createElement(h,Le(Le({"aria-hidden":m?void 0:!0},ff(S)),{className:et(fC,k,X$(c),ro(f),o),"data-icon":c,ref:e,title:v}))}else{var T=C.map(function(x,w){return N.createElement("path",{d:x,key:w,fillRule:"evenodd"})});return N.createElement(_l,Le({children:T,className:et(ro(f),o),color:l,htmlTitle:v,iconName:c,ref:e,size:b,svgProps:g,tagName:h,title:m},ff(S)))}});Dr.defaultProps={autoLoad:!0,tagName:"span"};Dr.displayName="".concat(Ht,".Icon");var Bc;(function(t){t[t.SMALL=20]="SMALL",t[t.STANDARD=50]="STANDARD",t[t.LARGE=100]="LARGE"})(Bc||(Bc={}));var pu=45,wT="M 50,50 m 0,-".concat(pu," a ").concat(pu,",").concat(pu," 0 1 1 0,").concat(pu*2," a ").concat(pu,",").concat(pu," 0 1 1 0,-").concat(pu*2),bm=280,Z6=10,J6=4,e5=16,R2=function(t){Qn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.componentDidUpdate=function(n){n.value!==this.props.value&&this.forceUpdate()},e.prototype.render=function(){var n,r=this.props,i=r.className,o=r.intent,l=r.value,c=r.tagName,f=c===void 0?"div":c,h=Nn(r,["className","intent","value","tagName"]),g=this.getSize(),m=et(w_,ro(o),(n={},n[F$]=l!=null,n),i),v=Math.min(e5,J6*Bc.LARGE/g),S=bm-bm*(l==null?.25:w2(l,0,1));return N.createElement(f,Le({"aria-label":"loading","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":l===void 0?void 0:l*100,className:m,role:"progressbar"},h),N.createElement(f,{className:M$},N.createElement("svg",{width:g,height:g,strokeWidth:v.toFixed(2),viewBox:this.getViewBox(v)},N.createElement("path",{className:$$,d:wT}),N.createElement("path",{className:I$,d:wT,pathLength:bm,strokeDasharray:"".concat(bm," ").concat(bm),strokeDashoffset:S}))))},e.prototype.validateProps=function(n){var r=n.className,i=r===void 0?"":r,o=n.size;o!=null&&(i.indexOf(eg)>=0||i.indexOf(hl)>=0)&&console.warn(C6)},e.prototype.getSize=function(){var n=this.props,r=n.className,i=r===void 0?"":r,o=n.size;return o==null?i.indexOf(eg)>=0?Bc.SMALL:i.indexOf(hl)>=0?Bc.LARGE:Bc.STANDARD:Math.max(Z6,o)},e.prototype.getViewBox=function(n){var r=pu+n/2,i=(50-r).toFixed(2),o=(r*2).toFixed(2);return"".concat(i," ").concat(i," ").concat(o," ").concat(o)},e.displayName="".concat(Ht,".Spinner"),e}(lr),t5=_2()?N.useLayoutEffect:N.useEffect,Lg=N.forwardRef(function(t,e){var n,r=t.children,i=t.tagName,o=i===void 0?"div":i,l=t.title,c=t.className,f=t.ellipsize,h=Nn(t,["children","tagName","title","className","ellipsize"]),g=N.useRef(),m=N.useMemo(function(){return cf(g,e)},[e]),v=N.useState(""),S=v[0],b=v[1],A=N.useState(),C=A[0],E=A[1];return t5(function(){var k;((k=g.current)===null||k===void 0?void 0:k.textContent)!=null&&(E(f&&g.current.scrollWidth>g.current.clientWidth),b(g.current.textContent))},[g,r,f]),N.createElement(o,Le(Le({},h),{className:et((n={},n[M3]=f,n),c),ref:m,title:l??(C?S:void 0)}),r)});Lg.defaultProps={ellipsize:!1};Lg.displayName="".concat(Ht,".Text");var df=N.forwardRef(function(t,e){var n=N2(t,e);return N.createElement("button",Le({type:"button"},ff(t),n),P2(t))});df.displayName="".concat(Ht,".Button");var k2=N.forwardRef(function(t,e){var n=t.href,r=t.tabIndex,i=r===void 0?0:r,o=N2(t,e);return N.createElement("a",Le({role:"button"},ff(t),o,{"aria-disabled":o.disabled,href:o.disabled?void 0:n,tabIndex:o.disabled?-1:i}),P2(t))});k2.displayName="".concat(Ht,".AnchorButton");function N2(t,e){var n,r=t.active,i=r===void 0?!1:r,o=t.alignText,l=t.fill,c=t.large,f=t.loading,h=f===void 0?!1:f,g=t.minimal,m=t.onBlur,v=t.onKeyDown,S=t.onKeyUp,b=t.outlined,A=t.small,C=t.tabIndex,E=t.disabled||h,k=N.useState(),T=k[0],x=k[1],w=N.useState(!1),R=w[0],I=w[1],F=N.useRef(null),U=N.useCallback(function(J){R&&I(!1),m?.(J)},[R,m]),V=N.useCallback(function(J){rg(J)&&(J.preventDefault(),J.key!==T&&I(!0)),x(J.key),v?.(J)},[T,v]),K=N.useCallback(function(J){var oe;rg(J)&&(I(!1),(oe=F.current)===null||oe===void 0||oe.click()),x(void 0),S?.(J)},[S]),Z=et(v_,(n={},n[Jm]=!E&&(i||R),n[Pg]=E,n[uf]=l,n[hl]=c,n[k3]=h,n[lC]=g,n[N3]=b,n[eg]=A,n),dC(o),ro(t.intent),t.className);return{className:Z,disabled:E,onBlur:U,onClick:E?void 0:t.onClick,onFocus:E?void 0:t.onFocus,onKeyDown:V,onKeyUp:K,ref:cf(F,e),tabIndex:E?-1:C}}function P2(t){var e=t.children,n=t.ellipsizeText,r=t.icon,i=t.loading,o=t.rightIcon,l=t.text,c=t.textClassName,f=!ng(l)||!ng(e);return N.createElement(N.Fragment,null,i&&N.createElement(R2,{key:"loading",className:q3,size:Bc.SMALL}),N.createElement(Dr,{key:"leftIcon",icon:r}),f&&N.createElement(Lg,{key:"text",className:et(U3,c),ellipsize:n,tagName:"span"},l,e),N.createElement(Dr,{key:"rightIcon",icon:o}))}function ea(t,e){return N.forwardRef(function(n,r){var i=n.className,o=n.children,l=Nn(n,["className","children"]);return N.createElement(t,Le(Le({},l),{className:et(e,i),ref:r}),o)})}var n5=ea("h1",Wh),ey=ea("h2",Wh);ea("h3",Wh);var D2=ea("h4",Wh),r5=ea("h5",Wh),i5=ea("h6",Wh);ea("blockquote",I3);ea("code",F3);ea("pre",$3);ea("label",s$);ea("ol",s2);ea("ul",s2);function hi(){return hi=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},hi.apply(this,arguments)}function C_(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Ay(t,e){return Ay=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ay(t,e)}function wC(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ay(t,e)}function o5(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function a5(t,e){t.classList?t.classList.add(e):o5(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function ST(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function s5(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=ST(t.className,e):t.setAttribute("class",ST(t.className&&t.className.baseVal||"",e))}var Mg=aR();const hh=oo(Mg),l5=oR({__proto__:null,default:hh},[Mg]),bT={disabled:!1},Ry=je.createContext(null);var L2=function(e){return e.scrollTop},km="unmounted",Fc="exited",$c="entering",uh="entered",eb="exiting",wl=function(t){wC(e,t);function e(r,i){var o;o=t.call(this,r,i)||this;var l=i,c=l&&!l.isMounting?r.enter:r.appear,f;return o.appearStatus=null,r.in?c?(f=Fc,o.appearStatus=$c):f=uh:r.unmountOnExit||r.mountOnEnter?f=km:f=Fc,o.state={status:f},o.nextCallback=null,o}e.getDerivedStateFromProps=function(i,o){var l=i.in;return l&&o.status===km?{status:Fc}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var l=this.state.status;this.props.in?l!==$c&&l!==uh&&(o=$c):(l===$c||l===uh)&&(o=eb)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,l,c;return o=l=c=i,i!=null&&typeof i!="number"&&(o=i.exit,l=i.enter,c=i.appear!==void 0?i.appear:l),{exit:o,enter:l,appear:c}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===$c){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:hh.findDOMNode(this);l&&L2(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fc&&this.setState({status:km})},n.performEnter=function(i){var o=this,l=this.props.enter,c=this.context?this.context.isMounting:i,f=this.props.nodeRef?[c]:[hh.findDOMNode(this),c],h=f[0],g=f[1],m=this.getTimeouts(),v=c?m.appear:m.enter;if(!i&&!l||bT.disabled){this.safeSetState({status:uh},function(){o.props.onEntered(h)});return}this.props.onEnter(h,g),this.safeSetState({status:$c},function(){o.props.onEntering(h,g),o.onTransitionEnd(v,function(){o.safeSetState({status:uh},function(){o.props.onEntered(h,g)})})})},n.performExit=function(){var i=this,o=this.props.exit,l=this.getTimeouts(),c=this.props.nodeRef?void 0:hh.findDOMNode(this);if(!o||bT.disabled){this.safeSetState({status:Fc},function(){i.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:eb},function(){i.props.onExiting(c),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:Fc},function(){i.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,l=!0;return this.nextCallback=function(c){l&&(l=!1,o.nextCallback=null,i(c))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var l=this.props.nodeRef?this.props.nodeRef.current:hh.findDOMNode(this),c=i==null&&!this.props.addEndListener;if(!l||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],h=f[0],g=f[1];this.props.addEndListener(h,g)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===km)return null;var o=this.props,l=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var c=C_(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return je.createElement(Ry.Provider,{value:null},typeof l=="function"?l(i,c):je.cloneElement(je.Children.only(l),c))},e}(je.Component);wl.contextType=Ry;wl.propTypes={};function oh(){}wl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:oh,onEntering:oh,onEntered:oh,onExit:oh,onExiting:oh,onExited:oh};wl.UNMOUNTED=km;wl.EXITED=Fc;wl.ENTERING=$c;wl.ENTERED=uh;wl.EXITING=eb;var u5=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return a5(e,r)})},g1=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return s5(e,r)})},Lm=function(t){wC(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return r=t.call.apply(t,[this].concat(o))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(c,f){var h=r.resolveArguments(c,f),g=h[0],m=h[1];r.removeClasses(g,"exit"),r.addClass(g,m?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(c,f)},r.onEntering=function(c,f){var h=r.resolveArguments(c,f),g=h[0],m=h[1],v=m?"appear":"enter";r.addClass(g,v,"active"),r.props.onEntering&&r.props.onEntering(c,f)},r.onEntered=function(c,f){var h=r.resolveArguments(c,f),g=h[0],m=h[1],v=m?"appear":"enter";r.removeClasses(g,v),r.addClass(g,v,"done"),r.props.onEntered&&r.props.onEntered(c,f)},r.onExit=function(c){var f=r.resolveArguments(c),h=f[0];r.removeClasses(h,"appear"),r.removeClasses(h,"enter"),r.addClass(h,"exit","base"),r.props.onExit&&r.props.onExit(c)},r.onExiting=function(c){var f=r.resolveArguments(c),h=f[0];r.addClass(h,"exit","active"),r.props.onExiting&&r.props.onExiting(c)},r.onExited=function(c){var f=r.resolveArguments(c),h=f[0];r.removeClasses(h,"exit"),r.addClass(h,"exit","done"),r.props.onExited&&r.props.onExited(c)},r.resolveArguments=function(c,f){return r.props.nodeRef?[r.props.nodeRef.current,c]:[c,f]},r.getClassNames=function(c){var f=r.props.classNames,h=typeof f=="string",g=h&&f?f+"-":"",m=h?""+g+c:f[c],v=h?m+"-active":f[c+"Active"],S=h?m+"-done":f[c+"Done"];return{baseClassName:m,activeClassName:v,doneClassName:S}},r}var n=e.prototype;return n.addClass=function(i,o,l){var c=this.getClassNames(o)[l+"ClassName"],f=this.getClassNames("enter"),h=f.doneClassName;o==="appear"&&l==="done"&&h&&(c+=" "+h),l==="active"&&i&&L2(i),c&&(this.appliedClasses[o][l]=c,u5(i,c))},n.removeClasses=function(i,o){var l=this.appliedClasses[o],c=l.base,f=l.active,h=l.done;this.appliedClasses[o]={},c&&g1(i,c),f&&g1(i,f),h&&g1(i,h)},n.render=function(){var i=this.props;i.classNames;var o=C_(i,["classNames"]);return je.createElement(wl,hi({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(je.Component);Lm.defaultProps={classNames:""};Lm.propTypes={};function ky(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function SC(t,e){var n=function(o){return e&&N.isValidElement(o)?e(o):o},r=Object.create(null);return t&&N.Children.map(t,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function c5(t,e){t=t||{},e=e||{};function n(g){return g in e?e[g]:t[g]}var r=Object.create(null),i=[];for(var o in t)o in e?i.length&&(r[o]=i,i=[]):i.push(o);var l,c={};for(var f in e){if(r[f])for(l=0;l<r[f].length;l++){var h=r[f][l];c[r[f][l]]=n(h)}c[f]=n(f)}for(l=0;l<i.length;l++)c[i[l]]=n(i[l]);return c}function Kc(t,e,n){return n[e]!=null?n[e]:t.props[e]}function f5(t,e){return SC(t.children,function(n){return N.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:Kc(n,"appear",t),enter:Kc(n,"enter",t),exit:Kc(n,"exit",t)})})}function d5(t,e,n){var r=SC(t.children),i=c5(e,r);return Object.keys(i).forEach(function(o){var l=i[o];if(N.isValidElement(l)){var c=o in e,f=o in r,h=e[o],g=N.isValidElement(h)&&!h.props.in;f&&(!c||g)?i[o]=N.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:Kc(l,"exit",t),enter:Kc(l,"enter",t)}):!f&&c&&!g?i[o]=N.cloneElement(l,{in:!1}):f&&c&&N.isValidElement(h)&&(i[o]=N.cloneElement(l,{onExited:n.bind(null,l),in:h.props.in,exit:Kc(l,"exit",t),enter:Kc(l,"enter",t)}))}}),i}var h5=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},p5={component:"div",childFactory:function(e){return e}},bC=function(t){wC(e,t);function e(r,i){var o;o=t.call(this,r,i)||this;var l=o.handleExited.bind(ky(o));return o.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},o}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(i,o){var l=o.children,c=o.handleExited,f=o.firstRender;return{children:f?f5(i,c):d5(i,l,c),firstRender:!1}},n.handleExited=function(i,o){var l=SC(this.props.children);i.key in l||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(c){var f=hi({},c.children);return delete f[i.key],{children:f}}))},n.render=function(){var i=this.props,o=i.component,l=i.childFactory,c=C_(i,["component","childFactory"]),f=this.state.contextValue,h=h5(this.state.children).map(l);return delete c.appear,delete c.enter,delete c.exit,o===null?je.createElement(Ry.Provider,{value:f},h):je.createElement(Ry.Provider,{value:f},je.createElement(o,c,h))},e}(je.Component);bC.propTypes={};bC.defaultProps=p5;var m5=function(){var t=1,e=new WeakMap,n=function(r,i){return typeof r=="number"||typeof r=="string"?i?"idx-".concat(i):"val-".concat(r):e.has(r)?"uid"+e.get(r):(e.set(r,t++),n(r))};return n},M2=function(t){return t===void 0&&(t=""),{value:1,prefix:t,uid:m5()}},g5=M2(),v5=N.createContext(M2()),y5=function(t){return t.value++},_5=function(t){return t?t.prefix:""},w5=function(t){var e=t||g5,n=_5(e),r=y5(e),i=n+r,o=function(l){return i+e.uid(l)};return{uid:i,gen:o}},S5=function(){var t=N.useContext(v5),e=N.useState(function(){return w5(t)})[0];return e},b5=function(){var t=S5().uid;return t},C5=N.createContext({hasProvider:!1,stack:{current:[]}}),v1={exports:{}},y1={};/**
|
|
51
|
+
* @license React
|
|
52
|
+
* use-sync-external-store-shim.production.min.js
|
|
53
|
+
*
|
|
54
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the MIT license found in the
|
|
57
|
+
* LICENSE file in the root directory of this source tree.
|
|
58
|
+
*/var CT;function x5(){if(CT)return y1;CT=1;var t=a_();function e(m,v){return m===v&&(m!==0||1/m===1/v)||m!==m&&v!==v}var n=typeof Object.is=="function"?Object.is:e,r=t.useState,i=t.useEffect,o=t.useLayoutEffect,l=t.useDebugValue;function c(m,v){var S=v(),b=r({inst:{value:S,getSnapshot:v}}),A=b[0].inst,C=b[1];return o(function(){A.value=S,A.getSnapshot=v,f(A)&&C({inst:A})},[m,S,v]),i(function(){return f(A)&&C({inst:A}),m(function(){f(A)&&C({inst:A})})},[m]),l(S),S}function f(m){var v=m.getSnapshot;m=m.value;try{var S=v();return!n(m,S)}catch{return!0}}function h(m,v){return v()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:c;return y1.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:g,y1}var xT;function E5(){return xT||(xT=1,v1.exports=x5()),v1.exports}var T5=E5(),Mm=[],ty=[],O5=function(t){t(Mm),ty.forEach(function(e){return e()})},_1={getSnapshot:function(){return Mm},subscribe:function(t){return ty.push(t),function(){var e=ty.indexOf(t);ty.splice(e,1)}}};function A5(){var t=T5.useSyncExternalStore(_1.subscribe,_1.getSnapshot,_1.getSnapshot),e=je.useCallback(function(){return t.at(-1)},[t]),n=je.useCallback(function(l){var c=t.findIndex(function(f){return f.id===l});return t.slice(c)},[t]),r=je.useCallback(function(){O5(function(l){return l.splice(0,l.length)})},[]),i=je.useCallback(function(l){Mm.push(l),l.props.usePortal&&l.props.hasBackdrop&&document.body.classList.add(tg)},[]),o=je.useCallback(function(l){var c=t.filter(function(h){return h.props.usePortal&&h.props.hasBackdrop&&h.id!==l}),f=Mm.findIndex(function(h){return h.id===l});f>-1&&Mm.splice(f,1),c.length===0&&document.body.classList.remove(tg)},[t]);return{closeOverlay:o,getLastOpened:e,getThisOverlayAndDescendants:n,openOverlay:i,resetStack:r}}function R5(){var t=je.useContext(C5),e=t.stack,n=t.hasProvider,r=A5(),i=je.useCallback(function(){return e.current.at(-1)},[e]),o=je.useCallback(function(h){var g=e.current.findIndex(function(m){return m.id===h});return g===-1?[]:e.current.slice(g)},[e]),l=je.useCallback(function(){e.current=[]},[e]),c=je.useCallback(function(h){e.current.push(h),h.props.usePortal&&h.props.hasBackdrop&&document.body.classList.add(tg)},[e]),f=je.useCallback(function(h){var g=e.current.filter(function(v){return v.props.usePortal&&v.props.hasBackdrop&&v.id!==h}),m=e.current.findIndex(function(v){return v.id===h});m>-1&&e.current.splice(m,1),g.length===0&&document.body.classList.remove(tg)},[e]);return n?{closeOverlay:f,getLastOpened:i,getThisOverlayAndDescendants:o,openOverlay:c,resetStack:l}:(Oh("development")&&console.error(T6),r)}function k5(t){var e=N.useRef();return N.useEffect(function(){e.current=t},[t]),e.current}function w1(t){var e=Uo(t),n=e!=null?Array.from(e.querySelectorAll(['a[href]:not([tabindex="-1"])','button:not([disabled]):not([tabindex="-1"])','details:not([tabindex="-1"])','input:not([disabled]):not([tabindex="-1"])','select:not([disabled]):not([tabindex="-1"])','textarea:not([disabled]):not([tabindex="-1"])','[tabindex]:not([tabindex="-1"])'].join(","))):[];return n.filter(function(r){return!r.classList.contains(m2)&&!r.classList.contains(g2)})}var N5=N.createContext({}),P5={blueprintPortalClassName:function(t,e){if(t[e]!=null&&typeof t[e]!="string")return new Error(S6)}};function CC(t,e){var n,r=t.className,i=t.stopPropagationEvents,o=t.container,l=t.onChildrenMount,c=t.children;e===void 0&&(e={});var f=N.useContext(N5),h=(n=o??f.portalContainer)!==null&&n!==void 0?n:typeof document<"u"?document.body:void 0,g=N.useState(),m=g[0],v=g[1],S=N.useCallback(function(){var b=document.createElement("div");b.classList.add(L$),R0(b.classList,r),R0(b.classList,f.portalClassName),ET(b,i);var A=e.blueprintPortalClassName;return A!=null&&A!==""&&(console.error(b6),R0(b.classList,A)),b},[r,f.portalClassName,e.blueprintPortalClassName,i]);return N.useEffect(function(){if(h!=null){var b=S();return h.appendChild(b),v(b),function(){TT(b,i),b.remove(),v(void 0)}}},[h,S,i]),N.useEffect(function(){m!=null&&l?.()},[m,l]),N.useEffect(function(){if(m!=null)return R0(m.classList,r),function(){return D5(m.classList,r)}},[r,m]),N.useEffect(function(){if(m!=null)return ET(m,i),function(){return TT(m,i)}},[m,i]),typeof document>"u"||m==null?null:Mg.createPortal(c,m)}CC.displayName="".concat(Ht,".Portal");D6()||(CC.contextTypes=P5);function D5(t,e){e!=null&&e!==""&&t.remove.apply(t,e.split(" "))}function R0(t,e){e!=null&&e!==""&&t.add.apply(t,e.split(" "))}function ET(t,e){e?.forEach(function(n){return t.addEventListener(n,I2)})}function TT(t,e){e?.forEach(function(n){return t.removeEventListener(n,I2)})}function I2(t){t.stopPropagation()}var Ig=N.forwardRef(function(t,e){var n,r,i,o=t.autoFocus,l=t.backdropClassName,c=t.backdropProps,f=t.canEscapeKeyClose,h=t.canOutsideClickClose,g=t.childRef,m=t.childRefs,v=t.children,S=t.className,b=t.enforceFocus,A=t.hasBackdrop,C=t.isOpen,E=t.lazy,k=t.onClose,T=t.onClosed,x=t.onClosing,w=t.onOpened,R=t.onOpening,I=t.portalClassName,F=t.portalContainer,U=t.shouldReturnFocusOnClose,V=t.transitionDuration,K=t.transitionName,Z=t.usePortal;L5(t);var J=R5(),oe=J.closeOverlay,fe=J.getLastOpened,Q=J.getThisOverlayAndDescendants,re=J.openOverlay,z=N.useState(!1),W=z[0],$=z[1],B=N.useState(!1),Y=B[0],ae=B[1],le=N.useRef(null),ie=N.useRef(null),q=N.useRef(null),se=N.useRef(null),ee=N.useRef(null),Ce=N.useRef(null),xe=N.useCallback(function(){return requestAnimationFrame(function(){var Xe,it=Uo(ie),It=JS(it);if(!(it==null||It==null)){var Jn=!it.contains(It);Jn&&((Xe=Uo(se))===null||Xe===void 0||Xe.focus({preventScroll:!0}),$(!1))}})},[]),Re=M5(),Me=N.useRef(null),qe=N.useCallback(function(Xe){var it=Xe.composed?Xe.composedPath()[0]:Xe.target,It=Uo(ie);It!=null&&it instanceof Node&&!It.contains(it)&&(Xe.preventDefault(),Xe.stopImmediatePropagation(),xe())},[xe]),Je=N.useCallback(function(Xe){var it=Xe.composed?Xe.composedPath()[0]:Xe.target,It=Q(Re),Jn=It.some(function(mn){var Jr=mn.containerElement,Er=Uo(Jr);return Er?.contains(it)&&!Er.isSameNode(it)});Jn||k?.(Xe)},[Q,Re,k]);N.useEffect(function(){document.removeEventListener("mousedown",Je)},[Je]),N.useEffect(function(){document.removeEventListener("focus",qe,!0)},[qe]);var ye=N.useMemo(function(){return cf(e,Me)},[e]);N.useImperativeHandle(ye,function(){return{bringFocusInsideOverlay:xe,containerElement:ie,handleDocumentFocus:qe,handleDocumentMousedown:Je,id:Re,props:{autoFocus:o,enforceFocus:b,hasBackdrop:A,usePortal:Z}}},[o,xe,b,qe,Je,A,Re,Z]);var be=N.useCallback(function(Xe){Xe.key==="Escape"&&f&&(k?.(Xe),Xe.stopPropagation(),Xe.preventDefault())},[f,k]),ke=N.useCallback(function(){if(Me.current!=null){var Xe=fe();Xe?.handleDocumentFocus!==void 0&&document.removeEventListener("focus",Xe.handleDocumentFocus,!0),re(Me.current),o&&($(!0),xe()),b&&document.addEventListener("focus",qe,!0),h&&!A&&document.addEventListener("mousedown",Je),hC(le,JS(Uo(ie)))}},[o,xe,h,b,fe,Je,qe,A,re]),Ee=N.useCallback(function(){var Xe;document.removeEventListener("focus",qe,!0),document.removeEventListener("mousedown",Je),oe(Re);var it=fe();it!==void 0&&it.props.autoFocus&&it.props.enforceFocus&&((Xe=it.bringFocusInsideOverlay)===null||Xe===void 0||Xe.call(it),it.handleDocumentFocus!==void 0&&document.addEventListener("focus",it.handleDocumentFocus,!0))},[oe,fe,qe,Je,Re]),Fe=(r=k5(C))!==null&&r!==void 0?r:!1;N.useEffect(function(){C&&ae(!0),!Fe&&C&&ke(),Fe&&!C&&Ee()},[C,ke,Ee,Fe]),N.useEffect(function(){return function(){C&&Ee()}},[]);var Ae=N.useCallback(function(Xe){var it=Uo(le);U&&it instanceof HTMLElement&&it.focus(),T?.(Xe)},[T,U]),ze=N.useCallback(function(){},[]),nt=N.useCallback(function(Xe){if(g!=null)return g;if(m!=null){var it=Xe.key;if(it==null){Oh("production")||console.error(R6);return}return m[it]}},[g,m]),ct=N.useCallback(function(Xe){if(Xe==null||S2(Xe))return null;var it=nt(Xe),It=C2(Xe)?Xe.props:{},Jn=b2(Xe,"span",{className:et(It.className,v$),ref:it===void 0?Ce:void 0,tabIndex:b||o?0:void 0}),mn=it??Ce;return N.createElement(Lm,{addEndListener:ze,classNames:K,nodeRef:mn,onEntered:k0(w,mn),onEntering:k0(R,mn),onExited:k0(Ae,mn),onExiting:k0(x,mn),timeout:V},Jn)},[o,b,nt,ze,Ae,x,w,R,V,K]),Ge=N.useCallback(function(Xe){var it;h&&k?.(Xe),b&&xe(),(it=c?.onMouseDown)===null||it===void 0||it.call(c,Xe)},[c,xe,h,b,k]),_t=N.useCallback(function(Xe,it){return N.createElement(Lm,{addEndListener:ze,classNames:K,key:Xe,nodeRef:it.ref,timeout:V,unmountOnExit:!0},N.createElement("div",Le({tabIndex:0},it)))},[ze,V,K]),Kt=N.useCallback(function(Xe){if(!(!b||W)){var it=Uo(ie),It=Uo(ee);Xe.relatedTarget!=null&&it?.contains(Xe.relatedTarget)&&Xe.relatedTarget!==It&&It?.focus({preventScroll:!0})}},[b,W]),jn=N.useCallback(function(Xe){var it;if(b&&Xe.shiftKey&&Xe.key==="Tab"){var It=w1(ie).pop();It!=null?It.focus():(it=Uo(ee))===null||it===void 0||it.focus({preventScroll:!0})}},[b]),Qt=N.useCallback(function(Xe){var it,It=Uo(se);if(Xe.relatedTarget!=null&&(!((it=Uo(ie))===null||it===void 0)&&it.contains(Xe.relatedTarget))&&Xe.relatedTarget!==It){var Jn=w1(ie).shift();!W&&Jn!=null&&Jn!==Xe.relatedTarget?Jn.focus():It?.focus({preventScroll:!0})}else{var mn=w1(ie).pop();mn!=null?mn.focus():It?.focus({preventScroll:!0})}},[W]),Zr=N.useMemo(function(){return A&&C?N.createElement(Lm,{classNames:K,key:"__backdrop",nodeRef:q,timeout:V,addEndListener:ze},N.createElement("div",Le({},c,{className:et(g$,l,c?.className),onMouseDown:Ge,ref:q}))):null},[l,c,Ge,ze,A,C,V,K]);if(E&&!Y)return null;var ur=C?(i=N.Children.map(v,ct))!==null&&i!==void 0?i:[]:[];Zr!==null&&ur.unshift(Zr),C&&(o||b)&&ur.length>0&&(ur.unshift(_t("__start",{className:m2,onFocus:Kt,onKeyDown:jn,ref:se})),b&&ur.push(_t("__end",{className:g2,onFocus:Qt,ref:ee})));var Mr=N.createElement("div",{"aria-live":"polite",className:et(vl,(n={},n[tg]=C,n[y$]=!Z,n),S),onKeyDown:be,ref:ie},N.createElement(bC,{appear:!0,component:null},ur));return Z?N.createElement(CC,{className:I,container:F},Mr):Mr});Ig.defaultProps={autoFocus:!0,backdropProps:{},canEscapeKeyClose:!0,canOutsideClickClose:!0,enforceFocus:!0,hasBackdrop:!0,isOpen:!1,lazy:_2(),shouldReturnFocusOnClose:!0,transitionDuration:300,transitionName:vl,usePortal:!0};Ig.displayName="".concat(Ht,".Overlay2");function L5(t){var e=t.childRef,n=t.childRefs,r=t.children,i=N.Children.count(r);N.useEffect(function(){Oh("production")||(e!=null&&n!=null&&console.error(O6),i>1&&n==null&&console.error(A6))},[e,n,i])}function M5(){var t=b5();return"".concat(Ig.displayName,"-").concat(t)}function k0(t,e){return function(){e?.current!=null&&t?.(e.current)}}var xC=function(t){Qn(e,t);function e(n){var r=t.call(this,n)||this;r.childRef=N.createRef();var i=k6("bp-dialog");return r.titleId="title-".concat(i),r}return e.prototype.render=function(){var n=this.props,r=n.className,i=n.children,o=n.containerRef,l=n.style,c=n.title,f=Nn(n,["className","children","containerRef","style","title"]);return N.createElement(Ig,Le({},f,{className:_$,childRef:this.childRef,hasBackdrop:!0}),N.createElement("div",{className:K3,ref:o===void 0?this.childRef:cf(o,this.childRef)},N.createElement("div",{className:et(Gh,r),role:"dialog","aria-labelledby":this.props["aria-labelledby"]||(c?this.titleId:void 0),"aria-describedby":this.props["aria-describedby"],style:l},this.maybeRenderHeader(),i)))},e.prototype.validateProps=function(n){n.title==null&&(n.icon!=null&&console.warn(x6),n.isCloseButtonShown!=null&&console.warn(E6))},e.prototype.maybeRenderCloseButton=function(){if(this.props.isCloseButtonShown!==!1)return N.createElement(df,{"aria-label":"Close",className:Y3,icon:N.createElement(b_,{size:mt.STANDARD}),minimal:!0,onClick:this.props.onClose})},e.prototype.maybeRenderHeader=function(){var n=this.props,r=n.icon,i=n.title;if(i!=null)return N.createElement("div",{className:X3},N.createElement(Dr,{icon:r,size:mt.STANDARD,"aria-hidden":!0,tabIndex:-1}),N.createElement(i5,{id:this.titleId},i),this.maybeRenderCloseButton())},e.defaultProps={canOutsideClickClose:!0,isOpen:!1},e.displayName="".concat(Ht,".Dialog"),e}(lr),I5=function(t){Qn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.handleCancel=function(r){return n.internalHandleCallbacks(!1,r)},n.handleConfirm=function(r){return n.internalHandleCallbacks(!0,r)},n}return e.prototype.render=function(){var n=this.props,r=n.canEscapeKeyCancel,i=n.canOutsideClickCancel,o=n.children,l=n.className,c=n.icon,f=n.intent,h=n.loading,g=n.cancelButtonText,m=n.confirmButtonText;n.onClose;var v=Nn(n,["canEscapeKeyCancel","canOutsideClickCancel","children","className","icon","intent","loading","cancelButtonText","confirmButtonText","onClose"]);return N.createElement(xC,Le({},v,{className:et(g_,l),canEscapeKeyClose:r,canOutsideClickClose:i,onClose:this.handleCancel}),N.createElement("div",{className:j3},N.createElement(Dr,{icon:c,size:40,intent:f}),N.createElement("div",{className:z3},o)),N.createElement("div",{className:H3},N.createElement(df,{loading:h,intent:f,text:m,onClick:this.handleConfirm}),g&&N.createElement(df,{text:g,disabled:h,onClick:this.handleCancel})))},e.prototype.validateProps=function(n){n.onClose==null&&n.cancelButtonText==null!=(n.onCancel==null)&&console.warn(l6);var r=n.onCancel!=null||n.onClose!=null;n.canEscapeKeyCancel&&!r&&console.warn(u6),n.canOutsideClickCancel&&!r&&console.warn(c6)},e.prototype.internalHandleCallbacks=function(n,r){var i,o=this.props,l=o.onCancel,c=o.onClose,f=o.onConfirm;(i=n?f:l)===null||i===void 0||i(r),c?.(n,r)},e.defaultProps={canEscapeKeyCancel:!1,canOutsideClickCancel:!1,confirmButtonText:"OK",isOpen:!1,loading:!1},e.displayName="".concat(Ht,".Alert"),e}(lr),F2=function(t){Qn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n,r=this.props,i=r.className,o=r.children,l=r.large,c=r.small,f=r.ulRef,h=Nn(r,["className","children","large","small","ulRef"]),g=et(i,p2,(n={},n[hl]=l,n[eg]=c,n));return N.createElement("ul",Le({role:"menu"},h,{className:g,ref:f}),o)},e.displayName="".concat(Ht,".Menu"),e}(lr),$2=N.createContext(),j2=N.createContext();function F5(t){var e=t.children,n=N.useState(null),r=n[0],i=n[1],o=N.useRef(!1);N.useEffect(function(){return function(){o.current=!0}},[]);var l=N.useCallback(function(c){o.current||i(c)},[]);return N.createElement($2.Provider,{value:r},N.createElement(j2.Provider,{value:l},e))}var z2=function(e){return Array.isArray(e)?e[0]:e},H2=function(e){if(typeof e=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.apply(void 0,r)}},tb=function(e,n){if(typeof e=="function")return H2(e,n);e!=null&&(e.current=n)},OT=function(e){return e.reduce(function(n,r){var i=r[0],o=r[1];return n[i]=o,n},{})},AT=typeof window<"u"&&window.document&&window.document.createElement?N.useLayoutEffect:N.useEffect,eo="top",Qo="bottom",Zo="right",to="left",EC="auto",Fg=[eo,Qo,Zo,to],Ah="start",ig="end",$5="clippingParents",q2="viewport",Cm="popper",j5="reference",RT=Fg.reduce(function(t,e){return t.concat([e+"-"+Ah,e+"-"+ig])},[]),U2=[].concat(Fg,[EC]).reduce(function(t,e){return t.concat([e,e+"-"+Ah,e+"-"+ig])},[]),z5="beforeRead",H5="read",q5="afterRead",U5="beforeMain",V5="main",W5="afterMain",G5="beforeWrite",B5="write",K5="afterWrite",X5=[z5,H5,q5,U5,V5,W5,G5,B5,K5];function ys(t){return t?(t.nodeName||"").toLowerCase():null}function To(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function hf(t){var e=To(t).Element;return t instanceof e||t instanceof Element}function Ko(t){var e=To(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function TC(t){if(typeof ShadowRoot>"u")return!1;var e=To(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Y5(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!Ko(o)||!ys(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(l){var c=i[l];c===!1?o.removeAttribute(l):o.setAttribute(l,c===!0?"":c)}))})}function Q5(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},l=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),c=l.reduce(function(f,h){return f[h]="",f},{});!Ko(i)||!ys(i)||(Object.assign(i.style,c),Object.keys(o).forEach(function(f){i.removeAttribute(f)}))})}}const Z5={name:"applyStyles",enabled:!0,phase:"write",fn:Y5,effect:Q5,requires:["computeStyles"]};function gs(t){return t.split("-")[0]}var Zc=Math.max,Ny=Math.min,Rh=Math.round;function nb(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function V2(){return!/^((?!chrome|android).)*safari/i.test(nb())}function kh(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&Ko(t)&&(i=t.offsetWidth>0&&Rh(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Rh(r.height)/t.offsetHeight||1);var l=hf(t)?To(t):window,c=l.visualViewport,f=!V2()&&n,h=(r.left+(f&&c?c.offsetLeft:0))/i,g=(r.top+(f&&c?c.offsetTop:0))/o,m=r.width/i,v=r.height/o;return{width:m,height:v,top:g,right:h+m,bottom:g+v,left:h,x:h,y:g}}function OC(t){var e=kh(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function W2(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&TC(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pl(t){return To(t).getComputedStyle(t)}function J5(t){return["table","td","th"].indexOf(ys(t))>=0}function Ou(t){return((hf(t)?t.ownerDocument:t.document)||window.document).documentElement}function x_(t){return ys(t)==="html"?t:t.assignedSlot||t.parentNode||(TC(t)?t.host:null)||Ou(t)}function kT(t){return!Ko(t)||pl(t).position==="fixed"?null:t.offsetParent}function ej(t){var e=/firefox/i.test(nb()),n=/Trident/i.test(nb());if(n&&Ko(t)){var r=pl(t);if(r.position==="fixed")return null}var i=x_(t);for(TC(i)&&(i=i.host);Ko(i)&&["html","body"].indexOf(ys(i))<0;){var o=pl(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function $g(t){for(var e=To(t),n=kT(t);n&&J5(n)&&pl(n).position==="static";)n=kT(n);return n&&(ys(n)==="html"||ys(n)==="body"&&pl(n).position==="static")?e:n||ej(t)||e}function AC(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Im(t,e,n){return Zc(t,Ny(e,n))}function tj(t,e,n){var r=Im(t,e,n);return r>n?n:r}function G2(){return{top:0,right:0,bottom:0,left:0}}function B2(t){return Object.assign({},G2(),t)}function K2(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var nj=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,B2(typeof e!="number"?e:K2(e,Fg))};function rj(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,l=n.modifiersData.popperOffsets,c=gs(n.placement),f=AC(c),h=[to,Zo].indexOf(c)>=0,g=h?"height":"width";if(!(!o||!l)){var m=nj(i.padding,n),v=OC(o),S=f==="y"?eo:to,b=f==="y"?Qo:Zo,A=n.rects.reference[g]+n.rects.reference[f]-l[f]-n.rects.popper[g],C=l[f]-n.rects.reference[f],E=$g(o),k=E?f==="y"?E.clientHeight||0:E.clientWidth||0:0,T=A/2-C/2,x=m[S],w=k-v[g]-m[b],R=k/2-v[g]/2+T,I=Im(x,R,w),F=f;n.modifiersData[r]=(e={},e[F]=I,e.centerOffset=I-R,e)}}function ij(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||W2(e.elements.popper,i)&&(e.elements.arrow=i))}const oj={name:"arrow",enabled:!0,phase:"main",fn:rj,effect:ij,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nh(t){return t.split("-")[1]}var aj={top:"auto",right:"auto",bottom:"auto",left:"auto"};function sj(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:Rh(n*i)/i||0,y:Rh(r*i)/i||0}}function NT(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,l=t.offsets,c=t.position,f=t.gpuAcceleration,h=t.adaptive,g=t.roundOffsets,m=t.isFixed,v=l.x,S=v===void 0?0:v,b=l.y,A=b===void 0?0:b,C=typeof g=="function"?g({x:S,y:A}):{x:S,y:A};S=C.x,A=C.y;var E=l.hasOwnProperty("x"),k=l.hasOwnProperty("y"),T=to,x=eo,w=window;if(h){var R=$g(n),I="clientHeight",F="clientWidth";if(R===To(n)&&(R=Ou(n),pl(R).position!=="static"&&c==="absolute"&&(I="scrollHeight",F="scrollWidth")),R=R,i===eo||(i===to||i===Zo)&&o===ig){x=Qo;var U=m&&R===w&&w.visualViewport?w.visualViewport.height:R[I];A-=U-r.height,A*=f?1:-1}if(i===to||(i===eo||i===Qo)&&o===ig){T=Zo;var V=m&&R===w&&w.visualViewport?w.visualViewport.width:R[F];S-=V-r.width,S*=f?1:-1}}var K=Object.assign({position:c},h&&aj),Z=g===!0?sj({x:S,y:A},To(n)):{x:S,y:A};if(S=Z.x,A=Z.y,f){var J;return Object.assign({},K,(J={},J[x]=k?"0":"",J[T]=E?"0":"",J.transform=(w.devicePixelRatio||1)<=1?"translate("+S+"px, "+A+"px)":"translate3d("+S+"px, "+A+"px, 0)",J))}return Object.assign({},K,(e={},e[x]=k?A+"px":"",e[T]=E?S+"px":"",e.transform="",e))}function lj(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,l=o===void 0?!0:o,c=n.roundOffsets,f=c===void 0?!0:c,h={placement:gs(e.placement),variation:Nh(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,NT(Object.assign({},h,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:f})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,NT(Object.assign({},h,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const uj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lj,data:{}};var N0={passive:!0};function cj(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=i===void 0?!0:i,l=r.resize,c=l===void 0?!0:l,f=To(e.elements.popper),h=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&h.forEach(function(g){g.addEventListener("scroll",n.update,N0)}),c&&f.addEventListener("resize",n.update,N0),function(){o&&h.forEach(function(g){g.removeEventListener("scroll",n.update,N0)}),c&&f.removeEventListener("resize",n.update,N0)}}const fj={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cj,data:{}};var dj={left:"right",right:"left",bottom:"top",top:"bottom"};function ny(t){return t.replace(/left|right|bottom|top/g,function(e){return dj[e]})}var hj={start:"end",end:"start"};function PT(t){return t.replace(/start|end/g,function(e){return hj[e]})}function RC(t){var e=To(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function kC(t){return kh(Ou(t)).left+RC(t).scrollLeft}function pj(t,e){var n=To(t),r=Ou(t),i=n.visualViewport,o=r.clientWidth,l=r.clientHeight,c=0,f=0;if(i){o=i.width,l=i.height;var h=V2();(h||!h&&e==="fixed")&&(c=i.offsetLeft,f=i.offsetTop)}return{width:o,height:l,x:c+kC(t),y:f}}function mj(t){var e,n=Ou(t),r=RC(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=Zc(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=Zc(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-r.scrollLeft+kC(t),f=-r.scrollTop;return pl(i||n).direction==="rtl"&&(c+=Zc(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:l,x:c,y:f}}function NC(t){var e=pl(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function X2(t){return["html","body","#document"].indexOf(ys(t))>=0?t.ownerDocument.body:Ko(t)&&NC(t)?t:X2(x_(t))}function Fm(t,e){var n;e===void 0&&(e=[]);var r=X2(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=To(r),l=i?[o].concat(o.visualViewport||[],NC(r)?r:[]):r,c=e.concat(l);return i?c:c.concat(Fm(x_(l)))}function rb(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function gj(t,e){var n=kh(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function DT(t,e,n){return e===q2?rb(pj(t,n)):hf(e)?gj(e,n):rb(mj(Ou(t)))}function vj(t){var e=Fm(x_(t)),n=["absolute","fixed"].indexOf(pl(t).position)>=0,r=n&&Ko(t)?$g(t):t;return hf(r)?e.filter(function(i){return hf(i)&&W2(i,r)&&ys(i)!=="body"}):[]}function yj(t,e,n,r){var i=e==="clippingParents"?vj(t):[].concat(e),o=[].concat(i,[n]),l=o[0],c=o.reduce(function(f,h){var g=DT(t,h,r);return f.top=Zc(g.top,f.top),f.right=Ny(g.right,f.right),f.bottom=Ny(g.bottom,f.bottom),f.left=Zc(g.left,f.left),f},DT(t,l,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Y2(t){var e=t.reference,n=t.element,r=t.placement,i=r?gs(r):null,o=r?Nh(r):null,l=e.x+e.width/2-n.width/2,c=e.y+e.height/2-n.height/2,f;switch(i){case eo:f={x:l,y:e.y-n.height};break;case Qo:f={x:l,y:e.y+e.height};break;case Zo:f={x:e.x+e.width,y:c};break;case to:f={x:e.x-n.width,y:c};break;default:f={x:e.x,y:e.y}}var h=i?AC(i):null;if(h!=null){var g=h==="y"?"height":"width";switch(o){case Ah:f[h]=f[h]-(e[g]/2-n[g]/2);break;case ig:f[h]=f[h]+(e[g]/2-n[g]/2);break}}return f}function og(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,o=n.strategy,l=o===void 0?t.strategy:o,c=n.boundary,f=c===void 0?$5:c,h=n.rootBoundary,g=h===void 0?q2:h,m=n.elementContext,v=m===void 0?Cm:m,S=n.altBoundary,b=S===void 0?!1:S,A=n.padding,C=A===void 0?0:A,E=B2(typeof C!="number"?C:K2(C,Fg)),k=v===Cm?j5:Cm,T=t.rects.popper,x=t.elements[b?k:v],w=yj(hf(x)?x:x.contextElement||Ou(t.elements.popper),f,g,l),R=kh(t.elements.reference),I=Y2({reference:R,element:T,placement:i}),F=rb(Object.assign({},T,I)),U=v===Cm?F:R,V={top:w.top-U.top+E.top,bottom:U.bottom-w.bottom+E.bottom,left:w.left-U.left+E.left,right:U.right-w.right+E.right},K=t.modifiersData.offset;if(v===Cm&&K){var Z=K[i];Object.keys(V).forEach(function(J){var oe=[Zo,Qo].indexOf(J)>=0?1:-1,fe=[eo,Qo].indexOf(J)>=0?"y":"x";V[J]+=Z[fe]*oe})}return V}function _j(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,l=n.padding,c=n.flipVariations,f=n.allowedAutoPlacements,h=f===void 0?U2:f,g=Nh(r),m=g?c?RT:RT.filter(function(b){return Nh(b)===g}):Fg,v=m.filter(function(b){return h.indexOf(b)>=0});v.length===0&&(v=m);var S=v.reduce(function(b,A){return b[A]=og(t,{placement:A,boundary:i,rootBoundary:o,padding:l})[gs(A)],b},{});return Object.keys(S).sort(function(b,A){return S[b]-S[A]})}function wj(t){if(gs(t)===EC)return[];var e=ny(t);return[PT(t),e,PT(e)]}function Sj(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,l=n.altAxis,c=l===void 0?!0:l,f=n.fallbackPlacements,h=n.padding,g=n.boundary,m=n.rootBoundary,v=n.altBoundary,S=n.flipVariations,b=S===void 0?!0:S,A=n.allowedAutoPlacements,C=e.options.placement,E=gs(C),k=E===C,T=f||(k||!b?[ny(C)]:wj(C)),x=[C].concat(T).reduce(function(le,ie){return le.concat(gs(ie)===EC?_j(e,{placement:ie,boundary:g,rootBoundary:m,padding:h,flipVariations:b,allowedAutoPlacements:A}):ie)},[]),w=e.rects.reference,R=e.rects.popper,I=new Map,F=!0,U=x[0],V=0;V<x.length;V++){var K=x[V],Z=gs(K),J=Nh(K)===Ah,oe=[eo,Qo].indexOf(Z)>=0,fe=oe?"width":"height",Q=og(e,{placement:K,boundary:g,rootBoundary:m,altBoundary:v,padding:h}),re=oe?J?Zo:to:J?Qo:eo;w[fe]>R[fe]&&(re=ny(re));var z=ny(re),W=[];if(o&&W.push(Q[Z]<=0),c&&W.push(Q[re]<=0,Q[z]<=0),W.every(function(le){return le})){U=K,F=!1;break}I.set(K,W)}if(F)for(var $=b?3:1,B=function(ie){var q=x.find(function(se){var ee=I.get(se);if(ee)return ee.slice(0,ie).every(function(Ce){return Ce})});if(q)return U=q,"break"},Y=$;Y>0;Y--){var ae=B(Y);if(ae==="break")break}e.placement!==U&&(e.modifiersData[r]._skip=!0,e.placement=U,e.reset=!0)}}const bj={name:"flip",enabled:!0,phase:"main",fn:Sj,requiresIfExists:["offset"],data:{_skip:!1}};function LT(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function MT(t){return[eo,Zo,Qo,to].some(function(e){return t[e]>=0})}function Cj(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,l=og(e,{elementContext:"reference"}),c=og(e,{altBoundary:!0}),f=LT(l,r),h=LT(c,i,o),g=MT(f),m=MT(h);e.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:h,isReferenceHidden:g,hasPopperEscaped:m},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":m})}const xj={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Cj};function Ej(t,e,n){var r=gs(t),i=[to,eo].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,l=o[0],c=o[1];return l=l||0,c=(c||0)*i,[to,Zo].indexOf(r)>=0?{x:c,y:l}:{x:l,y:c}}function Tj(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=i===void 0?[0,0]:i,l=U2.reduce(function(g,m){return g[m]=Ej(m,e.rects,o),g},{}),c=l[e.placement],f=c.x,h=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=f,e.modifiersData.popperOffsets.y+=h),e.modifiersData[r]=l}const Oj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Tj};function Aj(t){var e=t.state,n=t.name;e.modifiersData[n]=Y2({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const Rj={name:"popperOffsets",enabled:!0,phase:"read",fn:Aj,data:{}};function kj(t){return t==="x"?"y":"x"}function Nj(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=i===void 0?!0:i,l=n.altAxis,c=l===void 0?!1:l,f=n.boundary,h=n.rootBoundary,g=n.altBoundary,m=n.padding,v=n.tether,S=v===void 0?!0:v,b=n.tetherOffset,A=b===void 0?0:b,C=og(e,{boundary:f,rootBoundary:h,padding:m,altBoundary:g}),E=gs(e.placement),k=Nh(e.placement),T=!k,x=AC(E),w=kj(x),R=e.modifiersData.popperOffsets,I=e.rects.reference,F=e.rects.popper,U=typeof A=="function"?A(Object.assign({},e.rects,{placement:e.placement})):A,V=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),K=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,Z={x:0,y:0};if(R){if(o){var J,oe=x==="y"?eo:to,fe=x==="y"?Qo:Zo,Q=x==="y"?"height":"width",re=R[x],z=re+C[oe],W=re-C[fe],$=S?-F[Q]/2:0,B=k===Ah?I[Q]:F[Q],Y=k===Ah?-F[Q]:-I[Q],ae=e.elements.arrow,le=S&&ae?OC(ae):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:G2(),q=ie[oe],se=ie[fe],ee=Im(0,I[Q],le[Q]),Ce=T?I[Q]/2-$-ee-q-V.mainAxis:B-ee-q-V.mainAxis,xe=T?-I[Q]/2+$+ee+se+V.mainAxis:Y+ee+se+V.mainAxis,Re=e.elements.arrow&&$g(e.elements.arrow),Me=Re?x==="y"?Re.clientTop||0:Re.clientLeft||0:0,qe=(J=K?.[x])!=null?J:0,Je=re+Ce-qe-Me,ye=re+xe-qe,be=Im(S?Ny(z,Je):z,re,S?Zc(W,ye):W);R[x]=be,Z[x]=be-re}if(c){var ke,Ee=x==="x"?eo:to,Fe=x==="x"?Qo:Zo,Ae=R[w],ze=w==="y"?"height":"width",nt=Ae+C[Ee],ct=Ae-C[Fe],Ge=[eo,to].indexOf(E)!==-1,_t=(ke=K?.[w])!=null?ke:0,Kt=Ge?nt:Ae-I[ze]-F[ze]-_t+V.altAxis,jn=Ge?Ae+I[ze]+F[ze]-_t-V.altAxis:ct,Qt=S&&Ge?tj(Kt,Ae,jn):Im(S?Kt:nt,Ae,S?jn:ct);R[w]=Qt,Z[w]=Qt-Ae}e.modifiersData[r]=Z}}const Pj={name:"preventOverflow",enabled:!0,phase:"main",fn:Nj,requiresIfExists:["offset"]};function Dj(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Lj(t){return t===To(t)||!Ko(t)?RC(t):Dj(t)}function Mj(t){var e=t.getBoundingClientRect(),n=Rh(e.width)/t.offsetWidth||1,r=Rh(e.height)/t.offsetHeight||1;return n!==1||r!==1}function Ij(t,e,n){n===void 0&&(n=!1);var r=Ko(e),i=Ko(e)&&Mj(e),o=Ou(e),l=kh(t,i,n),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((ys(e)!=="body"||NC(o))&&(c=Lj(e)),Ko(e)?(f=kh(e,!0),f.x+=e.clientLeft,f.y+=e.clientTop):o&&(f.x=kC(o))),{x:l.left+c.scrollLeft-f.x,y:l.top+c.scrollTop-f.y,width:l.width,height:l.height}}function Fj(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function i(o){n.add(o.name);var l=[].concat(o.requires||[],o.requiresIfExists||[]);l.forEach(function(c){if(!n.has(c)){var f=e.get(c);f&&i(f)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||i(o)}),r}function $j(t){var e=Fj(t);return X5.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function jj(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function zj(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var IT={placement:"bottom",modifiers:[],strategy:"absolute"};function FT(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Hj(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,i=e.defaultOptions,o=i===void 0?IT:i;return function(c,f,h){h===void 0&&(h=o);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},IT,o),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},m=[],v=!1,S={state:g,setOptions:function(E){var k=typeof E=="function"?E(g.options):E;A(),g.options=Object.assign({},o,g.options,k),g.scrollParents={reference:hf(c)?Fm(c):c.contextElement?Fm(c.contextElement):[],popper:Fm(f)};var T=$j(zj([].concat(r,g.options.modifiers)));return g.orderedModifiers=T.filter(function(x){return x.enabled}),b(),S.update()},forceUpdate:function(){if(!v){var E=g.elements,k=E.reference,T=E.popper;if(FT(k,T)){g.rects={reference:Ij(k,$g(T),g.options.strategy==="fixed"),popper:OC(T)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(V){return g.modifiersData[V.name]=Object.assign({},V.data)});for(var x=0;x<g.orderedModifiers.length;x++){if(g.reset===!0){g.reset=!1,x=-1;continue}var w=g.orderedModifiers[x],R=w.fn,I=w.options,F=I===void 0?{}:I,U=w.name;typeof R=="function"&&(g=R({state:g,options:F,name:U,instance:S})||g)}}}},update:jj(function(){return new Promise(function(C){S.forceUpdate(),C(g)})}),destroy:function(){A(),v=!0}};if(!FT(c,f))return S;S.setOptions(h).then(function(C){!v&&h.onFirstUpdate&&h.onFirstUpdate(C)});function b(){g.orderedModifiers.forEach(function(C){var E=C.name,k=C.options,T=k===void 0?{}:k,x=C.effect;if(typeof x=="function"){var w=x({state:g,name:E,instance:S,options:T}),R=function(){};m.push(w||R)}})}function A(){m.forEach(function(C){return C()}),m=[]}return S}}var qj=[fj,Rj,uj,Z5,Oj,bj,Pj,oj,xj],Uj=Hj({defaultModifiers:qj}),S1,$T;function Vj(){if($T)return S1;$T=1;var t=typeof Element<"u",e=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(o,l){if(o===l)return!0;if(o&&l&&typeof o=="object"&&typeof l=="object"){if(o.constructor!==l.constructor)return!1;var c,f,h;if(Array.isArray(o)){if(c=o.length,c!=l.length)return!1;for(f=c;f--!==0;)if(!i(o[f],l[f]))return!1;return!0}var g;if(e&&o instanceof Map&&l instanceof Map){if(o.size!==l.size)return!1;for(g=o.entries();!(f=g.next()).done;)if(!l.has(f.value[0]))return!1;for(g=o.entries();!(f=g.next()).done;)if(!i(f.value[1],l.get(f.value[0])))return!1;return!0}if(n&&o instanceof Set&&l instanceof Set){if(o.size!==l.size)return!1;for(g=o.entries();!(f=g.next()).done;)if(!l.has(f.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(l)){if(c=o.length,c!=l.length)return!1;for(f=c;f--!==0;)if(o[f]!==l[f])return!1;return!0}if(o.constructor===RegExp)return o.source===l.source&&o.flags===l.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof l.valueOf=="function")return o.valueOf()===l.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof l.toString=="function")return o.toString()===l.toString();if(h=Object.keys(o),c=h.length,c!==Object.keys(l).length)return!1;for(f=c;f--!==0;)if(!Object.prototype.hasOwnProperty.call(l,h[f]))return!1;if(t&&o instanceof Element)return!1;for(f=c;f--!==0;)if(!((h[f]==="_owner"||h[f]==="__v"||h[f]==="__o")&&o.$$typeof)&&!i(o[h[f]],l[h[f]]))return!1;return!0}return o!==o&&l!==l}return S1=function(l,c){try{return i(l,c)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},S1}var Wj=Vj();const Gj=oo(Wj);var Bj=[],Kj=function(e,n,r){r===void 0&&(r={});var i=N.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Bj},l=N.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],f=l[1],h=N.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(S){var b=S.state,A=Object.keys(b.elements);Mg.flushSync(function(){f({styles:OT(A.map(function(C){return[C,b.styles[C]||{}]})),attributes:OT(A.map(function(C){return[C,b.attributes[C]]}))})})},requires:["computeStyles"]}},[]),g=N.useMemo(function(){var v={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[h,{name:"applyStyles",enabled:!1}])};return Gj(i.current,v)?i.current||v:(i.current=v,v)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,h]),m=N.useRef();return AT(function(){m.current&&m.current.setOptions(g)},[g]),AT(function(){if(!(e==null||n==null)){var v=r.createPopper||Uj,S=v(e,n,g);return m.current=S,function(){S.destroy(),m.current=null}}},[e,n,r.createPopper]),{state:m.current?m.current.state:null,styles:c.styles,attributes:c.attributes,update:m.current?m.current.update:null,forceUpdate:m.current?m.current.forceUpdate:null}},Xj=function(){},Yj=function(){return Promise.resolve(null)},Qj=[];function Zj(t){var e=t.placement,n=e===void 0?"bottom":e,r=t.strategy,i=r===void 0?"absolute":r,o=t.modifiers,l=o===void 0?Qj:o,c=t.referenceElement,f=t.onFirstUpdate,h=t.innerRef,g=t.children,m=N.useContext($2),v=N.useState(null),S=v[0],b=v[1],A=N.useState(null),C=A[0],E=A[1];N.useEffect(function(){tb(h,S)},[h,S]);var k=N.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:f,modifiers:[].concat(l,[{name:"arrow",enabled:C!=null,options:{element:C}}])}},[n,i,f,l,C]),T=Kj(c||m,S,k),x=T.state,w=T.styles,R=T.forceUpdate,I=T.update,F=N.useMemo(function(){return{ref:b,style:w.popper,placement:x?x.placement:n,hasPopperEscaped:x&&x.modifiersData.hide?x.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:x&&x.modifiersData.hide?x.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:w.arrow,ref:E},forceUpdate:R||Xj,update:I||Yj}},[b,E,n,x,w,I,R]);return z2(g)(F)}var b1,jT;function Jj(){if(jT)return b1;jT=1;var t=function(){};return b1=t,b1}var e9=Jj();const t9=oo(e9);function n9(t){var e=t.children,n=t.innerRef,r=N.useContext(j2),i=N.useCallback(function(o){tb(n,o),H2(r,o)},[n,r]);return N.useEffect(function(){return function(){return tb(n,null)}},[]),N.useEffect(function(){t9(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),z2(e)({ref:i})}var zT=function(t){Qn(e,t);function e(){var n,r=t.apply(this,arguments)||this;return r.targetRef=(n=r.props.targetRef)!==null&&n!==void 0?n:N.createRef(),r.prevElement=void 0,r}return e.prototype.render=function(){var n=N.Children.only(this.props.children);return this.props.targetRef!==void 0?n:N.cloneElement(n,{ref:this.targetRef})},e.prototype.componentDidMount=function(){var n=this;this.observer=globalThis.ResizeObserver!=null?new ResizeObserver(function(r){var i,o;return(o=(i=n.props).onResize)===null||o===void 0?void 0:o.call(i,r)}):void 0,this.observeElement()},e.prototype.componentDidUpdate=function(n){this.observeElement(this.props.observeParents!==n.observeParents)},e.prototype.componentWillUnmount=function(){var n;(n=this.observer)===null||n===void 0||n.disconnect(),this.prevElement=void 0},e.prototype.observeElement=function(n){if(n===void 0&&(n=!1),this.observer!==void 0){if(!(this.targetRef.current instanceof Element)){this.observer.disconnect();return}if(!(this.targetRef.current===this.prevElement&&!n)&&(this.observer.disconnect(),this.prevElement=this.targetRef.current,this.observer.observe(this.targetRef.current),this.props.observeParents))for(var r=this.targetRef.current.parentElement;r!=null;)this.observer.observe(r),r=r.parentElement}},e.displayName="".concat(Ht,".ResizeSensor"),e}(lr);function E_(t){return t.split("-")[0]}function HT(t){return["left","right"].indexOf(t)!==-1}function P0(t){switch(t){case"top":return"bottom";case"left":return"right";case"bottom":return"top";default:return"left"}}function qT(t){var e=t.split("-")[1];switch(e){case"start":return"left";case"end":return"right";default:return"center"}}function r9(t,e){var n=E_(t);if(e===void 0)return HT(n)?"".concat(P0(n)," ").concat(qT(n)):"".concat(qT(n)," ").concat(P0(n));var r=15;return HT(n)?"".concat(P0(n)," ").concat(parseInt(e.top,10)+r,"px"):"".concat(parseInt(e.left,10)+r,"px ").concat(P0(n))}var i9="M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z",o9="M8.787 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005c0-1.654-.983-3.9-2.21-5.03l-7.183-6.616c-.81-.746-.802-1.96 0-2.7l7.183-6.614z",ib=30,a9=22;function s9(t){if(t==null)return 0;switch(E_(t)){case"top":return-90;case"left":return 180;case"bottom":return 90;default:return 0}}function l9(t){switch(E_(t)){case"top":return{bottom:-11};case"left":return{right:-11};case"bottom":return{top:-11};default:return{left:-11}}}var Q2=function(t){var e=t.arrowProps,n=e.ref,r=e.style,i=t.placement;return N.createElement("div",{"aria-hidden":!0,className:f1,"data-popper-arrow":!0,ref:n,style:Le(Le({},r),l9(i))},N.createElement("svg",{viewBox:"0 0 ".concat(ib," ").concat(ib),style:{transform:"rotate(".concat(s9(i),"deg)")}},N.createElement("path",{className:f1+"-border",d:i9}),N.createElement("path",{className:f1+"-fill",d:o9})))};Q2.displayName="".concat(Ht,".PopoverArrow");var u9=function(){return null},Z2=N.createContext([{},u9]),c9=function(t,e){switch(e.type){case"FORCE_DISABLED_STATE":return{forceDisabled:!0};case"RESET_DISABLED_STATE":return{};default:return t}},f9=function(t){var e=t.children,n=t.forceDisable,r=N.useReducer(c9,{}),i=r[0],o=r[1],l=N.useMemo(function(){return[i,o]},[i,o]);return N.useEffect(function(){o(n?{type:"FORCE_DISABLED_STATE"}:{type:"RESET_DISABLED_STATE"})},[n]),N.createElement(Z2.Provider,{value:l},typeof e=="function"?e(i):e)},d9=function(t){Qn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.popoverRef=N.createRef(),n.renderPopover=function(r){var i,o,l=n.props,c=l.children,f=l.compact,h=l.disabled,g=l.intent,m=l.popoverClassName,v=Nn(l,["children","compact","disabled","intent","popoverClassName"]),S=et(W$,ro(g),m,(i={},i[sC]=f,i));return N.createElement(PC,Le({modifiers:{arrow:{enabled:!n.props.minimal},offset:{options:{offset:[0,a9/2]}}}},v,{autoFocus:!1,canEscapeKeyClose:!1,disabled:(o=r.forceDisabled)!==null&&o!==void 0?o:h,enforceFocus:!1,lazy:!0,popoverClassName:S,portalContainer:n.props.portalContainer,ref:n.popoverRef}),c)},n}return e.prototype.render=function(){var n=this;return N.createElement(Z2.Consumer,null,function(r){var i=r[0];return N.createElement(f9,Le({},i),n.renderPopover)})},e.prototype.reposition=function(){var n;(n=this.popoverRef.current)===null||n===void 0||n.reposition()},e.displayName="".concat(Ht,".Tooltip"),e.defaultProps={compact:!1,hoverCloseDelay:0,hoverOpenDelay:100,interactionKind:"hover-target",minimal:!1,transitionDuration:100},e}(lr),h9={enabled:!0,name:"matchReferenceWidth",phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;e.styles.popper.width="".concat(e.rects.reference.width,"px")},effect:function(t){var e=t.state,n=e.elements.reference.getBoundingClientRect().width;e.elements.popper.style.width="".concat(n,"px")}},qo=Le(Le({},Ng),{AUTO:"auto",AUTO_END:"auto-end",AUTO_START:"auto-start"});function p9(t){switch(t){case qo.TOP_LEFT:return"top-start";case qo.TOP:return"top";case qo.TOP_RIGHT:return"top-end";case qo.RIGHT_TOP:return"right-start";case qo.RIGHT:return"right";case qo.RIGHT_BOTTOM:return"right-end";case qo.BOTTOM_RIGHT:return"bottom-end";case qo.BOTTOM:return"bottom";case qo.BOTTOM_LEFT:return"bottom-start";case qo.LEFT_BOTTOM:return"left-end";case qo.LEFT:return"left";case qo.LEFT_TOP:return"left-start";case"auto":case"auto-start":case"auto-end":return t;default:return m9(t)}}function m9(t){throw new Error("Unexpected position: "+t)}var rl={CLICK:"click",HOVER:"hover",HOVER_TARGET_ONLY:"hover-target"},PC=function(t){Qn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={hasDarkParent:!1,isClosingViaEscapeKeypress:!1,isOpen:n.getIsOpen(n.props)},n.popoverElement=null,n.popoverRef=I6(n,"popoverElement",n.props.popoverRef),n.targetRef=N.createRef(),n.transitionContainerElement=N.createRef(),n.isMouseInTargetOrPopover=!1,n.lostFocusOnSamePage=!0,n.isControlled=function(){return n.props.isOpen!==void 0},n.isArrowEnabled=function(){var r,i;return!n.props.minimal&&((i=(r=n.props.modifiers)===null||r===void 0?void 0:r.arrow)===null||i===void 0?void 0:i.enabled)!==!1},n.isHoverInteractionKind=function(){return n.props.interactionKind===rl.HOVER||n.props.interactionKind===rl.HOVER_TARGET_ONLY},n.reposition=function(){var r;return(r=n.popperScheduleUpdate)===null||r===void 0?void 0:r.call(n)},n.renderTarget=function(r){var i,o,l,c,f=r.ref,h=n.props,g=h.children,m=h.className,v=h.fill,S=h.openOnTargetFocus,b=h.renderTarget,A=n.state.isOpen,C=n.isControlled(),E=n.isHoverInteractionKind(),k=n.props.targetTagName;v&&(k="div");var T=cf(f,n.targetRef),x=E?{onBlur:n.handleTargetBlur,onContextMenu:n.handleTargetContextMenu,onFocus:n.handleTargetFocus,onMouseEnter:n.handleMouseEnter,onMouseLeave:n.handleMouseLeave}:{onClick:n.handleTargetClick,onKeyDown:n.handleKeyDown},w=S&&E?0:void 0,R=Le({className:et(m,A$,(i={},i[E$]=A,i[Jm]=A&&!C&&!E,i)),ref:T},x),I={"aria-expanded":A,"aria-haspopup":n.props.interactionKind===rl.HOVER_TARGET_ONLY?void 0:(l=n.props.popupKind)!==null&&l!==void 0?l:"menu"},F=(o={},o[Jm]=A&&!C&&!E,o[uf]=v,o),U;if(b!==void 0)U=b(Le(Le(Le({},R),I),{className:et(R.className,F),isOpen:A,tabIndex:w}));else{var V=b2(N.Children.toArray(g)[0]);if(V===void 0)return null;var K=N.cloneElement(V,Le(Le({},I),{className:et(V.props.className,F),disabled:A&&x2(V,d9)?!0:V.props.disabled,tabIndex:(c=V.props.tabIndex)!==null&&c!==void 0?c:w})),Z=N.createElement(k,Le(Le({},R),n.props.targetProps),K);U=Z}return N.createElement(zT,{targetRef:n.targetRef,onResize:n.reposition},U)},n.renderPopover=function(r){var i,o=n.props,l=o.autoFocus,c=o.enforceFocus,f=o.backdropProps,h=o.canEscapeKeyClose,g=o.hasBackdrop,m=o.interactionKind,v=o.usePortal,S=n.state,b=S.isClosingViaEscapeKeypress,A=S.isOpen,C=r9(r.placement,n.isArrowEnabled()?r.arrowProps.style:void 0);n.popperScheduleUpdate=r.update;var E={onClick:n.handlePopoverClick,onKeyDown:function(R){return rg(R)&&n.handlePopoverClick(R)}};(m===rl.HOVER||!v&&m===rl.HOVER_TARGET_ONLY)&&(E.onMouseEnter=n.handleMouseEnter,E.onMouseLeave=n.handleMouseLeave);var k=E_(r.placement),T=et(Kr,(i={},i[lT]=n.props.inheritDarkTheme&&n.state.hasDarkParent,i[lC]=n.props.minimal,i[d1]=n.props.captureDismiss,i[x$]=n.props.matchTargetWidth,i[O$]=r.isReferenceHidden===!0,i[T$]=r.hasPopperEscaped===!0,i),"".concat(b$,"-").concat(k),n.props.popoverClassName),x=n.isHoverInteractionKind()?!1:void 0,w=n.isHoverInteractionKind()?!1:b?!0:n.props.shouldReturnFocusOnClose;return N.createElement(Ig,{autoFocus:l??x,backdropClassName:w$,backdropProps:f,canEscapeKeyClose:h,canOutsideClickClose:m===rl.CLICK,childRef:n.transitionContainerElement,enforceFocus:c,hasBackdrop:g,isOpen:A,lazy:n.props.lazy,onClose:n.handleOverlayClose,onClosed:n.props.onClosed,onClosing:n.props.onClosing,onOpened:n.props.onOpened,onOpening:n.props.onOpening,transitionDuration:n.props.transitionDuration,transitionName:Kr,usePortal:v,portalClassName:n.props.portalClassName,portalContainer:n.props.portalContainer,portalStopPropagationEvents:n.props.portalStopPropagationEvents,shouldReturnFocusOnClose:w},N.createElement("div",{className:R$,ref:cf(r.ref,n.transitionContainerElement),style:r.style},N.createElement(zT,{onResize:n.reposition},N.createElement("div",Le({className:T,style:{transformOrigin:C},ref:n.popoverRef},E),n.isArrowEnabled()&&N.createElement(Q2,{arrowProps:r.arrowProps,placement:r.placement}),N.createElement("div",{className:S$},n.props.content)))))},n.handleTargetFocus=function(r){if(n.props.openOnTargetFocus&&n.isHoverInteractionKind()){if(r.relatedTarget==null&&!n.lostFocusOnSamePage)return;n.handleMouseEnter(r)}},n.handleTargetBlur=function(r){n.props.openOnTargetFocus&&n.isHoverInteractionKind()&&(r.relatedTarget!=null?r.relatedTarget!==n.popoverElement&&!n.isElementInPopover(r.relatedTarget)&&n.handleMouseLeave(r):n.handleMouseLeave(r)),n.lostFocusOnSamePage=r.relatedTarget!=null},n.handleTargetContextMenu=function(r){r.defaultPrevented&&n.setOpenState(!1,r)},n.handleMouseEnter=function(r){n.isMouseInTargetOrPopover=!0,!n.props.usePortal&&n.isElementInPopover(r.target)&&n.props.interactionKind===rl.HOVER_TARGET_ONLY&&!n.props.openOnTargetFocus?n.handleMouseLeave(r):n.props.disabled||n.setOpenState(!0,r,n.props.hoverOpenDelay)},n.handleMouseLeave=function(r){n.isMouseInTargetOrPopover=!1,r.persist(),n.setTimeout(function(){n.isMouseInTargetOrPopover||n.setOpenState(!1,r,n.props.hoverCloseDelay)})},n.handlePopoverClick=function(r){var i,o,l,c=r.target,f=c.closest(".".concat(Kr)),h=c.closest(".".concat(Kr)),g=(f??h)===n.getPopoverElement(),m=(o=(i=f?.classList.contains(d1))!==null&&i!==void 0?i:h?.classList.contains(d1))!==null&&o!==void 0?o:!1,v=c.closest(".".concat(Oy,", .").concat(C$)),S=(l=v?.classList.contains(Oy))!==null&&l!==void 0?l:!1,b=c.closest(":disabled, .".concat(Pg))!=null;S&&!b&&(!m||g)&&n.setOpenState(!1,r)},n.handleOverlayClose=function(r){var i;if(!(n.targetRef.current==null||r===void 0)){var o=(i=r.nativeEvent)!==null&&i!==void 0?i:r,l=o.composed?o.composedPath()[0]:o.target;(!o6(n.targetRef.current,l)||r.nativeEvent instanceof KeyboardEvent)&&n.setOpenState(!1,r)}},n.handleKeyDown=function(r){var i=rg(r);i&&n.handleTargetClick(r)},n.handleTargetClick=function(r){var i=n.state.isOpen&&n.isSimulatedButtonClick(r);i||!n.props.disabled&&!n.isElementInPopover(r.target)&&(n.props.isOpen==null?n.setState(function(o){return{isOpen:!o.isOpen}}):n.setOpenState(!n.props.isOpen,r))},n.isSimulatedButtonClick=function(r){return!r.isTrusted&&r.target.matches(".".concat(v_))},n}return e.prototype.getPopoverElement=function(){var n;return(n=this.popoverElement)===null||n===void 0?void 0:n.querySelector(".".concat(Kr))},e.prototype.getIsOpen=function(n){var r;return n.disabled?!1:(r=n.isOpen)!==null&&r!==void 0?r:n.defaultIsOpen},e.prototype.render=function(){var n=this.props,r=n.disabled,i=n.content,o=n.placement,l=n.position,c=l===void 0?"auto":l,f=n.positioningStrategy,h=this.state.isOpen,g=i==null||typeof i=="string"&&i.trim()==="";return g?(!r&&h!==!1&&!Oh("production")&&console.warn(g6),this.renderTarget({ref:v9})):N.createElement(F5,null,N.createElement(n9,null,this.renderTarget),N.createElement(Zj,{innerRef:this.popoverRef,placement:o??p9(c),strategy:f,modifiers:this.getPopperModifiers()},this.renderPopover))},e.prototype.componentDidMount=function(){this.updateDarkParent()},e.prototype.componentDidUpdate=function(n,r){t.prototype.componentDidUpdate.call(this,n,r),this.updateDarkParent();var i=this.getIsOpen(this.props);this.props.isOpen!=null&&i!==this.state.isOpen?(this.setOpenState(i),this.setState({isOpen:i})):this.props.disabled&&this.state.isOpen&&this.props.isOpen==null&&this.setOpenState(!1)},e.prototype.validateProps=function(n){n.isOpen==null&&n.onInteraction!=null&&console.warn(_6),n.hasBackdrop&&!n.usePortal&&console.warn(v6),n.hasBackdrop&&n.interactionKind!==rl.CLICK&&console.warn(h6),n.placement!==void 0&&n.position!==void 0&&console.warn(y6);var r=N.Children.count(n.children),i=n.renderTarget!==void 0,o=n.targetProps!==void 0;r===0&&!i&&console.warn(d6),r>1&&console.warn(p6),r>0&&i&&console.warn(m6),i&&o&&console.warn(w6)},e.prototype.getPopperModifiers=function(){var n,r,i,o,l=this.props,c=l.matchTargetWidth,f=l.modifiers,h=l.modifiersCustom,g=[Le({enabled:this.isArrowEnabled(),name:"arrow"},f?.arrow),Le(Le({name:"computeStyles"},f?.computeStyles),{options:Le({adaptive:!0,gpuAcceleration:!1},(n=f?.computeStyles)===null||n===void 0?void 0:n.options)}),Le(Le({enabled:this.isArrowEnabled(),name:"offset"},f?.offset),{options:Le({offset:[0,ib/2]},(r=f?.offset)===null||r===void 0?void 0:r.options)}),Le(Le({name:"flip"},f?.flip),{options:Le({boundary:this.props.boundary,rootBoundary:this.props.rootBoundary},(i=f?.flip)===null||i===void 0?void 0:i.options)}),Le(Le({name:"preventOverflow"},f?.preventOverflow),{options:Le({boundary:this.props.boundary,rootBoundary:this.props.rootBoundary},(o=f?.preventOverflow)===null||o===void 0?void 0:o.options)})];return c&&g.push(h9),h!==void 0&&g.push.apply(g,h),g},e.prototype.setOpenState=function(n,r,i){var o=this,l,c,f,h,g;(l=this.cancelOpenTimeout)===null||l===void 0||l.call(this),i!==void 0&&i>0?(r?.persist(),this.cancelOpenTimeout=this.setTimeout(function(){o.setOpenState(n,r)},i)):(this.props.isOpen==null?this.setState({isOpen:n}):(f=(c=this.props).onInteraction)===null||f===void 0||f.call(c,n,r),n||((g=(h=this.props).onClose)===null||g===void 0||g.call(h,r),this.setState({isClosingViaEscapeKeypress:g9(r?.nativeEvent)})))},e.prototype.updateDarkParent=function(){var n;if(this.props.usePortal&&this.state.isOpen){var r=((n=this.targetRef.current)===null||n===void 0?void 0:n.closest(".".concat(lT)))!=null;this.setState({hasDarkParent:r})}},e.prototype.isElementInPopover=function(n){var r,i;return(i=(r=this.getPopoverElement())===null||r===void 0?void 0:r.contains(n))!==null&&i!==void 0?i:!1},e.displayName="".concat(Ht,".Popover"),e.defaultProps={boundary:"clippingParents",captureDismiss:!1,defaultIsOpen:!1,disabled:!1,fill:!1,hasBackdrop:!1,hoverCloseDelay:300,hoverOpenDelay:150,inheritDarkTheme:!0,interactionKind:rl.CLICK,matchTargetWidth:!1,minimal:!1,openOnTargetFocus:!0,positioningStrategy:"absolute",renderTarget:void 0,shouldReturnFocusOnClose:!1,targetTagName:"span",transitionDuration:300,usePortal:!0},e}(lr);function g9(t){return t instanceof KeyboardEvent&&t.key==="Escape"}function v9(){}var Py=N.forwardRef(function(t,e){var n,r,i=t.active,o=t.className,l=t.children,c=t.disabled,f=t.icon,h=t.intent,g=t.labelClassName,m=t.labelElement,v=t.multiline,S=t.popoverProps,b=t.roleStructure,A=b===void 0?"menuitem":b,C=t.selected,E=t.shouldDismissPopover,k=t.submenuProps,T=t.text,x=t.textClassName,w=t.tagName,R=w===void 0?"a":w,I=t.htmlTitle,F=Nn(t,["active","className","children","disabled","icon","intent","labelClassName","labelElement","multiline","popoverProps","roleStructure","selected","shouldDismissPopover","submenuProps","text","textClassName","tagName","htmlTitle"]),U=A==="listoption"?["option",void 0,!!C]:A==="menuitem"?["none","menuitem",void 0]:A==="none"?["none",void 0,void 0]:[void 0,void 0,void 0],V=U[0],K=U[1],Z=U[2],J=A==="listoption",oe=J&&C,fe=f!=null,Q=l!=null,re=ro(h),z=et(Dg,re,(n={},n[Jm]=i,n[Pg]=c,n[Oy]=E&&!c&&!Q,n[l$]=J,n[a2]=oe,n),o),W=t.label==null&&m==null?null:N.createElement("span",{className:et(f$,g)},t.label,m),$=N.createElement(R,Le(Le(Le({onKeyDown:a6(["Enter"," "]),role:Q?"none":K,tabIndex:Q?-1:0},ff(F)),c?_9:{}),{className:z}),oe?N.createElement(vC,{className:u$}):void 0,fe?N.createElement("span",{className:c$},N.createElement(Dr,{icon:f,"aria-hidden":!0,tabIndex:-1})):void 0,N.createElement(Lg,{className:et(uf,x),ellipsize:!v,title:I},T),W,Q?N.createElement(pC,{className:d$,title:"Open sub menu"}):void 0),B=et((r={},r[QS]=Q,r));return N.createElement("li",{className:B,ref:e,role:V,"aria-selected":Z},l==null?$:N.createElement(PC,Le({autoFocus:!1,captureDismiss:!1,disabled:c,enforceFocus:!1,hoverCloseDelay:0,interactionKind:"hover",modifiers:y9,targetProps:{role:K,tabIndex:0},placement:"right-start",usePortal:!1},S,{content:N.createElement(F2,Le({},k),l),minimal:!0,popoverClassName:et(QS,S?.popoverClassName)}),$))});Py.defaultProps={active:!1,disabled:!1,multiline:!1,popoverProps:{},selected:void 0,shouldDismissPopover:!0,text:""};Py.displayName="".concat(Ht,".MenuItem");var y9={flip:{options:{rootBoundary:"viewport",padding:20},enabled:!0},offset:{options:{offset:[-5,0]},enabled:!0},preventOverflow:{options:{rootBoundary:"viewport",padding:20},enabled:!0}},_9={"aria-disabled":!0,href:void 0,onClick:void 0,onMouseDown:void 0,onMouseEnter:void 0,onMouseLeave:void 0,tabIndex:-1},w9=function(t){Qn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n,r=this.props,i=r.className,o=r.children,l=r.icon,c=r.intent,f=r.title,h=r.compact,g=Nn(r,["className","children","icon","intent","title","compact"]),m=this.renderIcon(l,c),v=et(uC,ro(c),i,(n={},n[V3]=!ng(o),n[W3]=m!=null,n[sC]=h,n));return N.createElement("div",Le({className:v},g),m,f&&N.createElement(r5,null,f),o)},e.prototype.renderIcon=function(n,r){if(!(n===null||n===!1)){var i={"aria-hidden":!0,tabIndex:-1};if(n!==void 0)return N.createElement(Dr,Le({icon:n},i));switch(r){case Oi.DANGER:return N.createElement(mC,Le({},i));case Oi.PRIMARY:return N.createElement(gC,Le({},i));case Oi.WARNING:return N.createElement(_C,Le({},i));case Oi.SUCCESS:return N.createElement(yC,Le({},i));default:return}}},e.displayName="".concat(Ht,".Callout"),e}(lr),qc=N.forwardRef(function(t,e){var n,r=t.className,i=t.elevation,o=t.interactive,l=t.selected,c=t.compact,f=Nn(t,["className","elevation","interactive","selected","compact"]),h=et(r,G3,K$(i),(n={},n[i2]=o,n[sC]=c,n[a2]=l,n));return N.createElement("div",Le({className:h,ref:e},f))});qc.defaultProps={elevation:T3.ZERO,interactive:!1};qc.displayName="".concat(Ht,".Card");var En;(function(t){t[t.OPEN_START=0]="OPEN_START",t[t.OPENING=1]="OPENING",t[t.OPEN=2]="OPEN",t[t.CLOSING_START=3]="CLOSING_START",t[t.CLOSING=4]="CLOSING",t[t.CLOSED=5]="CLOSED"})(En||(En={}));var S9=function(t){Qn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={animationState:n.props.isOpen?En.OPEN:En.CLOSED,height:void 0,heightWhenOpen:void 0},n.contents=null,n.contentsRefHandler=function(r){if(n.contents=r,n.contents!=null){var i=n.contents.clientHeight;n.setState({animationState:n.props.isOpen?En.OPEN:En.CLOSED,height:i===0?void 0:"".concat(i,"px"),heightWhenOpen:i===0?void 0:i})}},n}return e.getDerivedStateFromProps=function(n,r){var i=n.isOpen,o=r.animationState;if(i)switch(o){case En.OPEN:break;case En.OPENING:break;default:return{animationState:En.OPEN_START}}else switch(o){case En.CLOSED:break;case En.CLOSING:break;default:return{animationState:En.CLOSING_START,height:"".concat(r.heightWhenOpen,"px")}}return null},e.prototype.render=function(){var n=this.state.animationState!==En.CLOSED,r=n||this.props.keepChildrenMounted,i=n&&this.state.animationState!==En.CLOSING,o=this.state.height==="auto",l={height:n?this.state.height:void 0,overflowY:o?"visible":void 0,transition:o?"none":void 0},c={transform:i?"translateY(0)":"translateY(-".concat(this.state.heightWhenOpen,"px)"),transition:o?"none":void 0};return N.createElement(this.props.component,{className:et(l2,this.props.className),style:l},N.createElement("div",{className:B3,ref:this.contentsRefHandler,style:c,"aria-hidden":!n},r?this.props.children:null))},e.prototype.componentDidMount=function(){this.forceUpdate(),this.props.isOpen?this.setState({animationState:En.OPEN,height:"auto"}):this.setState({animationState:En.CLOSED,height:"0px"})},e.prototype.componentDidUpdate=function(){var n=this;if(this.contents!=null){var r=this.props.transitionDuration,i=this.state.animationState;if(i===En.OPEN_START){var o=this.contents.clientHeight;this.setState({animationState:En.OPENING,height:"".concat(o,"px"),heightWhenOpen:o}),this.setTimeout(function(){return n.onDelayedStateChange()},r)}else if(i===En.CLOSING_START){var l=this.contents.clientHeight;this.setTimeout(function(){return n.setState({animationState:En.CLOSING,height:"0px",heightWhenOpen:l})}),this.setTimeout(function(){return n.onDelayedStateChange()},r)}}},e.prototype.onDelayedStateChange=function(){switch(this.state.animationState){case En.OPENING:this.setState({animationState:En.OPEN,height:"auto"});break;case En.CLOSING:this.setState({animationState:En.CLOSED});break}},e.displayName="".concat(Ht,".Collapse"),e.defaultProps={component:"div",isOpen:!1,keepChildrenMounted:!1,transitionDuration:200},e}(lr),b9=function(t){Qn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n=this.props,r=n.className,i=n.tagName,o=i===void 0?"div":i,l=Nn(n,["className","tagName"]),c=et(Z3,r);return N.createElement(o,Le(Le({},l),{className:c}))},e.displayName="".concat(Ht,".Divider"),e}(lr),T_=N.forwardRef(function(t,e){var n,r=t.alignIndicator,i=t.children,o=t.className,l=t.indicatorChildren,c=t.inline,f=t.inputRef,h=t.label,g=t.labelElement,m=t.large,v=t.style,S=t.type,b=t.typeClassName,A=t.tagName,C=A===void 0?"label":A,E=Nn(t,["alignIndicator","children","className","indicatorChildren","inline","inputRef","label","labelElement","large","style","type","typeClassName","tagName"]),k=et(f2,b,(n={},n[Pg]=E.disabled,n[R3]=c,n[hl]=m,n),dC(r),o);return N.createElement(C,{className:k,style:v,ref:e},N.createElement("input",Le({},E,{ref:f,type:S})),N.createElement("span",{className:d2},l),h,g,i)});T_.displayName="".concat(Ht,".Control");var C9=N.forwardRef(function(t,e){var n=t.innerLabelChecked,r=t.innerLabel,i=Nn(t,["innerLabelChecked","innerLabel"]),o=r||n?[N.createElement("div",{key:"checked",className:uT},N.createElement("div",{className:cT},n||r)),N.createElement("div",{key:"unchecked",className:uT},N.createElement("div",{className:cT},r))]:null;return N.createElement(T_,Le({},i,{indicatorChildren:o,ref:e,type:"checkbox",typeClassName:h2}))});C9.displayName="".concat(Ht,".Switch");var J2=N.forwardRef(function(t,e){return N.createElement(T_,Le({},t,{ref:e,type:"radio",typeClassName:a$}))});J2.displayName="".concat(Ht,".Radio");var ek=N.forwardRef(function(t,e){var n=t.defaultIndeterminate,r=t.indeterminate,i=t.onChange,o=Nn(t,["defaultIndeterminate","indeterminate","onChange"]),l=N.useState(r||n||!1),c=l[0],f=l[1],h=N.useRef(null),g=t.inputRef===void 0?h:cf(t.inputRef,h),m=N.useCallback(function(v){r===void 0&&f(v.target.indeterminate),i?.(v)},[r,i]);return N.useEffect(function(){r!==void 0&&f(r)},[r]),N.useEffect(function(){h.current!=null&&(h.current.indeterminate=c)},[h,c]),N.createElement(T_,Le({},o,{inputRef:g,onChange:m,ref:e,type:"checkbox",typeClassName:o$}))});ek.displayName="".concat(Ht,".Checkbox");var x9=function(t){Qn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={hasPendingUpdate:!1,isComposing:!1,nextValue:n.props.value,value:n.props.value},n.cancelPendingCompositionEnd=null,n.handleCompositionStart=function(r){var i,o,l;(i=n.cancelPendingCompositionEnd)===null||i===void 0||i.call(n),n.setState({isComposing:!0}),(l=(o=n.props).onCompositionStart)===null||l===void 0||l.call(o,r)},n.handleCompositionEnd=function(r){var i,o;n.cancelPendingCompositionEnd=n.setTimeout(function(){return n.setState({isComposing:!1})},e.COMPOSITION_END_DELAY),(o=(i=n.props).onCompositionEnd)===null||o===void 0||o.call(i,r)},n.handleChange=function(r){var i,o,l=r.target.value;n.setState({nextValue:l}),(o=(i=n.props).onChange)===null||o===void 0||o.call(i,r)},n}return e.getDerivedStateFromProps=function(n,r){if(r.isComposing||n.value===void 0)return null;var i=r.nextValue!==r.value;return i?n.value===r.nextValue?r.hasPendingUpdate?{value:n.value,hasPendingUpdate:!1}:{value:r.nextValue}:n.value===r.value?{hasPendingUpdate:!0}:{value:n.value,nextValue:n.value,hasPendingUpdate:!1}:{value:n.value,nextValue:n.value,hasPendingUpdate:!1}},e.prototype.render=function(){var n=this.state,r=n.isComposing,i=n.hasPendingUpdate,o=n.value,l=n.nextValue,c=this.props,f=c.inputRef,h=Nn(c,["inputRef"]);return N.createElement("input",Le({},h,{ref:f,value:r||i?l:o,onCompositionStart:this.handleCompositionStart,onCompositionEnd:this.handleCompositionEnd,onChange:this.handleChange}))},e.displayName="".concat(Ht,".AsyncControllableInput"),e.COMPOSITION_END_DELAY=10,e}(lr),E9=["onValueChange"],T9=function(t){Qn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.state={},n.leftElement=null,n.rightElement=null,n.refHandlers={leftElement:function(r){return n.leftElement=r},rightElement:function(r){return n.rightElement=r}},n.handleInputChange=function(r){var i,o,l,c,f=r.target.value;(o=(i=n.props).onChange)===null||o===void 0||o.call(i,r),(c=(l=n.props).onValueChange)===null||c===void 0||c.call(l,f,r.target)},n}return e.prototype.render=function(){var n,r=this.props,i=r.asyncControl,o=i===void 0?!1:i,l=r.className,c=r.disabled,f=r.fill,h=r.inputClassName,g=r.inputRef,m=r.intent,v=r.large,S=r.readOnly,b=r.round,A=r.small,C=r.tagName,E=C===void 0?"div":C,k=et(n$,ro(m),(n={},n[Pg]=c,n[P3]=S,n[uf]=f,n[hl]=v,n[eg]=A,n[o2]=b,n),l),T=Le(Le({},this.props.style),{paddingLeft:this.state.leftElementWidth,paddingRight:this.state.rightElementWidth}),x=Le(Le({type:"text"},ff(this.props,E9,!0)),{"aria-disabled":c,className:et(y_,h),onChange:this.handleInputChange,style:T}),w=o?N.createElement(x9,Le({},x,{inputRef:g})):N.createElement("input",Le({},x,{ref:g}));return N.createElement(E,{className:k},this.maybeRenderLeftElement(),w,this.maybeRenderRightElement())},e.prototype.componentDidMount=function(){this.updateInputWidth()},e.prototype.componentDidUpdate=function(n){var r=this.props,i=r.leftElement,o=r.rightElement;(n.leftElement!==i||n.rightElement!==o)&&this.updateInputWidth()},e.prototype.validateProps=function(n){n.leftElement!=null&&n.leftIcon!=null&&console.warn(f6)},e.prototype.maybeRenderLeftElement=function(){var n=this.props,r=n.leftElement,i=n.leftIcon;if(r!=null)return N.createElement("span",{className:r$,ref:this.refHandlers.leftElement},r);if(i!=null)return N.createElement(Dr,{icon:i,"aria-hidden":!0,tabIndex:-1})},e.prototype.maybeRenderRightElement=function(){var n=this.props.rightElement;if(n!=null)return N.createElement("span",{className:i$,ref:this.refHandlers.rightElement},n)},e.prototype.updateInputWidth=function(){var n=this.state,r=n.leftElementWidth,i=n.rightElementWidth;if(this.leftElement!=null){var o=this.leftElement.clientWidth;(r===void 0||Math.abs(o-r)>2)&&this.setState({leftElementWidth:o})}else this.setState({leftElementWidth:void 0});if(this.rightElement!=null){var o=this.rightElement.clientWidth;(i===void 0||Math.abs(o-i)>2)&&this.setState({rightElementWidth:o})}else this.setState({rightElementWidth:void 0})},e.displayName="".concat(Ht,".InputGroup"),e}(lr),O9=function(t){Qn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n=this.props,r=n.className,i=Nn(n,["className"]);return N.createElement("div",Le({className:et(m$,r)},i))},e.displayName="".concat(Ht,".NavbarDivider"),e}(lr),A9=function(t){Qn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n=this.props,r=n.align,i=n.children,o=n.className,l=Nn(n,["align","children","className"]),c=et(h$,dC(r),o);return N.createElement("div",Le({className:c},l),i)},e.displayName="".concat(Ht,".NavbarGroup"),e.defaultProps={align:Zm.LEFT},e}(lr),R9=function(t){Qn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n=this.props,r=n.children,i=n.className,o=Nn(n,["children","className"]);return N.createElement("div",Le({className:et(p$,i)},o),r)},e.displayName="".concat(Ht,".NavbarHeading"),e}(lr),il=function(t){Qn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n,r=this.props,i=r.children,o=r.className,l=r.fixedToTop,c=Nn(r,["children","className","fixedToTop"]),f=et(__,(n={},n[A3]=l,n),o);return N.createElement("div",Le({className:f},c),i)},e.displayName="".concat(Ht,".Navbar"),e.Divider=O9,e.Group=A9,e.Heading=R9,e}(lr),k9=function(t){Qn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n,r=this.props,i=r.animate,o=i===void 0?!0:i,l=r.className,c=r.intent,f=r.stripes,h=f===void 0?!0:f,g=r.value,m=et(k$,ro(c),(n={},n[D$]=!o,n[P$]=!h,n),l),v=g==null?void 0:100*w2(g,0,1),S=v==null?void 0:v+"%";return N.createElement("div",{"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":v==null?void 0:Math.round(v),className:m,role:"progressbar"},N.createElement("div",{className:N$,style:{width:S}}))},e.displayName="".concat(Ht,".ProgressBar"),e}(lr),DC=function(t){Qn(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(){var n=this.props,r=n.className,i=n.panel;return N.createElement("div",{className:et(cC,r),role:"tablist"},i)},e.defaultProps={disabled:!1},e.displayName="".concat(Ht,".Tab"),e}(lr),tk=function(t){var e=t.className,n=t.large,r=t.onRemove,i=t.tabIndex,o=n||e?.includes(hl),l=N.useCallback(function(c){r?.(c,t)},[r,t]);return N.createElement("button",{"aria-label":"Remove tag",type:"button",className:V$,onClick:l,tabIndex:i},N.createElement(b_,{size:o?mt.LARGE:mt.STANDARD}))};tk.displayName="".concat(Ht,".TagRemoveButton");var Ca=N.forwardRef(function(t,e){var n,r=t.active,i=t.children,o=t.className,l=t.fill,c=t.icon,f=t.intent,h=t.interactive,g=t.large,m=t.minimal,v=t.multiline,S=t.onRemove,b=t.rightIcon,A=t.round,C=t.tabIndex,E=C===void 0?0:C,k=t.htmlTitle,T=Nn(t,["active","children","className","fill","icon","intent","interactive","large","minimal","multiline","onRemove","rightIcon","round","tabIndex","htmlTitle"]),x=s6(S),w=et(y2,ro(f),(n={},n[Jm]=r,n[uf]=l,n[i2]=h,n[hl]=g,n[lC]=m,n[o2]=A,n),o);return N.createElement("span",Le({},T,{className:w,tabIndex:h?E:void 0,ref:e}),N.createElement(Dr,{icon:c}),!ng(i)&&N.createElement(Lg,{className:uf,ellipsize:!v,tagName:"span",title:k},i),N.createElement(Dr,{icon:b}),x&&N.createElement(tk,Le({},t)))});Ca.defaultProps={active:!1,fill:!1,interactive:!1,large:!1,minimal:!1,round:!1};Ca.displayName="".concat(Ht,".Tag");var N9=function(t){Qn(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.handleClick=function(r){return n.props.onClick(n.props.id,r)},n}return e.prototype.render=function(){var n=this.props,r=n.className,i=n.children,o=n.disabled,l=n.id,c=n.parentId,f=n.selected,h=n.title,g=n.icon,m=n.tagContent,v=n.tagProps,S=Nn(n,["className","children","disabled","id","parentId","selected","title","icon","tagContent","tagProps"]),b=f?Oi.PRIMARY:Oi.NONE;return N.createElement("div",Le({},ff(S),{"aria-controls":nk(c,l),"aria-disabled":o,"aria-expanded":f,"aria-selected":f,className:et(yl,r),"data-tab-id":l,id:rk(c,l),onClick:o?void 0:this.handleClick,role:"tab",tabIndex:o?void 0:f?0:-1}),g!=null&&N.createElement(Dr,{icon:g,intent:b,className:j$}),h,i,m!=null&&N.createElement(Ca,Le({minimal:!0,intent:b},v,{className:et(z$,v?.className)}),m))},e.displayName="".concat(Ht,".TabTitle"),e}(lr);function nk(t,e){return"".concat(cC,"_").concat(t,"_").concat(e)}function rk(t,e){return"".concat(yl,"-title_").concat(t,"_").concat(e)}var P9=function(){return N.createElement("div",{className:t$})},D0=".".concat(yl),D9=function(t){Qn(e,t);function e(n){var r=t.call(this,n)||this;r.tablistElement=null,r.refHandlers={tablist:function(o){return r.tablistElement=o}},r.handleKeyDown=function(o){var l,c=(l=JS(r.tablistElement))===null||l===void 0?void 0:l.closest(D0);if(c!=null){var f=r.getTabElements().filter(function(S){return S.getAttribute("aria-disabled")==="false"}),h=f.indexOf(c),g=r.getKeyCodeDirection(o);if(h>=0&&g!==void 0){o.preventDefault();var m=f.length,v=(h+g+m)%m;f[v].focus()}}},r.handleKeyPress=function(o){var l=o.target.closest(D0);l!=null&&rg(o)&&(o.preventDefault(),l.click())},r.handleTabClick=function(o,l){var c,f;(f=(c=r.props).onChange)===null||f===void 0||f.call(c,o,r.state.selectedTabId,l),r.props.selectedTabId===void 0&&r.setState({selectedTabId:o})},r.renderTabPanel=function(o){var l=o.props,c=l.className,f=l.panel,h=l.id,g=l.panelClassName;if(f!==void 0)return N.createElement("div",{"aria-labelledby":rk(r.props.id,h),"aria-hidden":h!==r.state.selectedTabId,className:et(cC,c,g),id:nk(r.props.id,h),key:h,role:"tabpanel"},f)},r.renderTabTitle=function(o){if(UT(o)){var l=o.props.id;return N.createElement(N9,Le({},o.props,{parentId:r.props.id,onClick:r.handleTabClick,selected:l===r.state.selectedTabId}))}return o};var i=r.getInitialSelectedTabId();return r.state={selectedTabId:i},r}return e.getDerivedStateFromProps=function(n){var r=n.selectedTabId;return r!==void 0?{selectedTabId:r}:null},e.prototype.render=function(){var n,r,i=this.state,o=i.indicatorWrapperStyle,l=i.selectedTabId,c=N.Children.map(this.props.children,this.renderTabTitle),f=this.getTabChildren().filter(this.props.renderActiveTabPanelOnly?function(v){return v.props.id===l}:function(){return!0}).map(this.renderTabPanel),h=this.props.animate?N.createElement("div",{className:H$,style:o},N.createElement("div",{className:v2})):null,g=et(U$,this.props.className,(n={},n[D3]=this.props.vertical,n[uf]=this.props.fill,n)),m=et(q$,(r={},r[hl]=this.props.large,r));return N.createElement("div",{className:g},N.createElement("div",{className:m,onKeyDown:this.handleKeyDown,onKeyPress:this.handleKeyPress,ref:this.refHandlers.tablist,role:"tablist"},h,c),f)},e.prototype.componentDidMount=function(){this.moveSelectionIndicator(!1)},e.prototype.componentDidUpdate=function(n,r){if(this.state.selectedTabId!==r.selectedTabId)this.moveSelectionIndicator();else if(r.selectedTabId!=null){var i=!J$(this.getTabChildrenProps(n),this.getTabChildrenProps(),e6);i&&this.moveSelectionIndicator()}},e.prototype.getInitialSelectedTabId=function(){var n=this.props,r=n.defaultSelectedTabId,i=n.selectedTabId;if(i!==void 0)return i;if(r!==void 0)return r;var o=this.getTabChildren();return o.length===0?void 0:o[0].props.id},e.prototype.getKeyCodeDirection=function(n){if(n.key==="ArrowLeft"||n.key==="ArrowUp")return-1;if(n.key==="ArrowRight"||n.key==="ArrowDown")return 1},e.prototype.getTabChildrenProps=function(n){return n===void 0&&(n=this.props),this.getTabChildren(n).map(function(r){return r.props})},e.prototype.getTabChildren=function(n){return n===void 0&&(n=this.props),N.Children.toArray(n.children).filter(UT)},e.prototype.getTabElements=function(n){return n===void 0&&(n=""),this.tablistElement==null?[]:Array.from(this.tablistElement.querySelectorAll(D0+n))},e.prototype.moveSelectionIndicator=function(n){if(n===void 0&&(n=!0),!(this.tablistElement==null||!this.props.animate)){var r="".concat(D0,'[data-tab-id="').concat(this.state.selectedTabId,'"]'),i=this.tablistElement.querySelector(r),o={display:"none"};if(i!=null){var l=i.clientHeight,c=i.clientWidth,f=i.offsetLeft,h=i.offsetTop;o={height:l,transform:"translateX(".concat(Math.floor(f),"px) translateY(").concat(Math.floor(h),"px)"),width:c},n||(o.transition="none")}this.setState({indicatorWrapperStyle:o})}},e.Expander=P9,e.Tab=DC,e.defaultProps={animate:!0,fill:!1,large:!1,renderActiveTabPanelOnly:!1,vertical:!1},e.displayName="".concat(Ht,".Tabs"),e}(lr);function UT(t){return x2(t,DC)}class L9 extends N.Component{constructor(e){super(e),this.stopButtonTimer=null,this.handleSpaceKey=n=>{if(this.isDialogOpen())return;const r=n.target;!r||["INPUT","TEXTAREA","SELECT","BUTTON"].includes(r.tagName)||r.isContentEditable||n.key===" "&&(n.preventDefault(),this.props.testing_status=="run"?this.hardpy_stop():this.hardpy_start())},this.handleButtonClick=()=>{this.hardpy_start()},this.state={isStopButtonDisabled:!1},this.hardpy_start=this.hardpy_start.bind(this),this.hardpy_stop=this.hardpy_stop.bind(this)}hardpy_call(e){fetch(e).then(n=>{if(n.ok)return n.text();console.log(this.props.t("error.requestFailed",{status:n.status}))}).catch(n=>{console.log(this.props.t("error.requestError",{error:n}))})}hardpy_start(){this.hardpy_call("api/start")}hardpy_stop(){this.state.isStopButtonDisabled||(this.hardpy_call("api/stop"),this.setState({isStopButtonDisabled:!0}),this.stopButtonTimer=setTimeout(()=>{this.setState({isStopButtonDisabled:!1})},500))}isDialogOpen(){const e=document.querySelectorAll(".bp3-dialog");for(const r of e){const i=window.getComputedStyle(r);if(i.display!=="none"&&i.visibility!=="hidden")return!0}const n=document.querySelectorAll('[role="dialog"]');for(const r of n){const i=window.getComputedStyle(r);if(i.display!=="none"&&i.visibility!=="hidden")return!0}return!1}componentDidMount(){window.addEventListener("keydown",this.handleSpaceKey)}componentWillUnmount(){window.removeEventListener("keydown",this.handleSpaceKey),this.stopButtonTimer&&clearTimeout(this.stopButtonTimer)}render(){const{t:e,testing_status:n}=this.props,r=n=="run",i="start-stop-button",o={text:e("button.stop"),intent:"danger",large:!0,rightIcon:"stop",onClick:this.hardpy_stop,id:i},l={text:e("button.start"),intent:r?void 0:"primary",large:!0,rightIcon:"play",onClick:this.handleButtonClick,id:i,disabled:this.state.isStopButtonDisabled};return ve.jsx(k2,{...r?o:l})}}const M9=Wb()(L9);var Nm={exports:{}},I9=Nm.exports,VT;function F9(){return VT||(VT=1,function(t,e){var n={};(function(){var r,i="4.17.21",o=200,l="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",f="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",g=500,m="__lodash_placeholder__",v=1,S=2,b=4,A=1,C=2,E=1,k=2,T=4,x=8,w=16,R=32,I=64,F=128,U=256,V=512,K=30,Z="...",J=800,oe=16,fe=1,Q=2,re=3,z=1/0,W=9007199254740991,$=17976931348623157e292,B=NaN,Y=4294967295,ae=Y-1,le=Y>>>1,ie=[["ary",F],["bind",E],["bindKey",k],["curry",x],["curryRight",w],["flip",V],["partial",R],["partialRight",I],["rearg",U]],q="[object Arguments]",se="[object Array]",ee="[object AsyncFunction]",Ce="[object Boolean]",xe="[object Date]",Re="[object DOMException]",Me="[object Error]",qe="[object Function]",Je="[object GeneratorFunction]",ye="[object Map]",be="[object Number]",ke="[object Null]",Ee="[object Object]",Fe="[object Promise]",Ae="[object Proxy]",ze="[object RegExp]",nt="[object Set]",ct="[object String]",Ge="[object Symbol]",_t="[object Undefined]",Kt="[object WeakMap]",jn="[object WeakSet]",Qt="[object ArrayBuffer]",Zr="[object DataView]",ur="[object Float32Array]",Mr="[object Float64Array]",Xe="[object Int8Array]",it="[object Int16Array]",It="[object Int32Array]",Jn="[object Uint8Array]",mn="[object Uint8ClampedArray]",Jr="[object Uint16Array]",Er="[object Uint32Array]",Ao=/\b__p \+= '';/g,Ro=/\b(__p \+=) '' \+/g,Tr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ni=/&(?:amp|lt|gt|quot|#39);/g,tn=/[&<>"']/g,Os=RegExp(Ni.source),Ol=RegExp(tn.source),on=/<%-([\s\S]+?)%>/g,gn=/<%([\s\S]+?)%>/g,er=/<%=([\s\S]+?)%>/g,Or=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mi=/^\w*$/,Pa=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gi=/[\\^$.*+?()[\]{}|]/g,As=RegExp(gi.source),Pi=/^\s+/,Ir=/\s/,tr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ta=/\{\n\/\* \[wrapped with (.+)\] \*/,ei=/,? & /,Rf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Di=/[()=,{}\[\]\/\s]/,ti=/\\(\\)?/g,kf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ao=/\w*$/,Nf=/^[-+]0x[0-9a-f]+$/i,Rs=/^0b[01]+$/i,ku=/^\[object .+?Constructor\]$/,Pf=/^0o[0-7]+$/i,Df=/^(?:0|[1-9]\d*)$/,ip=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Al=/($^)/,Ot=/['\n\r\u2028\u2029\\]/g,ko="\\ud800-\\udfff",Nu="\\u0300-\\u036f",Lf="\\ufe20-\\ufe2f",Rl="\\u20d0-\\u20ff",Mf=Nu+Lf+Rl,Pu="\\u2700-\\u27bf",ks="a-z\\xdf-\\xf6\\xf8-\\xff",Li="\\xac\\xb1\\xd7\\xf7",Da="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vi="\\u2000-\\u206f",op=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",If="A-Z\\xc0-\\xd6\\xd8-\\xde",ut="\\ufe0e\\ufe0f",kt=Li+Da+vi+op,Cn="['’]",cr="["+ko+"]",at="["+kt+"]",La="["+Mf+"]",na="\\d+",Mi="["+Pu+"]",ap="["+ks+"]",Ff="[^"+ko+kt+na+Pu+ks+If+"]",Ns="\\ud83c[\\udffb-\\udfff]",B_="(?:"+La+"|"+Ns+")",$f="[^"+ko+"]",Vt="(?:\\ud83c[\\udde6-\\uddff]){2}",jf="[\\ud800-\\udbff][\\udc00-\\udfff]",Ps="["+If+"]",zf="\\u200d",sp="(?:"+ap+"|"+Ff+")",Qg="(?:"+Ps+"|"+Ff+")",lp="(?:"+Cn+"(?:d|ll|m|re|s|t|ve))?",Hf="(?:"+Cn+"(?:D|LL|M|RE|S|T|VE))?",Du=B_+"?",ra="["+ut+"]?",Ma="(?:"+zf+"(?:"+[$f,Vt,jf].join("|")+")"+ra+Du+")*",Ia="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",kl=ra+Du+Ma,Fa="(?:"+[Mi,Vt,jf].join("|")+")"+kl,K_="(?:"+[$f+La+"?",La,Vt,jf,cr].join("|")+")",Zg=RegExp(Cn,"g"),Mu=RegExp(La,"g"),up=RegExp(Ns+"(?="+Ns+")|"+K_+kl,"g"),Jg=RegExp([Ps+"?"+ap+"+"+lp+"(?="+[at,Ps,"$"].join("|")+")",Qg+"+"+Hf+"(?="+[at,Ps+sp,"$"].join("|")+")",Ps+"?"+sp+"+"+lp,Ps+"+"+Hf,Lu,Ia,na,Fa].join("|"),"g"),qf=RegExp("["+zf+ko+Mf+ut+"]"),ev=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,X_=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Iu=-1,Xt={};Xt[ur]=Xt[Mr]=Xt[Xe]=Xt[it]=Xt[It]=Xt[Jn]=Xt[mn]=Xt[Jr]=Xt[Er]=!0,Xt[q]=Xt[se]=Xt[Qt]=Xt[Ce]=Xt[Zr]=Xt[xe]=Xt[Me]=Xt[qe]=Xt[ye]=Xt[be]=Xt[Ee]=Xt[ze]=Xt[nt]=Xt[ct]=Xt[Kt]=!1;var Wt={};Wt[q]=Wt[se]=Wt[Qt]=Wt[Zr]=Wt[Ce]=Wt[xe]=Wt[ur]=Wt[Mr]=Wt[Xe]=Wt[it]=Wt[It]=Wt[ye]=Wt[be]=Wt[Ee]=Wt[ze]=Wt[nt]=Wt[ct]=Wt[Ge]=Wt[Jn]=Wt[mn]=Wt[Jr]=Wt[Er]=!0,Wt[Me]=Wt[qe]=Wt[Kt]=!1;var Uf={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Y_={"&":"&","<":"<",">":">",'"':""","'":"'"},Q_={"&":"&","<":"<",">":">",""":'"',"'":"'"},cp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vf=parseFloat,fp=parseInt,dp=typeof n=="object"&&n&&n.Object===Object&&n,$a=typeof self=="object"&&self&&self.Object===Object&&self,zn=dp||$a||Function("return this")(),Nl=e&&!e.nodeType&&e,ja=Nl&&!0&&t&&!t.nodeType&&t,Fu=ja&&ja.exports===Nl,Pl=Fu&&dp.process,yi=function(){try{var he=ja&&ja.require&&ja.require("util").types;return he||Pl&&Pl.binding&&Pl.binding("util")}catch{}}(),ni=yi&&yi.isArrayBuffer,Ds=yi&&yi.isDate,Wf=yi&&yi.isMap,Dl=yi&&yi.isRegExp,tv=yi&&yi.isSet,Gf=yi&&yi.isTypedArray;function Fr(he,Se,we){switch(we.length){case 0:return he.call(Se);case 1:return he.call(Se,we[0]);case 2:return he.call(Se,we[0],we[1]);case 3:return he.call(Se,we[0],we[1],we[2])}return he.apply(Se,we)}function $u(he,Se,we,Be){for(var gt=-1,qt=he==null?0:he.length;++gt<qt;){var Pn=he[gt];Se(Be,Pn,we(Pn),he)}return Be}function $r(he,Se){for(var we=-1,Be=he==null?0:he.length;++we<Be&&Se(he[we],we,he)!==!1;);return he}function nv(he,Se){for(var we=he==null?0:he.length;we--&&Se(he[we],we,he)!==!1;);return he}function rv(he,Se){for(var we=-1,Be=he==null?0:he.length;++we<Be;)if(!Se(he[we],we,he))return!1;return!0}function za(he,Se){for(var we=-1,Be=he==null?0:he.length,gt=0,qt=[];++we<Be;){var Pn=he[we];Se(Pn,we,he)&&(qt[gt++]=Pn)}return qt}function Bf(he,Se){var we=he==null?0:he.length;return!!we&&qa(he,Se,0)>-1}function ju(he,Se,we){for(var Be=-1,gt=he==null?0:he.length;++Be<gt;)if(we(Se,he[Be]))return!0;return!1}function ln(he,Se){for(var we=-1,Be=he==null?0:he.length,gt=Array(Be);++we<Be;)gt[we]=Se(he[we],we,he);return gt}function Ha(he,Se){for(var we=-1,Be=Se.length,gt=he.length;++we<Be;)he[gt+we]=Se[we];return he}function hp(he,Se,we,Be){var gt=-1,qt=he==null?0:he.length;for(Be&&qt&&(we=he[++gt]);++gt<qt;)we=Se(we,he[gt],gt,he);return we}function Z_(he,Se,we,Be){var gt=he==null?0:he.length;for(Be&>&&(we=he[--gt]);gt--;)we=Se(we,he[gt],gt,he);return we}function pp(he,Se){for(var we=-1,Be=he==null?0:he.length;++we<Be;)if(Se(he[we],we,he))return!0;return!1}var iv=Xf("length");function J_(he){return he.split("")}function ew(he){return he.match(Rf)||[]}function ov(he,Se,we){var Be;return we(he,function(gt,qt,Pn){if(Se(gt,qt,Pn))return Be=qt,!1}),Be}function Kf(he,Se,we,Be){for(var gt=he.length,qt=we+(Be?1:-1);Be?qt--:++qt<gt;)if(Se(he[qt],qt,he))return qt;return-1}function qa(he,Se,we){return Se===Se?aw(he,Se,we):Kf(he,av,we)}function tw(he,Se,we,Be){for(var gt=we-1,qt=he.length;++gt<qt;)if(Be(he[gt],Se))return gt;return-1}function av(he){return he!==he}function sv(he,Se){var we=he==null?0:he.length;return we?gp(he,Se)/we:B}function Xf(he){return function(Se){return Se==null?r:Se[he]}}function mp(he){return function(Se){return he==null?r:he[Se]}}function lv(he,Se,we,Be,gt){return gt(he,function(qt,Pn,Yt){we=Be?(Be=!1,qt):Se(we,qt,Pn,Yt)}),we}function nw(he,Se){var we=he.length;for(he.sort(Se);we--;)he[we]=he[we].value;return he}function gp(he,Se){for(var we,Be=-1,gt=he.length;++Be<gt;){var qt=Se(he[Be]);qt!==r&&(we=we===r?qt:we+qt)}return we}function vp(he,Se){for(var we=-1,Be=Array(he);++we<he;)Be[we]=Se(we);return Be}function rw(he,Se){return ln(Se,function(we){return[we,he[we]]})}function uv(he){return he&&he.slice(0,wp(he)+1).replace(Pi,"")}function jr(he){return function(Se){return he(Se)}}function Ls(he,Se){return ln(Se,function(we){return he[we]})}function zu(he,Se){return he.has(Se)}function yp(he,Se){for(var we=-1,Be=he.length;++we<Be&&qa(Se,he[we],0)>-1;);return we}function _p(he,Se){for(var we=he.length;we--&&qa(Se,he[we],0)>-1;);return we}function cv(he,Se){for(var we=he.length,Be=0;we--;)he[we]===Se&&++Be;return Be}var fv=mp(Uf),dv=mp(Y_);function Ll(he){return"\\"+cp[he]}function iw(he,Se){return he==null?r:he[Se]}function Ml(he){return qf.test(he)}function ow(he){return ev.test(he)}function hv(he){for(var Se,we=[];!(Se=he.next()).done;)we.push(Se.value);return we}function Yf(he){var Se=-1,we=Array(he.size);return he.forEach(function(Be,gt){we[++Se]=[gt,Be]}),we}function Il(he,Se){return function(we){return he(Se(we))}}function Ii(he,Se){for(var we=-1,Be=he.length,gt=0,qt=[];++we<Be;){var Pn=he[we];(Pn===Se||Pn===m)&&(he[we]=m,qt[gt++]=we)}return qt}function Qf(he){var Se=-1,we=Array(he.size);return he.forEach(function(Be){we[++Se]=Be}),we}function Zf(he){var Se=-1,we=Array(he.size);return he.forEach(function(Be){we[++Se]=[Be,Be]}),we}function aw(he,Se,we){for(var Be=we-1,gt=he.length;++Be<gt;)if(he[Be]===Se)return Be;return-1}function pv(he,Se,we){for(var Be=we+1;Be--;)if(he[Be]===Se)return Be;return Be}function Ua(he){return Ml(he)?gv(he):iv(he)}function _i(he){return Ml(he)?sw(he):J_(he)}function wp(he){for(var Se=he.length;Se--&&Ir.test(he.charAt(Se)););return Se}var mv=mp(Q_);function gv(he){for(var Se=up.lastIndex=0;up.test(he);)++Se;return Se}function sw(he){return he.match(up)||[]}function lw(he){return he.match(Jg)||[]}var uw=function he(Se){Se=Se==null?zn:Fl.defaults(zn.Object(),Se,Fl.pick(zn,X_));var we=Se.Array,Be=Se.Date,gt=Se.Error,qt=Se.Function,Pn=Se.Math,Yt=Se.Object,Sp=Se.RegExp,cw=Se.String,fr=Se.TypeError,$l=we.prototype,Hu=qt.prototype,Va=Yt.prototype,qu=Se["__core-js_shared__"],Ms=Hu.toString,Ft=Va.hasOwnProperty,bp=0,Cp=function(){var u=/[^.]+$/.exec(qu&&qu.keys&&qu.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),Is=Va.toString,vv=Ms.call(Yt),yv=zn._,_v=Sp("^"+Ms.call(Ft).replace(gi,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Uu=Fu?Se.Buffer:r,ia=Se.Symbol,Vu=Se.Uint8Array,oa=Uu?Uu.allocUnsafe:r,jl=Il(Yt.getPrototypeOf,Yt),Jf=Yt.create,wv=Va.propertyIsEnumerable,ed=$l.splice,zl=ia?ia.isConcatSpreadable:r,Wu=ia?ia.iterator:r,Wa=ia?ia.toStringTag:r,Gu=function(){try{var u=ts(Yt,"defineProperty");return u({},"",{}),u}catch{}}(),an=Se.clearTimeout!==zn.clearTimeout&&Se.clearTimeout,xp=Be&&Be.now!==zn.Date.now&&Be.now,td=Se.setTimeout!==zn.setTimeout&&Se.setTimeout,Ga=Pn.ceil,Bu=Pn.floor,Ku=Yt.getOwnPropertySymbols,Xu=Uu?Uu.isBuffer:r,Yu=Se.isFinite,Hl=$l.join,Sv=Il(Yt.keys,Yt),Hn=Pn.max,Ar=Pn.min,bv=Be.now,nd=Se.parseInt,Qu=Pn.random,Ep=$l.reverse,Zu=ts(Se,"DataView"),Fs=ts(Se,"Map"),Ju=ts(Se,"Promise"),ql=ts(Se,"Set"),Ul=ts(Se,"WeakMap"),ec=ts(Yt,"create"),rd=Ul&&new Ul,Ba={},Ka=ns(Zu),Cv=ns(Fs),Vl=ns(Ju),No=ns(ql),tc=ns(Ul),Fi=ia?ia.prototype:r,$s=Fi?Fi.valueOf:r,xv=Fi?Fi.toString:r;function G(u){if(Ln(u)&&!wt(u)&&!(u instanceof Et)){if(u instanceof dr)return u;if(Ft.call(u,"__wrapped__"))return Zv(u)}return new dr(u)}var $i=function(){function u(){}return function(d){if(!kn(d))return{};if(Jf)return Jf(d);u.prototype=d;var _=new u;return u.prototype=r,_}}();function Xa(){}function dr(u,d){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=r}G.templateSettings={escape:on,evaluate:gn,interpolate:er,variable:"",imports:{_:G}},G.prototype=Xa.prototype,G.prototype.constructor=G,dr.prototype=$i(Xa.prototype),dr.prototype.constructor=dr;function Et(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Y,this.__views__=[]}function Tp(){var u=new Et(this.__wrapped__);return u.__actions__=Hr(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=Hr(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=Hr(this.__views__),u}function Wl(){if(this.__filtered__){var u=new Et(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function Ya(){var u=this.__wrapped__.value(),d=this.__dir__,_=wt(u),M=d<0,j=_?u.length:0,X=Qp(0,j,this.__views__),ne=X.start,ce=X.end,pe=ce-ne,Te=M?ce:ne-1,Oe=this.__iteratees__,De=Oe.length,Ue=0,rt=Ar(pe,this.__takeCount__);if(!_||!M&&j==pe&&rt==pe)return Mp(u,this.__actions__);var dt=[];e:for(;pe--&&Ue<rt;){Te+=d;for(var At=-1,ht=u[Te];++At<De;){var Dt=Oe[At],zt=Dt.iteratee,yo=Dt.type,Ci=zt(ht);if(yo==Q)ht=Ci;else if(!Ci){if(yo==fe)continue e;break e}}dt[Ue++]=ht}return dt}Et.prototype=$i(Xa.prototype),Et.prototype.constructor=Et;function Gt(u){var d=-1,_=u==null?0:u.length;for(this.clear();++d<_;){var M=u[d];this.set(M[0],M[1])}}function nn(){this.__data__=ec?ec(null):{},this.size=0}function Qa(u){var d=this.has(u)&&delete this.__data__[u];return this.size-=d?1:0,d}function Rr(u){var d=this.__data__;if(ec){var _=d[u];return _===h?r:_}return Ft.call(d,u)?d[u]:r}function ri(u){var d=this.__data__;return ec?d[u]!==r:Ft.call(d,u)}function js(u,d){var _=this.__data__;return this.size+=this.has(u)?0:1,_[u]=ec&&d===r?h:d,this}Gt.prototype.clear=nn,Gt.prototype.delete=Qa,Gt.prototype.get=Rr,Gt.prototype.has=ri,Gt.prototype.set=js;function ii(u){var d=-1,_=u==null?0:u.length;for(this.clear();++d<_;){var M=u[d];this.set(M[0],M[1])}}function oi(){this.__data__=[],this.size=0}function id(u){var d=this.__data__,_=kr(d,u);if(_<0)return!1;var M=d.length-1;return _==M?d.pop():ed.call(d,_,1),--this.size,!0}function Ev(u){var d=this.__data__,_=kr(d,u);return _<0?r:d[_][1]}function Tv(u){return kr(this.__data__,u)>-1}function od(u,d){var _=this.__data__,M=kr(_,u);return M<0?(++this.size,_.push([u,d])):_[M][1]=d,this}ii.prototype.clear=oi,ii.prototype.delete=id,ii.prototype.get=Ev,ii.prototype.has=Tv,ii.prototype.set=od;function Po(u){var d=-1,_=u==null?0:u.length;for(this.clear();++d<_;){var M=u[d];this.set(M[0],M[1])}}function aa(){this.size=0,this.__data__={hash:new Gt,map:new(Fs||ii),string:new Gt}}function ad(u){var d=bc(this,u).delete(u);return this.size-=d?1:0,d}function Op(u){return bc(this,u).get(u)}function Ov(u){return bc(this,u).has(u)}function fw(u,d){var _=bc(this,u),M=_.size;return _.set(u,d),this.size+=_.size==M?0:1,this}Po.prototype.clear=aa,Po.prototype.delete=ad,Po.prototype.get=Op,Po.prototype.has=Ov,Po.prototype.set=fw;function ai(u){var d=-1,_=u==null?0:u.length;for(this.__data__=new Po;++d<_;)this.add(u[d])}function Gl(u){return this.__data__.set(u,h),this}function Bl(u){return this.__data__.has(u)}ai.prototype.add=ai.prototype.push=Gl,ai.prototype.has=Bl;function si(u){var d=this.__data__=new ii(u);this.size=d.size}function sd(){this.__data__=new ii,this.size=0}function ji(u){var d=this.__data__,_=d.delete(u);return this.size=d.size,_}function zi(u){return this.__data__.get(u)}function zs(u){return this.__data__.has(u)}function sa(u,d){var _=this.__data__;if(_ instanceof ii){var M=_.__data__;if(!Fs||M.length<o-1)return M.push([u,d]),this.size=++_.size,this;_=this.__data__=new Po(M)}return _.set(u,d),this.size=_.size,this}si.prototype.clear=sd,si.prototype.delete=ji,si.prototype.get=zi,si.prototype.has=zs,si.prototype.set=sa;function Do(u,d){var _=wt(u),M=!_&&Lc(u),j=!_&&!M&&cu(u),X=!_&&!M&&!j&&eh(u),ne=_||M||j||X,ce=ne?vp(u.length,cw):[],pe=ce.length;for(var Te in u)(d||Ft.call(u,Te))&&!(ne&&(Te=="length"||j&&(Te=="offset"||Te=="parent")||X&&(Te=="buffer"||Te=="byteLength"||Te=="byteOffset")||fn(Te,pe)))&&ce.push(Te);return ce}function Za(u){var d=u.length;return d?u[sc(0,d-1)]:r}function Av(u,d){return Fd(Hr(u),la(d,0,u.length))}function Ap(u){return Fd(Hr(u))}function nc(u,d,_){(_!==r&&!ma(u[d],_)||_===r&&!(d in u))&&Lo(u,d,_)}function hr(u,d,_){var M=u[d];(!(Ft.call(u,d)&&ma(M,_))||_===r&&!(d in u))&&Lo(u,d,_)}function kr(u,d){for(var _=u.length;_--;)if(ma(u[_][0],d))return _;return-1}function un(u,d,_,M){return Ja(u,function(j,X,ne){d(M,j,_(j),ne)}),M}function Hi(u,d){return u&&uo(d,Pr(d),u)}function Rv(u,d){return u&&uo(d,Xi(d),u)}function Lo(u,d,_){d=="__proto__"&&Gu?Gu(u,d,{configurable:!0,enumerable:!0,value:_,writable:!0}):u[d]=_}function rc(u,d){for(var _=-1,M=d.length,j=we(M),X=u==null;++_<M;)j[_]=X?r:Mw(u,d[_]);return j}function la(u,d,_){return u===u&&(_!==r&&(u=u<=_?u:_),d!==r&&(u=u>=d?u:d)),u}function wi(u,d,_,M,j,X){var ne,ce=d&v,pe=d&S,Te=d&b;if(_&&(ne=j?_(u,M,j,X):_(u)),ne!==r)return ne;if(!kn(u))return u;var Oe=wt(u);if(Oe){if(ne=xc(u),!ce)return Hr(u,ne)}else{var De=mr(u),Ue=De==qe||De==Je;if(cu(u))return mc(u,ce);if(De==Ee||De==q||Ue&&!j){if(ne=pe||Ue?{}:gr(u),!ce)return pe?jv(u,Rv(ne,u)):dw(u,Hi(ne,u))}else{if(!Wt[De])return j?u:{};ne=pw(u,De,ce)}}X||(X=new si);var rt=X.get(u);if(rt)return rt;X.set(u,ne),Rx(u)?u.forEach(function(ht){ne.add(wi(ht,d,_,ht,u,X))}):Ox(u)&&u.forEach(function(ht,Dt){ne.set(Dt,wi(ht,d,_,Dt,u,X))});var dt=Te?pe?Sc:wc:pe?Xi:Pr,At=Oe?r:dt(u);return $r(At||u,function(ht,Dt){At&&(Dt=ht,ht=u[Dt]),hr(ne,Dt,wi(ht,d,_,Dt,u,X))}),ne}function ld(u){var d=Pr(u);return function(_){return Rp(_,u,d)}}function Rp(u,d,_){var M=_.length;if(u==null)return!M;for(u=Yt(u);M--;){var j=_[M],X=d[j],ne=u[j];if(ne===r&&!(j in u)||!X(ne))return!1}return!0}function Hs(u,d,_){if(typeof u!="function")throw new fr(c);return su(function(){u.apply(r,_)},d)}function qs(u,d,_,M){var j=-1,X=Bf,ne=!0,ce=u.length,pe=[],Te=d.length;if(!ce)return pe;_&&(d=ln(d,jr(_))),M?(X=ju,ne=!1):d.length>=o&&(X=zu,ne=!1,d=new ai(d));e:for(;++j<ce;){var Oe=u[j],De=_==null?Oe:_(Oe);if(Oe=M||Oe!==0?Oe:0,ne&&De===De){for(var Ue=Te;Ue--;)if(d[Ue]===De)continue e;pe.push(Oe)}else X(d,De,M)||pe.push(Oe)}return pe}var Ja=qp(zr),qi=qp(li,!0);function ud(u,d){var _=!0;return Ja(u,function(M,j,X){return _=!!d(M,j,X),_}),_}function Us(u,d,_){for(var M=-1,j=u.length;++M<j;){var X=u[M],ne=d(X);if(ne!=null&&(ce===r?ne===ne&&!vo(ne):_(ne,ce)))var ce=ne,pe=X}return pe}function Kl(u,d,_,M){var j=u.length;for(_=Tt(_),_<0&&(_=-_>j?0:j+_),M=M===r||M>j?j:Tt(M),M<0&&(M+=j),M=_>M?0:Nx(M);_<M;)u[_++]=d;return u}function cd(u,d){var _=[];return Ja(u,function(M,j,X){d(M,j,X)&&_.push(M)}),_}function qn(u,d,_,M,j){var X=-1,ne=u.length;for(_||(_=Ld),j||(j=[]);++X<ne;){var ce=u[X];d>0&&_(ce)?d>1?qn(ce,d-1,_,M,j):Ha(j,ce):M||(j[j.length]=ce)}return j}var ic=Up(),fd=Up(!0);function zr(u,d){return u&&ic(u,d,Pr)}function li(u,d){return u&&fd(u,d,Pr)}function Mo(u,d){return za(d,function(_){return el(u[_])})}function ua(u,d){d=fa(d,u);for(var _=0,M=d.length;u!=null&&_<M;)u=u[po(d[_++])];return _&&_==M?u:r}function kp(u,d,_){var M=d(u);return wt(u)?M:Ha(M,_(u))}function vn(u){return u==null?u===r?_t:ke:Wa&&Wa in Yt(u)?Dd(u):Jp(u)}function Io(u,d){return u>d}function Np(u,d){return u!=null&&Ft.call(u,d)}function kv(u,d){return u!=null&&d in Yt(u)}function ca(u,d,_){return u>=Ar(d,_)&&u<Hn(d,_)}function Fo(u,d,_){for(var M=_?ju:Bf,j=u[0].length,X=u.length,ne=X,ce=we(X),pe=1/0,Te=[];ne--;){var Oe=u[ne];ne&&d&&(Oe=ln(Oe,jr(d))),pe=Ar(Oe.length,pe),ce[ne]=!_&&(d||j>=120&&Oe.length>=120)?new ai(ne&&Oe):r}Oe=u[0];var De=-1,Ue=ce[0];e:for(;++De<j&&Te.length<pe;){var rt=Oe[De],dt=d?d(rt):rt;if(rt=_||rt!==0?rt:0,!(Ue?zu(Ue,dt):M(Te,dt,_))){for(ne=X;--ne;){var At=ce[ne];if(!(At?zu(At,dt):M(u[ne],dt,_)))continue e}Ue&&Ue.push(dt),Te.push(rt)}}return Te}function dd(u,d,_,M){return zr(u,function(j,X,ne){d(M,_(j),X,ne)}),M}function Xl(u,d,_){d=fa(d,u),u=nr(u,d);var M=u==null?u:u[po(Vr(d))];return M==null?r:Fr(M,u,_)}function oc(u){return Ln(u)&&vn(u)==q}function Nv(u){return Ln(u)&&vn(u)==Qt}function Pv(u){return Ln(u)&&vn(u)==xe}function Vs(u,d,_,M,j){return u===d?!0:u==null||d==null||!Ln(u)&&!Ln(d)?u!==u&&d!==d:hd(u,d,_,M,Vs,j)}function hd(u,d,_,M,j,X){var ne=wt(u),ce=wt(d),pe=ne?se:mr(u),Te=ce?se:mr(d);pe=pe==q?Ee:pe,Te=Te==q?Ee:Te;var Oe=pe==Ee,De=Te==Ee,Ue=pe==Te;if(Ue&&cu(u)){if(!cu(d))return!1;ne=!0,Oe=!1}if(Ue&&!Oe)return X||(X=new si),ne||eh(u)?Xp(u,d,_,M,j,X):Yp(u,d,pe,_,M,j,X);if(!(_&A)){var rt=Oe&&Ft.call(u,"__wrapped__"),dt=De&&Ft.call(d,"__wrapped__");if(rt||dt){var At=rt?u.value():u,ht=dt?d.value():d;return X||(X=new si),j(At,ht,_,M,X)}}return Ue?(X||(X=new si),Vv(u,d,_,M,j,X)):!1}function Dv(u){return Ln(u)&&mr(u)==ye}function pd(u,d,_,M){var j=_.length,X=j,ne=!M;if(u==null)return!X;for(u=Yt(u);j--;){var ce=_[j];if(ne&&ce[2]?ce[1]!==u[ce[0]]:!(ce[0]in u))return!1}for(;++j<X;){ce=_[j];var pe=ce[0],Te=u[pe],Oe=ce[1];if(ne&&ce[2]){if(Te===r&&!(pe in u))return!1}else{var De=new si;if(M)var Ue=M(Te,Oe,pe,u,d,De);if(!(Ue===r?Vs(Oe,Te,A|C,M,De):Ue))return!1}}return!0}function Pp(u){if(!kn(u)||Bv(u))return!1;var d=el(u)?_v:ku;return d.test(ns(u))}function Dp(u){return Ln(u)&&vn(u)==ze}function ac(u){return Ln(u)&&mr(u)==nt}function md(u){return Ln(u)&&d0(u.length)&&!!Xt[vn(u)]}function Lp(u){return typeof u=="function"?u:u==null?Yi:typeof u=="object"?wt(u)?Zl(u[0],u[1]):so(u):qx(u)}function gd(u){if(!ha(u))return Sv(u);var d=[];for(var _ in Yt(u))Ft.call(u,_)&&_!="constructor"&&d.push(_);return d}function Yl(u){if(!kn(u))return Yv(u);var d=ha(u),_=[];for(var M in u)M=="constructor"&&(d||!Ft.call(u,M))||_.push(M);return _}function vd(u,d){return u<d}function Ql(u,d){var _=-1,M=Ki(u)?we(u.length):[];return Ja(u,function(j,X,ne){M[++_]=d(j,X,ne)}),M}function so(u){var d=Cc(u);return d.length==1&&d[0][2]?Md(d[0][0],d[0][1]):function(_){return _===u||pd(_,u,d)}}function Zl(u,d){return Ke(u)&&Tc(d)?Md(po(u),d):function(_){var M=Mw(_,u);return M===r&&M===d?Iw(_,u):Vs(d,M,A|C)}}function es(u,d,_,M,j){u!==d&&ic(d,function(X,ne){if(j||(j=new si),kn(X))Ws(u,d,ne,_,es,M,j);else{var ce=M?M(zo(u,ne),X,ne+"",u,d,j):r;ce===r&&(ce=X),nc(u,ne,ce)}},Xi)}function Ws(u,d,_,M,j,X,ne){var ce=zo(u,_),pe=zo(d,_),Te=ne.get(pe);if(Te){nc(u,_,Te);return}var Oe=X?X(ce,pe,_+"",u,d,ne):r,De=Oe===r;if(De){var Ue=wt(pe),rt=!Ue&&cu(pe),dt=!Ue&&!rt&&eh(pe);Oe=pe,Ue||rt||dt?wt(ce)?Oe=ce:Wn(ce)?Oe=Hr(ce):rt?(De=!1,Oe=mc(pe,!0)):dt?(De=!1,Oe=jp(pe,!0)):Oe=[]:vm(pe)||Lc(pe)?(Oe=ce,Lc(ce)?Oe=Px(ce):(!kn(ce)||el(ce))&&(Oe=gr(pe))):De=!1}De&&(ne.set(pe,Oe),j(Oe,pe,M,X,ne),ne.delete(pe)),nc(u,_,Oe)}function yd(u,d){var _=u.length;if(_)return d+=d<0?_:0,fn(d,_)?u[d]:r}function Gs(u,d,_){d.length?d=ln(d,function(X){return wt(X)?function(ne){return ua(ne,X.length===1?X[0]:X)}:X}):d=[Yi];var M=-1;d=ln(d,jr(lt()));var j=Ql(u,function(X,ne,ce){var pe=ln(d,function(Te){return Te(X)});return{criteria:pe,index:++M,value:X}});return nw(j,function(X,ne){return $v(X,ne,_)})}function Lv(u,d){return _d(u,d,function(_,M){return Iw(u,M)})}function _d(u,d,_){for(var M=-1,j=d.length,X={};++M<j;){var ne=d[M],ce=ua(u,ne);_(ce,ne)&&xn(X,fa(ne,u),ce)}return X}function yn(u){return function(d){return ua(d,u)}}function Jl(u,d,_,M){var j=M?tw:qa,X=-1,ne=d.length,ce=u;for(u===d&&(d=Hr(d)),_&&(ce=ln(u,jr(_)));++X<ne;)for(var pe=0,Te=d[X],Oe=_?_(Te):Te;(pe=j(ce,Oe,pe,M))>-1;)ce!==u&&ed.call(ce,pe,1),ed.call(u,pe,1);return u}function wd(u,d){for(var _=u?d.length:0,M=_-1;_--;){var j=d[_];if(_==M||j!==X){var X=j;fn(j)?ed.call(u,j,1):hc(u,j)}}return u}function sc(u,d){return u+Bu(Qu()*(d-u+1))}function Sd(u,d,_,M){for(var j=-1,X=Hn(Ga((d-u)/(_||1)),0),ne=we(X);X--;)ne[M?X:++j]=u,u+=_;return ne}function lc(u,d){var _="";if(!u||d<1||d>W)return _;do d%2&&(_+=u),d=Bu(d/2),d&&(u+=u);while(d);return _}function vt(u,d){return Si(Id(u,d,Yi),u+"")}function _n(u){return Za(th(u))}function Un(u,d){var _=th(u);return Fd(_,la(d,0,_.length))}function xn(u,d,_,M){if(!kn(u))return u;d=fa(d,u);for(var j=-1,X=d.length,ne=X-1,ce=u;ce!=null&&++j<X;){var pe=po(d[j]),Te=_;if(pe==="__proto__"||pe==="constructor"||pe==="prototype")return u;if(j!=ne){var Oe=ce[pe];Te=M?M(Oe,pe,ce):r,Te===r&&(Te=kn(Oe)?Oe:fn(d[j+1])?[]:{})}hr(ce,pe,Te),ce=ce[pe]}return u}var uc=rd?function(u,d){return rd.set(u,d),u}:Yi,cc=Gu?function(u,d){return Gu(u,"toString",{configurable:!0,enumerable:!1,value:$w(d),writable:!0})}:Yi;function fc(u){return Fd(th(u))}function Ui(u,d,_){var M=-1,j=u.length;d<0&&(d=-d>j?0:j+d),_=_>j?j:_,_<0&&(_+=j),j=d>_?0:_-d>>>0,d>>>=0;for(var X=we(j);++M<j;)X[M]=u[M+d];return X}function Nr(u,d){var _;return Ja(u,function(M,j,X){return _=d(M,j,X),!_}),!!_}function eu(u,d,_){var M=0,j=u==null?M:u.length;if(typeof d=="number"&&d===d&&j<=le){for(;M<j;){var X=M+j>>>1,ne=u[X];ne!==null&&!vo(ne)&&(_?ne<=d:ne<d)?M=X+1:j=X}return j}return dc(u,d,Yi,_)}function dc(u,d,_,M){var j=0,X=u==null?0:u.length;if(X===0)return 0;d=_(d);for(var ne=d!==d,ce=d===null,pe=vo(d),Te=d===r;j<X;){var Oe=Bu((j+X)/2),De=_(u[Oe]),Ue=De!==r,rt=De===null,dt=De===De,At=vo(De);if(ne)var ht=M||dt;else Te?ht=dt&&(M||Ue):ce?ht=dt&&Ue&&(M||!rt):pe?ht=dt&&Ue&&!rt&&(M||!At):rt||At?ht=!1:ht=M?De<=d:De<d;ht?j=Oe+1:X=Oe}return Ar(X,ae)}function bd(u,d){for(var _=-1,M=u.length,j=0,X=[];++_<M;){var ne=u[_],ce=d?d(ne):ne;if(!_||!ma(ce,pe)){var pe=ce;X[j++]=ne===0?0:ne}}return X}function lo(u){return typeof u=="number"?u:vo(u)?B:+u}function cn(u){if(typeof u=="string")return u;if(wt(u))return ln(u,cn)+"";if(vo(u))return xv?xv.call(u):"";var d=u+"";return d=="0"&&1/u==-1/0?"-0":d}function Vi(u,d,_){var M=-1,j=Bf,X=u.length,ne=!0,ce=[],pe=ce;if(_)ne=!1,j=ju;else if(X>=o){var Te=d?null:Uv(u);if(Te)return Qf(Te);ne=!1,j=zu,pe=new ai}else pe=d?[]:ce;e:for(;++M<X;){var Oe=u[M],De=d?d(Oe):Oe;if(Oe=_||Oe!==0?Oe:0,ne&&De===De){for(var Ue=pe.length;Ue--;)if(pe[Ue]===De)continue e;d&&pe.push(De),ce.push(Oe)}else j(pe,De,_)||(pe!==ce&&pe.push(De),ce.push(Oe))}return ce}function hc(u,d){return d=fa(d,u),u=nr(u,d),u==null||delete u[po(Vr(d))]}function Cd(u,d,_,M){return xn(u,d,_(ua(u,d)),M)}function pc(u,d,_,M){for(var j=u.length,X=M?j:-1;(M?X--:++X<j)&&d(u[X],X,u););return _?Ui(u,M?0:X,M?X+1:j):Ui(u,M?X+1:0,M?j:X)}function Mp(u,d){var _=u;return _ instanceof Et&&(_=_.value()),hp(d,function(M,j){return j.func.apply(j.thisArg,Ha([M],j.args))},_)}function xd(u,d,_){var M=u.length;if(M<2)return M?Vi(u[0]):[];for(var j=-1,X=we(M);++j<M;)for(var ne=u[j],ce=-1;++ce<M;)ce!=j&&(X[j]=qs(X[j]||ne,u[ce],d,_));return Vi(qn(X,1),d,_)}function Ip(u,d,_){for(var M=-1,j=u.length,X=d.length,ne={};++M<j;){var ce=M<X?d[M]:r;_(ne,u[M],ce)}return ne}function Ed(u){return Wn(u)?u:[]}function Td(u){return typeof u=="function"?u:Yi}function fa(u,d){return wt(u)?u:Ke(u,d)?[u]:nm(Zt(u))}var Mv=vt;function Wi(u,d,_){var M=u.length;return _=_===r?M:_,!d&&_>=M?u:Ui(u,d,_)}var Fp=an||function(u){return zn.clearTimeout(u)};function mc(u,d){if(d)return u.slice();var _=u.length,M=oa?oa(_):new u.constructor(_);return u.copy(M),M}function tu(u){var d=new u.constructor(u.byteLength);return new Vu(d).set(new Vu(u)),d}function Iv(u,d){var _=d?tu(u.buffer):u.buffer;return new u.constructor(_,u.byteOffset,u.byteLength)}function $p(u){var d=new u.constructor(u.source,ao.exec(u));return d.lastIndex=u.lastIndex,d}function Fv(u){return $s?Yt($s.call(u)):{}}function jp(u,d){var _=d?tu(u.buffer):u.buffer;return new u.constructor(_,u.byteOffset,u.length)}function zp(u,d){if(u!==d){var _=u!==r,M=u===null,j=u===u,X=vo(u),ne=d!==r,ce=d===null,pe=d===d,Te=vo(d);if(!ce&&!Te&&!X&&u>d||X&&ne&&pe&&!ce&&!Te||M&&ne&&pe||!_&&pe||!j)return 1;if(!M&&!X&&!Te&&u<d||Te&&_&&j&&!M&&!X||ce&&_&&j||!ne&&j||!pe)return-1}return 0}function $v(u,d,_){for(var M=-1,j=u.criteria,X=d.criteria,ne=j.length,ce=_.length;++M<ne;){var pe=zp(j[M],X[M]);if(pe){if(M>=ce)return pe;var Te=_[M];return pe*(Te=="desc"?-1:1)}}return u.index-d.index}function Od(u,d,_,M){for(var j=-1,X=u.length,ne=_.length,ce=-1,pe=d.length,Te=Hn(X-ne,0),Oe=we(pe+Te),De=!M;++ce<pe;)Oe[ce]=d[ce];for(;++j<ne;)(De||j<X)&&(Oe[_[j]]=u[j]);for(;Te--;)Oe[ce++]=u[j++];return Oe}function Hp(u,d,_,M){for(var j=-1,X=u.length,ne=-1,ce=_.length,pe=-1,Te=d.length,Oe=Hn(X-ce,0),De=we(Oe+Te),Ue=!M;++j<Oe;)De[j]=u[j];for(var rt=j;++pe<Te;)De[rt+pe]=d[pe];for(;++ne<ce;)(Ue||j<X)&&(De[rt+_[ne]]=u[j++]);return De}function Hr(u,d){var _=-1,M=u.length;for(d||(d=we(M));++_<M;)d[_]=u[_];return d}function uo(u,d,_,M){var j=!_;_||(_={});for(var X=-1,ne=d.length;++X<ne;){var ce=d[X],pe=M?M(_[ce],u[ce],ce,_,u):r;pe===r&&(pe=u[ce]),j?Lo(_,ce,pe):hr(_,ce,pe)}return _}function dw(u,d){return uo(u,co(u),d)}function jv(u,d){return uo(u,Wv(u),d)}function Ad(u,d){return function(_,M){var j=wt(_)?$u:un,X=d?d():{};return j(_,u,lt(M,2),X)}}function nu(u){return vt(function(d,_){var M=-1,j=_.length,X=j>1?_[j-1]:r,ne=j>2?_[2]:r;for(X=u.length>3&&typeof X=="function"?(j--,X):r,ne&&Ur(_[0],_[1],ne)&&(X=j<3?r:X,j=1),d=Yt(d);++M<j;){var ce=_[M];ce&&u(d,ce,M,X)}return d})}function qp(u,d){return function(_,M){if(_==null)return _;if(!Ki(_))return u(_,M);for(var j=_.length,X=d?j:-1,ne=Yt(_);(d?X--:++X<j)&&M(ne[X],X,ne)!==!1;);return _}}function Up(u){return function(d,_,M){for(var j=-1,X=Yt(d),ne=M(d),ce=ne.length;ce--;){var pe=ne[u?ce:++j];if(_(X[pe],pe,X)===!1)break}return d}}function zv(u,d,_){var M=d&E,j=vc(u);function X(){var ne=this&&this!==zn&&this instanceof X?j:u;return ne.apply(M?_:this,arguments)}return X}function gc(u){return function(d){d=Zt(d);var _=Ml(d)?_i(d):r,M=_?_[0]:d.charAt(0),j=_?Wi(_,1).join(""):d.slice(1);return M[u]()+j}}function ru(u){return function(d){return hp(zx(jx(d).replace(Zg,"")),u,"")}}function vc(u){return function(){var d=arguments;switch(d.length){case 0:return new u;case 1:return new u(d[0]);case 2:return new u(d[0],d[1]);case 3:return new u(d[0],d[1],d[2]);case 4:return new u(d[0],d[1],d[2],d[3]);case 5:return new u(d[0],d[1],d[2],d[3],d[4]);case 6:return new u(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new u(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var _=$i(u.prototype),M=u.apply(_,d);return kn(M)?M:_}}function hw(u,d,_){var M=vc(u);function j(){for(var X=arguments.length,ne=we(X),ce=X,pe=da(j);ce--;)ne[ce]=arguments[ce];var Te=X<3&&ne[0]!==pe&&ne[X-1]!==pe?[]:Ii(ne,pe);if(X-=Te.length,X<_)return qr(u,d,iu,j.placeholder,r,ne,Te,r,r,_-X);var Oe=this&&this!==zn&&this instanceof j?M:u;return Fr(Oe,this,ne)}return j}function Bs(u){return function(d,_,M){var j=Yt(d);if(!Ki(d)){var X=lt(_,3);d=Pr(d),_=function(ce){return X(j[ce],ce,j)}}var ne=u(d,_,M);return ne>-1?j[X?d[ne]:ne]:r}}function Rd(u){return jo(function(d){var _=d.length,M=_,j=dr.prototype.thru;for(u&&d.reverse();M--;){var X=d[M];if(typeof X!="function")throw new fr(c);if(j&&!ne&&ou(X)=="wrapper")var ne=new dr([],!0)}for(M=ne?M:_;++M<_;){X=d[M];var ce=ou(X),pe=ce=="wrapper"?Pd(X):r;pe&&Ec(pe[0])&&pe[1]==(F|x|R|U)&&!pe[4].length&&pe[9]==1?ne=ne[ou(pe[0])].apply(ne,pe[3]):ne=X.length==1&&Ec(X)?ne[ce]():ne.thru(X)}return function(){var Te=arguments,Oe=Te[0];if(ne&&Te.length==1&&wt(Oe))return ne.plant(Oe).value();for(var De=0,Ue=_?d[De].apply(this,Te):Oe;++De<_;)Ue=d[De].call(this,Ue);return Ue}})}function iu(u,d,_,M,j,X,ne,ce,pe,Te){var Oe=d&F,De=d&E,Ue=d&k,rt=d&(x|w),dt=d&V,At=Ue?r:vc(u);function ht(){for(var Dt=arguments.length,zt=we(Dt),yo=Dt;yo--;)zt[yo]=arguments[yo];if(rt)var Ci=da(ht),_o=cv(zt,Ci);if(M&&(zt=Od(zt,M,j,rt)),X&&(zt=Hp(zt,X,ne,rt)),Dt-=_o,rt&&Dt<Te){var Gn=Ii(zt,Ci);return qr(u,d,iu,ht.placeholder,_,zt,Gn,ce,pe,Te-Dt)}var ga=De?_:this,nl=Ue?ga[u]:u;return Dt=zt.length,ce?zt=fo(zt,ce):dt&&Dt>1&&zt.reverse(),Oe&&pe<Dt&&(zt.length=pe),this&&this!==zn&&this instanceof ht&&(nl=At||vc(nl)),nl.apply(ga,zt)}return ht}function Hv(u,d){return function(_,M){return dd(_,u,d(M),{})}}function yc(u,d){return function(_,M){var j;if(_===r&&M===r)return d;if(_!==r&&(j=_),M!==r){if(j===r)return M;typeof _=="string"||typeof M=="string"?(_=cn(_),M=cn(M)):(_=lo(_),M=lo(M)),j=u(_,M)}return j}}function kd(u){return jo(function(d){return d=ln(d,jr(lt())),vt(function(_){var M=this;return u(d,function(j){return Fr(j,M,_)})})})}function _c(u,d){d=d===r?" ":cn(d);var _=d.length;if(_<2)return _?lc(d,u):d;var M=lc(d,Ga(u/Ua(d)));return Ml(d)?Wi(_i(M),0,u).join(""):M.slice(0,u)}function qv(u,d,_,M){var j=d&E,X=vc(u);function ne(){for(var ce=-1,pe=arguments.length,Te=-1,Oe=M.length,De=we(Oe+pe),Ue=this&&this!==zn&&this instanceof ne?X:u;++Te<Oe;)De[Te]=M[Te];for(;pe--;)De[Te++]=arguments[++ce];return Fr(Ue,j?_:this,De)}return ne}function Vp(u){return function(d,_,M){return M&&typeof M!="number"&&Ur(d,_,M)&&(_=M=r),d=tl(d),_===r?(_=d,d=0):_=tl(_),M=M===r?d<_?1:-1:tl(M),Sd(d,_,M,u)}}function Nd(u){return function(d,_){return typeof d=="string"&&typeof _=="string"||(d=Ho(d),_=Ho(_)),u(d,_)}}function qr(u,d,_,M,j,X,ne,ce,pe,Te){var Oe=d&x,De=Oe?ne:r,Ue=Oe?r:ne,rt=Oe?X:r,dt=Oe?r:X;d|=Oe?R:I,d&=~(Oe?I:R),d&T||(d&=-4);var At=[u,d,j,rt,De,dt,Ue,ce,pe,Te],ht=_.apply(r,At);return Ec(u)&&em(ht,At),ht.placeholder=M,tm(ht,u,d)}function pr(u){var d=Pn[u];return function(_,M){if(_=Ho(_),M=M==null?0:Ar(Tt(M),292),M&&Yu(_)){var j=(Zt(_)+"e").split("e"),X=d(j[0]+"e"+(+j[1]+M));return j=(Zt(X)+"e").split("e"),+(j[0]+"e"+(+j[1]-M))}return d(_)}}var Uv=ql&&1/Qf(new ql([,-0]))[1]==z?function(u){return new ql(u)}:Hw;function Wp(u){return function(d){var _=mr(d);return _==ye?Yf(d):_==nt?Zf(d):rw(d,u(d))}}function $o(u,d,_,M,j,X,ne,ce){var pe=d&k;if(!pe&&typeof u!="function")throw new fr(c);var Te=M?M.length:0;if(Te||(d&=-97,M=j=r),ne=ne===r?ne:Hn(Tt(ne),0),ce=ce===r?ce:Tt(ce),Te-=j?j.length:0,d&I){var Oe=M,De=j;M=j=r}var Ue=pe?r:Pd(u),rt=[u,d,_,M,j,Oe,De,X,ne,ce];if(Ue&&Xv(rt,Ue),u=rt[0],d=rt[1],_=rt[2],M=rt[3],j=rt[4],ce=rt[9]=rt[9]===r?pe?0:u.length:Hn(rt[9]-Te,0),!ce&&d&(x|w)&&(d&=-25),!d||d==E)var dt=zv(u,d,_);else d==x||d==w?dt=hw(u,d,ce):(d==R||d==(E|R))&&!j.length?dt=qv(u,d,_,M):dt=iu.apply(r,rt);var At=Ue?uc:em;return tm(At(dt,rt),u,d)}function Gp(u,d,_,M){return u===r||ma(u,Va[_])&&!Ft.call(M,_)?d:u}function Bp(u,d,_,M,j,X){return kn(u)&&kn(d)&&(X.set(d,u),es(u,d,r,Bp,X),X.delete(d)),u}function Kp(u){return vm(u)?r:u}function Xp(u,d,_,M,j,X){var ne=_&A,ce=u.length,pe=d.length;if(ce!=pe&&!(ne&&pe>ce))return!1;var Te=X.get(u),Oe=X.get(d);if(Te&&Oe)return Te==d&&Oe==u;var De=-1,Ue=!0,rt=_&C?new ai:r;for(X.set(u,d),X.set(d,u);++De<ce;){var dt=u[De],At=d[De];if(M)var ht=ne?M(At,dt,De,d,u,X):M(dt,At,De,u,d,X);if(ht!==r){if(ht)continue;Ue=!1;break}if(rt){if(!pp(d,function(Dt,zt){if(!zu(rt,zt)&&(dt===Dt||j(dt,Dt,_,M,X)))return rt.push(zt)})){Ue=!1;break}}else if(!(dt===At||j(dt,At,_,M,X))){Ue=!1;break}}return X.delete(u),X.delete(d),Ue}function Yp(u,d,_,M,j,X,ne){switch(_){case Zr:if(u.byteLength!=d.byteLength||u.byteOffset!=d.byteOffset)return!1;u=u.buffer,d=d.buffer;case Qt:return!(u.byteLength!=d.byteLength||!X(new Vu(u),new Vu(d)));case Ce:case xe:case be:return ma(+u,+d);case Me:return u.name==d.name&&u.message==d.message;case ze:case ct:return u==d+"";case ye:var ce=Yf;case nt:var pe=M&A;if(ce||(ce=Qf),u.size!=d.size&&!pe)return!1;var Te=ne.get(u);if(Te)return Te==d;M|=C,ne.set(u,d);var Oe=Xp(ce(u),ce(d),M,j,X,ne);return ne.delete(u),Oe;case Ge:if($s)return $s.call(u)==$s.call(d)}return!1}function Vv(u,d,_,M,j,X){var ne=_&A,ce=wc(u),pe=ce.length,Te=wc(d),Oe=Te.length;if(pe!=Oe&&!ne)return!1;for(var De=pe;De--;){var Ue=ce[De];if(!(ne?Ue in d:Ft.call(d,Ue)))return!1}var rt=X.get(u),dt=X.get(d);if(rt&&dt)return rt==d&&dt==u;var At=!0;X.set(u,d),X.set(d,u);for(var ht=ne;++De<pe;){Ue=ce[De];var Dt=u[Ue],zt=d[Ue];if(M)var yo=ne?M(zt,Dt,Ue,d,u,X):M(Dt,zt,Ue,u,d,X);if(!(yo===r?Dt===zt||j(Dt,zt,_,M,X):yo)){At=!1;break}ht||(ht=Ue=="constructor")}if(At&&!ht){var Ci=u.constructor,_o=d.constructor;Ci!=_o&&"constructor"in u&&"constructor"in d&&!(typeof Ci=="function"&&Ci instanceof Ci&&typeof _o=="function"&&_o instanceof _o)&&(At=!1)}return X.delete(u),X.delete(d),At}function jo(u){return Si(Id(u,r,jd),u+"")}function wc(u){return kp(u,Pr,co)}function Sc(u){return kp(u,Xi,Wv)}var Pd=rd?function(u){return rd.get(u)}:Hw;function ou(u){for(var d=u.name+"",_=Ba[d],M=Ft.call(Ba,d)?_.length:0;M--;){var j=_[M],X=j.func;if(X==null||X==u)return j.name}return d}function da(u){var d=Ft.call(G,"placeholder")?G:u;return d.placeholder}function lt(){var u=G.iteratee||jw;return u=u===jw?Lp:u,arguments.length?u(arguments[0],arguments[1]):u}function bc(u,d){var _=u.__data__;return au(d)?_[typeof d=="string"?"string":"hash"]:_.map}function Cc(u){for(var d=Pr(u),_=d.length;_--;){var M=d[_],j=u[M];d[_]=[M,j,Tc(j)]}return d}function ts(u,d){var _=iw(u,d);return Pp(_)?_:r}function Dd(u){var d=Ft.call(u,Wa),_=u[Wa];try{u[Wa]=r;var M=!0}catch{}var j=Is.call(u);return M&&(d?u[Wa]=_:delete u[Wa]),j}var co=Ku?function(u){return u==null?[]:(u=Yt(u),za(Ku(u),function(d){return wv.call(u,d)}))}:qw,Wv=Ku?function(u){for(var d=[];u;)Ha(d,co(u)),u=jl(u);return d}:qw,mr=vn;(Zu&&mr(new Zu(new ArrayBuffer(1)))!=Zr||Fs&&mr(new Fs)!=ye||Ju&&mr(Ju.resolve())!=Fe||ql&&mr(new ql)!=nt||Ul&&mr(new Ul)!=Kt)&&(mr=function(u){var d=vn(u),_=d==Ee?u.constructor:r,M=_?ns(_):"";if(M)switch(M){case Ka:return Zr;case Cv:return ye;case Vl:return Fe;case No:return nt;case tc:return Kt}return d});function Qp(u,d,_){for(var M=-1,j=_.length;++M<j;){var X=_[M],ne=X.size;switch(X.type){case"drop":u+=ne;break;case"dropRight":d-=ne;break;case"take":d=Ar(d,u+ne);break;case"takeRight":u=Hn(u,d-ne);break}}return{start:u,end:d}}function Gv(u){var d=u.match(ta);return d?d[1].split(ei):[]}function Zp(u,d,_){d=fa(d,u);for(var M=-1,j=d.length,X=!1;++M<j;){var ne=po(d[M]);if(!(X=u!=null&&_(u,ne)))break;u=u[ne]}return X||++M!=j?X:(j=u==null?0:u.length,!!j&&d0(j)&&fn(ne,j)&&(wt(u)||Lc(u)))}function xc(u){var d=u.length,_=new u.constructor(d);return d&&typeof u[0]=="string"&&Ft.call(u,"index")&&(_.index=u.index,_.input=u.input),_}function gr(u){return typeof u.constructor=="function"&&!ha(u)?$i(jl(u)):{}}function pw(u,d,_){var M=u.constructor;switch(d){case Qt:return tu(u);case Ce:case xe:return new M(+u);case Zr:return Iv(u,_);case ur:case Mr:case Xe:case it:case It:case Jn:case mn:case Jr:case Er:return jp(u,_);case ye:return new M;case be:case ct:return new M(u);case ze:return $p(u);case nt:return new M;case Ge:return Fv(u)}}function mw(u,d){var _=d.length;if(!_)return u;var M=_-1;return d[M]=(_>1?"& ":"")+d[M],d=d.join(_>2?", ":" "),u.replace(tr,`{
|
|
59
|
+
/* [wrapped with `+d+`] */
|
|
60
|
+
`)}function Ld(u){return wt(u)||Lc(u)||!!(zl&&u&&u[zl])}function fn(u,d){var _=typeof u;return d=d??W,!!d&&(_=="number"||_!="symbol"&&Df.test(u))&&u>-1&&u%1==0&&u<d}function Ur(u,d,_){if(!kn(_))return!1;var M=typeof d;return(M=="number"?Ki(_)&&fn(d,_.length):M=="string"&&d in _)?ma(_[d],u):!1}function Ke(u,d){if(wt(u))return!1;var _=typeof u;return _=="number"||_=="symbol"||_=="boolean"||u==null||vo(u)?!0:mi.test(u)||!Or.test(u)||d!=null&&u in Yt(d)}function au(u){var d=typeof u;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?u!=="__proto__":u===null}function Ec(u){var d=ou(u),_=G[d];if(typeof _!="function"||!(d in Et.prototype))return!1;if(u===_)return!0;var M=Pd(_);return!!M&&u===M[0]}function Bv(u){return!!Cp&&Cp in u}var gw=qu?el:Uw;function ha(u){var d=u&&u.constructor,_=typeof d=="function"&&d.prototype||Va;return u===_}function Tc(u){return u===u&&!kn(u)}function Md(u,d){return function(_){return _==null?!1:_[u]===d&&(d!==r||u in Yt(_))}}function Kv(u){var d=ge(u,function(M){return _.size===g&&_.clear(),M}),_=d.cache;return d}function Xv(u,d){var _=u[1],M=d[1],j=_|M,X=j<(E|k|F),ne=M==F&&_==x||M==F&&_==U&&u[7].length<=d[8]||M==(F|U)&&d[7].length<=d[8]&&_==x;if(!(X||ne))return u;M&E&&(u[2]=d[2],j|=_&E?0:T);var ce=d[3];if(ce){var pe=u[3];u[3]=pe?Od(pe,ce,d[4]):ce,u[4]=pe?Ii(u[3],m):d[4]}return ce=d[5],ce&&(pe=u[5],u[5]=pe?Hp(pe,ce,d[6]):ce,u[6]=pe?Ii(u[5],m):d[6]),ce=d[7],ce&&(u[7]=ce),M&F&&(u[8]=u[8]==null?d[8]:Ar(u[8],d[8])),u[9]==null&&(u[9]=d[9]),u[0]=d[0],u[1]=j,u}function Yv(u){var d=[];if(u!=null)for(var _ in Yt(u))d.push(_);return d}function Jp(u){return Is.call(u)}function Id(u,d,_){return d=Hn(d===r?u.length-1:d,0),function(){for(var M=arguments,j=-1,X=Hn(M.length-d,0),ne=we(X);++j<X;)ne[j]=M[d+j];j=-1;for(var ce=we(d+1);++j<d;)ce[j]=M[j];return ce[d]=_(ne),Fr(u,this,ce)}}function nr(u,d){return d.length<2?u:ua(u,Ui(d,0,-1))}function fo(u,d){for(var _=u.length,M=Ar(d.length,_),j=Hr(u);M--;){var X=d[M];u[M]=fn(X,_)?j[X]:r}return u}function zo(u,d){if(!(d==="constructor"&&typeof u[d]=="function")&&d!="__proto__")return u[d]}var em=ho(uc),su=td||function(u,d){return zn.setTimeout(u,d)},Si=ho(cc);function tm(u,d,_){var M=d+"";return Si(u,mw(M,Qv(Gv(M),_)))}function ho(u){var d=0,_=0;return function(){var M=bv(),j=oe-(M-_);if(_=M,j>0){if(++d>=J)return arguments[0]}else d=0;return u.apply(r,arguments)}}function Fd(u,d){var _=-1,M=u.length,j=M-1;for(d=d===r?M:d;++_<d;){var X=sc(_,j),ne=u[X];u[X]=u[_],u[_]=ne}return u.length=d,u}var nm=Kv(function(u){var d=[];return u.charCodeAt(0)===46&&d.push(""),u.replace(Pa,function(_,M,j,X){d.push(j?X.replace(ti,"$1"):M||_)}),d});function po(u){if(typeof u=="string"||vo(u))return u;var d=u+"";return d=="0"&&1/u==-1/0?"-0":d}function ns(u){if(u!=null){try{return Ms.call(u)}catch{}try{return u+""}catch{}}return""}function Qv(u,d){return $r(ie,function(_){var M="_."+_[0];d&_[1]&&!Bf(u,M)&&u.push(M)}),u.sort()}function Zv(u){if(u instanceof Et)return u.clone();var d=new dr(u.__wrapped__,u.__chain__);return d.__actions__=Hr(u.__actions__),d.__index__=u.__index__,d.__values__=u.__values__,d}function $d(u,d,_){(_?Ur(u,d,_):d===r)?d=1:d=Hn(Tt(d),0);var M=u==null?0:u.length;if(!M||d<1)return[];for(var j=0,X=0,ne=we(Ga(M/d));j<M;)ne[X++]=Ui(u,j,j+=d);return ne}function rm(u){for(var d=-1,_=u==null?0:u.length,M=0,j=[];++d<_;){var X=u[d];X&&(j[M++]=X)}return j}function Gi(){var u=arguments.length;if(!u)return[];for(var d=we(u-1),_=arguments[0],M=u;M--;)d[M-1]=arguments[M];return Ha(wt(_)?Hr(_):[_],qn(d,1))}var jt=vt(function(u,d){return Wn(u)?qs(u,qn(d,1,Wn,!0)):[]}),rr=vt(function(u,d){var _=Vr(d);return Wn(_)&&(_=r),Wn(u)?qs(u,qn(d,1,Wn,!0),lt(_,2)):[]}),Dn=vt(function(u,d){var _=Vr(d);return Wn(_)&&(_=r),Wn(u)?qs(u,qn(d,1,Wn,!0),r,_):[]});function vr(u,d,_){var M=u==null?0:u.length;return M?(d=_||d===r?1:Tt(d),Ui(u,d<0?0:d,M)):[]}function bi(u,d,_){var M=u==null?0:u.length;return M?(d=_||d===r?1:Tt(d),d=M-d,Ui(u,0,d<0?0:d)):[]}function lu(u,d){return u&&u.length?pc(u,lt(d,3),!0,!0):[]}function Vn(u,d){return u&&u.length?pc(u,lt(d,3),!0):[]}function Oc(u,d,_,M){var j=u==null?0:u.length;return j?(_&&typeof _!="number"&&Ur(u,d,_)&&(_=0,M=j),Kl(u,d,_,M)):[]}function rs(u,d,_){var M=u==null?0:u.length;if(!M)return-1;var j=_==null?0:Tt(_);return j<0&&(j=Hn(M+j,0)),Kf(u,lt(d,3),j)}function Ac(u,d,_){var M=u==null?0:u.length;if(!M)return-1;var j=M-1;return _!==r&&(j=Tt(_),j=_<0?Hn(M+j,0):Ar(j,M-1)),Kf(u,lt(d,3),j,!0)}function jd(u){var d=u==null?0:u.length;return d?qn(u,1):[]}function Rc(u){var d=u==null?0:u.length;return d?qn(u,z):[]}function ui(u,d){var _=u==null?0:u.length;return _?(d=d===r?1:Tt(d),qn(u,d)):[]}function im(u){for(var d=-1,_=u==null?0:u.length,M={};++d<_;){var j=u[d];M[j[0]]=j[1]}return M}function Ks(u){return u&&u.length?u[0]:r}function pa(u,d,_){var M=u==null?0:u.length;if(!M)return-1;var j=_==null?0:Tt(_);return j<0&&(j=Hn(M+j,0)),qa(u,d,j)}function zd(u){var d=u==null?0:u.length;return d?Ui(u,0,-1):[]}var om=vt(function(u){var d=ln(u,Ed);return d.length&&d[0]===u[0]?Fo(d):[]}),is=vt(function(u){var d=Vr(u),_=ln(u,Ed);return d===Vr(_)?d=r:_.pop(),_.length&&_[0]===u[0]?Fo(_,lt(d,2)):[]}),Hd=vt(function(u){var d=Vr(u),_=ln(u,Ed);return d=typeof d=="function"?d:r,d&&_.pop(),_.length&&_[0]===u[0]?Fo(_,r,d):[]});function os(u,d){return u==null?"":Hl.call(u,d)}function Vr(u){var d=u==null?0:u.length;return d?u[d-1]:r}function kc(u,d,_){var M=u==null?0:u.length;if(!M)return-1;var j=M;return _!==r&&(j=Tt(_),j=j<0?Hn(M+j,0):Ar(j,M-1)),d===d?pv(u,d,j):Kf(u,av,j,!0)}function am(u,d){return u&&u.length?yd(u,Tt(d)):r}var qd=vt(Nc);function Nc(u,d){return u&&u.length&&d&&d.length?Jl(u,d):u}function Wr(u,d,_){return u&&u.length&&d&&d.length?Jl(u,d,lt(_,2)):u}function as(u,d,_){return u&&u.length&&d&&d.length?Jl(u,d,r,_):u}var mo=jo(function(u,d){var _=u==null?0:u.length,M=rc(u,d);return wd(u,ln(d,function(j){return fn(j,_)?+j:j}).sort(zp)),M});function ci(u,d){var _=[];if(!(u&&u.length))return _;var M=-1,j=[],X=u.length;for(d=lt(d,3);++M<X;){var ne=u[M];d(ne,M,u)&&(_.push(ne),j.push(M))}return wd(u,j),_}function Ud(u){return u==null?u:Ep.call(u)}function sm(u,d,_){var M=u==null?0:u.length;return M?(_&&typeof _!="number"&&Ur(u,d,_)?(d=0,_=M):(d=d==null?0:Tt(d),_=_===r?M:Tt(_)),Ui(u,d,_)):[]}function lm(u,d){return eu(u,d)}function vw(u,d,_){return dc(u,d,lt(_,2))}function ss(u,d){var _=u==null?0:u.length;if(_){var M=eu(u,d);if(M<_&&ma(u[M],d))return M}return-1}function Jv(u,d){return eu(u,d,!0)}function um(u,d,_){return dc(u,d,lt(_,2),!0)}function Xs(u,d){var _=u==null?0:u.length;if(_){var M=eu(u,d,!0)-1;if(ma(u[M],d))return M}return-1}function cm(u){return u&&u.length?bd(u):[]}function Ys(u,d){return u&&u.length?bd(u,lt(d,2)):[]}function e0(u){var d=u==null?0:u.length;return d?Ui(u,1,d):[]}function t0(u,d,_){return u&&u.length?(d=_||d===r?1:Tt(d),Ui(u,0,d<0?0:d)):[]}function fm(u,d,_){var M=u==null?0:u.length;return M?(d=_||d===r?1:Tt(d),d=M-d,Ui(u,d<0?0:d,M)):[]}function Vd(u,d){return u&&u.length?pc(u,lt(d,3),!1,!0):[]}function yw(u,d){return u&&u.length?pc(u,lt(d,3)):[]}var _w=vt(function(u){return Vi(qn(u,1,Wn,!0))}),n0=vt(function(u){var d=Vr(u);return Wn(d)&&(d=r),Vi(qn(u,1,Wn,!0),lt(d,2))}),r0=vt(function(u){var d=Vr(u);return d=typeof d=="function"?d:r,Vi(qn(u,1,Wn,!0),r,d)});function Qs(u){return u&&u.length?Vi(u):[]}function ww(u,d){return u&&u.length?Vi(u,lt(d,2)):[]}function uu(u,d){return d=typeof d=="function"?d:r,u&&u.length?Vi(u,r,d):[]}function Wd(u){if(!(u&&u.length))return[];var d=0;return u=za(u,function(_){if(Wn(_))return d=Hn(_.length,d),!0}),vp(d,function(_){return ln(u,Xf(_))})}function wn(u,d){if(!(u&&u.length))return[];var _=Wd(u);return d==null?_:ln(_,function(M){return Fr(d,r,M)})}var Sw=vt(function(u,d){return Wn(u)?qs(u,d):[]}),i0=vt(function(u){return xd(za(u,Wn))}),bw=vt(function(u){var d=Vr(u);return Wn(d)&&(d=r),xd(za(u,Wn),lt(d,2))}),Cw=vt(function(u){var d=Vr(u);return d=typeof d=="function"?d:r,xd(za(u,Wn),r,d)}),o0=vt(Wd);function a0(u,d){return Ip(u||[],d||[],hr)}function xw(u,d){return Ip(u||[],d||[],xn)}var Bi=vt(function(u){var d=u.length,_=d>1?u[d-1]:r;return _=typeof _=="function"?(u.pop(),_):r,wn(u,_)});function Gd(u){var d=G(u);return d.__chain__=!0,d}function Ew(u,d){return d(u),u}function go(u,d){return d(u)}var Bd=jo(function(u){var d=u.length,_=d?u[0]:0,M=this.__wrapped__,j=function(X){return rc(X,u)};return d>1||this.__actions__.length||!(M instanceof Et)||!fn(_)?this.thru(j):(M=M.slice(_,+_+(d?1:0)),M.__actions__.push({func:go,args:[j],thisArg:r}),new dr(M,this.__chain__).thru(function(X){return d&&!X.length&&X.push(r),X}))});function Zs(){return Gd(this)}function Kd(){return new dr(this.value(),this.__chain__)}function dm(){this.__values__===r&&(this.__values__=kx(this.value()));var u=this.__index__>=this.__values__.length,d=u?r:this.__values__[this.__index__++];return{done:u,value:d}}function hm(){return this}function Tw(u){for(var d,_=this;_ instanceof Xa;){var M=Zv(_);M.__index__=0,M.__values__=r,d?j.__wrapped__=M:d=M;var j=M;_=_.__wrapped__}return j.__wrapped__=u,d}function pm(){var u=this.__wrapped__;if(u instanceof Et){var d=u;return this.__actions__.length&&(d=new Et(this)),d=d.reverse(),d.__actions__.push({func:go,args:[Ud],thisArg:r}),new dr(d,this.__chain__)}return this.thru(Ud)}function Ow(){return Mp(this.__wrapped__,this.__actions__)}var s0=Ad(function(u,d,_){Ft.call(u,_)?++u[_]:Lo(u,_,1)});function l0(u,d,_){var M=wt(u)?rv:ud;return _&&Ur(u,d,_)&&(d=r),M(u,lt(d,3))}function Xd(u,d){var _=wt(u)?za:cd;return _(u,lt(d,3))}var Yd=Bs(rs),u0=Bs(Ac);function mm(u,d){return qn(Js(u,d),1)}function Aw(u,d){return qn(Js(u,d),z)}function c0(u,d,_){return _=_===r?1:Tt(_),qn(Js(u,d),_)}function Qd(u,d){var _=wt(u)?$r:Ja;return _(u,lt(d,3))}function Pc(u,d){var _=wt(u)?nv:qi;return _(u,lt(d,3))}var gm=Ad(function(u,d,_){Ft.call(u,_)?u[_].push(d):Lo(u,_,[d])});function Zd(u,d,_,M){u=Ki(u)?u:th(u),_=_&&!M?Tt(_):0;var j=u.length;return _<0&&(_=Hn(j+_,0)),h0(u)?_<=j&&u.indexOf(d,_)>-1:!!j&&qa(u,d,_)>-1}var f0=vt(function(u,d,_){var M=-1,j=typeof d=="function",X=Ki(u)?we(u.length):[];return Ja(u,function(ne){X[++M]=j?Fr(d,ne,_):Xl(ne,d,_)}),X}),Rw=Ad(function(u,d,_){Lo(u,_,d)});function Js(u,d){var _=wt(u)?ln:Ql;return _(u,lt(d,3))}function kw(u,d,_,M){return u==null?[]:(wt(d)||(d=d==null?[]:[d]),_=M?r:_,wt(_)||(_=_==null?[]:[_]),Gs(u,d,_))}var Dc=Ad(function(u,d,_){u[_?0:1].push(d)},function(){return[[],[]]});function Nw(u,d,_){var M=wt(u)?hp:lv,j=arguments.length<3;return M(u,lt(d,4),_,j,Ja)}function Jd(u,d,_){var M=wt(u)?Z_:lv,j=arguments.length<3;return M(u,lt(d,4),_,j,qi)}function a(u,d){var _=wt(u)?za:cd;return _(u,$e(lt(d,3)))}function s(u){var d=wt(u)?Za:_n;return d(u)}function p(u,d,_){(_?Ur(u,d,_):d===r)?d=1:d=Tt(d);var M=wt(u)?Av:Un;return M(u,d)}function y(u){var d=wt(u)?Ap:fc;return d(u)}function O(u){if(u==null)return 0;if(Ki(u))return h0(u)?Ua(u):u.length;var d=mr(u);return d==ye||d==nt?u.size:gd(u).length}function L(u,d,_){var M=wt(u)?pp:Nr;return _&&Ur(u,d,_)&&(d=r),M(u,lt(d,3))}var H=vt(function(u,d){if(u==null)return[];var _=d.length;return _>1&&Ur(u,d[0],d[1])?d=[]:_>2&&Ur(d[0],d[1],d[2])&&(d=[d[0]]),Gs(u,qn(d,1),[])}),te=xp||function(){return zn.Date.now()};function ue(u,d){if(typeof d!="function")throw new fr(c);return u=Tt(u),function(){if(--u<1)return d.apply(this,arguments)}}function _e(u,d,_){return d=_?r:d,d=u&&d==null?u.length:d,$o(u,F,r,r,r,r,d)}function Pe(u,d){var _;if(typeof d!="function")throw new fr(c);return u=Tt(u),function(){return--u>0&&(_=d.apply(this,arguments)),u<=1&&(d=r),_}}var Ie=vt(function(u,d,_){var M=E;if(_.length){var j=Ii(_,da(Ie));M|=R}return $o(u,M,d,_,j)}),Ne=vt(function(u,d,_){var M=E|k;if(_.length){var j=Ii(_,da(Ne));M|=R}return $o(d,M,u,_,j)});function Ve(u,d,_){d=_?r:d;var M=$o(u,x,r,r,r,r,r,d);return M.placeholder=Ve.placeholder,M}function Ye(u,d,_){d=_?r:d;var M=$o(u,w,r,r,r,r,r,d);return M.placeholder=Ye.placeholder,M}function Qe(u,d,_){var M,j,X,ne,ce,pe,Te=0,Oe=!1,De=!1,Ue=!0;if(typeof u!="function")throw new fr(c);d=Ho(d)||0,kn(_)&&(Oe=!!_.leading,De="maxWait"in _,X=De?Hn(Ho(_.maxWait)||0,d):X,Ue="trailing"in _?!!_.trailing:Ue);function rt(Gn){var ga=M,nl=j;return M=j=r,Te=Gn,ne=u.apply(nl,ga),ne}function dt(Gn){return Te=Gn,ce=su(Dt,d),Oe?rt(Gn):ne}function At(Gn){var ga=Gn-pe,nl=Gn-Te,Ux=d-ga;return De?Ar(Ux,X-nl):Ux}function ht(Gn){var ga=Gn-pe,nl=Gn-Te;return pe===r||ga>=d||ga<0||De&&nl>=X}function Dt(){var Gn=te();if(ht(Gn))return zt(Gn);ce=su(Dt,At(Gn))}function zt(Gn){return ce=r,Ue&&M?rt(Gn):(M=j=r,ne)}function yo(){ce!==r&&Fp(ce),Te=0,M=pe=j=ce=r}function Ci(){return ce===r?ne:zt(te())}function _o(){var Gn=te(),ga=ht(Gn);if(M=arguments,j=this,pe=Gn,ga){if(ce===r)return dt(pe);if(De)return Fp(ce),ce=su(Dt,d),rt(pe)}return ce===r&&(ce=su(Dt,d)),ne}return _o.cancel=yo,_o.flush=Ci,_o}var Rn=vt(function(u,d){return Hs(u,1,d)}),me=vt(function(u,d,_){return Hs(u,Ho(d)||0,_)});function de(u){return $o(u,V)}function ge(u,d){if(typeof u!="function"||d!=null&&typeof d!="function")throw new fr(c);var _=function(){var M=arguments,j=d?d.apply(this,M):M[0],X=_.cache;if(X.has(j))return X.get(j);var ne=u.apply(this,M);return _.cache=X.set(j,ne)||X,ne};return _.cache=new(ge.Cache||Po),_}ge.Cache=Po;function $e(u){if(typeof u!="function")throw new fr(c);return function(){var d=arguments;switch(d.length){case 0:return!u.call(this);case 1:return!u.call(this,d[0]);case 2:return!u.call(this,d[0],d[1]);case 3:return!u.call(this,d[0],d[1],d[2])}return!u.apply(this,d)}}function tt(u){return Pe(2,u)}var st=Mv(function(u,d){d=d.length==1&&wt(d[0])?ln(d[0],jr(lt())):ln(qn(d,1),jr(lt()));var _=d.length;return vt(function(M){for(var j=-1,X=Ar(M.length,_);++j<X;)M[j]=d[j].call(this,M[j]);return Fr(u,this,M)})}),ot=vt(function(u,d){var _=Ii(d,da(ot));return $o(u,R,r,d,_)}),ft=vt(function(u,d){var _=Ii(d,da(ft));return $o(u,I,r,d,_)}),ir=jo(function(u,d){return $o(u,U,r,r,r,d)});function Ut(u,d){if(typeof u!="function")throw new fr(c);return d=d===r?d:Tt(d),vt(u,d)}function ls(u,d){if(typeof u!="function")throw new fr(c);return d=d==null?0:Hn(Tt(d),0),vt(function(_){var M=_[d],j=Wi(_,0,d);return M&&Ha(j,M),Fr(u,this,j)})}function Pw(u,d,_){var M=!0,j=!0;if(typeof u!="function")throw new fr(c);return kn(_)&&(M="leading"in _?!!_.leading:M,j="trailing"in _?!!_.trailing:j),Qe(u,d,{leading:M,maxWait:d,trailing:j})}function mD(u){return _e(u,1)}function gD(u,d){return ot(Td(d),u)}function vD(){if(!arguments.length)return[];var u=arguments[0];return wt(u)?u:[u]}function yD(u){return wi(u,b)}function _D(u,d){return d=typeof d=="function"?d:r,wi(u,b,d)}function wD(u){return wi(u,v|b)}function SD(u,d){return d=typeof d=="function"?d:r,wi(u,v|b,d)}function bD(u,d){return d==null||Rp(u,d,Pr(d))}function ma(u,d){return u===d||u!==u&&d!==d}var CD=Nd(Io),xD=Nd(function(u,d){return u>=d}),Lc=oc(function(){return arguments}())?oc:function(u){return Ln(u)&&Ft.call(u,"callee")&&!wv.call(u,"callee")},wt=we.isArray,ED=ni?jr(ni):Nv;function Ki(u){return u!=null&&d0(u.length)&&!el(u)}function Wn(u){return Ln(u)&&Ki(u)}function TD(u){return u===!0||u===!1||Ln(u)&&vn(u)==Ce}var cu=Xu||Uw,OD=Ds?jr(Ds):Pv;function AD(u){return Ln(u)&&u.nodeType===1&&!vm(u)}function RD(u){if(u==null)return!0;if(Ki(u)&&(wt(u)||typeof u=="string"||typeof u.splice=="function"||cu(u)||eh(u)||Lc(u)))return!u.length;var d=mr(u);if(d==ye||d==nt)return!u.size;if(ha(u))return!gd(u).length;for(var _ in u)if(Ft.call(u,_))return!1;return!0}function kD(u,d){return Vs(u,d)}function ND(u,d,_){_=typeof _=="function"?_:r;var M=_?_(u,d):r;return M===r?Vs(u,d,r,_):!!M}function Dw(u){if(!Ln(u))return!1;var d=vn(u);return d==Me||d==Re||typeof u.message=="string"&&typeof u.name=="string"&&!vm(u)}function PD(u){return typeof u=="number"&&Yu(u)}function el(u){if(!kn(u))return!1;var d=vn(u);return d==qe||d==Je||d==ee||d==Ae}function Tx(u){return typeof u=="number"&&u==Tt(u)}function d0(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=W}function kn(u){var d=typeof u;return u!=null&&(d=="object"||d=="function")}function Ln(u){return u!=null&&typeof u=="object"}var Ox=Wf?jr(Wf):Dv;function DD(u,d){return u===d||pd(u,d,Cc(d))}function LD(u,d,_){return _=typeof _=="function"?_:r,pd(u,d,Cc(d),_)}function MD(u){return Ax(u)&&u!=+u}function ID(u){if(gw(u))throw new gt(l);return Pp(u)}function FD(u){return u===null}function $D(u){return u==null}function Ax(u){return typeof u=="number"||Ln(u)&&vn(u)==be}function vm(u){if(!Ln(u)||vn(u)!=Ee)return!1;var d=jl(u);if(d===null)return!0;var _=Ft.call(d,"constructor")&&d.constructor;return typeof _=="function"&&_ instanceof _&&Ms.call(_)==vv}var Lw=Dl?jr(Dl):Dp;function jD(u){return Tx(u)&&u>=-9007199254740991&&u<=W}var Rx=tv?jr(tv):ac;function h0(u){return typeof u=="string"||!wt(u)&&Ln(u)&&vn(u)==ct}function vo(u){return typeof u=="symbol"||Ln(u)&&vn(u)==Ge}var eh=Gf?jr(Gf):md;function zD(u){return u===r}function HD(u){return Ln(u)&&mr(u)==Kt}function qD(u){return Ln(u)&&vn(u)==jn}var UD=Nd(vd),VD=Nd(function(u,d){return u<=d});function kx(u){if(!u)return[];if(Ki(u))return h0(u)?_i(u):Hr(u);if(Wu&&u[Wu])return hv(u[Wu]());var d=mr(u),_=d==ye?Yf:d==nt?Qf:th;return _(u)}function tl(u){if(!u)return u===0?u:0;if(u=Ho(u),u===z||u===-1/0){var d=u<0?-1:1;return d*$}return u===u?u:0}function Tt(u){var d=tl(u),_=d%1;return d===d?_?d-_:d:0}function Nx(u){return u?la(Tt(u),0,Y):0}function Ho(u){if(typeof u=="number")return u;if(vo(u))return B;if(kn(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=kn(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=uv(u);var _=Rs.test(u);return _||Pf.test(u)?fp(u.slice(2),_?2:8):Nf.test(u)?B:+u}function Px(u){return uo(u,Xi(u))}function WD(u){return u?la(Tt(u),-9007199254740991,W):u===0?u:0}function Zt(u){return u==null?"":cn(u)}var GD=nu(function(u,d){if(ha(d)||Ki(d)){uo(d,Pr(d),u);return}for(var _ in d)Ft.call(d,_)&&hr(u,_,d[_])}),Dx=nu(function(u,d){uo(d,Xi(d),u)}),p0=nu(function(u,d,_,M){uo(d,Xi(d),u,M)}),BD=nu(function(u,d,_,M){uo(d,Pr(d),u,M)}),KD=jo(rc);function XD(u,d){var _=$i(u);return d==null?_:Hi(_,d)}var YD=vt(function(u,d){u=Yt(u);var _=-1,M=d.length,j=M>2?d[2]:r;for(j&&Ur(d[0],d[1],j)&&(M=1);++_<M;)for(var X=d[_],ne=Xi(X),ce=-1,pe=ne.length;++ce<pe;){var Te=ne[ce],Oe=u[Te];(Oe===r||ma(Oe,Va[Te])&&!Ft.call(u,Te))&&(u[Te]=X[Te])}return u}),QD=vt(function(u){return u.push(r,Bp),Fr(Lx,r,u)});function ZD(u,d){return ov(u,lt(d,3),zr)}function JD(u,d){return ov(u,lt(d,3),li)}function eL(u,d){return u==null?u:ic(u,lt(d,3),Xi)}function tL(u,d){return u==null?u:fd(u,lt(d,3),Xi)}function nL(u,d){return u&&zr(u,lt(d,3))}function rL(u,d){return u&&li(u,lt(d,3))}function iL(u){return u==null?[]:Mo(u,Pr(u))}function oL(u){return u==null?[]:Mo(u,Xi(u))}function Mw(u,d,_){var M=u==null?r:ua(u,d);return M===r?_:M}function aL(u,d){return u!=null&&Zp(u,d,Np)}function Iw(u,d){return u!=null&&Zp(u,d,kv)}var sL=Hv(function(u,d,_){d!=null&&typeof d.toString!="function"&&(d=Is.call(d)),u[d]=_},$w(Yi)),lL=Hv(function(u,d,_){d!=null&&typeof d.toString!="function"&&(d=Is.call(d)),Ft.call(u,d)?u[d].push(_):u[d]=[_]},lt),uL=vt(Xl);function Pr(u){return Ki(u)?Do(u):gd(u)}function Xi(u){return Ki(u)?Do(u,!0):Yl(u)}function cL(u,d){var _={};return d=lt(d,3),zr(u,function(M,j,X){Lo(_,d(M,j,X),M)}),_}function fL(u,d){var _={};return d=lt(d,3),zr(u,function(M,j,X){Lo(_,j,d(M,j,X))}),_}var dL=nu(function(u,d,_){es(u,d,_)}),Lx=nu(function(u,d,_,M){es(u,d,_,M)}),hL=jo(function(u,d){var _={};if(u==null)return _;var M=!1;d=ln(d,function(X){return X=fa(X,u),M||(M=X.length>1),X}),uo(u,Sc(u),_),M&&(_=wi(_,v|S|b,Kp));for(var j=d.length;j--;)hc(_,d[j]);return _});function pL(u,d){return Mx(u,$e(lt(d)))}var mL=jo(function(u,d){return u==null?{}:Lv(u,d)});function Mx(u,d){if(u==null)return{};var _=ln(Sc(u),function(M){return[M]});return d=lt(d),_d(u,_,function(M,j){return d(M,j[0])})}function gL(u,d,_){d=fa(d,u);var M=-1,j=d.length;for(j||(j=1,u=r);++M<j;){var X=u==null?r:u[po(d[M])];X===r&&(M=j,X=_),u=el(X)?X.call(u):X}return u}function vL(u,d,_){return u==null?u:xn(u,d,_)}function yL(u,d,_,M){return M=typeof M=="function"?M:r,u==null?u:xn(u,d,_,M)}var Ix=Wp(Pr),Fx=Wp(Xi);function _L(u,d,_){var M=wt(u),j=M||cu(u)||eh(u);if(d=lt(d,4),_==null){var X=u&&u.constructor;j?_=M?new X:[]:kn(u)?_=el(X)?$i(jl(u)):{}:_={}}return(j?$r:zr)(u,function(ne,ce,pe){return d(_,ne,ce,pe)}),_}function wL(u,d){return u==null?!0:hc(u,d)}function SL(u,d,_){return u==null?u:Cd(u,d,Td(_))}function bL(u,d,_,M){return M=typeof M=="function"?M:r,u==null?u:Cd(u,d,Td(_),M)}function th(u){return u==null?[]:Ls(u,Pr(u))}function CL(u){return u==null?[]:Ls(u,Xi(u))}function xL(u,d,_){return _===r&&(_=d,d=r),_!==r&&(_=Ho(_),_=_===_?_:0),d!==r&&(d=Ho(d),d=d===d?d:0),la(Ho(u),d,_)}function EL(u,d,_){return d=tl(d),_===r?(_=d,d=0):_=tl(_),u=Ho(u),ca(u,d,_)}function TL(u,d,_){if(_&&typeof _!="boolean"&&Ur(u,d,_)&&(d=_=r),_===r&&(typeof d=="boolean"?(_=d,d=r):typeof u=="boolean"&&(_=u,u=r)),u===r&&d===r?(u=0,d=1):(u=tl(u),d===r?(d=u,u=0):d=tl(d)),u>d){var M=u;u=d,d=M}if(_||u%1||d%1){var j=Qu();return Ar(u+j*(d-u+Vf("1e-"+((j+"").length-1))),d)}return sc(u,d)}var OL=ru(function(u,d,_){return d=d.toLowerCase(),u+(_?$x(d):d)});function $x(u){return Fw(Zt(u).toLowerCase())}function jx(u){return u=Zt(u),u&&u.replace(ip,fv).replace(Mu,"")}function AL(u,d,_){u=Zt(u),d=cn(d);var M=u.length;_=_===r?M:la(Tt(_),0,M);var j=_;return _-=d.length,_>=0&&u.slice(_,j)==d}function RL(u){return u=Zt(u),u&&Ol.test(u)?u.replace(tn,dv):u}function kL(u){return u=Zt(u),u&&As.test(u)?u.replace(gi,"\\$&"):u}var NL=ru(function(u,d,_){return u+(_?"-":"")+d.toLowerCase()}),PL=ru(function(u,d,_){return u+(_?" ":"")+d.toLowerCase()}),DL=gc("toLowerCase");function LL(u,d,_){u=Zt(u),d=Tt(d);var M=d?Ua(u):0;if(!d||M>=d)return u;var j=(d-M)/2;return _c(Bu(j),_)+u+_c(Ga(j),_)}function ML(u,d,_){u=Zt(u),d=Tt(d);var M=d?Ua(u):0;return d&&M<d?u+_c(d-M,_):u}function IL(u,d,_){u=Zt(u),d=Tt(d);var M=d?Ua(u):0;return d&&M<d?_c(d-M,_)+u:u}function FL(u,d,_){return _||d==null?d=0:d&&(d=+d),nd(Zt(u).replace(Pi,""),d||0)}function $L(u,d,_){return(_?Ur(u,d,_):d===r)?d=1:d=Tt(d),lc(Zt(u),d)}function jL(){var u=arguments,d=Zt(u[0]);return u.length<3?d:d.replace(u[1],u[2])}var zL=ru(function(u,d,_){return u+(_?"_":"")+d.toLowerCase()});function HL(u,d,_){return _&&typeof _!="number"&&Ur(u,d,_)&&(d=_=r),_=_===r?Y:_>>>0,_?(u=Zt(u),u&&(typeof d=="string"||d!=null&&!Lw(d))&&(d=cn(d),!d&&Ml(u))?Wi(_i(u),0,_):u.split(d,_)):[]}var qL=ru(function(u,d,_){return u+(_?" ":"")+Fw(d)});function UL(u,d,_){return u=Zt(u),_=_==null?0:la(Tt(_),0,u.length),d=cn(d),u.slice(_,_+d.length)==d}function VL(u,d,_){var M=G.templateSettings;_&&Ur(u,d,_)&&(d=r),u=Zt(u),d=p0({},d,M,Gp);var j=p0({},d.imports,M.imports,Gp),X=Pr(j),ne=Ls(j,X),ce,pe,Te=0,Oe=d.interpolate||Al,De="__p += '",Ue=Sp((d.escape||Al).source+"|"+Oe.source+"|"+(Oe===er?kf:Al).source+"|"+(d.evaluate||Al).source+"|$","g"),rt="//# sourceURL="+(Ft.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Iu+"]")+`
|
|
61
|
+
`;u.replace(Ue,function(ht,Dt,zt,yo,Ci,_o){return zt||(zt=yo),De+=u.slice(Te,_o).replace(Ot,Ll),Dt&&(ce=!0,De+=`' +
|
|
62
|
+
__e(`+Dt+`) +
|
|
63
|
+
'`),Ci&&(pe=!0,De+=`';
|
|
64
|
+
`+Ci+`;
|
|
65
|
+
__p += '`),zt&&(De+=`' +
|
|
66
|
+
((__t = (`+zt+`)) == null ? '' : __t) +
|
|
67
|
+
'`),Te=_o+ht.length,ht}),De+=`';
|
|
68
|
+
`;var dt=Ft.call(d,"variable")&&d.variable;if(!dt)De=`with (obj) {
|
|
69
|
+
`+De+`
|
|
70
|
+
}
|
|
71
|
+
`;else if(Di.test(dt))throw new gt(f);De=(pe?De.replace(Ao,""):De).replace(Ro,"$1").replace(Tr,"$1;"),De="function("+(dt||"obj")+`) {
|
|
72
|
+
`+(dt?"":`obj || (obj = {});
|
|
73
|
+
`)+"var __t, __p = ''"+(ce?", __e = _.escape":"")+(pe?`, __j = Array.prototype.join;
|
|
74
|
+
function print() { __p += __j.call(arguments, '') }
|
|
75
|
+
`:`;
|
|
76
|
+
`)+De+`return __p
|
|
77
|
+
}`;var At=Hx(function(){return qt(X,rt+"return "+De).apply(r,ne)});if(At.source=De,Dw(At))throw At;return At}function WL(u){return Zt(u).toLowerCase()}function GL(u){return Zt(u).toUpperCase()}function BL(u,d,_){if(u=Zt(u),u&&(_||d===r))return uv(u);if(!u||!(d=cn(d)))return u;var M=_i(u),j=_i(d),X=yp(M,j),ne=_p(M,j)+1;return Wi(M,X,ne).join("")}function KL(u,d,_){if(u=Zt(u),u&&(_||d===r))return u.slice(0,wp(u)+1);if(!u||!(d=cn(d)))return u;var M=_i(u),j=_p(M,_i(d))+1;return Wi(M,0,j).join("")}function XL(u,d,_){if(u=Zt(u),u&&(_||d===r))return u.replace(Pi,"");if(!u||!(d=cn(d)))return u;var M=_i(u),j=yp(M,_i(d));return Wi(M,j).join("")}function YL(u,d){var _=K,M=Z;if(kn(d)){var j="separator"in d?d.separator:j;_="length"in d?Tt(d.length):_,M="omission"in d?cn(d.omission):M}u=Zt(u);var X=u.length;if(Ml(u)){var ne=_i(u);X=ne.length}if(_>=X)return u;var ce=_-Ua(M);if(ce<1)return M;var pe=ne?Wi(ne,0,ce).join(""):u.slice(0,ce);if(j===r)return pe+M;if(ne&&(ce+=pe.length-ce),Lw(j)){if(u.slice(ce).search(j)){var Te,Oe=pe;for(j.global||(j=Sp(j.source,Zt(ao.exec(j))+"g")),j.lastIndex=0;Te=j.exec(Oe);)var De=Te.index;pe=pe.slice(0,De===r?ce:De)}}else if(u.indexOf(cn(j),ce)!=ce){var Ue=pe.lastIndexOf(j);Ue>-1&&(pe=pe.slice(0,Ue))}return pe+M}function QL(u){return u=Zt(u),u&&Os.test(u)?u.replace(Ni,mv):u}var ZL=ru(function(u,d,_){return u+(_?" ":"")+d.toUpperCase()}),Fw=gc("toUpperCase");function zx(u,d,_){return u=Zt(u),d=_?r:d,d===r?ow(u)?lw(u):ew(u):u.match(d)||[]}var Hx=vt(function(u,d){try{return Fr(u,r,d)}catch(_){return Dw(_)?_:new gt(_)}}),JL=jo(function(u,d){return $r(d,function(_){_=po(_),Lo(u,_,Ie(u[_],u))}),u});function eM(u){var d=u==null?0:u.length,_=lt();return u=d?ln(u,function(M){if(typeof M[1]!="function")throw new fr(c);return[_(M[0]),M[1]]}):[],vt(function(M){for(var j=-1;++j<d;){var X=u[j];if(Fr(X[0],this,M))return Fr(X[1],this,M)}})}function tM(u){return ld(wi(u,v))}function $w(u){return function(){return u}}function nM(u,d){return u==null||u!==u?d:u}var rM=Rd(),iM=Rd(!0);function Yi(u){return u}function jw(u){return Lp(typeof u=="function"?u:wi(u,v))}function oM(u){return so(wi(u,v))}function aM(u,d){return Zl(u,wi(d,v))}var sM=vt(function(u,d){return function(_){return Xl(_,u,d)}}),lM=vt(function(u,d){return function(_){return Xl(u,_,d)}});function zw(u,d,_){var M=Pr(d),j=Mo(d,M);_==null&&!(kn(d)&&(j.length||!M.length))&&(_=d,d=u,u=this,j=Mo(d,Pr(d)));var X=!(kn(_)&&"chain"in _)||!!_.chain,ne=el(u);return $r(j,function(ce){var pe=d[ce];u[ce]=pe,ne&&(u.prototype[ce]=function(){var Te=this.__chain__;if(X||Te){var Oe=u(this.__wrapped__),De=Oe.__actions__=Hr(this.__actions__);return De.push({func:pe,args:arguments,thisArg:u}),Oe.__chain__=Te,Oe}return pe.apply(u,Ha([this.value()],arguments))})}),u}function uM(){return zn._===this&&(zn._=yv),this}function Hw(){}function cM(u){return u=Tt(u),vt(function(d){return yd(d,u)})}var fM=kd(ln),dM=kd(rv),hM=kd(pp);function qx(u){return Ke(u)?Xf(po(u)):yn(u)}function pM(u){return function(d){return u==null?r:ua(u,d)}}var mM=Vp(),gM=Vp(!0);function qw(){return[]}function Uw(){return!1}function vM(){return{}}function yM(){return""}function _M(){return!0}function wM(u,d){if(u=Tt(u),u<1||u>W)return[];var _=Y,M=Ar(u,Y);d=lt(d),u-=Y;for(var j=vp(M,d);++_<u;)d(_);return j}function SM(u){return wt(u)?ln(u,po):vo(u)?[u]:Hr(nm(Zt(u)))}function bM(u){var d=++bp;return Zt(u)+d}var CM=yc(function(u,d){return u+d},0),xM=pr("ceil"),EM=yc(function(u,d){return u/d},1),TM=pr("floor");function OM(u){return u&&u.length?Us(u,Yi,Io):r}function AM(u,d){return u&&u.length?Us(u,lt(d,2),Io):r}function RM(u){return sv(u,Yi)}function kM(u,d){return sv(u,lt(d,2))}function NM(u){return u&&u.length?Us(u,Yi,vd):r}function PM(u,d){return u&&u.length?Us(u,lt(d,2),vd):r}var DM=yc(function(u,d){return u*d},1),LM=pr("round"),MM=yc(function(u,d){return u-d},0);function IM(u){return u&&u.length?gp(u,Yi):0}function FM(u,d){return u&&u.length?gp(u,lt(d,2)):0}return G.after=ue,G.ary=_e,G.assign=GD,G.assignIn=Dx,G.assignInWith=p0,G.assignWith=BD,G.at=KD,G.before=Pe,G.bind=Ie,G.bindAll=JL,G.bindKey=Ne,G.castArray=vD,G.chain=Gd,G.chunk=$d,G.compact=rm,G.concat=Gi,G.cond=eM,G.conforms=tM,G.constant=$w,G.countBy=s0,G.create=XD,G.curry=Ve,G.curryRight=Ye,G.debounce=Qe,G.defaults=YD,G.defaultsDeep=QD,G.defer=Rn,G.delay=me,G.difference=jt,G.differenceBy=rr,G.differenceWith=Dn,G.drop=vr,G.dropRight=bi,G.dropRightWhile=lu,G.dropWhile=Vn,G.fill=Oc,G.filter=Xd,G.flatMap=mm,G.flatMapDeep=Aw,G.flatMapDepth=c0,G.flatten=jd,G.flattenDeep=Rc,G.flattenDepth=ui,G.flip=de,G.flow=rM,G.flowRight=iM,G.fromPairs=im,G.functions=iL,G.functionsIn=oL,G.groupBy=gm,G.initial=zd,G.intersection=om,G.intersectionBy=is,G.intersectionWith=Hd,G.invert=sL,G.invertBy=lL,G.invokeMap=f0,G.iteratee=jw,G.keyBy=Rw,G.keys=Pr,G.keysIn=Xi,G.map=Js,G.mapKeys=cL,G.mapValues=fL,G.matches=oM,G.matchesProperty=aM,G.memoize=ge,G.merge=dL,G.mergeWith=Lx,G.method=sM,G.methodOf=lM,G.mixin=zw,G.negate=$e,G.nthArg=cM,G.omit=hL,G.omitBy=pL,G.once=tt,G.orderBy=kw,G.over=fM,G.overArgs=st,G.overEvery=dM,G.overSome=hM,G.partial=ot,G.partialRight=ft,G.partition=Dc,G.pick=mL,G.pickBy=Mx,G.property=qx,G.propertyOf=pM,G.pull=qd,G.pullAll=Nc,G.pullAllBy=Wr,G.pullAllWith=as,G.pullAt=mo,G.range=mM,G.rangeRight=gM,G.rearg=ir,G.reject=a,G.remove=ci,G.rest=Ut,G.reverse=Ud,G.sampleSize=p,G.set=vL,G.setWith=yL,G.shuffle=y,G.slice=sm,G.sortBy=H,G.sortedUniq=cm,G.sortedUniqBy=Ys,G.split=HL,G.spread=ls,G.tail=e0,G.take=t0,G.takeRight=fm,G.takeRightWhile=Vd,G.takeWhile=yw,G.tap=Ew,G.throttle=Pw,G.thru=go,G.toArray=kx,G.toPairs=Ix,G.toPairsIn=Fx,G.toPath=SM,G.toPlainObject=Px,G.transform=_L,G.unary=mD,G.union=_w,G.unionBy=n0,G.unionWith=r0,G.uniq=Qs,G.uniqBy=ww,G.uniqWith=uu,G.unset=wL,G.unzip=Wd,G.unzipWith=wn,G.update=SL,G.updateWith=bL,G.values=th,G.valuesIn=CL,G.without=Sw,G.words=zx,G.wrap=gD,G.xor=i0,G.xorBy=bw,G.xorWith=Cw,G.zip=o0,G.zipObject=a0,G.zipObjectDeep=xw,G.zipWith=Bi,G.entries=Ix,G.entriesIn=Fx,G.extend=Dx,G.extendWith=p0,zw(G,G),G.add=CM,G.attempt=Hx,G.camelCase=OL,G.capitalize=$x,G.ceil=xM,G.clamp=xL,G.clone=yD,G.cloneDeep=wD,G.cloneDeepWith=SD,G.cloneWith=_D,G.conformsTo=bD,G.deburr=jx,G.defaultTo=nM,G.divide=EM,G.endsWith=AL,G.eq=ma,G.escape=RL,G.escapeRegExp=kL,G.every=l0,G.find=Yd,G.findIndex=rs,G.findKey=ZD,G.findLast=u0,G.findLastIndex=Ac,G.findLastKey=JD,G.floor=TM,G.forEach=Qd,G.forEachRight=Pc,G.forIn=eL,G.forInRight=tL,G.forOwn=nL,G.forOwnRight=rL,G.get=Mw,G.gt=CD,G.gte=xD,G.has=aL,G.hasIn=Iw,G.head=Ks,G.identity=Yi,G.includes=Zd,G.indexOf=pa,G.inRange=EL,G.invoke=uL,G.isArguments=Lc,G.isArray=wt,G.isArrayBuffer=ED,G.isArrayLike=Ki,G.isArrayLikeObject=Wn,G.isBoolean=TD,G.isBuffer=cu,G.isDate=OD,G.isElement=AD,G.isEmpty=RD,G.isEqual=kD,G.isEqualWith=ND,G.isError=Dw,G.isFinite=PD,G.isFunction=el,G.isInteger=Tx,G.isLength=d0,G.isMap=Ox,G.isMatch=DD,G.isMatchWith=LD,G.isNaN=MD,G.isNative=ID,G.isNil=$D,G.isNull=FD,G.isNumber=Ax,G.isObject=kn,G.isObjectLike=Ln,G.isPlainObject=vm,G.isRegExp=Lw,G.isSafeInteger=jD,G.isSet=Rx,G.isString=h0,G.isSymbol=vo,G.isTypedArray=eh,G.isUndefined=zD,G.isWeakMap=HD,G.isWeakSet=qD,G.join=os,G.kebabCase=NL,G.last=Vr,G.lastIndexOf=kc,G.lowerCase=PL,G.lowerFirst=DL,G.lt=UD,G.lte=VD,G.max=OM,G.maxBy=AM,G.mean=RM,G.meanBy=kM,G.min=NM,G.minBy=PM,G.stubArray=qw,G.stubFalse=Uw,G.stubObject=vM,G.stubString=yM,G.stubTrue=_M,G.multiply=DM,G.nth=am,G.noConflict=uM,G.noop=Hw,G.now=te,G.pad=LL,G.padEnd=ML,G.padStart=IL,G.parseInt=FL,G.random=TL,G.reduce=Nw,G.reduceRight=Jd,G.repeat=$L,G.replace=jL,G.result=gL,G.round=LM,G.runInContext=he,G.sample=s,G.size=O,G.snakeCase=zL,G.some=L,G.sortedIndex=lm,G.sortedIndexBy=vw,G.sortedIndexOf=ss,G.sortedLastIndex=Jv,G.sortedLastIndexBy=um,G.sortedLastIndexOf=Xs,G.startCase=qL,G.startsWith=UL,G.subtract=MM,G.sum=IM,G.sumBy=FM,G.template=VL,G.times=wM,G.toFinite=tl,G.toInteger=Tt,G.toLength=Nx,G.toLower=WL,G.toNumber=Ho,G.toSafeInteger=WD,G.toString=Zt,G.toUpper=GL,G.trim=BL,G.trimEnd=KL,G.trimStart=XL,G.truncate=YL,G.unescape=QL,G.uniqueId=bM,G.upperCase=ZL,G.upperFirst=Fw,G.each=Qd,G.eachRight=Pc,G.first=Ks,zw(G,function(){var u={};return zr(G,function(d,_){Ft.call(G.prototype,_)||(u[_]=d)}),u}(),{chain:!1}),G.VERSION=i,$r(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){G[u].placeholder=G}),$r(["drop","take"],function(u,d){Et.prototype[u]=function(_){_=_===r?1:Hn(Tt(_),0);var M=this.__filtered__&&!d?new Et(this):this.clone();return M.__filtered__?M.__takeCount__=Ar(_,M.__takeCount__):M.__views__.push({size:Ar(_,Y),type:u+(M.__dir__<0?"Right":"")}),M},Et.prototype[u+"Right"]=function(_){return this.reverse()[u](_).reverse()}}),$r(["filter","map","takeWhile"],function(u,d){var _=d+1,M=_==fe||_==re;Et.prototype[u]=function(j){var X=this.clone();return X.__iteratees__.push({iteratee:lt(j,3),type:_}),X.__filtered__=X.__filtered__||M,X}}),$r(["head","last"],function(u,d){var _="take"+(d?"Right":"");Et.prototype[u]=function(){return this[_](1).value()[0]}}),$r(["initial","tail"],function(u,d){var _="drop"+(d?"":"Right");Et.prototype[u]=function(){return this.__filtered__?new Et(this):this[_](1)}}),Et.prototype.compact=function(){return this.filter(Yi)},Et.prototype.find=function(u){return this.filter(u).head()},Et.prototype.findLast=function(u){return this.reverse().find(u)},Et.prototype.invokeMap=vt(function(u,d){return typeof u=="function"?new Et(this):this.map(function(_){return Xl(_,u,d)})}),Et.prototype.reject=function(u){return this.filter($e(lt(u)))},Et.prototype.slice=function(u,d){u=Tt(u);var _=this;return _.__filtered__&&(u>0||d<0)?new Et(_):(u<0?_=_.takeRight(-u):u&&(_=_.drop(u)),d!==r&&(d=Tt(d),_=d<0?_.dropRight(-d):_.take(d-u)),_)},Et.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Et.prototype.toArray=function(){return this.take(Y)},zr(Et.prototype,function(u,d){var _=/^(?:filter|find|map|reject)|While$/.test(d),M=/^(?:head|last)$/.test(d),j=G[M?"take"+(d=="last"?"Right":""):d],X=M||/^find/.test(d);j&&(G.prototype[d]=function(){var ne=this.__wrapped__,ce=M?[1]:arguments,pe=ne instanceof Et,Te=ce[0],Oe=pe||wt(ne),De=function(Dt){var zt=j.apply(G,Ha([Dt],ce));return M&&Ue?zt[0]:zt};Oe&&_&&typeof Te=="function"&&Te.length!=1&&(pe=Oe=!1);var Ue=this.__chain__,rt=!!this.__actions__.length,dt=X&&!Ue,At=pe&&!rt;if(!X&&Oe){ne=At?ne:new Et(this);var ht=u.apply(ne,ce);return ht.__actions__.push({func:go,args:[De],thisArg:r}),new dr(ht,Ue)}return dt&&At?u.apply(this,ce):(ht=this.thru(De),dt?M?ht.value()[0]:ht.value():ht)})}),$r(["pop","push","shift","sort","splice","unshift"],function(u){var d=$l[u],_=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",M=/^(?:pop|shift)$/.test(u);G.prototype[u]=function(){var j=arguments;if(M&&!this.__chain__){var X=this.value();return d.apply(wt(X)?X:[],j)}return this[_](function(ne){return d.apply(wt(ne)?ne:[],j)})}}),zr(Et.prototype,function(u,d){var _=G[d];if(_){var M=_.name+"";Ft.call(Ba,M)||(Ba[M]=[]),Ba[M].push({name:d,func:_})}}),Ba[iu(r,k).name]=[{name:"wrapper",func:r}],Et.prototype.clone=Tp,Et.prototype.reverse=Wl,Et.prototype.value=Ya,G.prototype.at=Bd,G.prototype.chain=Zs,G.prototype.commit=Kd,G.prototype.next=dm,G.prototype.plant=Tw,G.prototype.reverse=pm,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=Ow,G.prototype.first=G.prototype.head,Wu&&(G.prototype[Wu]=hm),G},Fl=uw();ja?((ja.exports=Fl)._=Fl,Nl._=Fl):zn._=Fl}).call(I9)}(Nm,Nm.exports)),Nm.exports}var $9=F9();const LC=oo($9);var C1={exports:{}},Jt={};/**
|
|
78
|
+
* @license React
|
|
79
|
+
* react-is.production.min.js
|
|
80
|
+
*
|
|
81
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the MIT license found in the
|
|
84
|
+
* LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/var WT;function j9(){if(WT)return Jt;WT=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function A(C){if(typeof C=="object"&&C!==null){var E=C.$$typeof;switch(E){case t:switch(C=C.type,C){case n:case i:case r:case h:case g:return C;default:switch(C=C&&C.$$typeof,C){case c:case l:case f:case v:case m:case o:return C;default:return E}}case e:return E}}}return Jt.ContextConsumer=l,Jt.ContextProvider=o,Jt.Element=t,Jt.ForwardRef=f,Jt.Fragment=n,Jt.Lazy=v,Jt.Memo=m,Jt.Portal=e,Jt.Profiler=i,Jt.StrictMode=r,Jt.Suspense=h,Jt.SuspenseList=g,Jt.isAsyncMode=function(){return!1},Jt.isConcurrentMode=function(){return!1},Jt.isContextConsumer=function(C){return A(C)===l},Jt.isContextProvider=function(C){return A(C)===o},Jt.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Jt.isForwardRef=function(C){return A(C)===f},Jt.isFragment=function(C){return A(C)===n},Jt.isLazy=function(C){return A(C)===v},Jt.isMemo=function(C){return A(C)===m},Jt.isPortal=function(C){return A(C)===e},Jt.isProfiler=function(C){return A(C)===i},Jt.isStrictMode=function(C){return A(C)===r},Jt.isSuspense=function(C){return A(C)===h},Jt.isSuspenseList=function(C){return A(C)===g},Jt.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===n||C===i||C===r||C===h||C===g||C===S||typeof C=="object"&&C!==null&&(C.$$typeof===v||C.$$typeof===m||C.$$typeof===o||C.$$typeof===l||C.$$typeof===f||C.$$typeof===b||C.getModuleId!==void 0)},Jt.typeOf=A,Jt}var GT;function z9(){return GT||(GT=1,C1.exports=j9()),C1.exports}var MC=z9();function H9(t){function e(Y,ae,le,ie,q){for(var se=0,ee=0,Ce=0,xe=0,Re,Me,qe=0,Je=0,ye,be=ye=Re=0,ke=0,Ee=0,Fe=0,Ae=0,ze=le.length,nt=ze-1,ct,Ge="",_t="",Kt="",jn="",Qt;ke<ze;){if(Me=le.charCodeAt(ke),ke===nt&&ee+xe+Ce+se!==0&&(ee!==0&&(Me=ee===47?10:47),xe=Ce=se=0,ze++,nt++),ee+xe+Ce+se===0){if(ke===nt&&(0<Ee&&(Ge=Ge.replace(v,"")),0<Ge.trim().length)){switch(Me){case 32:case 9:case 59:case 13:case 10:break;default:Ge+=le.charAt(ke)}Me=59}switch(Me){case 123:for(Ge=Ge.trim(),Re=Ge.charCodeAt(0),ye=1,Ae=++ke;ke<ze;){switch(Me=le.charCodeAt(ke)){case 123:ye++;break;case 125:ye--;break;case 47:switch(Me=le.charCodeAt(ke+1)){case 42:case 47:e:{for(be=ke+1;be<nt;++be)switch(le.charCodeAt(be)){case 47:if(Me===42&&le.charCodeAt(be-1)===42&&ke+2!==be){ke=be+1;break e}break;case 10:if(Me===47){ke=be+1;break e}}ke=be}}break;case 91:Me++;case 40:Me++;case 34:case 39:for(;ke++<nt&&le.charCodeAt(ke)!==Me;);}if(ye===0)break;ke++}switch(ye=le.substring(Ae,ke),Re===0&&(Re=(Ge=Ge.replace(m,"").trim()).charCodeAt(0)),Re){case 64:switch(0<Ee&&(Ge=Ge.replace(v,"")),Me=Ge.charCodeAt(1),Me){case 100:case 109:case 115:case 45:Ee=ae;break;default:Ee=Q}if(ye=e(ae,Ee,ye,Me,q+1),Ae=ye.length,0<z&&(Ee=n(Q,Ge,Fe),Qt=c(3,ye,Ee,ae,J,Z,Ae,Me,q,ie),Ge=Ee.join(""),Qt!==void 0&&(Ae=(ye=Qt.trim()).length)===0&&(Me=0,ye="")),0<Ae)switch(Me){case 115:Ge=Ge.replace(R,l);case 100:case 109:case 45:ye=Ge+"{"+ye+"}";break;case 107:Ge=Ge.replace(k,"$1 $2"),ye=Ge+"{"+ye+"}",ye=fe===1||fe===2&&o("@"+ye,3)?"@-webkit-"+ye+"@"+ye:"@"+ye;break;default:ye=Ge+ye,ie===112&&(ye=(_t+=ye,""))}else ye="";break;default:ye=e(ae,n(ae,Ge,Fe),ye,ie,q+1)}Kt+=ye,ye=Fe=Ee=be=Re=0,Ge="",Me=le.charCodeAt(++ke);break;case 125:case 59:if(Ge=(0<Ee?Ge.replace(v,""):Ge).trim(),1<(Ae=Ge.length))switch(be===0&&(Re=Ge.charCodeAt(0),Re===45||96<Re&&123>Re)&&(Ae=(Ge=Ge.replace(" ",":")).length),0<z&&(Qt=c(1,Ge,ae,Y,J,Z,_t.length,ie,q,ie))!==void 0&&(Ae=(Ge=Qt.trim()).length)===0&&(Ge="\0\0"),Re=Ge.charCodeAt(0),Me=Ge.charCodeAt(1),Re){case 0:break;case 64:if(Me===105||Me===99){jn+=Ge+le.charAt(ke);break}default:Ge.charCodeAt(Ae-1)!==58&&(_t+=i(Ge,Re,Me,Ge.charCodeAt(2)))}Fe=Ee=be=Re=0,Ge="",Me=le.charCodeAt(++ke)}}switch(Me){case 13:case 10:ee===47?ee=0:1+Re===0&&ie!==107&&0<Ge.length&&(Ee=1,Ge+="\0"),0<z*$&&c(0,Ge,ae,Y,J,Z,_t.length,ie,q,ie),Z=1,J++;break;case 59:case 125:if(ee+xe+Ce+se===0){Z++;break}default:switch(Z++,ct=le.charAt(ke),Me){case 9:case 32:if(xe+se+ee===0)switch(qe){case 44:case 58:case 9:case 32:ct="";break;default:Me!==32&&(ct=" ")}break;case 0:ct="\\0";break;case 12:ct="\\f";break;case 11:ct="\\v";break;case 38:xe+ee+se===0&&(Ee=Fe=1,ct="\f"+ct);break;case 108:if(xe+ee+se+oe===0&&0<be)switch(ke-be){case 2:qe===112&&le.charCodeAt(ke-3)===58&&(oe=qe);case 8:Je===111&&(oe=Je)}break;case 58:xe+ee+se===0&&(be=ke);break;case 44:ee+Ce+xe+se===0&&(Ee=1,ct+="\r");break;case 34:case 39:ee===0&&(xe=xe===Me?0:xe===0?Me:xe);break;case 91:xe+ee+Ce===0&&se++;break;case 93:xe+ee+Ce===0&&se--;break;case 41:xe+ee+se===0&&Ce--;break;case 40:if(xe+ee+se===0){if(Re===0)switch(2*qe+3*Je){case 533:break;default:Re=1}Ce++}break;case 64:ee+Ce+xe+se+be+ye===0&&(ye=1);break;case 42:case 47:if(!(0<xe+se+Ce))switch(ee){case 0:switch(2*Me+3*le.charCodeAt(ke+1)){case 235:ee=47;break;case 220:Ae=ke,ee=42}break;case 42:Me===47&&qe===42&&Ae+2!==ke&&(le.charCodeAt(Ae+2)===33&&(_t+=le.substring(Ae,ke+1)),ct="",ee=0)}}ee===0&&(Ge+=ct)}Je=qe,qe=Me,ke++}if(Ae=_t.length,0<Ae){if(Ee=ae,0<z&&(Qt=c(2,_t,Ee,Y,J,Z,Ae,ie,q,ie),Qt!==void 0&&(_t=Qt).length===0))return jn+_t+Kt;if(_t=Ee.join(",")+"{"+_t+"}",fe*oe!==0){switch(fe!==2||o(_t,2)||(oe=0),oe){case 111:_t=_t.replace(x,":-moz-$1")+_t;break;case 112:_t=_t.replace(T,"::-webkit-input-$1")+_t.replace(T,"::-moz-$1")+_t.replace(T,":-ms-input-$1")+_t}oe=0}}return jn+_t+Kt}function n(Y,ae,le){var ie=ae.trim().split(C);ae=ie;var q=ie.length,se=Y.length;switch(se){case 0:case 1:var ee=0;for(Y=se===0?"":Y[0]+" ";ee<q;++ee)ae[ee]=r(Y,ae[ee],le).trim();break;default:var Ce=ee=0;for(ae=[];ee<q;++ee)for(var xe=0;xe<se;++xe)ae[Ce++]=r(Y[xe]+" ",ie[ee],le).trim()}return ae}function r(Y,ae,le){var ie=ae.charCodeAt(0);switch(33>ie&&(ie=(ae=ae.trim()).charCodeAt(0)),ie){case 38:return ae.replace(E,"$1"+Y.trim());case 58:return Y.trim()+ae.replace(E,"$1"+Y.trim());default:if(0<1*le&&0<ae.indexOf("\f"))return ae.replace(E,(Y.charCodeAt(0)===58?"":"$1")+Y.trim())}return Y+ae}function i(Y,ae,le,ie){var q=Y+";",se=2*ae+3*le+4*ie;if(se===944){Y=q.indexOf(":",9)+1;var ee=q.substring(Y,q.length-1).trim();return ee=q.substring(0,Y).trim()+ee+";",fe===1||fe===2&&o(ee,1)?"-webkit-"+ee+ee:ee}if(fe===0||fe===2&&!o(q,1))return q;switch(se){case 1015:return q.charCodeAt(10)===97?"-webkit-"+q+q:q;case 951:return q.charCodeAt(3)===116?"-webkit-"+q+q:q;case 963:return q.charCodeAt(5)===110?"-webkit-"+q+q:q;case 1009:if(q.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+q+q;case 978:return"-webkit-"+q+"-moz-"+q+q;case 1019:case 983:return"-webkit-"+q+"-moz-"+q+"-ms-"+q+q;case 883:if(q.charCodeAt(8)===45)return"-webkit-"+q+q;if(0<q.indexOf("image-set(",11))return q.replace(K,"$1-webkit-$2")+q;break;case 932:if(q.charCodeAt(4)===45)switch(q.charCodeAt(5)){case 103:return"-webkit-box-"+q.replace("-grow","")+"-webkit-"+q+"-ms-"+q.replace("grow","positive")+q;case 115:return"-webkit-"+q+"-ms-"+q.replace("shrink","negative")+q;case 98:return"-webkit-"+q+"-ms-"+q.replace("basis","preferred-size")+q}return"-webkit-"+q+"-ms-"+q+q;case 964:return"-webkit-"+q+"-ms-flex-"+q+q;case 1023:if(q.charCodeAt(8)!==99)break;return ee=q.substring(q.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+ee+"-webkit-"+q+"-ms-flex-pack"+ee+q;case 1005:return b.test(q)?q.replace(S,":-webkit-")+q.replace(S,":-moz-")+q:q;case 1e3:switch(ee=q.substring(13).trim(),ae=ee.indexOf("-")+1,ee.charCodeAt(0)+ee.charCodeAt(ae)){case 226:ee=q.replace(w,"tb");break;case 232:ee=q.replace(w,"tb-rl");break;case 220:ee=q.replace(w,"lr");break;default:return q}return"-webkit-"+q+"-ms-"+ee+q;case 1017:if(q.indexOf("sticky",9)===-1)break;case 975:switch(ae=(q=Y).length-10,ee=(q.charCodeAt(ae)===33?q.substring(0,ae):q).substring(Y.indexOf(":",7)+1).trim(),se=ee.charCodeAt(0)+(ee.charCodeAt(7)|0)){case 203:if(111>ee.charCodeAt(8))break;case 115:q=q.replace(ee,"-webkit-"+ee)+";"+q;break;case 207:case 102:q=q.replace(ee,"-webkit-"+(102<se?"inline-":"")+"box")+";"+q.replace(ee,"-webkit-"+ee)+";"+q.replace(ee,"-ms-"+ee+"box")+";"+q}return q+";";case 938:if(q.charCodeAt(5)===45)switch(q.charCodeAt(6)){case 105:return ee=q.replace("-items",""),"-webkit-"+q+"-webkit-box-"+ee+"-ms-flex-"+ee+q;case 115:return"-webkit-"+q+"-ms-flex-item-"+q.replace(F,"")+q;default:return"-webkit-"+q+"-ms-flex-line-pack"+q.replace("align-content","").replace(F,"")+q}break;case 973:case 989:if(q.charCodeAt(3)!==45||q.charCodeAt(4)===122)break;case 931:case 953:if(V.test(Y)===!0)return(ee=Y.substring(Y.indexOf(":")+1)).charCodeAt(0)===115?i(Y.replace("stretch","fill-available"),ae,le,ie).replace(":fill-available",":stretch"):q.replace(ee,"-webkit-"+ee)+q.replace(ee,"-moz-"+ee.replace("fill-",""))+q;break;case 962:if(q="-webkit-"+q+(q.charCodeAt(5)===102?"-ms-"+q:"")+q,le+ie===211&&q.charCodeAt(13)===105&&0<q.indexOf("transform",10))return q.substring(0,q.indexOf(";",27)+1).replace(A,"$1-webkit-$2")+q}return q}function o(Y,ae){var le=Y.indexOf(ae===1?":":"{"),ie=Y.substring(0,ae!==3?le:10);return le=Y.substring(le+1,Y.length-1),W(ae!==2?ie:ie.replace(U,"$1"),le,ae)}function l(Y,ae){var le=i(ae,ae.charCodeAt(0),ae.charCodeAt(1),ae.charCodeAt(2));return le!==ae+";"?le.replace(I," or ($1)").substring(4):"("+ae+")"}function c(Y,ae,le,ie,q,se,ee,Ce,xe,Re){for(var Me=0,qe=ae,Je;Me<z;++Me)switch(Je=re[Me].call(g,Y,qe,le,ie,q,se,ee,Ce,xe,Re)){case void 0:case!1:case!0:case null:break;default:qe=Je}if(qe!==ae)return qe}function f(Y){switch(Y){case void 0:case null:z=re.length=0;break;default:if(typeof Y=="function")re[z++]=Y;else if(typeof Y=="object")for(var ae=0,le=Y.length;ae<le;++ae)f(Y[ae]);else $=!!Y|0}return f}function h(Y){return Y=Y.prefix,Y!==void 0&&(W=null,Y?typeof Y!="function"?fe=1:(fe=2,W=Y):fe=0),h}function g(Y,ae){var le=Y;if(33>le.charCodeAt(0)&&(le=le.trim()),B=le,le=[B],0<z){var ie=c(-1,ae,le,le,J,Z,0,0,0,0);ie!==void 0&&typeof ie=="string"&&(ae=ie)}var q=e(Q,le,ae,0,0);return 0<z&&(ie=c(-2,q,le,le,J,Z,q.length,0,0,0),ie!==void 0&&(q=ie)),B="",oe=0,Z=J=1,q}var m=/^\0+/g,v=/[\0\r\f]/g,S=/: */g,b=/zoo|gra/,A=/([,: ])(transform)/g,C=/,\r+?/g,E=/([\t\r\n ])*\f?&/g,k=/@(k\w+)\s*(\S*)\s*/,T=/::(place)/g,x=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,R=/\(\s*(.*)\s*\)/g,I=/([\s\S]*?);/g,F=/-self|flex-/g,U=/[^]*?(:[rp][el]a[\w-]+)[^]*/,V=/stretch|:\s*\w+\-(?:conte|avail)/,K=/([^-])(image-set\()/,Z=1,J=1,oe=0,fe=1,Q=[],re=[],z=0,W=null,$=0,B="";return g.use=f,g.set=h,t!==void 0&&h(t),g}var ik={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function q9(t){var e={};return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var U9=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,BT=q9(function(t){return U9.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),x1={exports:{}},en={};/** @license React v16.13.1
|
|
86
|
+
* react-is.production.min.js
|
|
87
|
+
*
|
|
88
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
89
|
+
*
|
|
90
|
+
* This source code is licensed under the MIT license found in the
|
|
91
|
+
* LICENSE file in the root directory of this source tree.
|
|
92
|
+
*/var KT;function V9(){if(KT)return en;KT=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,i=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,l=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,f=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,g=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,v=t?Symbol.for("react.suspense_list"):60120,S=t?Symbol.for("react.memo"):60115,b=t?Symbol.for("react.lazy"):60116,A=t?Symbol.for("react.block"):60121,C=t?Symbol.for("react.fundamental"):60117,E=t?Symbol.for("react.responder"):60118,k=t?Symbol.for("react.scope"):60119;function T(w){if(typeof w=="object"&&w!==null){var R=w.$$typeof;switch(R){case e:switch(w=w.type,w){case f:case h:case r:case o:case i:case m:return w;default:switch(w=w&&w.$$typeof,w){case c:case g:case b:case S:case l:return w;default:return R}}case n:return R}}}function x(w){return T(w)===h}return en.AsyncMode=f,en.ConcurrentMode=h,en.ContextConsumer=c,en.ContextProvider=l,en.Element=e,en.ForwardRef=g,en.Fragment=r,en.Lazy=b,en.Memo=S,en.Portal=n,en.Profiler=o,en.StrictMode=i,en.Suspense=m,en.isAsyncMode=function(w){return x(w)||T(w)===f},en.isConcurrentMode=x,en.isContextConsumer=function(w){return T(w)===c},en.isContextProvider=function(w){return T(w)===l},en.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},en.isForwardRef=function(w){return T(w)===g},en.isFragment=function(w){return T(w)===r},en.isLazy=function(w){return T(w)===b},en.isMemo=function(w){return T(w)===S},en.isPortal=function(w){return T(w)===n},en.isProfiler=function(w){return T(w)===o},en.isStrictMode=function(w){return T(w)===i},en.isSuspense=function(w){return T(w)===m},en.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===r||w===h||w===o||w===i||w===m||w===v||typeof w=="object"&&w!==null&&(w.$$typeof===b||w.$$typeof===S||w.$$typeof===l||w.$$typeof===c||w.$$typeof===g||w.$$typeof===C||w.$$typeof===E||w.$$typeof===k||w.$$typeof===A)},en.typeOf=T,en}var XT;function W9(){return XT||(XT=1,x1.exports=V9()),x1.exports}var E1,YT;function G9(){if(YT)return E1;YT=1;var t=W9(),e={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[t.ForwardRef]=r,o[t.Memo]=i;function l(b){return t.isMemo(b)?i:o[b.$$typeof]||e}var c=Object.defineProperty,f=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,v=Object.prototype;function S(b,A,C){if(typeof A!="string"){if(v){var E=m(A);E&&E!==v&&S(b,E,C)}var k=f(A);h&&(k=k.concat(h(A)));for(var T=l(b),x=l(A),w=0;w<k.length;++w){var R=k[w];if(!n[R]&&!(C&&C[R])&&!(x&&x[R])&&!(T&&T[R])){var I=g(A,R);try{c(b,R,I)}catch{}}}}return b}return E1=S,E1}var B9=G9();const K9=oo(B9);var fs={};function ms(){return(ms=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}var QT=function(t,e){for(var n=[t[0]],r=0,i=e.length;r<i;r+=1)n.push(e[r],t[r+1]);return n},ob=function(t){return t!==null&&typeof t=="object"&&(t.toString?t.toString():Object.prototype.toString.call(t))==="[object Object]"&&!MC.typeOf(t)},Dy=Object.freeze([]),_u=Object.freeze({});function Ph(t){return typeof t=="function"}function ZT(t){return t.displayName||t.name||"Component"}function IC(t){return t&&typeof t.styledComponentId=="string"}var Dh=typeof process<"u"&&(fs.REACT_APP_SC_ATTR||fs.SC_ATTR)||"data-styled",FC=typeof window<"u"&&"HTMLElement"in window,X9=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&fs.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&fs.REACT_APP_SC_DISABLE_SPEEDY!==""?fs.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&fs.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&fs.SC_DISABLE_SPEEDY!==void 0&&fs.SC_DISABLE_SPEEDY!==""&&fs.SC_DISABLE_SPEEDY!=="false"&&fs.SC_DISABLE_SPEEDY);function pf(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+t+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var Y9=function(){function t(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var e=t.prototype;return e.indexOfGroup=function(n){for(var r=0,i=0;i<n;i++)r+=this.groupSizes[i];return r},e.insertRules=function(n,r){if(n>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,l=o;n>=l;)(l<<=1)<0&&pf(16,""+n);this.groupSizes=new Uint32Array(l),this.groupSizes.set(i),this.length=l;for(var c=o;c<l;c++)this.groupSizes[c]=0}for(var f=this.indexOfGroup(n+1),h=0,g=r.length;h<g;h++)this.tag.insertRule(f,r[h])&&(this.groupSizes[n]++,f++)},e.clearGroup=function(n){if(n<this.length){var r=this.groupSizes[n],i=this.indexOfGroup(n),o=i+r;this.groupSizes[n]=0;for(var l=i;l<o;l++)this.tag.deleteRule(i)}},e.getGroup=function(n){var r="";if(n>=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],o=this.indexOfGroup(n),l=o+i,c=o;c<l;c++)r+=this.tag.getRule(c)+`/*!sc*/
|
|
93
|
+
`;return r},t}(),ry=new Map,Ly=new Map,$m=1,L0=function(t){if(ry.has(t))return ry.get(t);for(;Ly.has($m);)$m++;var e=$m++;return ry.set(t,e),Ly.set(e,t),e},Q9=function(t){return Ly.get(t)},Z9=function(t,e){e>=$m&&($m=e+1),ry.set(t,e),Ly.set(e,t)},J9="style["+Dh+'][data-styled-version="5.3.3"]',ez=new RegExp("^"+Dh+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),tz=function(t,e,n){for(var r,i=n.split(","),o=0,l=i.length;o<l;o++)(r=i[o])&&t.registerName(e,r)},nz=function(t,e){for(var n=(e.textContent||"").split(`/*!sc*/
|
|
94
|
+
`),r=[],i=0,o=n.length;i<o;i++){var l=n[i].trim();if(l){var c=l.match(ez);if(c){var f=0|parseInt(c[1],10),h=c[2];f!==0&&(Z9(h,f),tz(t,h,c[3]),t.getTag().insertRules(f,r)),r.length=0}else r.push(l)}}},rz=function(){return typeof window<"u"&&window.__webpack_nonce__!==void 0?window.__webpack_nonce__:null},ok=function(t){var e=document.head,n=t||e,r=document.createElement("style"),i=function(c){for(var f=c.childNodes,h=f.length;h>=0;h--){var g=f[h];if(g&&g.nodeType===1&&g.hasAttribute(Dh))return g}}(n),o=i!==void 0?i.nextSibling:null;r.setAttribute(Dh,"active"),r.setAttribute("data-styled-version","5.3.3");var l=rz();return l&&r.setAttribute("nonce",l),n.insertBefore(r,o),r},iz=function(){function t(n){var r=this.element=ok(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var o=document.styleSheets,l=0,c=o.length;l<c;l++){var f=o[l];if(f.ownerNode===i)return f}pf(17)}(r),this.length=0}var e=t.prototype;return e.insertRule=function(n,r){try{return this.sheet.insertRule(r,n),this.length++,!0}catch{return!1}},e.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},e.getRule=function(n){var r=this.sheet.cssRules[n];return r!==void 0&&typeof r.cssText=="string"?r.cssText:""},t}(),oz=function(){function t(n){var r=this.element=ok(n);this.nodes=r.childNodes,this.length=0}var e=t.prototype;return e.insertRule=function(n,r){if(n<=this.length&&n>=0){var i=document.createTextNode(r),o=this.nodes[n];return this.element.insertBefore(i,o||null),this.length++,!0}return!1},e.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},e.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},t}(),az=function(){function t(n){this.rules=[],this.length=0}var e=t.prototype;return e.insertRule=function(n,r){return n<=this.length&&(this.rules.splice(n,0,r),this.length++,!0)},e.deleteRule=function(n){this.rules.splice(n,1),this.length--},e.getRule=function(n){return n<this.length?this.rules[n]:""},t}(),JT=FC,sz={isServer:!FC,useCSSOMInjection:!X9},ak=function(){function t(n,r,i){n===void 0&&(n=_u),r===void 0&&(r={}),this.options=ms({},sz,{},n),this.gs=r,this.names=new Map(i),this.server=!!n.isServer,!this.server&&FC&&JT&&(JT=!1,function(o){for(var l=document.querySelectorAll(J9),c=0,f=l.length;c<f;c++){var h=l[c];h&&h.getAttribute(Dh)!=="active"&&(nz(o,h),h.parentNode&&h.parentNode.removeChild(h))}}(this))}t.registerId=function(n){return L0(n)};var e=t.prototype;return e.reconstructWithOptions=function(n,r){return r===void 0&&(r=!0),new t(ms({},this.options,{},n),this.gs,r&&this.names||void 0)},e.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},e.getTag=function(){return this.tag||(this.tag=(i=(r=this.options).isServer,o=r.useCSSOMInjection,l=r.target,n=i?new az(l):o?new iz(l):new oz(l),new Y9(n)));var n,r,i,o,l},e.hasNameForId=function(n,r){return this.names.has(n)&&this.names.get(n).has(r)},e.registerName=function(n,r){if(L0(n),this.names.has(n))this.names.get(n).add(r);else{var i=new Set;i.add(r),this.names.set(n,i)}},e.insertRules=function(n,r,i){this.registerName(n,r),this.getTag().insertRules(L0(n),i)},e.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},e.clearRules=function(n){this.getTag().clearGroup(L0(n)),this.clearNames(n)},e.clearTag=function(){this.tag=void 0},e.toString=function(){return function(n){for(var r=n.getTag(),i=r.length,o="",l=0;l<i;l++){var c=Q9(l);if(c!==void 0){var f=n.names.get(c),h=r.getGroup(l);if(f&&h&&f.size){var g=Dh+".g"+l+'[id="'+c+'"]',m="";f!==void 0&&f.forEach(function(v){v.length>0&&(m+=v+",")}),o+=""+h+g+'{content:"'+m+`"}/*!sc*/
|
|
95
|
+
`}}}return o}(this)},t}(),lz=/(a)(d)/gi,eO=function(t){return String.fromCharCode(t+(t>25?39:97))};function ab(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=eO(e%52)+n;return(eO(e%52)+n).replace(lz,"$1-$2")}var ph=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},sk=function(t){return ph(5381,t)};function uz(t){for(var e=0;e<t.length;e+=1){var n=t[e];if(Ph(n)&&!IC(n))return!1}return!0}var cz=sk("5.3.3"),fz=function(){function t(e,n,r){this.rules=e,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&uz(e),this.componentId=n,this.baseHash=ph(cz,n),this.baseStyle=r,ak.registerId(n)}return t.prototype.generateAndInjectStyles=function(e,n,r){var i=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,n,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(i,this.staticRulesId))o.push(this.staticRulesId);else{var l=Lh(this.rules,e,n,r).join(""),c=ab(ph(this.baseHash,l)>>>0);if(!n.hasNameForId(i,c)){var f=r(l,"."+c,void 0,i);n.insertRules(i,c,f)}o.push(c),this.staticRulesId=c}else{for(var h=this.rules.length,g=ph(this.baseHash,r.hash),m="",v=0;v<h;v++){var S=this.rules[v];if(typeof S=="string")m+=S;else if(S){var b=Lh(S,e,n,r),A=Array.isArray(b)?b.join(""):b;g=ph(g,A+v),m+=A}}if(m){var C=ab(g>>>0);if(!n.hasNameForId(i,C)){var E=r(m,"."+C,void 0,i);n.insertRules(i,C,E)}o.push(C)}}return o.join(" ")},t}(),dz=/^\s*\/\/.*$/gm,hz=[":","[",".","#"];function pz(t){var e,n,r,i,o=_u,l=o.options,c=l===void 0?_u:l,f=o.plugins,h=f===void 0?Dy:f,g=new H9(c),m=[],v=function(A){function C(E){if(E)try{A(E+"}")}catch{}}return function(E,k,T,x,w,R,I,F,U,V){switch(E){case 1:if(U===0&&k.charCodeAt(0)===64)return A(k+";"),"";break;case 2:if(F===0)return k+"/*|*/";break;case 3:switch(F){case 102:case 112:return A(T[0]+k),"";default:return k+(V===0?"/*|*/":"")}case-2:k.split("/*|*/}").forEach(C)}}}(function(A){m.push(A)}),S=function(A,C,E){return C===0&&hz.indexOf(E[n.length])!==-1||E.match(i)?A:"."+e};function b(A,C,E,k){k===void 0&&(k="&");var T=A.replace(dz,""),x=C&&E?E+" "+C+" { "+T+" }":T;return e=k,n=C,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),g(E||!C?"":C,x)}return g.use([].concat(h,[function(A,C,E){A===2&&E.length&&E[0].lastIndexOf(n)>0&&(E[0]=E[0].replace(r,S))},v,function(A){if(A===-2){var C=m;return m=[],C}}])),b.hash=h.length?h.reduce(function(A,C){return C.name||pf(15),ph(A,C.name)},5381).toString():"",b}var lk=je.createContext();lk.Consumer;var uk=je.createContext(),mz=(uk.Consumer,new ak),sb=pz();function gz(){return N.useContext(lk)||mz}function vz(){return N.useContext(uk)||sb}var yz=function(){function t(e,n){var r=this;this.inject=function(i,o){o===void 0&&(o=sb);var l=r.name+o.hash;i.hasNameForId(r.id,l)||i.insertRules(r.id,l,o(r.rules,l,"@keyframes"))},this.toString=function(){return pf(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=n}return t.prototype.getName=function(e){return e===void 0&&(e=sb),this.name+e.hash},t}(),_z=/([A-Z])/,wz=/([A-Z])/g,Sz=/^ms-/,bz=function(t){return"-"+t.toLowerCase()};function tO(t){return _z.test(t)?t.replace(wz,bz).replace(Sz,"-ms-"):t}var nO=function(t){return t==null||t===!1||t===""};function Lh(t,e,n,r){if(Array.isArray(t)){for(var i,o=[],l=0,c=t.length;l<c;l+=1)(i=Lh(t[l],e,n,r))!==""&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}if(nO(t))return"";if(IC(t))return"."+t.styledComponentId;if(Ph(t)){if(typeof(h=t)!="function"||h.prototype&&h.prototype.isReactComponent||!e)return t;var f=t(e);return Lh(f,e,n,r)}var h;return t instanceof yz?n?(t.inject(n,r),t.getName(r)):t:ob(t)?function g(m,v){var S,b,A=[];for(var C in m)m.hasOwnProperty(C)&&!nO(m[C])&&(Array.isArray(m[C])&&m[C].isCss||Ph(m[C])?A.push(tO(C)+":",m[C],";"):ob(m[C])?A.push.apply(A,g(m[C],C)):A.push(tO(C)+": "+(S=C,(b=m[C])==null||typeof b=="boolean"||b===""?"":typeof b!="number"||b===0||S in ik?String(b).trim():b+"px")+";"));return v?[v+" {"].concat(A,["}"]):A}(t):t.toString()}var rO=function(t){return Array.isArray(t)&&(t.isCss=!0),t};function br(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Ph(t)||ob(t)?rO(Lh(QT(Dy,[t].concat(n)))):n.length===0&&t.length===1&&typeof t[0]=="string"?t:rO(Lh(QT(t,n)))}var Cz=function(t,e,n){return n===void 0&&(n=_u),t.theme!==n.theme&&t.theme||e||n.theme},xz=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ez=/(^-|-$)/g;function T1(t){return t.replace(xz,"-").replace(Ez,"")}var Tz=function(t){return ab(sk(t)>>>0)};function M0(t){return typeof t=="string"&&!0}var lb=function(t){return typeof t=="function"||typeof t=="object"&&t!==null&&!Array.isArray(t)},Oz=function(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"};function Az(t,e,n){var r=t[n];lb(e)&&lb(r)?ck(r,e):t[n]=e}function ck(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var l=o[i];if(lb(l))for(var c in l)Oz(c)&&Az(t,l[c],c)}return t}var My=je.createContext();My.Consumer;function Rz(t){var e=N.useContext(My),n=N.useMemo(function(){return function(r,i){if(!r)return pf(14);if(Ph(r)){var o=r(i);return o}return Array.isArray(r)||typeof r!="object"?pf(8):i?ms({},i,{},r):r}(t.theme,e)},[t.theme,e]);return t.children?je.createElement(My.Provider,{value:n},t.children):null}var O1={};function fk(t,e,n){var r=IC(t),i=!M0(t),o=e.attrs,l=o===void 0?Dy:o,c=e.componentId,f=c===void 0?function(k,T){var x=typeof k!="string"?"sc":T1(k);O1[x]=(O1[x]||0)+1;var w=x+"-"+Tz("5.3.3"+x+O1[x]);return T?T+"-"+w:w}(e.displayName,e.parentComponentId):c,h=e.displayName,g=h===void 0?function(k){return M0(k)?"styled."+k:"Styled("+ZT(k)+")"}(t):h,m=e.displayName&&e.componentId?T1(e.displayName)+"-"+e.componentId:e.componentId||f,v=r&&t.attrs?Array.prototype.concat(t.attrs,l).filter(Boolean):l,S=e.shouldForwardProp;r&&t.shouldForwardProp&&(S=e.shouldForwardProp?function(k,T,x){return t.shouldForwardProp(k,T,x)&&e.shouldForwardProp(k,T,x)}:t.shouldForwardProp);var b,A=new fz(n,m,r?t.componentStyle:void 0),C=A.isStatic&&l.length===0,E=function(k,T){return function(x,w,R,I){var F=x.attrs,U=x.componentStyle,V=x.defaultProps,K=x.foldedComponentIds,Z=x.shouldForwardProp,J=x.styledComponentId,oe=x.target,fe=function(ie,q,se){ie===void 0&&(ie=_u);var ee=ms({},q,{theme:ie}),Ce={};return se.forEach(function(xe){var Re,Me,qe,Je=xe;for(Re in Ph(Je)&&(Je=Je(ee)),Je)ee[Re]=Ce[Re]=Re==="className"?(Me=Ce[Re],qe=Je[Re],Me&&qe?Me+" "+qe:Me||qe):Je[Re]}),[ee,Ce]}(Cz(w,N.useContext(My),V)||_u,w,F),Q=fe[0],re=fe[1],z=function(ie,q,se,ee){var Ce=gz(),xe=vz(),Re=q?ie.generateAndInjectStyles(_u,Ce,xe):ie.generateAndInjectStyles(se,Ce,xe);return Re}(U,I,Q),W=R,$=re.$as||w.$as||re.as||w.as||oe,B=M0($),Y=re!==w?ms({},w,{},re):w,ae={};for(var le in Y)le[0]!=="$"&&le!=="as"&&(le==="forwardedAs"?ae.as=Y[le]:(Z?Z(le,BT,$):!B||BT(le))&&(ae[le]=Y[le]));return w.style&&re.style!==w.style&&(ae.style=ms({},w.style,{},re.style)),ae.className=Array.prototype.concat(K,J,z!==J?z:null,w.className,re.className).filter(Boolean).join(" "),ae.ref=W,N.createElement($,ae)}(b,k,T,C)};return E.displayName=g,(b=je.forwardRef(E)).attrs=v,b.componentStyle=A,b.displayName=g,b.shouldForwardProp=S,b.foldedComponentIds=r?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):Dy,b.styledComponentId=m,b.target=r?t.target:t,b.withComponent=function(k){var T=e.componentId,x=function(R,I){if(R==null)return{};var F,U,V={},K=Object.keys(R);for(U=0;U<K.length;U++)F=K[U],I.indexOf(F)>=0||(V[F]=R[F]);return V}(e,["componentId"]),w=T&&T+"-"+(M0(k)?k:T1(ZT(k)));return fk(k,ms({},x,{attrs:v,componentId:w}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(k){this._foldedDefaultProps=r?ck({},t.defaultProps,k):k}}),b.toString=function(){return"."+b.styledComponentId},i&&K9(b,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var Pt=function(t){return function e(n,r,i){if(i===void 0&&(i=_u),!MC.isValidElementType(r))return pf(1,String(r));var o=function(){return n(r,i,br.apply(void 0,arguments))};return o.withConfig=function(l){return e(n,r,ms({},i,{},l))},o.attrs=function(l){return e(n,r,ms({},i,{attrs:Array.prototype.concat(i.attrs,l).filter(Boolean)}))},o}(fk,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(t){Pt[t]=Pt(t)});var wu;function Mh(t,e){return t[e]}function kz(t=[],e,n=0){return[...t.slice(0,n),e,...t.slice(n)]}function Nz(t=[],e,n="id"){const r=t.slice(),i=Mh(e,n);return i?r.splice(r.findIndex(o=>Mh(o,n)===i),1):r.splice(r.findIndex(o=>o===e),1),r}function iO(t){return t.map((e,n)=>{const r=Object.assign(Object.assign({},e),{sortable:e.sortable||!!e.sortFunction||void 0});return e.id||(r.id=n+1),r})}function jm(t,e){return Math.ceil(t/e)}function A1(t,e){return Math.min(t,e)}(function(t){t.ASC="asc",t.DESC="desc"})(wu||(wu={}));const _r=()=>null;function dk(t,e=[],n=[]){let r={},i=[...n];return e.length&&e.forEach(o=>{if(!o.when||typeof o.when!="function")throw new Error('"when" must be defined in the conditional style object and must be function');o.when(t)&&(r=o.style||{},o.classNames&&(i=[...i,...o.classNames]),typeof o.style=="function"&&(r=o.style(t)||{}))}),{conditionalStyle:r,classNames:i.join(" ")}}function iy(t,e=[],n="id"){const r=Mh(t,n);return r?e.some(i=>Mh(i,n)===r):e.some(i=>i===t)}function I0(t,e){return e?t.findIndex(n=>zm(n.id,e)):-1}function zm(t,e){return t==e}function Pz(t,e){const n=!t.toggleOnSelectedRowsChange;switch(e.type){case"SELECT_ALL_ROWS":{const{keyField:r,rows:i,rowCount:o,mergeSelections:l}=e,c=!t.allSelected,f=!t.toggleOnSelectedRowsChange;if(l){const h=c?[...t.selectedRows,...i.filter(g=>!iy(g,t.selectedRows,r))]:t.selectedRows.filter(g=>!iy(g,i,r));return Object.assign(Object.assign({},t),{allSelected:c,selectedCount:h.length,selectedRows:h,toggleOnSelectedRowsChange:f})}return Object.assign(Object.assign({},t),{allSelected:c,selectedCount:c?o:0,selectedRows:c?i:[],toggleOnSelectedRowsChange:f})}case"SELECT_SINGLE_ROW":{const{keyField:r,row:i,isSelected:o,rowCount:l,singleSelect:c}=e;return c?o?Object.assign(Object.assign({},t),{selectedCount:0,allSelected:!1,selectedRows:[],toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},t),{selectedCount:1,allSelected:!1,selectedRows:[i],toggleOnSelectedRowsChange:n}):o?Object.assign(Object.assign({},t),{selectedCount:t.selectedRows.length>0?t.selectedRows.length-1:0,allSelected:!1,selectedRows:Nz(t.selectedRows,i,r),toggleOnSelectedRowsChange:n}):Object.assign(Object.assign({},t),{selectedCount:t.selectedRows.length+1,allSelected:t.selectedRows.length+1===l,selectedRows:kz(t.selectedRows,i),toggleOnSelectedRowsChange:n})}case"SELECT_MULTIPLE_ROWS":{const{keyField:r,selectedRows:i,totalRows:o,mergeSelections:l}=e;if(l){const c=[...t.selectedRows,...i.filter(f=>!iy(f,t.selectedRows,r))];return Object.assign(Object.assign({},t),{selectedCount:c.length,allSelected:!1,selectedRows:c,toggleOnSelectedRowsChange:n})}return Object.assign(Object.assign({},t),{selectedCount:i.length,allSelected:i.length===o,selectedRows:i,toggleOnSelectedRowsChange:n})}case"CLEAR_SELECTED_ROWS":{const{selectedRowsFlag:r}=e;return Object.assign(Object.assign({},t),{allSelected:!1,selectedCount:0,selectedRows:[],selectedRowsFlag:r})}case"SORT_CHANGE":{const{sortDirection:r,selectedColumn:i,clearSelectedOnSort:o}=e;return Object.assign(Object.assign(Object.assign({},t),{selectedColumn:i,sortDirection:r,currentPage:1}),o&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_PAGE":{const{page:r,paginationServer:i,visibleOnly:o,persistSelectedOnPageChange:l}=e,c=i&&l,f=i&&!l||o;return Object.assign(Object.assign(Object.assign(Object.assign({},t),{currentPage:r}),c&&{allSelected:!1}),f&&{allSelected:!1,selectedCount:0,selectedRows:[],toggleOnSelectedRowsChange:n})}case"CHANGE_ROWS_PER_PAGE":{const{rowsPerPage:r,page:i}=e;return Object.assign(Object.assign({},t),{currentPage:i,rowsPerPage:r})}}}const Dz=br`
|
|
96
|
+
pointer-events: none;
|
|
97
|
+
opacity: 0.4;
|
|
98
|
+
`,Lz=Pt.div`
|
|
99
|
+
position: relative;
|
|
100
|
+
box-sizing: border-box;
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 100%;
|
|
105
|
+
max-width: 100%;
|
|
106
|
+
${({disabled:t})=>t&&Dz};
|
|
107
|
+
${({theme:t})=>t.table.style};
|
|
108
|
+
`,Mz=br`
|
|
109
|
+
position: sticky;
|
|
110
|
+
position: -webkit-sticky; /* Safari */
|
|
111
|
+
top: 0;
|
|
112
|
+
z-index: 1;
|
|
113
|
+
`,Iz=Pt.div`
|
|
114
|
+
display: flex;
|
|
115
|
+
width: 100%;
|
|
116
|
+
${({$fixedHeader:t})=>t&&Mz};
|
|
117
|
+
${({theme:t})=>t.head.style};
|
|
118
|
+
`,Fz=Pt.div`
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: stretch;
|
|
121
|
+
width: 100%;
|
|
122
|
+
${({theme:t})=>t.headRow.style};
|
|
123
|
+
${({$dense:t,theme:e})=>t&&e.headRow.denseStyle};
|
|
124
|
+
`,hk=(t,...e)=>br`
|
|
125
|
+
@media screen and (max-width: ${599}px) {
|
|
126
|
+
${br(t,...e)}
|
|
127
|
+
}
|
|
128
|
+
`,$z=(t,...e)=>br`
|
|
129
|
+
@media screen and (max-width: ${959}px) {
|
|
130
|
+
${br(t,...e)}
|
|
131
|
+
}
|
|
132
|
+
`,jz=(t,...e)=>br`
|
|
133
|
+
@media screen and (max-width: ${1280}px) {
|
|
134
|
+
${br(t,...e)}
|
|
135
|
+
}
|
|
136
|
+
`,zz=t=>(e,...n)=>br`
|
|
137
|
+
@media screen and (max-width: ${t}px) {
|
|
138
|
+
${br(e,...n)}
|
|
139
|
+
}
|
|
140
|
+
`,Bh=Pt.div`
|
|
141
|
+
position: relative;
|
|
142
|
+
display: flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
box-sizing: border-box;
|
|
145
|
+
line-height: normal;
|
|
146
|
+
${({theme:t,$headCell:e})=>t[e?"headCells":"cells"].style};
|
|
147
|
+
${({$noPadding:t})=>t&&"padding: 0"};
|
|
148
|
+
`,pk=Pt(Bh)`
|
|
149
|
+
flex-grow: ${({button:t,grow:e})=>e===0||t?0:e||1};
|
|
150
|
+
flex-shrink: 0;
|
|
151
|
+
flex-basis: 0;
|
|
152
|
+
max-width: ${({maxWidth:t})=>t||"100%"};
|
|
153
|
+
min-width: ${({minWidth:t})=>t||"100px"};
|
|
154
|
+
${({width:t})=>t&&br`
|
|
155
|
+
min-width: ${t};
|
|
156
|
+
max-width: ${t};
|
|
157
|
+
`};
|
|
158
|
+
${({right:t})=>t&&"justify-content: flex-end"};
|
|
159
|
+
${({button:t,center:e})=>(e||t)&&"justify-content: center"};
|
|
160
|
+
${({compact:t,button:e})=>(t||e)&&"padding: 0"};
|
|
161
|
+
|
|
162
|
+
/* handle hiding cells */
|
|
163
|
+
${({hide:t})=>t&&t==="sm"&&hk`
|
|
164
|
+
display: none;
|
|
165
|
+
`};
|
|
166
|
+
${({hide:t})=>t&&t==="md"&&$z`
|
|
167
|
+
display: none;
|
|
168
|
+
`};
|
|
169
|
+
${({hide:t})=>t&&t==="lg"&&jz`
|
|
170
|
+
display: none;
|
|
171
|
+
`};
|
|
172
|
+
${({hide:t})=>t&&Number.isInteger(t)&&zz(t)`
|
|
173
|
+
display: none;
|
|
174
|
+
`};
|
|
175
|
+
`,Hz=br`
|
|
176
|
+
div:first-child {
|
|
177
|
+
white-space: ${({$wrapCell:t})=>t?"normal":"nowrap"};
|
|
178
|
+
overflow: ${({$allowOverflow:t})=>t?"visible":"hidden"};
|
|
179
|
+
text-overflow: ellipsis;
|
|
180
|
+
}
|
|
181
|
+
`,qz=Pt(pk).attrs(t=>({style:t.style}))`
|
|
182
|
+
${({$renderAsCell:t})=>!t&&Hz};
|
|
183
|
+
${({theme:t,$isDragging:e})=>e&&t.cells.draggingStyle};
|
|
184
|
+
${({$cellStyle:t})=>t};
|
|
185
|
+
`;var Uz=N.memo(function({id:t,column:e,row:n,rowIndex:r,dataTag:i,isDragging:o,onDragStart:l,onDragOver:c,onDragEnd:f,onDragEnter:h,onDragLeave:g}){const{conditionalStyle:m,classNames:v}=dk(n,e.conditionalCellStyles,["rdt_TableCell"]);return N.createElement(qz,{id:t,"data-column-id":e.id,role:"cell",className:v,"data-tag":i,$cellStyle:e.style,$renderAsCell:!!e.cell,$allowOverflow:e.allowOverflow,button:e.button,center:e.center,compact:e.compact,grow:e.grow,hide:e.hide,maxWidth:e.maxWidth,minWidth:e.minWidth,right:e.right,width:e.width,$wrapCell:e.wrap,style:m,$isDragging:o,onDragStart:l,onDragOver:c,onDragEnd:f,onDragEnter:h,onDragLeave:g},!e.cell&&N.createElement("div",{"data-tag":i},function(S,b,A,C){return b?A&&typeof A=="function"?A(S,C):b(S,C):null}(n,e.selector,e.format,r)),e.cell&&e.cell(n,r,e,t))});const oO="input";var mk=N.memo(function({name:t,component:e=oO,componentOptions:n={style:{}},indeterminate:r=!1,checked:i=!1,disabled:o=!1,onClick:l=_r}){const c=e,f=c!==oO?n.style:(g=>Object.assign(Object.assign({fontSize:"18px"},!g&&{cursor:"pointer"}),{padding:0,marginTop:"1px",verticalAlign:"middle",position:"relative"}))(o),h=N.useMemo(()=>function(g,...m){let v;return Object.keys(g).map(S=>g[S]).forEach((S,b)=>{typeof S=="function"&&(v=Object.assign(Object.assign({},g),{[Object.keys(g)[b]]:S(...m)}))}),v||g}(n,r),[n,r]);return N.createElement(c,Object.assign({type:"checkbox",ref:g=>{g&&(g.indeterminate=r)},style:f,onClick:o?_r:l,name:t,"aria-label":t,checked:i,disabled:o},h,{onChange:_r}))});const Vz=Pt(Bh)`
|
|
186
|
+
flex: 0 0 48px;
|
|
187
|
+
min-width: 48px;
|
|
188
|
+
justify-content: center;
|
|
189
|
+
align-items: center;
|
|
190
|
+
user-select: none;
|
|
191
|
+
white-space: nowrap;
|
|
192
|
+
`;function Wz({name:t,keyField:e,row:n,rowCount:r,selected:i,selectableRowsComponent:o,selectableRowsComponentProps:l,selectableRowsSingle:c,selectableRowDisabled:f,onSelectedRow:h}){const g=!(!f||!f(n));return N.createElement(Vz,{onClick:m=>m.stopPropagation(),className:"rdt_TableCell",$noPadding:!0},N.createElement(mk,{name:t,component:o,componentOptions:l,checked:i,"aria-checked":i,onClick:()=>{h({type:"SELECT_SINGLE_ROW",row:n,isSelected:i,keyField:e,rowCount:r,singleSelect:c})},disabled:g}))}const Gz=Pt.button`
|
|
193
|
+
display: inline-flex;
|
|
194
|
+
align-items: center;
|
|
195
|
+
user-select: none;
|
|
196
|
+
white-space: nowrap;
|
|
197
|
+
border: none;
|
|
198
|
+
background-color: transparent;
|
|
199
|
+
${({theme:t})=>t.expanderButton.style};
|
|
200
|
+
`;function Bz({disabled:t=!1,expanded:e=!1,expandableIcon:n,id:r,row:i,onToggled:o}){const l=e?n.expanded:n.collapsed;return N.createElement(Gz,{"aria-disabled":t,onClick:()=>o&&o(i),"data-testid":`expander-button-${r}`,disabled:t,"aria-label":e?"Collapse Row":"Expand Row",role:"button",type:"button"},l)}const Kz=Pt(Bh)`
|
|
201
|
+
white-space: nowrap;
|
|
202
|
+
font-weight: 400;
|
|
203
|
+
min-width: 48px;
|
|
204
|
+
${({theme:t})=>t.expanderCell.style};
|
|
205
|
+
`;function Xz({row:t,expanded:e=!1,expandableIcon:n,id:r,onToggled:i,disabled:o=!1}){return N.createElement(Kz,{onClick:l=>l.stopPropagation(),$noPadding:!0},N.createElement(Bz,{id:r,row:t,expanded:e,expandableIcon:n,disabled:o,onToggled:i}))}const Yz=Pt.div`
|
|
206
|
+
width: 100%;
|
|
207
|
+
box-sizing: border-box;
|
|
208
|
+
${({theme:t})=>t.expanderRow.style};
|
|
209
|
+
${({$extendedRowStyle:t})=>t};
|
|
210
|
+
`;var Qz=N.memo(function({data:t,ExpanderComponent:e,expanderComponentProps:n,extendedRowStyle:r,extendedClassNames:i}){const o=["rdt_ExpanderRow",...i.split(" ").filter(l=>l!=="rdt_TableRow")].join(" ");return N.createElement(Yz,{className:o,$extendedRowStyle:r},N.createElement(e,Object.assign({data:t},n)))});const R1="allowRowEvents";var Iy,ub,aO;(function(t){t.LTR="ltr",t.RTL="rtl",t.AUTO="auto"})(Iy||(Iy={})),function(t){t.LEFT="left",t.RIGHT="right",t.CENTER="center"}(ub||(ub={})),function(t){t.SM="sm",t.MD="md",t.LG="lg"}(aO||(aO={}));const Zz=br`
|
|
211
|
+
&:hover {
|
|
212
|
+
${({$highlightOnHover:t,theme:e})=>t&&e.rows.highlightOnHoverStyle};
|
|
213
|
+
}
|
|
214
|
+
`,Jz=br`
|
|
215
|
+
&:hover {
|
|
216
|
+
cursor: pointer;
|
|
217
|
+
}
|
|
218
|
+
`,e7=Pt.div.attrs(t=>({style:t.style}))`
|
|
219
|
+
display: flex;
|
|
220
|
+
align-items: stretch;
|
|
221
|
+
align-content: stretch;
|
|
222
|
+
width: 100%;
|
|
223
|
+
box-sizing: border-box;
|
|
224
|
+
${({theme:t})=>t.rows.style};
|
|
225
|
+
${({$dense:t,theme:e})=>t&&e.rows.denseStyle};
|
|
226
|
+
${({$striped:t,theme:e})=>t&&e.rows.stripedStyle};
|
|
227
|
+
${({$highlightOnHover:t})=>t&&Zz};
|
|
228
|
+
${({$pointerOnHover:t})=>t&&Jz};
|
|
229
|
+
${({$selected:t,theme:e})=>t&&e.rows.selectedHighlightStyle};
|
|
230
|
+
${({$conditionalStyle:t})=>t};
|
|
231
|
+
`;function t7({columns:t=[],conditionalRowStyles:e=[],defaultExpanded:n=!1,defaultExpanderDisabled:r=!1,dense:i=!1,expandableIcon:o,expandableRows:l=!1,expandableRowsComponent:c,expandableRowsComponentProps:f,expandableRowsHideExpander:h,expandOnRowClicked:g=!1,expandOnRowDoubleClicked:m=!1,highlightOnHover:v=!1,id:S,expandableInheritConditionalStyles:b,keyField:A,onRowClicked:C=_r,onRowDoubleClicked:E=_r,onRowMouseEnter:k=_r,onRowMouseLeave:T=_r,onRowExpandToggled:x=_r,onSelectedRow:w=_r,pointerOnHover:R=!1,row:I,rowCount:F,rowIndex:U,selectableRowDisabled:V=null,selectableRows:K=!1,selectableRowsComponent:Z,selectableRowsComponentProps:J,selectableRowsHighlight:oe=!1,selectableRowsSingle:fe=!1,selected:Q,striped:re=!1,draggingColumnId:z,onDragStart:W,onDragOver:$,onDragEnd:B,onDragEnter:Y,onDragLeave:ae}){const[le,ie]=N.useState(n);N.useEffect(()=>{ie(n)},[n]);const q=N.useCallback(()=>{ie(!le),x(!le,I)},[le,x,I]),se=R||l&&(g||m),ee=N.useCallback(Ee=>{Ee.target.getAttribute("data-tag")===R1&&(C(I,Ee),!r&&l&&g&&q())},[r,g,l,q,C,I]),Ce=N.useCallback(Ee=>{Ee.target.getAttribute("data-tag")===R1&&(E(I,Ee),!r&&l&&m&&q())},[r,m,l,q,E,I]),xe=N.useCallback(Ee=>{k(I,Ee)},[k,I]),Re=N.useCallback(Ee=>{T(I,Ee)},[T,I]),Me=Mh(I,A),{conditionalStyle:qe,classNames:Je}=dk(I,e,["rdt_TableRow"]),ye=oe&&Q,be=b?qe:{},ke=re&&U%2==0;return N.createElement(N.Fragment,null,N.createElement(e7,{id:`row-${S}`,role:"row",$striped:ke,$highlightOnHover:v,$pointerOnHover:!r&&se,$dense:i,onClick:ee,onDoubleClick:Ce,onMouseEnter:xe,onMouseLeave:Re,className:Je,$selected:ye,$conditionalStyle:qe},K&&N.createElement(Wz,{name:`select-row-${Me}`,keyField:A,row:I,rowCount:F,selected:Q,selectableRowsComponent:Z,selectableRowsComponentProps:J,selectableRowDisabled:V,selectableRowsSingle:fe,onSelectedRow:w}),l&&!h&&N.createElement(Xz,{id:Me,expandableIcon:o,expanded:le,row:I,onToggled:q,disabled:r}),t.map(Ee=>Ee.omit?null:N.createElement(Uz,{id:`cell-${Ee.id}-${Me}`,key:`cell-${Ee.id}-${Me}`,dataTag:Ee.ignoreRowClick||Ee.button?null:R1,column:Ee,row:I,rowIndex:U,isDragging:zm(z,Ee.id),onDragStart:W,onDragOver:$,onDragEnd:B,onDragEnter:Y,onDragLeave:ae}))),l&&le&&N.createElement(Qz,{key:`expander-${Me}`,data:I,extendedRowStyle:be,extendedClassNames:Je,ExpanderComponent:c,expanderComponentProps:f}))}const n7=Pt.span`
|
|
232
|
+
padding: 2px;
|
|
233
|
+
color: inherit;
|
|
234
|
+
flex-grow: 0;
|
|
235
|
+
flex-shrink: 0;
|
|
236
|
+
${({$sortActive:t})=>t?"opacity: 1":"opacity: 0"};
|
|
237
|
+
${({$sortDirection:t})=>t==="desc"&&"transform: rotate(180deg)"};
|
|
238
|
+
`,r7=({sortActive:t,sortDirection:e})=>je.createElement(n7,{$sortActive:t,$sortDirection:e},"▲"),i7=Pt(pk)`
|
|
239
|
+
${({button:t})=>t&&"text-align: center"};
|
|
240
|
+
${({theme:t,$isDragging:e})=>e&&t.headCells.draggingStyle};
|
|
241
|
+
`,o7=br`
|
|
242
|
+
cursor: pointer;
|
|
243
|
+
span.__rdt_custom_sort_icon__ {
|
|
244
|
+
i,
|
|
245
|
+
svg {
|
|
246
|
+
transform: 'translate3d(0, 0, 0)';
|
|
247
|
+
${({$sortActive:t})=>t?"opacity: 1":"opacity: 0"};
|
|
248
|
+
color: inherit;
|
|
249
|
+
font-size: 18px;
|
|
250
|
+
height: 18px;
|
|
251
|
+
width: 18px;
|
|
252
|
+
backface-visibility: hidden;
|
|
253
|
+
transform-style: preserve-3d;
|
|
254
|
+
transition-duration: 95ms;
|
|
255
|
+
transition-property: transform;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&.asc i,
|
|
259
|
+
&.asc svg {
|
|
260
|
+
transform: rotate(180deg);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
${({$sortActive:t})=>!t&&br`
|
|
265
|
+
&:hover,
|
|
266
|
+
&:focus {
|
|
267
|
+
opacity: 0.7;
|
|
268
|
+
|
|
269
|
+
span,
|
|
270
|
+
span.__rdt_custom_sort_icon__ * {
|
|
271
|
+
opacity: 0.7;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
`};
|
|
275
|
+
`,a7=Pt.div`
|
|
276
|
+
display: inline-flex;
|
|
277
|
+
align-items: center;
|
|
278
|
+
justify-content: inherit;
|
|
279
|
+
height: 100%;
|
|
280
|
+
width: 100%;
|
|
281
|
+
outline: none;
|
|
282
|
+
user-select: none;
|
|
283
|
+
overflow: hidden;
|
|
284
|
+
${({disabled:t})=>!t&&o7};
|
|
285
|
+
`,s7=Pt.div`
|
|
286
|
+
overflow: hidden;
|
|
287
|
+
white-space: nowrap;
|
|
288
|
+
text-overflow: ellipsis;
|
|
289
|
+
`;var l7=N.memo(function({column:t,disabled:e,draggingColumnId:n,selectedColumn:r={},sortDirection:i,sortIcon:o,sortServer:l,pagination:c,paginationServer:f,persistSelectedOnSort:h,selectableRowsVisibleOnly:g,onSort:m,onDragStart:v,onDragOver:S,onDragEnd:b,onDragEnter:A,onDragLeave:C}){N.useEffect(()=>{typeof t.selector=="string"&&console.error(`Warning: ${t.selector} is a string based column selector which has been deprecated as of v7 and will be removed in v8. Instead, use a selector function e.g. row => row[field]...`)},[]);const[E,k]=N.useState(!1),T=N.useRef(null);if(N.useEffect(()=>{T.current&&k(T.current.scrollWidth>T.current.clientWidth)},[E]),t.omit)return null;const x=()=>{if(!t.sortable&&!t.selector)return;let J=i;zm(r.id,t.id)&&(J=i===wu.ASC?wu.DESC:wu.ASC),m({type:"SORT_CHANGE",sortDirection:J,selectedColumn:t,clearSelectedOnSort:c&&f&&!h||l||g})},w=J=>N.createElement(r7,{sortActive:J,sortDirection:i}),R=()=>N.createElement("span",{className:[i,"__rdt_custom_sort_icon__"].join(" ")},o),I=!(!t.sortable||!zm(r.id,t.id)),F=!t.sortable||e,U=t.sortable&&!o&&!t.right,V=t.sortable&&!o&&t.right,K=t.sortable&&o&&!t.right,Z=t.sortable&&o&&t.right;return N.createElement(i7,{"data-column-id":t.id,className:"rdt_TableCol",$headCell:!0,allowOverflow:t.allowOverflow,button:t.button,compact:t.compact,grow:t.grow,hide:t.hide,maxWidth:t.maxWidth,minWidth:t.minWidth,right:t.right,center:t.center,width:t.width,draggable:t.reorder,$isDragging:zm(t.id,n),onDragStart:v,onDragOver:S,onDragEnd:b,onDragEnter:A,onDragLeave:C},t.name&&N.createElement(a7,{"data-column-id":t.id,"data-sort-id":t.id,role:"columnheader",tabIndex:0,className:"rdt_TableCol_Sortable",onClick:F?void 0:x,onKeyPress:F?void 0:J=>{J.key==="Enter"&&x()},$sortActive:!F&&I,disabled:F},!F&&Z&&R(),!F&&V&&w(I),typeof t.name=="string"?N.createElement(s7,{title:E?t.name:void 0,ref:T,"data-column-id":t.id},t.name):t.name,!F&&K&&R(),!F&&U&&w(I)))});const u7=Pt(Bh)`
|
|
290
|
+
flex: 0 0 48px;
|
|
291
|
+
justify-content: center;
|
|
292
|
+
align-items: center;
|
|
293
|
+
user-select: none;
|
|
294
|
+
white-space: nowrap;
|
|
295
|
+
font-size: unset;
|
|
296
|
+
`;function c7({headCell:t=!0,rowData:e,keyField:n,allSelected:r,mergeSelections:i,selectedRows:o,selectableRowsComponent:l,selectableRowsComponentProps:c,selectableRowDisabled:f,onSelectAllRows:h}){const g=o.length>0&&!r,m=f?e.filter(b=>!f(b)):e,v=m.length===0,S=Math.min(e.length,m.length);return N.createElement(u7,{className:"rdt_TableCol",$headCell:t,$noPadding:!0},N.createElement(mk,{name:"select-all-rows",component:l,componentOptions:c,onClick:()=>{h({type:"SELECT_ALL_ROWS",rows:m,rowCount:S,mergeSelections:i,keyField:n})},checked:r,indeterminate:g,disabled:v}))}function gk(t=Iy.AUTO){const e=typeof window=="object",[n,r]=N.useState(!1);return N.useEffect(()=>{if(e)if(t!=="auto")r(t==="rtl");else{const i=!(!window.document||!window.document.createElement),o=document.getElementsByTagName("BODY")[0],l=document.getElementsByTagName("HTML")[0],c=o.dir==="rtl"||l.dir==="rtl";r(i&&c)}},[t,e]),n}const f7=Pt.div`
|
|
297
|
+
display: flex;
|
|
298
|
+
align-items: center;
|
|
299
|
+
flex: 1 0 auto;
|
|
300
|
+
height: 100%;
|
|
301
|
+
color: ${({theme:t})=>t.contextMenu.fontColor};
|
|
302
|
+
font-size: ${({theme:t})=>t.contextMenu.fontSize};
|
|
303
|
+
font-weight: 400;
|
|
304
|
+
`,d7=Pt.div`
|
|
305
|
+
display: flex;
|
|
306
|
+
align-items: center;
|
|
307
|
+
justify-content: flex-end;
|
|
308
|
+
flex-wrap: wrap;
|
|
309
|
+
`,sO=Pt.div`
|
|
310
|
+
position: absolute;
|
|
311
|
+
top: 0;
|
|
312
|
+
left: 0;
|
|
313
|
+
width: 100%;
|
|
314
|
+
height: 100%;
|
|
315
|
+
box-sizing: inherit;
|
|
316
|
+
z-index: 1;
|
|
317
|
+
align-items: center;
|
|
318
|
+
justify-content: space-between;
|
|
319
|
+
display: flex;
|
|
320
|
+
${({$rtl:t})=>t&&"direction: rtl"};
|
|
321
|
+
${({theme:t})=>t.contextMenu.style};
|
|
322
|
+
${({theme:t,$visible:e})=>e&&t.contextMenu.activeStyle};
|
|
323
|
+
`;function h7({contextMessage:t,contextActions:e,contextComponent:n,selectedCount:r,direction:i}){const o=gk(i),l=r>0;return n?N.createElement(sO,{$visible:l},N.cloneElement(n,{selectedCount:r})):N.createElement(sO,{$visible:l,$rtl:o},N.createElement(f7,null,((c,f,h)=>{if(f===0)return null;const g=f===1?c.singular:c.plural;return h?`${f} ${c.message||""} ${g}`:`${f} ${g} ${c.message||""}`})(t,r,o)),N.createElement(d7,null,e))}const p7=Pt.div`
|
|
324
|
+
position: relative;
|
|
325
|
+
box-sizing: border-box;
|
|
326
|
+
overflow: hidden;
|
|
327
|
+
display: flex;
|
|
328
|
+
flex: 1 1 auto;
|
|
329
|
+
align-items: center;
|
|
330
|
+
justify-content: space-between;
|
|
331
|
+
width: 100%;
|
|
332
|
+
flex-wrap: wrap;
|
|
333
|
+
${({theme:t})=>t.header.style}
|
|
334
|
+
`,m7=Pt.div`
|
|
335
|
+
flex: 1 0 auto;
|
|
336
|
+
color: ${({theme:t})=>t.header.fontColor};
|
|
337
|
+
font-size: ${({theme:t})=>t.header.fontSize};
|
|
338
|
+
font-weight: 400;
|
|
339
|
+
`,g7=Pt.div`
|
|
340
|
+
flex: 1 0 auto;
|
|
341
|
+
display: flex;
|
|
342
|
+
align-items: center;
|
|
343
|
+
justify-content: flex-end;
|
|
344
|
+
|
|
345
|
+
> * {
|
|
346
|
+
margin-left: 5px;
|
|
347
|
+
}
|
|
348
|
+
`,v7=({title:t,actions:e=null,contextMessage:n,contextActions:r,contextComponent:i,selectedCount:o,direction:l,showMenu:c=!0})=>N.createElement(p7,{className:"rdt_TableHeader",role:"heading","aria-level":1},N.createElement(m7,null,t),e&&N.createElement(g7,null,e),c&&N.createElement(h7,{contextMessage:n,contextActions:r,contextComponent:i,direction:l,selectedCount:o}));function vk(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}const y7={left:"flex-start",right:"flex-end",center:"center"},_7=Pt.header`
|
|
349
|
+
position: relative;
|
|
350
|
+
display: flex;
|
|
351
|
+
flex: 1 1 auto;
|
|
352
|
+
box-sizing: border-box;
|
|
353
|
+
align-items: center;
|
|
354
|
+
padding: 4px 16px 4px 24px;
|
|
355
|
+
width: 100%;
|
|
356
|
+
justify-content: ${({align:t})=>y7[t]};
|
|
357
|
+
flex-wrap: ${({$wrapContent:t})=>t?"wrap":"nowrap"};
|
|
358
|
+
${({theme:t})=>t.subHeader.style}
|
|
359
|
+
`,w7=t=>{var{align:e="right",wrapContent:n=!0}=t,r=vk(t,["align","wrapContent"]);return N.createElement(_7,Object.assign({align:e,$wrapContent:n},r))},S7=Pt.div`
|
|
360
|
+
display: flex;
|
|
361
|
+
flex-direction: column;
|
|
362
|
+
`,b7=Pt.div`
|
|
363
|
+
position: relative;
|
|
364
|
+
width: 100%;
|
|
365
|
+
border-radius: inherit;
|
|
366
|
+
${({$responsive:t,$fixedHeader:e})=>t&&br`
|
|
367
|
+
overflow-x: auto;
|
|
368
|
+
|
|
369
|
+
// hidden prevents vertical scrolling in firefox when fixedHeader is disabled
|
|
370
|
+
overflow-y: ${e?"auto":"hidden"};
|
|
371
|
+
min-height: 0;
|
|
372
|
+
`};
|
|
373
|
+
|
|
374
|
+
${({$fixedHeader:t=!1,$fixedHeaderScrollHeight:e="100vh"})=>t&&br`
|
|
375
|
+
max-height: ${e};
|
|
376
|
+
-webkit-overflow-scrolling: touch;
|
|
377
|
+
`};
|
|
378
|
+
|
|
379
|
+
${({theme:t})=>t.responsiveWrapper.style};
|
|
380
|
+
`,lO=Pt.div`
|
|
381
|
+
position: relative;
|
|
382
|
+
box-sizing: border-box;
|
|
383
|
+
width: 100%;
|
|
384
|
+
height: 100%;
|
|
385
|
+
${t=>t.theme.progress.style};
|
|
386
|
+
`,C7=Pt.div`
|
|
387
|
+
position: relative;
|
|
388
|
+
width: 100%;
|
|
389
|
+
${({theme:t})=>t.tableWrapper.style};
|
|
390
|
+
`,x7=Pt(Bh)`
|
|
391
|
+
white-space: nowrap;
|
|
392
|
+
${({theme:t})=>t.expanderCell.style};
|
|
393
|
+
`,E7=Pt.div`
|
|
394
|
+
box-sizing: border-box;
|
|
395
|
+
width: 100%;
|
|
396
|
+
height: 100%;
|
|
397
|
+
${({theme:t})=>t.noData.style};
|
|
398
|
+
`,T7=()=>je.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},je.createElement("path",{d:"M7 10l5 5 5-5z"}),je.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),O7=Pt.select`
|
|
399
|
+
cursor: pointer;
|
|
400
|
+
height: 24px;
|
|
401
|
+
max-width: 100%;
|
|
402
|
+
user-select: none;
|
|
403
|
+
padding-left: 8px;
|
|
404
|
+
padding-right: 24px;
|
|
405
|
+
box-sizing: content-box;
|
|
406
|
+
font-size: inherit;
|
|
407
|
+
color: inherit;
|
|
408
|
+
border: none;
|
|
409
|
+
background-color: transparent;
|
|
410
|
+
appearance: none;
|
|
411
|
+
direction: ltr;
|
|
412
|
+
flex-shrink: 0;
|
|
413
|
+
|
|
414
|
+
&::-ms-expand {
|
|
415
|
+
display: none;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
&:disabled::-ms-expand {
|
|
419
|
+
background: #f60;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
option {
|
|
423
|
+
color: initial;
|
|
424
|
+
}
|
|
425
|
+
`,A7=Pt.div`
|
|
426
|
+
position: relative;
|
|
427
|
+
flex-shrink: 0;
|
|
428
|
+
font-size: inherit;
|
|
429
|
+
color: inherit;
|
|
430
|
+
margin-top: 1px;
|
|
431
|
+
|
|
432
|
+
svg {
|
|
433
|
+
top: 0;
|
|
434
|
+
right: 0;
|
|
435
|
+
color: inherit;
|
|
436
|
+
position: absolute;
|
|
437
|
+
fill: currentColor;
|
|
438
|
+
width: 24px;
|
|
439
|
+
height: 24px;
|
|
440
|
+
display: inline-block;
|
|
441
|
+
user-select: none;
|
|
442
|
+
pointer-events: none;
|
|
443
|
+
}
|
|
444
|
+
`,R7=t=>{var{defaultValue:e,onChange:n}=t,r=vk(t,["defaultValue","onChange"]);return N.createElement(A7,null,N.createElement(O7,Object.assign({onChange:n,defaultValue:e},r)),N.createElement(T7,null))},He={columns:[],data:[],title:"",keyField:"id",selectableRows:!1,selectableRowsHighlight:!1,selectableRowsNoSelectAll:!1,selectableRowSelected:null,selectableRowDisabled:null,selectableRowsComponent:"input",selectableRowsComponentProps:{},selectableRowsVisibleOnly:!1,selectableRowsSingle:!1,clearSelectedRows:!1,expandableRows:!1,expandableRowDisabled:null,expandableRowExpanded:null,expandOnRowClicked:!1,expandableRowsHideExpander:!1,expandOnRowDoubleClicked:!1,expandableInheritConditionalStyles:!1,expandableRowsComponent:function(){return je.createElement("div",null,"To add an expander pass in a component instance via ",je.createElement("strong",null,"expandableRowsComponent"),". You can then access props.data from this component.")},expandableIcon:{collapsed:je.createElement(()=>je.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},je.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),je.createElement("path",{d:"M0-.25h24v24H0z",fill:"none"})),null),expanded:je.createElement(()=>je.createElement("svg",{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"},je.createElement("path",{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}),je.createElement("path",{d:"M0-.75h24v24H0z",fill:"none"})),null)},expandableRowsComponentProps:{},progressPending:!1,progressComponent:je.createElement("div",{style:{fontSize:"24px",fontWeight:700,padding:"24px"}},"Loading..."),persistTableHead:!1,sortIcon:null,sortFunction:null,sortServer:!1,striped:!1,highlightOnHover:!1,pointerOnHover:!1,noContextMenu:!1,contextMessage:{singular:"item",plural:"items",message:"selected"},actions:null,contextActions:null,contextComponent:null,defaultSortFieldId:null,defaultSortAsc:!0,responsive:!0,noDataComponent:je.createElement("div",{style:{padding:"24px"}},"There are no records to display"),disabled:!1,noTableHead:!1,noHeader:!1,subHeader:!1,subHeaderAlign:ub.RIGHT,subHeaderWrap:!0,subHeaderComponent:null,fixedHeader:!1,fixedHeaderScrollHeight:"100vh",pagination:!1,paginationServer:!1,paginationServerOptions:{persistSelectedOnSort:!1,persistSelectedOnPageChange:!1},paginationDefaultPage:1,paginationResetDefaultPage:!1,paginationTotalRows:0,paginationPerPage:10,paginationRowsPerPageOptions:[10,15,20,25,30],paginationComponent:null,paginationComponentOptions:{},paginationIconFirstPage:je.createElement(()=>je.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},je.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),je.createElement("path",{fill:"none",d:"M24 24H0V0h24v24z"})),null),paginationIconLastPage:je.createElement(()=>je.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},je.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),je.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"})),null),paginationIconNext:je.createElement(()=>je.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},je.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),je.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),null),paginationIconPrevious:je.createElement(()=>je.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24","aria-hidden":"true",role:"presentation"},je.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),je.createElement("path",{d:"M0 0h24v24H0z",fill:"none"})),null),dense:!1,conditionalRowStyles:[],theme:"default",customStyles:{},direction:Iy.AUTO,onChangePage:_r,onChangeRowsPerPage:_r,onRowClicked:_r,onRowDoubleClicked:_r,onRowMouseEnter:_r,onRowMouseLeave:_r,onRowExpandToggled:_r,onSelectedRowsChange:_r,onSort:_r,onColumnOrderChange:_r},k7={rowsPerPageText:"Rows per page:",rangeSeparatorText:"of",noRowsPerPage:!1,selectAllRowsItem:!1,selectAllRowsItemText:"All"},N7=Pt.nav`
|
|
445
|
+
display: flex;
|
|
446
|
+
flex: 1 1 auto;
|
|
447
|
+
justify-content: flex-end;
|
|
448
|
+
align-items: center;
|
|
449
|
+
box-sizing: border-box;
|
|
450
|
+
padding-right: 8px;
|
|
451
|
+
padding-left: 8px;
|
|
452
|
+
width: 100%;
|
|
453
|
+
${({theme:t})=>t.pagination.style};
|
|
454
|
+
`,F0=Pt.button`
|
|
455
|
+
position: relative;
|
|
456
|
+
display: block;
|
|
457
|
+
user-select: none;
|
|
458
|
+
border: none;
|
|
459
|
+
${({theme:t})=>t.pagination.pageButtonsStyle};
|
|
460
|
+
${({$isRTL:t})=>t&&"transform: scale(-1, -1)"};
|
|
461
|
+
`,P7=Pt.div`
|
|
462
|
+
display: flex;
|
|
463
|
+
align-items: center;
|
|
464
|
+
border-radius: 4px;
|
|
465
|
+
white-space: nowrap;
|
|
466
|
+
${hk`
|
|
467
|
+
width: 100%;
|
|
468
|
+
justify-content: space-around;
|
|
469
|
+
`};
|
|
470
|
+
`,yk=Pt.span`
|
|
471
|
+
flex-shrink: 1;
|
|
472
|
+
user-select: none;
|
|
473
|
+
`,D7=Pt(yk)`
|
|
474
|
+
margin: 0 24px;
|
|
475
|
+
`,L7=Pt(yk)`
|
|
476
|
+
margin: 0 4px;
|
|
477
|
+
`;var M7=N.memo(function({rowsPerPage:t,rowCount:e,currentPage:n,direction:r=He.direction,paginationRowsPerPageOptions:i=He.paginationRowsPerPageOptions,paginationIconLastPage:o=He.paginationIconLastPage,paginationIconFirstPage:l=He.paginationIconFirstPage,paginationIconNext:c=He.paginationIconNext,paginationIconPrevious:f=He.paginationIconPrevious,paginationComponentOptions:h=He.paginationComponentOptions,onChangeRowsPerPage:g=He.onChangeRowsPerPage,onChangePage:m=He.onChangePage}){const v=(()=>{const J=typeof window=="object";function oe(){return{width:J?window.innerWidth:void 0,height:J?window.innerHeight:void 0}}const[fe,Q]=N.useState(oe);return N.useEffect(()=>{if(!J)return()=>null;function re(){Q(oe())}return window.addEventListener("resize",re),()=>window.removeEventListener("resize",re)},[]),fe})(),S=gk(r),b=v.width&&v.width>599,A=jm(e,t),C=n*t,E=C-t+1,k=n===1,T=n===A,x=Object.assign(Object.assign({},k7),h),w=n===A?`${E}-${e} ${x.rangeSeparatorText} ${e}`:`${E}-${C} ${x.rangeSeparatorText} ${e}`,R=N.useCallback(()=>m(n-1),[n,m]),I=N.useCallback(()=>m(n+1),[n,m]),F=N.useCallback(()=>m(1),[m]),U=N.useCallback(()=>m(jm(e,t)),[m,e,t]),V=N.useCallback(J=>g(Number(J.target.value),n),[n,g]),K=i.map(J=>N.createElement("option",{key:J,value:J},J));x.selectAllRowsItem&&K.push(N.createElement("option",{key:-1,value:e},x.selectAllRowsItemText));const Z=N.createElement(R7,{onChange:V,defaultValue:t,"aria-label":x.rowsPerPageText},K);return N.createElement(N7,{className:"rdt_Pagination"},!x.noRowsPerPage&&b&&N.createElement(N.Fragment,null,N.createElement(L7,null,x.rowsPerPageText),Z),b&&N.createElement(D7,null,w),N.createElement(P7,null,N.createElement(F0,{id:"pagination-first-page",type:"button","aria-label":"First Page","aria-disabled":k,onClick:F,disabled:k,$isRTL:S},l),N.createElement(F0,{id:"pagination-previous-page",type:"button","aria-label":"Previous Page","aria-disabled":k,onClick:R,disabled:k,$isRTL:S},f),!x.noRowsPerPage&&!b&&Z,N.createElement(F0,{id:"pagination-next-page",type:"button","aria-label":"Next Page","aria-disabled":T,onClick:I,disabled:T,$isRTL:S},c),N.createElement(F0,{id:"pagination-last-page",type:"button","aria-label":"Last Page","aria-disabled":T,onClick:U,disabled:T,$isRTL:S},o)))});const jc=(t,e)=>{const n=N.useRef(!0);N.useEffect(()=>{n.current?n.current=!1:t()},e)};function I7(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var F7=function(t){return function(e){return!!e&&typeof e=="object"}(t)&&!function(e){var n=Object.prototype.toString.call(e);return n==="[object RegExp]"||n==="[object Date]"||function(r){return r.$$typeof===$7}(e)}(t)},$7=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function ag(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Ih((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function j7(t,e,n){return t.concat(e).map(function(r){return ag(r,n)})}function uO(t){return Object.keys(t).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(n){return Object.propertyIsEnumerable.call(e,n)}):[]}(t))}function cO(t,e){try{return e in t}catch{return!1}}function z7(t,e,n){var r={};return n.isMergeableObject(t)&&uO(t).forEach(function(i){r[i]=ag(t[i],n)}),uO(e).forEach(function(i){(function(o,l){return cO(o,l)&&!(Object.hasOwnProperty.call(o,l)&&Object.propertyIsEnumerable.call(o,l))})(t,i)||(cO(t,i)&&n.isMergeableObject(e[i])?r[i]=function(o,l){if(!l.customMerge)return Ih;var c=l.customMerge(o);return typeof c=="function"?c:Ih}(i,n)(t[i],e[i],n):r[i]=ag(e[i],n))}),r}function Ih(t,e,n){(n=n||{}).arrayMerge=n.arrayMerge||j7,n.isMergeableObject=n.isMergeableObject||F7,n.cloneUnlessOtherwiseSpecified=ag;var r=Array.isArray(e);return r===Array.isArray(t)?r?n.arrayMerge(t,e,n):z7(t,e,n):ag(e,n)}Ih.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,r){return Ih(n,r,e)},{})};var H7=I7(Ih);const fO={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)"},background:{default:"#FFFFFF"},context:{background:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},divider:{default:"rgba(0,0,0,.12)"},button:{default:"rgba(0,0,0,.54)",focus:"rgba(0,0,0,.12)",hover:"rgba(0,0,0,.12)",disabled:"rgba(0, 0, 0, .18)"},selected:{default:"#e3f2fd",text:"rgba(0, 0, 0, 0.87)"},highlightOnHover:{default:"#EEEEEE",text:"rgba(0, 0, 0, 0.87)"},striped:{default:"#FAFAFA",text:"rgba(0, 0, 0, 0.87)"}},dO={default:fO,light:fO,dark:{text:{primary:"#FFFFFF",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(0,0,0,.12)"},background:{default:"#424242"},context:{background:"#E91E63",text:"#FFFFFF"},divider:{default:"rgba(81, 81, 81, 1)"},button:{default:"#FFFFFF",focus:"rgba(255, 255, 255, .54)",hover:"rgba(255, 255, 255, .12)",disabled:"rgba(255, 255, 255, .18)"},selected:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},highlightOnHover:{default:"rgba(0, 0, 0, .7)",text:"#FFFFFF"},striped:{default:"rgba(0, 0, 0, .87)",text:"#FFFFFF"}}};function q7(t,e,n,r){const[i,o]=N.useState(()=>iO(t)),[l,c]=N.useState(""),f=N.useRef("");jc(()=>{o(iO(t))},[t]);const h=N.useCallback(C=>{var E,k,T;const{attributes:x}=C.target,w=(E=x.getNamedItem("data-column-id"))===null||E===void 0?void 0:E.value;w&&(f.current=((T=(k=i[I0(i,w)])===null||k===void 0?void 0:k.id)===null||T===void 0?void 0:T.toString())||"",c(f.current))},[i]),g=N.useCallback(C=>{var E;const{attributes:k}=C.target,T=(E=k.getNamedItem("data-column-id"))===null||E===void 0?void 0:E.value;if(T&&f.current&&T!==f.current){const x=I0(i,f.current),w=I0(i,T),R=[...i];R[x]=i[w],R[w]=i[x],o(R),e(R)}},[e,i]),m=N.useCallback(C=>{C.preventDefault()},[]),v=N.useCallback(C=>{C.preventDefault()},[]),S=N.useCallback(C=>{C.preventDefault(),f.current="",c("")},[]),b=function(C=!1){return C?wu.ASC:wu.DESC}(r),A=N.useMemo(()=>i[I0(i,n?.toString())]||{},[n,i]);return{tableColumns:i,draggingColumnId:l,handleDragStart:h,handleDragEnter:g,handleDragOver:m,handleDragLeave:v,handleDragEnd:S,defaultSortDirection:b,defaultSortColumn:A}}var U7=N.memo(function(t){const{data:e=He.data,columns:n=He.columns,title:r=He.title,actions:i=He.actions,keyField:o=He.keyField,striped:l=He.striped,highlightOnHover:c=He.highlightOnHover,pointerOnHover:f=He.pointerOnHover,dense:h=He.dense,selectableRows:g=He.selectableRows,selectableRowsSingle:m=He.selectableRowsSingle,selectableRowsHighlight:v=He.selectableRowsHighlight,selectableRowsNoSelectAll:S=He.selectableRowsNoSelectAll,selectableRowsVisibleOnly:b=He.selectableRowsVisibleOnly,selectableRowSelected:A=He.selectableRowSelected,selectableRowDisabled:C=He.selectableRowDisabled,selectableRowsComponent:E=He.selectableRowsComponent,selectableRowsComponentProps:k=He.selectableRowsComponentProps,onRowExpandToggled:T=He.onRowExpandToggled,onSelectedRowsChange:x=He.onSelectedRowsChange,expandableIcon:w=He.expandableIcon,onChangeRowsPerPage:R=He.onChangeRowsPerPage,onChangePage:I=He.onChangePage,paginationServer:F=He.paginationServer,paginationServerOptions:U=He.paginationServerOptions,paginationTotalRows:V=He.paginationTotalRows,paginationDefaultPage:K=He.paginationDefaultPage,paginationResetDefaultPage:Z=He.paginationResetDefaultPage,paginationPerPage:J=He.paginationPerPage,paginationRowsPerPageOptions:oe=He.paginationRowsPerPageOptions,paginationIconLastPage:fe=He.paginationIconLastPage,paginationIconFirstPage:Q=He.paginationIconFirstPage,paginationIconNext:re=He.paginationIconNext,paginationIconPrevious:z=He.paginationIconPrevious,paginationComponent:W=He.paginationComponent,paginationComponentOptions:$=He.paginationComponentOptions,responsive:B=He.responsive,progressPending:Y=He.progressPending,progressComponent:ae=He.progressComponent,persistTableHead:le=He.persistTableHead,noDataComponent:ie=He.noDataComponent,disabled:q=He.disabled,noTableHead:se=He.noTableHead,noHeader:ee=He.noHeader,fixedHeader:Ce=He.fixedHeader,fixedHeaderScrollHeight:xe=He.fixedHeaderScrollHeight,pagination:Re=He.pagination,subHeader:Me=He.subHeader,subHeaderAlign:qe=He.subHeaderAlign,subHeaderWrap:Je=He.subHeaderWrap,subHeaderComponent:ye=He.subHeaderComponent,noContextMenu:be=He.noContextMenu,contextMessage:ke=He.contextMessage,contextActions:Ee=He.contextActions,contextComponent:Fe=He.contextComponent,expandableRows:Ae=He.expandableRows,onRowClicked:ze=He.onRowClicked,onRowDoubleClicked:nt=He.onRowDoubleClicked,onRowMouseEnter:ct=He.onRowMouseEnter,onRowMouseLeave:Ge=He.onRowMouseLeave,sortIcon:_t=He.sortIcon,onSort:Kt=He.onSort,sortFunction:jn=He.sortFunction,sortServer:Qt=He.sortServer,expandableRowsComponent:Zr=He.expandableRowsComponent,expandableRowsComponentProps:ur=He.expandableRowsComponentProps,expandableRowDisabled:Mr=He.expandableRowDisabled,expandableRowsHideExpander:Xe=He.expandableRowsHideExpander,expandOnRowClicked:it=He.expandOnRowClicked,expandOnRowDoubleClicked:It=He.expandOnRowDoubleClicked,expandableRowExpanded:Jn=He.expandableRowExpanded,expandableInheritConditionalStyles:mn=He.expandableInheritConditionalStyles,defaultSortFieldId:Jr=He.defaultSortFieldId,defaultSortAsc:Er=He.defaultSortAsc,clearSelectedRows:Ao=He.clearSelectedRows,conditionalRowStyles:Ro=He.conditionalRowStyles,theme:Tr=He.theme,customStyles:Ni=He.customStyles,direction:tn=He.direction,onColumnOrderChange:Os=He.onColumnOrderChange,className:Ol}=t,{tableColumns:on,draggingColumnId:gn,handleDragStart:er,handleDragEnter:Or,handleDragOver:mi,handleDragLeave:Pa,handleDragEnd:gi,defaultSortDirection:As,defaultSortColumn:Pi}=q7(n,Os,Jr,Er),[{rowsPerPage:Ir,currentPage:tr,selectedRows:ta,allSelected:ei,selectedCount:Rf,selectedColumn:Di,sortDirection:ti,toggleOnSelectedRowsChange:kf},ao]=N.useReducer(Pz,{allSelected:!1,selectedCount:0,selectedRows:[],selectedColumn:Pi,toggleOnSelectedRowsChange:!1,sortDirection:As,currentPage:K,rowsPerPage:J,selectedRowsFlag:!1,contextMessage:He.contextMessage}),{persistSelectedOnSort:Nf=!1,persistSelectedOnPageChange:Rs=!1}=U,ku=!(!F||!Rs&&!Nf),Pf=Re&&!Y&&e.length>0,Df=W||M7,ip=N.useMemo(()=>((ut={},kt="default",Cn="default")=>{const cr=dO[kt]?kt:Cn;return H7({table:{style:{color:(at=dO[cr]).text.primary,backgroundColor:at.background.default}},tableWrapper:{style:{display:"table"}},responsiveWrapper:{style:{}},header:{style:{fontSize:"22px",color:at.text.primary,backgroundColor:at.background.default,minHeight:"56px",paddingLeft:"16px",paddingRight:"8px"}},subHeader:{style:{backgroundColor:at.background.default,minHeight:"52px"}},head:{style:{color:at.text.primary,fontSize:"12px",fontWeight:500}},headRow:{style:{backgroundColor:at.background.default,minHeight:"52px",borderBottomWidth:"1px",borderBottomColor:at.divider.default,borderBottomStyle:"solid"},denseStyle:{minHeight:"32px"}},headCells:{style:{paddingLeft:"16px",paddingRight:"16px"},draggingStyle:{cursor:"move"}},contextMenu:{style:{backgroundColor:at.context.background,fontSize:"18px",fontWeight:400,color:at.context.text,paddingLeft:"16px",paddingRight:"8px",transform:"translate3d(0, -100%, 0)",transitionDuration:"125ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)",willChange:"transform"},activeStyle:{transform:"translate3d(0, 0, 0)"}},cells:{style:{paddingLeft:"16px",paddingRight:"16px",wordBreak:"break-word"},draggingStyle:{}},rows:{style:{fontSize:"13px",fontWeight:400,color:at.text.primary,backgroundColor:at.background.default,minHeight:"48px","&:not(:last-of-type)":{borderBottomStyle:"solid",borderBottomWidth:"1px",borderBottomColor:at.divider.default}},denseStyle:{minHeight:"32px"},selectedHighlightStyle:{"&:nth-of-type(n)":{color:at.selected.text,backgroundColor:at.selected.default,borderBottomColor:at.background.default}},highlightOnHoverStyle:{color:at.highlightOnHover.text,backgroundColor:at.highlightOnHover.default,transitionDuration:"0.15s",transitionProperty:"background-color",borderBottomColor:at.background.default,outlineStyle:"solid",outlineWidth:"1px",outlineColor:at.background.default},stripedStyle:{color:at.striped.text,backgroundColor:at.striped.default}},expanderRow:{style:{color:at.text.primary,backgroundColor:at.background.default}},expanderCell:{style:{flex:"0 0 48px"}},expanderButton:{style:{color:at.button.default,fill:at.button.default,backgroundColor:"transparent",borderRadius:"2px",transition:"0.25s",height:"100%",width:"100%","&:hover:enabled":{cursor:"pointer"},"&:disabled":{color:at.button.disabled},"&:hover:not(:disabled)":{cursor:"pointer",backgroundColor:at.button.hover},"&:focus":{outline:"none",backgroundColor:at.button.focus},svg:{margin:"auto"}}},pagination:{style:{color:at.text.secondary,fontSize:"13px",minHeight:"56px",backgroundColor:at.background.default,borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:at.divider.default},pageButtonsStyle:{borderRadius:"50%",height:"40px",width:"40px",padding:"8px",margin:"px",cursor:"pointer",transition:"0.4s",color:at.button.default,fill:at.button.default,backgroundColor:"transparent","&:disabled":{cursor:"unset",color:at.button.disabled,fill:at.button.disabled},"&:hover:not(:disabled)":{backgroundColor:at.button.hover},"&:focus":{outline:"none",backgroundColor:at.button.focus}}},noData:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:at.text.primary,backgroundColor:at.background.default}},progress:{style:{display:"flex",alignItems:"center",justifyContent:"center",color:at.text.primary,backgroundColor:at.background.default}}},ut);var at})(Ni,Tr),[Ni,Tr]),Al=N.useMemo(()=>Object.assign({},tn!=="auto"&&{dir:tn}),[tn]),Ot=N.useMemo(()=>{if(Qt)return e;if(Di?.sortFunction&&typeof Di.sortFunction=="function"){const ut=Di.sortFunction,kt=ti===wu.ASC?ut:(Cn,cr)=>-1*ut(Cn,cr);return[...e].sort(kt)}return function(ut,kt,Cn,cr){return kt?cr&&typeof cr=="function"?cr(ut.slice(0),kt,Cn):ut.slice(0).sort((at,La)=>{const na=kt(at),Mi=kt(La);if(Cn==="asc"){if(na<Mi)return-1;if(na>Mi)return 1}if(Cn==="desc"){if(na>Mi)return-1;if(na<Mi)return 1}return 0}):ut}(e,Di?.selector,ti,jn)},[Qt,Di,ti,e,jn]),ko=N.useMemo(()=>{if(Re&&!F){const ut=tr*Ir,kt=ut-Ir;return Ot.slice(kt,ut)}return Ot},[tr,Re,F,Ir,Ot]),Nu=N.useCallback(ut=>{ao(ut)},[]),Lf=N.useCallback(ut=>{ao(ut)},[]),Rl=N.useCallback(ut=>{ao(ut)},[]),Mf=N.useCallback((ut,kt)=>ze(ut,kt),[ze]),Pu=N.useCallback((ut,kt)=>nt(ut,kt),[nt]),ks=N.useCallback((ut,kt)=>ct(ut,kt),[ct]),Li=N.useCallback((ut,kt)=>Ge(ut,kt),[Ge]),Da=N.useCallback(ut=>ao({type:"CHANGE_PAGE",page:ut,paginationServer:F,visibleOnly:b,persistSelectedOnPageChange:Rs}),[F,Rs,b]),vi=N.useCallback(ut=>{const kt=jm(V||ko.length,ut),Cn=A1(tr,kt);F||Da(Cn),ao({type:"CHANGE_ROWS_PER_PAGE",page:Cn,rowsPerPage:ut})},[tr,Da,F,V,ko.length]);if(Re&&!F&&Ot.length>0&&ko.length===0){const ut=jm(Ot.length,Ir),kt=A1(tr,ut);Da(kt)}jc(()=>{x({allSelected:ei,selectedCount:Rf,selectedRows:ta.slice(0)})},[kf]),jc(()=>{Kt(Di,ti,Ot.slice(0))},[Di,ti]),jc(()=>{I(tr,V||Ot.length)},[tr]),jc(()=>{R(Ir,tr)},[Ir]),jc(()=>{Da(K)},[K,Z]),jc(()=>{if(Re&&F&&V>0){const ut=jm(V,Ir),kt=A1(tr,ut);tr!==kt&&Da(kt)}},[V]),N.useEffect(()=>{ao({type:"CLEAR_SELECTED_ROWS",selectedRowsFlag:Ao})},[m,Ao]),N.useEffect(()=>{if(!A)return;const ut=Ot.filter(Cn=>A(Cn)),kt=m?ut.slice(0,1):ut;ao({type:"SELECT_MULTIPLE_ROWS",keyField:o,selectedRows:kt,totalRows:Ot.length,mergeSelections:ku})},[e,A]);const op=b?ko:Ot,If=Rs||m||S;return N.createElement(Rz,{theme:ip},!ee&&(!!r||!!i)&&N.createElement(v7,{title:r,actions:i,showMenu:!be,selectedCount:Rf,direction:tn,contextActions:Ee,contextComponent:Fe,contextMessage:ke}),Me&&N.createElement(w7,{align:qe,wrapContent:Je},ye),N.createElement(b7,Object.assign({$responsive:B,$fixedHeader:Ce,$fixedHeaderScrollHeight:xe,className:Ol},Al),N.createElement(C7,null,Y&&!le&&N.createElement(lO,null,ae),N.createElement(Lz,{disabled:q,className:"rdt_Table",role:"table"},!se&&(!!le||Ot.length>0&&!Y)&&N.createElement(Iz,{className:"rdt_TableHead",role:"rowgroup",$fixedHeader:Ce},N.createElement(Fz,{className:"rdt_TableHeadRow",role:"row",$dense:h},g&&(If?N.createElement(Bh,{style:{flex:"0 0 48px"}}):N.createElement(c7,{allSelected:ei,selectedRows:ta,selectableRowsComponent:E,selectableRowsComponentProps:k,selectableRowDisabled:C,rowData:op,keyField:o,mergeSelections:ku,onSelectAllRows:Lf})),Ae&&!Xe&&N.createElement(x7,null),on.map(ut=>N.createElement(l7,{key:ut.id,column:ut,selectedColumn:Di,disabled:Y||Ot.length===0,pagination:Re,paginationServer:F,persistSelectedOnSort:Nf,selectableRowsVisibleOnly:b,sortDirection:ti,sortIcon:_t,sortServer:Qt,onSort:Nu,onDragStart:er,onDragOver:mi,onDragEnd:gi,onDragEnter:Or,onDragLeave:Pa,draggingColumnId:gn})))),!Ot.length&&!Y&&N.createElement(E7,null,ie),Y&&le&&N.createElement(lO,null,ae),!Y&&Ot.length>0&&N.createElement(S7,{className:"rdt_TableBody",role:"rowgroup"},ko.map((ut,kt)=>{const Cn=Mh(ut,o),cr=function(Mi=""){return typeof Mi!="number"&&(!Mi||Mi.length===0)}(Cn)?kt:Cn,at=iy(ut,ta,o),La=!!(Ae&&Jn&&Jn(ut)),na=!!(Ae&&Mr&&Mr(ut));return N.createElement(t7,{id:cr,key:cr,keyField:o,"data-row-id":cr,columns:on,row:ut,rowCount:Ot.length,rowIndex:kt,selectableRows:g,expandableRows:Ae,expandableIcon:w,highlightOnHover:c,pointerOnHover:f,dense:h,expandOnRowClicked:it,expandOnRowDoubleClicked:It,expandableRowsComponent:Zr,expandableRowsComponentProps:ur,expandableRowsHideExpander:Xe,defaultExpanderDisabled:na,defaultExpanded:La,expandableInheritConditionalStyles:mn,conditionalRowStyles:Ro,selected:at,selectableRowsHighlight:v,selectableRowsComponent:E,selectableRowsComponentProps:k,selectableRowDisabled:C,selectableRowsSingle:m,striped:l,onRowExpandToggled:T,onRowClicked:Mf,onRowDoubleClicked:Pu,onRowMouseEnter:ks,onRowMouseLeave:Li,onSelectedRow:Rl,draggingColumnId:gn,onDragStart:er,onDragOver:mi,onDragEnd:gi,onDragEnter:Or,onDragLeave:Pa})}))))),Pf&&N.createElement("div",null,N.createElement(Df,{onChangePage:Da,onChangeRowsPerPage:vi,rowCount:V||Ot.length,currentPage:tr,rowsPerPage:Ir,direction:tn,paginationRowsPerPageOptions:oe,paginationIconLastPage:fe,paginationIconFirstPage:Q,paginationIconNext:re,paginationIconPrevious:z,paginationComponentOptions:$})))}),$C=N.createContext({});function _k(t){if(Array.isArray(t))return t}function V7(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,l,c=[],f=!0,h=!1;try{if(o=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);f=!0);}catch(g){h=!0,i=g}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(h)throw i}}return c}}function cb(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jC(t,e){if(t){if(typeof t=="string")return cb(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cb(t,e)}}function wk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
478
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xt(t,e){return _k(t)||V7(t,e)||jC(t,e)||wk()}function In(t){"@babel/helpers - typeof";return In=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},In(t)}function W7(t,e){if(In(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(In(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Sk(t){var e=W7(t,"string");return In(e)=="symbol"?e:String(e)}function Nt(t,e,n){return e=Sk(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function mf(t,e){if(t==null)return{};var n=C_(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Xr(t,e){G7(t)&&(t="100%");var n=B7(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function $0(t){return Math.min(1,Math.max(0,t))}function G7(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function B7(t){return typeof t=="string"&&t.indexOf("%")!==-1}function bk(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function j0(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Xc(t){return t.length===1?"0"+t:String(t)}function K7(t,e,n){return{r:Xr(t,255)*255,g:Xr(e,255)*255,b:Xr(n,255)*255}}function hO(t,e,n){t=Xr(t,255),e=Xr(e,255),n=Xr(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o=0,l=0,c=(r+i)/2;if(r===i)l=0,o=0;else{var f=r-i;switch(l=c>.5?f/(2-r-i):f/(r+i),r){case t:o=(e-n)/f+(e<n?6:0);break;case e:o=(n-t)/f+2;break;case n:o=(t-e)/f+4;break}o/=6}return{h:o,s:l,l:c}}function k1(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function X7(t,e,n){var r,i,o;if(t=Xr(t,360),e=Xr(e,100),n=Xr(n,100),e===0)i=n,o=n,r=n;else{var l=n<.5?n*(1+e):n+e-n*e,c=2*n-l;r=k1(c,l,t+1/3),i=k1(c,l,t),o=k1(c,l,t-1/3)}return{r:r*255,g:i*255,b:o*255}}function fb(t,e,n){t=Xr(t,255),e=Xr(e,255),n=Xr(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o=0,l=r,c=r-i,f=r===0?0:c/r;if(r===i)o=0;else{switch(r){case t:o=(e-n)/c+(e<n?6:0);break;case e:o=(n-t)/c+2;break;case n:o=(t-e)/c+4;break}o/=6}return{h:o,s:f,v:l}}function Y7(t,e,n){t=Xr(t,360)*6,e=Xr(e,100),n=Xr(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),l=n*(1-i*e),c=n*(1-(1-i)*e),f=r%6,h=[n,l,o,o,c,n][f],g=[c,n,n,l,o,o][f],m=[o,o,c,n,n,l][f];return{r:h*255,g:g*255,b:m*255}}function db(t,e,n,r){var i=[Xc(Math.round(t).toString(16)),Xc(Math.round(e).toString(16)),Xc(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function Q7(t,e,n,r,i){var o=[Xc(Math.round(t).toString(16)),Xc(Math.round(e).toString(16)),Xc(Math.round(n).toString(16)),Xc(Z7(r))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Z7(t){return Math.round(parseFloat(t)*255).toString(16)}function pO(t){return So(t)/255}function So(t){return parseInt(t,16)}function J7(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var hb={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",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:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",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:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",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:"#ff0000",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:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function ch(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,o=null,l=!1,c=!1;return typeof t=="string"&&(t=nH(t)),typeof t=="object"&&(ol(t.r)&&ol(t.g)&&ol(t.b)?(e=K7(t.r,t.g,t.b),l=!0,c=String(t.r).substr(-1)==="%"?"prgb":"rgb"):ol(t.h)&&ol(t.s)&&ol(t.v)?(r=j0(t.s),i=j0(t.v),e=Y7(t.h,r,i),l=!0,c="hsv"):ol(t.h)&&ol(t.s)&&ol(t.l)&&(r=j0(t.s),o=j0(t.l),e=X7(t.h,r,o),l=!0,c="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=bk(n),{ok:l,format:t.format||c,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var eH="[-\\+]?\\d+%?",tH="[-\\+]?\\d*\\.\\d+%?",gu="(?:".concat(tH,")|(?:").concat(eH,")"),N1="[\\s|\\(]+(".concat(gu,")[,|\\s]+(").concat(gu,")[,|\\s]+(").concat(gu,")\\s*\\)?"),P1="[\\s|\\(]+(".concat(gu,")[,|\\s]+(").concat(gu,")[,|\\s]+(").concat(gu,")[,|\\s]+(").concat(gu,")\\s*\\)?"),va={CSS_UNIT:new RegExp(gu),rgb:new RegExp("rgb"+N1),rgba:new RegExp("rgba"+P1),hsl:new RegExp("hsl"+N1),hsla:new RegExp("hsla"+P1),hsv:new RegExp("hsv"+N1),hsva:new RegExp("hsva"+P1),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 nH(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(hb[t])t=hb[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=va.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=va.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=va.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=va.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=va.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=va.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=va.hex8.exec(t),n?{r:So(n[1]),g:So(n[2]),b:So(n[3]),a:pO(n[4]),format:e?"name":"hex8"}:(n=va.hex6.exec(t),n?{r:So(n[1]),g:So(n[2]),b:So(n[3]),format:e?"name":"hex"}:(n=va.hex4.exec(t),n?{r:So(n[1]+n[1]),g:So(n[2]+n[2]),b:So(n[3]+n[3]),a:pO(n[4]+n[4]),format:e?"name":"hex8"}:(n=va.hex3.exec(t),n?{r:So(n[1]+n[1]),g:So(n[2]+n[2]),b:So(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function ol(t){return!!va.CSS_UNIT.exec(String(t))}var xo=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var r;if(e instanceof t)return e;typeof e=="number"&&(e=J7(e)),this.originalInput=e;var i=ch(e);this.originalInput=e,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,r,i,o=e.r/255,l=e.g/255,c=e.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),l<=.03928?r=l/12.92:r=Math.pow((l+.055)/1.055,2.4),c<=.03928?i=c/12.92:i=Math.pow((c+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=bk(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=fb(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=fb(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=hO(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=hO(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),db(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),Q7(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(r,")"):"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(Xr(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(Xr(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+db(this.r,this.g,this.b,!1),n=0,r=Object.entries(hb);n<r.length;n++){var i=r[n],o=i[0],l=i[1];if(e===l)return o}return!1},t.prototype.toString=function(e){var n=!!e;e=e??this.format;var r=!1,i=this.a<1&&this.a>=0,o=!n&&i&&(e.startsWith("hex")||e==="name");return o?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=$0(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=$0(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=$0(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=$0(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var r=this.toRgb(),i=new t(e).toRgb(),o=n/100,l={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new t(l)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(new t(r));return o},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,l=[],c=1/e;e--;)l.push(new t({h:r,s:i,v:o})),o=(o+c)%1;return l},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),i=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,i=[this],o=360/e,l=1;l<e;l++)i.push(new t({h:(r+l*o)%360,s:n.s,l:n.l}));return i},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}(),z0=2,mO=.16,rH=.05,iH=.05,oH=.15,Ck=5,xk=4,aH=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function gO(t){var e=t.r,n=t.g,r=t.b,i=fb(e,n,r);return{h:i.h*360,s:i.s,v:i.v}}function H0(t){var e=t.r,n=t.g,r=t.b;return"#".concat(db(e,n,r,!1))}function sH(t,e,n){var r=n/100,i={r:(e.r-t.r)*r+t.r,g:(e.g-t.g)*r+t.g,b:(e.b-t.b)*r+t.b};return i}function vO(t,e,n){var r;return Math.round(t.h)>=60&&Math.round(t.h)<=240?r=n?Math.round(t.h)-z0*e:Math.round(t.h)+z0*e:r=n?Math.round(t.h)+z0*e:Math.round(t.h)-z0*e,r<0?r+=360:r>=360&&(r-=360),r}function yO(t,e,n){if(t.h===0&&t.s===0)return t.s;var r;return n?r=t.s-mO*e:e===xk?r=t.s+mO:r=t.s+rH*e,r>1&&(r=1),n&&e===Ck&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function _O(t,e,n){var r;return n?r=t.v+iH*e:r=t.v-oH*e,r>1&&(r=1),Number(r.toFixed(2))}function gf(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=ch(t),i=Ck;i>0;i-=1){var o=gO(r),l=H0(ch({h:vO(o,i,!0),s:yO(o,i,!0),v:_O(o,i,!0)}));n.push(l)}n.push(H0(r));for(var c=1;c<=xk;c+=1){var f=gO(r),h=H0(ch({h:vO(f,c),s:yO(f,c),v:_O(f,c)}));n.push(h)}return e.theme==="dark"?aH.map(function(g){var m=g.index,v=g.opacity,S=H0(sH(ch(e.backgroundColor||"#141414"),ch(n[m]),v*100));return S}):n}var D1={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},oy={},L1={};Object.keys(D1).forEach(function(t){oy[t]=gf(D1[t]),oy[t].primary=oy[t][5],L1[t]=gf(D1[t],{theme:"dark",backgroundColor:"#141414"}),L1[t].primary=L1[t][5]});var lH=oy.blue;function wO(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function pt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?wO(Object(n),!0).forEach(function(r){Nt(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wO(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function bs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function uH(t,e){if(!t)return!1;if(t.contains)return t.contains(e);for(var n=e;n;){if(n===t)return!0;n=n.parentNode}return!1}var SO="data-rc-order",bO="data-rc-priority",cH="rc-util-key",pb=new Map;function Ek(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):cH}function O_(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}function fH(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function Tk(t){return Array.from((pb.get(t)||t).children).filter(function(e){return e.tagName==="STYLE"})}function Ok(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!bs())return null;var n=e.csp,r=e.prepend,i=e.priority,o=i===void 0?0:i,l=fH(r),c=l==="prependQueue",f=document.createElement("style");f.setAttribute(SO,l),c&&o&&f.setAttribute(bO,"".concat(o)),n!=null&&n.nonce&&(f.nonce=n?.nonce),f.innerHTML=t;var h=O_(e),g=h.firstChild;if(r){if(c){var m=Tk(h).filter(function(v){if(!["prepend","prependQueue"].includes(v.getAttribute(SO)))return!1;var S=Number(v.getAttribute(bO)||0);return o>=S});if(m.length)return h.insertBefore(f,m[m.length-1].nextSibling),f}h.insertBefore(f,g)}else h.appendChild(f);return f}function Ak(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=O_(e);return Tk(n).find(function(r){return r.getAttribute(Ek(e))===t})}function zC(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Ak(t,e);if(n){var r=O_(e);r.removeChild(n)}}function dH(t,e){var n=pb.get(t);if(!n||!uH(document,n)){var r=Ok("",e),i=r.parentNode;pb.set(t,i),t.removeChild(r)}}function vf(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=O_(n);dH(r,n);var i=Ak(e,n);if(i){var o,l;if((o=n.csp)!==null&&o!==void 0&&o.nonce&&i.nonce!==((l=n.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=n.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==t&&(i.innerHTML=t),i}var f=Ok(t,n);return f.setAttribute(Ek(n),e),f}function Rk(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}function hH(t){return Rk(t)instanceof ShadowRoot}function pH(t){return hH(t)?Rk(t):null}var mb={},mH=function(e){};function gH(t,e){}function vH(t,e){}function yH(){mb={}}function kk(t,e,n){!e&&!mb[n]&&(t(!1,n),mb[n]=!0)}function jg(t,e){kk(gH,t,e)}function _H(t,e){kk(vH,t,e)}jg.preMessage=mH;jg.resetWarned=yH;jg.noteOnce=_H;function wH(t){return t.replace(/-(.)/g,function(e,n){return n.toUpperCase()})}function SH(t,e){jg(t,"[@ant-design/icons] ".concat(e))}function CO(t){return In(t)==="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(In(t.icon)==="object"||typeof t.icon=="function")}function xO(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(t).reduce(function(e,n){var r=t[n];switch(n){case"class":e.className=r,delete e.class;break;default:delete e[n],e[wH(n)]=r}return e},{})}function gb(t,e,n){return n?je.createElement(t.tag,pt(pt({key:e},xO(t.attrs)),n),(t.children||[]).map(function(r,i){return gb(r,"".concat(e,"-").concat(t.tag,"-").concat(i))})):je.createElement(t.tag,pt({key:e},xO(t.attrs)),(t.children||[]).map(function(r,i){return gb(r,"".concat(e,"-").concat(t.tag,"-").concat(i))}))}function Nk(t){return gf(t)[0]}function Pk(t){return t?Array.isArray(t)?t:[t]:[]}var bH=`
|
|
479
|
+
.anticon {
|
|
480
|
+
display: inline-block;
|
|
481
|
+
color: inherit;
|
|
482
|
+
font-style: normal;
|
|
483
|
+
line-height: 0;
|
|
484
|
+
text-align: center;
|
|
485
|
+
text-transform: none;
|
|
486
|
+
vertical-align: -0.125em;
|
|
487
|
+
text-rendering: optimizeLegibility;
|
|
488
|
+
-webkit-font-smoothing: antialiased;
|
|
489
|
+
-moz-osx-font-smoothing: grayscale;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
.anticon > * {
|
|
493
|
+
line-height: 1;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.anticon svg {
|
|
497
|
+
display: inline-block;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.anticon::before {
|
|
501
|
+
display: none;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.anticon .anticon-icon {
|
|
505
|
+
display: block;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.anticon[tabindex] {
|
|
509
|
+
cursor: pointer;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.anticon-spin::before,
|
|
513
|
+
.anticon-spin {
|
|
514
|
+
display: inline-block;
|
|
515
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
516
|
+
animation: loadingCircle 1s infinite linear;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
@-webkit-keyframes loadingCircle {
|
|
520
|
+
100% {
|
|
521
|
+
-webkit-transform: rotate(360deg);
|
|
522
|
+
transform: rotate(360deg);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
@keyframes loadingCircle {
|
|
527
|
+
100% {
|
|
528
|
+
-webkit-transform: rotate(360deg);
|
|
529
|
+
transform: rotate(360deg);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
`,CH=function(e){var n=N.useContext($C),r=n.csp,i=n.prefixCls,o=bH;i&&(o=o.replace(/anticon/g,i)),N.useEffect(function(){var l=e.current,c=pH(l);vf(o,"@ant-design-icons",{prepend:!0,csp:r,attachTo:c})},[])},xH=["icon","className","onClick","style","primaryColor","secondaryColor"],Hm={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function EH(t){var e=t.primaryColor,n=t.secondaryColor;Hm.primaryColor=e,Hm.secondaryColor=n||Nk(e),Hm.calculated=!!n}function TH(){return pt({},Hm)}var Kh=function(e){var n=e.icon,r=e.className,i=e.onClick,o=e.style,l=e.primaryColor,c=e.secondaryColor,f=mf(e,xH),h=N.useRef(),g=Hm;if(l&&(g={primaryColor:l,secondaryColor:c||Nk(l)}),CH(h),SH(CO(n),"icon should be icon definiton, but got ".concat(n)),!CO(n))return null;var m=n;return m&&typeof m.icon=="function"&&(m=pt(pt({},m),{},{icon:m.icon(g.primaryColor,g.secondaryColor)})),gb(m.icon,"svg-".concat(m.name),pt(pt({className:r,onClick:i,style:o,"data-icon":m.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:h}))};Kh.displayName="IconReact";Kh.getTwoToneColors=TH;Kh.setTwoToneColors=EH;function Dk(t){var e=Pk(t),n=xt(e,2),r=n[0],i=n[1];return Kh.setTwoToneColors({primaryColor:r,secondaryColor:i})}function OH(){var t=Kh.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var AH=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Dk(lH.primary);var Sl=N.forwardRef(function(t,e){var n=t.className,r=t.icon,i=t.spin,o=t.rotate,l=t.tabIndex,c=t.onClick,f=t.twoToneColor,h=mf(t,AH),g=N.useContext($C),m=g.prefixCls,v=m===void 0?"anticon":m,S=g.rootClassName,b=et(S,v,Nt(Nt({},"".concat(v,"-").concat(r.name),!!r.name),"".concat(v,"-spin"),!!i||r.name==="loading"),n),A=l;A===void 0&&c&&(A=-1);var C=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,E=Pk(f),k=xt(E,2),T=k[0],x=k[1];return N.createElement("span",hi({role:"img","aria-label":r.name},h,{ref:e,tabIndex:A,onClick:c,className:b}),N.createElement(Kh,{icon:r,primaryColor:T,secondaryColor:x,style:C}))});Sl.displayName="AntdIcon";Sl.getTwoToneColor=OH;Sl.setTwoToneColor=Dk;var RH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},kH=function(e,n){return N.createElement(Sl,hi({},e,{ref:n,icon:RH}))};const NH=N.forwardRef(kH);var PH={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},DH=function(e,n){return N.createElement(Sl,hi({},e,{ref:n,icon:PH}))};const LH=N.forwardRef(DH);var MH={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},IH=function(e,n){return N.createElement(Sl,hi({},e,{ref:n,icon:MH}))};const FH=N.forwardRef(IH);var $H={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},jH=function(e,n){return N.createElement(Sl,hi({},e,{ref:n,icon:$H}))};const zH=N.forwardRef(jH);var HH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},qH=function(e,n){return N.createElement(Sl,hi({},e,{ref:n,icon:HH}))};const UH=N.forwardRef(qH);var VH={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},WH=function(e,n){return N.createElement(Sl,hi({},e,{ref:n,icon:VH}))};const GH=N.forwardRef(WH);function Lk(t,e,n){var r=N.useRef({});return(!("value"in r.current)||n(r.current.condition,e))&&(r.current.value=t(),r.current.condition=e),r.current.value}function BH(t,e){typeof t=="function"?t(e):In(t)==="object"&&t&&"current"in t&&(t.current=e)}function KH(t){var e,n,r=MC.isMemo(t)?t.type.type:t.type;return!(typeof r=="function"&&!((e=r.prototype)!==null&&e!==void 0&&e.render)||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render))}var q0={exports:{}},M1,EO;function Mk(){return EO||(EO=1,M1=function(e,n){return function(){for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];return e.apply(n,i)}}),M1}var I1,TO;function Yr(){if(TO)return I1;TO=1;var t=Mk(),e=Object.prototype.toString,n=function(Q){return function(re){var z=e.call(re);return Q[z]||(Q[z]=z.slice(8,-1).toLowerCase())}}(Object.create(null));function r(Q){return Q=Q.toLowerCase(),function(z){return n(z)===Q}}function i(Q){return Array.isArray(Q)}function o(Q){return typeof Q>"u"}function l(Q){return Q!==null&&!o(Q)&&Q.constructor!==null&&!o(Q.constructor)&&typeof Q.constructor.isBuffer=="function"&&Q.constructor.isBuffer(Q)}var c=r("ArrayBuffer");function f(Q){var re;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?re=ArrayBuffer.isView(Q):re=Q&&Q.buffer&&c(Q.buffer),re}function h(Q){return typeof Q=="string"}function g(Q){return typeof Q=="number"}function m(Q){return Q!==null&&typeof Q=="object"}function v(Q){if(n(Q)!=="object")return!1;var re=Object.getPrototypeOf(Q);return re===null||re===Object.prototype}var S=r("Date"),b=r("File"),A=r("Blob"),C=r("FileList");function E(Q){return e.call(Q)==="[object Function]"}function k(Q){return m(Q)&&E(Q.pipe)}function T(Q){var re="[object FormData]";return Q&&(typeof FormData=="function"&&Q instanceof FormData||e.call(Q)===re||E(Q.toString)&&Q.toString()===re)}var x=r("URLSearchParams");function w(Q){return Q.trim?Q.trim():Q.replace(/^\s+|\s+$/g,"")}function R(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function I(Q,re){if(!(Q===null||typeof Q>"u"))if(typeof Q!="object"&&(Q=[Q]),i(Q))for(var z=0,W=Q.length;z<W;z++)re.call(null,Q[z],z,Q);else for(var $ in Q)Object.prototype.hasOwnProperty.call(Q,$)&&re.call(null,Q[$],$,Q)}function F(){var Q={};function re($,B){v(Q[B])&&v($)?Q[B]=F(Q[B],$):v($)?Q[B]=F({},$):i($)?Q[B]=$.slice():Q[B]=$}for(var z=0,W=arguments.length;z<W;z++)I(arguments[z],re);return Q}function U(Q,re,z){return I(re,function($,B){z&&typeof $=="function"?Q[B]=t($,z):Q[B]=$}),Q}function V(Q){return Q.charCodeAt(0)===65279&&(Q=Q.slice(1)),Q}function K(Q,re,z,W){Q.prototype=Object.create(re.prototype,W),Q.prototype.constructor=Q,z&&Object.assign(Q.prototype,z)}function Z(Q,re,z){var W,$,B,Y={};re=re||{};do{for(W=Object.getOwnPropertyNames(Q),$=W.length;$-- >0;)B=W[$],Y[B]||(re[B]=Q[B],Y[B]=!0);Q=Object.getPrototypeOf(Q)}while(Q&&(!z||z(Q,re))&&Q!==Object.prototype);return re}function J(Q,re,z){Q=String(Q),(z===void 0||z>Q.length)&&(z=Q.length),z-=re.length;var W=Q.indexOf(re,z);return W!==-1&&W===z}function oe(Q){if(!Q)return null;var re=Q.length;if(o(re))return null;for(var z=new Array(re);re-- >0;)z[re]=Q[re];return z}var fe=function(Q){return function(re){return Q&&re instanceof Q}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return I1={isArray:i,isArrayBuffer:c,isBuffer:l,isFormData:T,isArrayBufferView:f,isString:h,isNumber:g,isObject:m,isPlainObject:v,isUndefined:o,isDate:S,isFile:b,isBlob:A,isFunction:E,isStream:k,isURLSearchParams:x,isStandardBrowserEnv:R,forEach:I,merge:F,extend:U,trim:w,stripBOM:V,inherits:K,toFlatObject:Z,kindOf:n,kindOfTest:r,endsWith:J,toArray:oe,isTypedArray:fe,isFileList:C},I1}var F1,OO;function Ik(){if(OO)return F1;OO=1;var t=Yr();function e(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return F1=function(r,i,o){if(!i)return r;var l;if(o)l=o(i);else if(t.isURLSearchParams(i))l=i.toString();else{var c=[];t.forEach(i,function(g,m){g===null||typeof g>"u"||(t.isArray(g)?m=m+"[]":g=[g],t.forEach(g,function(S){t.isDate(S)?S=S.toISOString():t.isObject(S)&&(S=JSON.stringify(S)),c.push(e(m)+"="+e(S))}))}),l=c.join("&")}if(l){var f=r.indexOf("#");f!==-1&&(r=r.slice(0,f)),r+=(r.indexOf("?")===-1?"?":"&")+l}return r},F1}var $1,AO;function XH(){if(AO)return $1;AO=1;var t=Yr();function e(){this.handlers=[]}return e.prototype.use=function(r,i,o){return this.handlers.push({fulfilled:r,rejected:i,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1},e.prototype.eject=function(r){this.handlers[r]&&(this.handlers[r]=null)},e.prototype.forEach=function(r){t.forEach(this.handlers,function(o){o!==null&&r(o)})},$1=e,$1}var j1,RO;function YH(){if(RO)return j1;RO=1;var t=Yr();return j1=function(n,r){t.forEach(n,function(o,l){l!==r&&l.toUpperCase()===r.toUpperCase()&&(n[r]=o,delete n[l])})},j1}var z1,kO;function Xh(){if(kO)return z1;kO=1;var t=Yr();function e(i,o,l,c,f){Error.call(this),this.message=i,this.name="AxiosError",o&&(this.code=o),l&&(this.config=l),c&&(this.request=c),f&&(this.response=f)}t.inherits(e,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var n=e.prototype,r={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(i){r[i]={value:i}}),Object.defineProperties(e,r),Object.defineProperty(n,"isAxiosError",{value:!0}),e.from=function(i,o,l,c,f,h){var g=Object.create(n);return t.toFlatObject(i,g,function(v){return v!==Error.prototype}),e.call(g,i.message,o,l,c,f),g.name=i.name,h&&Object.assign(g,h),g},z1=e,z1}var H1,NO;function Fk(){return NO||(NO=1,H1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),H1}var q1,PO;function $k(){if(PO)return q1;PO=1;var t=Yr();function e(n,r){r=r||new FormData;var i=[];function o(c){return c===null?"":t.isDate(c)?c.toISOString():t.isArrayBuffer(c)||t.isTypedArray(c)?typeof Blob=="function"?new Blob([c]):Buffer.from(c):c}function l(c,f){if(t.isPlainObject(c)||t.isArray(c)){if(i.indexOf(c)!==-1)throw Error("Circular reference detected in "+f);i.push(c),t.forEach(c,function(g,m){if(!t.isUndefined(g)){var v=f?f+"."+m:m,S;if(g&&!f&&typeof g=="object"){if(t.endsWith(m,"{}"))g=JSON.stringify(g);else if(t.endsWith(m,"[]")&&(S=t.toArray(g))){S.forEach(function(b){!t.isUndefined(b)&&r.append(v,o(b))});return}}l(g,v)}}),i.pop()}else r.append(f,o(c))}return l(n),r}return q1=e,q1}var U1,DO;function QH(){if(DO)return U1;DO=1;var t=Xh();return U1=function(n,r,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?n(i):r(new t("Request failed with status code "+i.status,[t.ERR_BAD_REQUEST,t.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},U1}var V1,LO;function ZH(){if(LO)return V1;LO=1;var t=Yr();return V1=t.isStandardBrowserEnv()?function(){return{write:function(r,i,o,l,c,f){var h=[];h.push(r+"="+encodeURIComponent(i)),t.isNumber(o)&&h.push("expires="+new Date(o).toGMTString()),t.isString(l)&&h.push("path="+l),t.isString(c)&&h.push("domain="+c),f===!0&&h.push("secure"),document.cookie=h.join("; ")},read:function(r){var i=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),V1}var W1,MO;function JH(){return MO||(MO=1,W1=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}),W1}var G1,IO;function eq(){return IO||(IO=1,G1=function(e,n){return n?e.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):e}),G1}var B1,FO;function jk(){if(FO)return B1;FO=1;var t=JH(),e=eq();return B1=function(r,i){return r&&!t(i)?e(r,i):i},B1}var K1,$O;function tq(){if($O)return K1;$O=1;var t=Yr(),e=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return K1=function(r){var i={},o,l,c;return r&&t.forEach(r.split(`
|
|
533
|
+
`),function(h){if(c=h.indexOf(":"),o=t.trim(h.substr(0,c)).toLowerCase(),l=t.trim(h.substr(c+1)),o){if(i[o]&&e.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([l]):i[o]=i[o]?i[o]+", "+l:l}}),i},K1}var X1,jO;function nq(){if(jO)return X1;jO=1;var t=Yr();return X1=t.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i;function o(l){var c=l;return n&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=o(window.location.href),function(c){var f=t.isString(c)?o(c):c;return f.protocol===i.protocol&&f.host===i.host}}():function(){return function(){return!0}}(),X1}var Y1,zO;function A_(){if(zO)return Y1;zO=1;var t=Xh(),e=Yr();function n(r){t.call(this,r??"canceled",t.ERR_CANCELED),this.name="CanceledError"}return e.inherits(n,t,{__CANCEL__:!0}),Y1=n,Y1}var Q1,HO;function rq(){return HO||(HO=1,Q1=function(e){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}),Q1}var Z1,qO;function UO(){if(qO)return Z1;qO=1;var t=Yr(),e=QH(),n=ZH(),r=Ik(),i=jk(),o=tq(),l=nq(),c=Fk(),f=Xh(),h=A_(),g=rq();return Z1=function(v){return new Promise(function(b,A){var C=v.data,E=v.headers,k=v.responseType,T;function x(){v.cancelToken&&v.cancelToken.unsubscribe(T),v.signal&&v.signal.removeEventListener("abort",T)}t.isFormData(C)&&t.isStandardBrowserEnv()&&delete E["Content-Type"];var w=new XMLHttpRequest;if(v.auth){var R=v.auth.username||"",I=v.auth.password?unescape(encodeURIComponent(v.auth.password)):"";E.Authorization="Basic "+btoa(R+":"+I)}var F=i(v.baseURL,v.url);w.open(v.method.toUpperCase(),r(F,v.params,v.paramsSerializer),!0),w.timeout=v.timeout;function U(){if(w){var Z="getAllResponseHeaders"in w?o(w.getAllResponseHeaders()):null,J=!k||k==="text"||k==="json"?w.responseText:w.response,oe={data:J,status:w.status,statusText:w.statusText,headers:Z,config:v,request:w};e(function(Q){b(Q),x()},function(Q){A(Q),x()},oe),w=null}}if("onloadend"in w?w.onloadend=U:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(U)},w.onabort=function(){w&&(A(new f("Request aborted",f.ECONNABORTED,v,w)),w=null)},w.onerror=function(){A(new f("Network Error",f.ERR_NETWORK,v,w,w)),w=null},w.ontimeout=function(){var J=v.timeout?"timeout of "+v.timeout+"ms exceeded":"timeout exceeded",oe=v.transitional||c;v.timeoutErrorMessage&&(J=v.timeoutErrorMessage),A(new f(J,oe.clarifyTimeoutError?f.ETIMEDOUT:f.ECONNABORTED,v,w)),w=null},t.isStandardBrowserEnv()){var V=(v.withCredentials||l(F))&&v.xsrfCookieName?n.read(v.xsrfCookieName):void 0;V&&(E[v.xsrfHeaderName]=V)}"setRequestHeader"in w&&t.forEach(E,function(J,oe){typeof C>"u"&&oe.toLowerCase()==="content-type"?delete E[oe]:w.setRequestHeader(oe,J)}),t.isUndefined(v.withCredentials)||(w.withCredentials=!!v.withCredentials),k&&k!=="json"&&(w.responseType=v.responseType),typeof v.onDownloadProgress=="function"&&w.addEventListener("progress",v.onDownloadProgress),typeof v.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",v.onUploadProgress),(v.cancelToken||v.signal)&&(T=function(Z){w&&(A(!Z||Z&&Z.type?new h:Z),w.abort(),w=null)},v.cancelToken&&v.cancelToken.subscribe(T),v.signal&&(v.signal.aborted?T():v.signal.addEventListener("abort",T))),C||(C=null);var K=g(F);if(K&&["http","https","file"].indexOf(K)===-1){A(new f("Unsupported protocol "+K+":",f.ERR_BAD_REQUEST,v));return}w.send(C)})},Z1}var J1,VO;function iq(){return VO||(VO=1,J1=null),J1}var eS,WO;function HC(){if(WO)return eS;WO=1;var t=Yr(),e=YH(),n=Xh(),r=Fk(),i=$k(),o={"Content-Type":"application/x-www-form-urlencoded"};function l(g,m){!t.isUndefined(g)&&t.isUndefined(g["Content-Type"])&&(g["Content-Type"]=m)}function c(){var g;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(g=UO()),g}function f(g,m,v){if(t.isString(g))try{return(m||JSON.parse)(g),t.trim(g)}catch(S){if(S.name!=="SyntaxError")throw S}return(v||JSON.stringify)(g)}var h={transitional:r,adapter:c(),transformRequest:[function(m,v){if(e(v,"Accept"),e(v,"Content-Type"),t.isFormData(m)||t.isArrayBuffer(m)||t.isBuffer(m)||t.isStream(m)||t.isFile(m)||t.isBlob(m))return m;if(t.isArrayBufferView(m))return m.buffer;if(t.isURLSearchParams(m))return l(v,"application/x-www-form-urlencoded;charset=utf-8"),m.toString();var S=t.isObject(m),b=v&&v["Content-Type"],A;if((A=t.isFileList(m))||S&&b==="multipart/form-data"){var C=this.env&&this.env.FormData;return i(A?{"files[]":m}:m,C&&new C)}else if(S||b==="application/json")return l(v,"application/json"),f(m);return m}],transformResponse:[function(m){var v=this.transitional||h.transitional,S=v&&v.silentJSONParsing,b=v&&v.forcedJSONParsing,A=!S&&this.responseType==="json";if(A||b&&t.isString(m)&&m.length)try{return JSON.parse(m)}catch(C){if(A)throw C.name==="SyntaxError"?n.from(C,n.ERR_BAD_RESPONSE,this,null,this.response):C}return m}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:iq()},validateStatus:function(m){return m>=200&&m<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return t.forEach(["delete","get","head"],function(m){h.headers[m]={}}),t.forEach(["post","put","patch"],function(m){h.headers[m]=t.merge(o)}),eS=h,eS}var tS,GO;function oq(){if(GO)return tS;GO=1;var t=Yr(),e=HC();return tS=function(r,i,o){var l=this||e;return t.forEach(o,function(f){r=f.call(l,r,i)}),r},tS}var nS,BO;function zk(){return BO||(BO=1,nS=function(e){return!!(e&&e.__CANCEL__)}),nS}var rS,KO;function aq(){if(KO)return rS;KO=1;var t=Yr(),e=oq(),n=zk(),r=HC(),i=A_();function o(l){if(l.cancelToken&&l.cancelToken.throwIfRequested(),l.signal&&l.signal.aborted)throw new i}return rS=function(c){o(c),c.headers=c.headers||{},c.data=e.call(c,c.data,c.headers,c.transformRequest),c.headers=t.merge(c.headers.common||{},c.headers[c.method]||{},c.headers),t.forEach(["delete","get","head","post","put","patch","common"],function(g){delete c.headers[g]});var f=c.adapter||r.adapter;return f(c).then(function(g){return o(c),g.data=e.call(c,g.data,g.headers,c.transformResponse),g},function(g){return n(g)||(o(c),g&&g.response&&(g.response.data=e.call(c,g.response.data,g.response.headers,c.transformResponse))),Promise.reject(g)})},rS}var iS,XO;function Hk(){if(XO)return iS;XO=1;var t=Yr();return iS=function(n,r){r=r||{};var i={};function o(m,v){return t.isPlainObject(m)&&t.isPlainObject(v)?t.merge(m,v):t.isPlainObject(v)?t.merge({},v):t.isArray(v)?v.slice():v}function l(m){if(t.isUndefined(r[m])){if(!t.isUndefined(n[m]))return o(void 0,n[m])}else return o(n[m],r[m])}function c(m){if(!t.isUndefined(r[m]))return o(void 0,r[m])}function f(m){if(t.isUndefined(r[m])){if(!t.isUndefined(n[m]))return o(void 0,n[m])}else return o(void 0,r[m])}function h(m){if(m in r)return o(n[m],r[m]);if(m in n)return o(void 0,n[m])}var g={url:c,method:c,data:c,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:h};return t.forEach(Object.keys(n).concat(Object.keys(r)),function(v){var S=g[v]||l,b=S(v);t.isUndefined(b)&&S!==h||(i[v]=b)}),i},iS}var oS,YO;function qk(){return YO||(YO=1,oS={version:"0.27.2"}),oS}var aS,QO;function sq(){if(QO)return aS;QO=1;var t=qk().version,e=Xh(),n={};["object","boolean","number","function","string","symbol"].forEach(function(o,l){n[o]=function(f){return typeof f===o||"a"+(l<1?"n ":" ")+o}});var r={};n.transitional=function(l,c,f){function h(g,m){return"[Axios v"+t+"] Transitional option '"+g+"'"+m+(f?". "+f:"")}return function(g,m,v){if(l===!1)throw new e(h(m," has been removed"+(c?" in "+c:"")),e.ERR_DEPRECATED);return c&&!r[m]&&(r[m]=!0,console.warn(h(m," has been deprecated since v"+c+" and will be removed in the near future"))),l?l(g,m,v):!0}};function i(o,l,c){if(typeof o!="object")throw new e("options must be an object",e.ERR_BAD_OPTION_VALUE);for(var f=Object.keys(o),h=f.length;h-- >0;){var g=f[h],m=l[g];if(m){var v=o[g],S=v===void 0||m(v,g,o);if(S!==!0)throw new e("option "+g+" must be "+S,e.ERR_BAD_OPTION_VALUE);continue}if(c!==!0)throw new e("Unknown option "+g,e.ERR_BAD_OPTION)}}return aS={assertOptions:i,validators:n},aS}var sS,ZO;function lq(){if(ZO)return sS;ZO=1;var t=Yr(),e=Ik(),n=XH(),r=aq(),i=Hk(),o=jk(),l=sq(),c=l.validators;function f(h){this.defaults=h,this.interceptors={request:new n,response:new n}}return f.prototype.request=function(g,m){typeof g=="string"?(m=m||{},m.url=g):m=g||{},m=i(this.defaults,m),m.method?m.method=m.method.toLowerCase():this.defaults.method?m.method=this.defaults.method.toLowerCase():m.method="get";var v=m.transitional;v!==void 0&&l.assertOptions(v,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var S=[],b=!0;this.interceptors.request.forEach(function(R){typeof R.runWhen=="function"&&R.runWhen(m)===!1||(b=b&&R.synchronous,S.unshift(R.fulfilled,R.rejected))});var A=[];this.interceptors.response.forEach(function(R){A.push(R.fulfilled,R.rejected)});var C;if(!b){var E=[r,void 0];for(Array.prototype.unshift.apply(E,S),E=E.concat(A),C=Promise.resolve(m);E.length;)C=C.then(E.shift(),E.shift());return C}for(var k=m;S.length;){var T=S.shift(),x=S.shift();try{k=T(k)}catch(w){x(w);break}}try{C=r(k)}catch(w){return Promise.reject(w)}for(;A.length;)C=C.then(A.shift(),A.shift());return C},f.prototype.getUri=function(g){g=i(this.defaults,g);var m=o(g.baseURL,g.url);return e(m,g.params,g.paramsSerializer)},t.forEach(["delete","get","head","options"],function(g){f.prototype[g]=function(m,v){return this.request(i(v||{},{method:g,url:m,data:(v||{}).data}))}}),t.forEach(["post","put","patch"],function(g){function m(v){return function(b,A,C){return this.request(i(C||{},{method:g,headers:v?{"Content-Type":"multipart/form-data"}:{},url:b,data:A}))}}f.prototype[g]=m(),f.prototype[g+"Form"]=m(!0)}),sS=f,sS}var lS,JO;function uq(){if(JO)return lS;JO=1;var t=A_();function e(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(l){r=l});var i=this;this.promise.then(function(o){if(i._listeners){var l,c=i._listeners.length;for(l=0;l<c;l++)i._listeners[l](o);i._listeners=null}}),this.promise.then=function(o){var l,c=new Promise(function(f){i.subscribe(f),l=f}).then(o);return c.cancel=function(){i.unsubscribe(l)},c},n(function(l){i.reason||(i.reason=new t(l),r(i.reason))})}return e.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},e.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},e.prototype.unsubscribe=function(r){if(this._listeners){var i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}},e.source=function(){var r,i=new e(function(l){r=l});return{token:i,cancel:r}},lS=e,lS}var uS,eA;function cq(){return eA||(eA=1,uS=function(e){return function(r){return e.apply(null,r)}}),uS}var cS,tA;function fq(){if(tA)return cS;tA=1;var t=Yr();return cS=function(n){return t.isObject(n)&&n.isAxiosError===!0},cS}var nA;function dq(){if(nA)return q0.exports;nA=1;var t=Yr(),e=Mk(),n=lq(),r=Hk(),i=HC();function o(c){var f=new n(c),h=e(n.prototype.request,f);return t.extend(h,n.prototype,f),t.extend(h,f),h.create=function(m){return o(r(c,m))},h}var l=o(i);return l.Axios=n,l.CanceledError=A_(),l.CancelToken=uq(),l.isCancel=zk(),l.VERSION=qk().version,l.toFormData=$k(),l.AxiosError=Xh(),l.Cancel=l.CanceledError,l.all=function(f){return Promise.all(f)},l.spread=cq(),l.isAxiosError=fq(),q0.exports=l,q0.exports.default=l,q0.exports}var fS,rA;function hq(){return rA||(rA=1,fS=dq()),fS}var pq=hq();const Uk=oo(pq);function mq(t){return t instanceof HTMLElement||t instanceof SVGElement}function gq(t){return mq(t)?t:t instanceof je.Component?hh.findDOMNode(t):null}function bl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function iA(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Sk(r.key),r)}}function Cl(t,e,n){return e&&iA(t.prototype,e),n&&iA(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function R_(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ay(t,e)}function Cu(t){return Cu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cu(t)}function k_(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k_=function(){return!!t})()}function qC(t,e){if(e&&(In(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ky(t)}function Vk(t){var e=k_();return function(){var r=Cu(t),i;if(e){var o=Cu(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return qC(this,i)}}function vq(t,e){var n=pt({},t);return Array.isArray(e)&&e.forEach(function(r){delete n[r]}),n}function yq(t){if(Array.isArray(t))return cb(t)}function Wk(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function _q(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
534
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eo(t){return yq(t)||Wk(t)||jC(t)||_q()}var Gk=function(e){return+setTimeout(e,16)},Bk=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(Gk=function(e){return window.requestAnimationFrame(e)},Bk=function(e){return window.cancelAnimationFrame(e)});var oA=0,UC=new Map;function Kk(t){UC.delete(t)}var vb=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;oA+=1;var r=oA;function i(o){if(o===0)Kk(r),e();else{var l=Gk(function(){i(o-1)});UC.set(r,l)}}return i(n),r};vb.cancel=function(t){var e=UC.get(t);return Kk(t),Bk(e)};function Fy(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}function wq(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function i(o,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,f=r.has(o);if(jg(!f,"Warning: There may be circular references"),f)return!1;if(o===l)return!0;if(n&&c>1)return!1;r.add(o);var h=c+1;if(Array.isArray(o)){if(!Array.isArray(l)||o.length!==l.length)return!1;for(var g=0;g<o.length;g++)if(!i(o[g],l[g],h))return!1;return!0}if(o&&l&&In(o)==="object"&&In(l)==="object"){var m=Object.keys(o);return m.length!==Object.keys(l).length?!1:m.every(function(v){return i(o[v],l[v],h)})}return!1}return i(t,e)}var Sq="%";function yb(t){return t.join(Sq)}var bq=function(){function t(e){bl(this,t),Nt(this,"instanceId",void 0),Nt(this,"cache",new Map),this.instanceId=e}return Cl(t,[{key:"get",value:function(n){return this.opGet(yb(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(yb(n),r)}},{key:"opUpdate",value:function(n,r){var i=this.cache.get(n),o=r(i);o===null?this.cache.delete(n):this.cache.set(n,o)}}]),t}(),Fh="data-token-hash",Ea="data-css-hash",vu="__cssinjs_instance__";function Cq(){var t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(Ea,"]"))||[],n=document.head.firstChild;Array.from(e).forEach(function(i){i[vu]=i[vu]||t,i[vu]===t&&document.head.insertBefore(i,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Ea,"]"))).forEach(function(i){var o=i.getAttribute(Ea);if(r[o]){if(i[vu]===t){var l;(l=i.parentNode)===null||l===void 0||l.removeChild(i)}}else r[o]=!0})}return new bq(t)}var N_=N.createContext({hashPriority:"low",cache:Cq(),defaultCache:!0});function xq(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}var VC=function(){function t(){bl(this,t),Nt(this,"cache",void 0),Nt(this,"keys",void 0),Nt(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return Cl(t,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,i,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l={map:this.cache};return n.forEach(function(c){if(!l)l=void 0;else{var f;l=(f=l)===null||f===void 0||(f=f.map)===null||f===void 0?void 0:f.get(c)}}),(r=l)!==null&&r!==void 0&&r.value&&o&&(l.value[1]=this.cacheCallTimes++),(i=l)===null||i===void 0?void 0:i.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var i=this;if(!this.has(n)){if(this.size()+1>t.MAX_CACHE_SIZE+t.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(h,g){var m=xt(h,2),v=m[1];return i.internalGet(g)[1]<v?[g,i.internalGet(g)[1]]:h},[this.keys[0],this.cacheCallTimes]),l=xt(o,1),c=l[0];this.delete(c)}this.keys.push(n)}var f=this.cache;n.forEach(function(h,g){if(g===n.length-1)f.set(h,{value:[r,i.cacheCallTimes++]});else{var m=f.get(h);m?m.map||(m.map=new Map):f.set(h,{map:new Map}),f=f.get(h).map}})}},{key:"deleteByPath",value:function(n,r){var i=n.get(r[0]);if(r.length===1){var o;return i.map?n.set(r[0],{map:i.map}):n.delete(r[0]),(o=i.value)===null||o===void 0?void 0:o[0]}var l=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&n.delete(r[0]),l}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!xq(r,n)}),this.deleteByPath(this.cache,n)}}]),t}();Nt(VC,"MAX_CACHE_SIZE",20);Nt(VC,"MAX_CACHE_OFFSET",5);var aA=0,Xk=function(){function t(e){bl(this,t),Nt(this,"derivatives",void 0),Nt(this,"id",void 0),this.derivatives=Array.isArray(e)?e:[e],this.id=aA,e.length===0&&(e.length>0,void 0),aA+=1}return Cl(t,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,i){return i(n,r)},void 0)}}]),t}(),dS=new VC;function _b(t){var e=Array.isArray(t)?t:[t];return dS.has(e)||dS.set(e,new Xk(e)),dS.get(e)}var Eq=new WeakMap,hS={};function Tq(t,e){for(var n=Eq,r=0;r<e.length;r+=1){var i=e[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(hS)||n.set(hS,t()),n.get(hS)}var sA=new WeakMap;function qm(t){var e=sA.get(t)||"";return e||(Object.keys(t).forEach(function(n){var r=t[n];e+=n,r instanceof Xk?e+=r.id:r&&In(r)==="object"?e+=qm(r):e+=r}),sA.set(t,e)),e}function lA(t,e){return Fy("".concat(e,"_").concat(qm(t)))}var Um="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Yk="_bAmBoO_";function Oq(t,e,n){if(bs()){var r,i;vf(t,Um);var o=document.createElement("div");o.style.position="fixed",o.style.left="0",o.style.top="0",e?.(o),document.body.appendChild(o);var l=(r=getComputedStyle(o).content)===null||r===void 0?void 0:r.includes(Yk);return(i=o.parentNode)===null||i===void 0||i.removeChild(o),zC(Um),l}return!1}var pS=void 0;function Aq(){return pS===void 0&&(pS=Oq("@layer ".concat(Um," { .").concat(Um,' { content: "').concat(Yk,'"!important; } }'),function(t){t.className=Um})),pS}var wb=bs();function $h(t){return typeof t=="number"?"".concat(t,"px"):t}function $y(t,e,n){var r,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return t;var l=pt(pt({},i),{},(r={},Nt(r,Fh,e),Nt(r,Ea,n),r)),c=Object.keys(l).map(function(f){var h=l[f];return h?"".concat(f,'="').concat(h,'"'):null}).filter(function(f){return f}).join(" ");return"<style ".concat(c,">").concat(t,"</style>")}var Qk=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Rq=function(e,n,r){return Object.keys(e).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map(function(i){var o=xt(i,2),l=o[0],c=o[1];return"".concat(l,":").concat(c,";")}).join(""),"}"):""},Zk=function(e,n,r){var i={},o={};return Object.entries(e).forEach(function(l){var c,f,h=xt(l,2),g=h[0],m=h[1];if(r!=null&&(c=r.preserve)!==null&&c!==void 0&&c[g])o[g]=m;else if((typeof m=="string"||typeof m=="number")&&!(r!=null&&(f=r.ignore)!==null&&f!==void 0&&f[g])){var v,S=Qk(g,r?.prefix);i[S]=typeof m=="number"&&!(r!=null&&(v=r.unitless)!==null&&v!==void 0&&v[g])?"".concat(m,"px"):String(m),o[g]="var(".concat(S,")")}}),[o,Rq(i,n,{scope:r?.scope})]},uA=bs()?N.useLayoutEffect:N.useEffect,kq=function(e,n){var r=N.useRef(!0);uA(function(){return e(r.current)},n),uA(function(){return r.current=!1,function(){r.current=!0}},[])},Nq=pt({},s_),cA=Nq.useInsertionEffect,Pq=function(e,n,r){N.useMemo(e,r),kq(function(){return n(!0)},r)},Dq=cA?function(t,e,n){return cA(function(){return t(),e()},n)}:Pq,Lq=pt({},s_),Mq=Lq.useInsertionEffect,Iq=function(e){var n=[],r=!1;function i(o){r||n.push(o)}return N.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(o){return o()})}},e),i},Fq=function(){return function(e){e()}},$q=typeof Mq<"u"?Iq:Fq;function WC(t,e,n,r,i){var o=N.useContext(N_),l=o.cache,c=[t].concat(Eo(e)),f=yb(c),h=$q([f]),g=function(b){l.opUpdate(f,function(A){var C=A||[void 0,void 0],E=xt(C,2),k=E[0],T=k===void 0?0:k,x=E[1],w=x,R=w||n(),I=[T,R];return b?b(I):I})};N.useMemo(function(){g()},[f]);var m=l.opGet(f),v=m[1];return Dq(function(){i?.(v)},function(S){return g(function(b){var A=xt(b,2),C=A[0],E=A[1];return S&&C===0&&i?.(v),[C+1,E]}),function(){l.opUpdate(f,function(b){var A=b||[],C=xt(A,2),E=C[0],k=E===void 0?0:E,T=C[1],x=k-1;return x===0?(h(function(){(S||!l.opGet(f))&&r?.(T,!1)}),null):[k-1,T]})}},[f]),v}var jq={},zq="css",Uc=new Map;function Hq(t){Uc.set(t,(Uc.get(t)||0)+1)}function qq(t,e){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Fh,'="').concat(t,'"]'));n.forEach(function(r){if(r[vu]===e){var i;(i=r.parentNode)===null||i===void 0||i.removeChild(r)}})}}var Uq=0;function Vq(t,e){Uc.set(t,(Uc.get(t)||0)-1);var n=Array.from(Uc.keys()),r=n.filter(function(i){var o=Uc.get(i)||0;return o<=0});n.length-r.length>Uq&&r.forEach(function(i){qq(i,e),Uc.delete(i)})}var Wq=function(e,n,r,i){var o=r.getDerivativeToken(e),l=pt(pt({},o),n);return i&&(l=i(l)),l},Jk="token";function Gq(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=N.useContext(N_),i=r.cache.instanceId,o=r.container,l=n.salt,c=l===void 0?"":l,f=n.override,h=f===void 0?jq:f,g=n.formatToken,m=n.getComputedToken,v=n.cssVar,S=Tq(function(){return Object.assign.apply(Object,[{}].concat(Eo(e)))},e),b=qm(S),A=qm(h),C=v?qm(v):"",E=WC(Jk,[c,t.id,b,A,C],function(){var k,T=m?m(S,h,t):Wq(S,h,t,g),x=pt({},T),w="";if(v){var R=Zk(T,v.key,{prefix:v.prefix,ignore:v.ignore,unitless:v.unitless,preserve:v.preserve}),I=xt(R,2);T=I[0],w=I[1]}var F=lA(T,c);T._tokenKey=F,x._tokenKey=lA(x,c);var U=(k=v?.key)!==null&&k!==void 0?k:F;T._themeKey=U,Hq(U);var V="".concat(zq,"-").concat(Fy(F));return T._hashId=V,[T,V,x,w,v?.key||""]},function(k){Vq(k[0]._themeKey,i)},function(k){var T=xt(k,4),x=T[0],w=T[3];if(v&&w){var R=vf(w,Fy("css-variables-".concat(x._themeKey)),{mark:Ea,prepend:"queue",attachTo:o,priority:-999});R[vu]=i,R.setAttribute(Fh,x._themeKey)}});return E}var Bq=function(e,n,r){var i=xt(e,5),o=i[2],l=i[3],c=i[4],f=r||{},h=f.plain;if(!l)return null;var g=o._tokenKey,m=-999,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(m)},S=$y(l,c,g,v,h);return[m,g,S]},eN="comm",tN="rule",nN="decl",Kq="@import",Xq="@keyframes",Yq="@layer",rN=Math.abs,GC=String.fromCharCode;function iN(t){return t.trim()}function ay(t,e,n){return t.replace(e,n)}function Qq(t,e,n){return t.indexOf(e,n)}function sg(t,e){return t.charCodeAt(e)|0}function lg(t,e,n){return t.slice(e,n)}function ll(t){return t.length}function Zq(t){return t.length}function U0(t,e){return e.push(t),t}var P_=1,jh=1,oN=0,Jo=0,sr=0,Yh="";function BC(t,e,n,r,i,o,l,c){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:P_,column:jh,length:l,return:"",siblings:c}}function Jq(){return sr}function eU(){return sr=Jo>0?sg(Yh,--Jo):0,jh--,sr===10&&(jh=1,P_--),sr}function Ta(){return sr=Jo<oN?sg(Yh,Jo++):0,jh++,sr===10&&(jh=1,P_++),sr}function Jc(){return sg(Yh,Jo)}function sy(){return Jo}function D_(t,e){return lg(Yh,t,e)}function Sb(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function tU(t){return P_=jh=1,oN=ll(Yh=t),Jo=0,[]}function nU(t){return Yh="",t}function mS(t){return iN(D_(Jo-1,bb(t===91?t+2:t===40?t+1:t)))}function rU(t){for(;(sr=Jc())&&sr<33;)Ta();return Sb(t)>2||Sb(sr)>3?"":" "}function iU(t,e){for(;--e&&Ta()&&!(sr<48||sr>102||sr>57&&sr<65||sr>70&&sr<97););return D_(t,sy()+(e<6&&Jc()==32&&Ta()==32))}function bb(t){for(;Ta();)switch(sr){case t:return Jo;case 34:case 39:t!==34&&t!==39&&bb(sr);break;case 40:t===41&&bb(t);break;case 92:Ta();break}return Jo}function oU(t,e){for(;Ta()&&t+sr!==57;)if(t+sr===84&&Jc()===47)break;return"/*"+D_(e,Jo-1)+"*"+GC(t===47?t:Ta())}function aU(t){for(;!Sb(Jc());)Ta();return D_(t,Jo)}function sU(t){return nU(ly("",null,null,null,[""],t=tU(t),0,[0],t))}function ly(t,e,n,r,i,o,l,c,f){for(var h=0,g=0,m=l,v=0,S=0,b=0,A=1,C=1,E=1,k=0,T="",x=i,w=o,R=r,I=T;C;)switch(b=k,k=Ta()){case 40:if(b!=108&&sg(I,m-1)==58){Qq(I+=ay(mS(k),"&","&\f"),"&\f",rN(h?c[h-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:I+=mS(k);break;case 9:case 10:case 13:case 32:I+=rU(b);break;case 92:I+=iU(sy()-1,7);continue;case 47:switch(Jc()){case 42:case 47:U0(lU(oU(Ta(),sy()),e,n,f),f);break;default:I+="/"}break;case 123*A:c[h++]=ll(I)*E;case 125*A:case 59:case 0:switch(k){case 0:case 125:C=0;case 59+g:E==-1&&(I=ay(I,/\f/g,"")),S>0&&ll(I)-m&&U0(S>32?dA(I+";",r,n,m-1,f):dA(ay(I," ","")+";",r,n,m-2,f),f);break;case 59:I+=";";default:if(U0(R=fA(I,e,n,h,g,i,c,T,x=[],w=[],m,o),o),k===123)if(g===0)ly(I,e,R,R,x,o,m,c,w);else switch(v===99&&sg(I,3)===110?100:v){case 100:case 108:case 109:case 115:ly(t,R,R,r&&U0(fA(t,R,R,0,0,i,c,T,i,x=[],m,w),w),i,w,m,c,r?x:w);break;default:ly(I,R,R,R,[""],w,0,c,w)}}h=g=S=0,A=E=1,T=I="",m=l;break;case 58:m=1+ll(I),S=b;default:if(A<1){if(k==123)--A;else if(k==125&&A++==0&&eU()==125)continue}switch(I+=GC(k),k*A){case 38:E=g>0?1:(I+="\f",-1);break;case 44:c[h++]=(ll(I)-1)*E,E=1;break;case 64:Jc()===45&&(I+=mS(Ta())),v=Jc(),g=m=ll(T=I+=aU(sy())),k++;break;case 45:b===45&&ll(I)==2&&(A=0)}}return o}function fA(t,e,n,r,i,o,l,c,f,h,g,m){for(var v=i-1,S=i===0?o:[""],b=Zq(S),A=0,C=0,E=0;A<r;++A)for(var k=0,T=lg(t,v+1,v=rN(C=l[A])),x=t;k<b;++k)(x=iN(C>0?S[k]+" "+T:ay(T,/&\f/g,S[k])))&&(f[E++]=x);return BC(t,e,n,i===0?tN:c,f,h,g,m)}function lU(t,e,n,r){return BC(t,e,n,eN,GC(Jq()),lg(t,2,-2),0,r)}function dA(t,e,n,r,i){return BC(t,e,n,nN,lg(t,0,r),lg(t,r+1,-1),r,i)}function Cb(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function uU(t,e,n,r){switch(t.type){case Yq:if(t.children.length)break;case Kq:case nN:return t.return=t.return||t.value;case eN:return"";case Xq:return t.return=t.value+"{"+Cb(t.children,r)+"}";case tN:if(!ll(t.value=t.props.join(",")))return""}return ll(n=Cb(t.children,r))?t.return=t.value+"{"+n+"}":""}var hA="data-ant-cssinjs-cache-path",aN="_FILE_STYLE__",ef,sN=!0;function cU(){if(!ef&&(ef={},bs())){var t=document.createElement("div");t.className=hA,t.style.position="fixed",t.style.visibility="hidden",t.style.top="-9999px",document.body.appendChild(t);var e=getComputedStyle(t).content||"";e=e.replace(/^"/,"").replace(/"$/,""),e.split(";").forEach(function(i){var o=i.split(":"),l=xt(o,2),c=l[0],f=l[1];ef[c]=f});var n=document.querySelector("style[".concat(hA,"]"));if(n){var r;sN=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(t)}}function fU(t){return cU(),!!ef[t]}function dU(t){var e=ef[t],n=null;if(e&&bs())if(sN)n=aN;else{var r=document.querySelector("style[".concat(Ea,'="').concat(ef[t],'"]'));r?n=r.innerHTML:delete ef[t]}return[n,e]}var hU="_skip_check_",lN="_multi_value_";function xb(t){var e=Cb(sU(t),uU);return e.replace(/\{%%%\:[^;];}/g,";")}function pU(t){return In(t)==="object"&&t&&(hU in t||lN in t)}function mU(t,e,n){if(!e)return t;var r=".".concat(e),i=n==="low"?":where(".concat(r,")"):r,o=t.split(",").map(function(l){var c,f=l.trim().split(/\s+/),h=f[0]||"",g=((c=h.match(/^\w+/))===null||c===void 0?void 0:c[0])||"";return h="".concat(g).concat(i).concat(h.slice(g.length)),[h].concat(Eo(f.slice(1))).join(" ")});return o.join(",")}var gU=function t(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},i=r.root,o=r.injectHash,l=r.parentSelectors,c=n.hashId,f=n.layer;n.path;var h=n.hashPriority,g=n.transformers,m=g===void 0?[]:g;n.linters;var v="",S={};function b(T){var x=T.getName(c);if(!S[x]){var w=t(T.style,n,{root:!1,parentSelectors:l}),R=xt(w,1),I=R[0];S[x]="@keyframes ".concat(T.getName(c)).concat(I)}}function A(T){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return T.forEach(function(w){Array.isArray(w)?A(w,x):w&&x.push(w)}),x}var C=A(Array.isArray(e)?e:[e]);if(C.forEach(function(T){var x=typeof T=="string"&&!i?{}:T;if(typeof x=="string")v+="".concat(x,`
|
|
535
|
+
`);else if(x._keyframe)b(x);else{var w=m.reduce(function(R,I){var F;return(I==null||(F=I.visit)===null||F===void 0?void 0:F.call(I,R))||R},x);Object.keys(w).forEach(function(R){var I=w[R];if(In(I)==="object"&&I&&(R!=="animationName"||!I._keyframe)&&!pU(I)){var F=!1,U=R.trim(),V=!1;(i||o)&&c?U.startsWith("@")?F=!0:U=mU(R,c,h):i&&!c&&(U==="&"||U==="")&&(U="",V=!0);var K=t(I,n,{root:V,injectHash:F,parentSelectors:[].concat(Eo(l),[U])}),Z=xt(K,2),J=Z[0],oe=Z[1];S=pt(pt({},S),oe),v+="".concat(U).concat(J)}else{let re=function(z,W){var $=z.replace(/[A-Z]/g,function(Y){return"-".concat(Y.toLowerCase())}),B=W;!ik[z]&&typeof B=="number"&&B!==0&&(B="".concat(B,"px")),z==="animationName"&&W!==null&&W!==void 0&&W._keyframe&&(b(W),B=W.getName(c)),v+="".concat($,":").concat(B,";")};var fe,Q=(fe=I?.value)!==null&&fe!==void 0?fe:I;In(I)==="object"&&I!==null&&I!==void 0&&I[lN]&&Array.isArray(Q)?Q.forEach(function(z){re(R,z)}):re(R,Q)}})}}),!i)v="{".concat(v,"}");else if(f&&Aq()){var E=f.split(","),k=E[E.length-1].trim();v="@layer ".concat(k," {").concat(v,"}"),E.length>1&&(v="@layer ".concat(f,"{%%%:%}").concat(v))}return[v,S]};function uN(t,e){return Fy("".concat(t.join("%")).concat(e))}function vU(){return null}var cN="style";function Eb(t,e){var n=t.token,r=t.path,i=t.hashId,o=t.layer,l=t.nonce,c=t.clientOnly,f=t.order,h=f===void 0?0:f,g=N.useContext(N_),m=g.autoClear;g.mock;var v=g.defaultCache,S=g.hashPriority,b=g.container,A=g.ssrInline,C=g.transformers,E=g.linters,k=g.cache,T=n._tokenKey,x=[T].concat(Eo(r)),w=wb,R=WC(cN,x,function(){var K=x.join("|");if(fU(K)){var Z=dU(K),J=xt(Z,2),oe=J[0],fe=J[1];if(oe)return[oe,T,fe,{},c,h]}var Q=e(),re=gU(Q,{hashId:i,hashPriority:S,layer:o,path:r.join("-"),transformers:C,linters:E}),z=xt(re,2),W=z[0],$=z[1],B=xb(W),Y=uN(x,B);return[B,T,Y,$,c,h]},function(K,Z){var J=xt(K,3),oe=J[2];(Z||m)&&wb&&zC(oe,{mark:Ea})},function(K){var Z=xt(K,4),J=Z[0];Z[1];var oe=Z[2],fe=Z[3];if(w&&J!==aN){var Q={mark:Ea,prepend:"queue",attachTo:b,priority:h},re=typeof l=="function"?l():l;re&&(Q.csp={nonce:re});var z=vf(J,oe,Q);z[vu]=k.instanceId,z.setAttribute(Fh,T),Object.keys(fe).forEach(function(W){vf(xb(fe[W]),"_effect-".concat(W),Q)})}}),I=xt(R,3),F=I[0],U=I[1],V=I[2];return function(K){var Z;if(!A||w||!v)Z=N.createElement(vU,null);else{var J;Z=N.createElement("style",hi({},(J={},Nt(J,Fh,U),Nt(J,Ea,V),J),{dangerouslySetInnerHTML:{__html:F}}))}return N.createElement(N.Fragment,null,Z,K)}}var yU=function(e,n,r){var i=xt(e,6),o=i[0],l=i[1],c=i[2],f=i[3],h=i[4],g=i[5],m=r||{},v=m.plain;if(h)return null;var S=o,b={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)};return S=$y(o,l,c,b,v),f&&Object.keys(f).forEach(function(A){if(!n[A]){n[A]=!0;var C=xb(f[A]);S+=$y(C,l,"_effect-".concat(A),b,v)}}),[g,c,S]},fN="cssVar",_U=function(e,n){var r=e.key,i=e.prefix,o=e.unitless,l=e.ignore,c=e.token,f=e.scope,h=f===void 0?"":f,g=N.useContext(N_),m=g.cache.instanceId,v=g.container,S=c._tokenKey,b=[].concat(Eo(e.path),[r,h,S]),A=WC(fN,b,function(){var C=n(),E=Zk(C,r,{prefix:i,unitless:o,ignore:l,scope:h}),k=xt(E,2),T=k[0],x=k[1],w=uN(b,x);return[T,x,w,r]},function(C){var E=xt(C,3),k=E[2];wb&&zC(k,{mark:Ea})},function(C){var E=xt(C,3),k=E[1],T=E[2];if(k){var x=vf(k,T,{mark:Ea,prepend:"queue",attachTo:v,priority:-999});x[vu]=m,x.setAttribute(Fh,r)}});return A},wU=function(e,n,r){var i=xt(e,4),o=i[1],l=i[2],c=i[3],f=r||{},h=f.plain;if(!o)return null;var g=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(g)},v=$y(o,c,l,m,h);return[g,l,v]},xm;xm={},Nt(xm,cN,yU),Nt(xm,Jk,Bq),Nt(xm,fN,wU);var Yc=function(){function t(e,n){bl(this,t),Nt(this,"name",void 0),Nt(this,"style",void 0),Nt(this,"_keyframe",!0),this.name=e,this.style=n}return Cl(t,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),t}();function ah(t){return t.notSplit=!0,t}ah(["borderTop","borderBottom"]),ah(["borderTop"]),ah(["borderBottom"]),ah(["borderLeft","borderRight"]),ah(["borderLeft"]),ah(["borderRight"]);function SU(t){return _k(t)||Wk(t)||jC(t)||wk()}function Tb(t,e){for(var n=t,r=0;r<e.length;r+=1){if(n==null)return;n=n[e[r]]}return n}function dN(t,e,n,r){if(!e.length)return n;var i=SU(e),o=i[0],l=i.slice(1),c;return!t&&typeof o=="number"?c=[]:Array.isArray(t)?c=Eo(t):c=pt({},t),r&&n===void 0&&l.length===1?delete c[o][l[0]]:c[o]=dN(c[o],l,n,r),c}function gS(t,e,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return e.length&&r&&n===void 0&&!Tb(t,e.slice(0,-1))?t:dN(t,e,n,r)}function bU(t){return In(t)==="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function pA(t){return Array.isArray(t)?[]:{}}var CU=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function xU(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=pA(e[0]);return e.forEach(function(i){function o(l,c){var f=new Set(c),h=Tb(i,l),g=Array.isArray(h);if(g||bU(h)){if(!f.has(h)){f.add(h);var m=Tb(r,l);g?r=gS(r,l,[]):(!m||In(m)!=="object")&&(r=gS(r,l,pA(h))),CU(h).forEach(function(v){o([].concat(Eo(l),[v]),f)})}}else r=gS(r,l,h)}o([])}),r}const EU=N.createContext({}),TU=N.createContext(void 0),wo="${label} is not a valid ${type}",L_={Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:wo,method:wo,array:wo,object:wo,number:wo,date:wo,boolean:wo,integer:wo,float:wo,regexp:wo,email:wo,url:wo,hex:wo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}}};Object.assign({},L_.Modal);let uy=[];const mA=()=>uy.reduce((t,e)=>Object.assign(Object.assign({},t),e),L_.Modal);function OU(t){if(t){const e=Object.assign({},t);return uy.push(e),mA(),()=>{uy=uy.filter(n=>n!==e),mA()}}Object.assign({},L_.Modal)}const hN=N.createContext(void 0),AU="internalMark",RU=t=>{const{locale:e={},children:n,_ANT_MARK__:r}=t;N.useEffect(()=>OU(e&&e.Modal),[e]);const i=N.useMemo(()=>Object.assign(Object.assign({},e),{exist:!0}),[e]);return N.createElement(hN.Provider,{value:i},n)},kU=t=>{const{controlHeight:e}=t;return{controlHeightSM:e*.75,controlHeightXS:e*.5,controlHeightLG:e*1.25}};function NU(t){const{sizeUnit:e,sizeStep:n}=t;return{sizeXXL:e*(n+8),sizeXL:e*(n+4),sizeLG:e*(n+2),sizeMD:e*(n+1),sizeMS:e*n,size:e*n,sizeSM:e*(n-1),sizeXS:e*(n-2),sizeXXS:e*(n-3)}}const pN={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},ug=Object.assign(Object.assign({},pN),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
536
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
537
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function PU(t,e){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=e;const{colorSuccess:i,colorWarning:o,colorError:l,colorInfo:c,colorPrimary:f,colorBgBase:h,colorTextBase:g}=t,m=n(f),v=n(i),S=n(o),b=n(l),A=n(c),C=r(h,g),E=t.colorLink||t.colorInfo,k=n(E);return Object.assign(Object.assign({},C),{colorPrimaryBg:m[1],colorPrimaryBgHover:m[2],colorPrimaryBorder:m[3],colorPrimaryBorderHover:m[4],colorPrimaryHover:m[5],colorPrimary:m[6],colorPrimaryActive:m[7],colorPrimaryTextHover:m[8],colorPrimaryText:m[9],colorPrimaryTextActive:m[10],colorSuccessBg:v[1],colorSuccessBgHover:v[2],colorSuccessBorder:v[3],colorSuccessBorderHover:v[4],colorSuccessHover:v[4],colorSuccess:v[6],colorSuccessActive:v[7],colorSuccessTextHover:v[8],colorSuccessText:v[9],colorSuccessTextActive:v[10],colorErrorBg:b[1],colorErrorBgHover:b[2],colorErrorBorder:b[3],colorErrorBorderHover:b[4],colorErrorHover:b[5],colorError:b[6],colorErrorActive:b[7],colorErrorTextHover:b[8],colorErrorText:b[9],colorErrorTextActive:b[10],colorWarningBg:S[1],colorWarningBgHover:S[2],colorWarningBorder:S[3],colorWarningBorderHover:S[4],colorWarningHover:S[4],colorWarning:S[6],colorWarningActive:S[7],colorWarningTextHover:S[8],colorWarningText:S[9],colorWarningTextActive:S[10],colorInfoBg:A[1],colorInfoBgHover:A[2],colorInfoBorder:A[3],colorInfoBorderHover:A[4],colorInfoHover:A[4],colorInfo:A[6],colorInfoActive:A[7],colorInfoTextHover:A[8],colorInfoText:A[9],colorInfoTextActive:A[10],colorLinkHover:k[4],colorLink:k[6],colorLinkActive:k[7],colorBgMask:new xo("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const DU=t=>{let e=t,n=t,r=t,i=t;return t<6&&t>=5?e=t+1:t<16&&t>=6?e=t+2:t>=16&&(e=16),t<7&&t>=5?n=4:t<8&&t>=7?n=5:t<14&&t>=8?n=6:t<16&&t>=14?n=7:t>=16&&(n=8),t<6&&t>=2?r=1:t>=6&&(r=2),t>4&&t<8?i=4:t>=8&&(i=6),{borderRadius:t,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:e,borderRadiusOuter:i}};function LU(t){const{motionUnit:e,motionBase:n,borderRadius:r,lineWidth:i}=t;return Object.assign({motionDurationFast:`${(n+e).toFixed(1)}s`,motionDurationMid:`${(n+e*2).toFixed(1)}s`,motionDurationSlow:`${(n+e*3).toFixed(1)}s`,lineWidthBold:i+1},DU(r))}const al=(t,e)=>new xo(t).setAlpha(e).toRgbString(),Em=(t,e)=>new xo(t).darken(e).toHexString(),MU=t=>{const e=gf(t);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},IU=(t,e)=>{const n=t||"#fff",r=e||"#000";return{colorBgBase:n,colorTextBase:r,colorText:al(r,.88),colorTextSecondary:al(r,.65),colorTextTertiary:al(r,.45),colorTextQuaternary:al(r,.25),colorFill:al(r,.15),colorFillSecondary:al(r,.06),colorFillTertiary:al(r,.04),colorFillQuaternary:al(r,.02),colorBgLayout:Em(n,4),colorBgContainer:Em(n,0),colorBgElevated:Em(n,0),colorBgSpotlight:al(r,.85),colorBgBlur:"transparent",colorBorder:Em(n,15),colorBorderSecondary:Em(n,6)}};function FU(t){return(t+8)/t}function $U(t){const e=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=t*Math.pow(2.71828,i/5),l=r>1?Math.floor(o):Math.ceil(o);return Math.floor(l/2)*2});return e[1]=t,e.map(n=>({size:n,lineHeight:FU(n)}))}const jU=t=>{const e=$U(t),n=e.map(g=>g.size),r=e.map(g=>g.lineHeight),i=n[1],o=n[0],l=n[2],c=r[1],f=r[0],h=r[2];return{fontSizeSM:o,fontSize:i,fontSizeLG:l,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:c,lineHeightLG:h,lineHeightSM:f,fontHeight:Math.round(c*i),fontHeightLG:Math.round(h*l),fontHeightSM:Math.round(f*o),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function zU(t){const e=Object.keys(pN).map(n=>{const r=gf(t[n]);return new Array(10).fill(1).reduce((i,o,l)=>(i[`${n}-${l+1}`]=r[l],i[`${n}${l+1}`]=r[l],i),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t),e),PU(t,{generateColorPalettes:MU,generateNeutralColorPalettes:IU})),jU(t.fontSize)),NU(t)),kU(t)),LU(t))}const mN=_b(zU),gN={token:ug,override:{override:ug},hashed:!0},vN=je.createContext(gN),KC="anticon",HU=(t,e)=>e||(t?`ant-${t}`:"ant"),_s=N.createContext({getPrefixCls:HU,iconPrefixCls:KC}),{Consumer:TZ}=_s,qU=`-ant-${Date.now()}-${Math.random()}`;function UU(t,e){const n={},r=(l,c)=>{let f=l.clone();return f=c?.(f)||f,f.toRgbString()},i=(l,c)=>{const f=new xo(l),h=gf(f.toRgbString());n[`${c}-color`]=r(f),n[`${c}-color-disabled`]=h[1],n[`${c}-color-hover`]=h[4],n[`${c}-color-active`]=h[6],n[`${c}-color-outline`]=f.clone().setAlpha(.2).toRgbString(),n[`${c}-color-deprecated-bg`]=h[0],n[`${c}-color-deprecated-border`]=h[2]};if(e.primaryColor){i(e.primaryColor,"primary");const l=new xo(e.primaryColor),c=gf(l.toRgbString());c.forEach((h,g)=>{n[`primary-${g+1}`]=h}),n["primary-color-deprecated-l-35"]=r(l,h=>h.lighten(35)),n["primary-color-deprecated-l-20"]=r(l,h=>h.lighten(20)),n["primary-color-deprecated-t-20"]=r(l,h=>h.tint(20)),n["primary-color-deprecated-t-50"]=r(l,h=>h.tint(50)),n["primary-color-deprecated-f-12"]=r(l,h=>h.setAlpha(h.getAlpha()*.12));const f=new xo(c[0]);n["primary-color-active-deprecated-f-30"]=r(f,h=>h.setAlpha(h.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(f,h=>h.darken(2))}return e.successColor&&i(e.successColor,"success"),e.warningColor&&i(e.warningColor,"warning"),e.errorColor&&i(e.errorColor,"error"),e.infoColor&&i(e.infoColor,"info"),`
|
|
538
|
+
:root {
|
|
539
|
+
${Object.keys(n).map(l=>`--${t}-${l}: ${n[l]};`).join(`
|
|
540
|
+
`)}
|
|
541
|
+
}
|
|
542
|
+
`.trim()}function VU(t,e){const n=UU(t,e);bs()&&vf(n,`${qU}-dynamic-theme`)}const Ob=N.createContext(!1),WU=t=>{let{children:e,disabled:n}=t;const r=N.useContext(Ob);return N.createElement(Ob.Provider,{value:n??r},e)},cg=N.createContext(void 0),GU=t=>{let{children:e,size:n}=t;const r=N.useContext(cg);return N.createElement(cg.Provider,{value:n||r},e)};function BU(){const t=N.useContext(Ob),e=N.useContext(cg);return{componentDisabled:t,componentSize:e}}const KU="5.14.0";function vS(t){return t>=0&&t<=255}function V0(t,e){const{r:n,g:r,b:i,a:o}=new xo(t).toRgb();if(o<1)return t;const{r:l,g:c,b:f}=new xo(e).toRgb();for(let h=.01;h<=1;h+=.01){const g=Math.round((n-l*(1-h))/h),m=Math.round((r-c*(1-h))/h),v=Math.round((i-f*(1-h))/h);if(vS(g)&&vS(m)&&vS(v))return new xo({r:g,g:m,b:v,a:Math.round(h*100)/100}).toRgbString()}return new xo({r:n,g:r,b:i,a:1}).toRgbString()}var XU=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function yN(t){const{override:e}=t,n=XU(t,["override"]),r=Object.assign({},e);Object.keys(ug).forEach(v=>{delete r[v]});const i=Object.assign(Object.assign({},n),r),o=480,l=576,c=768,f=992,h=1200,g=1600;if(i.motion===!1){const v="0s";i.motionDurationFast=v,i.motionDurationMid=v,i.motionDurationSlow=v}return Object.assign(Object.assign(Object.assign({},i),{colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:V0(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:V0(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:V0(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*4,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:V0(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
|
|
543
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
544
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
545
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
546
|
+
`,boxShadowSecondary:`
|
|
547
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
548
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
549
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
550
|
+
`,boxShadowTertiary:`
|
|
551
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
552
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
553
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
554
|
+
`,screenXS:o,screenXSMin:o,screenXSMax:l-1,screenSM:l,screenSMMin:l,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:f-1,screenLG:f,screenLGMin:f,screenLGMax:h-1,screenXL:h,screenXLMin:h,screenXLMax:g-1,screenXXL:g,screenXXLMin:g,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
555
|
+
0 1px 2px -2px ${new xo("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
556
|
+
0 3px 6px 0 ${new xo("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
557
|
+
0 5px 12px 4px ${new xo("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
558
|
+
`,boxShadowDrawerRight:`
|
|
559
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
560
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
561
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
562
|
+
`,boxShadowDrawerLeft:`
|
|
563
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
564
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
565
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
566
|
+
`,boxShadowDrawerUp:`
|
|
567
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
568
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
569
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
570
|
+
`,boxShadowDrawerDown:`
|
|
571
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
572
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
573
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
574
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var gA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const _N={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0},wN={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},YU={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},SN=(t,e,n)=>{const r=n.getDerivativeToken(t),{override:i}=e,o=gA(e,["override"]);let l=Object.assign(Object.assign({},r),{override:i});return l=yN(l),o&&Object.entries(o).forEach(c=>{let[f,h]=c;const{theme:g}=h,m=gA(h,["theme"]);let v=m;g&&(v=SN(Object.assign(Object.assign({},l),m),{override:m},g)),l[f]=v}),l};function yf(){const{token:t,hashed:e,theme:n,override:r,cssVar:i}=je.useContext(vN),o=`${KU}-${e||""}`,l=n||mN,[c,f,h]=Gq(l,[ug,t],{salt:o,override:r,getComputedToken:SN,formatToken:yN,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:_N,ignore:wN,preserve:YU}});return[l,h,e?f:"",c,i]}function cy(t){var e=N.useRef(!1),n=N.useState(t),r=xt(n,2),i=r[0],o=r[1];N.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]);function l(c,f){f&&e.current||o(c)}return[i,l]}const bN=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:e?"inherit":t.fontFamily}},QU=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),ZU=t=>({a:{color:t.colorLink,textDecoration:t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive},"&:active,\n &:hover":{textDecoration:t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:t.linkFocusDecoration,outline:0},"&[disabled]":{color:t.colorTextDisabled,cursor:"not-allowed"}}}),JU=(t,e,n)=>{const{fontFamily:r,fontSize:i}=t,o=`[class^="${e}"], [class*=" ${e}"]`;return{[n?`.${n}`:o]:{fontFamily:r,fontSize:i,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}};let CN=Cl(function t(){bl(this,t)});function eV(t,e,n){return e=Cu(e),qC(t,k_()?Reflect.construct(e,[],Cu(t).constructor):e.apply(t,n))}let tV=function(t){R_(e,t);function e(n){var r;return bl(this,e),r=eV(this,e),r.result=0,n instanceof e?r.result=n.result:typeof n=="number"&&(r.result=n),r}return Cl(e,[{key:"add",value:function(r){return r instanceof e?this.result+=r.result:typeof r=="number"&&(this.result+=r),this}},{key:"sub",value:function(r){return r instanceof e?this.result-=r.result:typeof r=="number"&&(this.result-=r),this}},{key:"mul",value:function(r){return r instanceof e?this.result*=r.result:typeof r=="number"&&(this.result*=r),this}},{key:"div",value:function(r){return r instanceof e?this.result/=r.result:typeof r=="number"&&(this.result/=r),this}},{key:"equal",value:function(){return this.result}}]),e}(CN);function nV(t,e,n){return e=Cu(e),qC(t,k_()?Reflect.construct(e,[],Cu(t).constructor):e.apply(t,n))}const xN="CALC_UNIT";function yS(t){return typeof t=="number"?`${t}${xN}`:t}let rV=function(t){R_(e,t);function e(n){var r;return bl(this,e),r=nV(this,e),r.result="",n instanceof e?r.result=`(${n.result})`:typeof n=="number"?r.result=yS(n):typeof n=="string"&&(r.result=n),r}return Cl(e,[{key:"add",value:function(r){return r instanceof e?this.result=`${this.result} + ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} + ${yS(r)}`),this.lowPriority=!0,this}},{key:"sub",value:function(r){return r instanceof e?this.result=`${this.result} - ${r.getResult()}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} - ${yS(r)}`),this.lowPriority=!0,this}},{key:"mul",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof e?this.result=`${this.result} * ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} * ${r}`),this.lowPriority=!1,this}},{key:"div",value:function(r){return this.lowPriority&&(this.result=`(${this.result})`),r instanceof e?this.result=`${this.result} / ${r.getResult(!0)}`:(typeof r=="number"||typeof r=="string")&&(this.result=`${this.result} / ${r}`),this.lowPriority=!1,this}},{key:"getResult",value:function(r){return this.lowPriority||r?`(${this.result})`:this.result}},{key:"equal",value:function(r){const{unit:i=!0}=r||{},o=new RegExp(`${xN}`,"g");return this.result=this.result.replace(o,i?"px":""),typeof this.lowPriority<"u"?`calc(${this.result})`:this.result}}]),e}(CN);const iV=t=>{const e=t==="css"?rV:tV;return n=>new e(n)};function oV(t){return t==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return`max(${n.map(i=>$h(i)).join(",")})`},min:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return`min(${n.map(i=>$h(i)).join(",")})`}}}const EN=typeof CSSINJS_STATISTIC<"u";let Ab=!0;function M_(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!EN)return Object.assign.apply(Object,[{}].concat(e));Ab=!1;const r={};return e.forEach(i=>{Object.keys(i).forEach(l=>{Object.defineProperty(r,l,{configurable:!0,enumerable:!0,get:()=>i[l]})})}),Ab=!0,r}const vA={};function aV(){}const sV=t=>{let e,n=t,r=aV;return EN&&typeof Proxy<"u"&&(e=new Set,n=new Proxy(t,{get(i,o){return Ab&&e.add(o),i[o]}}),r=(i,o)=>{var l;vA[i]={global:Array.from(e),component:Object.assign(Object.assign({},(l=vA[i])===null||l===void 0?void 0:l.component),o)}}),{token:n,keys:e,flush:r}},TN=(t,e)=>{const[n,r]=yf();return Eb({token:r,hashId:"",path:["ant-design-icons",t],nonce:()=>e?.nonce},()=>[{[`.${t}`]:Object.assign(Object.assign({},QU()),{[`.${t} .${t}-icon`]:{display:"block"}})}])},ON=(t,e,n)=>{var r;return typeof n=="function"?n(M_(e,(r=e[t])!==null&&r!==void 0?r:{})):n??{}},AN=(t,e,n,r)=>{const i=Object.assign({},e[t]);if(r?.deprecatedTokens){const{deprecatedTokens:l}=r;l.forEach(c=>{let[f,h]=c;var g;(i?.[f]||i?.[h])&&((g=i[h])!==null&&g!==void 0||(i[h]=i?.[f]))})}const o=Object.assign(Object.assign({},n),i);return Object.keys(o).forEach(l=>{o[l]===e[l]&&delete o[l]}),o},lV=(t,e)=>`${[e,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-")}`;function RN(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=Array.isArray(t)?t:[t,t],[o]=i,l=i.join("-");return function(c){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:c;const[h,g,m,v,S]=yf(),{getPrefixCls:b,iconPrefixCls:A,csp:C}=N.useContext(_s),E=b(),k=S?"css":"js",T=iV(k),{max:x,min:w}=oV(k),R={theme:h,token:v,hashId:m,nonce:()=>C?.nonce,clientOnly:r.clientOnly,order:r.order||-999};return Eb(Object.assign(Object.assign({},R),{clientOnly:!1,path:["Shared",E]}),()=>[{"&":ZU(v)}]),TN(A,C),[Eb(Object.assign(Object.assign({},R),{path:[l,c,A]}),()=>{if(r.injectStyle===!1)return[];const{token:F,flush:U}=sV(v),V=ON(o,g,n),K=`.${c}`,Z=AN(o,g,V,{deprecatedTokens:r.deprecatedTokens});S&&Object.keys(V).forEach(fe=>{V[fe]=`var(${Qk(fe,lV(o,S.prefix))})`});const J=M_(F,{componentCls:K,prefixCls:c,iconCls:`.${A}`,antCls:`.${E}`,calc:T,max:x,min:w},S?V:Z),oe=e(J,{hashId:m,prefixCls:c,rootPrefixCls:E,iconPrefixCls:A});return U(o,Z),[r.resetStyle===!1?null:JU(J,c,f),oe]}),m]}}const uV=(t,e,n,r)=>{const i=RN(t,e,n,Object.assign({resetStyle:!1,order:-998},r));return l=>{let{prefixCls:c,rootCls:f=c}=l;return i(c,f),null}},cV=(t,e,n)=>{function r(h){return`${t}${h.slice(0,1).toUpperCase()}${h.slice(1)}`}const{unitless:i={},injectStyle:o=!0}=n??{},l={[r("zIndexPopup")]:!0};Object.keys(i).forEach(h=>{l[r(h)]=i[h]});const c=h=>{let{rootCls:g,cssVar:m}=h;const[,v]=yf();return _U({path:[t],prefix:m.prefix,key:m?.key,unitless:Object.assign(Object.assign({},_N),l),ignore:wN,token:v,scope:g},()=>{const S=ON(t,v,e),b=AN(t,v,S,{deprecatedTokens:void 0});return Object.keys(S).forEach(A=>{b[r(A)]=b[A],delete b[A]}),b}),null};return h=>{const[,,,,g]=yf();return[m=>o&&g?je.createElement(je.Fragment,null,je.createElement(c,{rootCls:h,cssVar:g,component:t}),m):m,g?.key]}},kN=(t,e,n,r)=>{const i=RN(t,e,n,r),o=cV(Array.isArray(t)?t[0]:t,n,r);return function(l){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l;const[,f]=i(l,c),[h,g]=o(c);return[h,f,g]}},fV=Object.assign({},s_),{useId:yA}=fV,dV=()=>"",hV=typeof yA>"u"?dV:yA;function pV(t,e){const n=t||{},r=n.inherit===!1||!e?gN:e,i=hV();return Lk(()=>{var o,l;if(!t)return e;const c=Object.assign({},r.components);Object.keys(t.components||{}).forEach(g=>{c[g]=Object.assign(Object.assign({},c[g]),t.components[g])});const f=`css-var-${i.replace(/:/g,"")}`,h=((o=n.cssVar)!==null&&o!==void 0?o:r.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:"ant"},typeof r.cssVar=="object"?r.cssVar:{}),typeof n.cssVar=="object"?n.cssVar:{}),{key:typeof n.cssVar=="object"&&((l=n.cssVar)===null||l===void 0?void 0:l.key)||f});return Object.assign(Object.assign(Object.assign({},r),n),{token:Object.assign(Object.assign({},r.token),n.token),components:c,cssVar:h})},[n,r],(o,l)=>o.some((c,f)=>{const h=l[f];return!wq(c,h,!0)}))}var mV=["children"],NN=N.createContext({});function gV(t){var e=t.children,n=mf(t,mV);return N.createElement(NN.Provider,{value:n},e)}var vV=function(t){R_(n,t);var e=Vk(n);function n(){return bl(this,n),e.apply(this,arguments)}return Cl(n,[{key:"render",value:function(){return this.props.children}}]),n}(N.Component),zc="none",W0="appear",G0="enter",B0="leave",_A="none",wa="prepare",mh="start",gh="active",XC="end",PN="prepared";function wA(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit".concat(t)]="webkit".concat(e),n["Moz".concat(t)]="moz".concat(e),n["ms".concat(t)]="MS".concat(e),n["O".concat(t)]="o".concat(e.toLowerCase()),n}function yV(t,e){var n={animationend:wA("Animation","AnimationEnd"),transitionend:wA("Transition","TransitionEnd")};return t&&("AnimationEvent"in e||delete n.animationend.animation,"TransitionEvent"in e||delete n.transitionend.transition),n}var _V=yV(bs(),typeof window<"u"?window:{}),DN={};if(bs()){var wV=document.createElement("div");DN=wV.style}var K0={};function LN(t){if(K0[t])return K0[t];var e=_V[t];if(e)for(var n=Object.keys(e),r=n.length,i=0;i<r;i+=1){var o=n[i];if(Object.prototype.hasOwnProperty.call(e,o)&&o in DN)return K0[t]=e[o],K0[t]}return""}var MN=LN("animationend"),IN=LN("transitionend"),FN=!!(MN&&IN),SA=MN||"animationend",bA=IN||"transitionend";function CA(t,e){if(!t)return null;if(In(t)==="object"){var n=e.replace(/-\w/g,function(r){return r[1].toUpperCase()});return t[n]}return"".concat(t,"-").concat(e)}const SV=function(t){var e=N.useRef(),n=N.useRef(t);n.current=t;var r=N.useCallback(function(l){n.current(l)},[]);function i(l){l&&(l.removeEventListener(bA,r),l.removeEventListener(SA,r))}function o(l){e.current&&e.current!==l&&i(e.current),l&&l!==e.current&&(l.addEventListener(bA,r),l.addEventListener(SA,r),e.current=l)}return N.useEffect(function(){return function(){i(e.current)}},[]),[o,i]};var $N=bs()?N.useLayoutEffect:N.useEffect;const bV=function(){var t=N.useRef(null);function e(){vb.cancel(t.current)}function n(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;e();var o=vb(function(){i<=1?r({isCanceled:function(){return o!==t.current}}):n(r,i-1)});t.current=o}return N.useEffect(function(){return function(){e()}},[]),[n,e]};var CV=[wa,mh,gh,XC],xV=[wa,PN],jN=!1,EV=!0;function zN(t){return t===gh||t===XC}const TV=function(t,e,n){var r=cy(_A),i=xt(r,2),o=i[0],l=i[1],c=bV(),f=xt(c,2),h=f[0],g=f[1];function m(){l(wa,!0)}var v=e?xV:CV;return $N(function(){if(o!==_A&&o!==XC){var S=v.indexOf(o),b=v[S+1],A=n(o);A===jN?l(b,!0):b&&h(function(C){function E(){C.isCanceled()||l(b,!0)}A===!0?E():Promise.resolve(A).then(E)})}},[t,o]),N.useEffect(function(){return function(){g()}},[]),[m,o]};function OV(t,e,n,r){var i=r.motionEnter,o=i===void 0?!0:i,l=r.motionAppear,c=l===void 0?!0:l,f=r.motionLeave,h=f===void 0?!0:f,g=r.motionDeadline,m=r.motionLeaveImmediately,v=r.onAppearPrepare,S=r.onEnterPrepare,b=r.onLeavePrepare,A=r.onAppearStart,C=r.onEnterStart,E=r.onLeaveStart,k=r.onAppearActive,T=r.onEnterActive,x=r.onLeaveActive,w=r.onAppearEnd,R=r.onEnterEnd,I=r.onLeaveEnd,F=r.onVisibleChanged,U=cy(),V=xt(U,2),K=V[0],Z=V[1],J=cy(zc),oe=xt(J,2),fe=oe[0],Q=oe[1],re=cy(null),z=xt(re,2),W=z[0],$=z[1],B=N.useRef(!1),Y=N.useRef(null);function ae(){return n()}var le=N.useRef(!1);function ie(){Q(zc,!0),$(null,!0)}function q(Fe){var Ae=ae();if(!(Fe&&!Fe.deadline&&Fe.target!==Ae)){var ze=le.current,nt;fe===W0&&ze?nt=w?.(Ae,Fe):fe===G0&&ze?nt=R?.(Ae,Fe):fe===B0&&ze&&(nt=I?.(Ae,Fe)),fe!==zc&&ze&&nt!==!1&&ie()}}var se=SV(q),ee=xt(se,1),Ce=ee[0],xe=function(Ae){var ze,nt,ct;switch(Ae){case W0:return ze={},Nt(ze,wa,v),Nt(ze,mh,A),Nt(ze,gh,k),ze;case G0:return nt={},Nt(nt,wa,S),Nt(nt,mh,C),Nt(nt,gh,T),nt;case B0:return ct={},Nt(ct,wa,b),Nt(ct,mh,E),Nt(ct,gh,x),ct;default:return{}}},Re=N.useMemo(function(){return xe(fe)},[fe]),Me=TV(fe,!t,function(Fe){if(Fe===wa){var Ae=Re[wa];return Ae?Ae(ae()):jN}if(ye in Re){var ze;$(((ze=Re[ye])===null||ze===void 0?void 0:ze.call(Re,ae(),null))||null)}return ye===gh&&(Ce(ae()),g>0&&(clearTimeout(Y.current),Y.current=setTimeout(function(){q({deadline:!0})},g))),ye===PN&&ie(),EV}),qe=xt(Me,2),Je=qe[0],ye=qe[1],be=zN(ye);le.current=be,$N(function(){Z(e);var Fe=B.current;B.current=!0;var Ae;!Fe&&e&&c&&(Ae=W0),Fe&&e&&o&&(Ae=G0),(Fe&&!e&&h||!Fe&&m&&!e&&h)&&(Ae=B0);var ze=xe(Ae);Ae&&(t||ze[wa])?(Q(Ae),Je()):Q(zc)},[e]),N.useEffect(function(){(fe===W0&&!c||fe===G0&&!o||fe===B0&&!h)&&Q(zc)},[c,o,h]),N.useEffect(function(){return function(){B.current=!1,clearTimeout(Y.current)}},[]);var ke=N.useRef(!1);N.useEffect(function(){K&&(ke.current=!0),K!==void 0&&fe===zc&&((ke.current||K)&&F?.(K),ke.current=!0)},[K,fe]);var Ee=W;return Re[wa]&&ye===mh&&(Ee=pt({transition:"none"},Ee)),[fe,ye,Ee,K??e]}function AV(t){var e=t;In(t)==="object"&&(e=t.transitionSupport);function n(i,o){return!!(i.motionName&&e&&o!==!1)}var r=N.forwardRef(function(i,o){var l=i.visible,c=l===void 0?!0:l,f=i.removeOnLeave,h=f===void 0?!0:f,g=i.forceRender,m=i.children,v=i.motionName,S=i.leavedClassName,b=i.eventProps,A=N.useContext(NN),C=A.motion,E=n(i,C),k=N.useRef(),T=N.useRef();function x(){try{return k.current instanceof HTMLElement?k.current:gq(T.current)}catch{return null}}var w=OV(E,c,x,i),R=xt(w,4),I=R[0],F=R[1],U=R[2],V=R[3],K=N.useRef(V);V&&(K.current=!0);var Z=N.useCallback(function($){k.current=$,BH(o,$)},[o]),J,oe=pt(pt({},b),{},{visible:c});if(!m)J=null;else if(I===zc)V?J=m(pt({},oe),Z):!h&&K.current&&S?J=m(pt(pt({},oe),{},{className:S}),Z):g||!h&&!S?J=m(pt(pt({},oe),{},{style:{display:"none"}}),Z):J=null;else{var fe,Q;F===wa?Q="prepare":zN(F)?Q="active":F===mh&&(Q="start");var re=CA(v,"".concat(I,"-").concat(Q));J=m(pt(pt({},oe),{},{className:et(CA(v,I),(fe={},Nt(fe,re,re&&Q),Nt(fe,v,typeof v=="string"),fe)),style:U}),Z)}if(N.isValidElement(J)&&KH(J)){var z=J,W=z.ref;W||(J=N.cloneElement(J,{ref:Z}))}return N.createElement(vV,{ref:T},J)});return r.displayName="CSSMotion",r}const RV=AV(FN);var Rb="add",kb="keep",Nb="remove",_S="removed";function kV(t){var e;return t&&In(t)==="object"&&"key"in t?e=t:e={key:t},pt(pt({},e),{},{key:String(e.key)})}function Pb(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return t.map(kV)}function NV(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,i=e.length,o=Pb(t),l=Pb(e);o.forEach(function(h){for(var g=!1,m=r;m<i;m+=1){var v=l[m];if(v.key===h.key){r<m&&(n=n.concat(l.slice(r,m).map(function(S){return pt(pt({},S),{},{status:Rb})})),r=m),n.push(pt(pt({},v),{},{status:kb})),r+=1,g=!0;break}}g||n.push(pt(pt({},h),{},{status:Nb}))}),r<i&&(n=n.concat(l.slice(r).map(function(h){return pt(pt({},h),{},{status:Rb})})));var c={};n.forEach(function(h){var g=h.key;c[g]=(c[g]||0)+1});var f=Object.keys(c).filter(function(h){return c[h]>1});return f.forEach(function(h){n=n.filter(function(g){var m=g.key,v=g.status;return m!==h||v!==Nb}),n.forEach(function(g){g.key===h&&(g.status=kb)})}),n}var PV=["component","children","onVisibleChanged","onAllRemoved"],DV=["status"],LV=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function MV(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:RV,n=function(r){R_(o,r);var i=Vk(o);function o(){var l;bl(this,o);for(var c=arguments.length,f=new Array(c),h=0;h<c;h++)f[h]=arguments[h];return l=i.call.apply(i,[this].concat(f)),Nt(ky(l),"state",{keyEntities:[]}),Nt(ky(l),"removeKey",function(g){var m=l.state.keyEntities,v=m.map(function(S){return S.key!==g?S:pt(pt({},S),{},{status:_S})});return l.setState({keyEntities:v}),v.filter(function(S){var b=S.status;return b!==_S}).length}),l}return Cl(o,[{key:"render",value:function(){var c=this,f=this.state.keyEntities,h=this.props,g=h.component,m=h.children,v=h.onVisibleChanged,S=h.onAllRemoved,b=mf(h,PV),A=g||N.Fragment,C={};return LV.forEach(function(E){C[E]=b[E],delete b[E]}),delete b.keys,N.createElement(A,b,f.map(function(E,k){var T=E.status,x=mf(E,DV),w=T===Rb||T===kb;return N.createElement(e,hi({},C,{key:x.key,visible:w,eventProps:x,onVisibleChanged:function(I){if(v?.(I,{key:x.key}),!I){var F=c.removeKey(x.key);F===0&&S&&S()}}}),function(R,I){return m(pt(pt({},R),{},{index:k}),I)})}))}}],[{key:"getDerivedStateFromProps",value:function(c,f){var h=c.keys,g=f.keyEntities,m=Pb(h),v=NV(g,m);return{keyEntities:v.filter(function(S){var b=g.find(function(A){var C=A.key;return S.key===C});return!(b&&b.status===_S&&S.status===Nb)})}}}]),o}(N.Component);return Nt(n,"defaultProps",{component:"div"}),n}const IV=MV(FN);function FV(t){const{children:e}=t,[,n]=yf(),{motion:r}=n,i=N.useRef(!1);return i.current=i.current||r===!1,i.current?N.createElement(gV,{motion:r},e):e}const $V=()=>null;var jV=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const zV=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],HV="ant";let jy,HN,qN,UN;function fy(){return jy||HV}function qV(){return HN||KC}function UV(t){return Object.keys(t).some(e=>e.endsWith("Color"))}const VV=t=>{const{prefixCls:e,iconPrefixCls:n,theme:r,holderRender:i}=t;e!==void 0&&(jy=e),n!==void 0&&(HN=n),"holderRender"in t&&(UN=i),r&&(UV(r)?VU(fy(),r):qN=r)},WV=()=>({getPrefixCls:(t,e)=>e||(t?`${fy()}-${t}`:fy()),getIconPrefixCls:qV,getRootPrefixCls:()=>jy||fy(),getTheme:()=>qN,holderRender:UN}),GV=t=>{const{children:e,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:o,form:l,locale:c,componentSize:f,direction:h,space:g,virtual:m,dropdownMatchSelectWidth:v,popupMatchSelectWidth:S,popupOverflow:b,legacyLocale:A,parentContext:C,iconPrefixCls:E,theme:k,componentDisabled:T,segmented:x,statistic:w,spin:R,calendar:I,carousel:F,cascader:U,collapse:V,typography:K,checkbox:Z,descriptions:J,divider:oe,drawer:fe,skeleton:Q,steps:re,image:z,layout:W,list:$,mentions:B,modal:Y,progress:ae,result:le,slider:ie,breadcrumb:q,menu:se,pagination:ee,input:Ce,empty:xe,badge:Re,radio:Me,rate:qe,switch:Je,transfer:ye,avatar:be,message:ke,tag:Ee,table:Fe,card:Ae,tabs:ze,timeline:nt,timePicker:ct,upload:Ge,notification:_t,tree:Kt,colorPicker:jn,datePicker:Qt,rangePicker:Zr,flex:ur,wave:Mr,dropdown:Xe,warning:it,tour:It}=t,Jn=N.useCallback((on,gn)=>{const{prefixCls:er}=t;if(gn)return gn;const Or=er||C.getPrefixCls("");return on?`${Or}-${on}`:Or},[C.getPrefixCls,t.prefixCls]),mn=E||C.iconPrefixCls||KC,Jr=n||C.csp;TN(mn,Jr);const Er=pV(k,C.theme),Ao={csp:Jr,autoInsertSpaceInButton:r,alert:i,anchor:o,locale:c||A,direction:h,space:g,virtual:m,popupMatchSelectWidth:S??v,popupOverflow:b,getPrefixCls:Jn,iconPrefixCls:mn,theme:Er,segmented:x,statistic:w,spin:R,calendar:I,carousel:F,cascader:U,collapse:V,typography:K,checkbox:Z,descriptions:J,divider:oe,drawer:fe,skeleton:Q,steps:re,image:z,input:Ce,layout:W,list:$,mentions:B,modal:Y,progress:ae,result:le,slider:ie,breadcrumb:q,menu:se,pagination:ee,empty:xe,badge:Re,radio:Me,rate:qe,switch:Je,transfer:ye,avatar:be,message:ke,tag:Ee,table:Fe,card:Ae,tabs:ze,timeline:nt,timePicker:ct,upload:Ge,notification:_t,tree:Kt,colorPicker:jn,datePicker:Qt,rangePicker:Zr,flex:ur,wave:Mr,dropdown:Xe,warning:it,tour:It},Ro=Object.assign({},C);Object.keys(Ao).forEach(on=>{Ao[on]!==void 0&&(Ro[on]=Ao[on])}),zV.forEach(on=>{const gn=t[on];gn&&(Ro[on]=gn)});const Tr=Lk(()=>Ro,Ro,(on,gn)=>{const er=Object.keys(on),Or=Object.keys(gn);return er.length!==Or.length||er.some(mi=>on[mi]!==gn[mi])}),Ni=N.useMemo(()=>({prefixCls:mn,csp:Jr}),[mn,Jr]);let tn=N.createElement(N.Fragment,null,N.createElement($V,{dropdownMatchSelectWidth:v}),e);const Os=N.useMemo(()=>{var on,gn,er,Or;return xU(((on=L_.Form)===null||on===void 0?void 0:on.defaultValidateMessages)||{},((er=(gn=Tr.locale)===null||gn===void 0?void 0:gn.Form)===null||er===void 0?void 0:er.defaultValidateMessages)||{},((Or=Tr.form)===null||Or===void 0?void 0:Or.validateMessages)||{},l?.validateMessages||{})},[Tr,l?.validateMessages]);Object.keys(Os).length>0&&(tn=N.createElement(TU.Provider,{value:Os},tn)),c&&(tn=N.createElement(RU,{locale:c,_ANT_MARK__:AU},tn)),tn=N.createElement($C.Provider,{value:Ni},tn),f&&(tn=N.createElement(GU,{size:f},tn)),tn=N.createElement(FV,null,tn);const Ol=N.useMemo(()=>{const on=Er||{},{algorithm:gn,token:er,components:Or,cssVar:mi}=on,Pa=jV(on,["algorithm","token","components","cssVar"]),gi=gn&&(!Array.isArray(gn)||gn.length>0)?_b(gn):mN,As={};Object.entries(Or||{}).forEach(Ir=>{let[tr,ta]=Ir;const ei=Object.assign({},ta);"algorithm"in ei&&(ei.algorithm===!0?ei.theme=gi:(Array.isArray(ei.algorithm)||typeof ei.algorithm=="function")&&(ei.theme=_b(ei.algorithm)),delete ei.algorithm),As[tr]=ei});const Pi=Object.assign(Object.assign({},ug),er);return Object.assign(Object.assign({},Pa),{theme:gi,token:Pi,components:As,override:Object.assign({override:Pi},As),cssVar:mi})},[Er]);return k&&(tn=N.createElement(vN.Provider,{value:Ol},tn)),Tr.warning&&(tn=N.createElement(EU.Provider,{value:Tr.warning},tn)),T!==void 0&&(tn=N.createElement(WU,{disabled:T},tn)),N.createElement(_s.Provider,{value:Tr},tn)},Qh=t=>{const e=N.useContext(_s),n=N.useContext(hN);return N.createElement(GV,Object.assign({parentContext:e,legacyLocale:n},t))};Qh.ConfigContext=_s;Qh.SizeContext=cg;Qh.config=VV;Qh.useConfig=BU;Object.defineProperty(Qh,"SizeContext",{get:()=>cg});const{isValidElement:Db}=s_;function BV(t,e,n){return Db(t)?N.cloneElement(t,typeof n=="function"?n(t.props||{}):n):e}function xA(t,e){return BV(t,t,e)}const VN=t=>{const[,,,,e]=yf();return e?`${t}-css-var`:""};var KV={ENTER:13},WN=N.forwardRef(function(t,e){var n=t.prefixCls,r=t.style,i=t.className,o=t.duration,l=o===void 0?4.5:o,c=t.eventKey,f=t.content,h=t.closable,g=t.closeIcon,m=g===void 0?"x":g,v=t.props,S=t.onClick,b=t.onNoticeClose,A=t.times,C=t.hovering,E=N.useState(!1),k=xt(E,2),T=k[0],x=k[1],w=C||T,R=function(){b(c)},I=function(V){(V.key==="Enter"||V.code==="Enter"||V.keyCode===KV.ENTER)&&R()};N.useEffect(function(){if(!w&&l>0){var U=setTimeout(function(){R()},l*1e3);return function(){clearTimeout(U)}}},[l,w,A]);var F="".concat(n,"-notice");return N.createElement("div",hi({},v,{ref:e,className:et(F,i,Nt({},"".concat(F,"-closable"),h)),style:r,onMouseEnter:function(V){var K;x(!0),v==null||(K=v.onMouseEnter)===null||K===void 0||K.call(v,V)},onMouseLeave:function(V){var K;x(!1),v==null||(K=v.onMouseLeave)===null||K===void 0||K.call(v,V)},onClick:S}),N.createElement("div",{className:"".concat(F,"-content")},f),h&&N.createElement("a",{tabIndex:0,className:"".concat(F,"-close"),onKeyDown:I,onClick:function(V){V.preventDefault(),V.stopPropagation(),R()}},m))}),GN=je.createContext({}),XV=function(e){var n=e.children,r=e.classNames;return je.createElement(GN.Provider,{value:{classNames:r}},n)},EA=8,TA=3,OA=16,YV=function(e){var n={offset:EA,threshold:TA,gap:OA};if(e&&In(e)==="object"){var r,i,o;n.offset=(r=e.offset)!==null&&r!==void 0?r:EA,n.threshold=(i=e.threshold)!==null&&i!==void 0?i:TA,n.gap=(o=e.gap)!==null&&o!==void 0?o:OA}return[!!e,n]},QV=["className","style","classNames","styles"],ZV=function(e){var n,r=e.configList,i=e.placement,o=e.prefixCls,l=e.className,c=e.style,f=e.motion,h=e.onAllNoticeRemoved,g=e.onNoticeClose,m=e.stack,v=N.useContext(GN),S=v.classNames,b=N.useRef({}),A=N.useState(null),C=xt(A,2),E=C[0],k=C[1],T=N.useState([]),x=xt(T,2),w=x[0],R=x[1],I=r.map(function(re){return{config:re,key:String(re.key)}}),F=YV(m),U=xt(F,2),V=U[0],K=U[1],Z=K.offset,J=K.threshold,oe=K.gap,fe=V&&(w.length>0||I.length<=J),Q=typeof f=="function"?f(i):f;return N.useEffect(function(){V&&w.length>1&&R(function(re){return re.filter(function(z){return I.some(function(W){var $=W.key;return z===$})})})},[w,I,V]),N.useEffect(function(){var re;if(V&&b.current[(re=I[I.length-1])===null||re===void 0?void 0:re.key]){var z;k(b.current[(z=I[I.length-1])===null||z===void 0?void 0:z.key])}},[I,V]),je.createElement(IV,hi({key:i,className:et(o,"".concat(o,"-").concat(i),S?.list,l,(n={},Nt(n,"".concat(o,"-stack"),!!V),Nt(n,"".concat(o,"-stack-expanded"),fe),n)),style:c,keys:I,motionAppear:!0},Q,{onAllRemoved:function(){h(i)}}),function(re,z){var W=re.config,$=re.className,B=re.style,Y=re.index,ae=W,le=ae.key,ie=ae.times,q=String(le),se=W,ee=se.className,Ce=se.style,xe=se.classNames,Re=se.styles,Me=mf(se,QV),qe=I.findIndex(function(_t){return _t.key===q}),Je={};if(V){var ye=I.length-1-(qe>-1?qe:Y-1),be=i==="top"||i==="bottom"?"-50%":"0";if(ye>0){var ke,Ee,Fe;Je.height=fe?(ke=b.current[q])===null||ke===void 0?void 0:ke.offsetHeight:E?.offsetHeight;for(var Ae=0,ze=0;ze<ye;ze++){var nt;Ae+=((nt=b.current[I[I.length-1-ze].key])===null||nt===void 0?void 0:nt.offsetHeight)+oe}var ct=(fe?Ae:ye*Z)*(i.startsWith("top")?1:-1),Ge=!fe&&E!==null&&E!==void 0&&E.offsetWidth&&(Ee=b.current[q])!==null&&Ee!==void 0&&Ee.offsetWidth?(E?.offsetWidth-Z*2*(ye<3?ye:3))/((Fe=b.current[q])===null||Fe===void 0?void 0:Fe.offsetWidth):1;Je.transform="translate3d(".concat(be,", ").concat(ct,"px, 0) scaleX(").concat(Ge,")")}else Je.transform="translate3d(".concat(be,", 0, 0)")}return je.createElement("div",{ref:z,className:et("".concat(o,"-notice-wrapper"),$,xe?.wrapper),style:pt(pt(pt({},B),Je),Re?.wrapper),onMouseEnter:function(){return R(function(Kt){return Kt.includes(q)?Kt:[].concat(Eo(Kt),[q])})},onMouseLeave:function(){return R(function(Kt){return Kt.filter(function(jn){return jn!==q})})}},je.createElement(WN,hi({},Me,{ref:function(Kt){qe>-1?b.current[q]=Kt:delete b.current[q]},prefixCls:o,classNames:xe,styles:Re,className:et(ee,S?.notice),style:Ce,times:ie,key:le,eventKey:le,onNoticeClose:g,hovering:V&&w.length>0})))})},JV=N.forwardRef(function(t,e){var n=t.prefixCls,r=n===void 0?"rc-notification":n,i=t.container,o=t.motion,l=t.maxCount,c=t.className,f=t.style,h=t.onAllRemoved,g=t.stack,m=t.renderNotifications,v=N.useState([]),S=xt(v,2),b=S[0],A=S[1],C=function(U){var V,K=b.find(function(Z){return Z.key===U});K==null||(V=K.onClose)===null||V===void 0||V.call(K),A(function(Z){return Z.filter(function(J){return J.key!==U})})};N.useImperativeHandle(e,function(){return{open:function(U){A(function(V){var K=Eo(V),Z=K.findIndex(function(fe){return fe.key===U.key}),J=pt({},U);if(Z>=0){var oe;J.times=(((oe=V[Z])===null||oe===void 0?void 0:oe.times)||0)+1,K[Z]=J}else J.times=0,K.push(J);return l>0&&K.length>l&&(K=K.slice(-l)),K})},close:function(U){C(U)},destroy:function(){A([])}}});var E=N.useState({}),k=xt(E,2),T=k[0],x=k[1];N.useEffect(function(){var F={};b.forEach(function(U){var V=U.placement,K=V===void 0?"topRight":V;K&&(F[K]=F[K]||[],F[K].push(U))}),Object.keys(T).forEach(function(U){F[U]=F[U]||[]}),x(F)},[b]);var w=function(U){x(function(V){var K=pt({},V),Z=K[U]||[];return Z.length||delete K[U],K})},R=N.useRef(!1);if(N.useEffect(function(){Object.keys(T).length>0?R.current=!0:R.current&&(h?.(),R.current=!1)},[T]),!i)return null;var I=Object.keys(T);return Mg.createPortal(N.createElement(N.Fragment,null,I.map(function(F){var U=T[F],V=N.createElement(ZV,{key:F,configList:U,placement:F,prefixCls:r,className:c?.(F),style:f?.(F),motion:o,onNoticeClose:C,onAllNoticeRemoved:w,stack:g});return m?m(V,{prefixCls:r,key:F}):V})),i)}),eW=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],tW=function(){return document.body},AA=0;function nW(){for(var t={},e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach(function(i){i&&Object.keys(i).forEach(function(o){var l=i[o];l!==void 0&&(t[o]=l)})}),t}function rW(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.getContainer,n=e===void 0?tW:e,r=t.motion,i=t.prefixCls,o=t.maxCount,l=t.className,c=t.style,f=t.onAllRemoved,h=t.stack,g=t.renderNotifications,m=mf(t,eW),v=N.useState(),S=xt(v,2),b=S[0],A=S[1],C=N.useRef(),E=N.createElement(JV,{container:b,ref:C,prefixCls:i,motion:r,maxCount:o,className:l,style:c,onAllRemoved:f,stack:h,renderNotifications:g}),k=N.useState([]),T=xt(k,2),x=T[0],w=T[1],R=N.useMemo(function(){return{open:function(F){var U=nW(m,F);(U.key===null||U.key===void 0)&&(U.key="rc-notification-".concat(AA),AA+=1),w(function(V){return[].concat(Eo(V),[{type:"open",config:U}])})},close:function(F){w(function(U){return[].concat(Eo(U),[{type:"close",key:F}])})},destroy:function(){w(function(F){return[].concat(Eo(F),[{type:"destroy"}])})}}},[]);return N.useEffect(function(){A(n())}),N.useEffect(function(){C.current&&x.length&&(x.forEach(function(I){switch(I.type){case"open":C.current.open(I.config);break;case"close":C.current.close(I.key);break;case"destroy":C.current.destroy();break}}),w(function(I){return I.filter(function(F){return!x.includes(F)})}))},[x]),[R,E]}const iW=100,oW=10,aW=iW*oW;var zg=pt({},l5),sW=zg.version,lW=zg.render;zg.unmountComponentAtNode;var YC;try{var uW=Number((sW||"").split(".")[0]);uW>=18&&(YC=zg.createRoot)}catch{}function RA(t){var e=zg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&In(e)==="object"&&(e.usingClientEntryPoint=t)}var kA="__rc_react_root__";function cW(t,e){RA(!0);var n=e[kA]||YC(e);RA(!1),n.render(t),e[kA]=n}function fW(t,e){lW(t,e)}function dW(t,e){if(YC){cW(t,e);return}fW(t,e)}const hW=t=>{const{componentCls:e,notificationMarginEdge:n,animationMaxHeight:r}=t,i=`${e}-notice`,o=new Yc("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),l=new Yc("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),c=new Yc("antNotificationBottomFadeIn",{"0%":{bottom:t.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),f=new Yc("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[e]:{[`&${e}-top, &${e}-bottom`]:{marginInline:0,[i]:{marginInline:"auto auto"}},[`&${e}-top`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:l}},[`&${e}-bottom`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:c}},[`&${e}-topRight, &${e}-bottomRight`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:o}},[`&${e}-topLeft, &${e}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:"auto",marginInlineStart:0},[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:f}}}}},pW=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],mW={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},gW=(t,e)=>{const{componentCls:n}=t;return{[`${n}-${e}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[e.startsWith("top")?"top":"bottom"]:0,[mW[e]]:{value:0,_skip_check_:!0}}}}},vW=t=>{const e={};for(let n=1;n<t.notificationStackLayer;n++)e[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${t.componentCls}-notice`]:{opacity:0,transition:`opacity ${t.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${t.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},e)},yW=t=>{const e={};for(let n=1;n<t.notificationStackLayer;n++)e[`&:nth-last-child(${n+1})`]={background:t.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},e)},_W=t=>{const{componentCls:e}=t;return Object.assign({[`${e}-stack`]:{[`& > ${e}-notice-wrapper`]:Object.assign({transition:`all ${t.motionDurationSlow}, backdrop-filter 0s`,position:"absolute"},vW(t))},[`${e}-stack:not(${e}-stack-expanded)`]:{[`& > ${e}-notice-wrapper`]:Object.assign({},yW(t))},[`${e}-stack${e}-stack-expanded`]:{[`& > ${e}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${t.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:t.margin,width:"100%",insetInline:0,bottom:t.calc(t.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},pW.map(n=>gW(t,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},BN=t=>{const{iconCls:e,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:o,borderRadiusLG:l,colorSuccess:c,colorInfo:f,colorWarning:h,colorError:g,colorTextHeading:m,notificationBg:v,notificationPadding:S,notificationMarginEdge:b,fontSize:A,lineHeight:C,width:E,notificationIconSize:k,colorText:T}=t,x=`${n}-notice`;return{position:"relative",marginBottom:o,marginInlineStart:"auto",background:v,borderRadius:l,boxShadow:r,[x]:{padding:S,width:E,maxWidth:`calc(100vw - ${$h(t.calc(b).mul(2).equal())})`,overflow:"hidden",lineHeight:C,wordWrap:"break-word"},[`${n}-close-icon`]:{fontSize:A,cursor:"pointer"},[`${x}-message`]:{marginBottom:t.marginXS,color:m,fontSize:i,lineHeight:t.lineHeightLG},[`${x}-description`]:{fontSize:A,color:T},[`${x}-closable ${x}-message`]:{paddingInlineEnd:t.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:t.marginXS,marginInlineStart:t.calc(t.marginSM).add(k).equal(),fontSize:i},[`${x}-with-icon ${x}-description`]:{marginInlineStart:t.calc(t.marginSM).add(k).equal(),fontSize:A},[`${x}-icon`]:{position:"absolute",fontSize:k,lineHeight:1,[`&-success${e}`]:{color:c},[`&-info${e}`]:{color:f},[`&-warning${e}`]:{color:h},[`&-error${e}`]:{color:g}},[`${x}-close`]:{position:"absolute",top:t.notificationPaddingVertical,insetInlineEnd:t.notificationPaddingHorizontal,color:t.colorIcon,outline:"none",width:t.notificationCloseButtonSize,height:t.notificationCloseButtonSize,borderRadius:t.borderRadiusSM,transition:`background-color ${t.motionDurationMid}, color ${t.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:t.colorIconHover,backgroundColor:t.closeBtnHoverBg}},[`${x}-btn`]:{float:"right",marginTop:t.marginSM}}},wW=t=>{const{componentCls:e,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:o}=t,l=`${e}-notice`,c=new Yc("antNotificationFadeOut",{"0%":{maxHeight:t.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[e]:Object.assign(Object.assign({},bN(t)),{position:"fixed",zIndex:t.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${e}-hook-holder`]:{position:"relative"},[`${e}-fade-appear-prepare`]:{opacity:"0 !important"},[`${e}-fade-enter, ${e}-fade-appear`]:{animationDuration:t.motionDurationMid,animationTimingFunction:o,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${e}-fade-leave`]:{animationTimingFunction:o,animationFillMode:"both",animationDuration:i,animationPlayState:"paused"},[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationPlayState:"running"},[`${e}-fade-leave${e}-fade-leave-active`]:{animationName:c,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${l}-btn`]:{float:"left"}}})},{[e]:{[`${l}-wrapper`]:Object.assign({},BN(t))}}]},KN=t=>({zIndexPopup:t.zIndexPopupBase+aW+50,width:384,closeBtnHoverBg:t.wireframe?"transparent":t.colorFillContent}),XN=t=>{const e=t.paddingMD,n=t.paddingLG;return M_(t,{notificationBg:t.colorBgElevated,notificationPaddingVertical:e,notificationPaddingHorizontal:n,notificationIconSize:t.calc(t.fontSizeLG).mul(t.lineHeightLG).equal(),notificationCloseButtonSize:t.calc(t.controlHeightLG).mul(.55).equal(),notificationMarginBottom:t.margin,notificationPadding:`${$h(t.paddingMD)} ${$h(t.paddingContentHorizontalLG)}`,notificationMarginEdge:t.marginLG,animationMaxHeight:150,notificationStackLayer:3})},YN=kN("Notification",t=>{const e=XN(t);return[wW(e),hW(e),_W(e)]},KN),SW=uV(["Notification","PurePanel"],t=>{const e=`${t.componentCls}-notice`,n=XN(t);return{[`${e}-pure-panel`]:Object.assign(Object.assign({},BN(n)),{width:n.width,maxWidth:`calc(100vw - ${$h(t.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},KN);var bW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function QC(t,e){return e===null||e===!1?null:e||N.createElement("span",{className:`${t}-close-x`},N.createElement(FH,{className:`${t}-close-icon`}))}const CW={success:NH,info:UH,error:LH,warning:zH},QN=t=>{const{prefixCls:e,icon:n,type:r,message:i,description:o,btn:l,role:c="alert"}=t;let f=null;return n?f=N.createElement("span",{className:`${e}-icon`},n):r&&(f=N.createElement(CW[r]||null,{className:et(`${e}-icon`,`${e}-icon-${r}`)})),N.createElement("div",{className:et({[`${e}-with-icon`]:f}),role:c},f,N.createElement("div",{className:`${e}-message`},i),N.createElement("div",{className:`${e}-description`},o),l&&N.createElement("div",{className:`${e}-btn`},l))},xW=t=>{const{prefixCls:e,className:n,icon:r,type:i,message:o,description:l,btn:c,closable:f=!0,closeIcon:h,className:g}=t,m=bW(t,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon","className"]),{getPrefixCls:v}=N.useContext(_s),S=e||v("notification"),b=`${S}-notice`,A=VN(S),[C,E,k]=YN(S,A);return C(N.createElement("div",{className:et(`${b}-pure-panel`,E,n,k,A)},N.createElement(SW,{prefixCls:S}),N.createElement(WN,Object.assign({},m,{prefixCls:S,eventKey:"pure",duration:null,closable:f,className:et({notificationClassName:g}),closeIcon:QC(S,h),content:N.createElement(QN,{prefixCls:b,icon:r,type:i,message:o,description:l,btn:c})}))))};function EW(t,e,n){let r;switch(t){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:e,bottom:"auto"};break;case"topLeft":r={left:0,top:e,bottom:"auto"};break;case"topRight":r={right:0,top:e,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function TW(t){return{motionName:`${t}-fade`}}var OW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const NA=24,AW=4.5,RW="topRight",kW=t=>{let{children:e,prefixCls:n}=t;const r=VN(n),[i,o,l]=YN(n,r);return i(je.createElement(XV,{classNames:{list:et(o,l,r)}},e))},NW=(t,e)=>{let{prefixCls:n,key:r}=e;return je.createElement(kW,{prefixCls:n,key:r},t)},PW=je.forwardRef((t,e)=>{const{top:n,bottom:r,prefixCls:i,getContainer:o,maxCount:l,rtl:c,onAllRemoved:f,stack:h,duration:g}=t,{getPrefixCls:m,getPopupContainer:v,notification:S,direction:b}=N.useContext(_s),[,A]=yf(),C=i||m("notification"),E=R=>EW(R,n??NA,r??NA),k=()=>et({[`${C}-rtl`]:c??b==="rtl"}),T=()=>TW(C),[x,w]=rW({prefixCls:C,style:E,className:k,motion:T,closable:!0,closeIcon:QC(C),duration:g??AW,getContainer:()=>o?.()||v?.()||document.body,maxCount:l,onAllRemoved:f,renderNotifications:NW,stack:h===!1?!1:{threshold:typeof h=="object"?h?.threshold:void 0,offset:8,gap:A.margin}});return je.useImperativeHandle(e,()=>Object.assign(Object.assign({},x),{prefixCls:C,notification:S})),w});function ZN(t){const e=je.useRef(null);return[je.useMemo(()=>{const r=c=>{var f;if(!e.current)return;const{open:h,prefixCls:g,notification:m}=e.current,v=`${g}-notice`,{message:S,description:b,icon:A,type:C,btn:E,className:k,style:T,role:x="alert",closeIcon:w}=c,R=OW(c,["message","description","icon","type","btn","className","style","role","closeIcon"]),I=QC(v,typeof w<"u"?w:m?.closeIcon);return h(Object.assign(Object.assign({placement:(f=t?.placement)!==null&&f!==void 0?f:RW},R),{content:je.createElement(QN,{prefixCls:v,icon:A,type:C,message:S,description:b,btn:E,role:x}),className:et(C&&`${v}-${C}`,k,m?.className),style:Object.assign(Object.assign({},m?.style),T),closeIcon:I,closable:!!I}))},o={open:r,destroy:c=>{var f,h;c!==void 0?(f=e.current)===null||f===void 0||f.close(c):(h=e.current)===null||h===void 0||h.destroy()}};return["success","info","warning","error"].forEach(c=>{o[c]=f=>r(Object.assign(Object.assign({},f),{type:c}))}),o},[]),je.createElement(PW,Object.assign({key:"notification-holder"},t,{ref:e}))]}function DW(t){return ZN(t)}const LW=je.createContext({});function MW(t,e,n){var r=n||{},i=r.noTrailing,o=i===void 0?!1:i,l=r.noLeading,c=l===void 0?!1:l,f=r.debounceMode,h=f===void 0?void 0:f,g,m=!1,v=0;function S(){g&&clearTimeout(g)}function b(C){var E=C||{},k=E.upcomingOnly,T=k===void 0?!1:k;S(),m=!T}function A(){for(var C=arguments.length,E=new Array(C),k=0;k<C;k++)E[k]=arguments[k];var T=this,x=Date.now()-v;if(m)return;function w(){v=Date.now(),e.apply(T,E)}function R(){g=void 0}!c&&h&&!g&&w(),S(),h===void 0&&x>t?c?(v=Date.now(),o||(g=setTimeout(h?R:w,t))):w():o!==!0&&(g=setTimeout(h?R:w,h===void 0?t-x:t))}return A.cancel=b,A}function IW(t,e,n){var r={},i=r.atBegin,o=i===void 0?!1:i;return MW(t,e,{debounceMode:o!==!1})}const FW=new Yc("antSpinMove",{to:{opacity:1}}),$W=new Yc("antRotate",{to:{transform:"rotate(405deg)"}}),jW=t=>{const{componentCls:e,calc:n}=t;return{[`${e}`]:Object.assign(Object.assign({},bN(t)),{position:"absolute",display:"none",color:t.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${t.motionDurationSlow} ${t.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},[`${e}-text`]:{fontSize:t.fontSize,paddingTop:n(n(t.dotSize).sub(t.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:t.colorBgMask,zIndex:t.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${t.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[`${e}-dot ${e}-dot-item`]:{backgroundColor:t.colorWhite},[`${e}-text`]:{color:t.colorTextLightSolid}},"&-nested-loading":{position:"relative",[`> div > ${e}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:t.contentHeight,[`${e}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(t.dotSize).mul(-1).div(2).equal()},[`${e}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${t.colorBgContainer}`},[`&${e}-show-text ${e}-dot`]:{marginTop:n(t.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${e}-dot`]:{margin:n(t.dotSizeSM).mul(-1).div(2).equal()},[`${e}-text`]:{paddingTop:n(n(t.dotSizeSM).sub(t.fontSize)).div(2).add(2).equal()},[`&${e}-show-text ${e}-dot`]:{marginTop:n(t.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${e}-dot`]:{margin:n(t.dotSizeLG).mul(-1).div(2).equal()},[`${e}-text`]:{paddingTop:n(n(t.dotSizeLG).sub(t.fontSize)).div(2).add(2).equal()},[`&${e}-show-text ${e}-dot`]:{marginTop:n(t.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${e}-container`]:{position:"relative",transition:`opacity ${t.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:t.colorBgContainer,opacity:0,transition:`all ${t.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:t.spinDotDefault},[`${e}-dot`]:{position:"relative",display:"inline-block",fontSize:t.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(t.dotSize).sub(n(t.marginXXS).div(2)).div(2).equal(),height:n(t.dotSize).sub(n(t.marginXXS).div(2)).div(2).equal(),backgroundColor:t.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:FW,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:$W,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e}-dot`]:{fontSize:t.dotSizeSM,i:{width:n(n(t.dotSizeSM).sub(n(t.marginXXS).div(2))).div(2).equal(),height:n(n(t.dotSizeSM).sub(n(t.marginXXS).div(2))).div(2).equal()}},[`&-lg ${e}-dot`]:{fontSize:t.dotSizeLG,i:{width:n(n(t.dotSizeLG).sub(t.marginXXS)).div(2).equal(),height:n(n(t.dotSizeLG).sub(t.marginXXS)).div(2).equal()}},[`&${e}-show-text ${e}-text`]:{display:"block"}})}},zW=t=>{const{controlHeightLG:e,controlHeight:n}=t;return{contentHeight:400,dotSize:e/2,dotSizeSM:e*.35,dotSizeLG:n}},HW=kN("Spin",t=>{const e=M_(t,{spinDotDefault:t.colorTextDescription});return[jW(e)]},zW);var qW=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let dy=null;function UW(t,e){const{indicator:n}=e,r=`${t}-dot`;return n===null?null:Db(n)?xA(n,{className:et(n.props.className,r)}):Db(dy)?xA(dy,{className:et(dy.props.className,r)}):N.createElement("span",{className:et(r,`${t}-dot-spin`)},N.createElement("i",{className:`${t}-dot-item`,key:1}),N.createElement("i",{className:`${t}-dot-item`,key:2}),N.createElement("i",{className:`${t}-dot-item`,key:3}),N.createElement("i",{className:`${t}-dot-item`,key:4}))}function VW(t,e){return!!t&&!!e&&!isNaN(Number(e))}const JN=t=>{const{prefixCls:e,spinning:n=!0,delay:r=0,className:i,rootClassName:o,size:l="default",tip:c,wrapperClassName:f,style:h,children:g,fullscreen:m=!1}=t,v=qW(t,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen"]),{getPrefixCls:S}=N.useContext(_s),b=S("spin",e),[A,C,E]=HW(b),[k,T]=N.useState(()=>n&&!VW(n,r));N.useEffect(()=>{if(n){const Z=IW(r,()=>{T(!0)});return Z(),()=>{var J;(J=Z?.cancel)===null||J===void 0||J.call(Z)}}T(!1)},[r,n]);const x=N.useMemo(()=>typeof g<"u"&&!m,[g,m]),{direction:w,spin:R}=N.useContext(_s),I=et(b,R?.className,{[`${b}-sm`]:l==="small",[`${b}-lg`]:l==="large",[`${b}-spinning`]:k,[`${b}-show-text`]:!!c,[`${b}-fullscreen`]:m,[`${b}-fullscreen-show`]:m&&k,[`${b}-rtl`]:w==="rtl"},i,o,C,E),F=et(`${b}-container`,{[`${b}-blur`]:k}),U=vq(v,["indicator"]),V=Object.assign(Object.assign({},R?.style),h),K=N.createElement("div",Object.assign({},U,{style:V,className:I,"aria-live":"polite","aria-busy":k}),UW(b,t),c&&(x||m)?N.createElement("div",{className:`${b}-text`},c):null);return A(x?N.createElement("div",Object.assign({},U,{className:et(`${b}-nested-loading`,f,C,E)}),k&&N.createElement("div",{key:"loading"},K),N.createElement("div",{className:F,key:"container"},g)):K)};JN.setDefaultIndicator=t=>{dy=t};let Sa=null,hy=t=>t(),zy=[],fg={};function PA(){const{getContainer:t,rtl:e,maxCount:n,top:r,bottom:i}=fg,o=t?.()||document.body;return{getContainer:()=>o,rtl:e,maxCount:n,top:r,bottom:i}}const WW=je.forwardRef((t,e)=>{const{notificationConfig:n,sync:r}=t,{getPrefixCls:i}=N.useContext(_s),o=fg.prefixCls||i("notification"),l=N.useContext(LW),[c,f]=ZN(Object.assign(Object.assign(Object.assign({},n),{prefixCls:o}),l.notification));return je.useEffect(r,[]),je.useImperativeHandle(e,()=>{const h=Object.assign({},c);return Object.keys(h).forEach(g=>{h[g]=function(){return r(),c[g].apply(c,arguments)}}),{instance:h,sync:r}}),f}),GW=je.forwardRef((t,e)=>{const[n,r]=je.useState(PA),i=()=>{r(PA)};je.useEffect(i,[]);const o=WV(),l=o.getRootPrefixCls(),c=o.getIconPrefixCls(),f=o.getTheme(),h=je.createElement(WW,{ref:e,sync:i,notificationConfig:n});return je.createElement(Qh,{prefixCls:l,iconPrefixCls:c,theme:f},o.holderRender?o.holderRender(h):h)});function ZC(){if(!Sa){const t=document.createDocumentFragment(),e={fragment:t};Sa=e,hy(()=>{dW(je.createElement(GW,{ref:n=>{const{instance:r,sync:i}=n||{};Promise.resolve().then(()=>{!e.instance&&r&&(e.instance=r,e.sync=i,ZC())})}}),t)});return}Sa.instance&&(zy.forEach(t=>{switch(t.type){case"open":{hy(()=>{Sa.instance.open(Object.assign(Object.assign({},fg),t.config))});break}case"destroy":hy(()=>{Sa?.instance.destroy(t.key)});break}}),zy=[])}function BW(t){fg=Object.assign(Object.assign({},fg),t),hy(()=>{var e;(e=Sa?.sync)===null||e===void 0||e.call(Sa)})}function eP(t){zy.push({type:"open",config:t}),ZC()}function KW(t){zy.push({type:"destroy",key:t}),ZC()}const XW=["success","info","warning","error"],YW={open:eP,destroy:KW,config:BW,useNotification:DW,_InternalPanelDoNotUseOrYouWillBeFired:xW},tP=YW;XW.forEach(t=>{tP[t]=e=>eP(Object.assign(Object.assign({},e),{type:t}))});const bo={width:100,height:100},fi=.85,wh=.25,nP=10,Hy=14,Vm=.75,Wm=.9,St=100,QW=.7,ZW=.6,JW=(t,e)=>t<e?QW:ZW,eG=(t,e,n)=>({width:t*(n||St)/St,height:e*(n||St)/St}),tG=(t,e)=>{const n=document.createElement("canvas").getContext("2d");if(n)return n.font="10px sans-serif",Math.ceil(t.length*n.measureText("M").width/e)},rP=(t,e,n,r,i,o,l,c,f,h,g)=>{const m=JW(i,o);if(g)return{width:i*m,height:o*m};const v=Math.min((t==="multistep"?e:n).width+r.width,i*m),S=Math.max(Math.min((t==="multistep"?e.height+r.height:n.height)+r.height+f+h,o*m),o*c);return{width:v,height:S}},nG=16,xi=window.screen.width,Zi=window.screen.height,Tm=.8,Om=.6,iP=({inputText:t,setInputText:e,handleKeyDown:n,inputPlaceholder:r,type:i})=>ve.jsx(T9,{value:t,onChange:o=>e(o.target.value),onKeyDown:n,placeholder:r,type:i,autoFocus:!0}),rG=({fields:t,selectedRadioButton:e,setSelectedRadioButton:n,handleKeyDown:r,fontSize:i})=>ve.jsx(ve.Fragment,{children:t?.map(o=>ve.jsx(J2,{label:o,checked:e===o,onChange:()=>n(o),onKeyDown:r,style:{fontSize:`${i}px`},autoFocus:o===t[0]},o))}),iG=({fields:t,selectedCheckboxes:e,setSelectedCheckboxes:n,handleKeyDown:r,fontSize:i})=>ve.jsx(ve.Fragment,{children:t?.map(o=>ve.jsx(ek,{label:o,checked:e.includes(o),autoFocus:o===t[0],onKeyDown:r,style:{fontSize:`${i}px`},onChange:()=>{e.includes(o)?n(e.filter(l=>l!==o)):n([...e,o])}},o))}),oG=(t,e,n,r,i)=>ve.jsx(iP,{inputText:e,setInputText:n,handleKeyDown:r,inputPlaceholder:i("operatorDialog.enterAnswer"),type:"text"}),aG=(t,e,n,r,i)=>ve.jsx(iP,{inputText:e,setInputText:n,handleKeyDown:r,inputPlaceholder:i("operatorDialog.enterAnswer"),type:"number"}),sG=(t,e,n,r)=>ve.jsx(rG,{fields:t.widget_info?.fields??[],selectedRadioButton:e,setSelectedRadioButton:n,handleKeyDown:r,fontSize:t.font_size??12}),lG=(t,e,n,r)=>ve.jsx(iG,{fields:t.widget_info?.fields??[],selectedCheckboxes:e,setSelectedCheckboxes:n,handleKeyDown:r,fontSize:t.font_size??12}),oP=(t,e,n,r,i)=>ve.jsx("iframe",{srcDoc:t,height:e,width:n,style:{border:`${r}px solid black`},title:i("operatorDialog.htmlCodeTitle")}),aP=(t,e,n,r,i)=>ve.jsx("iframe",{src:t,height:e,width:n,style:{border:`${r}px solid black`},title:i("operatorDialog.htmlLinkTitle")}),uG=(t,e,n,r,i,o,l,c)=>ve.jsx(D9,{id:t.title_bar,children:t.widget_info?.steps?.map(f=>ve.jsx(DC,{id:f.info?.title,title:f.info?.title,style:{fontSize:`${t.font_size}px`},panel:ve.jsx("div",{className:"step-container",children:ve.jsxs("div",{className:"step-content",children:[f.info?.text?.split(`
|
|
575
|
+
`).map(h=>ve.jsx("p",{style:{textAlign:"left"},children:h},h)),f.info.image&&ve.jsx("img",{src:`data:image/image;base64,${f.info.image?.base64}`,alt:"",style:{maxWidth:`${Math.min(e.width+n.width,xi*l)}px`,maxHeight:`${Math.min(e.height+n.height,Zi*l)}px`,transform:`scale(${(f.info.image?.width??St)/St})`,transformOrigin:"top center",...o}}),f.info.html?.code_or_url&&f.info.html?.is_raw_html&&oP(f.info.html.code_or_url,Math.min((e.height+n.height)*r*((f.info.html?.width??St)/St),Zi*l),Math.min((e.width+n.width)*i*((f.info.html?.width??St)/St),xi*l),f.info.html?.border??0,c),f.info.html?.code_or_url&&!f.info.html?.is_raw_html&&aP(f.info.html.code_or_url,Math.min((e.height+n.height)*r*((f.info.html?.width??St)/St),Zi*l),Math.min((e.width+n.width)*i*((f.info.html?.width??St)/St),xi*l),f.info.html?.border??0,c)]})})},f.info?.title))});function cG(t){const{t:e,i18n:n}=Og(),[r,i]=N.useState(!1),[o,l]=N.useState(""),[c,f]=N.useState(""),[h,g]=N.useState([]),[m,v]=N.useState(bo),[S,b]=N.useState(bo),[A,C]=N.useState(!1),E=N.useRef(bo),k=t.widget_type??"base",T=xi<Zi?Tm:Om,x=nP*(t.font_size?t.font_size:Hy)/Hy,w=()=>{i(!1),fetch("api/stop").then(Y=>{if(Y.ok)return Y.text();console.log("Request failed. Status: "+Y.status)}).catch(Y=>{console.log("Request failed. Error: "+Y)}),tP.error({message:e("operatorDialog.notificationTitle"),description:e("operatorDialog.notificationDesc")})},R=async()=>{if(t.widget_type)switch(t.widget_type){case"textinput":case"numericinput":if(o.trim()===""||o==="."||o===".."){alert(e("operatorDialog.fieldNotEmpty"));return}break;case"radiobutton":if(c===""){alert(e("operatorDialog.fieldNotEmpty"));return}break;case"checkbox":if(h.length===0){alert(e("operatorDialog.fieldNotEmpty"));return}break}i(!1);let Y="";function ae(le){return encodeURIComponent(le).replace(/[!-'()*+,/:;<=>?@[\]^`{|}~]/g,function(ie){return"%"+ie.charCodeAt(0).toString(nG)})}switch(t.widget_type){case"textinput":Y=ae(o);break;case"numericinput":Y=o;break;case"radiobutton":Y=ae(c);break;case"checkbox":Y=JSON.stringify(h.map(le=>ae(le)));break;default:Y="ok";break}t.onConfirm&&t.onConfirm(Y);try{const le=await Uk.post(`/api/confirm_dialog_box/${Y}`);console.log(le.data)}catch(le){console.error("Error confirming dialog box:",le)}},I=Y=>{const ae=Y.key;if(ae==="Enter"){R();return}t.widget_info?.fields&&F(ae)},F=Y=>{const ae=U(Y);ae>=0&&(k==="radiobutton"?V(ae):k==="checkbox"&&K(ae))},U=Y=>t.widget_info?.fields?.findIndex(ae=>ae.startsWith(Y))??-1,V=Y=>{t.widget_info?.fields&&f(t.widget_info.fields[Y])},K=Y=>{if(t.widget_info?.fields){const ae=t.widget_info.fields[Y];h.includes(ae)?g(h.filter(le=>le!==ae)):g([...h,ae])}},Z=(Y,ae,le)=>({width:Y*(le||St)/St,height:ae*(le||St)/St}),J=Y=>{const{naturalWidth:ae,naturalHeight:le}=Y.target;v(Z(ae,le,t.image_width??St))},oe=(Y,ae)=>{const le=document.createElement("canvas").getContext("2d");if(le)return le.font="10px sans-serif",Math.ceil(Y.length*le.measureText("M").width/ae)},fe=Math.min((k==="multistep"?E.current:m).width+bo.width,xi*fi),Q=(oe(t.dialog_text,fe)??1)*x,re=t.widget_info?.steps?.[0],z=re?.info?.text?(oe(re.info.text,fe)??1)*x:x*2,{width:W,height:$}=rP(k,E.current,m,bo,xi,Zi,fi,wh,Q,z,A),B={border:`${t.image_border??0}px solid black`,display:"block",margin:"0 auto"};return N.useEffect(()=>{t.language&&n.changeLanguage(t.language)},[t.language,n]),N.useEffect(()=>{console.log("Current language:",n.language),console.log("All translations:",n.getResourceBundle(n.language,"translation"))},[n]),N.useEffect(()=>{t.is_visible&&i(!0)},[t.is_visible,t.id]),N.useEffect(()=>{if(k==="multistep"){let Y=!1;const ae=(le,ie)=>{const{naturalWidth:q,naturalHeight:se}=le;E.current.width=Math.max(E.current.width,q*(ie/St)),E.current.height=Math.max(E.current.height,se*(ie/St)),b(E.current)};t.widget_info?.steps?.forEach(le=>{if(le.info.image){const ie=`data:image/image;base64,${le.info.image?.base64}`,q=new Image;q.src=ie,q.onload=()=>ae(q,le.info.image?.width??St)}le.info.html?.code_or_url&&(Y=!0)}),C(Y)}},[t.widget_info,k]),ve.jsxs(xC,{title:t.title_bar,icon:"info-sign",isOpen:r,onClose:w,canOutsideClickClose:!1,style:{width:k==="multistep"?`${W}px`:"auto",height:k==="multistep"?`${$}px`:"auto",minWidth:xi*wh,minHeight:Zi*wh,maxWidth:xi*fi,maxHeight:Zi*fi,fontSize:`${t.font_size}px`},children:[ve.jsxs("div",{className:u2,style:{wordWrap:"break-word",wordBreak:"break-word",maxHeight:Zi*fi,overflowY:"auto",maxWidth:xi*fi,padding:"10px"},children:[t.dialog_text.split(`
|
|
576
|
+
`).map(Y=>ve.jsx("p",{style:{textAlign:"left"},children:Y},Y.trim())),k==="textinput"&&oG(t,o,l,I,e),k==="numericinput"&&aG(t,o,l,I,e),k==="radiobutton"&&sG(t,c,f,I),k==="checkbox"&&lG(t,h,g,I),k==="multistep"&&uG(t,S,bo,Vm,Wm,B,T,e),ve.jsx("p",{children:" "}),t.image_base64&&ve.jsx("div",{className:"image-container",children:ve.jsx("img",{src:`data:image/image;base64,${t.image_base64}`,alt:"",onLoad:J,style:{width:`${t.image_width}%`,height:`${t.image_width}%`,maxWidth:`${W-bo.width/2}px`,maxHeight:`${$-bo.height/2}px`,objectFit:"scale-down",transform:`scale(${(t.image_width??St)/St})`,transformOrigin:"top center",...B}})}),t.html_code&&oP(t.html_code,Zi*(xi<Zi?Tm:Om)*Vm*((t.html_width??St)/St),xi*(xi<Zi?Tm:Om)*Wm*((t.html_width??St)/St),t.html_border??0,e),t.html_url&&aP(t.html_url,Zi*(xi<Zi?Tm:Om)*Vm*((t.html_width??St)/St),xi*(xi<Zi?Tm:Om)*Wm*((t.html_width??St)/St),t.html_border??0,e)]}),ve.jsx("div",{className:Q3,children:ve.jsx(df,{intent:"primary",onClick:R,autoFocus:k==="base"||k==="multistep",children:e("button.confirm")})})]})}function fG(t){return ve.jsx(ve.Fragment,{children:t.val})}function dG(t){return ve.jsx(N.Fragment,{children:t.name})}function Gm(t){switch(t.status){case"ready":return ve.jsx(Dr,{icon:"time",intent:"success",className:"status-icon status-icon-wait"});case"run":return ve.jsxs("div",{style:{marginTop:"4px"},className:"status-icon status-icon-run",children:[" ",ve.jsx(R2,{size:15})]});case"passed":return ve.jsx(Dr,{icon:"tick-circle",intent:"success",className:"status-icon status-icon-success"});case"failed":return ve.jsx(Dr,{icon:"cross",intent:"danger",className:"status-icon status-icon-fail"});case"":return ve.jsx(Dr,{icon:"time",intent:"none",className:"status-icon status-icon-wait"});default:return ve.jsx(Dr,{icon:"circle",intent:"none",className:"status-icon status-icon-empty"})}}Gm.defaultProps={defaultOpen:!0};const DA={margin:2};function hG(t){return ve.jsxs("div",{className:"test-data",children:[LC.map(t.msg,(e,n)=>e&&ve.jsx(Ca,{style:DA,minimal:!0,intent:"primary",children:e},n)),t.assertion_msg&&ve.jsx(Ca,{style:DA,minimal:!0,intent:"warning",children:t.assertion_msg.split(`
|
|
577
|
+
`)[0]},"assertion")]})}const pG=100;class mG extends N.Component{constructor(e){super(e),this.state={elapsedTime:this.calculateElapsedTime(),clock:null},this.initClock=this.initClock.bind(this),this.updateClock=this.updateClock.bind(this),this.calculateElapsedTime=this.calculateElapsedTime.bind(this),this.stopClock=this.stopClock.bind(this)}calculateElapsedTime(){const{status:e,start_time:n,stop_time:r}=this.props;return e!=="run"&&n&&r&&r>=n?r-n:e==="run"&&n?Date.now()/1e3-n:0}formatSeconds(e){return Math.floor(e).toString()}componentWillUnmount(){this.stopClock()}componentDidMount(){this.props.status==="run"&&this.initClock()}componentDidUpdate(e){this.props.status!==e.status&&(this.props.status==="run"?(this.setState({elapsedTime:this.calculateElapsedTime()}),this.initClock()):e.status==="run"&&(this.stopClock(),this.setState({elapsedTime:this.calculateElapsedTime()}))),(this.props.start_time!==e.start_time||this.props.stop_time!==e.stop_time)&&this.setState({elapsedTime:this.calculateElapsedTime()})}stopClock(){this.state.clock&&(clearInterval(this.state.clock),this.setState({clock:null}))}updateClock(){this.props.status==="run"&&this.props.commonTestRunStatus==="run"&&this.setState({elapsedTime:this.calculateElapsedTime()})}initClock(){this.stopClock(),this.setState({clock:setInterval(this.updateClock,pG)})}render(){return ve.jsx("div",{children:this.formatSeconds(this.state.elapsedTime)})}}const gG=30;class I_ extends N.Component{constructor(e){super(e),this.handleClick=()=>this.setState(n=>({isOpen:!n.isOpen})),this.state={isOpen:e.defaultOpen},this.handleClick=this.handleClick.bind(this)}static{this.LOADING_ICON=ve.jsx("div",{style:{margin:gG},children:ve.jsx(GH,{spin:!0})})}static{this.defaultProps={defaultOpen:!0}}render(){const{t:e,i18n:n}=this.props;return n?.isInitialized?ve.jsxs(w9,{style:{padding:0,borderRadius:0},className:"test-suite",children:[ve.jsxs("div",{style:{display:"flex"},children:[ve.jsx("div",{style:{flex:"1 1 0%"},children:ve.jsx(df,{style:{margin:"2px"},minimal:!0,onClick:this.handleClick,children:ve.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[ve.jsx(Gm,{status:this.props.commonTestRunStatus!="run"&&(this.props.test.status=="run"||this.props.test.status=="ready")?"stucked":this.props.test.status}),ve.jsx(Dr,{style:{marginRight:"10px",marginLeft:"10px"},icon:this.state.isOpen?"chevron-down":"chevron-right"}),ve.jsx("span",{children:this.renderName(this.props.test.name,this.props.index+1)})]})})}),this.renderTestSuiteRightPanel(this.props.test)]}),ve.jsx(S9,{isOpen:this.state.isOpen,keepChildrenMounted:!0,className:"test-suite-content",children:this.props.test.status!="busy"?this.renderTests(this.props.test.cases):ve.jsx(JN,{indicator:I_.LOADING_ICON})})]}):ve.jsx("div",{children:e("testSuite.loading")})}renderName(e,n){const r=LC.isEmpty(e);return ve.jsxs(D2,{className:`test-suite-name ${r?fT:""}`,children:[ve.jsx("span",{className:L3,children:n}),ve.jsx("span",{style:{marginLeft:"0.5em"},children:r?this.props.t("testSuite.stubName"):e})]})}renderTests(e){let n=[];e&&(n=Object.keys(e));const r=n.map(o=>e[o]),i=[{id:"status",name:"",selector:o=>o,cell:this.cellRendererStatus.bind(this,r),grow:.5,width:"10px"},{id:"test_number",name:"",selector:o=>o,cell:this.cellRendererNumber.bind(this,r),grow:.5,width:"65px"},{id:"name",name:this.props.t("testSuite.nameColumn"),selector:o=>o,cell:this.cellRendererName.bind(this,r),grow:6},{id:"data",name:this.props.t("testSuite.dataColumn"),selector:o=>o,cell:this.cellRendererData.bind(this,r),grow:18}];return ve.jsx("div",{style:{margin:"3px",paddingBottom:"4px",borderRadius:"2px"},children:ve.jsx(U7,{noHeader:!0,columns:i,data:n,highlightOnHover:!0,dense:!0})})}renderTestSuiteRightPanel(e){return ve.jsxs("div",{className:r2,style:{display:"flex",padding:"5px"},children:[!this.state.isOpen&&ve.jsx(ve.Fragment,{children:Object.entries(e.cases).map(([n,r])=>ve.jsx("span",{style:{margin:"2px"},children:ve.jsx(Gm,{status:r.status})},r.name))}),ve.jsx(Ca,{minimal:!0,style:{margin:"2px",minWidth:"15px"},children:e.status!="ready"&&ve.jsx(mG,{status:e.status,commonTestRunStatus:this.props.commonTestRunStatus,start_time:e.start_time,stop_time:e.stop_time})})]})}commonCellRender(e,n,r=!1){return ve.jsx("div",{className:r?fT:void 0,style:{display:"inline-block",verticalAlign:"middle"},children:e},n)}cellRendererNumber(e,n,r){return this.commonCellRender(ve.jsx("div",{style:{marginTop:"0.2em",marginBottom:"0.2em"},children:ve.jsx(fG,{val:r+1})}),`number_${r}_${n}}`)}cellRendererName(e,n,r){const i=e[r];return this.commonCellRender(ve.jsx("div",{style:{marginTop:"0.2em",marginBottom:"0.2em"},children:ve.jsx(dG,{name:i.name})}),`name_${r}_${n}`)}cellRendererData(e,n,r){const i=e[r];return this.commonCellRender(ve.jsx("div",{style:{marginTop:"0.2em",marginBottom:"0.2em"},children:ve.jsx(hG,{assertion_msg:i.assertion_msg,msg:i.msg})}),`data_${r}_${n}`)}cellRendererStatus(e,n,r){const i=e[r],{info:o,type:l}=i.dialog_box.widget||{},{base64:c,width:f,border:h}=i.dialog_box.image||{};return this.commonCellRender(ve.jsxs("div",{style:{marginTop:"0.2em",marginBottom:"0.2em"},children:[i.dialog_box.dialog_text&&i.status==="run"&&this.props.commonTestRunStatus==="run"&&i.dialog_box.visible&&ve.jsx(cG,{title_bar:i.dialog_box.title_bar??i.name,dialog_text:i.dialog_box.dialog_text,widget_info:o,widget_type:l,image_base64:c,image_width:f,image_border:h,is_visible:i.dialog_box.visible,id:i.dialog_box.id,font_size:i.dialog_box.font_size,html_code:i.dialog_box.html?.is_raw_html?i.dialog_box.html?.code_or_url:void 0,html_url:i.dialog_box.html?.is_raw_html?void 0:i.dialog_box.html?.code_or_url,html_width:i.dialog_box.html?.width,html_border:i.dialog_box.html?.border}),ve.jsx(Gm,{status:this.props.commonTestRunStatus!=="run"&&(i.status==="run"||i.status==="ready")?"stucked":i.status})]}),`status_${r}_${n}`)}}I_.defaultProps={defaultOpen:!0};const vG=Wb()(I_),yG=(t,e,n,r)=>ve.jsx("iframe",{srcDoc:t,height:e,width:n,style:{border:`${r}px solid black`},title:"HTML Code"}),_G=(t,e,n,r)=>ve.jsx("iframe",{src:t,height:e,width:n,style:{border:`${r}px solid black`},title:"HTML Link"});function wG(t){const{t:e}=Og(),[n,r]=N.useState(!1),[i,o]=N.useState(bo),l=window.screen.width,c=window.screen.height,f=async()=>{r(!1);try{const C=await Uk.post(`/api/confirm_operator_msg/${JSON.stringify(n)}`);console.log(C.data)}catch(C){console.error("Error confirming operator message:",C)}},h=C=>{const{naturalWidth:E,naturalHeight:k}=C.target;o(eG(E,k,t.image_width??St))},g=nP*(t.font_size??Hy)/Hy,m=Math.min(i.width+bo.width,l*fi),v=(tG(t.msg,m)??1)*g,{width:S,height:b}=rP("base",i,i,bo,l,c,fi,wh,v,0,!!t.html_code||!!t.html_url),A={border:`${t.image_border??0}px solid black`,display:"block",margin:"0 auto"};return N.useEffect(()=>{const C=E=>{E.key==="Escape"&&f()};return window.addEventListener("keydown",C),()=>{window.removeEventListener("keydown",C)}}),N.useEffect(()=>{t.is_visible&&r(!0)},[t.id,t.is_visible]),N.useEffect(()=>(n?document.body.style.overflow="hidden":document.body.style.overflow="auto",()=>{document.body.style.overflow="auto"}),[n]),ve.jsx(xC,{title:t.title||e("operatorDialog.defaultTitle"),icon:"info-sign",isOpen:n,onClose:f,canOutsideClickClose:!1,style:{width:"auto",height:"auto",minWidth:l*wh,minHeight:c*wh,maxWidth:l*fi,maxHeight:c*fi,fontSize:`${t.font_size}px`},children:ve.jsxs("div",{className:u2,style:{wordWrap:"break-word",wordBreak:"break-word",maxHeight:c*fi,overflowY:"auto",overflow:"hidden",maxWidth:l*fi,padding:"10px"},children:[t.msg.split(`
|
|
578
|
+
`).map(C=>ve.jsx("p",{style:{textAlign:"left"},children:C},C)),t.image_base64&&ve.jsx("div",{className:"image-container",children:ve.jsx("img",{src:`data:image/image;base64,${t.image_base64}`,alt:"",onLoad:h,style:{width:`${t.image_width}%`,height:`${t.image_width}%`,maxWidth:`${S-bo.width/2}px`,maxHeight:`${b-bo.height/2}px`,objectFit:"scale-down",transform:`scale(${(t.image_width??St)/St})`,transformOrigin:"top center",...A}})}),t.html_code&&yG(t.html_code,c*fi*Vm*((t.html_width??St)/St),l*fi*Wm*((t.html_width??St)/St),t.html_border??0),t.html_url&&_G(t.html_url,c*fi*Vm*((t.html_width??St)/St),l*fi*Wm*((t.html_width??St)/St),t.html_border??0)]})})}const LA=1e3;class SG extends N.Component{constructor(e){super(e),this.elements_count=0,this.state={initialized:e.i18n?.isInitialized??!1}}componentDidMount(){!this.state.initialized&&this.props.i18n&&this.props.i18n.on("initialized",()=>{this.setState({initialized:!0})})}render(){const{t:e,i18n:n}=this.props;if(console.log("SuiteList props",{i18n:this.props.i18n}),!n||!this.state.initialized)return ve.jsx("div",{children:"Loading translations..."});if(this.props.db_state.name==null)return ve.jsxs("div",{children:[ve.jsx(ey,{children:e("suiteList.loadingTests")}),ve.jsx(D2,{children:e("suiteList.refreshHint")})]});const r=this.props.db_state,i=r.start_time?new Date(r.start_time*LA).toLocaleString():"",o=r.stop_time?new Date(r.stop_time*LA).toLocaleString():"",l=r.timezone??"",c=r.alert;let f=[],h={};r.modules&&(f=Object.keys(r.modules),h=r.modules,this.elements_count=f.length);const g={margin:1};return ve.jsxs(ve.Fragment,{children:[ve.jsxs("div",{children:[ve.jsx(n5,{children:r.name}),r.test_stand&&ve.jsxs(Ca,{minimal:!0,style:g,children:[e("suiteList.standName"),": ",r.test_stand?.name]}),i&&ve.jsxs(Ca,{minimal:!0,style:g,children:[e("suiteList.startTime"),": ",i+l]}),o&&ve.jsxs(Ca,{minimal:!0,style:g,children:[e("suiteList.finishTime"),": ",o+l]}),c&&ve.jsxs(Ca,{minimal:!0,style:g,children:[e("suiteList.alert"),": ",c]}),r.test_stand?.info&&Object.keys(r.test_stand.info).length>0&&ve.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"5px"},children:Object.entries(r.test_stand.info).map(([m,v])=>ve.jsxs(Ca,{minimal:!0,style:g,children:[r.test_stand?.name," ",m,":"," ",typeof v=="string"?v:JSON.stringify(v)]},m))}),ve.jsx(b9,{}),LC.map([...f],(m,v)=>this.suiteRender(v,{name:m,test:h[m]}))]}),ve.jsx("div",{children:this.props.db_state.operator_msg?.msg&&this.props.db_state.operator_msg.msg.length>0&&this.props.db_state.operator_msg.visible&&ve.jsx(wG,{msg:this.props.db_state.operator_msg?.msg,title:this.props.db_state.operator_msg?.title??e("operatorDialog.defaultTitle"),image_base64:this.props.db_state.operator_msg?.image?.base64,image_width:this.props.db_state.operator_msg?.image?.width,image_border:this.props.db_state.operator_msg?.image?.border,is_visible:this.props.db_state.operator_msg?.visible,id:this.props.db_state.operator_msg?.id,font_size:this.props.db_state.operator_msg?.font_size,html_code:this.props.db_state.operator_msg?.html?.is_raw_html?this.props.db_state.operator_msg?.html?.code_or_url:void 0,html_url:this.props.db_state.operator_msg?.html?.is_raw_html?void 0:this.props.db_state.operator_msg?.html?.code_or_url,html_width:this.props.db_state.operator_msg?.html?.width,html_border:this.props.db_state.operator_msg?.html?.border})})]})}suiteRender(e,n){return ve.jsx(vG,{index:e,test:n.test,defaultOpen:this.elements_count<5&&!this.props.defaultClose,commonTestRunStatus:this.props.db_state.status},`${n.name}_${e}`)}}const bG=Wb()(SG);class CG extends N.Component{render(){const e=n=>{switch(n){case"run":return Oi.PRIMARY;case"failed":return Oi.DANGER;case"passed":return Oi.SUCCESS;default:return Oi.NONE}};return ve.jsx(k9,{intent:e(this.props.status),value:this.props.percentage/100,animate:this.props.percentage/100<1&&this.props.status=="run"})}}function xG(t,e){switch(e){case"RELOAD_START":return"WAIT_RELOAD";case"RELOAD":return"RELOAD";default:throw new Error}}const EG=t=>`The application will be updated in ${t} seconds!`;function TG(t){const[e,n]=N.useReducer(xG,"BEFORE_RELOAD");return N.useEffect(()=>{switch(e){case"WAIT_RELOAD":setTimeout(()=>{n("RELOAD")},t.reload_timeout_s*1e3);return;case"RELOAD":window.location.reload();return;default:return}},[e,t.reload_timeout_s]),ve.jsx(I5,{isOpen:e=="WAIT_RELOAD",confirmButtonText:"Reboot now",onClose:()=>n("RELOAD"),icon:"warning-sign",children:ve.jsx("p",{children:EG(t.reload_timeout_s)})})}const sP="14.7.77",MA=(t,e,n)=>({endTime:e,insertTime:n,type:"exponentialRampToValue",value:t}),IA=(t,e,n)=>({endTime:e,insertTime:n,type:"linearRampToValue",value:t}),Lb=(t,e)=>({startTime:e,type:"setValue",value:t}),lP=(t,e,n)=>({duration:n,startTime:e,type:"setValueCurve",values:t}),uP=(t,e,{startTime:n,target:r,timeConstant:i})=>r+(e-r)*Math.exp((n-t)/i),vh=t=>t.type==="exponentialRampToValue",qy=t=>t.type==="linearRampToValue",mu=t=>vh(t)||qy(t),JC=t=>t.type==="setValue",sl=t=>t.type==="setValueCurve",Uy=(t,e,n,r)=>{const i=t[e];return i===void 0?r:mu(i)||JC(i)?i.value:sl(i)?i.values[i.values.length-1]:uP(n,Uy(t,e-1,i.startTime,r),i)},FA=(t,e,n,r,i)=>n===void 0?[r.insertTime,i]:mu(n)?[n.endTime,n.value]:JC(n)?[n.startTime,n.value]:sl(n)?[n.startTime+n.duration,n.values[n.values.length-1]]:[n.startTime,Uy(t,e-1,n.startTime,i)],Mb=t=>t.type==="cancelAndHold",Ib=t=>t.type==="cancelScheduledValues",fu=t=>Mb(t)||Ib(t)?t.cancelTime:vh(t)||qy(t)?t.endTime:t.startTime,$A=(t,e,n,{endTime:r,value:i})=>n===i?i:0<n&&0<i||n<0&&i<0?n*(i/n)**((t-e)/(r-e)):0,jA=(t,e,n,{endTime:r,value:i})=>n+(t-e)/(r-e)*(i-n),OG=(t,e)=>{const n=Math.floor(e),r=Math.ceil(e);return n===r?t[n]:(1-(e-n))*t[n]+(1-(r-e))*t[r]},AG=(t,{duration:e,startTime:n,values:r})=>{const i=(t-n)/e*(r.length-1);return OG(r,i)},X0=t=>t.type==="setTarget";class RG{constructor(e){this._automationEvents=[],this._currenTime=0,this._defaultValue=e}[Symbol.iterator](){return this._automationEvents[Symbol.iterator]()}add(e){const n=fu(e);if(Mb(e)||Ib(e)){const r=this._automationEvents.findIndex(o=>Ib(e)&&sl(o)?o.startTime+o.duration>=n:fu(o)>=n),i=this._automationEvents[r];if(r!==-1&&(this._automationEvents=this._automationEvents.slice(0,r)),Mb(e)){const o=this._automationEvents[this._automationEvents.length-1];if(i!==void 0&&mu(i)){if(o!==void 0&&X0(o))throw new Error("The internal list is malformed.");const l=o===void 0?i.insertTime:sl(o)?o.startTime+o.duration:fu(o),c=o===void 0?this._defaultValue:sl(o)?o.values[o.values.length-1]:o.value,f=vh(i)?$A(n,l,c,i):jA(n,l,c,i),h=vh(i)?MA(f,n,this._currenTime):IA(f,n,this._currenTime);this._automationEvents.push(h)}if(o!==void 0&&X0(o)&&this._automationEvents.push(Lb(this.getValue(n),n)),o!==void 0&&sl(o)&&o.startTime+o.duration>n){const l=n-o.startTime,c=(o.values.length-1)/o.duration,f=Math.max(2,1+Math.ceil(l*c)),h=l/(f-1)*c,g=o.values.slice(0,f);if(h<1)for(let m=1;m<f;m+=1){const v=h*m%1;g[m]=o.values[m-1]*(1-v)+o.values[m]*v}this._automationEvents[this._automationEvents.length-1]=lP(g,o.startTime,l)}}}else{const r=this._automationEvents.findIndex(l=>fu(l)>n),i=r===-1?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[r-1];if(i!==void 0&&sl(i)&&fu(i)+i.duration>n)return!1;const o=vh(e)?MA(e.value,e.endTime,this._currenTime):qy(e)?IA(e.value,n,this._currenTime):e;if(r===-1)this._automationEvents.push(o);else{if(sl(e)&&n+e.duration>fu(this._automationEvents[r]))return!1;this._automationEvents.splice(r,0,o)}}return!0}flush(e){const n=this._automationEvents.findIndex(r=>fu(r)>e);if(n>1){const r=this._automationEvents.slice(n-1),i=r[0];X0(i)&&r.unshift(Lb(Uy(this._automationEvents,n-2,i.startTime,this._defaultValue),i.startTime)),this._automationEvents=r}}getValue(e){if(this._automationEvents.length===0)return this._defaultValue;const n=this._automationEvents.findIndex(l=>fu(l)>e),r=this._automationEvents[n],i=(n===-1?this._automationEvents.length:n)-1,o=this._automationEvents[i];if(o!==void 0&&X0(o)&&(r===void 0||!mu(r)||r.insertTime>e))return uP(e,Uy(this._automationEvents,i-1,o.startTime,this._defaultValue),o);if(o!==void 0&&JC(o)&&(r===void 0||!mu(r)))return o.value;if(o!==void 0&&sl(o)&&(r===void 0||!mu(r)||o.startTime+o.duration>e))return e<o.startTime+o.duration?AG(e,o):o.values[o.values.length-1];if(o!==void 0&&mu(o)&&(r===void 0||!mu(r)))return o.value;if(r!==void 0&&vh(r)){const[l,c]=FA(this._automationEvents,i,o,r,this._defaultValue);return $A(e,l,c,r)}if(r!==void 0&&qy(r)){const[l,c]=FA(this._automationEvents,i,o,r,this._defaultValue);return jA(e,l,c,r)}return this._defaultValue}}const kG=t=>({cancelTime:t,type:"cancelAndHold"}),NG=t=>({cancelTime:t,type:"cancelScheduledValues"}),PG=(t,e)=>({endTime:e,type:"exponentialRampToValue",value:t}),DG=(t,e)=>({endTime:e,type:"linearRampToValue",value:t}),LG=(t,e,n)=>({startTime:e,target:t,timeConstant:n,type:"setTarget"}),MG=()=>new DOMException("","AbortError"),IG=t=>(e,n,[r,i,o],l)=>{t(e[i],[n,r,o],c=>c[0]===n&&c[1]===r,l)},FG=t=>(e,n,r)=>{const i=[];for(let o=0;o<r.numberOfInputs;o+=1)i.push(new Set);t.set(e,{activeInputs:i,outputs:new Set,passiveInputs:new WeakMap,renderer:n})},$G=t=>(e,n)=>{t.set(e,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:n})},zh=new WeakSet,cP=new WeakMap,ex=new WeakMap,fP=new WeakMap,tx=new WeakMap,F_=new WeakMap,dP=new WeakMap,Fb=new WeakMap,$b=new WeakMap,jb=new WeakMap,hP={construct(){return hP}},jG=t=>{try{const e=new Proxy(t,hP);new e}catch{return!1}return!0},zA=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,HA=(t,e)=>{const n=[];let r=t.replace(/^[\s]+/,""),i=r.match(zA);for(;i!==null;){const o=i[1].slice(1,-1),l=i[0].replace(/([\s]+)?;?$/,"").replace(o,new URL(o,e).toString());n.push(l),r=r.slice(i[0].length).replace(/^[\s]+/,""),i=r.match(zA)}return[n.join(";"),r]},qA=t=>{if(t!==void 0&&!Array.isArray(t))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},UA=t=>{if(!jG(t))throw new TypeError("The given value for processorCtor should be a constructor.");if(t.prototype===null||typeof t.prototype!="object")throw new TypeError("The given value for processorCtor should have a prototype.")},zG=(t,e,n,r,i,o,l,c,f,h,g,m,v)=>{let S=0;return(b,A,C={credentials:"omit"})=>{const E=g.get(b);if(E!==void 0&&E.has(A))return Promise.resolve();const k=h.get(b);if(k!==void 0){const w=k.get(A);if(w!==void 0)return w}const T=o(b),x=T.audioWorklet===void 0?i(A).then(([w,R])=>{const[I,F]=HA(w,R),U=`${I};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${F}
|
|
579
|
+
})})(window,'_AWGS')`;return n(U)}).then(()=>{const w=v._AWGS.pop();if(w===void 0)throw new SyntaxError;r(T.currentTime,T.sampleRate,()=>w(class{},void 0,(R,I)=>{if(R.trim()==="")throw e();const F=$b.get(T);if(F!==void 0){if(F.has(R))throw e();UA(I),qA(I.parameterDescriptors),F.set(R,I)}else UA(I),qA(I.parameterDescriptors),$b.set(T,new Map([[R,I]]))},T.sampleRate,void 0,void 0))}):Promise.all([i(A),Promise.resolve(t(m,m))]).then(([[w,R],I])=>{const F=S+1;S=F;const[U,V]=HA(w,R),oe=`${U};((AudioWorkletProcessor,registerProcessor)=>{${V}
|
|
580
|
+
})(${I?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${I?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${I?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${F}',class extends AudioWorkletProcessor{process(){return !1}})`,fe=new Blob([oe],{type:"application/javascript; charset=utf-8"}),Q=URL.createObjectURL(fe);return T.audioWorklet.addModule(Q,C).then(()=>{if(c(T))return T;const re=l(T);return re.audioWorklet.addModule(Q,C).then(()=>re)}).then(re=>{if(f===null)throw new SyntaxError;try{new f(re,`__sac${F}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(Q))});return k===void 0?h.set(b,new Map([[A,x]])):k.set(A,x),x.then(()=>{const w=g.get(b);w===void 0?g.set(b,new Set([A])):w.add(A)}).finally(()=>{const w=h.get(b);w!==void 0&&w.delete(A)}),x}},Aa=(t,e)=>{const n=t.get(e);if(n===void 0)throw new Error("A value with the given key could not be found.");return n},$_=(t,e)=>{const n=Array.from(t).filter(e);if(n.length>1)throw Error("More than one element was found.");if(n.length===0)throw Error("No element was found.");const[r]=n;return t.delete(r),r},pP=(t,e,n,r)=>{const i=Aa(t,e),o=$_(i,l=>l[0]===n&&l[1]===r);return i.size===0&&t.delete(e),o},Hg=t=>Aa(dP,t),Hh=t=>{if(zh.has(t))throw new Error("The AudioNode is already stored.");zh.add(t),Hg(t).forEach(e=>e(!0))},mP=t=>"port"in t,qg=t=>{if(!zh.has(t))throw new Error("The AudioNode is not stored.");zh.delete(t),Hg(t).forEach(e=>e(!1))},zb=(t,e)=>{!mP(t)&&e.every(n=>n.size===0)&&qg(t)},HG=(t,e,n,r,i,o,l,c,f,h,g,m,v)=>{const S=new WeakMap;return(b,A,C,E,k)=>{const{activeInputs:T,passiveInputs:x}=o(A),{outputs:w}=o(b),R=c(b),I=F=>{const U=f(A),V=f(b);if(F){const K=pP(x,b,C,E);t(T,b,K,!1),!k&&!m(b)&&n(V,U,C,E),v(A)&&Hh(A)}else{const K=r(T,b,C,E);e(x,E,K,!1),!k&&!m(b)&&i(V,U,C,E);const Z=l(A);if(Z===0)g(A)&&zb(A,T);else{const J=S.get(A);J!==void 0&&clearTimeout(J),S.set(A,setTimeout(()=>{g(A)&&zb(A,T)},Z*1e3))}}};return h(w,[A,C,E],F=>F[0]===A&&F[1]===C&&F[2]===E,!0)?(R.add(I),g(b)?t(T,b,[C,E,I],!0):e(x,E,[b,C,I],!0),!0):!1}},qG=t=>(e,n,[r,i,o],l)=>{const c=e.get(r);c===void 0?e.set(r,new Set([[i,n,o]])):t(c,[i,n,o],f=>f[0]===i&&f[1]===n,l)},UG=t=>(e,n)=>{const r=t(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});n.connect(r).connect(e.destination);const i=()=>{n.removeEventListener("ended",i),n.disconnect(r),r.disconnect()};n.addEventListener("ended",i)},VG=t=>(e,n)=>{t(e).add(n)},WG={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},GG=(t,e,n,r,i,o)=>class extends t{constructor(c,f){const h=i(c),g={...WG,...f},m=r(h,g),v=o(h)?e():null;super(c,!1,m,v),this._nativeAnalyserNode=m}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(c){this._nativeAnalyserNode.fftSize=c}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(c){const f=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=c,!(c>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=f,n()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(c){const f=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=c,!(this._nativeAnalyserNode.maxDecibels>c))throw this._nativeAnalyserNode.minDecibels=f,n()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(c){this._nativeAnalyserNode.smoothingTimeConstant=c}getByteFrequencyData(c){this._nativeAnalyserNode.getByteFrequencyData(c)}getByteTimeDomainData(c){this._nativeAnalyserNode.getByteTimeDomainData(c)}getFloatFrequencyData(c){this._nativeAnalyserNode.getFloatFrequencyData(c)}getFloatTimeDomainData(c){this._nativeAnalyserNode.getFloatTimeDomainData(c)}},pi=(t,e)=>t.context===e,BG=(t,e,n)=>()=>{const r=new WeakMap,i=async(o,l)=>{let c=e(o);if(!pi(c,l)){const h={channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,fftSize:c.fftSize,maxDecibels:c.maxDecibels,minDecibels:c.minDecibels,smoothingTimeConstant:c.smoothingTimeConstant};c=t(l,h)}return r.set(l,c),await n(o,l,c),c};return{render(o,l){const c=r.get(l);return c!==void 0?Promise.resolve(c):i(o,l)}}},Vy=t=>{try{t.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},Cs=()=>new DOMException("","IndexSizeError"),nx=t=>{t.getChannelData=(e=>n=>{try{return e.call(t,n)}catch(r){throw r.code===12?Cs():r}})(t.getChannelData)},KG={numberOfChannels:1},XG=(t,e,n,r,i,o,l,c)=>{let f=null;return class gP{constructor(g){if(i===null)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:m,numberOfChannels:v,sampleRate:S}={...KG,...g};f===null&&(f=new i(1,1,44100));const b=r!==null&&e(o,o)?new r({length:m,numberOfChannels:v,sampleRate:S}):f.createBuffer(v,m,S);if(b.numberOfChannels===0)throw n();return typeof b.copyFromChannel!="function"?(l(b),nx(b)):e(Vy,()=>Vy(b))||c(b),t.add(b),b}static[Symbol.hasInstance](g){return g!==null&&typeof g=="object"&&Object.getPrototypeOf(g)===gP.prototype||t.has(g)}}},Co=-34028234663852886e22,Ti=34028234663852886e22,fl=t=>zh.has(t),YG={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},QG=(t,e,n,r,i,o,l,c)=>class extends t{constructor(h,g){const m=o(h),v={...YG,...g},S=i(m,v),b=l(m),A=b?e():null;super(h,!1,S,A),this._audioBufferSourceNodeRenderer=A,this._isBufferNullified=!1,this._isBufferSet=v.buffer!==null,this._nativeAudioBufferSourceNode=S,this._onended=null,this._playbackRate=n(this,b,S.playbackRate,Ti,Co)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(h){if(this._nativeAudioBufferSourceNode.buffer=h,h!==null){if(this._isBufferSet)throw r();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(h){this._nativeAudioBufferSourceNode.loop=h}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(h){this._nativeAudioBufferSourceNode.loopEnd=h}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(h){this._nativeAudioBufferSourceNode.loopStart=h}get onended(){return this._onended}set onended(h){const g=typeof h=="function"?c(this,h):null;this._nativeAudioBufferSourceNode.onended=g;const m=this._nativeAudioBufferSourceNode.onended;this._onended=m!==null&&m===g?h:m}get playbackRate(){return this._playbackRate}start(h=0,g=0,m){if(this._nativeAudioBufferSourceNode.start(h,g,m),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.start=m===void 0?[h,g]:[h,g,m]),this.context.state!=="closed"){Hh(this);const v=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",v),fl(this)&&qg(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",v)}}stop(h=0){this._nativeAudioBufferSourceNode.stop(h),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.stop=h)}},ZG=(t,e,n,r,i)=>()=>{const o=new WeakMap;let l=null,c=null;const f=async(h,g)=>{let m=n(h);const v=pi(m,g);if(!v){const S={buffer:m.buffer,channelCount:m.channelCount,channelCountMode:m.channelCountMode,channelInterpretation:m.channelInterpretation,loop:m.loop,loopEnd:m.loopEnd,loopStart:m.loopStart,playbackRate:m.playbackRate.value};m=e(g,S),l!==null&&m.start(...l),c!==null&&m.stop(c)}return o.set(g,m),v?await t(g,h.playbackRate,m.playbackRate):await r(g,h.playbackRate,m.playbackRate),await i(h,g,m),m};return{set start(h){l=h},set stop(h){c=h},render(h,g){const m=o.get(g);return m!==void 0?Promise.resolve(m):f(h,g)}}},JG=t=>"playbackRate"in t,eB=t=>"frequency"in t&&"gain"in t,tB=t=>"offset"in t,nB=t=>!("frequency"in t)&&"gain"in t,rB=t=>"detune"in t&&"frequency"in t,iB=t=>"pan"in t,Ai=t=>Aa(cP,t),Ug=t=>Aa(fP,t),Hb=(t,e)=>{const{activeInputs:n}=Ai(t);n.forEach(i=>i.forEach(([o])=>{e.includes(t)||Hb(o,[...e,t])}));const r=JG(t)?[t.playbackRate]:mP(t)?Array.from(t.parameters.values()):eB(t)?[t.Q,t.detune,t.frequency,t.gain]:tB(t)?[t.offset]:nB(t)?[t.gain]:rB(t)?[t.detune,t.frequency]:iB(t)?[t.pan]:[];for(const i of r){const o=Ug(i);o!==void 0&&o.activeInputs.forEach(([l])=>Hb(l,e))}fl(t)&&qg(t)},vP=t=>{Hb(t.destination,[])},oB=t=>t===void 0||typeof t=="number"||typeof t=="string"&&(t==="balanced"||t==="interactive"||t==="playback"),aB=(t,e,n,r,i,o,l,c,f)=>class extends t{constructor(g={}){if(f===null)throw new Error("Missing the native AudioContext constructor.");let m;try{m=new f(g)}catch(b){throw b.code===12&&b.message==="sampleRate is not in range"?n():b}if(m===null)throw r();if(!oB(g.latencyHint))throw new TypeError(`The provided value '${g.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(g.sampleRate!==void 0&&m.sampleRate!==g.sampleRate)throw n();super(m,2);const{latencyHint:v}=g,{sampleRate:S}=m;if(this._baseLatency=typeof m.baseLatency=="number"?m.baseLatency:v==="balanced"?512/S:v==="interactive"||v===void 0?256/S:v==="playback"?1024/S:Math.max(2,Math.min(128,Math.round(v*S/128)))*128/S,this._nativeAudioContext=m,f.name==="webkitAudioContext"?(this._nativeGainNode=m.createGain(),this._nativeOscillatorNode=m.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(m.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,m.state==="running"){this._state="suspended";const b=()=>{this._state==="suspended"&&(this._state=null),m.removeEventListener("statechange",b)};m.addEventListener("statechange",b)}}get baseLatency(){return this._baseLatency}get state(){return this._state!==null?this._state:this._nativeAudioContext.state}close(){return this.state==="closed"?this._nativeAudioContext.close().then(()=>{throw e()}):(this._state==="suspended"&&(this._state=null),this._nativeAudioContext.close().then(()=>{this._nativeGainNode!==null&&this._nativeOscillatorNode!==null&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),vP(this)}))}createMediaElementSource(g){return new i(this,{mediaElement:g})}createMediaStreamDestination(){return new o(this)}createMediaStreamSource(g){return new l(this,{mediaStream:g})}createMediaStreamTrackSource(g){return new c(this,{mediaStreamTrack:g})}resume(){return this._state==="suspended"?new Promise((g,m)=>{const v=()=>{this._nativeAudioContext.removeEventListener("statechange",v),this._nativeAudioContext.state==="running"?g():this.resume().then(g,m)};this._nativeAudioContext.addEventListener("statechange",v)}):this._nativeAudioContext.resume().catch(g=>{throw g===void 0||g.code===15?e():g})}suspend(){return this._nativeAudioContext.suspend().catch(g=>{throw g===void 0?e():g})}},sB=(t,e,n,r,i,o,l,c)=>class extends t{constructor(h,g){const m=o(h),v=l(m),S=i(m,g,v),b=v?e(c):null;super(h,!1,S,b),this._isNodeOfNativeOfflineAudioContext=v,this._nativeAudioDestinationNode=S}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(h){if(this._isNodeOfNativeOfflineAudioContext)throw r();if(h>this._nativeAudioDestinationNode.maxChannelCount)throw n();this._nativeAudioDestinationNode.channelCount=h}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(h){if(this._isNodeOfNativeOfflineAudioContext)throw r();this._nativeAudioDestinationNode.channelCountMode=h}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}},lB=t=>{const e=new WeakMap,n=async(r,i)=>{const o=i.destination;return e.set(i,o),await t(r,i,o),o};return{render(r,i){const o=e.get(i);return o!==void 0?Promise.resolve(o):n(r,i)}}},uB=(t,e,n,r,i,o,l,c)=>(f,h)=>{const g=h.listener,m=()=>{const w=new Float32Array(1),R=e(h,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),I=l(h);let F=!1,U=[0,0,-1,0,1,0],V=[0,0,0];const K=()=>{if(F)return;F=!0;const fe=r(h,256,9,0);fe.onaudioprocess=({inputBuffer:Q})=>{const re=[o(Q,w,0),o(Q,w,1),o(Q,w,2),o(Q,w,3),o(Q,w,4),o(Q,w,5)];re.some((W,$)=>W!==U[$])&&(g.setOrientation(...re),U=re);const z=[o(Q,w,6),o(Q,w,7),o(Q,w,8)];z.some((W,$)=>W!==V[$])&&(g.setPosition(...z),V=z)},R.connect(fe)},Z=fe=>Q=>{Q!==U[fe]&&(U[fe]=Q,g.setOrientation(...U))},J=fe=>Q=>{Q!==V[fe]&&(V[fe]=Q,g.setPosition(...V))},oe=(fe,Q,re)=>{const z=n(h,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Q});z.connect(R,0,fe),z.start(),Object.defineProperty(z.offset,"defaultValue",{get(){return Q}});const W=t({context:f},I,z.offset,Ti,Co);return c(W,"value",$=>()=>$.call(W),$=>B=>{try{$.call(W,B)}catch(Y){if(Y.code!==9)throw Y}K(),I&&re(B)}),W.cancelAndHoldAtTime=($=>I?()=>{throw i()}:(...B)=>{const Y=$.apply(W,B);return K(),Y})(W.cancelAndHoldAtTime),W.cancelScheduledValues=($=>I?()=>{throw i()}:(...B)=>{const Y=$.apply(W,B);return K(),Y})(W.cancelScheduledValues),W.exponentialRampToValueAtTime=($=>I?()=>{throw i()}:(...B)=>{const Y=$.apply(W,B);return K(),Y})(W.exponentialRampToValueAtTime),W.linearRampToValueAtTime=($=>I?()=>{throw i()}:(...B)=>{const Y=$.apply(W,B);return K(),Y})(W.linearRampToValueAtTime),W.setTargetAtTime=($=>I?()=>{throw i()}:(...B)=>{const Y=$.apply(W,B);return K(),Y})(W.setTargetAtTime),W.setValueAtTime=($=>I?()=>{throw i()}:(...B)=>{const Y=$.apply(W,B);return K(),Y})(W.setValueAtTime),W.setValueCurveAtTime=($=>I?()=>{throw i()}:(...B)=>{const Y=$.apply(W,B);return K(),Y})(W.setValueCurveAtTime),W};return{forwardX:oe(0,0,Z(0)),forwardY:oe(1,0,Z(1)),forwardZ:oe(2,-1,Z(2)),positionX:oe(6,0,J(0)),positionY:oe(7,0,J(1)),positionZ:oe(8,0,J(2)),upX:oe(3,0,Z(3)),upY:oe(4,1,Z(4)),upZ:oe(5,0,Z(5))}},{forwardX:v,forwardY:S,forwardZ:b,positionX:A,positionY:C,positionZ:E,upX:k,upY:T,upZ:x}=g.forwardX===void 0?m():g;return{get forwardX(){return v},get forwardY(){return S},get forwardZ(){return b},get positionX(){return A},get positionY(){return C},get positionZ(){return E},get upX(){return k},get upY(){return T},get upZ(){return x}}},Wy=t=>"context"in t,Vg=t=>Wy(t[0]),Tf=(t,e,n,r)=>{for(const i of t)if(n(i)){if(r)return!1;throw Error("The set contains at least one similar element.")}return t.add(e),!0},VA=(t,e,[n,r],i)=>{Tf(t,[e,n,r],o=>o[0]===e&&o[1]===n,i)},WA=(t,[e,n,r],i)=>{const o=t.get(e);o===void 0?t.set(e,new Set([[n,r]])):Tf(o,[n,r],l=>l[0]===n,i)},Zh=t=>"inputs"in t,Gy=(t,e,n,r)=>{if(Zh(e)){const i=e.inputs[r];return t.connect(i,n,0),[i,n,0]}return t.connect(e,n,r),[e,n,r]},yP=(t,e,n)=>{for(const r of t)if(r[0]===e&&r[1]===n)return t.delete(r),r;return null},cB=(t,e,n)=>$_(t,r=>r[0]===e&&r[1]===n),_P=(t,e)=>{if(!Hg(t).delete(e))throw new Error("Missing the expected event listener.")},wP=(t,e,n)=>{const r=Aa(t,e),i=$_(r,o=>o[0]===n);return r.size===0&&t.delete(e),i},By=(t,e,n,r)=>{Zh(e)?t.disconnect(e.inputs[r],n,0):t.disconnect(e,n,r)},Sn=t=>Aa(ex,t),dg=t=>Aa(tx,t),_f=t=>Fb.has(t),py=t=>!zh.has(t),GA=(t,e)=>new Promise(n=>{if(e!==null)n(!0);else{const r=t.createScriptProcessor(256,1,1),i=t.createGain(),o=t.createBuffer(1,2,44100),l=o.getChannelData(0);l[0]=1,l[1]=1;const c=t.createBufferSource();c.buffer=o,c.loop=!0,c.connect(r).connect(t.destination),c.connect(i),c.disconnect(i),r.onaudioprocess=f=>{const h=f.inputBuffer.getChannelData(0);Array.prototype.some.call(h,g=>g===1)?n(!0):n(!1),c.stop(),r.onaudioprocess=null,c.disconnect(r),r.disconnect(t.destination)},c.start()}}),wS=(t,e)=>{const n=new Map;for(const r of t)for(const i of r){const o=n.get(i);n.set(i,o===void 0?1:o+1)}n.forEach((r,i)=>e(i,r))},Ky=t=>"context"in t,fB=t=>{const e=new Map;t.connect=(n=>(r,i=0,o=0)=>{const l=Ky(r)?n(r,i,o):n(r,i),c=e.get(r);return c===void 0?e.set(r,[{input:o,output:i}]):c.every(f=>f.input!==o||f.output!==i)&&c.push({input:o,output:i}),l})(t.connect.bind(t)),t.disconnect=(n=>(r,i,o)=>{if(n.apply(t),r===void 0)e.clear();else if(typeof r=="number")for(const[l,c]of e){const f=c.filter(h=>h.output!==r);f.length===0?e.delete(l):e.set(l,f)}else if(e.has(r))if(i===void 0)e.delete(r);else{const l=e.get(r);if(l!==void 0){const c=l.filter(f=>f.output!==i&&(f.input!==o||o===void 0));c.length===0?e.delete(r):e.set(r,c)}}for(const[l,c]of e)c.forEach(f=>{Ky(l)?t.connect(l,f.output,f.input):t.connect(l,f.output)})})(t.disconnect)},dB=(t,e,n,r)=>{const{activeInputs:i,passiveInputs:o}=Ug(e),{outputs:l}=Ai(t),c=Hg(t),f=h=>{const g=Sn(t),m=dg(e);if(h){const v=wP(o,t,n);VA(i,t,v,!1),!r&&!_f(t)&&g.connect(m,n)}else{const v=cB(i,t,n);WA(o,v,!1),!r&&!_f(t)&&g.disconnect(m,n)}};return Tf(l,[e,n],h=>h[0]===e&&h[1]===n,!0)?(c.add(f),fl(t)?VA(i,t,[n,f],!0):WA(o,[t,n,f],!0),!0):!1},hB=(t,e,n,r)=>{const{activeInputs:i,passiveInputs:o}=Ai(e),l=yP(i[r],t,n);return l===null?[pP(o,t,n,r)[2],!1]:[l[2],!0]},pB=(t,e,n)=>{const{activeInputs:r,passiveInputs:i}=Ug(e),o=yP(r,t,n);return o===null?[wP(i,t,n)[1],!1]:[o[2],!0]},rx=(t,e,n,r,i)=>{const[o,l]=hB(t,n,r,i);if(o!==null&&(_P(t,o),l&&!e&&!_f(t)&&By(Sn(t),Sn(n),r,i)),fl(n)){const{activeInputs:c}=Ai(n);zb(n,c)}},ix=(t,e,n,r)=>{const[i,o]=pB(t,n,r);i!==null&&(_P(t,i),o&&!e&&!_f(t)&&Sn(t).disconnect(dg(n),r))},mB=(t,e)=>{const n=Ai(t),r=[];for(const i of n.outputs)Vg(i)?rx(t,e,...i):ix(t,e,...i),r.push(i[0]);return n.outputs.clear(),r},gB=(t,e,n)=>{const r=Ai(t),i=[];for(const o of r.outputs)o[1]===n&&(Vg(o)?rx(t,e,...o):ix(t,e,...o),i.push(o[0]),r.outputs.delete(o));return i},vB=(t,e,n,r,i)=>{const o=Ai(t);return Array.from(o.outputs).filter(l=>l[0]===n&&(r===void 0||l[1]===r)&&(i===void 0||l[2]===i)).map(l=>(Vg(l)?rx(t,e,...l):ix(t,e,...l),o.outputs.delete(l),l[0]))},yB=(t,e,n,r,i,o,l,c,f,h,g,m,v,S,b,A)=>class extends h{constructor(E,k,T,x){super(T),this._context=E,this._nativeAudioNode=T;const w=g(E);m(w)&&n(GA,()=>GA(w,A))!==!0&&fB(T),ex.set(this,T),dP.set(this,new Set),E.state!=="closed"&&k&&Hh(this),t(this,x,T)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(E){this._nativeAudioNode.channelCount=E}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(E){this._nativeAudioNode.channelCountMode=E}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(E){this._nativeAudioNode.channelInterpretation=E}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(E,k=0,T=0){if(k<0||k>=this._nativeAudioNode.numberOfOutputs)throw i();const x=g(this._context),w=b(x);if(v(E)||S(E))throw o();if(Wy(E)){const F=Sn(E);try{const V=Gy(this._nativeAudioNode,F,k,T),K=py(this);(w||K)&&this._nativeAudioNode.disconnect(...V),this.context.state!=="closed"&&!K&&py(E)&&Hh(E)}catch(V){throw V.code===12?o():V}if(e(this,E,k,T,w)){const V=f([this],E);wS(V,r(w))}return E}const R=dg(E);if(R.name==="playbackRate"&&R.maxValue===1024)throw l();try{this._nativeAudioNode.connect(R,k),(w||py(this))&&this._nativeAudioNode.disconnect(R,k)}catch(F){throw F.code===12?o():F}if(dB(this,E,k,w)){const F=f([this],E);wS(F,r(w))}}disconnect(E,k,T){let x;const w=g(this._context),R=b(w);if(E===void 0)x=mB(this,R);else if(typeof E=="number"){if(E<0||E>=this.numberOfOutputs)throw i();x=gB(this,R,E)}else{if(k!==void 0&&(k<0||k>=this.numberOfOutputs)||Wy(E)&&T!==void 0&&(T<0||T>=E.numberOfInputs))throw i();if(x=vB(this,R,E,k,T),x.length===0)throw o()}for(const I of x){const F=f([this],I);wS(F,c)}}},_B=(t,e,n,r,i,o,l,c,f,h,g,m,v)=>(S,b,A,C=null,E=null)=>{const k=A.value,T=new RG(k),x=b?r(T):null,w={get defaultValue(){return k},get maxValue(){return C===null?A.maxValue:C},get minValue(){return E===null?A.minValue:E},get value(){return A.value},set value(R){A.value=R,w.setValueAtTime(R,S.context.currentTime)},cancelAndHoldAtTime(R){if(typeof A.cancelAndHoldAtTime=="function")x===null&&T.flush(S.context.currentTime),T.add(i(R)),A.cancelAndHoldAtTime(R);else{const I=Array.from(T).pop();x===null&&T.flush(S.context.currentTime),T.add(i(R));const F=Array.from(T).pop();A.cancelScheduledValues(R),I!==F&&F!==void 0&&(F.type==="exponentialRampToValue"?A.exponentialRampToValueAtTime(F.value,F.endTime):F.type==="linearRampToValue"?A.linearRampToValueAtTime(F.value,F.endTime):F.type==="setValue"?A.setValueAtTime(F.value,F.startTime):F.type==="setValueCurve"&&A.setValueCurveAtTime(F.values,F.startTime,F.duration))}return w},cancelScheduledValues(R){return x===null&&T.flush(S.context.currentTime),T.add(o(R)),A.cancelScheduledValues(R),w},exponentialRampToValueAtTime(R,I){if(R===0)throw new RangeError;if(!Number.isFinite(I)||I<0)throw new RangeError;const F=S.context.currentTime;return x===null&&T.flush(F),Array.from(T).length===0&&(T.add(h(k,F)),A.setValueAtTime(k,F)),T.add(l(R,I)),A.exponentialRampToValueAtTime(R,I),w},linearRampToValueAtTime(R,I){const F=S.context.currentTime;return x===null&&T.flush(F),Array.from(T).length===0&&(T.add(h(k,F)),A.setValueAtTime(k,F)),T.add(c(R,I)),A.linearRampToValueAtTime(R,I),w},setTargetAtTime(R,I,F){return x===null&&T.flush(S.context.currentTime),T.add(f(R,I,F)),A.setTargetAtTime(R,I,F),w},setValueAtTime(R,I){return x===null&&T.flush(S.context.currentTime),T.add(h(R,I)),A.setValueAtTime(R,I),w},setValueCurveAtTime(R,I,F){const U=R instanceof Float32Array?R:new Float32Array(R);if(m!==null&&m.name==="webkitAudioContext"){const V=I+F,K=S.context.sampleRate,Z=Math.ceil(I*K),J=Math.floor(V*K),oe=J-Z,fe=new Float32Array(oe);for(let re=0;re<oe;re+=1){const z=(U.length-1)/F*((Z+re)/K-I),W=Math.floor(z),$=Math.ceil(z);fe[re]=W===$?U[W]:(1-(z-W))*U[W]+(1-($-z))*U[$]}x===null&&T.flush(S.context.currentTime),T.add(g(fe,I,F)),A.setValueCurveAtTime(fe,I,F);const Q=J/K;Q<V&&v(w,fe[fe.length-1],Q),v(w,U[U.length-1],V)}else x===null&&T.flush(S.context.currentTime),T.add(g(U,I,F)),A.setValueCurveAtTime(U,I,F);return w}};return n.set(w,A),e.set(w,S),t(w,x),w},wB=t=>({replay(e){for(const n of t)if(n.type==="exponentialRampToValue"){const{endTime:r,value:i}=n;e.exponentialRampToValueAtTime(i,r)}else if(n.type==="linearRampToValue"){const{endTime:r,value:i}=n;e.linearRampToValueAtTime(i,r)}else if(n.type==="setTarget"){const{startTime:r,target:i,timeConstant:o}=n;e.setTargetAtTime(i,r,o)}else if(n.type==="setValue"){const{startTime:r,value:i}=n;e.setValueAtTime(i,r)}else if(n.type==="setValueCurve"){const{duration:r,startTime:i,values:o}=n;e.setValueCurveAtTime(o,i,r)}else throw new Error("Can't apply an unknown automation.")}});class SP{constructor(e){this._map=new Map(e)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(e,n=null){return this._map.forEach((r,i)=>e.call(n,r,i,this))}get(e){return this._map.get(e)}has(e){return this._map.has(e)}keys(){return this._map.keys()}values(){return this._map.values()}}const SB={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,parameterData:{},processorOptions:{}},bB=(t,e,n,r,i,o,l,c,f,h,g,m,v,S)=>class extends e{constructor(A,C,E){var k;const T=c(A),x=f(T),w=g({...SB,...E});v(w);const R=$b.get(T),I=R?.get(C),F=x||T.state!=="closed"?T:(k=l(T))!==null&&k!==void 0?k:T,U=i(F,x?null:A.baseLatency,h,C,I,w),V=x?r(C,w,I):null;super(A,!0,U,V);const K=[];U.parameters.forEach((J,oe)=>{const fe=n(this,x,J);K.push([oe,fe])}),this._nativeAudioWorkletNode=U,this._onprocessorerror=null,this._parameters=new SP(K),x&&t(T,this);const{activeInputs:Z}=o(this);m(U,Z)}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(A){const C=typeof A=="function"?S(this,A):null;this._nativeAudioWorkletNode.onprocessorerror=C;const E=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=E!==null&&E===C?A:E}get parameters(){return this._parameters===null?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}};function Xy(t,e,n,r,i){if(typeof t.copyFromChannel=="function")e[n].byteLength===0&&(e[n]=new Float32Array(128)),t.copyFromChannel(e[n],r,i);else{const o=t.getChannelData(r);if(e[n].byteLength===0)e[n]=o.slice(i,i+128);else{const l=new Float32Array(o.buffer,i*Float32Array.BYTES_PER_ELEMENT,128);e[n].set(l)}}}const bP=(t,e,n,r,i)=>{typeof t.copyToChannel=="function"?e[n].byteLength!==0&&t.copyToChannel(e[n],r,i):e[n].byteLength!==0&&t.getChannelData(r).set(e[n],i)},Yy=(t,e)=>{const n=[];for(let r=0;r<t;r+=1){const i=[],o=typeof e=="number"?e:e[r];for(let l=0;l<o;l+=1)i.push(new Float32Array(128));n.push(i)}return n},CB=(t,e)=>{const n=Aa(jb,t),r=Sn(e);return Aa(n,r)},xB=async(t,e,n,r,i,o,l)=>{const c=e===null?Math.ceil(t.context.length/128)*128:e.length,f=r.channelCount*r.numberOfInputs,h=i.reduce((C,E)=>C+E,0),g=h===0?null:n.createBuffer(h,c,n.sampleRate);if(o===void 0)throw new Error("Missing the processor constructor.");const m=Ai(t),v=await CB(n,t),S=Yy(r.numberOfInputs,r.channelCount),b=Yy(r.numberOfOutputs,i),A=Array.from(t.parameters.keys()).reduce((C,E)=>({...C,[E]:new Float32Array(128)}),{});for(let C=0;C<c;C+=128){if(r.numberOfInputs>0&&e!==null)for(let E=0;E<r.numberOfInputs;E+=1)for(let k=0;k<r.channelCount;k+=1)Xy(e,S[E],k,k,C);o.parameterDescriptors!==void 0&&e!==null&&o.parameterDescriptors.forEach(({name:E},k)=>{Xy(e,A,E,f+k,C)});for(let E=0;E<r.numberOfInputs;E+=1)for(let k=0;k<i[E];k+=1)b[E][k].byteLength===0&&(b[E][k]=new Float32Array(128));try{const E=S.map((T,x)=>m.activeInputs[x].size===0?[]:T),k=l(C/n.sampleRate,n.sampleRate,()=>v.process(E,b,A));if(g!==null)for(let T=0,x=0;T<r.numberOfOutputs;T+=1){for(let w=0;w<i[T];w+=1)bP(g,b[T],w,x+w,C);x+=i[T]}if(!k)break}catch(E){t.dispatchEvent(new ErrorEvent("processorerror",{colno:E.colno,filename:E.filename,lineno:E.lineno,message:E.message}));break}}return g},EB=(t,e,n,r,i,o,l,c,f,h,g,m,v,S,b,A)=>(C,E,k)=>{const T=new WeakMap;let x=null;const w=async(R,I)=>{let F=g(R),U=null;const V=pi(F,I),K=Array.isArray(E.outputChannelCount)?E.outputChannelCount:Array.from(E.outputChannelCount);if(m===null){const Z=K.reduce((Q,re)=>Q+re,0),J=i(I,{channelCount:Math.max(1,Z),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,Z)}),oe=[];for(let Q=0;Q<R.numberOfOutputs;Q+=1)oe.push(r(I,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:K[Q]}));const fe=l(I,{channelCount:E.channelCount,channelCountMode:E.channelCountMode,channelInterpretation:E.channelInterpretation,gain:1});fe.connect=e.bind(null,oe),fe.disconnect=f.bind(null,oe),U=[J,oe,fe]}else V||(F=new m(I,C));if(T.set(I,U===null?F:U[2]),U!==null){if(x===null){if(k===void 0)throw new Error("Missing the processor constructor.");if(v===null)throw new Error("Missing the native OfflineAudioContext constructor.");const re=R.channelCount*R.numberOfInputs,z=k.parameterDescriptors===void 0?0:k.parameterDescriptors.length,W=re+z;x=xB(R,W===0?null:await(async()=>{const B=new v(W,Math.ceil(R.context.length/128)*128,I.sampleRate),Y=[],ae=[];for(let q=0;q<E.numberOfInputs;q+=1)Y.push(l(B,{channelCount:E.channelCount,channelCountMode:E.channelCountMode,channelInterpretation:E.channelInterpretation,gain:1})),ae.push(i(B,{channelCount:E.channelCount,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:E.channelCount}));const le=await Promise.all(Array.from(R.parameters.values()).map(async q=>{const se=o(B,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:q.value});return await S(B,q,se.offset),se})),ie=r(B,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,re+z)});for(let q=0;q<E.numberOfInputs;q+=1){Y[q].connect(ae[q]);for(let se=0;se<E.channelCount;se+=1)ae[q].connect(ie,se,q*E.channelCount+se)}for(const[q,se]of le.entries())se.connect(ie,0,re+q),se.start(0);return ie.connect(B.destination),await Promise.all(Y.map(q=>b(R,B,q))),A(B)})(),I,E,K,k,h)}const Z=await x,J=n(I,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[oe,fe,Q]=U;Z!==null&&(J.buffer=Z,J.start(0)),J.connect(oe);for(let re=0,z=0;re<R.numberOfOutputs;re+=1){const W=fe[re];for(let $=0;$<K[re];$+=1)oe.connect(W,z+$,$);z+=K[re]}return Q}if(V)for(const[Z,J]of R.parameters.entries())await t(I,J,F.parameters.get(Z));else for(const[Z,J]of R.parameters.entries())await S(I,J,F.parameters.get(Z));return await b(R,I,F),F};return{render(R,I){c(I,R);const F=T.get(I);return F!==void 0?Promise.resolve(F):w(R,I)}}},TB=(t,e,n,r,i,o,l,c,f,h,g,m,v,S,b,A,C,E,k,T)=>class extends b{constructor(w,R){super(w,R),this._nativeContext=w,this._audioWorklet=t===void 0?void 0:{addModule:(I,F)=>t(this,I,F)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new e(this)}createBiquadFilter(){return new i(this)}createBuffer(w,R,I){return new n({length:R,numberOfChannels:w,sampleRate:I})}createBufferSource(){return new r(this)}createChannelMerger(w=6){return new o(this,{numberOfInputs:w})}createChannelSplitter(w=6){return new l(this,{numberOfOutputs:w})}createConstantSource(){return new c(this)}createConvolver(){return new f(this)}createDelay(w=1){return new g(this,{maxDelayTime:w})}createDynamicsCompressor(){return new m(this)}createGain(){return new v(this)}createIIRFilter(w,R){return new S(this,{feedback:R,feedforward:w})}createOscillator(){return new A(this)}createPanner(){return new C(this)}createPeriodicWave(w,R,I={disableNormalization:!1}){return new E(this,{...I,imag:R,real:w})}createStereoPanner(){return new k(this)}createWaveShaper(){return new T(this)}decodeAudioData(w,R,I){return h(this._nativeContext,w).then(F=>(typeof R=="function"&&R(F),F),F=>{throw typeof I=="function"&&I(F),F})}},OB={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},AB=(t,e,n,r,i,o,l,c)=>class extends t{constructor(h,g){const m=o(h),v={...OB,...g},S=i(m,v),b=l(m),A=b?n():null;super(h,!1,S,A),this._Q=e(this,b,S.Q,Ti,Co),this._detune=e(this,b,S.detune,1200*Math.log2(Ti),-1200*Math.log2(Ti)),this._frequency=e(this,b,S.frequency,h.sampleRate/2,0),this._gain=e(this,b,S.gain,40*Math.log10(Ti),Co),this._nativeBiquadFilterNode=S,c(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(h){this._nativeBiquadFilterNode.type=h}getFrequencyResponse(h,g,m){try{this._nativeBiquadFilterNode.getFrequencyResponse(h,g,m)}catch(v){throw v.code===11?r():v}if(h.length!==g.length||g.length!==m.length)throw r()}},RB=(t,e,n,r,i)=>()=>{const o=new WeakMap,l=async(c,f)=>{let h=n(c);const g=pi(h,f);if(!g){const m={Q:h.Q.value,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,detune:h.detune.value,frequency:h.frequency.value,gain:h.gain.value,type:h.type};h=e(f,m)}return o.set(f,h),g?(await t(f,c.Q,h.Q),await t(f,c.detune,h.detune),await t(f,c.frequency,h.frequency),await t(f,c.gain,h.gain)):(await r(f,c.Q,h.Q),await r(f,c.detune,h.detune),await r(f,c.frequency,h.frequency),await r(f,c.gain,h.gain)),await i(c,f,h),h};return{render(c,f){const h=o.get(f);return h!==void 0?Promise.resolve(h):l(c,f)}}},kB=(t,e)=>(n,r)=>{const i=e.get(n);if(i!==void 0)return i;const o=t.get(n);if(o!==void 0)return o;try{const l=r();return l instanceof Promise?(t.set(n,l),l.catch(()=>!1).then(c=>(t.delete(n),e.set(n,c),c))):(e.set(n,l),l)}catch{return e.set(n,!1),!1}},NB={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},PB=(t,e,n,r,i)=>class extends t{constructor(l,c){const f=r(l),h={...NB,...c},g=n(f,h),m=i(f)?e():null;super(l,!1,g,m)}},DB=(t,e,n)=>()=>{const r=new WeakMap,i=async(o,l)=>{let c=e(o);if(!pi(c,l)){const h={channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,numberOfInputs:c.numberOfInputs};c=t(l,h)}return r.set(l,c),await n(o,l,c),c};return{render(o,l){const c=r.get(l);return c!==void 0?Promise.resolve(c):i(o,l)}}},LB={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},MB=(t,e,n,r,i,o)=>class extends t{constructor(c,f){const h=r(c),g=o({...LB,...f}),m=n(h,g),v=i(h)?e():null;super(c,!1,m,v)}},IB=(t,e,n)=>()=>{const r=new WeakMap,i=async(o,l)=>{let c=e(o);if(!pi(c,l)){const h={channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,numberOfOutputs:c.numberOfOutputs};c=t(l,h)}return r.set(l,c),await n(o,l,c),c};return{render(o,l){const c=r.get(l);return c!==void 0?Promise.resolve(c):i(o,l)}}},FB=t=>(e,n,r)=>t(n,e,r),$B=t=>(e,n,r=0,i=0)=>{const o=e[r];if(o===void 0)throw t();return Ky(n)?o.connect(n,0,i):o.connect(n,0)},jB=t=>(e,n)=>{const r=t(e,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),i=e.createBuffer(1,2,44100);return r.buffer=i,r.loop=!0,r.connect(n),r.start(),()=>{r.stop(),r.disconnect(n)}},zB={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},HB=(t,e,n,r,i,o,l)=>class extends t{constructor(f,h){const g=i(f),m={...zB,...h},v=r(g,m),S=o(g),b=S?n():null;super(f,!1,v,b),this._constantSourceNodeRenderer=b,this._nativeConstantSourceNode=v,this._offset=e(this,S,v.offset,Ti,Co),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(f){const h=typeof f=="function"?l(this,f):null;this._nativeConstantSourceNode.onended=h;const g=this._nativeConstantSourceNode.onended;this._onended=g!==null&&g===h?f:g}start(f=0){if(this._nativeConstantSourceNode.start(f),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.start=f),this.context.state!=="closed"){Hh(this);const h=()=>{this._nativeConstantSourceNode.removeEventListener("ended",h),fl(this)&&qg(this)};this._nativeConstantSourceNode.addEventListener("ended",h)}}stop(f=0){this._nativeConstantSourceNode.stop(f),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.stop=f)}},qB=(t,e,n,r,i)=>()=>{const o=new WeakMap;let l=null,c=null;const f=async(h,g)=>{let m=n(h);const v=pi(m,g);if(!v){const S={channelCount:m.channelCount,channelCountMode:m.channelCountMode,channelInterpretation:m.channelInterpretation,offset:m.offset.value};m=e(g,S),l!==null&&m.start(l),c!==null&&m.stop(c)}return o.set(g,m),v?await t(g,h.offset,m.offset):await r(g,h.offset,m.offset),await i(h,g,m),m};return{set start(h){l=h},set stop(h){c=h},render(h,g){const m=o.get(g);return m!==void 0?Promise.resolve(m):f(h,g)}}},UB=t=>e=>(t[0]=e,t[0]),VB={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},WB=(t,e,n,r,i,o)=>class extends t{constructor(c,f){const h=r(c),g={...VB,...f},m=n(h,g),S=i(h)?e():null;super(c,!1,m,S),this._isBufferNullified=!1,this._nativeConvolverNode=m,g.buffer!==null&&o(this,g.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(c){if(this._nativeConvolverNode.buffer=c,c===null&&this._nativeConvolverNode.buffer!==null){const f=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=f.createBuffer(1,1,f.sampleRate),this._isBufferNullified=!0,o(this,0)}else this._isBufferNullified=!1,o(this,this._nativeConvolverNode.buffer===null?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(c){this._nativeConvolverNode.normalize=c}},GB=(t,e,n)=>()=>{const r=new WeakMap,i=async(o,l)=>{let c=e(o);if(!pi(c,l)){const h={buffer:c.buffer,channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,disableNormalization:!c.normalize};c=t(l,h)}return r.set(l,c),Zh(c)?await n(o,l,c.inputs[0]):await n(o,l,c),c};return{render(o,l){const c=r.get(l);return c!==void 0?Promise.resolve(c):i(o,l)}}},BB=(t,e)=>(n,r,i)=>{if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new e(n,r,i)}catch(o){throw o.name==="SyntaxError"?t():o}},KB=()=>new DOMException("","DataCloneError"),BA=t=>{const{port1:e,port2:n}=new MessageChannel;return new Promise(r=>{const i=()=>{n.onmessage=null,e.close(),n.close(),r()};n.onmessage=()=>i();try{e.postMessage(t,[t])}catch{}finally{i()}})},XB=(t,e,n,r,i,o,l,c,f,h,g)=>(m,v)=>{const S=l(m)?m:o(m);if(i.has(v)){const b=n();return Promise.reject(b)}try{i.add(v)}catch{}return e(f,()=>f(S))?S.decodeAudioData(v).then(b=>(BA(v).catch(()=>{}),e(c,()=>c(b))||g(b),t.add(b),b)):new Promise((b,A)=>{const C=async()=>{try{await BA(v)}catch{}},E=k=>{A(k),C()};try{S.decodeAudioData(v,k=>{typeof k.copyFromChannel!="function"&&(h(k),nx(k)),t.add(k),C().then(()=>b(k))},k=>{E(k===null?r():k)})}catch(k){E(k)}})},YB=(t,e,n,r,i,o,l,c)=>(f,h)=>{const g=e.get(f);if(g===void 0)throw new Error("Missing the expected cycle count.");const m=o(f.context),v=c(m);if(g===h){if(e.delete(f),!v&&l(f)){const S=r(f),{outputs:b}=n(f);for(const A of b)if(Vg(A)){const C=r(A[0]);t(S,C,A[1],A[2])}else{const C=i(A[0]);S.connect(C,A[1])}}}else e.set(f,g-h)},QB={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},ZB=(t,e,n,r,i,o,l)=>class extends t{constructor(f,h){const g=i(f),m={...QB,...h},v=r(g,m),S=o(g),b=S?n(m.maxDelayTime):null;super(f,!1,v,b),this._delayTime=e(this,S,v.delayTime),l(this,m.maxDelayTime)}get delayTime(){return this._delayTime}},JB=(t,e,n,r,i)=>o=>{const l=new WeakMap,c=async(f,h)=>{let g=n(f);const m=pi(g,h);if(!m){const v={channelCount:g.channelCount,channelCountMode:g.channelCountMode,channelInterpretation:g.channelInterpretation,delayTime:g.delayTime.value,maxDelayTime:o};g=e(h,v)}return l.set(h,g),m?await t(h,f.delayTime,g.delayTime):await r(h,f.delayTime,g.delayTime),await i(f,h,g),g};return{render(f,h){const g=l.get(h);return g!==void 0?Promise.resolve(g):c(f,h)}}},eK=t=>(e,n,r,i)=>t(e[i],o=>o[0]===n&&o[1]===r),tK=t=>(e,n)=>{t(e).delete(n)},nK=t=>"delayTime"in t,rK=(t,e,n)=>function r(i,o){const l=Wy(o)?o:n(t,o);if(nK(l))return[];if(i[0]===l)return[i];if(i.includes(l))return[];const{outputs:c}=e(l);return Array.from(c).map(f=>r([...i,l],f[0])).reduce((f,h)=>f.concat(h),[])},Y0=(t,e,n)=>{const r=e[n];if(r===void 0)throw t();return r},iK=t=>(e,n=void 0,r=void 0,i=0)=>n===void 0?e.forEach(o=>o.disconnect()):typeof n=="number"?Y0(t,e,n).disconnect():Ky(n)?r===void 0?e.forEach(o=>o.disconnect(n)):i===void 0?Y0(t,e,r).disconnect(n,0):Y0(t,e,r).disconnect(n,0,i):r===void 0?e.forEach(o=>o.disconnect(n)):Y0(t,e,r).disconnect(n,0),oK={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},aK=(t,e,n,r,i,o,l,c)=>class extends t{constructor(h,g){const m=o(h),v={...oK,...g},S=r(m,v),b=l(m),A=b?n():null;super(h,!1,S,A),this._attack=e(this,b,S.attack),this._knee=e(this,b,S.knee),this._nativeDynamicsCompressorNode=S,this._ratio=e(this,b,S.ratio),this._release=e(this,b,S.release),this._threshold=e(this,b,S.threshold),c(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(h){const g=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=h,h>2)throw this._nativeDynamicsCompressorNode.channelCount=g,i()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(h){const g=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=h,h==="max")throw this._nativeDynamicsCompressorNode.channelCountMode=g,i()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return typeof this._nativeDynamicsCompressorNode.reduction.value=="number"?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}},sK=(t,e,n,r,i)=>()=>{const o=new WeakMap,l=async(c,f)=>{let h=n(c);const g=pi(h,f);if(!g){const m={attack:h.attack.value,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,knee:h.knee.value,ratio:h.ratio.value,release:h.release.value,threshold:h.threshold.value};h=e(f,m)}return o.set(f,h),g?(await t(f,c.attack,h.attack),await t(f,c.knee,h.knee),await t(f,c.ratio,h.ratio),await t(f,c.release,h.release),await t(f,c.threshold,h.threshold)):(await r(f,c.attack,h.attack),await r(f,c.knee,h.knee),await r(f,c.ratio,h.ratio),await r(f,c.release,h.release),await r(f,c.threshold,h.threshold)),await i(c,f,h),h};return{render(c,f){const h=o.get(f);return h!==void 0?Promise.resolve(h):l(c,f)}}},lK=()=>new DOMException("","EncodingError"),uK=t=>e=>new Promise((n,r)=>{if(t===null){r(new SyntaxError);return}const i=t.document.head;if(i===null)r(new SyntaxError);else{const o=t.document.createElement("script"),l=new Blob([e],{type:"application/javascript"}),c=URL.createObjectURL(l),f=t.onerror,h=()=>{t.onerror=f,URL.revokeObjectURL(c)};t.onerror=(g,m,v,S,b)=>{if(m===c||m===t.location.href&&v===1&&S===1)return h(),r(b),!1;if(f!==null)return f(g,m,v,S,b)},o.onerror=()=>{h(),r(new SyntaxError)},o.onload=()=>{h(),n()},o.src=c,o.type="module",i.appendChild(o)}}),cK=t=>class{constructor(n){this._nativeEventTarget=n,this._listeners=new WeakMap}addEventListener(n,r,i){if(r!==null){let o=this._listeners.get(r);o===void 0&&(o=t(this,r),typeof r=="function"&&this._listeners.set(r,o)),this._nativeEventTarget.addEventListener(n,o,i)}}dispatchEvent(n){return this._nativeEventTarget.dispatchEvent(n)}removeEventListener(n,r,i){const o=r===null?void 0:this._listeners.get(r);this._nativeEventTarget.removeEventListener(n,o===void 0?null:o,i)}},fK=t=>(e,n,r)=>{Object.defineProperties(t,{currentFrame:{configurable:!0,get(){return Math.round(e*n)}},currentTime:{configurable:!0,get(){return e}}});try{return r()}finally{t!==null&&(delete t.currentFrame,delete t.currentTime)}},dK=t=>async e=>{try{const n=await fetch(e);if(n.ok)return[await n.text(),n.url]}catch{}throw t()},hK={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},pK=(t,e,n,r,i,o)=>class extends t{constructor(c,f){const h=i(c),g={...hK,...f},m=r(h,g),v=o(h),S=v?n():null;super(c,!1,m,S),this._gain=e(this,v,m.gain,Ti,Co)}get gain(){return this._gain}},mK=(t,e,n,r,i)=>()=>{const o=new WeakMap,l=async(c,f)=>{let h=n(c);const g=pi(h,f);if(!g){const m={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,gain:h.gain.value};h=e(f,m)}return o.set(f,h),g?await t(f,c.gain,h.gain):await r(f,c.gain,h.gain),await i(c,f,h),h};return{render(c,f){const h=o.get(f);return h!==void 0?Promise.resolve(h):l(c,f)}}},gK=(t,e)=>n=>e(t,n),vK=t=>e=>{const n=t(e);if(n.renderer===null)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return n.renderer},yK=t=>e=>{var n;return(n=t.get(e))!==null&&n!==void 0?n:0},_K=t=>e=>{const n=t(e);if(n.renderer===null)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return n.renderer},wK=t=>e=>t.get(e),Lr=()=>new DOMException("","InvalidStateError"),SK=t=>e=>{const n=t.get(e);if(n===void 0)throw Lr();return n},bK=(t,e)=>n=>{let r=t.get(n);if(r!==void 0)return r;if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");return r=new e(1,1,44100),t.set(n,r),r},CK=t=>e=>{const n=t.get(e);if(n===void 0)throw new Error("The context has no set of AudioWorkletNodes.");return n},j_=()=>new DOMException("","InvalidAccessError"),xK=t=>{t.getFrequencyResponse=(e=>(n,r,i)=>{if(n.length!==r.length||r.length!==i.length)throw j_();return e.call(t,n,r,i)})(t.getFrequencyResponse)},EK={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},TK=(t,e,n,r,i,o)=>class extends t{constructor(c,f){const h=r(c),g=i(h),m={...EK,...f},v=e(h,g?null:c.baseLatency,m),S=g?n(m.feedback,m.feedforward):null;super(c,!1,v,S),xK(v),this._nativeIIRFilterNode=v,o(this,1)}getFrequencyResponse(c,f,h){return this._nativeIIRFilterNode.getFrequencyResponse(c,f,h)}},CP=(t,e,n,r,i,o,l,c,f,h,g)=>{const m=h.length;let v=c;for(let S=0;S<m;S+=1){let b=n[0]*h[S];for(let A=1;A<i;A+=1){const C=v-A&f-1;b+=n[A]*o[C],b-=t[A]*l[C]}for(let A=i;A<r;A+=1)b+=n[A]*o[v-A&f-1];for(let A=i;A<e;A+=1)b-=t[A]*l[v-A&f-1];o[v]=h[S],l[v]=b,v=v+1&f-1,g[S]=b}return v},OK=(t,e,n,r)=>{const i=n instanceof Float64Array?n:new Float64Array(n),o=r instanceof Float64Array?r:new Float64Array(r),l=i.length,c=o.length,f=Math.min(l,c);if(i[0]!==1){for(let b=0;b<l;b+=1)o[b]/=i[0];for(let b=1;b<c;b+=1)i[b]/=i[0]}const h=32,g=new Float32Array(h),m=new Float32Array(h),v=e.createBuffer(t.numberOfChannels,t.length,t.sampleRate),S=t.numberOfChannels;for(let b=0;b<S;b+=1){const A=t.getChannelData(b),C=v.getChannelData(b);g.fill(0),m.fill(0),CP(i,l,o,c,f,g,m,0,h,A,C)}return v},AK=(t,e,n,r,i)=>(o,l)=>{const c=new WeakMap;let f=null;const h=async(g,m)=>{let v=null,S=e(g);const b=pi(S,m);if(m.createIIRFilter===void 0?v=t(m,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):b||(S=m.createIIRFilter(l,o)),c.set(m,v===null?S:v),v!==null){if(f===null){if(n===null)throw new Error("Missing the native OfflineAudioContext constructor.");const C=new n(g.context.destination.channelCount,g.context.length,m.sampleRate);f=(async()=>{await r(g,C,C.destination);const E=await i(C);return OK(E,m,o,l)})()}const A=await f;return v.buffer=A,v.start(0),v}return await r(g,m,S),S};return{render(g,m){const v=c.get(m);return v!==void 0?Promise.resolve(v):h(g,m)}}},RK=(t,e,n,r,i,o)=>l=>(c,f)=>{const h=t.get(c);if(h===void 0){if(!l&&o(c)){const g=r(c),{outputs:m}=n(c);for(const v of m)if(Vg(v)){const S=r(v[0]);e(g,S,v[1],v[2])}else{const S=i(v[0]);g.disconnect(S,v[1])}}t.set(c,f)}else t.set(c,h+f)},kK=(t,e)=>n=>{const r=t.get(n);return e(r)||e(n)},NK=(t,e)=>n=>t.has(n)||e(n),PK=(t,e)=>n=>t.has(n)||e(n),DK=(t,e)=>n=>{const r=t.get(n);return e(r)||e(n)},LK=t=>e=>t!==null&&e instanceof t,MK=t=>e=>t!==null&&typeof t.AudioNode=="function"&&e instanceof t.AudioNode,IK=t=>e=>t!==null&&typeof t.AudioParam=="function"&&e instanceof t.AudioParam,FK=(t,e)=>n=>t(n)||e(n),$K=t=>e=>t!==null&&e instanceof t,jK=t=>t!==null&&t.isSecureContext,zK=(t,e,n,r)=>class extends t{constructor(o,l){const c=n(o),f=e(c,l);if(r(c))throw TypeError();super(o,!0,f,null),this._nativeMediaElementAudioSourceNode=f}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}},HK={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},qK=(t,e,n,r)=>class extends t{constructor(o,l){const c=n(o);if(r(c))throw new TypeError;const f={...HK,...l},h=e(c,f);super(o,!1,h,null),this._nativeMediaStreamAudioDestinationNode=h}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}},UK=(t,e,n,r)=>class extends t{constructor(o,l){const c=n(o),f=e(c,l);if(r(c))throw new TypeError;super(o,!0,f,null),this._nativeMediaStreamAudioSourceNode=f}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}},VK=(t,e,n)=>class extends t{constructor(i,o){const l=n(i),c=e(l,o);super(i,!0,c,null)}},WK=(t,e,n,r,i,o)=>class extends n{constructor(c,f){super(c),this._nativeContext=c,F_.set(this,c),r(c)&&i.set(c,new Set),this._destination=new t(this,f),this._listener=e(this,c),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(c){const f=typeof c=="function"?o(this,c):null;this._nativeContext.onstatechange=f;const h=this._nativeContext.onstatechange;this._onstatechange=h!==null&&h===f?c:h}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}},hg=t=>{const e=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const n=t.decodeAudioData(e.buffer,()=>{});return n===void 0?!1:(n.catch(()=>{}),!0)}catch{}return!1},GK=(t,e)=>(n,r,i)=>{const o=new Set;return n.connect=(l=>(c,f=0,h=0)=>{const g=o.size===0;if(e(c))return l.call(n,c,f,h),t(o,[c,f,h],m=>m[0]===c&&m[1]===f&&m[2]===h,!0),g&&r(),c;l.call(n,c,f),t(o,[c,f],m=>m[0]===c&&m[1]===f,!0),g&&r()})(n.connect),n.disconnect=(l=>(c,f,h)=>{const g=o.size>0;if(c===void 0)l.apply(n),o.clear();else if(typeof c=="number"){l.call(n,c);for(const v of o)v[1]===c&&o.delete(v)}else{e(c)?l.call(n,c,f,h):l.call(n,c,f);for(const v of o)v[0]===c&&(f===void 0||v[1]===f)&&(h===void 0||v[2]===h)&&o.delete(v)}const m=o.size===0;g&&m&&i()})(n.disconnect),n},On=(t,e,n)=>{const r=e[n];r!==void 0&&r!==t[n]&&(t[n]=r)},Cr=(t,e)=>{On(t,e,"channelCount"),On(t,e,"channelCountMode"),On(t,e,"channelInterpretation")},KA=t=>typeof t.getFloatTimeDomainData=="function",BK=t=>{t.getFloatTimeDomainData=e=>{const n=new Uint8Array(e.length);t.getByteTimeDomainData(n);const r=Math.max(n.length,t.fftSize);for(let i=0;i<r;i+=1)e[i]=(n[i]-128)*.0078125;return e}},KK=(t,e)=>(n,r)=>{const i=n.createAnalyser();if(Cr(i,r),!(r.maxDecibels>r.minDecibels))throw e();return On(i,r,"fftSize"),On(i,r,"maxDecibels"),On(i,r,"minDecibels"),On(i,r,"smoothingTimeConstant"),t(KA,()=>KA(i))||BK(i),i},XK=t=>t===null?null:t.hasOwnProperty("AudioBuffer")?t.AudioBuffer:null,Mn=(t,e,n)=>{const r=e[n];r!==void 0&&r!==t[n].value&&(t[n].value=r)},YK=t=>{t.start=(e=>{let n=!1;return(r=0,i=0,o)=>{if(n)throw Lr();e.call(t,r,i,o),n=!0}})(t.start)},ox=t=>{t.start=(e=>(n=0,r=0,i)=>{if(typeof i=="number"&&i<0||r<0||n<0)throw new RangeError("The parameters can't be negative.");e.call(t,n,r,i)})(t.start)},ax=t=>{t.stop=(e=>(n=0)=>{if(n<0)throw new RangeError("The parameter can't be negative.");e.call(t,n)})(t.stop)},QK=(t,e,n,r,i,o,l,c,f,h,g)=>(m,v)=>{const S=m.createBufferSource();return Cr(S,v),Mn(S,v,"playbackRate"),On(S,v,"buffer"),On(S,v,"loop"),On(S,v,"loopEnd"),On(S,v,"loopStart"),e(n,()=>n(m))||YK(S),e(r,()=>r(m))||f(S),e(i,()=>i(m))||h(S,m),e(o,()=>o(m))||ox(S),e(l,()=>l(m))||g(S,m),e(c,()=>c(m))||ax(S),t(m,S),S},ZK=t=>t===null?null:t.hasOwnProperty("AudioContext")?t.AudioContext:t.hasOwnProperty("webkitAudioContext")?t.webkitAudioContext:null,JK=(t,e)=>(n,r,i)=>{const o=n.destination;if(o.channelCount!==r)try{o.channelCount=r}catch{}i&&o.channelCountMode!=="explicit"&&(o.channelCountMode="explicit"),o.maxChannelCount===0&&Object.defineProperty(o,"maxChannelCount",{value:r});const l=t(n,{channelCount:r,channelCountMode:o.channelCountMode,channelInterpretation:o.channelInterpretation,gain:1});return e(l,"channelCount",c=>()=>c.call(l),c=>f=>{c.call(l,f);try{o.channelCount=f}catch(h){if(f>o.maxChannelCount)throw h}}),e(l,"channelCountMode",c=>()=>c.call(l),c=>f=>{c.call(l,f),o.channelCountMode=f}),e(l,"channelInterpretation",c=>()=>c.call(l),c=>f=>{c.call(l,f),o.channelInterpretation=f}),Object.defineProperty(l,"maxChannelCount",{get:()=>o.maxChannelCount}),l.connect(o),l},eX=t=>t===null?null:t.hasOwnProperty("AudioWorkletNode")?t.AudioWorkletNode:null,tX=t=>{const{port1:e}=new MessageChannel;try{e.postMessage(t)}finally{e.close()}},nX=(t,e,n,r,i)=>(o,l,c,f,h,g)=>{if(c!==null)try{const m=new c(o,f,g),v=new Map;let S=null;if(Object.defineProperties(m,{channelCount:{get:()=>g.channelCount,set:()=>{throw t()}},channelCountMode:{get:()=>"explicit",set:()=>{throw t()}},onprocessorerror:{get:()=>S,set:b=>{typeof S=="function"&&m.removeEventListener("processorerror",S),S=typeof b=="function"?b:null,typeof S=="function"&&m.addEventListener("processorerror",S)}}}),m.addEventListener=(b=>(...A)=>{if(A[0]==="processorerror"){const C=typeof A[1]=="function"?A[1]:typeof A[1]=="object"&&A[1]!==null&&typeof A[1].handleEvent=="function"?A[1].handleEvent:null;if(C!==null){const E=v.get(A[1]);E!==void 0?A[1]=E:(A[1]=k=>{k.type==="error"?(Object.defineProperties(k,{type:{value:"processorerror"}}),C(k)):C(new ErrorEvent(A[0],{...k}))},v.set(C,A[1]))}}return b.call(m,"error",A[1],A[2]),b.call(m,...A)})(m.addEventListener),m.removeEventListener=(b=>(...A)=>{if(A[0]==="processorerror"){const C=v.get(A[1]);C!==void 0&&(v.delete(A[1]),A[1]=C)}return b.call(m,"error",A[1],A[2]),b.call(m,A[0],A[1],A[2])})(m.removeEventListener),g.numberOfOutputs!==0){const b=n(o,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return m.connect(b).connect(o.destination),i(m,()=>b.disconnect(),()=>b.connect(o.destination))}return m}catch(m){throw m.code===11?r():m}if(h===void 0)throw r();return tX(g),e(o,l,h,g)},xP=(t,e)=>t===null?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(t*e))))),rX=t=>new Promise((e,n)=>{const{port1:r,port2:i}=new MessageChannel;r.onmessage=({data:o})=>{r.close(),i.close(),e(o)},r.onmessageerror=({data:o})=>{r.close(),i.close(),n(o)},i.postMessage(t)}),iX=async(t,e)=>{const n=await rX(e);return new t(n)},oX=(t,e,n,r)=>{let i=jb.get(t);i===void 0&&(i=new WeakMap,jb.set(t,i));const o=iX(n,r);return i.set(e,o),o},aX=(t,e,n,r,i,o,l,c,f,h,g,m,v)=>(S,b,A,C)=>{if(C.numberOfInputs===0&&C.numberOfOutputs===0)throw f();const E=Array.isArray(C.outputChannelCount)?C.outputChannelCount:Array.from(C.outputChannelCount);if(E.some(ye=>ye<1))throw f();if(E.length!==C.numberOfOutputs)throw e();if(C.channelCountMode!=="explicit")throw f();const k=C.channelCount*C.numberOfInputs,T=E.reduce((ye,be)=>ye+be,0),x=A.parameterDescriptors===void 0?0:A.parameterDescriptors.length;if(k+x>6||T>6)throw f();const w=new MessageChannel,R=[],I=[];for(let ye=0;ye<C.numberOfInputs;ye+=1)R.push(l(S,{channelCount:C.channelCount,channelCountMode:C.channelCountMode,channelInterpretation:C.channelInterpretation,gain:1})),I.push(i(S,{channelCount:C.channelCount,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:C.channelCount}));const F=[];if(A.parameterDescriptors!==void 0)for(const{defaultValue:ye,maxValue:be,minValue:ke,name:Ee}of A.parameterDescriptors){const Fe=o(S,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:C.parameterData[Ee]!==void 0?C.parameterData[Ee]:ye===void 0?0:ye});Object.defineProperties(Fe.offset,{defaultValue:{get:()=>ye===void 0?0:ye},maxValue:{get:()=>be===void 0?Ti:be},minValue:{get:()=>ke===void 0?Co:ke}}),F.push(Fe)}const U=r(S,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,k+x)}),V=xP(b,S.sampleRate),K=c(S,V,k+x,Math.max(1,T)),Z=i(S,{channelCount:Math.max(1,T),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,T)}),J=[];for(let ye=0;ye<C.numberOfOutputs;ye+=1)J.push(r(S,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:E[ye]}));for(let ye=0;ye<C.numberOfInputs;ye+=1){R[ye].connect(I[ye]);for(let be=0;be<C.channelCount;be+=1)I[ye].connect(U,be,ye*C.channelCount+be)}const oe=new SP(A.parameterDescriptors===void 0?[]:A.parameterDescriptors.map(({name:ye},be)=>{const ke=F[be];return ke.connect(U,0,k+be),ke.start(0),[ye,ke.offset]}));U.connect(K);let fe=C.channelInterpretation,Q=null;const re=C.numberOfOutputs===0?[K]:J,z={get bufferSize(){return V},get channelCount(){return C.channelCount},set channelCount(ye){throw n()},get channelCountMode(){return C.channelCountMode},set channelCountMode(ye){throw n()},get channelInterpretation(){return fe},set channelInterpretation(ye){for(const be of R)be.channelInterpretation=ye;fe=ye},get context(){return K.context},get inputs(){return R},get numberOfInputs(){return C.numberOfInputs},get numberOfOutputs(){return C.numberOfOutputs},get onprocessorerror(){return Q},set onprocessorerror(ye){typeof Q=="function"&&z.removeEventListener("processorerror",Q),Q=typeof ye=="function"?ye:null,typeof Q=="function"&&z.addEventListener("processorerror",Q)},get parameters(){return oe},get port(){return w.port2},addEventListener(...ye){return K.addEventListener(ye[0],ye[1],ye[2])},connect:t.bind(null,re),disconnect:h.bind(null,re),dispatchEvent(...ye){return K.dispatchEvent(ye[0])},removeEventListener(...ye){return K.removeEventListener(ye[0],ye[1],ye[2])}},W=new Map;w.port1.addEventListener=(ye=>(...be)=>{if(be[0]==="message"){const ke=typeof be[1]=="function"?be[1]:typeof be[1]=="object"&&be[1]!==null&&typeof be[1].handleEvent=="function"?be[1].handleEvent:null;if(ke!==null){const Ee=W.get(be[1]);Ee!==void 0?be[1]=Ee:(be[1]=Fe=>{g(S.currentTime,S.sampleRate,()=>ke(Fe))},W.set(ke,be[1]))}}return ye.call(w.port1,be[0],be[1],be[2])})(w.port1.addEventListener),w.port1.removeEventListener=(ye=>(...be)=>{if(be[0]==="message"){const ke=W.get(be[1]);ke!==void 0&&(W.delete(be[1]),be[1]=ke)}return ye.call(w.port1,be[0],be[1],be[2])})(w.port1.removeEventListener);let $=null;Object.defineProperty(w.port1,"onmessage",{get:()=>$,set:ye=>{typeof $=="function"&&w.port1.removeEventListener("message",$),$=typeof ye=="function"?ye:null,typeof $=="function"&&(w.port1.addEventListener("message",$),w.port1.start())}}),A.prototype.port=w.port1;let B=null;oX(S,z,A,C).then(ye=>B=ye);const ae=Yy(C.numberOfInputs,C.channelCount),le=Yy(C.numberOfOutputs,E),ie=A.parameterDescriptors===void 0?[]:A.parameterDescriptors.reduce((ye,{name:be})=>({...ye,[be]:new Float32Array(128)}),{});let q=!0;const se=()=>{C.numberOfOutputs>0&&K.disconnect(Z);for(let ye=0,be=0;ye<C.numberOfOutputs;ye+=1){const ke=J[ye];for(let Ee=0;Ee<E[ye];Ee+=1)Z.disconnect(ke,be+Ee,Ee);be+=E[ye]}},ee=new Map;K.onaudioprocess=({inputBuffer:ye,outputBuffer:be})=>{if(B!==null){const ke=m(z);for(let Ee=0;Ee<V;Ee+=128){for(let Fe=0;Fe<C.numberOfInputs;Fe+=1)for(let Ae=0;Ae<C.channelCount;Ae+=1)Xy(ye,ae[Fe],Ae,Ae,Ee);A.parameterDescriptors!==void 0&&A.parameterDescriptors.forEach(({name:Fe},Ae)=>{Xy(ye,ie,Fe,k+Ae,Ee)});for(let Fe=0;Fe<C.numberOfInputs;Fe+=1)for(let Ae=0;Ae<E[Fe];Ae+=1)le[Fe][Ae].byteLength===0&&(le[Fe][Ae]=new Float32Array(128));try{const Fe=ae.map((ze,nt)=>{if(ke[nt].size>0)return ee.set(nt,V/128),ze;const Ge=ee.get(nt);return Ge===void 0?[]:(ze.every(_t=>_t.every(Kt=>Kt===0))&&(Ge===1?ee.delete(nt):ee.set(nt,Ge-1)),ze)});q=g(S.currentTime+Ee/S.sampleRate,S.sampleRate,()=>B.process(Fe,le,ie));for(let ze=0,nt=0;ze<C.numberOfOutputs;ze+=1){for(let ct=0;ct<E[ze];ct+=1)bP(be,le[ze],ct,nt+ct,Ee);nt+=E[ze]}}catch(Fe){q=!1,z.dispatchEvent(new ErrorEvent("processorerror",{colno:Fe.colno,filename:Fe.filename,lineno:Fe.lineno,message:Fe.message}))}if(!q){for(let Fe=0;Fe<C.numberOfInputs;Fe+=1){R[Fe].disconnect(I[Fe]);for(let Ae=0;Ae<C.channelCount;Ae+=1)I[Ee].disconnect(U,Ae,Fe*C.channelCount+Ae)}if(A.parameterDescriptors!==void 0){const Fe=A.parameterDescriptors.length;for(let Ae=0;Ae<Fe;Ae+=1){const ze=F[Ae];ze.disconnect(U,0,k+Ae),ze.stop()}}U.disconnect(K),K.onaudioprocess=null,Ce?se():Me();break}}}};let Ce=!1;const xe=l(S,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0}),Re=()=>K.connect(xe).connect(S.destination),Me=()=>{K.disconnect(xe),xe.disconnect()},qe=()=>{if(q){Me(),C.numberOfOutputs>0&&K.connect(Z);for(let ye=0,be=0;ye<C.numberOfOutputs;ye+=1){const ke=J[ye];for(let Ee=0;Ee<E[ye];Ee+=1)Z.connect(ke,be+Ee,Ee);be+=E[ye]}}Ce=!0},Je=()=>{q&&(Re(),se()),Ce=!1};return Re(),v(z,qe,Je)},EP=(t,e)=>{const n=t.createBiquadFilter();return Cr(n,e),Mn(n,e,"Q"),Mn(n,e,"detune"),Mn(n,e,"frequency"),Mn(n,e,"gain"),On(n,e,"type"),n},sX=(t,e)=>(n,r)=>{const i=n.createChannelMerger(r.numberOfInputs);return t!==null&&t.name==="webkitAudioContext"&&e(n,i),Cr(i,r),i},lX=t=>{const e=t.numberOfOutputs;Object.defineProperty(t,"channelCount",{get:()=>e,set:n=>{if(n!==e)throw Lr()}}),Object.defineProperty(t,"channelCountMode",{get:()=>"explicit",set:n=>{if(n!=="explicit")throw Lr()}}),Object.defineProperty(t,"channelInterpretation",{get:()=>"discrete",set:n=>{if(n!=="discrete")throw Lr()}})},Wg=(t,e)=>{const n=t.createChannelSplitter(e.numberOfOutputs);return Cr(n,e),lX(n),n},uX=(t,e,n,r,i)=>(o,l)=>{if(o.createConstantSource===void 0)return n(o,l);const c=o.createConstantSource();return Cr(c,l),Mn(c,l,"offset"),e(r,()=>r(o))||ox(c),e(i,()=>i(o))||ax(c),t(o,c),c},Jh=(t,e)=>(t.connect=e.connect.bind(e),t.disconnect=e.disconnect.bind(e),t),cX=(t,e,n,r)=>(i,{offset:o,...l})=>{const c=i.createBuffer(1,2,44100),f=e(i,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),h=n(i,{...l,gain:o}),g=c.getChannelData(0);g[0]=1,g[1]=1,f.buffer=c,f.loop=!0;const m={get bufferSize(){},get channelCount(){return h.channelCount},set channelCount(b){h.channelCount=b},get channelCountMode(){return h.channelCountMode},set channelCountMode(b){h.channelCountMode=b},get channelInterpretation(){return h.channelInterpretation},set channelInterpretation(b){h.channelInterpretation=b},get context(){return h.context},get inputs(){return[]},get numberOfInputs(){return f.numberOfInputs},get numberOfOutputs(){return h.numberOfOutputs},get offset(){return h.gain},get onended(){return f.onended},set onended(b){f.onended=b},addEventListener(...b){return f.addEventListener(b[0],b[1],b[2])},dispatchEvent(...b){return f.dispatchEvent(b[0])},removeEventListener(...b){return f.removeEventListener(b[0],b[1],b[2])},start(b=0){f.start.call(f,b)},stop(b=0){f.stop.call(f,b)}},v=()=>f.connect(h),S=()=>f.disconnect(h);return t(i,f),r(Jh(m,h),v,S)},fX=(t,e)=>(n,r)=>{const i=n.createConvolver();if(Cr(i,r),r.disableNormalization===i.normalize&&(i.normalize=!r.disableNormalization),On(i,r,"buffer"),r.channelCount>2||(e(i,"channelCount",o=>()=>o.call(i),o=>l=>{if(l>2)throw t();return o.call(i,l)}),r.channelCountMode==="max"))throw t();return e(i,"channelCountMode",o=>()=>o.call(i),o=>l=>{if(l==="max")throw t();return o.call(i,l)}),i},TP=(t,e)=>{const n=t.createDelay(e.maxDelayTime);return Cr(n,e),Mn(n,e,"delayTime"),n},dX=t=>(e,n)=>{const r=e.createDynamicsCompressor();if(Cr(r,n),n.channelCount>2||n.channelCountMode==="max")throw t();return Mn(r,n,"attack"),Mn(r,n,"knee"),Mn(r,n,"ratio"),Mn(r,n,"release"),Mn(r,n,"threshold"),r},io=(t,e)=>{const n=t.createGain();return Cr(n,e),Mn(n,e,"gain"),n},hX=t=>(e,n,r)=>{if(e.createIIRFilter===void 0)return t(e,n,r);const i=e.createIIRFilter(r.feedforward,r.feedback);return Cr(i,r),i};function pX(t,e){const n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}function mX(t,e){return[t[0]*e[0]-t[1]*e[1],t[0]*e[1]+t[1]*e[0]]}function XA(t,e){let n=[0,0];for(let r=t.length-1;r>=0;r-=1)n=mX(n,e),n[0]+=t[r];return n}const gX=(t,e,n,r)=>(i,o,{channelCount:l,channelCountMode:c,channelInterpretation:f,feedback:h,feedforward:g})=>{const m=xP(o,i.sampleRate),v=h instanceof Float64Array?h:new Float64Array(h),S=g instanceof Float64Array?g:new Float64Array(g),b=v.length,A=S.length,C=Math.min(b,A);if(b===0||b>20)throw r();if(v[0]===0)throw e();if(A===0||A>20)throw r();if(S[0]===0)throw e();if(v[0]!==1){for(let F=0;F<A;F+=1)S[F]/=v[0];for(let F=1;F<b;F+=1)v[F]/=v[0]}const E=n(i,m,l,l);E.channelCount=l,E.channelCountMode=c,E.channelInterpretation=f;const k=32,T=[],x=[],w=[];for(let F=0;F<l;F+=1){T.push(0);const U=new Float32Array(k),V=new Float32Array(k);U.fill(0),V.fill(0),x.push(U),w.push(V)}E.onaudioprocess=F=>{const U=F.inputBuffer,V=F.outputBuffer,K=U.numberOfChannels;for(let Z=0;Z<K;Z+=1){const J=U.getChannelData(Z),oe=V.getChannelData(Z);T[Z]=CP(v,b,S,A,C,x[Z],w[Z],T[Z],k,J,oe)}};const R=i.sampleRate/2;return Jh({get bufferSize(){return m},get channelCount(){return E.channelCount},set channelCount(F){E.channelCount=F},get channelCountMode(){return E.channelCountMode},set channelCountMode(F){E.channelCountMode=F},get channelInterpretation(){return E.channelInterpretation},set channelInterpretation(F){E.channelInterpretation=F},get context(){return E.context},get inputs(){return[E]},get numberOfInputs(){return E.numberOfInputs},get numberOfOutputs(){return E.numberOfOutputs},addEventListener(...F){return E.addEventListener(F[0],F[1],F[2])},dispatchEvent(...F){return E.dispatchEvent(F[0])},getFrequencyResponse(F,U,V){if(F.length!==U.length||U.length!==V.length)throw t();const K=F.length;for(let Z=0;Z<K;Z+=1){const J=-Math.PI*(F[Z]/R),oe=[Math.cos(J),Math.sin(J)],fe=XA(S,oe),Q=XA(v,oe),re=pX(fe,Q);U[Z]=Math.sqrt(re[0]*re[0]+re[1]*re[1]),V[Z]=Math.atan2(re[1],re[0])}},removeEventListener(...F){return E.removeEventListener(F[0],F[1],F[2])}},E)},vX=(t,e)=>t.createMediaElementSource(e.mediaElement),yX=(t,e)=>{const n=t.createMediaStreamDestination();return Cr(n,e),n.numberOfOutputs===1&&Object.defineProperty(n,"numberOfOutputs",{get:()=>0}),n},_X=(t,{mediaStream:e})=>{const n=e.getAudioTracks();n.sort((o,l)=>o.id<l.id?-1:o.id>l.id?1:0);const r=n.slice(0,1),i=t.createMediaStreamSource(new MediaStream(r));return Object.defineProperty(i,"mediaStream",{value:e}),i},wX=(t,e)=>(n,{mediaStreamTrack:r})=>{if(typeof n.createMediaStreamTrackSource=="function")return n.createMediaStreamTrackSource(r);const i=new MediaStream([r]),o=n.createMediaStreamSource(i);if(r.kind!=="audio")throw t();if(e(n))throw new TypeError;return o},SX=t=>t===null?null:t.hasOwnProperty("OfflineAudioContext")?t.OfflineAudioContext:t.hasOwnProperty("webkitOfflineAudioContext")?t.webkitOfflineAudioContext:null,bX=(t,e,n,r,i,o)=>(l,c)=>{const f=l.createOscillator();return Cr(f,c),Mn(f,c,"detune"),Mn(f,c,"frequency"),c.periodicWave!==void 0?f.setPeriodicWave(c.periodicWave):On(f,c,"type"),e(n,()=>n(l))||ox(f),e(r,()=>r(l))||o(f,l),e(i,()=>i(l))||ax(f),t(l,f),f},CX=t=>(e,n)=>{const r=e.createPanner();return r.orientationX===void 0?t(e,n):(Cr(r,n),Mn(r,n,"orientationX"),Mn(r,n,"orientationY"),Mn(r,n,"orientationZ"),Mn(r,n,"positionX"),Mn(r,n,"positionY"),Mn(r,n,"positionZ"),On(r,n,"coneInnerAngle"),On(r,n,"coneOuterAngle"),On(r,n,"coneOuterGain"),On(r,n,"distanceModel"),On(r,n,"maxDistance"),On(r,n,"panningModel"),On(r,n,"refDistance"),On(r,n,"rolloffFactor"),r)},xX=(t,e,n,r,i,o,l,c,f,h)=>(g,{coneInnerAngle:m,coneOuterAngle:v,coneOuterGain:S,distanceModel:b,maxDistance:A,orientationX:C,orientationY:E,orientationZ:k,panningModel:T,positionX:x,positionY:w,positionZ:R,refDistance:I,rolloffFactor:F,...U})=>{const V=g.createPanner();if(U.channelCount>2||U.channelCountMode==="max")throw l();Cr(V,U);const K={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},Z=n(g,{...K,channelInterpretation:"speakers",numberOfInputs:6}),J=r(g,{...U,gain:1}),oe=r(g,{...K,gain:1}),fe=r(g,{...K,gain:0}),Q=r(g,{...K,gain:0}),re=r(g,{...K,gain:0}),z=r(g,{...K,gain:0}),W=r(g,{...K,gain:0}),$=i(g,256,6,1),B=o(g,{...K,curve:new Float32Array([1,1]),oversample:"none"});let Y=[C,E,k],ae=[x,w,R];const le=new Float32Array(1);$.onaudioprocess=({inputBuffer:ee})=>{const Ce=[f(ee,le,0),f(ee,le,1),f(ee,le,2)];Ce.some((Re,Me)=>Re!==Y[Me])&&(V.setOrientation(...Ce),Y=Ce);const xe=[f(ee,le,3),f(ee,le,4),f(ee,le,5)];xe.some((Re,Me)=>Re!==ae[Me])&&(V.setPosition(...xe),ae=xe)},Object.defineProperty(fe.gain,"defaultValue",{get:()=>0}),Object.defineProperty(Q.gain,"defaultValue",{get:()=>0}),Object.defineProperty(re.gain,"defaultValue",{get:()=>0}),Object.defineProperty(z.gain,"defaultValue",{get:()=>0}),Object.defineProperty(W.gain,"defaultValue",{get:()=>0});const ie={get bufferSize(){},get channelCount(){return V.channelCount},set channelCount(ee){if(ee>2)throw l();J.channelCount=ee,V.channelCount=ee},get channelCountMode(){return V.channelCountMode},set channelCountMode(ee){if(ee==="max")throw l();J.channelCountMode=ee,V.channelCountMode=ee},get channelInterpretation(){return V.channelInterpretation},set channelInterpretation(ee){J.channelInterpretation=ee,V.channelInterpretation=ee},get coneInnerAngle(){return V.coneInnerAngle},set coneInnerAngle(ee){V.coneInnerAngle=ee},get coneOuterAngle(){return V.coneOuterAngle},set coneOuterAngle(ee){V.coneOuterAngle=ee},get coneOuterGain(){return V.coneOuterGain},set coneOuterGain(ee){if(ee<0||ee>1)throw e();V.coneOuterGain=ee},get context(){return V.context},get distanceModel(){return V.distanceModel},set distanceModel(ee){V.distanceModel=ee},get inputs(){return[J]},get maxDistance(){return V.maxDistance},set maxDistance(ee){if(ee<0)throw new RangeError;V.maxDistance=ee},get numberOfInputs(){return V.numberOfInputs},get numberOfOutputs(){return V.numberOfOutputs},get orientationX(){return oe.gain},get orientationY(){return fe.gain},get orientationZ(){return Q.gain},get panningModel(){return V.panningModel},set panningModel(ee){V.panningModel=ee},get positionX(){return re.gain},get positionY(){return z.gain},get positionZ(){return W.gain},get refDistance(){return V.refDistance},set refDistance(ee){if(ee<0)throw new RangeError;V.refDistance=ee},get rolloffFactor(){return V.rolloffFactor},set rolloffFactor(ee){if(ee<0)throw new RangeError;V.rolloffFactor=ee},addEventListener(...ee){return J.addEventListener(ee[0],ee[1],ee[2])},dispatchEvent(...ee){return J.dispatchEvent(ee[0])},removeEventListener(...ee){return J.removeEventListener(ee[0],ee[1],ee[2])}};m!==ie.coneInnerAngle&&(ie.coneInnerAngle=m),v!==ie.coneOuterAngle&&(ie.coneOuterAngle=v),S!==ie.coneOuterGain&&(ie.coneOuterGain=S),b!==ie.distanceModel&&(ie.distanceModel=b),A!==ie.maxDistance&&(ie.maxDistance=A),C!==ie.orientationX.value&&(ie.orientationX.value=C),E!==ie.orientationY.value&&(ie.orientationY.value=E),k!==ie.orientationZ.value&&(ie.orientationZ.value=k),T!==ie.panningModel&&(ie.panningModel=T),x!==ie.positionX.value&&(ie.positionX.value=x),w!==ie.positionY.value&&(ie.positionY.value=w),R!==ie.positionZ.value&&(ie.positionZ.value=R),I!==ie.refDistance&&(ie.refDistance=I),F!==ie.rolloffFactor&&(ie.rolloffFactor=F),(Y[0]!==1||Y[1]!==0||Y[2]!==0)&&V.setOrientation(...Y),(ae[0]!==0||ae[1]!==0||ae[2]!==0)&&V.setPosition(...ae);const q=()=>{J.connect(V),t(J,B,0,0),B.connect(oe).connect(Z,0,0),B.connect(fe).connect(Z,0,1),B.connect(Q).connect(Z,0,2),B.connect(re).connect(Z,0,3),B.connect(z).connect(Z,0,4),B.connect(W).connect(Z,0,5),Z.connect($).connect(g.destination)},se=()=>{J.disconnect(V),c(J,B,0,0),B.disconnect(oe),oe.disconnect(Z),B.disconnect(fe),fe.disconnect(Z),B.disconnect(Q),Q.disconnect(Z),B.disconnect(re),re.disconnect(Z),B.disconnect(z),z.disconnect(Z),B.disconnect(W),W.disconnect(Z),Z.disconnect($),$.disconnect(g.destination)};return h(Jh(ie,V),q,se)},EX=t=>(e,{disableNormalization:n,imag:r,real:i})=>{const o=r instanceof Float32Array?r:new Float32Array(r),l=i instanceof Float32Array?i:new Float32Array(i),c=e.createPeriodicWave(l,o,{disableNormalization:n});if(Array.from(r).length<2)throw t();return c},Gg=(t,e,n,r)=>t.createScriptProcessor(e,n,r),TX=(t,e)=>(n,r)=>{const i=r.channelCountMode;if(i==="clamped-max")throw e();if(n.createStereoPanner===void 0)return t(n,r);const o=n.createStereoPanner();return Cr(o,r),Mn(o,r,"pan"),Object.defineProperty(o,"channelCountMode",{get:()=>i,set:l=>{if(l!==i)throw e()}}),o},OX=(t,e,n,r,i,o)=>{const c=new Float32Array([1,1]),f=Math.PI/2,h={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},g={...h,oversample:"none"},m=(b,A,C,E)=>{const k=new Float32Array(16385),T=new Float32Array(16385);for(let U=0;U<16385;U+=1){const V=U/16384*f;k[U]=Math.cos(V),T[U]=Math.sin(V)}const x=n(b,{...h,gain:0}),w=r(b,{...g,curve:k}),R=r(b,{...g,curve:c}),I=n(b,{...h,gain:0}),F=r(b,{...g,curve:T});return{connectGraph(){A.connect(x),A.connect(R.inputs===void 0?R:R.inputs[0]),A.connect(I),R.connect(C),C.connect(w.inputs===void 0?w:w.inputs[0]),C.connect(F.inputs===void 0?F:F.inputs[0]),w.connect(x.gain),F.connect(I.gain),x.connect(E,0,0),I.connect(E,0,1)},disconnectGraph(){A.disconnect(x),A.disconnect(R.inputs===void 0?R:R.inputs[0]),A.disconnect(I),R.disconnect(C),C.disconnect(w.inputs===void 0?w:w.inputs[0]),C.disconnect(F.inputs===void 0?F:F.inputs[0]),w.disconnect(x.gain),F.disconnect(I.gain),x.disconnect(E,0,0),I.disconnect(E,0,1)}}},v=(b,A,C,E)=>{const k=new Float32Array(16385),T=new Float32Array(16385),x=new Float32Array(16385),w=new Float32Array(16385),R=Math.floor(16385/2);for(let re=0;re<16385;re+=1)if(re>R){const z=(re-R)/(16384-R)*f;k[re]=Math.cos(z),T[re]=Math.sin(z),x[re]=0,w[re]=1}else{const z=re/(16384-R)*f;k[re]=1,T[re]=0,x[re]=Math.cos(z),w[re]=Math.sin(z)}const I=e(b,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),F=n(b,{...h,gain:0}),U=r(b,{...g,curve:k}),V=n(b,{...h,gain:0}),K=r(b,{...g,curve:T}),Z=r(b,{...g,curve:c}),J=n(b,{...h,gain:0}),oe=r(b,{...g,curve:x}),fe=n(b,{...h,gain:0}),Q=r(b,{...g,curve:w});return{connectGraph(){A.connect(I),A.connect(Z.inputs===void 0?Z:Z.inputs[0]),I.connect(F,0),I.connect(V,0),I.connect(J,1),I.connect(fe,1),Z.connect(C),C.connect(U.inputs===void 0?U:U.inputs[0]),C.connect(K.inputs===void 0?K:K.inputs[0]),C.connect(oe.inputs===void 0?oe:oe.inputs[0]),C.connect(Q.inputs===void 0?Q:Q.inputs[0]),U.connect(F.gain),K.connect(V.gain),oe.connect(J.gain),Q.connect(fe.gain),F.connect(E,0,0),J.connect(E,0,0),V.connect(E,0,1),fe.connect(E,0,1)},disconnectGraph(){A.disconnect(I),A.disconnect(Z.inputs===void 0?Z:Z.inputs[0]),I.disconnect(F,0),I.disconnect(V,0),I.disconnect(J,1),I.disconnect(fe,1),Z.disconnect(C),C.disconnect(U.inputs===void 0?U:U.inputs[0]),C.disconnect(K.inputs===void 0?K:K.inputs[0]),C.disconnect(oe.inputs===void 0?oe:oe.inputs[0]),C.disconnect(Q.inputs===void 0?Q:Q.inputs[0]),U.disconnect(F.gain),K.disconnect(V.gain),oe.disconnect(J.gain),Q.disconnect(fe.gain),F.disconnect(E,0,0),J.disconnect(E,0,0),V.disconnect(E,0,1),fe.disconnect(E,0,1)}}},S=(b,A,C,E,k)=>{if(A===1)return m(b,C,E,k);if(A===2)return v(b,C,E,k);throw i()};return(b,{channelCount:A,channelCountMode:C,pan:E,...k})=>{if(C==="max")throw i();const T=t(b,{...k,channelCount:1,channelCountMode:C,numberOfInputs:2}),x=n(b,{...k,channelCount:A,channelCountMode:C,gain:1}),w=n(b,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:E});let{connectGraph:R,disconnectGraph:I}=S(b,A,x,w,T);Object.defineProperty(w.gain,"defaultValue",{get:()=>0}),Object.defineProperty(w.gain,"maxValue",{get:()=>1}),Object.defineProperty(w.gain,"minValue",{get:()=>-1});const F={get bufferSize(){},get channelCount(){return x.channelCount},set channelCount(Z){x.channelCount!==Z&&(U&&I(),{connectGraph:R,disconnectGraph:I}=S(b,Z,x,w,T),U&&R()),x.channelCount=Z},get channelCountMode(){return x.channelCountMode},set channelCountMode(Z){if(Z==="clamped-max"||Z==="max")throw i();x.channelCountMode=Z},get channelInterpretation(){return x.channelInterpretation},set channelInterpretation(Z){x.channelInterpretation=Z},get context(){return x.context},get inputs(){return[x]},get numberOfInputs(){return x.numberOfInputs},get numberOfOutputs(){return x.numberOfOutputs},get pan(){return w.gain},addEventListener(...Z){return x.addEventListener(Z[0],Z[1],Z[2])},dispatchEvent(...Z){return x.dispatchEvent(Z[0])},removeEventListener(...Z){return x.removeEventListener(Z[0],Z[1],Z[2])}};let U=!1;const V=()=>{R(),U=!0},K=()=>{I(),U=!1};return o(Jh(F,T),V,K)}},AX=(t,e,n,r,i,o,l)=>(c,f)=>{const h=c.createWaveShaper();if(o!==null&&o.name==="webkitAudioContext"&&c.createGain().gain.automationRate===void 0)return n(c,f);Cr(h,f);const g=f.curve===null||f.curve instanceof Float32Array?f.curve:new Float32Array(f.curve);if(g!==null&&g.length<2)throw e();On(h,{curve:g},"curve"),On(h,f,"oversample");let m=null,v=!1;return l(h,"curve",A=>()=>A.call(h),A=>C=>(A.call(h,C),v&&(r(C)&&m===null?m=t(c,h):!r(C)&&m!==null&&(m(),m=null)),C)),i(h,()=>{v=!0,r(h.curve)&&(m=t(c,h))},()=>{v=!1,m!==null&&(m(),m=null)})},RX=(t,e,n,r,i)=>(o,{curve:l,oversample:c,...f})=>{const h=o.createWaveShaper(),g=o.createWaveShaper();Cr(h,f),Cr(g,f);const m=n(o,{...f,gain:1}),v=n(o,{...f,gain:-1}),S=n(o,{...f,gain:1}),b=n(o,{...f,gain:-1});let A=null,C=!1,E=null;const k={get bufferSize(){},get channelCount(){return h.channelCount},set channelCount(w){m.channelCount=w,v.channelCount=w,h.channelCount=w,S.channelCount=w,g.channelCount=w,b.channelCount=w},get channelCountMode(){return h.channelCountMode},set channelCountMode(w){m.channelCountMode=w,v.channelCountMode=w,h.channelCountMode=w,S.channelCountMode=w,g.channelCountMode=w,b.channelCountMode=w},get channelInterpretation(){return h.channelInterpretation},set channelInterpretation(w){m.channelInterpretation=w,v.channelInterpretation=w,h.channelInterpretation=w,S.channelInterpretation=w,g.channelInterpretation=w,b.channelInterpretation=w},get context(){return h.context},get curve(){return E},set curve(w){if(w!==null&&w.length<2)throw e();if(w===null)h.curve=w,g.curve=w;else{const R=w.length,I=new Float32Array(R+2-R%2),F=new Float32Array(R+2-R%2);I[0]=w[0],F[0]=-w[R-1];const U=Math.ceil((R+1)/2),V=(R+1)/2-1;for(let K=1;K<U;K+=1){const Z=K/U*V,J=Math.floor(Z),oe=Math.ceil(Z);I[K]=J===oe?w[J]:(1-(Z-J))*w[J]+(1-(oe-Z))*w[oe],F[K]=J===oe?-w[R-1-J]:-((1-(Z-J))*w[R-1-J])-(1-(oe-Z))*w[R-1-oe]}I[U]=R%2===1?w[U-1]:(w[U-2]+w[U-1])/2,h.curve=I,g.curve=F}E=w,C&&(r(E)&&A===null?A=t(o,m):A!==null&&(A(),A=null))},get inputs(){return[m]},get numberOfInputs(){return h.numberOfInputs},get numberOfOutputs(){return h.numberOfOutputs},get oversample(){return h.oversample},set oversample(w){h.oversample=w,g.oversample=w},addEventListener(...w){return m.addEventListener(w[0],w[1],w[2])},dispatchEvent(...w){return m.dispatchEvent(w[0])},removeEventListener(...w){return m.removeEventListener(w[0],w[1],w[2])}};l!==null&&(k.curve=l instanceof Float32Array?l:new Float32Array(l)),c!==k.oversample&&(k.oversample=c);const T=()=>{m.connect(h).connect(S),m.connect(v).connect(g).connect(b).connect(S),C=!0,r(E)&&(A=t(o,m))},x=()=>{m.disconnect(h),h.disconnect(S),m.disconnect(v),v.disconnect(g),g.disconnect(b),b.disconnect(S),C=!1,A!==null&&(A(),A=null)};return i(Jh(k,S),T,x)},ki=()=>new DOMException("","NotSupportedError"),kX={numberOfChannels:1},NX=(t,e,n,r,i)=>class extends t{constructor(l,c,f){let h;if(typeof l=="number"&&c!==void 0&&f!==void 0)h={length:c,numberOfChannels:l,sampleRate:f};else if(typeof l=="object")h=l;else throw new Error("The given parameters are not valid.");const{length:g,numberOfChannels:m,sampleRate:v}={...kX,...h},S=r(m,g,v);e(hg,()=>hg(S))||S.addEventListener("statechange",(()=>{let b=0;const A=C=>{this._state==="running"&&(b>0?(S.removeEventListener("statechange",A),C.stopImmediatePropagation(),this._waitForThePromiseToSettle(C)):b+=1)};return A})()),super(S,m),this._length=g,this._nativeOfflineAudioContext=S,this._state=null}get length(){return this._nativeOfflineAudioContext.length===void 0?this._length:this._nativeOfflineAudioContext.length}get state(){return this._state===null?this._nativeOfflineAudioContext.state:this._state}startRendering(){return this._state==="running"?Promise.reject(n()):(this._state="running",i(this.destination,this._nativeOfflineAudioContext).finally(()=>{this._state=null,vP(this)}))}_waitForThePromiseToSettle(l){this._state===null?this._nativeOfflineAudioContext.dispatchEvent(l):setTimeout(()=>this._waitForThePromiseToSettle(l))}},PX={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},DX=(t,e,n,r,i,o,l)=>class extends t{constructor(f,h){const g=i(f),m={...PX,...h},v=n(g,m),S=o(g),b=S?r():null,A=f.sampleRate/2;super(f,!1,v,b),this._detune=e(this,S,v.detune,153600,-153600),this._frequency=e(this,S,v.frequency,A,-A),this._nativeOscillatorNode=v,this._onended=null,this._oscillatorNodeRenderer=b,this._oscillatorNodeRenderer!==null&&m.periodicWave!==void 0&&(this._oscillatorNodeRenderer.periodicWave=m.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(f){const h=typeof f=="function"?l(this,f):null;this._nativeOscillatorNode.onended=h;const g=this._nativeOscillatorNode.onended;this._onended=g!==null&&g===h?f:g}get type(){return this._nativeOscillatorNode.type}set type(f){this._nativeOscillatorNode.type=f,this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(f){this._nativeOscillatorNode.setPeriodicWave(f),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=f)}start(f=0){if(this._nativeOscillatorNode.start(f),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.start=f),this.context.state!=="closed"){Hh(this);const h=()=>{this._nativeOscillatorNode.removeEventListener("ended",h),fl(this)&&qg(this)};this._nativeOscillatorNode.addEventListener("ended",h)}}stop(f=0){this._nativeOscillatorNode.stop(f),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.stop=f)}},LX=(t,e,n,r,i)=>()=>{const o=new WeakMap;let l=null,c=null,f=null;const h=async(g,m)=>{let v=n(g);const S=pi(v,m);if(!S){const b={channelCount:v.channelCount,channelCountMode:v.channelCountMode,channelInterpretation:v.channelInterpretation,detune:v.detune.value,frequency:v.frequency.value,periodicWave:l===null?void 0:l,type:v.type};v=e(m,b),c!==null&&v.start(c),f!==null&&v.stop(f)}return o.set(m,v),S?(await t(m,g.detune,v.detune),await t(m,g.frequency,v.frequency)):(await r(m,g.detune,v.detune),await r(m,g.frequency,v.frequency)),await i(g,m,v),v};return{set periodicWave(g){l=g},set start(g){c=g},set stop(g){f=g},render(g,m){const v=o.get(m);return v!==void 0?Promise.resolve(v):h(g,m)}}},MX={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},IX=(t,e,n,r,i,o,l)=>class extends t{constructor(f,h){const g=i(f),m={...MX,...h},v=n(g,m),S=o(g),b=S?r():null;super(f,!1,v,b),this._nativePannerNode=v,this._orientationX=e(this,S,v.orientationX,Ti,Co),this._orientationY=e(this,S,v.orientationY,Ti,Co),this._orientationZ=e(this,S,v.orientationZ,Ti,Co),this._positionX=e(this,S,v.positionX,Ti,Co),this._positionY=e(this,S,v.positionY,Ti,Co),this._positionZ=e(this,S,v.positionZ,Ti,Co),l(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(f){this._nativePannerNode.coneInnerAngle=f}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(f){this._nativePannerNode.coneOuterAngle=f}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(f){this._nativePannerNode.coneOuterGain=f}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(f){this._nativePannerNode.distanceModel=f}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(f){this._nativePannerNode.maxDistance=f}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(f){this._nativePannerNode.panningModel=f}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(f){this._nativePannerNode.refDistance=f}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(f){this._nativePannerNode.rolloffFactor=f}},FX=(t,e,n,r,i,o,l,c,f,h)=>()=>{const g=new WeakMap;let m=null;const v=async(S,b)=>{let A=null,C=o(S);const E={channelCount:C.channelCount,channelCountMode:C.channelCountMode,channelInterpretation:C.channelInterpretation},k={...E,coneInnerAngle:C.coneInnerAngle,coneOuterAngle:C.coneOuterAngle,coneOuterGain:C.coneOuterGain,distanceModel:C.distanceModel,maxDistance:C.maxDistance,panningModel:C.panningModel,refDistance:C.refDistance,rolloffFactor:C.rolloffFactor},T=pi(C,b);if("bufferSize"in C)A=r(b,{...E,gain:1});else if(!T){const x={...k,orientationX:C.orientationX.value,orientationY:C.orientationY.value,orientationZ:C.orientationZ.value,positionX:C.positionX.value,positionY:C.positionY.value,positionZ:C.positionZ.value};C=i(b,x)}if(g.set(b,A===null?C:A),A!==null){if(m===null){if(l===null)throw new Error("Missing the native OfflineAudioContext constructor.");const K=new l(6,S.context.length,b.sampleRate),Z=e(K,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});Z.connect(K.destination),m=(async()=>{const J=await Promise.all([S.orientationX,S.orientationY,S.orientationZ,S.positionX,S.positionY,S.positionZ].map(async(oe,fe)=>{const Q=n(K,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:fe===0?1:0});return await c(K,oe,Q.offset),Q}));for(let oe=0;oe<6;oe+=1)J[oe].connect(Z,0,oe),J[oe].start(0);return h(K)})()}const x=await m,w=r(b,{...E,gain:1});await f(S,b,w);const R=[];for(let K=0;K<x.numberOfChannels;K+=1)R.push(x.getChannelData(K));let I=[R[0][0],R[1][0],R[2][0]],F=[R[3][0],R[4][0],R[5][0]],U=r(b,{...E,gain:1}),V=i(b,{...k,orientationX:I[0],orientationY:I[1],orientationZ:I[2],positionX:F[0],positionY:F[1],positionZ:F[2]});w.connect(U).connect(V.inputs[0]),V.connect(A);for(let K=128;K<x.length;K+=128){const Z=[R[0][K],R[1][K],R[2][K]],J=[R[3][K],R[4][K],R[5][K]];if(Z.some((oe,fe)=>oe!==I[fe])||J.some((oe,fe)=>oe!==F[fe])){I=Z,F=J;const oe=K/b.sampleRate;U.gain.setValueAtTime(0,oe),U=r(b,{...E,gain:0}),V=i(b,{...k,orientationX:I[0],orientationY:I[1],orientationZ:I[2],positionX:F[0],positionY:F[1],positionZ:F[2]}),U.gain.setValueAtTime(1,oe),w.connect(U).connect(V.inputs[0]),V.connect(A)}}return A}return T?(await t(b,S.orientationX,C.orientationX),await t(b,S.orientationY,C.orientationY),await t(b,S.orientationZ,C.orientationZ),await t(b,S.positionX,C.positionX),await t(b,S.positionY,C.positionY),await t(b,S.positionZ,C.positionZ)):(await c(b,S.orientationX,C.orientationX),await c(b,S.orientationY,C.orientationY),await c(b,S.orientationZ,C.orientationZ),await c(b,S.positionX,C.positionX),await c(b,S.positionY,C.positionY),await c(b,S.positionZ,C.positionZ)),Zh(C)?await f(S,b,C.inputs[0]):await f(S,b,C),C};return{render(S,b){const A=g.get(b);return A!==void 0?Promise.resolve(A):v(S,b)}}},$X={disableNormalization:!1},jX=(t,e,n,r)=>class OP{constructor(o,l){const c=e(o),f=r({...$X,...l}),h=t(c,f);return n.add(h),h}static[Symbol.hasInstance](o){return o!==null&&typeof o=="object"&&Object.getPrototypeOf(o)===OP.prototype||n.has(o)}},zX=(t,e)=>(n,r,i)=>(t(r).replay(i),e(r,n,i)),HX=(t,e,n)=>async(r,i,o)=>{const l=t(r);await Promise.all(l.activeInputs.map((c,f)=>Array.from(c).map(async([h,g])=>{const v=await e(h).render(h,i),S=r.context.destination;!n(h)&&(r!==S||!n(r))&&v.connect(o,g,f)})).reduce((c,f)=>[...c,...f],[]))},qX=(t,e,n)=>async(r,i,o)=>{const l=e(r);await Promise.all(Array.from(l.activeInputs).map(async([c,f])=>{const g=await t(c).render(c,i);n(c)||g.connect(o,f)}))},UX=(t,e,n,r)=>i=>t(hg,()=>hg(i))?Promise.resolve(t(r,r)).then(o=>{if(!o){const l=n(i,512,0,1);i.oncomplete=()=>{l.onaudioprocess=null,l.disconnect()},l.onaudioprocess=()=>i.currentTime,l.connect(i.destination)}return i.startRendering()}):new Promise(o=>{const l=e(i,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});i.oncomplete=c=>{l.disconnect(),o(c.renderedBuffer)},l.connect(i.destination),i.startRendering()}),VX=t=>(e,n)=>{t.set(e,n)},WX=t=>(e,n)=>t.set(e,n),GX=(t,e,n,r,i,o,l,c)=>(f,h)=>n(f).render(f,h).then(()=>Promise.all(Array.from(r(h)).map(g=>n(g).render(g,h)))).then(()=>i(h)).then(g=>(typeof g.copyFromChannel!="function"?(l(g),nx(g)):e(o,()=>o(g))||c(g),t.add(g),g)),BX={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},KX=(t,e,n,r,i,o)=>class extends t{constructor(c,f){const h=i(c),g={...BX,...f},m=n(h,g),v=o(h),S=v?r():null;super(c,!1,m,S),this._pan=e(this,v,m.pan)}get pan(){return this._pan}},XX=(t,e,n,r,i)=>()=>{const o=new WeakMap,l=async(c,f)=>{let h=n(c);const g=pi(h,f);if(!g){const m={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,pan:h.pan.value};h=e(f,m)}return o.set(f,h),g?await t(f,c.pan,h.pan):await r(f,c.pan,h.pan),Zh(h)?await i(c,f,h.inputs[0]):await i(c,f,h),h};return{render(c,f){const h=o.get(f);return h!==void 0?Promise.resolve(h):l(c,f)}}},YX=t=>()=>{if(t===null)return!1;try{new t({length:1,sampleRate:44100})}catch{return!1}return!0},QX=(t,e)=>async()=>{if(t===null)return!0;if(e===null)return!1;const n=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),r=new e(1,128,44100),i=URL.createObjectURL(n);let o=!1,l=!1;try{await r.audioWorklet.addModule(i);const c=new t(r,"a",{numberOfOutputs:0}),f=r.createOscillator();c.port.onmessage=()=>o=!0,c.onprocessorerror=()=>l=!0,f.connect(c),f.start(0),await r.startRendering(),await new Promise(h=>setTimeout(h))}catch{}finally{URL.revokeObjectURL(i)}return o&&!l},ZX=(t,e)=>()=>{if(e===null)return Promise.resolve(!1);const n=new e(1,1,44100),r=t(n,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(i=>{n.oncomplete=()=>{r.disconnect(),i(n.currentTime!==0)},n.startRendering()})},JX=()=>new DOMException("","UnknownError"),eY={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},tY=(t,e,n,r,i,o,l)=>class extends t{constructor(f,h){const g=i(f),m={...eY,...h},v=n(g,m),b=o(g)?r():null;super(f,!0,v,b),this._isCurveNullified=!1,this._nativeWaveShaperNode=v,l(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(f){if(f===null)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(f.length<2)throw e();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=f}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(f){this._nativeWaveShaperNode.oversample=f}},nY=(t,e,n)=>()=>{const r=new WeakMap,i=async(o,l)=>{let c=e(o);if(!pi(c,l)){const h={channelCount:c.channelCount,channelCountMode:c.channelCountMode,channelInterpretation:c.channelInterpretation,curve:c.curve,oversample:c.oversample};c=t(l,h)}return r.set(l,c),Zh(c)?await n(o,l,c.inputs[0]):await n(o,l,c),c};return{render(o,l){const c=r.get(l);return c!==void 0?Promise.resolve(c):i(o,l)}}},rY=()=>typeof window>"u"?null:window,iY=(t,e)=>n=>{n.copyFromChannel=(r,i,o=0)=>{const l=t(o),c=t(i);if(c>=n.numberOfChannels)throw e();const f=n.length,h=n.getChannelData(c),g=r.length;for(let m=l<0?-l:0;m+l<f&&m<g;m+=1)r[m]=h[m+l]},n.copyToChannel=(r,i,o=0)=>{const l=t(o),c=t(i);if(c>=n.numberOfChannels)throw e();const f=n.length,h=n.getChannelData(c),g=r.length;for(let m=l<0?-l:0;m+l<f&&m<g;m+=1)h[m+l]=r[m]}},oY=t=>e=>{e.copyFromChannel=(n=>(r,i,o=0)=>{const l=t(o),c=t(i);if(l<e.length)return n.call(e,r,c,l)})(e.copyFromChannel),e.copyToChannel=(n=>(r,i,o=0)=>{const l=t(o),c=t(i);if(l<e.length)return n.call(e,r,c,l)})(e.copyToChannel)},aY=t=>(e,n)=>{const r=n.createBuffer(1,1,44100);e.buffer===null&&(e.buffer=r),t(e,"buffer",i=>()=>{const o=i.call(e);return o===r?null:o},i=>o=>i.call(e,o===null?r:o))},sY=(t,e)=>(n,r)=>{r.channelCount=1,r.channelCountMode="explicit",Object.defineProperty(r,"channelCount",{get:()=>1,set:()=>{throw t()}}),Object.defineProperty(r,"channelCountMode",{get:()=>"explicit",set:()=>{throw t()}});const i=n.createBufferSource();e(r,()=>{const c=r.numberOfInputs;for(let f=0;f<c;f+=1)i.connect(r,0,f)},()=>i.disconnect(r))},AP=(t,e,n)=>t.copyFromChannel===void 0?t.getChannelData(n)[0]:(t.copyFromChannel(e,n),e[0]),RP=t=>{if(t===null)return!1;const e=t.length;return e%2!==0?t[Math.floor(e/2)]!==0:t[e/2-1]+t[e/2]!==0},Bg=(t,e,n,r)=>{let i=t;for(;!i.hasOwnProperty(e);)i=Object.getPrototypeOf(i);const{get:o,set:l}=Object.getOwnPropertyDescriptor(i,e);Object.defineProperty(t,e,{get:n(o),set:r(l)})},lY=t=>({...t,outputChannelCount:t.outputChannelCount!==void 0?t.outputChannelCount:t.numberOfInputs===1&&t.numberOfOutputs===1?[t.channelCount]:Array.from({length:t.numberOfOutputs},()=>1)}),uY=t=>({...t,channelCount:t.numberOfOutputs}),cY=t=>{const{imag:e,real:n}=t;return e===void 0?n===void 0?{...t,imag:[0,0],real:[0,0]}:{...t,imag:Array.from(n,()=>0),real:n}:n===void 0?{...t,imag:e,real:Array.from(e,()=>0)}:{...t,imag:e,real:n}},kP=(t,e,n)=>{try{t.setValueAtTime(e,n)}catch(r){if(r.code!==9)throw r;kP(t,e,n+1e-7)}},fY=t=>{const e=t.createBufferSource();e.start();try{e.start()}catch{return!0}return!1},dY=t=>{const e=t.createBufferSource(),n=t.createBuffer(1,1,44100);e.buffer=n;try{e.start(0,1)}catch{return!1}return!0},hY=t=>{const e=t.createBufferSource();e.start();try{e.stop()}catch{return!1}return!0},sx=t=>{const e=t.createOscillator();try{e.start(-1)}catch(n){return n instanceof RangeError}return!1},NP=t=>{const e=t.createBuffer(1,1,44100),n=t.createBufferSource();n.buffer=e,n.start(),n.stop();try{return n.stop(),!0}catch{return!1}},lx=t=>{const e=t.createOscillator();try{e.stop(-1)}catch(n){return n instanceof RangeError}return!1},pY=t=>{const{port1:e,port2:n}=new MessageChannel;try{e.postMessage(t)}finally{e.close(),n.close()}},mY=t=>{t.start=(e=>(n=0,r=0,i)=>{const o=t.buffer,l=o===null?r:Math.min(o.duration,r);o!==null&&l>o.duration-.5/t.context.sampleRate?e.call(t,n,0,0):e.call(t,n,l,i)})(t.start)},PP=(t,e)=>{const n=e.createGain();t.connect(n);const r=(i=>()=>{i.call(t,n),t.removeEventListener("ended",r)})(t.disconnect);t.addEventListener("ended",r),Jh(t,n),t.stop=(i=>{let o=!1;return(l=0)=>{if(o)try{i.call(t,l)}catch{n.gain.setValueAtTime(0,l)}else i.call(t,l),o=!0}})(t.stop)},ep=(t,e)=>n=>{const r={value:t};return Object.defineProperties(n,{currentTarget:r,target:r}),typeof e=="function"?e.call(t,n):e.handleEvent.call(t,n)},gY=IG(Tf),vY=qG(Tf),yY=eK($_),DP=new WeakMap,_Y=yK(DP),ka=kB(new Map,new WeakMap),ws=rY(),LP=KK(ka,Cs),ux=vK(Ai),Qr=HX(Ai,ux,_f),wY=BG(LP,Sn,Qr),pn=SK(F_),xl=SX(ws),rn=$K(xl),MP=new WeakMap,IP=cK(ep),Kg=ZK(ws),cx=LK(Kg),fx=MK(ws),FP=IK(ws),pg=eX(ws),Zn=yB(FG(cP),HG(gY,vY,Gy,yY,By,Ai,_Y,Hg,Sn,Tf,fl,_f,py),ka,RK(Fb,By,Ai,Sn,dg,fl),Cs,j_,ki,YB(Gy,Fb,Ai,Sn,dg,pn,fl,rn),rK(MP,Ai,Aa),IP,pn,cx,fx,FP,rn,pg),SY=GG(Zn,wY,Cs,LP,pn,rn),dx=new WeakSet,YA=XK(ws),$P=UB(new Uint32Array(1)),hx=iY($P,Cs),px=oY($P),bY=XG(dx,ka,ki,YA,xl,YX(YA),hx,px),z_=UG(io),jP=qX(ux,Ug,_f),xs=FB(jP),tp=QK(z_,ka,fY,dY,hY,sx,NP,lx,mY,aY(Bg),PP),Es=zX(_K(Ug),jP),CY=ZG(xs,tp,Sn,Es,Qr),Na=_B($G(fP),MP,tx,wB,kG,NG,PG,DG,LG,Lb,lP,Kg,kP),xY=QG(Zn,CY,Na,Lr,tp,pn,rn,ep),EY=sB(Zn,lB,Cs,Lr,JK(io,Bg),pn,rn,Qr),TY=RB(xs,EP,Sn,Es,Qr),Of=WX(DP),OY=AB(Zn,Na,TY,j_,EP,pn,rn,Of),Au=GK(Tf,fx),AY=sY(Lr,Au),Ru=sX(Kg,AY),RY=DB(Ru,Sn,Qr),kY=PB(Zn,RY,Ru,pn,rn),NY=IB(Wg,Sn,Qr),PY=MB(Zn,NY,Wg,pn,rn,uY),DY=cX(z_,tp,io,Au),np=uX(z_,ka,DY,sx,lx),LY=qB(xs,np,Sn,Es,Qr),MY=HB(Zn,Na,LY,np,pn,rn,ep),zP=fX(ki,Bg),IY=GB(zP,Sn,Qr),FY=WB(Zn,IY,zP,pn,rn,Of),$Y=JB(xs,TP,Sn,Es,Qr),jY=ZB(Zn,Na,$Y,TP,pn,rn,Of),HP=dX(ki),zY=sK(xs,HP,Sn,Es,Qr),HY=aK(Zn,Na,zY,HP,ki,pn,rn,Of),qY=mK(xs,io,Sn,Es,Qr),UY=pK(Zn,Na,qY,io,pn,rn),VY=gX(j_,Lr,Gg,ki),H_=UX(ka,io,Gg,ZX(io,xl)),WY=AK(tp,Sn,xl,Qr,H_),GY=hX(VY),BY=TK(Zn,GY,WY,pn,rn,Of),KY=uB(Na,Ru,np,Gg,ki,AP,rn,Bg),qP=new WeakMap,XY=WK(EY,KY,IP,rn,qP,ep),UP=bX(z_,ka,sx,NP,lx,PP),YY=LX(xs,UP,Sn,Es,Qr),QY=DX(Zn,Na,UP,YY,pn,rn,ep),VP=jB(tp),ZY=RX(VP,Lr,io,RP,Au),q_=AX(VP,Lr,ZY,RP,Au,Kg,Bg),JY=xX(Gy,Lr,Ru,io,Gg,q_,ki,By,AP,Au),WP=CX(JY),eQ=FX(xs,Ru,np,io,WP,Sn,xl,Es,Qr,H_),tQ=IX(Zn,Na,WP,eQ,pn,rn,Of),nQ=EX(Cs),rQ=jX(nQ,pn,new WeakSet,cY),iQ=OX(Ru,Wg,io,q_,ki,Au),GP=TX(iQ,ki),oQ=XX(xs,GP,Sn,Es,Qr),aQ=KX(Zn,Na,GP,oQ,pn,rn),sQ=nY(q_,Sn,Qr),lQ=tY(Zn,Lr,q_,sQ,pn,rn,Of),BP=jK(ws),mx=fK(ws),KP=new WeakMap,uQ=bK(KP,xl),cQ=BP?zG(ka,ki,uK(ws),mx,dK(MG),pn,uQ,rn,pg,new WeakMap,new WeakMap,QX(pg,xl),ws):void 0,fQ=FK(cx,rn),dQ=XB(dx,ka,KB,lK,new WeakSet,pn,fQ,Vy,hg,hx,px),XP=TB(cQ,SY,bY,xY,OY,kY,PY,MY,FY,dQ,jY,HY,UY,BY,XY,QY,tQ,rQ,aQ,lQ),hQ=zK(Zn,vX,pn,rn),pQ=qK(Zn,yX,pn,rn),mQ=UK(Zn,_X,pn,rn),gQ=wX(Lr,rn),vQ=VK(Zn,gQ,pn),yQ=aB(XP,Lr,ki,JX,hQ,pQ,mQ,vQ,Kg),gx=CK(qP),_Q=VG(gx),YP=$B(Cs),wQ=tK(gx),QP=iK(Cs),ZP=new WeakMap,SQ=gK(ZP,Aa),bQ=aX(YP,Cs,Lr,Ru,Wg,np,io,Gg,ki,QP,mx,SQ,Au),CQ=nX(Lr,bQ,io,ki,Au),xQ=EB(xs,YP,tp,Ru,Wg,np,io,wQ,QP,mx,Sn,pg,xl,Es,Qr,H_),EQ=wK(KP),TQ=VX(ZP),QA=BP?bB(_Q,Zn,Na,xQ,CQ,Ai,EQ,pn,rn,pg,lY,TQ,pY,ep):void 0,OQ=BB(ki,xl),AQ=GX(dx,ka,ux,gx,H_,Vy,hx,px),RQ=NX(XP,ka,Lr,OQ,AQ),kQ=kK(F_,cx),NQ=NK(ex,fx),PQ=PK(tx,FP),DQ=DK(F_,rn);function Rt(t,e){if(!t)throw new Error(e)}function xu(t,e,n=1/0){if(!(e<=t&&t<=n))throw new RangeError(`Value must be within [${e}, ${n}], got: ${t}`)}function JP(t){!t.isOffline&&t.state!=="running"&&tD('The AudioContext is "suspended". Invoke Tone.start() from a user action to start the audio.')}let eD=console;function LQ(...t){eD.log(...t)}function tD(...t){eD.warn(...t)}function Xo(t){return typeof t>"u"}function $t(t){return!Xo(t)}function MQ(t){return typeof t=="function"}function wf(t){return typeof t=="number"}function tf(t){return Object.prototype.toString.call(t)==="[object Object]"&&t.constructor===Object}function IQ(t){return typeof t=="boolean"}function Oa(t){return Array.isArray(t)}function Ss(t){return typeof t=="string"}function Q0(t){return Ss(t)&&/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(t)}function FQ(t){return new yQ(t)}function $Q(t,e,n){return new RQ(t,e,n)}const nf=typeof self=="object"?self:null,jQ=nf&&(nf.hasOwnProperty("AudioContext")||nf.hasOwnProperty("webkitAudioContext"));function zQ(t,e,n){return Rt($t(QA),"This node only works in a secure context (https or localhost)"),new QA(t,e,n)}class HQ{constructor(e,n,r){this._callback=e,this._type=n,this._updateInterval=r,this._createClock()}_createWorker(){const e=new Blob([`
|
|
581
|
+
// the initial timeout time
|
|
582
|
+
let timeoutTime = ${(this._updateInterval*1e3).toFixed(1)};
|
|
583
|
+
// onmessage callback
|
|
584
|
+
self.onmessage = function(msg){
|
|
585
|
+
timeoutTime = parseInt(msg.data);
|
|
586
|
+
};
|
|
587
|
+
// the tick function which posts a message
|
|
588
|
+
// and schedules a new tick
|
|
589
|
+
function tick(){
|
|
590
|
+
setTimeout(tick, timeoutTime);
|
|
591
|
+
self.postMessage('tick');
|
|
592
|
+
}
|
|
593
|
+
// call tick initially
|
|
594
|
+
tick();
|
|
595
|
+
`],{type:"text/javascript"}),n=URL.createObjectURL(e),r=new Worker(n);r.onmessage=this._callback.bind(this),this._worker=r}_createTimeout(){this._timeout=setTimeout(()=>{this._createTimeout(),this._callback()},this._updateInterval*1e3)}_createClock(){if(this._type==="worker")try{this._createWorker()}catch{this._type="timeout",this._createClock()}else this._type==="timeout"&&this._createTimeout()}_disposeClock(){this._timeout&&(clearTimeout(this._timeout),this._timeout=0),this._worker&&(this._worker.terminate(),this._worker.onmessage=null)}get updateInterval(){return this._updateInterval}set updateInterval(e){this._updateInterval=Math.max(e,128/44100),this._type==="worker"&&this._worker.postMessage(Math.max(e*1e3,1))}get type(){return this._type}set type(e){this._disposeClock(),this._type=e,this._createClock()}dispose(){this._disposeClock()}}function Sf(t){return PQ(t)}function Su(t){return NQ(t)}function my(t){return DQ(t)}function fh(t){return kQ(t)}function nD(t){return t instanceof AudioBuffer}function qQ(t,e){return t==="value"||Sf(e)||Su(e)||nD(e)}function Sh(t,...e){if(!e.length)return t;const n=e.shift();if(tf(t)&&tf(n))for(const r in n)qQ(r,n[r])?t[r]=n[r]:tf(n[r])?(t[r]||Object.assign(t,{[r]:{}}),Sh(t[r],n[r])):Object.assign(t,{[r]:n[r]});return Sh(t,...e)}function UQ(t,e){return t.length===e.length&&t.every((n,r)=>e[r]===n)}function We(t,e,n=[],r){const i={},o=Array.from(e);if(tf(o[0])&&r&&!Reflect.has(o[0],r)&&(Object.keys(o[0]).some(c=>Reflect.has(t,c))||(Sh(i,{[r]:o[0]}),n.splice(n.indexOf(r),1),o.shift())),o.length===1&&tf(o[0]))Sh(i,o[0]);else for(let l=0;l<n.length;l++)$t(o[l])&&(i[n[l]]=o[l]);return Sh(t,i)}function VQ(t){return t.constructor.getDefaults()}function bh(t,e){return Xo(t)?e:t}function ZA(t,e){return e.forEach(n=>{Reflect.has(t,n)&&delete t[n]}),t}/**
|
|
596
|
+
* Tone.js
|
|
597
|
+
* @author Yotam Mann
|
|
598
|
+
* @license http://opensource.org/licenses/MIT MIT License
|
|
599
|
+
* @copyright 2014-2019 Yotam Mann
|
|
600
|
+
*/class El{constructor(){this.debug=!1,this._wasDisposed=!1}static getDefaults(){return{}}log(...e){(this.debug||nf&&this.toString()===nf.TONE_DEBUG_CLASS)&&LQ(this,...e)}dispose(){return this._wasDisposed=!0,this}get disposed(){return this._wasDisposed}toString(){return this.name}}El.version=sP;const vx=1e-6;function Qy(t,e){return t>e+vx}function qb(t,e){return Qy(t,e)||ba(t,e)}function rD(t,e){return t+vx<e}function ba(t,e){return Math.abs(t-e)<vx}function WQ(t,e,n){return Math.max(Math.min(t,n),e)}class Ts extends El{constructor(){super(),this.name="Timeline",this._timeline=[];const e=We(Ts.getDefaults(),arguments,["memory"]);this.memory=e.memory,this.increasing=e.increasing}static getDefaults(){return{memory:1/0,increasing:!1}}get length(){return this._timeline.length}add(e){if(Rt(Reflect.has(e,"time"),"Timeline: events must have a time attribute"),e.time=e.time.valueOf(),this.increasing&&this.length){const n=this._timeline[this.length-1];Rt(qb(e.time,n.time),"The time must be greater than or equal to the last scheduled time"),this._timeline.push(e)}else{const n=this._search(e.time);this._timeline.splice(n+1,0,e)}if(this.length>this.memory){const n=this.length-this.memory;this._timeline.splice(0,n)}return this}remove(e){const n=this._timeline.indexOf(e);return n!==-1&&this._timeline.splice(n,1),this}get(e,n="time"){const r=this._search(e,n);return r!==-1?this._timeline[r]:null}peek(){return this._timeline[0]}shift(){return this._timeline.shift()}getAfter(e,n="time"){const r=this._search(e,n);return r+1<this._timeline.length?this._timeline[r+1]:null}getBefore(e){const n=this._timeline.length;if(n>0&&this._timeline[n-1].time<e)return this._timeline[n-1];const r=this._search(e);return r-1>=0?this._timeline[r-1]:null}cancel(e){if(this._timeline.length>1){let n=this._search(e);if(n>=0)if(ba(this._timeline[n].time,e)){for(let r=n;r>=0&&ba(this._timeline[r].time,e);r--)n=r;this._timeline=this._timeline.slice(0,n)}else this._timeline=this._timeline.slice(0,n+1);else this._timeline=[]}else this._timeline.length===1&&qb(this._timeline[0].time,e)&&(this._timeline=[]);return this}cancelBefore(e){const n=this._search(e);return n>=0&&(this._timeline=this._timeline.slice(n+1)),this}previousEvent(e){const n=this._timeline.indexOf(e);return n>0?this._timeline[n-1]:null}_search(e,n="time"){if(this._timeline.length===0)return-1;let r=0;const i=this._timeline.length;let o=i;if(i>0&&this._timeline[i-1][n]<=e)return i-1;for(;r<o;){let l=Math.floor(r+(o-r)/2);const c=this._timeline[l],f=this._timeline[l+1];if(ba(c[n],e)){for(let h=l;h<this._timeline.length;h++){const g=this._timeline[h];if(ba(g[n],e))l=h;else break}return l}else{if(rD(c[n],e)&&Qy(f[n],e))return l;Qy(c[n],e)?o=l:r=l+1}}return-1}_iterate(e,n=0,r=this._timeline.length-1){this._timeline.slice(n,r+1).forEach(e)}forEach(e){return this._iterate(e),this}forEachBefore(e,n){const r=this._search(e);return r!==-1&&this._iterate(n,0,r),this}forEachAfter(e,n){const r=this._search(e);return this._iterate(n,r+1),this}forEachBetween(e,n,r){let i=this._search(e),o=this._search(n);return i!==-1&&o!==-1?(this._timeline[i].time!==e&&(i+=1),this._timeline[o].time===n&&(o-=1),this._iterate(r,i,o)):i===-1&&this._iterate(r,0,o),this}forEachFrom(e,n){let r=this._search(e);for(;r>=0&&this._timeline[r].time>=e;)r--;return this._iterate(n,r+1),this}forEachAtTime(e,n){const r=this._search(e);if(r!==-1&&ba(this._timeline[r].time,e)){let i=r;for(let o=r;o>=0&&ba(this._timeline[o].time,e);o--)i=o;this._iterate(o=>{n(o)},i,r)}return this}dispose(){return super.dispose(),this._timeline=[],this}}const iD=[];function U_(t){iD.push(t)}function GQ(t){iD.forEach(e=>e(t))}const oD=[];function V_(t){oD.push(t)}function BQ(t){oD.forEach(e=>e(t))}class Xg extends El{constructor(){super(...arguments),this.name="Emitter"}on(e,n){return e.split(/\W+/).forEach(i=>{Xo(this._events)&&(this._events={}),this._events.hasOwnProperty(i)||(this._events[i]=[]),this._events[i].push(n)}),this}once(e,n){const r=(...i)=>{n(...i),this.off(e,r)};return this.on(e,r),this}off(e,n){return e.split(/\W+/).forEach(i=>{if(Xo(this._events)&&(this._events={}),this._events.hasOwnProperty(e))if(Xo(n))this._events[e]=[];else{const o=this._events[e];for(let l=o.length-1;l>=0;l--)o[l]===n&&o.splice(l,1)}}),this}emit(e,...n){if(this._events&&this._events.hasOwnProperty(e)){const r=this._events[e].slice(0);for(let i=0,o=r.length;i<o;i++)r[i].apply(this,n)}return this}static mixin(e){["on","once","off","emit"].forEach(n=>{const r=Object.getOwnPropertyDescriptor(Xg.prototype,n);Object.defineProperty(e.prototype,n,r)})}dispose(){return super.dispose(),this._events=void 0,this}}class aD extends Xg{constructor(){super(...arguments),this.isOffline=!1}toJSON(){return{}}}class Yg extends aD{constructor(){super(),this.name="Context",this._constants=new Map,this._timeouts=new Ts,this._timeoutIds=0,this._initialized=!1,this.isOffline=!1,this._workletModules=new Map;const e=We(Yg.getDefaults(),arguments,["context"]);e.context?this._context=e.context:this._context=FQ({latencyHint:e.latencyHint}),this._ticker=new HQ(this.emit.bind(this,"tick"),e.clockSource,e.updateInterval),this.on("tick",this._timeoutLoop.bind(this)),this._context.onstatechange=()=>{this.emit("statechange",this.state)},this._setLatencyHint(e.latencyHint),this.lookAhead=e.lookAhead}static getDefaults(){return{clockSource:"worker",latencyHint:"interactive",lookAhead:.1,updateInterval:.05}}initialize(){return this._initialized||(GQ(this),this._initialized=!0),this}createAnalyser(){return this._context.createAnalyser()}createOscillator(){return this._context.createOscillator()}createBufferSource(){return this._context.createBufferSource()}createBiquadFilter(){return this._context.createBiquadFilter()}createBuffer(e,n,r){return this._context.createBuffer(e,n,r)}createChannelMerger(e){return this._context.createChannelMerger(e)}createChannelSplitter(e){return this._context.createChannelSplitter(e)}createConstantSource(){return this._context.createConstantSource()}createConvolver(){return this._context.createConvolver()}createDelay(e){return this._context.createDelay(e)}createDynamicsCompressor(){return this._context.createDynamicsCompressor()}createGain(){return this._context.createGain()}createIIRFilter(e,n){return this._context.createIIRFilter(e,n)}createPanner(){return this._context.createPanner()}createPeriodicWave(e,n,r){return this._context.createPeriodicWave(e,n,r)}createStereoPanner(){return this._context.createStereoPanner()}createWaveShaper(){return this._context.createWaveShaper()}createMediaStreamSource(e){return Rt(fh(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamSource(e)}createMediaElementSource(e){return Rt(fh(this._context),"Not available if OfflineAudioContext"),this._context.createMediaElementSource(e)}createMediaStreamDestination(){return Rt(fh(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamDestination()}decodeAudioData(e){return this._context.decodeAudioData(e)}get currentTime(){return this._context.currentTime}get state(){return this._context.state}get sampleRate(){return this._context.sampleRate}get listener(){return this.initialize(),this._listener}set listener(e){Rt(!this._initialized,"The listener cannot be set after initialization."),this._listener=e}get transport(){return this.initialize(),this._transport}set transport(e){Rt(!this._initialized,"The transport cannot be set after initialization."),this._transport=e}get draw(){return this.initialize(),this._draw}set draw(e){Rt(!this._initialized,"Draw cannot be set after initialization."),this._draw=e}get destination(){return this.initialize(),this._destination}set destination(e){Rt(!this._initialized,"The destination cannot be set after initialization."),this._destination=e}createAudioWorkletNode(e,n){return zQ(this.rawContext,e,n)}addAudioWorkletModule(e,n){return hn(this,void 0,void 0,function*(){Rt($t(this.rawContext.audioWorklet),"AudioWorkletNode is only available in a secure context (https or localhost)"),this._workletModules.has(n)||this._workletModules.set(n,this.rawContext.audioWorklet.addModule(e)),yield this._workletModules.get(n)})}workletsAreReady(){return hn(this,void 0,void 0,function*(){const e=[];this._workletModules.forEach(n=>e.push(n)),yield Promise.all(e)})}get updateInterval(){return this._ticker.updateInterval}set updateInterval(e){this._ticker.updateInterval=e}get clockSource(){return this._ticker.type}set clockSource(e){this._ticker.type=e}get latencyHint(){return this._latencyHint}_setLatencyHint(e){let n=0;if(this._latencyHint=e,Ss(e))switch(e){case"interactive":n=.1;break;case"playback":n=.5;break;case"balanced":n=.25;break}this.lookAhead=n,this.updateInterval=n/2}get rawContext(){return this._context}now(){return this._context.currentTime+this.lookAhead}immediate(){return this._context.currentTime}resume(){return fh(this._context)?this._context.resume():Promise.resolve()}close(){return hn(this,void 0,void 0,function*(){fh(this._context)&&(yield this._context.close()),this._initialized&&BQ(this)})}getConstant(e){if(this._constants.has(e))return this._constants.get(e);{const n=this._context.createBuffer(1,128,this._context.sampleRate),r=n.getChannelData(0);for(let o=0;o<r.length;o++)r[o]=e;const i=this._context.createBufferSource();return i.channelCount=1,i.channelCountMode="explicit",i.buffer=n,i.loop=!0,i.start(0),this._constants.set(e,i),i}}dispose(){return super.dispose(),this._ticker.dispose(),this._timeouts.dispose(),Object.keys(this._constants).map(e=>this._constants[e].disconnect()),this}_timeoutLoop(){const e=this.now();let n=this._timeouts.peek();for(;this._timeouts.length&&n&&n.time<=e;)n.callback(),this._timeouts.shift(),n=this._timeouts.peek()}setTimeout(e,n){this._timeoutIds++;const r=this.now();return this._timeouts.add({callback:e,id:this._timeoutIds,time:r+n}),this._timeoutIds}clearTimeout(e){return this._timeouts.forEach(n=>{n.id===e&&this._timeouts.remove(n)}),this}clearInterval(e){return this.clearTimeout(e)}setInterval(e,n){const r=++this._timeoutIds,i=()=>{const o=this.now();this._timeouts.add({callback:()=>{e(),i()},id:r,time:o+n})};return i(),r}}class KQ extends aD{constructor(){super(...arguments),this.lookAhead=0,this.latencyHint=0,this.isOffline=!1}createAnalyser(){return{}}createOscillator(){return{}}createBufferSource(){return{}}createBiquadFilter(){return{}}createBuffer(e,n,r){return{}}createChannelMerger(e){return{}}createChannelSplitter(e){return{}}createConstantSource(){return{}}createConvolver(){return{}}createDelay(e){return{}}createDynamicsCompressor(){return{}}createGain(){return{}}createIIRFilter(e,n){return{}}createPanner(){return{}}createPeriodicWave(e,n,r){return{}}createStereoPanner(){return{}}createWaveShaper(){return{}}createMediaStreamSource(e){return{}}createMediaElementSource(e){return{}}createMediaStreamDestination(){return{}}decodeAudioData(e){return Promise.resolve({})}createAudioWorkletNode(e,n){return{}}get rawContext(){return{}}addAudioWorkletModule(e,n){return hn(this,void 0,void 0,function*(){return Promise.resolve()})}resume(){return Promise.resolve()}setTimeout(e,n){return 0}clearTimeout(e){return this}setInterval(e,n){return 0}clearInterval(e){return this}getConstant(e){return{}}get currentTime(){return 0}get state(){return{}}get sampleRate(){return 0}get listener(){return{}}get transport(){return{}}get draw(){return{}}set draw(e){}get destination(){return{}}set destination(e){}now(){return 0}immediate(){return 0}}function Fn(t,e){Oa(e)?e.forEach(n=>Fn(t,n)):Object.defineProperty(t,e,{enumerable:!0,writable:!1})}function sD(t,e){Oa(e)?e.forEach(n=>sD(t,n)):Object.defineProperty(t,e,{writable:!0})}const sn=()=>{};class dn extends El{constructor(){super(),this.name="ToneAudioBuffer",this.onload=sn;const e=We(dn.getDefaults(),arguments,["url","onload","onerror"]);this.reverse=e.reverse,this.onload=e.onload,e.url&&nD(e.url)||e.url instanceof dn?this.set(e.url):Ss(e.url)&&this.load(e.url).catch(e.onerror)}static getDefaults(){return{onerror:sn,onload:sn,reverse:!1}}get sampleRate(){return this._buffer?this._buffer.sampleRate:Go().sampleRate}set(e){return e instanceof dn?e.loaded?this._buffer=e.get():e.onload=()=>{this.set(e),this.onload(this)}:this._buffer=e,this._reversed&&this._reverse(),this}get(){return this._buffer}load(e){return hn(this,void 0,void 0,function*(){const n=dn.load(e).then(r=>{this.set(r),this.onload(this)});dn.downloads.push(n);try{yield n}finally{const r=dn.downloads.indexOf(n);dn.downloads.splice(r,1)}return this})}dispose(){return super.dispose(),this._buffer=void 0,this}fromArray(e){const n=Oa(e)&&e[0].length>0,r=n?e.length:1,i=n?e[0].length:e.length,o=Go(),l=o.createBuffer(r,i,o.sampleRate),c=!n&&r===1?[e]:e;for(let f=0;f<r;f++)l.copyToChannel(c[f],f);return this._buffer=l,this}toMono(e){if(wf(e))this.fromArray(this.toArray(e));else{let n=new Float32Array(this.length);const r=this.numberOfChannels;for(let i=0;i<r;i++){const o=this.toArray(i);for(let l=0;l<o.length;l++)n[l]+=o[l]}n=n.map(i=>i/r),this.fromArray(n)}return this}toArray(e){if(wf(e))return this.getChannelData(e);if(this.numberOfChannels===1)return this.toArray(0);{const n=[];for(let r=0;r<this.numberOfChannels;r++)n[r]=this.getChannelData(r);return n}}getChannelData(e){return this._buffer?this._buffer.getChannelData(e):new Float32Array(0)}slice(e,n=this.duration){const r=Math.floor(e*this.sampleRate),i=Math.floor(n*this.sampleRate);Rt(r<i,"The start time must be less than the end time");const o=i-r,l=Go().createBuffer(this.numberOfChannels,o,this.sampleRate);for(let c=0;c<this.numberOfChannels;c++)l.copyToChannel(this.getChannelData(c).subarray(r,i),c);return new dn(l)}_reverse(){if(this.loaded)for(let e=0;e<this.numberOfChannels;e++)this.getChannelData(e).reverse();return this}get loaded(){return this.length>0}get duration(){return this._buffer?this._buffer.duration:0}get length(){return this._buffer?this._buffer.length:0}get numberOfChannels(){return this._buffer?this._buffer.numberOfChannels:0}get reverse(){return this._reversed}set reverse(e){this._reversed!==e&&(this._reversed=e,this._reverse())}static fromArray(e){return new dn().fromArray(e)}static fromUrl(e){return hn(this,void 0,void 0,function*(){return yield new dn().load(e)})}static load(e){return hn(this,void 0,void 0,function*(){const n=e.match(/\[([^\]\[]+\|.+)\]$/);if(n){const c=n[1].split("|");let f=c[0];for(const h of c)if(dn.supportsType(h)){f=h;break}e=e.replace(n[0],f)}const r=dn.baseUrl===""||dn.baseUrl.endsWith("/")?dn.baseUrl:dn.baseUrl+"/",i=yield fetch(r+e);if(!i.ok)throw new Error(`could not load url: ${e}`);const o=yield i.arrayBuffer();return yield Go().decodeAudioData(o)})}static supportsType(e){const n=e.split("."),r=n[n.length-1];return document.createElement("audio").canPlayType("audio/"+r)!==""}static loaded(){return hn(this,void 0,void 0,function*(){for(yield Promise.resolve();dn.downloads.length;)yield dn.downloads[0]})}}dn.baseUrl="";dn.downloads=[];class yx extends Yg{constructor(){super({clockSource:"offline",context:my(arguments[0])?arguments[0]:$Q(arguments[0],arguments[1]*arguments[2],arguments[2]),lookAhead:0,updateInterval:my(arguments[0])?128/arguments[0].sampleRate:128/arguments[2]}),this.name="OfflineContext",this._currentTime=0,this.isOffline=!0,this._duration=my(arguments[0])?arguments[0].length/arguments[0].sampleRate:arguments[1]}now(){return this._currentTime}get currentTime(){return this._currentTime}_renderClock(e){return hn(this,void 0,void 0,function*(){let n=0;for(;this._duration-this._currentTime>=0;){this.emit("tick"),this._currentTime+=128/this.sampleRate,n++;const r=Math.floor(this.sampleRate/128);e&&n%r===0&&(yield new Promise(i=>setTimeout(i,1)))}})}render(e=!0){return hn(this,void 0,void 0,function*(){yield this.workletsAreReady(),yield this._renderClock(e);const n=yield this._context.startRendering();return new dn(n)})}close(){return Promise.resolve()}}const lD=new KQ;let Bm=lD;function Go(){return Bm===lD&&jQ&&XQ(new Yg),Bm}function XQ(t){fh(t)?Bm=new Yg(t):my(t)?Bm=new yx(t):Bm=t}if(nf&&!nf.TONE_SILENCE_LOGGING){const e=` * Tone.js v${sP} * `;console.log(`%c${e}`,"background: #000; color: #fff")}function YQ(t){return Math.pow(10,t/20)}function QQ(t){return 20*(Math.log(t)/Math.LN10)}function uD(t){return Math.pow(2,t/12)}let W_=440;function ZQ(){return W_}function JQ(t){W_=t}function Ub(t){return Math.round(cD(t))}function cD(t){return 69+12*Math.log2(t/W_)}function eZ(t){return W_*Math.pow(2,(t-69)/12)}class _x extends El{constructor(e,n,r){super(),this.defaultUnits="s",this._val=n,this._units=r,this.context=e,this._expressions=this._getExpressions()}_getExpressions(){return{hz:{method:e=>this._frequencyToUnits(parseFloat(e)),regexp:/^(\d+(?:\.\d+)?)hz$/i},i:{method:e=>this._ticksToUnits(parseInt(e,10)),regexp:/^(\d+)i$/i},m:{method:e=>this._beatsToUnits(parseInt(e,10)*this._getTimeSignature()),regexp:/^(\d+)m$/i},n:{method:(e,n)=>{const r=parseInt(e,10),i=n==="."?1.5:1;return r===1?this._beatsToUnits(this._getTimeSignature())*i:this._beatsToUnits(4/r)*i},regexp:/^(\d+)n(\.?)$/i},number:{method:e=>this._expressions[this.defaultUnits].method.call(this,e),regexp:/^(\d+(?:\.\d+)?)$/},s:{method:e=>this._secondsToUnits(parseFloat(e)),regexp:/^(\d+(?:\.\d+)?)s$/},samples:{method:e=>parseInt(e,10)/this.context.sampleRate,regexp:/^(\d+)samples$/},t:{method:e=>{const n=parseInt(e,10);return this._beatsToUnits(8/(Math.floor(n)*3))},regexp:/^(\d+)t$/i},tr:{method:(e,n,r)=>{let i=0;return e&&e!=="0"&&(i+=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),n&&n!=="0"&&(i+=this._beatsToUnits(parseFloat(n))),r&&r!=="0"&&(i+=this._beatsToUnits(parseFloat(r)/4)),i},regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?$/}}}valueOf(){if(this._val instanceof _x&&this.fromType(this._val),Xo(this._val))return this._noArg();if(Ss(this._val)&&Xo(this._units)){for(const e in this._expressions)if(this._expressions[e].regexp.test(this._val.trim())){this._units=e;break}}else if(tf(this._val)){let e=0;for(const n in this._val)if($t(this._val[n])){const r=this._val[n],i=new this.constructor(this.context,n).valueOf()*r;e+=i}return e}if($t(this._units)){const e=this._expressions[this._units],n=this._val.toString().trim().match(e.regexp);return n?e.method.apply(this,n.slice(1)):e.method.call(this,this._val)}else return Ss(this._val)?parseFloat(this._val):this._val}_frequencyToUnits(e){return 1/e}_beatsToUnits(e){return 60/this._getBpm()*e}_secondsToUnits(e){return e}_ticksToUnits(e){return e*this._beatsToUnits(1)/this._getPPQ()}_noArg(){return this._now()}_getBpm(){return this.context.transport.bpm.value}_getTimeSignature(){return this.context.transport.timeSignature}_getPPQ(){return this.context.transport.PPQ}fromType(e){switch(this._units=void 0,this.defaultUnits){case"s":this._val=e.toSeconds();break;case"i":this._val=e.toTicks();break;case"hz":this._val=e.toFrequency();break;case"midi":this._val=e.toMidi();break}return this}toFrequency(){return 1/this.toSeconds()}toSamples(){return this.toSeconds()*this.context.sampleRate}toMilliseconds(){return this.toSeconds()*1e3}}class xa extends _x{constructor(){super(...arguments),this.name="TimeClass"}_getExpressions(){return Object.assign(super._getExpressions(),{now:{method:e=>this._now()+new this.constructor(this.context,e).valueOf(),regexp:/^\+(.+)/},quantize:{method:e=>{const n=new xa(this.context,e).valueOf();return this._secondsToUnits(this.context.transport.nextSubdivision(n))},regexp:/^@(.+)/}})}quantize(e,n=1){const r=new this.constructor(this.context,e).valueOf(),i=this.valueOf(),c=Math.round(i/r)*r-i;return i+c*n}toNotation(){const e=this.toSeconds(),n=["1m"];for(let o=1;o<9;o++){const l=Math.pow(2,o);n.push(l+"n."),n.push(l+"n"),n.push(l+"t")}n.push("0");let r=n[0],i=new xa(this.context,n[0]).toSeconds();return n.forEach(o=>{const l=new xa(this.context,o).toSeconds();Math.abs(l-e)<Math.abs(i-e)&&(r=o,i=l)}),r}toBarsBeatsSixteenths(){const e=this._beatsToUnits(1);let n=this.valueOf()/e;n=parseFloat(n.toFixed(4));const r=Math.floor(n/this._getTimeSignature());let i=n%1*4;n=Math.floor(n)%this._getTimeSignature();const o=i.toString();return o.length>3&&(i=parseFloat(parseFloat(o).toFixed(3))),[r,n,i].join(":")}toTicks(){const e=this._beatsToUnits(1),n=this.valueOf()/e;return Math.round(n*this._getPPQ())}toSeconds(){return this.valueOf()}toMidi(){return Ub(this.toFrequency())}_now(){return this.context.now()}}class Bo extends xa{constructor(){super(...arguments),this.name="Frequency",this.defaultUnits="hz"}static get A4(){return ZQ()}static set A4(e){JQ(e)}_getExpressions(){return Object.assign({},super._getExpressions(),{midi:{regexp:/^(\d+(?:\.\d+)?midi)/,method(e){return this.defaultUnits==="midi"?e:Bo.mtof(e)}},note:{regexp:/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i,method(e,n){const i=tZ[e.toLowerCase()]+(parseInt(n,10)+1)*12;return this.defaultUnits==="midi"?i:Bo.mtof(i)}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method(e,n,r){let i=1;return e&&e!=="0"&&(i*=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),n&&n!=="0"&&(i*=this._beatsToUnits(parseFloat(n))),r&&r!=="0"&&(i*=this._beatsToUnits(parseFloat(r)/4)),i}}})}transpose(e){return new Bo(this.context,this.valueOf()*uD(e))}harmonize(e){return e.map(n=>this.transpose(n))}toMidi(){return Ub(this.valueOf())}toNote(){const e=this.toFrequency(),n=Math.log2(e/Bo.A4);let r=Math.round(12*n)+57;const i=Math.floor(r/12);return i<0&&(r+=-12*i),nZ[r%12]+i.toString()}toSeconds(){return 1/super.toSeconds()}toTicks(){const e=this._beatsToUnits(1),n=this.valueOf()/e;return Math.floor(n*this._getPPQ())}_noArg(){return 0}_frequencyToUnits(e){return e}_ticksToUnits(e){return 1/(e*60/(this._getBpm()*this._getPPQ()))}_beatsToUnits(e){return 1/super._beatsToUnits(e)}_secondsToUnits(e){return 1/e}static mtof(e){return eZ(e)}static ftom(e){return Ub(e)}}const tZ={cbb:-2,cb:-1,c:0,"c#":1,cx:2,dbb:0,db:1,d:2,"d#":3,dx:4,ebb:2,eb:3,e:4,"e#":5,ex:6,fbb:3,fb:4,f:5,"f#":6,fx:7,gbb:5,gb:6,g:7,"g#":8,gx:9,abb:7,ab:8,a:9,"a#":10,ax:11,bbb:9,bb:10,b:11,"b#":12,bx:13},nZ=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];class Km extends xa{constructor(){super(...arguments),this.name="TransportTime"}_now(){return this.context.transport.seconds}}class no extends El{constructor(){super();const e=We(no.getDefaults(),arguments,["context"]);this.defaultContext?this.context=this.defaultContext:this.context=e.context}static getDefaults(){return{context:Go()}}now(){return this.context.currentTime+this.context.lookAhead}immediate(){return this.context.currentTime}get sampleTime(){return 1/this.context.sampleRate}get blockTime(){return 128/this.context.sampleRate}toSeconds(e){return new xa(this.context,e).toSeconds()}toFrequency(e){return new Bo(this.context,e).toFrequency()}toTicks(e){return new Km(this.context,e).toTicks()}_getPartialProperties(e){const n=this.get();return Object.keys(n).forEach(r=>{Xo(e[r])&&delete n[r]}),n}get(){const e=VQ(this);return Object.keys(e).forEach(n=>{if(Reflect.has(this,n)){const r=this[n];$t(r)&&$t(r.value)&&$t(r.setValueAtTime)?e[n]=r.value:r instanceof no?e[n]=r._getPartialProperties(e[n]):Oa(r)||wf(r)||Ss(r)||IQ(r)?e[n]=r:delete e[n]}}),e}set(e){return Object.keys(e).forEach(n=>{Reflect.has(this,n)&&$t(this[n])&&(this[n]&&$t(this[n].value)&&$t(this[n].setValueAtTime)?this[n].value!==e[n]&&(this[n].value=e[n]):this[n]instanceof no?this[n].set(e[n]):this[n]=e[n])}),this}}class wx extends Ts{constructor(e="stopped"){super(),this.name="StateTimeline",this._initial=e,this.setStateAtTime(this._initial,0)}getValueAtTime(e){const n=this.get(e);return n!==null?n.state:this._initial}setStateAtTime(e,n,r){return xu(n,0),this.add(Object.assign({},r,{state:e,time:n})),this}getLastState(e,n){const r=this._search(n);for(let i=r;i>=0;i--){const o=this._timeline[i];if(o.state===e)return o}}getNextState(e,n){const r=this._search(n);if(r!==-1)for(let i=r;i<this._timeline.length;i++){const o=this._timeline[i];if(o.state===e)return o}}}class Tn extends no{constructor(){super(We(Tn.getDefaults(),arguments,["param","units","convert"])),this.name="Param",this.overridden=!1,this._minOutput=1e-7;const e=We(Tn.getDefaults(),arguments,["param","units","convert"]);for(Rt($t(e.param)&&(Sf(e.param)||e.param instanceof Tn),"param must be an AudioParam");!Sf(e.param);)e.param=e.param._param;this._swappable=$t(e.swappable)?e.swappable:!1,this._swappable?(this.input=this.context.createGain(),this._param=e.param,this.input.connect(this._param)):this._param=this.input=e.param,this._events=new Ts(1e3),this._initialValue=this._param.defaultValue,this.units=e.units,this.convert=e.convert,this._minValue=e.minValue,this._maxValue=e.maxValue,$t(e.value)&&e.value!==this._toType(this._initialValue)&&this.setValueAtTime(e.value,0)}static getDefaults(){return Object.assign(no.getDefaults(),{convert:!0,units:"number"})}get value(){const e=this.now();return this.getValueAtTime(e)}set value(e){this.cancelScheduledValues(this.now()),this.setValueAtTime(e,this.now())}get minValue(){return $t(this._minValue)?this._minValue:this.units==="time"||this.units==="frequency"||this.units==="normalRange"||this.units==="positive"||this.units==="transportTime"||this.units==="ticks"||this.units==="bpm"||this.units==="hertz"||this.units==="samples"?0:this.units==="audioRange"?-1:this.units==="decibels"?-1/0:this._param.minValue}get maxValue(){return $t(this._maxValue)?this._maxValue:this.units==="normalRange"||this.units==="audioRange"?1:this._param.maxValue}_is(e,n){return this.units===n}_assertRange(e){return $t(this.maxValue)&&$t(this.minValue)&&xu(e,this._fromType(this.minValue),this._fromType(this.maxValue)),e}_fromType(e){return this.convert&&!this.overridden?this._is(e,"time")?this.toSeconds(e):this._is(e,"decibels")?YQ(e):this._is(e,"frequency")?this.toFrequency(e):e:this.overridden?0:e}_toType(e){return this.convert&&this.units==="decibels"?QQ(e):e}setValueAtTime(e,n){const r=this.toSeconds(n),i=this._fromType(e);return Rt(isFinite(i)&&isFinite(r),`Invalid argument(s) to setValueAtTime: ${JSON.stringify(e)}, ${JSON.stringify(n)}`),this._assertRange(i),this.log(this.units,"setValueAtTime",e,r),this._events.add({time:r,type:"setValueAtTime",value:i}),this._param.setValueAtTime(i,r),this}getValueAtTime(e){const n=Math.max(this.toSeconds(e),0),r=this._events.getAfter(n),i=this._events.get(n);let o=this._initialValue;if(i===null)o=this._initialValue;else if(i.type==="setTargetAtTime"&&(r===null||r.type==="setValueAtTime")){const l=this._events.getBefore(i.time);let c;l===null?c=this._initialValue:c=l.value,i.type==="setTargetAtTime"&&(o=this._exponentialApproach(i.time,c,i.value,i.constant,n))}else if(r===null)o=i.value;else if(r.type==="linearRampToValueAtTime"||r.type==="exponentialRampToValueAtTime"){let l=i.value;if(i.type==="setTargetAtTime"){const c=this._events.getBefore(i.time);c===null?l=this._initialValue:l=c.value}r.type==="linearRampToValueAtTime"?o=this._linearInterpolate(i.time,l,r.time,r.value,n):o=this._exponentialInterpolate(i.time,l,r.time,r.value,n)}else o=i.value;return this._toType(o)}setRampPoint(e){e=this.toSeconds(e);let n=this.getValueAtTime(e);return this.cancelAndHoldAtTime(e),this._fromType(n)===0&&(n=this._toType(this._minOutput)),this.setValueAtTime(n,e),this}linearRampToValueAtTime(e,n){const r=this._fromType(e),i=this.toSeconds(n);return Rt(isFinite(r)&&isFinite(i),`Invalid argument(s) to linearRampToValueAtTime: ${JSON.stringify(e)}, ${JSON.stringify(n)}`),this._assertRange(r),this._events.add({time:i,type:"linearRampToValueAtTime",value:r}),this.log(this.units,"linearRampToValueAtTime",e,i),this._param.linearRampToValueAtTime(r,i),this}exponentialRampToValueAtTime(e,n){let r=this._fromType(e);r=ba(r,0)?this._minOutput:r,this._assertRange(r);const i=this.toSeconds(n);return Rt(isFinite(r)&&isFinite(i),`Invalid argument(s) to exponentialRampToValueAtTime: ${JSON.stringify(e)}, ${JSON.stringify(n)}`),this._events.add({time:i,type:"exponentialRampToValueAtTime",value:r}),this.log(this.units,"exponentialRampToValueAtTime",e,i),this._param.exponentialRampToValueAtTime(r,i),this}exponentialRampTo(e,n,r){return r=this.toSeconds(r),this.setRampPoint(r),this.exponentialRampToValueAtTime(e,r+this.toSeconds(n)),this}linearRampTo(e,n,r){return r=this.toSeconds(r),this.setRampPoint(r),this.linearRampToValueAtTime(e,r+this.toSeconds(n)),this}targetRampTo(e,n,r){return r=this.toSeconds(r),this.setRampPoint(r),this.exponentialApproachValueAtTime(e,r,n),this}exponentialApproachValueAtTime(e,n,r){n=this.toSeconds(n),r=this.toSeconds(r);const i=Math.log(r+1)/Math.log(200);return this.setTargetAtTime(e,n,i),this.cancelAndHoldAtTime(n+r*.9),this.linearRampToValueAtTime(e,n+r),this}setTargetAtTime(e,n,r){const i=this._fromType(e);Rt(isFinite(r)&&r>0,"timeConstant must be a number greater than 0");const o=this.toSeconds(n);return this._assertRange(i),Rt(isFinite(i)&&isFinite(o),`Invalid argument(s) to setTargetAtTime: ${JSON.stringify(e)}, ${JSON.stringify(n)}`),this._events.add({constant:r,time:o,type:"setTargetAtTime",value:i}),this.log(this.units,"setTargetAtTime",e,o,r),this._param.setTargetAtTime(i,o,r),this}setValueCurveAtTime(e,n,r,i=1){r=this.toSeconds(r),n=this.toSeconds(n);const o=this._fromType(e[0])*i;this.setValueAtTime(this._toType(o),n);const l=r/(e.length-1);for(let c=1;c<e.length;c++){const f=this._fromType(e[c])*i;this.linearRampToValueAtTime(this._toType(f),n+c*l)}return this}cancelScheduledValues(e){const n=this.toSeconds(e);return Rt(isFinite(n),`Invalid argument to cancelScheduledValues: ${JSON.stringify(e)}`),this._events.cancel(n),this._param.cancelScheduledValues(n),this.log(this.units,"cancelScheduledValues",n),this}cancelAndHoldAtTime(e){const n=this.toSeconds(e),r=this._fromType(this.getValueAtTime(n));Rt(isFinite(n),`Invalid argument to cancelAndHoldAtTime: ${JSON.stringify(e)}`),this.log(this.units,"cancelAndHoldAtTime",n,"value="+r);const i=this._events.get(n),o=this._events.getAfter(n);return i&&ba(i.time,n)?o?(this._param.cancelScheduledValues(o.time),this._events.cancel(o.time)):(this._param.cancelAndHoldAtTime(n),this._events.cancel(n+this.sampleTime)):o&&(this._param.cancelScheduledValues(o.time),this._events.cancel(o.time),o.type==="linearRampToValueAtTime"?this.linearRampToValueAtTime(this._toType(r),n):o.type==="exponentialRampToValueAtTime"&&this.exponentialRampToValueAtTime(this._toType(r),n)),this._events.add({time:n,type:"setValueAtTime",value:r}),this._param.setValueAtTime(r,n),this}rampTo(e,n=.1,r){return this.units==="frequency"||this.units==="bpm"||this.units==="decibels"?this.exponentialRampTo(e,n,r):this.linearRampTo(e,n,r),this}apply(e){const n=this.context.currentTime;e.setValueAtTime(this.getValueAtTime(n),n);const r=this._events.get(n);if(r&&r.type==="setTargetAtTime"){const i=this._events.getAfter(r.time),o=i?i.time:n+2,l=(o-n)/10;for(let c=n;c<o;c+=l)e.linearRampToValueAtTime(this.getValueAtTime(c),c)}return this._events.forEachAfter(this.context.currentTime,i=>{i.type==="cancelScheduledValues"?e.cancelScheduledValues(i.time):i.type==="setTargetAtTime"?e.setTargetAtTime(i.value,i.time,i.constant):e[i.type](i.value,i.time)}),this}setParam(e){Rt(this._swappable,"The Param must be assigned as 'swappable' in the constructor");const n=this.input;return n.disconnect(this._param),this.apply(e),this._param=e,n.connect(this._param),this}dispose(){return super.dispose(),this._events.dispose(),this}get defaultValue(){return this._toType(this._param.defaultValue)}_exponentialApproach(e,n,r,i,o){return r+(n-r)*Math.exp(-(o-e)/i)}_linearInterpolate(e,n,r,i,o){return n+(i-n)*((o-e)/(r-e))}_exponentialInterpolate(e,n,r,i,o){return n*Math.pow(i/n,(o-e)/(r-e))}}class Mt extends no{constructor(){super(...arguments),this.name="ToneAudioNode",this._internalChannels=[]}get numberOfInputs(){return $t(this.input)?Sf(this.input)||this.input instanceof Tn?1:this.input.numberOfInputs:0}get numberOfOutputs(){return $t(this.output)?this.output.numberOfOutputs:0}_isAudioNode(e){return $t(e)&&(e instanceof Mt||Su(e))}_getInternalNodes(){const e=this._internalChannels.slice(0);return this._isAudioNode(this.input)&&e.push(this.input),this._isAudioNode(this.output)&&this.input!==this.output&&e.push(this.output),e}_setChannelProperties(e){this._getInternalNodes().forEach(r=>{r.channelCount=e.channelCount,r.channelCountMode=e.channelCountMode,r.channelInterpretation=e.channelInterpretation})}_getChannelProperties(){const e=this._getInternalNodes();Rt(e.length>0,"ToneAudioNode does not have any internal nodes");const n=e[0];return{channelCount:n.channelCount,channelCountMode:n.channelCountMode,channelInterpretation:n.channelInterpretation}}get channelCount(){return this._getChannelProperties().channelCount}set channelCount(e){const n=this._getChannelProperties();this._setChannelProperties(Object.assign(n,{channelCount:e}))}get channelCountMode(){return this._getChannelProperties().channelCountMode}set channelCountMode(e){const n=this._getChannelProperties();this._setChannelProperties(Object.assign(n,{channelCountMode:e}))}get channelInterpretation(){return this._getChannelProperties().channelInterpretation}set channelInterpretation(e){const n=this._getChannelProperties();this._setChannelProperties(Object.assign(n,{channelInterpretation:e}))}connect(e,n=0,r=0){return rp(this,e,n,r),this}toDestination(){return this.connect(this.context.destination),this}toMaster(){return tD("toMaster() has been renamed toDestination()"),this.toDestination()}disconnect(e,n=0,r=0){return rZ(this,e,n,r),this}chain(...e){return Vb(this,...e),this}fan(...e){return e.forEach(n=>this.connect(n)),this}dispose(){return super.dispose(),$t(this.input)&&(this.input instanceof Mt?this.input.dispose():Su(this.input)&&this.input.disconnect()),$t(this.output)&&(this.output instanceof Mt?this.output.dispose():Su(this.output)&&this.output.disconnect()),this._internalChannels=[],this}}function Vb(...t){const e=t.shift();t.reduce((n,r)=>(n instanceof Mt?n.connect(r):Su(n)&&rp(n,r),r),e)}function rp(t,e,n=0,r=0){for(Rt($t(t),"Cannot connect from undefined node"),Rt($t(e),"Cannot connect to undefined node"),(e instanceof Mt||Su(e))&&Rt(e.numberOfInputs>0,"Cannot connect to node with no inputs"),Rt(t.numberOfOutputs>0,"Cannot connect from node with no outputs");e instanceof Mt||e instanceof Tn;)$t(e.input)&&(e=e.input);for(;t instanceof Mt;)$t(t.output)&&(t=t.output);Sf(e)?t.connect(e,n):t.connect(e,n,r)}function rZ(t,e,n=0,r=0){if($t(e))for(;e instanceof Mt;)e=e.input;for(;!Su(t);)$t(t.output)&&(t=t.output);Sf(e)?t.disconnect(e,n):Su(e)?t.disconnect(e,n,r):t.disconnect()}class Ri extends Mt{constructor(){super(We(Ri.getDefaults(),arguments,["gain","units"])),this.name="Gain",this._gainNode=this.context.createGain(),this.input=this._gainNode,this.output=this._gainNode;const e=We(Ri.getDefaults(),arguments,["gain","units"]);this.gain=new Tn({context:this.context,convert:e.convert,param:this._gainNode.gain,units:e.units,value:e.gain,minValue:e.minValue,maxValue:e.maxValue}),Fn(this,"gain")}static getDefaults(){return Object.assign(Mt.getDefaults(),{convert:!0,gain:1,units:"gain"})}dispose(){return super.dispose(),this._gainNode.disconnect(),this.gain.dispose(),this}}class qh extends Mt{constructor(e){super(e),this.onended=sn,this._startTime=-1,this._stopTime=-1,this._timeout=-1,this.output=new Ri({context:this.context,gain:0}),this._gainNode=this.output,this.getStateAtTime=function(n){const r=this.toSeconds(n);return this._startTime!==-1&&r>=this._startTime&&(this._stopTime===-1||r<=this._stopTime)?"started":"stopped"},this._fadeIn=e.fadeIn,this._fadeOut=e.fadeOut,this._curve=e.curve,this.onended=e.onended}static getDefaults(){return Object.assign(Mt.getDefaults(),{curve:"linear",fadeIn:0,fadeOut:0,onended:sn})}_startGain(e,n=1){Rt(this._startTime===-1,"Source cannot be started more than once");const r=this.toSeconds(this._fadeIn);return this._startTime=e+r,this._startTime=Math.max(this._startTime,this.context.currentTime),r>0?(this._gainNode.gain.setValueAtTime(0,e),this._curve==="linear"?this._gainNode.gain.linearRampToValueAtTime(n,e+r):this._gainNode.gain.exponentialApproachValueAtTime(n,e,r)):this._gainNode.gain.setValueAtTime(n,e),this}stop(e){return this.log("stop",e),this._stopGain(this.toSeconds(e)),this}_stopGain(e){Rt(this._startTime!==-1,"'start' must be called before 'stop'"),this.cancelStop();const n=this.toSeconds(this._fadeOut);return this._stopTime=this.toSeconds(e)+n,this._stopTime=Math.max(this._stopTime,this.context.currentTime),n>0?this._curve==="linear"?this._gainNode.gain.linearRampTo(0,n,e):this._gainNode.gain.targetRampTo(0,n,e):(this._gainNode.gain.cancelAndHoldAtTime(e),this._gainNode.gain.setValueAtTime(0,e)),this.context.clearTimeout(this._timeout),this._timeout=this.context.setTimeout(()=>{const r=this._curve==="exponential"?n*2:0;this._stopSource(this.now()+r),this._onended()},this._stopTime-this.context.currentTime),this}_onended(){if(this.onended!==sn&&(this.onended(this),this.onended=sn,!this.context.isOffline)){const e=()=>this.dispose();typeof window.requestIdleCallback<"u"?window.requestIdleCallback(e):setTimeout(e,1e3)}}get state(){return this.getStateAtTime(this.now())}cancelStop(){return this.log("cancelStop"),Rt(this._startTime!==-1,"Source is not started"),this._gainNode.gain.cancelScheduledValues(this._startTime+this.sampleTime),this.context.clearTimeout(this._timeout),this._stopTime=-1,this}dispose(){return super.dispose(),this._gainNode.disconnect(),this}}class Zy extends qh{constructor(){super(We(Zy.getDefaults(),arguments,["offset"])),this.name="ToneConstantSource",this._source=this.context.createConstantSource();const e=We(Zy.getDefaults(),arguments,["offset"]);rp(this._source,this._gainNode),this.offset=new Tn({context:this.context,convert:e.convert,param:this._source.offset,units:e.units,value:e.offset,minValue:e.minValue,maxValue:e.maxValue})}static getDefaults(){return Object.assign(qh.getDefaults(),{convert:!0,offset:1,units:"number"})}start(e){const n=this.toSeconds(e);return this.log("start",n),this._startGain(n),this._source.start(n),this}_stopSource(e){this._source.stop(e)}dispose(){return super.dispose(),this.state==="started"&&this.stop(),this._source.disconnect(),this.offset.dispose(),this}}class xr extends Mt{constructor(){super(We(xr.getDefaults(),arguments,["value","units"])),this.name="Signal",this.override=!0;const e=We(xr.getDefaults(),arguments,["value","units"]);this.output=this._constantSource=new Zy({context:this.context,convert:e.convert,offset:e.value,units:e.units,minValue:e.minValue,maxValue:e.maxValue}),this._constantSource.start(0),this.input=this._param=this._constantSource.offset}static getDefaults(){return Object.assign(Mt.getDefaults(),{convert:!0,units:"number",value:0})}connect(e,n=0,r=0){return Sx(this,e,n,r),this}dispose(){return super.dispose(),this._param.dispose(),this._constantSource.dispose(),this}setValueAtTime(e,n){return this._param.setValueAtTime(e,n),this}getValueAtTime(e){return this._param.getValueAtTime(e)}setRampPoint(e){return this._param.setRampPoint(e),this}linearRampToValueAtTime(e,n){return this._param.linearRampToValueAtTime(e,n),this}exponentialRampToValueAtTime(e,n){return this._param.exponentialRampToValueAtTime(e,n),this}exponentialRampTo(e,n,r){return this._param.exponentialRampTo(e,n,r),this}linearRampTo(e,n,r){return this._param.linearRampTo(e,n,r),this}targetRampTo(e,n,r){return this._param.targetRampTo(e,n,r),this}exponentialApproachValueAtTime(e,n,r){return this._param.exponentialApproachValueAtTime(e,n,r),this}setTargetAtTime(e,n,r){return this._param.setTargetAtTime(e,n,r),this}setValueCurveAtTime(e,n,r,i){return this._param.setValueCurveAtTime(e,n,r,i),this}cancelScheduledValues(e){return this._param.cancelScheduledValues(e),this}cancelAndHoldAtTime(e){return this._param.cancelAndHoldAtTime(e),this}rampTo(e,n,r){return this._param.rampTo(e,n,r),this}get value(){return this._param.value}set value(e){this._param.value=e}get convert(){return this._param.convert}set convert(e){this._param.convert=e}get units(){return this._param.units}get overridden(){return this._param.overridden}set overridden(e){this._param.overridden=e}get maxValue(){return this._param.maxValue}get minValue(){return this._param.minValue}apply(e){return this._param.apply(e),this}}function Sx(t,e,n,r){(e instanceof Tn||Sf(e)||e instanceof xr&&e.override)&&(e.cancelScheduledValues(0),e.setValueAtTime(0,0),e instanceof xr&&(e.overridden=!0)),rp(t,e,n,r)}class Jy extends Tn{constructor(){super(We(Jy.getDefaults(),arguments,["value"])),this.name="TickParam",this._events=new Ts(1/0),this._multiplier=1;const e=We(Jy.getDefaults(),arguments,["value"]);this._multiplier=e.multiplier,this._events.cancel(0),this._events.add({ticks:0,time:0,type:"setValueAtTime",value:this._fromType(e.value)}),this.setValueAtTime(e.value,0)}static getDefaults(){return Object.assign(Tn.getDefaults(),{multiplier:1,units:"hertz",value:1})}setTargetAtTime(e,n,r){n=this.toSeconds(n),this.setRampPoint(n);const i=this._fromType(e),o=this._events.get(n),l=Math.round(Math.max(1/r,1));for(let c=0;c<=l;c++){const f=r*c+n,h=this._exponentialApproach(o.time,o.value,i,r,f);this.linearRampToValueAtTime(this._toType(h),f)}return this}setValueAtTime(e,n){const r=this.toSeconds(n);super.setValueAtTime(e,n);const i=this._events.get(r),o=this._events.previousEvent(i),l=this._getTicksUntilEvent(o,r);return i.ticks=Math.max(l,0),this}linearRampToValueAtTime(e,n){const r=this.toSeconds(n);super.linearRampToValueAtTime(e,n);const i=this._events.get(r),o=this._events.previousEvent(i),l=this._getTicksUntilEvent(o,r);return i.ticks=Math.max(l,0),this}exponentialRampToValueAtTime(e,n){n=this.toSeconds(n);const r=this._fromType(e),i=this._events.get(n),o=Math.round(Math.max((n-i.time)*10,1)),l=(n-i.time)/o;for(let c=0;c<=o;c++){const f=l*c+i.time,h=this._exponentialInterpolate(i.time,i.value,n,r,f);this.linearRampToValueAtTime(this._toType(h),f)}return this}_getTicksUntilEvent(e,n){if(e===null)e={ticks:0,time:0,type:"setValueAtTime",value:0};else if(Xo(e.ticks)){const l=this._events.previousEvent(e);e.ticks=this._getTicksUntilEvent(l,e.time)}const r=this._fromType(this.getValueAtTime(e.time));let i=this._fromType(this.getValueAtTime(n));const o=this._events.get(n);return o&&o.time===n&&o.type==="setValueAtTime"&&(i=this._fromType(this.getValueAtTime(n-this.sampleTime))),.5*(n-e.time)*(r+i)+e.ticks}getTicksAtTime(e){const n=this.toSeconds(e),r=this._events.get(n);return Math.max(this._getTicksUntilEvent(r,n),0)}getDurationOfTicks(e,n){const r=this.toSeconds(n),i=this.getTicksAtTime(n);return this.getTimeOfTick(i+e)-r}getTimeOfTick(e){const n=this._events.get(e,"ticks"),r=this._events.getAfter(e,"ticks");if(n&&n.ticks===e)return n.time;if(n&&r&&r.type==="linearRampToValueAtTime"&&n.value!==r.value){const i=this._fromType(this.getValueAtTime(n.time)),l=(this._fromType(this.getValueAtTime(r.time))-i)/(r.time-n.time),c=Math.sqrt(Math.pow(i,2)-2*l*(n.ticks-e)),f=(-i+c)/l,h=(-i-c)/l;return(f>0?f:h)+n.time}else return n?n.value===0?1/0:n.time+(e-n.ticks)/n.value:e/this._initialValue}ticksToTime(e,n){return this.getDurationOfTicks(e,n)}timeToTicks(e,n){const r=this.toSeconds(n),i=this.toSeconds(e),o=this.getTicksAtTime(r);return this.getTicksAtTime(r+i)-o}_fromType(e){return this.units==="bpm"&&this.multiplier?1/(60/e/this.multiplier):super._fromType(e)}_toType(e){return this.units==="bpm"&&this.multiplier?e/this.multiplier*60:super._toType(e)}get multiplier(){return this._multiplier}set multiplier(e){const n=this.value;this._multiplier=e,this.cancelScheduledValues(0),this.setValueAtTime(n,0)}}class e_ extends xr{constructor(){super(We(e_.getDefaults(),arguments,["value"])),this.name="TickSignal";const e=We(e_.getDefaults(),arguments,["value"]);this.input=this._param=new Jy({context:this.context,convert:e.convert,multiplier:e.multiplier,param:this._constantSource.offset,units:e.units,value:e.value})}static getDefaults(){return Object.assign(xr.getDefaults(),{multiplier:1,units:"hertz",value:1})}ticksToTime(e,n){return this._param.ticksToTime(e,n)}timeToTicks(e,n){return this._param.timeToTicks(e,n)}getTimeOfTick(e){return this._param.getTimeOfTick(e)}getDurationOfTicks(e,n){return this._param.getDurationOfTicks(e,n)}getTicksAtTime(e){return this._param.getTicksAtTime(e)}get multiplier(){return this._param.multiplier}set multiplier(e){this._param.multiplier=e}dispose(){return super.dispose(),this._param.dispose(),this}}class t_ extends no{constructor(){super(We(t_.getDefaults(),arguments,["frequency"])),this.name="TickSource",this._state=new wx,this._tickOffset=new Ts;const e=We(t_.getDefaults(),arguments,["frequency"]);this.frequency=new e_({context:this.context,units:e.units,value:e.frequency}),Fn(this,"frequency"),this._state.setStateAtTime("stopped",0),this.setTicksAtTime(0,0)}static getDefaults(){return Object.assign({frequency:1,units:"hertz"},no.getDefaults())}get state(){return this.getStateAtTime(this.now())}start(e,n){const r=this.toSeconds(e);return this._state.getValueAtTime(r)!=="started"&&(this._state.setStateAtTime("started",r),$t(n)&&this.setTicksAtTime(n,r)),this}stop(e){const n=this.toSeconds(e);if(this._state.getValueAtTime(n)==="stopped"){const r=this._state.get(n);r&&r.time>0&&(this._tickOffset.cancel(r.time),this._state.cancel(r.time))}return this._state.cancel(n),this._state.setStateAtTime("stopped",n),this.setTicksAtTime(0,n),this}pause(e){const n=this.toSeconds(e);return this._state.getValueAtTime(n)==="started"&&this._state.setStateAtTime("paused",n),this}cancel(e){return e=this.toSeconds(e),this._state.cancel(e),this._tickOffset.cancel(e),this}getTicksAtTime(e){const n=this.toSeconds(e),r=this._state.getLastState("stopped",n),i={state:"paused",time:n};this._state.add(i);let o=r,l=0;return this._state.forEachBetween(r.time,n+this.sampleTime,c=>{let f=o.time;const h=this._tickOffset.get(c.time);h&&h.time>=o.time&&(l=h.ticks,f=h.time),o.state==="started"&&c.state!=="started"&&(l+=this.frequency.getTicksAtTime(c.time)-this.frequency.getTicksAtTime(f)),o=c}),this._state.remove(i),l}get ticks(){return this.getTicksAtTime(this.now())}set ticks(e){this.setTicksAtTime(e,this.now())}get seconds(){return this.getSecondsAtTime(this.now())}set seconds(e){const n=this.now(),r=this.frequency.timeToTicks(e,n);this.setTicksAtTime(r,n)}getSecondsAtTime(e){e=this.toSeconds(e);const n=this._state.getLastState("stopped",e),r={state:"paused",time:e};this._state.add(r);let i=n,o=0;return this._state.forEachBetween(n.time,e+this.sampleTime,l=>{let c=i.time;const f=this._tickOffset.get(l.time);f&&f.time>=i.time&&(o=f.seconds,c=f.time),i.state==="started"&&l.state!=="started"&&(o+=l.time-c),i=l}),this._state.remove(r),o}setTicksAtTime(e,n){return n=this.toSeconds(n),this._tickOffset.cancel(n),this._tickOffset.add({seconds:this.frequency.getDurationOfTicks(e,n),ticks:e,time:n}),this}getStateAtTime(e){return e=this.toSeconds(e),this._state.getValueAtTime(e)}getTimeOfTick(e,n=this.now()){const r=this._tickOffset.get(n),i=this._state.get(n),o=Math.max(r.time,i.time),l=this.frequency.getTicksAtTime(o)+e-r.ticks;return this.frequency.getTimeOfTick(l)}forEachTickBetween(e,n,r){let i=this._state.get(e);this._state.forEachBetween(e,n,l=>{i&&i.state==="started"&&l.state!=="started"&&this.forEachTickBetween(Math.max(i.time,e),l.time-this.sampleTime,r),i=l});let o=null;if(i&&i.state==="started"){const l=Math.max(i.time,e),c=this.frequency.getTicksAtTime(l),f=this.frequency.getTicksAtTime(i.time),h=c-f;let g=Math.ceil(h)-h;g=ba(g,1)?0:g;let m=this.frequency.getTimeOfTick(c+g);for(;m<n;){try{r(m,Math.round(this.getTicksAtTime(m)))}catch(v){o=v;break}m+=this.frequency.getDurationOfTicks(1,m)}}if(o)throw o;return this}dispose(){return super.dispose(),this._state.dispose(),this._tickOffset.dispose(),this.frequency.dispose(),this}}class mg extends no{constructor(){super(We(mg.getDefaults(),arguments,["callback","frequency"])),this.name="Clock",this.callback=sn,this._lastUpdate=0,this._state=new wx("stopped"),this._boundLoop=this._loop.bind(this);const e=We(mg.getDefaults(),arguments,["callback","frequency"]);this.callback=e.callback,this._tickSource=new t_({context:this.context,frequency:e.frequency,units:e.units}),this._lastUpdate=0,this.frequency=this._tickSource.frequency,Fn(this,"frequency"),this._state.setStateAtTime("stopped",0),this.context.on("tick",this._boundLoop)}static getDefaults(){return Object.assign(no.getDefaults(),{callback:sn,frequency:1,units:"hertz"})}get state(){return this._state.getValueAtTime(this.now())}start(e,n){JP(this.context);const r=this.toSeconds(e);return this.log("start",r),this._state.getValueAtTime(r)!=="started"&&(this._state.setStateAtTime("started",r),this._tickSource.start(r,n),r<this._lastUpdate&&this.emit("start",r,n)),this}stop(e){const n=this.toSeconds(e);return this.log("stop",n),this._state.cancel(n),this._state.setStateAtTime("stopped",n),this._tickSource.stop(n),n<this._lastUpdate&&this.emit("stop",n),this}pause(e){const n=this.toSeconds(e);return this._state.getValueAtTime(n)==="started"&&(this._state.setStateAtTime("paused",n),this._tickSource.pause(n),n<this._lastUpdate&&this.emit("pause",n)),this}get ticks(){return Math.ceil(this.getTicksAtTime(this.now()))}set ticks(e){this._tickSource.ticks=e}get seconds(){return this._tickSource.seconds}set seconds(e){this._tickSource.seconds=e}getSecondsAtTime(e){return this._tickSource.getSecondsAtTime(e)}setTicksAtTime(e,n){return this._tickSource.setTicksAtTime(e,n),this}getTimeOfTick(e,n=this.now()){return this._tickSource.getTimeOfTick(e,n)}getTicksAtTime(e){return this._tickSource.getTicksAtTime(e)}nextTickTime(e,n){const r=this.toSeconds(n),i=this.getTicksAtTime(r);return this._tickSource.getTimeOfTick(i+e,r)}_loop(){const e=this._lastUpdate,n=this.now();this._lastUpdate=n,this.log("loop",e,n),e!==n&&(this._state.forEachBetween(e,n,r=>{switch(r.state){case"started":const i=this._tickSource.getTicksAtTime(r.time);this.emit("start",r.time,i);break;case"stopped":r.time!==0&&this.emit("stop",r.time);break;case"paused":this.emit("pause",r.time);break}}),this._tickSource.forEachTickBetween(e,n,(r,i)=>{this.callback(r,i)}))}getStateAtTime(e){const n=this.toSeconds(e);return this._state.getValueAtTime(n)}dispose(){return super.dispose(),this.context.off("tick",this._boundLoop),this._tickSource.dispose(),this._state.dispose(),this}}Xg.mixin(mg);class bx extends El{constructor(){super(),this.name="ToneAudioBuffers",this._buffers=new Map,this._loadingCount=0;const e=We(bx.getDefaults(),arguments,["urls","onload","baseUrl"],"urls");this.baseUrl=e.baseUrl,Object.keys(e.urls).forEach(n=>{this._loadingCount++;const r=e.urls[n];this.add(n,r,this._bufferLoaded.bind(this,e.onload),e.onerror)})}static getDefaults(){return{baseUrl:"",onerror:sn,onload:sn,urls:{}}}has(e){return this._buffers.has(e.toString())}get(e){return Rt(this.has(e),`ToneAudioBuffers has no buffer named: ${e}`),this._buffers.get(e.toString())}_bufferLoaded(e){this._loadingCount--,this._loadingCount===0&&e&&e()}get loaded(){return Array.from(this._buffers).every(([e,n])=>n.loaded)}add(e,n,r=sn,i=sn){return Ss(n)?this._buffers.set(e.toString(),new dn(this.baseUrl+n,r,i)):this._buffers.set(e.toString(),new dn(n,r,i)),this}dispose(){return super.dispose(),this._buffers.forEach(e=>e.dispose()),this._buffers.clear(),this}}class ul extends Km{constructor(){super(...arguments),this.name="Ticks",this.defaultUnits="i"}_now(){return this.context.transport.ticks}_beatsToUnits(e){return this._getPPQ()*e}_secondsToUnits(e){return Math.floor(e/(60/this._getBpm())*this._getPPQ())}_ticksToUnits(e){return e}toTicks(){return this.valueOf()}toSeconds(){return this.valueOf()/this._getPPQ()*(60/this._getBpm())}}class iZ extends no{constructor(){super(...arguments),this.name="Draw",this.expiration=.25,this.anticipation=.008,this._events=new Ts,this._boundDrawLoop=this._drawLoop.bind(this),this._animationFrame=-1}schedule(e,n){return this._events.add({callback:e,time:this.toSeconds(n)}),this._events.length===1&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop)),this}cancel(e){return this._events.cancel(this.toSeconds(e)),this}_drawLoop(){const e=this.context.currentTime;for(;this._events.length&&this._events.peek().time-this.anticipation<=e;){const n=this._events.shift();n&&e-n.time<=this.expiration&&n.callback()}this._events.length>0&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop))}dispose(){return super.dispose(),this._events.dispose(),cancelAnimationFrame(this._animationFrame),this}}U_(t=>{t.draw=new iZ({context:t})});V_(t=>{t.draw.dispose()});class oZ extends El{constructor(){super(...arguments),this.name="IntervalTimeline",this._root=null,this._length=0}add(e){Rt($t(e.time),"Events must have a time property"),Rt($t(e.duration),"Events must have a duration parameter"),e.time=e.time.valueOf();let n=new aZ(e.time,e.time+e.duration,e);for(this._root===null?this._root=n:this._root.insert(n),this._length++;n!==null;)n.updateHeight(),n.updateMax(),this._rebalance(n),n=n.parent;return this}remove(e){if(this._root!==null){const n=[];this._root.search(e.time,n);for(const r of n)if(r.event===e){this._removeNode(r),this._length--;break}}return this}get length(){return this._length}cancel(e){return this.forEachFrom(e,n=>this.remove(n)),this}_setRoot(e){this._root=e,this._root!==null&&(this._root.parent=null)}_replaceNodeInParent(e,n){e.parent!==null?(e.isLeftChild()?e.parent.left=n:e.parent.right=n,this._rebalance(e.parent)):this._setRoot(n)}_removeNode(e){if(e.left===null&&e.right===null)this._replaceNodeInParent(e,null);else if(e.right===null)this._replaceNodeInParent(e,e.left);else if(e.left===null)this._replaceNodeInParent(e,e.right);else{const n=e.getBalance();let r,i=null;if(n>0)if(e.left.right===null)r=e.left,r.right=e.right,i=r;else{for(r=e.left.right;r.right!==null;)r=r.right;r.parent&&(r.parent.right=r.left,i=r.parent,r.left=e.left,r.right=e.right)}else if(e.right.left===null)r=e.right,r.left=e.left,i=r;else{for(r=e.right.left;r.left!==null;)r=r.left;r.parent&&(r.parent.left=r.right,i=r.parent,r.left=e.left,r.right=e.right)}e.parent!==null?e.isLeftChild()?e.parent.left=r:e.parent.right=r:this._setRoot(r),i&&this._rebalance(i)}e.dispose()}_rotateLeft(e){const n=e.parent,r=e.isLeftChild(),i=e.right;i&&(e.right=i.left,i.left=e),n!==null?r?n.left=i:n.right=i:this._setRoot(i)}_rotateRight(e){const n=e.parent,r=e.isLeftChild(),i=e.left;i&&(e.left=i.right,i.right=e),n!==null?r?n.left=i:n.right=i:this._setRoot(i)}_rebalance(e){const n=e.getBalance();n>1&&e.left?e.left.getBalance()<0?this._rotateLeft(e.left):this._rotateRight(e):n<-1&&e.right&&(e.right.getBalance()>0?this._rotateRight(e.right):this._rotateLeft(e))}get(e){if(this._root!==null){const n=[];if(this._root.search(e,n),n.length>0){let r=n[0];for(let i=1;i<n.length;i++)n[i].low>r.low&&(r=n[i]);return r.event}}return null}forEach(e){if(this._root!==null){const n=[];this._root.traverse(r=>n.push(r)),n.forEach(r=>{r.event&&e(r.event)})}return this}forEachAtTime(e,n){if(this._root!==null){const r=[];this._root.search(e,r),r.forEach(i=>{i.event&&n(i.event)})}return this}forEachFrom(e,n){if(this._root!==null){const r=[];this._root.searchAfter(e,r),r.forEach(i=>{i.event&&n(i.event)})}return this}dispose(){return super.dispose(),this._root!==null&&this._root.traverse(e=>e.dispose()),this._root=null,this}}class aZ{constructor(e,n,r){this._left=null,this._right=null,this.parent=null,this.height=0,this.event=r,this.low=e,this.high=n,this.max=this.high}insert(e){e.low<=this.low?this.left===null?this.left=e:this.left.insert(e):this.right===null?this.right=e:this.right.insert(e)}search(e,n){e>this.max||(this.left!==null&&this.left.search(e,n),this.low<=e&&this.high>e&&n.push(this),!(this.low>e)&&this.right!==null&&this.right.search(e,n))}searchAfter(e,n){this.low>=e&&(n.push(this),this.left!==null&&this.left.searchAfter(e,n)),this.right!==null&&this.right.searchAfter(e,n)}traverse(e){e(this),this.left!==null&&this.left.traverse(e),this.right!==null&&this.right.traverse(e)}updateHeight(){this.left!==null&&this.right!==null?this.height=Math.max(this.left.height,this.right.height)+1:this.right!==null?this.height=this.right.height+1:this.left!==null?this.height=this.left.height+1:this.height=0}updateMax(){this.max=this.high,this.left!==null&&(this.max=Math.max(this.max,this.left.max)),this.right!==null&&(this.max=Math.max(this.max,this.right.max))}getBalance(){let e=0;return this.left!==null&&this.right!==null?e=this.left.height-this.right.height:this.left!==null?e=this.left.height+1:this.right!==null&&(e=-(this.right.height+1)),e}isLeftChild(){return this.parent!==null&&this.parent.left===this}get left(){return this._left}set left(e){this._left=e,e!==null&&(e.parent=this),this.updateHeight(),this.updateMax()}get right(){return this._right}set right(e){this._right=e,e!==null&&(e.parent=this),this.updateHeight(),this.updateMax()}dispose(){this.parent=null,this._left=null,this._right=null,this.event=null}}class bf extends Mt{constructor(){super(We(bf.getDefaults(),arguments,["volume"])),this.name="Volume";const e=We(bf.getDefaults(),arguments,["volume"]);this.input=this.output=new Ri({context:this.context,gain:e.volume,units:"decibels"}),this.volume=this.output.gain,Fn(this,"volume"),this._unmutedVolume=e.volume,this.mute=e.mute}static getDefaults(){return Object.assign(Mt.getDefaults(),{mute:!1,volume:0})}get mute(){return this.volume.value===-1/0}set mute(e){!this.mute&&e?(this._unmutedVolume=this.volume.value,this.volume.value=-1/0):this.mute&&!e&&(this.volume.value=this._unmutedVolume)}dispose(){return super.dispose(),this.input.dispose(),this.volume.dispose(),this}}class n_ extends Mt{constructor(){super(We(n_.getDefaults(),arguments)),this.name="Destination",this.input=new bf({context:this.context}),this.output=new Ri({context:this.context}),this.volume=this.input.volume;const e=We(n_.getDefaults(),arguments);Vb(this.input,this.output,this.context.rawContext.destination),this.mute=e.mute,this._internalChannels=[this.input,this.context.rawContext.destination,this.output]}static getDefaults(){return Object.assign(Mt.getDefaults(),{mute:!1,volume:0})}get mute(){return this.input.mute}set mute(e){this.input.mute=e}chain(...e){return this.input.disconnect(),e.unshift(this.input),e.push(this.output),Vb(...e),this}get maxChannelCount(){return this.context.rawContext.destination.maxChannelCount}dispose(){return super.dispose(),this.volume.dispose(),this}}U_(t=>{t.destination=new n_({context:t})});V_(t=>{t.destination.dispose()});class sZ extends El{constructor(e){super(),this.name="TimelineValue",this._timeline=new Ts({memory:10}),this._initialValue=e}set(e,n){return this._timeline.add({value:e,time:n}),this}get(e){const n=this._timeline.get(e);return n?n.value:this._initialValue}}class Eu{constructor(e,n){this.id=Eu._eventId++;const r=Object.assign(Eu.getDefaults(),n);this.transport=e,this.callback=r.callback,this._once=r.once,this.time=r.time}static getDefaults(){return{callback:sn,once:!1,time:0}}invoke(e){this.callback&&(this.callback(e),this._once&&this.transport.clear(this.id))}dispose(){return this.callback=void 0,this}}Eu._eventId=0;class Cx extends Eu{constructor(e,n){super(e,n),this._currentId=-1,this._nextId=-1,this._nextTick=this.time,this._boundRestart=this._restart.bind(this);const r=Object.assign(Cx.getDefaults(),n);this.duration=new ul(e.context,r.duration).valueOf(),this._interval=new ul(e.context,r.interval).valueOf(),this._nextTick=r.time,this.transport.on("start",this._boundRestart),this.transport.on("loopStart",this._boundRestart),this.context=this.transport.context,this._restart()}static getDefaults(){return Object.assign({},Eu.getDefaults(),{duration:1/0,interval:1,once:!1})}invoke(e){this._createEvents(e),super.invoke(e)}_createEvents(e){const n=this.transport.getTicksAtTime(e);n>=this.time&&n>=this._nextTick&&this._nextTick+this._interval<this.time+this.duration&&(this._nextTick+=this._interval,this._currentId=this._nextId,this._nextId=this.transport.scheduleOnce(this.invoke.bind(this),new ul(this.context,this._nextTick).toSeconds()))}_restart(e){this.transport.clear(this._currentId),this.transport.clear(this._nextId),this._nextTick=this.time;const n=this.transport.getTicksAtTime(e);n>this.time&&(this._nextTick=this.time+Math.ceil((n-this.time)/this._interval)*this._interval),this._currentId=this.transport.scheduleOnce(this.invoke.bind(this),new ul(this.context,this._nextTick).toSeconds()),this._nextTick+=this._interval,this._nextId=this.transport.scheduleOnce(this.invoke.bind(this),new ul(this.context,this._nextTick).toSeconds())}dispose(){return super.dispose(),this.transport.clear(this._currentId),this.transport.clear(this._nextId),this.transport.off("start",this._boundRestart),this.transport.off("loopStart",this._boundRestart),this}}class gg extends no{constructor(){super(We(gg.getDefaults(),arguments)),this.name="Transport",this._loop=new sZ(!1),this._loopStart=0,this._loopEnd=0,this._scheduledEvents={},this._timeline=new Ts,this._repeatedEvents=new oZ,this._syncedSignals=[],this._swingAmount=0;const e=We(gg.getDefaults(),arguments);this._ppq=e.ppq,this._clock=new mg({callback:this._processTick.bind(this),context:this.context,frequency:0,units:"bpm"}),this._bindClockEvents(),this.bpm=this._clock.frequency,this._clock.frequency.multiplier=e.ppq,this.bpm.setValueAtTime(e.bpm,0),Fn(this,"bpm"),this._timeSignature=e.timeSignature,this._swingTicks=e.ppq/2}static getDefaults(){return Object.assign(no.getDefaults(),{bpm:120,loopEnd:"4m",loopStart:0,ppq:192,swing:0,swingSubdivision:"8n",timeSignature:4})}_processTick(e,n){if(this._loop.get(e)&&n>=this._loopEnd&&(this.emit("loopEnd",e),this._clock.setTicksAtTime(this._loopStart,e),n=this._loopStart,this.emit("loopStart",e,this._clock.getSecondsAtTime(e)),this.emit("loop",e)),this._swingAmount>0&&n%this._ppq!==0&&n%(this._swingTicks*2)!==0){const r=n%(this._swingTicks*2)/(this._swingTicks*2),i=Math.sin(r*Math.PI)*this._swingAmount;e+=new ul(this.context,this._swingTicks*2/3).toSeconds()*i}this._timeline.forEachAtTime(n,r=>r.invoke(e))}schedule(e,n){const r=new Eu(this,{callback:e,time:new Km(this.context,n).toTicks()});return this._addEvent(r,this._timeline)}scheduleRepeat(e,n,r,i=1/0){const o=new Cx(this,{callback:e,duration:new xa(this.context,i).toTicks(),interval:new xa(this.context,n).toTicks(),time:new Km(this.context,r).toTicks()});return this._addEvent(o,this._repeatedEvents)}scheduleOnce(e,n){const r=new Eu(this,{callback:e,once:!0,time:new Km(this.context,n).toTicks()});return this._addEvent(r,this._timeline)}clear(e){if(this._scheduledEvents.hasOwnProperty(e)){const n=this._scheduledEvents[e.toString()];n.timeline.remove(n.event),n.event.dispose(),delete this._scheduledEvents[e.toString()]}return this}_addEvent(e,n){return this._scheduledEvents[e.id.toString()]={event:e,timeline:n},n.add(e),e.id}cancel(e=0){const n=this.toTicks(e);return this._timeline.forEachFrom(n,r=>this.clear(r.id)),this._repeatedEvents.forEachFrom(n,r=>this.clear(r.id)),this}_bindClockEvents(){this._clock.on("start",(e,n)=>{n=new ul(this.context,n).toSeconds(),this.emit("start",e,n)}),this._clock.on("stop",e=>{this.emit("stop",e)}),this._clock.on("pause",e=>{this.emit("pause",e)})}get state(){return this._clock.getStateAtTime(this.now())}start(e,n){let r;return $t(n)&&(r=this.toTicks(n)),this._clock.start(e,r),this}stop(e){return this._clock.stop(e),this}pause(e){return this._clock.pause(e),this}toggle(e){return e=this.toSeconds(e),this._clock.getStateAtTime(e)!=="started"?this.start(e):this.stop(e),this}get timeSignature(){return this._timeSignature}set timeSignature(e){Oa(e)&&(e=e[0]/e[1]*4),this._timeSignature=e}get loopStart(){return new xa(this.context,this._loopStart,"i").toSeconds()}set loopStart(e){this._loopStart=this.toTicks(e)}get loopEnd(){return new xa(this.context,this._loopEnd,"i").toSeconds()}set loopEnd(e){this._loopEnd=this.toTicks(e)}get loop(){return this._loop.get(this.now())}set loop(e){this._loop.set(e,this.now())}setLoopPoints(e,n){return this.loopStart=e,this.loopEnd=n,this}get swing(){return this._swingAmount}set swing(e){this._swingAmount=e}get swingSubdivision(){return new ul(this.context,this._swingTicks).toNotation()}set swingSubdivision(e){this._swingTicks=this.toTicks(e)}get position(){const e=this.now(),n=this._clock.getTicksAtTime(e);return new ul(this.context,n).toBarsBeatsSixteenths()}set position(e){const n=this.toTicks(e);this.ticks=n}get seconds(){return this._clock.seconds}set seconds(e){const n=this.now(),r=this._clock.frequency.timeToTicks(e,n);this.ticks=r}get progress(){if(this.loop){const e=this.now();return(this._clock.getTicksAtTime(e)-this._loopStart)/(this._loopEnd-this._loopStart)}else return 0}get ticks(){return this._clock.ticks}set ticks(e){if(this._clock.ticks!==e){const n=this.now();if(this.state==="started"){const r=this._clock.getTicksAtTime(n),i=this._clock.frequency.getDurationOfTicks(Math.ceil(r)-r,n),o=n+i;this.emit("stop",o),this._clock.setTicksAtTime(e,o),this.emit("start",o,this._clock.getSecondsAtTime(o))}else this._clock.setTicksAtTime(e,n)}}getTicksAtTime(e){return Math.round(this._clock.getTicksAtTime(e))}getSecondsAtTime(e){return this._clock.getSecondsAtTime(e)}get PPQ(){return this._clock.frequency.multiplier}set PPQ(e){this._clock.frequency.multiplier=e}nextSubdivision(e){if(e=this.toTicks(e),this.state!=="started")return 0;{const n=this.now(),r=this.getTicksAtTime(n),i=e-r%e;return this._clock.nextTickTime(i,n)}}syncSignal(e,n){if(!n){const i=this.now();if(e.getValueAtTime(i)!==0){const l=1/(60/this.bpm.getValueAtTime(i)/this.PPQ);n=e.getValueAtTime(i)/l}else n=0}const r=new Ri(n);return this.bpm.connect(r),r.connect(e._param),this._syncedSignals.push({initial:e.value,ratio:r,signal:e}),e.value=0,this}unsyncSignal(e){for(let n=this._syncedSignals.length-1;n>=0;n--){const r=this._syncedSignals[n];r.signal===e&&(r.ratio.dispose(),r.signal.value=r.initial,this._syncedSignals.splice(n,1))}return this}dispose(){return super.dispose(),this._clock.dispose(),sD(this,"bpm"),this._timeline.dispose(),this._repeatedEvents.dispose(),this}}Xg.mixin(gg);U_(t=>{t.transport=new gg({context:t})});V_(t=>{t.transport.dispose()});class Oo extends Mt{constructor(e){super(e),this.input=void 0,this._state=new wx("stopped"),this._synced=!1,this._scheduled=[],this._syncedStart=sn,this._syncedStop=sn,this._state.memory=100,this._state.increasing=!0,this._volume=this.output=new bf({context:this.context,mute:e.mute,volume:e.volume}),this.volume=this._volume.volume,Fn(this,"volume"),this.onstop=e.onstop}static getDefaults(){return Object.assign(Mt.getDefaults(),{mute:!1,onstop:sn,volume:0})}get state(){return this._synced?this.context.transport.state==="started"?this._state.getValueAtTime(this.context.transport.seconds):"stopped":this._state.getValueAtTime(this.now())}get mute(){return this._volume.mute}set mute(e){this._volume.mute=e}_clampToCurrentTime(e){return this._synced?e:Math.max(e,this.context.currentTime)}start(e,n,r){let i=Xo(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(i=this._clampToCurrentTime(i),!this._synced&&this._state.getValueAtTime(i)==="started")Rt(Qy(i,this._state.get(i).time),"Start time must be strictly greater than previous start time"),this._state.cancel(i),this._state.setStateAtTime("started",i),this.log("restart",i),this.restart(i,n,r);else if(this.log("start",i),this._state.setStateAtTime("started",i),this._synced){const o=this._state.get(i);o&&(o.offset=this.toSeconds(bh(n,0)),o.duration=r?this.toSeconds(r):void 0);const l=this.context.transport.schedule(c=>{this._start(c,n,r)},i);this._scheduled.push(l),this.context.transport.state==="started"&&this.context.transport.getSecondsAtTime(this.immediate())>i&&this._syncedStart(this.now(),this.context.transport.seconds)}else JP(this.context),this._start(i,n,r);return this}stop(e){let n=Xo(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(n=this._clampToCurrentTime(n),this._state.getValueAtTime(n)==="started"||$t(this._state.getNextState("started",n))){if(this.log("stop",n),!this._synced)this._stop(n);else{const r=this.context.transport.schedule(this._stop.bind(this),n);this._scheduled.push(r)}this._state.cancel(n),this._state.setStateAtTime("stopped",n)}return this}restart(e,n,r){return e=this.toSeconds(e),this._state.getValueAtTime(e)==="started"&&(this._state.cancel(e),this._restart(e,n,r)),this}sync(){return this._synced||(this._synced=!0,this._syncedStart=(e,n)=>{if(n>0){const r=this._state.get(n);if(r&&r.state==="started"&&r.time!==n){const i=n-this.toSeconds(r.time);let o;r.duration&&(o=this.toSeconds(r.duration)-i),this._start(e,this.toSeconds(r.offset)+i,o)}}},this._syncedStop=e=>{const n=this.context.transport.getSecondsAtTime(Math.max(e-this.sampleTime,0));this._state.getValueAtTime(n)==="started"&&this._stop(e)},this.context.transport.on("start",this._syncedStart),this.context.transport.on("loopStart",this._syncedStart),this.context.transport.on("stop",this._syncedStop),this.context.transport.on("pause",this._syncedStop),this.context.transport.on("loopEnd",this._syncedStop)),this}unsync(){return this._synced&&(this.context.transport.off("stop",this._syncedStop),this.context.transport.off("pause",this._syncedStop),this.context.transport.off("loopEnd",this._syncedStop),this.context.transport.off("start",this._syncedStart),this.context.transport.off("loopStart",this._syncedStart)),this._synced=!1,this._scheduled.forEach(e=>this.context.transport.clear(e)),this._scheduled=[],this._state.cancel(0),this._stop(0),this}dispose(){return super.dispose(),this.onstop=sn,this.unsync(),this._volume.dispose(),this._state.dispose(),this}}class vg extends qh{constructor(){super(We(vg.getDefaults(),arguments,["url","onload"])),this.name="ToneBufferSource",this._source=this.context.createBufferSource(),this._internalChannels=[this._source],this._sourceStarted=!1,this._sourceStopped=!1;const e=We(vg.getDefaults(),arguments,["url","onload"]);rp(this._source,this._gainNode),this._source.onended=()=>this._stopSource(),this.playbackRate=new Tn({context:this.context,param:this._source.playbackRate,units:"positive",value:e.playbackRate}),this.loop=e.loop,this.loopStart=e.loopStart,this.loopEnd=e.loopEnd,this._buffer=new dn(e.url,e.onload,e.onerror),this._internalChannels.push(this._source)}static getDefaults(){return Object.assign(qh.getDefaults(),{url:new dn,loop:!1,loopEnd:0,loopStart:0,onload:sn,onerror:sn,playbackRate:1})}get fadeIn(){return this._fadeIn}set fadeIn(e){this._fadeIn=e}get fadeOut(){return this._fadeOut}set fadeOut(e){this._fadeOut=e}get curve(){return this._curve}set curve(e){this._curve=e}start(e,n,r,i=1){Rt(this.buffer.loaded,"buffer is either not set or not loaded");const o=this.toSeconds(e);this._startGain(o,i),this.loop?n=bh(n,this.loopStart):n=bh(n,0);let l=Math.max(this.toSeconds(n),0);if(this.loop){const c=this.toSeconds(this.loopEnd)||this.buffer.duration,f=this.toSeconds(this.loopStart),h=c-f;qb(l,c)&&(l=(l-f)%h+f),ba(l,this.buffer.duration)&&(l=0)}if(this._source.buffer=this.buffer.get(),this._source.loopEnd=this.toSeconds(this.loopEnd)||this.buffer.duration,rD(l,this.buffer.duration)&&(this._sourceStarted=!0,this._source.start(o,l)),$t(r)){let c=this.toSeconds(r);c=Math.max(c,0),this.stop(o+c)}return this}_stopSource(e){!this._sourceStopped&&this._sourceStarted&&(this._sourceStopped=!0,this._source.stop(this.toSeconds(e)),this._onended())}get loopStart(){return this._source.loopStart}set loopStart(e){this._source.loopStart=this.toSeconds(e)}get loopEnd(){return this._source.loopEnd}set loopEnd(e){this._source.loopEnd=this.toSeconds(e)}get buffer(){return this._buffer}set buffer(e){this._buffer.set(e)}get loop(){return this._source.loop}set loop(e){this._source.loop=e,this._sourceStarted&&this.cancelStop()}dispose(){return super.dispose(),this._source.onended=null,this._source.disconnect(),this._buffer.dispose(),this.playbackRate.dispose(),this}}function Af(t,e){return hn(this,void 0,void 0,function*(){const n=e/t.context.sampleRate,r=new yx(1,n,t.context.sampleRate);return new t.constructor(Object.assign(t.get(),{frequency:2/n,detune:0,context:r})).toDestination().start(0),(yield r.render()).getChannelData(0)})}class r_ extends qh{constructor(){super(We(r_.getDefaults(),arguments,["frequency","type"])),this.name="ToneOscillatorNode",this._oscillator=this.context.createOscillator(),this._internalChannels=[this._oscillator];const e=We(r_.getDefaults(),arguments,["frequency","type"]);rp(this._oscillator,this._gainNode),this.type=e.type,this.frequency=new Tn({context:this.context,param:this._oscillator.frequency,units:"frequency",value:e.frequency}),this.detune=new Tn({context:this.context,param:this._oscillator.detune,units:"cents",value:e.detune}),Fn(this,["frequency","detune"])}static getDefaults(){return Object.assign(qh.getDefaults(),{detune:0,frequency:440,type:"sine"})}start(e){const n=this.toSeconds(e);return this.log("start",n),this._startGain(n),this._oscillator.start(n),this}_stopSource(e){this._oscillator.stop(e)}setPeriodicWave(e){return this._oscillator.setPeriodicWave(e),this}get type(){return this._oscillator.type}set type(e){this._oscillator.type=e}dispose(){return super.dispose(),this.state==="started"&&this.stop(),this._oscillator.disconnect(),this.frequency.dispose(),this.detune.dispose(),this}}class Xn extends Oo{constructor(){super(We(Xn.getDefaults(),arguments,["frequency","type"])),this.name="Oscillator",this._oscillator=null;const e=We(Xn.getDefaults(),arguments,["frequency","type"]);this.frequency=new xr({context:this.context,units:"frequency",value:e.frequency}),Fn(this,"frequency"),this.detune=new xr({context:this.context,units:"cents",value:e.detune}),Fn(this,"detune"),this._partials=e.partials,this._partialCount=e.partialCount,this._type=e.type,e.partialCount&&e.type!=="custom"&&(this._type=this.baseType+e.partialCount.toString()),this.phase=e.phase}static getDefaults(){return Object.assign(Oo.getDefaults(),{detune:0,frequency:440,partialCount:0,partials:[],phase:0,type:"sine"})}_start(e){const n=this.toSeconds(e),r=new r_({context:this.context,onended:()=>this.onstop(this)});this._oscillator=r,this._wave?this._oscillator.setPeriodicWave(this._wave):this._oscillator.type=this._type,this._oscillator.connect(this.output),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.start(n)}_stop(e){const n=this.toSeconds(e);this._oscillator&&this._oscillator.stop(n)}_restart(e){const n=this.toSeconds(e);return this.log("restart",n),this._oscillator&&this._oscillator.cancelStop(),this._state.cancel(n),this}syncFrequency(){return this.context.transport.syncSignal(this.frequency),this}unsyncFrequency(){return this.context.transport.unsyncSignal(this.frequency),this}_getCachedPeriodicWave(){if(this._type==="custom")return Xn._periodicWaveCache.find(n=>n.phase===this._phase&&UQ(n.partials,this._partials));{const e=Xn._periodicWaveCache.find(n=>n.type===this._type&&n.phase===this._phase);return this._partialCount=e?e.partialCount:this._partialCount,e}}get type(){return this._type}set type(e){this._type=e;const n=["sine","square","sawtooth","triangle"].indexOf(e)!==-1;if(this._phase===0&&n)this._wave=void 0,this._partialCount=0,this._oscillator!==null&&(this._oscillator.type=e);else{const r=this._getCachedPeriodicWave();if($t(r)){const{partials:i,wave:o}=r;this._wave=o,this._partials=i,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave)}else{const[i,o]=this._getRealImaginary(e,this._phase),l=this.context.createPeriodicWave(i,o);this._wave=l,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave),Xn._periodicWaveCache.push({imag:o,partialCount:this._partialCount,partials:this._partials,phase:this._phase,real:i,type:this._type,wave:this._wave}),Xn._periodicWaveCache.length>100&&Xn._periodicWaveCache.shift()}}}get baseType(){return this._type.replace(this.partialCount.toString(),"")}set baseType(e){this.partialCount&&this._type!=="custom"&&e!=="custom"?this.type=e+this.partialCount:this.type=e}get partialCount(){return this._partialCount}set partialCount(e){xu(e,0);let n=this._type;const r=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(this._type);if(r&&(n=r[1]),this._type!=="custom")e===0?this.type=n:this.type=n+e.toString();else{const i=new Float32Array(e);this._partials.forEach((o,l)=>i[l]=o),this._partials=Array.from(i),this.type=this._type}}_getRealImaginary(e,n){let i=2048;const o=new Float32Array(i),l=new Float32Array(i);let c=1;if(e==="custom"){if(c=this._partials.length+1,this._partialCount=this._partials.length,i=c,this._partials.length===0)return[o,l]}else{const f=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(e);f?(c=parseInt(f[2],10)+1,this._partialCount=parseInt(f[2],10),e=f[1],c=Math.max(c,2),i=c):this._partialCount=0,this._partials=[]}for(let f=1;f<i;++f){const h=2/(f*Math.PI);let g;switch(e){case"sine":g=f<=c?1:0,this._partials[f-1]=g;break;case"square":g=f&1?2*h:0,this._partials[f-1]=g;break;case"sawtooth":g=h*(f&1?1:-1),this._partials[f-1]=g;break;case"triangle":f&1?g=2*(h*h)*(f-1>>1&1?-1:1):g=0,this._partials[f-1]=g;break;case"custom":g=this._partials[f-1];break;default:throw new TypeError("Oscillator: invalid type: "+e)}g!==0?(o[f]=-g*Math.sin(n*f),l[f]=g*Math.cos(n*f)):(o[f]=0,l[f]=0)}return[o,l]}_inverseFFT(e,n,r){let i=0;const o=e.length;for(let l=0;l<o;l++)i+=e[l]*Math.cos(l*r)+n[l]*Math.sin(l*r);return i}getInitialValue(){const[e,n]=this._getRealImaginary(this._type,0);let r=0;const i=Math.PI*2,o=32;for(let l=0;l<o;l++)r=Math.max(this._inverseFFT(e,n,l/o*i),r);return WQ(-this._inverseFFT(e,n,this._phase)/r,-1,1)}get partials(){return this._partials.slice(0,this.partialCount)}set partials(e){this._partials=e,this._partialCount=this._partials.length,e.length&&(this.type="custom")}get phase(){return this._phase*(180/Math.PI)}set phase(e){this._phase=e*Math.PI/180,this.type=this._type}asArray(e=1024){return hn(this,void 0,void 0,function*(){return Af(this,e)})}dispose(){return super.dispose(),this._oscillator!==null&&this._oscillator.dispose(),this._wave=void 0,this.frequency.dispose(),this.detune.dispose(),this}}Xn._periodicWaveCache=[];class G_ extends Mt{constructor(){super(Object.assign(We(G_.getDefaults(),arguments,["context"])))}connect(e,n=0,r=0){return Sx(this,e,n,r),this}}class yg extends G_{constructor(){super(Object.assign(We(yg.getDefaults(),arguments,["mapping","length"]))),this.name="WaveShaper",this._shaper=this.context.createWaveShaper(),this.input=this._shaper,this.output=this._shaper;const e=We(yg.getDefaults(),arguments,["mapping","length"]);Oa(e.mapping)||e.mapping instanceof Float32Array?this.curve=Float32Array.from(e.mapping):MQ(e.mapping)&&this.setMap(e.mapping,e.length)}static getDefaults(){return Object.assign(xr.getDefaults(),{length:1024})}setMap(e,n=1024){const r=new Float32Array(n);for(let i=0,o=n;i<o;i++){const l=i/(o-1)*2-1;r[i]=e(l,i)}return this.curve=r,this}get curve(){return this._shaper.curve}set curve(e){this._shaper.curve=e}get oversample(){return this._shaper.oversample}set oversample(e){const n=["none","2x","4x"].some(r=>r.includes(e));Rt(n,"oversampling must be either 'none', '2x', or '4x'"),this._shaper.oversample=e}dispose(){return super.dispose(),this._shaper.disconnect(),this}}class lZ extends G_{constructor(){super(...arguments),this.name="AudioToGain",this._norm=new yg({context:this.context,mapping:e=>(e+1)/2}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Cf extends xr{constructor(){super(Object.assign(We(Cf.getDefaults(),arguments,["value"]))),this.name="Multiply",this.override=!1;const e=We(Cf.getDefaults(),arguments,["value"]);this._mult=this.input=this.output=new Ri({context:this.context,minValue:e.minValue,maxValue:e.maxValue}),this.factor=this._param=this._mult.gain,this.factor.setValueAtTime(e.value,0)}static getDefaults(){return Object.assign(xr.getDefaults(),{value:0})}dispose(){return super.dispose(),this._mult.dispose(),this}}class _g extends Oo{constructor(){super(We(_g.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="AMOscillator",this._modulationScale=new lZ({context:this.context}),this._modulationNode=new Ri({context:this.context});const e=We(_g.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new Xn({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase,type:e.type}),this.frequency=this._carrier.frequency,this.detune=this._carrier.detune,this._modulator=new Xn({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new Cf({context:this.context,units:"positive",value:e.harmonicity}),this.frequency.chain(this.harmonicity,this._modulator.frequency),this._modulator.chain(this._modulationScale,this._modulationNode.gain),this._carrier.chain(this._modulationNode,this.output),Fn(this,["frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(Xn.getDefaults(),{harmonicity:1,modulationType:"square"})}_start(e){this._modulator.start(e),this._carrier.start(e)}_stop(e){this._modulator.stop(e),this._carrier.stop(e)}_restart(e){this._modulator.restart(e),this._carrier.restart(e)}get type(){return this._carrier.type}set type(e){this._carrier.type=e}get baseType(){return this._carrier.baseType}set baseType(e){this._carrier.baseType=e}get partialCount(){return this._carrier.partialCount}set partialCount(e){this._carrier.partialCount=e}get modulationType(){return this._modulator.type}set modulationType(e){this._modulator.type=e}get phase(){return this._carrier.phase}set phase(e){this._carrier.phase=e,this._modulator.phase=e}get partials(){return this._carrier.partials}set partials(e){this._carrier.partials=e}asArray(e=1024){return hn(this,void 0,void 0,function*(){return Af(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this._modulationScale.dispose(),this}}class wg extends Oo{constructor(){super(We(wg.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="FMOscillator",this._modulationNode=new Ri({context:this.context,gain:0});const e=We(wg.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new Xn({context:this.context,detune:e.detune,frequency:0,onstop:()=>this.onstop(this),phase:e.phase,type:e.type}),this.detune=this._carrier.detune,this.frequency=new xr({context:this.context,units:"frequency",value:e.frequency}),this._modulator=new Xn({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new Cf({context:this.context,units:"positive",value:e.harmonicity}),this.modulationIndex=new Cf({context:this.context,units:"positive",value:e.modulationIndex}),this.frequency.connect(this._carrier.frequency),this.frequency.chain(this.harmonicity,this._modulator.frequency),this.frequency.chain(this.modulationIndex,this._modulationNode),this._modulator.connect(this._modulationNode.gain),this._modulationNode.connect(this._carrier.frequency),this._carrier.connect(this.output),this.detune.connect(this._modulator.detune),Fn(this,["modulationIndex","frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(Xn.getDefaults(),{harmonicity:1,modulationIndex:2,modulationType:"square"})}_start(e){this._modulator.start(e),this._carrier.start(e)}_stop(e){this._modulator.stop(e),this._carrier.stop(e)}_restart(e){return this._modulator.restart(e),this._carrier.restart(e),this}get type(){return this._carrier.type}set type(e){this._carrier.type=e}get baseType(){return this._carrier.baseType}set baseType(e){this._carrier.baseType=e}get partialCount(){return this._carrier.partialCount}set partialCount(e){this._carrier.partialCount=e}get modulationType(){return this._modulator.type}set modulationType(e){this._modulator.type=e}get phase(){return this._carrier.phase}set phase(e){this._carrier.phase=e,this._modulator.phase=e}get partials(){return this._carrier.partials}set partials(e){this._carrier.partials=e}asArray(e=1024){return hn(this,void 0,void 0,function*(){return Af(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this.modulationIndex.dispose(),this}}class Uh extends Oo{constructor(){super(We(Uh.getDefaults(),arguments,["frequency","width"])),this.name="PulseOscillator",this._widthGate=new Ri({context:this.context,gain:0}),this._thresh=new yg({context:this.context,mapping:n=>n<=0?-1:1});const e=We(Uh.getDefaults(),arguments,["frequency","width"]);this.width=new xr({context:this.context,units:"audioRange",value:e.width}),this._triangle=new Xn({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase,type:"triangle"}),this.frequency=this._triangle.frequency,this.detune=this._triangle.detune,this._triangle.chain(this._thresh,this.output),this.width.chain(this._widthGate,this._thresh),Fn(this,["width","frequency","detune"])}static getDefaults(){return Object.assign(Oo.getDefaults(),{detune:0,frequency:440,phase:0,type:"pulse",width:.2})}_start(e){e=this.toSeconds(e),this._triangle.start(e),this._widthGate.gain.setValueAtTime(1,e)}_stop(e){e=this.toSeconds(e),this._triangle.stop(e),this._widthGate.gain.cancelScheduledValues(e),this._widthGate.gain.setValueAtTime(0,e)}_restart(e){this._triangle.restart(e),this._widthGate.gain.cancelScheduledValues(e),this._widthGate.gain.setValueAtTime(1,e)}get phase(){return this._triangle.phase}set phase(e){this._triangle.phase=e}get type(){return"pulse"}get baseType(){return"pulse"}get partials(){return[]}get partialCount(){return 0}set carrierType(e){this._triangle.type=e}asArray(e=1024){return hn(this,void 0,void 0,function*(){return Af(this,e)})}dispose(){return super.dispose(),this._triangle.dispose(),this.width.dispose(),this._widthGate.dispose(),this._thresh.dispose(),this}}class Sg extends Oo{constructor(){super(We(Sg.getDefaults(),arguments,["frequency","type","spread"])),this.name="FatOscillator",this._oscillators=[];const e=We(Sg.getDefaults(),arguments,["frequency","type","spread"]);this.frequency=new xr({context:this.context,units:"frequency",value:e.frequency}),this.detune=new xr({context:this.context,units:"cents",value:e.detune}),this._spread=e.spread,this._type=e.type,this._phase=e.phase,this._partials=e.partials,this._partialCount=e.partialCount,this.count=e.count,Fn(this,["frequency","detune"])}static getDefaults(){return Object.assign(Xn.getDefaults(),{count:3,spread:20,type:"sawtooth"})}_start(e){e=this.toSeconds(e),this._forEach(n=>n.start(e))}_stop(e){e=this.toSeconds(e),this._forEach(n=>n.stop(e))}_restart(e){this._forEach(n=>n.restart(e))}_forEach(e){for(let n=0;n<this._oscillators.length;n++)e(this._oscillators[n],n)}get type(){return this._type}set type(e){this._type=e,this._forEach(n=>n.type=e)}get spread(){return this._spread}set spread(e){if(this._spread=e,this._oscillators.length>1){const n=-e/2,r=e/(this._oscillators.length-1);this._forEach((i,o)=>i.detune.value=n+r*o)}}get count(){return this._oscillators.length}set count(e){if(xu(e,1),this._oscillators.length!==e){this._forEach(n=>n.dispose()),this._oscillators=[];for(let n=0;n<e;n++){const r=new Xn({context:this.context,volume:-6-e*1.1,type:this._type,phase:this._phase+n/e*360,partialCount:this._partialCount,onstop:n===0?()=>this.onstop(this):sn});this.type==="custom"&&(r.partials=this._partials),this.frequency.connect(r.frequency),this.detune.connect(r.detune),r.detune.overridden=!1,r.connect(this.output),this._oscillators[n]=r}this.spread=this._spread,this.state==="started"&&this._forEach(n=>n.start())}}get phase(){return this._phase}set phase(e){this._phase=e,this._forEach((n,r)=>n.phase=this._phase+r/this.count*360)}get baseType(){return this._oscillators[0].baseType}set baseType(e){this._forEach(n=>n.baseType=e),this._type=this._oscillators[0].type}get partials(){return this._oscillators[0].partials}set partials(e){this._partials=e,this._partialCount=this._partials.length,e.length&&(this._type="custom",this._forEach(n=>n.partials=e))}get partialCount(){return this._oscillators[0].partialCount}set partialCount(e){this._partialCount=e,this._forEach(n=>n.partialCount=e),this._type=this._oscillators[0].type}asArray(e=1024){return hn(this,void 0,void 0,function*(){return Af(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this._forEach(e=>e.dispose()),this}}class bg extends Oo{constructor(){super(We(bg.getDefaults(),arguments,["frequency","modulationFrequency"])),this.name="PWMOscillator",this.sourceType="pwm",this._scale=new Cf({context:this.context,value:2});const e=We(bg.getDefaults(),arguments,["frequency","modulationFrequency"]);this._pulse=new Uh({context:this.context,frequency:e.modulationFrequency}),this._pulse.carrierType="sine",this.modulationFrequency=this._pulse.frequency,this._modulator=new Xn({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase}),this.frequency=this._modulator.frequency,this.detune=this._modulator.detune,this._modulator.chain(this._scale,this._pulse.width),this._pulse.connect(this.output),Fn(this,["modulationFrequency","frequency","detune"])}static getDefaults(){return Object.assign(Oo.getDefaults(),{detune:0,frequency:440,modulationFrequency:.4,phase:0,type:"pwm"})}_start(e){e=this.toSeconds(e),this._modulator.start(e),this._pulse.start(e)}_stop(e){e=this.toSeconds(e),this._modulator.stop(e),this._pulse.stop(e)}_restart(e){this._modulator.restart(e),this._pulse.restart(e)}get type(){return"pwm"}get baseType(){return"pwm"}get partials(){return[]}get partialCount(){return 0}get phase(){return this._modulator.phase}set phase(e){this._modulator.phase=e}asArray(e=1024){return hn(this,void 0,void 0,function*(){return Af(this,e)})}dispose(){return super.dispose(),this._pulse.dispose(),this._scale.dispose(),this._modulator.dispose(),this}}const JA={am:_g,fat:Sg,fm:wg,oscillator:Xn,pulse:Uh,pwm:bg};class Cg extends Oo{constructor(){super(We(Cg.getDefaults(),arguments,["frequency","type"])),this.name="OmniOscillator";const e=We(Cg.getDefaults(),arguments,["frequency","type"]);this.frequency=new xr({context:this.context,units:"frequency",value:e.frequency}),this.detune=new xr({context:this.context,units:"cents",value:e.detune}),Fn(this,["frequency","detune"]),this.set(e)}static getDefaults(){return Object.assign(Xn.getDefaults(),wg.getDefaults(),_g.getDefaults(),Sg.getDefaults(),Uh.getDefaults(),bg.getDefaults())}_start(e){this._oscillator.start(e)}_stop(e){this._oscillator.stop(e)}_restart(e){return this._oscillator.restart(e),this}get type(){let e="";return["am","fm","fat"].some(n=>this._sourceType===n)&&(e=this._sourceType),e+this._oscillator.type}set type(e){e.substr(0,2)==="fm"?(this._createNewOscillator("fm"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(2)):e.substr(0,2)==="am"?(this._createNewOscillator("am"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(2)):e.substr(0,3)==="fat"?(this._createNewOscillator("fat"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(3)):e==="pwm"?(this._createNewOscillator("pwm"),this._oscillator=this._oscillator):e==="pulse"?this._createNewOscillator("pulse"):(this._createNewOscillator("oscillator"),this._oscillator=this._oscillator,this._oscillator.type=e)}get partials(){return this._oscillator.partials}set partials(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partials=e)}get partialCount(){return this._oscillator.partialCount}set partialCount(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partialCount=e)}set(e){return Reflect.has(e,"type")&&e.type&&(this.type=e.type),super.set(e),this}_createNewOscillator(e){if(e!==this._sourceType){this._sourceType=e;const n=JA[e],r=this.now();if(this._oscillator){const i=this._oscillator;i.stop(r),this.context.setTimeout(()=>i.dispose(),this.blockTime)}this._oscillator=new n({context:this.context}),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.connect(this.output),this._oscillator.onstop=()=>this.onstop(this),this.state==="started"&&this._oscillator.start(r)}}get phase(){return this._oscillator.phase}set phase(e){this._oscillator.phase=e}get sourceType(){return this._sourceType}set sourceType(e){let n="sine";this._oscillator.type!=="pwm"&&this._oscillator.type!=="pulse"&&(n=this._oscillator.type),e==="fm"?this.type="fm"+n:e==="am"?this.type="am"+n:e==="fat"?this.type="fat"+n:e==="oscillator"?this.type=n:e==="pulse"?this.type="pulse":e==="pwm"&&(this.type="pwm")}_getOscType(e,n){return e instanceof JA[n]}get baseType(){return this._oscillator.baseType}set baseType(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&e!=="pulse"&&e!=="pwm"&&(this._oscillator.baseType=e)}get width(){if(this._getOscType(this._oscillator,"pulse"))return this._oscillator.width}get count(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.count}set count(e){this._getOscType(this._oscillator,"fat")&&wf(e)&&(this._oscillator.count=e)}get spread(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.spread}set spread(e){this._getOscType(this._oscillator,"fat")&&wf(e)&&(this._oscillator.spread=e)}get modulationType(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.modulationType}set modulationType(e){(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))&&Ss(e)&&(this._oscillator.modulationType=e)}get modulationIndex(){if(this._getOscType(this._oscillator,"fm"))return this._oscillator.modulationIndex}get harmonicity(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.harmonicity}get modulationFrequency(){if(this._getOscType(this._oscillator,"pwm"))return this._oscillator.modulationFrequency}asArray(e=1024){return hn(this,void 0,void 0,function*(){return Af(this,e)})}dispose(){return super.dispose(),this.detune.dispose(),this.frequency.dispose(),this._oscillator.dispose(),this}}function fD(t,e=1/0){const n=new WeakMap;return function(r,i){Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return n.get(this)},set:function(o){xu(o,t,e),n.set(this,o)}})}}function Tl(t,e=1/0){const n=new WeakMap;return function(r,i){Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,get:function(){return n.get(this)},set:function(o){xu(this.toSeconds(o),t,e),n.set(this,o)}})}}class xg extends Oo{constructor(){super(We(xg.getDefaults(),arguments,["url","onload"])),this.name="Player",this._activeSources=new Set;const e=We(xg.getDefaults(),arguments,["url","onload"]);this._buffer=new dn({onload:this._onload.bind(this,e.onload),onerror:e.onerror,reverse:e.reverse,url:e.url}),this.autostart=e.autostart,this._loop=e.loop,this._loopStart=e.loopStart,this._loopEnd=e.loopEnd,this._playbackRate=e.playbackRate,this.fadeIn=e.fadeIn,this.fadeOut=e.fadeOut}static getDefaults(){return Object.assign(Oo.getDefaults(),{autostart:!1,fadeIn:0,fadeOut:0,loop:!1,loopEnd:0,loopStart:0,onload:sn,onerror:sn,playbackRate:1,reverse:!1})}load(e){return hn(this,void 0,void 0,function*(){return yield this._buffer.load(e),this._onload(),this})}_onload(e=sn){e(),this.autostart&&this.start()}_onSourceEnd(e){this.onstop(this),this._activeSources.delete(e),this._activeSources.size===0&&!this._synced&&this._state.getValueAtTime(this.now())==="started"&&(this._state.cancel(this.now()),this._state.setStateAtTime("stopped",this.now()))}start(e,n,r){return super.start(e,n,r),this}_start(e,n,r){this._loop?n=bh(n,this._loopStart):n=bh(n,0);const i=this.toSeconds(n),o=r;r=bh(r,Math.max(this._buffer.duration-i,0));let l=this.toSeconds(r);l=l/this._playbackRate,e=this.toSeconds(e);const c=new vg({url:this._buffer,context:this.context,fadeIn:this.fadeIn,fadeOut:this.fadeOut,loop:this._loop,loopEnd:this._loopEnd,loopStart:this._loopStart,onended:this._onSourceEnd.bind(this),playbackRate:this._playbackRate}).connect(this.output);!this._loop&&!this._synced&&(this._state.cancel(e+l),this._state.setStateAtTime("stopped",e+l,{implicitEnd:!0})),this._activeSources.add(c),this._loop&&Xo(o)?c.start(e,i):c.start(e,i,l-this.toSeconds(this.fadeOut))}_stop(e){const n=this.toSeconds(e);this._activeSources.forEach(r=>r.stop(n))}restart(e,n,r){return super.restart(e,n,r),this}_restart(e,n,r){this._stop(e),this._start(e,n,r)}seek(e,n){const r=this.toSeconds(n);if(this._state.getValueAtTime(r)==="started"){const i=this.toSeconds(e);this._stop(r),this._start(r,i)}return this}setLoopPoints(e,n){return this.loopStart=e,this.loopEnd=n,this}get loopStart(){return this._loopStart}set loopStart(e){this._loopStart=e,this.buffer.loaded&&xu(this.toSeconds(e),0,this.buffer.duration),this._activeSources.forEach(n=>{n.loopStart=e})}get loopEnd(){return this._loopEnd}set loopEnd(e){this._loopEnd=e,this.buffer.loaded&&xu(this.toSeconds(e),0,this.buffer.duration),this._activeSources.forEach(n=>{n.loopEnd=e})}get buffer(){return this._buffer}set buffer(e){this._buffer.set(e)}get loop(){return this._loop}set loop(e){if(this._loop!==e&&(this._loop=e,this._activeSources.forEach(n=>{n.loop=e}),e)){const n=this._state.getNextState("stopped",this.now());n&&this._state.cancel(n.time)}}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate=e;const n=this.now(),r=this._state.getNextState("stopped",n);r&&r.implicitEnd&&(this._state.cancel(r.time),this._activeSources.forEach(i=>i.cancelStop())),this._activeSources.forEach(i=>{i.playbackRate.setValueAtTime(e,n)})}get reverse(){return this._buffer.reverse}set reverse(e){this._buffer.reverse=e}get loaded(){return this._buffer.loaded}dispose(){return super.dispose(),this._activeSources.forEach(e=>e.dispose()),this._activeSources.clear(),this._buffer.dispose(),this}}Ra([Tl(0)],xg.prototype,"fadeIn",void 0);Ra([Tl(0)],xg.prototype,"fadeOut",void 0);class ml extends Mt{constructor(){super(We(ml.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="Envelope",this._sig=new xr({context:this.context,value:0}),this.output=this._sig,this.input=void 0;const e=We(ml.getDefaults(),arguments,["attack","decay","sustain","release"]);this.attack=e.attack,this.decay=e.decay,this.sustain=e.sustain,this.release=e.release,this.attackCurve=e.attackCurve,this.releaseCurve=e.releaseCurve,this.decayCurve=e.decayCurve}static getDefaults(){return Object.assign(Mt.getDefaults(),{attack:.01,attackCurve:"linear",decay:.1,decayCurve:"exponential",release:1,releaseCurve:"exponential",sustain:.5})}get value(){return this.getValueAtTime(this.now())}_getCurve(e,n){if(Ss(e))return e;{let r;for(r in Z0)if(Z0[r][n]===e)return r;return e}}_setCurve(e,n,r){if(Ss(r)&&Reflect.has(Z0,r)){const i=Z0[r];tf(i)?e!=="_decayCurve"&&(this[e]=i[n]):this[e]=i}else if(Oa(r)&&e!=="_decayCurve")this[e]=r;else throw new Error("Envelope: invalid curve: "+r)}get attackCurve(){return this._getCurve(this._attackCurve,"In")}set attackCurve(e){this._setCurve("_attackCurve","In",e)}get releaseCurve(){return this._getCurve(this._releaseCurve,"Out")}set releaseCurve(e){this._setCurve("_releaseCurve","Out",e)}get decayCurve(){return this._decayCurve}set decayCurve(e){Rt(["linear","exponential"].some(n=>n===e),`Invalid envelope curve: ${e}`),this._decayCurve=e}triggerAttack(e,n=1){this.log("triggerAttack",e,n),e=this.toSeconds(e);let i=this.toSeconds(this.attack);const o=this.toSeconds(this.decay),l=this.getValueAtTime(e);if(l>0){const c=1/i;i=(1-l)/c}if(i<this.sampleTime)this._sig.cancelScheduledValues(e),this._sig.setValueAtTime(n,e);else if(this._attackCurve==="linear")this._sig.linearRampTo(n,i,e);else if(this._attackCurve==="exponential")this._sig.targetRampTo(n,i,e);else{this._sig.cancelAndHoldAtTime(e);let c=this._attackCurve;for(let f=1;f<c.length;f++)if(c[f-1]<=l&&l<=c[f]){c=this._attackCurve.slice(f),c[0]=l;break}this._sig.setValueCurveAtTime(c,e,i,n)}if(o&&this.sustain<1){const c=n*this.sustain,f=e+i;this.log("decay",f),this._decayCurve==="linear"?this._sig.linearRampToValueAtTime(c,o+f):this._sig.exponentialApproachValueAtTime(c,f,o)}return this}triggerRelease(e){this.log("triggerRelease",e),e=this.toSeconds(e);const n=this.getValueAtTime(e);if(n>0){const r=this.toSeconds(this.release);r<this.sampleTime?this._sig.setValueAtTime(0,e):this._releaseCurve==="linear"?this._sig.linearRampTo(0,r,e):this._releaseCurve==="exponential"?this._sig.targetRampTo(0,r,e):(Rt(Oa(this._releaseCurve),"releaseCurve must be either 'linear', 'exponential' or an array"),this._sig.cancelAndHoldAtTime(e),this._sig.setValueCurveAtTime(this._releaseCurve,e,r,n))}return this}getValueAtTime(e){return this._sig.getValueAtTime(e)}triggerAttackRelease(e,n,r=1){return n=this.toSeconds(n),this.triggerAttack(n,r),this.triggerRelease(n+this.toSeconds(e)),this}cancel(e){return this._sig.cancelScheduledValues(this.toSeconds(e)),this}connect(e,n=0,r=0){return Sx(this,e,n,r),this}asArray(e=1024){return hn(this,void 0,void 0,function*(){const n=e/this.context.sampleRate,r=new yx(1,n,this.context.sampleRate),i=this.toSeconds(this.attack)+this.toSeconds(this.decay),o=i+this.toSeconds(this.release),l=o*.1,c=o+l,f=new this.constructor(Object.assign(this.get(),{attack:n*this.toSeconds(this.attack)/c,decay:n*this.toSeconds(this.decay)/c,release:n*this.toSeconds(this.release)/c,context:r}));return f._sig.toDestination(),f.triggerAttackRelease(n*(i+l)/c,0),(yield r.render()).getChannelData(0)})}dispose(){return super.dispose(),this._sig.dispose(),this}}Ra([Tl(0)],ml.prototype,"attack",void 0);Ra([Tl(0)],ml.prototype,"decay",void 0);Ra([fD(0,1)],ml.prototype,"sustain",void 0);Ra([Tl(0)],ml.prototype,"release",void 0);const Z0=(()=>{let e,n;const r=[];for(e=0;e<128;e++)r[e]=Math.sin(e/127*(Math.PI/2));const i=[],o=6.4;for(e=0;e<127;e++){n=e/127;const v=Math.sin(n*(Math.PI*2)*o-Math.PI/2)+1;i[e]=v/10+n*.83}i[127]=1;const l=[],c=5;for(e=0;e<128;e++)l[e]=Math.ceil(e/127*c)/c;const f=[];for(e=0;e<128;e++)n=e/127,f[e]=.5*(1-Math.cos(Math.PI*n));const h=[];for(e=0;e<128;e++){n=e/127;const v=Math.pow(n,3)*4+.2,S=Math.cos(v*Math.PI*2*n);h[e]=Math.abs(S*(1-n))}function g(v){const S=new Array(v.length);for(let b=0;b<v.length;b++)S[b]=1-v[b];return S}function m(v){return v.slice(0).reverse()}return{bounce:{In:g(h),Out:h},cosine:{In:r,Out:m(r)},exponential:"exponential",linear:"linear",ripple:{In:i,Out:g(i)},sine:{In:f,Out:g(f)},step:{In:l,Out:g(l)}}})();class xf extends Mt{constructor(){super(We(xf.getDefaults(),arguments)),this._scheduledEvents=[],this._synced=!1,this._original_triggerAttack=this.triggerAttack,this._original_triggerRelease=this.triggerRelease;const e=We(xf.getDefaults(),arguments);this._volume=this.output=new bf({context:this.context,volume:e.volume}),this.volume=this._volume.volume,Fn(this,"volume")}static getDefaults(){return Object.assign(Mt.getDefaults(),{volume:0})}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",0)),this}_syncState(){let e=!1;return this._synced||(this._synced=!0,e=!0),e}_syncMethod(e,n){const r=this["_original_"+e]=this[e];this[e]=(...i)=>{const o=i[n],l=this.context.transport.schedule(c=>{i[n]=c,r.apply(this,i)},o);this._scheduledEvents.push(l)}}unsync(){return this._scheduledEvents.forEach(e=>this.context.transport.clear(e)),this._scheduledEvents=[],this._synced&&(this._synced=!1,this.triggerAttack=this._original_triggerAttack,this.triggerRelease=this._original_triggerRelease),this}triggerAttackRelease(e,n,r,i){const o=this.toSeconds(r),l=this.toSeconds(n);return this.triggerAttack(e,o,i),this.triggerRelease(o+l),this}dispose(){return super.dispose(),this._volume.dispose(),this.unsync(),this._scheduledEvents=[],this}}class Ef extends xf{constructor(){super(We(Ef.getDefaults(),arguments));const e=We(Ef.getDefaults(),arguments);this.portamento=e.portamento,this.onsilence=e.onsilence}static getDefaults(){return Object.assign(xf.getDefaults(),{detune:0,onsilence:sn,portamento:0})}triggerAttack(e,n,r=1){this.log("triggerAttack",e,n,r);const i=this.toSeconds(n);return this._triggerEnvelopeAttack(i,r),this.setNote(e,i),this}triggerRelease(e){this.log("triggerRelease",e);const n=this.toSeconds(e);return this._triggerEnvelopeRelease(n),this}setNote(e,n){const r=this.toSeconds(n),i=e instanceof Bo?e.toFrequency():e;if(this.portamento>0&&this.getLevelAtTime(r)>.05){const o=this.toSeconds(this.portamento);this.frequency.exponentialRampTo(i,o,r)}else this.frequency.setValueAtTime(i,r);return this}}Ra([Tl(0)],Ef.prototype,"portamento",void 0);class xx extends ml{constructor(){super(We(xx.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="AmplitudeEnvelope",this._gainNode=new Ri({context:this.context,gain:0}),this.output=this._gainNode,this.input=this._gainNode,this._sig.connect(this._gainNode.gain),this.output=this._gainNode,this.input=this._gainNode}dispose(){return super.dispose(),this._gainNode.dispose(),this}}class Vh extends Ef{constructor(){super(We(Vh.getDefaults(),arguments)),this.name="Synth";const e=We(Vh.getDefaults(),arguments);this.oscillator=new Cg(Object.assign({context:this.context,detune:e.detune,onstop:()=>this.onsilence(this)},e.oscillator)),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.envelope=new xx(Object.assign({context:this.context},e.envelope)),this.oscillator.chain(this.envelope,this.output),Fn(this,["oscillator","frequency","detune","envelope"])}static getDefaults(){return Object.assign(Ef.getDefaults(),{envelope:Object.assign(ZA(ml.getDefaults(),Object.keys(Mt.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.3}),oscillator:Object.assign(ZA(Cg.getDefaults(),[...Object.keys(Oo.getDefaults()),"frequency","detune"]),{type:"triangle"})})}_triggerEnvelopeAttack(e,n){if(this.envelope.triggerAttack(e,n),this.oscillator.start(e),this.envelope.sustain===0){const r=this.toSeconds(this.envelope.attack),i=this.toSeconds(this.envelope.decay);this.oscillator.stop(e+r+i)}}_triggerEnvelopeRelease(e){this.envelope.triggerRelease(e),this.oscillator.stop(e+this.toSeconds(this.envelope.release))}getLevelAtTime(e){return e=this.toSeconds(e),this.envelope.getValueAtTime(e)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this}}class Eg extends Vh{constructor(){super(We(Eg.getDefaults(),arguments)),this.name="MembraneSynth",this.portamento=0;const e=We(Eg.getDefaults(),arguments);this.pitchDecay=e.pitchDecay,this.octaves=e.octaves,Fn(this,["oscillator","envelope"])}static getDefaults(){return Sh(Ef.getDefaults(),Vh.getDefaults(),{envelope:{attack:.001,attackCurve:"exponential",decay:.4,release:1.4,sustain:.01},octaves:10,oscillator:{type:"sine"},pitchDecay:.05})}setNote(e,n){const r=this.toSeconds(n),i=this.toFrequency(e instanceof Bo?e.toFrequency():e),o=i*this.octaves;return this.oscillator.frequency.setValueAtTime(o,r),this.oscillator.frequency.exponentialRampToValueAtTime(i,r+this.toSeconds(this.pitchDecay)),this}dispose(){return super.dispose(),this}}Ra([fD(0)],Eg.prototype,"octaves",void 0);Ra([Tl(0)],Eg.prototype,"pitchDecay",void 0);const dD=new Set;function Ex(t){dD.add(t)}function hD(t,e){const n=`registerProcessor("${t}", ${e})`;dD.add(n)}const uZ=`
|
|
601
|
+
/**
|
|
602
|
+
* The base AudioWorkletProcessor for use in Tone.js. Works with the [[ToneAudioWorklet]].
|
|
603
|
+
*/
|
|
604
|
+
class ToneAudioWorkletProcessor extends AudioWorkletProcessor {
|
|
605
|
+
|
|
606
|
+
constructor(options) {
|
|
607
|
+
|
|
608
|
+
super(options);
|
|
609
|
+
/**
|
|
610
|
+
* If the processor was disposed or not. Keep alive until it's disposed.
|
|
611
|
+
*/
|
|
612
|
+
this.disposed = false;
|
|
613
|
+
/**
|
|
614
|
+
* The number of samples in the processing block
|
|
615
|
+
*/
|
|
616
|
+
this.blockSize = 128;
|
|
617
|
+
/**
|
|
618
|
+
* the sample rate
|
|
619
|
+
*/
|
|
620
|
+
this.sampleRate = sampleRate;
|
|
621
|
+
|
|
622
|
+
this.port.onmessage = (event) => {
|
|
623
|
+
// when it receives a dispose
|
|
624
|
+
if (event.data === "dispose") {
|
|
625
|
+
this.disposed = true;
|
|
626
|
+
}
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
`;Ex(uZ);const cZ=`
|
|
631
|
+
/**
|
|
632
|
+
* Abstract class for a single input/output processor.
|
|
633
|
+
* has a 'generate' function which processes one sample at a time
|
|
634
|
+
*/
|
|
635
|
+
class SingleIOProcessor extends ToneAudioWorkletProcessor {
|
|
636
|
+
|
|
637
|
+
constructor(options) {
|
|
638
|
+
super(Object.assign(options, {
|
|
639
|
+
numberOfInputs: 1,
|
|
640
|
+
numberOfOutputs: 1
|
|
641
|
+
}));
|
|
642
|
+
/**
|
|
643
|
+
* Holds the name of the parameter and a single value of that
|
|
644
|
+
* parameter at the current sample
|
|
645
|
+
* @type { [name: string]: number }
|
|
646
|
+
*/
|
|
647
|
+
this.params = {}
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* Generate an output sample from the input sample and parameters
|
|
652
|
+
* @abstract
|
|
653
|
+
* @param input number
|
|
654
|
+
* @param channel number
|
|
655
|
+
* @param parameters { [name: string]: number }
|
|
656
|
+
* @returns number
|
|
657
|
+
*/
|
|
658
|
+
generate(){}
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Update the private params object with the
|
|
662
|
+
* values of the parameters at the given index
|
|
663
|
+
* @param parameters { [name: string]: Float32Array },
|
|
664
|
+
* @param index number
|
|
665
|
+
*/
|
|
666
|
+
updateParams(parameters, index) {
|
|
667
|
+
for (const paramName in parameters) {
|
|
668
|
+
const param = parameters[paramName];
|
|
669
|
+
if (param.length > 1) {
|
|
670
|
+
this.params[paramName] = parameters[paramName][index];
|
|
671
|
+
} else {
|
|
672
|
+
this.params[paramName] = parameters[paramName][0];
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* Process a single frame of the audio
|
|
679
|
+
* @param inputs Float32Array[][]
|
|
680
|
+
* @param outputs Float32Array[][]
|
|
681
|
+
*/
|
|
682
|
+
process(inputs, outputs, parameters) {
|
|
683
|
+
const input = inputs[0];
|
|
684
|
+
const output = outputs[0];
|
|
685
|
+
// get the parameter values
|
|
686
|
+
const channelCount = Math.max(input && input.length || 0, output.length);
|
|
687
|
+
for (let sample = 0; sample < this.blockSize; sample++) {
|
|
688
|
+
this.updateParams(parameters, sample);
|
|
689
|
+
for (let channel = 0; channel < channelCount; channel++) {
|
|
690
|
+
const inputSample = input && input.length ? input[channel][sample] : 0;
|
|
691
|
+
output[channel][sample] = this.generate(inputSample, channel, this.params);
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
return !this.disposed;
|
|
695
|
+
}
|
|
696
|
+
};
|
|
697
|
+
`;Ex(cZ);const fZ=`
|
|
698
|
+
/**
|
|
699
|
+
* A multichannel buffer for use within an AudioWorkletProcessor as a delay line
|
|
700
|
+
*/
|
|
701
|
+
class DelayLine {
|
|
702
|
+
|
|
703
|
+
constructor(size, channels) {
|
|
704
|
+
this.buffer = [];
|
|
705
|
+
this.writeHead = []
|
|
706
|
+
this.size = size;
|
|
707
|
+
|
|
708
|
+
// create the empty channels
|
|
709
|
+
for (let i = 0; i < channels; i++) {
|
|
710
|
+
this.buffer[i] = new Float32Array(this.size);
|
|
711
|
+
this.writeHead[i] = 0;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Push a value onto the end
|
|
717
|
+
* @param channel number
|
|
718
|
+
* @param value number
|
|
719
|
+
*/
|
|
720
|
+
push(channel, value) {
|
|
721
|
+
this.writeHead[channel] += 1;
|
|
722
|
+
if (this.writeHead[channel] > this.size) {
|
|
723
|
+
this.writeHead[channel] = 0;
|
|
724
|
+
}
|
|
725
|
+
this.buffer[channel][this.writeHead[channel]] = value;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Get the recorded value of the channel given the delay
|
|
730
|
+
* @param channel number
|
|
731
|
+
* @param delay number delay samples
|
|
732
|
+
*/
|
|
733
|
+
get(channel, delay) {
|
|
734
|
+
let readHead = this.writeHead[channel] - Math.floor(delay);
|
|
735
|
+
if (readHead < 0) {
|
|
736
|
+
readHead += this.size;
|
|
737
|
+
}
|
|
738
|
+
return this.buffer[channel][readHead];
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
`;Ex(fZ);const dZ="feedback-comb-filter",hZ=`
|
|
742
|
+
class FeedbackCombFilterWorklet extends SingleIOProcessor {
|
|
743
|
+
|
|
744
|
+
constructor(options) {
|
|
745
|
+
super(options);
|
|
746
|
+
this.delayLine = new DelayLine(this.sampleRate, options.channelCount || 2);
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
static get parameterDescriptors() {
|
|
750
|
+
return [{
|
|
751
|
+
name: "delayTime",
|
|
752
|
+
defaultValue: 0.1,
|
|
753
|
+
minValue: 0,
|
|
754
|
+
maxValue: 1,
|
|
755
|
+
automationRate: "k-rate"
|
|
756
|
+
}, {
|
|
757
|
+
name: "feedback",
|
|
758
|
+
defaultValue: 0.5,
|
|
759
|
+
minValue: 0,
|
|
760
|
+
maxValue: 0.9999,
|
|
761
|
+
automationRate: "k-rate"
|
|
762
|
+
}];
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
generate(input, channel, parameters) {
|
|
766
|
+
const delayedSample = this.delayLine.get(channel, parameters.delayTime * this.sampleRate);
|
|
767
|
+
this.delayLine.push(channel, input + delayedSample * parameters.feedback);
|
|
768
|
+
return delayedSample;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
`;hD(dZ,hZ);class Tg extends xf{constructor(){super(We(Tg.getDefaults(),arguments,["urls","onload","baseUrl"],"urls")),this.name="Sampler",this._activeSources=new Map;const e=We(Tg.getDefaults(),arguments,["urls","onload","baseUrl"],"urls"),n={};Object.keys(e.urls).forEach(r=>{const i=parseInt(r,10);if(Rt(Q0(r)||wf(i)&&isFinite(i),`url key is neither a note or midi pitch: ${r}`),Q0(r)){const o=new Bo(this.context,r).toMidi();n[o]=e.urls[r]}else wf(i)&&isFinite(i)&&(n[i]=e.urls[i])}),this._buffers=new bx({urls:n,onload:e.onload,baseUrl:e.baseUrl,onerror:e.onerror}),this.attack=e.attack,this.release=e.release,this.curve=e.curve,this._buffers.loaded&&Promise.resolve().then(e.onload)}static getDefaults(){return Object.assign(xf.getDefaults(),{attack:0,baseUrl:"",curve:"exponential",onload:sn,onerror:sn,release:.1,urls:{}})}_findClosest(e){let r=0;for(;r<96;){if(this._buffers.has(e+r))return-r;if(this._buffers.has(e-r))return r;r++}throw new Error(`No available buffers for note: ${e}`)}triggerAttack(e,n,r=1){return this.log("triggerAttack",e,n,r),Array.isArray(e)||(e=[e]),e.forEach(i=>{const o=cD(new Bo(this.context,i).toFrequency()),l=Math.round(o),c=o-l,f=this._findClosest(l),h=l-f,g=this._buffers.get(h),m=uD(f+c),v=new vg({url:g,context:this.context,curve:this.curve,fadeIn:this.attack,fadeOut:this.release,playbackRate:m}).connect(this.output);v.start(n,0,g.duration/m,r),Oa(this._activeSources.get(l))||this._activeSources.set(l,[]),this._activeSources.get(l).push(v),v.onended=()=>{if(this._activeSources&&this._activeSources.has(l)){const S=this._activeSources.get(l),b=S.indexOf(v);b!==-1&&S.splice(b,1)}}}),this}triggerRelease(e,n){return this.log("triggerRelease",e,n),Array.isArray(e)||(e=[e]),e.forEach(r=>{const i=new Bo(this.context,r).toMidi();if(this._activeSources.has(i)&&this._activeSources.get(i).length){const o=this._activeSources.get(i);n=this.toSeconds(n),o.forEach(l=>{l.stop(n)}),this._activeSources.set(i,[])}}),this}releaseAll(e){const n=this.toSeconds(e);return this._activeSources.forEach(r=>{for(;r.length;)r.shift().stop(n)}),this}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",1)),this}triggerAttackRelease(e,n,r,i=1){const o=this.toSeconds(r);return this.triggerAttack(e,o,i),Oa(n)?(Rt(Oa(e),"notes must be an array when duration is array"),e.forEach((l,c)=>{const f=n[Math.min(c,n.length-1)];this.triggerRelease(l,o+this.toSeconds(f))})):this.triggerRelease(e,o+this.toSeconds(n)),this}add(e,n,r){if(Rt(Q0(e)||isFinite(e),`note must be a pitch or midi: ${e}`),Q0(e)){const i=new Bo(this.context,e).toMidi();this._buffers.add(i,n,r)}else this._buffers.add(e,n,r);return this}get loaded(){return this._buffers.loaded}dispose(){return super.dispose(),this._buffers.dispose(),this._activeSources.forEach(e=>{e.forEach(n=>n.dispose())}),this._activeSources.clear(),this}}Ra([Tl(0)],Tg.prototype,"attack",void 0);Ra([Tl(0)],Tg.prototype,"release",void 0);class i_ extends Mt{constructor(){super(Object.assign(We(i_.getDefaults(),arguments,["pan"]))),this.name="Panner",this._panner=this.context.createStereoPanner(),this.input=this._panner,this.output=this._panner;const e=We(i_.getDefaults(),arguments,["pan"]);this.pan=new Tn({context:this.context,param:this._panner.pan,value:e.pan,minValue:-1,maxValue:1}),this._panner.channelCount=e.channelCount,this._panner.channelCountMode="explicit",Fn(this,"pan")}static getDefaults(){return Object.assign(Mt.getDefaults(),{pan:0,channelCount:1})}dispose(){return super.dispose(),this._panner.disconnect(),this.pan.dispose(),this}}const pZ="bit-crusher",mZ=`
|
|
772
|
+
class BitCrusherWorklet extends SingleIOProcessor {
|
|
773
|
+
|
|
774
|
+
static get parameterDescriptors() {
|
|
775
|
+
return [{
|
|
776
|
+
name: "bits",
|
|
777
|
+
defaultValue: 12,
|
|
778
|
+
minValue: 1,
|
|
779
|
+
maxValue: 16,
|
|
780
|
+
automationRate: 'k-rate'
|
|
781
|
+
}];
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
generate(input, _channel, parameters) {
|
|
785
|
+
const step = Math.pow(0.5, parameters.bits - 1);
|
|
786
|
+
const val = step * Math.floor(input / step + 0.5);
|
|
787
|
+
return val;
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
`;hD(pZ,mZ);class Kn extends Mt{constructor(){super(We(Kn.getDefaults(),arguments,["solo"])),this.name="Solo";const e=We(Kn.getDefaults(),arguments,["solo"]);this.input=this.output=new Ri({context:this.context}),Kn._allSolos.has(this.context)||Kn._allSolos.set(this.context,new Set),Kn._allSolos.get(this.context).add(this),this.solo=e.solo}static getDefaults(){return Object.assign(Mt.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(e){e?this._addSolo():this._removeSolo(),Kn._allSolos.get(this.context).forEach(n=>n._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){Kn._soloed.has(this.context)||Kn._soloed.set(this.context,new Set),Kn._soloed.get(this.context).add(this)}_removeSolo(){Kn._soloed.has(this.context)&&Kn._soloed.get(this.context).delete(this)}_isSoloed(){return Kn._soloed.has(this.context)&&Kn._soloed.get(this.context).has(this)}_noSolos(){return!Kn._soloed.has(this.context)||Kn._soloed.has(this.context)&&Kn._soloed.get(this.context).size===0}_updateSolo(){this._isSoloed()?this.input.gain.value=1:this._noSolos()?this.input.gain.value=1:this.input.gain.value=0}dispose(){return super.dispose(),Kn._allSolos.get(this.context).delete(this),this._removeSolo(),this}}Kn._allSolos=new Map;Kn._soloed=new Map;class o_ extends Mt{constructor(){super(We(o_.getDefaults(),arguments,["pan","volume"])),this.name="PanVol";const e=We(o_.getDefaults(),arguments,["pan","volume"]);this._panner=this.input=new i_({context:this.context,pan:e.pan,channelCount:e.channelCount}),this.pan=this._panner.pan,this._volume=this.output=new bf({context:this.context,volume:e.volume}),this.volume=this._volume.volume,this._panner.connect(this._volume),this.mute=e.mute,Fn(this,["pan","volume"])}static getDefaults(){return Object.assign(Mt.getDefaults(),{mute:!1,pan:0,volume:0,channelCount:1})}get mute(){return this._volume.mute}set mute(e){this._volume.mute=e}dispose(){return super.dispose(),this._panner.dispose(),this.pan.dispose(),this._volume.dispose(),this.volume.dispose(),this}}class Vc extends Mt{constructor(){super(We(Vc.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const e=We(Vc.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new Kn({solo:e.solo,context:this.context}),this._panVol=this.output=new o_({context:this.context,pan:e.pan,volume:e.volume,mute:e.mute,channelCount:e.channelCount}),this.pan=this._panVol.pan,this.volume=this._panVol.volume,this._solo.connect(this._panVol),Fn(this,["pan","volume"])}static getDefaults(){return Object.assign(Mt.getDefaults(),{pan:0,volume:0,mute:!1,solo:!1,channelCount:1})}get solo(){return this._solo.solo}set solo(e){this._solo.solo=e}get muted(){return this._solo.muted||this.mute}get mute(){return this._panVol.mute}set mute(e){this._panVol.mute=e}_getBus(e){return Vc.buses.has(e)||Vc.buses.set(e,new Ri({context:this.context})),Vc.buses.get(e)}send(e,n=0){const r=this._getBus(e),i=new Ri({context:this.context,units:"decibels",gain:n});return this.connect(i),i.connect(r),i}receive(e){return this._getBus(e).connect(this),this}dispose(){return super.dispose(),this._panVol.dispose(),this.pan.dispose(),this.volume.dispose(),this._solo.dispose(),this}}Vc.buses=new Map;class gZ extends Mt{constructor(){super(...arguments),this.name="Listener",this.positionX=new Tn({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new Tn({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new Tn({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new Tn({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new Tn({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new Tn({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new Tn({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new Tn({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new Tn({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(Mt.getDefaults(),{positionX:0,positionY:0,positionZ:0,forwardX:0,forwardY:0,forwardZ:-1,upX:0,upY:1,upZ:0})}dispose(){return super.dispose(),this.positionX.dispose(),this.positionY.dispose(),this.positionZ.dispose(),this.forwardX.dispose(),this.forwardY.dispose(),this.forwardZ.dispose(),this.upX.dispose(),this.upY.dispose(),this.upZ.dispose(),this}}U_(t=>{t.listener=new gZ({context:t})});V_(t=>{t.listener.dispose()});function vZ(){return Go().now()}Go().transport;Go().destination;Go().destination;Go().listener;Go().draw;Go();const yZ=[{note:"C4",duration:0},{note:"B3",duration:.2}],_Z=[{note:"C5",duration:0},{note:"E5",duration:.2}],eR=.3;function tR(t,e){const n=vZ(),r=new Vh().toDestination();t.forEach(i=>{r.triggerAttack(i.note,n+i.duration)}),r.triggerRelease(`+${e}`)}function wZ(t){return je.useEffect(()=>{const e=()=>{t.status=="failed"?tR(yZ,eR):t.status=="passed"&&tR(_Z,eR)};t.status&&e()},[t.status]),ve.jsx(ve.Fragment,{})}const nR={ULTRAWIDE:490,WIDE:400},pD={ready:"app.status.ready",run:"app.status.run",passed:"app.status.passed",failed:"app.status.failed",stopped:"app.status.stopped"},SZ=t=>t in pD;function bZ(){const{t}=Og(),[e,n]=N.useState(!1),[r,i]=N.useState(!1),[o,l]=N.useState("ready"),[c,f]=N.useState(0),[h,g]=N.useState(!0),[m,v]=N.useState(0),S=N.useRef(null),[b,A]=N.useState(null),C=V=>{const[K,Z]=N.useState(0);return N.useEffect(()=>{function J(){Z(window.innerWidth)}return window.addEventListener("resize",J),J(),()=>{window.removeEventListener("resize",J)}},[Z]),K>V},E=C(nR.ULTRAWIDE),k=C(nR.WIDE);N.useEffect(()=>{if(o==="run"){if(S.current!==null){const V=()=>{const Z=Math.floor(Date.now()/1e3);v(Z-S.current)};V();const K=setInterval(V,1e3);return A(K),()=>{K&&clearInterval(K)}}}else b&&(clearInterval(b),A(null))},[o]);const{rows:T,state:x,loading:w,error:R}=VF({include_docs:!0});N.useEffect(()=>{if(T.length===0)return;const V=T[0].doc,K=V.status||"",Z=V.progress||0;if(K!==o&&l(SZ(K)?K:"unknown"),Z!==c&&f(Z),V.start_time&&(S.current=V.start_time,V.stop_time&&K!=="run")){const J=V.stop_time-V.start_time;J!==m&&v(J)}x==="error"?g(!1):h===!1&&g(!0)},[T,x,o,c,m,h]);const I=()=>w&&T.length===0?ve.jsx(qc,{style:{marginTop:"60px"},children:ve.jsx(ey,{children:t("app.connection")})}):x==="error"?ve.jsxs(qc,{style:{marginTop:"60px"},children:[ve.jsx(ey,{children:t("app.dbError")}),R&&ve.jsx("p",{children:R.message})]}):T.length===0?ve.jsx(qc,{style:{marginTop:"60px"},children:ve.jsx(ey,{children:t("app.noEntries")})}):ve.jsx("div",{style:{marginTop:"40px"},children:T.map(V=>ve.jsxs("div",{style:{display:"flex",flexDirection:"row"},children:[(E||!r)&&ve.jsx(qc,{style:{flexDirection:"column",padding:"20px",flexGrow:1,flexShrink:1,marginTop:"20px",marginBottom:"20px"},children:ve.jsx(bG,{db_state:V.doc,defaultClose:!E})}),r&&ve.jsx(qc,{style:{flexDirection:"column",padding:"20px",marginTop:"20px",marginBottom:"20px"},children:ve.jsx("pre",{children:JSON.stringify(V.doc,null,2)})})]},V.id))}),F=()=>ve.jsxs(F2,{children:[ve.jsx(Py,{shouldDismissPopover:!1,text:t(e?"app.soundOff":"app.soundOn"),icon:e?"volume-up":"volume-off",id:"use_end_test_sound",onClick:()=>n(!e)}),ve.jsx(Py,{shouldDismissPopover:!1,text:t(r?"app.debugOff":"app.debugOn"),icon:"bug",id:"use_debug_info",onClick:()=>i(!r)})]}),U=V=>V==="unknown"?(console.error("Unknown status encountered"),t("app.status.unknown")||"Unknown status"):t(pD[V]);return ve.jsxs("div",{className:"App",children:[ve.jsx(TG,{reload_timeout_s:3}),ve.jsxs(il,{fixedToTop:!0,style:{background:dT.LIGHT_GRAY4,margin:"auto"},children:[ve.jsxs(il.Group,{align:Zm.LEFT,children:[ve.jsxs(il.Heading,{id:"main-heading",children:[ve.jsx("div",{className:"logo-smol"}),k&&ve.jsx("div",{children:ve.jsx("b",{children:E?t("app.title"):"HardPy"})})]}),k&&ve.jsx(il.Divider,{}),ve.jsxs("div",{style:{display:"flex",flexDirection:k?"row":"column",alignItems:"center",gap:k?"10px":"5px"},children:[ve.jsxs(il.Heading,{id:"last-exec-heading",style:{margin:0,display:"flex",alignItems:"center",gap:"5px",whiteSpace:"nowrap"},children:[ve.jsx("div",{children:t("app.lastLaunch")}),ve.jsx("div",{children:U(o)}),ve.jsx(Gm,{status:o==="unknown"?"":o})]}),e&&ve.jsx(wZ,{status:o},"sound"),ve.jsx(il.Divider,{}),ve.jsxs(il.Heading,{children:[t("app.duration"),": ",m," ",t("app.seconds")]})]}),ve.jsx(il.Divider,{})]}),ve.jsx(il.Group,{align:Zm.RIGHT,children:ve.jsx(PC,{content:F(),children:ve.jsx(df,{className:"bp3-minimal",icon:"cog"})})})]}),ve.jsx("div",{className:J3,style:{marginBottom:"60px"},children:I()}),ve.jsxs("div",{className:e$,style:{width:"100%",display:"flex",flexDirection:"row",position:"fixed",bottom:0,background:dT.LIGHT_GRAY5,margin:"auto"},children:[ve.jsx("div",{style:{flexDirection:"column",flexGrow:1,flexShrink:1,marginTop:"auto",marginBottom:"auto",padding:"20px"},children:ve.jsx(CG,{percentage:c,status:o})}),ve.jsx("div",{style:{flexDirection:"column"},children:ve.jsx(M9,{testing_status:o})})]})]})}function CZ(){const{t}=Og();return ve.jsxs("div",{style:{padding:"20px",textAlign:"center"},children:[ve.jsx("h1",{children:t("error.dbConnectionTitle")}),ve.jsx("p",{children:t("error.dbConnectionMessage")})]})}async function xZ(){try{return`${(await(await fetch("/api/couch")).json()).connection_str}/statestore`}catch(t){console.error(t);return}}const rR=BM.createRoot(document.getElementById("root")),iR=await xZ();if(iR!==void 0){const t=new Ct(iR);rR.render(ve.jsx(N.StrictMode,{children:ve.jsx(MF,{pouchdb:t,children:ve.jsx(bZ,{})})}))}else rR.render(ve.jsx(N.StrictMode,{children:ve.jsx(CZ,{})}));console.log=function(){},console.debug=function(){};export{mt as I,hn as _,dh as a,KS as b,oo as g,U6 as p};
|