@ea-lab/reactive-json 0.0.9 → 0.0.10
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.
- package/dist/reactive-json.js +1708 -1708
- package/dist/reactive-json.umd.cjs +36 -36
- package/lib/engine/View.jsx +35 -35
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Bf;function Tv(){if(Bf)return go;Bf=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,a,s){var u=null;if(s!==void 0&&(u=""+s),a.key!==void 0&&(u=""+a.key),"key"in a){s={};for(var
|
|
9
|
+
*/var Bf;function Tv(){if(Bf)return go;Bf=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,a,s){var u=null;if(s!==void 0&&(u=""+s),a.key!==void 0&&(u=""+a.key),"key"in a){s={};for(var c in a)c!=="key"&&(s[c]=a[c])}else s=a;return a=s.ref,{$$typeof:e,type:i,key:u,ref:a!==void 0?a:null,props:s}}return go.Fragment=t,go.jsx=n,go.jsxs=n,go}var vo={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,45 +14,45 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Mf;function Ov(){return Mf||(Mf=1,process.env.NODE_ENV!=="production"&&function(){function e(M){if(M==null)return null;if(typeof M=="function")return M.$$typeof===q?null:M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case
|
|
17
|
+
*/var Mf;function Ov(){return Mf||(Mf=1,process.env.NODE_ENV!=="production"&&function(){function e(M){if(M==null)return null;if(typeof M=="function")return M.$$typeof===q?null:M.displayName||M.name||null;if(typeof M=="string")return M;switch(M){case C:return"Fragment";case D:return"Profiler";case m:return"StrictMode";case v:return"Suspense";case S:return"SuspenseList";case G:return"Activity"}if(typeof M=="object")switch(typeof M.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),M.$$typeof){case x:return"Portal";case I:return(M.displayName||"Context")+".Provider";case F:return(M._context.displayName||"Context")+".Consumer";case w:var K=M.render;return M=M.displayName,M||(M=K.displayName||K.name||"",M=M!==""?"ForwardRef("+M+")":"ForwardRef"),M;case O:return K=M.displayName||null,K!==null?K:e(M.type)||"Memo";case B:K=M._payload,M=M._init;try{return e(M(K))}catch{}}return null}function t(M){return""+M}function n(M){try{t(M);var K=!1}catch{K=!0}if(K){K=console;var pe=K.error,j=typeof Symbol=="function"&&Symbol.toStringTag&&M[Symbol.toStringTag]||M.constructor.name||"Object";return pe.call(K,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",j),t(M)}}function i(M){if(M===C)return"<>";if(typeof M=="object"&&M!==null&&M.$$typeof===B)return"<...>";try{var K=e(M);return K?"<"+K+">":"<...>"}catch{return"<...>"}}function a(){var M=V.A;return M===null?null:M.getOwner()}function s(){return Error("react-stack-top-frame")}function u(M){if(ue.call(M,"key")){var K=Object.getOwnPropertyDescriptor(M,"key").get;if(K&&K.isReactWarning)return!1}return M.key!==void 0}function c(M,K){function pe(){le||(le=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",K))}pe.isReactWarning=!0,Object.defineProperty(M,"key",{get:pe,configurable:!0})}function f(){var M=e(this.type);return xe[M]||(xe[M]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),M=this.props.ref,M!==void 0?M:null}function d(M,K,pe,j,z,J,de,ve){return pe=J.ref,M={$$typeof:E,type:M,key:K,props:J,_owner:z},(pe!==void 0?pe:null)!==null?Object.defineProperty(M,"ref",{enumerable:!1,get:f}):Object.defineProperty(M,"ref",{enumerable:!1,value:null}),M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(M,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(M,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:de}),Object.defineProperty(M,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:ve}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M}function h(M,K,pe,j,z,J,de,ve){var ae=K.children;if(ae!==void 0)if(j)if(ne(ae)){for(j=0;j<ae.length;j++)p(ae[j]);Object.freeze&&Object.freeze(ae)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else p(ae);if(ue.call(K,"key")){ae=e(M);var Z=Object.keys(K).filter(function(me){return me!=="key"});j=0<Z.length?"{key: someKey, "+Z.join(": ..., ")+": ...}":"{key: someKey}",Ie[ae+j]||(Z=0<Z.length?"{"+Z.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,j,ae,Z,ae),Ie[ae+j]=!0)}if(ae=null,pe!==void 0&&(n(pe),ae=""+pe),u(K)&&(n(K.key),ae=""+K.key),"key"in K){pe={};for(var Y in K)Y!=="key"&&(pe[Y]=K[Y])}else pe=K;return ae&&
|
|
22
|
+
<%s key={someKey} {...props} />`,j,ae,Z,ae),Ie[ae+j]=!0)}if(ae=null,pe!==void 0&&(n(pe),ae=""+pe),u(K)&&(n(K.key),ae=""+K.key),"key"in K){pe={};for(var Y in K)Y!=="key"&&(pe[Y]=K[Y])}else pe=K;return ae&&c(pe,typeof M=="function"?M.displayName||M.name||"Unknown":M),d(M,ae,J,z,a(),pe,de,ve)}function p(M){typeof M=="object"&&M!==null&&M.$$typeof===E&&M._store&&(M._store.validated=1)}var b=A,E=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),I=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),q=Symbol.for("react.client.reference"),V=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=Object.prototype.hasOwnProperty,ne=Array.isArray,te=console.createTask?console.createTask:function(){return null};b={"react-stack-bottom-frame":function(M){return M()}};var le,xe={},he=b["react-stack-bottom-frame"].bind(b,s)(),fe=te(i(s)),Ie={};vo.Fragment=C,vo.jsx=function(M,K,pe,j,z){var J=1e4>V.recentlyCreatedOwnerStacks++;return h(M,K,pe,!1,j,z,J?Error("react-stack-top-frame"):he,J?te(i(M)):fe)},vo.jsxs=function(M,K,pe,j,z){var J=1e4>V.recentlyCreatedOwnerStacks++;return h(M,K,pe,!0,j,z,J?Error("react-stack-top-frame"):he,J?te(i(M)):fe)}}()),vo}var jf;function Dv(){return jf||(jf=1,process.env.NODE_ENV==="production"?xa.exports=Tv():xa.exports=Ov()),xa.exports}var R=Dv();const xu=A.createContext({addEventListener:null,removeEventListener:null}),Ir={},Iv=e=>{if(Ir.hasOwnProperty(e.type))for(const t of Ir[e.type])t(e)},Fv=(e,t)=>{Ir.hasOwnProperty(e)?Ir[e].push(t):(window.addEventListener(e,Iv),Ir[e]=[t])},Pv=(e,t)=>{if(!Ir.hasOwnProperty(e))return;const n=Ir[e].indexOf(t);n>-1&&Ir[e].splice(n,1)},kv=e=>R.jsx(xu.Provider,{value:{addEventListener:Fv,removeEventListener:Pv},children:e.children}),Nv=A.memo(kv),dt=A.createContext({}),Rv=e=>{const t={...e.value};return t.getRootContext===void 0&&(t.getRootContext=()=>e.value),R.jsx(dt.Provider,{value:t,children:e.children})},ot=A.createContext({});var Eu={exports:{}};/*!
|
|
23
23
|
Copyright (c) 2018 Jed Watson.
|
|
24
24
|
Licensed under the MIT License (MIT), see
|
|
25
25
|
http://jedwatson.github.io/classnames
|
|
26
|
-
*/var $f;function Lv(){return $f||($f=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",u=0;u<arguments.length;u++){var
|
|
26
|
+
*/var $f;function Lv(){return $f||($f=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var s="",u=0;u<arguments.length;u++){var c=arguments[u];c&&(s=a(s,i(c)))}return s}function i(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var u="";for(var c in s)t.call(s,c)&&s[c]&&(u=a(u,c));return u}function a(s,u){return u?s?s+" "+u:s+u:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Eu)),Eu.exports}var Bv=Lv();const Pe=mo(Bv);var Ea={exports:{}},Ca={exports:{}},at={};/** @license React v16.13.1
|
|
27
27
|
* react-is.production.min.js
|
|
28
28
|
*
|
|
29
29
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Uf;function Mv(){if(Uf)return at;Uf=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,
|
|
33
|
+
*/var Uf;function Mv(){if(Uf)return at;Uf=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,F=e?Symbol.for("react.scope"):60119;function I(v){if(typeof v=="object"&&v!==null){var S=v.$$typeof;switch(S){case t:switch(v=v.type,v){case f:case d:case i:case s:case a:case p:return v;default:switch(v=v&&v.$$typeof,v){case c:case h:case x:case E:case u:return v;default:return S}}case n:return S}}}function w(v){return I(v)===d}return at.AsyncMode=f,at.ConcurrentMode=d,at.ContextConsumer=c,at.ContextProvider=u,at.Element=t,at.ForwardRef=h,at.Fragment=i,at.Lazy=x,at.Memo=E,at.Portal=n,at.Profiler=s,at.StrictMode=a,at.Suspense=p,at.isAsyncMode=function(v){return w(v)||I(v)===f},at.isConcurrentMode=w,at.isContextConsumer=function(v){return I(v)===c},at.isContextProvider=function(v){return I(v)===u},at.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},at.isForwardRef=function(v){return I(v)===h},at.isFragment=function(v){return I(v)===i},at.isLazy=function(v){return I(v)===x},at.isMemo=function(v){return I(v)===E},at.isPortal=function(v){return I(v)===n},at.isProfiler=function(v){return I(v)===s},at.isStrictMode=function(v){return I(v)===a},at.isSuspense=function(v){return I(v)===p},at.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===i||v===d||v===s||v===a||v===p||v===b||typeof v=="object"&&v!==null&&(v.$$typeof===x||v.$$typeof===E||v.$$typeof===u||v.$$typeof===c||v.$$typeof===h||v.$$typeof===m||v.$$typeof===D||v.$$typeof===F||v.$$typeof===C)},at.typeOf=I,at}var st={};/** @license React v16.13.1
|
|
34
34
|
* react-is.development.js
|
|
35
35
|
*
|
|
36
36
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
37
|
*
|
|
38
38
|
* This source code is licensed under the MIT license found in the
|
|
39
39
|
* LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/var Hf;function jv(){return Hf||(Hf=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,
|
|
40
|
+
*/var Hf;function jv(){return Hf||(Hf=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,h=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,E=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,C=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,D=e?Symbol.for("react.responder"):60118,F=e?Symbol.for("react.scope"):60119;function I(ee){return typeof ee=="string"||typeof ee=="function"||ee===i||ee===d||ee===s||ee===a||ee===p||ee===b||typeof ee=="object"&&ee!==null&&(ee.$$typeof===x||ee.$$typeof===E||ee.$$typeof===u||ee.$$typeof===c||ee.$$typeof===h||ee.$$typeof===m||ee.$$typeof===D||ee.$$typeof===F||ee.$$typeof===C)}function w(ee){if(typeof ee=="object"&&ee!==null){var Be=ee.$$typeof;switch(Be){case t:var ke=ee.type;switch(ke){case f:case d:case i:case s:case a:case p:return ke;default:var Te=ke&&ke.$$typeof;switch(Te){case c:case h:case x:case E:case u:return Te;default:return Be}}case n:return Be}}}var v=f,S=d,O=c,B=u,G=t,q=h,V=i,ue=x,ne=E,te=n,le=s,xe=a,he=p,fe=!1;function Ie(ee){return fe||(fe=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(ee)||w(ee)===f}function M(ee){return w(ee)===d}function K(ee){return w(ee)===c}function pe(ee){return w(ee)===u}function j(ee){return typeof ee=="object"&&ee!==null&&ee.$$typeof===t}function z(ee){return w(ee)===h}function J(ee){return w(ee)===i}function de(ee){return w(ee)===x}function ve(ee){return w(ee)===E}function ae(ee){return w(ee)===n}function Z(ee){return w(ee)===s}function Y(ee){return w(ee)===a}function me(ee){return w(ee)===p}st.AsyncMode=v,st.ConcurrentMode=S,st.ContextConsumer=O,st.ContextProvider=B,st.Element=G,st.ForwardRef=q,st.Fragment=V,st.Lazy=ue,st.Memo=ne,st.Portal=te,st.Profiler=le,st.StrictMode=xe,st.Suspense=he,st.isAsyncMode=Ie,st.isConcurrentMode=M,st.isContextConsumer=K,st.isContextProvider=pe,st.isElement=j,st.isForwardRef=z,st.isFragment=J,st.isLazy=de,st.isMemo=ve,st.isPortal=ae,st.isProfiler=Z,st.isStrictMode=Y,st.isSuspense=me,st.isValidElementType=I,st.typeOf=w}()),st}var Wf;function qf(){return Wf||(Wf=1,process.env.NODE_ENV==="production"?Ca.exports=Mv():Ca.exports=jv()),Ca.exports}/*
|
|
41
41
|
object-assign
|
|
42
42
|
(c) Sindre Sorhus
|
|
43
43
|
@license MIT
|
|
44
|
-
*/var
|
|
45
|
-
Valid keys: `+JSON.stringify(Object.keys(M),null," "));var ee=me(ve,Y,z,J,de+"."+Y,n);if(ee)return ee}return null}return m(K)}function te(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(te);if(M===null||
|
|
44
|
+
*/var Cu,zf;function $v(){if(zf)return Cu;zf=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function a(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var u={},c=0;c<10;c++)u["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(u).map(function(h){return u[h]});if(f.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(h){d[h]=h}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Cu=a()?Object.assign:function(s,u){for(var c,f=i(s),d,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var p in c)t.call(c,p)&&(f[p]=c[p]);if(e){d=e(c);for(var b=0;b<d.length;b++)n.call(c,d[b])&&(f[d[b]]=c[d[b]])}}return f},Cu}var wu,Gf;function Au(){if(Gf)return wu;Gf=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wu=e,wu}var Su,Vf;function Yf(){return Vf||(Vf=1,Su=Function.call.bind(Object.prototype.hasOwnProperty)),Su}var _u,Kf;function Uv(){if(Kf)return _u;Kf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Au(),n={},i=Yf();e=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function a(s,u,c,f,d){if(process.env.NODE_ENV!=="production"){for(var h in s)if(i(s,h)){var p;try{if(typeof s[h]!="function"){var b=Error((f||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}p=s[h](u,h,f,c,null,t)}catch(x){p=x}if(p&&!(p instanceof Error)&&e((f||"React class")+": type specification of "+c+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var E=d?d():"";e("Failed "+c+" type: "+p.message+(E??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},_u=a,_u}var Tu,Xf;function Hv(){if(Xf)return Tu;Xf=1;var e=qf(),t=$v(),n=Au(),i=Yf(),a=Uv(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function u(){return null}return Tu=function(c,f){var d=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function p(M){var K=M&&(d&&M[d]||M[h]);if(typeof K=="function")return K}var b="<<anonymous>>",E={array:D("array"),bigint:D("bigint"),bool:D("boolean"),func:D("function"),number:D("number"),object:D("object"),string:D("string"),symbol:D("symbol"),any:F(),arrayOf:I,element:w(),elementType:v(),instanceOf:S,node:q(),objectOf:B,oneOf:O,oneOfType:G,shape:ue,exact:ne};function x(M,K){return M===K?M!==0||1/M===1/K:M!==M&&K!==K}function C(M,K){this.message=M,this.data=K&&typeof K=="object"?K:{},this.stack=""}C.prototype=Error.prototype;function m(M){if(process.env.NODE_ENV!=="production")var K={},pe=0;function j(J,de,ve,ae,Z,Y,me){if(ae=ae||b,Y=Y||ve,me!==n){if(f){var ee=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ee.name="Invariant Violation",ee}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Be=ae+":"+ve;!K[Be]&&pe<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+ae+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),K[Be]=!0,pe++)}}return de[ve]==null?J?de[ve]===null?new C("The "+Z+" `"+Y+"` is marked as required "+("in `"+ae+"`, but its value is `null`.")):new C("The "+Z+" `"+Y+"` is marked as required in "+("`"+ae+"`, but its value is `undefined`.")):null:M(de,ve,ae,Z,Y)}var z=j.bind(null,!1);return z.isRequired=j.bind(null,!0),z}function D(M){function K(pe,j,z,J,de,ve){var ae=pe[j],Z=xe(ae);if(Z!==M){var Y=he(ae);return new C("Invalid "+J+" `"+de+"` of type "+("`"+Y+"` supplied to `"+z+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return m(K)}function F(){return m(u)}function I(M){function K(pe,j,z,J,de){if(typeof M!="function")return new C("Property `"+de+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var ve=pe[j];if(!Array.isArray(ve)){var ae=xe(ve);return new C("Invalid "+J+" `"+de+"` of type "+("`"+ae+"` supplied to `"+z+"`, expected an array."))}for(var Z=0;Z<ve.length;Z++){var Y=M(ve,Z,z,J,de+"["+Z+"]",n);if(Y instanceof Error)return Y}return null}return m(K)}function w(){function M(K,pe,j,z,J){var de=K[pe];if(!c(de)){var ve=xe(de);return new C("Invalid "+z+" `"+J+"` of type "+("`"+ve+"` supplied to `"+j+"`, expected a single ReactElement."))}return null}return m(M)}function v(){function M(K,pe,j,z,J){var de=K[pe];if(!e.isValidElementType(de)){var ve=xe(de);return new C("Invalid "+z+" `"+J+"` of type "+("`"+ve+"` supplied to `"+j+"`, expected a single ReactElement type."))}return null}return m(M)}function S(M){function K(pe,j,z,J,de){if(!(pe[j]instanceof M)){var ve=M.name||b,ae=Ie(pe[j]);return new C("Invalid "+J+" `"+de+"` of type "+("`"+ae+"` supplied to `"+z+"`, expected ")+("instance of `"+ve+"`."))}return null}return m(K)}function O(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),u;function K(pe,j,z,J,de){for(var ve=pe[j],ae=0;ae<M.length;ae++)if(x(ve,M[ae]))return null;var Z=JSON.stringify(M,function(me,ee){var Be=he(ee);return Be==="symbol"?String(ee):ee});return new C("Invalid "+J+" `"+de+"` of value `"+String(ve)+"` "+("supplied to `"+z+"`, expected one of "+Z+"."))}return m(K)}function B(M){function K(pe,j,z,J,de){if(typeof M!="function")return new C("Property `"+de+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var ve=pe[j],ae=xe(ve);if(ae!=="object")return new C("Invalid "+J+" `"+de+"` of type "+("`"+ae+"` supplied to `"+z+"`, expected an object."));for(var Z in ve)if(i(ve,Z)){var Y=M(ve,Z,z,J,de+"."+Z,n);if(Y instanceof Error)return Y}return null}return m(K)}function G(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var K=0;K<M.length;K++){var pe=M[K];if(typeof pe!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+fe(pe)+" at index "+K+"."),u}function j(z,J,de,ve,ae){for(var Z=[],Y=0;Y<M.length;Y++){var me=M[Y],ee=me(z,J,de,ve,ae,n);if(ee==null)return null;ee.data&&i(ee.data,"expectedType")&&Z.push(ee.data.expectedType)}var Be=Z.length>0?", expected one of type ["+Z.join(", ")+"]":"";return new C("Invalid "+ve+" `"+ae+"` supplied to "+("`"+de+"`"+Be+"."))}return m(j)}function q(){function M(K,pe,j,z,J){return te(K[pe])?null:new C("Invalid "+z+" `"+J+"` supplied to "+("`"+j+"`, expected a ReactNode."))}return m(M)}function V(M,K,pe,j,z){return new C((M||"React class")+": "+K+" type `"+pe+"."+j+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function ue(M){function K(pe,j,z,J,de){var ve=pe[j],ae=xe(ve);if(ae!=="object")return new C("Invalid "+J+" `"+de+"` of type `"+ae+"` "+("supplied to `"+z+"`, expected `object`."));for(var Z in M){var Y=M[Z];if(typeof Y!="function")return V(z,J,de,Z,he(Y));var me=Y(ve,Z,z,J,de+"."+Z,n);if(me)return me}return null}return m(K)}function ne(M){function K(pe,j,z,J,de){var ve=pe[j],ae=xe(ve);if(ae!=="object")return new C("Invalid "+J+" `"+de+"` of type `"+ae+"` "+("supplied to `"+z+"`, expected `object`."));var Z=t({},pe[j],M);for(var Y in Z){var me=M[Y];if(i(M,Y)&&typeof me!="function")return V(z,J,de,Y,he(me));if(!me)return new C("Invalid "+J+" `"+de+"` key `"+Y+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(pe[j],null," ")+`
|
|
45
|
+
Valid keys: `+JSON.stringify(Object.keys(M),null," "));var ee=me(ve,Y,z,J,de+"."+Y,n);if(ee)return ee}return null}return m(K)}function te(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(te);if(M===null||c(M))return!0;var K=p(M);if(K){var pe=K.call(M),j;if(K!==M.entries){for(;!(j=pe.next()).done;)if(!te(j.value))return!1}else for(;!(j=pe.next()).done;){var z=j.value;if(z&&!te(z[1]))return!1}}else return!1;return!0;default:return!1}}function le(M,K){return M==="symbol"?!0:K?K["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&K instanceof Symbol:!1}function xe(M){var K=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":le(K,M)?"symbol":K}function he(M){if(typeof M>"u"||M===null)return""+M;var K=xe(M);if(K==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return K}function fe(M){var K=he(M);switch(K){case"array":case"object":return"an "+K;case"boolean":case"date":case"regexp":return"a "+K;default:return K}}function Ie(M){return!M.constructor||!M.constructor.name?b:M.constructor.name}return E.checkPropTypes=a,E.resetWarningCache=a.resetWarningCache,E.PropTypes=E,E},Tu}var Ou,Jf;function Wv(){if(Jf)return Ou;Jf=1;var e=Au();function t(){}function n(){}return n.resetWarningCache=t,Ou=function(){function i(u,c,f,d,h,p){if(p!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}i.isRequired=i;function a(){return i}var s={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Ou}var Zf;function qv(){if(Zf)return Ea.exports;if(Zf=1,process.env.NODE_ENV!=="production"){var e=qf(),t=!0;Ea.exports=Hv()(e.isElement,t)}else Ea.exports=Wv()();return Ea.exports}var zv=qv();const De=mo(zv),Gv={type:De.string,tooltip:De.bool,as:De.elementType},wa=ye.forwardRef(({as:e="div",className:t,type:n="valid",tooltip:i=!1,...a},s)=>R.jsx(e,{...a,ref:s,className:Pe(t,`${n}-${i?"tooltip":"feedback"}`)}));wa.displayName="Feedback",wa.propTypes=Gv;const cr=ye.createContext({}),Vv=["xxl","xl","lg","md","sm","xs"],yo=ye.createContext({prefixes:{},breakpoints:Vv,minBreakpoint:"xs"}),{Consumer:KP,Provider:XP}=yo;function He(e,t){const{prefixes:n}=A.useContext(yo);return e||n[t]||t}function Yv(){const{breakpoints:e}=A.useContext(yo);return e}function Kv(){const{minBreakpoint:e}=A.useContext(yo);return e}function Du(){const{dir:e}=A.useContext(yo);return e==="rtl"}const Iu=ye.forwardRef(({id:e,bsPrefix:t,className:n,type:i="checkbox",isValid:a=!1,isInvalid:s=!1,as:u="input",...c},f)=>{const{controlId:d}=A.useContext(cr);return t=He(t,"form-check-input"),R.jsx(u,{...c,ref:f,type:i,id:e||d,className:Pe(n,t,a&&"is-valid",s&&"is-invalid")})});Iu.displayName="FormCheckInput";const Aa=ye.forwardRef(({bsPrefix:e,className:t,htmlFor:n,...i},a)=>{const{controlId:s}=A.useContext(cr);return e=He(e,"form-check-label"),R.jsx("label",{...i,ref:a,htmlFor:n||s,className:Pe(t,e)})});Aa.displayName="FormCheckLabel";function Qf(e,t){let n=0;return ye.Children.map(e,i=>ye.isValidElement(i)?t(i,n++):i)}function Xv(e,t){let n=0;ye.Children.forEach(e,i=>{ye.isValidElement(i)&&t(i,n++)})}function Jv(e,t){return ye.Children.toArray(e).some(n=>ye.isValidElement(n)&&n.type===t)}const ed=ye.forwardRef(({id:e,bsPrefix:t,bsSwitchPrefix:n,inline:i=!1,reverse:a=!1,disabled:s=!1,isValid:u=!1,isInvalid:c=!1,feedbackTooltip:f=!1,feedback:d,feedbackType:h,className:p,style:b,title:E="",type:x="checkbox",label:C,children:m,as:D="input",...F},I)=>{t=He(t,"form-check"),n=He(n,"form-switch");const{controlId:w}=A.useContext(cr),v=A.useMemo(()=>({controlId:e||w}),[w,e]),S=!m&&C!=null&&C!==!1||Jv(m,Aa),O=R.jsx(Iu,{...F,type:x==="switch"?"checkbox":x,ref:I,isValid:u,isInvalid:c,disabled:s,as:D});return R.jsx(cr.Provider,{value:v,children:R.jsx("div",{style:b,className:Pe(p,S&&t,i&&`${t}-inline`,a&&`${t}-reverse`,x==="switch"&&n),children:m||R.jsxs(R.Fragment,{children:[O,S&&R.jsx(Aa,{title:E,children:C}),d&&R.jsx(wa,{type:h,tooltip:f,children:d})]})})})});ed.displayName="FormCheck";const Sa=Object.assign(ed,{Input:Iu,Label:Aa});var Fu,td;function Zv(){if(td)return Fu;td=1;var e=process.env.NODE_ENV!=="production",t=function(){};if(e){var n=function(a,s){var u=arguments.length;s=new Array(u>1?u-1:0);for(var c=1;c<u;c++)s[c-1]=arguments[c];var f=0,d="Warning: "+a.replace(/%s/g,function(){return s[f++]});typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}};t=function(i,a,s){var u=arguments.length;s=new Array(u>2?u-2:0);for(var c=2;c<u;c++)s[c-2]=arguments[c];if(a===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");i||n.apply(null,[a].concat(s))}}return Fu=t,Fu}var Qv=Zv();const _a=mo(Qv),nd=ye.forwardRef(({bsPrefix:e,type:t,size:n,htmlSize:i,id:a,className:s,isValid:u=!1,isInvalid:c=!1,plaintext:f,readOnly:d,as:h="input",...p},b)=>{const{controlId:E}=A.useContext(cr);return e=He(e,"form-control"),process.env.NODE_ENV!=="production"&&_a(E==null||!a,"`controlId` is ignored on `<FormControl>` when `id` is specified."),R.jsx(h,{...p,type:t,size:i,ref:b,readOnly:d,id:a||E,className:Pe(s,f?`${e}-plaintext`:e,n&&`${e}-${n}`,t==="color"&&`${e}-color`,u&&"is-valid",c&&"is-invalid")})});nd.displayName="FormControl";const ey=Object.assign(nd,{Feedback:wa}),rd=ye.forwardRef(({className:e,bsPrefix:t,as:n="div",...i},a)=>(t=He(t,"form-floating"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));rd.displayName="FormFloating";const Pu=ye.forwardRef(({controlId:e,as:t="div",...n},i)=>{const a=A.useMemo(()=>({controlId:e}),[e]);return R.jsx(cr.Provider,{value:a,children:R.jsx(t,{...n,ref:i})})});Pu.displayName="FormGroup";function ty({as:e,bsPrefix:t,className:n,...i}){t=He(t,"col");const a=Yv(),s=Kv(),u=[],c=[];return a.forEach(f=>{const d=i[f];delete i[f];let h,p,b;typeof d=="object"&&d!=null?{span:h,offset:p,order:b}=d:h=d;const E=f!==s?`-${f}`:"";h&&u.push(h===!0?`${t}${E}`:`${t}${E}-${h}`),b!=null&&c.push(`order${E}-${b}`),p!=null&&c.push(`offset${E}-${p}`)}),[{...i,className:Pe(n,...u,...c)},{as:e,bsPrefix:t,spans:u}]}const id=ye.forwardRef((e,t)=>{const[{className:n,...i},{as:a="div",bsPrefix:s,spans:u}]=ty(e);return R.jsx(a,{...i,ref:t,className:Pe(n,!u.length&&s)})});id.displayName="Col";const od=ye.forwardRef(({as:e="label",bsPrefix:t,column:n=!1,visuallyHidden:i=!1,className:a,htmlFor:s,...u},c)=>{const{controlId:f}=A.useContext(cr);t=He(t,"form-label");let d="col-form-label";typeof n=="string"&&(d=`${d} ${d}-${n}`);const h=Pe(a,t,i&&"visually-hidden",n&&d);return process.env.NODE_ENV!=="production"&&_a(f==null||!s,"`controlId` is ignored on `<FormLabel>` when `htmlFor` is specified."),s=s||f,n?R.jsx(id,{ref:c,as:"label",className:h,htmlFor:s,...u}):R.jsx(e,{ref:c,className:h,htmlFor:s,...u})});od.displayName="FormLabel";const ad=ye.forwardRef(({bsPrefix:e,className:t,id:n,...i},a)=>{const{controlId:s}=A.useContext(cr);return e=He(e,"form-range"),R.jsx("input",{...i,type:"range",ref:a,className:Pe(t,e),id:n||s})});ad.displayName="FormRange";const sd=ye.forwardRef(({bsPrefix:e,size:t,htmlSize:n,className:i,isValid:a=!1,isInvalid:s=!1,id:u,...c},f)=>{const{controlId:d}=A.useContext(cr);return e=He(e,"form-select"),R.jsx("select",{...c,size:n,ref:f,className:Pe(i,e,t&&`${e}-${t}`,a&&"is-valid",s&&"is-invalid"),id:u||d})});sd.displayName="FormSelect";const ud=ye.forwardRef(({bsPrefix:e,className:t,as:n="small",muted:i,...a},s)=>(e=He(e,"form-text"),R.jsx(n,{...a,ref:s,className:Pe(t,e,i&&"text-muted")})));ud.displayName="FormText";const ld=ye.forwardRef((e,t)=>R.jsx(Sa,{...e,ref:t,type:"switch"}));ld.displayName="Switch";const ny=Object.assign(ld,{Input:Sa.Input,Label:Sa.Label}),cd=ye.forwardRef(({bsPrefix:e,className:t,children:n,controlId:i,label:a,...s},u)=>(e=He(e,"form-floating"),R.jsxs(Pu,{ref:u,className:Pe(t,e),controlId:i,...s,children:[n,R.jsx("label",{htmlFor:i,children:a})]})));cd.displayName="FloatingLabel";const ry={_ref:De.any,validated:De.bool,as:De.elementType},ku=ye.forwardRef(({className:e,validated:t,as:n="form",...i},a)=>R.jsx(n,{...i,ref:a,className:Pe(e,t&&"was-validated")}));ku.displayName="Form",ku.propTypes=ry;const qt=Object.assign(ku,{Group:Pu,Control:ey,Floating:rd,Check:Sa,Switch:ny,Label:od,Text:ud,Range:ad,Select:sd,FloatingLabel:cd});var bo={exports:{}};/**
|
|
46
46
|
* @license
|
|
47
47
|
* Lodash <https://lodash.com/>
|
|
48
48
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
49
49
|
* Released under MIT license <https://lodash.com/license>
|
|
50
50
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
51
51
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
52
|
-
*/var iy=bo.exports,fd;function oy(){return fd||(fd=1,function(e,t){(function(){var n,i="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",p=1,b=2,E=4,x=1,w=2,m=1,D=2,F=4,I=8,C=16,v=32,S=64,O=128,B=256,G=512,q=30,V="...",ue=800,ne=16,te=1,le=2,xe=3,he=1/0,fe=9007199254740991,Ie=17976931348623157e292,M=NaN,K=4294967295,pe=K-1,j=K>>>1,z=[["ary",O],["bind",m],["bindKey",D],["curry",I],["curryRight",C],["flip",G],["partial",v],["partialRight",S],["rearg",B]],J="[object Arguments]",de="[object Array]",ve="[object AsyncFunction]",ae="[object Boolean]",Z="[object Date]",Y="[object DOMException]",me="[object Error]",ee="[object Function]",Be="[object GeneratorFunction]",ke="[object Map]",Te="[object Number]",et="[object Null]",Ye="[object Object]",Zt="[object Promise]",zt="[object Proxy]",tt="[object RegExp]",Ke="[object Set]",Ce="[object String]",ct="[object Symbol]",bt="[object Undefined]",Qt="[object WeakMap]",Me="[object WeakSet]",we="[object ArrayBuffer]",Le="[object DataView]",Ft="[object Float32Array]",Oe="[object Float64Array]",Qe="[object Int8Array]",Se="[object Int16Array]",Et="[object Int32Array]",ui="[object Uint8Array]",$t="[object Uint8ClampedArray]",Yn="[object Uint16Array]",li="[object Uint32Array]",$r=/\b__p \+= '';/g,Ur=/\b(__p \+=) '' \+/g,ra=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vi=/&(?:amp|lt|gt|quot|#39);/g,St=/[&<>"']/g,Ut=RegExp(Vi.source),Ht=RegExp(St.source),Rn=/<%-([\s\S]+?)%>/g,Gt=/<%([\s\S]+?)%>/g,kt=/<%=([\s\S]+?)%>/g,an=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/,_t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sn=/[\\^$.*+?()[\]{}|]/g,Nt=RegExp(sn.source),en=/^\s+/,br=/\s/,xr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ct=/\{\n\/\* \[wrapped with (.+)\] \*/,mt=/,? & /,ci=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yi=/[()=,{}\[\]\/\s]/,or=/\\(\\)?/g,pc=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ki=/\w*$/,mc=/^[-+]0x[0-9a-f]+$/i,gc=/^0b[01]+$/i,vc=/^\[object .+?Constructor\]$/,yc=/^0o[0-7]+$/i,bc=/^(?:0|[1-9]\d*)$/,xc=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xi=/($^)/,Ec=/['\n\r\u2028\u2029\\]/g,Ji="\\ud800-\\udfff",wc="\\u0300-\\u036f",Cc="\\ufe20-\\ufe2f",Ac="\\u20d0-\\u20ff",Os=wc+Cc+Ac,Ds="\\u2700-\\u27bf",Is="a-z\\xdf-\\xf6\\xf8-\\xff",Sc="\\xac\\xb1\\xd7\\xf7",_c="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tc="\\u2000-\\u206f",Oc=" \\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",wn="A-Z\\xc0-\\xd6\\xd8-\\xde",Zi="\\ufe0e\\ufe0f",ia=Sc+_c+Tc+Oc,Qi="['’]",Dc="["+Ji+"]",Hr="["+ia+"]",eo="["+Os+"]",Fs="\\d+",Ps="["+Ds+"]",ks="["+Is+"]",Ns="[^"+Ji+ia+Fs+Ds+Is+wn+"]",g="\\ud83c[\\udffb-\\udfff]",_="(?:"+eo+"|"+g+")",N="[^"+Ji+"]",U="(?:\\ud83c[\\udde6-\\uddff]){2}",ie="[\\ud800-\\udbff][\\udc00-\\udfff]",ge="["+wn+"]",qe="\\u200d",rt="(?:"+ks+"|"+Ns+")",Rt="(?:"+ge+"|"+Ns+")",Tt="(?:"+Qi+"(?:d|ll|m|re|s|t|ve))?",pm="(?:"+Qi+"(?:D|LL|M|RE|S|T|VE))?",mm=_+"?",gm="["+Zi+"]?",Q_="(?:"+qe+"(?:"+[N,U,ie].join("|")+")"+gm+mm+")*",eT="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",tT="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vm=gm+mm+Q_,nT="(?:"+[Ps,U,ie].join("|")+")"+vm,rT="(?:"+[N+eo+"?",eo,U,ie,Dc].join("|")+")",iT=RegExp(Qi,"g"),oT=RegExp(eo,"g"),Ic=RegExp(g+"(?="+g+")|"+rT+vm,"g"),aT=RegExp([ge+"?"+ks+"+"+Tt+"(?="+[Hr,ge,"$"].join("|")+")",Rt+"+"+pm+"(?="+[Hr,ge+rt,"$"].join("|")+")",ge+"?"+rt+"+"+Tt,ge+"+"+pm,tT,eT,Fs,nT].join("|"),"g"),sT=RegExp("["+qe+Ji+Os+Zi+"]"),uT=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,lT=["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"],cT=-1,vt={};vt[Ft]=vt[Oe]=vt[Qe]=vt[Se]=vt[Et]=vt[ui]=vt[$t]=vt[Yn]=vt[li]=!0,vt[J]=vt[de]=vt[we]=vt[ae]=vt[Le]=vt[Z]=vt[me]=vt[ee]=vt[ke]=vt[Te]=vt[Ye]=vt[tt]=vt[Ke]=vt[Ce]=vt[Qt]=!1;var gt={};gt[J]=gt[de]=gt[we]=gt[Le]=gt[ae]=gt[Z]=gt[Ft]=gt[Oe]=gt[Qe]=gt[Se]=gt[Et]=gt[ke]=gt[Te]=gt[Ye]=gt[tt]=gt[Ke]=gt[Ce]=gt[ct]=gt[ui]=gt[$t]=gt[Yn]=gt[li]=!0,gt[me]=gt[ee]=gt[Qt]=!1;var fT={À:"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"},dT={"&":"&","<":"<",">":">",'"':""","'":"'"},hT={"&":"&","<":"<",">":">",""":'"',"'":"'"},pT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},mT=parseFloat,gT=parseInt,ym=typeof xi=="object"&&xi&&xi.Object===Object&&xi,vT=typeof self=="object"&&self&&self.Object===Object&&self,Vt=ym||vT||Function("return this")(),Fc=t&&!t.nodeType&&t,fi=Fc&&!0&&e&&!e.nodeType&&e,bm=fi&&fi.exports===Fc,Pc=bm&&ym.process,Ln=function(){try{var H=fi&&fi.require&&fi.require("util").types;return H||Pc&&Pc.binding&&Pc.binding("util")}catch{}}(),xm=Ln&&Ln.isArrayBuffer,Em=Ln&&Ln.isDate,wm=Ln&&Ln.isMap,Cm=Ln&&Ln.isRegExp,Am=Ln&&Ln.isSet,Sm=Ln&&Ln.isTypedArray;function Cn(H,re,X){switch(X.length){case 0:return H.call(re);case 1:return H.call(re,X[0]);case 2:return H.call(re,X[0],X[1]);case 3:return H.call(re,X[0],X[1],X[2])}return H.apply(re,X)}function yT(H,re,X,Ee){for(var je=-1,it=H==null?0:H.length;++je<it;){var Lt=H[je];re(Ee,Lt,X(Lt),H)}return Ee}function Bn(H,re){for(var X=-1,Ee=H==null?0:H.length;++X<Ee&&re(H[X],X,H)!==!1;);return H}function bT(H,re){for(var X=H==null?0:H.length;X--&&re(H[X],X,H)!==!1;);return H}function _m(H,re){for(var X=-1,Ee=H==null?0:H.length;++X<Ee;)if(!re(H[X],X,H))return!1;return!0}function Wr(H,re){for(var X=-1,Ee=H==null?0:H.length,je=0,it=[];++X<Ee;){var Lt=H[X];re(Lt,X,H)&&(it[je++]=Lt)}return it}function Rs(H,re){var X=H==null?0:H.length;return!!X&&to(H,re,0)>-1}function kc(H,re,X){for(var Ee=-1,je=H==null?0:H.length;++Ee<je;)if(X(re,H[Ee]))return!0;return!1}function xt(H,re){for(var X=-1,Ee=H==null?0:H.length,je=Array(Ee);++X<Ee;)je[X]=re(H[X],X,H);return je}function qr(H,re){for(var X=-1,Ee=re.length,je=H.length;++X<Ee;)H[je+X]=re[X];return H}function Nc(H,re,X,Ee){var je=-1,it=H==null?0:H.length;for(Ee&&it&&(X=H[++je]);++je<it;)X=re(X,H[je],je,H);return X}function xT(H,re,X,Ee){var je=H==null?0:H.length;for(Ee&&je&&(X=H[--je]);je--;)X=re(X,H[je],je,H);return X}function Rc(H,re){for(var X=-1,Ee=H==null?0:H.length;++X<Ee;)if(re(H[X],X,H))return!0;return!1}var ET=Lc("length");function wT(H){return H.split("")}function CT(H){return H.match(ci)||[]}function Tm(H,re,X){var Ee;return X(H,function(je,it,Lt){if(re(je,it,Lt))return Ee=it,!1}),Ee}function Ls(H,re,X,Ee){for(var je=H.length,it=X+(Ee?1:-1);Ee?it--:++it<je;)if(re(H[it],it,H))return it;return-1}function to(H,re,X){return re===re?RT(H,re,X):Ls(H,Om,X)}function AT(H,re,X,Ee){for(var je=X-1,it=H.length;++je<it;)if(Ee(H[je],re))return je;return-1}function Om(H){return H!==H}function Dm(H,re){var X=H==null?0:H.length;return X?Mc(H,re)/X:M}function Lc(H){return function(re){return re==null?n:re[H]}}function Bc(H){return function(re){return H==null?n:H[re]}}function Im(H,re,X,Ee,je){return je(H,function(it,Lt,pt){X=Ee?(Ee=!1,it):re(X,it,Lt,pt)}),X}function ST(H,re){var X=H.length;for(H.sort(re);X--;)H[X]=H[X].value;return H}function Mc(H,re){for(var X,Ee=-1,je=H.length;++Ee<je;){var it=re(H[Ee]);it!==n&&(X=X===n?it:X+it)}return X}function jc(H,re){for(var X=-1,Ee=Array(H);++X<H;)Ee[X]=re(X);return Ee}function _T(H,re){return xt(re,function(X){return[X,H[X]]})}function Fm(H){return H&&H.slice(0,Rm(H)+1).replace(en,"")}function An(H){return function(re){return H(re)}}function $c(H,re){return xt(re,function(X){return H[X]})}function oa(H,re){return H.has(re)}function Pm(H,re){for(var X=-1,Ee=H.length;++X<Ee&&to(re,H[X],0)>-1;);return X}function km(H,re){for(var X=H.length;X--&&to(re,H[X],0)>-1;);return X}function TT(H,re){for(var X=H.length,Ee=0;X--;)H[X]===re&&++Ee;return Ee}var OT=Bc(fT),DT=Bc(dT);function IT(H){return"\\"+pT[H]}function FT(H,re){return H==null?n:H[re]}function no(H){return sT.test(H)}function PT(H){return uT.test(H)}function kT(H){for(var re,X=[];!(re=H.next()).done;)X.push(re.value);return X}function Uc(H){var re=-1,X=Array(H.size);return H.forEach(function(Ee,je){X[++re]=[je,Ee]}),X}function Nm(H,re){return function(X){return H(re(X))}}function zr(H,re){for(var X=-1,Ee=H.length,je=0,it=[];++X<Ee;){var Lt=H[X];(Lt===re||Lt===h)&&(H[X]=h,it[je++]=X)}return it}function Bs(H){var re=-1,X=Array(H.size);return H.forEach(function(Ee){X[++re]=Ee}),X}function NT(H){var re=-1,X=Array(H.size);return H.forEach(function(Ee){X[++re]=[Ee,Ee]}),X}function RT(H,re,X){for(var Ee=X-1,je=H.length;++Ee<je;)if(H[Ee]===re)return Ee;return-1}function LT(H,re,X){for(var Ee=X+1;Ee--;)if(H[Ee]===re)return Ee;return Ee}function ro(H){return no(H)?MT(H):ET(H)}function Kn(H){return no(H)?jT(H):wT(H)}function Rm(H){for(var re=H.length;re--&&br.test(H.charAt(re)););return re}var BT=Bc(hT);function MT(H){for(var re=Ic.lastIndex=0;Ic.test(H);)++re;return re}function jT(H){return H.match(Ic)||[]}function $T(H){return H.match(aT)||[]}var UT=function H(re){re=re==null?Vt:io.defaults(Vt.Object(),re,io.pick(Vt,lT));var X=re.Array,Ee=re.Date,je=re.Error,it=re.Function,Lt=re.Math,pt=re.Object,Hc=re.RegExp,HT=re.String,Mn=re.TypeError,Ms=X.prototype,WT=it.prototype,oo=pt.prototype,js=re["__core-js_shared__"],$s=WT.toString,ft=oo.hasOwnProperty,qT=0,Lm=function(){var r=/[^.]+$/.exec(js&&js.keys&&js.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Us=oo.toString,zT=$s.call(pt),GT=Vt._,VT=Hc("^"+$s.call(ft).replace(sn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hs=bm?re.Buffer:n,Gr=re.Symbol,Ws=re.Uint8Array,Bm=Hs?Hs.allocUnsafe:n,qs=Nm(pt.getPrototypeOf,pt),Mm=pt.create,jm=oo.propertyIsEnumerable,zs=Ms.splice,$m=Gr?Gr.isConcatSpreadable:n,aa=Gr?Gr.iterator:n,di=Gr?Gr.toStringTag:n,Gs=function(){try{var r=vi(pt,"defineProperty");return r({},"",{}),r}catch{}}(),YT=re.clearTimeout!==Vt.clearTimeout&&re.clearTimeout,KT=Ee&&Ee.now!==Vt.Date.now&&Ee.now,XT=re.setTimeout!==Vt.setTimeout&&re.setTimeout,Vs=Lt.ceil,Ys=Lt.floor,Wc=pt.getOwnPropertySymbols,JT=Hs?Hs.isBuffer:n,Um=re.isFinite,ZT=Ms.join,QT=Nm(pt.keys,pt),Bt=Lt.max,tn=Lt.min,eO=Ee.now,tO=re.parseInt,Hm=Lt.random,nO=Ms.reverse,qc=vi(re,"DataView"),sa=vi(re,"Map"),zc=vi(re,"Promise"),ao=vi(re,"Set"),ua=vi(re,"WeakMap"),la=vi(pt,"create"),Ks=ua&&new ua,so={},rO=yi(qc),iO=yi(sa),oO=yi(zc),aO=yi(ao),sO=yi(ua),Xs=Gr?Gr.prototype:n,ca=Xs?Xs.valueOf:n,Wm=Xs?Xs.toString:n;function P(r){if(At(r)&&!$e(r)&&!(r instanceof Je)){if(r instanceof jn)return r;if(ft.call(r,"__wrapped__"))return qg(r)}return new jn(r)}var uo=function(){function r(){}return function(o){if(!wt(o))return{};if(Mm)return Mm(o);r.prototype=o;var c=new r;return r.prototype=n,c}}();function Js(){}function jn(r,o){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=n}P.templateSettings={escape:Rn,evaluate:Gt,interpolate:kt,variable:"",imports:{_:P}},P.prototype=Js.prototype,P.prototype.constructor=P,jn.prototype=uo(Js.prototype),jn.prototype.constructor=jn;function Je(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function uO(){var r=new Je(this.__wrapped__);return r.__actions__=mn(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=mn(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=mn(this.__views__),r}function lO(){if(this.__filtered__){var r=new Je(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function cO(){var r=this.__wrapped__.value(),o=this.__dir__,c=$e(r),y=o<0,T=c?r.length:0,k=w2(0,T,this.__views__),L=k.start,$=k.end,W=$-L,oe=y?$:L-1,se=this.__iteratees__,ce=se.length,be=0,Ae=tn(W,this.__takeCount__);if(!c||!y&&T==W&&Ae==W)return hg(r,this.__actions__);var Ne=[];e:for(;W--&&be<Ae;){oe+=o;for(var Ge=-1,Re=r[oe];++Ge<ce;){var Xe=se[Ge],Ze=Xe.iteratee,Tn=Xe.type,cn=Ze(Re);if(Tn==le)Re=cn;else if(!cn){if(Tn==te)continue e;break e}}Ne[be++]=Re}return Ne}Je.prototype=uo(Js.prototype),Je.prototype.constructor=Je;function hi(r){var o=-1,c=r==null?0:r.length;for(this.clear();++o<c;){var y=r[o];this.set(y[0],y[1])}}function fO(){this.__data__=la?la(null):{},this.size=0}function dO(r){var o=this.has(r)&&delete this.__data__[r];return this.size-=o?1:0,o}function hO(r){var o=this.__data__;if(la){var c=o[r];return c===f?n:c}return ft.call(o,r)?o[r]:n}function pO(r){var o=this.__data__;return la?o[r]!==n:ft.call(o,r)}function mO(r,o){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=la&&o===n?f:o,this}hi.prototype.clear=fO,hi.prototype.delete=dO,hi.prototype.get=hO,hi.prototype.has=pO,hi.prototype.set=mO;function Er(r){var o=-1,c=r==null?0:r.length;for(this.clear();++o<c;){var y=r[o];this.set(y[0],y[1])}}function gO(){this.__data__=[],this.size=0}function vO(r){var o=this.__data__,c=Zs(o,r);if(c<0)return!1;var y=o.length-1;return c==y?o.pop():zs.call(o,c,1),--this.size,!0}function yO(r){var o=this.__data__,c=Zs(o,r);return c<0?n:o[c][1]}function bO(r){return Zs(this.__data__,r)>-1}function xO(r,o){var c=this.__data__,y=Zs(c,r);return y<0?(++this.size,c.push([r,o])):c[y][1]=o,this}Er.prototype.clear=gO,Er.prototype.delete=vO,Er.prototype.get=yO,Er.prototype.has=bO,Er.prototype.set=xO;function wr(r){var o=-1,c=r==null?0:r.length;for(this.clear();++o<c;){var y=r[o];this.set(y[0],y[1])}}function EO(){this.size=0,this.__data__={hash:new hi,map:new(sa||Er),string:new hi}}function wO(r){var o=cu(this,r).delete(r);return this.size-=o?1:0,o}function CO(r){return cu(this,r).get(r)}function AO(r){return cu(this,r).has(r)}function SO(r,o){var c=cu(this,r),y=c.size;return c.set(r,o),this.size+=c.size==y?0:1,this}wr.prototype.clear=EO,wr.prototype.delete=wO,wr.prototype.get=CO,wr.prototype.has=AO,wr.prototype.set=SO;function pi(r){var o=-1,c=r==null?0:r.length;for(this.__data__=new wr;++o<c;)this.add(r[o])}function _O(r){return this.__data__.set(r,f),this}function TO(r){return this.__data__.has(r)}pi.prototype.add=pi.prototype.push=_O,pi.prototype.has=TO;function Xn(r){var o=this.__data__=new Er(r);this.size=o.size}function OO(){this.__data__=new Er,this.size=0}function DO(r){var o=this.__data__,c=o.delete(r);return this.size=o.size,c}function IO(r){return this.__data__.get(r)}function FO(r){return this.__data__.has(r)}function PO(r,o){var c=this.__data__;if(c instanceof Er){var y=c.__data__;if(!sa||y.length<a-1)return y.push([r,o]),this.size=++c.size,this;c=this.__data__=new wr(y)}return c.set(r,o),this.size=c.size,this}Xn.prototype.clear=OO,Xn.prototype.delete=DO,Xn.prototype.get=IO,Xn.prototype.has=FO,Xn.prototype.set=PO;function qm(r,o){var c=$e(r),y=!c&&bi(r),T=!c&&!y&&Jr(r),k=!c&&!y&&!T&&ho(r),L=c||y||T||k,$=L?jc(r.length,HT):[],W=$.length;for(var oe in r)(o||ft.call(r,oe))&&!(L&&(oe=="length"||T&&(oe=="offset"||oe=="parent")||k&&(oe=="buffer"||oe=="byteLength"||oe=="byteOffset")||_r(oe,W)))&&$.push(oe);return $}function zm(r){var o=r.length;return o?r[nf(0,o-1)]:n}function kO(r,o){return fu(mn(r),mi(o,0,r.length))}function NO(r){return fu(mn(r))}function Gc(r,o,c){(c!==n&&!Jn(r[o],c)||c===n&&!(o in r))&&Cr(r,o,c)}function fa(r,o,c){var y=r[o];(!(ft.call(r,o)&&Jn(y,c))||c===n&&!(o in r))&&Cr(r,o,c)}function Zs(r,o){for(var c=r.length;c--;)if(Jn(r[c][0],o))return c;return-1}function RO(r,o,c,y){return Vr(r,function(T,k,L){o(y,T,c(T),L)}),y}function Gm(r,o){return r&&sr(o,Wt(o),r)}function LO(r,o){return r&&sr(o,vn(o),r)}function Cr(r,o,c){o=="__proto__"&&Gs?Gs(r,o,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[o]=c}function Vc(r,o){for(var c=-1,y=o.length,T=X(y),k=r==null;++c<y;)T[c]=k?n:Of(r,o[c]);return T}function mi(r,o,c){return r===r&&(c!==n&&(r=r<=c?r:c),o!==n&&(r=r>=o?r:o)),r}function $n(r,o,c,y,T,k){var L,$=o&p,W=o&b,oe=o&E;if(c&&(L=T?c(r,y,T,k):c(r)),L!==n)return L;if(!wt(r))return r;var se=$e(r);if(se){if(L=A2(r),!$)return mn(r,L)}else{var ce=nn(r),be=ce==ee||ce==Be;if(Jr(r))return gg(r,$);if(ce==Ye||ce==J||be&&!T){if(L=W||be?{}:Rg(r),!$)return W?h2(r,LO(L,r)):d2(r,Gm(L,r))}else{if(!gt[ce])return T?r:{};L=S2(r,ce,$)}}k||(k=new Xn);var Ae=k.get(r);if(Ae)return Ae;k.set(r,L),cv(r)?r.forEach(function(Re){L.add($n(Re,o,c,Re,r,k))}):uv(r)&&r.forEach(function(Re,Xe){L.set(Xe,$n(Re,o,c,Xe,r,k))});var Ne=oe?W?pf:hf:W?vn:Wt,Ge=se?n:Ne(r);return Bn(Ge||r,function(Re,Xe){Ge&&(Xe=Re,Re=r[Xe]),fa(L,Xe,$n(Re,o,c,Xe,r,k))}),L}function BO(r){var o=Wt(r);return function(c){return Vm(c,r,o)}}function Vm(r,o,c){var y=c.length;if(r==null)return!y;for(r=pt(r);y--;){var T=c[y],k=o[T],L=r[T];if(L===n&&!(T in r)||!k(L))return!1}return!0}function Ym(r,o,c){if(typeof r!="function")throw new Mn(u);return ya(function(){r.apply(n,c)},o)}function da(r,o,c,y){var T=-1,k=Rs,L=!0,$=r.length,W=[],oe=o.length;if(!$)return W;c&&(o=xt(o,An(c))),y?(k=kc,L=!1):o.length>=a&&(k=oa,L=!1,o=new pi(o));e:for(;++T<$;){var se=r[T],ce=c==null?se:c(se);if(se=y||se!==0?se:0,L&&ce===ce){for(var be=oe;be--;)if(o[be]===ce)continue e;W.push(se)}else k(o,ce,y)||W.push(se)}return W}var Vr=Eg(ar),Km=Eg(Kc,!0);function MO(r,o){var c=!0;return Vr(r,function(y,T,k){return c=!!o(y,T,k),c}),c}function Qs(r,o,c){for(var y=-1,T=r.length;++y<T;){var k=r[y],L=o(k);if(L!=null&&($===n?L===L&&!_n(L):c(L,$)))var $=L,W=k}return W}function jO(r,o,c,y){var T=r.length;for(c=ze(c),c<0&&(c=-c>T?0:T+c),y=y===n||y>T?T:ze(y),y<0&&(y+=T),y=c>y?0:dv(y);c<y;)r[c++]=o;return r}function Xm(r,o){var c=[];return Vr(r,function(y,T,k){o(y,T,k)&&c.push(y)}),c}function Yt(r,o,c,y,T){var k=-1,L=r.length;for(c||(c=T2),T||(T=[]);++k<L;){var $=r[k];o>0&&c($)?o>1?Yt($,o-1,c,y,T):qr(T,$):y||(T[T.length]=$)}return T}var Yc=wg(),Jm=wg(!0);function ar(r,o){return r&&Yc(r,o,Wt)}function Kc(r,o){return r&&Jm(r,o,Wt)}function eu(r,o){return Wr(o,function(c){return Tr(r[c])})}function gi(r,o){o=Kr(o,r);for(var c=0,y=o.length;r!=null&&c<y;)r=r[ur(o[c++])];return c&&c==y?r:n}function Zm(r,o,c){var y=o(r);return $e(r)?y:qr(y,c(r))}function un(r){return r==null?r===n?bt:et:di&&di in pt(r)?E2(r):N2(r)}function Xc(r,o){return r>o}function $O(r,o){return r!=null&&ft.call(r,o)}function UO(r,o){return r!=null&&o in pt(r)}function HO(r,o,c){return r>=tn(o,c)&&r<Bt(o,c)}function Jc(r,o,c){for(var y=c?kc:Rs,T=r[0].length,k=r.length,L=k,$=X(k),W=1/0,oe=[];L--;){var se=r[L];L&&o&&(se=xt(se,An(o))),W=tn(se.length,W),$[L]=!c&&(o||T>=120&&se.length>=120)?new pi(L&&se):n}se=r[0];var ce=-1,be=$[0];e:for(;++ce<T&&oe.length<W;){var Ae=se[ce],Ne=o?o(Ae):Ae;if(Ae=c||Ae!==0?Ae:0,!(be?oa(be,Ne):y(oe,Ne,c))){for(L=k;--L;){var Ge=$[L];if(!(Ge?oa(Ge,Ne):y(r[L],Ne,c)))continue e}be&&be.push(Ne),oe.push(Ae)}}return oe}function WO(r,o,c,y){return ar(r,function(T,k,L){o(y,c(T),k,L)}),y}function ha(r,o,c){o=Kr(o,r),r=jg(r,o);var y=r==null?r:r[ur(Hn(o))];return y==null?n:Cn(y,r,c)}function Qm(r){return At(r)&&un(r)==J}function qO(r){return At(r)&&un(r)==we}function zO(r){return At(r)&&un(r)==Z}function pa(r,o,c,y,T){return r===o?!0:r==null||o==null||!At(r)&&!At(o)?r!==r&&o!==o:GO(r,o,c,y,pa,T)}function GO(r,o,c,y,T,k){var L=$e(r),$=$e(o),W=L?de:nn(r),oe=$?de:nn(o);W=W==J?Ye:W,oe=oe==J?Ye:oe;var se=W==Ye,ce=oe==Ye,be=W==oe;if(be&&Jr(r)){if(!Jr(o))return!1;L=!0,se=!1}if(be&&!se)return k||(k=new Xn),L||ho(r)?Pg(r,o,c,y,T,k):b2(r,o,W,c,y,T,k);if(!(c&x)){var Ae=se&&ft.call(r,"__wrapped__"),Ne=ce&&ft.call(o,"__wrapped__");if(Ae||Ne){var Ge=Ae?r.value():r,Re=Ne?o.value():o;return k||(k=new Xn),T(Ge,Re,c,y,k)}}return be?(k||(k=new Xn),x2(r,o,c,y,T,k)):!1}function VO(r){return At(r)&&nn(r)==ke}function Zc(r,o,c,y){var T=c.length,k=T,L=!y;if(r==null)return!k;for(r=pt(r);T--;){var $=c[T];if(L&&$[2]?$[1]!==r[$[0]]:!($[0]in r))return!1}for(;++T<k;){$=c[T];var W=$[0],oe=r[W],se=$[1];if(L&&$[2]){if(oe===n&&!(W in r))return!1}else{var ce=new Xn;if(y)var be=y(oe,se,W,r,o,ce);if(!(be===n?pa(se,oe,x|w,y,ce):be))return!1}}return!0}function eg(r){if(!wt(r)||D2(r))return!1;var o=Tr(r)?VT:vc;return o.test(yi(r))}function YO(r){return At(r)&&un(r)==tt}function KO(r){return At(r)&&nn(r)==Ke}function XO(r){return At(r)&&vu(r.length)&&!!vt[un(r)]}function tg(r){return typeof r=="function"?r:r==null?yn:typeof r=="object"?$e(r)?ig(r[0],r[1]):rg(r):Cv(r)}function Qc(r){if(!va(r))return QT(r);var o=[];for(var c in pt(r))ft.call(r,c)&&c!="constructor"&&o.push(c);return o}function JO(r){if(!wt(r))return k2(r);var o=va(r),c=[];for(var y in r)y=="constructor"&&(o||!ft.call(r,y))||c.push(y);return c}function ef(r,o){return r<o}function ng(r,o){var c=-1,y=gn(r)?X(r.length):[];return Vr(r,function(T,k,L){y[++c]=o(T,k,L)}),y}function rg(r){var o=gf(r);return o.length==1&&o[0][2]?Bg(o[0][0],o[0][1]):function(c){return c===r||Zc(c,r,o)}}function ig(r,o){return yf(r)&&Lg(o)?Bg(ur(r),o):function(c){var y=Of(c,r);return y===n&&y===o?Df(c,r):pa(o,y,x|w)}}function tu(r,o,c,y,T){r!==o&&Yc(o,function(k,L){if(T||(T=new Xn),wt(k))ZO(r,o,L,c,tu,y,T);else{var $=y?y(xf(r,L),k,L+"",r,o,T):n;$===n&&($=k),Gc(r,L,$)}},vn)}function ZO(r,o,c,y,T,k,L){var $=xf(r,c),W=xf(o,c),oe=L.get(W);if(oe){Gc(r,c,oe);return}var se=k?k($,W,c+"",r,o,L):n,ce=se===n;if(ce){var be=$e(W),Ae=!be&&Jr(W),Ne=!be&&!Ae&&ho(W);se=W,be||Ae||Ne?$e($)?se=$:Ot($)?se=mn($):Ae?(ce=!1,se=gg(W,!0)):Ne?(ce=!1,se=vg(W,!0)):se=[]:ba(W)||bi(W)?(se=$,bi($)?se=hv($):(!wt($)||Tr($))&&(se=Rg(W))):ce=!1}ce&&(L.set(W,se),T(se,W,y,k,L),L.delete(W)),Gc(r,c,se)}function og(r,o){var c=r.length;if(c)return o+=o<0?c:0,_r(o,c)?r[o]:n}function ag(r,o,c){o.length?o=xt(o,function(k){return $e(k)?function(L){return gi(L,k.length===1?k[0]:k)}:k}):o=[yn];var y=-1;o=xt(o,An(Fe()));var T=ng(r,function(k,L,$){var W=xt(o,function(oe){return oe(k)});return{criteria:W,index:++y,value:k}});return ST(T,function(k,L){return f2(k,L,c)})}function QO(r,o){return sg(r,o,function(c,y){return Df(r,y)})}function sg(r,o,c){for(var y=-1,T=o.length,k={};++y<T;){var L=o[y],$=gi(r,L);c($,L)&&ma(k,Kr(L,r),$)}return k}function e2(r){return function(o){return gi(o,r)}}function tf(r,o,c,y){var T=y?AT:to,k=-1,L=o.length,$=r;for(r===o&&(o=mn(o)),c&&($=xt(r,An(c)));++k<L;)for(var W=0,oe=o[k],se=c?c(oe):oe;(W=T($,se,W,y))>-1;)$!==r&&zs.call($,W,1),zs.call(r,W,1);return r}function ug(r,o){for(var c=r?o.length:0,y=c-1;c--;){var T=o[c];if(c==y||T!==k){var k=T;_r(T)?zs.call(r,T,1):af(r,T)}}return r}function nf(r,o){return r+Ys(Hm()*(o-r+1))}function t2(r,o,c,y){for(var T=-1,k=Bt(Vs((o-r)/(c||1)),0),L=X(k);k--;)L[y?k:++T]=r,r+=c;return L}function rf(r,o){var c="";if(!r||o<1||o>fe)return c;do o%2&&(c+=r),o=Ys(o/2),o&&(r+=r);while(o);return c}function Ve(r,o){return Ef(Mg(r,o,yn),r+"")}function n2(r){return zm(po(r))}function r2(r,o){var c=po(r);return fu(c,mi(o,0,c.length))}function ma(r,o,c,y){if(!wt(r))return r;o=Kr(o,r);for(var T=-1,k=o.length,L=k-1,$=r;$!=null&&++T<k;){var W=ur(o[T]),oe=c;if(W==="__proto__"||W==="constructor"||W==="prototype")return r;if(T!=L){var se=$[W];oe=y?y(se,W,$):n,oe===n&&(oe=wt(se)?se:_r(o[T+1])?[]:{})}fa($,W,oe),$=$[W]}return r}var lg=Ks?function(r,o){return Ks.set(r,o),r}:yn,i2=Gs?function(r,o){return Gs(r,"toString",{configurable:!0,enumerable:!1,value:Ff(o),writable:!0})}:yn;function o2(r){return fu(po(r))}function Un(r,o,c){var y=-1,T=r.length;o<0&&(o=-o>T?0:T+o),c=c>T?T:c,c<0&&(c+=T),T=o>c?0:c-o>>>0,o>>>=0;for(var k=X(T);++y<T;)k[y]=r[y+o];return k}function a2(r,o){var c;return Vr(r,function(y,T,k){return c=o(y,T,k),!c}),!!c}function nu(r,o,c){var y=0,T=r==null?y:r.length;if(typeof o=="number"&&o===o&&T<=j){for(;y<T;){var k=y+T>>>1,L=r[k];L!==null&&!_n(L)&&(c?L<=o:L<o)?y=k+1:T=k}return T}return of(r,o,yn,c)}function of(r,o,c,y){var T=0,k=r==null?0:r.length;if(k===0)return 0;o=c(o);for(var L=o!==o,$=o===null,W=_n(o),oe=o===n;T<k;){var se=Ys((T+k)/2),ce=c(r[se]),be=ce!==n,Ae=ce===null,Ne=ce===ce,Ge=_n(ce);if(L)var Re=y||Ne;else oe?Re=Ne&&(y||be):$?Re=Ne&&be&&(y||!Ae):W?Re=Ne&&be&&!Ae&&(y||!Ge):Ae||Ge?Re=!1:Re=y?ce<=o:ce<o;Re?T=se+1:k=se}return tn(k,pe)}function cg(r,o){for(var c=-1,y=r.length,T=0,k=[];++c<y;){var L=r[c],$=o?o(L):L;if(!c||!Jn($,W)){var W=$;k[T++]=L===0?0:L}}return k}function fg(r){return typeof r=="number"?r:_n(r)?M:+r}function Sn(r){if(typeof r=="string")return r;if($e(r))return xt(r,Sn)+"";if(_n(r))return Wm?Wm.call(r):"";var o=r+"";return o=="0"&&1/r==-1/0?"-0":o}function Yr(r,o,c){var y=-1,T=Rs,k=r.length,L=!0,$=[],W=$;if(c)L=!1,T=kc;else if(k>=a){var oe=o?null:v2(r);if(oe)return Bs(oe);L=!1,T=oa,W=new pi}else W=o?[]:$;e:for(;++y<k;){var se=r[y],ce=o?o(se):se;if(se=c||se!==0?se:0,L&&ce===ce){for(var be=W.length;be--;)if(W[be]===ce)continue e;o&&W.push(ce),$.push(se)}else T(W,ce,c)||(W!==$&&W.push(ce),$.push(se))}return $}function af(r,o){return o=Kr(o,r),r=jg(r,o),r==null||delete r[ur(Hn(o))]}function dg(r,o,c,y){return ma(r,o,c(gi(r,o)),y)}function ru(r,o,c,y){for(var T=r.length,k=y?T:-1;(y?k--:++k<T)&&o(r[k],k,r););return c?Un(r,y?0:k,y?k+1:T):Un(r,y?k+1:0,y?T:k)}function hg(r,o){var c=r;return c instanceof Je&&(c=c.value()),Nc(o,function(y,T){return T.func.apply(T.thisArg,qr([y],T.args))},c)}function sf(r,o,c){var y=r.length;if(y<2)return y?Yr(r[0]):[];for(var T=-1,k=X(y);++T<y;)for(var L=r[T],$=-1;++$<y;)$!=T&&(k[T]=da(k[T]||L,r[$],o,c));return Yr(Yt(k,1),o,c)}function pg(r,o,c){for(var y=-1,T=r.length,k=o.length,L={};++y<T;){var $=y<k?o[y]:n;c(L,r[y],$)}return L}function uf(r){return Ot(r)?r:[]}function lf(r){return typeof r=="function"?r:yn}function Kr(r,o){return $e(r)?r:yf(r,o)?[r]:Wg(lt(r))}var s2=Ve;function Xr(r,o,c){var y=r.length;return c=c===n?y:c,!o&&c>=y?r:Un(r,o,c)}var mg=YT||function(r){return Vt.clearTimeout(r)};function gg(r,o){if(o)return r.slice();var c=r.length,y=Bm?Bm(c):new r.constructor(c);return r.copy(y),y}function cf(r){var o=new r.constructor(r.byteLength);return new Ws(o).set(new Ws(r)),o}function u2(r,o){var c=o?cf(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function l2(r){var o=new r.constructor(r.source,Ki.exec(r));return o.lastIndex=r.lastIndex,o}function c2(r){return ca?pt(ca.call(r)):{}}function vg(r,o){var c=o?cf(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function yg(r,o){if(r!==o){var c=r!==n,y=r===null,T=r===r,k=_n(r),L=o!==n,$=o===null,W=o===o,oe=_n(o);if(!$&&!oe&&!k&&r>o||k&&L&&W&&!$&&!oe||y&&L&&W||!c&&W||!T)return 1;if(!y&&!k&&!oe&&r<o||oe&&c&&T&&!y&&!k||$&&c&&T||!L&&T||!W)return-1}return 0}function f2(r,o,c){for(var y=-1,T=r.criteria,k=o.criteria,L=T.length,$=c.length;++y<L;){var W=yg(T[y],k[y]);if(W){if(y>=$)return W;var oe=c[y];return W*(oe=="desc"?-1:1)}}return r.index-o.index}function bg(r,o,c,y){for(var T=-1,k=r.length,L=c.length,$=-1,W=o.length,oe=Bt(k-L,0),se=X(W+oe),ce=!y;++$<W;)se[$]=o[$];for(;++T<L;)(ce||T<k)&&(se[c[T]]=r[T]);for(;oe--;)se[$++]=r[T++];return se}function xg(r,o,c,y){for(var T=-1,k=r.length,L=-1,$=c.length,W=-1,oe=o.length,se=Bt(k-$,0),ce=X(se+oe),be=!y;++T<se;)ce[T]=r[T];for(var Ae=T;++W<oe;)ce[Ae+W]=o[W];for(;++L<$;)(be||T<k)&&(ce[Ae+c[L]]=r[T++]);return ce}function mn(r,o){var c=-1,y=r.length;for(o||(o=X(y));++c<y;)o[c]=r[c];return o}function sr(r,o,c,y){var T=!c;c||(c={});for(var k=-1,L=o.length;++k<L;){var $=o[k],W=y?y(c[$],r[$],$,c,r):n;W===n&&(W=r[$]),T?Cr(c,$,W):fa(c,$,W)}return c}function d2(r,o){return sr(r,vf(r),o)}function h2(r,o){return sr(r,kg(r),o)}function iu(r,o){return function(c,y){var T=$e(c)?yT:RO,k=o?o():{};return T(c,r,Fe(y,2),k)}}function lo(r){return Ve(function(o,c){var y=-1,T=c.length,k=T>1?c[T-1]:n,L=T>2?c[2]:n;for(k=r.length>3&&typeof k=="function"?(T--,k):n,L&&ln(c[0],c[1],L)&&(k=T<3?n:k,T=1),o=pt(o);++y<T;){var $=c[y];$&&r(o,$,y,k)}return o})}function Eg(r,o){return function(c,y){if(c==null)return c;if(!gn(c))return r(c,y);for(var T=c.length,k=o?T:-1,L=pt(c);(o?k--:++k<T)&&y(L[k],k,L)!==!1;);return c}}function wg(r){return function(o,c,y){for(var T=-1,k=pt(o),L=y(o),$=L.length;$--;){var W=L[r?$:++T];if(c(k[W],W,k)===!1)break}return o}}function p2(r,o,c){var y=o&m,T=ga(r);function k(){var L=this&&this!==Vt&&this instanceof k?T:r;return L.apply(y?c:this,arguments)}return k}function Cg(r){return function(o){o=lt(o);var c=no(o)?Kn(o):n,y=c?c[0]:o.charAt(0),T=c?Xr(c,1).join(""):o.slice(1);return y[r]()+T}}function co(r){return function(o){return Nc(Ev(xv(o).replace(iT,"")),r,"")}}function ga(r){return function(){var o=arguments;switch(o.length){case 0:return new r;case 1:return new r(o[0]);case 2:return new r(o[0],o[1]);case 3:return new r(o[0],o[1],o[2]);case 4:return new r(o[0],o[1],o[2],o[3]);case 5:return new r(o[0],o[1],o[2],o[3],o[4]);case 6:return new r(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new r(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var c=uo(r.prototype),y=r.apply(c,o);return wt(y)?y:c}}function m2(r,o,c){var y=ga(r);function T(){for(var k=arguments.length,L=X(k),$=k,W=fo(T);$--;)L[$]=arguments[$];var oe=k<3&&L[0]!==W&&L[k-1]!==W?[]:zr(L,W);if(k-=oe.length,k<c)return Og(r,o,ou,T.placeholder,n,L,oe,n,n,c-k);var se=this&&this!==Vt&&this instanceof T?y:r;return Cn(se,this,L)}return T}function Ag(r){return function(o,c,y){var T=pt(o);if(!gn(o)){var k=Fe(c,3);o=Wt(o),c=function($){return k(T[$],$,T)}}var L=r(o,c,y);return L>-1?T[k?o[L]:L]:n}}function Sg(r){return Sr(function(o){var c=o.length,y=c,T=jn.prototype.thru;for(r&&o.reverse();y--;){var k=o[y];if(typeof k!="function")throw new Mn(u);if(T&&!L&&lu(k)=="wrapper")var L=new jn([],!0)}for(y=L?y:c;++y<c;){k=o[y];var $=lu(k),W=$=="wrapper"?mf(k):n;W&&bf(W[0])&&W[1]==(O|I|v|B)&&!W[4].length&&W[9]==1?L=L[lu(W[0])].apply(L,W[3]):L=k.length==1&&bf(k)?L[$]():L.thru(k)}return function(){var oe=arguments,se=oe[0];if(L&&oe.length==1&&$e(se))return L.plant(se).value();for(var ce=0,be=c?o[ce].apply(this,oe):se;++ce<c;)be=o[ce].call(this,be);return be}})}function ou(r,o,c,y,T,k,L,$,W,oe){var se=o&O,ce=o&m,be=o&D,Ae=o&(I|C),Ne=o&G,Ge=be?n:ga(r);function Re(){for(var Xe=arguments.length,Ze=X(Xe),Tn=Xe;Tn--;)Ze[Tn]=arguments[Tn];if(Ae)var cn=fo(Re),On=TT(Ze,cn);if(y&&(Ze=bg(Ze,y,T,Ae)),k&&(Ze=xg(Ze,k,L,Ae)),Xe-=On,Ae&&Xe<oe){var Dt=zr(Ze,cn);return Og(r,o,ou,Re.placeholder,c,Ze,Dt,$,W,oe-Xe)}var Zn=ce?c:this,Dr=be?Zn[r]:r;return Xe=Ze.length,$?Ze=R2(Ze,$):Ne&&Xe>1&&Ze.reverse(),se&&W<Xe&&(Ze.length=W),this&&this!==Vt&&this instanceof Re&&(Dr=Ge||ga(Dr)),Dr.apply(Zn,Ze)}return Re}function _g(r,o){return function(c,y){return WO(c,r,o(y),{})}}function au(r,o){return function(c,y){var T;if(c===n&&y===n)return o;if(c!==n&&(T=c),y!==n){if(T===n)return y;typeof c=="string"||typeof y=="string"?(c=Sn(c),y=Sn(y)):(c=fg(c),y=fg(y)),T=r(c,y)}return T}}function ff(r){return Sr(function(o){return o=xt(o,An(Fe())),Ve(function(c){var y=this;return r(o,function(T){return Cn(T,y,c)})})})}function su(r,o){o=o===n?" ":Sn(o);var c=o.length;if(c<2)return c?rf(o,r):o;var y=rf(o,Vs(r/ro(o)));return no(o)?Xr(Kn(y),0,r).join(""):y.slice(0,r)}function g2(r,o,c,y){var T=o&m,k=ga(r);function L(){for(var $=-1,W=arguments.length,oe=-1,se=y.length,ce=X(se+W),be=this&&this!==Vt&&this instanceof L?k:r;++oe<se;)ce[oe]=y[oe];for(;W--;)ce[oe++]=arguments[++$];return Cn(be,T?c:this,ce)}return L}function Tg(r){return function(o,c,y){return y&&typeof y!="number"&&ln(o,c,y)&&(c=y=n),o=Or(o),c===n?(c=o,o=0):c=Or(c),y=y===n?o<c?1:-1:Or(y),t2(o,c,y,r)}}function uu(r){return function(o,c){return typeof o=="string"&&typeof c=="string"||(o=Wn(o),c=Wn(c)),r(o,c)}}function Og(r,o,c,y,T,k,L,$,W,oe){var se=o&I,ce=se?L:n,be=se?n:L,Ae=se?k:n,Ne=se?n:k;o|=se?v:S,o&=~(se?S:v),o&F||(o&=-4);var Ge=[r,o,T,Ae,ce,Ne,be,$,W,oe],Re=c.apply(n,Ge);return bf(r)&&$g(Re,Ge),Re.placeholder=y,Ug(Re,r,o)}function df(r){var o=Lt[r];return function(c,y){if(c=Wn(c),y=y==null?0:tn(ze(y),292),y&&Um(c)){var T=(lt(c)+"e").split("e"),k=o(T[0]+"e"+(+T[1]+y));return T=(lt(k)+"e").split("e"),+(T[0]+"e"+(+T[1]-y))}return o(c)}}var v2=ao&&1/Bs(new ao([,-0]))[1]==he?function(r){return new ao(r)}:Nf;function Dg(r){return function(o){var c=nn(o);return c==ke?Uc(o):c==Ke?NT(o):_T(o,r(o))}}function Ar(r,o,c,y,T,k,L,$){var W=o&D;if(!W&&typeof r!="function")throw new Mn(u);var oe=y?y.length:0;if(oe||(o&=-97,y=T=n),L=L===n?L:Bt(ze(L),0),$=$===n?$:ze($),oe-=T?T.length:0,o&S){var se=y,ce=T;y=T=n}var be=W?n:mf(r),Ae=[r,o,c,y,T,se,ce,k,L,$];if(be&&P2(Ae,be),r=Ae[0],o=Ae[1],c=Ae[2],y=Ae[3],T=Ae[4],$=Ae[9]=Ae[9]===n?W?0:r.length:Bt(Ae[9]-oe,0),!$&&o&(I|C)&&(o&=-25),!o||o==m)var Ne=p2(r,o,c);else o==I||o==C?Ne=m2(r,o,$):(o==v||o==(m|v))&&!T.length?Ne=g2(r,o,c,y):Ne=ou.apply(n,Ae);var Ge=be?lg:$g;return Ug(Ge(Ne,Ae),r,o)}function Ig(r,o,c,y){return r===n||Jn(r,oo[c])&&!ft.call(y,c)?o:r}function Fg(r,o,c,y,T,k){return wt(r)&&wt(o)&&(k.set(o,r),tu(r,o,n,Fg,k),k.delete(o)),r}function y2(r){return ba(r)?n:r}function Pg(r,o,c,y,T,k){var L=c&x,$=r.length,W=o.length;if($!=W&&!(L&&W>$))return!1;var oe=k.get(r),se=k.get(o);if(oe&&se)return oe==o&&se==r;var ce=-1,be=!0,Ae=c&w?new pi:n;for(k.set(r,o),k.set(o,r);++ce<$;){var Ne=r[ce],Ge=o[ce];if(y)var Re=L?y(Ge,Ne,ce,o,r,k):y(Ne,Ge,ce,r,o,k);if(Re!==n){if(Re)continue;be=!1;break}if(Ae){if(!Rc(o,function(Xe,Ze){if(!oa(Ae,Ze)&&(Ne===Xe||T(Ne,Xe,c,y,k)))return Ae.push(Ze)})){be=!1;break}}else if(!(Ne===Ge||T(Ne,Ge,c,y,k))){be=!1;break}}return k.delete(r),k.delete(o),be}function b2(r,o,c,y,T,k,L){switch(c){case Le:if(r.byteLength!=o.byteLength||r.byteOffset!=o.byteOffset)return!1;r=r.buffer,o=o.buffer;case we:return!(r.byteLength!=o.byteLength||!k(new Ws(r),new Ws(o)));case ae:case Z:case Te:return Jn(+r,+o);case me:return r.name==o.name&&r.message==o.message;case tt:case Ce:return r==o+"";case ke:var $=Uc;case Ke:var W=y&x;if($||($=Bs),r.size!=o.size&&!W)return!1;var oe=L.get(r);if(oe)return oe==o;y|=w,L.set(r,o);var se=Pg($(r),$(o),y,T,k,L);return L.delete(r),se;case ct:if(ca)return ca.call(r)==ca.call(o)}return!1}function x2(r,o,c,y,T,k){var L=c&x,$=hf(r),W=$.length,oe=hf(o),se=oe.length;if(W!=se&&!L)return!1;for(var ce=W;ce--;){var be=$[ce];if(!(L?be in o:ft.call(o,be)))return!1}var Ae=k.get(r),Ne=k.get(o);if(Ae&&Ne)return Ae==o&&Ne==r;var Ge=!0;k.set(r,o),k.set(o,r);for(var Re=L;++ce<W;){be=$[ce];var Xe=r[be],Ze=o[be];if(y)var Tn=L?y(Ze,Xe,be,o,r,k):y(Xe,Ze,be,r,o,k);if(!(Tn===n?Xe===Ze||T(Xe,Ze,c,y,k):Tn)){Ge=!1;break}Re||(Re=be=="constructor")}if(Ge&&!Re){var cn=r.constructor,On=o.constructor;cn!=On&&"constructor"in r&&"constructor"in o&&!(typeof cn=="function"&&cn instanceof cn&&typeof On=="function"&&On instanceof On)&&(Ge=!1)}return k.delete(r),k.delete(o),Ge}function Sr(r){return Ef(Mg(r,n,Vg),r+"")}function hf(r){return Zm(r,Wt,vf)}function pf(r){return Zm(r,vn,kg)}var mf=Ks?function(r){return Ks.get(r)}:Nf;function lu(r){for(var o=r.name+"",c=so[o],y=ft.call(so,o)?c.length:0;y--;){var T=c[y],k=T.func;if(k==null||k==r)return T.name}return o}function fo(r){var o=ft.call(P,"placeholder")?P:r;return o.placeholder}function Fe(){var r=P.iteratee||Pf;return r=r===Pf?tg:r,arguments.length?r(arguments[0],arguments[1]):r}function cu(r,o){var c=r.__data__;return O2(o)?c[typeof o=="string"?"string":"hash"]:c.map}function gf(r){for(var o=Wt(r),c=o.length;c--;){var y=o[c],T=r[y];o[c]=[y,T,Lg(T)]}return o}function vi(r,o){var c=FT(r,o);return eg(c)?c:n}function E2(r){var o=ft.call(r,di),c=r[di];try{r[di]=n;var y=!0}catch{}var T=Us.call(r);return y&&(o?r[di]=c:delete r[di]),T}var vf=Wc?function(r){return r==null?[]:(r=pt(r),Wr(Wc(r),function(o){return jm.call(r,o)}))}:Rf,kg=Wc?function(r){for(var o=[];r;)qr(o,vf(r)),r=qs(r);return o}:Rf,nn=un;(qc&&nn(new qc(new ArrayBuffer(1)))!=Le||sa&&nn(new sa)!=ke||zc&&nn(zc.resolve())!=Zt||ao&&nn(new ao)!=Ke||ua&&nn(new ua)!=Qt)&&(nn=function(r){var o=un(r),c=o==Ye?r.constructor:n,y=c?yi(c):"";if(y)switch(y){case rO:return Le;case iO:return ke;case oO:return Zt;case aO:return Ke;case sO:return Qt}return o});function w2(r,o,c){for(var y=-1,T=c.length;++y<T;){var k=c[y],L=k.size;switch(k.type){case"drop":r+=L;break;case"dropRight":o-=L;break;case"take":o=tn(o,r+L);break;case"takeRight":r=Bt(r,o-L);break}}return{start:r,end:o}}function C2(r){var o=r.match(Ct);return o?o[1].split(mt):[]}function Ng(r,o,c){o=Kr(o,r);for(var y=-1,T=o.length,k=!1;++y<T;){var L=ur(o[y]);if(!(k=r!=null&&c(r,L)))break;r=r[L]}return k||++y!=T?k:(T=r==null?0:r.length,!!T&&vu(T)&&_r(L,T)&&($e(r)||bi(r)))}function A2(r){var o=r.length,c=new r.constructor(o);return o&&typeof r[0]=="string"&&ft.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function Rg(r){return typeof r.constructor=="function"&&!va(r)?uo(qs(r)):{}}function S2(r,o,c){var y=r.constructor;switch(o){case we:return cf(r);case ae:case Z:return new y(+r);case Le:return u2(r,c);case Ft:case Oe:case Qe:case Se:case Et:case ui:case $t:case Yn:case li:return vg(r,c);case ke:return new y;case Te:case Ce:return new y(r);case tt:return l2(r);case Ke:return new y;case ct:return c2(r)}}function _2(r,o){var c=o.length;if(!c)return r;var y=c-1;return o[y]=(c>1?"& ":"")+o[y],o=o.join(c>2?", ":" "),r.replace(xr,`{
|
|
52
|
+
*/var iy=bo.exports,fd;function oy(){return fd||(fd=1,function(e,t){(function(){var n,i="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",d=500,h="__lodash_placeholder__",p=1,b=2,E=4,x=1,C=2,m=1,D=2,F=4,I=8,w=16,v=32,S=64,O=128,B=256,G=512,q=30,V="...",ue=800,ne=16,te=1,le=2,xe=3,he=1/0,fe=9007199254740991,Ie=17976931348623157e292,M=NaN,K=4294967295,pe=K-1,j=K>>>1,z=[["ary",O],["bind",m],["bindKey",D],["curry",I],["curryRight",w],["flip",G],["partial",v],["partialRight",S],["rearg",B]],J="[object Arguments]",de="[object Array]",ve="[object AsyncFunction]",ae="[object Boolean]",Z="[object Date]",Y="[object DOMException]",me="[object Error]",ee="[object Function]",Be="[object GeneratorFunction]",ke="[object Map]",Te="[object Number]",et="[object Null]",Ye="[object Object]",Zt="[object Promise]",zt="[object Proxy]",tt="[object RegExp]",Ke="[object Set]",we="[object String]",ct="[object Symbol]",bt="[object Undefined]",Qt="[object WeakMap]",Me="[object WeakSet]",Ce="[object ArrayBuffer]",Le="[object DataView]",Ft="[object Float32Array]",Oe="[object Float64Array]",Qe="[object Int8Array]",Se="[object Int16Array]",Et="[object Int32Array]",ui="[object Uint8Array]",$t="[object Uint8ClampedArray]",Yn="[object Uint16Array]",li="[object Uint32Array]",$r=/\b__p \+= '';/g,Ur=/\b(__p \+=) '' \+/g,ra=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Vi=/&(?:amp|lt|gt|quot|#39);/g,St=/[&<>"']/g,Ut=RegExp(Vi.source),Ht=RegExp(St.source),Rn=/<%-([\s\S]+?)%>/g,Gt=/<%([\s\S]+?)%>/g,kt=/<%=([\s\S]+?)%>/g,an=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ir=/^\w*$/,_t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sn=/[\\^$.*+?()[\]{}|]/g,Nt=RegExp(sn.source),en=/^\s+/,br=/\s/,xr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wt=/\{\n\/\* \[wrapped with (.+)\] \*/,mt=/,? & /,ci=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Yi=/[()=,{}\[\]\/\s]/,or=/\\(\\)?/g,pc=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ki=/\w*$/,mc=/^[-+]0x[0-9a-f]+$/i,gc=/^0b[01]+$/i,vc=/^\[object .+?Constructor\]$/,yc=/^0o[0-7]+$/i,bc=/^(?:0|[1-9]\d*)$/,xc=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xi=/($^)/,Ec=/['\n\r\u2028\u2029\\]/g,Ji="\\ud800-\\udfff",Cc="\\u0300-\\u036f",wc="\\ufe20-\\ufe2f",Ac="\\u20d0-\\u20ff",Os=Cc+wc+Ac,Ds="\\u2700-\\u27bf",Is="a-z\\xdf-\\xf6\\xf8-\\xff",Sc="\\xac\\xb1\\xd7\\xf7",_c="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tc="\\u2000-\\u206f",Oc=" \\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",Cn="A-Z\\xc0-\\xd6\\xd8-\\xde",Zi="\\ufe0e\\ufe0f",ia=Sc+_c+Tc+Oc,Qi="['’]",Dc="["+Ji+"]",Hr="["+ia+"]",eo="["+Os+"]",Fs="\\d+",Ps="["+Ds+"]",ks="["+Is+"]",Ns="[^"+Ji+ia+Fs+Ds+Is+Cn+"]",g="\\ud83c[\\udffb-\\udfff]",_="(?:"+eo+"|"+g+")",N="[^"+Ji+"]",U="(?:\\ud83c[\\udde6-\\uddff]){2}",ie="[\\ud800-\\udbff][\\udc00-\\udfff]",ge="["+Cn+"]",qe="\\u200d",rt="(?:"+ks+"|"+Ns+")",Rt="(?:"+ge+"|"+Ns+")",Tt="(?:"+Qi+"(?:d|ll|m|re|s|t|ve))?",pm="(?:"+Qi+"(?:D|LL|M|RE|S|T|VE))?",mm=_+"?",gm="["+Zi+"]?",Z_="(?:"+qe+"(?:"+[N,U,ie].join("|")+")"+gm+mm+")*",Q_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",eT="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vm=gm+mm+Z_,tT="(?:"+[Ps,U,ie].join("|")+")"+vm,nT="(?:"+[N+eo+"?",eo,U,ie,Dc].join("|")+")",rT=RegExp(Qi,"g"),iT=RegExp(eo,"g"),Ic=RegExp(g+"(?="+g+")|"+nT+vm,"g"),oT=RegExp([ge+"?"+ks+"+"+Tt+"(?="+[Hr,ge,"$"].join("|")+")",Rt+"+"+pm+"(?="+[Hr,ge+rt,"$"].join("|")+")",ge+"?"+rt+"+"+Tt,ge+"+"+pm,eT,Q_,Fs,tT].join("|"),"g"),aT=RegExp("["+qe+Ji+Os+Zi+"]"),sT=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,uT=["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"],lT=-1,vt={};vt[Ft]=vt[Oe]=vt[Qe]=vt[Se]=vt[Et]=vt[ui]=vt[$t]=vt[Yn]=vt[li]=!0,vt[J]=vt[de]=vt[Ce]=vt[ae]=vt[Le]=vt[Z]=vt[me]=vt[ee]=vt[ke]=vt[Te]=vt[Ye]=vt[tt]=vt[Ke]=vt[we]=vt[Qt]=!1;var gt={};gt[J]=gt[de]=gt[Ce]=gt[Le]=gt[ae]=gt[Z]=gt[Ft]=gt[Oe]=gt[Qe]=gt[Se]=gt[Et]=gt[ke]=gt[Te]=gt[Ye]=gt[tt]=gt[Ke]=gt[we]=gt[ct]=gt[ui]=gt[$t]=gt[Yn]=gt[li]=!0,gt[me]=gt[ee]=gt[Qt]=!1;var cT={À:"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"},fT={"&":"&","<":"<",">":">",'"':""","'":"'"},dT={"&":"&","<":"<",">":">",""":'"',"'":"'"},hT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pT=parseFloat,mT=parseInt,ym=typeof xi=="object"&&xi&&xi.Object===Object&&xi,gT=typeof self=="object"&&self&&self.Object===Object&&self,Vt=ym||gT||Function("return this")(),Fc=t&&!t.nodeType&&t,fi=Fc&&!0&&e&&!e.nodeType&&e,bm=fi&&fi.exports===Fc,Pc=bm&&ym.process,Ln=function(){try{var H=fi&&fi.require&&fi.require("util").types;return H||Pc&&Pc.binding&&Pc.binding("util")}catch{}}(),xm=Ln&&Ln.isArrayBuffer,Em=Ln&&Ln.isDate,Cm=Ln&&Ln.isMap,wm=Ln&&Ln.isRegExp,Am=Ln&&Ln.isSet,Sm=Ln&&Ln.isTypedArray;function wn(H,re,X){switch(X.length){case 0:return H.call(re);case 1:return H.call(re,X[0]);case 2:return H.call(re,X[0],X[1]);case 3:return H.call(re,X[0],X[1],X[2])}return H.apply(re,X)}function vT(H,re,X,Ee){for(var je=-1,it=H==null?0:H.length;++je<it;){var Lt=H[je];re(Ee,Lt,X(Lt),H)}return Ee}function Bn(H,re){for(var X=-1,Ee=H==null?0:H.length;++X<Ee&&re(H[X],X,H)!==!1;);return H}function yT(H,re){for(var X=H==null?0:H.length;X--&&re(H[X],X,H)!==!1;);return H}function _m(H,re){for(var X=-1,Ee=H==null?0:H.length;++X<Ee;)if(!re(H[X],X,H))return!1;return!0}function Wr(H,re){for(var X=-1,Ee=H==null?0:H.length,je=0,it=[];++X<Ee;){var Lt=H[X];re(Lt,X,H)&&(it[je++]=Lt)}return it}function Rs(H,re){var X=H==null?0:H.length;return!!X&&to(H,re,0)>-1}function kc(H,re,X){for(var Ee=-1,je=H==null?0:H.length;++Ee<je;)if(X(re,H[Ee]))return!0;return!1}function xt(H,re){for(var X=-1,Ee=H==null?0:H.length,je=Array(Ee);++X<Ee;)je[X]=re(H[X],X,H);return je}function qr(H,re){for(var X=-1,Ee=re.length,je=H.length;++X<Ee;)H[je+X]=re[X];return H}function Nc(H,re,X,Ee){var je=-1,it=H==null?0:H.length;for(Ee&&it&&(X=H[++je]);++je<it;)X=re(X,H[je],je,H);return X}function bT(H,re,X,Ee){var je=H==null?0:H.length;for(Ee&&je&&(X=H[--je]);je--;)X=re(X,H[je],je,H);return X}function Rc(H,re){for(var X=-1,Ee=H==null?0:H.length;++X<Ee;)if(re(H[X],X,H))return!0;return!1}var xT=Lc("length");function ET(H){return H.split("")}function CT(H){return H.match(ci)||[]}function Tm(H,re,X){var Ee;return X(H,function(je,it,Lt){if(re(je,it,Lt))return Ee=it,!1}),Ee}function Ls(H,re,X,Ee){for(var je=H.length,it=X+(Ee?1:-1);Ee?it--:++it<je;)if(re(H[it],it,H))return it;return-1}function to(H,re,X){return re===re?NT(H,re,X):Ls(H,Om,X)}function wT(H,re,X,Ee){for(var je=X-1,it=H.length;++je<it;)if(Ee(H[je],re))return je;return-1}function Om(H){return H!==H}function Dm(H,re){var X=H==null?0:H.length;return X?Mc(H,re)/X:M}function Lc(H){return function(re){return re==null?n:re[H]}}function Bc(H){return function(re){return H==null?n:H[re]}}function Im(H,re,X,Ee,je){return je(H,function(it,Lt,pt){X=Ee?(Ee=!1,it):re(X,it,Lt,pt)}),X}function AT(H,re){var X=H.length;for(H.sort(re);X--;)H[X]=H[X].value;return H}function Mc(H,re){for(var X,Ee=-1,je=H.length;++Ee<je;){var it=re(H[Ee]);it!==n&&(X=X===n?it:X+it)}return X}function jc(H,re){for(var X=-1,Ee=Array(H);++X<H;)Ee[X]=re(X);return Ee}function ST(H,re){return xt(re,function(X){return[X,H[X]]})}function Fm(H){return H&&H.slice(0,Rm(H)+1).replace(en,"")}function An(H){return function(re){return H(re)}}function $c(H,re){return xt(re,function(X){return H[X]})}function oa(H,re){return H.has(re)}function Pm(H,re){for(var X=-1,Ee=H.length;++X<Ee&&to(re,H[X],0)>-1;);return X}function km(H,re){for(var X=H.length;X--&&to(re,H[X],0)>-1;);return X}function _T(H,re){for(var X=H.length,Ee=0;X--;)H[X]===re&&++Ee;return Ee}var TT=Bc(cT),OT=Bc(fT);function DT(H){return"\\"+hT[H]}function IT(H,re){return H==null?n:H[re]}function no(H){return aT.test(H)}function FT(H){return sT.test(H)}function PT(H){for(var re,X=[];!(re=H.next()).done;)X.push(re.value);return X}function Uc(H){var re=-1,X=Array(H.size);return H.forEach(function(Ee,je){X[++re]=[je,Ee]}),X}function Nm(H,re){return function(X){return H(re(X))}}function zr(H,re){for(var X=-1,Ee=H.length,je=0,it=[];++X<Ee;){var Lt=H[X];(Lt===re||Lt===h)&&(H[X]=h,it[je++]=X)}return it}function Bs(H){var re=-1,X=Array(H.size);return H.forEach(function(Ee){X[++re]=Ee}),X}function kT(H){var re=-1,X=Array(H.size);return H.forEach(function(Ee){X[++re]=[Ee,Ee]}),X}function NT(H,re,X){for(var Ee=X-1,je=H.length;++Ee<je;)if(H[Ee]===re)return Ee;return-1}function RT(H,re,X){for(var Ee=X+1;Ee--;)if(H[Ee]===re)return Ee;return Ee}function ro(H){return no(H)?BT(H):xT(H)}function Kn(H){return no(H)?MT(H):ET(H)}function Rm(H){for(var re=H.length;re--&&br.test(H.charAt(re)););return re}var LT=Bc(dT);function BT(H){for(var re=Ic.lastIndex=0;Ic.test(H);)++re;return re}function MT(H){return H.match(Ic)||[]}function jT(H){return H.match(oT)||[]}var $T=function H(re){re=re==null?Vt:io.defaults(Vt.Object(),re,io.pick(Vt,uT));var X=re.Array,Ee=re.Date,je=re.Error,it=re.Function,Lt=re.Math,pt=re.Object,Hc=re.RegExp,UT=re.String,Mn=re.TypeError,Ms=X.prototype,HT=it.prototype,oo=pt.prototype,js=re["__core-js_shared__"],$s=HT.toString,ft=oo.hasOwnProperty,WT=0,Lm=function(){var r=/[^.]+$/.exec(js&&js.keys&&js.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),Us=oo.toString,qT=$s.call(pt),zT=Vt._,GT=Hc("^"+$s.call(ft).replace(sn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Hs=bm?re.Buffer:n,Gr=re.Symbol,Ws=re.Uint8Array,Bm=Hs?Hs.allocUnsafe:n,qs=Nm(pt.getPrototypeOf,pt),Mm=pt.create,jm=oo.propertyIsEnumerable,zs=Ms.splice,$m=Gr?Gr.isConcatSpreadable:n,aa=Gr?Gr.iterator:n,di=Gr?Gr.toStringTag:n,Gs=function(){try{var r=vi(pt,"defineProperty");return r({},"",{}),r}catch{}}(),VT=re.clearTimeout!==Vt.clearTimeout&&re.clearTimeout,YT=Ee&&Ee.now!==Vt.Date.now&&Ee.now,KT=re.setTimeout!==Vt.setTimeout&&re.setTimeout,Vs=Lt.ceil,Ys=Lt.floor,Wc=pt.getOwnPropertySymbols,XT=Hs?Hs.isBuffer:n,Um=re.isFinite,JT=Ms.join,ZT=Nm(pt.keys,pt),Bt=Lt.max,tn=Lt.min,QT=Ee.now,eO=re.parseInt,Hm=Lt.random,tO=Ms.reverse,qc=vi(re,"DataView"),sa=vi(re,"Map"),zc=vi(re,"Promise"),ao=vi(re,"Set"),ua=vi(re,"WeakMap"),la=vi(pt,"create"),Ks=ua&&new ua,so={},nO=yi(qc),rO=yi(sa),iO=yi(zc),oO=yi(ao),aO=yi(ua),Xs=Gr?Gr.prototype:n,ca=Xs?Xs.valueOf:n,Wm=Xs?Xs.toString:n;function P(r){if(At(r)&&!$e(r)&&!(r instanceof Je)){if(r instanceof jn)return r;if(ft.call(r,"__wrapped__"))return qg(r)}return new jn(r)}var uo=function(){function r(){}return function(o){if(!Ct(o))return{};if(Mm)return Mm(o);r.prototype=o;var l=new r;return r.prototype=n,l}}();function Js(){}function jn(r,o){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=n}P.templateSettings={escape:Rn,evaluate:Gt,interpolate:kt,variable:"",imports:{_:P}},P.prototype=Js.prototype,P.prototype.constructor=P,jn.prototype=uo(Js.prototype),jn.prototype.constructor=jn;function Je(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function sO(){var r=new Je(this.__wrapped__);return r.__actions__=mn(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=mn(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=mn(this.__views__),r}function uO(){if(this.__filtered__){var r=new Je(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function lO(){var r=this.__wrapped__.value(),o=this.__dir__,l=$e(r),y=o<0,T=l?r.length:0,k=E2(0,T,this.__views__),L=k.start,$=k.end,W=$-L,oe=y?$:L-1,se=this.__iteratees__,ce=se.length,be=0,Ae=tn(W,this.__takeCount__);if(!l||!y&&T==W&&Ae==W)return hg(r,this.__actions__);var Ne=[];e:for(;W--&&be<Ae;){oe+=o;for(var Ge=-1,Re=r[oe];++Ge<ce;){var Xe=se[Ge],Ze=Xe.iteratee,Tn=Xe.type,cn=Ze(Re);if(Tn==le)Re=cn;else if(!cn){if(Tn==te)continue e;break e}}Ne[be++]=Re}return Ne}Je.prototype=uo(Js.prototype),Je.prototype.constructor=Je;function hi(r){var o=-1,l=r==null?0:r.length;for(this.clear();++o<l;){var y=r[o];this.set(y[0],y[1])}}function cO(){this.__data__=la?la(null):{},this.size=0}function fO(r){var o=this.has(r)&&delete this.__data__[r];return this.size-=o?1:0,o}function dO(r){var o=this.__data__;if(la){var l=o[r];return l===f?n:l}return ft.call(o,r)?o[r]:n}function hO(r){var o=this.__data__;return la?o[r]!==n:ft.call(o,r)}function pO(r,o){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=la&&o===n?f:o,this}hi.prototype.clear=cO,hi.prototype.delete=fO,hi.prototype.get=dO,hi.prototype.has=hO,hi.prototype.set=pO;function Er(r){var o=-1,l=r==null?0:r.length;for(this.clear();++o<l;){var y=r[o];this.set(y[0],y[1])}}function mO(){this.__data__=[],this.size=0}function gO(r){var o=this.__data__,l=Zs(o,r);if(l<0)return!1;var y=o.length-1;return l==y?o.pop():zs.call(o,l,1),--this.size,!0}function vO(r){var o=this.__data__,l=Zs(o,r);return l<0?n:o[l][1]}function yO(r){return Zs(this.__data__,r)>-1}function bO(r,o){var l=this.__data__,y=Zs(l,r);return y<0?(++this.size,l.push([r,o])):l[y][1]=o,this}Er.prototype.clear=mO,Er.prototype.delete=gO,Er.prototype.get=vO,Er.prototype.has=yO,Er.prototype.set=bO;function Cr(r){var o=-1,l=r==null?0:r.length;for(this.clear();++o<l;){var y=r[o];this.set(y[0],y[1])}}function xO(){this.size=0,this.__data__={hash:new hi,map:new(sa||Er),string:new hi}}function EO(r){var o=cu(this,r).delete(r);return this.size-=o?1:0,o}function CO(r){return cu(this,r).get(r)}function wO(r){return cu(this,r).has(r)}function AO(r,o){var l=cu(this,r),y=l.size;return l.set(r,o),this.size+=l.size==y?0:1,this}Cr.prototype.clear=xO,Cr.prototype.delete=EO,Cr.prototype.get=CO,Cr.prototype.has=wO,Cr.prototype.set=AO;function pi(r){var o=-1,l=r==null?0:r.length;for(this.__data__=new Cr;++o<l;)this.add(r[o])}function SO(r){return this.__data__.set(r,f),this}function _O(r){return this.__data__.has(r)}pi.prototype.add=pi.prototype.push=SO,pi.prototype.has=_O;function Xn(r){var o=this.__data__=new Er(r);this.size=o.size}function TO(){this.__data__=new Er,this.size=0}function OO(r){var o=this.__data__,l=o.delete(r);return this.size=o.size,l}function DO(r){return this.__data__.get(r)}function IO(r){return this.__data__.has(r)}function FO(r,o){var l=this.__data__;if(l instanceof Er){var y=l.__data__;if(!sa||y.length<a-1)return y.push([r,o]),this.size=++l.size,this;l=this.__data__=new Cr(y)}return l.set(r,o),this.size=l.size,this}Xn.prototype.clear=TO,Xn.prototype.delete=OO,Xn.prototype.get=DO,Xn.prototype.has=IO,Xn.prototype.set=FO;function qm(r,o){var l=$e(r),y=!l&&bi(r),T=!l&&!y&&Jr(r),k=!l&&!y&&!T&&ho(r),L=l||y||T||k,$=L?jc(r.length,UT):[],W=$.length;for(var oe in r)(o||ft.call(r,oe))&&!(L&&(oe=="length"||T&&(oe=="offset"||oe=="parent")||k&&(oe=="buffer"||oe=="byteLength"||oe=="byteOffset")||_r(oe,W)))&&$.push(oe);return $}function zm(r){var o=r.length;return o?r[nf(0,o-1)]:n}function PO(r,o){return fu(mn(r),mi(o,0,r.length))}function kO(r){return fu(mn(r))}function Gc(r,o,l){(l!==n&&!Jn(r[o],l)||l===n&&!(o in r))&&wr(r,o,l)}function fa(r,o,l){var y=r[o];(!(ft.call(r,o)&&Jn(y,l))||l===n&&!(o in r))&&wr(r,o,l)}function Zs(r,o){for(var l=r.length;l--;)if(Jn(r[l][0],o))return l;return-1}function NO(r,o,l,y){return Vr(r,function(T,k,L){o(y,T,l(T),L)}),y}function Gm(r,o){return r&&sr(o,Wt(o),r)}function RO(r,o){return r&&sr(o,vn(o),r)}function wr(r,o,l){o=="__proto__"&&Gs?Gs(r,o,{configurable:!0,enumerable:!0,value:l,writable:!0}):r[o]=l}function Vc(r,o){for(var l=-1,y=o.length,T=X(y),k=r==null;++l<y;)T[l]=k?n:Of(r,o[l]);return T}function mi(r,o,l){return r===r&&(l!==n&&(r=r<=l?r:l),o!==n&&(r=r>=o?r:o)),r}function $n(r,o,l,y,T,k){var L,$=o&p,W=o&b,oe=o&E;if(l&&(L=T?l(r,y,T,k):l(r)),L!==n)return L;if(!Ct(r))return r;var se=$e(r);if(se){if(L=w2(r),!$)return mn(r,L)}else{var ce=nn(r),be=ce==ee||ce==Be;if(Jr(r))return gg(r,$);if(ce==Ye||ce==J||be&&!T){if(L=W||be?{}:Rg(r),!$)return W?d2(r,RO(L,r)):f2(r,Gm(L,r))}else{if(!gt[ce])return T?r:{};L=A2(r,ce,$)}}k||(k=new Xn);var Ae=k.get(r);if(Ae)return Ae;k.set(r,L),cv(r)?r.forEach(function(Re){L.add($n(Re,o,l,Re,r,k))}):uv(r)&&r.forEach(function(Re,Xe){L.set(Xe,$n(Re,o,l,Xe,r,k))});var Ne=oe?W?pf:hf:W?vn:Wt,Ge=se?n:Ne(r);return Bn(Ge||r,function(Re,Xe){Ge&&(Xe=Re,Re=r[Xe]),fa(L,Xe,$n(Re,o,l,Xe,r,k))}),L}function LO(r){var o=Wt(r);return function(l){return Vm(l,r,o)}}function Vm(r,o,l){var y=l.length;if(r==null)return!y;for(r=pt(r);y--;){var T=l[y],k=o[T],L=r[T];if(L===n&&!(T in r)||!k(L))return!1}return!0}function Ym(r,o,l){if(typeof r!="function")throw new Mn(u);return ya(function(){r.apply(n,l)},o)}function da(r,o,l,y){var T=-1,k=Rs,L=!0,$=r.length,W=[],oe=o.length;if(!$)return W;l&&(o=xt(o,An(l))),y?(k=kc,L=!1):o.length>=a&&(k=oa,L=!1,o=new pi(o));e:for(;++T<$;){var se=r[T],ce=l==null?se:l(se);if(se=y||se!==0?se:0,L&&ce===ce){for(var be=oe;be--;)if(o[be]===ce)continue e;W.push(se)}else k(o,ce,y)||W.push(se)}return W}var Vr=Eg(ar),Km=Eg(Kc,!0);function BO(r,o){var l=!0;return Vr(r,function(y,T,k){return l=!!o(y,T,k),l}),l}function Qs(r,o,l){for(var y=-1,T=r.length;++y<T;){var k=r[y],L=o(k);if(L!=null&&($===n?L===L&&!_n(L):l(L,$)))var $=L,W=k}return W}function MO(r,o,l,y){var T=r.length;for(l=ze(l),l<0&&(l=-l>T?0:T+l),y=y===n||y>T?T:ze(y),y<0&&(y+=T),y=l>y?0:dv(y);l<y;)r[l++]=o;return r}function Xm(r,o){var l=[];return Vr(r,function(y,T,k){o(y,T,k)&&l.push(y)}),l}function Yt(r,o,l,y,T){var k=-1,L=r.length;for(l||(l=_2),T||(T=[]);++k<L;){var $=r[k];o>0&&l($)?o>1?Yt($,o-1,l,y,T):qr(T,$):y||(T[T.length]=$)}return T}var Yc=Cg(),Jm=Cg(!0);function ar(r,o){return r&&Yc(r,o,Wt)}function Kc(r,o){return r&&Jm(r,o,Wt)}function eu(r,o){return Wr(o,function(l){return Tr(r[l])})}function gi(r,o){o=Kr(o,r);for(var l=0,y=o.length;r!=null&&l<y;)r=r[ur(o[l++])];return l&&l==y?r:n}function Zm(r,o,l){var y=o(r);return $e(r)?y:qr(y,l(r))}function un(r){return r==null?r===n?bt:et:di&&di in pt(r)?x2(r):k2(r)}function Xc(r,o){return r>o}function jO(r,o){return r!=null&&ft.call(r,o)}function $O(r,o){return r!=null&&o in pt(r)}function UO(r,o,l){return r>=tn(o,l)&&r<Bt(o,l)}function Jc(r,o,l){for(var y=l?kc:Rs,T=r[0].length,k=r.length,L=k,$=X(k),W=1/0,oe=[];L--;){var se=r[L];L&&o&&(se=xt(se,An(o))),W=tn(se.length,W),$[L]=!l&&(o||T>=120&&se.length>=120)?new pi(L&&se):n}se=r[0];var ce=-1,be=$[0];e:for(;++ce<T&&oe.length<W;){var Ae=se[ce],Ne=o?o(Ae):Ae;if(Ae=l||Ae!==0?Ae:0,!(be?oa(be,Ne):y(oe,Ne,l))){for(L=k;--L;){var Ge=$[L];if(!(Ge?oa(Ge,Ne):y(r[L],Ne,l)))continue e}be&&be.push(Ne),oe.push(Ae)}}return oe}function HO(r,o,l,y){return ar(r,function(T,k,L){o(y,l(T),k,L)}),y}function ha(r,o,l){o=Kr(o,r),r=jg(r,o);var y=r==null?r:r[ur(Hn(o))];return y==null?n:wn(y,r,l)}function Qm(r){return At(r)&&un(r)==J}function WO(r){return At(r)&&un(r)==Ce}function qO(r){return At(r)&&un(r)==Z}function pa(r,o,l,y,T){return r===o?!0:r==null||o==null||!At(r)&&!At(o)?r!==r&&o!==o:zO(r,o,l,y,pa,T)}function zO(r,o,l,y,T,k){var L=$e(r),$=$e(o),W=L?de:nn(r),oe=$?de:nn(o);W=W==J?Ye:W,oe=oe==J?Ye:oe;var se=W==Ye,ce=oe==Ye,be=W==oe;if(be&&Jr(r)){if(!Jr(o))return!1;L=!0,se=!1}if(be&&!se)return k||(k=new Xn),L||ho(r)?Pg(r,o,l,y,T,k):y2(r,o,W,l,y,T,k);if(!(l&x)){var Ae=se&&ft.call(r,"__wrapped__"),Ne=ce&&ft.call(o,"__wrapped__");if(Ae||Ne){var Ge=Ae?r.value():r,Re=Ne?o.value():o;return k||(k=new Xn),T(Ge,Re,l,y,k)}}return be?(k||(k=new Xn),b2(r,o,l,y,T,k)):!1}function GO(r){return At(r)&&nn(r)==ke}function Zc(r,o,l,y){var T=l.length,k=T,L=!y;if(r==null)return!k;for(r=pt(r);T--;){var $=l[T];if(L&&$[2]?$[1]!==r[$[0]]:!($[0]in r))return!1}for(;++T<k;){$=l[T];var W=$[0],oe=r[W],se=$[1];if(L&&$[2]){if(oe===n&&!(W in r))return!1}else{var ce=new Xn;if(y)var be=y(oe,se,W,r,o,ce);if(!(be===n?pa(se,oe,x|C,y,ce):be))return!1}}return!0}function eg(r){if(!Ct(r)||O2(r))return!1;var o=Tr(r)?GT:vc;return o.test(yi(r))}function VO(r){return At(r)&&un(r)==tt}function YO(r){return At(r)&&nn(r)==Ke}function KO(r){return At(r)&&vu(r.length)&&!!vt[un(r)]}function tg(r){return typeof r=="function"?r:r==null?yn:typeof r=="object"?$e(r)?ig(r[0],r[1]):rg(r):wv(r)}function Qc(r){if(!va(r))return ZT(r);var o=[];for(var l in pt(r))ft.call(r,l)&&l!="constructor"&&o.push(l);return o}function XO(r){if(!Ct(r))return P2(r);var o=va(r),l=[];for(var y in r)y=="constructor"&&(o||!ft.call(r,y))||l.push(y);return l}function ef(r,o){return r<o}function ng(r,o){var l=-1,y=gn(r)?X(r.length):[];return Vr(r,function(T,k,L){y[++l]=o(T,k,L)}),y}function rg(r){var o=gf(r);return o.length==1&&o[0][2]?Bg(o[0][0],o[0][1]):function(l){return l===r||Zc(l,r,o)}}function ig(r,o){return yf(r)&&Lg(o)?Bg(ur(r),o):function(l){var y=Of(l,r);return y===n&&y===o?Df(l,r):pa(o,y,x|C)}}function tu(r,o,l,y,T){r!==o&&Yc(o,function(k,L){if(T||(T=new Xn),Ct(k))JO(r,o,L,l,tu,y,T);else{var $=y?y(xf(r,L),k,L+"",r,o,T):n;$===n&&($=k),Gc(r,L,$)}},vn)}function JO(r,o,l,y,T,k,L){var $=xf(r,l),W=xf(o,l),oe=L.get(W);if(oe){Gc(r,l,oe);return}var se=k?k($,W,l+"",r,o,L):n,ce=se===n;if(ce){var be=$e(W),Ae=!be&&Jr(W),Ne=!be&&!Ae&&ho(W);se=W,be||Ae||Ne?$e($)?se=$:Ot($)?se=mn($):Ae?(ce=!1,se=gg(W,!0)):Ne?(ce=!1,se=vg(W,!0)):se=[]:ba(W)||bi(W)?(se=$,bi($)?se=hv($):(!Ct($)||Tr($))&&(se=Rg(W))):ce=!1}ce&&(L.set(W,se),T(se,W,y,k,L),L.delete(W)),Gc(r,l,se)}function og(r,o){var l=r.length;if(l)return o+=o<0?l:0,_r(o,l)?r[o]:n}function ag(r,o,l){o.length?o=xt(o,function(k){return $e(k)?function(L){return gi(L,k.length===1?k[0]:k)}:k}):o=[yn];var y=-1;o=xt(o,An(Fe()));var T=ng(r,function(k,L,$){var W=xt(o,function(oe){return oe(k)});return{criteria:W,index:++y,value:k}});return AT(T,function(k,L){return c2(k,L,l)})}function ZO(r,o){return sg(r,o,function(l,y){return Df(r,y)})}function sg(r,o,l){for(var y=-1,T=o.length,k={};++y<T;){var L=o[y],$=gi(r,L);l($,L)&&ma(k,Kr(L,r),$)}return k}function QO(r){return function(o){return gi(o,r)}}function tf(r,o,l,y){var T=y?wT:to,k=-1,L=o.length,$=r;for(r===o&&(o=mn(o)),l&&($=xt(r,An(l)));++k<L;)for(var W=0,oe=o[k],se=l?l(oe):oe;(W=T($,se,W,y))>-1;)$!==r&&zs.call($,W,1),zs.call(r,W,1);return r}function ug(r,o){for(var l=r?o.length:0,y=l-1;l--;){var T=o[l];if(l==y||T!==k){var k=T;_r(T)?zs.call(r,T,1):af(r,T)}}return r}function nf(r,o){return r+Ys(Hm()*(o-r+1))}function e2(r,o,l,y){for(var T=-1,k=Bt(Vs((o-r)/(l||1)),0),L=X(k);k--;)L[y?k:++T]=r,r+=l;return L}function rf(r,o){var l="";if(!r||o<1||o>fe)return l;do o%2&&(l+=r),o=Ys(o/2),o&&(r+=r);while(o);return l}function Ve(r,o){return Ef(Mg(r,o,yn),r+"")}function t2(r){return zm(po(r))}function n2(r,o){var l=po(r);return fu(l,mi(o,0,l.length))}function ma(r,o,l,y){if(!Ct(r))return r;o=Kr(o,r);for(var T=-1,k=o.length,L=k-1,$=r;$!=null&&++T<k;){var W=ur(o[T]),oe=l;if(W==="__proto__"||W==="constructor"||W==="prototype")return r;if(T!=L){var se=$[W];oe=y?y(se,W,$):n,oe===n&&(oe=Ct(se)?se:_r(o[T+1])?[]:{})}fa($,W,oe),$=$[W]}return r}var lg=Ks?function(r,o){return Ks.set(r,o),r}:yn,r2=Gs?function(r,o){return Gs(r,"toString",{configurable:!0,enumerable:!1,value:Ff(o),writable:!0})}:yn;function i2(r){return fu(po(r))}function Un(r,o,l){var y=-1,T=r.length;o<0&&(o=-o>T?0:T+o),l=l>T?T:l,l<0&&(l+=T),T=o>l?0:l-o>>>0,o>>>=0;for(var k=X(T);++y<T;)k[y]=r[y+o];return k}function o2(r,o){var l;return Vr(r,function(y,T,k){return l=o(y,T,k),!l}),!!l}function nu(r,o,l){var y=0,T=r==null?y:r.length;if(typeof o=="number"&&o===o&&T<=j){for(;y<T;){var k=y+T>>>1,L=r[k];L!==null&&!_n(L)&&(l?L<=o:L<o)?y=k+1:T=k}return T}return of(r,o,yn,l)}function of(r,o,l,y){var T=0,k=r==null?0:r.length;if(k===0)return 0;o=l(o);for(var L=o!==o,$=o===null,W=_n(o),oe=o===n;T<k;){var se=Ys((T+k)/2),ce=l(r[se]),be=ce!==n,Ae=ce===null,Ne=ce===ce,Ge=_n(ce);if(L)var Re=y||Ne;else oe?Re=Ne&&(y||be):$?Re=Ne&&be&&(y||!Ae):W?Re=Ne&&be&&!Ae&&(y||!Ge):Ae||Ge?Re=!1:Re=y?ce<=o:ce<o;Re?T=se+1:k=se}return tn(k,pe)}function cg(r,o){for(var l=-1,y=r.length,T=0,k=[];++l<y;){var L=r[l],$=o?o(L):L;if(!l||!Jn($,W)){var W=$;k[T++]=L===0?0:L}}return k}function fg(r){return typeof r=="number"?r:_n(r)?M:+r}function Sn(r){if(typeof r=="string")return r;if($e(r))return xt(r,Sn)+"";if(_n(r))return Wm?Wm.call(r):"";var o=r+"";return o=="0"&&1/r==-1/0?"-0":o}function Yr(r,o,l){var y=-1,T=Rs,k=r.length,L=!0,$=[],W=$;if(l)L=!1,T=kc;else if(k>=a){var oe=o?null:g2(r);if(oe)return Bs(oe);L=!1,T=oa,W=new pi}else W=o?[]:$;e:for(;++y<k;){var se=r[y],ce=o?o(se):se;if(se=l||se!==0?se:0,L&&ce===ce){for(var be=W.length;be--;)if(W[be]===ce)continue e;o&&W.push(ce),$.push(se)}else T(W,ce,l)||(W!==$&&W.push(ce),$.push(se))}return $}function af(r,o){return o=Kr(o,r),r=jg(r,o),r==null||delete r[ur(Hn(o))]}function dg(r,o,l,y){return ma(r,o,l(gi(r,o)),y)}function ru(r,o,l,y){for(var T=r.length,k=y?T:-1;(y?k--:++k<T)&&o(r[k],k,r););return l?Un(r,y?0:k,y?k+1:T):Un(r,y?k+1:0,y?T:k)}function hg(r,o){var l=r;return l instanceof Je&&(l=l.value()),Nc(o,function(y,T){return T.func.apply(T.thisArg,qr([y],T.args))},l)}function sf(r,o,l){var y=r.length;if(y<2)return y?Yr(r[0]):[];for(var T=-1,k=X(y);++T<y;)for(var L=r[T],$=-1;++$<y;)$!=T&&(k[T]=da(k[T]||L,r[$],o,l));return Yr(Yt(k,1),o,l)}function pg(r,o,l){for(var y=-1,T=r.length,k=o.length,L={};++y<T;){var $=y<k?o[y]:n;l(L,r[y],$)}return L}function uf(r){return Ot(r)?r:[]}function lf(r){return typeof r=="function"?r:yn}function Kr(r,o){return $e(r)?r:yf(r,o)?[r]:Wg(lt(r))}var a2=Ve;function Xr(r,o,l){var y=r.length;return l=l===n?y:l,!o&&l>=y?r:Un(r,o,l)}var mg=VT||function(r){return Vt.clearTimeout(r)};function gg(r,o){if(o)return r.slice();var l=r.length,y=Bm?Bm(l):new r.constructor(l);return r.copy(y),y}function cf(r){var o=new r.constructor(r.byteLength);return new Ws(o).set(new Ws(r)),o}function s2(r,o){var l=o?cf(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.byteLength)}function u2(r){var o=new r.constructor(r.source,Ki.exec(r));return o.lastIndex=r.lastIndex,o}function l2(r){return ca?pt(ca.call(r)):{}}function vg(r,o){var l=o?cf(r.buffer):r.buffer;return new r.constructor(l,r.byteOffset,r.length)}function yg(r,o){if(r!==o){var l=r!==n,y=r===null,T=r===r,k=_n(r),L=o!==n,$=o===null,W=o===o,oe=_n(o);if(!$&&!oe&&!k&&r>o||k&&L&&W&&!$&&!oe||y&&L&&W||!l&&W||!T)return 1;if(!y&&!k&&!oe&&r<o||oe&&l&&T&&!y&&!k||$&&l&&T||!L&&T||!W)return-1}return 0}function c2(r,o,l){for(var y=-1,T=r.criteria,k=o.criteria,L=T.length,$=l.length;++y<L;){var W=yg(T[y],k[y]);if(W){if(y>=$)return W;var oe=l[y];return W*(oe=="desc"?-1:1)}}return r.index-o.index}function bg(r,o,l,y){for(var T=-1,k=r.length,L=l.length,$=-1,W=o.length,oe=Bt(k-L,0),se=X(W+oe),ce=!y;++$<W;)se[$]=o[$];for(;++T<L;)(ce||T<k)&&(se[l[T]]=r[T]);for(;oe--;)se[$++]=r[T++];return se}function xg(r,o,l,y){for(var T=-1,k=r.length,L=-1,$=l.length,W=-1,oe=o.length,se=Bt(k-$,0),ce=X(se+oe),be=!y;++T<se;)ce[T]=r[T];for(var Ae=T;++W<oe;)ce[Ae+W]=o[W];for(;++L<$;)(be||T<k)&&(ce[Ae+l[L]]=r[T++]);return ce}function mn(r,o){var l=-1,y=r.length;for(o||(o=X(y));++l<y;)o[l]=r[l];return o}function sr(r,o,l,y){var T=!l;l||(l={});for(var k=-1,L=o.length;++k<L;){var $=o[k],W=y?y(l[$],r[$],$,l,r):n;W===n&&(W=r[$]),T?wr(l,$,W):fa(l,$,W)}return l}function f2(r,o){return sr(r,vf(r),o)}function d2(r,o){return sr(r,kg(r),o)}function iu(r,o){return function(l,y){var T=$e(l)?vT:NO,k=o?o():{};return T(l,r,Fe(y,2),k)}}function lo(r){return Ve(function(o,l){var y=-1,T=l.length,k=T>1?l[T-1]:n,L=T>2?l[2]:n;for(k=r.length>3&&typeof k=="function"?(T--,k):n,L&&ln(l[0],l[1],L)&&(k=T<3?n:k,T=1),o=pt(o);++y<T;){var $=l[y];$&&r(o,$,y,k)}return o})}function Eg(r,o){return function(l,y){if(l==null)return l;if(!gn(l))return r(l,y);for(var T=l.length,k=o?T:-1,L=pt(l);(o?k--:++k<T)&&y(L[k],k,L)!==!1;);return l}}function Cg(r){return function(o,l,y){for(var T=-1,k=pt(o),L=y(o),$=L.length;$--;){var W=L[r?$:++T];if(l(k[W],W,k)===!1)break}return o}}function h2(r,o,l){var y=o&m,T=ga(r);function k(){var L=this&&this!==Vt&&this instanceof k?T:r;return L.apply(y?l:this,arguments)}return k}function wg(r){return function(o){o=lt(o);var l=no(o)?Kn(o):n,y=l?l[0]:o.charAt(0),T=l?Xr(l,1).join(""):o.slice(1);return y[r]()+T}}function co(r){return function(o){return Nc(Ev(xv(o).replace(rT,"")),r,"")}}function ga(r){return function(){var o=arguments;switch(o.length){case 0:return new r;case 1:return new r(o[0]);case 2:return new r(o[0],o[1]);case 3:return new r(o[0],o[1],o[2]);case 4:return new r(o[0],o[1],o[2],o[3]);case 5:return new r(o[0],o[1],o[2],o[3],o[4]);case 6:return new r(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new r(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var l=uo(r.prototype),y=r.apply(l,o);return Ct(y)?y:l}}function p2(r,o,l){var y=ga(r);function T(){for(var k=arguments.length,L=X(k),$=k,W=fo(T);$--;)L[$]=arguments[$];var oe=k<3&&L[0]!==W&&L[k-1]!==W?[]:zr(L,W);if(k-=oe.length,k<l)return Og(r,o,ou,T.placeholder,n,L,oe,n,n,l-k);var se=this&&this!==Vt&&this instanceof T?y:r;return wn(se,this,L)}return T}function Ag(r){return function(o,l,y){var T=pt(o);if(!gn(o)){var k=Fe(l,3);o=Wt(o),l=function($){return k(T[$],$,T)}}var L=r(o,l,y);return L>-1?T[k?o[L]:L]:n}}function Sg(r){return Sr(function(o){var l=o.length,y=l,T=jn.prototype.thru;for(r&&o.reverse();y--;){var k=o[y];if(typeof k!="function")throw new Mn(u);if(T&&!L&&lu(k)=="wrapper")var L=new jn([],!0)}for(y=L?y:l;++y<l;){k=o[y];var $=lu(k),W=$=="wrapper"?mf(k):n;W&&bf(W[0])&&W[1]==(O|I|v|B)&&!W[4].length&&W[9]==1?L=L[lu(W[0])].apply(L,W[3]):L=k.length==1&&bf(k)?L[$]():L.thru(k)}return function(){var oe=arguments,se=oe[0];if(L&&oe.length==1&&$e(se))return L.plant(se).value();for(var ce=0,be=l?o[ce].apply(this,oe):se;++ce<l;)be=o[ce].call(this,be);return be}})}function ou(r,o,l,y,T,k,L,$,W,oe){var se=o&O,ce=o&m,be=o&D,Ae=o&(I|w),Ne=o&G,Ge=be?n:ga(r);function Re(){for(var Xe=arguments.length,Ze=X(Xe),Tn=Xe;Tn--;)Ze[Tn]=arguments[Tn];if(Ae)var cn=fo(Re),On=_T(Ze,cn);if(y&&(Ze=bg(Ze,y,T,Ae)),k&&(Ze=xg(Ze,k,L,Ae)),Xe-=On,Ae&&Xe<oe){var Dt=zr(Ze,cn);return Og(r,o,ou,Re.placeholder,l,Ze,Dt,$,W,oe-Xe)}var Zn=ce?l:this,Dr=be?Zn[r]:r;return Xe=Ze.length,$?Ze=N2(Ze,$):Ne&&Xe>1&&Ze.reverse(),se&&W<Xe&&(Ze.length=W),this&&this!==Vt&&this instanceof Re&&(Dr=Ge||ga(Dr)),Dr.apply(Zn,Ze)}return Re}function _g(r,o){return function(l,y){return HO(l,r,o(y),{})}}function au(r,o){return function(l,y){var T;if(l===n&&y===n)return o;if(l!==n&&(T=l),y!==n){if(T===n)return y;typeof l=="string"||typeof y=="string"?(l=Sn(l),y=Sn(y)):(l=fg(l),y=fg(y)),T=r(l,y)}return T}}function ff(r){return Sr(function(o){return o=xt(o,An(Fe())),Ve(function(l){var y=this;return r(o,function(T){return wn(T,y,l)})})})}function su(r,o){o=o===n?" ":Sn(o);var l=o.length;if(l<2)return l?rf(o,r):o;var y=rf(o,Vs(r/ro(o)));return no(o)?Xr(Kn(y),0,r).join(""):y.slice(0,r)}function m2(r,o,l,y){var T=o&m,k=ga(r);function L(){for(var $=-1,W=arguments.length,oe=-1,se=y.length,ce=X(se+W),be=this&&this!==Vt&&this instanceof L?k:r;++oe<se;)ce[oe]=y[oe];for(;W--;)ce[oe++]=arguments[++$];return wn(be,T?l:this,ce)}return L}function Tg(r){return function(o,l,y){return y&&typeof y!="number"&&ln(o,l,y)&&(l=y=n),o=Or(o),l===n?(l=o,o=0):l=Or(l),y=y===n?o<l?1:-1:Or(y),e2(o,l,y,r)}}function uu(r){return function(o,l){return typeof o=="string"&&typeof l=="string"||(o=Wn(o),l=Wn(l)),r(o,l)}}function Og(r,o,l,y,T,k,L,$,W,oe){var se=o&I,ce=se?L:n,be=se?n:L,Ae=se?k:n,Ne=se?n:k;o|=se?v:S,o&=~(se?S:v),o&F||(o&=-4);var Ge=[r,o,T,Ae,ce,Ne,be,$,W,oe],Re=l.apply(n,Ge);return bf(r)&&$g(Re,Ge),Re.placeholder=y,Ug(Re,r,o)}function df(r){var o=Lt[r];return function(l,y){if(l=Wn(l),y=y==null?0:tn(ze(y),292),y&&Um(l)){var T=(lt(l)+"e").split("e"),k=o(T[0]+"e"+(+T[1]+y));return T=(lt(k)+"e").split("e"),+(T[0]+"e"+(+T[1]-y))}return o(l)}}var g2=ao&&1/Bs(new ao([,-0]))[1]==he?function(r){return new ao(r)}:Nf;function Dg(r){return function(o){var l=nn(o);return l==ke?Uc(o):l==Ke?kT(o):ST(o,r(o))}}function Ar(r,o,l,y,T,k,L,$){var W=o&D;if(!W&&typeof r!="function")throw new Mn(u);var oe=y?y.length:0;if(oe||(o&=-97,y=T=n),L=L===n?L:Bt(ze(L),0),$=$===n?$:ze($),oe-=T?T.length:0,o&S){var se=y,ce=T;y=T=n}var be=W?n:mf(r),Ae=[r,o,l,y,T,se,ce,k,L,$];if(be&&F2(Ae,be),r=Ae[0],o=Ae[1],l=Ae[2],y=Ae[3],T=Ae[4],$=Ae[9]=Ae[9]===n?W?0:r.length:Bt(Ae[9]-oe,0),!$&&o&(I|w)&&(o&=-25),!o||o==m)var Ne=h2(r,o,l);else o==I||o==w?Ne=p2(r,o,$):(o==v||o==(m|v))&&!T.length?Ne=m2(r,o,l,y):Ne=ou.apply(n,Ae);var Ge=be?lg:$g;return Ug(Ge(Ne,Ae),r,o)}function Ig(r,o,l,y){return r===n||Jn(r,oo[l])&&!ft.call(y,l)?o:r}function Fg(r,o,l,y,T,k){return Ct(r)&&Ct(o)&&(k.set(o,r),tu(r,o,n,Fg,k),k.delete(o)),r}function v2(r){return ba(r)?n:r}function Pg(r,o,l,y,T,k){var L=l&x,$=r.length,W=o.length;if($!=W&&!(L&&W>$))return!1;var oe=k.get(r),se=k.get(o);if(oe&&se)return oe==o&&se==r;var ce=-1,be=!0,Ae=l&C?new pi:n;for(k.set(r,o),k.set(o,r);++ce<$;){var Ne=r[ce],Ge=o[ce];if(y)var Re=L?y(Ge,Ne,ce,o,r,k):y(Ne,Ge,ce,r,o,k);if(Re!==n){if(Re)continue;be=!1;break}if(Ae){if(!Rc(o,function(Xe,Ze){if(!oa(Ae,Ze)&&(Ne===Xe||T(Ne,Xe,l,y,k)))return Ae.push(Ze)})){be=!1;break}}else if(!(Ne===Ge||T(Ne,Ge,l,y,k))){be=!1;break}}return k.delete(r),k.delete(o),be}function y2(r,o,l,y,T,k,L){switch(l){case Le:if(r.byteLength!=o.byteLength||r.byteOffset!=o.byteOffset)return!1;r=r.buffer,o=o.buffer;case Ce:return!(r.byteLength!=o.byteLength||!k(new Ws(r),new Ws(o)));case ae:case Z:case Te:return Jn(+r,+o);case me:return r.name==o.name&&r.message==o.message;case tt:case we:return r==o+"";case ke:var $=Uc;case Ke:var W=y&x;if($||($=Bs),r.size!=o.size&&!W)return!1;var oe=L.get(r);if(oe)return oe==o;y|=C,L.set(r,o);var se=Pg($(r),$(o),y,T,k,L);return L.delete(r),se;case ct:if(ca)return ca.call(r)==ca.call(o)}return!1}function b2(r,o,l,y,T,k){var L=l&x,$=hf(r),W=$.length,oe=hf(o),se=oe.length;if(W!=se&&!L)return!1;for(var ce=W;ce--;){var be=$[ce];if(!(L?be in o:ft.call(o,be)))return!1}var Ae=k.get(r),Ne=k.get(o);if(Ae&&Ne)return Ae==o&&Ne==r;var Ge=!0;k.set(r,o),k.set(o,r);for(var Re=L;++ce<W;){be=$[ce];var Xe=r[be],Ze=o[be];if(y)var Tn=L?y(Ze,Xe,be,o,r,k):y(Xe,Ze,be,r,o,k);if(!(Tn===n?Xe===Ze||T(Xe,Ze,l,y,k):Tn)){Ge=!1;break}Re||(Re=be=="constructor")}if(Ge&&!Re){var cn=r.constructor,On=o.constructor;cn!=On&&"constructor"in r&&"constructor"in o&&!(typeof cn=="function"&&cn instanceof cn&&typeof On=="function"&&On instanceof On)&&(Ge=!1)}return k.delete(r),k.delete(o),Ge}function Sr(r){return Ef(Mg(r,n,Vg),r+"")}function hf(r){return Zm(r,Wt,vf)}function pf(r){return Zm(r,vn,kg)}var mf=Ks?function(r){return Ks.get(r)}:Nf;function lu(r){for(var o=r.name+"",l=so[o],y=ft.call(so,o)?l.length:0;y--;){var T=l[y],k=T.func;if(k==null||k==r)return T.name}return o}function fo(r){var o=ft.call(P,"placeholder")?P:r;return o.placeholder}function Fe(){var r=P.iteratee||Pf;return r=r===Pf?tg:r,arguments.length?r(arguments[0],arguments[1]):r}function cu(r,o){var l=r.__data__;return T2(o)?l[typeof o=="string"?"string":"hash"]:l.map}function gf(r){for(var o=Wt(r),l=o.length;l--;){var y=o[l],T=r[y];o[l]=[y,T,Lg(T)]}return o}function vi(r,o){var l=IT(r,o);return eg(l)?l:n}function x2(r){var o=ft.call(r,di),l=r[di];try{r[di]=n;var y=!0}catch{}var T=Us.call(r);return y&&(o?r[di]=l:delete r[di]),T}var vf=Wc?function(r){return r==null?[]:(r=pt(r),Wr(Wc(r),function(o){return jm.call(r,o)}))}:Rf,kg=Wc?function(r){for(var o=[];r;)qr(o,vf(r)),r=qs(r);return o}:Rf,nn=un;(qc&&nn(new qc(new ArrayBuffer(1)))!=Le||sa&&nn(new sa)!=ke||zc&&nn(zc.resolve())!=Zt||ao&&nn(new ao)!=Ke||ua&&nn(new ua)!=Qt)&&(nn=function(r){var o=un(r),l=o==Ye?r.constructor:n,y=l?yi(l):"";if(y)switch(y){case nO:return Le;case rO:return ke;case iO:return Zt;case oO:return Ke;case aO:return Qt}return o});function E2(r,o,l){for(var y=-1,T=l.length;++y<T;){var k=l[y],L=k.size;switch(k.type){case"drop":r+=L;break;case"dropRight":o-=L;break;case"take":o=tn(o,r+L);break;case"takeRight":r=Bt(r,o-L);break}}return{start:r,end:o}}function C2(r){var o=r.match(wt);return o?o[1].split(mt):[]}function Ng(r,o,l){o=Kr(o,r);for(var y=-1,T=o.length,k=!1;++y<T;){var L=ur(o[y]);if(!(k=r!=null&&l(r,L)))break;r=r[L]}return k||++y!=T?k:(T=r==null?0:r.length,!!T&&vu(T)&&_r(L,T)&&($e(r)||bi(r)))}function w2(r){var o=r.length,l=new r.constructor(o);return o&&typeof r[0]=="string"&&ft.call(r,"index")&&(l.index=r.index,l.input=r.input),l}function Rg(r){return typeof r.constructor=="function"&&!va(r)?uo(qs(r)):{}}function A2(r,o,l){var y=r.constructor;switch(o){case Ce:return cf(r);case ae:case Z:return new y(+r);case Le:return s2(r,l);case Ft:case Oe:case Qe:case Se:case Et:case ui:case $t:case Yn:case li:return vg(r,l);case ke:return new y;case Te:case we:return new y(r);case tt:return u2(r);case Ke:return new y;case ct:return l2(r)}}function S2(r,o){var l=o.length;if(!l)return r;var y=l-1;return o[y]=(l>1?"& ":"")+o[y],o=o.join(l>2?", ":" "),r.replace(xr,`{
|
|
53
53
|
/* [wrapped with `+o+`] */
|
|
54
|
-
`)}function T2(r){return $e(r)||bi(r)||!!($m&&r&&r[$m])}function _r(r,o){var c=typeof r;return o=o??fe,!!o&&(c=="number"||c!="symbol"&&bc.test(r))&&r>-1&&r%1==0&&r<o}function ln(r,o,c){if(!wt(c))return!1;var y=typeof o;return(y=="number"?gn(c)&&_r(o,c.length):y=="string"&&o in c)?Jn(c[o],r):!1}function yf(r,o){if($e(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||_n(r)?!0:ir.test(r)||!an.test(r)||o!=null&&r in pt(o)}function O2(r){var o=typeof r;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}function bf(r){var o=lu(r),c=P[o];if(typeof c!="function"||!(o in Je.prototype))return!1;if(r===c)return!0;var y=mf(c);return!!y&&r===y[0]}function D2(r){return!!Lm&&Lm in r}var I2=js?Tr:Lf;function va(r){var o=r&&r.constructor,c=typeof o=="function"&&o.prototype||oo;return r===c}function Lg(r){return r===r&&!wt(r)}function Bg(r,o){return function(c){return c==null?!1:c[r]===o&&(o!==n||r in pt(c))}}function F2(r){var o=mu(r,function(y){return c.size===d&&c.clear(),y}),c=o.cache;return o}function P2(r,o){var c=r[1],y=o[1],T=c|y,k=T<(m|D|O),L=y==O&&c==I||y==O&&c==B&&r[7].length<=o[8]||y==(O|B)&&o[7].length<=o[8]&&c==I;if(!(k||L))return r;y&m&&(r[2]=o[2],T|=c&m?0:F);var $=o[3];if($){var W=r[3];r[3]=W?bg(W,$,o[4]):$,r[4]=W?zr(r[3],h):o[4]}return $=o[5],$&&(W=r[5],r[5]=W?xg(W,$,o[6]):$,r[6]=W?zr(r[5],h):o[6]),$=o[7],$&&(r[7]=$),y&O&&(r[8]=r[8]==null?o[8]:tn(r[8],o[8])),r[9]==null&&(r[9]=o[9]),r[0]=o[0],r[1]=T,r}function k2(r){var o=[];if(r!=null)for(var c in pt(r))o.push(c);return o}function N2(r){return Us.call(r)}function Mg(r,o,c){return o=Bt(o===n?r.length-1:o,0),function(){for(var y=arguments,T=-1,k=Bt(y.length-o,0),L=X(k);++T<k;)L[T]=y[o+T];T=-1;for(var $=X(o+1);++T<o;)$[T]=y[T];return $[o]=c(L),Cn(r,this,$)}}function jg(r,o){return o.length<2?r:gi(r,Un(o,0,-1))}function R2(r,o){for(var c=r.length,y=tn(o.length,c),T=mn(r);y--;){var k=o[y];r[y]=_r(k,c)?T[k]:n}return r}function xf(r,o){if(!(o==="constructor"&&typeof r[o]=="function")&&o!="__proto__")return r[o]}var $g=Hg(lg),ya=XT||function(r,o){return Vt.setTimeout(r,o)},Ef=Hg(i2);function Ug(r,o,c){var y=o+"";return Ef(r,_2(y,L2(C2(y),c)))}function Hg(r){var o=0,c=0;return function(){var y=eO(),T=ne-(y-c);if(c=y,T>0){if(++o>=ue)return arguments[0]}else o=0;return r.apply(n,arguments)}}function fu(r,o){var c=-1,y=r.length,T=y-1;for(o=o===n?y:o;++c<o;){var k=nf(c,T),L=r[k];r[k]=r[c],r[c]=L}return r.length=o,r}var Wg=F2(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(_t,function(c,y,T,k){o.push(T?k.replace(or,"$1"):y||c)}),o});function ur(r){if(typeof r=="string"||_n(r))return r;var o=r+"";return o=="0"&&1/r==-1/0?"-0":o}function yi(r){if(r!=null){try{return $s.call(r)}catch{}try{return r+""}catch{}}return""}function L2(r,o){return Bn(z,function(c){var y="_."+c[0];o&c[1]&&!Rs(r,y)&&r.push(y)}),r.sort()}function qg(r){if(r instanceof Je)return r.clone();var o=new jn(r.__wrapped__,r.__chain__);return o.__actions__=mn(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}function B2(r,o,c){(c?ln(r,o,c):o===n)?o=1:o=Bt(ze(o),0);var y=r==null?0:r.length;if(!y||o<1)return[];for(var T=0,k=0,L=X(Vs(y/o));T<y;)L[k++]=Un(r,T,T+=o);return L}function M2(r){for(var o=-1,c=r==null?0:r.length,y=0,T=[];++o<c;){var k=r[o];k&&(T[y++]=k)}return T}function j2(){var r=arguments.length;if(!r)return[];for(var o=X(r-1),c=arguments[0],y=r;y--;)o[y-1]=arguments[y];return qr($e(c)?mn(c):[c],Yt(o,1))}var $2=Ve(function(r,o){return Ot(r)?da(r,Yt(o,1,Ot,!0)):[]}),U2=Ve(function(r,o){var c=Hn(o);return Ot(c)&&(c=n),Ot(r)?da(r,Yt(o,1,Ot,!0),Fe(c,2)):[]}),H2=Ve(function(r,o){var c=Hn(o);return Ot(c)&&(c=n),Ot(r)?da(r,Yt(o,1,Ot,!0),n,c):[]});function W2(r,o,c){var y=r==null?0:r.length;return y?(o=c||o===n?1:ze(o),Un(r,o<0?0:o,y)):[]}function q2(r,o,c){var y=r==null?0:r.length;return y?(o=c||o===n?1:ze(o),o=y-o,Un(r,0,o<0?0:o)):[]}function z2(r,o){return r&&r.length?ru(r,Fe(o,3),!0,!0):[]}function G2(r,o){return r&&r.length?ru(r,Fe(o,3),!0):[]}function V2(r,o,c,y){var T=r==null?0:r.length;return T?(c&&typeof c!="number"&&ln(r,o,c)&&(c=0,y=T),jO(r,o,c,y)):[]}function zg(r,o,c){var y=r==null?0:r.length;if(!y)return-1;var T=c==null?0:ze(c);return T<0&&(T=Bt(y+T,0)),Ls(r,Fe(o,3),T)}function Gg(r,o,c){var y=r==null?0:r.length;if(!y)return-1;var T=y-1;return c!==n&&(T=ze(c),T=c<0?Bt(y+T,0):tn(T,y-1)),Ls(r,Fe(o,3),T,!0)}function Vg(r){var o=r==null?0:r.length;return o?Yt(r,1):[]}function Y2(r){var o=r==null?0:r.length;return o?Yt(r,he):[]}function K2(r,o){var c=r==null?0:r.length;return c?(o=o===n?1:ze(o),Yt(r,o)):[]}function X2(r){for(var o=-1,c=r==null?0:r.length,y={};++o<c;){var T=r[o];y[T[0]]=T[1]}return y}function Yg(r){return r&&r.length?r[0]:n}function J2(r,o,c){var y=r==null?0:r.length;if(!y)return-1;var T=c==null?0:ze(c);return T<0&&(T=Bt(y+T,0)),to(r,o,T)}function Z2(r){var o=r==null?0:r.length;return o?Un(r,0,-1):[]}var Q2=Ve(function(r){var o=xt(r,uf);return o.length&&o[0]===r[0]?Jc(o):[]}),eD=Ve(function(r){var o=Hn(r),c=xt(r,uf);return o===Hn(c)?o=n:c.pop(),c.length&&c[0]===r[0]?Jc(c,Fe(o,2)):[]}),tD=Ve(function(r){var o=Hn(r),c=xt(r,uf);return o=typeof o=="function"?o:n,o&&c.pop(),c.length&&c[0]===r[0]?Jc(c,n,o):[]});function nD(r,o){return r==null?"":ZT.call(r,o)}function Hn(r){var o=r==null?0:r.length;return o?r[o-1]:n}function rD(r,o,c){var y=r==null?0:r.length;if(!y)return-1;var T=y;return c!==n&&(T=ze(c),T=T<0?Bt(y+T,0):tn(T,y-1)),o===o?LT(r,o,T):Ls(r,Om,T,!0)}function iD(r,o){return r&&r.length?og(r,ze(o)):n}var oD=Ve(Kg);function Kg(r,o){return r&&r.length&&o&&o.length?tf(r,o):r}function aD(r,o,c){return r&&r.length&&o&&o.length?tf(r,o,Fe(c,2)):r}function sD(r,o,c){return r&&r.length&&o&&o.length?tf(r,o,n,c):r}var uD=Sr(function(r,o){var c=r==null?0:r.length,y=Vc(r,o);return ug(r,xt(o,function(T){return _r(T,c)?+T:T}).sort(yg)),y});function lD(r,o){var c=[];if(!(r&&r.length))return c;var y=-1,T=[],k=r.length;for(o=Fe(o,3);++y<k;){var L=r[y];o(L,y,r)&&(c.push(L),T.push(y))}return ug(r,T),c}function wf(r){return r==null?r:nO.call(r)}function cD(r,o,c){var y=r==null?0:r.length;return y?(c&&typeof c!="number"&&ln(r,o,c)?(o=0,c=y):(o=o==null?0:ze(o),c=c===n?y:ze(c)),Un(r,o,c)):[]}function fD(r,o){return nu(r,o)}function dD(r,o,c){return of(r,o,Fe(c,2))}function hD(r,o){var c=r==null?0:r.length;if(c){var y=nu(r,o);if(y<c&&Jn(r[y],o))return y}return-1}function pD(r,o){return nu(r,o,!0)}function mD(r,o,c){return of(r,o,Fe(c,2),!0)}function gD(r,o){var c=r==null?0:r.length;if(c){var y=nu(r,o,!0)-1;if(Jn(r[y],o))return y}return-1}function vD(r){return r&&r.length?cg(r):[]}function yD(r,o){return r&&r.length?cg(r,Fe(o,2)):[]}function bD(r){var o=r==null?0:r.length;return o?Un(r,1,o):[]}function xD(r,o,c){return r&&r.length?(o=c||o===n?1:ze(o),Un(r,0,o<0?0:o)):[]}function ED(r,o,c){var y=r==null?0:r.length;return y?(o=c||o===n?1:ze(o),o=y-o,Un(r,o<0?0:o,y)):[]}function wD(r,o){return r&&r.length?ru(r,Fe(o,3),!1,!0):[]}function CD(r,o){return r&&r.length?ru(r,Fe(o,3)):[]}var AD=Ve(function(r){return Yr(Yt(r,1,Ot,!0))}),SD=Ve(function(r){var o=Hn(r);return Ot(o)&&(o=n),Yr(Yt(r,1,Ot,!0),Fe(o,2))}),_D=Ve(function(r){var o=Hn(r);return o=typeof o=="function"?o:n,Yr(Yt(r,1,Ot,!0),n,o)});function TD(r){return r&&r.length?Yr(r):[]}function OD(r,o){return r&&r.length?Yr(r,Fe(o,2)):[]}function DD(r,o){return o=typeof o=="function"?o:n,r&&r.length?Yr(r,n,o):[]}function Cf(r){if(!(r&&r.length))return[];var o=0;return r=Wr(r,function(c){if(Ot(c))return o=Bt(c.length,o),!0}),jc(o,function(c){return xt(r,Lc(c))})}function Xg(r,o){if(!(r&&r.length))return[];var c=Cf(r);return o==null?c:xt(c,function(y){return Cn(o,n,y)})}var ID=Ve(function(r,o){return Ot(r)?da(r,o):[]}),FD=Ve(function(r){return sf(Wr(r,Ot))}),PD=Ve(function(r){var o=Hn(r);return Ot(o)&&(o=n),sf(Wr(r,Ot),Fe(o,2))}),kD=Ve(function(r){var o=Hn(r);return o=typeof o=="function"?o:n,sf(Wr(r,Ot),n,o)}),ND=Ve(Cf);function RD(r,o){return pg(r||[],o||[],fa)}function LD(r,o){return pg(r||[],o||[],ma)}var BD=Ve(function(r){var o=r.length,c=o>1?r[o-1]:n;return c=typeof c=="function"?(r.pop(),c):n,Xg(r,c)});function Jg(r){var o=P(r);return o.__chain__=!0,o}function MD(r,o){return o(r),r}function du(r,o){return o(r)}var jD=Sr(function(r){var o=r.length,c=o?r[0]:0,y=this.__wrapped__,T=function(k){return Vc(k,r)};return o>1||this.__actions__.length||!(y instanceof Je)||!_r(c)?this.thru(T):(y=y.slice(c,+c+(o?1:0)),y.__actions__.push({func:du,args:[T],thisArg:n}),new jn(y,this.__chain__).thru(function(k){return o&&!k.length&&k.push(n),k}))});function $D(){return Jg(this)}function UD(){return new jn(this.value(),this.__chain__)}function HD(){this.__values__===n&&(this.__values__=fv(this.value()));var r=this.__index__>=this.__values__.length,o=r?n:this.__values__[this.__index__++];return{done:r,value:o}}function WD(){return this}function qD(r){for(var o,c=this;c instanceof Js;){var y=qg(c);y.__index__=0,y.__values__=n,o?T.__wrapped__=y:o=y;var T=y;c=c.__wrapped__}return T.__wrapped__=r,o}function zD(){var r=this.__wrapped__;if(r instanceof Je){var o=r;return this.__actions__.length&&(o=new Je(this)),o=o.reverse(),o.__actions__.push({func:du,args:[wf],thisArg:n}),new jn(o,this.__chain__)}return this.thru(wf)}function GD(){return hg(this.__wrapped__,this.__actions__)}var VD=iu(function(r,o,c){ft.call(r,c)?++r[c]:Cr(r,c,1)});function YD(r,o,c){var y=$e(r)?_m:MO;return c&&ln(r,o,c)&&(o=n),y(r,Fe(o,3))}function KD(r,o){var c=$e(r)?Wr:Xm;return c(r,Fe(o,3))}var XD=Ag(zg),JD=Ag(Gg);function ZD(r,o){return Yt(hu(r,o),1)}function QD(r,o){return Yt(hu(r,o),he)}function eI(r,o,c){return c=c===n?1:ze(c),Yt(hu(r,o),c)}function Zg(r,o){var c=$e(r)?Bn:Vr;return c(r,Fe(o,3))}function Qg(r,o){var c=$e(r)?bT:Km;return c(r,Fe(o,3))}var tI=iu(function(r,o,c){ft.call(r,c)?r[c].push(o):Cr(r,c,[o])});function nI(r,o,c,y){r=gn(r)?r:po(r),c=c&&!y?ze(c):0;var T=r.length;return c<0&&(c=Bt(T+c,0)),yu(r)?c<=T&&r.indexOf(o,c)>-1:!!T&&to(r,o,c)>-1}var rI=Ve(function(r,o,c){var y=-1,T=typeof o=="function",k=gn(r)?X(r.length):[];return Vr(r,function(L){k[++y]=T?Cn(o,L,c):ha(L,o,c)}),k}),iI=iu(function(r,o,c){Cr(r,c,o)});function hu(r,o){var c=$e(r)?xt:ng;return c(r,Fe(o,3))}function oI(r,o,c,y){return r==null?[]:($e(o)||(o=o==null?[]:[o]),c=y?n:c,$e(c)||(c=c==null?[]:[c]),ag(r,o,c))}var aI=iu(function(r,o,c){r[c?0:1].push(o)},function(){return[[],[]]});function sI(r,o,c){var y=$e(r)?Nc:Im,T=arguments.length<3;return y(r,Fe(o,4),c,T,Vr)}function uI(r,o,c){var y=$e(r)?xT:Im,T=arguments.length<3;return y(r,Fe(o,4),c,T,Km)}function lI(r,o){var c=$e(r)?Wr:Xm;return c(r,gu(Fe(o,3)))}function cI(r){var o=$e(r)?zm:n2;return o(r)}function fI(r,o,c){(c?ln(r,o,c):o===n)?o=1:o=ze(o);var y=$e(r)?kO:r2;return y(r,o)}function dI(r){var o=$e(r)?NO:o2;return o(r)}function hI(r){if(r==null)return 0;if(gn(r))return yu(r)?ro(r):r.length;var o=nn(r);return o==ke||o==Ke?r.size:Qc(r).length}function pI(r,o,c){var y=$e(r)?Rc:a2;return c&&ln(r,o,c)&&(o=n),y(r,Fe(o,3))}var mI=Ve(function(r,o){if(r==null)return[];var c=o.length;return c>1&&ln(r,o[0],o[1])?o=[]:c>2&&ln(o[0],o[1],o[2])&&(o=[o[0]]),ag(r,Yt(o,1),[])}),pu=KT||function(){return Vt.Date.now()};function gI(r,o){if(typeof o!="function")throw new Mn(u);return r=ze(r),function(){if(--r<1)return o.apply(this,arguments)}}function ev(r,o,c){return o=c?n:o,o=r&&o==null?r.length:o,Ar(r,O,n,n,n,n,o)}function tv(r,o){var c;if(typeof o!="function")throw new Mn(u);return r=ze(r),function(){return--r>0&&(c=o.apply(this,arguments)),r<=1&&(o=n),c}}var Af=Ve(function(r,o,c){var y=m;if(c.length){var T=zr(c,fo(Af));y|=v}return Ar(r,y,o,c,T)}),nv=Ve(function(r,o,c){var y=m|D;if(c.length){var T=zr(c,fo(nv));y|=v}return Ar(o,y,r,c,T)});function rv(r,o,c){o=c?n:o;var y=Ar(r,I,n,n,n,n,n,o);return y.placeholder=rv.placeholder,y}function iv(r,o,c){o=c?n:o;var y=Ar(r,C,n,n,n,n,n,o);return y.placeholder=iv.placeholder,y}function ov(r,o,c){var y,T,k,L,$,W,oe=0,se=!1,ce=!1,be=!0;if(typeof r!="function")throw new Mn(u);o=Wn(o)||0,wt(c)&&(se=!!c.leading,ce="maxWait"in c,k=ce?Bt(Wn(c.maxWait)||0,o):k,be="trailing"in c?!!c.trailing:be);function Ae(Dt){var Zn=y,Dr=T;return y=T=n,oe=Dt,L=r.apply(Dr,Zn),L}function Ne(Dt){return oe=Dt,$=ya(Xe,o),se?Ae(Dt):L}function Ge(Dt){var Zn=Dt-W,Dr=Dt-oe,Av=o-Zn;return ce?tn(Av,k-Dr):Av}function Re(Dt){var Zn=Dt-W,Dr=Dt-oe;return W===n||Zn>=o||Zn<0||ce&&Dr>=k}function Xe(){var Dt=pu();if(Re(Dt))return Ze(Dt);$=ya(Xe,Ge(Dt))}function Ze(Dt){return $=n,be&&y?Ae(Dt):(y=T=n,L)}function Tn(){$!==n&&mg($),oe=0,y=W=T=$=n}function cn(){return $===n?L:Ze(pu())}function On(){var Dt=pu(),Zn=Re(Dt);if(y=arguments,T=this,W=Dt,Zn){if($===n)return Ne(W);if(ce)return mg($),$=ya(Xe,o),Ae(W)}return $===n&&($=ya(Xe,o)),L}return On.cancel=Tn,On.flush=cn,On}var vI=Ve(function(r,o){return Ym(r,1,o)}),yI=Ve(function(r,o,c){return Ym(r,Wn(o)||0,c)});function bI(r){return Ar(r,G)}function mu(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new Mn(u);var c=function(){var y=arguments,T=o?o.apply(this,y):y[0],k=c.cache;if(k.has(T))return k.get(T);var L=r.apply(this,y);return c.cache=k.set(T,L)||k,L};return c.cache=new(mu.Cache||wr),c}mu.Cache=wr;function gu(r){if(typeof r!="function")throw new Mn(u);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function xI(r){return tv(2,r)}var EI=s2(function(r,o){o=o.length==1&&$e(o[0])?xt(o[0],An(Fe())):xt(Yt(o,1),An(Fe()));var c=o.length;return Ve(function(y){for(var T=-1,k=tn(y.length,c);++T<k;)y[T]=o[T].call(this,y[T]);return Cn(r,this,y)})}),Sf=Ve(function(r,o){var c=zr(o,fo(Sf));return Ar(r,v,n,o,c)}),av=Ve(function(r,o){var c=zr(o,fo(av));return Ar(r,S,n,o,c)}),wI=Sr(function(r,o){return Ar(r,B,n,n,n,o)});function CI(r,o){if(typeof r!="function")throw new Mn(u);return o=o===n?o:ze(o),Ve(r,o)}function AI(r,o){if(typeof r!="function")throw new Mn(u);return o=o==null?0:Bt(ze(o),0),Ve(function(c){var y=c[o],T=Xr(c,0,o);return y&&qr(T,y),Cn(r,this,T)})}function SI(r,o,c){var y=!0,T=!0;if(typeof r!="function")throw new Mn(u);return wt(c)&&(y="leading"in c?!!c.leading:y,T="trailing"in c?!!c.trailing:T),ov(r,o,{leading:y,maxWait:o,trailing:T})}function _I(r){return ev(r,1)}function TI(r,o){return Sf(lf(o),r)}function OI(){if(!arguments.length)return[];var r=arguments[0];return $e(r)?r:[r]}function DI(r){return $n(r,E)}function II(r,o){return o=typeof o=="function"?o:n,$n(r,E,o)}function FI(r){return $n(r,p|E)}function PI(r,o){return o=typeof o=="function"?o:n,$n(r,p|E,o)}function kI(r,o){return o==null||Vm(r,o,Wt(o))}function Jn(r,o){return r===o||r!==r&&o!==o}var NI=uu(Xc),RI=uu(function(r,o){return r>=o}),bi=Qm(function(){return arguments}())?Qm:function(r){return At(r)&&ft.call(r,"callee")&&!jm.call(r,"callee")},$e=X.isArray,LI=xm?An(xm):qO;function gn(r){return r!=null&&vu(r.length)&&!Tr(r)}function Ot(r){return At(r)&&gn(r)}function BI(r){return r===!0||r===!1||At(r)&&un(r)==ae}var Jr=JT||Lf,MI=Em?An(Em):zO;function jI(r){return At(r)&&r.nodeType===1&&!ba(r)}function $I(r){if(r==null)return!0;if(gn(r)&&($e(r)||typeof r=="string"||typeof r.splice=="function"||Jr(r)||ho(r)||bi(r)))return!r.length;var o=nn(r);if(o==ke||o==Ke)return!r.size;if(va(r))return!Qc(r).length;for(var c in r)if(ft.call(r,c))return!1;return!0}function UI(r,o){return pa(r,o)}function HI(r,o,c){c=typeof c=="function"?c:n;var y=c?c(r,o):n;return y===n?pa(r,o,n,c):!!y}function _f(r){if(!At(r))return!1;var o=un(r);return o==me||o==Y||typeof r.message=="string"&&typeof r.name=="string"&&!ba(r)}function WI(r){return typeof r=="number"&&Um(r)}function Tr(r){if(!wt(r))return!1;var o=un(r);return o==ee||o==Be||o==ve||o==zt}function sv(r){return typeof r=="number"&&r==ze(r)}function vu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=fe}function wt(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function At(r){return r!=null&&typeof r=="object"}var uv=wm?An(wm):VO;function qI(r,o){return r===o||Zc(r,o,gf(o))}function zI(r,o,c){return c=typeof c=="function"?c:n,Zc(r,o,gf(o),c)}function GI(r){return lv(r)&&r!=+r}function VI(r){if(I2(r))throw new je(s);return eg(r)}function YI(r){return r===null}function KI(r){return r==null}function lv(r){return typeof r=="number"||At(r)&&un(r)==Te}function ba(r){if(!At(r)||un(r)!=Ye)return!1;var o=qs(r);if(o===null)return!0;var c=ft.call(o,"constructor")&&o.constructor;return typeof c=="function"&&c instanceof c&&$s.call(c)==zT}var Tf=Cm?An(Cm):YO;function XI(r){return sv(r)&&r>=-9007199254740991&&r<=fe}var cv=Am?An(Am):KO;function yu(r){return typeof r=="string"||!$e(r)&&At(r)&&un(r)==Ce}function _n(r){return typeof r=="symbol"||At(r)&&un(r)==ct}var ho=Sm?An(Sm):XO;function JI(r){return r===n}function ZI(r){return At(r)&&nn(r)==Qt}function QI(r){return At(r)&&un(r)==Me}var eF=uu(ef),tF=uu(function(r,o){return r<=o});function fv(r){if(!r)return[];if(gn(r))return yu(r)?Kn(r):mn(r);if(aa&&r[aa])return kT(r[aa]());var o=nn(r),c=o==ke?Uc:o==Ke?Bs:po;return c(r)}function Or(r){if(!r)return r===0?r:0;if(r=Wn(r),r===he||r===-1/0){var o=r<0?-1:1;return o*Ie}return r===r?r:0}function ze(r){var o=Or(r),c=o%1;return o===o?c?o-c:o:0}function dv(r){return r?mi(ze(r),0,K):0}function Wn(r){if(typeof r=="number")return r;if(_n(r))return M;if(wt(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=wt(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=Fm(r);var c=gc.test(r);return c||yc.test(r)?gT(r.slice(2),c?2:8):mc.test(r)?M:+r}function hv(r){return sr(r,vn(r))}function nF(r){return r?mi(ze(r),-9007199254740991,fe):r===0?r:0}function lt(r){return r==null?"":Sn(r)}var rF=lo(function(r,o){if(va(o)||gn(o)){sr(o,Wt(o),r);return}for(var c in o)ft.call(o,c)&&fa(r,c,o[c])}),pv=lo(function(r,o){sr(o,vn(o),r)}),bu=lo(function(r,o,c,y){sr(o,vn(o),r,y)}),iF=lo(function(r,o,c,y){sr(o,Wt(o),r,y)}),oF=Sr(Vc);function aF(r,o){var c=uo(r);return o==null?c:Gm(c,o)}var sF=Ve(function(r,o){r=pt(r);var c=-1,y=o.length,T=y>2?o[2]:n;for(T&&ln(o[0],o[1],T)&&(y=1);++c<y;)for(var k=o[c],L=vn(k),$=-1,W=L.length;++$<W;){var oe=L[$],se=r[oe];(se===n||Jn(se,oo[oe])&&!ft.call(r,oe))&&(r[oe]=k[oe])}return r}),uF=Ve(function(r){return r.push(n,Fg),Cn(mv,n,r)});function lF(r,o){return Tm(r,Fe(o,3),ar)}function cF(r,o){return Tm(r,Fe(o,3),Kc)}function fF(r,o){return r==null?r:Yc(r,Fe(o,3),vn)}function dF(r,o){return r==null?r:Jm(r,Fe(o,3),vn)}function hF(r,o){return r&&ar(r,Fe(o,3))}function pF(r,o){return r&&Kc(r,Fe(o,3))}function mF(r){return r==null?[]:eu(r,Wt(r))}function gF(r){return r==null?[]:eu(r,vn(r))}function Of(r,o,c){var y=r==null?n:gi(r,o);return y===n?c:y}function vF(r,o){return r!=null&&Ng(r,o,$O)}function Df(r,o){return r!=null&&Ng(r,o,UO)}var yF=_g(function(r,o,c){o!=null&&typeof o.toString!="function"&&(o=Us.call(o)),r[o]=c},Ff(yn)),bF=_g(function(r,o,c){o!=null&&typeof o.toString!="function"&&(o=Us.call(o)),ft.call(r,o)?r[o].push(c):r[o]=[c]},Fe),xF=Ve(ha);function Wt(r){return gn(r)?qm(r):Qc(r)}function vn(r){return gn(r)?qm(r,!0):JO(r)}function EF(r,o){var c={};return o=Fe(o,3),ar(r,function(y,T,k){Cr(c,o(y,T,k),y)}),c}function wF(r,o){var c={};return o=Fe(o,3),ar(r,function(y,T,k){Cr(c,T,o(y,T,k))}),c}var CF=lo(function(r,o,c){tu(r,o,c)}),mv=lo(function(r,o,c,y){tu(r,o,c,y)}),AF=Sr(function(r,o){var c={};if(r==null)return c;var y=!1;o=xt(o,function(k){return k=Kr(k,r),y||(y=k.length>1),k}),sr(r,pf(r),c),y&&(c=$n(c,p|b|E,y2));for(var T=o.length;T--;)af(c,o[T]);return c});function SF(r,o){return gv(r,gu(Fe(o)))}var _F=Sr(function(r,o){return r==null?{}:QO(r,o)});function gv(r,o){if(r==null)return{};var c=xt(pf(r),function(y){return[y]});return o=Fe(o),sg(r,c,function(y,T){return o(y,T[0])})}function TF(r,o,c){o=Kr(o,r);var y=-1,T=o.length;for(T||(T=1,r=n);++y<T;){var k=r==null?n:r[ur(o[y])];k===n&&(y=T,k=c),r=Tr(k)?k.call(r):k}return r}function OF(r,o,c){return r==null?r:ma(r,o,c)}function DF(r,o,c,y){return y=typeof y=="function"?y:n,r==null?r:ma(r,o,c,y)}var vv=Dg(Wt),yv=Dg(vn);function IF(r,o,c){var y=$e(r),T=y||Jr(r)||ho(r);if(o=Fe(o,4),c==null){var k=r&&r.constructor;T?c=y?new k:[]:wt(r)?c=Tr(k)?uo(qs(r)):{}:c={}}return(T?Bn:ar)(r,function(L,$,W){return o(c,L,$,W)}),c}function FF(r,o){return r==null?!0:af(r,o)}function PF(r,o,c){return r==null?r:dg(r,o,lf(c))}function kF(r,o,c,y){return y=typeof y=="function"?y:n,r==null?r:dg(r,o,lf(c),y)}function po(r){return r==null?[]:$c(r,Wt(r))}function NF(r){return r==null?[]:$c(r,vn(r))}function RF(r,o,c){return c===n&&(c=o,o=n),c!==n&&(c=Wn(c),c=c===c?c:0),o!==n&&(o=Wn(o),o=o===o?o:0),mi(Wn(r),o,c)}function LF(r,o,c){return o=Or(o),c===n?(c=o,o=0):c=Or(c),r=Wn(r),HO(r,o,c)}function BF(r,o,c){if(c&&typeof c!="boolean"&&ln(r,o,c)&&(o=c=n),c===n&&(typeof o=="boolean"?(c=o,o=n):typeof r=="boolean"&&(c=r,r=n)),r===n&&o===n?(r=0,o=1):(r=Or(r),o===n?(o=r,r=0):o=Or(o)),r>o){var y=r;r=o,o=y}if(c||r%1||o%1){var T=Hm();return tn(r+T*(o-r+mT("1e-"+((T+"").length-1))),o)}return nf(r,o)}var MF=co(function(r,o,c){return o=o.toLowerCase(),r+(c?bv(o):o)});function bv(r){return If(lt(r).toLowerCase())}function xv(r){return r=lt(r),r&&r.replace(xc,OT).replace(oT,"")}function jF(r,o,c){r=lt(r),o=Sn(o);var y=r.length;c=c===n?y:mi(ze(c),0,y);var T=c;return c-=o.length,c>=0&&r.slice(c,T)==o}function $F(r){return r=lt(r),r&&Ht.test(r)?r.replace(St,DT):r}function UF(r){return r=lt(r),r&&Nt.test(r)?r.replace(sn,"\\$&"):r}var HF=co(function(r,o,c){return r+(c?"-":"")+o.toLowerCase()}),WF=co(function(r,o,c){return r+(c?" ":"")+o.toLowerCase()}),qF=Cg("toLowerCase");function zF(r,o,c){r=lt(r),o=ze(o);var y=o?ro(r):0;if(!o||y>=o)return r;var T=(o-y)/2;return su(Ys(T),c)+r+su(Vs(T),c)}function GF(r,o,c){r=lt(r),o=ze(o);var y=o?ro(r):0;return o&&y<o?r+su(o-y,c):r}function VF(r,o,c){r=lt(r),o=ze(o);var y=o?ro(r):0;return o&&y<o?su(o-y,c)+r:r}function YF(r,o,c){return c||o==null?o=0:o&&(o=+o),tO(lt(r).replace(en,""),o||0)}function KF(r,o,c){return(c?ln(r,o,c):o===n)?o=1:o=ze(o),rf(lt(r),o)}function XF(){var r=arguments,o=lt(r[0]);return r.length<3?o:o.replace(r[1],r[2])}var JF=co(function(r,o,c){return r+(c?"_":"")+o.toLowerCase()});function ZF(r,o,c){return c&&typeof c!="number"&&ln(r,o,c)&&(o=c=n),c=c===n?K:c>>>0,c?(r=lt(r),r&&(typeof o=="string"||o!=null&&!Tf(o))&&(o=Sn(o),!o&&no(r))?Xr(Kn(r),0,c):r.split(o,c)):[]}var QF=co(function(r,o,c){return r+(c?" ":"")+If(o)});function eP(r,o,c){return r=lt(r),c=c==null?0:mi(ze(c),0,r.length),o=Sn(o),r.slice(c,c+o.length)==o}function tP(r,o,c){var y=P.templateSettings;c&&ln(r,o,c)&&(o=n),r=lt(r),o=bu({},o,y,Ig);var T=bu({},o.imports,y.imports,Ig),k=Wt(T),L=$c(T,k),$,W,oe=0,se=o.interpolate||Xi,ce="__p += '",be=Hc((o.escape||Xi).source+"|"+se.source+"|"+(se===kt?pc:Xi).source+"|"+(o.evaluate||Xi).source+"|$","g"),Ae="//# sourceURL="+(ft.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++cT+"]")+`
|
|
55
|
-
`;r.replace(be,function(Re,Xe,Ze,Tn,cn,On){return Ze||(Ze=Tn),ce+=r.slice(oe,On).replace(Ec,
|
|
54
|
+
`)}function _2(r){return $e(r)||bi(r)||!!($m&&r&&r[$m])}function _r(r,o){var l=typeof r;return o=o??fe,!!o&&(l=="number"||l!="symbol"&&bc.test(r))&&r>-1&&r%1==0&&r<o}function ln(r,o,l){if(!Ct(l))return!1;var y=typeof o;return(y=="number"?gn(l)&&_r(o,l.length):y=="string"&&o in l)?Jn(l[o],r):!1}function yf(r,o){if($e(r))return!1;var l=typeof r;return l=="number"||l=="symbol"||l=="boolean"||r==null||_n(r)?!0:ir.test(r)||!an.test(r)||o!=null&&r in pt(o)}function T2(r){var o=typeof r;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?r!=="__proto__":r===null}function bf(r){var o=lu(r),l=P[o];if(typeof l!="function"||!(o in Je.prototype))return!1;if(r===l)return!0;var y=mf(l);return!!y&&r===y[0]}function O2(r){return!!Lm&&Lm in r}var D2=js?Tr:Lf;function va(r){var o=r&&r.constructor,l=typeof o=="function"&&o.prototype||oo;return r===l}function Lg(r){return r===r&&!Ct(r)}function Bg(r,o){return function(l){return l==null?!1:l[r]===o&&(o!==n||r in pt(l))}}function I2(r){var o=mu(r,function(y){return l.size===d&&l.clear(),y}),l=o.cache;return o}function F2(r,o){var l=r[1],y=o[1],T=l|y,k=T<(m|D|O),L=y==O&&l==I||y==O&&l==B&&r[7].length<=o[8]||y==(O|B)&&o[7].length<=o[8]&&l==I;if(!(k||L))return r;y&m&&(r[2]=o[2],T|=l&m?0:F);var $=o[3];if($){var W=r[3];r[3]=W?bg(W,$,o[4]):$,r[4]=W?zr(r[3],h):o[4]}return $=o[5],$&&(W=r[5],r[5]=W?xg(W,$,o[6]):$,r[6]=W?zr(r[5],h):o[6]),$=o[7],$&&(r[7]=$),y&O&&(r[8]=r[8]==null?o[8]:tn(r[8],o[8])),r[9]==null&&(r[9]=o[9]),r[0]=o[0],r[1]=T,r}function P2(r){var o=[];if(r!=null)for(var l in pt(r))o.push(l);return o}function k2(r){return Us.call(r)}function Mg(r,o,l){return o=Bt(o===n?r.length-1:o,0),function(){for(var y=arguments,T=-1,k=Bt(y.length-o,0),L=X(k);++T<k;)L[T]=y[o+T];T=-1;for(var $=X(o+1);++T<o;)$[T]=y[T];return $[o]=l(L),wn(r,this,$)}}function jg(r,o){return o.length<2?r:gi(r,Un(o,0,-1))}function N2(r,o){for(var l=r.length,y=tn(o.length,l),T=mn(r);y--;){var k=o[y];r[y]=_r(k,l)?T[k]:n}return r}function xf(r,o){if(!(o==="constructor"&&typeof r[o]=="function")&&o!="__proto__")return r[o]}var $g=Hg(lg),ya=KT||function(r,o){return Vt.setTimeout(r,o)},Ef=Hg(r2);function Ug(r,o,l){var y=o+"";return Ef(r,S2(y,R2(C2(y),l)))}function Hg(r){var o=0,l=0;return function(){var y=QT(),T=ne-(y-l);if(l=y,T>0){if(++o>=ue)return arguments[0]}else o=0;return r.apply(n,arguments)}}function fu(r,o){var l=-1,y=r.length,T=y-1;for(o=o===n?y:o;++l<o;){var k=nf(l,T),L=r[k];r[k]=r[l],r[l]=L}return r.length=o,r}var Wg=I2(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(_t,function(l,y,T,k){o.push(T?k.replace(or,"$1"):y||l)}),o});function ur(r){if(typeof r=="string"||_n(r))return r;var o=r+"";return o=="0"&&1/r==-1/0?"-0":o}function yi(r){if(r!=null){try{return $s.call(r)}catch{}try{return r+""}catch{}}return""}function R2(r,o){return Bn(z,function(l){var y="_."+l[0];o&l[1]&&!Rs(r,y)&&r.push(y)}),r.sort()}function qg(r){if(r instanceof Je)return r.clone();var o=new jn(r.__wrapped__,r.__chain__);return o.__actions__=mn(r.__actions__),o.__index__=r.__index__,o.__values__=r.__values__,o}function L2(r,o,l){(l?ln(r,o,l):o===n)?o=1:o=Bt(ze(o),0);var y=r==null?0:r.length;if(!y||o<1)return[];for(var T=0,k=0,L=X(Vs(y/o));T<y;)L[k++]=Un(r,T,T+=o);return L}function B2(r){for(var o=-1,l=r==null?0:r.length,y=0,T=[];++o<l;){var k=r[o];k&&(T[y++]=k)}return T}function M2(){var r=arguments.length;if(!r)return[];for(var o=X(r-1),l=arguments[0],y=r;y--;)o[y-1]=arguments[y];return qr($e(l)?mn(l):[l],Yt(o,1))}var j2=Ve(function(r,o){return Ot(r)?da(r,Yt(o,1,Ot,!0)):[]}),$2=Ve(function(r,o){var l=Hn(o);return Ot(l)&&(l=n),Ot(r)?da(r,Yt(o,1,Ot,!0),Fe(l,2)):[]}),U2=Ve(function(r,o){var l=Hn(o);return Ot(l)&&(l=n),Ot(r)?da(r,Yt(o,1,Ot,!0),n,l):[]});function H2(r,o,l){var y=r==null?0:r.length;return y?(o=l||o===n?1:ze(o),Un(r,o<0?0:o,y)):[]}function W2(r,o,l){var y=r==null?0:r.length;return y?(o=l||o===n?1:ze(o),o=y-o,Un(r,0,o<0?0:o)):[]}function q2(r,o){return r&&r.length?ru(r,Fe(o,3),!0,!0):[]}function z2(r,o){return r&&r.length?ru(r,Fe(o,3),!0):[]}function G2(r,o,l,y){var T=r==null?0:r.length;return T?(l&&typeof l!="number"&&ln(r,o,l)&&(l=0,y=T),MO(r,o,l,y)):[]}function zg(r,o,l){var y=r==null?0:r.length;if(!y)return-1;var T=l==null?0:ze(l);return T<0&&(T=Bt(y+T,0)),Ls(r,Fe(o,3),T)}function Gg(r,o,l){var y=r==null?0:r.length;if(!y)return-1;var T=y-1;return l!==n&&(T=ze(l),T=l<0?Bt(y+T,0):tn(T,y-1)),Ls(r,Fe(o,3),T,!0)}function Vg(r){var o=r==null?0:r.length;return o?Yt(r,1):[]}function V2(r){var o=r==null?0:r.length;return o?Yt(r,he):[]}function Y2(r,o){var l=r==null?0:r.length;return l?(o=o===n?1:ze(o),Yt(r,o)):[]}function K2(r){for(var o=-1,l=r==null?0:r.length,y={};++o<l;){var T=r[o];y[T[0]]=T[1]}return y}function Yg(r){return r&&r.length?r[0]:n}function X2(r,o,l){var y=r==null?0:r.length;if(!y)return-1;var T=l==null?0:ze(l);return T<0&&(T=Bt(y+T,0)),to(r,o,T)}function J2(r){var o=r==null?0:r.length;return o?Un(r,0,-1):[]}var Z2=Ve(function(r){var o=xt(r,uf);return o.length&&o[0]===r[0]?Jc(o):[]}),Q2=Ve(function(r){var o=Hn(r),l=xt(r,uf);return o===Hn(l)?o=n:l.pop(),l.length&&l[0]===r[0]?Jc(l,Fe(o,2)):[]}),eD=Ve(function(r){var o=Hn(r),l=xt(r,uf);return o=typeof o=="function"?o:n,o&&l.pop(),l.length&&l[0]===r[0]?Jc(l,n,o):[]});function tD(r,o){return r==null?"":JT.call(r,o)}function Hn(r){var o=r==null?0:r.length;return o?r[o-1]:n}function nD(r,o,l){var y=r==null?0:r.length;if(!y)return-1;var T=y;return l!==n&&(T=ze(l),T=T<0?Bt(y+T,0):tn(T,y-1)),o===o?RT(r,o,T):Ls(r,Om,T,!0)}function rD(r,o){return r&&r.length?og(r,ze(o)):n}var iD=Ve(Kg);function Kg(r,o){return r&&r.length&&o&&o.length?tf(r,o):r}function oD(r,o,l){return r&&r.length&&o&&o.length?tf(r,o,Fe(l,2)):r}function aD(r,o,l){return r&&r.length&&o&&o.length?tf(r,o,n,l):r}var sD=Sr(function(r,o){var l=r==null?0:r.length,y=Vc(r,o);return ug(r,xt(o,function(T){return _r(T,l)?+T:T}).sort(yg)),y});function uD(r,o){var l=[];if(!(r&&r.length))return l;var y=-1,T=[],k=r.length;for(o=Fe(o,3);++y<k;){var L=r[y];o(L,y,r)&&(l.push(L),T.push(y))}return ug(r,T),l}function Cf(r){return r==null?r:tO.call(r)}function lD(r,o,l){var y=r==null?0:r.length;return y?(l&&typeof l!="number"&&ln(r,o,l)?(o=0,l=y):(o=o==null?0:ze(o),l=l===n?y:ze(l)),Un(r,o,l)):[]}function cD(r,o){return nu(r,o)}function fD(r,o,l){return of(r,o,Fe(l,2))}function dD(r,o){var l=r==null?0:r.length;if(l){var y=nu(r,o);if(y<l&&Jn(r[y],o))return y}return-1}function hD(r,o){return nu(r,o,!0)}function pD(r,o,l){return of(r,o,Fe(l,2),!0)}function mD(r,o){var l=r==null?0:r.length;if(l){var y=nu(r,o,!0)-1;if(Jn(r[y],o))return y}return-1}function gD(r){return r&&r.length?cg(r):[]}function vD(r,o){return r&&r.length?cg(r,Fe(o,2)):[]}function yD(r){var o=r==null?0:r.length;return o?Un(r,1,o):[]}function bD(r,o,l){return r&&r.length?(o=l||o===n?1:ze(o),Un(r,0,o<0?0:o)):[]}function xD(r,o,l){var y=r==null?0:r.length;return y?(o=l||o===n?1:ze(o),o=y-o,Un(r,o<0?0:o,y)):[]}function ED(r,o){return r&&r.length?ru(r,Fe(o,3),!1,!0):[]}function CD(r,o){return r&&r.length?ru(r,Fe(o,3)):[]}var wD=Ve(function(r){return Yr(Yt(r,1,Ot,!0))}),AD=Ve(function(r){var o=Hn(r);return Ot(o)&&(o=n),Yr(Yt(r,1,Ot,!0),Fe(o,2))}),SD=Ve(function(r){var o=Hn(r);return o=typeof o=="function"?o:n,Yr(Yt(r,1,Ot,!0),n,o)});function _D(r){return r&&r.length?Yr(r):[]}function TD(r,o){return r&&r.length?Yr(r,Fe(o,2)):[]}function OD(r,o){return o=typeof o=="function"?o:n,r&&r.length?Yr(r,n,o):[]}function wf(r){if(!(r&&r.length))return[];var o=0;return r=Wr(r,function(l){if(Ot(l))return o=Bt(l.length,o),!0}),jc(o,function(l){return xt(r,Lc(l))})}function Xg(r,o){if(!(r&&r.length))return[];var l=wf(r);return o==null?l:xt(l,function(y){return wn(o,n,y)})}var DD=Ve(function(r,o){return Ot(r)?da(r,o):[]}),ID=Ve(function(r){return sf(Wr(r,Ot))}),FD=Ve(function(r){var o=Hn(r);return Ot(o)&&(o=n),sf(Wr(r,Ot),Fe(o,2))}),PD=Ve(function(r){var o=Hn(r);return o=typeof o=="function"?o:n,sf(Wr(r,Ot),n,o)}),kD=Ve(wf);function ND(r,o){return pg(r||[],o||[],fa)}function RD(r,o){return pg(r||[],o||[],ma)}var LD=Ve(function(r){var o=r.length,l=o>1?r[o-1]:n;return l=typeof l=="function"?(r.pop(),l):n,Xg(r,l)});function Jg(r){var o=P(r);return o.__chain__=!0,o}function BD(r,o){return o(r),r}function du(r,o){return o(r)}var MD=Sr(function(r){var o=r.length,l=o?r[0]:0,y=this.__wrapped__,T=function(k){return Vc(k,r)};return o>1||this.__actions__.length||!(y instanceof Je)||!_r(l)?this.thru(T):(y=y.slice(l,+l+(o?1:0)),y.__actions__.push({func:du,args:[T],thisArg:n}),new jn(y,this.__chain__).thru(function(k){return o&&!k.length&&k.push(n),k}))});function jD(){return Jg(this)}function $D(){return new jn(this.value(),this.__chain__)}function UD(){this.__values__===n&&(this.__values__=fv(this.value()));var r=this.__index__>=this.__values__.length,o=r?n:this.__values__[this.__index__++];return{done:r,value:o}}function HD(){return this}function WD(r){for(var o,l=this;l instanceof Js;){var y=qg(l);y.__index__=0,y.__values__=n,o?T.__wrapped__=y:o=y;var T=y;l=l.__wrapped__}return T.__wrapped__=r,o}function qD(){var r=this.__wrapped__;if(r instanceof Je){var o=r;return this.__actions__.length&&(o=new Je(this)),o=o.reverse(),o.__actions__.push({func:du,args:[Cf],thisArg:n}),new jn(o,this.__chain__)}return this.thru(Cf)}function zD(){return hg(this.__wrapped__,this.__actions__)}var GD=iu(function(r,o,l){ft.call(r,l)?++r[l]:wr(r,l,1)});function VD(r,o,l){var y=$e(r)?_m:BO;return l&&ln(r,o,l)&&(o=n),y(r,Fe(o,3))}function YD(r,o){var l=$e(r)?Wr:Xm;return l(r,Fe(o,3))}var KD=Ag(zg),XD=Ag(Gg);function JD(r,o){return Yt(hu(r,o),1)}function ZD(r,o){return Yt(hu(r,o),he)}function QD(r,o,l){return l=l===n?1:ze(l),Yt(hu(r,o),l)}function Zg(r,o){var l=$e(r)?Bn:Vr;return l(r,Fe(o,3))}function Qg(r,o){var l=$e(r)?yT:Km;return l(r,Fe(o,3))}var eI=iu(function(r,o,l){ft.call(r,l)?r[l].push(o):wr(r,l,[o])});function tI(r,o,l,y){r=gn(r)?r:po(r),l=l&&!y?ze(l):0;var T=r.length;return l<0&&(l=Bt(T+l,0)),yu(r)?l<=T&&r.indexOf(o,l)>-1:!!T&&to(r,o,l)>-1}var nI=Ve(function(r,o,l){var y=-1,T=typeof o=="function",k=gn(r)?X(r.length):[];return Vr(r,function(L){k[++y]=T?wn(o,L,l):ha(L,o,l)}),k}),rI=iu(function(r,o,l){wr(r,l,o)});function hu(r,o){var l=$e(r)?xt:ng;return l(r,Fe(o,3))}function iI(r,o,l,y){return r==null?[]:($e(o)||(o=o==null?[]:[o]),l=y?n:l,$e(l)||(l=l==null?[]:[l]),ag(r,o,l))}var oI=iu(function(r,o,l){r[l?0:1].push(o)},function(){return[[],[]]});function aI(r,o,l){var y=$e(r)?Nc:Im,T=arguments.length<3;return y(r,Fe(o,4),l,T,Vr)}function sI(r,o,l){var y=$e(r)?bT:Im,T=arguments.length<3;return y(r,Fe(o,4),l,T,Km)}function uI(r,o){var l=$e(r)?Wr:Xm;return l(r,gu(Fe(o,3)))}function lI(r){var o=$e(r)?zm:t2;return o(r)}function cI(r,o,l){(l?ln(r,o,l):o===n)?o=1:o=ze(o);var y=$e(r)?PO:n2;return y(r,o)}function fI(r){var o=$e(r)?kO:i2;return o(r)}function dI(r){if(r==null)return 0;if(gn(r))return yu(r)?ro(r):r.length;var o=nn(r);return o==ke||o==Ke?r.size:Qc(r).length}function hI(r,o,l){var y=$e(r)?Rc:o2;return l&&ln(r,o,l)&&(o=n),y(r,Fe(o,3))}var pI=Ve(function(r,o){if(r==null)return[];var l=o.length;return l>1&&ln(r,o[0],o[1])?o=[]:l>2&&ln(o[0],o[1],o[2])&&(o=[o[0]]),ag(r,Yt(o,1),[])}),pu=YT||function(){return Vt.Date.now()};function mI(r,o){if(typeof o!="function")throw new Mn(u);return r=ze(r),function(){if(--r<1)return o.apply(this,arguments)}}function ev(r,o,l){return o=l?n:o,o=r&&o==null?r.length:o,Ar(r,O,n,n,n,n,o)}function tv(r,o){var l;if(typeof o!="function")throw new Mn(u);return r=ze(r),function(){return--r>0&&(l=o.apply(this,arguments)),r<=1&&(o=n),l}}var Af=Ve(function(r,o,l){var y=m;if(l.length){var T=zr(l,fo(Af));y|=v}return Ar(r,y,o,l,T)}),nv=Ve(function(r,o,l){var y=m|D;if(l.length){var T=zr(l,fo(nv));y|=v}return Ar(o,y,r,l,T)});function rv(r,o,l){o=l?n:o;var y=Ar(r,I,n,n,n,n,n,o);return y.placeholder=rv.placeholder,y}function iv(r,o,l){o=l?n:o;var y=Ar(r,w,n,n,n,n,n,o);return y.placeholder=iv.placeholder,y}function ov(r,o,l){var y,T,k,L,$,W,oe=0,se=!1,ce=!1,be=!0;if(typeof r!="function")throw new Mn(u);o=Wn(o)||0,Ct(l)&&(se=!!l.leading,ce="maxWait"in l,k=ce?Bt(Wn(l.maxWait)||0,o):k,be="trailing"in l?!!l.trailing:be);function Ae(Dt){var Zn=y,Dr=T;return y=T=n,oe=Dt,L=r.apply(Dr,Zn),L}function Ne(Dt){return oe=Dt,$=ya(Xe,o),se?Ae(Dt):L}function Ge(Dt){var Zn=Dt-W,Dr=Dt-oe,Av=o-Zn;return ce?tn(Av,k-Dr):Av}function Re(Dt){var Zn=Dt-W,Dr=Dt-oe;return W===n||Zn>=o||Zn<0||ce&&Dr>=k}function Xe(){var Dt=pu();if(Re(Dt))return Ze(Dt);$=ya(Xe,Ge(Dt))}function Ze(Dt){return $=n,be&&y?Ae(Dt):(y=T=n,L)}function Tn(){$!==n&&mg($),oe=0,y=W=T=$=n}function cn(){return $===n?L:Ze(pu())}function On(){var Dt=pu(),Zn=Re(Dt);if(y=arguments,T=this,W=Dt,Zn){if($===n)return Ne(W);if(ce)return mg($),$=ya(Xe,o),Ae(W)}return $===n&&($=ya(Xe,o)),L}return On.cancel=Tn,On.flush=cn,On}var gI=Ve(function(r,o){return Ym(r,1,o)}),vI=Ve(function(r,o,l){return Ym(r,Wn(o)||0,l)});function yI(r){return Ar(r,G)}function mu(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new Mn(u);var l=function(){var y=arguments,T=o?o.apply(this,y):y[0],k=l.cache;if(k.has(T))return k.get(T);var L=r.apply(this,y);return l.cache=k.set(T,L)||k,L};return l.cache=new(mu.Cache||Cr),l}mu.Cache=Cr;function gu(r){if(typeof r!="function")throw new Mn(u);return function(){var o=arguments;switch(o.length){case 0:return!r.call(this);case 1:return!r.call(this,o[0]);case 2:return!r.call(this,o[0],o[1]);case 3:return!r.call(this,o[0],o[1],o[2])}return!r.apply(this,o)}}function bI(r){return tv(2,r)}var xI=a2(function(r,o){o=o.length==1&&$e(o[0])?xt(o[0],An(Fe())):xt(Yt(o,1),An(Fe()));var l=o.length;return Ve(function(y){for(var T=-1,k=tn(y.length,l);++T<k;)y[T]=o[T].call(this,y[T]);return wn(r,this,y)})}),Sf=Ve(function(r,o){var l=zr(o,fo(Sf));return Ar(r,v,n,o,l)}),av=Ve(function(r,o){var l=zr(o,fo(av));return Ar(r,S,n,o,l)}),EI=Sr(function(r,o){return Ar(r,B,n,n,n,o)});function CI(r,o){if(typeof r!="function")throw new Mn(u);return o=o===n?o:ze(o),Ve(r,o)}function wI(r,o){if(typeof r!="function")throw new Mn(u);return o=o==null?0:Bt(ze(o),0),Ve(function(l){var y=l[o],T=Xr(l,0,o);return y&&qr(T,y),wn(r,this,T)})}function AI(r,o,l){var y=!0,T=!0;if(typeof r!="function")throw new Mn(u);return Ct(l)&&(y="leading"in l?!!l.leading:y,T="trailing"in l?!!l.trailing:T),ov(r,o,{leading:y,maxWait:o,trailing:T})}function SI(r){return ev(r,1)}function _I(r,o){return Sf(lf(o),r)}function TI(){if(!arguments.length)return[];var r=arguments[0];return $e(r)?r:[r]}function OI(r){return $n(r,E)}function DI(r,o){return o=typeof o=="function"?o:n,$n(r,E,o)}function II(r){return $n(r,p|E)}function FI(r,o){return o=typeof o=="function"?o:n,$n(r,p|E,o)}function PI(r,o){return o==null||Vm(r,o,Wt(o))}function Jn(r,o){return r===o||r!==r&&o!==o}var kI=uu(Xc),NI=uu(function(r,o){return r>=o}),bi=Qm(function(){return arguments}())?Qm:function(r){return At(r)&&ft.call(r,"callee")&&!jm.call(r,"callee")},$e=X.isArray,RI=xm?An(xm):WO;function gn(r){return r!=null&&vu(r.length)&&!Tr(r)}function Ot(r){return At(r)&&gn(r)}function LI(r){return r===!0||r===!1||At(r)&&un(r)==ae}var Jr=XT||Lf,BI=Em?An(Em):qO;function MI(r){return At(r)&&r.nodeType===1&&!ba(r)}function jI(r){if(r==null)return!0;if(gn(r)&&($e(r)||typeof r=="string"||typeof r.splice=="function"||Jr(r)||ho(r)||bi(r)))return!r.length;var o=nn(r);if(o==ke||o==Ke)return!r.size;if(va(r))return!Qc(r).length;for(var l in r)if(ft.call(r,l))return!1;return!0}function $I(r,o){return pa(r,o)}function UI(r,o,l){l=typeof l=="function"?l:n;var y=l?l(r,o):n;return y===n?pa(r,o,n,l):!!y}function _f(r){if(!At(r))return!1;var o=un(r);return o==me||o==Y||typeof r.message=="string"&&typeof r.name=="string"&&!ba(r)}function HI(r){return typeof r=="number"&&Um(r)}function Tr(r){if(!Ct(r))return!1;var o=un(r);return o==ee||o==Be||o==ve||o==zt}function sv(r){return typeof r=="number"&&r==ze(r)}function vu(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=fe}function Ct(r){var o=typeof r;return r!=null&&(o=="object"||o=="function")}function At(r){return r!=null&&typeof r=="object"}var uv=Cm?An(Cm):GO;function WI(r,o){return r===o||Zc(r,o,gf(o))}function qI(r,o,l){return l=typeof l=="function"?l:n,Zc(r,o,gf(o),l)}function zI(r){return lv(r)&&r!=+r}function GI(r){if(D2(r))throw new je(s);return eg(r)}function VI(r){return r===null}function YI(r){return r==null}function lv(r){return typeof r=="number"||At(r)&&un(r)==Te}function ba(r){if(!At(r)||un(r)!=Ye)return!1;var o=qs(r);if(o===null)return!0;var l=ft.call(o,"constructor")&&o.constructor;return typeof l=="function"&&l instanceof l&&$s.call(l)==qT}var Tf=wm?An(wm):VO;function KI(r){return sv(r)&&r>=-9007199254740991&&r<=fe}var cv=Am?An(Am):YO;function yu(r){return typeof r=="string"||!$e(r)&&At(r)&&un(r)==we}function _n(r){return typeof r=="symbol"||At(r)&&un(r)==ct}var ho=Sm?An(Sm):KO;function XI(r){return r===n}function JI(r){return At(r)&&nn(r)==Qt}function ZI(r){return At(r)&&un(r)==Me}var QI=uu(ef),eF=uu(function(r,o){return r<=o});function fv(r){if(!r)return[];if(gn(r))return yu(r)?Kn(r):mn(r);if(aa&&r[aa])return PT(r[aa]());var o=nn(r),l=o==ke?Uc:o==Ke?Bs:po;return l(r)}function Or(r){if(!r)return r===0?r:0;if(r=Wn(r),r===he||r===-1/0){var o=r<0?-1:1;return o*Ie}return r===r?r:0}function ze(r){var o=Or(r),l=o%1;return o===o?l?o-l:o:0}function dv(r){return r?mi(ze(r),0,K):0}function Wn(r){if(typeof r=="number")return r;if(_n(r))return M;if(Ct(r)){var o=typeof r.valueOf=="function"?r.valueOf():r;r=Ct(o)?o+"":o}if(typeof r!="string")return r===0?r:+r;r=Fm(r);var l=gc.test(r);return l||yc.test(r)?mT(r.slice(2),l?2:8):mc.test(r)?M:+r}function hv(r){return sr(r,vn(r))}function tF(r){return r?mi(ze(r),-9007199254740991,fe):r===0?r:0}function lt(r){return r==null?"":Sn(r)}var nF=lo(function(r,o){if(va(o)||gn(o)){sr(o,Wt(o),r);return}for(var l in o)ft.call(o,l)&&fa(r,l,o[l])}),pv=lo(function(r,o){sr(o,vn(o),r)}),bu=lo(function(r,o,l,y){sr(o,vn(o),r,y)}),rF=lo(function(r,o,l,y){sr(o,Wt(o),r,y)}),iF=Sr(Vc);function oF(r,o){var l=uo(r);return o==null?l:Gm(l,o)}var aF=Ve(function(r,o){r=pt(r);var l=-1,y=o.length,T=y>2?o[2]:n;for(T&&ln(o[0],o[1],T)&&(y=1);++l<y;)for(var k=o[l],L=vn(k),$=-1,W=L.length;++$<W;){var oe=L[$],se=r[oe];(se===n||Jn(se,oo[oe])&&!ft.call(r,oe))&&(r[oe]=k[oe])}return r}),sF=Ve(function(r){return r.push(n,Fg),wn(mv,n,r)});function uF(r,o){return Tm(r,Fe(o,3),ar)}function lF(r,o){return Tm(r,Fe(o,3),Kc)}function cF(r,o){return r==null?r:Yc(r,Fe(o,3),vn)}function fF(r,o){return r==null?r:Jm(r,Fe(o,3),vn)}function dF(r,o){return r&&ar(r,Fe(o,3))}function hF(r,o){return r&&Kc(r,Fe(o,3))}function pF(r){return r==null?[]:eu(r,Wt(r))}function mF(r){return r==null?[]:eu(r,vn(r))}function Of(r,o,l){var y=r==null?n:gi(r,o);return y===n?l:y}function gF(r,o){return r!=null&&Ng(r,o,jO)}function Df(r,o){return r!=null&&Ng(r,o,$O)}var vF=_g(function(r,o,l){o!=null&&typeof o.toString!="function"&&(o=Us.call(o)),r[o]=l},Ff(yn)),yF=_g(function(r,o,l){o!=null&&typeof o.toString!="function"&&(o=Us.call(o)),ft.call(r,o)?r[o].push(l):r[o]=[l]},Fe),bF=Ve(ha);function Wt(r){return gn(r)?qm(r):Qc(r)}function vn(r){return gn(r)?qm(r,!0):XO(r)}function xF(r,o){var l={};return o=Fe(o,3),ar(r,function(y,T,k){wr(l,o(y,T,k),y)}),l}function EF(r,o){var l={};return o=Fe(o,3),ar(r,function(y,T,k){wr(l,T,o(y,T,k))}),l}var CF=lo(function(r,o,l){tu(r,o,l)}),mv=lo(function(r,o,l,y){tu(r,o,l,y)}),wF=Sr(function(r,o){var l={};if(r==null)return l;var y=!1;o=xt(o,function(k){return k=Kr(k,r),y||(y=k.length>1),k}),sr(r,pf(r),l),y&&(l=$n(l,p|b|E,v2));for(var T=o.length;T--;)af(l,o[T]);return l});function AF(r,o){return gv(r,gu(Fe(o)))}var SF=Sr(function(r,o){return r==null?{}:ZO(r,o)});function gv(r,o){if(r==null)return{};var l=xt(pf(r),function(y){return[y]});return o=Fe(o),sg(r,l,function(y,T){return o(y,T[0])})}function _F(r,o,l){o=Kr(o,r);var y=-1,T=o.length;for(T||(T=1,r=n);++y<T;){var k=r==null?n:r[ur(o[y])];k===n&&(y=T,k=l),r=Tr(k)?k.call(r):k}return r}function TF(r,o,l){return r==null?r:ma(r,o,l)}function OF(r,o,l,y){return y=typeof y=="function"?y:n,r==null?r:ma(r,o,l,y)}var vv=Dg(Wt),yv=Dg(vn);function DF(r,o,l){var y=$e(r),T=y||Jr(r)||ho(r);if(o=Fe(o,4),l==null){var k=r&&r.constructor;T?l=y?new k:[]:Ct(r)?l=Tr(k)?uo(qs(r)):{}:l={}}return(T?Bn:ar)(r,function(L,$,W){return o(l,L,$,W)}),l}function IF(r,o){return r==null?!0:af(r,o)}function FF(r,o,l){return r==null?r:dg(r,o,lf(l))}function PF(r,o,l,y){return y=typeof y=="function"?y:n,r==null?r:dg(r,o,lf(l),y)}function po(r){return r==null?[]:$c(r,Wt(r))}function kF(r){return r==null?[]:$c(r,vn(r))}function NF(r,o,l){return l===n&&(l=o,o=n),l!==n&&(l=Wn(l),l=l===l?l:0),o!==n&&(o=Wn(o),o=o===o?o:0),mi(Wn(r),o,l)}function RF(r,o,l){return o=Or(o),l===n?(l=o,o=0):l=Or(l),r=Wn(r),UO(r,o,l)}function LF(r,o,l){if(l&&typeof l!="boolean"&&ln(r,o,l)&&(o=l=n),l===n&&(typeof o=="boolean"?(l=o,o=n):typeof r=="boolean"&&(l=r,r=n)),r===n&&o===n?(r=0,o=1):(r=Or(r),o===n?(o=r,r=0):o=Or(o)),r>o){var y=r;r=o,o=y}if(l||r%1||o%1){var T=Hm();return tn(r+T*(o-r+pT("1e-"+((T+"").length-1))),o)}return nf(r,o)}var BF=co(function(r,o,l){return o=o.toLowerCase(),r+(l?bv(o):o)});function bv(r){return If(lt(r).toLowerCase())}function xv(r){return r=lt(r),r&&r.replace(xc,TT).replace(iT,"")}function MF(r,o,l){r=lt(r),o=Sn(o);var y=r.length;l=l===n?y:mi(ze(l),0,y);var T=l;return l-=o.length,l>=0&&r.slice(l,T)==o}function jF(r){return r=lt(r),r&&Ht.test(r)?r.replace(St,OT):r}function $F(r){return r=lt(r),r&&Nt.test(r)?r.replace(sn,"\\$&"):r}var UF=co(function(r,o,l){return r+(l?"-":"")+o.toLowerCase()}),HF=co(function(r,o,l){return r+(l?" ":"")+o.toLowerCase()}),WF=wg("toLowerCase");function qF(r,o,l){r=lt(r),o=ze(o);var y=o?ro(r):0;if(!o||y>=o)return r;var T=(o-y)/2;return su(Ys(T),l)+r+su(Vs(T),l)}function zF(r,o,l){r=lt(r),o=ze(o);var y=o?ro(r):0;return o&&y<o?r+su(o-y,l):r}function GF(r,o,l){r=lt(r),o=ze(o);var y=o?ro(r):0;return o&&y<o?su(o-y,l)+r:r}function VF(r,o,l){return l||o==null?o=0:o&&(o=+o),eO(lt(r).replace(en,""),o||0)}function YF(r,o,l){return(l?ln(r,o,l):o===n)?o=1:o=ze(o),rf(lt(r),o)}function KF(){var r=arguments,o=lt(r[0]);return r.length<3?o:o.replace(r[1],r[2])}var XF=co(function(r,o,l){return r+(l?"_":"")+o.toLowerCase()});function JF(r,o,l){return l&&typeof l!="number"&&ln(r,o,l)&&(o=l=n),l=l===n?K:l>>>0,l?(r=lt(r),r&&(typeof o=="string"||o!=null&&!Tf(o))&&(o=Sn(o),!o&&no(r))?Xr(Kn(r),0,l):r.split(o,l)):[]}var ZF=co(function(r,o,l){return r+(l?" ":"")+If(o)});function QF(r,o,l){return r=lt(r),l=l==null?0:mi(ze(l),0,r.length),o=Sn(o),r.slice(l,l+o.length)==o}function eP(r,o,l){var y=P.templateSettings;l&&ln(r,o,l)&&(o=n),r=lt(r),o=bu({},o,y,Ig);var T=bu({},o.imports,y.imports,Ig),k=Wt(T),L=$c(T,k),$,W,oe=0,se=o.interpolate||Xi,ce="__p += '",be=Hc((o.escape||Xi).source+"|"+se.source+"|"+(se===kt?pc:Xi).source+"|"+(o.evaluate||Xi).source+"|$","g"),Ae="//# sourceURL="+(ft.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lT+"]")+`
|
|
55
|
+
`;r.replace(be,function(Re,Xe,Ze,Tn,cn,On){return Ze||(Ze=Tn),ce+=r.slice(oe,On).replace(Ec,DT),Xe&&($=!0,ce+=`' +
|
|
56
56
|
__e(`+Xe+`) +
|
|
57
57
|
'`),cn&&(W=!0,ce+=`';
|
|
58
58
|
`+cn+`;
|
|
@@ -62,27 +62,27 @@ __p += '`),Ze&&(ce+=`' +
|
|
|
62
62
|
`;var Ne=ft.call(o,"variable")&&o.variable;if(!Ne)ce=`with (obj) {
|
|
63
63
|
`+ce+`
|
|
64
64
|
}
|
|
65
|
-
`;else if(Yi.test(Ne))throw new je(
|
|
65
|
+
`;else if(Yi.test(Ne))throw new je(c);ce=(W?ce.replace($r,""):ce).replace(Ur,"$1").replace(ra,"$1;"),ce="function("+(Ne||"obj")+`) {
|
|
66
66
|
`+(Ne?"":`obj || (obj = {});
|
|
67
67
|
`)+"var __t, __p = ''"+($?", __e = _.escape":"")+(W?`, __j = Array.prototype.join;
|
|
68
68
|
function print() { __p += __j.call(arguments, '') }
|
|
69
69
|
`:`;
|
|
70
70
|
`)+ce+`return __p
|
|
71
|
-
}`;var Ge=wv(function(){return it(k,Ae+"return "+ce).apply(n,L)});if(Ge.source=ce,_f(Ge))throw Ge;return Ge}function nP(r){return lt(r).toLowerCase()}function rP(r){return lt(r).toUpperCase()}function iP(r,o,c){if(r=lt(r),r&&(c||o===n))return Fm(r);if(!r||!(o=Sn(o)))return r;var y=Kn(r),T=Kn(o),k=Pm(y,T),L=km(y,T)+1;return Xr(y,k,L).join("")}function oP(r,o,c){if(r=lt(r),r&&(c||o===n))return r.slice(0,Rm(r)+1);if(!r||!(o=Sn(o)))return r;var y=Kn(r),T=km(y,Kn(o))+1;return Xr(y,0,T).join("")}function aP(r,o,c){if(r=lt(r),r&&(c||o===n))return r.replace(en,"");if(!r||!(o=Sn(o)))return r;var y=Kn(r),T=Pm(y,Kn(o));return Xr(y,T).join("")}function sP(r,o){var c=q,y=V;if(wt(o)){var T="separator"in o?o.separator:T;c="length"in o?ze(o.length):c,y="omission"in o?Sn(o.omission):y}r=lt(r);var k=r.length;if(no(r)){var L=Kn(r);k=L.length}if(c>=k)return r;var $=c-ro(y);if($<1)return y;var W=L?Xr(L,0,$).join(""):r.slice(0,$);if(T===n)return W+y;if(L&&($+=W.length-$),Tf(T)){if(r.slice($).search(T)){var oe,se=W;for(T.global||(T=Hc(T.source,lt(Ki.exec(T))+"g")),T.lastIndex=0;oe=T.exec(se);)var ce=oe.index;W=W.slice(0,ce===n?$:ce)}}else if(r.indexOf(Sn(T),$)!=$){var be=W.lastIndexOf(T);be>-1&&(W=W.slice(0,be))}return W+y}function uP(r){return r=lt(r),r&&Ut.test(r)?r.replace(Vi,BT):r}var lP=co(function(r,o,c){return r+(c?" ":"")+o.toUpperCase()}),If=Cg("toUpperCase");function Ev(r,o,c){return r=lt(r),o=c?n:o,o===n?PT(r)?$T(r):CT(r):r.match(o)||[]}var wv=Ve(function(r,o){try{return Cn(r,n,o)}catch(c){return _f(c)?c:new je(c)}}),cP=Sr(function(r,o){return Bn(o,function(c){c=ur(c),Cr(r,c,Af(r[c],r))}),r});function fP(r){var o=r==null?0:r.length,c=Fe();return r=o?xt(r,function(y){if(typeof y[1]!="function")throw new Mn(u);return[c(y[0]),y[1]]}):[],Ve(function(y){for(var T=-1;++T<o;){var k=r[T];if(Cn(k[0],this,y))return Cn(k[1],this,y)}})}function dP(r){return BO($n(r,p))}function Ff(r){return function(){return r}}function hP(r,o){return r==null||r!==r?o:r}var pP=Sg(),mP=Sg(!0);function yn(r){return r}function Pf(r){return tg(typeof r=="function"?r:$n(r,p))}function gP(r){return rg($n(r,p))}function vP(r,o){return ig(r,$n(o,p))}var yP=Ve(function(r,o){return function(c){return ha(c,r,o)}}),bP=Ve(function(r,o){return function(c){return ha(r,c,o)}});function kf(r,o,c){var y=Wt(o),T=eu(o,y);c==null&&!(wt(o)&&(T.length||!y.length))&&(c=o,o=r,r=this,T=eu(o,Wt(o)));var k=!(wt(c)&&"chain"in c)||!!c.chain,L=Tr(r);return Bn(T,function($){var W=o[$];r[$]=W,L&&(r.prototype[$]=function(){var oe=this.__chain__;if(k||oe){var se=r(this.__wrapped__),ce=se.__actions__=mn(this.__actions__);return ce.push({func:W,args:arguments,thisArg:r}),se.__chain__=oe,se}return W.apply(r,qr([this.value()],arguments))})}),r}function xP(){return Vt._===this&&(Vt._=GT),this}function Nf(){}function EP(r){return r=ze(r),Ve(function(o){return og(o,r)})}var wP=ff(xt),CP=ff(_m),AP=ff(Rc);function Cv(r){return yf(r)?Lc(ur(r)):e2(r)}function SP(r){return function(o){return r==null?n:gi(r,o)}}var _P=Tg(),TP=Tg(!0);function Rf(){return[]}function Lf(){return!1}function OP(){return{}}function DP(){return""}function IP(){return!0}function FP(r,o){if(r=ze(r),r<1||r>fe)return[];var c=K,y=tn(r,K);o=Fe(o),r-=K;for(var T=jc(y,o);++c<r;)o(c);return T}function PP(r){return $e(r)?xt(r,ur):_n(r)?[r]:mn(Wg(lt(r)))}function kP(r){var o=++qT;return lt(r)+o}var NP=au(function(r,o){return r+o},0),RP=df("ceil"),LP=au(function(r,o){return r/o},1),BP=df("floor");function MP(r){return r&&r.length?Qs(r,yn,Xc):n}function jP(r,o){return r&&r.length?Qs(r,Fe(o,2),Xc):n}function $P(r){return Dm(r,yn)}function UP(r,o){return Dm(r,Fe(o,2))}function HP(r){return r&&r.length?Qs(r,yn,ef):n}function WP(r,o){return r&&r.length?Qs(r,Fe(o,2),ef):n}var qP=au(function(r,o){return r*o},1),zP=df("round"),GP=au(function(r,o){return r-o},0);function VP(r){return r&&r.length?Mc(r,yn):0}function YP(r,o){return r&&r.length?Mc(r,Fe(o,2)):0}return P.after=gI,P.ary=ev,P.assign=rF,P.assignIn=pv,P.assignInWith=bu,P.assignWith=iF,P.at=oF,P.before=tv,P.bind=Af,P.bindAll=cP,P.bindKey=nv,P.castArray=OI,P.chain=Jg,P.chunk=B2,P.compact=M2,P.concat=j2,P.cond=fP,P.conforms=dP,P.constant=Ff,P.countBy=VD,P.create=aF,P.curry=rv,P.curryRight=iv,P.debounce=ov,P.defaults=sF,P.defaultsDeep=uF,P.defer=vI,P.delay=yI,P.difference=$2,P.differenceBy=U2,P.differenceWith=H2,P.drop=W2,P.dropRight=q2,P.dropRightWhile=z2,P.dropWhile=G2,P.fill=V2,P.filter=KD,P.flatMap=ZD,P.flatMapDeep=QD,P.flatMapDepth=eI,P.flatten=Vg,P.flattenDeep=Y2,P.flattenDepth=K2,P.flip=bI,P.flow=pP,P.flowRight=mP,P.fromPairs=X2,P.functions=mF,P.functionsIn=gF,P.groupBy=tI,P.initial=Z2,P.intersection=Q2,P.intersectionBy=eD,P.intersectionWith=tD,P.invert=yF,P.invertBy=bF,P.invokeMap=rI,P.iteratee=Pf,P.keyBy=iI,P.keys=Wt,P.keysIn=vn,P.map=hu,P.mapKeys=EF,P.mapValues=wF,P.matches=gP,P.matchesProperty=vP,P.memoize=mu,P.merge=CF,P.mergeWith=mv,P.method=yP,P.methodOf=bP,P.mixin=kf,P.negate=gu,P.nthArg=EP,P.omit=AF,P.omitBy=SF,P.once=xI,P.orderBy=oI,P.over=wP,P.overArgs=EI,P.overEvery=CP,P.overSome=AP,P.partial=Sf,P.partialRight=av,P.partition=aI,P.pick=_F,P.pickBy=gv,P.property=Cv,P.propertyOf=SP,P.pull=oD,P.pullAll=Kg,P.pullAllBy=aD,P.pullAllWith=sD,P.pullAt=uD,P.range=_P,P.rangeRight=TP,P.rearg=wI,P.reject=lI,P.remove=lD,P.rest=CI,P.reverse=wf,P.sampleSize=fI,P.set=OF,P.setWith=DF,P.shuffle=dI,P.slice=cD,P.sortBy=mI,P.sortedUniq=vD,P.sortedUniqBy=yD,P.split=ZF,P.spread=AI,P.tail=bD,P.take=xD,P.takeRight=ED,P.takeRightWhile=wD,P.takeWhile=CD,P.tap=MD,P.throttle=SI,P.thru=du,P.toArray=fv,P.toPairs=vv,P.toPairsIn=yv,P.toPath=PP,P.toPlainObject=hv,P.transform=IF,P.unary=_I,P.union=AD,P.unionBy=SD,P.unionWith=_D,P.uniq=TD,P.uniqBy=OD,P.uniqWith=DD,P.unset=FF,P.unzip=Cf,P.unzipWith=Xg,P.update=PF,P.updateWith=kF,P.values=po,P.valuesIn=NF,P.without=ID,P.words=Ev,P.wrap=TI,P.xor=FD,P.xorBy=PD,P.xorWith=kD,P.zip=ND,P.zipObject=RD,P.zipObjectDeep=LD,P.zipWith=BD,P.entries=vv,P.entriesIn=yv,P.extend=pv,P.extendWith=bu,kf(P,P),P.add=NP,P.attempt=wv,P.camelCase=MF,P.capitalize=bv,P.ceil=RP,P.clamp=RF,P.clone=DI,P.cloneDeep=FI,P.cloneDeepWith=PI,P.cloneWith=II,P.conformsTo=kI,P.deburr=xv,P.defaultTo=hP,P.divide=LP,P.endsWith=jF,P.eq=Jn,P.escape=$F,P.escapeRegExp=UF,P.every=YD,P.find=XD,P.findIndex=zg,P.findKey=lF,P.findLast=JD,P.findLastIndex=Gg,P.findLastKey=cF,P.floor=BP,P.forEach=Zg,P.forEachRight=Qg,P.forIn=fF,P.forInRight=dF,P.forOwn=hF,P.forOwnRight=pF,P.get=Of,P.gt=NI,P.gte=RI,P.has=vF,P.hasIn=Df,P.head=Yg,P.identity=yn,P.includes=nI,P.indexOf=J2,P.inRange=LF,P.invoke=xF,P.isArguments=bi,P.isArray=$e,P.isArrayBuffer=LI,P.isArrayLike=gn,P.isArrayLikeObject=Ot,P.isBoolean=BI,P.isBuffer=Jr,P.isDate=MI,P.isElement=jI,P.isEmpty=$I,P.isEqual=UI,P.isEqualWith=HI,P.isError=_f,P.isFinite=WI,P.isFunction=Tr,P.isInteger=sv,P.isLength=vu,P.isMap=uv,P.isMatch=qI,P.isMatchWith=zI,P.isNaN=GI,P.isNative=VI,P.isNil=KI,P.isNull=YI,P.isNumber=lv,P.isObject=wt,P.isObjectLike=At,P.isPlainObject=ba,P.isRegExp=Tf,P.isSafeInteger=XI,P.isSet=cv,P.isString=yu,P.isSymbol=_n,P.isTypedArray=ho,P.isUndefined=JI,P.isWeakMap=ZI,P.isWeakSet=QI,P.join=nD,P.kebabCase=HF,P.last=Hn,P.lastIndexOf=rD,P.lowerCase=WF,P.lowerFirst=qF,P.lt=eF,P.lte=tF,P.max=MP,P.maxBy=jP,P.mean=$P,P.meanBy=UP,P.min=HP,P.minBy=WP,P.stubArray=Rf,P.stubFalse=Lf,P.stubObject=OP,P.stubString=DP,P.stubTrue=IP,P.multiply=qP,P.nth=iD,P.noConflict=xP,P.noop=Nf,P.now=pu,P.pad=zF,P.padEnd=GF,P.padStart=VF,P.parseInt=YF,P.random=BF,P.reduce=sI,P.reduceRight=uI,P.repeat=KF,P.replace=XF,P.result=TF,P.round=zP,P.runInContext=H,P.sample=cI,P.size=hI,P.snakeCase=JF,P.some=pI,P.sortedIndex=fD,P.sortedIndexBy=dD,P.sortedIndexOf=hD,P.sortedLastIndex=pD,P.sortedLastIndexBy=mD,P.sortedLastIndexOf=gD,P.startCase=QF,P.startsWith=eP,P.subtract=GP,P.sum=VP,P.sumBy=YP,P.template=tP,P.times=FP,P.toFinite=Or,P.toInteger=ze,P.toLength=dv,P.toLower=nP,P.toNumber=Wn,P.toSafeInteger=nF,P.toString=lt,P.toUpper=rP,P.trim=iP,P.trimEnd=oP,P.trimStart=aP,P.truncate=sP,P.unescape=uP,P.uniqueId=kP,P.upperCase=lP,P.upperFirst=If,P.each=Zg,P.eachRight=Qg,P.first=Yg,kf(P,function(){var r={};return ar(P,function(o,c){ft.call(P.prototype,c)||(r[c]=o)}),r}(),{chain:!1}),P.VERSION=i,Bn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){P[r].placeholder=P}),Bn(["drop","take"],function(r,o){Je.prototype[r]=function(c){c=c===n?1:Bt(ze(c),0);var y=this.__filtered__&&!o?new Je(this):this.clone();return y.__filtered__?y.__takeCount__=tn(c,y.__takeCount__):y.__views__.push({size:tn(c,K),type:r+(y.__dir__<0?"Right":"")}),y},Je.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),Bn(["filter","map","takeWhile"],function(r,o){var c=o+1,y=c==te||c==xe;Je.prototype[r]=function(T){var k=this.clone();return k.__iteratees__.push({iteratee:Fe(T,3),type:c}),k.__filtered__=k.__filtered__||y,k}}),Bn(["head","last"],function(r,o){var c="take"+(o?"Right":"");Je.prototype[r]=function(){return this[c](1).value()[0]}}),Bn(["initial","tail"],function(r,o){var c="drop"+(o?"":"Right");Je.prototype[r]=function(){return this.__filtered__?new Je(this):this[c](1)}}),Je.prototype.compact=function(){return this.filter(yn)},Je.prototype.find=function(r){return this.filter(r).head()},Je.prototype.findLast=function(r){return this.reverse().find(r)},Je.prototype.invokeMap=Ve(function(r,o){return typeof r=="function"?new Je(this):this.map(function(c){return ha(c,r,o)})}),Je.prototype.reject=function(r){return this.filter(gu(Fe(r)))},Je.prototype.slice=function(r,o){r=ze(r);var c=this;return c.__filtered__&&(r>0||o<0)?new Je(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),o!==n&&(o=ze(o),c=o<0?c.dropRight(-o):c.take(o-r)),c)},Je.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},Je.prototype.toArray=function(){return this.take(K)},ar(Je.prototype,function(r,o){var c=/^(?:filter|find|map|reject)|While$/.test(o),y=/^(?:head|last)$/.test(o),T=P[y?"take"+(o=="last"?"Right":""):o],k=y||/^find/.test(o);T&&(P.prototype[o]=function(){var L=this.__wrapped__,$=y?[1]:arguments,W=L instanceof Je,oe=$[0],se=W||$e(L),ce=function(Xe){var Ze=T.apply(P,qr([Xe],$));return y&&be?Ze[0]:Ze};se&&c&&typeof oe=="function"&&oe.length!=1&&(W=se=!1);var be=this.__chain__,Ae=!!this.__actions__.length,Ne=k&&!be,Ge=W&&!Ae;if(!k&&se){L=Ge?L:new Je(this);var Re=r.apply(L,$);return Re.__actions__.push({func:du,args:[ce],thisArg:n}),new jn(Re,be)}return Ne&&Ge?r.apply(this,$):(Re=this.thru(ce),Ne?y?Re.value()[0]:Re.value():Re)})}),Bn(["pop","push","shift","sort","splice","unshift"],function(r){var o=Ms[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",y=/^(?:pop|shift)$/.test(r);P.prototype[r]=function(){var T=arguments;if(y&&!this.__chain__){var k=this.value();return o.apply($e(k)?k:[],T)}return this[c](function(L){return o.apply($e(L)?L:[],T)})}}),ar(Je.prototype,function(r,o){var c=P[o];if(c){var y=c.name+"";ft.call(so,y)||(so[y]=[]),so[y].push({name:o,func:c})}}),so[ou(n,D).name]=[{name:"wrapper",func:n}],Je.prototype.clone=uO,Je.prototype.reverse=lO,Je.prototype.value=cO,P.prototype.at=jD,P.prototype.chain=$D,P.prototype.commit=UD,P.prototype.next=HD,P.prototype.plant=qD,P.prototype.reverse=zD,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=GD,P.prototype.first=P.prototype.head,aa&&(P.prototype[aa]=WD),P},io=UT();fi?((fi.exports=io)._=io,Fc._=io):Vt._=io}).call(iy)}(bo,bo.exports)),bo.exports}var Fr=oy();const ay=e=>{const{globalDataContext:t,templateContext:n}=e,{path:i,value:a}=e.args;if(i===void 0)return;const s=Pn({currentPath:n.templatePath,dataLocation:i,globalDataContext:t,templateContext:n}),u=ut({valueToEvaluate:a,globalDataContext:t,templateContext:n});t==null||t.updateData(typeof u!="object"?u:Fr.cloneDeep(u),s,"add")};function dd(e,t){return function(){return e.apply(t,arguments)}}const{toString:sy}=Object.prototype,{getPrototypeOf:Nu}=Object,Ta=(e=>t=>{const n=sy.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qn=e=>(e=e.toLowerCase(),t=>Ta(t)===e),Oa=e=>t=>typeof t===e,{isArray:Ei}=Array,xo=Oa("undefined");function uy(e){return e!==null&&!xo(e)&&e.constructor!==null&&!xo(e.constructor)&&xn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hd=qn("ArrayBuffer");function ly(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hd(e.buffer),t}const cy=Oa("string"),xn=Oa("function"),pd=Oa("number"),Da=e=>e!==null&&typeof e=="object",fy=e=>e===!0||e===!1,Ia=e=>{if(Ta(e)!=="object")return!1;const t=Nu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},dy=qn("Date"),hy=qn("File"),py=qn("Blob"),my=qn("FileList"),gy=e=>Da(e)&&xn(e.pipe),vy=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||xn(e.append)&&((t=Ta(e))==="formdata"||t==="object"&&xn(e.toString)&&e.toString()==="[object FormData]"))},yy=qn("URLSearchParams"),[by,xy,Ey,wy]=["ReadableStream","Request","Response","Headers"].map(qn),Cy=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Eo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,a;if(typeof e!="object"&&(e=[e]),Ei(e))for(i=0,a=e.length;i<a;i++)t.call(null,e[i],i,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),u=s.length;let l;for(i=0;i<u;i++)l=s[i],t.call(null,e[l],l,e)}}function md(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,a;for(;i-- >0;)if(a=n[i],t===a.toLowerCase())return a;return null}const Zr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,gd=e=>!xo(e)&&e!==Zr;function Ru(){const{caseless:e}=gd(this)&&this||{},t={},n=(i,a)=>{const s=e&&md(t,a)||a;Ia(t[s])&&Ia(i)?t[s]=Ru(t[s],i):Ia(i)?t[s]=Ru({},i):Ei(i)?t[s]=i.slice():t[s]=i};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Eo(arguments[i],n);return t}const Ay=(e,t,n,{allOwnKeys:i}={})=>(Eo(t,(a,s)=>{n&&xn(a)?e[s]=dd(a,n):e[s]=a},{allOwnKeys:i}),e),Sy=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_y=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ty=(e,t,n,i)=>{let a,s,u;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)u=a[s],(!i||i(u,e,t))&&!l[u]&&(t[u]=e[u],l[u]=!0);e=n!==!1&&Nu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Oy=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},Dy=e=>{if(!e)return null;if(Ei(e))return e;let t=e.length;if(!pd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Iy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Nu(Uint8Array)),Fy=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=i.next())&&!a.done;){const s=a.value;t.call(e,s[0],s[1])}},Py=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},ky=qn("HTMLFormElement"),Ny=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,a){return i.toUpperCase()+a}),vd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ry=qn("RegExp"),yd=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Eo(n,(a,s)=>{let u;(u=t(a,s,e))!==!1&&(i[s]=u||a)}),Object.defineProperties(e,i)},Ly=e=>{yd(e,(t,n)=>{if(xn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(xn(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},By=(e,t)=>{const n={},i=a=>{a.forEach(s=>{n[s]=!0})};return Ei(e)?i(e):i(String(e).split(t)),n},My=()=>{},jy=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function $y(e){return!!(e&&xn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Uy=e=>{const t=new Array(10),n=(i,a)=>{if(Da(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[a]=i;const s=Ei(i)?[]:{};return Eo(i,(u,l)=>{const f=n(u,a+1);!xo(f)&&(s[l]=f)}),t[a]=void 0,s}}return i};return n(e,0)},Hy=qn("AsyncFunction"),Wy=e=>e&&(Da(e)||xn(e))&&xn(e.then)&&xn(e.catch),bd=((e,t)=>e?setImmediate:t?((n,i)=>(Zr.addEventListener("message",({source:a,data:s})=>{a===Zr&&s===n&&i.length&&i.shift()()},!1),a=>{i.push(a),Zr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",xn(Zr.postMessage)),qy=typeof queueMicrotask<"u"?queueMicrotask.bind(Zr):typeof process<"u"&&process.nextTick||bd,Q={isArray:Ei,isArrayBuffer:hd,isBuffer:uy,isFormData:vy,isArrayBufferView:ly,isString:cy,isNumber:pd,isBoolean:fy,isObject:Da,isPlainObject:Ia,isReadableStream:by,isRequest:xy,isResponse:Ey,isHeaders:wy,isUndefined:xo,isDate:dy,isFile:hy,isBlob:py,isRegExp:Ry,isFunction:xn,isStream:gy,isURLSearchParams:yy,isTypedArray:Iy,isFileList:my,forEach:Eo,merge:Ru,extend:Ay,trim:Cy,stripBOM:Sy,inherits:_y,toFlatObject:Ty,kindOf:Ta,kindOfTest:qn,endsWith:Oy,toArray:Dy,forEachEntry:Fy,matchAll:Py,isHTMLForm:ky,hasOwnProperty:vd,hasOwnProp:vd,reduceDescriptors:yd,freezeMethods:Ly,toObjectSet:By,toCamelCase:Ny,noop:My,toFiniteNumber:jy,findKey:md,global:Zr,isContextDefined:gd,isSpecCompliantForm:$y,toJSONObject:Uy,isAsyncFn:Hy,isThenable:Wy,setImmediate:bd,asap:qy};function Ue(e,t,n,i,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status?a.status:null)}Q.inherits(Ue,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:Q.toJSONObject(this.config),code:this.code,status:this.status}}});const xd=Ue.prototype,Ed={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ed[e]={value:e}}),Object.defineProperties(Ue,Ed),Object.defineProperty(xd,"isAxiosError",{value:!0}),Ue.from=(e,t,n,i,a,s)=>{const u=Object.create(xd);return Q.toFlatObject(e,u,function(f){return f!==Error.prototype},l=>l!=="isAxiosError"),Ue.call(u,e.message,t,n,i,a),u.cause=e,u.name=e.name,s&&Object.assign(u,s),u};const zy=null;function Lu(e){return Q.isPlainObject(e)||Q.isArray(e)}function wd(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function Cd(e,t,n){return e?e.concat(t).map(function(a,s){return a=wd(a),!n&&s?"["+a+"]":a}).join(n?".":""):t}function Gy(e){return Q.isArray(e)&&!e.some(Lu)}const Vy=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function Fa(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,m){return!Q.isUndefined(m[w])});const i=n.metaTokens,a=n.visitor||h,s=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(a))throw new TypeError("visitor must be a function");function d(x){if(x===null)return"";if(Q.isDate(x))return x.toISOString();if(!f&&Q.isBlob(x))throw new Ue("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(x)||Q.isTypedArray(x)?f&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function h(x,w,m){let D=x;if(x&&!m&&typeof x=="object"){if(Q.endsWith(w,"{}"))w=i?w:w.slice(0,-2),x=JSON.stringify(x);else if(Q.isArray(x)&&Gy(x)||(Q.isFileList(x)||Q.endsWith(w,"[]"))&&(D=Q.toArray(x)))return w=wd(w),D.forEach(function(I,C){!(Q.isUndefined(I)||I===null)&&t.append(u===!0?Cd([w],C,s):u===null?w:w+"[]",d(I))}),!1}return Lu(x)?!0:(t.append(Cd(m,w,s),d(x)),!1)}const p=[],b=Object.assign(Vy,{defaultVisitor:h,convertValue:d,isVisitable:Lu});function E(x,w){if(!Q.isUndefined(x)){if(p.indexOf(x)!==-1)throw Error("Circular reference detected in "+w.join("."));p.push(x),Q.forEach(x,function(D,F){(!(Q.isUndefined(D)||D===null)&&a.call(t,D,Q.isString(F)?F.trim():F,w,b))===!0&&E(D,w?w.concat(F):[F])}),p.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Ad(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Bu(e,t){this._pairs=[],e&&Fa(e,this,t)}const Sd=Bu.prototype;Sd.append=function(t,n){this._pairs.push([t,n])},Sd.toString=function(t){const n=t?function(i){return t.call(this,i,Ad)}:Ad;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function Yy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _d(e,t,n){if(!t)return e;const i=n&&n.encode||Yy;Q.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let s;if(a?s=a(t,n):s=Q.isURLSearchParams(t)?t.toString():new Bu(t,n).toString(i),s){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Td{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(i){i!==null&&t(i)})}}const Od={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ky={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Bu,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Mu=typeof window<"u"&&typeof document<"u",ju=typeof navigator=="object"&&navigator||void 0,Xy=Mu&&(!ju||["ReactNative","NativeScript","NS"].indexOf(ju.product)<0),Jy=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zy=Mu&&window.location.href||"http://localhost",Kt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Mu,hasStandardBrowserEnv:Xy,hasStandardBrowserWebWorkerEnv:Jy,navigator:ju,origin:Zy},Symbol.toStringTag,{value:"Module"})),...Ky};function Qy(e,t){return Fa(e,new Kt.classes.URLSearchParams,Object.assign({visitor:function(n,i,a,s){return Kt.isNode&&Q.isBuffer(n)?(this.append(i,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function e1(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function t1(e){const t={},n=Object.keys(e);let i;const a=n.length;let s;for(i=0;i<a;i++)s=n[i],t[s]=e[s];return t}function Dd(e){function t(n,i,a,s){let u=n[s++];if(u==="__proto__")return!0;const l=Number.isFinite(+u),f=s>=n.length;return u=!u&&Q.isArray(a)?a.length:u,f?(Q.hasOwnProp(a,u)?a[u]=[a[u],i]:a[u]=i,!l):((!a[u]||!Q.isObject(a[u]))&&(a[u]=[]),t(n,i,a[u],s)&&Q.isArray(a[u])&&(a[u]=t1(a[u])),!l)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const n={};return Q.forEachEntry(e,(i,a)=>{t(e1(i),a,n,0)}),n}return null}function n1(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const wo={transitional:Od,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",a=i.indexOf("application/json")>-1,s=Q.isObject(t);if(s&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return a?JSON.stringify(Dd(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t)||Q.isReadableStream(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Qy(t,this.formSerializer).toString();if((l=Q.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Fa(l?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||a?(n.setContentType("application/json",!1),n1(t)):t}],transformResponse:[function(t){const n=this.transitional||wo.transitional,i=n&&n.forcedJSONParsing,a=this.responseType==="json";if(Q.isResponse(t)||Q.isReadableStream(t))return t;if(t&&Q.isString(t)&&(i&&!this.responseType||a)){const u=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(l){if(u)throw l.name==="SyntaxError"?Ue.from(l,Ue.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Kt.classes.FormData,Blob:Kt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{wo.headers[e]={}});const r1=Q.toObjectSet(["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"]),i1=e=>{const t={};let n,i,a;return e&&e.split(`
|
|
72
|
-
`).forEach(function(u){a=u.indexOf(":"),n=u.substring(0,a).trim().toLowerCase(),i=u.substring(a+1).trim(),!(!n||t[n]&&r1[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},Id=Symbol("internals");function
|
|
73
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(a=>i.set(a)),i}static accessor(t){const i=(this[Id]=this[Id]={accessors:{}}).accessors,a=this.prototype;function s(u){const l=Co(u);i[l]||(u1(a,u),i[l]=!0)}return Q.isArray(t)?t.forEach(s):s(t),this}};fn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(fn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}}),Q.freezeMethods(fn);function Uu(e,t){const n=this||wo,i=t||n,a=fn.from(i.headers);let s=i.data;return Q.forEach(e,function(l){s=l.call(n,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function Fd(e){return!!(e&&e.__CANCEL__)}function wi(e,t,n){Ue.call(this,e??"canceled",Ue.ERR_CANCELED,t,n),this.name="CanceledError"}Q.inherits(wi,Ue,{__CANCEL__:!0});function Pd(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new Ue("Request failed with status code "+n.status,[Ue.ERR_BAD_REQUEST,Ue.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function l1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function c1(e,t){e=e||10;const n=new Array(e),i=new Array(e);let a=0,s=0,u;return t=t!==void 0?t:1e3,function(f){const d=Date.now(),h=i[s];u||(u=d),n[a]=f,i[a]=d;let p=s,b=0;for(;p!==a;)b+=n[p++],p=p%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),d-u<t)return;const E=h&&d-h;return E?Math.round(b*1e3/E):void 0}}function f1(e,t){let n=0,i=1e3/t,a,s;const u=(d,h=Date.now())=>{n=h,a=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const h=Date.now(),p=h-n;p>=i?u(d,h):(a=d,s||(s=setTimeout(()=>{s=null,u(a)},i-p)))},()=>a&&u(a)]}const ka=(e,t,n=3)=>{let i=0;const a=c1(50,250);return f1(s=>{const u=s.loaded,l=s.lengthComputable?s.total:void 0,f=u-i,d=a(f),h=u<=l;i=u;const p={loaded:u,total:l,progress:l?u/l:void 0,bytes:f,rate:d||void 0,estimated:d&&l&&h?(l-u)/d:void 0,event:s,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},kd=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},Nd=e=>(...t)=>Q.asap(()=>e(...t)),d1=Kt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Kt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Kt.origin),Kt.navigator&&/(msie|trident)/i.test(Kt.navigator.userAgent)):()=>!0,h1=Kt.hasStandardBrowserEnv?{write(e,t,n,i,a,s){const u=[e+"="+encodeURIComponent(t)];Q.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),Q.isString(i)&&u.push("path="+i),Q.isString(a)&&u.push("domain="+a),s===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function p1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function m1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Rd(e,t,n){let i=!p1(t);return e&&(i||n==!1)?m1(e,t):t}const Ld=e=>e instanceof fn?{...e}:e;function Qr(e,t){t=t||{};const n={};function i(d,h,p,b){return Q.isPlainObject(d)&&Q.isPlainObject(h)?Q.merge.call({caseless:b},d,h):Q.isPlainObject(h)?Q.merge({},h):Q.isArray(h)?h.slice():h}function a(d,h,p,b){if(Q.isUndefined(h)){if(!Q.isUndefined(d))return i(void 0,d,p,b)}else return i(d,h,p,b)}function s(d,h){if(!Q.isUndefined(h))return i(void 0,h)}function u(d,h){if(Q.isUndefined(h)){if(!Q.isUndefined(d))return i(void 0,d)}else return i(void 0,h)}function l(d,h,p){if(p in t)return i(d,h);if(p in e)return i(void 0,d)}const f={url:s,method:s,data:s,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:l,headers:(d,h,p)=>a(Ld(d),Ld(h),p,!0)};return Q.forEach(Object.keys(Object.assign({},e,t)),function(h){const p=f[h]||a,b=p(e[h],t[h],h);Q.isUndefined(b)&&p!==l||(n[h]=b)}),n}const Bd=e=>{const t=Qr({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:s,headers:u,auth:l}=t;t.headers=u=fn.from(u),t.url=_d(Rd(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&u.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let f;if(Q.isFormData(n)){if(Kt.hasStandardBrowserEnv||Kt.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((f=u.getContentType())!==!1){const[d,...h]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];u.setContentType([d||"multipart/form-data",...h].join("; "))}}if(Kt.hasStandardBrowserEnv&&(i&&Q.isFunction(i)&&(i=i(t)),i||i!==!1&&d1(t.url))){const d=a&&s&&h1.read(s);d&&u.set(a,d)}return t},g1=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,i){const a=Bd(e);let s=a.data;const u=fn.from(a.headers).normalize();let{responseType:l,onUploadProgress:f,onDownloadProgress:d}=a,h,p,b,E,x;function w(){E&&E(),x&&x(),a.cancelToken&&a.cancelToken.unsubscribe(h),a.signal&&a.signal.removeEventListener("abort",h)}let m=new XMLHttpRequest;m.open(a.method.toUpperCase(),a.url,!0),m.timeout=a.timeout;function D(){if(!m)return;const I=fn.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),v={data:!l||l==="text"||l==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:I,config:e,request:m};Pd(function(O){n(O),w()},function(O){i(O),w()},v),m=null}"onloadend"in m?m.onloadend=D:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(D)},m.onabort=function(){m&&(i(new Ue("Request aborted",Ue.ECONNABORTED,e,m)),m=null)},m.onerror=function(){i(new Ue("Network Error",Ue.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let C=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const v=a.transitional||Od;a.timeoutErrorMessage&&(C=a.timeoutErrorMessage),i(new Ue(C,v.clarifyTimeoutError?Ue.ETIMEDOUT:Ue.ECONNABORTED,e,m)),m=null},s===void 0&&u.setContentType(null),"setRequestHeader"in m&&Q.forEach(u.toJSON(),function(C,v){m.setRequestHeader(v,C)}),Q.isUndefined(a.withCredentials)||(m.withCredentials=!!a.withCredentials),l&&l!=="json"&&(m.responseType=a.responseType),d&&([b,x]=ka(d,!0),m.addEventListener("progress",b)),f&&m.upload&&([p,E]=ka(f),m.upload.addEventListener("progress",p),m.upload.addEventListener("loadend",E)),(a.cancelToken||a.signal)&&(h=I=>{m&&(i(!I||I.type?new wi(null,e,m):I),m.abort(),m=null)},a.cancelToken&&a.cancelToken.subscribe(h),a.signal&&(a.signal.aborted?h():a.signal.addEventListener("abort",h)));const F=l1(a.url);if(F&&Kt.protocols.indexOf(F)===-1){i(new Ue("Unsupported protocol "+F+":",Ue.ERR_BAD_REQUEST,e));return}m.send(s||null)})},v1=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let i=new AbortController,a;const s=function(d){if(!a){a=!0,l();const h=d instanceof Error?d:this.reason;i.abort(h instanceof Ue?h:new wi(h instanceof Error?h.message:h))}};let u=t&&setTimeout(()=>{u=null,s(new Ue(`timeout ${t} of ms exceeded`,Ue.ETIMEDOUT))},t);const l=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:f}=i;return f.unsubscribe=()=>Q.asap(l),f}},y1=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let i=0,a;for(;i<n;)a=i+t,yield e.slice(i,a),i=a},b1=async function*(e,t){for await(const n of x1(e))yield*y1(n,t)},x1=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:i}=await t.read();if(n)break;yield i}}finally{await t.cancel()}},Md=(e,t,n,i)=>{const a=b1(e,t);let s=0,u,l=f=>{u||(u=!0,i&&i(f))};return new ReadableStream({async pull(f){try{const{done:d,value:h}=await a.next();if(d){l(),f.close();return}let p=h.byteLength;if(n){let b=s+=p;n(b)}f.enqueue(new Uint8Array(h))}catch(d){throw l(d),d}},cancel(f){return l(f),a.return()}},{highWaterMark:2})},Na=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",jd=Na&&typeof ReadableStream=="function",E1=Na&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),$d=(e,...t)=>{try{return!!e(...t)}catch{return!1}},w1=jd&&$d(()=>{let e=!1;const t=new Request(Kt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ud=64*1024,Hu=jd&&$d(()=>Q.isReadableStream(new Response("").body)),Ra={stream:Hu&&(e=>e.body)};Na&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ra[t]&&(Ra[t]=Q.isFunction(e[t])?n=>n[t]():(n,i)=>{throw new Ue(`Response type '${t}' is not supported`,Ue.ERR_NOT_SUPPORT,i)})})})(new Response);const C1=async e=>{if(e==null)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e))return(await new Request(Kt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(e)||Q.isArrayBuffer(e))return e.byteLength;if(Q.isURLSearchParams(e)&&(e=e+""),Q.isString(e))return(await E1(e)).byteLength},A1=async(e,t)=>{const n=Q.toFiniteNumber(e.getContentLength());return n??C1(t)},Wu={http:zy,xhr:g1,fetch:Na&&(async e=>{let{url:t,method:n,data:i,signal:a,cancelToken:s,timeout:u,onDownloadProgress:l,onUploadProgress:f,responseType:d,headers:h,withCredentials:p="same-origin",fetchOptions:b}=Bd(e);d=d?(d+"").toLowerCase():"text";let E=v1([a,s&&s.toAbortSignal()],u),x;const w=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let m;try{if(f&&w1&&n!=="get"&&n!=="head"&&(m=await A1(h,i))!==0){let v=new Request(t,{method:"POST",body:i,duplex:"half"}),S;if(Q.isFormData(i)&&(S=v.headers.get("content-type"))&&h.setContentType(S),v.body){const[O,B]=kd(m,ka(Nd(f)));i=Md(v.body,Ud,O,B)}}Q.isString(p)||(p=p?"include":"omit");const D="credentials"in Request.prototype;x=new Request(t,{...b,signal:E,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:i,duplex:"half",credentials:D?p:void 0});let F=await fetch(x);const I=Hu&&(d==="stream"||d==="response");if(Hu&&(l||I&&w)){const v={};["status","statusText","headers"].forEach(G=>{v[G]=F[G]});const S=Q.toFiniteNumber(F.headers.get("content-length")),[O,B]=l&&kd(S,ka(Nd(l),!0))||[];F=new Response(Md(F.body,Ud,O,()=>{B&&B(),w&&w()}),v)}d=d||"text";let C=await Ra[Q.findKey(Ra,d)||"text"](F,e);return!I&&w&&w(),await new Promise((v,S)=>{Pd(v,S,{data:C,headers:fn.from(F.headers),status:F.status,statusText:F.statusText,config:e,request:x})})}catch(D){throw w&&w(),D&&D.name==="TypeError"&&/fetch/i.test(D.message)?Object.assign(new Ue("Network Error",Ue.ERR_NETWORK,e,x),{cause:D.cause||D}):Ue.from(D,D&&D.code,e,x)}})};Q.forEach(Wu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Hd=e=>`- ${e}`,S1=e=>Q.isFunction(e)||e===null||e===!1,Wd={getAdapter:e=>{e=Q.isArray(e)?e:[e];const{length:t}=e;let n,i;const a={};for(let s=0;s<t;s++){n=e[s];let u;if(i=n,!S1(n)&&(i=Wu[(u=String(n)).toLowerCase()],i===void 0))throw new Ue(`Unknown adapter '${u}'`);if(i)break;a[u||"#"+s]=i}if(!i){const s=Object.entries(a).map(([l,f])=>`adapter ${l} `+(f===!1?"is not supported by the environment":"is not available in the build"));let u=t?s.length>1?`since :
|
|
71
|
+
}`;var Ge=Cv(function(){return it(k,Ae+"return "+ce).apply(n,L)});if(Ge.source=ce,_f(Ge))throw Ge;return Ge}function tP(r){return lt(r).toLowerCase()}function nP(r){return lt(r).toUpperCase()}function rP(r,o,l){if(r=lt(r),r&&(l||o===n))return Fm(r);if(!r||!(o=Sn(o)))return r;var y=Kn(r),T=Kn(o),k=Pm(y,T),L=km(y,T)+1;return Xr(y,k,L).join("")}function iP(r,o,l){if(r=lt(r),r&&(l||o===n))return r.slice(0,Rm(r)+1);if(!r||!(o=Sn(o)))return r;var y=Kn(r),T=km(y,Kn(o))+1;return Xr(y,0,T).join("")}function oP(r,o,l){if(r=lt(r),r&&(l||o===n))return r.replace(en,"");if(!r||!(o=Sn(o)))return r;var y=Kn(r),T=Pm(y,Kn(o));return Xr(y,T).join("")}function aP(r,o){var l=q,y=V;if(Ct(o)){var T="separator"in o?o.separator:T;l="length"in o?ze(o.length):l,y="omission"in o?Sn(o.omission):y}r=lt(r);var k=r.length;if(no(r)){var L=Kn(r);k=L.length}if(l>=k)return r;var $=l-ro(y);if($<1)return y;var W=L?Xr(L,0,$).join(""):r.slice(0,$);if(T===n)return W+y;if(L&&($+=W.length-$),Tf(T)){if(r.slice($).search(T)){var oe,se=W;for(T.global||(T=Hc(T.source,lt(Ki.exec(T))+"g")),T.lastIndex=0;oe=T.exec(se);)var ce=oe.index;W=W.slice(0,ce===n?$:ce)}}else if(r.indexOf(Sn(T),$)!=$){var be=W.lastIndexOf(T);be>-1&&(W=W.slice(0,be))}return W+y}function sP(r){return r=lt(r),r&&Ut.test(r)?r.replace(Vi,LT):r}var uP=co(function(r,o,l){return r+(l?" ":"")+o.toUpperCase()}),If=wg("toUpperCase");function Ev(r,o,l){return r=lt(r),o=l?n:o,o===n?FT(r)?jT(r):CT(r):r.match(o)||[]}var Cv=Ve(function(r,o){try{return wn(r,n,o)}catch(l){return _f(l)?l:new je(l)}}),lP=Sr(function(r,o){return Bn(o,function(l){l=ur(l),wr(r,l,Af(r[l],r))}),r});function cP(r){var o=r==null?0:r.length,l=Fe();return r=o?xt(r,function(y){if(typeof y[1]!="function")throw new Mn(u);return[l(y[0]),y[1]]}):[],Ve(function(y){for(var T=-1;++T<o;){var k=r[T];if(wn(k[0],this,y))return wn(k[1],this,y)}})}function fP(r){return LO($n(r,p))}function Ff(r){return function(){return r}}function dP(r,o){return r==null||r!==r?o:r}var hP=Sg(),pP=Sg(!0);function yn(r){return r}function Pf(r){return tg(typeof r=="function"?r:$n(r,p))}function mP(r){return rg($n(r,p))}function gP(r,o){return ig(r,$n(o,p))}var vP=Ve(function(r,o){return function(l){return ha(l,r,o)}}),yP=Ve(function(r,o){return function(l){return ha(r,l,o)}});function kf(r,o,l){var y=Wt(o),T=eu(o,y);l==null&&!(Ct(o)&&(T.length||!y.length))&&(l=o,o=r,r=this,T=eu(o,Wt(o)));var k=!(Ct(l)&&"chain"in l)||!!l.chain,L=Tr(r);return Bn(T,function($){var W=o[$];r[$]=W,L&&(r.prototype[$]=function(){var oe=this.__chain__;if(k||oe){var se=r(this.__wrapped__),ce=se.__actions__=mn(this.__actions__);return ce.push({func:W,args:arguments,thisArg:r}),se.__chain__=oe,se}return W.apply(r,qr([this.value()],arguments))})}),r}function bP(){return Vt._===this&&(Vt._=zT),this}function Nf(){}function xP(r){return r=ze(r),Ve(function(o){return og(o,r)})}var EP=ff(xt),CP=ff(_m),wP=ff(Rc);function wv(r){return yf(r)?Lc(ur(r)):QO(r)}function AP(r){return function(o){return r==null?n:gi(r,o)}}var SP=Tg(),_P=Tg(!0);function Rf(){return[]}function Lf(){return!1}function TP(){return{}}function OP(){return""}function DP(){return!0}function IP(r,o){if(r=ze(r),r<1||r>fe)return[];var l=K,y=tn(r,K);o=Fe(o),r-=K;for(var T=jc(y,o);++l<r;)o(l);return T}function FP(r){return $e(r)?xt(r,ur):_n(r)?[r]:mn(Wg(lt(r)))}function PP(r){var o=++WT;return lt(r)+o}var kP=au(function(r,o){return r+o},0),NP=df("ceil"),RP=au(function(r,o){return r/o},1),LP=df("floor");function BP(r){return r&&r.length?Qs(r,yn,Xc):n}function MP(r,o){return r&&r.length?Qs(r,Fe(o,2),Xc):n}function jP(r){return Dm(r,yn)}function $P(r,o){return Dm(r,Fe(o,2))}function UP(r){return r&&r.length?Qs(r,yn,ef):n}function HP(r,o){return r&&r.length?Qs(r,Fe(o,2),ef):n}var WP=au(function(r,o){return r*o},1),qP=df("round"),zP=au(function(r,o){return r-o},0);function GP(r){return r&&r.length?Mc(r,yn):0}function VP(r,o){return r&&r.length?Mc(r,Fe(o,2)):0}return P.after=mI,P.ary=ev,P.assign=nF,P.assignIn=pv,P.assignInWith=bu,P.assignWith=rF,P.at=iF,P.before=tv,P.bind=Af,P.bindAll=lP,P.bindKey=nv,P.castArray=TI,P.chain=Jg,P.chunk=L2,P.compact=B2,P.concat=M2,P.cond=cP,P.conforms=fP,P.constant=Ff,P.countBy=GD,P.create=oF,P.curry=rv,P.curryRight=iv,P.debounce=ov,P.defaults=aF,P.defaultsDeep=sF,P.defer=gI,P.delay=vI,P.difference=j2,P.differenceBy=$2,P.differenceWith=U2,P.drop=H2,P.dropRight=W2,P.dropRightWhile=q2,P.dropWhile=z2,P.fill=G2,P.filter=YD,P.flatMap=JD,P.flatMapDeep=ZD,P.flatMapDepth=QD,P.flatten=Vg,P.flattenDeep=V2,P.flattenDepth=Y2,P.flip=yI,P.flow=hP,P.flowRight=pP,P.fromPairs=K2,P.functions=pF,P.functionsIn=mF,P.groupBy=eI,P.initial=J2,P.intersection=Z2,P.intersectionBy=Q2,P.intersectionWith=eD,P.invert=vF,P.invertBy=yF,P.invokeMap=nI,P.iteratee=Pf,P.keyBy=rI,P.keys=Wt,P.keysIn=vn,P.map=hu,P.mapKeys=xF,P.mapValues=EF,P.matches=mP,P.matchesProperty=gP,P.memoize=mu,P.merge=CF,P.mergeWith=mv,P.method=vP,P.methodOf=yP,P.mixin=kf,P.negate=gu,P.nthArg=xP,P.omit=wF,P.omitBy=AF,P.once=bI,P.orderBy=iI,P.over=EP,P.overArgs=xI,P.overEvery=CP,P.overSome=wP,P.partial=Sf,P.partialRight=av,P.partition=oI,P.pick=SF,P.pickBy=gv,P.property=wv,P.propertyOf=AP,P.pull=iD,P.pullAll=Kg,P.pullAllBy=oD,P.pullAllWith=aD,P.pullAt=sD,P.range=SP,P.rangeRight=_P,P.rearg=EI,P.reject=uI,P.remove=uD,P.rest=CI,P.reverse=Cf,P.sampleSize=cI,P.set=TF,P.setWith=OF,P.shuffle=fI,P.slice=lD,P.sortBy=pI,P.sortedUniq=gD,P.sortedUniqBy=vD,P.split=JF,P.spread=wI,P.tail=yD,P.take=bD,P.takeRight=xD,P.takeRightWhile=ED,P.takeWhile=CD,P.tap=BD,P.throttle=AI,P.thru=du,P.toArray=fv,P.toPairs=vv,P.toPairsIn=yv,P.toPath=FP,P.toPlainObject=hv,P.transform=DF,P.unary=SI,P.union=wD,P.unionBy=AD,P.unionWith=SD,P.uniq=_D,P.uniqBy=TD,P.uniqWith=OD,P.unset=IF,P.unzip=wf,P.unzipWith=Xg,P.update=FF,P.updateWith=PF,P.values=po,P.valuesIn=kF,P.without=DD,P.words=Ev,P.wrap=_I,P.xor=ID,P.xorBy=FD,P.xorWith=PD,P.zip=kD,P.zipObject=ND,P.zipObjectDeep=RD,P.zipWith=LD,P.entries=vv,P.entriesIn=yv,P.extend=pv,P.extendWith=bu,kf(P,P),P.add=kP,P.attempt=Cv,P.camelCase=BF,P.capitalize=bv,P.ceil=NP,P.clamp=NF,P.clone=OI,P.cloneDeep=II,P.cloneDeepWith=FI,P.cloneWith=DI,P.conformsTo=PI,P.deburr=xv,P.defaultTo=dP,P.divide=RP,P.endsWith=MF,P.eq=Jn,P.escape=jF,P.escapeRegExp=$F,P.every=VD,P.find=KD,P.findIndex=zg,P.findKey=uF,P.findLast=XD,P.findLastIndex=Gg,P.findLastKey=lF,P.floor=LP,P.forEach=Zg,P.forEachRight=Qg,P.forIn=cF,P.forInRight=fF,P.forOwn=dF,P.forOwnRight=hF,P.get=Of,P.gt=kI,P.gte=NI,P.has=gF,P.hasIn=Df,P.head=Yg,P.identity=yn,P.includes=tI,P.indexOf=X2,P.inRange=RF,P.invoke=bF,P.isArguments=bi,P.isArray=$e,P.isArrayBuffer=RI,P.isArrayLike=gn,P.isArrayLikeObject=Ot,P.isBoolean=LI,P.isBuffer=Jr,P.isDate=BI,P.isElement=MI,P.isEmpty=jI,P.isEqual=$I,P.isEqualWith=UI,P.isError=_f,P.isFinite=HI,P.isFunction=Tr,P.isInteger=sv,P.isLength=vu,P.isMap=uv,P.isMatch=WI,P.isMatchWith=qI,P.isNaN=zI,P.isNative=GI,P.isNil=YI,P.isNull=VI,P.isNumber=lv,P.isObject=Ct,P.isObjectLike=At,P.isPlainObject=ba,P.isRegExp=Tf,P.isSafeInteger=KI,P.isSet=cv,P.isString=yu,P.isSymbol=_n,P.isTypedArray=ho,P.isUndefined=XI,P.isWeakMap=JI,P.isWeakSet=ZI,P.join=tD,P.kebabCase=UF,P.last=Hn,P.lastIndexOf=nD,P.lowerCase=HF,P.lowerFirst=WF,P.lt=QI,P.lte=eF,P.max=BP,P.maxBy=MP,P.mean=jP,P.meanBy=$P,P.min=UP,P.minBy=HP,P.stubArray=Rf,P.stubFalse=Lf,P.stubObject=TP,P.stubString=OP,P.stubTrue=DP,P.multiply=WP,P.nth=rD,P.noConflict=bP,P.noop=Nf,P.now=pu,P.pad=qF,P.padEnd=zF,P.padStart=GF,P.parseInt=VF,P.random=LF,P.reduce=aI,P.reduceRight=sI,P.repeat=YF,P.replace=KF,P.result=_F,P.round=qP,P.runInContext=H,P.sample=lI,P.size=dI,P.snakeCase=XF,P.some=hI,P.sortedIndex=cD,P.sortedIndexBy=fD,P.sortedIndexOf=dD,P.sortedLastIndex=hD,P.sortedLastIndexBy=pD,P.sortedLastIndexOf=mD,P.startCase=ZF,P.startsWith=QF,P.subtract=zP,P.sum=GP,P.sumBy=VP,P.template=eP,P.times=IP,P.toFinite=Or,P.toInteger=ze,P.toLength=dv,P.toLower=tP,P.toNumber=Wn,P.toSafeInteger=tF,P.toString=lt,P.toUpper=nP,P.trim=rP,P.trimEnd=iP,P.trimStart=oP,P.truncate=aP,P.unescape=sP,P.uniqueId=PP,P.upperCase=uP,P.upperFirst=If,P.each=Zg,P.eachRight=Qg,P.first=Yg,kf(P,function(){var r={};return ar(P,function(o,l){ft.call(P.prototype,l)||(r[l]=o)}),r}(),{chain:!1}),P.VERSION=i,Bn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){P[r].placeholder=P}),Bn(["drop","take"],function(r,o){Je.prototype[r]=function(l){l=l===n?1:Bt(ze(l),0);var y=this.__filtered__&&!o?new Je(this):this.clone();return y.__filtered__?y.__takeCount__=tn(l,y.__takeCount__):y.__views__.push({size:tn(l,K),type:r+(y.__dir__<0?"Right":"")}),y},Je.prototype[r+"Right"]=function(l){return this.reverse()[r](l).reverse()}}),Bn(["filter","map","takeWhile"],function(r,o){var l=o+1,y=l==te||l==xe;Je.prototype[r]=function(T){var k=this.clone();return k.__iteratees__.push({iteratee:Fe(T,3),type:l}),k.__filtered__=k.__filtered__||y,k}}),Bn(["head","last"],function(r,o){var l="take"+(o?"Right":"");Je.prototype[r]=function(){return this[l](1).value()[0]}}),Bn(["initial","tail"],function(r,o){var l="drop"+(o?"":"Right");Je.prototype[r]=function(){return this.__filtered__?new Je(this):this[l](1)}}),Je.prototype.compact=function(){return this.filter(yn)},Je.prototype.find=function(r){return this.filter(r).head()},Je.prototype.findLast=function(r){return this.reverse().find(r)},Je.prototype.invokeMap=Ve(function(r,o){return typeof r=="function"?new Je(this):this.map(function(l){return ha(l,r,o)})}),Je.prototype.reject=function(r){return this.filter(gu(Fe(r)))},Je.prototype.slice=function(r,o){r=ze(r);var l=this;return l.__filtered__&&(r>0||o<0)?new Je(l):(r<0?l=l.takeRight(-r):r&&(l=l.drop(r)),o!==n&&(o=ze(o),l=o<0?l.dropRight(-o):l.take(o-r)),l)},Je.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},Je.prototype.toArray=function(){return this.take(K)},ar(Je.prototype,function(r,o){var l=/^(?:filter|find|map|reject)|While$/.test(o),y=/^(?:head|last)$/.test(o),T=P[y?"take"+(o=="last"?"Right":""):o],k=y||/^find/.test(o);T&&(P.prototype[o]=function(){var L=this.__wrapped__,$=y?[1]:arguments,W=L instanceof Je,oe=$[0],se=W||$e(L),ce=function(Xe){var Ze=T.apply(P,qr([Xe],$));return y&&be?Ze[0]:Ze};se&&l&&typeof oe=="function"&&oe.length!=1&&(W=se=!1);var be=this.__chain__,Ae=!!this.__actions__.length,Ne=k&&!be,Ge=W&&!Ae;if(!k&&se){L=Ge?L:new Je(this);var Re=r.apply(L,$);return Re.__actions__.push({func:du,args:[ce],thisArg:n}),new jn(Re,be)}return Ne&&Ge?r.apply(this,$):(Re=this.thru(ce),Ne?y?Re.value()[0]:Re.value():Re)})}),Bn(["pop","push","shift","sort","splice","unshift"],function(r){var o=Ms[r],l=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",y=/^(?:pop|shift)$/.test(r);P.prototype[r]=function(){var T=arguments;if(y&&!this.__chain__){var k=this.value();return o.apply($e(k)?k:[],T)}return this[l](function(L){return o.apply($e(L)?L:[],T)})}}),ar(Je.prototype,function(r,o){var l=P[o];if(l){var y=l.name+"";ft.call(so,y)||(so[y]=[]),so[y].push({name:o,func:l})}}),so[ou(n,D).name]=[{name:"wrapper",func:n}],Je.prototype.clone=sO,Je.prototype.reverse=uO,Je.prototype.value=lO,P.prototype.at=MD,P.prototype.chain=jD,P.prototype.commit=$D,P.prototype.next=UD,P.prototype.plant=WD,P.prototype.reverse=qD,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=zD,P.prototype.first=P.prototype.head,aa&&(P.prototype[aa]=HD),P},io=$T();fi?((fi.exports=io)._=io,Fc._=io):Vt._=io}).call(iy)}(bo,bo.exports)),bo.exports}var Fr=oy();const ay=e=>{const{globalDataContext:t,templateContext:n}=e,{path:i,value:a}=e.args;if(i===void 0)return;const s=Pn({currentPath:n.templatePath,dataLocation:i,globalDataContext:t,templateContext:n}),u=ut({valueToEvaluate:a,globalDataContext:t,templateContext:n});t==null||t.updateData(typeof u!="object"?u:Fr.cloneDeep(u),s,"add")};function dd(e,t){return function(){return e.apply(t,arguments)}}const{toString:sy}=Object.prototype,{getPrototypeOf:Nu}=Object,Ta=(e=>t=>{const n=sy.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qn=e=>(e=e.toLowerCase(),t=>Ta(t)===e),Oa=e=>t=>typeof t===e,{isArray:Ei}=Array,xo=Oa("undefined");function uy(e){return e!==null&&!xo(e)&&e.constructor!==null&&!xo(e.constructor)&&xn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hd=qn("ArrayBuffer");function ly(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&hd(e.buffer),t}const cy=Oa("string"),xn=Oa("function"),pd=Oa("number"),Da=e=>e!==null&&typeof e=="object",fy=e=>e===!0||e===!1,Ia=e=>{if(Ta(e)!=="object")return!1;const t=Nu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},dy=qn("Date"),hy=qn("File"),py=qn("Blob"),my=qn("FileList"),gy=e=>Da(e)&&xn(e.pipe),vy=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||xn(e.append)&&((t=Ta(e))==="formdata"||t==="object"&&xn(e.toString)&&e.toString()==="[object FormData]"))},yy=qn("URLSearchParams"),[by,xy,Ey,Cy]=["ReadableStream","Request","Response","Headers"].map(qn),wy=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Eo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let i,a;if(typeof e!="object"&&(e=[e]),Ei(e))for(i=0,a=e.length;i<a;i++)t.call(null,e[i],i,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),u=s.length;let c;for(i=0;i<u;i++)c=s[i],t.call(null,e[c],c,e)}}function md(e,t){t=t.toLowerCase();const n=Object.keys(e);let i=n.length,a;for(;i-- >0;)if(a=n[i],t===a.toLowerCase())return a;return null}const Zr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,gd=e=>!xo(e)&&e!==Zr;function Ru(){const{caseless:e}=gd(this)&&this||{},t={},n=(i,a)=>{const s=e&&md(t,a)||a;Ia(t[s])&&Ia(i)?t[s]=Ru(t[s],i):Ia(i)?t[s]=Ru({},i):Ei(i)?t[s]=i.slice():t[s]=i};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Eo(arguments[i],n);return t}const Ay=(e,t,n,{allOwnKeys:i}={})=>(Eo(t,(a,s)=>{n&&xn(a)?e[s]=dd(a,n):e[s]=a},{allOwnKeys:i}),e),Sy=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),_y=(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Ty=(e,t,n,i)=>{let a,s,u;const c={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)u=a[s],(!i||i(u,e,t))&&!c[u]&&(t[u]=e[u],c[u]=!0);e=n!==!1&&Nu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Oy=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return i!==-1&&i===n},Dy=e=>{if(!e)return null;if(Ei(e))return e;let t=e.length;if(!pd(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Iy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Nu(Uint8Array)),Fy=(e,t)=>{const i=(e&&e[Symbol.iterator]).call(e);let a;for(;(a=i.next())&&!a.done;){const s=a.value;t.call(e,s[0],s[1])}},Py=(e,t)=>{let n;const i=[];for(;(n=e.exec(t))!==null;)i.push(n);return i},ky=qn("HTMLFormElement"),Ny=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,i,a){return i.toUpperCase()+a}),vd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ry=qn("RegExp"),yd=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Eo(n,(a,s)=>{let u;(u=t(a,s,e))!==!1&&(i[s]=u||a)}),Object.defineProperties(e,i)},Ly=e=>{yd(e,(t,n)=>{if(xn(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const i=e[n];if(xn(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},By=(e,t)=>{const n={},i=a=>{a.forEach(s=>{n[s]=!0})};return Ei(e)?i(e):i(String(e).split(t)),n},My=()=>{},jy=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function $y(e){return!!(e&&xn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Uy=e=>{const t=new Array(10),n=(i,a)=>{if(Da(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[a]=i;const s=Ei(i)?[]:{};return Eo(i,(u,c)=>{const f=n(u,a+1);!xo(f)&&(s[c]=f)}),t[a]=void 0,s}}return i};return n(e,0)},Hy=qn("AsyncFunction"),Wy=e=>e&&(Da(e)||xn(e))&&xn(e.then)&&xn(e.catch),bd=((e,t)=>e?setImmediate:t?((n,i)=>(Zr.addEventListener("message",({source:a,data:s})=>{a===Zr&&s===n&&i.length&&i.shift()()},!1),a=>{i.push(a),Zr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",xn(Zr.postMessage)),qy=typeof queueMicrotask<"u"?queueMicrotask.bind(Zr):typeof process<"u"&&process.nextTick||bd,Q={isArray:Ei,isArrayBuffer:hd,isBuffer:uy,isFormData:vy,isArrayBufferView:ly,isString:cy,isNumber:pd,isBoolean:fy,isObject:Da,isPlainObject:Ia,isReadableStream:by,isRequest:xy,isResponse:Ey,isHeaders:Cy,isUndefined:xo,isDate:dy,isFile:hy,isBlob:py,isRegExp:Ry,isFunction:xn,isStream:gy,isURLSearchParams:yy,isTypedArray:Iy,isFileList:my,forEach:Eo,merge:Ru,extend:Ay,trim:wy,stripBOM:Sy,inherits:_y,toFlatObject:Ty,kindOf:Ta,kindOfTest:qn,endsWith:Oy,toArray:Dy,forEachEntry:Fy,matchAll:Py,isHTMLForm:ky,hasOwnProperty:vd,hasOwnProp:vd,reduceDescriptors:yd,freezeMethods:Ly,toObjectSet:By,toCamelCase:Ny,noop:My,toFiniteNumber:jy,findKey:md,global:Zr,isContextDefined:gd,isSpecCompliantForm:$y,toJSONObject:Uy,isAsyncFn:Hy,isThenable:Wy,setImmediate:bd,asap:qy};function Ue(e,t,n,i,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),a&&(this.response=a,this.status=a.status?a.status:null)}Q.inherits(Ue,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:Q.toJSONObject(this.config),code:this.code,status:this.status}}});const xd=Ue.prototype,Ed={};["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","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Ed[e]={value:e}}),Object.defineProperties(Ue,Ed),Object.defineProperty(xd,"isAxiosError",{value:!0}),Ue.from=(e,t,n,i,a,s)=>{const u=Object.create(xd);return Q.toFlatObject(e,u,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),Ue.call(u,e.message,t,n,i,a),u.cause=e,u.name=e.name,s&&Object.assign(u,s),u};const zy=null;function Lu(e){return Q.isPlainObject(e)||Q.isArray(e)}function Cd(e){return Q.endsWith(e,"[]")?e.slice(0,-2):e}function wd(e,t,n){return e?e.concat(t).map(function(a,s){return a=Cd(a),!n&&s?"["+a+"]":a}).join(n?".":""):t}function Gy(e){return Q.isArray(e)&&!e.some(Lu)}const Vy=Q.toFlatObject(Q,{},null,function(t){return/^is[A-Z]/.test(t)});function Fa(e,t,n){if(!Q.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,m){return!Q.isUndefined(m[C])});const i=n.metaTokens,a=n.visitor||h,s=n.dots,u=n.indexes,f=(n.Blob||typeof Blob<"u"&&Blob)&&Q.isSpecCompliantForm(t);if(!Q.isFunction(a))throw new TypeError("visitor must be a function");function d(x){if(x===null)return"";if(Q.isDate(x))return x.toISOString();if(!f&&Q.isBlob(x))throw new Ue("Blob is not supported. Use a Buffer instead.");return Q.isArrayBuffer(x)||Q.isTypedArray(x)?f&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function h(x,C,m){let D=x;if(x&&!m&&typeof x=="object"){if(Q.endsWith(C,"{}"))C=i?C:C.slice(0,-2),x=JSON.stringify(x);else if(Q.isArray(x)&&Gy(x)||(Q.isFileList(x)||Q.endsWith(C,"[]"))&&(D=Q.toArray(x)))return C=Cd(C),D.forEach(function(I,w){!(Q.isUndefined(I)||I===null)&&t.append(u===!0?wd([C],w,s):u===null?C:C+"[]",d(I))}),!1}return Lu(x)?!0:(t.append(wd(m,C,s),d(x)),!1)}const p=[],b=Object.assign(Vy,{defaultVisitor:h,convertValue:d,isVisitable:Lu});function E(x,C){if(!Q.isUndefined(x)){if(p.indexOf(x)!==-1)throw Error("Circular reference detected in "+C.join("."));p.push(x),Q.forEach(x,function(D,F){(!(Q.isUndefined(D)||D===null)&&a.call(t,D,Q.isString(F)?F.trim():F,C,b))===!0&&E(D,C?C.concat(F):[F])}),p.pop()}}if(!Q.isObject(e))throw new TypeError("data must be an object");return E(e),t}function Ad(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Bu(e,t){this._pairs=[],e&&Fa(e,this,t)}const Sd=Bu.prototype;Sd.append=function(t,n){this._pairs.push([t,n])},Sd.toString=function(t){const n=t?function(i){return t.call(this,i,Ad)}:Ad;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function Yy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _d(e,t,n){if(!t)return e;const i=n&&n.encode||Yy;Q.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let s;if(a?s=a(t,n):s=Q.isURLSearchParams(t)?t.toString():new Bu(t,n).toString(i),s){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class Td{constructor(){this.handlers=[]}use(t,n,i){return this.handlers.push({fulfilled:t,rejected:n,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Q.forEach(this.handlers,function(i){i!==null&&t(i)})}}const Od={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ky={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Bu,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Mu=typeof window<"u"&&typeof document<"u",ju=typeof navigator=="object"&&navigator||void 0,Xy=Mu&&(!ju||["ReactNative","NativeScript","NS"].indexOf(ju.product)<0),Jy=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zy=Mu&&window.location.href||"http://localhost",Kt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Mu,hasStandardBrowserEnv:Xy,hasStandardBrowserWebWorkerEnv:Jy,navigator:ju,origin:Zy},Symbol.toStringTag,{value:"Module"})),...Ky};function Qy(e,t){return Fa(e,new Kt.classes.URLSearchParams,Object.assign({visitor:function(n,i,a,s){return Kt.isNode&&Q.isBuffer(n)?(this.append(i,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function e1(e){return Q.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function t1(e){const t={},n=Object.keys(e);let i;const a=n.length;let s;for(i=0;i<a;i++)s=n[i],t[s]=e[s];return t}function Dd(e){function t(n,i,a,s){let u=n[s++];if(u==="__proto__")return!0;const c=Number.isFinite(+u),f=s>=n.length;return u=!u&&Q.isArray(a)?a.length:u,f?(Q.hasOwnProp(a,u)?a[u]=[a[u],i]:a[u]=i,!c):((!a[u]||!Q.isObject(a[u]))&&(a[u]=[]),t(n,i,a[u],s)&&Q.isArray(a[u])&&(a[u]=t1(a[u])),!c)}if(Q.isFormData(e)&&Q.isFunction(e.entries)){const n={};return Q.forEachEntry(e,(i,a)=>{t(e1(i),a,n,0)}),n}return null}function n1(e,t,n){if(Q.isString(e))try{return(t||JSON.parse)(e),Q.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(n||JSON.stringify)(e)}const Co={transitional:Od,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const i=n.getContentType()||"",a=i.indexOf("application/json")>-1,s=Q.isObject(t);if(s&&Q.isHTMLForm(t)&&(t=new FormData(t)),Q.isFormData(t))return a?JSON.stringify(Dd(t)):t;if(Q.isArrayBuffer(t)||Q.isBuffer(t)||Q.isStream(t)||Q.isFile(t)||Q.isBlob(t)||Q.isReadableStream(t))return t;if(Q.isArrayBufferView(t))return t.buffer;if(Q.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Qy(t,this.formSerializer).toString();if((c=Q.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return Fa(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||a?(n.setContentType("application/json",!1),n1(t)):t}],transformResponse:[function(t){const n=this.transitional||Co.transitional,i=n&&n.forcedJSONParsing,a=this.responseType==="json";if(Q.isResponse(t)||Q.isReadableStream(t))return t;if(t&&Q.isString(t)&&(i&&!this.responseType||a)){const u=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(c){if(u)throw c.name==="SyntaxError"?Ue.from(c,Ue.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Kt.classes.FormData,Blob:Kt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Q.forEach(["delete","get","head","post","put","patch"],e=>{Co.headers[e]={}});const r1=Q.toObjectSet(["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"]),i1=e=>{const t={};let n,i,a;return e&&e.split(`
|
|
72
|
+
`).forEach(function(u){a=u.indexOf(":"),n=u.substring(0,a).trim().toLowerCase(),i=u.substring(a+1).trim(),!(!n||t[n]&&r1[n])&&(n==="set-cookie"?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t},Id=Symbol("internals");function wo(e){return e&&String(e).trim().toLowerCase()}function Pa(e){return e===!1||e==null?e:Q.isArray(e)?e.map(Pa):String(e)}function o1(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}const a1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function $u(e,t,n,i,a){if(Q.isFunction(i))return i.call(this,t,n);if(a&&(t=n),!!Q.isString(t)){if(Q.isString(i))return t.indexOf(i)!==-1;if(Q.isRegExp(i))return i.test(t)}}function s1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,i)=>n.toUpperCase()+i)}function u1(e,t){const n=Q.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+n,{value:function(a,s,u){return this[i].call(this,t,a,s,u)},configurable:!0})})}let fn=class{constructor(t){t&&this.set(t)}set(t,n,i){const a=this;function s(c,f,d){const h=wo(f);if(!h)throw new Error("header name must be a non-empty string");const p=Q.findKey(a,h);(!p||a[p]===void 0||d===!0||d===void 0&&a[p]!==!1)&&(a[p||f]=Pa(c))}const u=(c,f)=>Q.forEach(c,(d,h)=>s(d,h,f));if(Q.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(Q.isString(t)&&(t=t.trim())&&!a1(t))u(i1(t),n);else if(Q.isHeaders(t))for(const[c,f]of t.entries())s(f,c,i);else t!=null&&s(n,t,i);return this}get(t,n){if(t=wo(t),t){const i=Q.findKey(this,t);if(i){const a=this[i];if(!n)return a;if(n===!0)return o1(a);if(Q.isFunction(n))return n.call(this,a,i);if(Q.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=wo(t),t){const i=Q.findKey(this,t);return!!(i&&this[i]!==void 0&&(!n||$u(this,this[i],i,n)))}return!1}delete(t,n){const i=this;let a=!1;function s(u){if(u=wo(u),u){const c=Q.findKey(i,u);c&&(!n||$u(i,i[c],c,n))&&(delete i[c],a=!0)}}return Q.isArray(t)?t.forEach(s):s(t),a}clear(t){const n=Object.keys(this);let i=n.length,a=!1;for(;i--;){const s=n[i];(!t||$u(this,this[s],s,t,!0))&&(delete this[s],a=!0)}return a}normalize(t){const n=this,i={};return Q.forEach(this,(a,s)=>{const u=Q.findKey(i,s);if(u){n[u]=Pa(a),delete n[s];return}const c=t?s1(s):String(s).trim();c!==s&&delete n[s],n[c]=Pa(a),i[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Q.forEach(this,(i,a)=>{i!=null&&i!==!1&&(n[a]=t&&Q.isArray(i)?i.join(", "):i)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
73
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const i=new this(t);return n.forEach(a=>i.set(a)),i}static accessor(t){const i=(this[Id]=this[Id]={accessors:{}}).accessors,a=this.prototype;function s(u){const c=wo(u);i[c]||(u1(a,u),i[c]=!0)}return Q.isArray(t)?t.forEach(s):s(t),this}};fn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Q.reduceDescriptors(fn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[n]=i}}}),Q.freezeMethods(fn);function Uu(e,t){const n=this||Co,i=t||n,a=fn.from(i.headers);let s=i.data;return Q.forEach(e,function(c){s=c.call(n,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function Fd(e){return!!(e&&e.__CANCEL__)}function Ci(e,t,n){Ue.call(this,e??"canceled",Ue.ERR_CANCELED,t,n),this.name="CanceledError"}Q.inherits(Ci,Ue,{__CANCEL__:!0});function Pd(e,t,n){const i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new Ue("Request failed with status code "+n.status,[Ue.ERR_BAD_REQUEST,Ue.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function l1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function c1(e,t){e=e||10;const n=new Array(e),i=new Array(e);let a=0,s=0,u;return t=t!==void 0?t:1e3,function(f){const d=Date.now(),h=i[s];u||(u=d),n[a]=f,i[a]=d;let p=s,b=0;for(;p!==a;)b+=n[p++],p=p%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),d-u<t)return;const E=h&&d-h;return E?Math.round(b*1e3/E):void 0}}function f1(e,t){let n=0,i=1e3/t,a,s;const u=(d,h=Date.now())=>{n=h,a=null,s&&(clearTimeout(s),s=null),e.apply(null,d)};return[(...d)=>{const h=Date.now(),p=h-n;p>=i?u(d,h):(a=d,s||(s=setTimeout(()=>{s=null,u(a)},i-p)))},()=>a&&u(a)]}const ka=(e,t,n=3)=>{let i=0;const a=c1(50,250);return f1(s=>{const u=s.loaded,c=s.lengthComputable?s.total:void 0,f=u-i,d=a(f),h=u<=c;i=u;const p={loaded:u,total:c,progress:c?u/c:void 0,bytes:f,rate:d||void 0,estimated:d&&c&&h?(c-u)/d:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},n)},kd=(e,t)=>{const n=e!=null;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},Nd=e=>(...t)=>Q.asap(()=>e(...t)),d1=Kt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Kt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Kt.origin),Kt.navigator&&/(msie|trident)/i.test(Kt.navigator.userAgent)):()=>!0,h1=Kt.hasStandardBrowserEnv?{write(e,t,n,i,a,s){const u=[e+"="+encodeURIComponent(t)];Q.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),Q.isString(i)&&u.push("path="+i),Q.isString(a)&&u.push("domain="+a),s===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function p1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function m1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Rd(e,t,n){let i=!p1(t);return e&&(i||n==!1)?m1(e,t):t}const Ld=e=>e instanceof fn?{...e}:e;function Qr(e,t){t=t||{};const n={};function i(d,h,p,b){return Q.isPlainObject(d)&&Q.isPlainObject(h)?Q.merge.call({caseless:b},d,h):Q.isPlainObject(h)?Q.merge({},h):Q.isArray(h)?h.slice():h}function a(d,h,p,b){if(Q.isUndefined(h)){if(!Q.isUndefined(d))return i(void 0,d,p,b)}else return i(d,h,p,b)}function s(d,h){if(!Q.isUndefined(h))return i(void 0,h)}function u(d,h){if(Q.isUndefined(h)){if(!Q.isUndefined(d))return i(void 0,d)}else return i(void 0,h)}function c(d,h,p){if(p in t)return i(d,h);if(p in e)return i(void 0,d)}const f={url:s,method:s,data:s,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:c,headers:(d,h,p)=>a(Ld(d),Ld(h),p,!0)};return Q.forEach(Object.keys(Object.assign({},e,t)),function(h){const p=f[h]||a,b=p(e[h],t[h],h);Q.isUndefined(b)&&p!==c||(n[h]=b)}),n}const Bd=e=>{const t=Qr({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:a,xsrfCookieName:s,headers:u,auth:c}=t;t.headers=u=fn.from(u),t.url=_d(Rd(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&u.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(Q.isFormData(n)){if(Kt.hasStandardBrowserEnv||Kt.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((f=u.getContentType())!==!1){const[d,...h]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];u.setContentType([d||"multipart/form-data",...h].join("; "))}}if(Kt.hasStandardBrowserEnv&&(i&&Q.isFunction(i)&&(i=i(t)),i||i!==!1&&d1(t.url))){const d=a&&s&&h1.read(s);d&&u.set(a,d)}return t},g1=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(n,i){const a=Bd(e);let s=a.data;const u=fn.from(a.headers).normalize();let{responseType:c,onUploadProgress:f,onDownloadProgress:d}=a,h,p,b,E,x;function C(){E&&E(),x&&x(),a.cancelToken&&a.cancelToken.unsubscribe(h),a.signal&&a.signal.removeEventListener("abort",h)}let m=new XMLHttpRequest;m.open(a.method.toUpperCase(),a.url,!0),m.timeout=a.timeout;function D(){if(!m)return;const I=fn.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),v={data:!c||c==="text"||c==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:I,config:e,request:m};Pd(function(O){n(O),C()},function(O){i(O),C()},v),m=null}"onloadend"in m?m.onloadend=D:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(D)},m.onabort=function(){m&&(i(new Ue("Request aborted",Ue.ECONNABORTED,e,m)),m=null)},m.onerror=function(){i(new Ue("Network Error",Ue.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const v=a.transitional||Od;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),i(new Ue(w,v.clarifyTimeoutError?Ue.ETIMEDOUT:Ue.ECONNABORTED,e,m)),m=null},s===void 0&&u.setContentType(null),"setRequestHeader"in m&&Q.forEach(u.toJSON(),function(w,v){m.setRequestHeader(v,w)}),Q.isUndefined(a.withCredentials)||(m.withCredentials=!!a.withCredentials),c&&c!=="json"&&(m.responseType=a.responseType),d&&([b,x]=ka(d,!0),m.addEventListener("progress",b)),f&&m.upload&&([p,E]=ka(f),m.upload.addEventListener("progress",p),m.upload.addEventListener("loadend",E)),(a.cancelToken||a.signal)&&(h=I=>{m&&(i(!I||I.type?new Ci(null,e,m):I),m.abort(),m=null)},a.cancelToken&&a.cancelToken.subscribe(h),a.signal&&(a.signal.aborted?h():a.signal.addEventListener("abort",h)));const F=l1(a.url);if(F&&Kt.protocols.indexOf(F)===-1){i(new Ue("Unsupported protocol "+F+":",Ue.ERR_BAD_REQUEST,e));return}m.send(s||null)})},v1=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let i=new AbortController,a;const s=function(d){if(!a){a=!0,c();const h=d instanceof Error?d:this.reason;i.abort(h instanceof Ue?h:new Ci(h instanceof Error?h.message:h))}};let u=t&&setTimeout(()=>{u=null,s(new Ue(`timeout ${t} of ms exceeded`,Ue.ETIMEDOUT))},t);const c=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));const{signal:f}=i;return f.unsubscribe=()=>Q.asap(c),f}},y1=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let i=0,a;for(;i<n;)a=i+t,yield e.slice(i,a),i=a},b1=async function*(e,t){for await(const n of x1(e))yield*y1(n,t)},x1=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:i}=await t.read();if(n)break;yield i}}finally{await t.cancel()}},Md=(e,t,n,i)=>{const a=b1(e,t);let s=0,u,c=f=>{u||(u=!0,i&&i(f))};return new ReadableStream({async pull(f){try{const{done:d,value:h}=await a.next();if(d){c(),f.close();return}let p=h.byteLength;if(n){let b=s+=p;n(b)}f.enqueue(new Uint8Array(h))}catch(d){throw c(d),d}},cancel(f){return c(f),a.return()}},{highWaterMark:2})},Na=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",jd=Na&&typeof ReadableStream=="function",E1=Na&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),$d=(e,...t)=>{try{return!!e(...t)}catch{return!1}},C1=jd&&$d(()=>{let e=!1;const t=new Request(Kt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ud=64*1024,Hu=jd&&$d(()=>Q.isReadableStream(new Response("").body)),Ra={stream:Hu&&(e=>e.body)};Na&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ra[t]&&(Ra[t]=Q.isFunction(e[t])?n=>n[t]():(n,i)=>{throw new Ue(`Response type '${t}' is not supported`,Ue.ERR_NOT_SUPPORT,i)})})})(new Response);const w1=async e=>{if(e==null)return 0;if(Q.isBlob(e))return e.size;if(Q.isSpecCompliantForm(e))return(await new Request(Kt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Q.isArrayBufferView(e)||Q.isArrayBuffer(e))return e.byteLength;if(Q.isURLSearchParams(e)&&(e=e+""),Q.isString(e))return(await E1(e)).byteLength},A1=async(e,t)=>{const n=Q.toFiniteNumber(e.getContentLength());return n??w1(t)},Wu={http:zy,xhr:g1,fetch:Na&&(async e=>{let{url:t,method:n,data:i,signal:a,cancelToken:s,timeout:u,onDownloadProgress:c,onUploadProgress:f,responseType:d,headers:h,withCredentials:p="same-origin",fetchOptions:b}=Bd(e);d=d?(d+"").toLowerCase():"text";let E=v1([a,s&&s.toAbortSignal()],u),x;const C=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let m;try{if(f&&C1&&n!=="get"&&n!=="head"&&(m=await A1(h,i))!==0){let v=new Request(t,{method:"POST",body:i,duplex:"half"}),S;if(Q.isFormData(i)&&(S=v.headers.get("content-type"))&&h.setContentType(S),v.body){const[O,B]=kd(m,ka(Nd(f)));i=Md(v.body,Ud,O,B)}}Q.isString(p)||(p=p?"include":"omit");const D="credentials"in Request.prototype;x=new Request(t,{...b,signal:E,method:n.toUpperCase(),headers:h.normalize().toJSON(),body:i,duplex:"half",credentials:D?p:void 0});let F=await fetch(x);const I=Hu&&(d==="stream"||d==="response");if(Hu&&(c||I&&C)){const v={};["status","statusText","headers"].forEach(G=>{v[G]=F[G]});const S=Q.toFiniteNumber(F.headers.get("content-length")),[O,B]=c&&kd(S,ka(Nd(c),!0))||[];F=new Response(Md(F.body,Ud,O,()=>{B&&B(),C&&C()}),v)}d=d||"text";let w=await Ra[Q.findKey(Ra,d)||"text"](F,e);return!I&&C&&C(),await new Promise((v,S)=>{Pd(v,S,{data:w,headers:fn.from(F.headers),status:F.status,statusText:F.statusText,config:e,request:x})})}catch(D){throw C&&C(),D&&D.name==="TypeError"&&/fetch/i.test(D.message)?Object.assign(new Ue("Network Error",Ue.ERR_NETWORK,e,x),{cause:D.cause||D}):Ue.from(D,D&&D.code,e,x)}})};Q.forEach(Wu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Hd=e=>`- ${e}`,S1=e=>Q.isFunction(e)||e===null||e===!1,Wd={getAdapter:e=>{e=Q.isArray(e)?e:[e];const{length:t}=e;let n,i;const a={};for(let s=0;s<t;s++){n=e[s];let u;if(i=n,!S1(n)&&(i=Wu[(u=String(n)).toLowerCase()],i===void 0))throw new Ue(`Unknown adapter '${u}'`);if(i)break;a[u||"#"+s]=i}if(!i){const s=Object.entries(a).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build"));let u=t?s.length>1?`since :
|
|
74
74
|
`+s.map(Hd).join(`
|
|
75
|
-
`):" "+Hd(s[0]):"as no adapter specified";throw new Ue("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i},adapters:Wu};function qu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new
|
|
76
|
-
`+s):i.stack=s}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Qr(this.defaults,n);const{transitional:i,paramsSerializer:a,headers:s}=n;i!==void 0&&Ba.assertOptions(i,{silentJSONParsing:Qn.transitional(Qn.boolean),forcedJSONParsing:Qn.transitional(Qn.boolean),clarifyTimeoutError:Qn.transitional(Qn.boolean)},!1),a!=null&&(Q.isFunction(a)?n.paramsSerializer={serialize:a}:Ba.assertOptions(a,{encode:Qn.function,serialize:Qn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ba.assertOptions(n,{baseUrl:Qn.spelling("baseURL"),withXsrfToken:Qn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=s&&Q.merge(s.common,s[n.method]);s&&Q.forEach(["delete","get","head","post","put","patch","common"],x=>{delete s[x]}),n.headers=fn.concat(u,s);const l=[];let f=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(f=f&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});const d=[];this.interceptors.response.forEach(function(w){d.push(w.fulfilled,w.rejected)});let h,p=0,b;if(!f){const x=[qd.bind(this),void 0];for(x.unshift.apply(x,l),x.push.apply(x,d),b=x.length,h=Promise.resolve(n);p<b;)h=h.then(x[p++],x[p++]);return h}b=l.length;let E=n;for(p=0;p<b;){const x=l[p++],w=l[p++];try{E=x(E)}catch(m){w.call(this,m);break}}try{h=qd.call(this,E)}catch(x){return Promise.reject(x)}for(p=0,b=d.length;p<b;)h=h.then(d[p++],d[p++]);return h}getUri(t){t=Qr(this.defaults,t);const n=Rd(t.baseURL,t.url,t.allowAbsoluteUrls);return _d(n,t.params,t.paramsSerializer)}};Q.forEach(["delete","get","head","options"],function(t){ei.prototype[t]=function(n,i){return this.request(Qr(i||{},{method:t,url:n,data:(i||{}).data}))}}),Q.forEach(["post","put","patch"],function(t){function n(i){return function(s,u,l){return this.request(Qr(l||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:s,data:u}))}}ei.prototype[t]=n(),ei.prototype[t+"Form"]=n(!0)});let T1=class Sv{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const i=this;this.promise.then(a=>{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](a);i._listeners=null}),this.promise.then=a=>{let s;const u=new Promise(l=>{i.subscribe(l),s=l}).then(a);return u.cancel=function(){i.unsubscribe(s)},u},t(function(s,u,l){i.reason||(i.reason=new wi(s,u,l),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Sv(function(a){t=a}),cancel:t}}};function O1(e){return function(n){return e.apply(null,n)}}function D1(e){return Q.isObject(e)&&e.isAxiosError===!0}const zu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(zu).forEach(([e,t])=>{zu[t]=e});function Vd(e){const t=new ei(e),n=dd(ei.prototype.request,t);return Q.extend(n,ei.prototype,t,{allOwnKeys:!0}),Q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Vd(Qr(e,a))},n}const yt=Vd(wo);yt.Axios=ei,yt.CanceledError=wi,yt.CancelToken=T1,yt.isCancel=Fd,yt.VERSION=zd,yt.toFormData=Fa,yt.AxiosError=Ue,yt.Cancel=yt.CanceledError,yt.all=function(t){return Promise.all(t)},yt.spread=O1,yt.isAxiosError=D1,yt.mergeConfig=Qr,yt.AxiosHeaders=fn,yt.formToJSON=e=>Dd(Q.isHTMLForm(e)?new FormData(e):e),yt.getAdapter=Wd.getAdapter,yt.HttpStatusCode=zu,yt.default=yt;const{Axios:ik,AxiosError:ok,CanceledError:ak,isCancel:sk,CancelToken:uk,VERSION:lk,all:ck,Cancel:fk,isAxiosError:dk,spread:hk,toFormData:pk,AxiosHeaders:mk,HttpStatusCode:gk,formToJSON:vk,getAdapter:yk,mergeConfig:bk}=yt,Ci={addData:ay,fetchData:e=>{var p,b;const t=e==null?void 0:e.event,n=document.body;if(n.dataset.htmlBuilderIsSubmitting==="true")return;n.dataset.htmlBuilderIsSubmitting="true";const i=t.currentTarget;i!=null&&i.dataset&&(i.dataset.isSubmitting="true");const{globalDataContext:a,templateContext:s}=e,u=a.getRootContext?a.getRootContext():a,l=((p=e==null?void 0:e.args)==null?void 0:p.refreshAppOnResponse)??!0,f=ut({valueToEvaluate:(b=e==null?void 0:e.args)==null?void 0:b.url,globalDataContext:u,templateContext:s});if(!f)return;const d=u.headersForData??{},{setRawAppData:h}=u;yt.get(f,{headers:d}).then(E=>{l&&h(E.data)}).catch(E=>{console.log("reactionFunction:fetchData : Could not fetch. Reason: "+E.message)}).finally(()=>{delete n.dataset.htmlBuilderIsSubmitting,i!=null&&i.dataset&&delete i.dataset.isSubmitting})},moveData:e=>{const{globalDataContext:t,templateContext:n}=e,{path:i,target:a}=e.args;if(i===void 0&&a!=="currentTemplateData")return;let s;if(i)s=Pn({currentPath:n.templatePath,dataLocation:i,globalDataContext:t,templateContext:n});else{s=n.templatePath;let l=e.args.parentLevel??0;for(;l>0;){--l;const f=s.lastIndexOf(".");if(f<1)return;s=s.substring(0,f)}}const{increment:u}=e.args;t==null||t.updateData({increment:u},s,"move")},postMessage:e=>{var s,u,l,f,d,h,p,b,E,x,w;const n={parent:window.parent,self:window}[((s=e==null?void 0:e.args)==null?void 0:s.messageTarget)??"parent"]??window,i=((u=e==null?void 0:e.args)==null?void 0:u.targetOrigin)??window.location.origin,a=is({globalDataContext:e.globalDataContext,templateContext:e.templateContext,valueToEvaluate:(l=e==null?void 0:e.args)==null?void 0:l.message});if(((f=e==null?void 0:e.args)==null?void 0:f.on)==="change"&&typeof a=="object"&&((d=e==null?void 0:e.args)!=null&&d.includeChangedValue)&&((p=(h=e==null?void 0:e.event)==null?void 0:h.target)==null?void 0:p.nodeName)==="INPUT"){let m;switch((E=(b=e==null?void 0:e.event)==null?void 0:b.target)==null?void 0:E.type){case"checkbox":m=(w=(x=e==null?void 0:e.event)==null?void 0:x.target)==null?void 0:w.checked;break}a.changedValue=m}n&&i&&n.postMessage(a,i)},redirectNow:e=>{const{globalDataContext:t,templateContext:n}=e,{to:i}=e.args;!i||typeof i!="string"||(window.location.href=ut({valueToEvaluate:i,globalDataContext:t,templateContext:n}))},removeData:e=>{const{globalDataContext:t,templateContext:n}=e,{path:i,target:a}=e.args;if(i===void 0&&a!=="currentTemplateData")return;let s;if(i)s=Pn({currentPath:n.templatePath,dataLocation:i,globalDataContext:t,templateContext:n});else{s=n.templatePath;let u=e.args.parentLevel??0;for(;u>0;){--u;const l=s.lastIndexOf(".");if(l<1)return;s=s.substring(0,l)}}t==null||t.updateData(void 0,s,"remove")},setClipboardData:async e=>{var a;const{globalDataContext:t,templateContext:n}=e,i=ut({valueToEvaluate:(a=e==null?void 0:e.args)==null?void 0:a.value,globalDataContext:t,templateContext:n});if(typeof i=="string")try{await navigator.clipboard.writeText(i.toString())}catch(s){console.error("Failed to copy data to the clipboard:",s)}},setData:e=>{const{globalDataContext:t,templateContext:n}=e,{path:i,value:a}=e.args;if(i===void 0)return;const s=Pn({currentPath:n.templatePath,dataLocation:i,globalDataContext:t,templateContext:n}),u=ut({valueToEvaluate:a,globalDataContext:t,templateContext:n});t==null||t.updateData(typeof u!="object"?u:Fr.cloneDeep(u),s)},submitData:e=>{var E,x,w,m,D;const t=e==null?void 0:e.event,n=document.body;if(n.dataset.htmlBuilderIsSubmitting==="true")return;n.dataset.htmlBuilderIsSubmitting="true",(E=e==null?void 0:e.args)!=null&&E.submitSilently?n.dataset.htmlBuilderIsSubmittingSilently="true":delete n.dataset.htmlBuilderIsSubmittingSilently;const i=t==null?void 0:t.currentTarget;i!=null&&i.dataset&&(i.dataset.isSubmitting="true");const{globalDataContext:a,templateContext:s}=e,u=a.getRootContext?a.getRootContext():a,l=((x=e==null?void 0:e.args)==null?void 0:x.refreshAppOnResponse)??!0,f=ut({valueToEvaluate:(w=e==null?void 0:e.args)==null?void 0:w.url,globalDataContext:u,templateContext:s});if(!f)return;let d={};if((m=e==null?void 0:e.args)!=null&&m.hasOwnProperty("data")){let F=function(I,C){if(Array.isArray(I))return I.map(C);if(typeof I=="object"&&I!==null){const v=Object.entries(I).map(([S,O])=>[S,C(O)]);return Object.fromEntries(v)}else return C(I)?I:null};d=e.args.data,d=F(d,I=>ut({valueToEvaluate:I,globalDataContext:u,templateContext:s})),u.templateData.__state!==void 0&&(d.__state=u.templateData.__state)}else d.data=u.templateData,u.templateData.__state!==void 0&&(d.data.__state=u.templateData.__state);const h=u.headersForData??{},{setRawAppData:p}=u,b={method:((D=e==null?void 0:e.args)==null?void 0:D.httpMethod)??"post",url:f,data:d};h&&(b.headers=h),yt(b).then(F=>{l&&p(F.data)}).catch(F=>{console.log("reactionFunction:submitData : Could not submit. Reason: "+F.message)}).finally(()=>{delete n.dataset.htmlBuilderIsSubmitting,delete n.dataset.htmlBuilderIsSubmittingSilently,i!=null&&i.dataset&&delete i.dataset.isSubmitting})},triggerEvent:e=>{var f,d,h,p,b,E;const t=(f=e==null?void 0:e.args)==null?void 0:f.selector;if(!t||typeof t!="string"||t.length===0)return;const n=(d=e==null?void 0:e.args)==null?void 0:d.selectorBase;let i;if(typeof n>"u"?i=document:n==="currentEventTarget"?i=(h=e==null?void 0:e.event)==null?void 0:h.target:i=(b=(p=e==null?void 0:e.event)==null?void 0:p.target)==null?void 0:b.closest(n),!i)return;const a=(E=e==null?void 0:e.args)==null?void 0:E.eventName;if(!a||typeof a!="string"||a.length===0)return;const s=i.querySelectorAll(t),u=Object.entries(s),l=()=>{var m,D;const x=((D=(m=u.splice(0,1))==null?void 0:m[0])==null?void 0:D[1])??void 0;if(!x)return;const w=new Event(a,{bubbles:!0,cancelable:!1});x.dispatchEvent(w),Promise.resolve().then(l)};l()}},I1=e=>{const t=A.useContext(dt),n=A.useContext(ot),{actionProps:i}=e,a={};for(const[l,f]of Object.entries(i))a[l]=d=>{let h=!0;for(const p of f){if(!p)continue;const b=p.what&&(Ci[p.what]??null);if(b){if(b({args:p,event:d,globalDataContext:t,templateContext:n}),p.stopPropagation===!0)break;h=p.stopPropagation??!0}}h!==!1&&d.stopPropagation()};const s=l=>{if(!l)return l;const f=A.Children.toArray(l);return A.Children.map(f,d=>{var h;return d.type===A.Fragment?s((h=d==null?void 0:d.props)==null?void 0:h.children):typeof d!="object"||!A.isValidElement(d)?d:A.cloneElement(d,a)})},u=s(e.children);return R.jsx(R.Fragment,{children:u})},F1=e=>{const t=A.useContext(xu),n=A.useContext(dt),i=A.useContext(ot),a=(e==null?void 0:e.actionProps)??void 0;return A.useEffect(()=>{const s=a??void 0,u=(a==null?void 0:a.what)??void 0,l=(a==null?void 0:a.whenHashIs)??void 0,f=(a==null?void 0:a.whenHashWas)??void 0,d=is({globalDataContext:n,templateContext:i,valueToEvaluate:l}),h=is({globalDataContext:n,templateContext:i,valueToEvaluate:f}),p=b=>{if(typeof d=="string"&&new URL(b.newUrl).hash!==d||typeof h=="string"&&new URL(b.oldUrl).hash!==d)return;const E=u&&(Ci[u]??void 0);E&&E({args:s,event:b,globalDataContext:n,templateContext:i})};return t==null||t.addEventListener("hashchange",p),()=>{t==null||t.removeEventListener("hashchange",p)}},[t,n,a,i]),R.jsx(R.Fragment,{children:e.children})},P1=()=>null,k1=e=>{const t=A.useContext(xu),n=A.useContext(dt),i=A.useContext(ot),a=(e==null?void 0:e.actionProps)??void 0;return A.useEffect(()=>{const s=a??void 0,u=(a==null?void 0:a.what)??void 0,l=(a==null?void 0:a.whenMessageIs)??void 0,f=is({globalDataContext:n,templateContext:i,valueToEvaluate:l}),d=h=>{if(h.origin!==window.location.origin||!Fr.isEqual(h.data,f))return;const p=u&&(Ci[u]??void 0);p&&p({args:s,event:h,globalDataContext:n,templateContext:i})};return t==null||t.addEventListener("message",d),()=>{t==null||t.removeEventListener("message",d)}},[t,n,a,i]),R.jsx(R.Fragment,{children:e.children})};function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Gu.apply(null,arguments)}function Yd(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function Kd(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function N1(e){var t=R1(e,"string");return typeof t=="symbol"?t:String(t)}function R1(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Xd(e,t,n){var i=A.useRef(e!==void 0),a=A.useState(t),s=a[0],u=a[1],l=e!==void 0,f=i.current;return i.current=l,!l&&f&&s!==t&&u(t),[l?e:s,A.useCallback(function(d){for(var h=arguments.length,p=new Array(h>1?h-1:0),b=1;b<h;b++)p[b-1]=arguments[b];n&&n.apply(void 0,[d].concat(p)),u(d)},[n])]}function Ma(e,t){return Object.keys(t).reduce(function(n,i){var a,s=n,u=s[Kd(i)],l=s[i],f=Yd(s,[Kd(i),i].map(N1)),d=t[i],h=Xd(l,u,e[d]),p=h[0],b=h[1];return Gu({},f,(a={},a[i]=p,a[d]=b,a))},e)}function Vu(e,t){return Vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vu(e,t)}function L1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vu(e,t)}function Ai(e){return e&&e.ownerDocument||document}function B1(e){var t=Ai(e);return t&&t.defaultView||window}function M1(e,t){return B1(e).getComputedStyle(e,t)}var j1=/([A-Z])/g;function $1(e){return e.replace(j1,"-$1").toLowerCase()}var U1=/^ms-/;function ja(e){return $1(e).replace(U1,"-ms-")}var H1=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function W1(e){return!!(e&&H1.test(e))}function fr(e,t){var n="",i="";if(typeof t=="string")return e.style.getPropertyValue(ja(t))||M1(e).getPropertyValue(ja(t));Object.keys(t).forEach(function(a){var s=t[a];!s&&s!==0?e.style.removeProperty(ja(a)):W1(a)?i+=a+"("+s+") ":n+=ja(a)+": "+s+";"}),i&&(n+="transform: "+i+";"),e.style.cssText+=";"+n}const Jd={disabled:!1};var q1=process.env.NODE_ENV!=="production"?De.oneOfType([De.number,De.shape({enter:De.number,exit:De.number,appear:De.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&De.oneOfType([De.string,De.shape({enter:De.string,exit:De.string,active:De.string}),De.shape({enter:De.string,enterDone:De.string,enterActive:De.string,exit:De.string,exitDone:De.string,exitActive:De.string})]);const Zd=A.createContext(null);var z1=function(t){return t.scrollTop},Ao="unmounted",Pr="exited",dr="entering",kr="entered",$a="exiting",hr=function(e){L1(t,e);function t(i,a){var s;s=e.call(this,i,a)||this;var u=a,l=u&&!u.isMounting?i.enter:i.appear,f;return s.appearStatus=null,i.in?l?(f=Pr,s.appearStatus=dr):f=kr:i.unmountOnExit||i.mountOnEnter?f=Ao:f=Pr,s.state={status:f},s.nextCallback=null,s}t.getDerivedStateFromProps=function(a,s){var u=a.in;return u&&s.status===Ao?{status:Pr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var s=null;if(a!==this.props){var u=this.state.status;this.props.in?u!==dr&&u!==kr&&(s=dr):(u===dr||u===kr)&&(s=$a)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,s,u,l;return s=u=l=a,a!=null&&typeof a!="number"&&(s=a.exit,u=a.enter,l=a.appear!==void 0?a.appear:u),{exit:s,enter:u,appear:l}},n.updateStatus=function(a,s){if(a===void 0&&(a=!1),s!==null)if(this.cancelNextCallback(),s===dr){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:bn.findDOMNode(this);u&&z1(u)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pr&&this.setState({status:Ao})},n.performEnter=function(a){var s=this,u=this.props.enter,l=this.context?this.context.isMounting:a,f=this.props.nodeRef?[l]:[bn.findDOMNode(this),l],d=f[0],h=f[1],p=this.getTimeouts(),b=l?p.appear:p.enter;if(!a&&!u||Jd.disabled){this.safeSetState({status:kr},function(){s.props.onEntered(d)});return}this.props.onEnter(d,h),this.safeSetState({status:dr},function(){s.props.onEntering(d,h),s.onTransitionEnd(b,function(){s.safeSetState({status:kr},function(){s.props.onEntered(d,h)})})})},n.performExit=function(){var a=this,s=this.props.exit,u=this.getTimeouts(),l=this.props.nodeRef?void 0:bn.findDOMNode(this);if(!s||Jd.disabled){this.safeSetState({status:Pr},function(){a.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:$a},function(){a.props.onExiting(l),a.onTransitionEnd(u.exit,function(){a.safeSetState({status:Pr},function(){a.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,s){s=this.setNextCallback(s),this.setState(a,s)},n.setNextCallback=function(a){var s=this,u=!0;return this.nextCallback=function(l){u&&(u=!1,s.nextCallback=null,a(l))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},n.onTransitionEnd=function(a,s){this.setNextCallback(s);var u=this.props.nodeRef?this.props.nodeRef.current:bn.findDOMNode(this),l=a==null&&!this.props.addEndListener;if(!u||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],d=f[0],h=f[1];this.props.addEndListener(d,h)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===Ao)return null;var s=this.props,u=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var l=Yd(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return A.createElement(Zd.Provider,{value:null},typeof u=="function"?u(a,l):A.cloneElement(A.Children.only(u),l))},t}(A.Component);hr.contextType=Zd,hr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:De.shape({current:typeof Element>"u"?De.any:function(e,t,n,i,a,s){var u=e[t];return De.instanceOf(u&&"ownerDocument"in u?u.ownerDocument.defaultView.Element:Element)(e,t,n,i,a,s)}}),children:De.oneOfType([De.func.isRequired,De.element.isRequired]).isRequired,in:De.bool,mountOnEnter:De.bool,unmountOnExit:De.bool,appear:De.bool,enter:De.bool,exit:De.bool,timeout:function(t){var n=q1;t.addEndListener||(n=n.isRequired);for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.apply(void 0,[t].concat(a))},addEndListener:De.func,onEnter:De.func,onEntering:De.func,onEntered:De.func,onExit:De.func,onExiting:De.func,onExited:De.func}:{};function Si(){}hr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Si,onEntering:Si,onEntered:Si,onExit:Si,onExiting:Si,onExited:Si},hr.UNMOUNTED=Ao,hr.EXITED=Pr,hr.ENTERING=dr,hr.ENTERED=kr,hr.EXITING=$a;function Qd(e){return e.code==="Escape"||e.keyCode===27}function G1(){const e=ye.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function _i(e){if(!e||typeof e=="function")return null;const{major:t}=G1();return t>=19?e.props.ref:e.ref}const Ti=!!(typeof window<"u"&&window.document&&window.document.createElement);var Yu=!1,Ku=!1;try{var Xu={get passive(){return Yu=!0},get once(){return Ku=Yu=!0}};Ti&&(window.addEventListener("test",Xu,Xu),window.removeEventListener("test",Xu,!0))}catch{}function eh(e,t,n,i){if(i&&typeof i!="boolean"&&!Ku){var a=i.once,s=i.capture,u=n;!Ku&&a&&(u=n.__once||function l(f){this.removeEventListener(t,l,s),n.call(this,f)},n.__once=u),e.addEventListener(t,u,Yu?i:s)}e.addEventListener(t,n,i)}function Ju(e,t,n,i){var a=i&&typeof i!="boolean"?i.capture:i;e.removeEventListener(t,n,a),n.__once&&e.removeEventListener(t,n.__once,a)}function pr(e,t,n,i){return eh(e,t,n,i),function(){Ju(e,t,n,i)}}function V1(e,t,n,i){if(i===void 0&&(i=!0),e){var a=document.createEvent("HTMLEvents");a.initEvent(t,n,i),e.dispatchEvent(a)}}function Y1(e){var t=fr(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function K1(e,t,n){n===void 0&&(n=5);var i=!1,a=setTimeout(function(){i||V1(e,"transitionend",!0)},t+n),s=pr(e,"transitionend",function(){i=!0},{once:!0});return function(){clearTimeout(a),s()}}function th(e,t,n,i){n==null&&(n=Y1(e)||0);var a=K1(e,n,i),s=pr(e,"transitionend",t);return function(){a(),s()}}function nh(e,t){const n=fr(e,t)||"",i=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*i}function rh(e,t){const n=nh(e,"transitionDuration"),i=nh(e,"transitionDelay"),a=th(e,s=>{s.target===e&&(a(),t(s))},n+i)}function So(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...a){t.apply(this,a),n.apply(this,a)}},null)}function ih(e){e.offsetHeight}const oh=e=>!e||typeof e=="function"?e:t=>{e.current=t};function X1(e,t){const n=oh(e),i=oh(t);return a=>{n&&n(a),i&&i(a)}}function Ua(e,t){return A.useMemo(()=>X1(e,t),[e,t])}function Ha(e){return e&&"setState"in e?bn.findDOMNode(e):e??null}const ah=A.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:i,onExiting:a,onExited:s,addEndListener:u,children:l,childRef:f,...d},h)=>{const p=A.useRef(null),b=Ua(p,f),E=S=>{b(Ha(S))},x=S=>O=>{S&&p.current&&S(p.current,O)},w=A.useCallback(x(e),[e]),m=A.useCallback(x(t),[t]),D=A.useCallback(x(n),[n]),F=A.useCallback(x(i),[i]),I=A.useCallback(x(a),[a]),C=A.useCallback(x(s),[s]),v=A.useCallback(x(u),[u]);return R.jsx(hr,{ref:h,...d,onEnter:w,onEntered:D,onEntering:m,onExit:F,onExited:C,onExiting:I,addEndListener:v,nodeRef:p,children:typeof l=="function"?(S,O)=>l(S,{...O,ref:E}):A.cloneElement(l,{ref:E})})}),J1={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Z1(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,i=t[n],a=J1[e];return i+parseInt(fr(t,a[0]),10)+parseInt(fr(t,a[1]),10)}const Q1={[Pr]:"collapse",[$a]:"collapsing",[dr]:"collapsing",[kr]:"collapse show"},eb=A.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:i,onExiting:a,className:s,children:u,dimension:l="height",in:f=!1,timeout:d=300,mountOnEnter:h=!1,unmountOnExit:p=!1,appear:b=!1,getDimensionValue:E=Z1,...x},w)=>{const m=typeof l=="function"?l():l,D=A.useMemo(()=>So(S=>{S.style[m]="0"},e),[m,e]),F=A.useMemo(()=>So(S=>{const O=`scroll${m[0].toUpperCase()}${m.slice(1)}`;S.style[m]=`${S[O]}px`},t),[m,t]),I=A.useMemo(()=>So(S=>{S.style[m]=null},n),[m,n]),C=A.useMemo(()=>So(S=>{S.style[m]=`${E(m,S)}px`,ih(S)},i),[i,E,m]),v=A.useMemo(()=>So(S=>{S.style[m]=null},a),[m,a]);return R.jsx(ah,{ref:w,addEndListener:rh,...x,"aria-expanded":x.role?f:null,onEnter:D,onEntering:F,onEntered:I,onExit:C,onExiting:v,childRef:_i(u),in:f,timeout:d,mountOnEnter:h,unmountOnExit:p,appear:b,children:(S,O)=>A.cloneElement(u,{...O,className:Pe(s,u.props.className,Q1[S],m==="width"&&"collapse-horizontal")})})});function sh(e,t){return Array.isArray(e)?e.includes(t):e===t}const _o=ye.createContext({});_o.displayName="AccordionContext";const Zu=ye.forwardRef(({as:e="div",bsPrefix:t,className:n,children:i,eventKey:a,...s},u)=>{const{activeEventKey:l}=A.useContext(_o);return t=He(t,"accordion-collapse"),R.jsx(eb,{ref:u,in:sh(l,a),...s,className:Pe(n,t),children:R.jsx(e,{children:ye.Children.only(i)})})});Zu.displayName="AccordionCollapse";const Wa=ye.createContext({eventKey:""});Wa.displayName="AccordionItemContext";const uh=ye.forwardRef(({as:e="div",bsPrefix:t,className:n,onEnter:i,onEntering:a,onEntered:s,onExit:u,onExiting:l,onExited:f,...d},h)=>{t=He(t,"accordion-body");const{eventKey:p}=A.useContext(Wa);return R.jsx(Zu,{eventKey:p,onEnter:i,onEntering:a,onEntered:s,onExit:u,onExiting:l,onExited:f,children:R.jsx(e,{ref:h,...d,className:Pe(n,t)})})});uh.displayName="AccordionBody";function tb(e,t){const{activeEventKey:n,onSelect:i,alwaysOpen:a}=A.useContext(_o);return s=>{let u=e===n?null:e;a&&(Array.isArray(n)?n.includes(e)?u=n.filter(l=>l!==e):u=[...n,e]:u=[e]),i==null||i(u,s),t==null||t(s)}}const Qu=ye.forwardRef(({as:e="button",bsPrefix:t,className:n,onClick:i,...a},s)=>{t=He(t,"accordion-button");const{eventKey:u}=A.useContext(Wa),l=tb(u,i),{activeEventKey:f}=A.useContext(_o);return e==="button"&&(a.type="button"),R.jsx(e,{ref:s,onClick:l,...a,"aria-expanded":Array.isArray(f)?f.includes(u):u===f,className:Pe(n,t,!sh(f,u)&&"collapsed")})});Qu.displayName="AccordionButton";const lh=ye.forwardRef(({as:e="h2","aria-controls":t,bsPrefix:n,className:i,children:a,onClick:s,...u},l)=>(n=He(n,"accordion-header"),R.jsx(e,{ref:l,...u,className:Pe(i,n),children:R.jsx(Qu,{onClick:s,"aria-controls":t,children:a})})));lh.displayName="AccordionHeader";const ch=ye.forwardRef(({as:e="div",bsPrefix:t,className:n,eventKey:i,...a},s)=>{t=He(t,"accordion-item");const u=A.useMemo(()=>({eventKey:i}),[i]);return R.jsx(Wa.Provider,{value:u,children:R.jsx(e,{ref:s,...a,className:Pe(n,t)})})});ch.displayName="AccordionItem";const fh=ye.forwardRef((e,t)=>{const{as:n="div",activeKey:i,bsPrefix:a,className:s,onSelect:u,flush:l,alwaysOpen:f,...d}=Ma(e,{activeKey:"onSelect"}),h=He(a,"accordion"),p=A.useMemo(()=>({activeEventKey:i,onSelect:u,alwaysOpen:f}),[i,u,f]);return R.jsx(_o.Provider,{value:p,children:R.jsx(n,{ref:t,...d,className:Pe(s,h,l&&`${h}-flush`)})})});fh.displayName="Accordion";const qa=Object.assign(fh,{Button:Qu,Collapse:Zu,Item:ch,Header:lh,Body:uh});function nb(e){const t=A.useRef(e);return A.useEffect(()=>{t.current=e},[e]),t}function To(e){const t=nb(e);return A.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const dh=e=>ye.forwardRef((t,n)=>R.jsx("div",{...t,ref:n,className:Pe(t.className,e)})),hh=dh("h4");hh.displayName="DivStyledAsH4";const ph=ye.forwardRef(({className:e,bsPrefix:t,as:n=hh,...i},a)=>(t=He(t,"alert-heading"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));ph.displayName="AlertHeading";function mh(){return A.useState(null)}function rb(e){const t=A.useRef(e);return A.useEffect(()=>{t.current=e},[e]),t}function Dn(e){const t=rb(e);return A.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function gh(){const e=A.useRef(!0),t=A.useRef(()=>e.current);return A.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function ib(e){const t=A.useRef(null);return A.useEffect(()=>{t.current=e}),t.current}const ob=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",vh=typeof document<"u"||ob?A.useLayoutEffect:A.useEffect,ab=["as","disabled"];function sb(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function ub(e){return!e||e.trim()==="#"}function el({tagName:e,disabled:t,href:n,target:i,rel:a,role:s,onClick:u,tabIndex:l=0,type:f}){e||(n!=null||i!=null||a!=null?e="a":e="button");const d={tagName:e};if(e==="button")return[{type:f||"button",disabled:t},d];const h=b=>{if((t||e==="a"&&ub(n))&&b.preventDefault(),t){b.stopPropagation();return}u==null||u(b)},p=b=>{b.key===" "&&(b.preventDefault(),h(b))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:s??"button",disabled:void 0,tabIndex:t?void 0:l,href:n,target:e==="a"?i:void 0,"aria-disabled":t||void 0,rel:e==="a"?a:void 0,onClick:h,onKeyDown:p},d]}const yh=ye.forwardRef((e,t)=>{let{as:n,disabled:i}=e,a=sb(e,ab);const[s,{tagName:u}]=el(Object.assign({tagName:n,disabled:i},a));return R.jsx(u,Object.assign({},a,s,{ref:t}))});yh.displayName="Button";const lb=["onKeyDown"];function cb(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function fb(e){return!e||e.trim()==="#"}const za=ye.forwardRef((e,t)=>{let{onKeyDown:n}=e,i=cb(e,lb);const[a]=el(Object.assign({tagName:"a"},i)),s=Dn(u=>{a.onKeyDown(u),n==null||n(u)});return fb(i.href)||i.role==="button"?R.jsx("a",Object.assign({ref:t},i,a,{onKeyDown:s})):R.jsx("a",Object.assign({ref:t},i,{onKeyDown:n}))});za.displayName="Anchor";const bh=ye.forwardRef(({className:e,bsPrefix:t,as:n=za,...i},a)=>(t=He(t,"alert-link"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));bh.displayName="AlertLink";const db={[dr]:"show",[kr]:"show"},mr=ye.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:i,...a},s)=>{const u={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},l=A.useCallback((f,d)=>{ih(f),i==null||i(f,d)},[i]);return R.jsx(ah,{ref:s,addEndListener:rh,...u,onEnter:l,childRef:_i(t),children:(f,d)=>ye.cloneElement(t,{...d,className:Pe("fade",e,t.props.className,db[f],n[f])})})});mr.displayName="Fade";const hb={"aria-label":De.string,onClick:De.func,variant:De.oneOf(["white"])},Ga=ye.forwardRef(({className:e,variant:t,"aria-label":n="Close",...i},a)=>R.jsx("button",{ref:a,type:"button",className:Pe("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...i}));Ga.displayName="CloseButton",Ga.propTypes=hb;const xh=ye.forwardRef((e,t)=>{const{bsPrefix:n,show:i=!0,closeLabel:a="Close alert",closeVariant:s,className:u,children:l,variant:f="primary",onClose:d,dismissible:h,transition:p=mr,...b}=Ma(e,{show:"onClose"}),E=He(n,"alert"),x=To(D=>{d&&d(!1,D)}),w=p===!0?mr:p,m=R.jsxs("div",{role:"alert",...w?void 0:b,ref:t,className:Pe(u,E,f&&`${E}-${f}`,h&&`${E}-dismissible`),children:[h&&R.jsx(Ga,{onClick:x,"aria-label":a,variant:s}),l]});return w?R.jsx(w,{unmountOnExit:!0,...b,ref:void 0,in:i,children:m}):i?m:null});xh.displayName="Alert";const pb=Object.assign(xh,{Link:bh,Heading:ph}),Eh=ye.forwardRef(({bsPrefix:e,bg:t="primary",pill:n=!1,text:i,className:a,as:s="span",...u},l)=>{const f=He(e,"badge");return R.jsx(s,{ref:l,...u,className:Pe(a,f,n&&"rounded-pill",i&&`text-${i}`,t&&`bg-${t}`)})});Eh.displayName="Badge";const wh=ye.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:i,active:a=!1,disabled:s=!1,className:u,...l},f)=>{const d=He(t,"btn"),[h,{tagName:p}]=el({tagName:e,disabled:s,...l}),b=p;return R.jsx(b,{...h,...l,ref:f,disabled:s,className:Pe(u,d,a&&"active",n&&`${d}-${n}`,i&&`${d}-${i}`,l.href&&s&&"disabled")})});wh.displayName="Button";const Ch=ye.createContext(null);Ch.displayName="CardHeaderContext";function mb(){const e=A.useRef(!0),t=A.useRef(()=>e.current);return A.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function gb(e){const t=A.useRef(e);return t.current=e,t}function Ah(e){const t=gb(e);A.useEffect(()=>()=>t.current(),[])}const tl=2**31-1;function Sh(e,t,n){const i=n-Date.now();e.current=i<=tl?setTimeout(t,i):setTimeout(()=>Sh(e,t,n),tl)}function vb(){const e=mb(),t=A.useRef();return Ah(()=>clearTimeout(t.current)),A.useMemo(()=>{const n=()=>clearTimeout(t.current);function i(a,s=0){e()&&(n(),s<=tl?t.current=setTimeout(a,s):Sh(t,a,Date.now()+s))}return{set:i,clear:n,handleRef:t}},[])}var yb=Function.prototype.bind.call(Function.prototype.call,[].slice);function ti(e,t){return yb(e.querySelectorAll(t))}function bb(e,t,n){const i=A.useRef(e!==void 0),[a,s]=A.useState(t),u=e!==void 0,l=i.current;return i.current=u,!u&&l&&a!==t&&s(t),[u?e:a,A.useCallback((...f)=>{const[d,...h]=f;let p=n==null?void 0:n(d,...h);return s(d),p},[n])]}function xb(){const[,e]=A.useReducer(t=>t+1,0);return e}var _h=Object.prototype.hasOwnProperty;function Th(e,t,n){for(n of e.keys())if(Oo(n,t))return n}function Oo(e,t){var n,i,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((i=e.length)===t.length)for(;i--&&Oo(e[i],t[i]););return i===-1}if(n===Set){if(e.size!==t.size)return!1;for(i of e)if(a=i,a&&typeof a=="object"&&(a=Th(t,a),!a)||!t.has(a))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(i of e)if(a=i[0],a&&typeof a=="object"&&(a=Th(t,a),!a)||!Oo(i[1],t.get(a)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((i=e.byteLength)===t.byteLength)for(;i--&&e.getInt8(i)===t.getInt8(i););return i===-1}if(ArrayBuffer.isView(e)){if((i=e.byteLength)===t.byteLength)for(;i--&&e[i]===t[i];);return i===-1}if(!n||typeof e=="object"){i=0;for(n in e)if(_h.call(e,n)&&++i&&!_h.call(t,n)||!(n in t)||!Oo(e[n],t[n]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}function Eb(e){const t=gh();return[e[0],A.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var dn="top",In="bottom",Fn="right",hn="left",nl="auto",Do=[dn,In,Fn,hn],Oi="start",Io="end",wb="clippingParents",Oh="viewport",Fo="popper",Cb="reference",Dh=Do.reduce(function(e,t){return e.concat([t+"-"+Oi,t+"-"+Io])},[]),Ih=[].concat(Do,[nl]).reduce(function(e,t){return e.concat([t,t+"-"+Oi,t+"-"+Io])},[]),Ab="beforeRead",Sb="read",_b="afterRead",Tb="beforeMain",Ob="main",Db="afterMain",Ib="beforeWrite",Fb="write",Pb="afterWrite",kb=[Ab,Sb,_b,Tb,Ob,Db,Ib,Fb,Pb];function er(e){return e.split("-")[0]}function En(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ni(e){var t=En(e).Element;return e instanceof t||e instanceof Element}function tr(e){var t=En(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function rl(e){if(typeof ShadowRoot>"u")return!1;var t=En(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ri=Math.max,Va=Math.min,Di=Math.round;function il(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Fh(){return!/^((?!chrome|android).)*safari/i.test(il())}function Ii(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),a=1,s=1;t&&tr(e)&&(a=e.offsetWidth>0&&Di(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Di(i.height)/e.offsetHeight||1);var u=ni(e)?En(e):window,l=u.visualViewport,f=!Fh()&&n,d=(i.left+(f&&l?l.offsetLeft:0))/a,h=(i.top+(f&&l?l.offsetTop:0))/s,p=i.width/a,b=i.height/s;return{width:p,height:b,top:h,right:d+p,bottom:h+b,left:d,x:d,y:h}}function ol(e){var t=Ii(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Ph(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&rl(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Nr(e){return e?(e.nodeName||"").toLowerCase():null}function gr(e){return En(e).getComputedStyle(e)}function Nb(e){return["table","td","th"].indexOf(Nr(e))>=0}function Rr(e){return((ni(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ya(e){return Nr(e)==="html"?e:e.assignedSlot||e.parentNode||(rl(e)?e.host:null)||Rr(e)}function kh(e){return!tr(e)||gr(e).position==="fixed"?null:e.offsetParent}function Rb(e){var t=/firefox/i.test(il()),n=/Trident/i.test(il());if(n&&tr(e)){var i=gr(e);if(i.position==="fixed")return null}var a=Ya(e);for(rl(a)&&(a=a.host);tr(a)&&["html","body"].indexOf(Nr(a))<0;){var s=gr(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function Po(e){for(var t=En(e),n=kh(e);n&&Nb(n)&&gr(n).position==="static";)n=kh(n);return n&&(Nr(n)==="html"||Nr(n)==="body"&&gr(n).position==="static")?t:n||Rb(e)||t}function al(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ko(e,t,n){return ri(e,Va(t,n))}function Lb(e,t,n){var i=ko(e,t,n);return i>n?n:i}function Nh(){return{top:0,right:0,bottom:0,left:0}}function Rh(e){return Object.assign({},Nh(),e)}function Lh(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var Bb=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Rh(typeof t!="number"?t:Lh(t,Do))};function Mb(e){var t,n=e.state,i=e.name,a=e.options,s=n.elements.arrow,u=n.modifiersData.popperOffsets,l=er(n.placement),f=al(l),d=[hn,Fn].indexOf(l)>=0,h=d?"height":"width";if(!(!s||!u)){var p=Bb(a.padding,n),b=ol(s),E=f==="y"?dn:hn,x=f==="y"?In:Fn,w=n.rects.reference[h]+n.rects.reference[f]-u[f]-n.rects.popper[h],m=u[f]-n.rects.reference[f],D=Po(s),F=D?f==="y"?D.clientHeight||0:D.clientWidth||0:0,I=w/2-m/2,C=p[E],v=F-b[h]-p[x],S=F/2-b[h]/2+I,O=ko(C,S,v),B=f;n.modifiersData[i]=(t={},t[B]=O,t.centerOffset=O-S,t)}}function jb(e){var t=e.state,n=e.options,i=n.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Ph(t.elements.popper,a)&&(t.elements.arrow=a))}const $b={name:"arrow",enabled:!0,phase:"main",fn:Mb,effect:jb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fi(e){return e.split("-")[1]}var Ub={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hb(e,t){var n=e.x,i=e.y,a=t.devicePixelRatio||1;return{x:Di(n*a)/a||0,y:Di(i*a)/a||0}}function Bh(e){var t,n=e.popper,i=e.popperRect,a=e.placement,s=e.variation,u=e.offsets,l=e.position,f=e.gpuAcceleration,d=e.adaptive,h=e.roundOffsets,p=e.isFixed,b=u.x,E=b===void 0?0:b,x=u.y,w=x===void 0?0:x,m=typeof h=="function"?h({x:E,y:w}):{x:E,y:w};E=m.x,w=m.y;var D=u.hasOwnProperty("x"),F=u.hasOwnProperty("y"),I=hn,C=dn,v=window;if(d){var S=Po(n),O="clientHeight",B="clientWidth";if(S===En(n)&&(S=Rr(n),gr(S).position!=="static"&&l==="absolute"&&(O="scrollHeight",B="scrollWidth")),S=S,a===dn||(a===hn||a===Fn)&&s===Io){C=In;var G=p&&S===v&&v.visualViewport?v.visualViewport.height:S[O];w-=G-i.height,w*=f?1:-1}if(a===hn||(a===dn||a===In)&&s===Io){I=Fn;var q=p&&S===v&&v.visualViewport?v.visualViewport.width:S[B];E-=q-i.width,E*=f?1:-1}}var V=Object.assign({position:l},d&&Ub),ue=h===!0?Hb({x:E,y:w},En(n)):{x:E,y:w};if(E=ue.x,w=ue.y,f){var ne;return Object.assign({},V,(ne={},ne[C]=F?"0":"",ne[I]=D?"0":"",ne.transform=(v.devicePixelRatio||1)<=1?"translate("+E+"px, "+w+"px)":"translate3d("+E+"px, "+w+"px, 0)",ne))}return Object.assign({},V,(t={},t[C]=F?w+"px":"",t[I]=D?E+"px":"",t.transform="",t))}function Wb(e){var t=e.state,n=e.options,i=n.gpuAcceleration,a=i===void 0?!0:i,s=n.adaptive,u=s===void 0?!0:s,l=n.roundOffsets,f=l===void 0?!0:l,d={placement:er(t.placement),variation:Fi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Bh(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Bh(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const qb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Wb,data:{}};var Ka={passive:!0};function zb(e){var t=e.state,n=e.instance,i=e.options,a=i.scroll,s=a===void 0?!0:a,u=i.resize,l=u===void 0?!0:u,f=En(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(h){h.addEventListener("scroll",n.update,Ka)}),l&&f.addEventListener("resize",n.update,Ka),function(){s&&d.forEach(function(h){h.removeEventListener("scroll",n.update,Ka)}),l&&f.removeEventListener("resize",n.update,Ka)}}const Gb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zb,data:{}};var Vb={left:"right",right:"left",bottom:"top",top:"bottom"};function Xa(e){return e.replace(/left|right|bottom|top/g,function(t){return Vb[t]})}var Yb={start:"end",end:"start"};function Mh(e){return e.replace(/start|end/g,function(t){return Yb[t]})}function sl(e){var t=En(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function ul(e){return Ii(Rr(e)).left+sl(e).scrollLeft}function Kb(e,t){var n=En(e),i=Rr(e),a=n.visualViewport,s=i.clientWidth,u=i.clientHeight,l=0,f=0;if(a){s=a.width,u=a.height;var d=Fh();(d||!d&&t==="fixed")&&(l=a.offsetLeft,f=a.offsetTop)}return{width:s,height:u,x:l+ul(e),y:f}}function Xb(e){var t,n=Rr(e),i=sl(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=ri(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),u=ri(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-i.scrollLeft+ul(e),f=-i.scrollTop;return gr(a||n).direction==="rtl"&&(l+=ri(n.clientWidth,a?a.clientWidth:0)-s),{width:s,height:u,x:l,y:f}}function ll(e){var t=gr(e),n=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+i)}function jh(e){return["html","body","#document"].indexOf(Nr(e))>=0?e.ownerDocument.body:tr(e)&&ll(e)?e:jh(Ya(e))}function No(e,t){var n;t===void 0&&(t=[]);var i=jh(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),s=En(i),u=a?[s].concat(s.visualViewport||[],ll(i)?i:[]):i,l=t.concat(u);return a?l:l.concat(No(Ya(u)))}function cl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Jb(e,t){var n=Ii(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function $h(e,t,n){return t===Oh?cl(Kb(e,n)):ni(t)?Jb(t,n):cl(Xb(Rr(e)))}function Zb(e){var t=No(Ya(e)),n=["absolute","fixed"].indexOf(gr(e).position)>=0,i=n&&tr(e)?Po(e):e;return ni(i)?t.filter(function(a){return ni(a)&&Ph(a,i)&&Nr(a)!=="body"}):[]}function Qb(e,t,n,i){var a=t==="clippingParents"?Zb(e):[].concat(t),s=[].concat(a,[n]),u=s[0],l=s.reduce(function(f,d){var h=$h(e,d,i);return f.top=ri(h.top,f.top),f.right=Va(h.right,f.right),f.bottom=Va(h.bottom,f.bottom),f.left=ri(h.left,f.left),f},$h(e,u,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Uh(e){var t=e.reference,n=e.element,i=e.placement,a=i?er(i):null,s=i?Fi(i):null,u=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,f;switch(a){case dn:f={x:u,y:t.y-n.height};break;case In:f={x:u,y:t.y+t.height};break;case Fn:f={x:t.x+t.width,y:l};break;case hn:f={x:t.x-n.width,y:l};break;default:f={x:t.x,y:t.y}}var d=a?al(a):null;if(d!=null){var h=d==="y"?"height":"width";switch(s){case Oi:f[d]=f[d]-(t[h]/2-n[h]/2);break;case Io:f[d]=f[d]+(t[h]/2-n[h]/2);break}}return f}function Ro(e,t){t===void 0&&(t={});var n=t,i=n.placement,a=i===void 0?e.placement:i,s=n.strategy,u=s===void 0?e.strategy:s,l=n.boundary,f=l===void 0?wb:l,d=n.rootBoundary,h=d===void 0?Oh:d,p=n.elementContext,b=p===void 0?Fo:p,E=n.altBoundary,x=E===void 0?!1:E,w=n.padding,m=w===void 0?0:w,D=Rh(typeof m!="number"?m:Lh(m,Do)),F=b===Fo?Cb:Fo,I=e.rects.popper,C=e.elements[x?F:b],v=Qb(ni(C)?C:C.contextElement||Rr(e.elements.popper),f,h,u),S=Ii(e.elements.reference),O=Uh({reference:S,element:I,placement:a}),B=cl(Object.assign({},I,O)),G=b===Fo?B:S,q={top:v.top-G.top+D.top,bottom:G.bottom-v.bottom+D.bottom,left:v.left-G.left+D.left,right:G.right-v.right+D.right},V=e.modifiersData.offset;if(b===Fo&&V){var ue=V[a];Object.keys(q).forEach(function(ne){var te=[Fn,In].indexOf(ne)>=0?1:-1,le=[dn,In].indexOf(ne)>=0?"y":"x";q[ne]+=ue[le]*te})}return q}function ex(e,t){t===void 0&&(t={});var n=t,i=n.placement,a=n.boundary,s=n.rootBoundary,u=n.padding,l=n.flipVariations,f=n.allowedAutoPlacements,d=f===void 0?Ih:f,h=Fi(i),p=h?l?Dh:Dh.filter(function(x){return Fi(x)===h}):Do,b=p.filter(function(x){return d.indexOf(x)>=0});b.length===0&&(b=p);var E=b.reduce(function(x,w){return x[w]=Ro(e,{placement:w,boundary:a,rootBoundary:s,padding:u})[er(w)],x},{});return Object.keys(E).sort(function(x,w){return E[x]-E[w]})}function tx(e){if(er(e)===nl)return[];var t=Xa(e);return[Mh(e),t,Mh(t)]}function nx(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=n.mainAxis,s=a===void 0?!0:a,u=n.altAxis,l=u===void 0?!0:u,f=n.fallbackPlacements,d=n.padding,h=n.boundary,p=n.rootBoundary,b=n.altBoundary,E=n.flipVariations,x=E===void 0?!0:E,w=n.allowedAutoPlacements,m=t.options.placement,D=er(m),F=D===m,I=f||(F||!x?[Xa(m)]:tx(m)),C=[m].concat(I).reduce(function(z,J){return z.concat(er(J)===nl?ex(t,{placement:J,boundary:h,rootBoundary:p,padding:d,flipVariations:x,allowedAutoPlacements:w}):J)},[]),v=t.rects.reference,S=t.rects.popper,O=new Map,B=!0,G=C[0],q=0;q<C.length;q++){var V=C[q],ue=er(V),ne=Fi(V)===Oi,te=[dn,In].indexOf(ue)>=0,le=te?"width":"height",xe=Ro(t,{placement:V,boundary:h,rootBoundary:p,altBoundary:b,padding:d}),he=te?ne?Fn:hn:ne?In:dn;v[le]>S[le]&&(he=Xa(he));var fe=Xa(he),Ie=[];if(s&&Ie.push(xe[ue]<=0),l&&Ie.push(xe[he]<=0,xe[fe]<=0),Ie.every(function(z){return z})){G=V,B=!1;break}O.set(V,Ie)}if(B)for(var M=x?3:1,K=function(J){var de=C.find(function(ve){var ae=O.get(ve);if(ae)return ae.slice(0,J).every(function(Z){return Z})});if(de)return G=de,"break"},pe=M;pe>0;pe--){var j=K(pe);if(j==="break")break}t.placement!==G&&(t.modifiersData[i]._skip=!0,t.placement=G,t.reset=!0)}}const rx={name:"flip",enabled:!0,phase:"main",fn:nx,requiresIfExists:["offset"],data:{_skip:!1}};function Hh(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Wh(e){return[dn,Fn,In,hn].some(function(t){return e[t]>=0})}function ix(e){var t=e.state,n=e.name,i=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,u=Ro(t,{elementContext:"reference"}),l=Ro(t,{altBoundary:!0}),f=Hh(u,i),d=Hh(l,a,s),h=Wh(f),p=Wh(d);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":p})}const ox={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ix};function ax(e,t,n){var i=er(e),a=[hn,dn].indexOf(i)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=s[0],l=s[1];return u=u||0,l=(l||0)*a,[hn,Fn].indexOf(i)>=0?{x:l,y:u}:{x:u,y:l}}function sx(e){var t=e.state,n=e.options,i=e.name,a=n.offset,s=a===void 0?[0,0]:a,u=Ih.reduce(function(h,p){return h[p]=ax(p,t.rects,s),h},{}),l=u[t.placement],f=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=u}const ux={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sx};function lx(e){var t=e.state,n=e.name;t.modifiersData[n]=Uh({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const cx={name:"popperOffsets",enabled:!0,phase:"read",fn:lx,data:{}};function fx(e){return e==="x"?"y":"x"}function dx(e){var t=e.state,n=e.options,i=e.name,a=n.mainAxis,s=a===void 0?!0:a,u=n.altAxis,l=u===void 0?!1:u,f=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.padding,b=n.tether,E=b===void 0?!0:b,x=n.tetherOffset,w=x===void 0?0:x,m=Ro(t,{boundary:f,rootBoundary:d,padding:p,altBoundary:h}),D=er(t.placement),F=Fi(t.placement),I=!F,C=al(D),v=fx(C),S=t.modifiersData.popperOffsets,O=t.rects.reference,B=t.rects.popper,G=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,q=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ue={x:0,y:0};if(S){if(s){var ne,te=C==="y"?dn:hn,le=C==="y"?In:Fn,xe=C==="y"?"height":"width",he=S[C],fe=he+m[te],Ie=he-m[le],M=E?-B[xe]/2:0,K=F===Oi?O[xe]:B[xe],pe=F===Oi?-B[xe]:-O[xe],j=t.elements.arrow,z=E&&j?ol(j):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Nh(),de=J[te],ve=J[le],ae=ko(0,O[xe],z[xe]),Z=I?O[xe]/2-M-ae-de-q.mainAxis:K-ae-de-q.mainAxis,Y=I?-O[xe]/2+M+ae+ve+q.mainAxis:pe+ae+ve+q.mainAxis,me=t.elements.arrow&&Po(t.elements.arrow),ee=me?C==="y"?me.clientTop||0:me.clientLeft||0:0,Be=(ne=V==null?void 0:V[C])!=null?ne:0,ke=he+Z-Be-ee,Te=he+Y-Be,et=ko(E?Va(fe,ke):fe,he,E?ri(Ie,Te):Ie);S[C]=et,ue[C]=et-he}if(l){var Ye,Zt=C==="x"?dn:hn,zt=C==="x"?In:Fn,tt=S[v],Ke=v==="y"?"height":"width",Ce=tt+m[Zt],ct=tt-m[zt],bt=[dn,hn].indexOf(D)!==-1,Qt=(Ye=V==null?void 0:V[v])!=null?Ye:0,Me=bt?Ce:tt-O[Ke]-B[Ke]-Qt+q.altAxis,we=bt?tt+O[Ke]+B[Ke]-Qt-q.altAxis:ct,Le=E&&bt?Lb(Me,tt,we):ko(E?Me:Ce,tt,E?we:ct);S[v]=Le,ue[v]=Le-tt}t.modifiersData[i]=ue}}const hx={name:"preventOverflow",enabled:!0,phase:"main",fn:dx,requiresIfExists:["offset"]};function px(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mx(e){return e===En(e)||!tr(e)?sl(e):px(e)}function gx(e){var t=e.getBoundingClientRect(),n=Di(t.width)/e.offsetWidth||1,i=Di(t.height)/e.offsetHeight||1;return n!==1||i!==1}function vx(e,t,n){n===void 0&&(n=!1);var i=tr(t),a=tr(t)&&gx(t),s=Rr(t),u=Ii(e,a,n),l={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!n)&&((Nr(t)!=="body"||ll(s))&&(l=mx(t)),tr(t)?(f=Ii(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):s&&(f.x=ul(s))),{x:u.left+l.scrollLeft-f.x,y:u.top+l.scrollTop-f.y,width:u.width,height:u.height}}function yx(e){var t=new Map,n=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function a(s){n.add(s.name);var u=[].concat(s.requires||[],s.requiresIfExists||[]);u.forEach(function(l){if(!n.has(l)){var f=t.get(l);f&&a(f)}}),i.push(s)}return e.forEach(function(s){n.has(s.name)||a(s)}),i}function bx(e){var t=yx(e);return kb.reduce(function(n,i){return n.concat(t.filter(function(a){return a.phase===i}))},[])}function xx(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ex(e){var t=e.reduce(function(n,i){var a=n[i.name];return n[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var qh={placement:"bottom",modifiers:[],strategy:"absolute"};function zh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function wx(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,a=t.defaultOptions,s=a===void 0?qh:a;return function(l,f,d){d===void 0&&(d=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},qh,s),modifiersData:{},elements:{reference:l,popper:f},attributes:{},styles:{}},p=[],b=!1,E={state:h,setOptions:function(D){var F=typeof D=="function"?D(h.options):D;w(),h.options=Object.assign({},s,h.options,F),h.scrollParents={reference:ni(l)?No(l):l.contextElement?No(l.contextElement):[],popper:No(f)};var I=bx(Ex([].concat(i,h.options.modifiers)));return h.orderedModifiers=I.filter(function(C){return C.enabled}),x(),E.update()},forceUpdate:function(){if(!b){var D=h.elements,F=D.reference,I=D.popper;if(zh(F,I)){h.rects={reference:vx(F,Po(I),h.options.strategy==="fixed"),popper:ol(I)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(q){return h.modifiersData[q.name]=Object.assign({},q.data)});for(var C=0;C<h.orderedModifiers.length;C++){if(h.reset===!0){h.reset=!1,C=-1;continue}var v=h.orderedModifiers[C],S=v.fn,O=v.options,B=O===void 0?{}:O,G=v.name;typeof S=="function"&&(h=S({state:h,options:B,name:G,instance:E})||h)}}}},update:xx(function(){return new Promise(function(m){E.forceUpdate(),m(h)})}),destroy:function(){w(),b=!0}};if(!zh(l,f))return E;E.setOptions(d).then(function(m){!b&&d.onFirstUpdate&&d.onFirstUpdate(m)});function x(){h.orderedModifiers.forEach(function(m){var D=m.name,F=m.options,I=F===void 0?{}:F,C=m.effect;if(typeof C=="function"){var v=C({state:h,name:D,instance:E,options:I}),S=function(){};p.push(v||S)}})}function w(){p.forEach(function(m){return m()}),p=[]}return E}}const Cx=wx({defaultModifiers:[ox,cx,qb,Gb,ux,rx,hx,$b]}),Ax=["enabled","placement","strategy","modifiers"];function Sx(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}const _x={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Tx={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const i=(t.getAttribute("aria-describedby")||"").split(",").filter(a=>a.trim()!==n.id);i.length?t.setAttribute("aria-describedby",i.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:i}=e.elements,a=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&a==="tooltip"&&"setAttribute"in i){const s=i.getAttribute("aria-describedby");if(s&&s.split(",").indexOf(n.id)!==-1)return;i.setAttribute("aria-describedby",s?`${s},${n.id}`:n.id)}}},Ox=[];function Dx(e,t,n={}){let{enabled:i=!0,placement:a="bottom",strategy:s="absolute",modifiers:u=Ox}=n,l=Sx(n,Ax);const f=A.useRef(u),d=A.useRef(),h=A.useCallback(()=>{var m;(m=d.current)==null||m.update()},[]),p=A.useCallback(()=>{var m;(m=d.current)==null||m.forceUpdate()},[]),[b,E]=Eb(A.useState({placement:a,update:h,forceUpdate:p,attributes:{},styles:{popper:{},arrow:{}}})),x=A.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:m})=>{const D={},F={};Object.keys(m.elements).forEach(I=>{D[I]=m.styles[I],F[I]=m.attributes[I]}),E({state:m,styles:D,attributes:F,update:h,forceUpdate:p,placement:m.placement})}}),[h,p,E]),w=A.useMemo(()=>(Oo(f.current,u)||(f.current=u),f.current),[u]);return A.useEffect(()=>{!d.current||!i||d.current.setOptions({placement:a,strategy:s,modifiers:[...w,x,_x]})},[s,a,x,i,w]),A.useEffect(()=>{if(!(!i||e==null||t==null))return d.current=Cx(e,t,Object.assign({},l,{placement:a,strategy:s,modifiers:[...w,Tx,x]})),()=>{d.current!=null&&(d.current.destroy(),d.current=void 0,E(m=>Object.assign({},m,{attributes:{},styles:{popper:{}}})))}},[i,e,t]),b}function Lo(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const Gh=()=>{};function Ix(e){return e.button===0}function Fx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ja=e=>e&&("current"in e?e.current:e),Vh={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Px(e,t=Gh,{disabled:n,clickTrigger:i="click"}={}){const a=A.useRef(!1),s=A.useRef(!1),u=A.useCallback(d=>{const h=Ja(e);_a(!!h,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),a.current=!h||Fx(d)||!Ix(d)||!!Lo(h,d.target)||s.current,s.current=!1},[e]),l=Dn(d=>{const h=Ja(e);h&&Lo(h,d.target)?s.current=!0:s.current=!1}),f=Dn(d=>{a.current||t(d)});A.useEffect(()=>{var d,h;if(n||e==null)return;const p=Ai(Ja(e)),b=p.defaultView||window;let E=(d=b.event)!=null?d:(h=b.parent)==null?void 0:h.event,x=null;Vh[i]&&(x=pr(p,Vh[i],l,!0));const w=pr(p,i,u,!0),m=pr(p,i,F=>{if(F===E){E=void 0;return}f(F)});let D=[];return"ontouchstart"in p.documentElement&&(D=[].slice.call(p.body.children).map(F=>pr(F,"mousemove",Gh))),()=>{x==null||x(),w(),m(),D.forEach(F=>F())}},[e,n,i,u,l,f])}function kx(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function Nx(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Rx({enabled:e,enableEvents:t,placement:n,flip:i,offset:a,fixed:s,containerPadding:u,arrowElement:l,popperConfig:f={}}){var d,h,p,b;const E=kx(f.modifiers);return Object.assign({},f,{placement:n,enabled:e,strategy:s?"fixed":f.strategy,modifiers:Nx(Object.assign({},E,{eventListeners:{enabled:t,options:(d=E.eventListeners)==null?void 0:d.options},preventOverflow:Object.assign({},E.preventOverflow,{options:Object.assign({padding:u},(h=E.preventOverflow)==null?void 0:h.options)}),offset:{options:Object.assign({offset:a},(p=E.offset)==null?void 0:p.options)},arrow:Object.assign({},E.arrow,{enabled:!!l,options:Object.assign({},(b=E.arrow)==null?void 0:b.options,{element:l})}),flip:Object.assign({enabled:!!i},E.flip)}))})}const Za={prefix:String(Math.round(Math.random()*1e10)),current:0},Yh=A.createContext(Za),Lx=A.createContext(!1);let Bx=!!(typeof window<"u"&&window.document&&window.document.createElement),fl=new WeakMap;function Mx(e=!1){let t=A.useContext(Yh),n=A.useRef(null);if(n.current===null&&!e){var i,a;let s=(a=A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(i=a.ReactCurrentOwner)===null||i===void 0?void 0:i.current;if(s){let u=fl.get(s);u==null?fl.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==u.state&&(t.current=u.id,fl.delete(s))}n.current=++t.current}return n.current}function jx(e){let t=A.useContext(Yh);t===Za&&!Bx&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=Mx(!!e),i=t===Za&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${i}-${n}`}function $x(e){let t=A.useId(),[n]=A.useState(zx()),i=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Za.prefix}`;return e||`${i}-${t}`}const Ux=typeof A.useId=="function"?$x:jx;function Hx(){return!1}function Wx(){return!0}function qx(e){return()=>{}}function zx(){return typeof A.useSyncExternalStore=="function"?A.useSyncExternalStore(qx,Hx,Wx):A.useContext(Lx)}const Pi=ye.createContext(null),Bo=(e,t=null)=>e!=null?String(e):t||null,dl=ye.createContext(null);dl.displayName="NavContext";const Gx="data-rr-ui-",Vx="rrUi";function Qa(e){return`${Gx}${e}`}function Yx(e){return`${Vx}${e}`}const Kh=A.createContext(Ti?window:void 0);Kh.Provider;function hl(){return A.useContext(Kh)}const Kx=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Xx=typeof document<"u"||Kx?A.useLayoutEffect:A.useEffect,Xh=ye.createContext(null);Xh.displayName="NavbarContext";const Jh=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Jx(e,t){const n=Jh(e),i=Jh(t);return a=>{n&&n(a),i&&i(a)}}function Mo(e,t){return A.useMemo(()=>Jx(e,t),[e,t])}const ki=ye.createContext(null),Zx=["as","active","eventKey"];function Qx(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function Zh({key:e,onClick:t,active:n,id:i,role:a,disabled:s}){const u=A.useContext(Pi),l=A.useContext(dl),f=A.useContext(ki);let d=n;const h={role:a};if(l){!a&&l.role==="tablist"&&(h.role="tab");const p=l.getControllerId(e??null),b=l.getControlledId(e??null);h[Qa("event-key")]=e,h.id=p||i,d=n==null&&e!=null?l.activeKey===e:n,(d||!(f!=null&&f.unmountOnExit)&&!(f!=null&&f.mountOnEnter))&&(h["aria-controls"]=b)}return h.role==="tab"&&(h["aria-selected"]=d,d||(h.tabIndex=-1),s&&(h.tabIndex=-1,h["aria-disabled"]=!0)),h.onClick=Dn(p=>{s||(t==null||t(p),e!=null&&u&&!p.isPropagationStopped()&&u(e,p))}),[h,{isActive:d}]}const Qh=ye.forwardRef((e,t)=>{let{as:n=yh,active:i,eventKey:a}=e,s=Qx(e,Zx);const[u,l]=Zh(Object.assign({key:Bo(a,s.href),active:i},s));return u[Qa("active")]=l.isActive,R.jsx(n,Object.assign({},s,u,{ref:t}))});Qh.displayName="NavItem";const eE=["as","onSelect","activeKey","role","onKeyDown"];function tE(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}const ep=()=>{},tp=Qa("event-key"),np=ye.forwardRef((e,t)=>{let{as:n="div",onSelect:i,activeKey:a,role:s,onKeyDown:u}=e,l=tE(e,eE);const f=xb(),d=A.useRef(!1),h=A.useContext(Pi),p=A.useContext(ki);let b,E;p&&(s=s||"tablist",a=p.activeKey,b=p.getControlledId,E=p.getControllerId);const x=A.useRef(null),w=I=>{const C=x.current;if(!C)return null;const v=ti(C,`[${tp}]:not([aria-disabled=true])`),S=C.querySelector("[aria-selected=true]");if(!S||S!==document.activeElement)return null;const O=v.indexOf(S);if(O===-1)return null;let B=O+I;return B>=v.length&&(B=0),B<0&&(B=v.length-1),v[B]},m=(I,C)=>{I!=null&&(i==null||i(I,C),h==null||h(I,C))},D=I=>{if(u==null||u(I),!p)return;let C;switch(I.key){case"ArrowLeft":case"ArrowUp":C=w(-1);break;case"ArrowRight":case"ArrowDown":C=w(1);break;default:return}C&&(I.preventDefault(),m(C.dataset[Yx("EventKey")]||null,I),d.current=!0,f())};A.useEffect(()=>{if(x.current&&d.current){const I=x.current.querySelector(`[${tp}][aria-selected=true]`);I==null||I.focus()}d.current=!1});const F=Mo(t,x);return R.jsx(Pi.Provider,{value:m,children:R.jsx(dl.Provider,{value:{role:s,activeKey:Bo(a),getControlledId:b||ep,getControllerId:E||ep},children:R.jsx(n,Object.assign({},l,{onKeyDown:D,ref:F,role:s}))})})});np.displayName="Nav";const nE=Object.assign(np,{Item:Qh});var es;function rp(e){if((!es&&es!==0||e)&&Ti){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),es=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return es}function rE(){return A.useState(null)}function pl(e){e===void 0&&(e=Ai());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function iE(e){const t=A.useRef(e);return t.current=e,t}function oE(e){const t=iE(e);A.useEffect(()=>()=>t.current(),[])}function aE(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const ip=Qa("modal-open");class ml{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:i=!1}={}){this.handleContainerOverflow=n,this.isRTL=i,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return aE(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},i=this.isRTL?"paddingLeft":"paddingRight",a=this.getElement();t.style={overflow:a.style.overflow,[i]:a.style[i]},t.scrollBarWidth&&(n[i]=`${parseInt(fr(a,i)||"0",10)+t.scrollBarWidth}px`),a.setAttribute(ip,""),fr(a,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(ip),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const gl=(e,t)=>Ti?e==null?(t||Ai()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function vl(e,t){const n=hl(),[i,a]=A.useState(()=>gl(e,n==null?void 0:n.document));if(!i){const s=gl(e);s&&a(s)}return A.useEffect(()=>{},[t,i]),A.useEffect(()=>{const s=gl(e);s!==i&&a(s)},[e,i]),i}function yl({children:e,in:t,onExited:n,mountOnEnter:i,unmountOnExit:a}){const s=A.useRef(null),u=A.useRef(t),l=Dn(n);A.useEffect(()=>{t?u.current=!0:l(s.current)},[t,l]);const f=Mo(s,_i(e)),d=A.cloneElement(e,{ref:f});return t?d:a||!u.current&&i?null:d}const sE=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function uE(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function lE(e){let{onEnter:t,onEntering:n,onEntered:i,onExit:a,onExiting:s,onExited:u,addEndListener:l,children:f}=e,d=uE(e,sE);const h=A.useRef(null),p=Mo(h,_i(f)),b=C=>v=>{C&&h.current&&C(h.current,v)},E=A.useCallback(b(t),[t]),x=A.useCallback(b(n),[n]),w=A.useCallback(b(i),[i]),m=A.useCallback(b(a),[a]),D=A.useCallback(b(s),[s]),F=A.useCallback(b(u),[u]),I=A.useCallback(b(l),[l]);return Object.assign({},d,{nodeRef:h},t&&{onEnter:E},n&&{onEntering:x},i&&{onEntered:w},a&&{onExit:m},s&&{onExiting:D},u&&{onExited:F},l&&{addEndListener:I},{children:typeof f=="function"?(C,v)=>f(C,Object.assign({},v,{ref:p})):A.cloneElement(f,{ref:p})})}const cE=["component"];function fE(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}const dE=ye.forwardRef((e,t)=>{let{component:n}=e,i=fE(e,cE);const a=lE(i);return R.jsx(n,Object.assign({ref:t},a))});function hE({in:e,onTransition:t}){const n=A.useRef(null),i=A.useRef(!0),a=Dn(t);return vh(()=>{if(!n.current)return;let s=!1;return a({in:e,element:n.current,initial:i.current,isStale:()=>s}),()=>{s=!0}},[e,a]),vh(()=>(i.current=!1,()=>{i.current=!0}),[]),n}function pE({children:e,in:t,onExited:n,onEntered:i,transition:a}){const[s,u]=A.useState(!t);t&&s&&u(!1);const l=hE({in:!!t,onTransition:d=>{const h=()=>{d.isStale()||(d.in?i==null||i(d.element,d.initial):(u(!0),n==null||n(d.element)))};Promise.resolve(a(d)).then(h,p=>{throw d.in||u(!0),p})}}),f=Mo(l,_i(e));return s&&!t?null:A.cloneElement(e,{ref:f})}function bl(e,t,n){return e?R.jsx(dE,Object.assign({},n,{component:e})):t?R.jsx(pE,Object.assign({},n,{transition:t})):R.jsx(yl,Object.assign({},n))}const mE=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function gE(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}let xl;function vE(e){return xl||(xl=new ml({ownerDocument:e==null?void 0:e.document})),xl}function yE(e){const t=hl(),n=e||vE(t),i=A.useRef({dialog:null,backdrop:null});return Object.assign(i.current,{add:()=>n.add(i.current),remove:()=>n.remove(i.current),isTopModal:()=>n.isTopModal(i.current),setDialogRef:A.useCallback(a=>{i.current.dialog=a},[]),setBackdropRef:A.useCallback(a=>{i.current.backdrop=a},[])})}const op=A.forwardRef((e,t)=>{let{show:n=!1,role:i="dialog",className:a,style:s,children:u,backdrop:l=!0,keyboard:f=!0,onBackdropClick:d,onEscapeKeyDown:h,transition:p,runTransition:b,backdropTransition:E,runBackdropTransition:x,autoFocus:w=!0,enforceFocus:m=!0,restoreFocus:D=!0,restoreFocusOptions:F,renderDialog:I,renderBackdrop:C=Te=>R.jsx("div",Object.assign({},Te)),manager:v,container:S,onShow:O,onHide:B=()=>{},onExit:G,onExited:q,onExiting:V,onEnter:ue,onEntering:ne,onEntered:te}=e,le=gE(e,mE);const xe=hl(),he=vl(S),fe=yE(v),Ie=gh(),M=ib(n),[K,pe]=A.useState(!n),j=A.useRef(null);A.useImperativeHandle(t,()=>fe,[fe]),Ti&&!M&&n&&(j.current=pl(xe==null?void 0:xe.document)),n&&K&&pe(!1);const z=Dn(()=>{if(fe.add(),Y.current=pr(document,"keydown",ae),Z.current=pr(document,"focus",()=>setTimeout(de),!0),O&&O(),w){var Te,et;const Ye=pl((Te=(et=fe.dialog)==null?void 0:et.ownerDocument)!=null?Te:xe==null?void 0:xe.document);fe.dialog&&Ye&&!Lo(fe.dialog,Ye)&&(j.current=Ye,fe.dialog.focus())}}),J=Dn(()=>{if(fe.remove(),Y.current==null||Y.current(),Z.current==null||Z.current(),D){var Te;(Te=j.current)==null||Te.focus==null||Te.focus(F),j.current=null}});A.useEffect(()=>{!n||!he||z()},[n,he,z]),A.useEffect(()=>{K&&J()},[K,J]),oE(()=>{J()});const de=Dn(()=>{if(!m||!Ie()||!fe.isTopModal())return;const Te=pl(xe==null?void 0:xe.document);fe.dialog&&Te&&!Lo(fe.dialog,Te)&&fe.dialog.focus()}),ve=Dn(Te=>{Te.target===Te.currentTarget&&(d==null||d(Te),l===!0&&B())}),ae=Dn(Te=>{f&&Qd(Te)&&fe.isTopModal()&&(h==null||h(Te),Te.defaultPrevented||B())}),Z=A.useRef(),Y=A.useRef(),me=(...Te)=>{pe(!0),q==null||q(...Te)};if(!he)return null;const ee=Object.assign({role:i,ref:fe.setDialogRef,"aria-modal":i==="dialog"?!0:void 0},le,{style:s,className:a,tabIndex:-1});let Be=I?I(ee):R.jsx("div",Object.assign({},ee,{children:ye.cloneElement(u,{role:"document"})}));Be=bl(p,b,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:G,onExiting:V,onExited:me,onEnter:ue,onEntering:ne,onEntered:te,children:Be});let ke=null;return l&&(ke=C({ref:fe.setBackdropRef,onClick:ve}),ke=bl(E,x,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ke})),R.jsx(R.Fragment,{children:bn.createPortal(R.jsxs(R.Fragment,{children:[ke,Be]}),he)})});op.displayName="Modal";const bE=Object.assign(op,{Manager:ml});function El(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function xE(e,t){e.classList?e.classList.add(t):El(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function ap(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function EE(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=ap(e.className,t):e.setAttribute("class",ap(e.className&&e.className.baseVal||"",t))}const Ni={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class wE extends ml{adjustAndStore(t,n,i){const a=n.style[t];n.dataset[t]=a,fr(n,{[t]:`${parseFloat(fr(n,t))+i}px`})}restore(t,n){const i=n.dataset[t];i!==void 0&&(delete n.dataset[t],fr(n,{[t]:i}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(xE(n,"modal-open"),!t.scrollBarWidth)return;const i=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";ti(n,Ni.FIXED_CONTENT).forEach(s=>this.adjustAndStore(i,s,t.scrollBarWidth)),ti(n,Ni.STICKY_CONTENT).forEach(s=>this.adjustAndStore(a,s,-t.scrollBarWidth)),ti(n,Ni.NAVBAR_TOGGLER).forEach(s=>this.adjustAndStore(a,s,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();EE(n,"modal-open");const i=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";ti(n,Ni.FIXED_CONTENT).forEach(s=>this.restore(i,s)),ti(n,Ni.STICKY_CONTENT).forEach(s=>this.restore(a,s)),ti(n,Ni.NAVBAR_TOGGLER).forEach(s=>this.restore(a,s))}}let wl;function CE(e){return wl||(wl=new wE(e)),wl}const sp=ye.forwardRef(({className:e,bsPrefix:t,as:n="div",...i},a)=>(t=He(t,"modal-body"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));sp.displayName="ModalBody";const up=ye.createContext({onHide(){}}),Cl=ye.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:i,size:a,fullscreen:s,children:u,scrollable:l,...f},d)=>{e=He(e,"modal");const h=`${e}-dialog`,p=typeof s=="string"?`${e}-fullscreen-${s}`:`${e}-fullscreen`;return R.jsx("div",{...f,ref:d,className:Pe(h,t,a&&`${e}-${a}`,i&&`${h}-centered`,l&&`${h}-scrollable`,s&&p),children:R.jsx("div",{className:Pe(`${e}-content`,n),children:u})})});Cl.displayName="ModalDialog";const lp=ye.forwardRef(({className:e,bsPrefix:t,as:n="div",...i},a)=>(t=He(t,"modal-footer"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));lp.displayName="ModalFooter";const AE=ye.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:i,children:a,...s},u)=>{const l=A.useContext(up),f=To(()=>{l==null||l.onHide(),i==null||i()});return R.jsxs("div",{ref:u,...s,children:[a,n&&R.jsx(Ga,{"aria-label":e,variant:t,onClick:f})]})}),cp=ye.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:i=!1,...a},s)=>(e=He(e,"modal-header"),R.jsx(AE,{ref:s,...a,className:Pe(t,e),closeLabel:n,closeButton:i})));cp.displayName="ModalHeader";const SE=dh("h4"),fp=ye.forwardRef(({className:e,bsPrefix:t,as:n=SE,...i},a)=>(t=He(t,"modal-title"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));fp.displayName="ModalTitle";function _E(e){return R.jsx(mr,{...e,timeout:null})}function TE(e){return R.jsx(mr,{...e,timeout:null})}const dp=ye.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:i,contentClassName:a,children:s,dialogAs:u=Cl,"data-bs-theme":l,"aria-labelledby":f,"aria-describedby":d,"aria-label":h,show:p=!1,animation:b=!0,backdrop:E=!0,keyboard:x=!0,onEscapeKeyDown:w,onShow:m,onHide:D,container:F,autoFocus:I=!0,enforceFocus:C=!0,restoreFocus:v=!0,restoreFocusOptions:S,onEntered:O,onExit:B,onExiting:G,onEnter:q,onEntering:V,onExited:ue,backdropClassName:ne,manager:te,...le},xe)=>{const[he,fe]=A.useState({}),[Ie,M]=A.useState(!1),K=A.useRef(!1),pe=A.useRef(!1),j=A.useRef(null),[z,J]=rE(),de=Ua(xe,J),ve=To(D),ae=Du();e=He(e,"modal");const Z=A.useMemo(()=>({onHide:ve}),[ve]);function Y(){return te||CE({isRTL:ae})}function me(Me){if(!Ti)return;const we=Y().getScrollbarWidth()>0,Le=Me.scrollHeight>Ai(Me).documentElement.clientHeight;fe({paddingRight:we&&!Le?rp():void 0,paddingLeft:!we&&Le?rp():void 0})}const ee=To(()=>{z&&me(z.dialog)});Ah(()=>{Ju(window,"resize",ee),j.current==null||j.current()});const Be=()=>{K.current=!0},ke=Me=>{K.current&&z&&Me.target===z.dialog&&(pe.current=!0),K.current=!1},Te=()=>{M(!0),j.current=th(z.dialog,()=>{M(!1)})},et=Me=>{Me.target===Me.currentTarget&&Te()},Ye=Me=>{if(E==="static"){et(Me);return}if(pe.current||Me.target!==Me.currentTarget){pe.current=!1;return}D==null||D()},Zt=Me=>{x?w==null||w(Me):(Me.preventDefault(),E==="static"&&Te())},zt=(Me,we)=>{Me&&me(Me),q==null||q(Me,we)},tt=Me=>{j.current==null||j.current(),B==null||B(Me)},Ke=(Me,we)=>{V==null||V(Me,we),eh(window,"resize",ee)},Ce=Me=>{Me&&(Me.style.display=""),ue==null||ue(Me),Ju(window,"resize",ee)},ct=A.useCallback(Me=>R.jsx("div",{...Me,className:Pe(`${e}-backdrop`,ne,!b&&"show")}),[b,ne,e]),bt={...n,...he};bt.display="block";const Qt=Me=>R.jsx("div",{role:"dialog",...Me,style:bt,className:Pe(t,e,Ie&&`${e}-static`,!b&&"show"),onClick:E?Ye:void 0,onMouseUp:ke,"data-bs-theme":l,"aria-label":h,"aria-labelledby":f,"aria-describedby":d,children:R.jsx(u,{...le,onMouseDown:Be,className:i,contentClassName:a,children:s})});return R.jsx(up.Provider,{value:Z,children:R.jsx(bE,{show:p,ref:de,backdrop:E,container:F,keyboard:!0,autoFocus:I,enforceFocus:C,restoreFocus:v,restoreFocusOptions:S,onEscapeKeyDown:Zt,onShow:m,onHide:D,onEnter:zt,onEntering:Ke,onEntered:O,onExit:tt,onExiting:G,onExited:Ce,manager:Y(),transition:b?_E:void 0,backdropTransition:b?TE:void 0,renderBackdrop:ct,renderDialog:Qt})})});dp.displayName="Modal";const ts=Object.assign(dp,{Body:sp,Header:cp,Title:fp,Footer:lp,Dialog:Cl,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Al=ye.forwardRef(({className:e,bsPrefix:t,as:n="div",...i},a)=>(t=He(t,"nav-item"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));Al.displayName="NavItem";const Sl=ye.forwardRef(({bsPrefix:e,className:t,as:n=za,active:i,eventKey:a,disabled:s=!1,...u},l)=>{e=He(e,"nav-link");const[f,d]=Zh({key:Bo(a,u.href),active:i,disabled:s,...u});return R.jsx(n,{...u,...f,ref:l,disabled:s,className:Pe(t,e,s&&"disabled",d.isActive&&"active")})});Sl.displayName="NavLink";const hp=ye.forwardRef((e,t)=>{const{as:n="div",bsPrefix:i,variant:a,fill:s=!1,justify:u=!1,navbar:l,navbarScroll:f,className:d,activeKey:h,...p}=Ma(e,{activeKey:"onSelect"}),b=He(i,"nav");let E,x,w=!1;const m=A.useContext(Xh),D=A.useContext(Ch);return m?(E=m.bsPrefix,w=l??!0):D&&({cardHeaderBsPrefix:x}=D),R.jsx(nE,{as:n,ref:t,activeKey:h,className:Pe(d,{[b]:!w,[`${E}-nav`]:w,[`${E}-nav-scroll`]:w&&f,[`${x}-${a}`]:!!x,[`${b}-${a}`]:!!a,[`${b}-fill`]:s,[`${b}-justified`]:u}),...p})});hp.displayName="Nav";const OE=Object.assign(hp,{Item:Al,Link:Sl}),DE=()=>{};function IE(e,t,{disabled:n,clickTrigger:i}={}){const a=t||DE;Px(e,a,{disabled:n,clickTrigger:i});const s=Dn(u=>{Qd(u)&&a(u)});A.useEffect(()=>{if(n||e==null)return;const u=Ai(Ja(e));let l=(u.defaultView||window).event;const f=pr(u,"keyup",d=>{if(d===l){l=void 0;return}s(d)});return()=>{f()}},[e,n,s])}const pp=ye.forwardRef((e,t)=>{const{flip:n,offset:i,placement:a,containerPadding:s,popperConfig:u={},transition:l,runTransition:f}=e,[d,h]=mh(),[p,b]=mh(),E=Mo(h,t),x=vl(e.container),w=vl(e.target),[m,D]=A.useState(!e.show),F=Dx(w,d,Rx({placement:a,enableEvents:!!e.show,containerPadding:s||5,flip:n,offset:i,arrowElement:p,popperConfig:u}));e.show&&m&&D(!1);const I=(...V)=>{D(!0),e.onExited&&e.onExited(...V)},C=e.show||!m;if(IE(d,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!C)return null;const{onExit:v,onExiting:S,onEnter:O,onEntering:B,onEntered:G}=e;let q=e.children(Object.assign({},F.attributes.popper,{style:F.styles.popper,ref:E}),{popper:F,placement:a,show:!!e.show,arrowProps:Object.assign({},F.attributes.arrow,{style:F.styles.arrow,ref:b})});return q=bl(l,f,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:q,onExit:v,onExiting:S,onExited:I,onEnter:O,onEntering:B,onEntered:G}),x?bn.createPortal(q,x):null});pp.displayName="Overlay";const mp=ye.forwardRef(({className:e,bsPrefix:t,as:n="div",...i},a)=>(t=He(t,"popover-header"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));mp.displayName="PopoverHeader";const _l=ye.forwardRef(({className:e,bsPrefix:t,as:n="div",...i},a)=>(t=He(t,"popover-body"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));_l.displayName="PopoverBody";function gp(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function vp(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const ns=Object.assign(ye.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:i,children:a,body:s,arrowProps:u,hasDoneInitialMeasure:l,popper:f,show:d,...h},p)=>{const b=He(e,"popover"),E=Du(),[x]=(t==null?void 0:t.split("-"))||[],w=gp(x,E);let m=i;return d&&!l&&(m={...i,...vp(f==null?void 0:f.strategy)}),R.jsxs("div",{ref:p,role:"tooltip",style:m,"x-placement":x,className:Pe(n,b,x&&`bs-popover-${w}`),...h,children:[R.jsx("div",{className:"popover-arrow",...u}),s?R.jsx(_l,{children:a}):a]})}),{Header:mp,Body:_l,POPPER_OFFSET:[0,8]}),yp=ye.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:i,children:a,arrowProps:s,hasDoneInitialMeasure:u,popper:l,show:f,...d},h)=>{e=He(e,"tooltip");const p=Du(),[b]=(t==null?void 0:t.split("-"))||[],E=gp(b,p);let x=i;return f&&!u&&(x={...i,...vp(l==null?void 0:l.strategy)}),R.jsxs("div",{ref:h,style:x,role:"tooltip","x-placement":b,className:Pe(n,e,`bs-tooltip-${E}`),...d,children:[R.jsx("div",{className:"tooltip-arrow",...s}),R.jsx("div",{className:`${e}-inner`,children:a})]})});yp.displayName="Tooltip";const bp=Object.assign(yp,{TOOLTIP_OFFSET:[0,6]});function FE(e){const t=A.useRef(null),n=He(void 0,"popover"),i=He(void 0,"tooltip"),a=A.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(El(t.current,n))return ns.POPPER_OFFSET;if(El(t.current,i))return bp.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,i]);return[t,[a]]}function PE(e,t){const{ref:n}=e,{ref:i}=t;e.ref=n.__wrapped||(n.__wrapped=a=>n(Ha(a))),t.ref=i.__wrapped||(i.__wrapped=a=>i(Ha(a)))}const xp=ye.forwardRef(({children:e,transition:t=mr,popperConfig:n={},rootClose:i=!1,placement:a="top",show:s=!1,...u},l)=>{const f=A.useRef({}),[d,h]=A.useState(null),[p,b]=FE(u.offset),E=Ua(l,p),x=t===!0?mr:t||void 0,w=To(m=>{h(m),n==null||n.onFirstUpdate==null||n.onFirstUpdate(m)});return Xx(()=>{d&&u.target&&(f.current.scheduleUpdate==null||f.current.scheduleUpdate())},[d,u.target]),A.useEffect(()=>{s||h(null)},[s]),R.jsx(pp,{...u,ref:E,popperConfig:{...n,modifiers:b.concat(n.modifiers||[]),onFirstUpdate:w},transition:x,rootClose:i,placement:a,show:s,children:(m,{arrowProps:D,popper:F,show:I})=>{var C;PE(m,D);const v=F==null?void 0:F.placement,S=Object.assign(f.current,{state:F==null?void 0:F.state,scheduleUpdate:F==null?void 0:F.update,placement:v,outOfBoundaries:(F==null||(C=F.state)==null||(C=C.modifiersData.hide)==null?void 0:C.isReferenceHidden)||!1,strategy:n.strategy}),O=!!d;return typeof e=="function"?e({...m,placement:v,show:I,...!t&&I&&{className:"show"},popper:S,arrowProps:D,hasDoneInitialMeasure:O}):ye.cloneElement(e,{...m,placement:v,arrowProps:D,popper:S,hasDoneInitialMeasure:O,className:Pe(e.props.className,!t&&I&&"show"),style:{...e.props.style,...m.style}})}})});xp.displayName="Overlay";function kE(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Ep(e,t,n){const[i]=t,a=i.currentTarget,s=i.relatedTarget||i.nativeEvent[n];(!s||s!==a)&&!Lo(a,s)&&e(...t)}De.oneOf(["click","hover","focus"]);const wp=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:i={},show:a,defaultShow:s=!1,onToggle:u,delay:l,placement:f,flip:d=f&&f.indexOf("auto")!==-1,...h})=>{const p=A.useRef(null),b=Ua(p,_i(n)),E=vb(),x=A.useRef(""),[w,m]=Xd(a,s,u),D=kE(l),{onFocus:F,onBlur:I,onClick:C}=typeof n!="function"?ye.Children.only(n).props:{},v=le=>{b(Ha(le))},S=A.useCallback(()=>{if(E.clear(),x.current="show",!D.show){m(!0);return}E.set(()=>{x.current==="show"&&m(!0)},D.show)},[D.show,m,E]),O=A.useCallback(()=>{if(E.clear(),x.current="hide",!D.hide){m(!1);return}E.set(()=>{x.current==="hide"&&m(!1)},D.hide)},[D.hide,m,E]),B=A.useCallback((...le)=>{S(),F==null||F(...le)},[S,F]),G=A.useCallback((...le)=>{O(),I==null||I(...le)},[O,I]),q=A.useCallback((...le)=>{m(!w),C==null||C(...le)},[C,m,w]),V=A.useCallback((...le)=>{Ep(S,le,"fromElement")},[S]),ue=A.useCallback((...le)=>{Ep(O,le,"toElement")},[O]),ne=e==null?[]:[].concat(e),te={ref:v};return ne.indexOf("click")!==-1&&(te.onClick=q),ne.indexOf("focus")!==-1&&(te.onFocus=B,te.onBlur=G),ne.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&_a(ne.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),te.onMouseOver=V,te.onMouseOut=ue),R.jsxs(R.Fragment,{children:[typeof n=="function"?n(te):A.cloneElement(n,te),R.jsx(xp,{...h,show:w,onHide:O,flip:d,placement:f,popperConfig:i,target:p.current,children:t})]})},Tl=ye.forwardRef(({active:e=!1,disabled:t=!1,className:n,style:i,activeLabel:a="(current)",children:s,linkStyle:u,linkClassName:l,as:f=za,...d},h)=>{const p=e||t?"span":f;return R.jsx("li",{ref:h,style:i,className:Pe(n,"page-item",{active:e,disabled:t}),children:R.jsxs(p,{className:Pe("page-link",l),style:u,...d,children:[s,e&&a&&R.jsx("span",{className:"visually-hidden",children:a})]})})});Tl.displayName="PageItem";function jo(e,t,n=e){const i=ye.forwardRef(({children:a,...s},u)=>R.jsxs(Tl,{...s,ref:u,children:[R.jsx("span",{"aria-hidden":"true",children:a||t}),R.jsx("span",{className:"visually-hidden",children:n})]}));return i.displayName=e,i}const NE=jo("First","«"),RE=jo("Prev","‹","Previous"),LE=jo("Ellipsis","…","More"),BE=jo("Next","›"),ME=jo("Last","»"),Cp=ye.forwardRef(({bsPrefix:e,className:t,size:n,...i},a)=>{const s=He(e,"pagination");return R.jsx("ul",{ref:a,...i,className:Pe(t,s,n&&`${s}-${n}`)})});Cp.displayName="Pagination";const Lr=Object.assign(Cp,{First:NE,Prev:RE,Ellipsis:LE,Item:Tl,Next:BE,Last:ME}),jE=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],$E=["activeKey","getControlledId","getControllerId"],UE=["as"];function Ol(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function Ap(e){let{active:t,eventKey:n,mountOnEnter:i,transition:a,unmountOnExit:s,role:u="tabpanel",onEnter:l,onEntering:f,onEntered:d,onExit:h,onExiting:p,onExited:b}=e,E=Ol(e,jE);const x=A.useContext(ki);if(!x)return[Object.assign({},E,{role:u}),{eventKey:n,isActive:t,mountOnEnter:i,transition:a,unmountOnExit:s,onEnter:l,onEntering:f,onEntered:d,onExit:h,onExiting:p,onExited:b}];const{activeKey:w,getControlledId:m,getControllerId:D}=x,F=Ol(x,$E),I=Bo(n);return[Object.assign({},E,{role:u,id:m(n),"aria-labelledby":D(n)}),{eventKey:n,isActive:t==null&&I!=null?Bo(w)===I:t,transition:a||F.transition,mountOnEnter:i??F.mountOnEnter,unmountOnExit:s??F.unmountOnExit,onEnter:l,onEntering:f,onEntered:d,onExit:h,onExiting:p,onExited:b}]}const Sp=ye.forwardRef((e,t)=>{let{as:n="div"}=e,i=Ol(e,UE);const[a,{isActive:s,onEnter:u,onEntering:l,onEntered:f,onExit:d,onExiting:h,onExited:p,mountOnEnter:b,unmountOnExit:E,transition:x=yl}]=Ap(i);return R.jsx(ki.Provider,{value:null,children:R.jsx(Pi.Provider,{value:null,children:R.jsx(x,{in:s,onEnter:u,onEntering:l,onEntered:f,onExit:d,onExiting:h,onExited:p,mountOnEnter:b,unmountOnExit:E,children:R.jsx(n,Object.assign({},a,{ref:t,hidden:!s,"aria-hidden":!s}))})})})});Sp.displayName="TabPanel";const Dl=e=>{const{id:t,generateChildId:n,onSelect:i,activeKey:a,defaultActiveKey:s,transition:u,mountOnEnter:l,unmountOnExit:f,children:d}=e,[h,p]=bb(a,s,i),b=Ux(t),E=A.useMemo(()=>n||((w,m)=>b?`${b}-${m}-${w}`:null),[b,n]),x=A.useMemo(()=>({onSelect:p,activeKey:h,transition:u,mountOnEnter:l||!1,unmountOnExit:f||!1,getControlledId:w=>E(w,"tabpane"),getControllerId:w=>E(w,"tab")}),[p,h,u,l,f,E]);return R.jsx(ki.Provider,{value:x,children:R.jsx(Pi.Provider,{value:p||null,children:d})})};Dl.Panel=Sp;function Il(e){return typeof e=="boolean"?e?mr:yl:e}const _p=({transition:e,...t})=>R.jsx(Dl,{...t,transition:Il(e)});_p.displayName="TabContainer";const Fl=ye.forwardRef(({className:e,bsPrefix:t,as:n="div",...i},a)=>(t=He(t,"tab-content"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));Fl.displayName="TabContent";const Pl=ye.forwardRef(({bsPrefix:e,transition:t,...n},i)=>{const[{className:a,as:s="div",...u},{isActive:l,onEnter:f,onEntering:d,onEntered:h,onExit:p,onExiting:b,onExited:E,mountOnEnter:x,unmountOnExit:w,transition:m=mr}]=Ap({...n,transition:Il(t)}),D=He(e,"tab-pane");return R.jsx(ki.Provider,{value:null,children:R.jsx(Pi.Provider,{value:null,children:R.jsx(m,{in:l,onEnter:f,onEntering:d,onEntered:h,onExit:p,onExiting:b,onExited:E,mountOnEnter:x,unmountOnExit:w,children:R.jsx(s,{...u,ref:i,className:Pe(a,D,l&&"active")})})})})});Pl.displayName="TabPane";const HE={eventKey:De.oneOfType([De.string,De.number]),title:De.node.isRequired,disabled:De.bool,tabClassName:De.string,tabAttrs:De.object},Tp=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};Tp.propTypes=HE;const WE=Object.assign(Tp,{Container:_p,Content:Fl,Pane:Pl});function qE(e){let t;return Xv(e,n=>{t==null&&(t=n.props.eventKey)}),t}function zE(e){const{title:t,eventKey:n,disabled:i,tabClassName:a,tabAttrs:s,id:u}=e.props;return t==null?null:R.jsx(Al,{as:"li",role:"presentation",children:R.jsx(Sl,{as:"button",type:"button",eventKey:n,disabled:i,id:u,className:a,...s,children:t})})}const Op=e=>{const{id:t,onSelect:n,transition:i,mountOnEnter:a=!1,unmountOnExit:s=!1,variant:u="tabs",children:l,activeKey:f=qE(l),...d}=Ma(e,{activeKey:"onSelect"});return R.jsxs(Dl,{id:t,activeKey:f,onSelect:n,transition:Il(i),mountOnEnter:a,unmountOnExit:s,children:[R.jsx(OE,{id:t,...d,role:"tablist",as:"ul",variant:u,children:Qf(l,zE)}),R.jsx(Fl,{children:Qf(l,h=>{const p={...h.props};return delete p.title,delete p.disabled,delete p.tabClassName,delete p.tabAttrs,R.jsx(Pl,{...p})})})]})};Op.displayName="Tabs";const GE=e=>{var a,s,u,l,f,d,h,p;const t=zn(e.actionProps.bodyAttributes||{}),n=zn(e.actionProps.headerAttributes||{}),i=A.useRef(null);return R.jsx("div",{ref:i,children:R.jsx(wp,{container:i,placement:e.actionProps.placement??"top",trigger:e.actionProps.trigger??"click",overlay:R.jsxs(ns,{children:[e.actionProps.header&&R.jsx(ns.Header,{...n,children:R.jsx(ht,{props:e.actionProps.header,currentData:((l=(u=(s=(a=e.componentProps)==null?void 0:a.currentData)==null?void 0:s.actions)==null?void 0:u[e.actionIndex])==null?void 0:l.header)??void 0,datafield:"header",path:e.componentProps.path+".actions."+e.actionIndex+".header"})}),R.jsx(ns.Body,{...t,children:R.jsx(ht,{props:e.actionProps.body,currentData:((p=(h=(d=(f=e.componentProps)==null?void 0:f.currentData)==null?void 0:d.actions)==null?void 0:h[e.actionIndex])==null?void 0:p.body)??void 0,datafield:"body",path:e.componentProps.path+".actions."+e.actionIndex+".body"})})]}),children:R.jsx("popover-reference",{children:e.children})})})},VE=e=>{const t=A.useContext(dt),n=A.useContext(ot),{to:i}=e.actionProps;!i||typeof i!="string"||(window.location.href=ut({valueToEvaluate:i,globalDataContext:t,templateContext:n}))},YE=e=>{var t,n,i;return R.jsx(wp,{placement:e.actionProps.placement??"top",overlay:R.jsx(bp,{children:R.jsx(ht,{props:e.actionProps.content,currentData:((i=(n=(t=e.componentProps)==null?void 0:t.currentData)==null?void 0:n.actions)==null?void 0:i[e.actionIndex])??void 0,datafield:e.actionIndex,path:e.componentProps.path+".actions."+e.actionIndex})}),children:R.jsx("tooltip-reference",{children:e.children})})},KE=e=>R.jsx("visually-hidden",{style:{display:"none"},children:e.children});function rs(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var kl={exports:{}};/*! jsonpath 1.1.1 */var Dp;function XE(){return Dp||(Dp=1,function(e,t){(function(n){e.exports=n()})(function(){return function n(i,a,s){function u(d,h){if(!a[d]){if(!i[d]){var p=typeof rs=="function"&&rs;if(!h&&p)return p(d,!0);if(l)return l(d,!0);var b=new Error("Cannot find module '"+d+"'");throw b.code="MODULE_NOT_FOUND",b}var E=a[d]={exports:{}};i[d][0].call(E.exports,function(x){var w=i[d][1][x];return u(w||x)},E,E.exports,n,i,a,s)}return a[d].exports}for(var l=typeof rs=="function"&&rs,f=0;f<s.length;f++)u(s[f]);return u}({"./aesprim":[function(n,i,a){(function(s,u){u(typeof a<"u"?a:s.esprima={})})(this,function(s){var u,l,f,d,h,p,b,E,x,w,m,D,F,I,C,v,S,O;u={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},l={},l[u.BooleanLiteral]="Boolean",l[u.EOF]="<end>",l[u.Identifier]="Identifier",l[u.Keyword]="Keyword",l[u.NullLiteral]="Null",l[u.NumericLiteral]="Numeric",l[u.Punctuator]="Punctuator",l[u.StringLiteral]="String",l[u.RegularExpression]="RegularExpression",f=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],d={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},h={Data:1,Get:2,Set:4},p={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},b={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function B(g,_){if(!g)throw new Error("ASSERT: "+_)}function G(g){return g>=48&&g<=57}function q(g){return"0123456789abcdefABCDEF".indexOf(g)>=0}function V(g){return"01234567".indexOf(g)>=0}function ue(g){return g===32||g===9||g===11||g===12||g===160||g>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(g)>=0}function ne(g){return g===10||g===13||g===8232||g===8233}function te(g){return g==64||g===36||g===95||g>=65&&g<=90||g>=97&&g<=122||g===92||g>=128&&b.NonAsciiIdentifierStart.test(String.fromCharCode(g))}function le(g){return g===36||g===95||g>=65&&g<=90||g>=97&&g<=122||g>=48&&g<=57||g===92||g>=128&&b.NonAsciiIdentifierPart.test(String.fromCharCode(g))}function xe(g){switch(g){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function he(g){switch(g){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function fe(g){return g==="eval"||g==="arguments"}function Ie(g){if(w&&he(g))return!0;switch(g.length){case 2:return g==="if"||g==="in"||g==="do";case 3:return g==="var"||g==="for"||g==="new"||g==="try"||g==="let";case 4:return g==="this"||g==="else"||g==="case"||g==="void"||g==="with"||g==="enum";case 5:return g==="while"||g==="break"||g==="catch"||g==="throw"||g==="const"||g==="yield"||g==="class"||g==="super";case 6:return g==="return"||g==="typeof"||g==="delete"||g==="switch"||g==="export"||g==="import";case 7:return g==="default"||g==="finally"||g==="extends";case 8:return g==="function"||g==="continue"||g==="debugger";case 10:return g==="instanceof";default:return!1}}function M(g,_,N,U,ie){var ge;B(typeof N=="number","Comment must have valid position"),!(S.lastCommentStart>=N)&&(S.lastCommentStart=N,ge={type:g,value:_},O.range&&(ge.range=[N,U]),O.loc&&(ge.loc=ie),O.comments.push(ge),O.attachComment&&(O.leadingComments.push(ge),O.trailingComments.push(ge)))}function K(g){var _,N,U,ie;for(_=m-g,N={start:{line:D,column:m-F-g}};m<I;)if(U=x.charCodeAt(m),++m,ne(U)){O.comments&&(ie=x.slice(_+g,m-1),N.end={line:D,column:m-F-1},M("Line",ie,_,m-1,N)),U===13&&x.charCodeAt(m)===10&&++m,++D,F=m;return}O.comments&&(ie=x.slice(_+g,m),N.end={line:D,column:m-F},M("Line",ie,_,m,N))}function pe(){var g,_,N,U;for(O.comments&&(g=m-2,_={start:{line:D,column:m-F-2}});m<I;)if(N=x.charCodeAt(m),ne(N))N===13&&x.charCodeAt(m+1)===10&&++m,++D,++m,F=m,m>=I&&we({},p.UnexpectedToken,"ILLEGAL");else if(N===42){if(x.charCodeAt(m+1)===47){++m,++m,O.comments&&(U=x.slice(g+2,m-2),_.end={line:D,column:m-F},M("Block",U,g,m,_));return}++m}else++m;we({},p.UnexpectedToken,"ILLEGAL")}function j(){var g,_;for(_=m===0;m<I;)if(g=x.charCodeAt(m),ue(g))++m;else if(ne(g))++m,g===13&&x.charCodeAt(m)===10&&++m,++D,F=m,_=!0;else if(g===47)if(g=x.charCodeAt(m+1),g===47)++m,++m,K(2),_=!0;else if(g===42)++m,++m,pe();else break;else if(_&&g===45)if(x.charCodeAt(m+1)===45&&x.charCodeAt(m+2)===62)m+=3,K(3);else break;else if(g===60)if(x.slice(m+1,m+4)==="!--")++m,++m,++m,++m,K(4);else break;else break}function z(g){var _,N,U,ie=0;for(N=g==="u"?4:2,_=0;_<N;++_)if(m<I&&q(x[m]))U=x[m++],ie=ie*16+"0123456789abcdef".indexOf(U.toLowerCase());else return"";return String.fromCharCode(ie)}function J(){var g,_;for(g=x.charCodeAt(m++),_=String.fromCharCode(g),g===92&&(x.charCodeAt(m)!==117&&we({},p.UnexpectedToken,"ILLEGAL"),++m,g=z("u"),(!g||g==="\\"||!te(g.charCodeAt(0)))&&we({},p.UnexpectedToken,"ILLEGAL"),_=g);m<I&&(g=x.charCodeAt(m),!!le(g));)++m,_+=String.fromCharCode(g),g===92&&(_=_.substr(0,_.length-1),x.charCodeAt(m)!==117&&we({},p.UnexpectedToken,"ILLEGAL"),++m,g=z("u"),(!g||g==="\\"||!le(g.charCodeAt(0)))&&we({},p.UnexpectedToken,"ILLEGAL"),_+=g);return _}function de(){var g,_;for(g=m++;m<I;){if(_=x.charCodeAt(m),_===92)return m=g,J();if(le(_))++m;else break}return x.slice(g,m)}function ve(){var g,_,N;return g=m,_=x.charCodeAt(m)===92?J():de(),_.length===1?N=u.Identifier:Ie(_)?N=u.Keyword:_==="null"?N=u.NullLiteral:_==="true"||_==="false"?N=u.BooleanLiteral:N=u.Identifier,{type:N,value:_,lineNumber:D,lineStart:F,start:g,end:m}}function ae(){var g=m,_=x.charCodeAt(m),N,U=x[m],ie,ge,qe;switch(_){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++m,O.tokenize&&(_===40?O.openParenToken=O.tokens.length:_===123&&(O.openCurlyToken=O.tokens.length)),{type:u.Punctuator,value:String.fromCharCode(_),lineNumber:D,lineStart:F,start:g,end:m};default:if(N=x.charCodeAt(m+1),N===61)switch(_){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return m+=2,{type:u.Punctuator,value:String.fromCharCode(_)+String.fromCharCode(N),lineNumber:D,lineStart:F,start:g,end:m};case 33:case 61:return m+=2,x.charCodeAt(m)===61&&++m,{type:u.Punctuator,value:x.slice(g,m),lineNumber:D,lineStart:F,start:g,end:m}}}if(qe=x.substr(m,4),qe===">>>=")return m+=4,{type:u.Punctuator,value:qe,lineNumber:D,lineStart:F,start:g,end:m};if(ge=qe.substr(0,3),ge===">>>"||ge==="<<="||ge===">>=")return m+=3,{type:u.Punctuator,value:ge,lineNumber:D,lineStart:F,start:g,end:m};if(ie=ge.substr(0,2),U===ie[1]&&"+-<>&|".indexOf(U)>=0||ie==="=>")return m+=2,{type:u.Punctuator,value:ie,lineNumber:D,lineStart:F,start:g,end:m};if("<>=!+-*%&|^/".indexOf(U)>=0)return++m,{type:u.Punctuator,value:U,lineNumber:D,lineStart:F,start:g,end:m};we({},p.UnexpectedToken,"ILLEGAL")}function Z(g){for(var _="";m<I&&q(x[m]);)_+=x[m++];return _.length===0&&we({},p.UnexpectedToken,"ILLEGAL"),te(x.charCodeAt(m))&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt("0x"+_,16),lineNumber:D,lineStart:F,start:g,end:m}}function Y(g){for(var _="0"+x[m++];m<I&&V(x[m]);)_+=x[m++];return(te(x.charCodeAt(m))||G(x.charCodeAt(m)))&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt(_,8),octal:!0,lineNumber:D,lineStart:F,start:g,end:m}}function me(){var g,_,N;if(N=x[m],B(G(N.charCodeAt(0))||N===".","Numeric literal must start with a decimal digit or a decimal point"),_=m,g="",N!=="."){if(g=x[m++],N=x[m],g==="0"){if(N==="x"||N==="X")return++m,Z(_);if(V(N))return Y(_);N&&G(N.charCodeAt(0))&&we({},p.UnexpectedToken,"ILLEGAL")}for(;G(x.charCodeAt(m));)g+=x[m++];N=x[m]}if(N==="."){for(g+=x[m++];G(x.charCodeAt(m));)g+=x[m++];N=x[m]}if(N==="e"||N==="E")if(g+=x[m++],N=x[m],(N==="+"||N==="-")&&(g+=x[m++]),G(x.charCodeAt(m)))for(;G(x.charCodeAt(m));)g+=x[m++];else we({},p.UnexpectedToken,"ILLEGAL");return te(x.charCodeAt(m))&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseFloat(g),lineNumber:D,lineStart:F,start:_,end:m}}function ee(){var g="",_,N,U,ie,ge,qe,rt=!1,Rt,Tt;for(Rt=D,Tt=F,_=x[m],B(_==="'"||_==='"',"String literal must starts with a quote"),N=m,++m;m<I;)if(U=x[m++],U===_){_="";break}else if(U==="\\")if(U=x[m++],!U||!ne(U.charCodeAt(0)))switch(U){case"u":case"x":qe=m,ge=z(U),ge?g+=ge:(m=qe,g+=U);break;case"n":g+=`
|
|
75
|
+
`):" "+Hd(s[0]):"as no adapter specified";throw new Ue("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i},adapters:Wu};function qu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ci(null,e)}function qd(e){return qu(e),e.headers=fn.from(e.headers),e.data=Uu.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Wd.getAdapter(e.adapter||Co.adapter)(e).then(function(i){return qu(e),i.data=Uu.call(e,e.transformResponse,i),i.headers=fn.from(i.headers),i},function(i){return Fd(i)||(qu(e),i&&i.response&&(i.response.data=Uu.call(e,e.transformResponse,i.response),i.response.headers=fn.from(i.response.headers))),Promise.reject(i)})}const zd="1.8.4",La={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{La[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const Gd={};La.transitional=function(t,n,i){function a(s,u){return"[Axios v"+zd+"] Transitional option '"+s+"'"+u+(i?". "+i:"")}return(s,u,c)=>{if(t===!1)throw new Ue(a(u," has been removed"+(n?" in "+n:"")),Ue.ERR_DEPRECATED);return n&&!Gd[u]&&(Gd[u]=!0,console.warn(a(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,u,c):!0}},La.spelling=function(t){return(n,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function _1(e,t,n){if(typeof e!="object")throw new Ue("options must be an object",Ue.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let a=i.length;for(;a-- >0;){const s=i[a],u=t[s];if(u){const c=e[s],f=c===void 0||u(c,s,e);if(f!==!0)throw new Ue("option "+s+" must be "+f,Ue.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ue("Unknown option "+s,Ue.ERR_BAD_OPTION)}}const Ba={assertOptions:_1,validators:La},Qn=Ba.validators;let ei=class{constructor(t){this.defaults=t,this.interceptors={request:new Td,response:new Td}}async request(t,n){try{return await this._request(t,n)}catch(i){if(i instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";try{i.stack?s&&!String(i.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
|
76
|
+
`+s):i.stack=s}catch{}}throw i}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Qr(this.defaults,n);const{transitional:i,paramsSerializer:a,headers:s}=n;i!==void 0&&Ba.assertOptions(i,{silentJSONParsing:Qn.transitional(Qn.boolean),forcedJSONParsing:Qn.transitional(Qn.boolean),clarifyTimeoutError:Qn.transitional(Qn.boolean)},!1),a!=null&&(Q.isFunction(a)?n.paramsSerializer={serialize:a}:Ba.assertOptions(a,{encode:Qn.function,serialize:Qn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Ba.assertOptions(n,{baseUrl:Qn.spelling("baseURL"),withXsrfToken:Qn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=s&&Q.merge(s.common,s[n.method]);s&&Q.forEach(["delete","get","head","post","put","patch","common"],x=>{delete s[x]}),n.headers=fn.concat(u,s);const c=[];let f=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(n)===!1||(f=f&&C.synchronous,c.unshift(C.fulfilled,C.rejected))});const d=[];this.interceptors.response.forEach(function(C){d.push(C.fulfilled,C.rejected)});let h,p=0,b;if(!f){const x=[qd.bind(this),void 0];for(x.unshift.apply(x,c),x.push.apply(x,d),b=x.length,h=Promise.resolve(n);p<b;)h=h.then(x[p++],x[p++]);return h}b=c.length;let E=n;for(p=0;p<b;){const x=c[p++],C=c[p++];try{E=x(E)}catch(m){C.call(this,m);break}}try{h=qd.call(this,E)}catch(x){return Promise.reject(x)}for(p=0,b=d.length;p<b;)h=h.then(d[p++],d[p++]);return h}getUri(t){t=Qr(this.defaults,t);const n=Rd(t.baseURL,t.url,t.allowAbsoluteUrls);return _d(n,t.params,t.paramsSerializer)}};Q.forEach(["delete","get","head","options"],function(t){ei.prototype[t]=function(n,i){return this.request(Qr(i||{},{method:t,url:n,data:(i||{}).data}))}}),Q.forEach(["post","put","patch"],function(t){function n(i){return function(s,u,c){return this.request(Qr(c||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:s,data:u}))}}ei.prototype[t]=n(),ei.prototype[t+"Form"]=n(!0)});let T1=class Sv{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const i=this;this.promise.then(a=>{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](a);i._listeners=null}),this.promise.then=a=>{let s;const u=new Promise(c=>{i.subscribe(c),s=c}).then(a);return u.cancel=function(){i.unsubscribe(s)},u},t(function(s,u,c){i.reason||(i.reason=new Ci(s,u,c),n(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=i=>{t.abort(i)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Sv(function(a){t=a}),cancel:t}}};function O1(e){return function(n){return e.apply(null,n)}}function D1(e){return Q.isObject(e)&&e.isAxiosError===!0}const zu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(zu).forEach(([e,t])=>{zu[t]=e});function Vd(e){const t=new ei(e),n=dd(ei.prototype.request,t);return Q.extend(n,ei.prototype,t,{allOwnKeys:!0}),Q.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return Vd(Qr(e,a))},n}const yt=Vd(Co);yt.Axios=ei,yt.CanceledError=Ci,yt.CancelToken=T1,yt.isCancel=Fd,yt.VERSION=zd,yt.toFormData=Fa,yt.AxiosError=Ue,yt.Cancel=yt.CanceledError,yt.all=function(t){return Promise.all(t)},yt.spread=O1,yt.isAxiosError=D1,yt.mergeConfig=Qr,yt.AxiosHeaders=fn,yt.formToJSON=e=>Dd(Q.isHTMLForm(e)?new FormData(e):e),yt.getAdapter=Wd.getAdapter,yt.HttpStatusCode=zu,yt.default=yt;const{Axios:rk,AxiosError:ik,CanceledError:ok,isCancel:ak,CancelToken:sk,VERSION:uk,all:lk,Cancel:ck,isAxiosError:fk,spread:dk,toFormData:hk,AxiosHeaders:pk,HttpStatusCode:mk,formToJSON:gk,getAdapter:vk,mergeConfig:yk}=yt,wi={addData:ay,fetchData:e=>{var p,b;const t=e==null?void 0:e.event,n=document.body;if(n.dataset.htmlBuilderIsSubmitting==="true")return;n.dataset.htmlBuilderIsSubmitting="true";const i=t.currentTarget;i!=null&&i.dataset&&(i.dataset.isSubmitting="true");const{globalDataContext:a,templateContext:s}=e,u=a.getRootContext?a.getRootContext():a,c=((p=e==null?void 0:e.args)==null?void 0:p.refreshAppOnResponse)??!0,f=ut({valueToEvaluate:(b=e==null?void 0:e.args)==null?void 0:b.url,globalDataContext:u,templateContext:s});if(!f)return;const d=u.headersForData??{},{setRawAppData:h}=u;yt.get(f,{headers:d}).then(E=>{c&&h(E.data)}).catch(E=>{console.log("reactionFunction:fetchData : Could not fetch. Reason: "+E.message)}).finally(()=>{delete n.dataset.htmlBuilderIsSubmitting,i!=null&&i.dataset&&delete i.dataset.isSubmitting})},moveData:e=>{const{globalDataContext:t,templateContext:n}=e,{path:i,target:a}=e.args;if(i===void 0&&a!=="currentTemplateData")return;let s;if(i)s=Pn({currentPath:n.templatePath,dataLocation:i,globalDataContext:t,templateContext:n});else{s=n.templatePath;let c=e.args.parentLevel??0;for(;c>0;){--c;const f=s.lastIndexOf(".");if(f<1)return;s=s.substring(0,f)}}const{increment:u}=e.args;t==null||t.updateData({increment:u},s,"move")},postMessage:e=>{var s,u,c,f,d,h,p,b,E,x,C;const n={parent:window.parent,self:window}[((s=e==null?void 0:e.args)==null?void 0:s.messageTarget)??"parent"]??window,i=((u=e==null?void 0:e.args)==null?void 0:u.targetOrigin)??window.location.origin,a=is({globalDataContext:e.globalDataContext,templateContext:e.templateContext,valueToEvaluate:(c=e==null?void 0:e.args)==null?void 0:c.message});if(((f=e==null?void 0:e.args)==null?void 0:f.on)==="change"&&typeof a=="object"&&((d=e==null?void 0:e.args)!=null&&d.includeChangedValue)&&((p=(h=e==null?void 0:e.event)==null?void 0:h.target)==null?void 0:p.nodeName)==="INPUT"){let m;switch((E=(b=e==null?void 0:e.event)==null?void 0:b.target)==null?void 0:E.type){case"checkbox":m=(C=(x=e==null?void 0:e.event)==null?void 0:x.target)==null?void 0:C.checked;break}a.changedValue=m}n&&i&&n.postMessage(a,i)},redirectNow:e=>{const{globalDataContext:t,templateContext:n}=e,{to:i}=e.args;!i||typeof i!="string"||(window.location.href=ut({valueToEvaluate:i,globalDataContext:t,templateContext:n}))},removeData:e=>{const{globalDataContext:t,templateContext:n}=e,{path:i,target:a}=e.args;if(i===void 0&&a!=="currentTemplateData")return;let s;if(i)s=Pn({currentPath:n.templatePath,dataLocation:i,globalDataContext:t,templateContext:n});else{s=n.templatePath;let u=e.args.parentLevel??0;for(;u>0;){--u;const c=s.lastIndexOf(".");if(c<1)return;s=s.substring(0,c)}}t==null||t.updateData(void 0,s,"remove")},setClipboardData:async e=>{var a;const{globalDataContext:t,templateContext:n}=e,i=ut({valueToEvaluate:(a=e==null?void 0:e.args)==null?void 0:a.value,globalDataContext:t,templateContext:n});if(typeof i=="string")try{await navigator.clipboard.writeText(i.toString())}catch(s){console.error("Failed to copy data to the clipboard:",s)}},setData:e=>{const{globalDataContext:t,templateContext:n}=e,{path:i,value:a}=e.args;if(i===void 0)return;const s=Pn({currentPath:n.templatePath,dataLocation:i,globalDataContext:t,templateContext:n}),u=ut({valueToEvaluate:a,globalDataContext:t,templateContext:n});t==null||t.updateData(typeof u!="object"?u:Fr.cloneDeep(u),s)},submitData:e=>{var E,x,C,m,D;const t=e==null?void 0:e.event,n=document.body;if(n.dataset.htmlBuilderIsSubmitting==="true")return;n.dataset.htmlBuilderIsSubmitting="true",(E=e==null?void 0:e.args)!=null&&E.submitSilently?n.dataset.htmlBuilderIsSubmittingSilently="true":delete n.dataset.htmlBuilderIsSubmittingSilently;const i=t==null?void 0:t.currentTarget;i!=null&&i.dataset&&(i.dataset.isSubmitting="true");const{globalDataContext:a,templateContext:s}=e,u=a.getRootContext?a.getRootContext():a,c=((x=e==null?void 0:e.args)==null?void 0:x.refreshAppOnResponse)??!0,f=ut({valueToEvaluate:(C=e==null?void 0:e.args)==null?void 0:C.url,globalDataContext:u,templateContext:s});if(!f)return;let d={};if((m=e==null?void 0:e.args)!=null&&m.hasOwnProperty("data")){let F=function(I,w){if(Array.isArray(I))return I.map(w);if(typeof I=="object"&&I!==null){const v=Object.entries(I).map(([S,O])=>[S,w(O)]);return Object.fromEntries(v)}else return w(I)?I:null};d=e.args.data,d=F(d,I=>ut({valueToEvaluate:I,globalDataContext:u,templateContext:s})),u.templateData.__state!==void 0&&(d.__state=u.templateData.__state)}else d.data=u.templateData,u.templateData.__state!==void 0&&(d.data.__state=u.templateData.__state);const h=u.headersForData??{},{setRawAppData:p}=u,b={method:((D=e==null?void 0:e.args)==null?void 0:D.httpMethod)??"post",url:f,data:d};h&&(b.headers=h),yt(b).then(F=>{c&&p(F.data)}).catch(F=>{console.log("reactionFunction:submitData : Could not submit. Reason: "+F.message)}).finally(()=>{delete n.dataset.htmlBuilderIsSubmitting,delete n.dataset.htmlBuilderIsSubmittingSilently,i!=null&&i.dataset&&delete i.dataset.isSubmitting})},triggerEvent:e=>{var f,d,h,p,b,E;const t=(f=e==null?void 0:e.args)==null?void 0:f.selector;if(!t||typeof t!="string"||t.length===0)return;const n=(d=e==null?void 0:e.args)==null?void 0:d.selectorBase;let i;if(typeof n>"u"?i=document:n==="currentEventTarget"?i=(h=e==null?void 0:e.event)==null?void 0:h.target:i=(b=(p=e==null?void 0:e.event)==null?void 0:p.target)==null?void 0:b.closest(n),!i)return;const a=(E=e==null?void 0:e.args)==null?void 0:E.eventName;if(!a||typeof a!="string"||a.length===0)return;const s=i.querySelectorAll(t),u=Object.entries(s),c=()=>{var m,D;const x=((D=(m=u.splice(0,1))==null?void 0:m[0])==null?void 0:D[1])??void 0;if(!x)return;const C=new Event(a,{bubbles:!0,cancelable:!1});x.dispatchEvent(C),Promise.resolve().then(c)};c()}},I1=e=>{const t=A.useContext(dt),n=A.useContext(ot),{actionProps:i}=e,a={};for(const[c,f]of Object.entries(i))a[c]=d=>{let h=!0;for(const p of f){if(!p)continue;const b=p.what&&(wi[p.what]??null);if(b){if(b({args:p,event:d,globalDataContext:t,templateContext:n}),p.stopPropagation===!0)break;h=p.stopPropagation??!0}}h!==!1&&d.stopPropagation()};const s=c=>{if(!c)return c;const f=A.Children.toArray(c);return A.Children.map(f,d=>{var h;return d.type===A.Fragment?s((h=d==null?void 0:d.props)==null?void 0:h.children):typeof d!="object"||!A.isValidElement(d)?d:A.cloneElement(d,a)})},u=s(e.children);return R.jsx(R.Fragment,{children:u})},F1=e=>{const t=A.useContext(xu),n=A.useContext(dt),i=A.useContext(ot),a=(e==null?void 0:e.actionProps)??void 0;return A.useEffect(()=>{const s=a??void 0,u=(a==null?void 0:a.what)??void 0,c=(a==null?void 0:a.whenHashIs)??void 0,f=(a==null?void 0:a.whenHashWas)??void 0,d=is({globalDataContext:n,templateContext:i,valueToEvaluate:c}),h=is({globalDataContext:n,templateContext:i,valueToEvaluate:f}),p=b=>{if(typeof d=="string"&&new URL(b.newUrl).hash!==d||typeof h=="string"&&new URL(b.oldUrl).hash!==d)return;const E=u&&(wi[u]??void 0);E&&E({args:s,event:b,globalDataContext:n,templateContext:i})};return t==null||t.addEventListener("hashchange",p),()=>{t==null||t.removeEventListener("hashchange",p)}},[t,n,a,i]),R.jsx(R.Fragment,{children:e.children})},P1=()=>null,k1=e=>{const t=A.useContext(xu),n=A.useContext(dt),i=A.useContext(ot),a=(e==null?void 0:e.actionProps)??void 0;return A.useEffect(()=>{const s=a??void 0,u=(a==null?void 0:a.what)??void 0,c=(a==null?void 0:a.whenMessageIs)??void 0,f=is({globalDataContext:n,templateContext:i,valueToEvaluate:c}),d=h=>{if(h.origin!==window.location.origin||!Fr.isEqual(h.data,f))return;const p=u&&(wi[u]??void 0);p&&p({args:s,event:h,globalDataContext:n,templateContext:i})};return t==null||t.addEventListener("message",d),()=>{t==null||t.removeEventListener("message",d)}},[t,n,a,i]),R.jsx(R.Fragment,{children:e.children})};function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Gu.apply(null,arguments)}function Yd(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function Kd(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function N1(e){var t=R1(e,"string");return typeof t=="symbol"?t:String(t)}function R1(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Xd(e,t,n){var i=A.useRef(e!==void 0),a=A.useState(t),s=a[0],u=a[1],c=e!==void 0,f=i.current;return i.current=c,!c&&f&&s!==t&&u(t),[c?e:s,A.useCallback(function(d){for(var h=arguments.length,p=new Array(h>1?h-1:0),b=1;b<h;b++)p[b-1]=arguments[b];n&&n.apply(void 0,[d].concat(p)),u(d)},[n])]}function Ma(e,t){return Object.keys(t).reduce(function(n,i){var a,s=n,u=s[Kd(i)],c=s[i],f=Yd(s,[Kd(i),i].map(N1)),d=t[i],h=Xd(c,u,e[d]),p=h[0],b=h[1];return Gu({},f,(a={},a[i]=p,a[d]=b,a))},e)}function Vu(e,t){return Vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vu(e,t)}function L1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vu(e,t)}function Ai(e){return e&&e.ownerDocument||document}function B1(e){var t=Ai(e);return t&&t.defaultView||window}function M1(e,t){return B1(e).getComputedStyle(e,t)}var j1=/([A-Z])/g;function $1(e){return e.replace(j1,"-$1").toLowerCase()}var U1=/^ms-/;function ja(e){return $1(e).replace(U1,"-ms-")}var H1=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function W1(e){return!!(e&&H1.test(e))}function fr(e,t){var n="",i="";if(typeof t=="string")return e.style.getPropertyValue(ja(t))||M1(e).getPropertyValue(ja(t));Object.keys(t).forEach(function(a){var s=t[a];!s&&s!==0?e.style.removeProperty(ja(a)):W1(a)?i+=a+"("+s+") ":n+=ja(a)+": "+s+";"}),i&&(n+="transform: "+i+";"),e.style.cssText+=";"+n}const Jd={disabled:!1};var q1=process.env.NODE_ENV!=="production"?De.oneOfType([De.number,De.shape({enter:De.number,exit:De.number,appear:De.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&De.oneOfType([De.string,De.shape({enter:De.string,exit:De.string,active:De.string}),De.shape({enter:De.string,enterDone:De.string,enterActive:De.string,exit:De.string,exitDone:De.string,exitActive:De.string})]);const Zd=A.createContext(null);var z1=function(t){return t.scrollTop},Ao="unmounted",Pr="exited",dr="entering",kr="entered",$a="exiting",hr=function(e){L1(t,e);function t(i,a){var s;s=e.call(this,i,a)||this;var u=a,c=u&&!u.isMounting?i.enter:i.appear,f;return s.appearStatus=null,i.in?c?(f=Pr,s.appearStatus=dr):f=kr:i.unmountOnExit||i.mountOnEnter?f=Ao:f=Pr,s.state={status:f},s.nextCallback=null,s}t.getDerivedStateFromProps=function(a,s){var u=a.in;return u&&s.status===Ao?{status:Pr}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var s=null;if(a!==this.props){var u=this.state.status;this.props.in?u!==dr&&u!==kr&&(s=dr):(u===dr||u===kr)&&(s=$a)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,s,u,c;return s=u=c=a,a!=null&&typeof a!="number"&&(s=a.exit,u=a.enter,c=a.appear!==void 0?a.appear:u),{exit:s,enter:u,appear:c}},n.updateStatus=function(a,s){if(a===void 0&&(a=!1),s!==null)if(this.cancelNextCallback(),s===dr){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:bn.findDOMNode(this);u&&z1(u)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Pr&&this.setState({status:Ao})},n.performEnter=function(a){var s=this,u=this.props.enter,c=this.context?this.context.isMounting:a,f=this.props.nodeRef?[c]:[bn.findDOMNode(this),c],d=f[0],h=f[1],p=this.getTimeouts(),b=c?p.appear:p.enter;if(!a&&!u||Jd.disabled){this.safeSetState({status:kr},function(){s.props.onEntered(d)});return}this.props.onEnter(d,h),this.safeSetState({status:dr},function(){s.props.onEntering(d,h),s.onTransitionEnd(b,function(){s.safeSetState({status:kr},function(){s.props.onEntered(d,h)})})})},n.performExit=function(){var a=this,s=this.props.exit,u=this.getTimeouts(),c=this.props.nodeRef?void 0:bn.findDOMNode(this);if(!s||Jd.disabled){this.safeSetState({status:Pr},function(){a.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:$a},function(){a.props.onExiting(c),a.onTransitionEnd(u.exit,function(){a.safeSetState({status:Pr},function(){a.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,s){s=this.setNextCallback(s),this.setState(a,s)},n.setNextCallback=function(a){var s=this,u=!0;return this.nextCallback=function(c){u&&(u=!1,s.nextCallback=null,a(c))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},n.onTransitionEnd=function(a,s){this.setNextCallback(s);var u=this.props.nodeRef?this.props.nodeRef.current:bn.findDOMNode(this),c=a==null&&!this.props.addEndListener;if(!u||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],d=f[0],h=f[1];this.props.addEndListener(d,h)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===Ao)return null;var s=this.props,u=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var c=Yd(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return A.createElement(Zd.Provider,{value:null},typeof u=="function"?u(a,c):A.cloneElement(A.Children.only(u),c))},t}(A.Component);hr.contextType=Zd,hr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:De.shape({current:typeof Element>"u"?De.any:function(e,t,n,i,a,s){var u=e[t];return De.instanceOf(u&&"ownerDocument"in u?u.ownerDocument.defaultView.Element:Element)(e,t,n,i,a,s)}}),children:De.oneOfType([De.func.isRequired,De.element.isRequired]).isRequired,in:De.bool,mountOnEnter:De.bool,unmountOnExit:De.bool,appear:De.bool,enter:De.bool,exit:De.bool,timeout:function(t){var n=q1;t.addEndListener||(n=n.isRequired);for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return n.apply(void 0,[t].concat(a))},addEndListener:De.func,onEnter:De.func,onEntering:De.func,onEntered:De.func,onExit:De.func,onExiting:De.func,onExited:De.func}:{};function Si(){}hr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Si,onEntering:Si,onEntered:Si,onExit:Si,onExiting:Si,onExited:Si},hr.UNMOUNTED=Ao,hr.EXITED=Pr,hr.ENTERING=dr,hr.ENTERED=kr,hr.EXITING=$a;function Qd(e){return e.code==="Escape"||e.keyCode===27}function G1(){const e=ye.version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}function _i(e){if(!e||typeof e=="function")return null;const{major:t}=G1();return t>=19?e.props.ref:e.ref}const Ti=!!(typeof window<"u"&&window.document&&window.document.createElement);var Yu=!1,Ku=!1;try{var Xu={get passive(){return Yu=!0},get once(){return Ku=Yu=!0}};Ti&&(window.addEventListener("test",Xu,Xu),window.removeEventListener("test",Xu,!0))}catch{}function eh(e,t,n,i){if(i&&typeof i!="boolean"&&!Ku){var a=i.once,s=i.capture,u=n;!Ku&&a&&(u=n.__once||function c(f){this.removeEventListener(t,c,s),n.call(this,f)},n.__once=u),e.addEventListener(t,u,Yu?i:s)}e.addEventListener(t,n,i)}function Ju(e,t,n,i){var a=i&&typeof i!="boolean"?i.capture:i;e.removeEventListener(t,n,a),n.__once&&e.removeEventListener(t,n.__once,a)}function pr(e,t,n,i){return eh(e,t,n,i),function(){Ju(e,t,n,i)}}function V1(e,t,n,i){if(i===void 0&&(i=!0),e){var a=document.createEvent("HTMLEvents");a.initEvent(t,n,i),e.dispatchEvent(a)}}function Y1(e){var t=fr(e,"transitionDuration")||"",n=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*n}function K1(e,t,n){n===void 0&&(n=5);var i=!1,a=setTimeout(function(){i||V1(e,"transitionend",!0)},t+n),s=pr(e,"transitionend",function(){i=!0},{once:!0});return function(){clearTimeout(a),s()}}function th(e,t,n,i){n==null&&(n=Y1(e)||0);var a=K1(e,n,i),s=pr(e,"transitionend",t);return function(){a(),s()}}function nh(e,t){const n=fr(e,t)||"",i=n.indexOf("ms")===-1?1e3:1;return parseFloat(n)*i}function rh(e,t){const n=nh(e,"transitionDuration"),i=nh(e,"transitionDelay"),a=th(e,s=>{s.target===e&&(a(),t(s))},n+i)}function So(...e){return e.filter(t=>t!=null).reduce((t,n)=>{if(typeof n!="function")throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return t===null?n:function(...a){t.apply(this,a),n.apply(this,a)}},null)}function ih(e){e.offsetHeight}const oh=e=>!e||typeof e=="function"?e:t=>{e.current=t};function X1(e,t){const n=oh(e),i=oh(t);return a=>{n&&n(a),i&&i(a)}}function Ua(e,t){return A.useMemo(()=>X1(e,t),[e,t])}function Ha(e){return e&&"setState"in e?bn.findDOMNode(e):e??null}const ah=A.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:i,onExiting:a,onExited:s,addEndListener:u,children:c,childRef:f,...d},h)=>{const p=A.useRef(null),b=Ua(p,f),E=S=>{b(Ha(S))},x=S=>O=>{S&&p.current&&S(p.current,O)},C=A.useCallback(x(e),[e]),m=A.useCallback(x(t),[t]),D=A.useCallback(x(n),[n]),F=A.useCallback(x(i),[i]),I=A.useCallback(x(a),[a]),w=A.useCallback(x(s),[s]),v=A.useCallback(x(u),[u]);return R.jsx(hr,{ref:h,...d,onEnter:C,onEntered:D,onEntering:m,onExit:F,onExited:w,onExiting:I,addEndListener:v,nodeRef:p,children:typeof c=="function"?(S,O)=>c(S,{...O,ref:E}):A.cloneElement(c,{ref:E})})}),J1={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Z1(e,t){const n=`offset${e[0].toUpperCase()}${e.slice(1)}`,i=t[n],a=J1[e];return i+parseInt(fr(t,a[0]),10)+parseInt(fr(t,a[1]),10)}const Q1={[Pr]:"collapse",[$a]:"collapsing",[dr]:"collapsing",[kr]:"collapse show"},eb=A.forwardRef(({onEnter:e,onEntering:t,onEntered:n,onExit:i,onExiting:a,className:s,children:u,dimension:c="height",in:f=!1,timeout:d=300,mountOnEnter:h=!1,unmountOnExit:p=!1,appear:b=!1,getDimensionValue:E=Z1,...x},C)=>{const m=typeof c=="function"?c():c,D=A.useMemo(()=>So(S=>{S.style[m]="0"},e),[m,e]),F=A.useMemo(()=>So(S=>{const O=`scroll${m[0].toUpperCase()}${m.slice(1)}`;S.style[m]=`${S[O]}px`},t),[m,t]),I=A.useMemo(()=>So(S=>{S.style[m]=null},n),[m,n]),w=A.useMemo(()=>So(S=>{S.style[m]=`${E(m,S)}px`,ih(S)},i),[i,E,m]),v=A.useMemo(()=>So(S=>{S.style[m]=null},a),[m,a]);return R.jsx(ah,{ref:C,addEndListener:rh,...x,"aria-expanded":x.role?f:null,onEnter:D,onEntering:F,onEntered:I,onExit:w,onExiting:v,childRef:_i(u),in:f,timeout:d,mountOnEnter:h,unmountOnExit:p,appear:b,children:(S,O)=>A.cloneElement(u,{...O,className:Pe(s,u.props.className,Q1[S],m==="width"&&"collapse-horizontal")})})});function sh(e,t){return Array.isArray(e)?e.includes(t):e===t}const _o=ye.createContext({});_o.displayName="AccordionContext";const Zu=ye.forwardRef(({as:e="div",bsPrefix:t,className:n,children:i,eventKey:a,...s},u)=>{const{activeEventKey:c}=A.useContext(_o);return t=He(t,"accordion-collapse"),R.jsx(eb,{ref:u,in:sh(c,a),...s,className:Pe(n,t),children:R.jsx(e,{children:ye.Children.only(i)})})});Zu.displayName="AccordionCollapse";const Wa=ye.createContext({eventKey:""});Wa.displayName="AccordionItemContext";const uh=ye.forwardRef(({as:e="div",bsPrefix:t,className:n,onEnter:i,onEntering:a,onEntered:s,onExit:u,onExiting:c,onExited:f,...d},h)=>{t=He(t,"accordion-body");const{eventKey:p}=A.useContext(Wa);return R.jsx(Zu,{eventKey:p,onEnter:i,onEntering:a,onEntered:s,onExit:u,onExiting:c,onExited:f,children:R.jsx(e,{ref:h,...d,className:Pe(n,t)})})});uh.displayName="AccordionBody";function tb(e,t){const{activeEventKey:n,onSelect:i,alwaysOpen:a}=A.useContext(_o);return s=>{let u=e===n?null:e;a&&(Array.isArray(n)?n.includes(e)?u=n.filter(c=>c!==e):u=[...n,e]:u=[e]),i==null||i(u,s),t==null||t(s)}}const Qu=ye.forwardRef(({as:e="button",bsPrefix:t,className:n,onClick:i,...a},s)=>{t=He(t,"accordion-button");const{eventKey:u}=A.useContext(Wa),c=tb(u,i),{activeEventKey:f}=A.useContext(_o);return e==="button"&&(a.type="button"),R.jsx(e,{ref:s,onClick:c,...a,"aria-expanded":Array.isArray(f)?f.includes(u):u===f,className:Pe(n,t,!sh(f,u)&&"collapsed")})});Qu.displayName="AccordionButton";const lh=ye.forwardRef(({as:e="h2","aria-controls":t,bsPrefix:n,className:i,children:a,onClick:s,...u},c)=>(n=He(n,"accordion-header"),R.jsx(e,{ref:c,...u,className:Pe(i,n),children:R.jsx(Qu,{onClick:s,"aria-controls":t,children:a})})));lh.displayName="AccordionHeader";const ch=ye.forwardRef(({as:e="div",bsPrefix:t,className:n,eventKey:i,...a},s)=>{t=He(t,"accordion-item");const u=A.useMemo(()=>({eventKey:i}),[i]);return R.jsx(Wa.Provider,{value:u,children:R.jsx(e,{ref:s,...a,className:Pe(n,t)})})});ch.displayName="AccordionItem";const fh=ye.forwardRef((e,t)=>{const{as:n="div",activeKey:i,bsPrefix:a,className:s,onSelect:u,flush:c,alwaysOpen:f,...d}=Ma(e,{activeKey:"onSelect"}),h=He(a,"accordion"),p=A.useMemo(()=>({activeEventKey:i,onSelect:u,alwaysOpen:f}),[i,u,f]);return R.jsx(_o.Provider,{value:p,children:R.jsx(n,{ref:t,...d,className:Pe(s,h,c&&`${h}-flush`)})})});fh.displayName="Accordion";const qa=Object.assign(fh,{Button:Qu,Collapse:Zu,Item:ch,Header:lh,Body:uh});function nb(e){const t=A.useRef(e);return A.useEffect(()=>{t.current=e},[e]),t}function To(e){const t=nb(e);return A.useCallback(function(...n){return t.current&&t.current(...n)},[t])}const dh=e=>ye.forwardRef((t,n)=>R.jsx("div",{...t,ref:n,className:Pe(t.className,e)})),hh=dh("h4");hh.displayName="DivStyledAsH4";const ph=ye.forwardRef(({className:e,bsPrefix:t,as:n=hh,...i},a)=>(t=He(t,"alert-heading"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));ph.displayName="AlertHeading";function mh(){return A.useState(null)}function rb(e){const t=A.useRef(e);return A.useEffect(()=>{t.current=e},[e]),t}function Dn(e){const t=rb(e);return A.useCallback(function(...n){return t.current&&t.current(...n)},[t])}function gh(){const e=A.useRef(!0),t=A.useRef(()=>e.current);return A.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function ib(e){const t=A.useRef(null);return A.useEffect(()=>{t.current=e}),t.current}const ob=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",vh=typeof document<"u"||ob?A.useLayoutEffect:A.useEffect,ab=["as","disabled"];function sb(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function ub(e){return!e||e.trim()==="#"}function el({tagName:e,disabled:t,href:n,target:i,rel:a,role:s,onClick:u,tabIndex:c=0,type:f}){e||(n!=null||i!=null||a!=null?e="a":e="button");const d={tagName:e};if(e==="button")return[{type:f||"button",disabled:t},d];const h=b=>{if((t||e==="a"&&ub(n))&&b.preventDefault(),t){b.stopPropagation();return}u==null||u(b)},p=b=>{b.key===" "&&(b.preventDefault(),h(b))};return e==="a"&&(n||(n="#"),t&&(n=void 0)),[{role:s??"button",disabled:void 0,tabIndex:t?void 0:c,href:n,target:e==="a"?i:void 0,"aria-disabled":t||void 0,rel:e==="a"?a:void 0,onClick:h,onKeyDown:p},d]}const yh=ye.forwardRef((e,t)=>{let{as:n,disabled:i}=e,a=sb(e,ab);const[s,{tagName:u}]=el(Object.assign({tagName:n,disabled:i},a));return R.jsx(u,Object.assign({},a,s,{ref:t}))});yh.displayName="Button";const lb=["onKeyDown"];function cb(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function fb(e){return!e||e.trim()==="#"}const za=ye.forwardRef((e,t)=>{let{onKeyDown:n}=e,i=cb(e,lb);const[a]=el(Object.assign({tagName:"a"},i)),s=Dn(u=>{a.onKeyDown(u),n==null||n(u)});return fb(i.href)||i.role==="button"?R.jsx("a",Object.assign({ref:t},i,a,{onKeyDown:s})):R.jsx("a",Object.assign({ref:t},i,{onKeyDown:n}))});za.displayName="Anchor";const bh=ye.forwardRef(({className:e,bsPrefix:t,as:n=za,...i},a)=>(t=He(t,"alert-link"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));bh.displayName="AlertLink";const db={[dr]:"show",[kr]:"show"},mr=ye.forwardRef(({className:e,children:t,transitionClasses:n={},onEnter:i,...a},s)=>{const u={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},c=A.useCallback((f,d)=>{ih(f),i==null||i(f,d)},[i]);return R.jsx(ah,{ref:s,addEndListener:rh,...u,onEnter:c,childRef:_i(t),children:(f,d)=>ye.cloneElement(t,{...d,className:Pe("fade",e,t.props.className,db[f],n[f])})})});mr.displayName="Fade";const hb={"aria-label":De.string,onClick:De.func,variant:De.oneOf(["white"])},Ga=ye.forwardRef(({className:e,variant:t,"aria-label":n="Close",...i},a)=>R.jsx("button",{ref:a,type:"button",className:Pe("btn-close",t&&`btn-close-${t}`,e),"aria-label":n,...i}));Ga.displayName="CloseButton",Ga.propTypes=hb;const xh=ye.forwardRef((e,t)=>{const{bsPrefix:n,show:i=!0,closeLabel:a="Close alert",closeVariant:s,className:u,children:c,variant:f="primary",onClose:d,dismissible:h,transition:p=mr,...b}=Ma(e,{show:"onClose"}),E=He(n,"alert"),x=To(D=>{d&&d(!1,D)}),C=p===!0?mr:p,m=R.jsxs("div",{role:"alert",...C?void 0:b,ref:t,className:Pe(u,E,f&&`${E}-${f}`,h&&`${E}-dismissible`),children:[h&&R.jsx(Ga,{onClick:x,"aria-label":a,variant:s}),c]});return C?R.jsx(C,{unmountOnExit:!0,...b,ref:void 0,in:i,children:m}):i?m:null});xh.displayName="Alert";const pb=Object.assign(xh,{Link:bh,Heading:ph}),Eh=ye.forwardRef(({bsPrefix:e,bg:t="primary",pill:n=!1,text:i,className:a,as:s="span",...u},c)=>{const f=He(e,"badge");return R.jsx(s,{ref:c,...u,className:Pe(a,f,n&&"rounded-pill",i&&`text-${i}`,t&&`bg-${t}`)})});Eh.displayName="Badge";const Ch=ye.forwardRef(({as:e,bsPrefix:t,variant:n="primary",size:i,active:a=!1,disabled:s=!1,className:u,...c},f)=>{const d=He(t,"btn"),[h,{tagName:p}]=el({tagName:e,disabled:s,...c}),b=p;return R.jsx(b,{...h,...c,ref:f,disabled:s,className:Pe(u,d,a&&"active",n&&`${d}-${n}`,i&&`${d}-${i}`,c.href&&s&&"disabled")})});Ch.displayName="Button";const wh=ye.createContext(null);wh.displayName="CardHeaderContext";function mb(){const e=A.useRef(!0),t=A.useRef(()=>e.current);return A.useEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}function gb(e){const t=A.useRef(e);return t.current=e,t}function Ah(e){const t=gb(e);A.useEffect(()=>()=>t.current(),[])}const tl=2**31-1;function Sh(e,t,n){const i=n-Date.now();e.current=i<=tl?setTimeout(t,i):setTimeout(()=>Sh(e,t,n),tl)}function vb(){const e=mb(),t=A.useRef();return Ah(()=>clearTimeout(t.current)),A.useMemo(()=>{const n=()=>clearTimeout(t.current);function i(a,s=0){e()&&(n(),s<=tl?t.current=setTimeout(a,s):Sh(t,a,Date.now()+s))}return{set:i,clear:n,handleRef:t}},[])}var yb=Function.prototype.bind.call(Function.prototype.call,[].slice);function ti(e,t){return yb(e.querySelectorAll(t))}function bb(e,t,n){const i=A.useRef(e!==void 0),[a,s]=A.useState(t),u=e!==void 0,c=i.current;return i.current=u,!u&&c&&a!==t&&s(t),[u?e:a,A.useCallback((...f)=>{const[d,...h]=f;let p=n==null?void 0:n(d,...h);return s(d),p},[n])]}function xb(){const[,e]=A.useReducer(t=>t+1,0);return e}var _h=Object.prototype.hasOwnProperty;function Th(e,t,n){for(n of e.keys())if(Oo(n,t))return n}function Oo(e,t){var n,i,a;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((i=e.length)===t.length)for(;i--&&Oo(e[i],t[i]););return i===-1}if(n===Set){if(e.size!==t.size)return!1;for(i of e)if(a=i,a&&typeof a=="object"&&(a=Th(t,a),!a)||!t.has(a))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(i of e)if(a=i[0],a&&typeof a=="object"&&(a=Th(t,a),!a)||!Oo(i[1],t.get(a)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((i=e.byteLength)===t.byteLength)for(;i--&&e.getInt8(i)===t.getInt8(i););return i===-1}if(ArrayBuffer.isView(e)){if((i=e.byteLength)===t.byteLength)for(;i--&&e[i]===t[i];);return i===-1}if(!n||typeof e=="object"){i=0;for(n in e)if(_h.call(e,n)&&++i&&!_h.call(t,n)||!(n in t)||!Oo(e[n],t[n]))return!1;return Object.keys(t).length===i}}return e!==e&&t!==t}function Eb(e){const t=gh();return[e[0],A.useCallback(n=>{if(t())return e[1](n)},[t,e[1]])]}var dn="top",In="bottom",Fn="right",hn="left",nl="auto",Do=[dn,In,Fn,hn],Oi="start",Io="end",Cb="clippingParents",Oh="viewport",Fo="popper",wb="reference",Dh=Do.reduce(function(e,t){return e.concat([t+"-"+Oi,t+"-"+Io])},[]),Ih=[].concat(Do,[nl]).reduce(function(e,t){return e.concat([t,t+"-"+Oi,t+"-"+Io])},[]),Ab="beforeRead",Sb="read",_b="afterRead",Tb="beforeMain",Ob="main",Db="afterMain",Ib="beforeWrite",Fb="write",Pb="afterWrite",kb=[Ab,Sb,_b,Tb,Ob,Db,Ib,Fb,Pb];function er(e){return e.split("-")[0]}function En(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ni(e){var t=En(e).Element;return e instanceof t||e instanceof Element}function tr(e){var t=En(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function rl(e){if(typeof ShadowRoot>"u")return!1;var t=En(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var ri=Math.max,Va=Math.min,Di=Math.round;function il(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Fh(){return!/^((?!chrome|android).)*safari/i.test(il())}function Ii(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),a=1,s=1;t&&tr(e)&&(a=e.offsetWidth>0&&Di(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Di(i.height)/e.offsetHeight||1);var u=ni(e)?En(e):window,c=u.visualViewport,f=!Fh()&&n,d=(i.left+(f&&c?c.offsetLeft:0))/a,h=(i.top+(f&&c?c.offsetTop:0))/s,p=i.width/a,b=i.height/s;return{width:p,height:b,top:h,right:d+p,bottom:h+b,left:d,x:d,y:h}}function ol(e){var t=Ii(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Ph(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&rl(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Nr(e){return e?(e.nodeName||"").toLowerCase():null}function gr(e){return En(e).getComputedStyle(e)}function Nb(e){return["table","td","th"].indexOf(Nr(e))>=0}function Rr(e){return((ni(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ya(e){return Nr(e)==="html"?e:e.assignedSlot||e.parentNode||(rl(e)?e.host:null)||Rr(e)}function kh(e){return!tr(e)||gr(e).position==="fixed"?null:e.offsetParent}function Rb(e){var t=/firefox/i.test(il()),n=/Trident/i.test(il());if(n&&tr(e)){var i=gr(e);if(i.position==="fixed")return null}var a=Ya(e);for(rl(a)&&(a=a.host);tr(a)&&["html","body"].indexOf(Nr(a))<0;){var s=gr(a);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return a;a=a.parentNode}return null}function Po(e){for(var t=En(e),n=kh(e);n&&Nb(n)&&gr(n).position==="static";)n=kh(n);return n&&(Nr(n)==="html"||Nr(n)==="body"&&gr(n).position==="static")?t:n||Rb(e)||t}function al(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ko(e,t,n){return ri(e,Va(t,n))}function Lb(e,t,n){var i=ko(e,t,n);return i>n?n:i}function Nh(){return{top:0,right:0,bottom:0,left:0}}function Rh(e){return Object.assign({},Nh(),e)}function Lh(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var Bb=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Rh(typeof t!="number"?t:Lh(t,Do))};function Mb(e){var t,n=e.state,i=e.name,a=e.options,s=n.elements.arrow,u=n.modifiersData.popperOffsets,c=er(n.placement),f=al(c),d=[hn,Fn].indexOf(c)>=0,h=d?"height":"width";if(!(!s||!u)){var p=Bb(a.padding,n),b=ol(s),E=f==="y"?dn:hn,x=f==="y"?In:Fn,C=n.rects.reference[h]+n.rects.reference[f]-u[f]-n.rects.popper[h],m=u[f]-n.rects.reference[f],D=Po(s),F=D?f==="y"?D.clientHeight||0:D.clientWidth||0:0,I=C/2-m/2,w=p[E],v=F-b[h]-p[x],S=F/2-b[h]/2+I,O=ko(w,S,v),B=f;n.modifiersData[i]=(t={},t[B]=O,t.centerOffset=O-S,t)}}function jb(e){var t=e.state,n=e.options,i=n.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||Ph(t.elements.popper,a)&&(t.elements.arrow=a))}const $b={name:"arrow",enabled:!0,phase:"main",fn:Mb,effect:jb,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Fi(e){return e.split("-")[1]}var Ub={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Hb(e,t){var n=e.x,i=e.y,a=t.devicePixelRatio||1;return{x:Di(n*a)/a||0,y:Di(i*a)/a||0}}function Bh(e){var t,n=e.popper,i=e.popperRect,a=e.placement,s=e.variation,u=e.offsets,c=e.position,f=e.gpuAcceleration,d=e.adaptive,h=e.roundOffsets,p=e.isFixed,b=u.x,E=b===void 0?0:b,x=u.y,C=x===void 0?0:x,m=typeof h=="function"?h({x:E,y:C}):{x:E,y:C};E=m.x,C=m.y;var D=u.hasOwnProperty("x"),F=u.hasOwnProperty("y"),I=hn,w=dn,v=window;if(d){var S=Po(n),O="clientHeight",B="clientWidth";if(S===En(n)&&(S=Rr(n),gr(S).position!=="static"&&c==="absolute"&&(O="scrollHeight",B="scrollWidth")),S=S,a===dn||(a===hn||a===Fn)&&s===Io){w=In;var G=p&&S===v&&v.visualViewport?v.visualViewport.height:S[O];C-=G-i.height,C*=f?1:-1}if(a===hn||(a===dn||a===In)&&s===Io){I=Fn;var q=p&&S===v&&v.visualViewport?v.visualViewport.width:S[B];E-=q-i.width,E*=f?1:-1}}var V=Object.assign({position:c},d&&Ub),ue=h===!0?Hb({x:E,y:C},En(n)):{x:E,y:C};if(E=ue.x,C=ue.y,f){var ne;return Object.assign({},V,(ne={},ne[w]=F?"0":"",ne[I]=D?"0":"",ne.transform=(v.devicePixelRatio||1)<=1?"translate("+E+"px, "+C+"px)":"translate3d("+E+"px, "+C+"px, 0)",ne))}return Object.assign({},V,(t={},t[w]=F?C+"px":"",t[I]=D?E+"px":"",t.transform="",t))}function Wb(e){var t=e.state,n=e.options,i=n.gpuAcceleration,a=i===void 0?!0:i,s=n.adaptive,u=s===void 0?!0:s,c=n.roundOffsets,f=c===void 0?!0:c,d={placement:er(t.placement),variation:Fi(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Bh(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Bh(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const qb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Wb,data:{}};var Ka={passive:!0};function zb(e){var t=e.state,n=e.instance,i=e.options,a=i.scroll,s=a===void 0?!0:a,u=i.resize,c=u===void 0?!0:u,f=En(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(h){h.addEventListener("scroll",n.update,Ka)}),c&&f.addEventListener("resize",n.update,Ka),function(){s&&d.forEach(function(h){h.removeEventListener("scroll",n.update,Ka)}),c&&f.removeEventListener("resize",n.update,Ka)}}const Gb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:zb,data:{}};var Vb={left:"right",right:"left",bottom:"top",top:"bottom"};function Xa(e){return e.replace(/left|right|bottom|top/g,function(t){return Vb[t]})}var Yb={start:"end",end:"start"};function Mh(e){return e.replace(/start|end/g,function(t){return Yb[t]})}function sl(e){var t=En(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function ul(e){return Ii(Rr(e)).left+sl(e).scrollLeft}function Kb(e,t){var n=En(e),i=Rr(e),a=n.visualViewport,s=i.clientWidth,u=i.clientHeight,c=0,f=0;if(a){s=a.width,u=a.height;var d=Fh();(d||!d&&t==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}return{width:s,height:u,x:c+ul(e),y:f}}function Xb(e){var t,n=Rr(e),i=sl(e),a=(t=e.ownerDocument)==null?void 0:t.body,s=ri(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),u=ri(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-i.scrollLeft+ul(e),f=-i.scrollTop;return gr(a||n).direction==="rtl"&&(c+=ri(n.clientWidth,a?a.clientWidth:0)-s),{width:s,height:u,x:c,y:f}}function ll(e){var t=gr(e),n=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+i)}function jh(e){return["html","body","#document"].indexOf(Nr(e))>=0?e.ownerDocument.body:tr(e)&&ll(e)?e:jh(Ya(e))}function No(e,t){var n;t===void 0&&(t=[]);var i=jh(e),a=i===((n=e.ownerDocument)==null?void 0:n.body),s=En(i),u=a?[s].concat(s.visualViewport||[],ll(i)?i:[]):i,c=t.concat(u);return a?c:c.concat(No(Ya(u)))}function cl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Jb(e,t){var n=Ii(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function $h(e,t,n){return t===Oh?cl(Kb(e,n)):ni(t)?Jb(t,n):cl(Xb(Rr(e)))}function Zb(e){var t=No(Ya(e)),n=["absolute","fixed"].indexOf(gr(e).position)>=0,i=n&&tr(e)?Po(e):e;return ni(i)?t.filter(function(a){return ni(a)&&Ph(a,i)&&Nr(a)!=="body"}):[]}function Qb(e,t,n,i){var a=t==="clippingParents"?Zb(e):[].concat(t),s=[].concat(a,[n]),u=s[0],c=s.reduce(function(f,d){var h=$h(e,d,i);return f.top=ri(h.top,f.top),f.right=Va(h.right,f.right),f.bottom=Va(h.bottom,f.bottom),f.left=ri(h.left,f.left),f},$h(e,u,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Uh(e){var t=e.reference,n=e.element,i=e.placement,a=i?er(i):null,s=i?Fi(i):null,u=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,f;switch(a){case dn:f={x:u,y:t.y-n.height};break;case In:f={x:u,y:t.y+t.height};break;case Fn:f={x:t.x+t.width,y:c};break;case hn:f={x:t.x-n.width,y:c};break;default:f={x:t.x,y:t.y}}var d=a?al(a):null;if(d!=null){var h=d==="y"?"height":"width";switch(s){case Oi:f[d]=f[d]-(t[h]/2-n[h]/2);break;case Io:f[d]=f[d]+(t[h]/2-n[h]/2);break}}return f}function Ro(e,t){t===void 0&&(t={});var n=t,i=n.placement,a=i===void 0?e.placement:i,s=n.strategy,u=s===void 0?e.strategy:s,c=n.boundary,f=c===void 0?Cb:c,d=n.rootBoundary,h=d===void 0?Oh:d,p=n.elementContext,b=p===void 0?Fo:p,E=n.altBoundary,x=E===void 0?!1:E,C=n.padding,m=C===void 0?0:C,D=Rh(typeof m!="number"?m:Lh(m,Do)),F=b===Fo?wb:Fo,I=e.rects.popper,w=e.elements[x?F:b],v=Qb(ni(w)?w:w.contextElement||Rr(e.elements.popper),f,h,u),S=Ii(e.elements.reference),O=Uh({reference:S,element:I,placement:a}),B=cl(Object.assign({},I,O)),G=b===Fo?B:S,q={top:v.top-G.top+D.top,bottom:G.bottom-v.bottom+D.bottom,left:v.left-G.left+D.left,right:G.right-v.right+D.right},V=e.modifiersData.offset;if(b===Fo&&V){var ue=V[a];Object.keys(q).forEach(function(ne){var te=[Fn,In].indexOf(ne)>=0?1:-1,le=[dn,In].indexOf(ne)>=0?"y":"x";q[ne]+=ue[le]*te})}return q}function ex(e,t){t===void 0&&(t={});var n=t,i=n.placement,a=n.boundary,s=n.rootBoundary,u=n.padding,c=n.flipVariations,f=n.allowedAutoPlacements,d=f===void 0?Ih:f,h=Fi(i),p=h?c?Dh:Dh.filter(function(x){return Fi(x)===h}):Do,b=p.filter(function(x){return d.indexOf(x)>=0});b.length===0&&(b=p);var E=b.reduce(function(x,C){return x[C]=Ro(e,{placement:C,boundary:a,rootBoundary:s,padding:u})[er(C)],x},{});return Object.keys(E).sort(function(x,C){return E[x]-E[C]})}function tx(e){if(er(e)===nl)return[];var t=Xa(e);return[Mh(e),t,Mh(t)]}function nx(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=n.mainAxis,s=a===void 0?!0:a,u=n.altAxis,c=u===void 0?!0:u,f=n.fallbackPlacements,d=n.padding,h=n.boundary,p=n.rootBoundary,b=n.altBoundary,E=n.flipVariations,x=E===void 0?!0:E,C=n.allowedAutoPlacements,m=t.options.placement,D=er(m),F=D===m,I=f||(F||!x?[Xa(m)]:tx(m)),w=[m].concat(I).reduce(function(z,J){return z.concat(er(J)===nl?ex(t,{placement:J,boundary:h,rootBoundary:p,padding:d,flipVariations:x,allowedAutoPlacements:C}):J)},[]),v=t.rects.reference,S=t.rects.popper,O=new Map,B=!0,G=w[0],q=0;q<w.length;q++){var V=w[q],ue=er(V),ne=Fi(V)===Oi,te=[dn,In].indexOf(ue)>=0,le=te?"width":"height",xe=Ro(t,{placement:V,boundary:h,rootBoundary:p,altBoundary:b,padding:d}),he=te?ne?Fn:hn:ne?In:dn;v[le]>S[le]&&(he=Xa(he));var fe=Xa(he),Ie=[];if(s&&Ie.push(xe[ue]<=0),c&&Ie.push(xe[he]<=0,xe[fe]<=0),Ie.every(function(z){return z})){G=V,B=!1;break}O.set(V,Ie)}if(B)for(var M=x?3:1,K=function(J){var de=w.find(function(ve){var ae=O.get(ve);if(ae)return ae.slice(0,J).every(function(Z){return Z})});if(de)return G=de,"break"},pe=M;pe>0;pe--){var j=K(pe);if(j==="break")break}t.placement!==G&&(t.modifiersData[i]._skip=!0,t.placement=G,t.reset=!0)}}const rx={name:"flip",enabled:!0,phase:"main",fn:nx,requiresIfExists:["offset"],data:{_skip:!1}};function Hh(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Wh(e){return[dn,Fn,In,hn].some(function(t){return e[t]>=0})}function ix(e){var t=e.state,n=e.name,i=t.rects.reference,a=t.rects.popper,s=t.modifiersData.preventOverflow,u=Ro(t,{elementContext:"reference"}),c=Ro(t,{altBoundary:!0}),f=Hh(u,i),d=Hh(c,a,s),h=Wh(f),p=Wh(d);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":p})}const ox={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ix};function ax(e,t,n){var i=er(e),a=[hn,dn].indexOf(i)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,u=s[0],c=s[1];return u=u||0,c=(c||0)*a,[hn,Fn].indexOf(i)>=0?{x:c,y:u}:{x:u,y:c}}function sx(e){var t=e.state,n=e.options,i=e.name,a=n.offset,s=a===void 0?[0,0]:a,u=Ih.reduce(function(h,p){return h[p]=ax(p,t.rects,s),h},{}),c=u[t.placement],f=c.x,d=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=u}const ux={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sx};function lx(e){var t=e.state,n=e.name;t.modifiersData[n]=Uh({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const cx={name:"popperOffsets",enabled:!0,phase:"read",fn:lx,data:{}};function fx(e){return e==="x"?"y":"x"}function dx(e){var t=e.state,n=e.options,i=e.name,a=n.mainAxis,s=a===void 0?!0:a,u=n.altAxis,c=u===void 0?!1:u,f=n.boundary,d=n.rootBoundary,h=n.altBoundary,p=n.padding,b=n.tether,E=b===void 0?!0:b,x=n.tetherOffset,C=x===void 0?0:x,m=Ro(t,{boundary:f,rootBoundary:d,padding:p,altBoundary:h}),D=er(t.placement),F=Fi(t.placement),I=!F,w=al(D),v=fx(w),S=t.modifiersData.popperOffsets,O=t.rects.reference,B=t.rects.popper,G=typeof C=="function"?C(Object.assign({},t.rects,{placement:t.placement})):C,q=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ue={x:0,y:0};if(S){if(s){var ne,te=w==="y"?dn:hn,le=w==="y"?In:Fn,xe=w==="y"?"height":"width",he=S[w],fe=he+m[te],Ie=he-m[le],M=E?-B[xe]/2:0,K=F===Oi?O[xe]:B[xe],pe=F===Oi?-B[xe]:-O[xe],j=t.elements.arrow,z=E&&j?ol(j):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Nh(),de=J[te],ve=J[le],ae=ko(0,O[xe],z[xe]),Z=I?O[xe]/2-M-ae-de-q.mainAxis:K-ae-de-q.mainAxis,Y=I?-O[xe]/2+M+ae+ve+q.mainAxis:pe+ae+ve+q.mainAxis,me=t.elements.arrow&&Po(t.elements.arrow),ee=me?w==="y"?me.clientTop||0:me.clientLeft||0:0,Be=(ne=V==null?void 0:V[w])!=null?ne:0,ke=he+Z-Be-ee,Te=he+Y-Be,et=ko(E?Va(fe,ke):fe,he,E?ri(Ie,Te):Ie);S[w]=et,ue[w]=et-he}if(c){var Ye,Zt=w==="x"?dn:hn,zt=w==="x"?In:Fn,tt=S[v],Ke=v==="y"?"height":"width",we=tt+m[Zt],ct=tt-m[zt],bt=[dn,hn].indexOf(D)!==-1,Qt=(Ye=V==null?void 0:V[v])!=null?Ye:0,Me=bt?we:tt-O[Ke]-B[Ke]-Qt+q.altAxis,Ce=bt?tt+O[Ke]+B[Ke]-Qt-q.altAxis:ct,Le=E&&bt?Lb(Me,tt,Ce):ko(E?Me:we,tt,E?Ce:ct);S[v]=Le,ue[v]=Le-tt}t.modifiersData[i]=ue}}const hx={name:"preventOverflow",enabled:!0,phase:"main",fn:dx,requiresIfExists:["offset"]};function px(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mx(e){return e===En(e)||!tr(e)?sl(e):px(e)}function gx(e){var t=e.getBoundingClientRect(),n=Di(t.width)/e.offsetWidth||1,i=Di(t.height)/e.offsetHeight||1;return n!==1||i!==1}function vx(e,t,n){n===void 0&&(n=!1);var i=tr(t),a=tr(t)&&gx(t),s=Rr(t),u=Ii(e,a,n),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!n)&&((Nr(t)!=="body"||ll(s))&&(c=mx(t)),tr(t)?(f=Ii(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):s&&(f.x=ul(s))),{x:u.left+c.scrollLeft-f.x,y:u.top+c.scrollTop-f.y,width:u.width,height:u.height}}function yx(e){var t=new Map,n=new Set,i=[];e.forEach(function(s){t.set(s.name,s)});function a(s){n.add(s.name);var u=[].concat(s.requires||[],s.requiresIfExists||[]);u.forEach(function(c){if(!n.has(c)){var f=t.get(c);f&&a(f)}}),i.push(s)}return e.forEach(function(s){n.has(s.name)||a(s)}),i}function bx(e){var t=yx(e);return kb.reduce(function(n,i){return n.concat(t.filter(function(a){return a.phase===i}))},[])}function xx(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Ex(e){var t=e.reduce(function(n,i){var a=n[i.name];return n[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var qh={placement:"bottom",modifiers:[],strategy:"absolute"};function zh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Cx(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,a=t.defaultOptions,s=a===void 0?qh:a;return function(c,f,d){d===void 0&&(d=s);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},qh,s),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},p=[],b=!1,E={state:h,setOptions:function(D){var F=typeof D=="function"?D(h.options):D;C(),h.options=Object.assign({},s,h.options,F),h.scrollParents={reference:ni(c)?No(c):c.contextElement?No(c.contextElement):[],popper:No(f)};var I=bx(Ex([].concat(i,h.options.modifiers)));return h.orderedModifiers=I.filter(function(w){return w.enabled}),x(),E.update()},forceUpdate:function(){if(!b){var D=h.elements,F=D.reference,I=D.popper;if(zh(F,I)){h.rects={reference:vx(F,Po(I),h.options.strategy==="fixed"),popper:ol(I)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(q){return h.modifiersData[q.name]=Object.assign({},q.data)});for(var w=0;w<h.orderedModifiers.length;w++){if(h.reset===!0){h.reset=!1,w=-1;continue}var v=h.orderedModifiers[w],S=v.fn,O=v.options,B=O===void 0?{}:O,G=v.name;typeof S=="function"&&(h=S({state:h,options:B,name:G,instance:E})||h)}}}},update:xx(function(){return new Promise(function(m){E.forceUpdate(),m(h)})}),destroy:function(){C(),b=!0}};if(!zh(c,f))return E;E.setOptions(d).then(function(m){!b&&d.onFirstUpdate&&d.onFirstUpdate(m)});function x(){h.orderedModifiers.forEach(function(m){var D=m.name,F=m.options,I=F===void 0?{}:F,w=m.effect;if(typeof w=="function"){var v=w({state:h,name:D,instance:E,options:I}),S=function(){};p.push(v||S)}})}function C(){p.forEach(function(m){return m()}),p=[]}return E}}const wx=Cx({defaultModifiers:[ox,cx,qb,Gb,ux,rx,hx,$b]}),Ax=["enabled","placement","strategy","modifiers"];function Sx(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}const _x={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},Tx={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:e})=>()=>{const{reference:t,popper:n}=e.elements;if("removeAttribute"in t){const i=(t.getAttribute("aria-describedby")||"").split(",").filter(a=>a.trim()!==n.id);i.length?t.setAttribute("aria-describedby",i.join(",")):t.removeAttribute("aria-describedby")}},fn:({state:e})=>{var t;const{popper:n,reference:i}=e.elements,a=(t=n.getAttribute("role"))==null?void 0:t.toLowerCase();if(n.id&&a==="tooltip"&&"setAttribute"in i){const s=i.getAttribute("aria-describedby");if(s&&s.split(",").indexOf(n.id)!==-1)return;i.setAttribute("aria-describedby",s?`${s},${n.id}`:n.id)}}},Ox=[];function Dx(e,t,n={}){let{enabled:i=!0,placement:a="bottom",strategy:s="absolute",modifiers:u=Ox}=n,c=Sx(n,Ax);const f=A.useRef(u),d=A.useRef(),h=A.useCallback(()=>{var m;(m=d.current)==null||m.update()},[]),p=A.useCallback(()=>{var m;(m=d.current)==null||m.forceUpdate()},[]),[b,E]=Eb(A.useState({placement:a,update:h,forceUpdate:p,attributes:{},styles:{popper:{},arrow:{}}})),x=A.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:m})=>{const D={},F={};Object.keys(m.elements).forEach(I=>{D[I]=m.styles[I],F[I]=m.attributes[I]}),E({state:m,styles:D,attributes:F,update:h,forceUpdate:p,placement:m.placement})}}),[h,p,E]),C=A.useMemo(()=>(Oo(f.current,u)||(f.current=u),f.current),[u]);return A.useEffect(()=>{!d.current||!i||d.current.setOptions({placement:a,strategy:s,modifiers:[...C,x,_x]})},[s,a,x,i,C]),A.useEffect(()=>{if(!(!i||e==null||t==null))return d.current=wx(e,t,Object.assign({},c,{placement:a,strategy:s,modifiers:[...C,Tx,x]})),()=>{d.current!=null&&(d.current.destroy(),d.current=void 0,E(m=>Object.assign({},m,{attributes:{},styles:{popper:{}}})))}},[i,e,t]),b}function Lo(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(e.compareDocumentPosition(t)&16)}const Gh=()=>{};function Ix(e){return e.button===0}function Fx(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const Ja=e=>e&&("current"in e?e.current:e),Vh={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function Px(e,t=Gh,{disabled:n,clickTrigger:i="click"}={}){const a=A.useRef(!1),s=A.useRef(!1),u=A.useCallback(d=>{const h=Ja(e);_a(!!h,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),a.current=!h||Fx(d)||!Ix(d)||!!Lo(h,d.target)||s.current,s.current=!1},[e]),c=Dn(d=>{const h=Ja(e);h&&Lo(h,d.target)?s.current=!0:s.current=!1}),f=Dn(d=>{a.current||t(d)});A.useEffect(()=>{var d,h;if(n||e==null)return;const p=Ai(Ja(e)),b=p.defaultView||window;let E=(d=b.event)!=null?d:(h=b.parent)==null?void 0:h.event,x=null;Vh[i]&&(x=pr(p,Vh[i],c,!0));const C=pr(p,i,u,!0),m=pr(p,i,F=>{if(F===E){E=void 0;return}f(F)});let D=[];return"ontouchstart"in p.documentElement&&(D=[].slice.call(p.body.children).map(F=>pr(F,"mousemove",Gh))),()=>{x==null||x(),C(),m(),D.forEach(F=>F())}},[e,n,i,u,c,f])}function kx(e){const t={};return Array.isArray(e)?(e==null||e.forEach(n=>{t[n.name]=n}),t):e||t}function Nx(e={}){return Array.isArray(e)?e:Object.keys(e).map(t=>(e[t].name=t,e[t]))}function Rx({enabled:e,enableEvents:t,placement:n,flip:i,offset:a,fixed:s,containerPadding:u,arrowElement:c,popperConfig:f={}}){var d,h,p,b;const E=kx(f.modifiers);return Object.assign({},f,{placement:n,enabled:e,strategy:s?"fixed":f.strategy,modifiers:Nx(Object.assign({},E,{eventListeners:{enabled:t,options:(d=E.eventListeners)==null?void 0:d.options},preventOverflow:Object.assign({},E.preventOverflow,{options:Object.assign({padding:u},(h=E.preventOverflow)==null?void 0:h.options)}),offset:{options:Object.assign({offset:a},(p=E.offset)==null?void 0:p.options)},arrow:Object.assign({},E.arrow,{enabled:!!c,options:Object.assign({},(b=E.arrow)==null?void 0:b.options,{element:c})}),flip:Object.assign({enabled:!!i},E.flip)}))})}const Za={prefix:String(Math.round(Math.random()*1e10)),current:0},Yh=A.createContext(Za),Lx=A.createContext(!1);let Bx=!!(typeof window<"u"&&window.document&&window.document.createElement),fl=new WeakMap;function Mx(e=!1){let t=A.useContext(Yh),n=A.useRef(null);if(n.current===null&&!e){var i,a;let s=(a=A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(i=a.ReactCurrentOwner)===null||i===void 0?void 0:i.current;if(s){let u=fl.get(s);u==null?fl.set(s,{id:t.current,state:s.memoizedState}):s.memoizedState!==u.state&&(t.current=u.id,fl.delete(s))}n.current=++t.current}return n.current}function jx(e){let t=A.useContext(Yh);t===Za&&!Bx&&process.env.NODE_ENV!=="production"&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=Mx(!!e),i=t===Za&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${i}-${n}`}function $x(e){let t=A.useId(),[n]=A.useState(zx()),i=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${Za.prefix}`;return e||`${i}-${t}`}const Ux=typeof A.useId=="function"?$x:jx;function Hx(){return!1}function Wx(){return!0}function qx(e){return()=>{}}function zx(){return typeof A.useSyncExternalStore=="function"?A.useSyncExternalStore(qx,Hx,Wx):A.useContext(Lx)}const Pi=ye.createContext(null),Bo=(e,t=null)=>e!=null?String(e):t||null,dl=ye.createContext(null);dl.displayName="NavContext";const Gx="data-rr-ui-",Vx="rrUi";function Qa(e){return`${Gx}${e}`}function Yx(e){return`${Vx}${e}`}const Kh=A.createContext(Ti?window:void 0);Kh.Provider;function hl(){return A.useContext(Kh)}const Kx=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Xx=typeof document<"u"||Kx?A.useLayoutEffect:A.useEffect,Xh=ye.createContext(null);Xh.displayName="NavbarContext";const Jh=e=>!e||typeof e=="function"?e:t=>{e.current=t};function Jx(e,t){const n=Jh(e),i=Jh(t);return a=>{n&&n(a),i&&i(a)}}function Mo(e,t){return A.useMemo(()=>Jx(e,t),[e,t])}const ki=ye.createContext(null),Zx=["as","active","eventKey"];function Qx(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function Zh({key:e,onClick:t,active:n,id:i,role:a,disabled:s}){const u=A.useContext(Pi),c=A.useContext(dl),f=A.useContext(ki);let d=n;const h={role:a};if(c){!a&&c.role==="tablist"&&(h.role="tab");const p=c.getControllerId(e??null),b=c.getControlledId(e??null);h[Qa("event-key")]=e,h.id=p||i,d=n==null&&e!=null?c.activeKey===e:n,(d||!(f!=null&&f.unmountOnExit)&&!(f!=null&&f.mountOnEnter))&&(h["aria-controls"]=b)}return h.role==="tab"&&(h["aria-selected"]=d,d||(h.tabIndex=-1),s&&(h.tabIndex=-1,h["aria-disabled"]=!0)),h.onClick=Dn(p=>{s||(t==null||t(p),e!=null&&u&&!p.isPropagationStopped()&&u(e,p))}),[h,{isActive:d}]}const Qh=ye.forwardRef((e,t)=>{let{as:n=yh,active:i,eventKey:a}=e,s=Qx(e,Zx);const[u,c]=Zh(Object.assign({key:Bo(a,s.href),active:i},s));return u[Qa("active")]=c.isActive,R.jsx(n,Object.assign({},s,u,{ref:t}))});Qh.displayName="NavItem";const eE=["as","onSelect","activeKey","role","onKeyDown"];function tE(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}const ep=()=>{},tp=Qa("event-key"),np=ye.forwardRef((e,t)=>{let{as:n="div",onSelect:i,activeKey:a,role:s,onKeyDown:u}=e,c=tE(e,eE);const f=xb(),d=A.useRef(!1),h=A.useContext(Pi),p=A.useContext(ki);let b,E;p&&(s=s||"tablist",a=p.activeKey,b=p.getControlledId,E=p.getControllerId);const x=A.useRef(null),C=I=>{const w=x.current;if(!w)return null;const v=ti(w,`[${tp}]:not([aria-disabled=true])`),S=w.querySelector("[aria-selected=true]");if(!S||S!==document.activeElement)return null;const O=v.indexOf(S);if(O===-1)return null;let B=O+I;return B>=v.length&&(B=0),B<0&&(B=v.length-1),v[B]},m=(I,w)=>{I!=null&&(i==null||i(I,w),h==null||h(I,w))},D=I=>{if(u==null||u(I),!p)return;let w;switch(I.key){case"ArrowLeft":case"ArrowUp":w=C(-1);break;case"ArrowRight":case"ArrowDown":w=C(1);break;default:return}w&&(I.preventDefault(),m(w.dataset[Yx("EventKey")]||null,I),d.current=!0,f())};A.useEffect(()=>{if(x.current&&d.current){const I=x.current.querySelector(`[${tp}][aria-selected=true]`);I==null||I.focus()}d.current=!1});const F=Mo(t,x);return R.jsx(Pi.Provider,{value:m,children:R.jsx(dl.Provider,{value:{role:s,activeKey:Bo(a),getControlledId:b||ep,getControllerId:E||ep},children:R.jsx(n,Object.assign({},c,{onKeyDown:D,ref:F,role:s}))})})});np.displayName="Nav";const nE=Object.assign(np,{Item:Qh});var es;function rp(e){if((!es&&es!==0||e)&&Ti){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),es=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return es}function rE(){return A.useState(null)}function pl(e){e===void 0&&(e=Ai());try{var t=e.activeElement;return!t||!t.nodeName?null:t}catch{return e.body}}function iE(e){const t=A.useRef(e);return t.current=e,t}function oE(e){const t=iE(e);A.useEffect(()=>()=>t.current(),[])}function aE(e=document){const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}const ip=Qa("modal-open");class ml{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:i=!1}={}){this.handleContainerOverflow=n,this.isRTL=i,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return aE(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){const n={overflow:"hidden"},i=this.isRTL?"paddingLeft":"paddingRight",a=this.getElement();t.style={overflow:a.style.overflow,[i]:a.style[i]},t.scrollBarWidth&&(n[i]=`${parseInt(fr(a,i)||"0",10)+t.scrollBarWidth}px`),a.setAttribute(ip,""),fr(a,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){const n=this.getElement();n.removeAttribute(ip),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return n!==-1||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),n!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),n}remove(t){const n=this.modals.indexOf(t);n!==-1&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}}const gl=(e,t)=>Ti?e==null?(t||Ai()).body:(typeof e=="function"&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;function vl(e,t){const n=hl(),[i,a]=A.useState(()=>gl(e,n==null?void 0:n.document));if(!i){const s=gl(e);s&&a(s)}return A.useEffect(()=>{},[t,i]),A.useEffect(()=>{const s=gl(e);s!==i&&a(s)},[e,i]),i}function yl({children:e,in:t,onExited:n,mountOnEnter:i,unmountOnExit:a}){const s=A.useRef(null),u=A.useRef(t),c=Dn(n);A.useEffect(()=>{t?u.current=!0:c(s.current)},[t,c]);const f=Mo(s,_i(e)),d=A.cloneElement(e,{ref:f});return t?d:a||!u.current&&i?null:d}const sE=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function uE(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function lE(e){let{onEnter:t,onEntering:n,onEntered:i,onExit:a,onExiting:s,onExited:u,addEndListener:c,children:f}=e,d=uE(e,sE);const h=A.useRef(null),p=Mo(h,_i(f)),b=w=>v=>{w&&h.current&&w(h.current,v)},E=A.useCallback(b(t),[t]),x=A.useCallback(b(n),[n]),C=A.useCallback(b(i),[i]),m=A.useCallback(b(a),[a]),D=A.useCallback(b(s),[s]),F=A.useCallback(b(u),[u]),I=A.useCallback(b(c),[c]);return Object.assign({},d,{nodeRef:h},t&&{onEnter:E},n&&{onEntering:x},i&&{onEntered:C},a&&{onExit:m},s&&{onExiting:D},u&&{onExited:F},c&&{addEndListener:I},{children:typeof f=="function"?(w,v)=>f(w,Object.assign({},v,{ref:p})):A.cloneElement(f,{ref:p})})}const cE=["component"];function fE(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}const dE=ye.forwardRef((e,t)=>{let{component:n}=e,i=fE(e,cE);const a=lE(i);return R.jsx(n,Object.assign({ref:t},a))});function hE({in:e,onTransition:t}){const n=A.useRef(null),i=A.useRef(!0),a=Dn(t);return vh(()=>{if(!n.current)return;let s=!1;return a({in:e,element:n.current,initial:i.current,isStale:()=>s}),()=>{s=!0}},[e,a]),vh(()=>(i.current=!1,()=>{i.current=!0}),[]),n}function pE({children:e,in:t,onExited:n,onEntered:i,transition:a}){const[s,u]=A.useState(!t);t&&s&&u(!1);const c=hE({in:!!t,onTransition:d=>{const h=()=>{d.isStale()||(d.in?i==null||i(d.element,d.initial):(u(!0),n==null||n(d.element)))};Promise.resolve(a(d)).then(h,p=>{throw d.in||u(!0),p})}}),f=Mo(c,_i(e));return s&&!t?null:A.cloneElement(e,{ref:f})}function bl(e,t,n){return e?R.jsx(dE,Object.assign({},n,{component:e})):t?R.jsx(pE,Object.assign({},n,{transition:t})):R.jsx(yl,Object.assign({},n))}const mE=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function gE(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}let xl;function vE(e){return xl||(xl=new ml({ownerDocument:e==null?void 0:e.document})),xl}function yE(e){const t=hl(),n=e||vE(t),i=A.useRef({dialog:null,backdrop:null});return Object.assign(i.current,{add:()=>n.add(i.current),remove:()=>n.remove(i.current),isTopModal:()=>n.isTopModal(i.current),setDialogRef:A.useCallback(a=>{i.current.dialog=a},[]),setBackdropRef:A.useCallback(a=>{i.current.backdrop=a},[])})}const op=A.forwardRef((e,t)=>{let{show:n=!1,role:i="dialog",className:a,style:s,children:u,backdrop:c=!0,keyboard:f=!0,onBackdropClick:d,onEscapeKeyDown:h,transition:p,runTransition:b,backdropTransition:E,runBackdropTransition:x,autoFocus:C=!0,enforceFocus:m=!0,restoreFocus:D=!0,restoreFocusOptions:F,renderDialog:I,renderBackdrop:w=Te=>R.jsx("div",Object.assign({},Te)),manager:v,container:S,onShow:O,onHide:B=()=>{},onExit:G,onExited:q,onExiting:V,onEnter:ue,onEntering:ne,onEntered:te}=e,le=gE(e,mE);const xe=hl(),he=vl(S),fe=yE(v),Ie=gh(),M=ib(n),[K,pe]=A.useState(!n),j=A.useRef(null);A.useImperativeHandle(t,()=>fe,[fe]),Ti&&!M&&n&&(j.current=pl(xe==null?void 0:xe.document)),n&&K&&pe(!1);const z=Dn(()=>{if(fe.add(),Y.current=pr(document,"keydown",ae),Z.current=pr(document,"focus",()=>setTimeout(de),!0),O&&O(),C){var Te,et;const Ye=pl((Te=(et=fe.dialog)==null?void 0:et.ownerDocument)!=null?Te:xe==null?void 0:xe.document);fe.dialog&&Ye&&!Lo(fe.dialog,Ye)&&(j.current=Ye,fe.dialog.focus())}}),J=Dn(()=>{if(fe.remove(),Y.current==null||Y.current(),Z.current==null||Z.current(),D){var Te;(Te=j.current)==null||Te.focus==null||Te.focus(F),j.current=null}});A.useEffect(()=>{!n||!he||z()},[n,he,z]),A.useEffect(()=>{K&&J()},[K,J]),oE(()=>{J()});const de=Dn(()=>{if(!m||!Ie()||!fe.isTopModal())return;const Te=pl(xe==null?void 0:xe.document);fe.dialog&&Te&&!Lo(fe.dialog,Te)&&fe.dialog.focus()}),ve=Dn(Te=>{Te.target===Te.currentTarget&&(d==null||d(Te),c===!0&&B())}),ae=Dn(Te=>{f&&Qd(Te)&&fe.isTopModal()&&(h==null||h(Te),Te.defaultPrevented||B())}),Z=A.useRef(),Y=A.useRef(),me=(...Te)=>{pe(!0),q==null||q(...Te)};if(!he)return null;const ee=Object.assign({role:i,ref:fe.setDialogRef,"aria-modal":i==="dialog"?!0:void 0},le,{style:s,className:a,tabIndex:-1});let Be=I?I(ee):R.jsx("div",Object.assign({},ee,{children:ye.cloneElement(u,{role:"document"})}));Be=bl(p,b,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!n,onExit:G,onExiting:V,onExited:me,onEnter:ue,onEntering:ne,onEntered:te,children:Be});let ke=null;return c&&(ke=w({ref:fe.setBackdropRef,onClick:ve}),ke=bl(E,x,{in:!!n,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ke})),R.jsx(R.Fragment,{children:bn.createPortal(R.jsxs(R.Fragment,{children:[ke,Be]}),he)})});op.displayName="Modal";const bE=Object.assign(op,{Manager:ml});function El(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function xE(e,t){e.classList?e.classList.add(t):El(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function ap(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function EE(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=ap(e.className,t):e.setAttribute("class",ap(e.className&&e.className.baseVal||"",t))}const Ni={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class CE extends ml{adjustAndStore(t,n,i){const a=n.style[t];n.dataset[t]=a,fr(n,{[t]:`${parseFloat(fr(n,t))+i}px`})}restore(t,n){const i=n.dataset[t];i!==void 0&&(delete n.dataset[t],fr(n,{[t]:i}))}setContainerStyle(t){super.setContainerStyle(t);const n=this.getElement();if(xE(n,"modal-open"),!t.scrollBarWidth)return;const i=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";ti(n,Ni.FIXED_CONTENT).forEach(s=>this.adjustAndStore(i,s,t.scrollBarWidth)),ti(n,Ni.STICKY_CONTENT).forEach(s=>this.adjustAndStore(a,s,-t.scrollBarWidth)),ti(n,Ni.NAVBAR_TOGGLER).forEach(s=>this.adjustAndStore(a,s,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);const n=this.getElement();EE(n,"modal-open");const i=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";ti(n,Ni.FIXED_CONTENT).forEach(s=>this.restore(i,s)),ti(n,Ni.STICKY_CONTENT).forEach(s=>this.restore(a,s)),ti(n,Ni.NAVBAR_TOGGLER).forEach(s=>this.restore(a,s))}}let Cl;function wE(e){return Cl||(Cl=new CE(e)),Cl}const sp=ye.forwardRef(({className:e,bsPrefix:t,as:n="div",...i},a)=>(t=He(t,"modal-body"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));sp.displayName="ModalBody";const up=ye.createContext({onHide(){}}),wl=ye.forwardRef(({bsPrefix:e,className:t,contentClassName:n,centered:i,size:a,fullscreen:s,children:u,scrollable:c,...f},d)=>{e=He(e,"modal");const h=`${e}-dialog`,p=typeof s=="string"?`${e}-fullscreen-${s}`:`${e}-fullscreen`;return R.jsx("div",{...f,ref:d,className:Pe(h,t,a&&`${e}-${a}`,i&&`${h}-centered`,c&&`${h}-scrollable`,s&&p),children:R.jsx("div",{className:Pe(`${e}-content`,n),children:u})})});wl.displayName="ModalDialog";const lp=ye.forwardRef(({className:e,bsPrefix:t,as:n="div",...i},a)=>(t=He(t,"modal-footer"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));lp.displayName="ModalFooter";const AE=ye.forwardRef(({closeLabel:e="Close",closeVariant:t,closeButton:n=!1,onHide:i,children:a,...s},u)=>{const c=A.useContext(up),f=To(()=>{c==null||c.onHide(),i==null||i()});return R.jsxs("div",{ref:u,...s,children:[a,n&&R.jsx(Ga,{"aria-label":e,variant:t,onClick:f})]})}),cp=ye.forwardRef(({bsPrefix:e,className:t,closeLabel:n="Close",closeButton:i=!1,...a},s)=>(e=He(e,"modal-header"),R.jsx(AE,{ref:s,...a,className:Pe(t,e),closeLabel:n,closeButton:i})));cp.displayName="ModalHeader";const SE=dh("h4"),fp=ye.forwardRef(({className:e,bsPrefix:t,as:n=SE,...i},a)=>(t=He(t,"modal-title"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));fp.displayName="ModalTitle";function _E(e){return R.jsx(mr,{...e,timeout:null})}function TE(e){return R.jsx(mr,{...e,timeout:null})}const dp=ye.forwardRef(({bsPrefix:e,className:t,style:n,dialogClassName:i,contentClassName:a,children:s,dialogAs:u=wl,"data-bs-theme":c,"aria-labelledby":f,"aria-describedby":d,"aria-label":h,show:p=!1,animation:b=!0,backdrop:E=!0,keyboard:x=!0,onEscapeKeyDown:C,onShow:m,onHide:D,container:F,autoFocus:I=!0,enforceFocus:w=!0,restoreFocus:v=!0,restoreFocusOptions:S,onEntered:O,onExit:B,onExiting:G,onEnter:q,onEntering:V,onExited:ue,backdropClassName:ne,manager:te,...le},xe)=>{const[he,fe]=A.useState({}),[Ie,M]=A.useState(!1),K=A.useRef(!1),pe=A.useRef(!1),j=A.useRef(null),[z,J]=rE(),de=Ua(xe,J),ve=To(D),ae=Du();e=He(e,"modal");const Z=A.useMemo(()=>({onHide:ve}),[ve]);function Y(){return te||wE({isRTL:ae})}function me(Me){if(!Ti)return;const Ce=Y().getScrollbarWidth()>0,Le=Me.scrollHeight>Ai(Me).documentElement.clientHeight;fe({paddingRight:Ce&&!Le?rp():void 0,paddingLeft:!Ce&&Le?rp():void 0})}const ee=To(()=>{z&&me(z.dialog)});Ah(()=>{Ju(window,"resize",ee),j.current==null||j.current()});const Be=()=>{K.current=!0},ke=Me=>{K.current&&z&&Me.target===z.dialog&&(pe.current=!0),K.current=!1},Te=()=>{M(!0),j.current=th(z.dialog,()=>{M(!1)})},et=Me=>{Me.target===Me.currentTarget&&Te()},Ye=Me=>{if(E==="static"){et(Me);return}if(pe.current||Me.target!==Me.currentTarget){pe.current=!1;return}D==null||D()},Zt=Me=>{x?C==null||C(Me):(Me.preventDefault(),E==="static"&&Te())},zt=(Me,Ce)=>{Me&&me(Me),q==null||q(Me,Ce)},tt=Me=>{j.current==null||j.current(),B==null||B(Me)},Ke=(Me,Ce)=>{V==null||V(Me,Ce),eh(window,"resize",ee)},we=Me=>{Me&&(Me.style.display=""),ue==null||ue(Me),Ju(window,"resize",ee)},ct=A.useCallback(Me=>R.jsx("div",{...Me,className:Pe(`${e}-backdrop`,ne,!b&&"show")}),[b,ne,e]),bt={...n,...he};bt.display="block";const Qt=Me=>R.jsx("div",{role:"dialog",...Me,style:bt,className:Pe(t,e,Ie&&`${e}-static`,!b&&"show"),onClick:E?Ye:void 0,onMouseUp:ke,"data-bs-theme":c,"aria-label":h,"aria-labelledby":f,"aria-describedby":d,children:R.jsx(u,{...le,onMouseDown:Be,className:i,contentClassName:a,children:s})});return R.jsx(up.Provider,{value:Z,children:R.jsx(bE,{show:p,ref:de,backdrop:E,container:F,keyboard:!0,autoFocus:I,enforceFocus:w,restoreFocus:v,restoreFocusOptions:S,onEscapeKeyDown:Zt,onShow:m,onHide:D,onEnter:zt,onEntering:Ke,onEntered:O,onExit:tt,onExiting:G,onExited:we,manager:Y(),transition:b?_E:void 0,backdropTransition:b?TE:void 0,renderBackdrop:ct,renderDialog:Qt})})});dp.displayName="Modal";const ts=Object.assign(dp,{Body:sp,Header:cp,Title:fp,Footer:lp,Dialog:wl,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),Al=ye.forwardRef(({className:e,bsPrefix:t,as:n="div",...i},a)=>(t=He(t,"nav-item"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));Al.displayName="NavItem";const Sl=ye.forwardRef(({bsPrefix:e,className:t,as:n=za,active:i,eventKey:a,disabled:s=!1,...u},c)=>{e=He(e,"nav-link");const[f,d]=Zh({key:Bo(a,u.href),active:i,disabled:s,...u});return R.jsx(n,{...u,...f,ref:c,disabled:s,className:Pe(t,e,s&&"disabled",d.isActive&&"active")})});Sl.displayName="NavLink";const hp=ye.forwardRef((e,t)=>{const{as:n="div",bsPrefix:i,variant:a,fill:s=!1,justify:u=!1,navbar:c,navbarScroll:f,className:d,activeKey:h,...p}=Ma(e,{activeKey:"onSelect"}),b=He(i,"nav");let E,x,C=!1;const m=A.useContext(Xh),D=A.useContext(wh);return m?(E=m.bsPrefix,C=c??!0):D&&({cardHeaderBsPrefix:x}=D),R.jsx(nE,{as:n,ref:t,activeKey:h,className:Pe(d,{[b]:!C,[`${E}-nav`]:C,[`${E}-nav-scroll`]:C&&f,[`${x}-${a}`]:!!x,[`${b}-${a}`]:!!a,[`${b}-fill`]:s,[`${b}-justified`]:u}),...p})});hp.displayName="Nav";const OE=Object.assign(hp,{Item:Al,Link:Sl}),DE=()=>{};function IE(e,t,{disabled:n,clickTrigger:i}={}){const a=t||DE;Px(e,a,{disabled:n,clickTrigger:i});const s=Dn(u=>{Qd(u)&&a(u)});A.useEffect(()=>{if(n||e==null)return;const u=Ai(Ja(e));let c=(u.defaultView||window).event;const f=pr(u,"keyup",d=>{if(d===c){c=void 0;return}s(d)});return()=>{f()}},[e,n,s])}const pp=ye.forwardRef((e,t)=>{const{flip:n,offset:i,placement:a,containerPadding:s,popperConfig:u={},transition:c,runTransition:f}=e,[d,h]=mh(),[p,b]=mh(),E=Mo(h,t),x=vl(e.container),C=vl(e.target),[m,D]=A.useState(!e.show),F=Dx(C,d,Rx({placement:a,enableEvents:!!e.show,containerPadding:s||5,flip:n,offset:i,arrowElement:p,popperConfig:u}));e.show&&m&&D(!1);const I=(...V)=>{D(!0),e.onExited&&e.onExited(...V)},w=e.show||!m;if(IE(d,e.onHide,{disabled:!e.rootClose||e.rootCloseDisabled,clickTrigger:e.rootCloseEvent}),!w)return null;const{onExit:v,onExiting:S,onEnter:O,onEntering:B,onEntered:G}=e;let q=e.children(Object.assign({},F.attributes.popper,{style:F.styles.popper,ref:E}),{popper:F,placement:a,show:!!e.show,arrowProps:Object.assign({},F.attributes.arrow,{style:F.styles.arrow,ref:b})});return q=bl(c,f,{in:!!e.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:q,onExit:v,onExiting:S,onExited:I,onEnter:O,onEntering:B,onEntered:G}),x?bn.createPortal(q,x):null});pp.displayName="Overlay";const mp=ye.forwardRef(({className:e,bsPrefix:t,as:n="div",...i},a)=>(t=He(t,"popover-header"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));mp.displayName="PopoverHeader";const _l=ye.forwardRef(({className:e,bsPrefix:t,as:n="div",...i},a)=>(t=He(t,"popover-body"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));_l.displayName="PopoverBody";function gp(e,t){let n=e;return e==="left"?n=t?"end":"start":e==="right"&&(n=t?"start":"end"),n}function vp(e="absolute"){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const ns=Object.assign(ye.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:i,children:a,body:s,arrowProps:u,hasDoneInitialMeasure:c,popper:f,show:d,...h},p)=>{const b=He(e,"popover"),E=Du(),[x]=(t==null?void 0:t.split("-"))||[],C=gp(x,E);let m=i;return d&&!c&&(m={...i,...vp(f==null?void 0:f.strategy)}),R.jsxs("div",{ref:p,role:"tooltip",style:m,"x-placement":x,className:Pe(n,b,x&&`bs-popover-${C}`),...h,children:[R.jsx("div",{className:"popover-arrow",...u}),s?R.jsx(_l,{children:a}):a]})}),{Header:mp,Body:_l,POPPER_OFFSET:[0,8]}),yp=ye.forwardRef(({bsPrefix:e,placement:t="right",className:n,style:i,children:a,arrowProps:s,hasDoneInitialMeasure:u,popper:c,show:f,...d},h)=>{e=He(e,"tooltip");const p=Du(),[b]=(t==null?void 0:t.split("-"))||[],E=gp(b,p);let x=i;return f&&!u&&(x={...i,...vp(c==null?void 0:c.strategy)}),R.jsxs("div",{ref:h,style:x,role:"tooltip","x-placement":b,className:Pe(n,e,`bs-tooltip-${E}`),...d,children:[R.jsx("div",{className:"tooltip-arrow",...s}),R.jsx("div",{className:`${e}-inner`,children:a})]})});yp.displayName="Tooltip";const bp=Object.assign(yp,{TOOLTIP_OFFSET:[0,6]});function FE(e){const t=A.useRef(null),n=He(void 0,"popover"),i=He(void 0,"tooltip"),a=A.useMemo(()=>({name:"offset",options:{offset:()=>{if(e)return e;if(t.current){if(El(t.current,n))return ns.POPPER_OFFSET;if(El(t.current,i))return bp.TOOLTIP_OFFSET}return[0,0]}}}),[e,n,i]);return[t,[a]]}function PE(e,t){const{ref:n}=e,{ref:i}=t;e.ref=n.__wrapped||(n.__wrapped=a=>n(Ha(a))),t.ref=i.__wrapped||(i.__wrapped=a=>i(Ha(a)))}const xp=ye.forwardRef(({children:e,transition:t=mr,popperConfig:n={},rootClose:i=!1,placement:a="top",show:s=!1,...u},c)=>{const f=A.useRef({}),[d,h]=A.useState(null),[p,b]=FE(u.offset),E=Ua(c,p),x=t===!0?mr:t||void 0,C=To(m=>{h(m),n==null||n.onFirstUpdate==null||n.onFirstUpdate(m)});return Xx(()=>{d&&u.target&&(f.current.scheduleUpdate==null||f.current.scheduleUpdate())},[d,u.target]),A.useEffect(()=>{s||h(null)},[s]),R.jsx(pp,{...u,ref:E,popperConfig:{...n,modifiers:b.concat(n.modifiers||[]),onFirstUpdate:C},transition:x,rootClose:i,placement:a,show:s,children:(m,{arrowProps:D,popper:F,show:I})=>{var w;PE(m,D);const v=F==null?void 0:F.placement,S=Object.assign(f.current,{state:F==null?void 0:F.state,scheduleUpdate:F==null?void 0:F.update,placement:v,outOfBoundaries:(F==null||(w=F.state)==null||(w=w.modifiersData.hide)==null?void 0:w.isReferenceHidden)||!1,strategy:n.strategy}),O=!!d;return typeof e=="function"?e({...m,placement:v,show:I,...!t&&I&&{className:"show"},popper:S,arrowProps:D,hasDoneInitialMeasure:O}):ye.cloneElement(e,{...m,placement:v,arrowProps:D,popper:S,hasDoneInitialMeasure:O,className:Pe(e.props.className,!t&&I&&"show"),style:{...e.props.style,...m.style}})}})});xp.displayName="Overlay";function kE(e){return e&&typeof e=="object"?e:{show:e,hide:e}}function Ep(e,t,n){const[i]=t,a=i.currentTarget,s=i.relatedTarget||i.nativeEvent[n];(!s||s!==a)&&!Lo(a,s)&&e(...t)}De.oneOf(["click","hover","focus"]);const Cp=({trigger:e=["hover","focus"],overlay:t,children:n,popperConfig:i={},show:a,defaultShow:s=!1,onToggle:u,delay:c,placement:f,flip:d=f&&f.indexOf("auto")!==-1,...h})=>{const p=A.useRef(null),b=Ua(p,_i(n)),E=vb(),x=A.useRef(""),[C,m]=Xd(a,s,u),D=kE(c),{onFocus:F,onBlur:I,onClick:w}=typeof n!="function"?ye.Children.only(n).props:{},v=le=>{b(Ha(le))},S=A.useCallback(()=>{if(E.clear(),x.current="show",!D.show){m(!0);return}E.set(()=>{x.current==="show"&&m(!0)},D.show)},[D.show,m,E]),O=A.useCallback(()=>{if(E.clear(),x.current="hide",!D.hide){m(!1);return}E.set(()=>{x.current==="hide"&&m(!1)},D.hide)},[D.hide,m,E]),B=A.useCallback((...le)=>{S(),F==null||F(...le)},[S,F]),G=A.useCallback((...le)=>{O(),I==null||I(...le)},[O,I]),q=A.useCallback((...le)=>{m(!C),w==null||w(...le)},[w,m,C]),V=A.useCallback((...le)=>{Ep(S,le,"fromElement")},[S]),ue=A.useCallback((...le)=>{Ep(O,le,"toElement")},[O]),ne=e==null?[]:[].concat(e),te={ref:v};return ne.indexOf("click")!==-1&&(te.onClick=q),ne.indexOf("focus")!==-1&&(te.onFocus=B,te.onBlur=G),ne.indexOf("hover")!==-1&&(process.env.NODE_ENV!=="production"&&_a(ne.length>1,'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibility of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'),te.onMouseOver=V,te.onMouseOut=ue),R.jsxs(R.Fragment,{children:[typeof n=="function"?n(te):A.cloneElement(n,te),R.jsx(xp,{...h,show:C,onHide:O,flip:d,placement:f,popperConfig:i,target:p.current,children:t})]})},Tl=ye.forwardRef(({active:e=!1,disabled:t=!1,className:n,style:i,activeLabel:a="(current)",children:s,linkStyle:u,linkClassName:c,as:f=za,...d},h)=>{const p=e||t?"span":f;return R.jsx("li",{ref:h,style:i,className:Pe(n,"page-item",{active:e,disabled:t}),children:R.jsxs(p,{className:Pe("page-link",c),style:u,...d,children:[s,e&&a&&R.jsx("span",{className:"visually-hidden",children:a})]})})});Tl.displayName="PageItem";function jo(e,t,n=e){const i=ye.forwardRef(({children:a,...s},u)=>R.jsxs(Tl,{...s,ref:u,children:[R.jsx("span",{"aria-hidden":"true",children:a||t}),R.jsx("span",{className:"visually-hidden",children:n})]}));return i.displayName=e,i}const NE=jo("First","«"),RE=jo("Prev","‹","Previous"),LE=jo("Ellipsis","…","More"),BE=jo("Next","›"),ME=jo("Last","»"),wp=ye.forwardRef(({bsPrefix:e,className:t,size:n,...i},a)=>{const s=He(e,"pagination");return R.jsx("ul",{ref:a,...i,className:Pe(t,s,n&&`${s}-${n}`)})});wp.displayName="Pagination";const Lr=Object.assign(wp,{First:NE,Prev:RE,Ellipsis:LE,Item:Tl,Next:BE,Last:ME}),jE=["active","eventKey","mountOnEnter","transition","unmountOnExit","role","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],$E=["activeKey","getControlledId","getControllerId"],UE=["as"];function Ol(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}function Ap(e){let{active:t,eventKey:n,mountOnEnter:i,transition:a,unmountOnExit:s,role:u="tabpanel",onEnter:c,onEntering:f,onEntered:d,onExit:h,onExiting:p,onExited:b}=e,E=Ol(e,jE);const x=A.useContext(ki);if(!x)return[Object.assign({},E,{role:u}),{eventKey:n,isActive:t,mountOnEnter:i,transition:a,unmountOnExit:s,onEnter:c,onEntering:f,onEntered:d,onExit:h,onExiting:p,onExited:b}];const{activeKey:C,getControlledId:m,getControllerId:D}=x,F=Ol(x,$E),I=Bo(n);return[Object.assign({},E,{role:u,id:m(n),"aria-labelledby":D(n)}),{eventKey:n,isActive:t==null&&I!=null?Bo(C)===I:t,transition:a||F.transition,mountOnEnter:i??F.mountOnEnter,unmountOnExit:s??F.unmountOnExit,onEnter:c,onEntering:f,onEntered:d,onExit:h,onExiting:p,onExited:b}]}const Sp=ye.forwardRef((e,t)=>{let{as:n="div"}=e,i=Ol(e,UE);const[a,{isActive:s,onEnter:u,onEntering:c,onEntered:f,onExit:d,onExiting:h,onExited:p,mountOnEnter:b,unmountOnExit:E,transition:x=yl}]=Ap(i);return R.jsx(ki.Provider,{value:null,children:R.jsx(Pi.Provider,{value:null,children:R.jsx(x,{in:s,onEnter:u,onEntering:c,onEntered:f,onExit:d,onExiting:h,onExited:p,mountOnEnter:b,unmountOnExit:E,children:R.jsx(n,Object.assign({},a,{ref:t,hidden:!s,"aria-hidden":!s}))})})})});Sp.displayName="TabPanel";const Dl=e=>{const{id:t,generateChildId:n,onSelect:i,activeKey:a,defaultActiveKey:s,transition:u,mountOnEnter:c,unmountOnExit:f,children:d}=e,[h,p]=bb(a,s,i),b=Ux(t),E=A.useMemo(()=>n||((C,m)=>b?`${b}-${m}-${C}`:null),[b,n]),x=A.useMemo(()=>({onSelect:p,activeKey:h,transition:u,mountOnEnter:c||!1,unmountOnExit:f||!1,getControlledId:C=>E(C,"tabpane"),getControllerId:C=>E(C,"tab")}),[p,h,u,c,f,E]);return R.jsx(ki.Provider,{value:x,children:R.jsx(Pi.Provider,{value:p||null,children:d})})};Dl.Panel=Sp;function Il(e){return typeof e=="boolean"?e?mr:yl:e}const _p=({transition:e,...t})=>R.jsx(Dl,{...t,transition:Il(e)});_p.displayName="TabContainer";const Fl=ye.forwardRef(({className:e,bsPrefix:t,as:n="div",...i},a)=>(t=He(t,"tab-content"),R.jsx(n,{ref:a,className:Pe(e,t),...i})));Fl.displayName="TabContent";const Pl=ye.forwardRef(({bsPrefix:e,transition:t,...n},i)=>{const[{className:a,as:s="div",...u},{isActive:c,onEnter:f,onEntering:d,onEntered:h,onExit:p,onExiting:b,onExited:E,mountOnEnter:x,unmountOnExit:C,transition:m=mr}]=Ap({...n,transition:Il(t)}),D=He(e,"tab-pane");return R.jsx(ki.Provider,{value:null,children:R.jsx(Pi.Provider,{value:null,children:R.jsx(m,{in:c,onEnter:f,onEntering:d,onEntered:h,onExit:p,onExiting:b,onExited:E,mountOnEnter:x,unmountOnExit:C,children:R.jsx(s,{...u,ref:i,className:Pe(a,D,c&&"active")})})})})});Pl.displayName="TabPane";const HE={eventKey:De.oneOfType([De.string,De.number]),title:De.node.isRequired,disabled:De.bool,tabClassName:De.string,tabAttrs:De.object},Tp=()=>{throw new Error("ReactBootstrap: The `Tab` component is not meant to be rendered! It's an abstract component that is only valid as a direct Child of the `Tabs` Component. For custom tabs components use TabPane and TabsContainer directly")};Tp.propTypes=HE;const WE=Object.assign(Tp,{Container:_p,Content:Fl,Pane:Pl});function qE(e){let t;return Xv(e,n=>{t==null&&(t=n.props.eventKey)}),t}function zE(e){const{title:t,eventKey:n,disabled:i,tabClassName:a,tabAttrs:s,id:u}=e.props;return t==null?null:R.jsx(Al,{as:"li",role:"presentation",children:R.jsx(Sl,{as:"button",type:"button",eventKey:n,disabled:i,id:u,className:a,...s,children:t})})}const Op=e=>{const{id:t,onSelect:n,transition:i,mountOnEnter:a=!1,unmountOnExit:s=!1,variant:u="tabs",children:c,activeKey:f=qE(c),...d}=Ma(e,{activeKey:"onSelect"});return R.jsxs(Dl,{id:t,activeKey:f,onSelect:n,transition:Il(i),mountOnEnter:a,unmountOnExit:s,children:[R.jsx(OE,{id:t,...d,role:"tablist",as:"ul",variant:u,children:Qf(c,zE)}),R.jsx(Fl,{children:Qf(c,h=>{const p={...h.props};return delete p.title,delete p.disabled,delete p.tabClassName,delete p.tabAttrs,R.jsx(Pl,{...p})})})]})};Op.displayName="Tabs";const GE=e=>{var a,s,u,c,f,d,h,p;const t=zn(e.actionProps.bodyAttributes||{}),n=zn(e.actionProps.headerAttributes||{}),i=A.useRef(null);return R.jsx("div",{ref:i,children:R.jsx(Cp,{container:i,placement:e.actionProps.placement??"top",trigger:e.actionProps.trigger??"click",overlay:R.jsxs(ns,{children:[e.actionProps.header&&R.jsx(ns.Header,{...n,children:R.jsx(ht,{props:e.actionProps.header,currentData:((c=(u=(s=(a=e.componentProps)==null?void 0:a.currentData)==null?void 0:s.actions)==null?void 0:u[e.actionIndex])==null?void 0:c.header)??void 0,datafield:"header",path:e.componentProps.path+".actions."+e.actionIndex+".header"})}),R.jsx(ns.Body,{...t,children:R.jsx(ht,{props:e.actionProps.body,currentData:((p=(h=(d=(f=e.componentProps)==null?void 0:f.currentData)==null?void 0:d.actions)==null?void 0:h[e.actionIndex])==null?void 0:p.body)??void 0,datafield:"body",path:e.componentProps.path+".actions."+e.actionIndex+".body"})})]}),children:R.jsx("popover-reference",{children:e.children})})})},VE=e=>{const t=A.useContext(dt),n=A.useContext(ot),{to:i}=e.actionProps;!i||typeof i!="string"||(window.location.href=ut({valueToEvaluate:i,globalDataContext:t,templateContext:n}))},YE=e=>{var t,n,i;return R.jsx(Cp,{placement:e.actionProps.placement??"top",overlay:R.jsx(bp,{children:R.jsx(ht,{props:e.actionProps.content,currentData:((i=(n=(t=e.componentProps)==null?void 0:t.currentData)==null?void 0:n.actions)==null?void 0:i[e.actionIndex])??void 0,datafield:e.actionIndex,path:e.componentProps.path+".actions."+e.actionIndex})}),children:R.jsx("tooltip-reference",{children:e.children})})},KE=e=>R.jsx("visually-hidden",{style:{display:"none"},children:e.children});function rs(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var kl={exports:{}};/*! jsonpath 1.1.1 */var Dp;function XE(){return Dp||(Dp=1,function(e,t){(function(n){e.exports=n()})(function(){return function n(i,a,s){function u(d,h){if(!a[d]){if(!i[d]){var p=typeof rs=="function"&&rs;if(!h&&p)return p(d,!0);if(c)return c(d,!0);var b=new Error("Cannot find module '"+d+"'");throw b.code="MODULE_NOT_FOUND",b}var E=a[d]={exports:{}};i[d][0].call(E.exports,function(x){var C=i[d][1][x];return u(C||x)},E,E.exports,n,i,a,s)}return a[d].exports}for(var c=typeof rs=="function"&&rs,f=0;f<s.length;f++)u(s[f]);return u}({"./aesprim":[function(n,i,a){(function(s,u){u(typeof a<"u"?a:s.esprima={})})(this,function(s){var u,c,f,d,h,p,b,E,x,C,m,D,F,I,w,v,S,O;u={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9},c={},c[u.BooleanLiteral]="Boolean",c[u.EOF]="<end>",c[u.Identifier]="Identifier",c[u.Keyword]="Keyword",c[u.NullLiteral]="Null",c[u.NumericLiteral]="Numeric",c[u.Punctuator]="Punctuator",c[u.StringLiteral]="String",c[u.RegularExpression]="RegularExpression",f=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],d={AssignmentExpression:"AssignmentExpression",ArrayExpression:"ArrayExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",Program:"Program",Property:"Property",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement"},h={Data:1,Get:2,Set:4},p={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictDuplicateProperty:"Duplicate data property in object literal not allowed in strict mode",AccessorDataProperty:"Object literal may not have data and accessor property with the same name",AccessorGetSet:"Object literal may not have multiple get/set accessors with the same name",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode"},b={NonAsciiIdentifierStart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]"),NonAsciiIdentifierPart:new RegExp("[ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮ̀-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҃-҇Ҋ-ԧԱ-Ֆՙա-և֑-ׇֽֿׁׂׅׄא-תװ-ײؐ-ؚؠ-٩ٮ-ۓە-ۜ۟-۪ۨ-ۼۿܐ-݊ݍ-ޱ߀-ߵߺࠀ-࠭ࡀ-࡛ࢠࢢ-ࢬࣤ-ࣾऀ-ॣ०-९ॱ-ॷॹ-ॿঁ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-ৱਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૯ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୯ୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௯ఁ-ఃఅ-ఌఎ-ఐఒ-నప-ళవ-హఽ-ౄె-ైొ-్ౕౖౘౙౠ-ౣ౦-౯ಂಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲംഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൎൗൠ-ൣ൦-൯ൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟෲෳก-ฺเ-๎๐-๙ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟༀ༘༙༠-༩༹༵༷༾-ཇཉ-ཬཱ-྄྆-ྗྙ-ྼ࿆က-၉ၐ-ႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፟ᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-᜔ᜠ-᜴ᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-៓ៗៜ៝០-៩᠋-᠍᠐-᠙ᠠ-ᡷᢀ-ᢪᢰ-ᣵᤀ-ᤜᤠ-ᤫᤰ-᤻᥆-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉ᧐-᧙ᨀ-ᨛᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙ᪧᬀ-ᭋ᭐-᭙᭫-᭳ᮀ-᯳ᰀ-᰷᱀-᱉ᱍ-ᱽ᳐-᳔᳒-ᳶᴀ-ᷦ᷼-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‿⁀⁔ⁱⁿₐ-ₜ⃐-⃥⃜⃡-⃰ℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵿-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〯〱-〵〸-〼ぁ-ゖ゙゚ゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘫꙀ-꙯ꙴ-꙽ꙿ-ꚗꚟ-꛱ꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠧꡀ-ꡳꢀ-꣄꣐-꣙꣠-ꣷꣻ꤀-꤭ꤰ-꥓ꥠ-ꥼꦀ-꧀ꧏ-꧙ꨀ-ꨶꩀ-ꩍ꩐-꩙ꩠ-ꩶꩺꩻꪀ-ꫂꫛ-ꫝꫠ-ꫯꫲ-꫶ꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯪ꯬꯭꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻ︀-️︠-︦︳︴﹍-﹏ﹰ-ﹴﹶ-ﻼ0-9A-Z_a-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]")};function B(g,_){if(!g)throw new Error("ASSERT: "+_)}function G(g){return g>=48&&g<=57}function q(g){return"0123456789abcdefABCDEF".indexOf(g)>=0}function V(g){return"01234567".indexOf(g)>=0}function ue(g){return g===32||g===9||g===11||g===12||g===160||g>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(g)>=0}function ne(g){return g===10||g===13||g===8232||g===8233}function te(g){return g==64||g===36||g===95||g>=65&&g<=90||g>=97&&g<=122||g===92||g>=128&&b.NonAsciiIdentifierStart.test(String.fromCharCode(g))}function le(g){return g===36||g===95||g>=65&&g<=90||g>=97&&g<=122||g>=48&&g<=57||g===92||g>=128&&b.NonAsciiIdentifierPart.test(String.fromCharCode(g))}function xe(g){switch(g){case"class":case"enum":case"export":case"extends":case"import":case"super":return!0;default:return!1}}function he(g){switch(g){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function fe(g){return g==="eval"||g==="arguments"}function Ie(g){if(C&&he(g))return!0;switch(g.length){case 2:return g==="if"||g==="in"||g==="do";case 3:return g==="var"||g==="for"||g==="new"||g==="try"||g==="let";case 4:return g==="this"||g==="else"||g==="case"||g==="void"||g==="with"||g==="enum";case 5:return g==="while"||g==="break"||g==="catch"||g==="throw"||g==="const"||g==="yield"||g==="class"||g==="super";case 6:return g==="return"||g==="typeof"||g==="delete"||g==="switch"||g==="export"||g==="import";case 7:return g==="default"||g==="finally"||g==="extends";case 8:return g==="function"||g==="continue"||g==="debugger";case 10:return g==="instanceof";default:return!1}}function M(g,_,N,U,ie){var ge;B(typeof N=="number","Comment must have valid position"),!(S.lastCommentStart>=N)&&(S.lastCommentStart=N,ge={type:g,value:_},O.range&&(ge.range=[N,U]),O.loc&&(ge.loc=ie),O.comments.push(ge),O.attachComment&&(O.leadingComments.push(ge),O.trailingComments.push(ge)))}function K(g){var _,N,U,ie;for(_=m-g,N={start:{line:D,column:m-F-g}};m<I;)if(U=x.charCodeAt(m),++m,ne(U)){O.comments&&(ie=x.slice(_+g,m-1),N.end={line:D,column:m-F-1},M("Line",ie,_,m-1,N)),U===13&&x.charCodeAt(m)===10&&++m,++D,F=m;return}O.comments&&(ie=x.slice(_+g,m),N.end={line:D,column:m-F},M("Line",ie,_,m,N))}function pe(){var g,_,N,U;for(O.comments&&(g=m-2,_={start:{line:D,column:m-F-2}});m<I;)if(N=x.charCodeAt(m),ne(N))N===13&&x.charCodeAt(m+1)===10&&++m,++D,++m,F=m,m>=I&&Ce({},p.UnexpectedToken,"ILLEGAL");else if(N===42){if(x.charCodeAt(m+1)===47){++m,++m,O.comments&&(U=x.slice(g+2,m-2),_.end={line:D,column:m-F},M("Block",U,g,m,_));return}++m}else++m;Ce({},p.UnexpectedToken,"ILLEGAL")}function j(){var g,_;for(_=m===0;m<I;)if(g=x.charCodeAt(m),ue(g))++m;else if(ne(g))++m,g===13&&x.charCodeAt(m)===10&&++m,++D,F=m,_=!0;else if(g===47)if(g=x.charCodeAt(m+1),g===47)++m,++m,K(2),_=!0;else if(g===42)++m,++m,pe();else break;else if(_&&g===45)if(x.charCodeAt(m+1)===45&&x.charCodeAt(m+2)===62)m+=3,K(3);else break;else if(g===60)if(x.slice(m+1,m+4)==="!--")++m,++m,++m,++m,K(4);else break;else break}function z(g){var _,N,U,ie=0;for(N=g==="u"?4:2,_=0;_<N;++_)if(m<I&&q(x[m]))U=x[m++],ie=ie*16+"0123456789abcdef".indexOf(U.toLowerCase());else return"";return String.fromCharCode(ie)}function J(){var g,_;for(g=x.charCodeAt(m++),_=String.fromCharCode(g),g===92&&(x.charCodeAt(m)!==117&&Ce({},p.UnexpectedToken,"ILLEGAL"),++m,g=z("u"),(!g||g==="\\"||!te(g.charCodeAt(0)))&&Ce({},p.UnexpectedToken,"ILLEGAL"),_=g);m<I&&(g=x.charCodeAt(m),!!le(g));)++m,_+=String.fromCharCode(g),g===92&&(_=_.substr(0,_.length-1),x.charCodeAt(m)!==117&&Ce({},p.UnexpectedToken,"ILLEGAL"),++m,g=z("u"),(!g||g==="\\"||!le(g.charCodeAt(0)))&&Ce({},p.UnexpectedToken,"ILLEGAL"),_+=g);return _}function de(){var g,_;for(g=m++;m<I;){if(_=x.charCodeAt(m),_===92)return m=g,J();if(le(_))++m;else break}return x.slice(g,m)}function ve(){var g,_,N;return g=m,_=x.charCodeAt(m)===92?J():de(),_.length===1?N=u.Identifier:Ie(_)?N=u.Keyword:_==="null"?N=u.NullLiteral:_==="true"||_==="false"?N=u.BooleanLiteral:N=u.Identifier,{type:N,value:_,lineNumber:D,lineStart:F,start:g,end:m}}function ae(){var g=m,_=x.charCodeAt(m),N,U=x[m],ie,ge,qe;switch(_){case 46:case 40:case 41:case 59:case 44:case 123:case 125:case 91:case 93:case 58:case 63:case 126:return++m,O.tokenize&&(_===40?O.openParenToken=O.tokens.length:_===123&&(O.openCurlyToken=O.tokens.length)),{type:u.Punctuator,value:String.fromCharCode(_),lineNumber:D,lineStart:F,start:g,end:m};default:if(N=x.charCodeAt(m+1),N===61)switch(_){case 43:case 45:case 47:case 60:case 62:case 94:case 124:case 37:case 38:case 42:return m+=2,{type:u.Punctuator,value:String.fromCharCode(_)+String.fromCharCode(N),lineNumber:D,lineStart:F,start:g,end:m};case 33:case 61:return m+=2,x.charCodeAt(m)===61&&++m,{type:u.Punctuator,value:x.slice(g,m),lineNumber:D,lineStart:F,start:g,end:m}}}if(qe=x.substr(m,4),qe===">>>=")return m+=4,{type:u.Punctuator,value:qe,lineNumber:D,lineStart:F,start:g,end:m};if(ge=qe.substr(0,3),ge===">>>"||ge==="<<="||ge===">>=")return m+=3,{type:u.Punctuator,value:ge,lineNumber:D,lineStart:F,start:g,end:m};if(ie=ge.substr(0,2),U===ie[1]&&"+-<>&|".indexOf(U)>=0||ie==="=>")return m+=2,{type:u.Punctuator,value:ie,lineNumber:D,lineStart:F,start:g,end:m};if("<>=!+-*%&|^/".indexOf(U)>=0)return++m,{type:u.Punctuator,value:U,lineNumber:D,lineStart:F,start:g,end:m};Ce({},p.UnexpectedToken,"ILLEGAL")}function Z(g){for(var _="";m<I&&q(x[m]);)_+=x[m++];return _.length===0&&Ce({},p.UnexpectedToken,"ILLEGAL"),te(x.charCodeAt(m))&&Ce({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt("0x"+_,16),lineNumber:D,lineStart:F,start:g,end:m}}function Y(g){for(var _="0"+x[m++];m<I&&V(x[m]);)_+=x[m++];return(te(x.charCodeAt(m))||G(x.charCodeAt(m)))&&Ce({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseInt(_,8),octal:!0,lineNumber:D,lineStart:F,start:g,end:m}}function me(){var g,_,N;if(N=x[m],B(G(N.charCodeAt(0))||N===".","Numeric literal must start with a decimal digit or a decimal point"),_=m,g="",N!=="."){if(g=x[m++],N=x[m],g==="0"){if(N==="x"||N==="X")return++m,Z(_);if(V(N))return Y(_);N&&G(N.charCodeAt(0))&&Ce({},p.UnexpectedToken,"ILLEGAL")}for(;G(x.charCodeAt(m));)g+=x[m++];N=x[m]}if(N==="."){for(g+=x[m++];G(x.charCodeAt(m));)g+=x[m++];N=x[m]}if(N==="e"||N==="E")if(g+=x[m++],N=x[m],(N==="+"||N==="-")&&(g+=x[m++]),G(x.charCodeAt(m)))for(;G(x.charCodeAt(m));)g+=x[m++];else Ce({},p.UnexpectedToken,"ILLEGAL");return te(x.charCodeAt(m))&&Ce({},p.UnexpectedToken,"ILLEGAL"),{type:u.NumericLiteral,value:parseFloat(g),lineNumber:D,lineStart:F,start:_,end:m}}function ee(){var g="",_,N,U,ie,ge,qe,rt=!1,Rt,Tt;for(Rt=D,Tt=F,_=x[m],B(_==="'"||_==='"',"String literal must starts with a quote"),N=m,++m;m<I;)if(U=x[m++],U===_){_="";break}else if(U==="\\")if(U=x[m++],!U||!ne(U.charCodeAt(0)))switch(U){case"u":case"x":qe=m,ge=z(U),ge?g+=ge:(m=qe,g+=U);break;case"n":g+=`
|
|
77
77
|
`;break;case"r":g+="\r";break;case"t":g+=" ";break;case"b":g+="\b";break;case"f":g+="\f";break;case"v":g+="\v";break;default:V(U)?(ie="01234567".indexOf(U),ie!==0&&(rt=!0),m<I&&V(x[m])&&(rt=!0,ie=ie*8+"01234567".indexOf(x[m++]),"0123".indexOf(U)>=0&&m<I&&V(x[m])&&(ie=ie*8+"01234567".indexOf(x[m++]))),g+=String.fromCharCode(ie)):g+=U;break}else++D,U==="\r"&&x[m]===`
|
|
78
|
-
`&&++m,F=m;else{if(ne(U.charCodeAt(0)))break;g+=U}return _!==""&&we({},p.UnexpectedToken,"ILLEGAL"),{type:u.StringLiteral,value:g,octal:rt,startLineNumber:Rt,startLineStart:Tt,lineNumber:D,lineStart:F,start:N,end:m}}function Be(g,_){var N;try{N=new RegExp(g,_)}catch{we({},p.InvalidRegExp)}return N}function ke(){var g,_,N,U,ie;for(g=x[m],B(g==="/","Regular expression literal must start with a slash"),_=x[m++],N=!1,U=!1;m<I;)if(g=x[m++],_+=g,g==="\\")g=x[m++],ne(g.charCodeAt(0))&&we({},p.UnterminatedRegExp),_+=g;else if(ne(g.charCodeAt(0)))we({},p.UnterminatedRegExp);else if(N)g==="]"&&(N=!1);else if(g==="/"){U=!0;break}else g==="["&&(N=!0);return U||we({},p.UnterminatedRegExp),ie=_.substr(1,_.length-2),{value:ie,literal:_}}function Te(){var g,_,N,U;for(_="",N="";m<I&&(g=x[m],!!le(g.charCodeAt(0)));)if(++m,g==="\\"&&m<I)if(g=x[m],g==="u"){if(++m,U=m,g=z("u"),g)for(N+=g,_+="\\u";U<m;++U)_+=x[U];else m=U,N+="u",_+="\\u";Le({},p.UnexpectedToken,"ILLEGAL")}else _+="\\",Le({},p.UnexpectedToken,"ILLEGAL");else N+=g,_+=g;return{value:N,literal:_}}function et(){var g,_,N,U;return v=null,j(),g=m,_=ke(),N=Te(),U=Be(_.value,N.value),O.tokenize?{type:u.RegularExpression,value:U,lineNumber:D,lineStart:F,start:g,end:m}:{literal:_.literal+N.literal,value:U,start:g,end:m}}function Ye(){var g,_,N,U;return j(),g=m,_={start:{line:D,column:m-F}},N=et(),_.end={line:D,column:m-F},O.tokenize||(O.tokens.length>0&&(U=O.tokens[O.tokens.length-1],U.range[0]===g&&U.type==="Punctuator"&&(U.value==="/"||U.value==="/=")&&O.tokens.pop()),O.tokens.push({type:"RegularExpression",value:N.literal,range:[g,m],loc:_})),N}function Zt(g){return g.type===u.Identifier||g.type===u.Keyword||g.type===u.BooleanLiteral||g.type===u.NullLiteral}function zt(){var g,_;if(g=O.tokens[O.tokens.length-1],!g)return Ye();if(g.type==="Punctuator"){if(g.value==="]")return ae();if(g.value===")")return _=O.tokens[O.openParenToken-1],_&&_.type==="Keyword"&&(_.value==="if"||_.value==="while"||_.value==="for"||_.value==="with")?Ye():ae();if(g.value==="}"){if(O.tokens[O.openCurlyToken-3]&&O.tokens[O.openCurlyToken-3].type==="Keyword"){if(_=O.tokens[O.openCurlyToken-4],!_)return ae()}else if(O.tokens[O.openCurlyToken-4]&&O.tokens[O.openCurlyToken-4].type==="Keyword"){if(_=O.tokens[O.openCurlyToken-5],!_)return Ye()}else return ae();return f.indexOf(_.value)>=0?ae():Ye()}return Ye()}return g.type==="Keyword"?Ye():ae()}function tt(){var g;return j(),m>=I?{type:u.EOF,lineNumber:D,lineStart:F,start:m,end:m}:(g=x.charCodeAt(m),te(g)?ve():g===40||g===41||g===59?ae():g===39||g===34?ee():g===46?G(x.charCodeAt(m+1))?me():ae():G(g)?me():O.tokenize&&g===47?zt():ae())}function Ke(){var g,_,N;return j(),g={start:{line:D,column:m-F}},_=tt(),g.end={line:D,column:m-F},_.type!==u.EOF&&(N=x.slice(_.start,_.end),O.tokens.push({type:l[_.type],value:N,range:[_.start,_.end],loc:g})),_}function Ce(){var g;return g=v,m=g.end,D=g.lineNumber,F=g.lineStart,v=typeof O.tokens<"u"?Ke():tt(),m=g.end,D=g.lineNumber,F=g.lineStart,g}function ct(){var g,_,N;g=m,_=D,N=F,v=typeof O.tokens<"u"?Ke():tt(),m=g,D=_,F=N}function bt(g,_){this.line=g,this.column=_}function Qt(g,_,N,U){this.start=new bt(g,_),this.end=new bt(N,U)}E={name:"SyntaxTree",processComment:function(g){var _,N;if(!(g.type===d.Program&&g.body.length>0)){for(O.trailingComments.length>0?O.trailingComments[0].range[0]>=g.range[1]?(N=O.trailingComments,O.trailingComments=[]):O.trailingComments.length=0:O.bottomRightStack.length>0&&O.bottomRightStack[O.bottomRightStack.length-1].trailingComments&&O.bottomRightStack[O.bottomRightStack.length-1].trailingComments[0].range[0]>=g.range[1]&&(N=O.bottomRightStack[O.bottomRightStack.length-1].trailingComments,delete O.bottomRightStack[O.bottomRightStack.length-1].trailingComments);O.bottomRightStack.length>0&&O.bottomRightStack[O.bottomRightStack.length-1].range[0]>=g.range[0];)_=O.bottomRightStack.pop();_?_.leadingComments&&_.leadingComments[_.leadingComments.length-1].range[1]<=g.range[0]&&(g.leadingComments=_.leadingComments,delete _.leadingComments):O.leadingComments.length>0&&O.leadingComments[O.leadingComments.length-1].range[1]<=g.range[0]&&(g.leadingComments=O.leadingComments,O.leadingComments=[]),N&&(g.trailingComments=N),O.bottomRightStack.push(g)}},markEnd:function(g,_){return O.range&&(g.range=[_.start,m]),O.loc&&(g.loc=new Qt(_.startLineNumber===void 0?_.lineNumber:_.startLineNumber,_.start-(_.startLineStart===void 0?_.lineStart:_.startLineStart),D,m-F),this.postProcess(g)),O.attachComment&&this.processComment(g),g},postProcess:function(g){return O.source&&(g.loc.source=O.source),g},createArrayExpression:function(g){return{type:d.ArrayExpression,elements:g}},createAssignmentExpression:function(g,_,N){return{type:d.AssignmentExpression,operator:g,left:_,right:N}},createBinaryExpression:function(g,_,N){var U=g==="||"||g==="&&"?d.LogicalExpression:d.BinaryExpression;return{type:U,operator:g,left:_,right:N}},createBlockStatement:function(g){return{type:d.BlockStatement,body:g}},createBreakStatement:function(g){return{type:d.BreakStatement,label:g}},createCallExpression:function(g,_){return{type:d.CallExpression,callee:g,arguments:_}},createCatchClause:function(g,_){return{type:d.CatchClause,param:g,body:_}},createConditionalExpression:function(g,_,N){return{type:d.ConditionalExpression,test:g,consequent:_,alternate:N}},createContinueStatement:function(g){return{type:d.ContinueStatement,label:g}},createDebuggerStatement:function(){return{type:d.DebuggerStatement}},createDoWhileStatement:function(g,_){return{type:d.DoWhileStatement,body:g,test:_}},createEmptyStatement:function(){return{type:d.EmptyStatement}},createExpressionStatement:function(g){return{type:d.ExpressionStatement,expression:g}},createForStatement:function(g,_,N,U){return{type:d.ForStatement,init:g,test:_,update:N,body:U}},createForInStatement:function(g,_,N){return{type:d.ForInStatement,left:g,right:_,body:N,each:!1}},createFunctionDeclaration:function(g,_,N,U){return{type:d.FunctionDeclaration,id:g,params:_,defaults:N,body:U,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(g,_,N,U){return{type:d.FunctionExpression,id:g,params:_,defaults:N,body:U,rest:null,generator:!1,expression:!1}},createIdentifier:function(g){return{type:d.Identifier,name:g}},createIfStatement:function(g,_,N){return{type:d.IfStatement,test:g,consequent:_,alternate:N}},createLabeledStatement:function(g,_){return{type:d.LabeledStatement,label:g,body:_}},createLiteral:function(g){return{type:d.Literal,value:g.value,raw:x.slice(g.start,g.end)}},createMemberExpression:function(g,_,N){return{type:d.MemberExpression,computed:g==="[",object:_,property:N}},createNewExpression:function(g,_){return{type:d.NewExpression,callee:g,arguments:_}},createObjectExpression:function(g){return{type:d.ObjectExpression,properties:g}},createPostfixExpression:function(g,_){return{type:d.UpdateExpression,operator:g,argument:_,prefix:!1}},createProgram:function(g){return{type:d.Program,body:g}},createProperty:function(g,_,N){return{type:d.Property,key:_,value:N,kind:g}},createReturnStatement:function(g){return{type:d.ReturnStatement,argument:g}},createSequenceExpression:function(g){return{type:d.SequenceExpression,expressions:g}},createSwitchCase:function(g,_){return{type:d.SwitchCase,test:g,consequent:_}},createSwitchStatement:function(g,_){return{type:d.SwitchStatement,discriminant:g,cases:_}},createThisExpression:function(){return{type:d.ThisExpression}},createThrowStatement:function(g){return{type:d.ThrowStatement,argument:g}},createTryStatement:function(g,_,N,U){return{type:d.TryStatement,block:g,guardedHandlers:_,handlers:N,finalizer:U}},createUnaryExpression:function(g,_){return g==="++"||g==="--"?{type:d.UpdateExpression,operator:g,argument:_,prefix:!0}:{type:d.UnaryExpression,operator:g,argument:_,prefix:!0}},createVariableDeclaration:function(g,_){return{type:d.VariableDeclaration,declarations:g,kind:_}},createVariableDeclarator:function(g,_){return{type:d.VariableDeclarator,id:g,init:_}},createWhileStatement:function(g,_){return{type:d.WhileStatement,test:g,body:_}},createWithStatement:function(g,_){return{type:d.WithStatement,object:g,body:_}}};function Me(){var g,_,N,U;return g=m,_=D,N=F,j(),U=D!==_,m=g,D=_,F=N,U}function we(g,_){var N,U=Array.prototype.slice.call(arguments,2),ie=_.replace(/%(\d)/g,function(ge,qe){return B(qe<U.length,"Message reference must be in range"),U[qe]});throw typeof g.lineNumber=="number"?(N=new Error("Line "+g.lineNumber+": "+ie),N.index=g.start,N.lineNumber=g.lineNumber,N.column=g.start-F+1):(N=new Error("Line "+D+": "+ie),N.index=m,N.lineNumber=D,N.column=m-F+1),N.description=ie,N}function Le(){try{we.apply(null,arguments)}catch(g){if(O.errors)O.errors.push(g);else throw g}}function Ft(g){if(g.type===u.EOF&&we(g,p.UnexpectedEOS),g.type===u.NumericLiteral&&we(g,p.UnexpectedNumber),g.type===u.StringLiteral&&we(g,p.UnexpectedString),g.type===u.Identifier&&we(g,p.UnexpectedIdentifier),g.type===u.Keyword){if(xe(g.value))we(g,p.UnexpectedReserved);else if(w&&he(g.value)){Le(g,p.StrictReservedWord);return}we(g,p.UnexpectedToken,g.value)}we(g,p.UnexpectedToken,g.value)}function Oe(g){var _=Ce();(_.type!==u.Punctuator||_.value!==g)&&Ft(_)}function Qe(g){var _=Ce();(_.type!==u.Keyword||_.value!==g)&&Ft(_)}function Se(g){return v.type===u.Punctuator&&v.value===g}function Et(g){return v.type===u.Keyword&&v.value===g}function ui(){var g;return v.type!==u.Punctuator?!1:(g=v.value,g==="="||g==="*="||g==="/="||g==="%="||g==="+="||g==="-="||g==="<<="||g===">>="||g===">>>="||g==="&="||g==="^="||g==="|=")}function $t(){var g;if(x.charCodeAt(m)===59||Se(";")){Ce();return}g=D,j(),D===g&&v.type!==u.EOF&&!Se("}")&&Ft(v)}function Yn(g){return g.type===d.Identifier||g.type===d.MemberExpression}function li(){var g=[],_;for(_=v,Oe("[");!Se("]");)Se(",")?(Ce(),g.push(null)):(g.push(Ct()),Se("]")||Oe(","));return Ce(),C.markEnd(C.createArrayExpression(g),_)}function $r(g,_){var N,U,ie;return N=w,ie=v,U=Zi(),_&&w&&fe(g[0].name)&&Le(_,p.StrictParamName),w=N,C.markEnd(C.createFunctionExpression(null,g,[],U),ie)}function Ur(){var g,_;return _=v,g=Ce(),g.type===u.StringLiteral||g.type===u.NumericLiteral?(w&&g.octal&&Le(g,p.StrictOctalLiteral),C.markEnd(C.createLiteral(g),_)):C.markEnd(C.createIdentifier(g.value),_)}function ra(){var g,_,N,U,ie,ge;if(g=v,ge=v,g.type===u.Identifier)return N=Ur(),g.value==="get"&&!Se(":")?(_=Ur(),Oe("("),Oe(")"),U=$r([]),C.markEnd(C.createProperty("get",_,U),ge)):g.value==="set"&&!Se(":")?(_=Ur(),Oe("("),g=v,g.type!==u.Identifier?(Oe(")"),Le(g,p.UnexpectedToken,g.value),U=$r([])):(ie=[or()],Oe(")"),U=$r(ie,g)),C.markEnd(C.createProperty("set",_,U),ge)):(Oe(":"),U=Ct(),C.markEnd(C.createProperty("init",N,U),ge));if(g.type===u.EOF||g.type===u.Punctuator)Ft(g);else return _=Ur(),Oe(":"),U=Ct(),C.markEnd(C.createProperty("init",_,U),ge)}function Vi(){var g=[],_,N,U,ie,ge={},qe=String,rt;for(rt=v,Oe("{");!Se("}");)_=ra(),_.key.type===d.Identifier?N=_.key.name:N=qe(_.key.value),ie=_.kind==="init"?h.Data:_.kind==="get"?h.Get:h.Set,U="$"+N,Object.prototype.hasOwnProperty.call(ge,U)?(ge[U]===h.Data?w&&ie===h.Data?Le({},p.StrictDuplicateProperty):ie!==h.Data&&Le({},p.AccessorDataProperty):ie===h.Data?Le({},p.AccessorDataProperty):ge[U]&ie&&Le({},p.AccessorGetSet),ge[U]|=ie):ge[U]=ie,g.push(_),Se("}")||Oe(",");return Oe("}"),C.markEnd(C.createObjectExpression(g),rt)}function St(){var g;return Oe("("),g=mt(),Oe(")"),g}function Ut(){var g,_,N,U;if(Se("("))return St();if(Se("["))return li();if(Se("{"))return Vi();if(g=v.type,U=v,g===u.Identifier)N=C.createIdentifier(Ce().value);else if(g===u.StringLiteral||g===u.NumericLiteral)w&&v.octal&&Le(v,p.StrictOctalLiteral),N=C.createLiteral(Ce());else if(g===u.Keyword){if(Et("function"))return Dc();Et("this")?(Ce(),N=C.createThisExpression()):Ft(Ce())}else g===u.BooleanLiteral?(_=Ce(),_.value=_.value==="true",N=C.createLiteral(_)):g===u.NullLiteral?(_=Ce(),_.value=null,N=C.createLiteral(_)):Se("/")||Se("/=")?(typeof O.tokens<"u"?N=C.createLiteral(Ye()):N=C.createLiteral(et()),ct()):Ft(Ce());return C.markEnd(N,U)}function Ht(){var g=[];if(Oe("("),!Se(")"))for(;m<I&&(g.push(Ct()),!Se(")"));)Oe(",");return Oe(")"),g}function Rn(){var g,_;return _=v,g=Ce(),Zt(g)||Ft(g),C.markEnd(C.createIdentifier(g.value),_)}function Gt(){return Oe("."),Rn()}function kt(){var g;return Oe("["),g=mt(),Oe("]"),g}function an(){var g,_,N;return N=v,Qe("new"),g=_t(),_=Se("(")?Ht():[],C.markEnd(C.createNewExpression(g,_),N)}function ir(){var g,_,N,U,ie;for(ie=v,g=S.allowIn,S.allowIn=!0,_=Et("new")?an():Ut(),S.allowIn=g;;){if(Se("."))U=Gt(),_=C.createMemberExpression(".",_,U);else if(Se("("))N=Ht(),_=C.createCallExpression(_,N);else if(Se("["))U=kt(),_=C.createMemberExpression("[",_,U);else break;C.markEnd(_,ie)}return _}function _t(){var g,_,N,U;for(U=v,g=S.allowIn,_=Et("new")?an():Ut(),S.allowIn=g;Se(".")||Se("[");)Se("[")?(N=kt(),_=C.createMemberExpression("[",_,N)):(N=Gt(),_=C.createMemberExpression(".",_,N)),C.markEnd(_,U);return _}function sn(){var g,_,N=v;return g=ir(),v.type===u.Punctuator&&(Se("++")||Se("--"))&&!Me()&&(w&&g.type===d.Identifier&&fe(g.name)&&Le({},p.StrictLHSPostfix),Yn(g)||Le({},p.InvalidLHSInAssignment),_=Ce(),g=C.markEnd(C.createPostfixExpression(_.value,g),N)),g}function Nt(){var g,_,N;return v.type!==u.Punctuator&&v.type!==u.Keyword?_=sn():Se("++")||Se("--")?(N=v,g=Ce(),_=Nt(),w&&_.type===d.Identifier&&fe(_.name)&&Le({},p.StrictLHSPrefix),Yn(_)||Le({},p.InvalidLHSInAssignment),_=C.createUnaryExpression(g.value,_),_=C.markEnd(_,N)):Se("+")||Se("-")||Se("~")||Se("!")?(N=v,g=Ce(),_=Nt(),_=C.createUnaryExpression(g.value,_),_=C.markEnd(_,N)):Et("delete")||Et("void")||Et("typeof")?(N=v,g=Ce(),_=Nt(),_=C.createUnaryExpression(g.value,_),_=C.markEnd(_,N),w&&_.operator==="delete"&&_.argument.type===d.Identifier&&Le({},p.StrictDelete)):_=sn(),_}function en(g,_){var N=0;if(g.type!==u.Punctuator&&g.type!==u.Keyword)return 0;switch(g.value){case"||":N=1;break;case"&&":N=2;break;case"|":N=3;break;case"^":N=4;break;case"&":N=5;break;case"==":case"!=":case"===":case"!==":N=6;break;case"<":case">":case"<=":case">=":case"instanceof":N=7;break;case"in":N=_?7:0;break;case"<<":case">>":case">>>":N=8;break;case"+":case"-":N=9;break;case"*":case"/":case"%":N=11;break}return N}function br(){var g,_,N,U,ie,ge,qe,rt,Rt,Tt;if(g=v,Rt=Nt(),U=v,ie=en(U,S.allowIn),ie===0)return Rt;for(U.prec=ie,Ce(),_=[g,v],qe=Nt(),ge=[Rt,U,qe];(ie=en(v,S.allowIn))>0;){for(;ge.length>2&&ie<=ge[ge.length-2].prec;)qe=ge.pop(),rt=ge.pop().value,Rt=ge.pop(),N=C.createBinaryExpression(rt,Rt,qe),_.pop(),g=_[_.length-1],C.markEnd(N,g),ge.push(N);U=Ce(),U.prec=ie,ge.push(U),_.push(v),N=Nt(),ge.push(N)}for(Tt=ge.length-1,N=ge[Tt],_.pop();Tt>1;)N=C.createBinaryExpression(ge[Tt-1].value,ge[Tt-2],N),Tt-=2,g=_.pop(),C.markEnd(N,g);return N}function xr(){var g,_,N,U,ie;return ie=v,g=br(),Se("?")&&(Ce(),_=S.allowIn,S.allowIn=!0,N=Ct(),S.allowIn=_,Oe(":"),U=Ct(),g=C.createConditionalExpression(g,N,U),C.markEnd(g,ie)),g}function Ct(){var g,_,N,U,ie;return g=v,ie=v,U=_=xr(),ui()&&(Yn(_)||Le({},p.InvalidLHSInAssignment),w&&_.type===d.Identifier&&fe(_.name)&&Le(g,p.StrictLHSAssignment),g=Ce(),N=Ct(),U=C.markEnd(C.createAssignmentExpression(g.value,_,N),ie)),U}function mt(){var g,_=v;if(g=Ct(),Se(",")){for(g=C.createSequenceExpression([g]);m<I&&Se(",");)Ce(),g.expressions.push(Ct());C.markEnd(g,_)}return g}function ci(){for(var g=[],_;m<I&&!(Se("}")||(_=Hr(),typeof _>"u"));)g.push(_);return g}function Yi(){var g,_;return _=v,Oe("{"),g=ci(),Oe("}"),C.markEnd(C.createBlockStatement(g),_)}function or(){var g,_;return _=v,g=Ce(),g.type!==u.Identifier&&Ft(g),C.markEnd(C.createIdentifier(g.value),_)}function pc(g){var _=null,N,U;return U=v,N=or(),w&&fe(N.name)&&Le({},p.StrictVarName),g==="const"?(Oe("="),_=Ct()):Se("=")&&(Ce(),_=Ct()),C.markEnd(C.createVariableDeclarator(N,_),U)}function Ki(g){var _=[];do{if(_.push(pc(g)),!Se(","))break;Ce()}while(m<I);return _}function mc(){var g;return Qe("var"),g=Ki(),$t(),C.createVariableDeclaration(g,"var")}function gc(g){var _,N;return N=v,Qe(g),_=Ki(g),$t(),C.markEnd(C.createVariableDeclaration(_,g),N)}function vc(){return Oe(";"),C.createEmptyStatement()}function yc(){var g=mt();return $t(),C.createExpressionStatement(g)}function bc(){var g,_,N;return Qe("if"),Oe("("),g=mt(),Oe(")"),_=wn(),Et("else")?(Ce(),N=wn()):N=null,C.createIfStatement(g,_,N)}function xc(){var g,_,N;return Qe("do"),N=S.inIteration,S.inIteration=!0,g=wn(),S.inIteration=N,Qe("while"),Oe("("),_=mt(),Oe(")"),Se(";")&&Ce(),C.createDoWhileStatement(g,_)}function Xi(){var g,_,N;return Qe("while"),Oe("("),g=mt(),Oe(")"),N=S.inIteration,S.inIteration=!0,_=wn(),S.inIteration=N,C.createWhileStatement(g,_)}function Ec(){var g,_,N;return N=v,g=Ce(),_=Ki(),C.markEnd(C.createVariableDeclaration(_,g.value),N)}function Ji(){var g,_,N,U,ie,ge,qe;return g=_=N=null,Qe("for"),Oe("("),Se(";")?Ce():(Et("var")||Et("let")?(S.allowIn=!1,g=Ec(),S.allowIn=!0,g.declarations.length===1&&Et("in")&&(Ce(),U=g,ie=mt(),g=null)):(S.allowIn=!1,g=mt(),S.allowIn=!0,Et("in")&&(Yn(g)||Le({},p.InvalidLHSInForIn),Ce(),U=g,ie=mt(),g=null)),typeof U>"u"&&Oe(";")),typeof U>"u"&&(Se(";")||(_=mt()),Oe(";"),Se(")")||(N=mt())),Oe(")"),qe=S.inIteration,S.inIteration=!0,ge=wn(),S.inIteration=qe,typeof U>"u"?C.createForStatement(g,_,N,ge):C.createForInStatement(U,ie,ge)}function wc(){var g=null,_;return Qe("continue"),x.charCodeAt(m)===59?(Ce(),S.inIteration||we({},p.IllegalContinue),C.createContinueStatement(null)):Me()?(S.inIteration||we({},p.IllegalContinue),C.createContinueStatement(null)):(v.type===u.Identifier&&(g=or(),_="$"+g.name,Object.prototype.hasOwnProperty.call(S.labelSet,_)||we({},p.UnknownLabel,g.name)),$t(),g===null&&!S.inIteration&&we({},p.IllegalContinue),C.createContinueStatement(g))}function Cc(){var g=null,_;return Qe("break"),x.charCodeAt(m)===59?(Ce(),S.inIteration||S.inSwitch||we({},p.IllegalBreak),C.createBreakStatement(null)):Me()?(S.inIteration||S.inSwitch||we({},p.IllegalBreak),C.createBreakStatement(null)):(v.type===u.Identifier&&(g=or(),_="$"+g.name,Object.prototype.hasOwnProperty.call(S.labelSet,_)||we({},p.UnknownLabel,g.name)),$t(),g===null&&!(S.inIteration||S.inSwitch)&&we({},p.IllegalBreak),C.createBreakStatement(g))}function Ac(){var g=null;return Qe("return"),S.inFunctionBody||Le({},p.IllegalReturn),x.charCodeAt(m)===32&&te(x.charCodeAt(m+1))?(g=mt(),$t(),C.createReturnStatement(g)):Me()?C.createReturnStatement(null):(Se(";")||!Se("}")&&v.type!==u.EOF&&(g=mt()),$t(),C.createReturnStatement(g))}function Os(){var g,_;return w&&(j(),Le({},p.StrictModeWith)),Qe("with"),Oe("("),g=mt(),Oe(")"),_=wn(),C.createWithStatement(g,_)}function Ds(){var g,_=[],N,U;for(U=v,Et("default")?(Ce(),g=null):(Qe("case"),g=mt()),Oe(":");m<I&&!(Se("}")||Et("default")||Et("case"));)N=wn(),_.push(N);return C.markEnd(C.createSwitchCase(g,_),U)}function Is(){var g,_,N,U,ie;if(Qe("switch"),Oe("("),g=mt(),Oe(")"),Oe("{"),_=[],Se("}"))return Ce(),C.createSwitchStatement(g,_);for(U=S.inSwitch,S.inSwitch=!0,ie=!1;m<I&&!Se("}");)N=Ds(),N.test===null&&(ie&&we({},p.MultipleDefaultsInSwitch),ie=!0),_.push(N);return S.inSwitch=U,Oe("}"),C.createSwitchStatement(g,_)}function Sc(){var g;return Qe("throw"),Me()&&we({},p.NewlineAfterThrow),g=mt(),$t(),C.createThrowStatement(g)}function _c(){var g,_,N;return N=v,Qe("catch"),Oe("("),Se(")")&&Ft(v),g=or(),w&&fe(g.name)&&Le({},p.StrictCatchVariable),Oe(")"),_=Yi(),C.markEnd(C.createCatchClause(g,_),N)}function Tc(){var g,_=[],N=null;return Qe("try"),g=Yi(),Et("catch")&&_.push(_c()),Et("finally")&&(Ce(),N=Yi()),_.length===0&&!N&&we({},p.NoCatchOrFinally),C.createTryStatement(g,[],_,N)}function Oc(){return Qe("debugger"),$t(),C.createDebuggerStatement()}function wn(){var g=v.type,_,N,U,ie;if(g===u.EOF&&Ft(v),g===u.Punctuator&&v.value==="{")return Yi();if(ie=v,g===u.Punctuator)switch(v.value){case";":return C.markEnd(vc(),ie);case"(":return C.markEnd(yc(),ie)}if(g===u.Keyword)switch(v.value){case"break":return C.markEnd(Cc(),ie);case"continue":return C.markEnd(wc(),ie);case"debugger":return C.markEnd(Oc(),ie);case"do":return C.markEnd(xc(),ie);case"for":return C.markEnd(Ji(),ie);case"function":return C.markEnd(Qi(),ie);case"if":return C.markEnd(bc(),ie);case"return":return C.markEnd(Ac(),ie);case"switch":return C.markEnd(Is(),ie);case"throw":return C.markEnd(Sc(),ie);case"try":return C.markEnd(Tc(),ie);case"var":return C.markEnd(mc(),ie);case"while":return C.markEnd(Xi(),ie);case"with":return C.markEnd(Os(),ie)}return _=mt(),_.type===d.Identifier&&Se(":")?(Ce(),U="$"+_.name,Object.prototype.hasOwnProperty.call(S.labelSet,U)&&we({},p.Redeclaration,"Label",_.name),S.labelSet[U]=!0,N=wn(),delete S.labelSet[U],C.markEnd(C.createLabeledStatement(_,N),ie)):($t(),C.markEnd(C.createExpressionStatement(_),ie))}function Zi(){var g,_=[],N,U,ie,ge,qe,rt,Rt,Tt;for(Tt=v,Oe("{");m<I&&!(v.type!==u.StringLiteral||(N=v,g=Hr(),_.push(g),g.expression.type!==d.Literal));)U=x.slice(N.start+1,N.end-1),U==="use strict"?(w=!0,ie&&Le(ie,p.StrictOctalLiteral)):!ie&&N.octal&&(ie=N);for(ge=S.labelSet,qe=S.inIteration,rt=S.inSwitch,Rt=S.inFunctionBody,S.labelSet={},S.inIteration=!1,S.inSwitch=!1,S.inFunctionBody=!0;m<I&&!(Se("}")||(g=Hr(),typeof g>"u"));)_.push(g);return Oe("}"),S.labelSet=ge,S.inIteration=qe,S.inSwitch=rt,S.inFunctionBody=Rt,C.markEnd(C.createBlockStatement(_),Tt)}function ia(g){var _,N=[],U,ie,ge,qe,rt;if(Oe("("),!Se(")"))for(ge={};m<I&&(U=v,_=or(),qe="$"+U.value,w?(fe(U.value)&&(ie=U,rt=p.StrictParamName),Object.prototype.hasOwnProperty.call(ge,qe)&&(ie=U,rt=p.StrictParamDupe)):g||(fe(U.value)?(g=U,rt=p.StrictParamName):he(U.value)?(g=U,rt=p.StrictReservedWord):Object.prototype.hasOwnProperty.call(ge,qe)&&(g=U,rt=p.StrictParamDupe)),N.push(_),ge[qe]=!0,!Se(")"));)Oe(",");return Oe(")"),{params:N,stricted:ie,firstRestricted:g,message:rt}}function Qi(){var g,_=[],N,U,ie,ge,qe,rt,Rt,Tt;return Tt=v,Qe("function"),U=v,g=or(),w?fe(U.value)&&Le(U,p.StrictFunctionName):fe(U.value)?(qe=U,rt=p.StrictFunctionName):he(U.value)&&(qe=U,rt=p.StrictReservedWord),ge=ia(qe),_=ge.params,ie=ge.stricted,qe=ge.firstRestricted,ge.message&&(rt=ge.message),Rt=w,N=Zi(),w&&qe&&we(qe,rt),w&&ie&&Le(ie,rt),w=Rt,C.markEnd(C.createFunctionDeclaration(g,_,[],N),Tt)}function Dc(){var g,_=null,N,U,ie,ge,qe=[],rt,Rt,Tt;return Tt=v,Qe("function"),Se("(")||(g=v,_=or(),w?fe(g.value)&&Le(g,p.StrictFunctionName):fe(g.value)?(U=g,ie=p.StrictFunctionName):he(g.value)&&(U=g,ie=p.StrictReservedWord)),ge=ia(U),qe=ge.params,N=ge.stricted,U=ge.firstRestricted,ge.message&&(ie=ge.message),Rt=w,rt=Zi(),w&&U&&we(U,ie),w&&N&&Le(N,ie),w=Rt,C.markEnd(C.createFunctionExpression(_,qe,[],rt),Tt)}function Hr(){if(v.type===u.Keyword)switch(v.value){case"const":case"let":return gc(v.value);case"function":return Qi();default:return wn()}if(v.type!==u.EOF)return wn()}function eo(){for(var g,_=[],N,U,ie;m<I&&(N=v,!(N.type!==u.StringLiteral||(g=Hr(),_.push(g),g.expression.type!==d.Literal)));)U=x.slice(N.start+1,N.end-1),U==="use strict"?(w=!0,ie&&Le(ie,p.StrictOctalLiteral)):!ie&&N.octal&&(ie=N);for(;m<I&&(g=Hr(),!(typeof g>"u"));)_.push(g);return _}function Fs(){var g,_;return j(),ct(),_=v,w=!1,g=eo(),C.markEnd(C.createProgram(g),_)}function Ps(){var g,_,N,U=[];for(g=0;g<O.tokens.length;++g)_=O.tokens[g],N={type:_.type,value:_.value},O.range&&(N.range=_.range),O.loc&&(N.loc=_.loc),U.push(N);O.tokens=U}function ks(g,_){var N,U,ie;N=String,typeof g!="string"&&!(g instanceof String)&&(g=N(g)),C=E,x=g,m=0,D=x.length>0?1:0,F=0,I=x.length,v=null,S={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},O={},_=_||{},_.tokens=!0,O.tokens=[],O.tokenize=!0,O.openParenToken=-1,O.openCurlyToken=-1,O.range=typeof _.range=="boolean"&&_.range,O.loc=typeof _.loc=="boolean"&&_.loc,typeof _.comment=="boolean"&&_.comment&&(O.comments=[]),typeof _.tolerant=="boolean"&&_.tolerant&&(O.errors=[]);try{if(ct(),v.type===u.EOF)return O.tokens;for(U=Ce();v.type!==u.EOF;)try{U=Ce()}catch(ge){if(U=v,O.errors){O.errors.push(ge);break}else throw ge}Ps(),ie=O.tokens,typeof O.comments<"u"&&(ie.comments=O.comments),typeof O.errors<"u"&&(ie.errors=O.errors)}catch(ge){throw ge}finally{O={}}return ie}function Ns(g,_){var N,U;U=String,typeof g!="string"&&!(g instanceof String)&&(g=U(g)),C=E,x=g,m=0,D=x.length>0?1:0,F=0,I=x.length,v=null,S={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},O={},typeof _<"u"&&(O.range=typeof _.range=="boolean"&&_.range,O.loc=typeof _.loc=="boolean"&&_.loc,O.attachComment=typeof _.attachComment=="boolean"&&_.attachComment,O.loc&&_.source!==null&&_.source!==void 0&&(O.source=U(_.source)),typeof _.tokens=="boolean"&&_.tokens&&(O.tokens=[]),typeof _.comment=="boolean"&&_.comment&&(O.comments=[]),typeof _.tolerant=="boolean"&&_.tolerant&&(O.errors=[]),O.attachComment&&(O.range=!0,O.comments=[],O.bottomRightStack=[],O.trailingComments=[],O.leadingComments=[]));try{N=Fs(),typeof O.comments<"u"&&(N.comments=O.comments),typeof O.tokens<"u"&&(Ps(),N.tokens=O.tokens),typeof O.errors<"u"&&(N.errors=O.errors)}catch(ie){throw ie}finally{O={}}return N}s.version="1.2.2",s.tokenize=ks,s.parse=Ns,s.Syntax=function(){var g,_={};typeof Object.create=="function"&&(_=Object.create(null));for(g in d)d.hasOwnProperty(g)&&(_[g]=d[g]);return typeof Object.freeze=="function"&&Object.freeze(_),_}()})},{}],1:[function(n,i,a){(function(s){var u=function(){var l={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(b,E,x,w,m,D,F){w.ast||(w.ast=f,f.initialize());var I=D.length-1;switch(m){case 1:return w.ast.set({expression:{type:"root",value:D[I]}}),w.ast.unshift(),w.ast.yield();case 2:return w.ast.set({expression:{type:"root",value:D[I-1]}}),w.ast.unshift(),w.ast.yield();case 3:return w.ast.unshift(),w.ast.yield();case 4:return w.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:D[I-1]}}),w.ast.unshift(),w.ast.yield();case 5:break;case 6:break;case 7:w.ast.set({operation:"member"}),w.ast.push();break;case 8:w.ast.set({operation:"subscript"}),w.ast.push();break;case 9:w.ast.set({scope:"child"});break;case 10:w.ast.set({scope:"descendant"});break;case 11:break;case 12:w.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:w.ast.set({expression:{type:"wildcard",value:D[I]}});break;case 15:w.ast.set({expression:{type:"identifier",value:D[I]}});break;case 16:w.ast.set({expression:{type:"script_expression",value:D[I]}});break;case 17:w.ast.set({expression:{type:"numeric_literal",value:parseInt(D[I])}});break;case 18:break;case 19:w.ast.set({scope:"child"});break;case 20:w.ast.set({scope:"descendant"});break;case 21:break;case 22:break;case 23:break;case 24:D[I].length>1?w.ast.set({expression:{type:"union",value:D[I]}}):this.$=D[I];break;case 25:this.$=[D[I]];break;case 26:this.$=D[I-2].concat(D[I]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(D[I])}},w.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:D[I]}},w.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:D[I]}},w.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:D[I]}},w.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:D[I]}},w.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:D[I]}},w.ast.set(this.$);break;case 33:this.$=D[I];break;case 34:this.$=D[I];break}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(b,E){if(E.recoverable)this.trace(b);else throw new Error(b)},parse:function(b){var E=this,x=[0],w=[null],m=[],D=this.table,F="",I=0,C=0,v=2,S=1,O=m.slice.call(arguments,1);this.lexer.setInput(b),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var B=this.lexer.yylloc;m.push(B);var G=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function q(){var K;return K=E.lexer.lex()||S,typeof K!="number"&&(K=E.symbols_[K]||K),K}for(var V,ue,ne,te,le={},xe,he,fe,Ie;;){if(ue=x[x.length-1],this.defaultActions[ue]?ne=this.defaultActions[ue]:((V===null||typeof V>"u")&&(V=q()),ne=D[ue]&&D[ue][V]),typeof ne>"u"||!ne.length||!ne[0]){var M="";Ie=[];for(xe in D[ue])this.terminals_[xe]&&xe>v&&Ie.push("'"+this.terminals_[xe]+"'");this.lexer.showPosition?M="Parse error on line "+(I+1)+`:
|
|
78
|
+
`&&++m,F=m;else{if(ne(U.charCodeAt(0)))break;g+=U}return _!==""&&Ce({},p.UnexpectedToken,"ILLEGAL"),{type:u.StringLiteral,value:g,octal:rt,startLineNumber:Rt,startLineStart:Tt,lineNumber:D,lineStart:F,start:N,end:m}}function Be(g,_){var N;try{N=new RegExp(g,_)}catch{Ce({},p.InvalidRegExp)}return N}function ke(){var g,_,N,U,ie;for(g=x[m],B(g==="/","Regular expression literal must start with a slash"),_=x[m++],N=!1,U=!1;m<I;)if(g=x[m++],_+=g,g==="\\")g=x[m++],ne(g.charCodeAt(0))&&Ce({},p.UnterminatedRegExp),_+=g;else if(ne(g.charCodeAt(0)))Ce({},p.UnterminatedRegExp);else if(N)g==="]"&&(N=!1);else if(g==="/"){U=!0;break}else g==="["&&(N=!0);return U||Ce({},p.UnterminatedRegExp),ie=_.substr(1,_.length-2),{value:ie,literal:_}}function Te(){var g,_,N,U;for(_="",N="";m<I&&(g=x[m],!!le(g.charCodeAt(0)));)if(++m,g==="\\"&&m<I)if(g=x[m],g==="u"){if(++m,U=m,g=z("u"),g)for(N+=g,_+="\\u";U<m;++U)_+=x[U];else m=U,N+="u",_+="\\u";Le({},p.UnexpectedToken,"ILLEGAL")}else _+="\\",Le({},p.UnexpectedToken,"ILLEGAL");else N+=g,_+=g;return{value:N,literal:_}}function et(){var g,_,N,U;return v=null,j(),g=m,_=ke(),N=Te(),U=Be(_.value,N.value),O.tokenize?{type:u.RegularExpression,value:U,lineNumber:D,lineStart:F,start:g,end:m}:{literal:_.literal+N.literal,value:U,start:g,end:m}}function Ye(){var g,_,N,U;return j(),g=m,_={start:{line:D,column:m-F}},N=et(),_.end={line:D,column:m-F},O.tokenize||(O.tokens.length>0&&(U=O.tokens[O.tokens.length-1],U.range[0]===g&&U.type==="Punctuator"&&(U.value==="/"||U.value==="/=")&&O.tokens.pop()),O.tokens.push({type:"RegularExpression",value:N.literal,range:[g,m],loc:_})),N}function Zt(g){return g.type===u.Identifier||g.type===u.Keyword||g.type===u.BooleanLiteral||g.type===u.NullLiteral}function zt(){var g,_;if(g=O.tokens[O.tokens.length-1],!g)return Ye();if(g.type==="Punctuator"){if(g.value==="]")return ae();if(g.value===")")return _=O.tokens[O.openParenToken-1],_&&_.type==="Keyword"&&(_.value==="if"||_.value==="while"||_.value==="for"||_.value==="with")?Ye():ae();if(g.value==="}"){if(O.tokens[O.openCurlyToken-3]&&O.tokens[O.openCurlyToken-3].type==="Keyword"){if(_=O.tokens[O.openCurlyToken-4],!_)return ae()}else if(O.tokens[O.openCurlyToken-4]&&O.tokens[O.openCurlyToken-4].type==="Keyword"){if(_=O.tokens[O.openCurlyToken-5],!_)return Ye()}else return ae();return f.indexOf(_.value)>=0?ae():Ye()}return Ye()}return g.type==="Keyword"?Ye():ae()}function tt(){var g;return j(),m>=I?{type:u.EOF,lineNumber:D,lineStart:F,start:m,end:m}:(g=x.charCodeAt(m),te(g)?ve():g===40||g===41||g===59?ae():g===39||g===34?ee():g===46?G(x.charCodeAt(m+1))?me():ae():G(g)?me():O.tokenize&&g===47?zt():ae())}function Ke(){var g,_,N;return j(),g={start:{line:D,column:m-F}},_=tt(),g.end={line:D,column:m-F},_.type!==u.EOF&&(N=x.slice(_.start,_.end),O.tokens.push({type:c[_.type],value:N,range:[_.start,_.end],loc:g})),_}function we(){var g;return g=v,m=g.end,D=g.lineNumber,F=g.lineStart,v=typeof O.tokens<"u"?Ke():tt(),m=g.end,D=g.lineNumber,F=g.lineStart,g}function ct(){var g,_,N;g=m,_=D,N=F,v=typeof O.tokens<"u"?Ke():tt(),m=g,D=_,F=N}function bt(g,_){this.line=g,this.column=_}function Qt(g,_,N,U){this.start=new bt(g,_),this.end=new bt(N,U)}E={name:"SyntaxTree",processComment:function(g){var _,N;if(!(g.type===d.Program&&g.body.length>0)){for(O.trailingComments.length>0?O.trailingComments[0].range[0]>=g.range[1]?(N=O.trailingComments,O.trailingComments=[]):O.trailingComments.length=0:O.bottomRightStack.length>0&&O.bottomRightStack[O.bottomRightStack.length-1].trailingComments&&O.bottomRightStack[O.bottomRightStack.length-1].trailingComments[0].range[0]>=g.range[1]&&(N=O.bottomRightStack[O.bottomRightStack.length-1].trailingComments,delete O.bottomRightStack[O.bottomRightStack.length-1].trailingComments);O.bottomRightStack.length>0&&O.bottomRightStack[O.bottomRightStack.length-1].range[0]>=g.range[0];)_=O.bottomRightStack.pop();_?_.leadingComments&&_.leadingComments[_.leadingComments.length-1].range[1]<=g.range[0]&&(g.leadingComments=_.leadingComments,delete _.leadingComments):O.leadingComments.length>0&&O.leadingComments[O.leadingComments.length-1].range[1]<=g.range[0]&&(g.leadingComments=O.leadingComments,O.leadingComments=[]),N&&(g.trailingComments=N),O.bottomRightStack.push(g)}},markEnd:function(g,_){return O.range&&(g.range=[_.start,m]),O.loc&&(g.loc=new Qt(_.startLineNumber===void 0?_.lineNumber:_.startLineNumber,_.start-(_.startLineStart===void 0?_.lineStart:_.startLineStart),D,m-F),this.postProcess(g)),O.attachComment&&this.processComment(g),g},postProcess:function(g){return O.source&&(g.loc.source=O.source),g},createArrayExpression:function(g){return{type:d.ArrayExpression,elements:g}},createAssignmentExpression:function(g,_,N){return{type:d.AssignmentExpression,operator:g,left:_,right:N}},createBinaryExpression:function(g,_,N){var U=g==="||"||g==="&&"?d.LogicalExpression:d.BinaryExpression;return{type:U,operator:g,left:_,right:N}},createBlockStatement:function(g){return{type:d.BlockStatement,body:g}},createBreakStatement:function(g){return{type:d.BreakStatement,label:g}},createCallExpression:function(g,_){return{type:d.CallExpression,callee:g,arguments:_}},createCatchClause:function(g,_){return{type:d.CatchClause,param:g,body:_}},createConditionalExpression:function(g,_,N){return{type:d.ConditionalExpression,test:g,consequent:_,alternate:N}},createContinueStatement:function(g){return{type:d.ContinueStatement,label:g}},createDebuggerStatement:function(){return{type:d.DebuggerStatement}},createDoWhileStatement:function(g,_){return{type:d.DoWhileStatement,body:g,test:_}},createEmptyStatement:function(){return{type:d.EmptyStatement}},createExpressionStatement:function(g){return{type:d.ExpressionStatement,expression:g}},createForStatement:function(g,_,N,U){return{type:d.ForStatement,init:g,test:_,update:N,body:U}},createForInStatement:function(g,_,N){return{type:d.ForInStatement,left:g,right:_,body:N,each:!1}},createFunctionDeclaration:function(g,_,N,U){return{type:d.FunctionDeclaration,id:g,params:_,defaults:N,body:U,rest:null,generator:!1,expression:!1}},createFunctionExpression:function(g,_,N,U){return{type:d.FunctionExpression,id:g,params:_,defaults:N,body:U,rest:null,generator:!1,expression:!1}},createIdentifier:function(g){return{type:d.Identifier,name:g}},createIfStatement:function(g,_,N){return{type:d.IfStatement,test:g,consequent:_,alternate:N}},createLabeledStatement:function(g,_){return{type:d.LabeledStatement,label:g,body:_}},createLiteral:function(g){return{type:d.Literal,value:g.value,raw:x.slice(g.start,g.end)}},createMemberExpression:function(g,_,N){return{type:d.MemberExpression,computed:g==="[",object:_,property:N}},createNewExpression:function(g,_){return{type:d.NewExpression,callee:g,arguments:_}},createObjectExpression:function(g){return{type:d.ObjectExpression,properties:g}},createPostfixExpression:function(g,_){return{type:d.UpdateExpression,operator:g,argument:_,prefix:!1}},createProgram:function(g){return{type:d.Program,body:g}},createProperty:function(g,_,N){return{type:d.Property,key:_,value:N,kind:g}},createReturnStatement:function(g){return{type:d.ReturnStatement,argument:g}},createSequenceExpression:function(g){return{type:d.SequenceExpression,expressions:g}},createSwitchCase:function(g,_){return{type:d.SwitchCase,test:g,consequent:_}},createSwitchStatement:function(g,_){return{type:d.SwitchStatement,discriminant:g,cases:_}},createThisExpression:function(){return{type:d.ThisExpression}},createThrowStatement:function(g){return{type:d.ThrowStatement,argument:g}},createTryStatement:function(g,_,N,U){return{type:d.TryStatement,block:g,guardedHandlers:_,handlers:N,finalizer:U}},createUnaryExpression:function(g,_){return g==="++"||g==="--"?{type:d.UpdateExpression,operator:g,argument:_,prefix:!0}:{type:d.UnaryExpression,operator:g,argument:_,prefix:!0}},createVariableDeclaration:function(g,_){return{type:d.VariableDeclaration,declarations:g,kind:_}},createVariableDeclarator:function(g,_){return{type:d.VariableDeclarator,id:g,init:_}},createWhileStatement:function(g,_){return{type:d.WhileStatement,test:g,body:_}},createWithStatement:function(g,_){return{type:d.WithStatement,object:g,body:_}}};function Me(){var g,_,N,U;return g=m,_=D,N=F,j(),U=D!==_,m=g,D=_,F=N,U}function Ce(g,_){var N,U=Array.prototype.slice.call(arguments,2),ie=_.replace(/%(\d)/g,function(ge,qe){return B(qe<U.length,"Message reference must be in range"),U[qe]});throw typeof g.lineNumber=="number"?(N=new Error("Line "+g.lineNumber+": "+ie),N.index=g.start,N.lineNumber=g.lineNumber,N.column=g.start-F+1):(N=new Error("Line "+D+": "+ie),N.index=m,N.lineNumber=D,N.column=m-F+1),N.description=ie,N}function Le(){try{Ce.apply(null,arguments)}catch(g){if(O.errors)O.errors.push(g);else throw g}}function Ft(g){if(g.type===u.EOF&&Ce(g,p.UnexpectedEOS),g.type===u.NumericLiteral&&Ce(g,p.UnexpectedNumber),g.type===u.StringLiteral&&Ce(g,p.UnexpectedString),g.type===u.Identifier&&Ce(g,p.UnexpectedIdentifier),g.type===u.Keyword){if(xe(g.value))Ce(g,p.UnexpectedReserved);else if(C&&he(g.value)){Le(g,p.StrictReservedWord);return}Ce(g,p.UnexpectedToken,g.value)}Ce(g,p.UnexpectedToken,g.value)}function Oe(g){var _=we();(_.type!==u.Punctuator||_.value!==g)&&Ft(_)}function Qe(g){var _=we();(_.type!==u.Keyword||_.value!==g)&&Ft(_)}function Se(g){return v.type===u.Punctuator&&v.value===g}function Et(g){return v.type===u.Keyword&&v.value===g}function ui(){var g;return v.type!==u.Punctuator?!1:(g=v.value,g==="="||g==="*="||g==="/="||g==="%="||g==="+="||g==="-="||g==="<<="||g===">>="||g===">>>="||g==="&="||g==="^="||g==="|=")}function $t(){var g;if(x.charCodeAt(m)===59||Se(";")){we();return}g=D,j(),D===g&&v.type!==u.EOF&&!Se("}")&&Ft(v)}function Yn(g){return g.type===d.Identifier||g.type===d.MemberExpression}function li(){var g=[],_;for(_=v,Oe("[");!Se("]");)Se(",")?(we(),g.push(null)):(g.push(wt()),Se("]")||Oe(","));return we(),w.markEnd(w.createArrayExpression(g),_)}function $r(g,_){var N,U,ie;return N=C,ie=v,U=Zi(),_&&C&&fe(g[0].name)&&Le(_,p.StrictParamName),C=N,w.markEnd(w.createFunctionExpression(null,g,[],U),ie)}function Ur(){var g,_;return _=v,g=we(),g.type===u.StringLiteral||g.type===u.NumericLiteral?(C&&g.octal&&Le(g,p.StrictOctalLiteral),w.markEnd(w.createLiteral(g),_)):w.markEnd(w.createIdentifier(g.value),_)}function ra(){var g,_,N,U,ie,ge;if(g=v,ge=v,g.type===u.Identifier)return N=Ur(),g.value==="get"&&!Se(":")?(_=Ur(),Oe("("),Oe(")"),U=$r([]),w.markEnd(w.createProperty("get",_,U),ge)):g.value==="set"&&!Se(":")?(_=Ur(),Oe("("),g=v,g.type!==u.Identifier?(Oe(")"),Le(g,p.UnexpectedToken,g.value),U=$r([])):(ie=[or()],Oe(")"),U=$r(ie,g)),w.markEnd(w.createProperty("set",_,U),ge)):(Oe(":"),U=wt(),w.markEnd(w.createProperty("init",N,U),ge));if(g.type===u.EOF||g.type===u.Punctuator)Ft(g);else return _=Ur(),Oe(":"),U=wt(),w.markEnd(w.createProperty("init",_,U),ge)}function Vi(){var g=[],_,N,U,ie,ge={},qe=String,rt;for(rt=v,Oe("{");!Se("}");)_=ra(),_.key.type===d.Identifier?N=_.key.name:N=qe(_.key.value),ie=_.kind==="init"?h.Data:_.kind==="get"?h.Get:h.Set,U="$"+N,Object.prototype.hasOwnProperty.call(ge,U)?(ge[U]===h.Data?C&&ie===h.Data?Le({},p.StrictDuplicateProperty):ie!==h.Data&&Le({},p.AccessorDataProperty):ie===h.Data?Le({},p.AccessorDataProperty):ge[U]&ie&&Le({},p.AccessorGetSet),ge[U]|=ie):ge[U]=ie,g.push(_),Se("}")||Oe(",");return Oe("}"),w.markEnd(w.createObjectExpression(g),rt)}function St(){var g;return Oe("("),g=mt(),Oe(")"),g}function Ut(){var g,_,N,U;if(Se("("))return St();if(Se("["))return li();if(Se("{"))return Vi();if(g=v.type,U=v,g===u.Identifier)N=w.createIdentifier(we().value);else if(g===u.StringLiteral||g===u.NumericLiteral)C&&v.octal&&Le(v,p.StrictOctalLiteral),N=w.createLiteral(we());else if(g===u.Keyword){if(Et("function"))return Dc();Et("this")?(we(),N=w.createThisExpression()):Ft(we())}else g===u.BooleanLiteral?(_=we(),_.value=_.value==="true",N=w.createLiteral(_)):g===u.NullLiteral?(_=we(),_.value=null,N=w.createLiteral(_)):Se("/")||Se("/=")?(typeof O.tokens<"u"?N=w.createLiteral(Ye()):N=w.createLiteral(et()),ct()):Ft(we());return w.markEnd(N,U)}function Ht(){var g=[];if(Oe("("),!Se(")"))for(;m<I&&(g.push(wt()),!Se(")"));)Oe(",");return Oe(")"),g}function Rn(){var g,_;return _=v,g=we(),Zt(g)||Ft(g),w.markEnd(w.createIdentifier(g.value),_)}function Gt(){return Oe("."),Rn()}function kt(){var g;return Oe("["),g=mt(),Oe("]"),g}function an(){var g,_,N;return N=v,Qe("new"),g=_t(),_=Se("(")?Ht():[],w.markEnd(w.createNewExpression(g,_),N)}function ir(){var g,_,N,U,ie;for(ie=v,g=S.allowIn,S.allowIn=!0,_=Et("new")?an():Ut(),S.allowIn=g;;){if(Se("."))U=Gt(),_=w.createMemberExpression(".",_,U);else if(Se("("))N=Ht(),_=w.createCallExpression(_,N);else if(Se("["))U=kt(),_=w.createMemberExpression("[",_,U);else break;w.markEnd(_,ie)}return _}function _t(){var g,_,N,U;for(U=v,g=S.allowIn,_=Et("new")?an():Ut(),S.allowIn=g;Se(".")||Se("[");)Se("[")?(N=kt(),_=w.createMemberExpression("[",_,N)):(N=Gt(),_=w.createMemberExpression(".",_,N)),w.markEnd(_,U);return _}function sn(){var g,_,N=v;return g=ir(),v.type===u.Punctuator&&(Se("++")||Se("--"))&&!Me()&&(C&&g.type===d.Identifier&&fe(g.name)&&Le({},p.StrictLHSPostfix),Yn(g)||Le({},p.InvalidLHSInAssignment),_=we(),g=w.markEnd(w.createPostfixExpression(_.value,g),N)),g}function Nt(){var g,_,N;return v.type!==u.Punctuator&&v.type!==u.Keyword?_=sn():Se("++")||Se("--")?(N=v,g=we(),_=Nt(),C&&_.type===d.Identifier&&fe(_.name)&&Le({},p.StrictLHSPrefix),Yn(_)||Le({},p.InvalidLHSInAssignment),_=w.createUnaryExpression(g.value,_),_=w.markEnd(_,N)):Se("+")||Se("-")||Se("~")||Se("!")?(N=v,g=we(),_=Nt(),_=w.createUnaryExpression(g.value,_),_=w.markEnd(_,N)):Et("delete")||Et("void")||Et("typeof")?(N=v,g=we(),_=Nt(),_=w.createUnaryExpression(g.value,_),_=w.markEnd(_,N),C&&_.operator==="delete"&&_.argument.type===d.Identifier&&Le({},p.StrictDelete)):_=sn(),_}function en(g,_){var N=0;if(g.type!==u.Punctuator&&g.type!==u.Keyword)return 0;switch(g.value){case"||":N=1;break;case"&&":N=2;break;case"|":N=3;break;case"^":N=4;break;case"&":N=5;break;case"==":case"!=":case"===":case"!==":N=6;break;case"<":case">":case"<=":case">=":case"instanceof":N=7;break;case"in":N=_?7:0;break;case"<<":case">>":case">>>":N=8;break;case"+":case"-":N=9;break;case"*":case"/":case"%":N=11;break}return N}function br(){var g,_,N,U,ie,ge,qe,rt,Rt,Tt;if(g=v,Rt=Nt(),U=v,ie=en(U,S.allowIn),ie===0)return Rt;for(U.prec=ie,we(),_=[g,v],qe=Nt(),ge=[Rt,U,qe];(ie=en(v,S.allowIn))>0;){for(;ge.length>2&&ie<=ge[ge.length-2].prec;)qe=ge.pop(),rt=ge.pop().value,Rt=ge.pop(),N=w.createBinaryExpression(rt,Rt,qe),_.pop(),g=_[_.length-1],w.markEnd(N,g),ge.push(N);U=we(),U.prec=ie,ge.push(U),_.push(v),N=Nt(),ge.push(N)}for(Tt=ge.length-1,N=ge[Tt],_.pop();Tt>1;)N=w.createBinaryExpression(ge[Tt-1].value,ge[Tt-2],N),Tt-=2,g=_.pop(),w.markEnd(N,g);return N}function xr(){var g,_,N,U,ie;return ie=v,g=br(),Se("?")&&(we(),_=S.allowIn,S.allowIn=!0,N=wt(),S.allowIn=_,Oe(":"),U=wt(),g=w.createConditionalExpression(g,N,U),w.markEnd(g,ie)),g}function wt(){var g,_,N,U,ie;return g=v,ie=v,U=_=xr(),ui()&&(Yn(_)||Le({},p.InvalidLHSInAssignment),C&&_.type===d.Identifier&&fe(_.name)&&Le(g,p.StrictLHSAssignment),g=we(),N=wt(),U=w.markEnd(w.createAssignmentExpression(g.value,_,N),ie)),U}function mt(){var g,_=v;if(g=wt(),Se(",")){for(g=w.createSequenceExpression([g]);m<I&&Se(",");)we(),g.expressions.push(wt());w.markEnd(g,_)}return g}function ci(){for(var g=[],_;m<I&&!(Se("}")||(_=Hr(),typeof _>"u"));)g.push(_);return g}function Yi(){var g,_;return _=v,Oe("{"),g=ci(),Oe("}"),w.markEnd(w.createBlockStatement(g),_)}function or(){var g,_;return _=v,g=we(),g.type!==u.Identifier&&Ft(g),w.markEnd(w.createIdentifier(g.value),_)}function pc(g){var _=null,N,U;return U=v,N=or(),C&&fe(N.name)&&Le({},p.StrictVarName),g==="const"?(Oe("="),_=wt()):Se("=")&&(we(),_=wt()),w.markEnd(w.createVariableDeclarator(N,_),U)}function Ki(g){var _=[];do{if(_.push(pc(g)),!Se(","))break;we()}while(m<I);return _}function mc(){var g;return Qe("var"),g=Ki(),$t(),w.createVariableDeclaration(g,"var")}function gc(g){var _,N;return N=v,Qe(g),_=Ki(g),$t(),w.markEnd(w.createVariableDeclaration(_,g),N)}function vc(){return Oe(";"),w.createEmptyStatement()}function yc(){var g=mt();return $t(),w.createExpressionStatement(g)}function bc(){var g,_,N;return Qe("if"),Oe("("),g=mt(),Oe(")"),_=Cn(),Et("else")?(we(),N=Cn()):N=null,w.createIfStatement(g,_,N)}function xc(){var g,_,N;return Qe("do"),N=S.inIteration,S.inIteration=!0,g=Cn(),S.inIteration=N,Qe("while"),Oe("("),_=mt(),Oe(")"),Se(";")&&we(),w.createDoWhileStatement(g,_)}function Xi(){var g,_,N;return Qe("while"),Oe("("),g=mt(),Oe(")"),N=S.inIteration,S.inIteration=!0,_=Cn(),S.inIteration=N,w.createWhileStatement(g,_)}function Ec(){var g,_,N;return N=v,g=we(),_=Ki(),w.markEnd(w.createVariableDeclaration(_,g.value),N)}function Ji(){var g,_,N,U,ie,ge,qe;return g=_=N=null,Qe("for"),Oe("("),Se(";")?we():(Et("var")||Et("let")?(S.allowIn=!1,g=Ec(),S.allowIn=!0,g.declarations.length===1&&Et("in")&&(we(),U=g,ie=mt(),g=null)):(S.allowIn=!1,g=mt(),S.allowIn=!0,Et("in")&&(Yn(g)||Le({},p.InvalidLHSInForIn),we(),U=g,ie=mt(),g=null)),typeof U>"u"&&Oe(";")),typeof U>"u"&&(Se(";")||(_=mt()),Oe(";"),Se(")")||(N=mt())),Oe(")"),qe=S.inIteration,S.inIteration=!0,ge=Cn(),S.inIteration=qe,typeof U>"u"?w.createForStatement(g,_,N,ge):w.createForInStatement(U,ie,ge)}function Cc(){var g=null,_;return Qe("continue"),x.charCodeAt(m)===59?(we(),S.inIteration||Ce({},p.IllegalContinue),w.createContinueStatement(null)):Me()?(S.inIteration||Ce({},p.IllegalContinue),w.createContinueStatement(null)):(v.type===u.Identifier&&(g=or(),_="$"+g.name,Object.prototype.hasOwnProperty.call(S.labelSet,_)||Ce({},p.UnknownLabel,g.name)),$t(),g===null&&!S.inIteration&&Ce({},p.IllegalContinue),w.createContinueStatement(g))}function wc(){var g=null,_;return Qe("break"),x.charCodeAt(m)===59?(we(),S.inIteration||S.inSwitch||Ce({},p.IllegalBreak),w.createBreakStatement(null)):Me()?(S.inIteration||S.inSwitch||Ce({},p.IllegalBreak),w.createBreakStatement(null)):(v.type===u.Identifier&&(g=or(),_="$"+g.name,Object.prototype.hasOwnProperty.call(S.labelSet,_)||Ce({},p.UnknownLabel,g.name)),$t(),g===null&&!(S.inIteration||S.inSwitch)&&Ce({},p.IllegalBreak),w.createBreakStatement(g))}function Ac(){var g=null;return Qe("return"),S.inFunctionBody||Le({},p.IllegalReturn),x.charCodeAt(m)===32&&te(x.charCodeAt(m+1))?(g=mt(),$t(),w.createReturnStatement(g)):Me()?w.createReturnStatement(null):(Se(";")||!Se("}")&&v.type!==u.EOF&&(g=mt()),$t(),w.createReturnStatement(g))}function Os(){var g,_;return C&&(j(),Le({},p.StrictModeWith)),Qe("with"),Oe("("),g=mt(),Oe(")"),_=Cn(),w.createWithStatement(g,_)}function Ds(){var g,_=[],N,U;for(U=v,Et("default")?(we(),g=null):(Qe("case"),g=mt()),Oe(":");m<I&&!(Se("}")||Et("default")||Et("case"));)N=Cn(),_.push(N);return w.markEnd(w.createSwitchCase(g,_),U)}function Is(){var g,_,N,U,ie;if(Qe("switch"),Oe("("),g=mt(),Oe(")"),Oe("{"),_=[],Se("}"))return we(),w.createSwitchStatement(g,_);for(U=S.inSwitch,S.inSwitch=!0,ie=!1;m<I&&!Se("}");)N=Ds(),N.test===null&&(ie&&Ce({},p.MultipleDefaultsInSwitch),ie=!0),_.push(N);return S.inSwitch=U,Oe("}"),w.createSwitchStatement(g,_)}function Sc(){var g;return Qe("throw"),Me()&&Ce({},p.NewlineAfterThrow),g=mt(),$t(),w.createThrowStatement(g)}function _c(){var g,_,N;return N=v,Qe("catch"),Oe("("),Se(")")&&Ft(v),g=or(),C&&fe(g.name)&&Le({},p.StrictCatchVariable),Oe(")"),_=Yi(),w.markEnd(w.createCatchClause(g,_),N)}function Tc(){var g,_=[],N=null;return Qe("try"),g=Yi(),Et("catch")&&_.push(_c()),Et("finally")&&(we(),N=Yi()),_.length===0&&!N&&Ce({},p.NoCatchOrFinally),w.createTryStatement(g,[],_,N)}function Oc(){return Qe("debugger"),$t(),w.createDebuggerStatement()}function Cn(){var g=v.type,_,N,U,ie;if(g===u.EOF&&Ft(v),g===u.Punctuator&&v.value==="{")return Yi();if(ie=v,g===u.Punctuator)switch(v.value){case";":return w.markEnd(vc(),ie);case"(":return w.markEnd(yc(),ie)}if(g===u.Keyword)switch(v.value){case"break":return w.markEnd(wc(),ie);case"continue":return w.markEnd(Cc(),ie);case"debugger":return w.markEnd(Oc(),ie);case"do":return w.markEnd(xc(),ie);case"for":return w.markEnd(Ji(),ie);case"function":return w.markEnd(Qi(),ie);case"if":return w.markEnd(bc(),ie);case"return":return w.markEnd(Ac(),ie);case"switch":return w.markEnd(Is(),ie);case"throw":return w.markEnd(Sc(),ie);case"try":return w.markEnd(Tc(),ie);case"var":return w.markEnd(mc(),ie);case"while":return w.markEnd(Xi(),ie);case"with":return w.markEnd(Os(),ie)}return _=mt(),_.type===d.Identifier&&Se(":")?(we(),U="$"+_.name,Object.prototype.hasOwnProperty.call(S.labelSet,U)&&Ce({},p.Redeclaration,"Label",_.name),S.labelSet[U]=!0,N=Cn(),delete S.labelSet[U],w.markEnd(w.createLabeledStatement(_,N),ie)):($t(),w.markEnd(w.createExpressionStatement(_),ie))}function Zi(){var g,_=[],N,U,ie,ge,qe,rt,Rt,Tt;for(Tt=v,Oe("{");m<I&&!(v.type!==u.StringLiteral||(N=v,g=Hr(),_.push(g),g.expression.type!==d.Literal));)U=x.slice(N.start+1,N.end-1),U==="use strict"?(C=!0,ie&&Le(ie,p.StrictOctalLiteral)):!ie&&N.octal&&(ie=N);for(ge=S.labelSet,qe=S.inIteration,rt=S.inSwitch,Rt=S.inFunctionBody,S.labelSet={},S.inIteration=!1,S.inSwitch=!1,S.inFunctionBody=!0;m<I&&!(Se("}")||(g=Hr(),typeof g>"u"));)_.push(g);return Oe("}"),S.labelSet=ge,S.inIteration=qe,S.inSwitch=rt,S.inFunctionBody=Rt,w.markEnd(w.createBlockStatement(_),Tt)}function ia(g){var _,N=[],U,ie,ge,qe,rt;if(Oe("("),!Se(")"))for(ge={};m<I&&(U=v,_=or(),qe="$"+U.value,C?(fe(U.value)&&(ie=U,rt=p.StrictParamName),Object.prototype.hasOwnProperty.call(ge,qe)&&(ie=U,rt=p.StrictParamDupe)):g||(fe(U.value)?(g=U,rt=p.StrictParamName):he(U.value)?(g=U,rt=p.StrictReservedWord):Object.prototype.hasOwnProperty.call(ge,qe)&&(g=U,rt=p.StrictParamDupe)),N.push(_),ge[qe]=!0,!Se(")"));)Oe(",");return Oe(")"),{params:N,stricted:ie,firstRestricted:g,message:rt}}function Qi(){var g,_=[],N,U,ie,ge,qe,rt,Rt,Tt;return Tt=v,Qe("function"),U=v,g=or(),C?fe(U.value)&&Le(U,p.StrictFunctionName):fe(U.value)?(qe=U,rt=p.StrictFunctionName):he(U.value)&&(qe=U,rt=p.StrictReservedWord),ge=ia(qe),_=ge.params,ie=ge.stricted,qe=ge.firstRestricted,ge.message&&(rt=ge.message),Rt=C,N=Zi(),C&&qe&&Ce(qe,rt),C&&ie&&Le(ie,rt),C=Rt,w.markEnd(w.createFunctionDeclaration(g,_,[],N),Tt)}function Dc(){var g,_=null,N,U,ie,ge,qe=[],rt,Rt,Tt;return Tt=v,Qe("function"),Se("(")||(g=v,_=or(),C?fe(g.value)&&Le(g,p.StrictFunctionName):fe(g.value)?(U=g,ie=p.StrictFunctionName):he(g.value)&&(U=g,ie=p.StrictReservedWord)),ge=ia(U),qe=ge.params,N=ge.stricted,U=ge.firstRestricted,ge.message&&(ie=ge.message),Rt=C,rt=Zi(),C&&U&&Ce(U,ie),C&&N&&Le(N,ie),C=Rt,w.markEnd(w.createFunctionExpression(_,qe,[],rt),Tt)}function Hr(){if(v.type===u.Keyword)switch(v.value){case"const":case"let":return gc(v.value);case"function":return Qi();default:return Cn()}if(v.type!==u.EOF)return Cn()}function eo(){for(var g,_=[],N,U,ie;m<I&&(N=v,!(N.type!==u.StringLiteral||(g=Hr(),_.push(g),g.expression.type!==d.Literal)));)U=x.slice(N.start+1,N.end-1),U==="use strict"?(C=!0,ie&&Le(ie,p.StrictOctalLiteral)):!ie&&N.octal&&(ie=N);for(;m<I&&(g=Hr(),!(typeof g>"u"));)_.push(g);return _}function Fs(){var g,_;return j(),ct(),_=v,C=!1,g=eo(),w.markEnd(w.createProgram(g),_)}function Ps(){var g,_,N,U=[];for(g=0;g<O.tokens.length;++g)_=O.tokens[g],N={type:_.type,value:_.value},O.range&&(N.range=_.range),O.loc&&(N.loc=_.loc),U.push(N);O.tokens=U}function ks(g,_){var N,U,ie;N=String,typeof g!="string"&&!(g instanceof String)&&(g=N(g)),w=E,x=g,m=0,D=x.length>0?1:0,F=0,I=x.length,v=null,S={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},O={},_=_||{},_.tokens=!0,O.tokens=[],O.tokenize=!0,O.openParenToken=-1,O.openCurlyToken=-1,O.range=typeof _.range=="boolean"&&_.range,O.loc=typeof _.loc=="boolean"&&_.loc,typeof _.comment=="boolean"&&_.comment&&(O.comments=[]),typeof _.tolerant=="boolean"&&_.tolerant&&(O.errors=[]);try{if(ct(),v.type===u.EOF)return O.tokens;for(U=we();v.type!==u.EOF;)try{U=we()}catch(ge){if(U=v,O.errors){O.errors.push(ge);break}else throw ge}Ps(),ie=O.tokens,typeof O.comments<"u"&&(ie.comments=O.comments),typeof O.errors<"u"&&(ie.errors=O.errors)}catch(ge){throw ge}finally{O={}}return ie}function Ns(g,_){var N,U;U=String,typeof g!="string"&&!(g instanceof String)&&(g=U(g)),w=E,x=g,m=0,D=x.length>0?1:0,F=0,I=x.length,v=null,S={allowIn:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1},O={},typeof _<"u"&&(O.range=typeof _.range=="boolean"&&_.range,O.loc=typeof _.loc=="boolean"&&_.loc,O.attachComment=typeof _.attachComment=="boolean"&&_.attachComment,O.loc&&_.source!==null&&_.source!==void 0&&(O.source=U(_.source)),typeof _.tokens=="boolean"&&_.tokens&&(O.tokens=[]),typeof _.comment=="boolean"&&_.comment&&(O.comments=[]),typeof _.tolerant=="boolean"&&_.tolerant&&(O.errors=[]),O.attachComment&&(O.range=!0,O.comments=[],O.bottomRightStack=[],O.trailingComments=[],O.leadingComments=[]));try{N=Fs(),typeof O.comments<"u"&&(N.comments=O.comments),typeof O.tokens<"u"&&(Ps(),N.tokens=O.tokens),typeof O.errors<"u"&&(N.errors=O.errors)}catch(ie){throw ie}finally{O={}}return N}s.version="1.2.2",s.tokenize=ks,s.parse=Ns,s.Syntax=function(){var g,_={};typeof Object.create=="function"&&(_=Object.create(null));for(g in d)d.hasOwnProperty(g)&&(_[g]=d[g]);return typeof Object.freeze=="function"&&Object.freeze(_),_}()})},{}],1:[function(n,i,a){(function(s){var u=function(){var c={trace:function(){},yy:{},symbols_:{error:2,JSON_PATH:3,DOLLAR:4,PATH_COMPONENTS:5,LEADING_CHILD_MEMBER_EXPRESSION:6,PATH_COMPONENT:7,MEMBER_COMPONENT:8,SUBSCRIPT_COMPONENT:9,CHILD_MEMBER_COMPONENT:10,DESCENDANT_MEMBER_COMPONENT:11,DOT:12,MEMBER_EXPRESSION:13,DOT_DOT:14,STAR:15,IDENTIFIER:16,SCRIPT_EXPRESSION:17,INTEGER:18,END:19,CHILD_SUBSCRIPT_COMPONENT:20,DESCENDANT_SUBSCRIPT_COMPONENT:21,"[":22,SUBSCRIPT:23,"]":24,SUBSCRIPT_EXPRESSION:25,SUBSCRIPT_EXPRESSION_LIST:26,SUBSCRIPT_EXPRESSION_LISTABLE:27,",":28,STRING_LITERAL:29,ARRAY_SLICE:30,FILTER_EXPRESSION:31,QQ_STRING:32,Q_STRING:33,$accept:0,$end:1},terminals_:{2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},productions_:[0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],performAction:function(b,E,x,C,m,D,F){C.ast||(C.ast=f,f.initialize());var I=D.length-1;switch(m){case 1:return C.ast.set({expression:{type:"root",value:D[I]}}),C.ast.unshift(),C.ast.yield();case 2:return C.ast.set({expression:{type:"root",value:D[I-1]}}),C.ast.unshift(),C.ast.yield();case 3:return C.ast.unshift(),C.ast.yield();case 4:return C.ast.set({operation:"member",scope:"child",expression:{type:"identifier",value:D[I-1]}}),C.ast.unshift(),C.ast.yield();case 5:break;case 6:break;case 7:C.ast.set({operation:"member"}),C.ast.push();break;case 8:C.ast.set({operation:"subscript"}),C.ast.push();break;case 9:C.ast.set({scope:"child"});break;case 10:C.ast.set({scope:"descendant"});break;case 11:break;case 12:C.ast.set({scope:"child",operation:"member"});break;case 13:break;case 14:C.ast.set({expression:{type:"wildcard",value:D[I]}});break;case 15:C.ast.set({expression:{type:"identifier",value:D[I]}});break;case 16:C.ast.set({expression:{type:"script_expression",value:D[I]}});break;case 17:C.ast.set({expression:{type:"numeric_literal",value:parseInt(D[I])}});break;case 18:break;case 19:C.ast.set({scope:"child"});break;case 20:C.ast.set({scope:"descendant"});break;case 21:break;case 22:break;case 23:break;case 24:D[I].length>1?C.ast.set({expression:{type:"union",value:D[I]}}):this.$=D[I];break;case 25:this.$=[D[I]];break;case 26:this.$=D[I-2].concat(D[I]);break;case 27:this.$={expression:{type:"numeric_literal",value:parseInt(D[I])}},C.ast.set(this.$);break;case 28:this.$={expression:{type:"string_literal",value:D[I]}},C.ast.set(this.$);break;case 29:this.$={expression:{type:"slice",value:D[I]}},C.ast.set(this.$);break;case 30:this.$={expression:{type:"wildcard",value:D[I]}},C.ast.set(this.$);break;case 31:this.$={expression:{type:"script_expression",value:D[I]}},C.ast.set(this.$);break;case 32:this.$={expression:{type:"filter_expression",value:D[I]}},C.ast.set(this.$);break;case 33:this.$=D[I];break;case 34:this.$=D[I];break}},table:[{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],defaultActions:{27:[2,23],29:[2,30],30:[2,31],31:[2,32]},parseError:function(b,E){if(E.recoverable)this.trace(b);else throw new Error(b)},parse:function(b){var E=this,x=[0],C=[null],m=[],D=this.table,F="",I=0,w=0,v=2,S=1,O=m.slice.call(arguments,1);this.lexer.setInput(b),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var B=this.lexer.yylloc;m.push(B);var G=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"?this.parseError=this.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function q(){var K;return K=E.lexer.lex()||S,typeof K!="number"&&(K=E.symbols_[K]||K),K}for(var V,ue,ne,te,le={},xe,he,fe,Ie;;){if(ue=x[x.length-1],this.defaultActions[ue]?ne=this.defaultActions[ue]:((V===null||typeof V>"u")&&(V=q()),ne=D[ue]&&D[ue][V]),typeof ne>"u"||!ne.length||!ne[0]){var M="";Ie=[];for(xe in D[ue])this.terminals_[xe]&&xe>v&&Ie.push("'"+this.terminals_[xe]+"'");this.lexer.showPosition?M="Parse error on line "+(I+1)+`:
|
|
79
79
|
`+this.lexer.showPosition()+`
|
|
80
|
-
Expecting `+Ie.join(", ")+", got '"+(this.terminals_[V]||V)+"'":M="Parse error on line "+(I+1)+": Unexpected "+(V==S?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(M,{text:this.lexer.match,token:this.terminals_[V]||V,line:this.lexer.yylineno,loc:B,expected:Ie})}if(ne[0]instanceof Array&&ne.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ue+", token: "+V);switch(ne[0]){case 1:x.push(V),
|
|
80
|
+
Expecting `+Ie.join(", ")+", got '"+(this.terminals_[V]||V)+"'":M="Parse error on line "+(I+1)+": Unexpected "+(V==S?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(M,{text:this.lexer.match,token:this.terminals_[V]||V,line:this.lexer.yylineno,loc:B,expected:Ie})}if(ne[0]instanceof Array&&ne.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ue+", token: "+V);switch(ne[0]){case 1:x.push(V),C.push(this.lexer.yytext),m.push(this.lexer.yylloc),x.push(ne[1]),V=null,w=this.lexer.yyleng,F=this.lexer.yytext,I=this.lexer.yylineno,B=this.lexer.yylloc;break;case 2:if(he=this.productions_[ne[1]][1],le.$=C[C.length-he],le._$={first_line:m[m.length-(he||1)].first_line,last_line:m[m.length-1].last_line,first_column:m[m.length-(he||1)].first_column,last_column:m[m.length-1].last_column},G&&(le._$.range=[m[m.length-(he||1)].range[0],m[m.length-1].range[1]]),te=this.performAction.apply(le,[F,w,I,this.yy,ne[1],C,m].concat(O)),typeof te<"u")return te;he&&(x=x.slice(0,-1*he*2),C=C.slice(0,-1*he),m=m.slice(0,-1*he)),x.push(this.productions_[ne[1]][0]),C.push(le.$),m.push(le._$),fe=D[x[x.length-2]][x[x.length-1]],x.push(fe);break;case 3:return!0}}return!0}},f={initialize:function(){this._nodes=[],this._node={},this._stash=[]},set:function(p){for(var b in p)this._node[b]=p[b];return this._node},node:function(p){return arguments.length&&(this._node=p),this._node},push:function(){this._nodes.push(this._node),this._node={}},unshift:function(){this._nodes.unshift(this._node),this._node={}},yield:function(){var p=this._nodes;return this.initialize(),p}},d=function(){var p={EOF:1,parseError:function(E,x){if(this.yy.parser)this.yy.parser.parseError(E,x);else throw new Error(E)},setInput:function(b){return this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var E=b.match(/(?:\r\n?|\n).*/g);return E?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},unput:function(b){var E=b.length,x=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E-1),this.offset-=E;var C=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var m=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===C.length?this.yylloc.first_column:0)+C[C.length-x.length].length-x[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
81
81
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(b){this.unput(this.match.slice(b))},pastInput:function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var b=this.pastInput(),E=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
|
|
82
|
-
`+E+"^"},test_match:function(b,E){var x,
|
|
83
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var E=this.next();return E||this.lex()},begin:function(E){this.conditionStack.push(E)},popState:function(){var E=this.conditionStack.length-1;return E>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},pushState:function(E){this.begin(E)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(E,x,w,m){switch(w){case 0:return 4;case 1:return 14;case 2:return 12;case 3:return 15;case 4:return 16;case 5:return 22;case 6:return 24;case 7:return 28;case 8:return 30;case 9:return 18;case 10:return x.yytext=x.yytext.substr(1,x.yyleng-2),32;case 11:return x.yytext=x.yytext.substr(1,x.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return p}();l.lexer=d;function h(){this.yy={}}return h.prototype=l,l.Parser=h,new h}();typeof n<"u"&&typeof a<"u"&&(a.parser=u,a.Parser=u.Parser,a.parse=function(){return u.parse.apply(u,arguments)},a.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),s.exit(1));var d=n("fs").readFileSync(n("path").normalize(f[1]),"utf8");return a.parser.parse(d)},typeof i<"u"&&n.main===i&&a.main(s.argv.slice(1)))}).call(this,n("_process"))},{_process:14,fs:12,path:13}],2:[function(n,i,a){i.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(n,i,a){var s=n("./dict"),u=n("fs"),l={lex:{macros:{esc:"\\\\",int:s.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[s.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[s.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[s.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};u.readFileSync&&(l.moduleInclude=u.readFileSync(n.resolve("../include/module.js")),l.actionInclude=u.readFileSync(n.resolve("../include/action.js"))),i.exports=l},{"./dict":2,fs:12}],4:[function(n,i,a){var s=n("./aesprim"),u=n("./slice"),l=n("static-eval"),f=n("underscore").uniq,d=function(){return this.initialize.apply(this,arguments)};d.prototype.initialize=function(){this.traverse=E(!0),this.descend=E()},d.prototype.keys=Object.keys,d.prototype.resolve=function(I){var C=[I.operation,I.scope,I.expression.type].join("-"),v=this._fns[C];if(!v)throw new Error("couldn't resolve key: "+C);return v.bind(this)},d.prototype.register=function(I,C){if(!C instanceof Function)throw new Error("handler must be a function");this._fns[I]=C},d.prototype._fns={"member-child-identifier":function(I,C){var v=I.expression.value,S=C.value;if(S instanceof Object&&v in S)return[{value:S[v],path:C.path.concat(v)}]},"member-descendant-identifier":w(function(I,C,v){return I==v}),"subscript-child-numeric_literal":x(function(I,C,v){return I===v}),"member-child-numeric_literal":x(function(I,C,v){return String(I)===String(v)}),"subscript-descendant-numeric_literal":w(function(I,C,v){return I===v}),"member-child-wildcard":x(function(){return!0}),"member-descendant-wildcard":w(function(){return!0}),"subscript-descendant-wildcard":w(function(){return!0}),"subscript-child-wildcard":x(function(){return!0}),"subscript-child-slice":function(I,C){if(p(C.value)){var v=I.expression.value.split(":").map(F),S=C.value.map(function(O,B){return{value:O,path:C.path.concat(B)}});return u.apply(null,[S].concat(v))}},"subscript-child-union":function(I,C){var v=[];return I.expression.value.forEach(function(S){var O={operation:"subscript",scope:"child",expression:S.expression},B=this.resolve(O),G=B(O,C);G&&(v=v.concat(G))},this),D(v)},"subscript-descendant-union":function(I,C,v){var S=n(".."),O=this,B=[],G=S.nodes(C,"$..*").slice(1);return G.forEach(function(q){B.length>=v||I.expression.value.forEach(function(V){var ue={operation:"subscript",scope:"child",expression:V.expression},ne=O.resolve(ue),te=ne(ue,q);B=B.concat(te)})}),D(B)},"subscript-child-filter_expression":function(I,C,v){var S=I.expression.value.slice(2,-1),O=s.parse(S).body[0].expression,B=function(G,q){return m(O,{"@":q})};return this.descend(C,null,B,v)},"subscript-descendant-filter_expression":function(I,C,v){var S=I.expression.value.slice(2,-1),O=s.parse(S).body[0].expression,B=function(G,q){return m(O,{"@":q})};return this.traverse(C,null,B,v)},"subscript-child-script_expression":function(I,C){var v=I.expression.value.slice(1,-1);return h(C,v,"$[{{value}}]")},"member-child-script_expression":function(I,C){var v=I.expression.value.slice(1,-1);return h(C,v,"$.{{value}}")},"member-descendant-script_expression":function(I,C){var v=I.expression.value.slice(1,-1);return h(C,v,"$..value")}},d.prototype._fns["subscript-child-string_literal"]=d.prototype._fns["member-child-identifier"],d.prototype._fns["member-descendant-numeric_literal"]=d.prototype._fns["subscript-descendant-string_literal"]=d.prototype._fns["member-descendant-identifier"];function h(I,C,v){var S=n("./index"),O=s.parse(C).body[0].expression,B=m(O,{"@":I.value}),G=v.replace(/\{\{\s*value\s*\}\}/g,B),q=S.nodes(I.value,G);return q.forEach(function(V){V.path=I.path.concat(V.path.slice(1))}),q}function p(I){return Array.isArray(I)}function b(I){return I&&!(I instanceof Array)&&I instanceof Object}function E(I){return function(C,v,S,O){var B=C.value,G=C.path,q=[],V=(function(ue,ne){p(ue)?(ue.forEach(function(te,le){q.length>=O||S(le,te,v)&&q.push({path:ne.concat(le),value:te})}),ue.forEach(function(te,le){q.length>=O||I&&V(te,ne.concat(le))})):b(ue)&&(this.keys(ue).forEach(function(te){q.length>=O||S(te,ue[te],v)&&q.push({path:ne.concat(te),value:ue[te]})}),this.keys(ue).forEach(function(te){q.length>=O||I&&V(ue[te],ne.concat(te))}))}).bind(this);return V(B,G),q}}function x(I){return function(C,v,S){return this.descend(v,C.expression.value,I,S)}}function w(I){return function(C,v,S){return this.traverse(v,C.expression.value,I,S)}}function m(){try{return l.apply(this,arguments)}catch{}}function D(I){return I=I.filter(function(C){return C}),f(I,function(C){return C.path.map(function(v){return String(v).replace("-","--")}).join("-")})}function F(I){var C=String(I);return C.match(/^-?[0-9]+$/)?parseInt(C):null}i.exports=d},{"..":"jsonpath","./aesprim":"./aesprim","./index":5,"./slice":7,"static-eval":15,underscore:12}],5:[function(n,i,a){var s=n("assert"),u=n("./dict"),l=n("./parser"),f=n("./handlers"),d=function(){this.initialize.apply(this,arguments)};d.prototype.initialize=function(){this.parser=new l,this.handlers=new f},d.prototype.parse=function(b){return s.ok(h(b),"we need a path"),this.parser.parse(b)},d.prototype.parent=function(b,E){s.ok(b instanceof Object,"obj needs to be an object"),s.ok(E,"we need a path");var x=this.nodes(b,E)[0];return x.path.pop(),this.value(b,x.path)},d.prototype.apply=function(b,E,x){s.ok(b instanceof Object,"obj needs to be an object"),s.ok(E,"we need a path"),s.equal(typeof x,"function","fn needs to be function");var w=this.nodes(b,E).sort(function(m,D){return D.path.length-m.path.length});return w.forEach(function(m){var D=m.path.pop(),F=this.value(b,this.stringify(m.path)),I=m.value=x.call(b,F[D]);F[D]=I},this),w},d.prototype.value=function(b,E,x){if(s.ok(b instanceof Object,"obj needs to be an object"),s.ok(E,"we need a path"),arguments.length>=3){var w=this.nodes(b,E).shift();if(!w)return this._vivify(b,E,x);var m=w.path.slice(-1).shift(),D=this.parent(b,this.stringify(w.path));D[m]=x}return this.query(b,this.stringify(E),1).shift()},d.prototype._vivify=function(b,E,x){var w=this;s.ok(b instanceof Object,"obj needs to be an object"),s.ok(E,"we need a path");var m=this.parser.parse(E).map(function(F){return F.expression.value}),D=function(F,I){var C=F.pop(),v=w.value(b,F);v||(D(F.concat(),typeof C=="string"?{}:[]),v=w.value(b,F)),v[C]=I};return D(m,x),this.query(b,E)[0]},d.prototype.query=function(b,E,x){s.ok(b instanceof Object,"obj needs to be an object"),s.ok(h(E),"we need a path");var w=this.nodes(b,E,x).map(function(m){return m.value});return w},d.prototype.paths=function(b,E,x){s.ok(b instanceof Object,"obj needs to be an object"),s.ok(E,"we need a path");var w=this.nodes(b,E,x).map(function(m){return m.path});return w},d.prototype.nodes=function(b,E,x){if(s.ok(b instanceof Object,"obj needs to be an object"),s.ok(E,"we need a path"),x===0)return[];var w=this.parser.parse(E),m=this.handlers,D=[{path:["$"],value:b}],F=[];return w.length&&w[0].expression.type=="root"&&w.shift(),w.length?(w.forEach(function(I,C){if(!(F.length>=x)){var v=m.resolve(I),S=[];D.forEach(function(O){if(!(F.length>=x)){var B=v(I,O,x);C==w.length-1?F=F.concat(B||[]):S=S.concat(B||[])}}),D=S}}),x?F.slice(0,x):F):D},d.prototype.stringify=function(b){s.ok(b,"we need a path");var E="$",x={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return b=this._normalize(b),b.forEach(function(w){if(w.expression.type!="root"){var m=[w.scope,w.operation].join("-"),D=x[m],F;if(w.expression.type=="string_literal"?F=JSON.stringify(w.expression.value):F=w.expression.value,!D)throw new Error("couldn't find template "+m);E+=D.replace(/{{value}}/,F)}}),E},d.prototype._normalize=function(b){if(s.ok(b,"we need a path"),typeof b=="string")return this.parser.parse(b);if(Array.isArray(b)&&typeof b[0]=="string"){var E=[{expression:{type:"root",value:"$"}}];return b.forEach(function(x,w){if(!(x=="$"&&w===0))if(typeof x=="string"&&x.match("^"+u.identifier+"$"))E.push({operation:"member",scope:"child",expression:{value:x,type:"identifier"}});else{var m=typeof x=="number"?"numeric_literal":"string_literal";E.push({operation:"subscript",scope:"child",expression:{value:x,type:m}})}}),E}else if(Array.isArray(b)&&typeof b[0]=="object")return b;throw new Error("couldn't understand path "+b)};function h(b){return Object.prototype.toString.call(b)=="[object String]"}d.Handlers=f,d.Parser=l;var p=new d;p.JSONPath=d,i.exports=p},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(n,i,a){var s=n("./grammar"),u=n("../generated/parser"),l=function(){var f=new u.Parser,d=f.parseError;return f.yy.parseError=function(){f.yy.ast&&f.yy.ast.initialize(),d.apply(f,arguments)},f};l.grammar=s,i.exports=l},{"../generated/parser":1,"./grammar":3}],7:[function(n,i,a){i.exports=function(u,l,f,d){if(typeof l=="string")throw new Error("start cannot be a string");if(typeof f=="string")throw new Error("end cannot be a string");if(typeof d=="string")throw new Error("step cannot be a string");var h=u.length;if(d===0)throw new Error("step cannot be zero");if(d=d?s(d):1,l=l<0?h+l:l,f=f<0?h+f:f,l=s(l===0?0:l||(d>0?0:h-1)),f=s(f===0?0:f||(d>0?h:-1)),l=d>0?Math.max(0,l):Math.min(h,l),f=d>0?Math.min(f,h):Math.max(-1,f),d>0&&f<=l)return[];if(d<0&&l<=f)return[];for(var p=[],b=l;b!=f&&!(d<0&&b<=f||d>0&&b>=f);b+=d)p.push(u[b]);return p};function s(u){return String(u).match(/^[0-9]+$/)?parseInt(u):Number.isFinite(u)?parseInt(u,10):0}},{}],8:[function(n,i,a){var s=n("util/"),u=Array.prototype.slice,l=Object.prototype.hasOwnProperty,f=i.exports=E;f.AssertionError=function(v){this.name="AssertionError",this.actual=v.actual,this.expected=v.expected,this.operator=v.operator,v.message?(this.message=v.message,this.generatedMessage=!1):(this.message=p(this),this.generatedMessage=!0);var S=v.stackStartFunction||b;if(Error.captureStackTrace)Error.captureStackTrace(this,S);else{var O=new Error;if(O.stack){var B=O.stack,G=S.name,q=B.indexOf(`
|
|
82
|
+
`+E+"^"},test_match:function(b,E){var x,C,m;if(this.options.backtrack_lexer&&(m={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(m.yylloc.range=this.yylloc.range.slice(0))),C=b[0].match(/(?:\r\n?|\n).*/g),C&&(this.yylineno+=C.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:C?C[C.length-1].length-C[C.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length},this.yytext+=b[0],this.match+=b[0],this.matches=b,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(b[0].length),this.matched+=b[0],x=this.performAction.call(this,this.yy,this,E,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x)return x;if(this._backtrack){for(var D in m)this[D]=m[D];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var b,E,x,C;this._more||(this.yytext="",this.match="");for(var m=this._currentRules(),D=0;D<m.length;D++)if(x=this._input.match(this.rules[m[D]]),x&&(!E||x[0].length>E[0].length)){if(E=x,C=D,this.options.backtrack_lexer){if(b=this.test_match(x,m[D]),b!==!1)return b;if(this._backtrack){E=!1;continue}else return!1}else if(!this.options.flex)break}return E?(b=this.test_match(E,m[C]),b!==!1?b:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
83
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var E=this.next();return E||this.lex()},begin:function(E){this.conditionStack.push(E)},popState:function(){var E=this.conditionStack.length-1;return E>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(E){return E=this.conditionStack.length-1-Math.abs(E||0),E>=0?this.conditionStack[E]:"INITIAL"},pushState:function(E){this.begin(E)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(E,x,C,m){switch(C){case 0:return 4;case 1:return 14;case 2:return 12;case 3:return 15;case 4:return 16;case 5:return 22;case 6:return 24;case 7:return 28;case 8:return 30;case 9:return 18;case 10:return x.yytext=x.yytext.substr(1,x.yyleng-2),32;case 11:return x.yytext=x.yytext.substr(1,x.yyleng-2),33;case 12:return 17;case 13:return 31}},rules:[/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return p}();c.lexer=d;function h(){this.yy={}}return h.prototype=c,c.Parser=h,new h}();typeof n<"u"&&typeof a<"u"&&(a.parser=u,a.Parser=u.Parser,a.parse=function(){return u.parse.apply(u,arguments)},a.main=function(f){f[1]||(console.log("Usage: "+f[0]+" FILE"),s.exit(1));var d=n("fs").readFileSync(n("path").normalize(f[1]),"utf8");return a.parser.parse(d)},typeof i<"u"&&n.main===i&&a.main(s.argv.slice(1)))}).call(this,n("_process"))},{_process:14,fs:12,path:13}],2:[function(n,i,a){i.exports={identifier:"[a-zA-Z_]+[a-zA-Z0-9_]*",integer:"-?(?:0|[1-9][0-9]*)",qq_string:'"(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^"\\\\])*"',q_string:"'(?:\\\\['bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4}|[^'\\\\])*'"}},{}],3:[function(n,i,a){var s=n("./dict"),u=n("fs"),c={lex:{macros:{esc:"\\\\",int:s.integer},rules:[["\\$","return 'DOLLAR'"],["\\.\\.","return 'DOT_DOT'"],["\\.","return 'DOT'"],["\\*","return 'STAR'"],[s.identifier,"return 'IDENTIFIER'"],["\\[","return '['"],["\\]","return ']'"],[",","return ','"],["({int})?\\:({int})?(\\:({int})?)?","return 'ARRAY_SLICE'"],["{int}","return 'INTEGER'"],[s.qq_string,"yytext = yytext.substr(1,yyleng-2); return 'QQ_STRING';"],[s.q_string,"yytext = yytext.substr(1,yyleng-2); return 'Q_STRING';"],["\\(.+?\\)(?=\\])","return 'SCRIPT_EXPRESSION'"],["\\?\\(.+?\\)(?=\\])","return 'FILTER_EXPRESSION'"]]},start:"JSON_PATH",bnf:{JSON_PATH:[["DOLLAR",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["DOLLAR PATH_COMPONENTS",'yy.ast.set({ expression: { type: "root", value: $1 } }); yy.ast.unshift(); return yy.ast.yield()'],["LEADING_CHILD_MEMBER_EXPRESSION","yy.ast.unshift(); return yy.ast.yield()"],["LEADING_CHILD_MEMBER_EXPRESSION PATH_COMPONENTS",'yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $1 }}); yy.ast.unshift(); return yy.ast.yield()']],PATH_COMPONENTS:[["PATH_COMPONENT",""],["PATH_COMPONENTS PATH_COMPONENT",""]],PATH_COMPONENT:[["MEMBER_COMPONENT",'yy.ast.set({ operation: "member" }); yy.ast.push()'],["SUBSCRIPT_COMPONENT",'yy.ast.set({ operation: "subscript" }); yy.ast.push() ']],MEMBER_COMPONENT:[["CHILD_MEMBER_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_MEMBER_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_MEMBER_COMPONENT:[["DOT MEMBER_EXPRESSION",""]],LEADING_CHILD_MEMBER_EXPRESSION:[["MEMBER_EXPRESSION",'yy.ast.set({ scope: "child", operation: "member" })']],DESCENDANT_MEMBER_COMPONENT:[["DOT_DOT MEMBER_EXPRESSION",""]],MEMBER_EXPRESSION:[["STAR",'yy.ast.set({ expression: { type: "wildcard", value: $1 } })'],["IDENTIFIER",'yy.ast.set({ expression: { type: "identifier", value: $1 } })'],["SCRIPT_EXPRESSION",'yy.ast.set({ expression: { type: "script_expression", value: $1 } })'],["INTEGER",'yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($1) } })'],["END",""]],SUBSCRIPT_COMPONENT:[["CHILD_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "child" })'],["DESCENDANT_SUBSCRIPT_COMPONENT",'yy.ast.set({ scope: "descendant" })']],CHILD_SUBSCRIPT_COMPONENT:[["[ SUBSCRIPT ]",""]],DESCENDANT_SUBSCRIPT_COMPONENT:[["DOT_DOT [ SUBSCRIPT ]",""]],SUBSCRIPT:[["SUBSCRIPT_EXPRESSION",""],["SUBSCRIPT_EXPRESSION_LIST",'$1.length > 1? yy.ast.set({ expression: { type: "union", value: $1 } }) : $$ = $1']],SUBSCRIPT_EXPRESSION_LIST:[["SUBSCRIPT_EXPRESSION_LISTABLE","$$ = [$1]"],["SUBSCRIPT_EXPRESSION_LIST , SUBSCRIPT_EXPRESSION_LISTABLE","$$ = $1.concat($3)"]],SUBSCRIPT_EXPRESSION_LISTABLE:[["INTEGER",'$$ = { expression: { type: "numeric_literal", value: parseInt($1) } }; yy.ast.set($$)'],["STRING_LITERAL",'$$ = { expression: { type: "string_literal", value: $1 } }; yy.ast.set($$)'],["ARRAY_SLICE",'$$ = { expression: { type: "slice", value: $1 } }; yy.ast.set($$)']],SUBSCRIPT_EXPRESSION:[["STAR",'$$ = { expression: { type: "wildcard", value: $1 } }; yy.ast.set($$)'],["SCRIPT_EXPRESSION",'$$ = { expression: { type: "script_expression", value: $1 } }; yy.ast.set($$)'],["FILTER_EXPRESSION",'$$ = { expression: { type: "filter_expression", value: $1 } }; yy.ast.set($$)']],STRING_LITERAL:[["QQ_STRING","$$ = $1"],["Q_STRING","$$ = $1"]]}};u.readFileSync&&(c.moduleInclude=u.readFileSync(n.resolve("../include/module.js")),c.actionInclude=u.readFileSync(n.resolve("../include/action.js"))),i.exports=c},{"./dict":2,fs:12}],4:[function(n,i,a){var s=n("./aesprim"),u=n("./slice"),c=n("static-eval"),f=n("underscore").uniq,d=function(){return this.initialize.apply(this,arguments)};d.prototype.initialize=function(){this.traverse=E(!0),this.descend=E()},d.prototype.keys=Object.keys,d.prototype.resolve=function(I){var w=[I.operation,I.scope,I.expression.type].join("-"),v=this._fns[w];if(!v)throw new Error("couldn't resolve key: "+w);return v.bind(this)},d.prototype.register=function(I,w){if(!w instanceof Function)throw new Error("handler must be a function");this._fns[I]=w},d.prototype._fns={"member-child-identifier":function(I,w){var v=I.expression.value,S=w.value;if(S instanceof Object&&v in S)return[{value:S[v],path:w.path.concat(v)}]},"member-descendant-identifier":C(function(I,w,v){return I==v}),"subscript-child-numeric_literal":x(function(I,w,v){return I===v}),"member-child-numeric_literal":x(function(I,w,v){return String(I)===String(v)}),"subscript-descendant-numeric_literal":C(function(I,w,v){return I===v}),"member-child-wildcard":x(function(){return!0}),"member-descendant-wildcard":C(function(){return!0}),"subscript-descendant-wildcard":C(function(){return!0}),"subscript-child-wildcard":x(function(){return!0}),"subscript-child-slice":function(I,w){if(p(w.value)){var v=I.expression.value.split(":").map(F),S=w.value.map(function(O,B){return{value:O,path:w.path.concat(B)}});return u.apply(null,[S].concat(v))}},"subscript-child-union":function(I,w){var v=[];return I.expression.value.forEach(function(S){var O={operation:"subscript",scope:"child",expression:S.expression},B=this.resolve(O),G=B(O,w);G&&(v=v.concat(G))},this),D(v)},"subscript-descendant-union":function(I,w,v){var S=n(".."),O=this,B=[],G=S.nodes(w,"$..*").slice(1);return G.forEach(function(q){B.length>=v||I.expression.value.forEach(function(V){var ue={operation:"subscript",scope:"child",expression:V.expression},ne=O.resolve(ue),te=ne(ue,q);B=B.concat(te)})}),D(B)},"subscript-child-filter_expression":function(I,w,v){var S=I.expression.value.slice(2,-1),O=s.parse(S).body[0].expression,B=function(G,q){return m(O,{"@":q})};return this.descend(w,null,B,v)},"subscript-descendant-filter_expression":function(I,w,v){var S=I.expression.value.slice(2,-1),O=s.parse(S).body[0].expression,B=function(G,q){return m(O,{"@":q})};return this.traverse(w,null,B,v)},"subscript-child-script_expression":function(I,w){var v=I.expression.value.slice(1,-1);return h(w,v,"$[{{value}}]")},"member-child-script_expression":function(I,w){var v=I.expression.value.slice(1,-1);return h(w,v,"$.{{value}}")},"member-descendant-script_expression":function(I,w){var v=I.expression.value.slice(1,-1);return h(w,v,"$..value")}},d.prototype._fns["subscript-child-string_literal"]=d.prototype._fns["member-child-identifier"],d.prototype._fns["member-descendant-numeric_literal"]=d.prototype._fns["subscript-descendant-string_literal"]=d.prototype._fns["member-descendant-identifier"];function h(I,w,v){var S=n("./index"),O=s.parse(w).body[0].expression,B=m(O,{"@":I.value}),G=v.replace(/\{\{\s*value\s*\}\}/g,B),q=S.nodes(I.value,G);return q.forEach(function(V){V.path=I.path.concat(V.path.slice(1))}),q}function p(I){return Array.isArray(I)}function b(I){return I&&!(I instanceof Array)&&I instanceof Object}function E(I){return function(w,v,S,O){var B=w.value,G=w.path,q=[],V=(function(ue,ne){p(ue)?(ue.forEach(function(te,le){q.length>=O||S(le,te,v)&&q.push({path:ne.concat(le),value:te})}),ue.forEach(function(te,le){q.length>=O||I&&V(te,ne.concat(le))})):b(ue)&&(this.keys(ue).forEach(function(te){q.length>=O||S(te,ue[te],v)&&q.push({path:ne.concat(te),value:ue[te]})}),this.keys(ue).forEach(function(te){q.length>=O||I&&V(ue[te],ne.concat(te))}))}).bind(this);return V(B,G),q}}function x(I){return function(w,v,S){return this.descend(v,w.expression.value,I,S)}}function C(I){return function(w,v,S){return this.traverse(v,w.expression.value,I,S)}}function m(){try{return c.apply(this,arguments)}catch{}}function D(I){return I=I.filter(function(w){return w}),f(I,function(w){return w.path.map(function(v){return String(v).replace("-","--")}).join("-")})}function F(I){var w=String(I);return w.match(/^-?[0-9]+$/)?parseInt(w):null}i.exports=d},{"..":"jsonpath","./aesprim":"./aesprim","./index":5,"./slice":7,"static-eval":15,underscore:12}],5:[function(n,i,a){var s=n("assert"),u=n("./dict"),c=n("./parser"),f=n("./handlers"),d=function(){this.initialize.apply(this,arguments)};d.prototype.initialize=function(){this.parser=new c,this.handlers=new f},d.prototype.parse=function(b){return s.ok(h(b),"we need a path"),this.parser.parse(b)},d.prototype.parent=function(b,E){s.ok(b instanceof Object,"obj needs to be an object"),s.ok(E,"we need a path");var x=this.nodes(b,E)[0];return x.path.pop(),this.value(b,x.path)},d.prototype.apply=function(b,E,x){s.ok(b instanceof Object,"obj needs to be an object"),s.ok(E,"we need a path"),s.equal(typeof x,"function","fn needs to be function");var C=this.nodes(b,E).sort(function(m,D){return D.path.length-m.path.length});return C.forEach(function(m){var D=m.path.pop(),F=this.value(b,this.stringify(m.path)),I=m.value=x.call(b,F[D]);F[D]=I},this),C},d.prototype.value=function(b,E,x){if(s.ok(b instanceof Object,"obj needs to be an object"),s.ok(E,"we need a path"),arguments.length>=3){var C=this.nodes(b,E).shift();if(!C)return this._vivify(b,E,x);var m=C.path.slice(-1).shift(),D=this.parent(b,this.stringify(C.path));D[m]=x}return this.query(b,this.stringify(E),1).shift()},d.prototype._vivify=function(b,E,x){var C=this;s.ok(b instanceof Object,"obj needs to be an object"),s.ok(E,"we need a path");var m=this.parser.parse(E).map(function(F){return F.expression.value}),D=function(F,I){var w=F.pop(),v=C.value(b,F);v||(D(F.concat(),typeof w=="string"?{}:[]),v=C.value(b,F)),v[w]=I};return D(m,x),this.query(b,E)[0]},d.prototype.query=function(b,E,x){s.ok(b instanceof Object,"obj needs to be an object"),s.ok(h(E),"we need a path");var C=this.nodes(b,E,x).map(function(m){return m.value});return C},d.prototype.paths=function(b,E,x){s.ok(b instanceof Object,"obj needs to be an object"),s.ok(E,"we need a path");var C=this.nodes(b,E,x).map(function(m){return m.path});return C},d.prototype.nodes=function(b,E,x){if(s.ok(b instanceof Object,"obj needs to be an object"),s.ok(E,"we need a path"),x===0)return[];var C=this.parser.parse(E),m=this.handlers,D=[{path:["$"],value:b}],F=[];return C.length&&C[0].expression.type=="root"&&C.shift(),C.length?(C.forEach(function(I,w){if(!(F.length>=x)){var v=m.resolve(I),S=[];D.forEach(function(O){if(!(F.length>=x)){var B=v(I,O,x);w==C.length-1?F=F.concat(B||[]):S=S.concat(B||[])}}),D=S}}),x?F.slice(0,x):F):D},d.prototype.stringify=function(b){s.ok(b,"we need a path");var E="$",x={"descendant-member":"..{{value}}","child-member":".{{value}}","descendant-subscript":"..[{{value}}]","child-subscript":"[{{value}}]"};return b=this._normalize(b),b.forEach(function(C){if(C.expression.type!="root"){var m=[C.scope,C.operation].join("-"),D=x[m],F;if(C.expression.type=="string_literal"?F=JSON.stringify(C.expression.value):F=C.expression.value,!D)throw new Error("couldn't find template "+m);E+=D.replace(/{{value}}/,F)}}),E},d.prototype._normalize=function(b){if(s.ok(b,"we need a path"),typeof b=="string")return this.parser.parse(b);if(Array.isArray(b)&&typeof b[0]=="string"){var E=[{expression:{type:"root",value:"$"}}];return b.forEach(function(x,C){if(!(x=="$"&&C===0))if(typeof x=="string"&&x.match("^"+u.identifier+"$"))E.push({operation:"member",scope:"child",expression:{value:x,type:"identifier"}});else{var m=typeof x=="number"?"numeric_literal":"string_literal";E.push({operation:"subscript",scope:"child",expression:{value:x,type:m}})}}),E}else if(Array.isArray(b)&&typeof b[0]=="object")return b;throw new Error("couldn't understand path "+b)};function h(b){return Object.prototype.toString.call(b)=="[object String]"}d.Handlers=f,d.Parser=c;var p=new d;p.JSONPath=d,i.exports=p},{"./dict":2,"./handlers":4,"./parser":6,assert:8}],6:[function(n,i,a){var s=n("./grammar"),u=n("../generated/parser"),c=function(){var f=new u.Parser,d=f.parseError;return f.yy.parseError=function(){f.yy.ast&&f.yy.ast.initialize(),d.apply(f,arguments)},f};c.grammar=s,i.exports=c},{"../generated/parser":1,"./grammar":3}],7:[function(n,i,a){i.exports=function(u,c,f,d){if(typeof c=="string")throw new Error("start cannot be a string");if(typeof f=="string")throw new Error("end cannot be a string");if(typeof d=="string")throw new Error("step cannot be a string");var h=u.length;if(d===0)throw new Error("step cannot be zero");if(d=d?s(d):1,c=c<0?h+c:c,f=f<0?h+f:f,c=s(c===0?0:c||(d>0?0:h-1)),f=s(f===0?0:f||(d>0?h:-1)),c=d>0?Math.max(0,c):Math.min(h,c),f=d>0?Math.min(f,h):Math.max(-1,f),d>0&&f<=c)return[];if(d<0&&c<=f)return[];for(var p=[],b=c;b!=f&&!(d<0&&b<=f||d>0&&b>=f);b+=d)p.push(u[b]);return p};function s(u){return String(u).match(/^[0-9]+$/)?parseInt(u):Number.isFinite(u)?parseInt(u,10):0}},{}],8:[function(n,i,a){var s=n("util/"),u=Array.prototype.slice,c=Object.prototype.hasOwnProperty,f=i.exports=E;f.AssertionError=function(v){this.name="AssertionError",this.actual=v.actual,this.expected=v.expected,this.operator=v.operator,v.message?(this.message=v.message,this.generatedMessage=!1):(this.message=p(this),this.generatedMessage=!0);var S=v.stackStartFunction||b;if(Error.captureStackTrace)Error.captureStackTrace(this,S);else{var O=new Error;if(O.stack){var B=O.stack,G=S.name,q=B.indexOf(`
|
|
84
84
|
`+G);if(q>=0){var V=B.indexOf(`
|
|
85
|
-
`,q+1);B=B.substring(V+1)}this.stack=B}}},s.inherits(f.AssertionError,Error);function d(
|
|
85
|
+
`,q+1);B=B.substring(V+1)}this.stack=B}}},s.inherits(f.AssertionError,Error);function d(w,v){return s.isUndefined(v)?""+v:s.isNumber(v)&&!isFinite(v)||s.isFunction(v)||s.isRegExp(v)?v.toString():v}function h(w,v){return s.isString(w)?w.length<v?w:w.slice(0,v):w}function p(w){return h(JSON.stringify(w.actual,d),128)+" "+w.operator+" "+h(JSON.stringify(w.expected,d),128)}function b(w,v,S,O,B){throw new f.AssertionError({message:S,actual:w,expected:v,operator:O,stackStartFunction:B})}f.fail=b;function E(w,v){w||b(w,!0,v,"==",f.ok)}f.ok=E,f.equal=function(v,S,O){v!=S&&b(v,S,O,"==",f.equal)},f.notEqual=function(v,S,O){v==S&&b(v,S,O,"!=",f.notEqual)},f.deepEqual=function(v,S,O){x(v,S)||b(v,S,O,"deepEqual",f.deepEqual)};function x(w,v){if(w===v)return!0;if(s.isBuffer(w)&&s.isBuffer(v)){if(w.length!=v.length)return!1;for(var S=0;S<w.length;S++)if(w[S]!==v[S])return!1;return!0}else return s.isDate(w)&&s.isDate(v)?w.getTime()===v.getTime():s.isRegExp(w)&&s.isRegExp(v)?w.source===v.source&&w.global===v.global&&w.multiline===v.multiline&&w.lastIndex===v.lastIndex&&w.ignoreCase===v.ignoreCase:!s.isObject(w)&&!s.isObject(v)?w==v:m(w,v)}function C(w){return Object.prototype.toString.call(w)=="[object Arguments]"}function m(w,v){if(s.isNullOrUndefined(w)||s.isNullOrUndefined(v)||w.prototype!==v.prototype)return!1;if(s.isPrimitive(w)||s.isPrimitive(v))return w===v;var S=C(w),O=C(v);if(S&&!O||!S&&O)return!1;if(S)return w=u.call(w),v=u.call(v),x(w,v);var B=I(w),G=I(v),q,V;if(B.length!=G.length)return!1;for(B.sort(),G.sort(),V=B.length-1;V>=0;V--)if(B[V]!=G[V])return!1;for(V=B.length-1;V>=0;V--)if(q=B[V],!x(w[q],v[q]))return!1;return!0}f.notDeepEqual=function(v,S,O){x(v,S)&&b(v,S,O,"notDeepEqual",f.notDeepEqual)},f.strictEqual=function(v,S,O){v!==S&&b(v,S,O,"===",f.strictEqual)},f.notStrictEqual=function(v,S,O){v===S&&b(v,S,O,"!==",f.notStrictEqual)};function D(w,v){return!w||!v?!1:Object.prototype.toString.call(v)=="[object RegExp]"?v.test(w):w instanceof v?!0:v.call({},w)===!0}function F(w,v,S,O){var B;s.isString(S)&&(O=S,S=null);try{v()}catch(G){B=G}if(O=(S&&S.name?" ("+S.name+").":".")+(O?" "+O:"."),w&&!B&&b(B,S,"Missing expected exception"+O),!w&&D(B,S)&&b(B,S,"Got unwanted exception"+O),w&&B&&S&&!D(B,S)||!w&&B)throw B}f.throws=function(w,v,S){F.apply(this,[!0].concat(u.call(arguments)))},f.doesNotThrow=function(w,v){F.apply(this,[!1].concat(u.call(arguments)))},f.ifError=function(w){if(w)throw w};var I=Object.keys||function(w){var v=[];for(var S in w)c.call(w,S)&&v.push(S);return v}},{"util/":11}],9:[function(n,i,a){typeof Object.create=="function"?i.exports=function(u,c){u.super_=c,u.prototype=Object.create(c.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}})}:i.exports=function(u,c){u.super_=c;var f=function(){};f.prototype=c.prototype,u.prototype=new f,u.prototype.constructor=u}},{}],10:[function(n,i,a){i.exports=function(u){return u&&typeof u=="object"&&typeof u.copy=="function"&&typeof u.fill=="function"&&typeof u.readUInt8=="function"}},{}],11:[function(n,i,a){(function(s,u){var c=/%[sdj%]/g;a.format=function(j){if(!G(j)){for(var z=[],J=0;J<arguments.length;J++)z.push(h(arguments[J]));return z.join(" ")}for(var J=1,de=arguments,ve=de.length,ae=String(j).replace(c,function(Y){if(Y==="%%")return"%";if(J>=ve)return Y;switch(Y){case"%s":return String(de[J++]);case"%d":return Number(de[J++]);case"%j":try{return JSON.stringify(de[J++])}catch{return"[Circular]"}default:return Y}}),Z=de[J];J<ve;Z=de[++J])S(Z)||!ne(Z)?ae+=" "+Z:ae+=" "+h(Z);return ae},a.deprecate=function(j,z){if(V(u.process))return function(){return a.deprecate(j,z).apply(this,arguments)};if(s.noDeprecation===!0)return j;var J=!1;function de(){if(!J){if(s.throwDeprecation)throw new Error(z);s.traceDeprecation?console.trace(z):console.error(z),J=!0}return j.apply(this,arguments)}return de};var f={},d;a.debuglog=function(j){if(V(d)&&(d=s.env.NODE_DEBUG||""),j=j.toUpperCase(),!f[j])if(new RegExp("\\b"+j+"\\b","i").test(d)){var z=s.pid;f[j]=function(){var J=a.format.apply(a,arguments);console.error("%s %d: %s",j,z,J)}}else f[j]=function(){};return f[j]};function h(j,z){var J={seen:[],stylize:b};return arguments.length>=3&&(J.depth=arguments[2]),arguments.length>=4&&(J.colors=arguments[3]),v(z)?J.showHidden=z:z&&a._extend(J,z),V(J.showHidden)&&(J.showHidden=!1),V(J.depth)&&(J.depth=2),V(J.colors)&&(J.colors=!1),V(J.customInspect)&&(J.customInspect=!0),J.colors&&(J.stylize=p),x(J,j,J.depth)}a.inspect=h,h.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function p(j,z){var J=h.styles[z];return J?"\x1B["+h.colors[J][0]+"m"+j+"\x1B["+h.colors[J][1]+"m":j}function b(j,z){return j}function E(j){var z={};return j.forEach(function(J,de){z[J]=!0}),z}function x(j,z,J){if(j.customInspect&&z&&xe(z.inspect)&&z.inspect!==a.inspect&&!(z.constructor&&z.constructor.prototype===z)){var de=z.inspect(J,j);return G(de)||(de=x(j,de,J)),de}var ve=C(j,z);if(ve)return ve;var ae=Object.keys(z),Z=E(ae);if(j.showHidden&&(ae=Object.getOwnPropertyNames(z)),le(z)&&(ae.indexOf("message")>=0||ae.indexOf("description")>=0))return m(z);if(ae.length===0){if(xe(z)){var Y=z.name?": "+z.name:"";return j.stylize("[Function"+Y+"]","special")}if(ue(z))return j.stylize(RegExp.prototype.toString.call(z),"regexp");if(te(z))return j.stylize(Date.prototype.toString.call(z),"date");if(le(z))return m(z)}var me="",ee=!1,Be=["{","}"];if(w(z)&&(ee=!0,Be=["[","]"]),xe(z)){var ke=z.name?": "+z.name:"";me=" [Function"+ke+"]"}if(ue(z)&&(me=" "+RegExp.prototype.toString.call(z)),te(z)&&(me=" "+Date.prototype.toUTCString.call(z)),le(z)&&(me=" "+m(z)),ae.length===0&&(!ee||z.length==0))return Be[0]+me+Be[1];if(J<0)return ue(z)?j.stylize(RegExp.prototype.toString.call(z),"regexp"):j.stylize("[Object]","special");j.seen.push(z);var Te;return ee?Te=D(j,z,J,Z,ae):Te=ae.map(function(et){return F(j,z,J,Z,et,ee)}),j.seen.pop(),I(Te,me,Be)}function C(j,z){if(V(z))return j.stylize("undefined","undefined");if(G(z)){var J="'"+JSON.stringify(z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return j.stylize(J,"string")}if(B(z))return j.stylize(""+z,"number");if(v(z))return j.stylize(""+z,"boolean");if(S(z))return j.stylize("null","null")}function m(j){return"["+Error.prototype.toString.call(j)+"]"}function D(j,z,J,de,ve){for(var ae=[],Z=0,Y=z.length;Z<Y;++Z)pe(z,String(Z))?ae.push(F(j,z,J,de,String(Z),!0)):ae.push("");return ve.forEach(function(me){me.match(/^\d+$/)||ae.push(F(j,z,J,de,me,!0))}),ae}function F(j,z,J,de,ve,ae){var Z,Y,me;if(me=Object.getOwnPropertyDescriptor(z,ve)||{value:z[ve]},me.get?me.set?Y=j.stylize("[Getter/Setter]","special"):Y=j.stylize("[Getter]","special"):me.set&&(Y=j.stylize("[Setter]","special")),pe(de,ve)||(Z="["+ve+"]"),Y||(j.seen.indexOf(me.value)<0?(S(J)?Y=x(j,me.value,null):Y=x(j,me.value,J-1),Y.indexOf(`
|
|
86
86
|
`)>-1&&(ae?Y=Y.split(`
|
|
87
87
|
`).map(function(ee){return" "+ee}).join(`
|
|
88
88
|
`).substr(2):Y=`
|
|
@@ -91,26 +91,26 @@ Expecting `+Ie.join(", ")+", got '"+(this.terminals_[V]||V)+"'":M="Parse error o
|
|
|
91
91
|
`))):Y=j.stylize("[Circular]","special")),V(Z)){if(ae&&ve.match(/^\d+$/))return Y;Z=JSON.stringify(""+ve),Z.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Z=Z.substr(1,Z.length-2),Z=j.stylize(Z,"name")):(Z=Z.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Z=j.stylize(Z,"string"))}return Z+": "+Y}function I(j,z,J){var de=j.reduce(function(ve,ae){return ae.indexOf(`
|
|
92
92
|
`)>=0,ve+ae.replace(/\u001b\[\d\d?m/g,"").length+1},0);return de>60?J[0]+(z===""?"":z+`
|
|
93
93
|
`)+" "+j.join(`,
|
|
94
|
-
`)+" "+J[1]:J[0]+z+" "+j.join(", ")+" "+J[1]}function C(j){return Array.isArray(j)}a.isArray=C;function v(j){return typeof j=="boolean"}a.isBoolean=v;function S(j){return j===null}a.isNull=S;function O(j){return j==null}a.isNullOrUndefined=O;function B(j){return typeof j=="number"}a.isNumber=B;function G(j){return typeof j=="string"}a.isString=G;function q(j){return typeof j=="symbol"}a.isSymbol=q;function V(j){return j===void 0}a.isUndefined=V;function ue(j){return ne(j)&&fe(j)==="[object RegExp]"}a.isRegExp=ue;function ne(j){return typeof j=="object"&&j!==null}a.isObject=ne;function te(j){return ne(j)&&fe(j)==="[object Date]"}a.isDate=te;function le(j){return ne(j)&&(fe(j)==="[object Error]"||j instanceof Error)}a.isError=le;function xe(j){return typeof j=="function"}a.isFunction=xe;function he(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||typeof j>"u"}a.isPrimitive=he,a.isBuffer=n("./support/isBuffer");function fe(j){return Object.prototype.toString.call(j)}function Ie(j){return j<10?"0"+j.toString(10):j.toString(10)}var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function K(){var j=new Date,z=[Ie(j.getHours()),Ie(j.getMinutes()),Ie(j.getSeconds())].join(":");return[j.getDate(),M[j.getMonth()],z].join(" ")}a.log=function(){console.log("%s - %s",K(),a.format.apply(a,arguments))},a.inherits=n("inherits"),a._extend=function(j,z){if(!z||!ne(z))return j;for(var J=Object.keys(z),de=J.length;de--;)j[J[de]]=z[J[de]];return j};function pe(j,z){return Object.prototype.hasOwnProperty.call(j,z)}}).call(this,n("_process"),typeof xi<"u"?xi:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(n,i,a){},{}],13:[function(n,i,a){(function(s){function u(h,p){for(var b=0,E=h.length-1;E>=0;E--){var x=h[E];x==="."?h.splice(E,1):x===".."?(h.splice(E,1),b++):b&&(h.splice(E,1),b--)}if(p)for(;b--;b)h.unshift("..");return h}a.resolve=function(){for(var h="",p=!1,b=arguments.length-1;b>=-1&&!p;b--){var E=b>=0?arguments[b]:s.cwd();if(typeof E!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!E)continue;h=E+"/"+h,p=E.charAt(0)==="/"}return h=u(f(h.split("/"),function(x){return!!x}),!p).join("/"),(p?"/":"")+h||"."},a.normalize=function(h){var p=a.isAbsolute(h),b=d(h,-1)==="/";return h=u(f(h.split("/"),function(E){return!!E}),!p).join("/"),!h&&!p&&(h="."),h&&b&&(h+="/"),(p?"/":"")+h},a.isAbsolute=function(h){return h.charAt(0)==="/"},a.join=function(){var h=Array.prototype.slice.call(arguments,0);return a.normalize(f(h,function(p,b){if(typeof p!="string")throw new TypeError("Arguments to path.join must be strings");return p}).join("/"))},a.relative=function(h,p){h=a.resolve(h).substr(1),p=a.resolve(p).substr(1);function b(I){for(var C=0;C<I.length&&I[C]==="";C++);for(var v=I.length-1;v>=0&&I[v]==="";v--);return C>v?[]:I.slice(C,v-C+1)}for(var E=b(h.split("/")),x=b(p.split("/")),w=Math.min(E.length,x.length),m=w,D=0;D<w;D++)if(E[D]!==x[D]){m=D;break}for(var F=[],D=m;D<E.length;D++)F.push("..");return F=F.concat(x.slice(m)),F.join("/")},a.sep="/",a.delimiter=":",a.dirname=function(h){if(typeof h!="string"&&(h=h+""),h.length===0)return".";for(var p=h.charCodeAt(0),b=p===47,E=-1,x=!0,w=h.length-1;w>=1;--w)if(p=h.charCodeAt(w),p===47){if(!x){E=w;break}}else x=!1;return E===-1?b?"/":".":b&&E===1?"/":h.slice(0,E)};function l(h){typeof h!="string"&&(h=h+"");var p=0,b=-1,E=!0,x;for(x=h.length-1;x>=0;--x)if(h.charCodeAt(x)===47){if(!E){p=x+1;break}}else b===-1&&(E=!1,b=x+1);return b===-1?"":h.slice(p,b)}a.basename=function(h,p){var b=l(h);return p&&b.substr(-1*p.length)===p&&(b=b.substr(0,b.length-p.length)),b},a.extname=function(h){typeof h!="string"&&(h=h+"");for(var p=-1,b=0,E=-1,x=!0,w=0,m=h.length-1;m>=0;--m){var D=h.charCodeAt(m);if(D===47){if(!x){b=m+1;break}continue}E===-1&&(x=!1,E=m+1),D===46?p===-1?p=m:w!==1&&(w=1):p!==-1&&(w=-1)}return p===-1||E===-1||w===0||w===1&&p===E-1&&p===b+1?"":h.slice(p,E)};function f(h,p){if(h.filter)return h.filter(p);for(var b=[],E=0;E<h.length;E++)p(h[E],E,h)&&b.push(h[E]);return b}var d="ab".substr(-1)==="b"?function(h,p,b){return h.substr(p,b)}:function(h,p,b){return p<0&&(p=h.length+p),h.substr(p,b)}}).call(this,n("_process"))},{_process:14}],14:[function(n,i,a){var s=i.exports={},u,l;function f(){throw new Error("setTimeout has not been defined")}function d(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?u=setTimeout:u=f}catch{u=f}try{typeof clearTimeout=="function"?l=clearTimeout:l=d}catch{l=d}})();function h(C){if(u===setTimeout)return setTimeout(C,0);if((u===f||!u)&&setTimeout)return u=setTimeout,setTimeout(C,0);try{return u(C,0)}catch{try{return u.call(null,C,0)}catch{return u.call(this,C,0)}}}function p(C){if(l===clearTimeout)return clearTimeout(C);if((l===d||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(C);try{return l(C)}catch{try{return l.call(null,C)}catch{return l.call(this,C)}}}var b=[],E=!1,x,w=-1;function m(){!E||!x||(E=!1,x.length?b=x.concat(b):w=-1,b.length&&D())}function D(){if(!E){var C=h(m);E=!0;for(var v=b.length;v;){for(x=b,b=[];++w<v;)x&&x[w].run();w=-1,v=b.length}x=null,E=!1,p(C)}}s.nextTick=function(C){var v=new Array(arguments.length-1);if(arguments.length>1)for(var S=1;S<arguments.length;S++)v[S-1]=arguments[S];b.push(new F(C,v)),b.length===1&&!E&&h(D)};function F(C,v){this.fun=C,this.array=v}F.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={};function I(){}s.on=I,s.addListener=I,s.once=I,s.off=I,s.removeListener=I,s.removeAllListeners=I,s.emit=I,s.prependListener=I,s.prependOnceListener=I,s.listeners=function(C){return[]},s.binding=function(C){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(C){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},{}],15:[function(n,i,a){var s=n("escodegen").generate;i.exports=function(u,l){l||(l={});var f={},d=function h(p,b){if(p.type==="Literal")return p.value;if(p.type==="UnaryExpression"){var E=h(p.argument);return p.operator==="+"?+E:p.operator==="-"?-E:p.operator==="~"?~E:p.operator==="!"?!E:f}else if(p.type==="ArrayExpression"){for(var x=[],w=0,m=p.elements.length;w<m;w++){var D=h(p.elements[w]);if(D===f)return f;x.push(D)}return x}else if(p.type==="ObjectExpression"){for(var F={},w=0;w<p.properties.length;w++){var I=p.properties[w],C=I.value===null?I.value:h(I.value);if(C===f)return f;F[I.key.value||I.key.name]=C}return F}else if(p.type==="BinaryExpression"||p.type==="LogicalExpression"){var m=h(p.left);if(m===f)return f;var v=h(p.right);if(v===f)return f;var S=p.operator;return S==="=="?m==v:S==="==="?m===v:S==="!="?m!=v:S==="!=="?m!==v:S==="+"?m+v:S==="-"?m-v:S==="*"?m*v:S==="/"?m/v:S==="%"?m%v:S==="<"?m<v:S==="<="?m<=v:S===">"?m>v:S===">="?m>=v:S==="|"?m|v:S==="&"?m&v:S==="^"?m^v:S==="&&"?m&&v:S==="||"?m||v:f}else{if(p.type==="Identifier")return{}.hasOwnProperty.call(l,p.name)?l[p.name]:f;if(p.type==="ThisExpression")return{}.hasOwnProperty.call(l,"this")?l.this:f;if(p.type==="CallExpression"){var O=h(p.callee);if(O===f||typeof O!="function")return f;var B=p.callee.object?h(p.callee.object):f;B===f&&(B=null);for(var G=[],w=0,m=p.arguments.length;w<m;w++){var D=h(p.arguments[w]);if(D===f)return f;G.push(D)}return O.apply(B,G)}else if(p.type==="MemberExpression"){var F=h(p.object);if(F===f||typeof F=="function")return f;if(p.property.type==="Identifier")return F[p.property.name];var I=h(p.property);return I===f?f:F[I]}else if(p.type==="ConditionalExpression"){var E=h(p.test);return E===f?f:h(E?p.consequent:p.alternate)}else if(p.type==="ExpressionStatement"){var E=h(p.expression);return E===f?f:E}else{if(p.type==="ReturnStatement")return h(p.argument);if(p.type==="FunctionExpression"){var q=p.body.body,V={};Object.keys(l).forEach(function(M){V[M]=l[M]});for(var w=0;w<p.params.length;w++){var ue=p.params[w];if(ue.type=="Identifier")l[ue.name]=null;else return f}for(var w in q)if(h(q[w])===f)return f;l=V;var ne=Object.keys(l),te=ne.map(function(M){return l[M]});return Function(ne.join(", "),"return "+s(p)).apply(null,te)}else if(p.type==="TemplateLiteral"){for(var le="",w=0;w<p.expressions.length;w++)le+=h(p.quasis[w]),le+=h(p.expressions[w]);return le+=h(p.quasis[w]),le}else if(p.type==="TaggedTemplateExpression"){var xe=h(p.tag),he=p.quasi,fe=he.quasis.map(h),Ie=he.expressions.map(h);return xe.apply(null,[fe].concat(Ie))}else return p.type==="TemplateElement"?p.value.cooked:f}}}(u);return d===f?void 0:d}},{escodegen:12}],jsonpath:[function(n,i,a){i.exports=n("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")})}(kl)),kl.exports}var JE=XE();const Ip=mo(JE),ZE={hide:P1,popover:GE,redirect:VE,tooltip:YE,visuallyHide:KE},QE=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),Ri=(e,t,n)=>{const{globalDataContext:i,templateContext:a}=t;if(Array.isArray(e.andConditions))return e.andConditions.reduce((f,d)=>f&&Ri(d,t,n),!0);if(Array.isArray(e.orConditions)){const f=e.orConditions;for(const d of f)if(Ri(d,t,n))return!0;return!1}if(e.when!==void 0&&!Ll(e.when))return!1;const s=f=>ut({globalDataContext:i,templateContext:a,valueToEvaluate:f});let u;if(e.when===void 0&&e.hasOwnProperty("whenDataCountOf")){let f;switch(e.inContext){case"root":f=i.getRootContext().templateData;break;case"template":f=a.templateData;break;default:f=i.templateData;break}u=Ip.query(f,e.whenDataCountOf).length}else u=(()=>{if(n){for(const[f,d]of n)if(e.hasOwnProperty(f))return d({condition:e,templateContexts:t,evaluateAgainstTemplates:h=>s(h)})}return s(e.when)})();if(e.hasOwnProperty("isEmpty")){const f=d=>e.isEmpty==="not"?!d:d;if(u===null)return f(!0);switch(typeof u){case"undefined":return f(!0);case"string":return f(u.length===0);case"object":return f(Object.keys(u).length===0);default:return f(!u)}}const l=e.compareAsDates;if(e.hasOwnProperty("isNot"))return Xt(l,u)!==Xt(l,s(e.isNot));if(e.hasOwnProperty("is"))return Xt(l,u)===Xt(l,s(e.is));if(e.hasOwnProperty("containsNot")||e.hasOwnProperty("contains")){const f=e.hasOwnProperty("containsNot"),d=f?e.containsNot:e.contains,h=Xt(l,s(d));if(typeof u=="string"){if(typeof h!="string")return f;const p=u.toLowerCase().indexOf(h.toLowerCase())!==-1;return f?!p:p}else for(const p of Object.values(u))if(Fr.isEqual(Xt(l,p),h))return!f;return f}if(e.hasOwnProperty("containedByNot")||e.hasOwnProperty("containedBy")){const f=e.hasOwnProperty("containedByNot"),d=f?e.containedByNot:e.containedBy,h=Xt(l,s(d));if(typeof u=="string"){if(typeof h!="string")return f;const p=h.toLowerCase().indexOf(u.toLowerCase())!==-1;return f?!p:p}else for(const p of Object.values(h))if(Fr.isEqual(Xt(l,p),u))return!f;return f}return e.hasOwnProperty(">")?Xt(l,u)>Xt(l,s(e[">"])):e.hasOwnProperty(">=")?Xt(l,u)>=Xt(l,s(e[">="])):e.hasOwnProperty("<")?Xt(l,u)<Xt(l,s(e["<"])):e.hasOwnProperty("<=")?Xt(l,u)<=Xt(l,s(e["<="])):!0},ew=(e,t)=>{const n=[];let i=!1;const a={};if(!Array.isArray(e))return n;for(const[s,u]of e.entries()){const l=(u==null?void 0:u.what)??void 0;if(!l)continue;const f=ZE[l];let d;if(!f){if(d=Ci[l]??void 0,!d||u.on===void 0||!Ri(u,t))continue;if(u.on==="message"){n.push({ActionComponent:k1,actionProps:u,actionIndex:s});continue}if(u.on==="hashchange"){n.push({ActionComponent:F1,actionProps:u,actionIndex:s});continue}i=!0;const h="on"+QE(u.on);Array.isArray(a[h])||(a[h]=[]),a[h].push(u);continue}Ri(u,t)&&n.push({ActionComponent:f,actionProps:u,actionIndex:s})}return i&&n.push({ActionComponent:I1,actionProps:a,actionIndex:"_reactOnEvent"}),n},Xt=(e,t)=>e?new Date(t):t,Mt=e=>{const t=A.useContext(dt),n=A.useContext(ot);return e?ew((e==null?void 0:e.actions)??[],{globalDataContext:t,templateContext:n}).reverse().reduce((a,{ActionComponent:s,actionProps:u,actionIndex:l})=>R.jsx(s,{componentProps:e,actionProps:u,actionIndex:l,children:a}),(e==null?void 0:e.children)??null):null},Nl=e=>{if(typeof e!="object"||Object.keys(e).length===0)return{};const t={class:"className"},n={};for(const[i,a]of Object.entries(e)){const s=t.hasOwnProperty(i)?t[i]:i;n[s]=a}return n},Rl=({props:e,currentData:t,datafield:n,path:i})=>{const a=A.useContext(dt),s=A.useContext(ot),u=`${e.tag}`,l=e.extra??{},f=Nl(e.attributes),d=Nl(t.attributes);for(const b of Object.keys(d)){if(b.charAt(0)==="+"){const E=b.substring(1);f[E]=(f[E]??"").length>0?" "+d[b]:d[b];continue}f[b]=d[b]}const h=ii({attrs:f,globalDataContext:a,templateContext:s}),p=b=>b&&["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].indexOf(b)!==-1;return R.jsx(Mt,{...e,children:p(e.tag)?R.jsxs(R.Fragment,{children:[R.jsx(u,{...h}),Object.keys(l).length?R.jsx(ht,{props:l}):""]}):R.jsxs(R.Fragment,{children:[R.jsx(u,{...h,children:e.content&&R.jsx(ht,{currentData:t.content??void 0,datafield:"content",path:i+".content",props:e.content})}),Object.keys(l).length?R.jsx(ht,{props:l}):""]})})},Pn=({dataLocation:e,currentPath:t,globalDataContext:n,templateContext:i})=>{if(typeof e!="string"||!(e.startsWith("~.")||e.startsWith("~~.")||e.startsWith("~>")))return e==="~"?i.templatePath:e==="~~"?n.templatePath:e;let a;if(e.startsWith("~~."))a=n.templatePath;else if(e.startsWith("~."))a=i.templatePath;else if(e.startsWith("~>")){const u=e.substring(2,e.indexOf("."));if(!i.templatePath.includes(u))throw new Error(u+" not found in the current template path.");const l=i.templatePath.indexOf(u);a=i.templatePath.substring(0,l+u.length)}else a=t;const s=e.split(".");return s.shift(),a+"."+s.join(".")},ii=({attrs:e,globalDataContext:t,templateContext:n,options:i={}})=>{const a={};if(!e)return a;const s=i.normalizeBeforeEvaluation?Nl(e):e;for(const u of Object.keys(s)){const l=ut({globalDataContext:t,templateContext:n,valueToEvaluate:s[u]});l&&(a[u]=l)}return a},ut=({valueToEvaluate:e,globalDataContext:t,templateContext:n})=>{if(!Ll(e))return e;if(e==="~")return n.templateData;if(e==="~~")return t.templateData;let i;if(e.startsWith("~~.")?i=t==null?void 0:t.templateData:e.startsWith("~>")?(e=Pn({dataLocation:e,currentPath:n.templatePath,globalDataContext:t,templateContext:n}),i=t==null?void 0:t.templateData):i=n==null?void 0:n.templateData,!i)return;const a=e.split(".");for(a.shift();a.length;)if(typeof i!="object"||(i=i[a.shift()],i===void 0))return;return i},is=({valueToEvaluate:e,globalDataContext:t,templateContext:n})=>{let i;if(typeof e=="object"){i=Array.isArray(e)?[]:{};for(const[a,s]of Object.entries(e))i[a]=ut({globalDataContext:t,templateContext:n,valueToEvaluate:s})}else i=ut({globalDataContext:t,templateContext:n,valueToEvaluate:e});return i},Ll=e=>typeof e!="string"||!(e.startsWith("~.")||e.startsWith("~~.")||e.startsWith("~>")||e==="~"||e==="~~")?!1:e,tw=({valueToEvaluate:e})=>{const t=A.useContext(dt),n=A.useContext(ot);return ut({globalDataContext:t,templateContext:n,valueToEvaluate:e})},zn=(e,t={})=>{const n=A.useContext(dt),i=A.useContext(ot);return ii({attrs:e,globalDataContext:n,templateContext:i,options:t.normalizeBeforeEvaluation===void 0?{...t,normalizeBeforeEvaluation:!0}:t})},$o=({currentPath:e,datafield:t,dataLocation:n,defaultValue:i,globalDataContext:a,templateContext:s})=>{const u={formData:void 0,formDataPath:void 0};return n&&typeof n=="string"?(u.formData=ut({globalDataContext:a,templateContext:s,valueToEvaluate:n})??i,u.formDataPath=Pn({dataLocation:n,currentPath:e,globalDataContext:a,templateContext:s})):((s.templateData[t]??void 0)===void 0&&(s.templateData=typeof s.templateData=="object"?s.templateData:{},s.templateData[t]=i),u.formData=s.templateData[t],u.formDataPath=Pn({dataLocation:"~."+t,currentPath:s.templatePath,globalDataContext:a,templateContext:s})),u},nw=({props:e,currentData:t,datafield:n,path:i})=>{const a=A.useContext(dt),s=A.useContext(ot),{updateData:u}=a,l=ii({attrs:e.attributes,globalDataContext:a,templateContext:s,options:{normalizeBeforeEvaluation:!0}});let f;const d=e.dynamicOptions??void 0;d?f=ut({valueToEvaluate:d,globalDataContext:a,templateContext:s})??[]:f=e.options??[];const h=e.controlType??void 0,b=(()=>{var D;return e.controlType==="radio"?!0:e.multiple!==void 0&&e.multiple!==!1?e.multiple:((D=e.options)==null?void 0:D.length)===1})(),E=e.defaultFieldValue??(b?void 0:[]),{formData:x,formDataPath:w}=$o({currentPath:i,datafield:n,dataLocation:e.dataLocation,defaultValue:E,globalDataContext:a,templateContext:s}),m=D=>{if(h==="radio"){let I;switch(D.currentTarget.value){case"":I=void 0;break;case"true":I=!0;break;case"false":I=!1;break;case"null":I=null;break;default:I=D.currentTarget.value;break}u(I,w);return}if(b){u(D.currentTarget.checked,w);return}let F=JSON.parse(JSON.stringify(x));typeof F!="object"&&(F=[F]),D.currentTarget.checked?F=iw(F,D.currentTarget.value):F=ow(F,D.currentTarget.value),u(F,w)};return R.jsx(Mt,{...e,children:R.jsx(qt.Group,{...l,controlId:Math.random().toString(),children:f.map((D,F)=>{var v,S;const I=typeof D.value=="string"?ut({globalDataContext:a,templateContext:s,valueToEvaluate:D.value}):D.value,C=ii({attrs:D.attributes??[],templateContext:s,globalDataContext:a,options:{normalizeBeforeEvaluation:!0}});return A.createElement(qt.Check,{...C,checked:rw(x,I),key:F,label:R.jsx(ht,{currentData:((S=(v=t==null?void 0:t.options)==null?void 0:v[F])==null?void 0:S.label)??void 0,datafield:"label",path:i+".options."+F+".label",props:D.label}),id:`${Math.random()}`,name:i,onChange:m,type:h,value:I})})})})};function rw(e,t){return Array.isArray(e)?e.includes(t):typeof e=="object"?Object.values(e).includes(t):e===t}function iw(e,t){if(Array.isArray(e))return e.includes(t)||e.push(t),e;if(typeof e=="object"){const n=Object.values(e);return n.includes(t)||n.push(t),n}throw new Error("CheckboxField: the value to set is not properly initialized as an object or array.")}function ow(e,t){function n(i,a){i.includes(a)&&i.splice(i.indexOf(a),1)}if(Array.isArray(e))return n(e,t),e;if(typeof e=="object"){const i=Object.values(e);return n(i,t),i}throw new Error("CheckboxField: the value to set is not properly initialized as an object or array.")}const aw=e=>{const t=A.useContext(dt),n=A.useContext(ot),i=e.props,a=zn(i.attributes),{formData:s,formDataPath:u}=$o({currentPath:e.path,datafield:e.datafield,dataLocation:i.dataLocation,defaultValue:i.defaultFieldValue,globalDataContext:t,templateContext:n}),l=f=>{t.updateData(f.target.value,u)};return R.jsx(Mt,{...i,children:R.jsxs(qt.Group,{...a,controlId:Math.random().toString(),children:[i.label&&R.jsx(qt.Label,{children:i.label}),R.jsx(qt.Control,{onChange:l,type:"datetime-local",value:s??""})]})})},sw=({props:e,currentData:t,datafield:n,path:i})=>{const a=A.useContext(dt);let[s]=A.useState(t),u=e.attributes??{};const{updateData:l}=a,f=d=>{l(d.currentTarget.value,i)};return R.jsxs(qt.Group,{className:"mb-3",controlId:Math.random().toString(),children:[R.jsx(qt.Label,{children:e.label}),R.jsx(qt.Control,{onBlur:f,type:"number",...u,defaultValue:s!==""?s:e.default_value??"",placeholder:e.label})]})},uw=({props:e,data:t,path:n,datafield:i})=>{const a=A.useContext(dt),s=A.useContext(ot),{updateData:u}=a,l=e.dynamicOptions??void 0;let f;l?f=ut({valueToEvaluate:l,globalDataContext:a,templateContext:s})??[]:f=e.options??[];let d=ii({attrs:e.attributes??{},globalDataContext:a,templateContext:s,options:{normalizeBeforeEvaluation:!0}});const h=ii({attrs:e.inputAttributes??{},globalDataContext:a,templateContext:s,options:{normalizeBeforeEvaluation:!0}});let p,b;const E=e.defaultFieldValue??void 0,x=e.dataLocation??void 0;x?(p=ut({globalDataContext:a,templateContext:s,valueToEvaluate:x})??E,b=Pn({dataLocation:x,currentPath:n,globalDataContext:a,templateContext:s})):((s.templateData[i]??void 0)===void 0&&(s.templateData=typeof s.templateData=="object"?s.templateData:{},s.templateData[i]=E),p=s.templateData[i],b=Pn({dataLocation:"~."+i,currentPath:s.templatePath}));const w=m=>{let D;switch(m.currentTarget.value){case"":e.allowEmptyStringAsValue?D="":D=void 0;break;case"true":D=!0;break;case"false":D=!1;break;case"null":D=null;break;default:D=m.currentTarget.value;break}u(D,b)};return R.jsx(Mt,{...e,children:R.jsxs(qt.Group,{...d,controlId:Math.random().toString(),children:[e.label&&R.jsx(qt.Label,{children:e.label}),R.jsx(qt.Select,{"aria-label":e.label,onChange:w,value:p,...h,children:f.map((m,D)=>R.jsx("option",{value:m.value,children:m.label},"opt"+D))})]})})},lw=({props:e,datafield:t,path:n})=>{const i=A.useContext(dt),a=A.useContext(ot),s=zn(e.attributes),u=zn(e.inputAttributes??[]),{formData:l,formDataPath:f}=$o({currentPath:n,datafield:t,dataLocation:e.dataLocation,defaultValue:e.defaultFieldValue,globalDataContext:i,templateContext:a}),d=h=>{i.updateData(h.currentTarget.value,f)};return R.jsx(Mt,{...e,children:R.jsxs(qt.Group,{...s,controlId:Math.random().toString(),children:[e.label&&R.jsx(qt.Label,{children:e.label}),R.jsx(qt.Control,{as:"textarea",onChange:d,placeholder:e.placeholder,rows:e.rows??3,value:l??"",...u})]})})},cw=({props:e,datafield:t,path:n})=>{const i=A.useContext(dt),a=A.useContext(ot),s=zn(e.attributes),u=zn(e.inputAttributes??[]),{formData:l,formDataPath:f}=$o({currentPath:n,datafield:t,dataLocation:e.dataLocation,defaultValue:e.defaultFieldValue,globalDataContext:i,templateContext:a}),d=E=>{i.updateData(E.currentTarget.value,f)},h=ut({valueToEvaluate:e.label,globalDataContext:i,templateContext:a}),p=ut({valueToEvaluate:e.placeholder,globalDataContext:i,templateContext:a}),b=ut({valueToEvaluate:e.inputType,globalDataContext:i,templateContext:a});return R.jsx(Mt,{...e,children:R.jsxs(qt.Group,{...s,controlId:Math.random().toString(),children:[h&&R.jsx(qt.Label,{children:h}),R.jsx(qt.Control,{onChange:d,placeholder:p,type:b??"text",value:l??"",...u})]})})},fw=({props:e,path:t,currentData:n,datafield:i})=>{const a=zn(e.attributes);return R.jsx(Mt,{...e,children:A.createElement(qa.Item,{...a,eventKey:i,key:i},e!=null&&e.header?R.jsx(qa.Header,{children:R.jsx(ht,{props:e.header,path:t+".header",currentData:n==null?void 0:n.header,datafield:"header"})}):null,e!=null&&e.body?R.jsx(qa.Body,{children:R.jsx(ht,{props:e.body,path:t+".body",currentData:n==null?void 0:n.body,datafield:"body"})}):null)})};function Fp(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Fp(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function dw(){for(var e,t,n=0,i="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Fp(e))&&(i&&(i+=" "),i+=t);return i}function Pp(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Pp(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function Bl(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=Pp(e))&&(i&&(i+=" "),i+=t);return i}function hw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A.useMemo(()=>i=>{t.forEach(a=>a(i))},t)}const os=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Li(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Ml(e){return"nodeType"in e}function rn(e){var t,n;return e?Li(e)?e:Ml(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function jl(e){const{Document:t}=rn(e);return e instanceof t}function Uo(e){return Li(e)?!1:e instanceof rn(e).HTMLElement}function kp(e){return e instanceof rn(e).SVGElement}function Bi(e){return e?Li(e)?e.document:Ml(e)?jl(e)?e:Uo(e)||kp(e)?e.ownerDocument:document:document:document}const Gn=os?A.useLayoutEffect:A.useEffect;function as(e){const t=A.useRef(e);return Gn(()=>{t.current=e}),A.useCallback(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t.current==null?void 0:t.current(...i)},[])}function pw(){const e=A.useRef(null),t=A.useCallback((i,a)=>{e.current=setInterval(i,a)},[]),n=A.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Ho(e,t){t===void 0&&(t=[e]);const n=A.useRef(e);return Gn(()=>{n.current!==e&&(n.current=e)},t),n}function Wo(e,t){const n=A.useRef();return A.useMemo(()=>{const i=e(n.current);return n.current=i,i},[...t])}function ss(e){const t=as(e),n=A.useRef(null),i=A.useCallback(a=>{a!==n.current&&(t==null||t(a,n.current)),n.current=a},[]);return[n,i]}function us(e){const t=A.useRef();return A.useEffect(()=>{t.current=e},[e]),t.current}let $l={};function qo(e,t){return A.useMemo(()=>{if(t)return t;const n=$l[e]==null?0:$l[e]+1;return $l[e]=n,e+"-"+n},[e,t])}function Np(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return i.reduce((s,u)=>{const l=Object.entries(u);for(const[f,d]of l){const h=s[f];h!=null&&(s[f]=h+e*d)}return s},{...t})}}const Mi=Np(1),ls=Np(-1);function mw(e){return"clientX"in e&&"clientY"in e}function cs(e){if(!e)return!1;const{KeyboardEvent:t}=rn(e.target);return t&&e instanceof t}function gw(e){if(!e)return!1;const{TouchEvent:t}=rn(e.target);return t&&e instanceof t}function fs(e){if(gw(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return mw(e)?{x:e.clientX,y:e.clientY}:null}const nr=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[nr.Translate.toString(e),nr.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:i}=e;return t+" "+n+"ms "+i}}}),Rp="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function vw(e){return e.matches(Rp)?e:e.querySelector(Rp)}const yw={display:"none"};function bw(e){let{id:t,value:n}=e;return A.createElement("div",{id:t,style:yw},n)}function xw(e){let{id:t,announcement:n,ariaLiveType:i="assertive"}=e;const a={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return A.createElement("div",{id:t,style:a,role:"status","aria-live":i,"aria-atomic":!0},n)}function Ew(){const[e,t]=A.useState("");return{announce:A.useCallback(i=>{i!=null&&t(i)},[]),announcement:e}}const Lp=A.createContext(null);function ww(e){const t=A.useContext(Lp);A.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Cw(){const[e]=A.useState(()=>new Set),t=A.useCallback(i=>(e.add(i),()=>e.delete(i)),[e]);return[A.useCallback(i=>{let{type:a,event:s}=i;e.forEach(u=>{var l;return(l=u[a])==null?void 0:l.call(u,s)})},[e]),t]}const Aw={draggable:`
|
|
94
|
+
`)+" "+J[1]:J[0]+z+" "+j.join(", ")+" "+J[1]}function w(j){return Array.isArray(j)}a.isArray=w;function v(j){return typeof j=="boolean"}a.isBoolean=v;function S(j){return j===null}a.isNull=S;function O(j){return j==null}a.isNullOrUndefined=O;function B(j){return typeof j=="number"}a.isNumber=B;function G(j){return typeof j=="string"}a.isString=G;function q(j){return typeof j=="symbol"}a.isSymbol=q;function V(j){return j===void 0}a.isUndefined=V;function ue(j){return ne(j)&&fe(j)==="[object RegExp]"}a.isRegExp=ue;function ne(j){return typeof j=="object"&&j!==null}a.isObject=ne;function te(j){return ne(j)&&fe(j)==="[object Date]"}a.isDate=te;function le(j){return ne(j)&&(fe(j)==="[object Error]"||j instanceof Error)}a.isError=le;function xe(j){return typeof j=="function"}a.isFunction=xe;function he(j){return j===null||typeof j=="boolean"||typeof j=="number"||typeof j=="string"||typeof j=="symbol"||typeof j>"u"}a.isPrimitive=he,a.isBuffer=n("./support/isBuffer");function fe(j){return Object.prototype.toString.call(j)}function Ie(j){return j<10?"0"+j.toString(10):j.toString(10)}var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function K(){var j=new Date,z=[Ie(j.getHours()),Ie(j.getMinutes()),Ie(j.getSeconds())].join(":");return[j.getDate(),M[j.getMonth()],z].join(" ")}a.log=function(){console.log("%s - %s",K(),a.format.apply(a,arguments))},a.inherits=n("inherits"),a._extend=function(j,z){if(!z||!ne(z))return j;for(var J=Object.keys(z),de=J.length;de--;)j[J[de]]=z[J[de]];return j};function pe(j,z){return Object.prototype.hasOwnProperty.call(j,z)}}).call(this,n("_process"),typeof xi<"u"?xi:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":10,_process:14,inherits:9}],12:[function(n,i,a){},{}],13:[function(n,i,a){(function(s){function u(h,p){for(var b=0,E=h.length-1;E>=0;E--){var x=h[E];x==="."?h.splice(E,1):x===".."?(h.splice(E,1),b++):b&&(h.splice(E,1),b--)}if(p)for(;b--;b)h.unshift("..");return h}a.resolve=function(){for(var h="",p=!1,b=arguments.length-1;b>=-1&&!p;b--){var E=b>=0?arguments[b]:s.cwd();if(typeof E!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!E)continue;h=E+"/"+h,p=E.charAt(0)==="/"}return h=u(f(h.split("/"),function(x){return!!x}),!p).join("/"),(p?"/":"")+h||"."},a.normalize=function(h){var p=a.isAbsolute(h),b=d(h,-1)==="/";return h=u(f(h.split("/"),function(E){return!!E}),!p).join("/"),!h&&!p&&(h="."),h&&b&&(h+="/"),(p?"/":"")+h},a.isAbsolute=function(h){return h.charAt(0)==="/"},a.join=function(){var h=Array.prototype.slice.call(arguments,0);return a.normalize(f(h,function(p,b){if(typeof p!="string")throw new TypeError("Arguments to path.join must be strings");return p}).join("/"))},a.relative=function(h,p){h=a.resolve(h).substr(1),p=a.resolve(p).substr(1);function b(I){for(var w=0;w<I.length&&I[w]==="";w++);for(var v=I.length-1;v>=0&&I[v]==="";v--);return w>v?[]:I.slice(w,v-w+1)}for(var E=b(h.split("/")),x=b(p.split("/")),C=Math.min(E.length,x.length),m=C,D=0;D<C;D++)if(E[D]!==x[D]){m=D;break}for(var F=[],D=m;D<E.length;D++)F.push("..");return F=F.concat(x.slice(m)),F.join("/")},a.sep="/",a.delimiter=":",a.dirname=function(h){if(typeof h!="string"&&(h=h+""),h.length===0)return".";for(var p=h.charCodeAt(0),b=p===47,E=-1,x=!0,C=h.length-1;C>=1;--C)if(p=h.charCodeAt(C),p===47){if(!x){E=C;break}}else x=!1;return E===-1?b?"/":".":b&&E===1?"/":h.slice(0,E)};function c(h){typeof h!="string"&&(h=h+"");var p=0,b=-1,E=!0,x;for(x=h.length-1;x>=0;--x)if(h.charCodeAt(x)===47){if(!E){p=x+1;break}}else b===-1&&(E=!1,b=x+1);return b===-1?"":h.slice(p,b)}a.basename=function(h,p){var b=c(h);return p&&b.substr(-1*p.length)===p&&(b=b.substr(0,b.length-p.length)),b},a.extname=function(h){typeof h!="string"&&(h=h+"");for(var p=-1,b=0,E=-1,x=!0,C=0,m=h.length-1;m>=0;--m){var D=h.charCodeAt(m);if(D===47){if(!x){b=m+1;break}continue}E===-1&&(x=!1,E=m+1),D===46?p===-1?p=m:C!==1&&(C=1):p!==-1&&(C=-1)}return p===-1||E===-1||C===0||C===1&&p===E-1&&p===b+1?"":h.slice(p,E)};function f(h,p){if(h.filter)return h.filter(p);for(var b=[],E=0;E<h.length;E++)p(h[E],E,h)&&b.push(h[E]);return b}var d="ab".substr(-1)==="b"?function(h,p,b){return h.substr(p,b)}:function(h,p,b){return p<0&&(p=h.length+p),h.substr(p,b)}}).call(this,n("_process"))},{_process:14}],14:[function(n,i,a){var s=i.exports={},u,c;function f(){throw new Error("setTimeout has not been defined")}function d(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?u=setTimeout:u=f}catch{u=f}try{typeof clearTimeout=="function"?c=clearTimeout:c=d}catch{c=d}})();function h(w){if(u===setTimeout)return setTimeout(w,0);if((u===f||!u)&&setTimeout)return u=setTimeout,setTimeout(w,0);try{return u(w,0)}catch{try{return u.call(null,w,0)}catch{return u.call(this,w,0)}}}function p(w){if(c===clearTimeout)return clearTimeout(w);if((c===d||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(w);try{return c(w)}catch{try{return c.call(null,w)}catch{return c.call(this,w)}}}var b=[],E=!1,x,C=-1;function m(){!E||!x||(E=!1,x.length?b=x.concat(b):C=-1,b.length&&D())}function D(){if(!E){var w=h(m);E=!0;for(var v=b.length;v;){for(x=b,b=[];++C<v;)x&&x[C].run();C=-1,v=b.length}x=null,E=!1,p(w)}}s.nextTick=function(w){var v=new Array(arguments.length-1);if(arguments.length>1)for(var S=1;S<arguments.length;S++)v[S-1]=arguments[S];b.push(new F(w,v)),b.length===1&&!E&&h(D)};function F(w,v){this.fun=w,this.array=v}F.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={};function I(){}s.on=I,s.addListener=I,s.once=I,s.off=I,s.removeListener=I,s.removeAllListeners=I,s.emit=I,s.prependListener=I,s.prependOnceListener=I,s.listeners=function(w){return[]},s.binding=function(w){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(w){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},{}],15:[function(n,i,a){var s=n("escodegen").generate;i.exports=function(u,c){c||(c={});var f={},d=function h(p,b){if(p.type==="Literal")return p.value;if(p.type==="UnaryExpression"){var E=h(p.argument);return p.operator==="+"?+E:p.operator==="-"?-E:p.operator==="~"?~E:p.operator==="!"?!E:f}else if(p.type==="ArrayExpression"){for(var x=[],C=0,m=p.elements.length;C<m;C++){var D=h(p.elements[C]);if(D===f)return f;x.push(D)}return x}else if(p.type==="ObjectExpression"){for(var F={},C=0;C<p.properties.length;C++){var I=p.properties[C],w=I.value===null?I.value:h(I.value);if(w===f)return f;F[I.key.value||I.key.name]=w}return F}else if(p.type==="BinaryExpression"||p.type==="LogicalExpression"){var m=h(p.left);if(m===f)return f;var v=h(p.right);if(v===f)return f;var S=p.operator;return S==="=="?m==v:S==="==="?m===v:S==="!="?m!=v:S==="!=="?m!==v:S==="+"?m+v:S==="-"?m-v:S==="*"?m*v:S==="/"?m/v:S==="%"?m%v:S==="<"?m<v:S==="<="?m<=v:S===">"?m>v:S===">="?m>=v:S==="|"?m|v:S==="&"?m&v:S==="^"?m^v:S==="&&"?m&&v:S==="||"?m||v:f}else{if(p.type==="Identifier")return{}.hasOwnProperty.call(c,p.name)?c[p.name]:f;if(p.type==="ThisExpression")return{}.hasOwnProperty.call(c,"this")?c.this:f;if(p.type==="CallExpression"){var O=h(p.callee);if(O===f||typeof O!="function")return f;var B=p.callee.object?h(p.callee.object):f;B===f&&(B=null);for(var G=[],C=0,m=p.arguments.length;C<m;C++){var D=h(p.arguments[C]);if(D===f)return f;G.push(D)}return O.apply(B,G)}else if(p.type==="MemberExpression"){var F=h(p.object);if(F===f||typeof F=="function")return f;if(p.property.type==="Identifier")return F[p.property.name];var I=h(p.property);return I===f?f:F[I]}else if(p.type==="ConditionalExpression"){var E=h(p.test);return E===f?f:h(E?p.consequent:p.alternate)}else if(p.type==="ExpressionStatement"){var E=h(p.expression);return E===f?f:E}else{if(p.type==="ReturnStatement")return h(p.argument);if(p.type==="FunctionExpression"){var q=p.body.body,V={};Object.keys(c).forEach(function(M){V[M]=c[M]});for(var C=0;C<p.params.length;C++){var ue=p.params[C];if(ue.type=="Identifier")c[ue.name]=null;else return f}for(var C in q)if(h(q[C])===f)return f;c=V;var ne=Object.keys(c),te=ne.map(function(M){return c[M]});return Function(ne.join(", "),"return "+s(p)).apply(null,te)}else if(p.type==="TemplateLiteral"){for(var le="",C=0;C<p.expressions.length;C++)le+=h(p.quasis[C]),le+=h(p.expressions[C]);return le+=h(p.quasis[C]),le}else if(p.type==="TaggedTemplateExpression"){var xe=h(p.tag),he=p.quasi,fe=he.quasis.map(h),Ie=he.expressions.map(h);return xe.apply(null,[fe].concat(Ie))}else return p.type==="TemplateElement"?p.value.cooked:f}}}(u);return d===f?void 0:d}},{escodegen:12}],jsonpath:[function(n,i,a){i.exports=n("./lib/index")},{"./lib/index":5}]},{},["jsonpath"])("jsonpath")})}(kl)),kl.exports}var JE=XE();const Ip=mo(JE),ZE={hide:P1,popover:GE,redirect:VE,tooltip:YE,visuallyHide:KE},QE=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),Ri=(e,t,n)=>{const{globalDataContext:i,templateContext:a}=t;if(Array.isArray(e.andConditions))return e.andConditions.reduce((f,d)=>f&&Ri(d,t,n),!0);if(Array.isArray(e.orConditions)){const f=e.orConditions;for(const d of f)if(Ri(d,t,n))return!0;return!1}if(e.when!==void 0&&!Ll(e.when))return!1;const s=f=>ut({globalDataContext:i,templateContext:a,valueToEvaluate:f});let u;if(e.when===void 0&&e.hasOwnProperty("whenDataCountOf")){let f;switch(e.inContext){case"root":f=i.getRootContext().templateData;break;case"template":f=a.templateData;break;default:f=i.templateData;break}u=Ip.query(f,e.whenDataCountOf).length}else u=(()=>{if(n){for(const[f,d]of n)if(e.hasOwnProperty(f))return d({condition:e,templateContexts:t,evaluateAgainstTemplates:h=>s(h)})}return s(e.when)})();if(e.hasOwnProperty("isEmpty")){const f=d=>e.isEmpty==="not"?!d:d;if(u===null)return f(!0);switch(typeof u){case"undefined":return f(!0);case"string":return f(u.length===0);case"object":return f(Object.keys(u).length===0);default:return f(!u)}}const c=e.compareAsDates;if(e.hasOwnProperty("isNot"))return Xt(c,u)!==Xt(c,s(e.isNot));if(e.hasOwnProperty("is"))return Xt(c,u)===Xt(c,s(e.is));if(e.hasOwnProperty("containsNot")||e.hasOwnProperty("contains")){const f=e.hasOwnProperty("containsNot"),d=f?e.containsNot:e.contains,h=Xt(c,s(d));if(typeof u=="string"){if(typeof h!="string")return f;const p=u.toLowerCase().indexOf(h.toLowerCase())!==-1;return f?!p:p}else for(const p of Object.values(u))if(Fr.isEqual(Xt(c,p),h))return!f;return f}if(e.hasOwnProperty("containedByNot")||e.hasOwnProperty("containedBy")){const f=e.hasOwnProperty("containedByNot"),d=f?e.containedByNot:e.containedBy,h=Xt(c,s(d));if(typeof u=="string"){if(typeof h!="string")return f;const p=h.toLowerCase().indexOf(u.toLowerCase())!==-1;return f?!p:p}else for(const p of Object.values(h))if(Fr.isEqual(Xt(c,p),u))return!f;return f}return e.hasOwnProperty(">")?Xt(c,u)>Xt(c,s(e[">"])):e.hasOwnProperty(">=")?Xt(c,u)>=Xt(c,s(e[">="])):e.hasOwnProperty("<")?Xt(c,u)<Xt(c,s(e["<"])):e.hasOwnProperty("<=")?Xt(c,u)<=Xt(c,s(e["<="])):!0},eC=(e,t)=>{const n=[];let i=!1;const a={};if(!Array.isArray(e))return n;for(const[s,u]of e.entries()){const c=(u==null?void 0:u.what)??void 0;if(!c)continue;const f=ZE[c];let d;if(!f){if(d=wi[c]??void 0,!d||u.on===void 0||!Ri(u,t))continue;if(u.on==="message"){n.push({ActionComponent:k1,actionProps:u,actionIndex:s});continue}if(u.on==="hashchange"){n.push({ActionComponent:F1,actionProps:u,actionIndex:s});continue}i=!0;const h="on"+QE(u.on);Array.isArray(a[h])||(a[h]=[]),a[h].push(u);continue}Ri(u,t)&&n.push({ActionComponent:f,actionProps:u,actionIndex:s})}return i&&n.push({ActionComponent:I1,actionProps:a,actionIndex:"_reactOnEvent"}),n},Xt=(e,t)=>e?new Date(t):t,Mt=e=>{const t=A.useContext(dt),n=A.useContext(ot);return e?eC((e==null?void 0:e.actions)??[],{globalDataContext:t,templateContext:n}).reverse().reduce((a,{ActionComponent:s,actionProps:u,actionIndex:c})=>R.jsx(s,{componentProps:e,actionProps:u,actionIndex:c,children:a}),(e==null?void 0:e.children)??null):null},Nl=e=>{if(typeof e!="object"||Object.keys(e).length===0)return{};const t={class:"className"},n={};for(const[i,a]of Object.entries(e)){const s=t.hasOwnProperty(i)?t[i]:i;n[s]=a}return n},Rl=({props:e,currentData:t,datafield:n,path:i})=>{const a=A.useContext(dt),s=A.useContext(ot),u=`${e.tag}`,c=e.extra??{},f=Nl(e.attributes),d=Nl(t.attributes);for(const b of Object.keys(d)){if(b.charAt(0)==="+"){const E=b.substring(1);f[E]=(f[E]??"").length>0?" "+d[b]:d[b];continue}f[b]=d[b]}const h=ii({attrs:f,globalDataContext:a,templateContext:s}),p=b=>b&&["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"].indexOf(b)!==-1;return R.jsx(Mt,{...e,children:p(e.tag)?R.jsxs(R.Fragment,{children:[R.jsx(u,{...h}),Object.keys(c).length?R.jsx(ht,{props:c}):""]}):R.jsxs(R.Fragment,{children:[R.jsx(u,{...h,children:e.content&&R.jsx(ht,{currentData:t.content??void 0,datafield:"content",path:i+".content",props:e.content})}),Object.keys(c).length?R.jsx(ht,{props:c}):""]})})},Pn=({dataLocation:e,currentPath:t,globalDataContext:n,templateContext:i})=>{if(typeof e!="string"||!(e.startsWith("~.")||e.startsWith("~~.")||e.startsWith("~>")))return e==="~"?i.templatePath:e==="~~"?n.templatePath:e;let a;if(e.startsWith("~~."))a=n.templatePath;else if(e.startsWith("~."))a=i.templatePath;else if(e.startsWith("~>")){const u=e.substring(2,e.indexOf("."));if(!i.templatePath.includes(u))throw new Error(u+" not found in the current template path.");const c=i.templatePath.indexOf(u);a=i.templatePath.substring(0,c+u.length)}else a=t;const s=e.split(".");return s.shift(),a+"."+s.join(".")},ii=({attrs:e,globalDataContext:t,templateContext:n,options:i={}})=>{const a={};if(!e)return a;const s=i.normalizeBeforeEvaluation?Nl(e):e;for(const u of Object.keys(s)){const c=ut({globalDataContext:t,templateContext:n,valueToEvaluate:s[u]});c&&(a[u]=c)}return a},ut=({valueToEvaluate:e,globalDataContext:t,templateContext:n})=>{if(!Ll(e))return e;if(e==="~")return n.templateData;if(e==="~~")return t.templateData;let i;if(e.startsWith("~~.")?i=t==null?void 0:t.templateData:e.startsWith("~>")?(e=Pn({dataLocation:e,currentPath:n.templatePath,globalDataContext:t,templateContext:n}),i=t==null?void 0:t.templateData):i=n==null?void 0:n.templateData,!i)return;const a=e.split(".");for(a.shift();a.length;)if(typeof i!="object"||(i=i[a.shift()],i===void 0))return;return i},is=({valueToEvaluate:e,globalDataContext:t,templateContext:n})=>{let i;if(typeof e=="object"){i=Array.isArray(e)?[]:{};for(const[a,s]of Object.entries(e))i[a]=ut({globalDataContext:t,templateContext:n,valueToEvaluate:s})}else i=ut({globalDataContext:t,templateContext:n,valueToEvaluate:e});return i},Ll=e=>typeof e!="string"||!(e.startsWith("~.")||e.startsWith("~~.")||e.startsWith("~>")||e==="~"||e==="~~")?!1:e,tC=({valueToEvaluate:e})=>{const t=A.useContext(dt),n=A.useContext(ot);return ut({globalDataContext:t,templateContext:n,valueToEvaluate:e})},zn=(e,t={})=>{const n=A.useContext(dt),i=A.useContext(ot);return ii({attrs:e,globalDataContext:n,templateContext:i,options:t.normalizeBeforeEvaluation===void 0?{...t,normalizeBeforeEvaluation:!0}:t})},$o=({currentPath:e,datafield:t,dataLocation:n,defaultValue:i,globalDataContext:a,templateContext:s})=>{const u={formData:void 0,formDataPath:void 0};return n&&typeof n=="string"?(u.formData=ut({globalDataContext:a,templateContext:s,valueToEvaluate:n})??i,u.formDataPath=Pn({dataLocation:n,currentPath:e,globalDataContext:a,templateContext:s})):((s.templateData[t]??void 0)===void 0&&(s.templateData=typeof s.templateData=="object"?s.templateData:{},s.templateData[t]=i),u.formData=s.templateData[t],u.formDataPath=Pn({dataLocation:"~."+t,currentPath:s.templatePath,globalDataContext:a,templateContext:s})),u},nC=({props:e,currentData:t,datafield:n,path:i})=>{const a=A.useContext(dt),s=A.useContext(ot),{updateData:u}=a,c=ii({attrs:e.attributes,globalDataContext:a,templateContext:s,options:{normalizeBeforeEvaluation:!0}});let f;const d=e.dynamicOptions??void 0;d?f=ut({valueToEvaluate:d,globalDataContext:a,templateContext:s})??[]:f=e.options??[];const h=e.controlType??void 0,b=(()=>{var D;return e.controlType==="radio"?!0:e.multiple!==void 0&&e.multiple!==!1?e.multiple:((D=e.options)==null?void 0:D.length)===1})(),E=e.defaultFieldValue??(b?void 0:[]),{formData:x,formDataPath:C}=$o({currentPath:i,datafield:n,dataLocation:e.dataLocation,defaultValue:E,globalDataContext:a,templateContext:s}),m=D=>{if(h==="radio"){let I;switch(D.currentTarget.value){case"":I=void 0;break;case"true":I=!0;break;case"false":I=!1;break;case"null":I=null;break;default:I=D.currentTarget.value;break}u(I,C);return}if(b){u(D.currentTarget.checked,C);return}let F=JSON.parse(JSON.stringify(x));typeof F!="object"&&(F=[F]),D.currentTarget.checked?F=iC(F,D.currentTarget.value):F=oC(F,D.currentTarget.value),u(F,C)};return R.jsx(Mt,{...e,children:R.jsx(qt.Group,{...c,controlId:Math.random().toString(),children:f.map((D,F)=>{var v,S;const I=typeof D.value=="string"?ut({globalDataContext:a,templateContext:s,valueToEvaluate:D.value}):D.value,w=ii({attrs:D.attributes??[],templateContext:s,globalDataContext:a,options:{normalizeBeforeEvaluation:!0}});return A.createElement(qt.Check,{...w,checked:rC(x,I),key:F,label:R.jsx(ht,{currentData:((S=(v=t==null?void 0:t.options)==null?void 0:v[F])==null?void 0:S.label)??void 0,datafield:"label",path:i+".options."+F+".label",props:D.label}),id:`${Math.random()}`,name:i,onChange:m,type:h,value:I})})})})};function rC(e,t){return Array.isArray(e)?e.includes(t):typeof e=="object"?Object.values(e).includes(t):e===t}function iC(e,t){if(Array.isArray(e))return e.includes(t)||e.push(t),e;if(typeof e=="object"){const n=Object.values(e);return n.includes(t)||n.push(t),n}throw new Error("CheckboxField: the value to set is not properly initialized as an object or array.")}function oC(e,t){function n(i,a){i.includes(a)&&i.splice(i.indexOf(a),1)}if(Array.isArray(e))return n(e,t),e;if(typeof e=="object"){const i=Object.values(e);return n(i,t),i}throw new Error("CheckboxField: the value to set is not properly initialized as an object or array.")}const aC=e=>{const t=A.useContext(dt),n=A.useContext(ot),i=e.props,a=zn(i.attributes),{formData:s,formDataPath:u}=$o({currentPath:e.path,datafield:e.datafield,dataLocation:i.dataLocation,defaultValue:i.defaultFieldValue,globalDataContext:t,templateContext:n}),c=f=>{t.updateData(f.target.value,u)};return R.jsx(Mt,{...i,children:R.jsxs(qt.Group,{...a,controlId:Math.random().toString(),children:[i.label&&R.jsx(qt.Label,{children:i.label}),R.jsx(qt.Control,{onChange:c,type:"datetime-local",value:s??""})]})})},sC=({props:e,currentData:t,datafield:n,path:i})=>{const a=A.useContext(dt);let[s]=A.useState(t),u=e.attributes??{};const{updateData:c}=a,f=d=>{c(d.currentTarget.value,i)};return R.jsxs(qt.Group,{className:"mb-3",controlId:Math.random().toString(),children:[R.jsx(qt.Label,{children:e.label}),R.jsx(qt.Control,{onBlur:f,type:"number",...u,defaultValue:s!==""?s:e.default_value??"",placeholder:e.label})]})},uC=({props:e,data:t,path:n,datafield:i})=>{const a=A.useContext(dt),s=A.useContext(ot),{updateData:u}=a,c=e.dynamicOptions??void 0;let f;c?f=ut({valueToEvaluate:c,globalDataContext:a,templateContext:s})??[]:f=e.options??[];let d=ii({attrs:e.attributes??{},globalDataContext:a,templateContext:s,options:{normalizeBeforeEvaluation:!0}});const h=ii({attrs:e.inputAttributes??{},globalDataContext:a,templateContext:s,options:{normalizeBeforeEvaluation:!0}});let p,b;const E=e.defaultFieldValue??void 0,x=e.dataLocation??void 0;x?(p=ut({globalDataContext:a,templateContext:s,valueToEvaluate:x})??E,b=Pn({dataLocation:x,currentPath:n,globalDataContext:a,templateContext:s})):((s.templateData[i]??void 0)===void 0&&(s.templateData=typeof s.templateData=="object"?s.templateData:{},s.templateData[i]=E),p=s.templateData[i],b=Pn({dataLocation:"~."+i,currentPath:s.templatePath}));const C=m=>{let D;switch(m.currentTarget.value){case"":e.allowEmptyStringAsValue?D="":D=void 0;break;case"true":D=!0;break;case"false":D=!1;break;case"null":D=null;break;default:D=m.currentTarget.value;break}u(D,b)};return R.jsx(Mt,{...e,children:R.jsxs(qt.Group,{...d,controlId:Math.random().toString(),children:[e.label&&R.jsx(qt.Label,{children:e.label}),R.jsx(qt.Select,{"aria-label":e.label,onChange:C,value:p,...h,children:f.map((m,D)=>R.jsx("option",{value:m.value,children:m.label},"opt"+D))})]})})},lC=({props:e,datafield:t,path:n})=>{const i=A.useContext(dt),a=A.useContext(ot),s=zn(e.attributes),u=zn(e.inputAttributes??[]),{formData:c,formDataPath:f}=$o({currentPath:n,datafield:t,dataLocation:e.dataLocation,defaultValue:e.defaultFieldValue,globalDataContext:i,templateContext:a}),d=h=>{i.updateData(h.currentTarget.value,f)};return R.jsx(Mt,{...e,children:R.jsxs(qt.Group,{...s,controlId:Math.random().toString(),children:[e.label&&R.jsx(qt.Label,{children:e.label}),R.jsx(qt.Control,{as:"textarea",onChange:d,placeholder:e.placeholder,rows:e.rows??3,value:c??"",...u})]})})},cC=({props:e,datafield:t,path:n})=>{const i=A.useContext(dt),a=A.useContext(ot),s=zn(e.attributes),u=zn(e.inputAttributes??[]),{formData:c,formDataPath:f}=$o({currentPath:n,datafield:t,dataLocation:e.dataLocation,defaultValue:e.defaultFieldValue,globalDataContext:i,templateContext:a}),d=E=>{i.updateData(E.currentTarget.value,f)},h=ut({valueToEvaluate:e.label,globalDataContext:i,templateContext:a}),p=ut({valueToEvaluate:e.placeholder,globalDataContext:i,templateContext:a}),b=ut({valueToEvaluate:e.inputType,globalDataContext:i,templateContext:a});return R.jsx(Mt,{...e,children:R.jsxs(qt.Group,{...s,controlId:Math.random().toString(),children:[h&&R.jsx(qt.Label,{children:h}),R.jsx(qt.Control,{onChange:d,placeholder:p,type:b??"text",value:c??"",...u})]})})},fC=({props:e,path:t,currentData:n,datafield:i})=>{const a=zn(e.attributes);return R.jsx(Mt,{...e,children:A.createElement(qa.Item,{...a,eventKey:i,key:i},e!=null&&e.header?R.jsx(qa.Header,{children:R.jsx(ht,{props:e.header,path:t+".header",currentData:n==null?void 0:n.header,datafield:"header"})}):null,e!=null&&e.body?R.jsx(qa.Body,{children:R.jsx(ht,{props:e.body,path:t+".body",currentData:n==null?void 0:n.body,datafield:"body"})}):null)})};function Fp(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Fp(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function dC(){for(var e,t,n=0,i="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Fp(e))&&(i&&(i+=" "),i+=t);return i}function Pp(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Pp(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}function Bl(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=Pp(e))&&(i&&(i+=" "),i+=t);return i}function hC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A.useMemo(()=>i=>{t.forEach(a=>a(i))},t)}const os=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Li(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Ml(e){return"nodeType"in e}function rn(e){var t,n;return e?Li(e)?e:Ml(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function jl(e){const{Document:t}=rn(e);return e instanceof t}function Uo(e){return Li(e)?!1:e instanceof rn(e).HTMLElement}function kp(e){return e instanceof rn(e).SVGElement}function Bi(e){return e?Li(e)?e.document:Ml(e)?jl(e)?e:Uo(e)||kp(e)?e.ownerDocument:document:document:document}const Gn=os?A.useLayoutEffect:A.useEffect;function as(e){const t=A.useRef(e);return Gn(()=>{t.current=e}),A.useCallback(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t.current==null?void 0:t.current(...i)},[])}function pC(){const e=A.useRef(null),t=A.useCallback((i,a)=>{e.current=setInterval(i,a)},[]),n=A.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Ho(e,t){t===void 0&&(t=[e]);const n=A.useRef(e);return Gn(()=>{n.current!==e&&(n.current=e)},t),n}function Wo(e,t){const n=A.useRef();return A.useMemo(()=>{const i=e(n.current);return n.current=i,i},[...t])}function ss(e){const t=as(e),n=A.useRef(null),i=A.useCallback(a=>{a!==n.current&&(t==null||t(a,n.current)),n.current=a},[]);return[n,i]}function us(e){const t=A.useRef();return A.useEffect(()=>{t.current=e},[e]),t.current}let $l={};function qo(e,t){return A.useMemo(()=>{if(t)return t;const n=$l[e]==null?0:$l[e]+1;return $l[e]=n,e+"-"+n},[e,t])}function Np(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return i.reduce((s,u)=>{const c=Object.entries(u);for(const[f,d]of c){const h=s[f];h!=null&&(s[f]=h+e*d)}return s},{...t})}}const Mi=Np(1),ls=Np(-1);function mC(e){return"clientX"in e&&"clientY"in e}function cs(e){if(!e)return!1;const{KeyboardEvent:t}=rn(e.target);return t&&e instanceof t}function gC(e){if(!e)return!1;const{TouchEvent:t}=rn(e.target);return t&&e instanceof t}function fs(e){if(gC(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return mC(e)?{x:e.clientX,y:e.clientY}:null}const nr=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[nr.Translate.toString(e),nr.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:i}=e;return t+" "+n+"ms "+i}}}),Rp="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function vC(e){return e.matches(Rp)?e:e.querySelector(Rp)}const yC={display:"none"};function bC(e){let{id:t,value:n}=e;return A.createElement("div",{id:t,style:yC},n)}function xC(e){let{id:t,announcement:n,ariaLiveType:i="assertive"}=e;const a={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return A.createElement("div",{id:t,style:a,role:"status","aria-live":i,"aria-atomic":!0},n)}function EC(){const[e,t]=A.useState("");return{announce:A.useCallback(i=>{i!=null&&t(i)},[]),announcement:e}}const Lp=A.createContext(null);function CC(e){const t=A.useContext(Lp);A.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function wC(){const[e]=A.useState(()=>new Set),t=A.useCallback(i=>(e.add(i),()=>e.delete(i)),[e]);return[A.useCallback(i=>{let{type:a,event:s}=i;e.forEach(u=>{var c;return(c=u[a])==null?void 0:c.call(u,s)})},[e]),t]}const AC={draggable:`
|
|
95
95
|
To pick up a draggable item, press the space bar.
|
|
96
96
|
While dragging, use the arrow keys to move the item.
|
|
97
97
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
98
|
-
`},Sw={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function _w(e){let{announcements:t=Sw,container:n,hiddenTextDescribedById:i,screenReaderInstructions:a=Aw}=e;const{announce:s,announcement:u}=Ew(),l=qo("DndLiveRegion"),[f,d]=A.useState(!1);if(A.useEffect(()=>{d(!0)},[]),ww(A.useMemo(()=>({onDragStart(p){let{active:b}=p;s(t.onDragStart({active:b}))},onDragMove(p){let{active:b,over:E}=p;t.onDragMove&&s(t.onDragMove({active:b,over:E}))},onDragOver(p){let{active:b,over:E}=p;s(t.onDragOver({active:b,over:E}))},onDragEnd(p){let{active:b,over:E}=p;s(t.onDragEnd({active:b,over:E}))},onDragCancel(p){let{active:b,over:E}=p;s(t.onDragCancel({active:b,over:E}))}}),[s,t])),!f)return null;const h=A.createElement(A.Fragment,null,A.createElement(bw,{id:i,value:a.draggable}),A.createElement(xw,{id:l,announcement:u}));return n?bn.createPortal(h,n):h}var Pt;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Pt||(Pt={}));function ds(){}function Tw(e,t){return A.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function Ow(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A.useMemo(()=>[...t].filter(i=>i!=null),[...t])}const Vn=Object.freeze({x:0,y:0});function Dw(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Iw(e,t){const n=fs(e);if(!n)return"0 0";const i={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return i.x+"% "+i.y+"%"}function Fw(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return n-i}function Pw(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return i-n}function kw(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Bp(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const Nw=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const a=Bp(t,t.left,t.top),s=[];for(const u of i){const{id:l}=u,f=n.get(l);if(f){const d=Dw(Bp(f),a);s.push({id:l,data:{droppableContainer:u,value:d}})}}return s.sort(Fw)};function Rw(e,t){const n=Math.max(t.top,e.top),i=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),u=a-i,l=s-n;if(i<a&&n<s){const f=t.width*t.height,d=e.width*e.height,h=u*l,p=h/(f+d-h);return Number(p.toFixed(4))}return 0}const Lw=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const a=[];for(const s of i){const{id:u}=s,l=n.get(u);if(l){const f=Rw(l,t);f>0&&a.push({id:u,data:{droppableContainer:s,value:f}})}}return a.sort(Pw)};function Bw(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Mp(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Vn}function Mw(e){return function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return a.reduce((u,l)=>({...u,top:u.top+e*l.y,bottom:u.bottom+e*l.y,left:u.left+e*l.x,right:u.right+e*l.x}),{...n})}}const jw=Mw(1);function jp(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function $w(e,t,n){const i=jp(t);if(!i)return e;const{scaleX:a,scaleY:s,x:u,y:l}=i,f=e.left-u-(1-a)*parseFloat(n),d=e.top-l-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),h=a?e.width/a:e.width,p=s?e.height/s:e.height;return{width:h,height:p,top:d,right:f+h,bottom:d+p,left:f}}const Uw={ignoreTransform:!1};function ji(e,t){t===void 0&&(t=Uw);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:h}=rn(e).getComputedStyle(e);d&&(n=$w(n,d,h))}const{top:i,left:a,width:s,height:u,bottom:l,right:f}=n;return{top:i,left:a,width:s,height:u,bottom:l,right:f}}function $p(e){return ji(e,{ignoreTransform:!0})}function Hw(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function Ww(e,t){return t===void 0&&(t=rn(e).getComputedStyle(e)),t.position==="fixed"}function qw(e,t){t===void 0&&(t=rn(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const s=t[a];return typeof s=="string"?n.test(s):!1})}function Ul(e,t){const n=[];function i(a){if(t!=null&&n.length>=t||!a)return n;if(jl(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!Uo(a)||kp(a)||n.includes(a))return n;const s=rn(e).getComputedStyle(a);return a!==e&&qw(a,s)&&n.push(a),Ww(a,s)?n:i(a.parentNode)}return e?i(e):n}function Up(e){const[t]=Ul(e,1);return t??null}function Hl(e){return!os||!e?null:Li(e)?e:Ml(e)?jl(e)||e===Bi(e).scrollingElement?window:Uo(e)?e:null:null}function Hp(e){return Li(e)?e.scrollX:e.scrollLeft}function Wp(e){return Li(e)?e.scrollY:e.scrollTop}function Wl(e){return{x:Hp(e),y:Wp(e)}}var jt;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(jt||(jt={}));function qp(e){return!os||!e?!1:e===document.scrollingElement}function zp(e){const t={x:0,y:0},n=qp(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},a=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,u=e.scrollTop>=i.y,l=e.scrollLeft>=i.x;return{isTop:a,isLeft:s,isBottom:u,isRight:l,maxScroll:i,minScroll:t}}const zw={x:.2,y:.2};function Gw(e,t,n,i,a){let{top:s,left:u,right:l,bottom:f}=n;i===void 0&&(i=10),a===void 0&&(a=zw);const{isTop:d,isBottom:h,isLeft:p,isRight:b}=zp(e),E={x:0,y:0},x={x:0,y:0},w={height:t.height*a.y,width:t.width*a.x};return!d&&s<=t.top+w.height?(E.y=jt.Backward,x.y=i*Math.abs((t.top+w.height-s)/w.height)):!h&&f>=t.bottom-w.height&&(E.y=jt.Forward,x.y=i*Math.abs((t.bottom-w.height-f)/w.height)),!b&&l>=t.right-w.width?(E.x=jt.Forward,x.x=i*Math.abs((t.right-w.width-l)/w.width)):!p&&u<=t.left+w.width&&(E.x=jt.Backward,x.x=i*Math.abs((t.left+w.width-u)/w.width)),{direction:E,speed:x}}function Vw(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:u}=window;return{top:0,left:0,right:s,bottom:u,width:s,height:u}}const{top:t,left:n,right:i,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:i,bottom:a,width:e.clientWidth,height:e.clientHeight}}function Gp(e){return e.reduce((t,n)=>Mi(t,Wl(n)),Vn)}function Yw(e){return e.reduce((t,n)=>t+Hp(n),0)}function Kw(e){return e.reduce((t,n)=>t+Wp(n),0)}function Vp(e,t){if(t===void 0&&(t=ji),!e)return;const{top:n,left:i,bottom:a,right:s}=t(e);Up(e)&&(a<=0||s<=0||n>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Xw=[["x",["left","right"],Yw],["y",["top","bottom"],Kw]];class ql{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=Ul(n),a=Gp(i);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,u,l]of Xw)for(const f of u)Object.defineProperty(this,f,{get:()=>{const d=l(i),h=a[s]-d;return this.rect[f]+h},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class zo{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...n)})},this.target=t}add(t,n,i){var a;(a=this.target)==null||a.addEventListener(t,n,i),this.listeners.push([t,n,i])}}function Jw(e){const{EventTarget:t}=rn(e);return e instanceof t?e:Bi(e)}function zl(e,t){const n=Math.abs(e.x),i=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+i**2)>t:"x"in t&&"y"in t?n>t.x&&i>t.y:"x"in t?n>t.x:"y"in t?i>t.y:!1}var kn;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(kn||(kn={}));function Yp(e){e.preventDefault()}function Zw(e){e.stopPropagation()}var nt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(nt||(nt={}));const Kp={start:[nt.Space,nt.Enter],cancel:[nt.Esc],end:[nt.Space,nt.Enter,nt.Tab]},Qw=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case nt.Right:return{...n,x:n.x+25};case nt.Left:return{...n,x:n.x-25};case nt.Down:return{...n,y:n.y+25};case nt.Up:return{...n,y:n.y-25}}};class Xp{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new zo(Bi(n)),this.windowListeners=new zo(rn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(kn.Resize,this.handleCancel),this.windowListeners.add(kn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(kn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,i=t.node.current;i&&Vp(i),n(Vn)}handleKeyDown(t){if(cs(t)){const{active:n,context:i,options:a}=this.props,{keyboardCodes:s=Kp,coordinateGetter:u=Qw,scrollBehavior:l="smooth"}=a,{code:f}=t;if(s.end.includes(f)){this.handleEnd(t);return}if(s.cancel.includes(f)){this.handleCancel(t);return}const{collisionRect:d}=i.current,h=d?{x:d.left,y:d.top}:Vn;this.referenceCoordinates||(this.referenceCoordinates=h);const p=u(t,{active:n,context:i.current,currentCoordinates:h});if(p){const b=ls(p,h),E={x:0,y:0},{scrollableAncestors:x}=i.current;for(const w of x){const m=t.code,{isTop:D,isRight:F,isLeft:I,isBottom:C,maxScroll:v,minScroll:S}=zp(w),O=Vw(w),B={x:Math.min(m===nt.Right?O.right-O.width/2:O.right,Math.max(m===nt.Right?O.left:O.left+O.width/2,p.x)),y:Math.min(m===nt.Down?O.bottom-O.height/2:O.bottom,Math.max(m===nt.Down?O.top:O.top+O.height/2,p.y))},G=m===nt.Right&&!F||m===nt.Left&&!I,q=m===nt.Down&&!C||m===nt.Up&&!D;if(G&&B.x!==p.x){const V=w.scrollLeft+b.x,ue=m===nt.Right&&V<=v.x||m===nt.Left&&V>=S.x;if(ue&&!b.y){w.scrollTo({left:V,behavior:l});return}ue?E.x=w.scrollLeft-V:E.x=m===nt.Right?w.scrollLeft-v.x:w.scrollLeft-S.x,E.x&&w.scrollBy({left:-E.x,behavior:l});break}else if(q&&B.y!==p.y){const V=w.scrollTop+b.y,ue=m===nt.Down&&V<=v.y||m===nt.Up&&V>=S.y;if(ue&&!b.x){w.scrollTo({top:V,behavior:l});return}ue?E.y=w.scrollTop-V:E.y=m===nt.Down?w.scrollTop-v.y:w.scrollTop-S.y,E.y&&w.scrollBy({top:-E.y,behavior:l});break}}this.handleMove(t,Mi(ls(p,this.referenceCoordinates),E))}}}handleMove(t,n){const{onMove:i}=this.props;t.preventDefault(),i(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Xp.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:i=Kp,onActivation:a}=t,{active:s}=n;const{code:u}=e.nativeEvent;if(i.start.includes(u)){const l=s.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),a==null||a({event:e.nativeEvent}),!0)}return!1}}];function Jp(e){return!!(e&&"distance"in e)}function Zp(e){return!!(e&&"delay"in e)}class Gl{constructor(t,n,i){var a;i===void 0&&(i=Jw(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:u}=s;this.props=t,this.events=n,this.document=Bi(u),this.documentListeners=new zo(this.document),this.listeners=new zo(i),this.windowListeners=new zo(rn(u)),this.initialCoordinates=(a=fs(s))!=null?a:Vn,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:i}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(kn.Resize,this.handleCancel),this.windowListeners.add(kn.DragStart,Yp),this.windowListeners.add(kn.VisibilityChange,this.handleCancel),this.windowListeners.add(kn.ContextMenu,Yp),this.documentListeners.add(kn.Keydown,this.handleKeydown),n){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Zp(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Jp(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:i,onPending:a}=this.props;a(i,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(kn.Click,Zw,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(kn.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:i,initialCoordinates:a,props:s}=this,{onMove:u,options:{activationConstraint:l}}=s;if(!a)return;const f=(n=fs(t))!=null?n:Vn,d=ls(a,f);if(!i&&l){if(Jp(l)){if(l.tolerance!=null&&zl(d,l.tolerance))return this.handleCancel();if(zl(d,l.distance))return this.handleStart()}if(Zp(l)&&zl(d,l.tolerance))return this.handleCancel();this.handlePending(l,d);return}t.cancelable&&t.preventDefault(),u(f)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===nt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const eC={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Vl extends Gl{constructor(t){const{event:n}=t,i=Bi(n.target);super(t,eC,i)}}Vl.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return!n.isPrimary||n.button!==0?!1:(i==null||i({event:n}),!0)}}];const tC={move:{name:"mousemove"},end:{name:"mouseup"}};var Yl;(function(e){e[e.RightClick=2]="RightClick"})(Yl||(Yl={}));class nC extends Gl{constructor(t){super(t,tC,Bi(t.event.target))}}nC.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return n.button===Yl.RightClick?!1:(i==null||i({event:n}),!0)}}];const Kl={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class rC extends Gl{constructor(t){super(t,Kl)}static setup(){return window.addEventListener(Kl.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Kl.move.name,t)};function t(){}}}rC.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;const{touches:a}=n;return a.length>1?!1:(i==null||i({event:n}),!0)}}];var Go;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Go||(Go={}));var hs;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(hs||(hs={}));function iC(e){let{acceleration:t,activator:n=Go.Pointer,canScroll:i,draggingRect:a,enabled:s,interval:u=5,order:l=hs.TreeOrder,pointerCoordinates:f,scrollableAncestors:d,scrollableAncestorRects:h,delta:p,threshold:b}=e;const E=aC({delta:p,disabled:!s}),[x,w]=pw(),m=A.useRef({x:0,y:0}),D=A.useRef({x:0,y:0}),F=A.useMemo(()=>{switch(n){case Go.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case Go.DraggableRect:return a}},[n,a,f]),I=A.useRef(null),C=A.useCallback(()=>{const S=I.current;if(!S)return;const O=m.current.x*D.current.x,B=m.current.y*D.current.y;S.scrollBy(O,B)},[]),v=A.useMemo(()=>l===hs.TreeOrder?[...d].reverse():d,[l,d]);A.useEffect(()=>{if(!s||!d.length||!F){w();return}for(const S of v){if((i==null?void 0:i(S))===!1)continue;const O=d.indexOf(S),B=h[O];if(!B)continue;const{direction:G,speed:q}=Gw(S,B,F,t,b);for(const V of["x","y"])E[V][G[V]]||(q[V]=0,G[V]=0);if(q.x>0||q.y>0){w(),I.current=S,x(C,u),m.current=q,D.current=G;return}}m.current={x:0,y:0},D.current={x:0,y:0},w()},[t,C,i,w,s,u,JSON.stringify(F),JSON.stringify(E),x,d,v,h,JSON.stringify(b)])}const oC={x:{[jt.Backward]:!1,[jt.Forward]:!1},y:{[jt.Backward]:!1,[jt.Forward]:!1}};function aC(e){let{delta:t,disabled:n}=e;const i=us(t);return Wo(a=>{if(n||!i||!a)return oC;const s={x:Math.sign(t.x-i.x),y:Math.sign(t.y-i.y)};return{x:{[jt.Backward]:a.x[jt.Backward]||s.x===-1,[jt.Forward]:a.x[jt.Forward]||s.x===1},y:{[jt.Backward]:a.y[jt.Backward]||s.y===-1,[jt.Forward]:a.y[jt.Forward]||s.y===1}}},[n,t,i])}function sC(e,t){const n=t!=null?e.get(t):void 0,i=n?n.node.current:null;return Wo(a=>{var s;return t==null?null:(s=i??a)!=null?s:null},[i,t])}function uC(e,t){return A.useMemo(()=>e.reduce((n,i)=>{const{sensor:a}=i,s=a.activators.map(u=>({eventName:u.eventName,handler:t(u.handler,i)}));return[...n,...s]},[]),[e,t])}var Vo;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Vo||(Vo={}));var Xl;(function(e){e.Optimized="optimized"})(Xl||(Xl={}));const Qp=new Map;function lC(e,t){let{dragging:n,dependencies:i,config:a}=t;const[s,u]=A.useState(null),{frequency:l,measure:f,strategy:d}=a,h=A.useRef(e),p=m(),b=Ho(p),E=A.useCallback(function(D){D===void 0&&(D=[]),!b.current&&u(F=>F===null?D:F.concat(D.filter(I=>!F.includes(I))))},[b]),x=A.useRef(null),w=Wo(D=>{if(p&&!n)return Qp;if(!D||D===Qp||h.current!==e||s!=null){const F=new Map;for(let I of e){if(!I)continue;if(s&&s.length>0&&!s.includes(I.id)&&I.rect.current){F.set(I.id,I.rect.current);continue}const C=I.node.current,v=C?new ql(f(C),C):null;I.rect.current=v,v&&F.set(I.id,v)}return F}return D},[e,s,n,p,f]);return A.useEffect(()=>{h.current=e},[e]),A.useEffect(()=>{p||E()},[n,p]),A.useEffect(()=>{s&&s.length>0&&u(null)},[JSON.stringify(s)]),A.useEffect(()=>{p||typeof l!="number"||x.current!==null||(x.current=setTimeout(()=>{E(),x.current=null},l))},[l,p,E,...i]),{droppableRects:w,measureDroppableContainers:E,measuringScheduled:s!=null};function m(){switch(d){case Vo.Always:return!1;case Vo.BeforeDragging:return n;default:return!n}}}function Jl(e,t){return Wo(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function cC(e,t){return Jl(e,t)}function fC(e){let{callback:t,disabled:n}=e;const i=as(t),a=A.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(i)},[i,n]);return A.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function ps(e){let{callback:t,disabled:n}=e;const i=as(t),a=A.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(i)},[n]);return A.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function dC(e){return new ql(ji(e),e)}function e0(e,t,n){t===void 0&&(t=dC);const[i,a]=A.useState(null);function s(){a(f=>{if(!e)return null;if(e.isConnected===!1){var d;return(d=f??n)!=null?d:null}const h=t(e);return JSON.stringify(f)===JSON.stringify(h)?f:h})}const u=fC({callback(f){if(e)for(const d of f){const{type:h,target:p}=d;if(h==="childList"&&p instanceof HTMLElement&&p.contains(e)){s();break}}}}),l=ps({callback:s});return Gn(()=>{s(),e?(l==null||l.observe(e),u==null||u.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),u==null||u.disconnect())},[e]),i}function hC(e){const t=Jl(e);return Mp(e,t)}const t0=[];function pC(e){const t=A.useRef(e),n=Wo(i=>e?i&&i!==t0&&e&&t.current&&e.parentNode===t.current.parentNode?i:Ul(e):t0,[e]);return A.useEffect(()=>{t.current=e},[e]),n}function mC(e){const[t,n]=A.useState(null),i=A.useRef(e),a=A.useCallback(s=>{const u=Hl(s.target);u&&n(l=>l?(l.set(u,Wl(u)),new Map(l)):null)},[]);return A.useEffect(()=>{const s=i.current;if(e!==s){u(s);const l=e.map(f=>{const d=Hl(f);return d?(d.addEventListener("scroll",a,{passive:!0}),[d,Wl(d)]):null}).filter(f=>f!=null);n(l.length?new Map(l):null),i.current=e}return()=>{u(e),u(s)};function u(l){l.forEach(f=>{const d=Hl(f);d==null||d.removeEventListener("scroll",a)})}},[a,e]),A.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,u)=>Mi(s,u),Vn):Gp(e):Vn,[e,t])}function n0(e,t){t===void 0&&(t=[]);const n=A.useRef(null);return A.useEffect(()=>{n.current=null},t),A.useEffect(()=>{const i=e!==Vn;i&&!n.current&&(n.current=e),!i&&n.current&&(n.current=null)},[e]),n.current?ls(e,n.current):Vn}function gC(e){A.useEffect(()=>{if(!os)return;const t=e.map(n=>{let{sensor:i}=n;return i.setup==null?void 0:i.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function vC(e,t){return A.useMemo(()=>e.reduce((n,i)=>{let{eventName:a,handler:s}=i;return n[a]=u=>{s(u,t)},n},{}),[e,t])}function r0(e){return A.useMemo(()=>e?Hw(e):null,[e])}const i0=[];function yC(e,t){t===void 0&&(t=ji);const[n]=e,i=r0(n?rn(n):null),[a,s]=A.useState(i0);function u(){s(()=>e.length?e.map(f=>qp(f)?i:new ql(t(f),f)):i0)}const l=ps({callback:u});return Gn(()=>{l==null||l.disconnect(),u(),e.forEach(f=>l==null?void 0:l.observe(f))},[e]),a}function o0(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Uo(t)?t:e}function bC(e){let{measure:t}=e;const[n,i]=A.useState(null),a=A.useCallback(d=>{for(const{target:h}of d)if(Uo(h)){i(p=>{const b=t(h);return p?{...p,width:b.width,height:b.height}:b});break}},[t]),s=ps({callback:a}),u=A.useCallback(d=>{const h=o0(d);s==null||s.disconnect(),h&&(s==null||s.observe(h)),i(h?t(h):null)},[t,s]),[l,f]=ss(u);return A.useMemo(()=>({nodeRef:l,rect:n,setRef:f}),[n,l,f])}const xC=[{sensor:Vl,options:{}},{sensor:Xp,options:{}}],EC={current:{}},ms={draggable:{measure:$p},droppable:{measure:$p,strategy:Vo.WhileDragging,frequency:Xl.Optimized},dragOverlay:{measure:ji}};class Yo extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,i;return(n=(i=this.get(t))==null?void 0:i.node.current)!=null?n:void 0}}const wC={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Yo,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ds},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ms,measureDroppableContainers:ds,windowRect:null,measuringScheduled:!1},a0={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ds,draggableNodes:new Map,over:null,measureDroppableContainers:ds},Ko=A.createContext(a0),s0=A.createContext(wC);function CC(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Yo}}}function AC(e,t){switch(t.type){case Pt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Pt.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Pt.DragEnd:case Pt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Pt.RegisterDroppable:{const{element:n}=t,{id:i}=n,a=new Yo(e.droppable.containers);return a.set(i,n),{...e,droppable:{...e.droppable,containers:a}}}case Pt.SetDroppableDisabled:{const{id:n,key:i,disabled:a}=t,s=e.droppable.containers.get(n);if(!s||i!==s.key)return e;const u=new Yo(e.droppable.containers);return u.set(n,{...s,disabled:a}),{...e,droppable:{...e.droppable,containers:u}}}case Pt.UnregisterDroppable:{const{id:n,key:i}=t,a=e.droppable.containers.get(n);if(!a||i!==a.key)return e;const s=new Yo(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function SC(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:a}=A.useContext(Ko),s=us(i),u=us(n==null?void 0:n.id);return A.useEffect(()=>{if(!t&&!i&&s&&u!=null){if(!cs(s)||document.activeElement===s.target)return;const l=a.get(u);if(!l)return;const{activatorNode:f,node:d}=l;if(!f.current&&!d.current)return;requestAnimationFrame(()=>{for(const h of[f.current,d.current]){if(!h)continue;const p=vw(h);if(p){p.focus();break}}})}},[i,t,a,u,s]),null}function u0(e,t){let{transform:n,...i}=t;return e!=null&&e.length?e.reduce((a,s)=>s({transform:a,...i}),n):n}function _C(e){return A.useMemo(()=>({draggable:{...ms.draggable,...e==null?void 0:e.draggable},droppable:{...ms.droppable,...e==null?void 0:e.droppable},dragOverlay:{...ms.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function TC(e){let{activeNode:t,measure:n,initialRect:i,config:a=!0}=e;const s=A.useRef(!1),{x:u,y:l}=typeof a=="boolean"?{x:a,y:a}:a;Gn(()=>{if(!u&&!l||!t){s.current=!1;return}if(s.current||!i)return;const d=t==null?void 0:t.node.current;if(!d||d.isConnected===!1)return;const h=n(d),p=Mp(h,i);if(u||(p.x=0),l||(p.y=0),s.current=!0,Math.abs(p.x)>0||Math.abs(p.y)>0){const b=Up(d);b&&b.scrollBy({top:p.y,left:p.x})}},[t,u,l,i,n])}const gs=A.createContext({...Vn,scaleX:1,scaleY:1});var Br;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Br||(Br={}));const OC=A.memo(function(t){var n,i,a,s;let{id:u,accessibility:l,autoScroll:f=!0,children:d,sensors:h=xC,collisionDetection:p=Lw,measuring:b,modifiers:E,...x}=t;const w=A.useReducer(AC,void 0,CC),[m,D]=w,[F,I]=Cw(),[C,v]=A.useState(Br.Uninitialized),S=C===Br.Initialized,{draggable:{active:O,nodes:B,translate:G},droppable:{containers:q}}=m,V=O!=null?B.get(O):null,ue=A.useRef({initial:null,translated:null}),ne=A.useMemo(()=>{var St;return O!=null?{id:O,data:(St=V==null?void 0:V.data)!=null?St:EC,rect:ue}:null},[O,V]),te=A.useRef(null),[le,xe]=A.useState(null),[he,fe]=A.useState(null),Ie=Ho(x,Object.values(x)),M=qo("DndDescribedBy",u),K=A.useMemo(()=>q.getEnabled(),[q]),pe=_C(b),{droppableRects:j,measureDroppableContainers:z,measuringScheduled:J}=lC(K,{dragging:S,dependencies:[G.x,G.y],config:pe.droppable}),de=sC(B,O),ve=A.useMemo(()=>he?fs(he):null,[he]),ae=Vi(),Z=cC(de,pe.draggable.measure);TC({activeNode:O!=null?B.get(O):null,config:ae.layoutShiftCompensation,initialRect:Z,measure:pe.draggable.measure});const Y=e0(de,pe.draggable.measure,Z),me=e0(de?de.parentElement:null),ee=A.useRef({activatorEvent:null,active:null,activeNode:de,collisionRect:null,collisions:null,droppableRects:j,draggableNodes:B,draggingNode:null,draggingNodeRect:null,droppableContainers:q,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Be=q.getNodeFor((n=ee.current.over)==null?void 0:n.id),ke=bC({measure:pe.dragOverlay.measure}),Te=(i=ke.nodeRef.current)!=null?i:de,et=S?(a=ke.rect)!=null?a:Y:null,Ye=!!(ke.nodeRef.current&&ke.rect),Zt=hC(Ye?null:Y),zt=r0(Te?rn(Te):null),tt=pC(S?Be??de:null),Ke=yC(tt),Ce=u0(E,{transform:{x:G.x-Zt.x,y:G.y-Zt.y,scaleX:1,scaleY:1},activatorEvent:he,active:ne,activeNodeRect:Y,containerNodeRect:me,draggingNodeRect:et,over:ee.current.over,overlayNodeRect:ke.rect,scrollableAncestors:tt,scrollableAncestorRects:Ke,windowRect:zt}),ct=ve?Mi(ve,G):null,bt=mC(tt),Qt=n0(bt),Me=n0(bt,[Y]),we=Mi(Ce,Qt),Le=et?jw(et,Ce):null,Ft=ne&&Le?p({active:ne,collisionRect:Le,droppableRects:j,droppableContainers:K,pointerCoordinates:ct}):null,Oe=kw(Ft,"id"),[Qe,Se]=A.useState(null),Et=Ye?Ce:Mi(Ce,Me),ui=Bw(Et,(s=Qe==null?void 0:Qe.rect)!=null?s:null,Y),$t=A.useRef(null),Yn=A.useCallback((St,Ut)=>{let{sensor:Ht,options:Rn}=Ut;if(te.current==null)return;const Gt=B.get(te.current);if(!Gt)return;const kt=St.nativeEvent,an=new Ht({active:te.current,activeNode:Gt,event:kt,options:Rn,context:ee,onAbort(_t){if(!B.get(_t))return;const{onDragAbort:Nt}=Ie.current,en={id:_t};Nt==null||Nt(en),F({type:"onDragAbort",event:en})},onPending(_t,sn,Nt,en){if(!B.get(_t))return;const{onDragPending:xr}=Ie.current,Ct={id:_t,constraint:sn,initialCoordinates:Nt,offset:en};xr==null||xr(Ct),F({type:"onDragPending",event:Ct})},onStart(_t){const sn=te.current;if(sn==null)return;const Nt=B.get(sn);if(!Nt)return;const{onDragStart:en}=Ie.current,br={activatorEvent:kt,active:{id:sn,data:Nt.data,rect:ue}};bn.unstable_batchedUpdates(()=>{en==null||en(br),v(Br.Initializing),D({type:Pt.DragStart,initialCoordinates:_t,active:sn}),F({type:"onDragStart",event:br}),xe($t.current),fe(kt)})},onMove(_t){D({type:Pt.DragMove,coordinates:_t})},onEnd:ir(Pt.DragEnd),onCancel:ir(Pt.DragCancel)});$t.current=an;function ir(_t){return async function(){const{active:Nt,collisions:en,over:br,scrollAdjustedTranslate:xr}=ee.current;let Ct=null;if(Nt&&xr){const{cancelDrop:mt}=Ie.current;Ct={activatorEvent:kt,active:Nt,collisions:en,delta:xr,over:br},_t===Pt.DragEnd&&typeof mt=="function"&&await Promise.resolve(mt(Ct))&&(_t=Pt.DragCancel)}te.current=null,bn.unstable_batchedUpdates(()=>{D({type:_t}),v(Br.Uninitialized),Se(null),xe(null),fe(null),$t.current=null;const mt=_t===Pt.DragEnd?"onDragEnd":"onDragCancel";if(Ct){const ci=Ie.current[mt];ci==null||ci(Ct),F({type:mt,event:Ct})}})}}},[B]),li=A.useCallback((St,Ut)=>(Ht,Rn)=>{const Gt=Ht.nativeEvent,kt=B.get(Rn);if(te.current!==null||!kt||Gt.dndKit||Gt.defaultPrevented)return;const an={active:kt};St(Ht,Ut.options,an)===!0&&(Gt.dndKit={capturedBy:Ut.sensor},te.current=Rn,Yn(Ht,Ut))},[B,Yn]),$r=uC(h,li);gC(h),Gn(()=>{Y&&C===Br.Initializing&&v(Br.Initialized)},[Y,C]),A.useEffect(()=>{const{onDragMove:St}=Ie.current,{active:Ut,activatorEvent:Ht,collisions:Rn,over:Gt}=ee.current;if(!Ut||!Ht)return;const kt={active:Ut,activatorEvent:Ht,collisions:Rn,delta:{x:we.x,y:we.y},over:Gt};bn.unstable_batchedUpdates(()=>{St==null||St(kt),F({type:"onDragMove",event:kt})})},[we.x,we.y]),A.useEffect(()=>{const{active:St,activatorEvent:Ut,collisions:Ht,droppableContainers:Rn,scrollAdjustedTranslate:Gt}=ee.current;if(!St||te.current==null||!Ut||!Gt)return;const{onDragOver:kt}=Ie.current,an=Rn.get(Oe),ir=an&&an.rect.current?{id:an.id,rect:an.rect.current,data:an.data,disabled:an.disabled}:null,_t={active:St,activatorEvent:Ut,collisions:Ht,delta:{x:Gt.x,y:Gt.y},over:ir};bn.unstable_batchedUpdates(()=>{Se(ir),kt==null||kt(_t),F({type:"onDragOver",event:_t})})},[Oe]),Gn(()=>{ee.current={activatorEvent:he,active:ne,activeNode:de,collisionRect:Le,collisions:Ft,droppableRects:j,draggableNodes:B,draggingNode:Te,draggingNodeRect:et,droppableContainers:q,over:Qe,scrollableAncestors:tt,scrollAdjustedTranslate:we},ue.current={initial:et,translated:Le}},[ne,de,Ft,Le,B,Te,et,j,q,Qe,tt,we]),iC({...ae,delta:G,draggingRect:Le,pointerCoordinates:ct,scrollableAncestors:tt,scrollableAncestorRects:Ke});const Ur=A.useMemo(()=>({active:ne,activeNode:de,activeNodeRect:Y,activatorEvent:he,collisions:Ft,containerNodeRect:me,dragOverlay:ke,draggableNodes:B,droppableContainers:q,droppableRects:j,over:Qe,measureDroppableContainers:z,scrollableAncestors:tt,scrollableAncestorRects:Ke,measuringConfiguration:pe,measuringScheduled:J,windowRect:zt}),[ne,de,Y,he,Ft,me,ke,B,q,j,Qe,z,tt,Ke,pe,J,zt]),ra=A.useMemo(()=>({activatorEvent:he,activators:$r,active:ne,activeNodeRect:Y,ariaDescribedById:{draggable:M},dispatch:D,draggableNodes:B,over:Qe,measureDroppableContainers:z}),[he,$r,ne,Y,D,M,B,Qe,z]);return A.createElement(Lp.Provider,{value:I},A.createElement(Ko.Provider,{value:ra},A.createElement(s0.Provider,{value:Ur},A.createElement(gs.Provider,{value:ui},d)),A.createElement(SC,{disabled:(l==null?void 0:l.restoreFocus)===!1})),A.createElement(_w,{...l,hiddenTextDescribedById:M}));function Vi(){const St=(le==null?void 0:le.autoScrollEnabled)===!1,Ut=typeof f=="object"?f.enabled===!1:f===!1,Ht=S&&!St&&!Ut;return typeof f=="object"?{...f,enabled:Ht}:{enabled:Ht}}}),DC=A.createContext(null),l0="button",IC="Draggable";function FC(e){let{id:t,data:n,disabled:i=!1,attributes:a}=e;const s=qo(IC),{activators:u,activatorEvent:l,active:f,activeNodeRect:d,ariaDescribedById:h,draggableNodes:p,over:b}=A.useContext(Ko),{role:E=l0,roleDescription:x="draggable",tabIndex:w=0}=a??{},m=(f==null?void 0:f.id)===t,D=A.useContext(m?gs:DC),[F,I]=ss(),[C,v]=ss(),S=vC(u,t),O=Ho(n);Gn(()=>(p.set(t,{id:t,key:s,node:F,activatorNode:C,data:O}),()=>{const G=p.get(t);G&&G.key===s&&p.delete(t)}),[p,t]);const B=A.useMemo(()=>({role:E,tabIndex:w,"aria-disabled":i,"aria-pressed":m&&E===l0?!0:void 0,"aria-roledescription":x,"aria-describedby":h.draggable}),[i,E,w,m,x,h.draggable]);return{active:f,activatorEvent:l,activeNodeRect:d,attributes:B,isDragging:m,listeners:i?void 0:S,node:F,over:b,setNodeRef:I,setActivatorNodeRef:v,transform:D}}function c0(){return A.useContext(s0)}const PC="Droppable",kC={timeout:25};function NC(e){let{data:t,disabled:n=!1,id:i,resizeObserverConfig:a}=e;const s=qo(PC),{active:u,dispatch:l,over:f,measureDroppableContainers:d}=A.useContext(Ko),h=A.useRef({disabled:n}),p=A.useRef(!1),b=A.useRef(null),E=A.useRef(null),{disabled:x,updateMeasurementsFor:w,timeout:m}={...kC,...a},D=Ho(w??i),F=A.useCallback(()=>{if(!p.current){p.current=!0;return}E.current!=null&&clearTimeout(E.current),E.current=setTimeout(()=>{d(Array.isArray(D.current)?D.current:[D.current]),E.current=null},m)},[m]),I=ps({callback:F,disabled:x||!u}),C=A.useCallback((B,G)=>{I&&(G&&(I.unobserve(G),p.current=!1),B&&I.observe(B))},[I]),[v,S]=ss(C),O=Ho(t);return A.useEffect(()=>{!I||!v.current||(I.disconnect(),p.current=!1,I.observe(v.current))},[v,I]),A.useEffect(()=>(l({type:Pt.RegisterDroppable,element:{id:i,key:s,disabled:n,node:v,rect:b,data:O}}),()=>l({type:Pt.UnregisterDroppable,key:s,id:i})),[i]),A.useEffect(()=>{n!==h.current.disabled&&(l({type:Pt.SetDroppableDisabled,id:i,key:s,disabled:n}),h.current.disabled=n)},[i,s,n,l]),{active:u,rect:b,isOver:(f==null?void 0:f.id)===i,node:v,over:f,setNodeRef:S}}function RC(e){let{animation:t,children:n}=e;const[i,a]=A.useState(null),[s,u]=A.useState(null),l=us(n);return!n&&!i&&l&&a(l),Gn(()=>{if(!s)return;const f=i==null?void 0:i.key,d=i==null?void 0:i.props.id;if(f==null||d==null){a(null);return}Promise.resolve(t(d,s)).then(()=>{a(null)})},[t,i,s]),A.createElement(A.Fragment,null,n,i?A.cloneElement(i,{ref:u}):null)}const LC={x:0,y:0,scaleX:1,scaleY:1};function BC(e){let{children:t}=e;return A.createElement(Ko.Provider,{value:a0},A.createElement(gs.Provider,{value:LC},t))}const MC={position:"fixed",touchAction:"none"},jC=e=>cs(e)?"transform 250ms ease":void 0,$C=A.forwardRef((e,t)=>{let{as:n,activatorEvent:i,adjustScale:a,children:s,className:u,rect:l,style:f,transform:d,transition:h=jC}=e;if(!l)return null;const p=a?d:{...d,scaleX:1,scaleY:1},b={...MC,width:l.width,height:l.height,top:l.top,left:l.left,transform:nr.Transform.toString(p),transformOrigin:a&&i?Iw(i,l):void 0,transition:typeof h=="function"?h(i):h,...f};return A.createElement(n,{className:u,style:b,ref:t},s)}),Zl={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:nr.Transform.toString(t)},{transform:nr.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:i}=t;const a={},{styles:s,className:u}=e;if(s!=null&&s.active)for(const[l,f]of Object.entries(s.active))f!==void 0&&(a[l]=n.node.style.getPropertyValue(l),n.node.style.setProperty(l,f));if(s!=null&&s.dragOverlay)for(const[l,f]of Object.entries(s.dragOverlay))f!==void 0&&i.node.style.setProperty(l,f);return u!=null&&u.active&&n.node.classList.add(u.active),u!=null&&u.dragOverlay&&i.node.classList.add(u.dragOverlay),function(){for(const[f,d]of Object.entries(a))n.node.style.setProperty(f,d);u!=null&&u.active&&n.node.classList.remove(u.active)}})({styles:{active:{opacity:"0"}}})};function UC(e){let{config:t,draggableNodes:n,droppableContainers:i,measuringConfiguration:a}=e;return as((s,u)=>{if(t===null)return;const l=n.get(s);if(!l)return;const f=l.node.current;if(!f)return;const d=o0(u);if(!d)return;const{transform:h}=rn(u).getComputedStyle(u),p=jp(h);if(!p)return;const b=typeof t=="function"?t:HC(t);return Vp(f,a.draggable.measure),b({active:{id:s,data:l.data,node:f,rect:a.draggable.measure(f)},draggableNodes:n,dragOverlay:{node:u,rect:a.dragOverlay.measure(d)},droppableContainers:i,measuringConfiguration:a,transform:p})})}function HC(e){const{duration:t,easing:n,sideEffects:i,keyframes:a}={...Zl,...e};return s=>{let{active:u,dragOverlay:l,transform:f,...d}=s;if(!t)return;const h={x:l.rect.left-u.rect.left,y:l.rect.top-u.rect.top},p={scaleX:f.scaleX!==1?u.rect.width*f.scaleX/l.rect.width:1,scaleY:f.scaleY!==1?u.rect.height*f.scaleY/l.rect.height:1},b={x:f.x-h.x,y:f.y-h.y,...p},E=a({...d,active:u,dragOverlay:l,transform:{initial:f,final:b}}),[x]=E,w=E[E.length-1];if(JSON.stringify(x)===JSON.stringify(w))return;const m=i==null?void 0:i({active:u,dragOverlay:l,...d}),D=l.node.animate(E,{duration:t,easing:n,fill:"forwards"});return new Promise(F=>{D.onfinish=()=>{m==null||m(),F()}})}}let f0=0;function WC(e){return A.useMemo(()=>{if(e!=null)return f0++,f0},[e])}const qC=A.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:a,transition:s,modifiers:u,wrapperElement:l="div",className:f,zIndex:d=999}=e;const{activatorEvent:h,active:p,activeNodeRect:b,containerNodeRect:E,draggableNodes:x,droppableContainers:w,dragOverlay:m,over:D,measuringConfiguration:F,scrollableAncestors:I,scrollableAncestorRects:C,windowRect:v}=c0(),S=A.useContext(gs),O=WC(p==null?void 0:p.id),B=u0(u,{activatorEvent:h,active:p,activeNodeRect:b,containerNodeRect:E,draggingNodeRect:m.rect,over:D,overlayNodeRect:m.rect,scrollableAncestors:I,scrollableAncestorRects:C,transform:S,windowRect:v}),G=Jl(b),q=UC({config:i,draggableNodes:x,droppableContainers:w,measuringConfiguration:F}),V=G?m.setRef:void 0;return A.createElement(BC,null,A.createElement(RC,{animation:q},p&&O?A.createElement($C,{key:O,id:p.id,ref:V,as:l,activatorEvent:h,adjustScale:t,className:f,transition:s,rect:G,style:{zIndex:d,...a},transform:B},n):null))});function Xo(e,t,n){const i=e.slice();return i.splice(n<0?i.length+n:n,0,i.splice(t,1)[0]),i}function zC(e,t){return e.reduce((n,i,a)=>{const s=t.get(i);return s&&(n[a]=s),n},Array(e.length))}function vs(e){return e!==null&&e>=0}function GC(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function VC(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const d0=e=>{let{rects:t,activeIndex:n,overIndex:i,index:a}=e;const s=Xo(t,i,n),u=t[a],l=s[a];return!l||!u?null:{x:l.left-u.left,y:l.top-u.top,scaleX:l.width/u.width,scaleY:l.height/u.height}},ys={scaleX:1,scaleY:1},YC=e=>{var t;let{activeIndex:n,activeNodeRect:i,index:a,rects:s,overIndex:u}=e;const l=(t=s[n])!=null?t:i;if(!l)return null;if(a===n){const d=s[u];return d?{x:0,y:n<u?d.top+d.height-(l.top+l.height):d.top-l.top,...ys}:null}const f=KC(s,a,n);return a>n&&a<=u?{x:0,y:-l.height-f,...ys}:a<n&&a>=u?{x:0,y:l.height+f,...ys}:{x:0,y:0,...ys}};function KC(e,t,n){const i=e[t],a=e[t-1],s=e[t+1];return i?n<t?a?i.top-(a.top+a.height):s?s.top-(i.top+i.height):0:s?s.top-(i.top+i.height):a?i.top-(a.top+a.height):0:0}const h0="Sortable",p0=A.createContext({activeIndex:-1,containerId:h0,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:d0,disabled:{draggable:!1,droppable:!1}});function XC(e){let{children:t,id:n,items:i,strategy:a=d0,disabled:s=!1}=e;const{active:u,dragOverlay:l,droppableRects:f,over:d,measureDroppableContainers:h}=c0(),p=qo(h0,n),b=l.rect!==null,E=A.useMemo(()=>i.map(S=>typeof S=="object"&&"id"in S?S.id:S),[i]),x=u!=null,w=u?E.indexOf(u.id):-1,m=d?E.indexOf(d.id):-1,D=A.useRef(E),F=!GC(E,D.current),I=m!==-1&&w===-1||F,C=VC(s);Gn(()=>{F&&x&&h(E)},[F,E,x,h]),A.useEffect(()=>{D.current=E},[E]);const v=A.useMemo(()=>({activeIndex:w,containerId:p,disabled:C,disableTransforms:I,items:E,overIndex:m,useDragOverlay:b,sortedRects:zC(E,f),strategy:a}),[w,p,C.draggable,C.droppable,I,E,m,f,b,a]);return A.createElement(p0.Provider,{value:v},t)}const JC=e=>{let{id:t,items:n,activeIndex:i,overIndex:a}=e;return Xo(n,i,a).indexOf(t)},ZC=e=>{let{containerId:t,isSorting:n,wasDragging:i,index:a,items:s,newIndex:u,previousItems:l,previousContainerId:f,transition:d}=e;return!d||!i||l!==s&&a===u?!1:n?!0:u!==a&&t===f},QC={duration:200,easing:"ease"},m0="transform",eA=nr.Transition.toString({property:m0,duration:0,easing:"linear"}),tA={roleDescription:"sortable"};function nA(e){let{disabled:t,index:n,node:i,rect:a}=e;const[s,u]=A.useState(null),l=A.useRef(n);return Gn(()=>{if(!t&&n!==l.current&&i.current){const f=a.current;if(f){const d=ji(i.current,{ignoreTransform:!0}),h={x:f.left-d.left,y:f.top-d.top,scaleX:f.width/d.width,scaleY:f.height/d.height};(h.x||h.y)&&u(h)}}n!==l.current&&(l.current=n)},[t,n,i,a]),A.useEffect(()=>{s&&u(null)},[s]),s}function rA(e){let{animateLayoutChanges:t=ZC,attributes:n,disabled:i,data:a,getNewIndex:s=JC,id:u,strategy:l,resizeObserverConfig:f,transition:d=QC}=e;const{items:h,containerId:p,activeIndex:b,disabled:E,disableTransforms:x,sortedRects:w,overIndex:m,useDragOverlay:D,strategy:F}=A.useContext(p0),I=iA(i,E),C=h.indexOf(u),v=A.useMemo(()=>({sortable:{containerId:p,index:C,items:h},...a}),[p,a,C,h]),S=A.useMemo(()=>h.slice(h.indexOf(u)),[h,u]),{rect:O,node:B,isOver:G,setNodeRef:q}=NC({id:u,data:v,disabled:I.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...f}}),{active:V,activatorEvent:ue,activeNodeRect:ne,attributes:te,setNodeRef:le,listeners:xe,isDragging:he,over:fe,setActivatorNodeRef:Ie,transform:M}=FC({id:u,data:v,attributes:{...tA,...n},disabled:I.draggable}),K=hw(q,le),pe=!!V,j=pe&&!x&&vs(b)&&vs(m),z=!D&&he,J=z&&j?M:null,ve=j?J??(l??F)({rects:w,activeNodeRect:ne,activeIndex:b,overIndex:m,index:C}):null,ae=vs(b)&&vs(m)?s({id:u,items:h,activeIndex:b,overIndex:m}):C,Z=V==null?void 0:V.id,Y=A.useRef({activeId:Z,items:h,newIndex:ae,containerId:p}),me=h!==Y.current.items,ee=t({active:V,containerId:p,isDragging:he,isSorting:pe,id:u,index:C,items:h,newIndex:Y.current.newIndex,previousItems:Y.current.items,previousContainerId:Y.current.containerId,transition:d,wasDragging:Y.current.activeId!=null}),Be=nA({disabled:!ee,index:C,node:B,rect:O});return A.useEffect(()=>{pe&&Y.current.newIndex!==ae&&(Y.current.newIndex=ae),p!==Y.current.containerId&&(Y.current.containerId=p),h!==Y.current.items&&(Y.current.items=h)},[pe,ae,p,h]),A.useEffect(()=>{if(Z===Y.current.activeId)return;if(Z!=null&&Y.current.activeId==null){Y.current.activeId=Z;return}const Te=setTimeout(()=>{Y.current.activeId=Z},50);return()=>clearTimeout(Te)},[Z]),{active:V,activeIndex:b,attributes:te,data:v,rect:O,index:C,newIndex:ae,items:h,isOver:G,isSorting:pe,isDragging:he,listeners:xe,node:B,overIndex:m,over:fe,setNodeRef:K,setActivatorNodeRef:Ie,setDroppableNodeRef:q,setDraggableNodeRef:le,transform:Be??ve,transition:ke()};function ke(){if(Be||me&&Y.current.newIndex===C)return eA;if(!(z&&!cs(ue)||!d)&&(pe||ee))return nr.Transition.toString({...d,property:m0})}}function iA(e,t){var n,i;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(i=e==null?void 0:e.droppable)!=null?i:t.droppable}}nt.Down,nt.Right,nt.Up,nt.Left;function vr(){return vr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},vr.apply(this,arguments)}function Ql(e,t){if(e==null)return{};var n={},i=Object.keys(e),a,s;for(s=0;s<i.length;s++)a=i[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function oA(e,t){if(e){if(typeof e=="string")return g0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g0(e,t)}}function g0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function bs(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=oA(e))||t){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
99
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v0(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",n==="top"&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var aA=`.dnd-sortable-tree_simple_wrapper{box-sizing:border-box;list-style:none;margin-bottom:-1px}.dnd-sortable-tree_simple_tree-item{align-items:center;border:1px solid #dedede;box-sizing:border-box;color:#222;display:flex;padding:10px;position:relative}.dnd-sortable-tree_simple_clone{display:inline-block;padding:5px;pointer-events:none}.dnd-sortable-tree_simple_clone>.dnd-sortable-tree_simple_tree-item{border-radius:4px;box-shadow:0 15px 15px 0 rgba(34,33,81,.1);padding-bottom:5px;padding-right:24px;padding-top:5px}.dnd-sortable-tree_simple_ghost{opacity:.5}.dnd-sortable-tree_simple_disable-selection{-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.dnd-sortable-tree_simple_disable-interaction{pointer-events:none}.dnd-sortable-tree_folder_tree-item-collapse_button{align-self:stretch;background:url("data:image/svg+xml;utf8,<svg width='10' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 41'><path d='M30.76 39.2402C31.885 40.3638 33.41 40.995 35 40.995C36.59 40.995 38.115 40.3638 39.24 39.2402L68.24 10.2402C69.2998 9.10284 69.8768 7.59846 69.8494 6.04406C69.822 4.48965 69.1923 3.00657 68.093 1.90726C66.9937 0.807959 65.5106 0.178263 63.9562 0.150837C62.4018 0.123411 60.8974 0.700397 59.76 1.76024L35 26.5102L10.24 1.76024C9.10259 0.700397 7.59822 0.123411 6.04381 0.150837C4.4894 0.178263 3.00632 0.807959 1.90702 1.90726C0.807714 3.00657 0.178019 4.48965 0.150593 6.04406C0.123167 7.59846 0.700153 9.10284 1.75999 10.2402L30.76 39.2402Z' /></svg>") no-repeat 50%;border:0;transition:transform .25s ease;width:20px}.dnd-sortable-tree_folder_tree-item-collapse_button-collapsed{transform:rotate(-90deg)}.dnd-sortable-tree_simple_handle{align-self:stretch;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' width='12'><path d='M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z'></path></svg>") no-repeat 50%;cursor:pointer;width:20px}.dnd-sortable-tree_simple_tree-item-collapse_button{align-self:stretch;background:url("data:image/svg+xml;utf8,<svg width='10' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 41'><path d='M30.76 39.2402C31.885 40.3638 33.41 40.995 35 40.995C36.59 40.995 38.115 40.3638 39.24 39.2402L68.24 10.2402C69.2998 9.10284 69.8768 7.59846 69.8494 6.04406C69.822 4.48965 69.1923 3.00657 68.093 1.90726C66.9937 0.807959 65.5106 0.178263 63.9562 0.150837C62.4018 0.123411 60.8974 0.700397 59.76 1.76024L35 26.5102L10.24 1.76024C9.10259 0.700397 7.59822 0.123411 6.04381 0.150837C4.4894 0.178263 3.00632 0.807959 1.90702 1.90726C0.807714 3.00657 0.178019 4.48965 0.150593 6.04406C0.123167 7.59846 0.700153 9.10284 1.75999 10.2402L30.76 39.2402Z' /></svg>") no-repeat 50%;border:0;transition:transform .25s ease;width:20px}.dnd-sortable-tree_folder_simple-item-collapse_button-collapsed{transform:rotate(-90deg)}`;v0(aA);var sA=`.dnd-sortable-tree_folder_wrapper{box-sizing:border-box;display:flex;flex-direction:row;list-style:none;margin-bottom:-1px}.dnd-sortable-tree_folder_tree-item{align-items:center;box-sizing:border-box;display:flex;padding:7px 0;position:relative}.dnd-sortable-tree_folder_clone{display:inline-block;padding:5px;pointer-events:none}.dnd-sortable-tree_folder_clone>.dnd-sortable-tree_folder_tree-item{border-radius:4px;padding-bottom:5px;padding-right:24px;padding-top:5px}.dnd-sortable-tree_folder_ghost{opacity:.5}.dnd-sortable-tree_folder_disable-selection{-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.dnd-sortable-tree_folder_disable-interaction{pointer-events:none}.dnd-sortable-tree_folder_line{align-self:stretch;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><line stroke='black' style='stroke-width: 1px;' x1='50%' y1='0' x2='50%' y2='100%'/></svg>");width:20px}.dnd-sortable-tree_folder_line-last{align-self:stretch;width:20px}.dnd-sortable-tree_folder_line-to_self{align-self:stretch;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><line stroke='black' style='stroke-width: 1px;' x1='50%' y1='0' x2='50%' y2='100%'/><line stroke='black' style='stroke-width: 1px;' x1='50%' y1='50%' x2='100%' y2='50%'/></svg>");width:20px}.dnd-sortable-tree_folder_line-to_self-last{align-self:stretch;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><line stroke='black' style='stroke-width: 1px;' x1='50%' y1='0' x2='50%' y2='50%'/><line stroke='black' style='stroke-width: 1px;' x1='50%' y1='50%' x2='100%' y2='50%'/></svg>");width:20px}.dnd-sortable-tree_folder_tree-item-collapse_button{align-self:stretch;background:url("data:image/svg+xml;utf8,<svg width='10' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 41'><path d='M30.76 39.2402C31.885 40.3638 33.41 40.995 35 40.995C36.59 40.995 38.115 40.3638 39.24 39.2402L68.24 10.2402C69.2998 9.10284 69.8768 7.59846 69.8494 6.04406C69.822 4.48965 69.1923 3.00657 68.093 1.90726C66.9937 0.807959 65.5106 0.178263 63.9562 0.150837C62.4018 0.123411 60.8974 0.700397 59.76 1.76024L35 26.5102L10.24 1.76024C9.10259 0.700397 7.59822 0.123411 6.04381 0.150837C4.4894 0.178263 3.00632 0.807959 1.90702 1.90726C0.807714 3.00657 0.178019 4.48965 0.150593 6.04406C0.123167 7.59846 0.700153 9.10284 1.75999 10.2402L30.76 39.2402Z' /></svg>") no-repeat 50%;border:0;transition:transform .25s ease;width:20px}.dnd-sortable-tree_folder_tree-item-collapse_button-collapsed{transform:rotate(-90deg)}.dnd-sortable-tree_folder_handle{align-self:stretch;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' width='12'><path d='M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z'></path></svg>") no-repeat 50%;cursor:pointer;width:20px}`;v0(sA);var uA=["clone","depth","disableSelection","disableInteraction","disableSorting","ghost","handleProps","indentationWidth","indicator","collapsed","onCollapse","onRemove","item","wrapperRef","style","isLast","parent","hideCollapseButton","childCount","manualDrag","showDragHandle","disableCollapseOnItemClick","className","contentClassName","isOver","isOverParent"];function y0(e){return e?[].concat(y0(e.parent),[e]):[]}var lA=A.forwardRef(function(e,t){var n=e.clone,i=e.disableSelection,a=e.disableInteraction,s=e.disableSorting,u=e.ghost,l=e.handleProps,f=e.collapsed,d=e.onCollapse,h=e.wrapperRef,p=e.style,b=e.isLast,E=e.parent,x=e.hideCollapseButton,w=e.childCount,m=e.manualDrag,D=e.showDragHandle,F=e.disableCollapseOnItemClick,I=e.className,C=e.contentClassName,v=Ql(e,uA),S=y0(E);return A.createElement("li",Object.assign({},v,{className:Bl("dnd-sortable-tree_folder_wrapper",n&&"dnd-sortable-tree_folder_clone",u&&"dnd-sortable-tree_folder_ghost",i&&"dnd-sortable-tree_folder_disable-selection",a&&"dnd-sortable-tree_folder_disable-interaction",I),ref:h,style:p}),S.map(function(O){return A.createElement("div",{key:O.id,className:O.isLast?"dnd-sortable-tree_folder_line-last":"dnd-sortable-tree_folder_line"})}),A.createElement("div",{className:b?"dnd-sortable-tree_folder_line-to_self-last":"dnd-sortable-tree_folder_line-to_self"}),m&&D&&!s&&A.createElement("div",Object.assign({className:"dnd-sortable-tree_folder_handle"},l)),!m&&!x&&!!d&&!!w&&A.createElement("button",{onClick:function(B){B.preventDefault(),d==null||d()},className:Bl("dnd-sortable-tree_folder_tree-item-collapse_button",f&&"dnd-sortable-tree_folder_tree-item-collapse_button-collapsed")}),A.createElement("div",Object.assign({className:Bl("dnd-sortable-tree_folder_tree-item",C),ref:t},m?void 0:l,{onClick:F?void 0:d}),e.children))}),cA=typeof window<"u"?/iPad|iPhone|iPod/.test(navigator.platform):!1;function fA(e,t){return Math.round(e/t)}var ec=function(){};function dA(e,t,n,i,a,s,u){var l,f,d;if(ec(),ec=function(){},!t||!n)return null;var h=e.findIndex(function(he){var fe=he.id;return fe===n}),p=e.findIndex(function(he){var fe=he.id;return fe===t}),b=e[p];if(s){var E,x,w,m,D,F=e[h];return F=le(F,b,u),F===void 0?null:{depth:(E=(x=F)==null?void 0:x.depth)!=null?E:1,parentId:(w=(m=F)==null?void 0:m.id)!=null?w:null,parent:F,isLast:!!((D=F)!=null&&D.isLast)}}var I=Xo(e,p,h),C=I[h-1],v=I[h+1],S=fA(i,a),O=b.depth+S,B=O,G=te(B-1,C),q=le(G,b,u);if(q===void 0)return null;var V=((l=q==null?void 0:q.depth)!=null?l:-1)+1,ue=(f=v==null?void 0:v.depth)!=null?f:0;if(ue>V)return null;B>=V?B=V:B<ue&&(B=ue);var ne=((d=v==null?void 0:v.depth)!=null?d:-1)<B;return q&&q.isLast&&(ec=function(){q.isLast=!0},q.isLast=!1),{depth:B,parentId:xe(),parent:q,isLast:ne};function te(he,fe){if(!fe)return null;for(;he<fe.depth;){if(fe.parent===null)return null;fe=fe.parent}return fe}function le(he,fe,Ie){if(!he){var M=typeof Ie=="function"?Ie(fe):Ie;return M===!1?void 0:he}var K=typeof he.canHaveChildren=="function"?he.canHaveChildren(fe):he.canHaveChildren;return K===!1?le(he.parent,b,Ie):he}function xe(){var he;if(B===0||!C)return null;if(B===C.depth)return C.parentId;if(B>C.depth)return C.id;var fe=(he=I.slice(0,h).reverse().find(function(Ie){return Ie.depth===B}))==null?void 0:he.parentId;return fe??null}}function b0(e,t,n,i){return t===void 0&&(t=null),n===void 0&&(n=0),i===void 0&&(i=null),e.reduce(function(a,s,u){var l,f=vr({},s,{parentId:t,depth:n,index:u,isLast:e.length===u+1,parent:i});return[].concat(a,[f],b0((l=s.children)!=null?l:[],s.id,n+1,f))},[])}function tc(e){return b0(e)}function hA(e){for(var t,n,i={id:"root",children:[]},a=(t={},t[i.id]=i,t),s=e.map(function(w){return vr({},w,{children:[]})}),u=bs(s),l;!(l=u()).done;){var f,d,h,p=l.value,b=p.id,E=(f=p.parentId)!=null?f:i.id,x=(d=a[E])!=null?d:pA(s,E);p.parent=null,a[b]=p,x==null||(h=x.children)==null||h.push(p)}return(n=i.children)!=null?n:[]}function pA(e,t){return e.find(function(n){var i=n.id;return i===t})}function xs(e,t){for(var n=bs(e),i;!(i=n()).done;){var a=i.value,s=a.id,u=a.children;if(s===t)return a;if(u!=null&&u.length){var l=xs(u,t);if(l)return l}}}function x0(e,t){for(var n=[],i=bs(e),a;!(a=i()).done;){var s,u=a.value;u.id!==t&&((s=u.children)!=null&&s.length&&(u.children=x0(u.children,t)),n.push(u))}return n}function E0(e,t,n,i){for(var a=bs(e),s;!(s=a()).done;){var u,l=s.value;if(l.id===t){l[n]=i(l[n]);continue}(u=l.children)!=null&&u.length&&(l.children=E0(l.children,t,n,i))}return[].concat(e)}function w0(e,t){return t===void 0&&(t=0),e.reduce(function(n,i){var a=i.children;return a!=null&&a.length?w0(a,n+1):n+1},t)}function mA(e,t){var n;if(!t)return 0;var i=xs(e,t);return i?w0((n=i.children)!=null?n:[]):0}function gA(e,t){var n=[].concat(t);return e.filter(function(i){if(i.parentId&&n.includes(i.parentId)){var a;return(a=i.children)!=null&&a.length&&n.push(i.id),!1}return!0})}function C0(e,t){return!e||!t?!1:e.id===t?!0:C0(e.parent,t)}var vA=["id","depth","isLast","TreeItemComponent","parent","disableSorting","sortableProps","keepGhostInPlace"],yA=function(t){var n=t.isSorting,i=t.isDragging;return!(n||i)},bA=function(t){var n=t.id,i=t.depth,a=t.isLast,s=t.TreeItemComponent,u=t.parent,l=t.disableSorting,f=t.sortableProps,d=t.keepGhostInPlace,h=Ql(t,vA),p=rA(vr({id:n,animateLayoutChanges:yA,disabled:l},f)),b=p.attributes,E=p.isDragging,x=p.isSorting,w=p.listeners,m=p.setDraggableNodeRef,D=p.setDroppableNodeRef,F=p.transform,I=p.transition,C=p.isOver,v=p.over,S=A.useMemo(function(){return!!(v!=null&&v.id)&&C0(u,v.id)},[v==null?void 0:v.id]),O={transform:nr.Translate.toString(F),transition:I??void 0},B=A.useMemo(function(){if(h.onCollapse)return function(){return h.onCollapse==null?void 0:h.onCollapse(h.item.id)}},[h.item.id,h.onCollapse]),G=A.useMemo(function(){if(h.onRemove)return function(){return h.onRemove==null?void 0:h.onRemove(h.item.id)}},[h.item.id,h.onRemove]);return A.createElement(s,Object.assign({},h,{ref:m,wrapperRef:D,style:d?void 0:O,depth:i,ghost:E,disableSelection:cA,disableInteraction:x,isLast:a,parent:u,handleProps:vr({},b,w),onCollapse:B,onRemove:G,disableSorting:l,isOver:C,isOverParent:S}))},xA=A.memo(bA),EA=function(t){var n=function(a){var s=a.activeIndex,u=a.activeNodeRect,l=a.index,f=a.rects,d=a.overIndex;return t(s,d)?YC({activeIndex:s,activeNodeRect:u,index:l,rects:f,overIndex:d}):null};return n},wA=["items","indicator","indentationWidth","onItemsChanged","TreeItemComponent","pointerSensorOptions","disableSorting","dropAnimation","dndContextProps","sortableProps","keepGhostInPlace","canRootHaveChildren"],CA={activationConstraint:{distance:3}},AA={keyframes:function(t){var n=t.transform;return[{opacity:1,transform:nr.Transform.toString(n.initial)},{opacity:0,transform:nr.Transform.toString(vr({},n.final,{x:n.final.x+5,y:n.final.y+5}))}]},easing:"ease-out",sideEffects:function(t){var n=t.active;n.node.animate([{opacity:0},{opacity:1}],{duration:Zl.duration,easing:Zl.easing})}};function SA(e){var t=e.items,n=e.indicator,i=e.indentationWidth,a=i===void 0?20:i,s=e.onItemsChanged,u=e.TreeItemComponent,l=e.pointerSensorOptions,f=e.disableSorting,d=e.dropAnimation,h=e.dndContextProps,p=e.sortableProps,b=e.keepGhostInPlace,E=e.canRootHaveChildren,x=Ql(e,wA),w=A.useState(null),m=w[0],D=w[1],F=A.useState(null),I=F[0],C=F[1],v=A.useState(0),S=v[0],O=v[1],B=A.useState(null),G=B[0],q=B[1],V=A.useMemo(function(){var Z=tc(t),Y=Z.reduce(function(ee,Be){var ke=Be.children,Te=Be.collapsed,et=Be.id;return Te&&ke!=null&&ke.length?[].concat(ee,[et]):ee},[]),me=gA(Z,m?[m].concat(Y):Y);return me},[m,t]),ue=dA(V,m,I,S,a,b??!1,E),ne=A.useRef({items:V,offset:S}),te=Ow(Tw(Vl,l??CA)),le=A.useMemo(function(){return V.map(function(Z){var Y=Z.id;return Y})},[V]),xe=m?V.find(function(Z){var Y=Z.id;return Y===m}):null;A.useEffect(function(){ne.current={items:V,offset:S}},[V,S]);var he=A.useRef(t);he.current=t;var fe=A.useCallback(function(Z){var Y=xs(he.current,Z);s(x0(he.current,Z),{type:"removed",item:Y})},[s]),Ie=A.useCallback(function(Y){var me=xs(he.current,Y);s(E0(he.current,Y,"collapsed",function(ee){return!ee}),{type:me.collapsed?"collapsed":"expanded",item:me})},[s]),M=A.useMemo(function(){return{onDragStart:function(Y){var me=Y.active;return"Picked up "+me.id+"."},onDragMove:function(Y){var me=Y.active,ee=Y.over;return ae("onDragMove",me.id,ee==null?void 0:ee.id)},onDragOver:function(Y){var me=Y.active,ee=Y.over;return ae("onDragOver",me.id,ee==null?void 0:ee.id)},onDragEnd:function(Y){var me=Y.active,ee=Y.over;return ae("onDragEnd",me.id,ee==null?void 0:ee.id)},onDragCancel:function(Y){var me=Y.active;return"Moving was cancelled. "+me.id+" was dropped in its original position."}}},[]),K=A.useCallback(function(){return!!ue},[ue]);return A.createElement(OC,Object.assign({accessibility:{announcements:M},sensors:f?void 0:te,modifiers:n?TA:void 0,collisionDetection:Nw,onDragStart:f?void 0:pe,onDragMove:f?void 0:j,onDragOver:f?void 0:z,onDragEnd:f?void 0:J,onDragCancel:f?void 0:de},h),A.createElement(XC,{items:le,strategy:f?void 0:EA(K)},V.map(function(Z){var Y,me,ee;return A.createElement(xA,Object.assign({},x,{key:Z.id,id:Z.id,item:Z,childCount:(Y=Z.children)==null?void 0:Y.length,depth:Z.id===m&&ue&&!b?ue.depth:Z.depth,indentationWidth:a,indicator:n,collapsed:!!(Z.collapsed&&((me=Z.children)!=null&&me.length)),onCollapse:(ee=Z.children)!=null&&ee.length?Ie:void 0,onRemove:fe,isLast:Z.id===m&&ue?ue.isLast:Z.isLast,parent:Z.id===m&&ue?ue.parent:Z.parent,TreeItemComponent:u,disableSorting:f,sortableProps:p,keepGhostInPlace:b}))}),bn.createPortal(A.createElement(qC,{dropAnimation:d===void 0?AA:d},m&&xe?A.createElement(u,Object.assign({},x,{item:xe,children:[],depth:xe.depth,clone:!0,childCount:mA(t,m)+1,indentationWidth:a,isLast:!1,parent:xe.parent,isOver:!1,isOverParent:!1})):null),document.body)));function pe(Z){var Y=Z.active.id;D(Y),C(Y);var me=V.find(function(ee){var Be=ee.id;return Be===Y});me&&q({parentId:me.parentId,overId:Y}),document.body.style.setProperty("cursor","grabbing")}function j(Z){var Y=Z.delta;O(Y.x)}function z(Z){var Y,me=Z.over;C((Y=me==null?void 0:me.id)!=null?Y:null)}function J(Z){var Y=Z.active,me=Z.over;if(ve(),ue&&me){var ee=ue.depth,Be=ue.parentId;if(b&&me.id===Y.id)return;var ke=tc(t),Te=ke.findIndex(function(ct){var bt=ct.id;return bt===me.id}),et=ke.findIndex(function(ct){var bt=ct.id;return bt===Y.id}),Ye=ke[et];ke[et]=vr({},Ye,{depth:ee,parentId:Be});var Zt=Ye.parent,zt=Xo(ke,et,Te),tt=hA(zt),Ke=zt.find(function(ct){return ct.id===Y.id}),Ce=Ke.parentId?zt.find(function(ct){return ct.id===Ke.parentId}):null;setTimeout(function(){return s(tt,{type:"dropped",draggedItem:Ke,draggedFromParent:Zt,droppedToParent:Ce})})}}function de(){ve()}function ve(){C(null),D(null),O(0),q(null),document.body.style.setProperty("cursor","")}function ae(Z,Y,me){if(me&&ue){if(Z!=="onDragEnd"){if(G&&ue.parentId===G.parentId&&me===G.overId)return;q({parentId:ue.parentId,overId:me})}var ee=tc(t),Be=ee.findIndex(function(ct){var bt=ct.id;return bt===me}),ke=ee.findIndex(function(ct){var bt=ct.id;return bt===Y}),Te=Xo(ee,ke,Be),et=Te[Be-1],Ye,Zt=Z==="onDragEnd"?"dropped":"moved",zt=Z==="onDragEnd"?"dropped":"nested";if(et)if(ue.depth>et.depth)Ye=Y+" was "+zt+" under "+et.id+".";else{for(var Ke=et,Ce=function(){var bt=Ke.parentId;Ke=Te.find(function(Qt){var Me=Qt.id;return Me===bt})};Ke&&ue.depth<Ke.depth;)Ce();Ke&&(Ye=Y+" was "+Zt+" after "+Ke.id+".")}else{var tt=Te[Be+1];Ye=Y+" was "+Zt+" before "+tt.id+"."}return Ye}}}var _A=function(t){var n=t.transform;return vr({},n,{y:n.y-25})},TA=[_A];const OA=({props:e,path:t,datafield:n})=>{var I,C;const i=A.useContext(dt),a=A.useContext(ot);let{formData:s,formDataPath:u}=$o({currentPath:t,datafield:n,dataLocation:e.dataLocation,defaultValue:e.defaultFieldValue,globalDataContext:i,templateContext:a});if(s===void 0)return null;const l=e.itemTemplate??null,f=ut({valueToEvaluate:e.treeRootPath??void 0,globalDataContext:i,templateContext:a}),d=e.maxDepth,h=typeof f!="string"?!0:e.maxDepthIsAbsolute??!0,p=e.keepBaseItem??!1;let b=0,E=null,x;if(typeof f=="string"&&f.length>0){const v=f.split(".");let S=E,O=s,B=u;for(;v.length>0;){const G=Number.parseInt(v.shift());if(Number.isNaN(G)||(S=(s==null?void 0:s.id)??null,O=s,B=u,x=G,E=(I=s[G])==null?void 0:I.id,s=((C=s[G])==null?void 0:C.children)??void 0,u=u+"."+G+".children",s===void 0))return null;++b}p&&(E=S,s=O,u=B,s=[s[x]])}const w=v=>{let S=v,O=u;if(b>0){S=Fr.cloneDeep(S);const B=(G,q=0)=>{var V;q===0&&(G.parentId=E),G.depth+=b,(V=G.children)==null||V.forEach(ue=>{B(ue,q+1)})};S.forEach(G=>{B(G,0)})}f!==void 0&&p&&(S=v[0],O=u+"."+x),i.updateData(S,O)},m=A.forwardRef((v,S)=>{const O=v.item.value??{},B=[];let G=v.item;for(B.push(G.index);G.parent;)B.push("children"),G=G.parent,B.push(G.index);B.reverse();const V=u+"."+B.join(".")+".value";O._treeItemDepth=v.item.depth,O._treeItemIndex=v.item.index,O._treeItemIndex1=v.item.index+1;const ue={};return ue._treeAddCollapseButton=()=>!!v.onCollapse&&!!v.childCount&&R.jsx("button",{onClick:ne=>{var te;ne.preventDefault(),(te=v.onCollapse)==null||te.call(v)},className:dw("dnd-sortable-tree_folder_tree-item-collapse_button",v.collapsed&&"dnd-sortable-tree_folder_tree-item-collapse_button-collapsed")}),d&&(h?v.item.canHaveChildren=b+v.item.depth<d:v.item.canHaveChildren=v.item.depth<d),R.jsx(lA,{...v,"data-htmlbuilder-tree-item-children-count":v.childCount||"0","data-htmlbuilder-tree-item-collapsed":v.collapsed,"data-htmlbuilder-tree-item-depth":v.item.depth,"data-htmlbuilder-tree-item-depth-list":DA(v.item.depth),"data-htmlbuilder-tree-item-index":v.item.index,"data-htmlbuilder-tree-item-index1":v.item.index+1,"data-htmlbuilder-tree-item-is-last":v.isLast,ref:S,children:R.jsx(ot.Provider,{value:{templateData:O,templatePath:V,sortableTreeData:ue},children:R.jsx(ht,{props:l,currentData:O})})})}),D=Fr.cloneDeep(s),F=e.sortableTreeOptions??{};return R.jsx(Mt,{...e,children:R.jsx(SA,{...F,items:D,onItemsChanged:w,TreeItemComponent:m})})};function DA(e){const t=[];let n=e??0;for(;n>=0;)t.push(n),--n;return t.reverse().join(" ")}const IA=({props:e})=>{const t=A.useContext(dt),n=A.useContext(ot);let i=!1;if(e.content!==void 0){const a=ut({valueToEvaluate:e.content,globalDataContext:t,templateContext:n});switch(e.format){case"roman-upper":i=A0(a);break;case"roman-lower":i=A0(a,!0);break;case"latin-upper":i=nc(a);break;case"latin-lower":i=nc(a,!0);break}}return R.jsx(Mt,{...e,children:R.jsx(R.Fragment,{children:i!==!1&&i})})};function nc(e,t=!1){if(e<1)return!1;let n=e%26,i=e/26|0,a=n?String.fromCharCode(64+n):(--i,"Z");const s=i?nc(i)+a:a;return t?s.toLowerCase():s}function A0(e,t=!1){if(e<1)return!1;const i=[["M",1e3],["CM",900],["D",500],["CD",400],["C",100],["XC",90],["L",50],["XL",40],["X",10],["IX",9],["V",5],["IV",4],["I",1]].reduce((a,[s,u])=>(a+=s.repeat(Math.floor(e/u)),e=e%u,a),"");return t?i.toLowerCase():i}const FA=({currentData:e,datafield:t,path:n,props:i})=>{const a=A.useContext(dt),s=A.useContext(ot),u=i.dynamicOptions??void 0;let l;u?l=ut({valueToEvaluate:u,globalDataContext:a,templateContext:s})??[]:l=i.options??[];let f;const d=i.defaultFieldValue??void 0,h=i.dataLocation??void 0;h?f=ut({globalDataContext:a,templateContext:s,valueToEvaluate:h})??d:((s.templateData[t]??void 0)===void 0&&(s.templateData=typeof s.templateData=="object"?s.templateData:{},s.templateData[t]=d),f=s.templateData[t]);let p=l.find(b=>b.value===f);if(!p||!p.label){if(!f)return null;p=f}return R.jsx(Mt,{...i,children:R.jsx(ht,{currentData:e,datafield:t,path:n,props:p.label})})},PA=({currentData:e,path:t,props:n})=>{const i=A.useContext(dt),a=A.useContext(ot),[s,u]=A.useState(!0),l=zn(n.attributes),{showBoolPath:f}=n,d=typeof f!="string";l.show=d?s:ut({valueToEvaluate:(n==null?void 0:n.showBoolPath)??!1,globalDataContext:i,templateContext:a});const h=()=>{if(d){u(!1);return}const b=Pn({dataLocation:f,currentPath:a.templatePath,globalDataContext:i,templateContext:a});i.updateData(void 0,b)},p=l.className?l.className.split(" "):[];return p.push("reactive-json"),l.className=p.join(" "),R.jsx(Mt,{...n,children:R.jsxs(ts,{...l,onHide:h,children:[(n.headerTitle||n.closeButton)&&R.jsx(ts.Header,{closeButton:n.closeButton,children:R.jsx(ts.Title,{children:R.jsx(ht,{currentData:(e==null?void 0:e.headerTitle)??void 0,datafield:"headerTitle",path:(t??"")+".headerTitle",props:n==null?void 0:n.headerTitle})})}),n.body&&R.jsx(ts.Body,{children:R.jsx(ht,{currentData:(e==null?void 0:e.body)??void 0,datafield:"body",path:(t??"")+".body",props:n==null?void 0:n.body})})]})})},kA=({props:e,currentData:t})=>R.jsx(R.Fragment,{children:t});var Jo={},$i={},Es={},oi={},ai={},rc={},S0;function _0(){return S0||(S0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(i){i.Root="root",i.Text="text",i.Directive="directive",i.Comment="comment",i.Script="script",i.Style="style",i.Tag="tag",i.CDATA="cdata",i.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(i){return i.type===t.Tag||i.type===t.Script||i.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype}(rc)),rc}var We={},T0;function O0(){if(T0)return We;T0=1;var e=We&&We.__extends||function(){var v=function(S,O){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,G){B.__proto__=G}||function(B,G){for(var q in G)Object.prototype.hasOwnProperty.call(G,q)&&(B[q]=G[q])},v(S,O)};return function(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");v(S,O);function B(){this.constructor=S}S.prototype=O===null?Object.create(O):(B.prototype=O.prototype,new B)}}(),t=We&&We.__assign||function(){return t=Object.assign||function(v){for(var S,O=1,B=arguments.length;O<B;O++){S=arguments[O];for(var G in S)Object.prototype.hasOwnProperty.call(S,G)&&(v[G]=S[G])}return v},t.apply(this,arguments)};Object.defineProperty(We,"__esModule",{value:!0}),We.cloneNode=We.hasChildren=We.isDocument=We.isDirective=We.isComment=We.isText=We.isCDATA=We.isTag=We.Element=We.Document=We.CDATA=We.NodeWithChildren=We.ProcessingInstruction=We.Comment=We.Text=We.DataNode=We.Node=void 0;var n=_0(),i=function(){function v(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(v.prototype,"parentNode",{get:function(){return this.parent},set:function(S){this.parent=S},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"previousSibling",{get:function(){return this.prev},set:function(S){this.prev=S},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"nextSibling",{get:function(){return this.next},set:function(S){this.next=S},enumerable:!1,configurable:!0}),v.prototype.cloneNode=function(S){return S===void 0&&(S=!1),I(this,S)},v}();We.Node=i;var a=function(v){e(S,v);function S(O){var B=v.call(this)||this;return B.data=O,B}return Object.defineProperty(S.prototype,"nodeValue",{get:function(){return this.data},set:function(O){this.data=O},enumerable:!1,configurable:!0}),S}(i);We.DataNode=a;var s=function(v){e(S,v);function S(){var O=v!==null&&v.apply(this,arguments)||this;return O.type=n.ElementType.Text,O}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),S}(a);We.Text=s;var u=function(v){e(S,v);function S(){var O=v!==null&&v.apply(this,arguments)||this;return O.type=n.ElementType.Comment,O}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),S}(a);We.Comment=u;var l=function(v){e(S,v);function S(O,B){var G=v.call(this,B)||this;return G.name=O,G.type=n.ElementType.Directive,G}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),S}(a);We.ProcessingInstruction=l;var f=function(v){e(S,v);function S(O){var B=v.call(this)||this;return B.children=O,B}return Object.defineProperty(S.prototype,"firstChild",{get:function(){var O;return(O=this.children[0])!==null&&O!==void 0?O:null},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"childNodes",{get:function(){return this.children},set:function(O){this.children=O},enumerable:!1,configurable:!0}),S}(i);We.NodeWithChildren=f;var d=function(v){e(S,v);function S(){var O=v!==null&&v.apply(this,arguments)||this;return O.type=n.ElementType.CDATA,O}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),S}(f);We.CDATA=d;var h=function(v){e(S,v);function S(){var O=v!==null&&v.apply(this,arguments)||this;return O.type=n.ElementType.Root,O}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),S}(f);We.Document=h;var p=function(v){e(S,v);function S(O,B,G,q){G===void 0&&(G=[]),q===void 0&&(q=O==="script"?n.ElementType.Script:O==="style"?n.ElementType.Style:n.ElementType.Tag);var V=v.call(this,G)||this;return V.name=O,V.attribs=B,V.type=q,V}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"tagName",{get:function(){return this.name},set:function(O){this.name=O},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"attributes",{get:function(){var O=this;return Object.keys(this.attribs).map(function(B){var G,q;return{name:B,value:O.attribs[B],namespace:(G=O["x-attribsNamespace"])===null||G===void 0?void 0:G[B],prefix:(q=O["x-attribsPrefix"])===null||q===void 0?void 0:q[B]}})},enumerable:!1,configurable:!0}),S}(f);We.Element=p;function b(v){return(0,n.isTag)(v)}We.isTag=b;function E(v){return v.type===n.ElementType.CDATA}We.isCDATA=E;function x(v){return v.type===n.ElementType.Text}We.isText=x;function w(v){return v.type===n.ElementType.Comment}We.isComment=w;function m(v){return v.type===n.ElementType.Directive}We.isDirective=m;function D(v){return v.type===n.ElementType.Root}We.isDocument=D;function F(v){return Object.prototype.hasOwnProperty.call(v,"children")}We.hasChildren=F;function I(v,S){S===void 0&&(S=!1);var O;if(x(v))O=new s(v.data);else if(w(v))O=new u(v.data);else if(b(v)){var B=S?C(v.children):[],G=new p(v.name,t({},v.attribs),B);B.forEach(function(ne){return ne.parent=G}),v.namespace!=null&&(G.namespace=v.namespace),v["x-attribsNamespace"]&&(G["x-attribsNamespace"]=t({},v["x-attribsNamespace"])),v["x-attribsPrefix"]&&(G["x-attribsPrefix"]=t({},v["x-attribsPrefix"])),O=G}else if(E(v)){var B=S?C(v.children):[],q=new d(B);B.forEach(function(te){return te.parent=q}),O=q}else if(D(v)){var B=S?C(v.children):[],V=new h(B);B.forEach(function(te){return te.parent=V}),v["x-mode"]&&(V["x-mode"]=v["x-mode"]),O=V}else if(m(v)){var ue=new l(v.name,v.data);v["x-name"]!=null&&(ue["x-name"]=v["x-name"],ue["x-publicId"]=v["x-publicId"],ue["x-systemId"]=v["x-systemId"]),O=ue}else throw new Error("Not implemented yet: ".concat(v.type));return O.startIndex=v.startIndex,O.endIndex=v.endIndex,v.sourceCodeLocation!=null&&(O.sourceCodeLocation=v.sourceCodeLocation),O}We.cloneNode=I;function C(v){for(var S=v.map(function(B){return I(B,!0)}),O=1;O<S.length;O++)S[O].prev=S[O-1],S[O-1].next=S[O];return S}return We}var D0;function I0(){return D0||(D0=1,function(e){var t=ai&&ai.__createBinding||(Object.create?function(l,f,d,h){h===void 0&&(h=d);var p=Object.getOwnPropertyDescriptor(f,d);(!p||("get"in p?!f.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(l,h,p)}:function(l,f,d,h){h===void 0&&(h=d),l[h]=f[d]}),n=ai&&ai.__exportStar||function(l,f){for(var d in l)d!=="default"&&!Object.prototype.hasOwnProperty.call(f,d)&&t(f,l,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var i=_0(),a=O0();n(O0(),e);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function l(f,d,h){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof d=="function"&&(h=d,d=s),typeof f=="object"&&(d=f,f=void 0),this.callback=f??null,this.options=d??s,this.elementCB=h??null}return l.prototype.onparserinit=function(f){this.parser=f},l.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},l.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},l.prototype.onerror=function(f){this.handleCallback(f)},l.prototype.onclosetag=function(){this.lastNode=null;var f=this.tagStack.pop();this.options.withEndIndices&&(f.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(f)},l.prototype.onopentag=function(f,d){var h=this.options.xmlMode?i.ElementType.Tag:void 0,p=new a.Element(f,d,void 0,h);this.addNode(p),this.tagStack.push(p)},l.prototype.ontext=function(f){var d=this.lastNode;if(d&&d.type===i.ElementType.Text)d.data+=f,this.options.withEndIndices&&(d.endIndex=this.parser.endIndex);else{var h=new a.Text(f);this.addNode(h),this.lastNode=h}},l.prototype.oncomment=function(f){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment){this.lastNode.data+=f;return}var d=new a.Comment(f);this.addNode(d),this.lastNode=d},l.prototype.oncommentend=function(){this.lastNode=null},l.prototype.oncdatastart=function(){var f=new a.Text(""),d=new a.CDATA([f]);this.addNode(d),f.parent=d,this.lastNode=f},l.prototype.oncdataend=function(){this.lastNode=null},l.prototype.onprocessinginstruction=function(f,d){var h=new a.ProcessingInstruction(f,d);this.addNode(h)},l.prototype.handleCallback=function(f){if(typeof this.callback=="function")this.callback(f,this.dom);else if(f)throw f},l.prototype.addNode=function(f){var d=this.tagStack[this.tagStack.length-1],h=d.children[d.children.length-1];this.options.withStartIndices&&(f.startIndex=this.parser.startIndex),this.options.withEndIndices&&(f.endIndex=this.parser.endIndex),d.children.push(f),h&&(f.prev=h,h.next=f),f.parent=d,this.lastNode=null},l}();e.DomHandler=u,e.default=u}(ai)),ai}var ic={},F0;function NA(){return F0||(F0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,n){return t[n.toLowerCase()]=n,t},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")}(ic)),ic}var P0;function k0(){if(P0)return oi;P0=1,Object.defineProperty(oi,"__esModule",{value:!0}),oi.formatAttributes=i,oi.escapeSpecialCharacters=s,oi.revertEscapedCharacters=u,oi.formatDOM=l;var e=I0(),t=NA();function n(f){return t.CASE_SENSITIVE_TAG_NAMES_MAP[f]}function i(f){for(var d={},h=0,p=f.length;h<p;h++){var b=f[h];d[b.name]=b.value}return d}function a(f){f=f.toLowerCase();var d=n(f);return d||f}function s(f){return f.replace(t.CARRIAGE_RETURN_REGEX,t.CARRIAGE_RETURN_PLACEHOLDER)}function u(f){return f.replace(t.CARRIAGE_RETURN_PLACEHOLDER_REGEX,t.CARRIAGE_RETURN)}function l(f,d,h){d===void 0&&(d=null);for(var p=[],b,E=0,x=f.length;E<x;E++){var w=f[E];switch(w.nodeType){case 1:{var m=a(w.nodeName);b=new e.Element(m,i(w.attributes)),b.children=l(m==="template"?w.content.childNodes:w.childNodes,b);break}case 3:b=new e.Text(u(w.nodeValue));break;case 8:b=new e.Comment(w.nodeValue);break;default:continue}var D=p[E-1]||null;D&&(D.next=b),b.parent=d,b.prev=D,b.next=null,p.push(b)}return h&&(b=new e.ProcessingInstruction(h.substring(0,h.indexOf(" ")).toLowerCase(),h),b.next=p[0]||null,b.parent=d,p.unshift(b),p[1]&&(p[1].prev=p[0])),p}return oi}var N0;function RA(){if(N0)return Es;N0=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.default=w;var e=k0(),t="html",n="head",i="body",a=/<([a-zA-Z]+[0-9]?)/,s=/<head[^]*>/i,u=/<body[^]*>/i,l=function(m,D){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},f=function(m,D){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},d=typeof window=="object"&&window.DOMParser;if(typeof d=="function"){var h=new d,p="text/html";f=function(m,D){return D&&(m="<".concat(D,">").concat(m,"</").concat(D,">")),h.parseFromString(m,p)},l=f}if(typeof document=="object"&&document.implementation){var b=document.implementation.createHTMLDocument();l=function(m,D){if(D){var F=b.documentElement.querySelector(D);return F&&(F.innerHTML=m),b}return b.documentElement.innerHTML=m,b}}var E=typeof document=="object"&&document.createElement("template"),x;E&&E.content&&(x=function(m){return E.innerHTML=m,E.content.childNodes});function w(m){var D,F;m=(0,e.escapeSpecialCharacters)(m);var I=m.match(a),C=I&&I[1]?I[1].toLowerCase():"";switch(C){case t:{var v=f(m);if(!s.test(m)){var S=v.querySelector(n);(D=S==null?void 0:S.parentNode)===null||D===void 0||D.removeChild(S)}if(!u.test(m)){var S=v.querySelector(i);(F=S==null?void 0:S.parentNode)===null||F===void 0||F.removeChild(S)}return v.querySelectorAll(t)}case n:case i:{var O=l(m).querySelectorAll(C);return u.test(m)&&s.test(m)?O[0].parentNode.childNodes:O}default:{if(x)return x(m);var S=l(m,i).querySelector(i);return S.childNodes}}}return Es}var R0;function LA(){if(R0)return $i;R0=1;var e=$i&&$i.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty($i,"__esModule",{value:!0}),$i.default=a;var t=e(RA()),n=k0(),i=/<(![a-zA-Z\s]+)>/;function a(s){if(typeof s!="string")throw new TypeError("First argument must be a string");if(!s)return[];var u=s.match(i),l=u?u[1]:void 0;return(0,n.formatDOM)((0,t.default)(s),null,l)}return $i}var ws={},Nn={},Zo={},L0;function BA(){if(L0)return Zo;L0=1;var e=0;Zo.SAME=e;var t=1;return Zo.CAMELCASE=t,Zo.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},Zo}var B0;function MA(){if(B0)return Nn;B0=1;const e=0,t=1,n=2,i=3,a=4,s=5,u=6;function l(v){return d.hasOwnProperty(v)?d[v]:null}function f(v,S,O,B,G,q,V){this.acceptsBooleans=S===n||S===i||S===a,this.attributeName=B,this.attributeNamespace=G,this.mustUseProperty=O,this.propertyName=v,this.type=S,this.sanitizeURL=q,this.removeEmptyString=V}const d={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(v=>{d[v]=new f(v,e,!1,v,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([v,S])=>{d[v]=new f(v,t,!1,S,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(v=>{d[v]=new f(v,n,!1,v.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(v=>{d[v]=new f(v,n,!1,v,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"].forEach(v=>{d[v]=new f(v,i,!1,v.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(v=>{d[v]=new f(v,i,!0,v,null,!1,!1)}),["capture","download"].forEach(v=>{d[v]=new f(v,a,!1,v,null,!1,!1)}),["cols","rows","size","span"].forEach(v=>{d[v]=new f(v,u,!1,v,null,!1,!1)}),["rowSpan","start"].forEach(v=>{d[v]=new f(v,s,!1,v.toLowerCase(),null,!1,!1)});const p=/[\-\:]([a-z])/g,b=v=>v[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"].forEach(v=>{const S=v.replace(p,b);d[S]=new f(S,t,!1,v,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(v=>{const S=v.replace(p,b);d[S]=new f(S,t,!1,v,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(v=>{const S=v.replace(p,b);d[S]=new f(S,t,!1,v,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(v=>{d[v]=new f(v,t,!1,v.toLowerCase(),null,!1,!1)});const E="xlinkHref";d[E]=new f("xlinkHref",t,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(v=>{d[v]=new f(v,t,!1,v.toLowerCase(),null,!0,!0)});const{CAMELCASE:x,SAME:w,possibleStandardNames:m}=BA(),F=":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",I=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+F+"]*$")),C=Object.keys(m).reduce((v,S)=>{const O=m[S];return O===w?v[S]=S:O===x?v[S.toLowerCase()]=S:v[S]=O,v},{});return Nn.BOOLEAN=i,Nn.BOOLEANISH_STRING=n,Nn.NUMERIC=s,Nn.OVERLOADED_BOOLEAN=a,Nn.POSITIVE_NUMERIC=u,Nn.RESERVED=e,Nn.STRING=t,Nn.getPropertyInfo=l,Nn.isCustomAttribute=I,Nn.possibleStandardNames=C,Nn}var Qo={},Ui={},oc,M0;function jA(){if(M0)return oc;M0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,l=/^\s+|\s+$/g,f=`
|
|
100
|
-
`,d="/",h="*",p="",b="comment",E="declaration";oc=function(w,m){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];m=m||{};var D=1,F=1;function I(ne){var te=ne.match(t);te&&(D+=te.length);var le=ne.lastIndexOf(f);F=~le?ne.length-le:F+ne.length}function C(){var ne={line:D,column:F};return function(te){return te.position=new v(ne),B(),te}}function v(ne){this.start=ne,this.end={line:D,column:F},this.source=m.source}v.prototype.content=w;function S(ne){var te=new Error(m.source+":"+D+":"+F+": "+ne);if(te.reason=ne,te.filename=m.source,te.line=D,te.column=F,te.source=w,!m.silent)throw te}function O(ne){var te=ne.exec(w);if(te){var le=te[0];return I(le),w=w.slice(le.length),te}}function B(){O(n)}function G(ne){var te;for(ne=ne||[];te=q();)te!==!1&&ne.push(te);return ne}function q(){var ne=C();if(!(d!=w.charAt(0)||h!=w.charAt(1))){for(var te=2;p!=w.charAt(te)&&(h!=w.charAt(te)||d!=w.charAt(te+1));)++te;if(te+=2,p===w.charAt(te-1))return S("End of comment missing");var le=w.slice(2,te-2);return F+=2,I(le),w=w.slice(te),F+=2,ne({type:b,comment:le})}}function V(){var ne=C(),te=O(i);if(te){if(q(),!O(a))return S("property missing ':'");var le=O(s),xe=ne({type:E,property:x(te[0].replace(e,p)),value:le?x(le[0].replace(e,p)):p});return O(u),xe}}function ue(){var ne=[];G(ne);for(var te;te=V();)te!==!1&&(ne.push(te),G(ne));return ne}return B(),ue()};function x(w){return w?w.replace(l,p):p}return oc}var j0;function $A(){if(j0)return Ui;j0=1;var e=Ui&&Ui.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.default=n;var t=e(jA());function n(i,a){var s=null;if(!i||typeof i!="string")return s;var u=(0,t.default)(i),l=typeof a=="function";return u.forEach(function(f){if(f.type==="declaration"){var d=f.property,h=f.value;l?a(d,h,f):h&&(s=s||{},s[d]=h)}}),s}return Ui}var ea={},$0;function UA(){if($0)return ea;$0=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(d){return!d||n.test(d)||e.test(d)},u=function(d,h){return h.toUpperCase()},l=function(d,h){return"".concat(h,"-")},f=function(d,h){return h===void 0&&(h={}),s(d)?d:(d=d.toLowerCase(),h.reactCompat?d=d.replace(a,l):d=d.replace(i,l),d.replace(t,u))};return ea.camelCase=f,ea}var ta,U0;function HA(){if(U0)return ta;U0=1;var e=ta&&ta.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e($A()),n=UA();function i(a,s){var u={};return!a||typeof a!="string"||(0,t.default)(a,function(l,f){l&&f&&(u[(0,n.camelCase)(l,s)]=f)}),u}return i.default=i,ta=i,ta}var H0;function W0(){return H0||(H0=1,function(e){var t=Qo&&Qo.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=s,e.setStyleProp=l;var n=A,i=t(HA()),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function s(h,p){return h.includes("-")?!a.has(h):!!(p&&typeof p.is=="string")}var u={reactCompat:!0};function l(h,p){if(typeof h=="string"){if(!h.trim()){p.style={};return}try{p.style=(0,i.default)(h,u)}catch{p.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var f=function(h){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(h.name)};e.canTextBeChildOfNode=f;var d=function(h){return h};e.returnFirstArg=d}(Qo)),Qo}var q0;function z0(){if(q0)return ws;q0=1,Object.defineProperty(ws,"__esModule",{value:!0}),ws.default=s;var e=MA(),t=W0(),n=["checked","value"],i=["input","select","textarea"],a={reset:!0,submit:!0};function s(l,f){l===void 0&&(l={});var d={},h=!!(l.type&&a[l.type]);for(var p in l){var b=l[p];if((0,e.isCustomAttribute)(p)){d[p]=b;continue}var E=p.toLowerCase(),x=u(E);if(x){var w=(0,e.getPropertyInfo)(x);switch(n.includes(x)&&i.includes(f)&&!h&&(x=u("default"+E)),d[x]=b,w&&w.type){case e.BOOLEAN:d[x]=!0;break;case e.OVERLOADED_BOOLEAN:b===""&&(d[x]=!0);break}continue}t.PRESERVE_CUSTOM_ATTRIBUTES&&(d[p]=b)}return(0,t.setStyleProp)(l.style,d),d}function u(l){return e.possibleStandardNames[l]}return ws}var Hi={},G0;function WA(){if(G0)return Hi;G0=1;var e=Hi&&Hi.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.default=s;var t=A,n=e(z0()),i=W0(),a={cloneElement:t.cloneElement,createElement:t.createElement,isValidElement:t.isValidElement};function s(l,f){f===void 0&&(f={});for(var d=[],h=typeof f.replace=="function",p=f.transform||i.returnFirstArg,b=f.library||a,E=b.cloneElement,x=b.createElement,w=b.isValidElement,m=l.length,D=0;D<m;D++){var F=l[D];if(h){var I=f.replace(F,D);if(w(I)){m>1&&(I=E(I,{key:I.key||D})),d.push(p(I,F,D));continue}}if(F.type==="text"){var C=!F.data.trim().length;if(C&&F.parent&&!(0,i.canTextBeChildOfNode)(F.parent)||f.trim&&C)continue;d.push(p(F.data,F,D));continue}var v=F,S={};u(v)?((0,i.setStyleProp)(v.attribs.style,v.attribs),S=v.attribs):v.attribs&&(S=(0,n.default)(v.attribs,v.name));var O=void 0;switch(F.type){case"script":case"style":F.children[0]&&(S.dangerouslySetInnerHTML={__html:F.children[0].data});break;case"tag":F.name==="textarea"&&F.children[0]?S.defaultValue=F.children[0].data:F.children&&F.children.length&&(O=s(F.children,f));break;default:continue}m>1&&(S.key=D),d.push(p(x(F.name,S,O),F,D))}return d.length===1?d[0]:d}function u(l){return i.PRESERVE_CUSTOM_ATTRIBUTES&&l.type==="tag"&&(0,i.isCustomComponent)(l.name,l.attribs)}return Hi}var V0;function qA(){return V0||(V0=1,function(e){var t=Jo&&Jo.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=l;var n=t(LA());e.htmlToDOM=n.default;var i=t(z0());e.attributesToProps=i.default;var a=t(WA());e.domToReact=a.default;var s=I0();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return s.Text}});var u={lowerCaseAttributeNames:!1};function l(f,d){if(typeof f!="string")throw new TypeError("First argument must be a string");return f?(0,a.default)((0,n.default)(f,(d==null?void 0:d.htmlparser2)||u),d):[]}}(Jo)),Jo}var zA=qA();const Y0=mo(zA),GA=Y0.default||Y0,VA=["abbr","acronym","b","blockquote","br","caption","code","div","em","h1","h2","h3","h4","h5","h6","i","li","ol","p","span","sup","strong","table","tbody","td","tfoot","th","thead","tr","ul"],YA=({props:e})=>{const t=A.useContext(ot),n=A.useContext(dt),i=ut({valueToEvaluate:e.content,templateContext:t,globalDataContext:n}),s=[...Array.isArray(e.htmlTagAllowList)?e.htmlTagAllowList:VA,...e.additionalAllowedTags??[]];return R.jsx(Mt,{...e,children:GA(i,{replace(u){if(u.type==="tag"&&s.indexOf(u.name)<0)return R.jsx(R.Fragment,{})}})})},KA=({props:e})=>{var n,i;const t=A.useContext(ot);return R.jsx(Mt,{...e,children:(i=(n=t.sortableTreeData)._treeAddCollapseButton)==null?void 0:i.call(n)})},XA=({currentData:e,path:t,props:n})=>{const i=A.useContext(dt),a=A.useContext(ot),s=zn(n.attributes);return R.jsx(Mt,{...n,children:R.jsx(Op,{...s,children:Array.isArray(n.tabs)&&n.tabs.map((u,l)=>{var d;const f=ii({attrs:u.attributes,globalDataContext:i,templateContext:a,options:{normalizeBeforeEvaluation:!0}});return A.createElement(WE,{...f,key:l},R.jsx(ht,{currentData:((d=e==null?void 0:e[l])==null?void 0:d.content)??void 0,datafield:"content",path:(t??"")+"."+l+".content",props:u==null?void 0:u.content}))})})})};function JA({props:e,currentData:t,path:n,bsComponent:i}){var u;const a=zn(e.attributes);if((u=e.attributes)!=null&&u["data-visually-hidden"])debugger;if(!i)return null;const s=i;return R.jsx(Mt,{...e,children:R.jsx(s,{...a,children:e.content&&R.jsx(ht,{currentData:t.content??void 0,datafield:"content",path:n+".content",props:e.content})})})}const ac=(e,...t)=>t.length?ac(e=e.replace(ac.token||"$token",t.shift()),...t):e,ZA=({templateContexts:e},t,...n)=>{const i=n.map(a=>ut({globalDataContext:e.globalDataContext,templateContext:e.templateContext,valueToEvaluate:a}));return ac(t,...i)},QA=(e,t)=>{if(typeof t=="string")return t;if(Array.isArray(t)){const[n,...i]=t;return ZA(e,n,...i)}return""},eS=({props:e})=>{const t=A.useContext(dt),n=A.useContext(ot),{context:i="global",jsonPathPattern:a}=e,s=i==="template"?ot:dt,u=A.useContext(s);if(!a)return null;const l=QA({templateContexts:{globalDataContext:t,templateContext:n}},a),f=i==="root"?u.getRootContext().templateData:u.templateData;return Ip.query(f,l).length},tS=e=>{var l,f;const t=A.useContext(dt),n=A.useContext(ot),i={globalDataContext:t,templateContext:n},{contextToFilter:a="global",filters:s=[]}=e.props,u=d=>{if(!d)return!0;for(const h of s){const p=(h==null?void 0:h.subjectsWithProperty)??void 0;if(!p||!d.hasOwnProperty(p))continue;if(!Ri(h,i,new Map([["whenFilterableData",({condition:E})=>{const w=E.whenFilterableData.split(".");let m=d;for(const D of w){const F=parseInt(D);if(m=m[isNaN(F)?D:F],m===void 0)return}return m}]])))return!1}return!0};switch(a){case"template":return n.templateData=Cs(n.templateData,u),n.templatePath=e.path,R.jsx(ot.Provider,{value:n,children:R.jsx(ht,{props:e.props.content,path:e.path+".content",datafield:"content",currentData:((l=e.currentData)==null?void 0:l.content)??void 0})});case"global":default:return t.templateData=Cs(t.templateData,u),R.jsx(dt.Provider,{value:t,children:R.jsx(ht,{props:e.props.content,path:e.path+".content",datafield:"content",currentData:((f=e.currentData)==null?void 0:f.content)??void 0})})}},Cs=(e,t)=>{if(Array.isArray(e)){const n={};return e.forEach((i,a)=>{t(i)&&(n[a]=Cs(i,t))}),n}else if(typeof e=="object"&&e!==null){const n={};for(const i in e)if(e.hasOwnProperty(i)){if(!t(e[i]))continue;n[i]=Cs(e[i],t)}return n}else return e},nS=({props:e,currentData:t,path:n})=>{const i=A.useContext(dt),a=A.useContext(ot),s=Array.isArray(e.delayedActions)?e.delayedActions:[],u={globalDataContext:i,templateContext:a};return A.useEffect(()=>{if(!e.interval)return;const l=setInterval(()=>{const f=rS(s,u);for(let d=0;d<f.length;++d){const h=f[d];if(!h)continue;const p=h.what&&(Ci[h.what]??null);p&&p({args:h,globalDataContext:i,templateContext:a})}e.once&&clearInterval(l)},e.interval);return()=>clearInterval(l)},[i,a]),R.jsx(Mt,{...e,children:e.content&&R.jsx(ht,{props:e.content,currentData:(t==null?void 0:t.content)??void 0,datafield:"content",path:n+".content"})})},rS=(e,t)=>{const n=[];if(!Array.isArray(e))return n;for(const[,i]of e.entries()){const a=(i==null?void 0:i.what)??void 0;!a||!(Ci[a]??void 0)||Ri(i,t)&&n.push(i)}return n},K0=A.createContext({pagination:{}}),iS=()=>{const{pagination:e}=A.useContext(K0);return e.PageControls?R.jsx(e.PageControls,{}):null},oS=({props:e,currentData:t,path:n})=>R.jsx(Mt,{...e,children:e.content&&R.jsx(ht,{props:e.content,currentData:(t==null?void 0:t.content)??void 0,datafield:"content",path:n+".content"})}),aS=({dataToPaginate:e=[],forcePaginationDisplay:t=!1,maxPageButtonsCount:n=5,pageMaxItemCount:i=10})=>{const[a,s]=A.useState(0),u=Math.floor(n/2),l=a*i,f=l+i,d=b=>Math.ceil(b.length/i);return{firstShownItemIndex:l,getPageCountForContent:d,maxShownItemIndexExcluded:f,PageControls:()=>{const b=d(e);return!t&&b<=1?null:R.jsxs(Lr,{children:[R.jsx(Lr.First,{disabled:a<=0,onClick:()=>{s(0)}}),R.jsx(Lr.Prev,{disabled:a<=0,onClick:()=>{s(a-1)}}),Math.min(a-u,b-n)>0?R.jsx(Lr.Ellipsis,{disabled:!0}):null,(()=>{const E=[];let x=Math.min(Math.max(0,b-n),Math.max(0,a-u)),w=n;const m=(D,F)=>{E.push(R.jsx(Lr.Item,{active:a===D,onClick:()=>{s(D)},children:D+1},n-F))};for(;w&&(m(x,w),++x,--w,!(x>=b)););return E})(),b>Math.max(u,a)+Math.ceil(n/2)?R.jsx(Lr.Ellipsis,{disabled:!0}):null,R.jsx(Lr.Next,{disabled:a+1>=b,onClick:()=>{s(a+1)}}),R.jsx(Lr.Last,{disabled:a+1>=b,onClick:()=>{s(b-1)}})]})},pageMaxItemCount:i,sliceVisibleContent:b=>Array.isArray(b)?b.slice(l,f):b}},sS={AccordionItem:fw,CheckBoxField:nw,Count:eS,DateField:aw,DataFilter:tS,DelayedActions:nS,FolderSortableTree:OA,FormatNumeral:IA,Html:Rl,LabelFromValue:FA,Modal:PA,NumberField:sw,PageControls:iS,Paragraph:kA,Phantom:oS,PreformattedMarkup:YA,SelectField:uw,SortableTreeItemCollapseButton:KA,Switch:({props:e,currentData:t,path:n})=>{const i=A.useContext(dt),a=A.useContext(ot),s=(e==null?void 0:e.cardinality)??-1,u=(e==null?void 0:e.options)??[],l=(e==null?void 0:e.singleOption)??void 0,f=!!l,d=(e==null?void 0:e.content)??null,h=d&&ut({globalDataContext:i,templateContext:a,valueToEvaluate:d}),b=Object.entries(typeof h=="object"?h:t).map(([m,D])=>{const F=m;if(s>=1&&F>=s||!D||typeof D!="object")return null;let I,C,v;if(f)C=D,v=l;else{if(I=Object.keys(D)[0]??void 0,I===void 0)return null;C=Object.values(D)[0]??void 0,v=u[I]??void 0}if(v===void 0)return null;let S=(Ll(d)&&Pn({dataLocation:d,currentPath:a.templatePath,globalDataContext:i,templateContext:a})||n)+"."+F;return f||(S+="."+I),R.jsx(ht,{currentData:C,datafield:F,path:S,props:v},F)}),E=aS({dataToPaginate:b,...(e==null?void 0:e.paginationProps)??{}}),x=e!=null&&e.paginated?b.slice(E.firstShownItemIndex,E.maxShownItemIndexExcluded):b,w=R.jsxs(R.Fragment,{children:[(e==null?void 0:e.before)&&R.jsx(ht,{currentData:(t==null?void 0:t.before)??void 0,path:n+".before",datafield:"before",props:e==null?void 0:e.before}),x,(e==null?void 0:e.after)&&R.jsx(ht,{currentData:(t==null?void 0:t.after)??void 0,path:n+".after",datafield:"after",props:e==null?void 0:e.after})]});return R.jsx(Mt,{...e,children:e!=null&&e.paginated?R.jsx(K0.Provider,{value:{pagination:E},children:w}):w})},Tabs:XA,TextAreaField:lw,TextField:cw},uS={BsAccordion:qa,BsAlert:pb,BsBadge:Eh,BsButton:wh};function ht({props:e,currentData:t,datafield:n,path:i}){const a=A.useContext(dt),s=A.useContext(ot),{element:u}=a;if(t===void 0&&(t=""),e!=null&&e.type){let l,f;const d=[{registryId:"module",components:sS},{registryId:"bootstrap",components:uS}];for(;d.length;){const{registryId:h,components:p}=d.shift();if(f=p[e.type]??void 0,f!==void 0){l=h;break}}return f===void 0&&(f=Rl,l="module"),l==="bootstrap"?R.jsx(JA,{bsComponent:f,path:i,props:e,currentData:t,datafield:n}):(Rl===f&&(e.tag=e.tag??e.type),R.jsx(f,{path:i,props:e,currentData:t,datafield:n}))}if(e!=null&&e.load){let l;const f=(e==null?void 0:e.customDataLocation)??void 0;if(f)debugger;const d=f?ut({globalDataContext:a,templateContext:s,valueToEvaluate:f}):t,h=f?Pn({dataLocation:f,currentPath:i,globalDataContext:a,templateContext:s}):i;typeof e.load=="function"?l=e.load(d):l=u[e.load];const{load:p,customDataLocation:b,...E}=e;return l={...l,...E},e.keepTemplateContext?R.jsx(ht,{currentData:d,datafield:n,path:h,props:l}):R.jsx(ot.Provider,{value:{templateData:d,templatePath:h},children:R.jsx(ht,{currentData:d,datafield:n,path:h,props:l})})}return Array.isArray(e)?e.map((l,f)=>R.jsx(ht,{currentData:t[f]??void 0,datafield:f,path:i+"."+f,props:l??void 0},i+"."+f)):typeof e=="object"?Object.entries(e).map(([l,f])=>R.jsx(ht,{currentData:t[l]??void 0,datafield:l??void 0,path:i+"."+l,props:f},i+"."+l)):R.jsx(tw,{valueToEvaluate:t||(e??null)})}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function X0(e){return typeof e>"u"||e===null}function lS(e){return typeof e=="object"&&e!==null}function cS(e){return Array.isArray(e)?e:X0(e)?[]:[e]}function fS(e,t){var n,i,a,s;if(t)for(s=Object.keys(t),n=0,i=s.length;n<i;n+=1)a=s[n],e[a]=t[a];return e}function dS(e,t){var n="",i;for(i=0;i<t;i+=1)n+=e;return n}function hS(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var pS=X0,mS=lS,gS=cS,vS=dS,yS=hS,bS=fS,on={isNothing:pS,isObject:mS,toArray:gS,repeat:vS,isNegativeZero:yS,extend:bS};function J0(e,t){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
98
|
+
`},SC={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function _C(e){let{announcements:t=SC,container:n,hiddenTextDescribedById:i,screenReaderInstructions:a=AC}=e;const{announce:s,announcement:u}=EC(),c=qo("DndLiveRegion"),[f,d]=A.useState(!1);if(A.useEffect(()=>{d(!0)},[]),CC(A.useMemo(()=>({onDragStart(p){let{active:b}=p;s(t.onDragStart({active:b}))},onDragMove(p){let{active:b,over:E}=p;t.onDragMove&&s(t.onDragMove({active:b,over:E}))},onDragOver(p){let{active:b,over:E}=p;s(t.onDragOver({active:b,over:E}))},onDragEnd(p){let{active:b,over:E}=p;s(t.onDragEnd({active:b,over:E}))},onDragCancel(p){let{active:b,over:E}=p;s(t.onDragCancel({active:b,over:E}))}}),[s,t])),!f)return null;const h=A.createElement(A.Fragment,null,A.createElement(bC,{id:i,value:a.draggable}),A.createElement(xC,{id:c,announcement:u}));return n?bn.createPortal(h,n):h}var Pt;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Pt||(Pt={}));function ds(){}function TC(e,t){return A.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function OC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A.useMemo(()=>[...t].filter(i=>i!=null),[...t])}const Vn=Object.freeze({x:0,y:0});function DC(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function IC(e,t){const n=fs(e);if(!n)return"0 0";const i={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return i.x+"% "+i.y+"%"}function FC(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return n-i}function PC(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return i-n}function kC(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Bp(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const NC=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const a=Bp(t,t.left,t.top),s=[];for(const u of i){const{id:c}=u,f=n.get(c);if(f){const d=DC(Bp(f),a);s.push({id:c,data:{droppableContainer:u,value:d}})}}return s.sort(FC)};function RC(e,t){const n=Math.max(t.top,e.top),i=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height),u=a-i,c=s-n;if(i<a&&n<s){const f=t.width*t.height,d=e.width*e.height,h=u*c,p=h/(f+d-h);return Number(p.toFixed(4))}return 0}const LC=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const a=[];for(const s of i){const{id:u}=s,c=n.get(u);if(c){const f=RC(c,t);f>0&&a.push({id:u,data:{droppableContainer:s,value:f}})}}return a.sort(PC)};function BC(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Mp(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Vn}function MC(e){return function(n){for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return a.reduce((u,c)=>({...u,top:u.top+e*c.y,bottom:u.bottom+e*c.y,left:u.left+e*c.x,right:u.right+e*c.x}),{...n})}}const jC=MC(1);function jp(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function $C(e,t,n){const i=jp(t);if(!i)return e;const{scaleX:a,scaleY:s,x:u,y:c}=i,f=e.left-u-(1-a)*parseFloat(n),d=e.top-c-(1-s)*parseFloat(n.slice(n.indexOf(" ")+1)),h=a?e.width/a:e.width,p=s?e.height/s:e.height;return{width:h,height:p,top:d,right:f+h,bottom:d+p,left:f}}const UC={ignoreTransform:!1};function ji(e,t){t===void 0&&(t=UC);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:d,transformOrigin:h}=rn(e).getComputedStyle(e);d&&(n=$C(n,d,h))}const{top:i,left:a,width:s,height:u,bottom:c,right:f}=n;return{top:i,left:a,width:s,height:u,bottom:c,right:f}}function $p(e){return ji(e,{ignoreTransform:!0})}function HC(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function WC(e,t){return t===void 0&&(t=rn(e).getComputedStyle(e)),t.position==="fixed"}function qC(e,t){t===void 0&&(t=rn(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const s=t[a];return typeof s=="string"?n.test(s):!1})}function Ul(e,t){const n=[];function i(a){if(t!=null&&n.length>=t||!a)return n;if(jl(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!Uo(a)||kp(a)||n.includes(a))return n;const s=rn(e).getComputedStyle(a);return a!==e&&qC(a,s)&&n.push(a),WC(a,s)?n:i(a.parentNode)}return e?i(e):n}function Up(e){const[t]=Ul(e,1);return t??null}function Hl(e){return!os||!e?null:Li(e)?e:Ml(e)?jl(e)||e===Bi(e).scrollingElement?window:Uo(e)?e:null:null}function Hp(e){return Li(e)?e.scrollX:e.scrollLeft}function Wp(e){return Li(e)?e.scrollY:e.scrollTop}function Wl(e){return{x:Hp(e),y:Wp(e)}}var jt;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(jt||(jt={}));function qp(e){return!os||!e?!1:e===document.scrollingElement}function zp(e){const t={x:0,y:0},n=qp(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},a=e.scrollTop<=t.y,s=e.scrollLeft<=t.x,u=e.scrollTop>=i.y,c=e.scrollLeft>=i.x;return{isTop:a,isLeft:s,isBottom:u,isRight:c,maxScroll:i,minScroll:t}}const zC={x:.2,y:.2};function GC(e,t,n,i,a){let{top:s,left:u,right:c,bottom:f}=n;i===void 0&&(i=10),a===void 0&&(a=zC);const{isTop:d,isBottom:h,isLeft:p,isRight:b}=zp(e),E={x:0,y:0},x={x:0,y:0},C={height:t.height*a.y,width:t.width*a.x};return!d&&s<=t.top+C.height?(E.y=jt.Backward,x.y=i*Math.abs((t.top+C.height-s)/C.height)):!h&&f>=t.bottom-C.height&&(E.y=jt.Forward,x.y=i*Math.abs((t.bottom-C.height-f)/C.height)),!b&&c>=t.right-C.width?(E.x=jt.Forward,x.x=i*Math.abs((t.right-C.width-c)/C.width)):!p&&u<=t.left+C.width&&(E.x=jt.Backward,x.x=i*Math.abs((t.left+C.width-u)/C.width)),{direction:E,speed:x}}function VC(e){if(e===document.scrollingElement){const{innerWidth:s,innerHeight:u}=window;return{top:0,left:0,right:s,bottom:u,width:s,height:u}}const{top:t,left:n,right:i,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:i,bottom:a,width:e.clientWidth,height:e.clientHeight}}function Gp(e){return e.reduce((t,n)=>Mi(t,Wl(n)),Vn)}function YC(e){return e.reduce((t,n)=>t+Hp(n),0)}function KC(e){return e.reduce((t,n)=>t+Wp(n),0)}function Vp(e,t){if(t===void 0&&(t=ji),!e)return;const{top:n,left:i,bottom:a,right:s}=t(e);Up(e)&&(a<=0||s<=0||n>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const XC=[["x",["left","right"],YC],["y",["top","bottom"],KC]];class ql{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=Ul(n),a=Gp(i);this.rect={...t},this.width=t.width,this.height=t.height;for(const[s,u,c]of XC)for(const f of u)Object.defineProperty(this,f,{get:()=>{const d=c(i),h=a[s]-d;return this.rect[f]+h},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class zo{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...n)})},this.target=t}add(t,n,i){var a;(a=this.target)==null||a.addEventListener(t,n,i),this.listeners.push([t,n,i])}}function JC(e){const{EventTarget:t}=rn(e);return e instanceof t?e:Bi(e)}function zl(e,t){const n=Math.abs(e.x),i=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+i**2)>t:"x"in t&&"y"in t?n>t.x&&i>t.y:"x"in t?n>t.x:"y"in t?i>t.y:!1}var kn;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(kn||(kn={}));function Yp(e){e.preventDefault()}function ZC(e){e.stopPropagation()}var nt;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(nt||(nt={}));const Kp={start:[nt.Space,nt.Enter],cancel:[nt.Esc],end:[nt.Space,nt.Enter,nt.Tab]},QC=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case nt.Right:return{...n,x:n.x+25};case nt.Left:return{...n,x:n.x-25};case nt.Down:return{...n,y:n.y+25};case nt.Up:return{...n,y:n.y-25}}};class Xp{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new zo(Bi(n)),this.windowListeners=new zo(rn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(kn.Resize,this.handleCancel),this.windowListeners.add(kn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(kn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,i=t.node.current;i&&Vp(i),n(Vn)}handleKeyDown(t){if(cs(t)){const{active:n,context:i,options:a}=this.props,{keyboardCodes:s=Kp,coordinateGetter:u=QC,scrollBehavior:c="smooth"}=a,{code:f}=t;if(s.end.includes(f)){this.handleEnd(t);return}if(s.cancel.includes(f)){this.handleCancel(t);return}const{collisionRect:d}=i.current,h=d?{x:d.left,y:d.top}:Vn;this.referenceCoordinates||(this.referenceCoordinates=h);const p=u(t,{active:n,context:i.current,currentCoordinates:h});if(p){const b=ls(p,h),E={x:0,y:0},{scrollableAncestors:x}=i.current;for(const C of x){const m=t.code,{isTop:D,isRight:F,isLeft:I,isBottom:w,maxScroll:v,minScroll:S}=zp(C),O=VC(C),B={x:Math.min(m===nt.Right?O.right-O.width/2:O.right,Math.max(m===nt.Right?O.left:O.left+O.width/2,p.x)),y:Math.min(m===nt.Down?O.bottom-O.height/2:O.bottom,Math.max(m===nt.Down?O.top:O.top+O.height/2,p.y))},G=m===nt.Right&&!F||m===nt.Left&&!I,q=m===nt.Down&&!w||m===nt.Up&&!D;if(G&&B.x!==p.x){const V=C.scrollLeft+b.x,ue=m===nt.Right&&V<=v.x||m===nt.Left&&V>=S.x;if(ue&&!b.y){C.scrollTo({left:V,behavior:c});return}ue?E.x=C.scrollLeft-V:E.x=m===nt.Right?C.scrollLeft-v.x:C.scrollLeft-S.x,E.x&&C.scrollBy({left:-E.x,behavior:c});break}else if(q&&B.y!==p.y){const V=C.scrollTop+b.y,ue=m===nt.Down&&V<=v.y||m===nt.Up&&V>=S.y;if(ue&&!b.x){C.scrollTo({top:V,behavior:c});return}ue?E.y=C.scrollTop-V:E.y=m===nt.Down?C.scrollTop-v.y:C.scrollTop-S.y,E.y&&C.scrollBy({top:-E.y,behavior:c});break}}this.handleMove(t,Mi(ls(p,this.referenceCoordinates),E))}}}handleMove(t,n){const{onMove:i}=this.props;t.preventDefault(),i(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Xp.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:i=Kp,onActivation:a}=t,{active:s}=n;const{code:u}=e.nativeEvent;if(i.start.includes(u)){const c=s.activatorNode.current;return c&&e.target!==c?!1:(e.preventDefault(),a==null||a({event:e.nativeEvent}),!0)}return!1}}];function Jp(e){return!!(e&&"distance"in e)}function Zp(e){return!!(e&&"delay"in e)}class Gl{constructor(t,n,i){var a;i===void 0&&(i=JC(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:s}=t,{target:u}=s;this.props=t,this.events=n,this.document=Bi(u),this.documentListeners=new zo(this.document),this.listeners=new zo(i),this.windowListeners=new zo(rn(u)),this.initialCoordinates=(a=fs(s))!=null?a:Vn,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:i}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(kn.Resize,this.handleCancel),this.windowListeners.add(kn.DragStart,Yp),this.windowListeners.add(kn.VisibilityChange,this.handleCancel),this.windowListeners.add(kn.ContextMenu,Yp),this.documentListeners.add(kn.Keydown,this.handleKeydown),n){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Zp(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Jp(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:i,onPending:a}=this.props;a(i,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(kn.Click,ZC,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(kn.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:i,initialCoordinates:a,props:s}=this,{onMove:u,options:{activationConstraint:c}}=s;if(!a)return;const f=(n=fs(t))!=null?n:Vn,d=ls(a,f);if(!i&&c){if(Jp(c)){if(c.tolerance!=null&&zl(d,c.tolerance))return this.handleCancel();if(zl(d,c.distance))return this.handleStart()}if(Zp(c)&&zl(d,c.tolerance))return this.handleCancel();this.handlePending(c,d);return}t.cancelable&&t.preventDefault(),u(f)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===nt.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const ew={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Vl extends Gl{constructor(t){const{event:n}=t,i=Bi(n.target);super(t,ew,i)}}Vl.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return!n.isPrimary||n.button!==0?!1:(i==null||i({event:n}),!0)}}];const tw={move:{name:"mousemove"},end:{name:"mouseup"}};var Yl;(function(e){e[e.RightClick=2]="RightClick"})(Yl||(Yl={}));class nw extends Gl{constructor(t){super(t,tw,Bi(t.event.target))}}nw.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return n.button===Yl.RightClick?!1:(i==null||i({event:n}),!0)}}];const Kl={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class rw extends Gl{constructor(t){super(t,Kl)}static setup(){return window.addEventListener(Kl.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Kl.move.name,t)};function t(){}}}rw.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;const{touches:a}=n;return a.length>1?!1:(i==null||i({event:n}),!0)}}];var Go;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Go||(Go={}));var hs;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(hs||(hs={}));function iw(e){let{acceleration:t,activator:n=Go.Pointer,canScroll:i,draggingRect:a,enabled:s,interval:u=5,order:c=hs.TreeOrder,pointerCoordinates:f,scrollableAncestors:d,scrollableAncestorRects:h,delta:p,threshold:b}=e;const E=aw({delta:p,disabled:!s}),[x,C]=pC(),m=A.useRef({x:0,y:0}),D=A.useRef({x:0,y:0}),F=A.useMemo(()=>{switch(n){case Go.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case Go.DraggableRect:return a}},[n,a,f]),I=A.useRef(null),w=A.useCallback(()=>{const S=I.current;if(!S)return;const O=m.current.x*D.current.x,B=m.current.y*D.current.y;S.scrollBy(O,B)},[]),v=A.useMemo(()=>c===hs.TreeOrder?[...d].reverse():d,[c,d]);A.useEffect(()=>{if(!s||!d.length||!F){C();return}for(const S of v){if((i==null?void 0:i(S))===!1)continue;const O=d.indexOf(S),B=h[O];if(!B)continue;const{direction:G,speed:q}=GC(S,B,F,t,b);for(const V of["x","y"])E[V][G[V]]||(q[V]=0,G[V]=0);if(q.x>0||q.y>0){C(),I.current=S,x(w,u),m.current=q,D.current=G;return}}m.current={x:0,y:0},D.current={x:0,y:0},C()},[t,w,i,C,s,u,JSON.stringify(F),JSON.stringify(E),x,d,v,h,JSON.stringify(b)])}const ow={x:{[jt.Backward]:!1,[jt.Forward]:!1},y:{[jt.Backward]:!1,[jt.Forward]:!1}};function aw(e){let{delta:t,disabled:n}=e;const i=us(t);return Wo(a=>{if(n||!i||!a)return ow;const s={x:Math.sign(t.x-i.x),y:Math.sign(t.y-i.y)};return{x:{[jt.Backward]:a.x[jt.Backward]||s.x===-1,[jt.Forward]:a.x[jt.Forward]||s.x===1},y:{[jt.Backward]:a.y[jt.Backward]||s.y===-1,[jt.Forward]:a.y[jt.Forward]||s.y===1}}},[n,t,i])}function sw(e,t){const n=t!=null?e.get(t):void 0,i=n?n.node.current:null;return Wo(a=>{var s;return t==null?null:(s=i??a)!=null?s:null},[i,t])}function uw(e,t){return A.useMemo(()=>e.reduce((n,i)=>{const{sensor:a}=i,s=a.activators.map(u=>({eventName:u.eventName,handler:t(u.handler,i)}));return[...n,...s]},[]),[e,t])}var Vo;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Vo||(Vo={}));var Xl;(function(e){e.Optimized="optimized"})(Xl||(Xl={}));const Qp=new Map;function lw(e,t){let{dragging:n,dependencies:i,config:a}=t;const[s,u]=A.useState(null),{frequency:c,measure:f,strategy:d}=a,h=A.useRef(e),p=m(),b=Ho(p),E=A.useCallback(function(D){D===void 0&&(D=[]),!b.current&&u(F=>F===null?D:F.concat(D.filter(I=>!F.includes(I))))},[b]),x=A.useRef(null),C=Wo(D=>{if(p&&!n)return Qp;if(!D||D===Qp||h.current!==e||s!=null){const F=new Map;for(let I of e){if(!I)continue;if(s&&s.length>0&&!s.includes(I.id)&&I.rect.current){F.set(I.id,I.rect.current);continue}const w=I.node.current,v=w?new ql(f(w),w):null;I.rect.current=v,v&&F.set(I.id,v)}return F}return D},[e,s,n,p,f]);return A.useEffect(()=>{h.current=e},[e]),A.useEffect(()=>{p||E()},[n,p]),A.useEffect(()=>{s&&s.length>0&&u(null)},[JSON.stringify(s)]),A.useEffect(()=>{p||typeof c!="number"||x.current!==null||(x.current=setTimeout(()=>{E(),x.current=null},c))},[c,p,E,...i]),{droppableRects:C,measureDroppableContainers:E,measuringScheduled:s!=null};function m(){switch(d){case Vo.Always:return!1;case Vo.BeforeDragging:return n;default:return!n}}}function Jl(e,t){return Wo(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function cw(e,t){return Jl(e,t)}function fw(e){let{callback:t,disabled:n}=e;const i=as(t),a=A.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:s}=window;return new s(i)},[i,n]);return A.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function ps(e){let{callback:t,disabled:n}=e;const i=as(t),a=A.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:s}=window;return new s(i)},[n]);return A.useEffect(()=>()=>a==null?void 0:a.disconnect(),[a]),a}function dw(e){return new ql(ji(e),e)}function e0(e,t,n){t===void 0&&(t=dw);const[i,a]=A.useState(null);function s(){a(f=>{if(!e)return null;if(e.isConnected===!1){var d;return(d=f??n)!=null?d:null}const h=t(e);return JSON.stringify(f)===JSON.stringify(h)?f:h})}const u=fw({callback(f){if(e)for(const d of f){const{type:h,target:p}=d;if(h==="childList"&&p instanceof HTMLElement&&p.contains(e)){s();break}}}}),c=ps({callback:s});return Gn(()=>{s(),e?(c==null||c.observe(e),u==null||u.observe(document.body,{childList:!0,subtree:!0})):(c==null||c.disconnect(),u==null||u.disconnect())},[e]),i}function hw(e){const t=Jl(e);return Mp(e,t)}const t0=[];function pw(e){const t=A.useRef(e),n=Wo(i=>e?i&&i!==t0&&e&&t.current&&e.parentNode===t.current.parentNode?i:Ul(e):t0,[e]);return A.useEffect(()=>{t.current=e},[e]),n}function mw(e){const[t,n]=A.useState(null),i=A.useRef(e),a=A.useCallback(s=>{const u=Hl(s.target);u&&n(c=>c?(c.set(u,Wl(u)),new Map(c)):null)},[]);return A.useEffect(()=>{const s=i.current;if(e!==s){u(s);const c=e.map(f=>{const d=Hl(f);return d?(d.addEventListener("scroll",a,{passive:!0}),[d,Wl(d)]):null}).filter(f=>f!=null);n(c.length?new Map(c):null),i.current=e}return()=>{u(e),u(s)};function u(c){c.forEach(f=>{const d=Hl(f);d==null||d.removeEventListener("scroll",a)})}},[a,e]),A.useMemo(()=>e.length?t?Array.from(t.values()).reduce((s,u)=>Mi(s,u),Vn):Gp(e):Vn,[e,t])}function n0(e,t){t===void 0&&(t=[]);const n=A.useRef(null);return A.useEffect(()=>{n.current=null},t),A.useEffect(()=>{const i=e!==Vn;i&&!n.current&&(n.current=e),!i&&n.current&&(n.current=null)},[e]),n.current?ls(e,n.current):Vn}function gw(e){A.useEffect(()=>{if(!os)return;const t=e.map(n=>{let{sensor:i}=n;return i.setup==null?void 0:i.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function vw(e,t){return A.useMemo(()=>e.reduce((n,i)=>{let{eventName:a,handler:s}=i;return n[a]=u=>{s(u,t)},n},{}),[e,t])}function r0(e){return A.useMemo(()=>e?HC(e):null,[e])}const i0=[];function yw(e,t){t===void 0&&(t=ji);const[n]=e,i=r0(n?rn(n):null),[a,s]=A.useState(i0);function u(){s(()=>e.length?e.map(f=>qp(f)?i:new ql(t(f),f)):i0)}const c=ps({callback:u});return Gn(()=>{c==null||c.disconnect(),u(),e.forEach(f=>c==null?void 0:c.observe(f))},[e]),a}function o0(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Uo(t)?t:e}function bw(e){let{measure:t}=e;const[n,i]=A.useState(null),a=A.useCallback(d=>{for(const{target:h}of d)if(Uo(h)){i(p=>{const b=t(h);return p?{...p,width:b.width,height:b.height}:b});break}},[t]),s=ps({callback:a}),u=A.useCallback(d=>{const h=o0(d);s==null||s.disconnect(),h&&(s==null||s.observe(h)),i(h?t(h):null)},[t,s]),[c,f]=ss(u);return A.useMemo(()=>({nodeRef:c,rect:n,setRef:f}),[n,c,f])}const xw=[{sensor:Vl,options:{}},{sensor:Xp,options:{}}],Ew={current:{}},ms={draggable:{measure:$p},droppable:{measure:$p,strategy:Vo.WhileDragging,frequency:Xl.Optimized},dragOverlay:{measure:ji}};class Yo extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,i;return(n=(i=this.get(t))==null?void 0:i.node.current)!=null?n:void 0}}const Cw={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Yo,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ds},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ms,measureDroppableContainers:ds,windowRect:null,measuringScheduled:!1},a0={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ds,draggableNodes:new Map,over:null,measureDroppableContainers:ds},Ko=A.createContext(a0),s0=A.createContext(Cw);function ww(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Yo}}}function Aw(e,t){switch(t.type){case Pt.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Pt.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Pt.DragEnd:case Pt.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Pt.RegisterDroppable:{const{element:n}=t,{id:i}=n,a=new Yo(e.droppable.containers);return a.set(i,n),{...e,droppable:{...e.droppable,containers:a}}}case Pt.SetDroppableDisabled:{const{id:n,key:i,disabled:a}=t,s=e.droppable.containers.get(n);if(!s||i!==s.key)return e;const u=new Yo(e.droppable.containers);return u.set(n,{...s,disabled:a}),{...e,droppable:{...e.droppable,containers:u}}}case Pt.UnregisterDroppable:{const{id:n,key:i}=t,a=e.droppable.containers.get(n);if(!a||i!==a.key)return e;const s=new Yo(e.droppable.containers);return s.delete(n),{...e,droppable:{...e.droppable,containers:s}}}default:return e}}function Sw(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:a}=A.useContext(Ko),s=us(i),u=us(n==null?void 0:n.id);return A.useEffect(()=>{if(!t&&!i&&s&&u!=null){if(!cs(s)||document.activeElement===s.target)return;const c=a.get(u);if(!c)return;const{activatorNode:f,node:d}=c;if(!f.current&&!d.current)return;requestAnimationFrame(()=>{for(const h of[f.current,d.current]){if(!h)continue;const p=vC(h);if(p){p.focus();break}}})}},[i,t,a,u,s]),null}function u0(e,t){let{transform:n,...i}=t;return e!=null&&e.length?e.reduce((a,s)=>s({transform:a,...i}),n):n}function _w(e){return A.useMemo(()=>({draggable:{...ms.draggable,...e==null?void 0:e.draggable},droppable:{...ms.droppable,...e==null?void 0:e.droppable},dragOverlay:{...ms.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function Tw(e){let{activeNode:t,measure:n,initialRect:i,config:a=!0}=e;const s=A.useRef(!1),{x:u,y:c}=typeof a=="boolean"?{x:a,y:a}:a;Gn(()=>{if(!u&&!c||!t){s.current=!1;return}if(s.current||!i)return;const d=t==null?void 0:t.node.current;if(!d||d.isConnected===!1)return;const h=n(d),p=Mp(h,i);if(u||(p.x=0),c||(p.y=0),s.current=!0,Math.abs(p.x)>0||Math.abs(p.y)>0){const b=Up(d);b&&b.scrollBy({top:p.y,left:p.x})}},[t,u,c,i,n])}const gs=A.createContext({...Vn,scaleX:1,scaleY:1});var Br;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Br||(Br={}));const Ow=A.memo(function(t){var n,i,a,s;let{id:u,accessibility:c,autoScroll:f=!0,children:d,sensors:h=xw,collisionDetection:p=LC,measuring:b,modifiers:E,...x}=t;const C=A.useReducer(Aw,void 0,ww),[m,D]=C,[F,I]=wC(),[w,v]=A.useState(Br.Uninitialized),S=w===Br.Initialized,{draggable:{active:O,nodes:B,translate:G},droppable:{containers:q}}=m,V=O!=null?B.get(O):null,ue=A.useRef({initial:null,translated:null}),ne=A.useMemo(()=>{var St;return O!=null?{id:O,data:(St=V==null?void 0:V.data)!=null?St:Ew,rect:ue}:null},[O,V]),te=A.useRef(null),[le,xe]=A.useState(null),[he,fe]=A.useState(null),Ie=Ho(x,Object.values(x)),M=qo("DndDescribedBy",u),K=A.useMemo(()=>q.getEnabled(),[q]),pe=_w(b),{droppableRects:j,measureDroppableContainers:z,measuringScheduled:J}=lw(K,{dragging:S,dependencies:[G.x,G.y],config:pe.droppable}),de=sw(B,O),ve=A.useMemo(()=>he?fs(he):null,[he]),ae=Vi(),Z=cw(de,pe.draggable.measure);Tw({activeNode:O!=null?B.get(O):null,config:ae.layoutShiftCompensation,initialRect:Z,measure:pe.draggable.measure});const Y=e0(de,pe.draggable.measure,Z),me=e0(de?de.parentElement:null),ee=A.useRef({activatorEvent:null,active:null,activeNode:de,collisionRect:null,collisions:null,droppableRects:j,draggableNodes:B,draggingNode:null,draggingNodeRect:null,droppableContainers:q,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Be=q.getNodeFor((n=ee.current.over)==null?void 0:n.id),ke=bw({measure:pe.dragOverlay.measure}),Te=(i=ke.nodeRef.current)!=null?i:de,et=S?(a=ke.rect)!=null?a:Y:null,Ye=!!(ke.nodeRef.current&&ke.rect),Zt=hw(Ye?null:Y),zt=r0(Te?rn(Te):null),tt=pw(S?Be??de:null),Ke=yw(tt),we=u0(E,{transform:{x:G.x-Zt.x,y:G.y-Zt.y,scaleX:1,scaleY:1},activatorEvent:he,active:ne,activeNodeRect:Y,containerNodeRect:me,draggingNodeRect:et,over:ee.current.over,overlayNodeRect:ke.rect,scrollableAncestors:tt,scrollableAncestorRects:Ke,windowRect:zt}),ct=ve?Mi(ve,G):null,bt=mw(tt),Qt=n0(bt),Me=n0(bt,[Y]),Ce=Mi(we,Qt),Le=et?jC(et,we):null,Ft=ne&&Le?p({active:ne,collisionRect:Le,droppableRects:j,droppableContainers:K,pointerCoordinates:ct}):null,Oe=kC(Ft,"id"),[Qe,Se]=A.useState(null),Et=Ye?we:Mi(we,Me),ui=BC(Et,(s=Qe==null?void 0:Qe.rect)!=null?s:null,Y),$t=A.useRef(null),Yn=A.useCallback((St,Ut)=>{let{sensor:Ht,options:Rn}=Ut;if(te.current==null)return;const Gt=B.get(te.current);if(!Gt)return;const kt=St.nativeEvent,an=new Ht({active:te.current,activeNode:Gt,event:kt,options:Rn,context:ee,onAbort(_t){if(!B.get(_t))return;const{onDragAbort:Nt}=Ie.current,en={id:_t};Nt==null||Nt(en),F({type:"onDragAbort",event:en})},onPending(_t,sn,Nt,en){if(!B.get(_t))return;const{onDragPending:xr}=Ie.current,wt={id:_t,constraint:sn,initialCoordinates:Nt,offset:en};xr==null||xr(wt),F({type:"onDragPending",event:wt})},onStart(_t){const sn=te.current;if(sn==null)return;const Nt=B.get(sn);if(!Nt)return;const{onDragStart:en}=Ie.current,br={activatorEvent:kt,active:{id:sn,data:Nt.data,rect:ue}};bn.unstable_batchedUpdates(()=>{en==null||en(br),v(Br.Initializing),D({type:Pt.DragStart,initialCoordinates:_t,active:sn}),F({type:"onDragStart",event:br}),xe($t.current),fe(kt)})},onMove(_t){D({type:Pt.DragMove,coordinates:_t})},onEnd:ir(Pt.DragEnd),onCancel:ir(Pt.DragCancel)});$t.current=an;function ir(_t){return async function(){const{active:Nt,collisions:en,over:br,scrollAdjustedTranslate:xr}=ee.current;let wt=null;if(Nt&&xr){const{cancelDrop:mt}=Ie.current;wt={activatorEvent:kt,active:Nt,collisions:en,delta:xr,over:br},_t===Pt.DragEnd&&typeof mt=="function"&&await Promise.resolve(mt(wt))&&(_t=Pt.DragCancel)}te.current=null,bn.unstable_batchedUpdates(()=>{D({type:_t}),v(Br.Uninitialized),Se(null),xe(null),fe(null),$t.current=null;const mt=_t===Pt.DragEnd?"onDragEnd":"onDragCancel";if(wt){const ci=Ie.current[mt];ci==null||ci(wt),F({type:mt,event:wt})}})}}},[B]),li=A.useCallback((St,Ut)=>(Ht,Rn)=>{const Gt=Ht.nativeEvent,kt=B.get(Rn);if(te.current!==null||!kt||Gt.dndKit||Gt.defaultPrevented)return;const an={active:kt};St(Ht,Ut.options,an)===!0&&(Gt.dndKit={capturedBy:Ut.sensor},te.current=Rn,Yn(Ht,Ut))},[B,Yn]),$r=uw(h,li);gw(h),Gn(()=>{Y&&w===Br.Initializing&&v(Br.Initialized)},[Y,w]),A.useEffect(()=>{const{onDragMove:St}=Ie.current,{active:Ut,activatorEvent:Ht,collisions:Rn,over:Gt}=ee.current;if(!Ut||!Ht)return;const kt={active:Ut,activatorEvent:Ht,collisions:Rn,delta:{x:Ce.x,y:Ce.y},over:Gt};bn.unstable_batchedUpdates(()=>{St==null||St(kt),F({type:"onDragMove",event:kt})})},[Ce.x,Ce.y]),A.useEffect(()=>{const{active:St,activatorEvent:Ut,collisions:Ht,droppableContainers:Rn,scrollAdjustedTranslate:Gt}=ee.current;if(!St||te.current==null||!Ut||!Gt)return;const{onDragOver:kt}=Ie.current,an=Rn.get(Oe),ir=an&&an.rect.current?{id:an.id,rect:an.rect.current,data:an.data,disabled:an.disabled}:null,_t={active:St,activatorEvent:Ut,collisions:Ht,delta:{x:Gt.x,y:Gt.y},over:ir};bn.unstable_batchedUpdates(()=>{Se(ir),kt==null||kt(_t),F({type:"onDragOver",event:_t})})},[Oe]),Gn(()=>{ee.current={activatorEvent:he,active:ne,activeNode:de,collisionRect:Le,collisions:Ft,droppableRects:j,draggableNodes:B,draggingNode:Te,draggingNodeRect:et,droppableContainers:q,over:Qe,scrollableAncestors:tt,scrollAdjustedTranslate:Ce},ue.current={initial:et,translated:Le}},[ne,de,Ft,Le,B,Te,et,j,q,Qe,tt,Ce]),iw({...ae,delta:G,draggingRect:Le,pointerCoordinates:ct,scrollableAncestors:tt,scrollableAncestorRects:Ke});const Ur=A.useMemo(()=>({active:ne,activeNode:de,activeNodeRect:Y,activatorEvent:he,collisions:Ft,containerNodeRect:me,dragOverlay:ke,draggableNodes:B,droppableContainers:q,droppableRects:j,over:Qe,measureDroppableContainers:z,scrollableAncestors:tt,scrollableAncestorRects:Ke,measuringConfiguration:pe,measuringScheduled:J,windowRect:zt}),[ne,de,Y,he,Ft,me,ke,B,q,j,Qe,z,tt,Ke,pe,J,zt]),ra=A.useMemo(()=>({activatorEvent:he,activators:$r,active:ne,activeNodeRect:Y,ariaDescribedById:{draggable:M},dispatch:D,draggableNodes:B,over:Qe,measureDroppableContainers:z}),[he,$r,ne,Y,D,M,B,Qe,z]);return A.createElement(Lp.Provider,{value:I},A.createElement(Ko.Provider,{value:ra},A.createElement(s0.Provider,{value:Ur},A.createElement(gs.Provider,{value:ui},d)),A.createElement(Sw,{disabled:(c==null?void 0:c.restoreFocus)===!1})),A.createElement(_C,{...c,hiddenTextDescribedById:M}));function Vi(){const St=(le==null?void 0:le.autoScrollEnabled)===!1,Ut=typeof f=="object"?f.enabled===!1:f===!1,Ht=S&&!St&&!Ut;return typeof f=="object"?{...f,enabled:Ht}:{enabled:Ht}}}),Dw=A.createContext(null),l0="button",Iw="Draggable";function Fw(e){let{id:t,data:n,disabled:i=!1,attributes:a}=e;const s=qo(Iw),{activators:u,activatorEvent:c,active:f,activeNodeRect:d,ariaDescribedById:h,draggableNodes:p,over:b}=A.useContext(Ko),{role:E=l0,roleDescription:x="draggable",tabIndex:C=0}=a??{},m=(f==null?void 0:f.id)===t,D=A.useContext(m?gs:Dw),[F,I]=ss(),[w,v]=ss(),S=vw(u,t),O=Ho(n);Gn(()=>(p.set(t,{id:t,key:s,node:F,activatorNode:w,data:O}),()=>{const G=p.get(t);G&&G.key===s&&p.delete(t)}),[p,t]);const B=A.useMemo(()=>({role:E,tabIndex:C,"aria-disabled":i,"aria-pressed":m&&E===l0?!0:void 0,"aria-roledescription":x,"aria-describedby":h.draggable}),[i,E,C,m,x,h.draggable]);return{active:f,activatorEvent:c,activeNodeRect:d,attributes:B,isDragging:m,listeners:i?void 0:S,node:F,over:b,setNodeRef:I,setActivatorNodeRef:v,transform:D}}function c0(){return A.useContext(s0)}const Pw="Droppable",kw={timeout:25};function Nw(e){let{data:t,disabled:n=!1,id:i,resizeObserverConfig:a}=e;const s=qo(Pw),{active:u,dispatch:c,over:f,measureDroppableContainers:d}=A.useContext(Ko),h=A.useRef({disabled:n}),p=A.useRef(!1),b=A.useRef(null),E=A.useRef(null),{disabled:x,updateMeasurementsFor:C,timeout:m}={...kw,...a},D=Ho(C??i),F=A.useCallback(()=>{if(!p.current){p.current=!0;return}E.current!=null&&clearTimeout(E.current),E.current=setTimeout(()=>{d(Array.isArray(D.current)?D.current:[D.current]),E.current=null},m)},[m]),I=ps({callback:F,disabled:x||!u}),w=A.useCallback((B,G)=>{I&&(G&&(I.unobserve(G),p.current=!1),B&&I.observe(B))},[I]),[v,S]=ss(w),O=Ho(t);return A.useEffect(()=>{!I||!v.current||(I.disconnect(),p.current=!1,I.observe(v.current))},[v,I]),A.useEffect(()=>(c({type:Pt.RegisterDroppable,element:{id:i,key:s,disabled:n,node:v,rect:b,data:O}}),()=>c({type:Pt.UnregisterDroppable,key:s,id:i})),[i]),A.useEffect(()=>{n!==h.current.disabled&&(c({type:Pt.SetDroppableDisabled,id:i,key:s,disabled:n}),h.current.disabled=n)},[i,s,n,c]),{active:u,rect:b,isOver:(f==null?void 0:f.id)===i,node:v,over:f,setNodeRef:S}}function Rw(e){let{animation:t,children:n}=e;const[i,a]=A.useState(null),[s,u]=A.useState(null),c=us(n);return!n&&!i&&c&&a(c),Gn(()=>{if(!s)return;const f=i==null?void 0:i.key,d=i==null?void 0:i.props.id;if(f==null||d==null){a(null);return}Promise.resolve(t(d,s)).then(()=>{a(null)})},[t,i,s]),A.createElement(A.Fragment,null,n,i?A.cloneElement(i,{ref:u}):null)}const Lw={x:0,y:0,scaleX:1,scaleY:1};function Bw(e){let{children:t}=e;return A.createElement(Ko.Provider,{value:a0},A.createElement(gs.Provider,{value:Lw},t))}const Mw={position:"fixed",touchAction:"none"},jw=e=>cs(e)?"transform 250ms ease":void 0,$w=A.forwardRef((e,t)=>{let{as:n,activatorEvent:i,adjustScale:a,children:s,className:u,rect:c,style:f,transform:d,transition:h=jw}=e;if(!c)return null;const p=a?d:{...d,scaleX:1,scaleY:1},b={...Mw,width:c.width,height:c.height,top:c.top,left:c.left,transform:nr.Transform.toString(p),transformOrigin:a&&i?IC(i,c):void 0,transition:typeof h=="function"?h(i):h,...f};return A.createElement(n,{className:u,style:b,ref:t},s)}),Zl={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:nr.Transform.toString(t)},{transform:nr.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:i}=t;const a={},{styles:s,className:u}=e;if(s!=null&&s.active)for(const[c,f]of Object.entries(s.active))f!==void 0&&(a[c]=n.node.style.getPropertyValue(c),n.node.style.setProperty(c,f));if(s!=null&&s.dragOverlay)for(const[c,f]of Object.entries(s.dragOverlay))f!==void 0&&i.node.style.setProperty(c,f);return u!=null&&u.active&&n.node.classList.add(u.active),u!=null&&u.dragOverlay&&i.node.classList.add(u.dragOverlay),function(){for(const[f,d]of Object.entries(a))n.node.style.setProperty(f,d);u!=null&&u.active&&n.node.classList.remove(u.active)}})({styles:{active:{opacity:"0"}}})};function Uw(e){let{config:t,draggableNodes:n,droppableContainers:i,measuringConfiguration:a}=e;return as((s,u)=>{if(t===null)return;const c=n.get(s);if(!c)return;const f=c.node.current;if(!f)return;const d=o0(u);if(!d)return;const{transform:h}=rn(u).getComputedStyle(u),p=jp(h);if(!p)return;const b=typeof t=="function"?t:Hw(t);return Vp(f,a.draggable.measure),b({active:{id:s,data:c.data,node:f,rect:a.draggable.measure(f)},draggableNodes:n,dragOverlay:{node:u,rect:a.dragOverlay.measure(d)},droppableContainers:i,measuringConfiguration:a,transform:p})})}function Hw(e){const{duration:t,easing:n,sideEffects:i,keyframes:a}={...Zl,...e};return s=>{let{active:u,dragOverlay:c,transform:f,...d}=s;if(!t)return;const h={x:c.rect.left-u.rect.left,y:c.rect.top-u.rect.top},p={scaleX:f.scaleX!==1?u.rect.width*f.scaleX/c.rect.width:1,scaleY:f.scaleY!==1?u.rect.height*f.scaleY/c.rect.height:1},b={x:f.x-h.x,y:f.y-h.y,...p},E=a({...d,active:u,dragOverlay:c,transform:{initial:f,final:b}}),[x]=E,C=E[E.length-1];if(JSON.stringify(x)===JSON.stringify(C))return;const m=i==null?void 0:i({active:u,dragOverlay:c,...d}),D=c.node.animate(E,{duration:t,easing:n,fill:"forwards"});return new Promise(F=>{D.onfinish=()=>{m==null||m(),F()}})}}let f0=0;function Ww(e){return A.useMemo(()=>{if(e!=null)return f0++,f0},[e])}const qw=A.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:a,transition:s,modifiers:u,wrapperElement:c="div",className:f,zIndex:d=999}=e;const{activatorEvent:h,active:p,activeNodeRect:b,containerNodeRect:E,draggableNodes:x,droppableContainers:C,dragOverlay:m,over:D,measuringConfiguration:F,scrollableAncestors:I,scrollableAncestorRects:w,windowRect:v}=c0(),S=A.useContext(gs),O=Ww(p==null?void 0:p.id),B=u0(u,{activatorEvent:h,active:p,activeNodeRect:b,containerNodeRect:E,draggingNodeRect:m.rect,over:D,overlayNodeRect:m.rect,scrollableAncestors:I,scrollableAncestorRects:w,transform:S,windowRect:v}),G=Jl(b),q=Uw({config:i,draggableNodes:x,droppableContainers:C,measuringConfiguration:F}),V=G?m.setRef:void 0;return A.createElement(Bw,null,A.createElement(Rw,{animation:q},p&&O?A.createElement($w,{key:O,id:p.id,ref:V,as:c,activatorEvent:h,adjustScale:t,className:f,transition:s,rect:G,style:{zIndex:d,...a},transform:B},n):null))});function Xo(e,t,n){const i=e.slice();return i.splice(n<0?i.length+n:n,0,i.splice(t,1)[0]),i}function zw(e,t){return e.reduce((n,i,a)=>{const s=t.get(i);return s&&(n[a]=s),n},Array(e.length))}function vs(e){return e!==null&&e>=0}function Gw(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Vw(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const d0=e=>{let{rects:t,activeIndex:n,overIndex:i,index:a}=e;const s=Xo(t,i,n),u=t[a],c=s[a];return!c||!u?null:{x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height}},ys={scaleX:1,scaleY:1},Yw=e=>{var t;let{activeIndex:n,activeNodeRect:i,index:a,rects:s,overIndex:u}=e;const c=(t=s[n])!=null?t:i;if(!c)return null;if(a===n){const d=s[u];return d?{x:0,y:n<u?d.top+d.height-(c.top+c.height):d.top-c.top,...ys}:null}const f=Kw(s,a,n);return a>n&&a<=u?{x:0,y:-c.height-f,...ys}:a<n&&a>=u?{x:0,y:c.height+f,...ys}:{x:0,y:0,...ys}};function Kw(e,t,n){const i=e[t],a=e[t-1],s=e[t+1];return i?n<t?a?i.top-(a.top+a.height):s?s.top-(i.top+i.height):0:s?s.top-(i.top+i.height):a?i.top-(a.top+a.height):0:0}const h0="Sortable",p0=A.createContext({activeIndex:-1,containerId:h0,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:d0,disabled:{draggable:!1,droppable:!1}});function Xw(e){let{children:t,id:n,items:i,strategy:a=d0,disabled:s=!1}=e;const{active:u,dragOverlay:c,droppableRects:f,over:d,measureDroppableContainers:h}=c0(),p=qo(h0,n),b=c.rect!==null,E=A.useMemo(()=>i.map(S=>typeof S=="object"&&"id"in S?S.id:S),[i]),x=u!=null,C=u?E.indexOf(u.id):-1,m=d?E.indexOf(d.id):-1,D=A.useRef(E),F=!Gw(E,D.current),I=m!==-1&&C===-1||F,w=Vw(s);Gn(()=>{F&&x&&h(E)},[F,E,x,h]),A.useEffect(()=>{D.current=E},[E]);const v=A.useMemo(()=>({activeIndex:C,containerId:p,disabled:w,disableTransforms:I,items:E,overIndex:m,useDragOverlay:b,sortedRects:zw(E,f),strategy:a}),[C,p,w.draggable,w.droppable,I,E,m,f,b,a]);return A.createElement(p0.Provider,{value:v},t)}const Jw=e=>{let{id:t,items:n,activeIndex:i,overIndex:a}=e;return Xo(n,i,a).indexOf(t)},Zw=e=>{let{containerId:t,isSorting:n,wasDragging:i,index:a,items:s,newIndex:u,previousItems:c,previousContainerId:f,transition:d}=e;return!d||!i||c!==s&&a===u?!1:n?!0:u!==a&&t===f},Qw={duration:200,easing:"ease"},m0="transform",eA=nr.Transition.toString({property:m0,duration:0,easing:"linear"}),tA={roleDescription:"sortable"};function nA(e){let{disabled:t,index:n,node:i,rect:a}=e;const[s,u]=A.useState(null),c=A.useRef(n);return Gn(()=>{if(!t&&n!==c.current&&i.current){const f=a.current;if(f){const d=ji(i.current,{ignoreTransform:!0}),h={x:f.left-d.left,y:f.top-d.top,scaleX:f.width/d.width,scaleY:f.height/d.height};(h.x||h.y)&&u(h)}}n!==c.current&&(c.current=n)},[t,n,i,a]),A.useEffect(()=>{s&&u(null)},[s]),s}function rA(e){let{animateLayoutChanges:t=Zw,attributes:n,disabled:i,data:a,getNewIndex:s=Jw,id:u,strategy:c,resizeObserverConfig:f,transition:d=Qw}=e;const{items:h,containerId:p,activeIndex:b,disabled:E,disableTransforms:x,sortedRects:C,overIndex:m,useDragOverlay:D,strategy:F}=A.useContext(p0),I=iA(i,E),w=h.indexOf(u),v=A.useMemo(()=>({sortable:{containerId:p,index:w,items:h},...a}),[p,a,w,h]),S=A.useMemo(()=>h.slice(h.indexOf(u)),[h,u]),{rect:O,node:B,isOver:G,setNodeRef:q}=Nw({id:u,data:v,disabled:I.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...f}}),{active:V,activatorEvent:ue,activeNodeRect:ne,attributes:te,setNodeRef:le,listeners:xe,isDragging:he,over:fe,setActivatorNodeRef:Ie,transform:M}=Fw({id:u,data:v,attributes:{...tA,...n},disabled:I.draggable}),K=hC(q,le),pe=!!V,j=pe&&!x&&vs(b)&&vs(m),z=!D&&he,J=z&&j?M:null,ve=j?J??(c??F)({rects:C,activeNodeRect:ne,activeIndex:b,overIndex:m,index:w}):null,ae=vs(b)&&vs(m)?s({id:u,items:h,activeIndex:b,overIndex:m}):w,Z=V==null?void 0:V.id,Y=A.useRef({activeId:Z,items:h,newIndex:ae,containerId:p}),me=h!==Y.current.items,ee=t({active:V,containerId:p,isDragging:he,isSorting:pe,id:u,index:w,items:h,newIndex:Y.current.newIndex,previousItems:Y.current.items,previousContainerId:Y.current.containerId,transition:d,wasDragging:Y.current.activeId!=null}),Be=nA({disabled:!ee,index:w,node:B,rect:O});return A.useEffect(()=>{pe&&Y.current.newIndex!==ae&&(Y.current.newIndex=ae),p!==Y.current.containerId&&(Y.current.containerId=p),h!==Y.current.items&&(Y.current.items=h)},[pe,ae,p,h]),A.useEffect(()=>{if(Z===Y.current.activeId)return;if(Z!=null&&Y.current.activeId==null){Y.current.activeId=Z;return}const Te=setTimeout(()=>{Y.current.activeId=Z},50);return()=>clearTimeout(Te)},[Z]),{active:V,activeIndex:b,attributes:te,data:v,rect:O,index:w,newIndex:ae,items:h,isOver:G,isSorting:pe,isDragging:he,listeners:xe,node:B,overIndex:m,over:fe,setNodeRef:K,setActivatorNodeRef:Ie,setDroppableNodeRef:q,setDraggableNodeRef:le,transform:Be??ve,transition:ke()};function ke(){if(Be||me&&Y.current.newIndex===w)return eA;if(!(z&&!cs(ue)||!d)&&(pe||ee))return nr.Transition.toString({...d,property:m0})}}function iA(e,t){var n,i;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e==null?void 0:e.draggable)!=null?n:t.draggable,droppable:(i=e==null?void 0:e.droppable)!=null?i:t.droppable}}nt.Down,nt.Right,nt.Up,nt.Left;function vr(){return vr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},vr.apply(this,arguments)}function Ql(e,t){if(e==null)return{};var n={},i=Object.keys(e),a,s;for(s=0;s<i.length;s++)a=i[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function oA(e,t){if(e){if(typeof e=="string")return g0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g0(e,t)}}function g0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function bs(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=oA(e))||t){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
99
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v0(e,t){t===void 0&&(t={});var n=t.insertAt;if(!(!e||typeof document>"u")){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",n==="top"&&i.firstChild?i.insertBefore(a,i.firstChild):i.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}var aA=`.dnd-sortable-tree_simple_wrapper{box-sizing:border-box;list-style:none;margin-bottom:-1px}.dnd-sortable-tree_simple_tree-item{align-items:center;border:1px solid #dedede;box-sizing:border-box;color:#222;display:flex;padding:10px;position:relative}.dnd-sortable-tree_simple_clone{display:inline-block;padding:5px;pointer-events:none}.dnd-sortable-tree_simple_clone>.dnd-sortable-tree_simple_tree-item{border-radius:4px;box-shadow:0 15px 15px 0 rgba(34,33,81,.1);padding-bottom:5px;padding-right:24px;padding-top:5px}.dnd-sortable-tree_simple_ghost{opacity:.5}.dnd-sortable-tree_simple_disable-selection{-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.dnd-sortable-tree_simple_disable-interaction{pointer-events:none}.dnd-sortable-tree_folder_tree-item-collapse_button{align-self:stretch;background:url("data:image/svg+xml;utf8,<svg width='10' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 41'><path d='M30.76 39.2402C31.885 40.3638 33.41 40.995 35 40.995C36.59 40.995 38.115 40.3638 39.24 39.2402L68.24 10.2402C69.2998 9.10284 69.8768 7.59846 69.8494 6.04406C69.822 4.48965 69.1923 3.00657 68.093 1.90726C66.9937 0.807959 65.5106 0.178263 63.9562 0.150837C62.4018 0.123411 60.8974 0.700397 59.76 1.76024L35 26.5102L10.24 1.76024C9.10259 0.700397 7.59822 0.123411 6.04381 0.150837C4.4894 0.178263 3.00632 0.807959 1.90702 1.90726C0.807714 3.00657 0.178019 4.48965 0.150593 6.04406C0.123167 7.59846 0.700153 9.10284 1.75999 10.2402L30.76 39.2402Z' /></svg>") no-repeat 50%;border:0;transition:transform .25s ease;width:20px}.dnd-sortable-tree_folder_tree-item-collapse_button-collapsed{transform:rotate(-90deg)}.dnd-sortable-tree_simple_handle{align-self:stretch;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' width='12'><path d='M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z'></path></svg>") no-repeat 50%;cursor:pointer;width:20px}.dnd-sortable-tree_simple_tree-item-collapse_button{align-self:stretch;background:url("data:image/svg+xml;utf8,<svg width='10' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 41'><path d='M30.76 39.2402C31.885 40.3638 33.41 40.995 35 40.995C36.59 40.995 38.115 40.3638 39.24 39.2402L68.24 10.2402C69.2998 9.10284 69.8768 7.59846 69.8494 6.04406C69.822 4.48965 69.1923 3.00657 68.093 1.90726C66.9937 0.807959 65.5106 0.178263 63.9562 0.150837C62.4018 0.123411 60.8974 0.700397 59.76 1.76024L35 26.5102L10.24 1.76024C9.10259 0.700397 7.59822 0.123411 6.04381 0.150837C4.4894 0.178263 3.00632 0.807959 1.90702 1.90726C0.807714 3.00657 0.178019 4.48965 0.150593 6.04406C0.123167 7.59846 0.700153 9.10284 1.75999 10.2402L30.76 39.2402Z' /></svg>") no-repeat 50%;border:0;transition:transform .25s ease;width:20px}.dnd-sortable-tree_folder_simple-item-collapse_button-collapsed{transform:rotate(-90deg)}`;v0(aA);var sA=`.dnd-sortable-tree_folder_wrapper{box-sizing:border-box;display:flex;flex-direction:row;list-style:none;margin-bottom:-1px}.dnd-sortable-tree_folder_tree-item{align-items:center;box-sizing:border-box;display:flex;padding:7px 0;position:relative}.dnd-sortable-tree_folder_clone{display:inline-block;padding:5px;pointer-events:none}.dnd-sortable-tree_folder_clone>.dnd-sortable-tree_folder_tree-item{border-radius:4px;padding-bottom:5px;padding-right:24px;padding-top:5px}.dnd-sortable-tree_folder_ghost{opacity:.5}.dnd-sortable-tree_folder_disable-selection{-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.dnd-sortable-tree_folder_disable-interaction{pointer-events:none}.dnd-sortable-tree_folder_line{align-self:stretch;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><line stroke='black' style='stroke-width: 1px;' x1='50%' y1='0' x2='50%' y2='100%'/></svg>");width:20px}.dnd-sortable-tree_folder_line-last{align-self:stretch;width:20px}.dnd-sortable-tree_folder_line-to_self{align-self:stretch;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><line stroke='black' style='stroke-width: 1px;' x1='50%' y1='0' x2='50%' y2='100%'/><line stroke='black' style='stroke-width: 1px;' x1='50%' y1='50%' x2='100%' y2='50%'/></svg>");width:20px}.dnd-sortable-tree_folder_line-to_self-last{align-self:stretch;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><line stroke='black' style='stroke-width: 1px;' x1='50%' y1='0' x2='50%' y2='50%'/><line stroke='black' style='stroke-width: 1px;' x1='50%' y1='50%' x2='100%' y2='50%'/></svg>");width:20px}.dnd-sortable-tree_folder_tree-item-collapse_button{align-self:stretch;background:url("data:image/svg+xml;utf8,<svg width='10' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 41'><path d='M30.76 39.2402C31.885 40.3638 33.41 40.995 35 40.995C36.59 40.995 38.115 40.3638 39.24 39.2402L68.24 10.2402C69.2998 9.10284 69.8768 7.59846 69.8494 6.04406C69.822 4.48965 69.1923 3.00657 68.093 1.90726C66.9937 0.807959 65.5106 0.178263 63.9562 0.150837C62.4018 0.123411 60.8974 0.700397 59.76 1.76024L35 26.5102L10.24 1.76024C9.10259 0.700397 7.59822 0.123411 6.04381 0.150837C4.4894 0.178263 3.00632 0.807959 1.90702 1.90726C0.807714 3.00657 0.178019 4.48965 0.150593 6.04406C0.123167 7.59846 0.700153 9.10284 1.75999 10.2402L30.76 39.2402Z' /></svg>") no-repeat 50%;border:0;transition:transform .25s ease;width:20px}.dnd-sortable-tree_folder_tree-item-collapse_button-collapsed{transform:rotate(-90deg)}.dnd-sortable-tree_folder_handle{align-self:stretch;background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' width='12'><path d='M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z'></path></svg>") no-repeat 50%;cursor:pointer;width:20px}`;v0(sA);var uA=["clone","depth","disableSelection","disableInteraction","disableSorting","ghost","handleProps","indentationWidth","indicator","collapsed","onCollapse","onRemove","item","wrapperRef","style","isLast","parent","hideCollapseButton","childCount","manualDrag","showDragHandle","disableCollapseOnItemClick","className","contentClassName","isOver","isOverParent"];function y0(e){return e?[].concat(y0(e.parent),[e]):[]}var lA=A.forwardRef(function(e,t){var n=e.clone,i=e.disableSelection,a=e.disableInteraction,s=e.disableSorting,u=e.ghost,c=e.handleProps,f=e.collapsed,d=e.onCollapse,h=e.wrapperRef,p=e.style,b=e.isLast,E=e.parent,x=e.hideCollapseButton,C=e.childCount,m=e.manualDrag,D=e.showDragHandle,F=e.disableCollapseOnItemClick,I=e.className,w=e.contentClassName,v=Ql(e,uA),S=y0(E);return A.createElement("li",Object.assign({},v,{className:Bl("dnd-sortable-tree_folder_wrapper",n&&"dnd-sortable-tree_folder_clone",u&&"dnd-sortable-tree_folder_ghost",i&&"dnd-sortable-tree_folder_disable-selection",a&&"dnd-sortable-tree_folder_disable-interaction",I),ref:h,style:p}),S.map(function(O){return A.createElement("div",{key:O.id,className:O.isLast?"dnd-sortable-tree_folder_line-last":"dnd-sortable-tree_folder_line"})}),A.createElement("div",{className:b?"dnd-sortable-tree_folder_line-to_self-last":"dnd-sortable-tree_folder_line-to_self"}),m&&D&&!s&&A.createElement("div",Object.assign({className:"dnd-sortable-tree_folder_handle"},c)),!m&&!x&&!!d&&!!C&&A.createElement("button",{onClick:function(B){B.preventDefault(),d==null||d()},className:Bl("dnd-sortable-tree_folder_tree-item-collapse_button",f&&"dnd-sortable-tree_folder_tree-item-collapse_button-collapsed")}),A.createElement("div",Object.assign({className:Bl("dnd-sortable-tree_folder_tree-item",w),ref:t},m?void 0:c,{onClick:F?void 0:d}),e.children))}),cA=typeof window<"u"?/iPad|iPhone|iPod/.test(navigator.platform):!1;function fA(e,t){return Math.round(e/t)}var ec=function(){};function dA(e,t,n,i,a,s,u){var c,f,d;if(ec(),ec=function(){},!t||!n)return null;var h=e.findIndex(function(he){var fe=he.id;return fe===n}),p=e.findIndex(function(he){var fe=he.id;return fe===t}),b=e[p];if(s){var E,x,C,m,D,F=e[h];return F=le(F,b,u),F===void 0?null:{depth:(E=(x=F)==null?void 0:x.depth)!=null?E:1,parentId:(C=(m=F)==null?void 0:m.id)!=null?C:null,parent:F,isLast:!!((D=F)!=null&&D.isLast)}}var I=Xo(e,p,h),w=I[h-1],v=I[h+1],S=fA(i,a),O=b.depth+S,B=O,G=te(B-1,w),q=le(G,b,u);if(q===void 0)return null;var V=((c=q==null?void 0:q.depth)!=null?c:-1)+1,ue=(f=v==null?void 0:v.depth)!=null?f:0;if(ue>V)return null;B>=V?B=V:B<ue&&(B=ue);var ne=((d=v==null?void 0:v.depth)!=null?d:-1)<B;return q&&q.isLast&&(ec=function(){q.isLast=!0},q.isLast=!1),{depth:B,parentId:xe(),parent:q,isLast:ne};function te(he,fe){if(!fe)return null;for(;he<fe.depth;){if(fe.parent===null)return null;fe=fe.parent}return fe}function le(he,fe,Ie){if(!he){var M=typeof Ie=="function"?Ie(fe):Ie;return M===!1?void 0:he}var K=typeof he.canHaveChildren=="function"?he.canHaveChildren(fe):he.canHaveChildren;return K===!1?le(he.parent,b,Ie):he}function xe(){var he;if(B===0||!w)return null;if(B===w.depth)return w.parentId;if(B>w.depth)return w.id;var fe=(he=I.slice(0,h).reverse().find(function(Ie){return Ie.depth===B}))==null?void 0:he.parentId;return fe??null}}function b0(e,t,n,i){return t===void 0&&(t=null),n===void 0&&(n=0),i===void 0&&(i=null),e.reduce(function(a,s,u){var c,f=vr({},s,{parentId:t,depth:n,index:u,isLast:e.length===u+1,parent:i});return[].concat(a,[f],b0((c=s.children)!=null?c:[],s.id,n+1,f))},[])}function tc(e){return b0(e)}function hA(e){for(var t,n,i={id:"root",children:[]},a=(t={},t[i.id]=i,t),s=e.map(function(C){return vr({},C,{children:[]})}),u=bs(s),c;!(c=u()).done;){var f,d,h,p=c.value,b=p.id,E=(f=p.parentId)!=null?f:i.id,x=(d=a[E])!=null?d:pA(s,E);p.parent=null,a[b]=p,x==null||(h=x.children)==null||h.push(p)}return(n=i.children)!=null?n:[]}function pA(e,t){return e.find(function(n){var i=n.id;return i===t})}function xs(e,t){for(var n=bs(e),i;!(i=n()).done;){var a=i.value,s=a.id,u=a.children;if(s===t)return a;if(u!=null&&u.length){var c=xs(u,t);if(c)return c}}}function x0(e,t){for(var n=[],i=bs(e),a;!(a=i()).done;){var s,u=a.value;u.id!==t&&((s=u.children)!=null&&s.length&&(u.children=x0(u.children,t)),n.push(u))}return n}function E0(e,t,n,i){for(var a=bs(e),s;!(s=a()).done;){var u,c=s.value;if(c.id===t){c[n]=i(c[n]);continue}(u=c.children)!=null&&u.length&&(c.children=E0(c.children,t,n,i))}return[].concat(e)}function C0(e,t){return t===void 0&&(t=0),e.reduce(function(n,i){var a=i.children;return a!=null&&a.length?C0(a,n+1):n+1},t)}function mA(e,t){var n;if(!t)return 0;var i=xs(e,t);return i?C0((n=i.children)!=null?n:[]):0}function gA(e,t){var n=[].concat(t);return e.filter(function(i){if(i.parentId&&n.includes(i.parentId)){var a;return(a=i.children)!=null&&a.length&&n.push(i.id),!1}return!0})}function w0(e,t){return!e||!t?!1:e.id===t?!0:w0(e.parent,t)}var vA=["id","depth","isLast","TreeItemComponent","parent","disableSorting","sortableProps","keepGhostInPlace"],yA=function(t){var n=t.isSorting,i=t.isDragging;return!(n||i)},bA=function(t){var n=t.id,i=t.depth,a=t.isLast,s=t.TreeItemComponent,u=t.parent,c=t.disableSorting,f=t.sortableProps,d=t.keepGhostInPlace,h=Ql(t,vA),p=rA(vr({id:n,animateLayoutChanges:yA,disabled:c},f)),b=p.attributes,E=p.isDragging,x=p.isSorting,C=p.listeners,m=p.setDraggableNodeRef,D=p.setDroppableNodeRef,F=p.transform,I=p.transition,w=p.isOver,v=p.over,S=A.useMemo(function(){return!!(v!=null&&v.id)&&w0(u,v.id)},[v==null?void 0:v.id]),O={transform:nr.Translate.toString(F),transition:I??void 0},B=A.useMemo(function(){if(h.onCollapse)return function(){return h.onCollapse==null?void 0:h.onCollapse(h.item.id)}},[h.item.id,h.onCollapse]),G=A.useMemo(function(){if(h.onRemove)return function(){return h.onRemove==null?void 0:h.onRemove(h.item.id)}},[h.item.id,h.onRemove]);return A.createElement(s,Object.assign({},h,{ref:m,wrapperRef:D,style:d?void 0:O,depth:i,ghost:E,disableSelection:cA,disableInteraction:x,isLast:a,parent:u,handleProps:vr({},b,C),onCollapse:B,onRemove:G,disableSorting:c,isOver:w,isOverParent:S}))},xA=A.memo(bA),EA=function(t){var n=function(a){var s=a.activeIndex,u=a.activeNodeRect,c=a.index,f=a.rects,d=a.overIndex;return t(s,d)?Yw({activeIndex:s,activeNodeRect:u,index:c,rects:f,overIndex:d}):null};return n},CA=["items","indicator","indentationWidth","onItemsChanged","TreeItemComponent","pointerSensorOptions","disableSorting","dropAnimation","dndContextProps","sortableProps","keepGhostInPlace","canRootHaveChildren"],wA={activationConstraint:{distance:3}},AA={keyframes:function(t){var n=t.transform;return[{opacity:1,transform:nr.Transform.toString(n.initial)},{opacity:0,transform:nr.Transform.toString(vr({},n.final,{x:n.final.x+5,y:n.final.y+5}))}]},easing:"ease-out",sideEffects:function(t){var n=t.active;n.node.animate([{opacity:0},{opacity:1}],{duration:Zl.duration,easing:Zl.easing})}};function SA(e){var t=e.items,n=e.indicator,i=e.indentationWidth,a=i===void 0?20:i,s=e.onItemsChanged,u=e.TreeItemComponent,c=e.pointerSensorOptions,f=e.disableSorting,d=e.dropAnimation,h=e.dndContextProps,p=e.sortableProps,b=e.keepGhostInPlace,E=e.canRootHaveChildren,x=Ql(e,CA),C=A.useState(null),m=C[0],D=C[1],F=A.useState(null),I=F[0],w=F[1],v=A.useState(0),S=v[0],O=v[1],B=A.useState(null),G=B[0],q=B[1],V=A.useMemo(function(){var Z=tc(t),Y=Z.reduce(function(ee,Be){var ke=Be.children,Te=Be.collapsed,et=Be.id;return Te&&ke!=null&&ke.length?[].concat(ee,[et]):ee},[]),me=gA(Z,m?[m].concat(Y):Y);return me},[m,t]),ue=dA(V,m,I,S,a,b??!1,E),ne=A.useRef({items:V,offset:S}),te=OC(TC(Vl,c??wA)),le=A.useMemo(function(){return V.map(function(Z){var Y=Z.id;return Y})},[V]),xe=m?V.find(function(Z){var Y=Z.id;return Y===m}):null;A.useEffect(function(){ne.current={items:V,offset:S}},[V,S]);var he=A.useRef(t);he.current=t;var fe=A.useCallback(function(Z){var Y=xs(he.current,Z);s(x0(he.current,Z),{type:"removed",item:Y})},[s]),Ie=A.useCallback(function(Y){var me=xs(he.current,Y);s(E0(he.current,Y,"collapsed",function(ee){return!ee}),{type:me.collapsed?"collapsed":"expanded",item:me})},[s]),M=A.useMemo(function(){return{onDragStart:function(Y){var me=Y.active;return"Picked up "+me.id+"."},onDragMove:function(Y){var me=Y.active,ee=Y.over;return ae("onDragMove",me.id,ee==null?void 0:ee.id)},onDragOver:function(Y){var me=Y.active,ee=Y.over;return ae("onDragOver",me.id,ee==null?void 0:ee.id)},onDragEnd:function(Y){var me=Y.active,ee=Y.over;return ae("onDragEnd",me.id,ee==null?void 0:ee.id)},onDragCancel:function(Y){var me=Y.active;return"Moving was cancelled. "+me.id+" was dropped in its original position."}}},[]),K=A.useCallback(function(){return!!ue},[ue]);return A.createElement(Ow,Object.assign({accessibility:{announcements:M},sensors:f?void 0:te,modifiers:n?TA:void 0,collisionDetection:NC,onDragStart:f?void 0:pe,onDragMove:f?void 0:j,onDragOver:f?void 0:z,onDragEnd:f?void 0:J,onDragCancel:f?void 0:de},h),A.createElement(Xw,{items:le,strategy:f?void 0:EA(K)},V.map(function(Z){var Y,me,ee;return A.createElement(xA,Object.assign({},x,{key:Z.id,id:Z.id,item:Z,childCount:(Y=Z.children)==null?void 0:Y.length,depth:Z.id===m&&ue&&!b?ue.depth:Z.depth,indentationWidth:a,indicator:n,collapsed:!!(Z.collapsed&&((me=Z.children)!=null&&me.length)),onCollapse:(ee=Z.children)!=null&&ee.length?Ie:void 0,onRemove:fe,isLast:Z.id===m&&ue?ue.isLast:Z.isLast,parent:Z.id===m&&ue?ue.parent:Z.parent,TreeItemComponent:u,disableSorting:f,sortableProps:p,keepGhostInPlace:b}))}),bn.createPortal(A.createElement(qw,{dropAnimation:d===void 0?AA:d},m&&xe?A.createElement(u,Object.assign({},x,{item:xe,children:[],depth:xe.depth,clone:!0,childCount:mA(t,m)+1,indentationWidth:a,isLast:!1,parent:xe.parent,isOver:!1,isOverParent:!1})):null),document.body)));function pe(Z){var Y=Z.active.id;D(Y),w(Y);var me=V.find(function(ee){var Be=ee.id;return Be===Y});me&&q({parentId:me.parentId,overId:Y}),document.body.style.setProperty("cursor","grabbing")}function j(Z){var Y=Z.delta;O(Y.x)}function z(Z){var Y,me=Z.over;w((Y=me==null?void 0:me.id)!=null?Y:null)}function J(Z){var Y=Z.active,me=Z.over;if(ve(),ue&&me){var ee=ue.depth,Be=ue.parentId;if(b&&me.id===Y.id)return;var ke=tc(t),Te=ke.findIndex(function(ct){var bt=ct.id;return bt===me.id}),et=ke.findIndex(function(ct){var bt=ct.id;return bt===Y.id}),Ye=ke[et];ke[et]=vr({},Ye,{depth:ee,parentId:Be});var Zt=Ye.parent,zt=Xo(ke,et,Te),tt=hA(zt),Ke=zt.find(function(ct){return ct.id===Y.id}),we=Ke.parentId?zt.find(function(ct){return ct.id===Ke.parentId}):null;setTimeout(function(){return s(tt,{type:"dropped",draggedItem:Ke,draggedFromParent:Zt,droppedToParent:we})})}}function de(){ve()}function ve(){w(null),D(null),O(0),q(null),document.body.style.setProperty("cursor","")}function ae(Z,Y,me){if(me&&ue){if(Z!=="onDragEnd"){if(G&&ue.parentId===G.parentId&&me===G.overId)return;q({parentId:ue.parentId,overId:me})}var ee=tc(t),Be=ee.findIndex(function(ct){var bt=ct.id;return bt===me}),ke=ee.findIndex(function(ct){var bt=ct.id;return bt===Y}),Te=Xo(ee,ke,Be),et=Te[Be-1],Ye,Zt=Z==="onDragEnd"?"dropped":"moved",zt=Z==="onDragEnd"?"dropped":"nested";if(et)if(ue.depth>et.depth)Ye=Y+" was "+zt+" under "+et.id+".";else{for(var Ke=et,we=function(){var bt=Ke.parentId;Ke=Te.find(function(Qt){var Me=Qt.id;return Me===bt})};Ke&&ue.depth<Ke.depth;)we();Ke&&(Ye=Y+" was "+Zt+" after "+Ke.id+".")}else{var tt=Te[Be+1];Ye=Y+" was "+Zt+" before "+tt.id+"."}return Ye}}}var _A=function(t){var n=t.transform;return vr({},n,{y:n.y-25})},TA=[_A];const OA=({props:e,path:t,datafield:n})=>{var I,w;const i=A.useContext(dt),a=A.useContext(ot);let{formData:s,formDataPath:u}=$o({currentPath:t,datafield:n,dataLocation:e.dataLocation,defaultValue:e.defaultFieldValue,globalDataContext:i,templateContext:a});if(s===void 0)return null;const c=e.itemTemplate??null,f=ut({valueToEvaluate:e.treeRootPath??void 0,globalDataContext:i,templateContext:a}),d=e.maxDepth,h=typeof f!="string"?!0:e.maxDepthIsAbsolute??!0,p=e.keepBaseItem??!1;let b=0,E=null,x;if(typeof f=="string"&&f.length>0){const v=f.split(".");let S=E,O=s,B=u;for(;v.length>0;){const G=Number.parseInt(v.shift());if(Number.isNaN(G)||(S=(s==null?void 0:s.id)??null,O=s,B=u,x=G,E=(I=s[G])==null?void 0:I.id,s=((w=s[G])==null?void 0:w.children)??void 0,u=u+"."+G+".children",s===void 0))return null;++b}p&&(E=S,s=O,u=B,s=[s[x]])}const C=v=>{let S=v,O=u;if(b>0){S=Fr.cloneDeep(S);const B=(G,q=0)=>{var V;q===0&&(G.parentId=E),G.depth+=b,(V=G.children)==null||V.forEach(ue=>{B(ue,q+1)})};S.forEach(G=>{B(G,0)})}f!==void 0&&p&&(S=v[0],O=u+"."+x),i.updateData(S,O)},m=A.forwardRef((v,S)=>{const O=v.item.value??{},B=[];let G=v.item;for(B.push(G.index);G.parent;)B.push("children"),G=G.parent,B.push(G.index);B.reverse();const V=u+"."+B.join(".")+".value";O._treeItemDepth=v.item.depth,O._treeItemIndex=v.item.index,O._treeItemIndex1=v.item.index+1;const ue={};return ue._treeAddCollapseButton=()=>!!v.onCollapse&&!!v.childCount&&R.jsx("button",{onClick:ne=>{var te;ne.preventDefault(),(te=v.onCollapse)==null||te.call(v)},className:dC("dnd-sortable-tree_folder_tree-item-collapse_button",v.collapsed&&"dnd-sortable-tree_folder_tree-item-collapse_button-collapsed")}),d&&(h?v.item.canHaveChildren=b+v.item.depth<d:v.item.canHaveChildren=v.item.depth<d),R.jsx(lA,{...v,"data-htmlbuilder-tree-item-children-count":v.childCount||"0","data-htmlbuilder-tree-item-collapsed":v.collapsed,"data-htmlbuilder-tree-item-depth":v.item.depth,"data-htmlbuilder-tree-item-depth-list":DA(v.item.depth),"data-htmlbuilder-tree-item-index":v.item.index,"data-htmlbuilder-tree-item-index1":v.item.index+1,"data-htmlbuilder-tree-item-is-last":v.isLast,ref:S,children:R.jsx(ot.Provider,{value:{templateData:O,templatePath:V,sortableTreeData:ue},children:R.jsx(ht,{props:c,currentData:O})})})}),D=Fr.cloneDeep(s),F=e.sortableTreeOptions??{};return R.jsx(Mt,{...e,children:R.jsx(SA,{...F,items:D,onItemsChanged:C,TreeItemComponent:m})})};function DA(e){const t=[];let n=e??0;for(;n>=0;)t.push(n),--n;return t.reverse().join(" ")}const IA=({props:e})=>{const t=A.useContext(dt),n=A.useContext(ot);let i=!1;if(e.content!==void 0){const a=ut({valueToEvaluate:e.content,globalDataContext:t,templateContext:n});switch(e.format){case"roman-upper":i=A0(a);break;case"roman-lower":i=A0(a,!0);break;case"latin-upper":i=nc(a);break;case"latin-lower":i=nc(a,!0);break}}return R.jsx(Mt,{...e,children:R.jsx(R.Fragment,{children:i!==!1&&i})})};function nc(e,t=!1){if(e<1)return!1;let n=e%26,i=e/26|0,a=n?String.fromCharCode(64+n):(--i,"Z");const s=i?nc(i)+a:a;return t?s.toLowerCase():s}function A0(e,t=!1){if(e<1)return!1;const i=[["M",1e3],["CM",900],["D",500],["CD",400],["C",100],["XC",90],["L",50],["XL",40],["X",10],["IX",9],["V",5],["IV",4],["I",1]].reduce((a,[s,u])=>(a+=s.repeat(Math.floor(e/u)),e=e%u,a),"");return t?i.toLowerCase():i}const FA=({currentData:e,datafield:t,path:n,props:i})=>{const a=A.useContext(dt),s=A.useContext(ot),u=i.dynamicOptions??void 0;let c;u?c=ut({valueToEvaluate:u,globalDataContext:a,templateContext:s})??[]:c=i.options??[];let f;const d=i.defaultFieldValue??void 0,h=i.dataLocation??void 0;h?f=ut({globalDataContext:a,templateContext:s,valueToEvaluate:h})??d:((s.templateData[t]??void 0)===void 0&&(s.templateData=typeof s.templateData=="object"?s.templateData:{},s.templateData[t]=d),f=s.templateData[t]);let p=c.find(b=>b.value===f);if(!p||!p.label){if(!f)return null;p=f}return R.jsx(Mt,{...i,children:R.jsx(ht,{currentData:e,datafield:t,path:n,props:p.label})})},PA=({currentData:e,path:t,props:n})=>{const i=A.useContext(dt),a=A.useContext(ot),[s,u]=A.useState(!0),c=zn(n.attributes),{showBoolPath:f}=n,d=typeof f!="string";c.show=d?s:ut({valueToEvaluate:(n==null?void 0:n.showBoolPath)??!1,globalDataContext:i,templateContext:a});const h=()=>{if(d){u(!1);return}const b=Pn({dataLocation:f,currentPath:a.templatePath,globalDataContext:i,templateContext:a});i.updateData(void 0,b)},p=c.className?c.className.split(" "):[];return p.push("reactive-json"),c.className=p.join(" "),R.jsx(Mt,{...n,children:R.jsxs(ts,{...c,onHide:h,children:[(n.headerTitle||n.closeButton)&&R.jsx(ts.Header,{closeButton:n.closeButton,children:R.jsx(ts.Title,{children:R.jsx(ht,{currentData:(e==null?void 0:e.headerTitle)??void 0,datafield:"headerTitle",path:(t??"")+".headerTitle",props:n==null?void 0:n.headerTitle})})}),n.body&&R.jsx(ts.Body,{children:R.jsx(ht,{currentData:(e==null?void 0:e.body)??void 0,datafield:"body",path:(t??"")+".body",props:n==null?void 0:n.body})})]})})},kA=({props:e,currentData:t})=>R.jsx(R.Fragment,{children:t});var Jo={},$i={},Es={},oi={},ai={},rc={},S0;function _0(){return S0||(S0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(i){i.Root="root",i.Text="text",i.Directive="directive",i.Comment="comment",i.Script="script",i.Style="style",i.Tag="tag",i.CDATA="cdata",i.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(i){return i.type===t.Tag||i.type===t.Script||i.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype}(rc)),rc}var We={},T0;function O0(){if(T0)return We;T0=1;var e=We&&We.__extends||function(){var v=function(S,O){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,G){B.__proto__=G}||function(B,G){for(var q in G)Object.prototype.hasOwnProperty.call(G,q)&&(B[q]=G[q])},v(S,O)};return function(S,O){if(typeof O!="function"&&O!==null)throw new TypeError("Class extends value "+String(O)+" is not a constructor or null");v(S,O);function B(){this.constructor=S}S.prototype=O===null?Object.create(O):(B.prototype=O.prototype,new B)}}(),t=We&&We.__assign||function(){return t=Object.assign||function(v){for(var S,O=1,B=arguments.length;O<B;O++){S=arguments[O];for(var G in S)Object.prototype.hasOwnProperty.call(S,G)&&(v[G]=S[G])}return v},t.apply(this,arguments)};Object.defineProperty(We,"__esModule",{value:!0}),We.cloneNode=We.hasChildren=We.isDocument=We.isDirective=We.isComment=We.isText=We.isCDATA=We.isTag=We.Element=We.Document=We.CDATA=We.NodeWithChildren=We.ProcessingInstruction=We.Comment=We.Text=We.DataNode=We.Node=void 0;var n=_0(),i=function(){function v(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(v.prototype,"parentNode",{get:function(){return this.parent},set:function(S){this.parent=S},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"previousSibling",{get:function(){return this.prev},set:function(S){this.prev=S},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"nextSibling",{get:function(){return this.next},set:function(S){this.next=S},enumerable:!1,configurable:!0}),v.prototype.cloneNode=function(S){return S===void 0&&(S=!1),I(this,S)},v}();We.Node=i;var a=function(v){e(S,v);function S(O){var B=v.call(this)||this;return B.data=O,B}return Object.defineProperty(S.prototype,"nodeValue",{get:function(){return this.data},set:function(O){this.data=O},enumerable:!1,configurable:!0}),S}(i);We.DataNode=a;var s=function(v){e(S,v);function S(){var O=v!==null&&v.apply(this,arguments)||this;return O.type=n.ElementType.Text,O}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),S}(a);We.Text=s;var u=function(v){e(S,v);function S(){var O=v!==null&&v.apply(this,arguments)||this;return O.type=n.ElementType.Comment,O}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),S}(a);We.Comment=u;var c=function(v){e(S,v);function S(O,B){var G=v.call(this,B)||this;return G.name=O,G.type=n.ElementType.Directive,G}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),S}(a);We.ProcessingInstruction=c;var f=function(v){e(S,v);function S(O){var B=v.call(this)||this;return B.children=O,B}return Object.defineProperty(S.prototype,"firstChild",{get:function(){var O;return(O=this.children[0])!==null&&O!==void 0?O:null},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"childNodes",{get:function(){return this.children},set:function(O){this.children=O},enumerable:!1,configurable:!0}),S}(i);We.NodeWithChildren=f;var d=function(v){e(S,v);function S(){var O=v!==null&&v.apply(this,arguments)||this;return O.type=n.ElementType.CDATA,O}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),S}(f);We.CDATA=d;var h=function(v){e(S,v);function S(){var O=v!==null&&v.apply(this,arguments)||this;return O.type=n.ElementType.Root,O}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),S}(f);We.Document=h;var p=function(v){e(S,v);function S(O,B,G,q){G===void 0&&(G=[]),q===void 0&&(q=O==="script"?n.ElementType.Script:O==="style"?n.ElementType.Style:n.ElementType.Tag);var V=v.call(this,G)||this;return V.name=O,V.attribs=B,V.type=q,V}return Object.defineProperty(S.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"tagName",{get:function(){return this.name},set:function(O){this.name=O},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"attributes",{get:function(){var O=this;return Object.keys(this.attribs).map(function(B){var G,q;return{name:B,value:O.attribs[B],namespace:(G=O["x-attribsNamespace"])===null||G===void 0?void 0:G[B],prefix:(q=O["x-attribsPrefix"])===null||q===void 0?void 0:q[B]}})},enumerable:!1,configurable:!0}),S}(f);We.Element=p;function b(v){return(0,n.isTag)(v)}We.isTag=b;function E(v){return v.type===n.ElementType.CDATA}We.isCDATA=E;function x(v){return v.type===n.ElementType.Text}We.isText=x;function C(v){return v.type===n.ElementType.Comment}We.isComment=C;function m(v){return v.type===n.ElementType.Directive}We.isDirective=m;function D(v){return v.type===n.ElementType.Root}We.isDocument=D;function F(v){return Object.prototype.hasOwnProperty.call(v,"children")}We.hasChildren=F;function I(v,S){S===void 0&&(S=!1);var O;if(x(v))O=new s(v.data);else if(C(v))O=new u(v.data);else if(b(v)){var B=S?w(v.children):[],G=new p(v.name,t({},v.attribs),B);B.forEach(function(ne){return ne.parent=G}),v.namespace!=null&&(G.namespace=v.namespace),v["x-attribsNamespace"]&&(G["x-attribsNamespace"]=t({},v["x-attribsNamespace"])),v["x-attribsPrefix"]&&(G["x-attribsPrefix"]=t({},v["x-attribsPrefix"])),O=G}else if(E(v)){var B=S?w(v.children):[],q=new d(B);B.forEach(function(te){return te.parent=q}),O=q}else if(D(v)){var B=S?w(v.children):[],V=new h(B);B.forEach(function(te){return te.parent=V}),v["x-mode"]&&(V["x-mode"]=v["x-mode"]),O=V}else if(m(v)){var ue=new c(v.name,v.data);v["x-name"]!=null&&(ue["x-name"]=v["x-name"],ue["x-publicId"]=v["x-publicId"],ue["x-systemId"]=v["x-systemId"]),O=ue}else throw new Error("Not implemented yet: ".concat(v.type));return O.startIndex=v.startIndex,O.endIndex=v.endIndex,v.sourceCodeLocation!=null&&(O.sourceCodeLocation=v.sourceCodeLocation),O}We.cloneNode=I;function w(v){for(var S=v.map(function(B){return I(B,!0)}),O=1;O<S.length;O++)S[O].prev=S[O-1],S[O-1].next=S[O];return S}return We}var D0;function I0(){return D0||(D0=1,function(e){var t=ai&&ai.__createBinding||(Object.create?function(c,f,d,h){h===void 0&&(h=d);var p=Object.getOwnPropertyDescriptor(f,d);(!p||("get"in p?!f.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return f[d]}}),Object.defineProperty(c,h,p)}:function(c,f,d,h){h===void 0&&(h=d),c[h]=f[d]}),n=ai&&ai.__exportStar||function(c,f){for(var d in c)d!=="default"&&!Object.prototype.hasOwnProperty.call(f,d)&&t(f,c,d)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var i=_0(),a=O0();n(O0(),e);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},u=function(){function c(f,d,h){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof d=="function"&&(h=d,d=s),typeof f=="object"&&(d=f,f=void 0),this.callback=f??null,this.options=d??s,this.elementCB=h??null}return c.prototype.onparserinit=function(f){this.parser=f},c.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},c.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},c.prototype.onerror=function(f){this.handleCallback(f)},c.prototype.onclosetag=function(){this.lastNode=null;var f=this.tagStack.pop();this.options.withEndIndices&&(f.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(f)},c.prototype.onopentag=function(f,d){var h=this.options.xmlMode?i.ElementType.Tag:void 0,p=new a.Element(f,d,void 0,h);this.addNode(p),this.tagStack.push(p)},c.prototype.ontext=function(f){var d=this.lastNode;if(d&&d.type===i.ElementType.Text)d.data+=f,this.options.withEndIndices&&(d.endIndex=this.parser.endIndex);else{var h=new a.Text(f);this.addNode(h),this.lastNode=h}},c.prototype.oncomment=function(f){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment){this.lastNode.data+=f;return}var d=new a.Comment(f);this.addNode(d),this.lastNode=d},c.prototype.oncommentend=function(){this.lastNode=null},c.prototype.oncdatastart=function(){var f=new a.Text(""),d=new a.CDATA([f]);this.addNode(d),f.parent=d,this.lastNode=f},c.prototype.oncdataend=function(){this.lastNode=null},c.prototype.onprocessinginstruction=function(f,d){var h=new a.ProcessingInstruction(f,d);this.addNode(h)},c.prototype.handleCallback=function(f){if(typeof this.callback=="function")this.callback(f,this.dom);else if(f)throw f},c.prototype.addNode=function(f){var d=this.tagStack[this.tagStack.length-1],h=d.children[d.children.length-1];this.options.withStartIndices&&(f.startIndex=this.parser.startIndex),this.options.withEndIndices&&(f.endIndex=this.parser.endIndex),d.children.push(f),h&&(f.prev=h,h.next=f),f.parent=d,this.lastNode=null},c}();e.DomHandler=u,e.default=u}(ai)),ai}var ic={},F0;function NA(){return F0||(F0=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,n){return t[n.toLowerCase()]=n,t},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")}(ic)),ic}var P0;function k0(){if(P0)return oi;P0=1,Object.defineProperty(oi,"__esModule",{value:!0}),oi.formatAttributes=i,oi.escapeSpecialCharacters=s,oi.revertEscapedCharacters=u,oi.formatDOM=c;var e=I0(),t=NA();function n(f){return t.CASE_SENSITIVE_TAG_NAMES_MAP[f]}function i(f){for(var d={},h=0,p=f.length;h<p;h++){var b=f[h];d[b.name]=b.value}return d}function a(f){f=f.toLowerCase();var d=n(f);return d||f}function s(f){return f.replace(t.CARRIAGE_RETURN_REGEX,t.CARRIAGE_RETURN_PLACEHOLDER)}function u(f){return f.replace(t.CARRIAGE_RETURN_PLACEHOLDER_REGEX,t.CARRIAGE_RETURN)}function c(f,d,h){d===void 0&&(d=null);for(var p=[],b,E=0,x=f.length;E<x;E++){var C=f[E];switch(C.nodeType){case 1:{var m=a(C.nodeName);b=new e.Element(m,i(C.attributes)),b.children=c(m==="template"?C.content.childNodes:C.childNodes,b);break}case 3:b=new e.Text(u(C.nodeValue));break;case 8:b=new e.Comment(C.nodeValue);break;default:continue}var D=p[E-1]||null;D&&(D.next=b),b.parent=d,b.prev=D,b.next=null,p.push(b)}return h&&(b=new e.ProcessingInstruction(h.substring(0,h.indexOf(" ")).toLowerCase(),h),b.next=p[0]||null,b.parent=d,p.unshift(b),p[1]&&(p[1].prev=p[0])),p}return oi}var N0;function RA(){if(N0)return Es;N0=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.default=C;var e=k0(),t="html",n="head",i="body",a=/<([a-zA-Z]+[0-9]?)/,s=/<head[^]*>/i,u=/<body[^]*>/i,c=function(m,D){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},f=function(m,D){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},d=typeof window=="object"&&window.DOMParser;if(typeof d=="function"){var h=new d,p="text/html";f=function(m,D){return D&&(m="<".concat(D,">").concat(m,"</").concat(D,">")),h.parseFromString(m,p)},c=f}if(typeof document=="object"&&document.implementation){var b=document.implementation.createHTMLDocument();c=function(m,D){if(D){var F=b.documentElement.querySelector(D);return F&&(F.innerHTML=m),b}return b.documentElement.innerHTML=m,b}}var E=typeof document=="object"&&document.createElement("template"),x;E&&E.content&&(x=function(m){return E.innerHTML=m,E.content.childNodes});function C(m){var D,F;m=(0,e.escapeSpecialCharacters)(m);var I=m.match(a),w=I&&I[1]?I[1].toLowerCase():"";switch(w){case t:{var v=f(m);if(!s.test(m)){var S=v.querySelector(n);(D=S==null?void 0:S.parentNode)===null||D===void 0||D.removeChild(S)}if(!u.test(m)){var S=v.querySelector(i);(F=S==null?void 0:S.parentNode)===null||F===void 0||F.removeChild(S)}return v.querySelectorAll(t)}case n:case i:{var O=c(m).querySelectorAll(w);return u.test(m)&&s.test(m)?O[0].parentNode.childNodes:O}default:{if(x)return x(m);var S=c(m,i).querySelector(i);return S.childNodes}}}return Es}var R0;function LA(){if(R0)return $i;R0=1;var e=$i&&$i.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty($i,"__esModule",{value:!0}),$i.default=a;var t=e(RA()),n=k0(),i=/<(![a-zA-Z\s]+)>/;function a(s){if(typeof s!="string")throw new TypeError("First argument must be a string");if(!s)return[];var u=s.match(i),c=u?u[1]:void 0;return(0,n.formatDOM)((0,t.default)(s),null,c)}return $i}var Cs={},Nn={},Zo={},L0;function BA(){if(L0)return Zo;L0=1;var e=0;Zo.SAME=e;var t=1;return Zo.CAMELCASE=t,Zo.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},Zo}var B0;function MA(){if(B0)return Nn;B0=1;const e=0,t=1,n=2,i=3,a=4,s=5,u=6;function c(v){return d.hasOwnProperty(v)?d[v]:null}function f(v,S,O,B,G,q,V){this.acceptsBooleans=S===n||S===i||S===a,this.attributeName=B,this.attributeNamespace=G,this.mustUseProperty=O,this.propertyName=v,this.type=S,this.sanitizeURL=q,this.removeEmptyString=V}const d={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(v=>{d[v]=new f(v,e,!1,v,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([v,S])=>{d[v]=new f(v,t,!1,S,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(v=>{d[v]=new f(v,n,!1,v.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(v=>{d[v]=new f(v,n,!1,v,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"].forEach(v=>{d[v]=new f(v,i,!1,v.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(v=>{d[v]=new f(v,i,!0,v,null,!1,!1)}),["capture","download"].forEach(v=>{d[v]=new f(v,a,!1,v,null,!1,!1)}),["cols","rows","size","span"].forEach(v=>{d[v]=new f(v,u,!1,v,null,!1,!1)}),["rowSpan","start"].forEach(v=>{d[v]=new f(v,s,!1,v.toLowerCase(),null,!1,!1)});const p=/[\-\:]([a-z])/g,b=v=>v[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"].forEach(v=>{const S=v.replace(p,b);d[S]=new f(S,t,!1,v,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(v=>{const S=v.replace(p,b);d[S]=new f(S,t,!1,v,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(v=>{const S=v.replace(p,b);d[S]=new f(S,t,!1,v,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(v=>{d[v]=new f(v,t,!1,v.toLowerCase(),null,!1,!1)});const E="xlinkHref";d[E]=new f("xlinkHref",t,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(v=>{d[v]=new f(v,t,!1,v.toLowerCase(),null,!0,!0)});const{CAMELCASE:x,SAME:C,possibleStandardNames:m}=BA(),F=":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",I=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+F+"]*$")),w=Object.keys(m).reduce((v,S)=>{const O=m[S];return O===C?v[S]=S:O===x?v[S.toLowerCase()]=S:v[S]=O,v},{});return Nn.BOOLEAN=i,Nn.BOOLEANISH_STRING=n,Nn.NUMERIC=s,Nn.OVERLOADED_BOOLEAN=a,Nn.POSITIVE_NUMERIC=u,Nn.RESERVED=e,Nn.STRING=t,Nn.getPropertyInfo=c,Nn.isCustomAttribute=I,Nn.possibleStandardNames=w,Nn}var Qo={},Ui={},oc,M0;function jA(){if(M0)return oc;M0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g,f=`
|
|
100
|
+
`,d="/",h="*",p="",b="comment",E="declaration";oc=function(C,m){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];m=m||{};var D=1,F=1;function I(ne){var te=ne.match(t);te&&(D+=te.length);var le=ne.lastIndexOf(f);F=~le?ne.length-le:F+ne.length}function w(){var ne={line:D,column:F};return function(te){return te.position=new v(ne),B(),te}}function v(ne){this.start=ne,this.end={line:D,column:F},this.source=m.source}v.prototype.content=C;function S(ne){var te=new Error(m.source+":"+D+":"+F+": "+ne);if(te.reason=ne,te.filename=m.source,te.line=D,te.column=F,te.source=C,!m.silent)throw te}function O(ne){var te=ne.exec(C);if(te){var le=te[0];return I(le),C=C.slice(le.length),te}}function B(){O(n)}function G(ne){var te;for(ne=ne||[];te=q();)te!==!1&&ne.push(te);return ne}function q(){var ne=w();if(!(d!=C.charAt(0)||h!=C.charAt(1))){for(var te=2;p!=C.charAt(te)&&(h!=C.charAt(te)||d!=C.charAt(te+1));)++te;if(te+=2,p===C.charAt(te-1))return S("End of comment missing");var le=C.slice(2,te-2);return F+=2,I(le),C=C.slice(te),F+=2,ne({type:b,comment:le})}}function V(){var ne=w(),te=O(i);if(te){if(q(),!O(a))return S("property missing ':'");var le=O(s),xe=ne({type:E,property:x(te[0].replace(e,p)),value:le?x(le[0].replace(e,p)):p});return O(u),xe}}function ue(){var ne=[];G(ne);for(var te;te=V();)te!==!1&&(ne.push(te),G(ne));return ne}return B(),ue()};function x(C){return C?C.replace(c,p):p}return oc}var j0;function $A(){if(j0)return Ui;j0=1;var e=Ui&&Ui.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.default=n;var t=e(jA());function n(i,a){var s=null;if(!i||typeof i!="string")return s;var u=(0,t.default)(i),c=typeof a=="function";return u.forEach(function(f){if(f.type==="declaration"){var d=f.property,h=f.value;c?a(d,h,f):h&&(s=s||{},s[d]=h)}}),s}return Ui}var ea={},$0;function UA(){if($0)return ea;$0=1,Object.defineProperty(ea,"__esModule",{value:!0}),ea.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(d){return!d||n.test(d)||e.test(d)},u=function(d,h){return h.toUpperCase()},c=function(d,h){return"".concat(h,"-")},f=function(d,h){return h===void 0&&(h={}),s(d)?d:(d=d.toLowerCase(),h.reactCompat?d=d.replace(a,c):d=d.replace(i,c),d.replace(t,u))};return ea.camelCase=f,ea}var ta,U0;function HA(){if(U0)return ta;U0=1;var e=ta&&ta.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e($A()),n=UA();function i(a,s){var u={};return!a||typeof a!="string"||(0,t.default)(a,function(c,f){c&&f&&(u[(0,n.camelCase)(c,s)]=f)}),u}return i.default=i,ta=i,ta}var H0;function W0(){return H0||(H0=1,function(e){var t=Qo&&Qo.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=s,e.setStyleProp=c;var n=A,i=t(HA()),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function s(h,p){return h.includes("-")?!a.has(h):!!(p&&typeof p.is=="string")}var u={reactCompat:!0};function c(h,p){if(typeof h=="string"){if(!h.trim()){p.style={};return}try{p.style=(0,i.default)(h,u)}catch{p.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var f=function(h){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(h.name)};e.canTextBeChildOfNode=f;var d=function(h){return h};e.returnFirstArg=d}(Qo)),Qo}var q0;function z0(){if(q0)return Cs;q0=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.default=s;var e=MA(),t=W0(),n=["checked","value"],i=["input","select","textarea"],a={reset:!0,submit:!0};function s(c,f){c===void 0&&(c={});var d={},h=!!(c.type&&a[c.type]);for(var p in c){var b=c[p];if((0,e.isCustomAttribute)(p)){d[p]=b;continue}var E=p.toLowerCase(),x=u(E);if(x){var C=(0,e.getPropertyInfo)(x);switch(n.includes(x)&&i.includes(f)&&!h&&(x=u("default"+E)),d[x]=b,C&&C.type){case e.BOOLEAN:d[x]=!0;break;case e.OVERLOADED_BOOLEAN:b===""&&(d[x]=!0);break}continue}t.PRESERVE_CUSTOM_ATTRIBUTES&&(d[p]=b)}return(0,t.setStyleProp)(c.style,d),d}function u(c){return e.possibleStandardNames[c]}return Cs}var Hi={},G0;function WA(){if(G0)return Hi;G0=1;var e=Hi&&Hi.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.default=s;var t=A,n=e(z0()),i=W0(),a={cloneElement:t.cloneElement,createElement:t.createElement,isValidElement:t.isValidElement};function s(c,f){f===void 0&&(f={});for(var d=[],h=typeof f.replace=="function",p=f.transform||i.returnFirstArg,b=f.library||a,E=b.cloneElement,x=b.createElement,C=b.isValidElement,m=c.length,D=0;D<m;D++){var F=c[D];if(h){var I=f.replace(F,D);if(C(I)){m>1&&(I=E(I,{key:I.key||D})),d.push(p(I,F,D));continue}}if(F.type==="text"){var w=!F.data.trim().length;if(w&&F.parent&&!(0,i.canTextBeChildOfNode)(F.parent)||f.trim&&w)continue;d.push(p(F.data,F,D));continue}var v=F,S={};u(v)?((0,i.setStyleProp)(v.attribs.style,v.attribs),S=v.attribs):v.attribs&&(S=(0,n.default)(v.attribs,v.name));var O=void 0;switch(F.type){case"script":case"style":F.children[0]&&(S.dangerouslySetInnerHTML={__html:F.children[0].data});break;case"tag":F.name==="textarea"&&F.children[0]?S.defaultValue=F.children[0].data:F.children&&F.children.length&&(O=s(F.children,f));break;default:continue}m>1&&(S.key=D),d.push(p(x(F.name,S,O),F,D))}return d.length===1?d[0]:d}function u(c){return i.PRESERVE_CUSTOM_ATTRIBUTES&&c.type==="tag"&&(0,i.isCustomComponent)(c.name,c.attribs)}return Hi}var V0;function qA(){return V0||(V0=1,function(e){var t=Jo&&Jo.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=c;var n=t(LA());e.htmlToDOM=n.default;var i=t(z0());e.attributesToProps=i.default;var a=t(WA());e.domToReact=a.default;var s=I0();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return s.Text}});var u={lowerCaseAttributeNames:!1};function c(f,d){if(typeof f!="string")throw new TypeError("First argument must be a string");return f?(0,a.default)((0,n.default)(f,(d==null?void 0:d.htmlparser2)||u),d):[]}}(Jo)),Jo}var zA=qA();const Y0=mo(zA),GA=Y0.default||Y0,VA=["abbr","acronym","b","blockquote","br","caption","code","div","em","h1","h2","h3","h4","h5","h6","i","li","ol","p","span","sup","strong","table","tbody","td","tfoot","th","thead","tr","ul"],YA=({props:e})=>{const t=A.useContext(ot),n=A.useContext(dt),i=ut({valueToEvaluate:e.content,templateContext:t,globalDataContext:n}),s=[...Array.isArray(e.htmlTagAllowList)?e.htmlTagAllowList:VA,...e.additionalAllowedTags??[]];return R.jsx(Mt,{...e,children:GA(i,{replace(u){if(u.type==="tag"&&s.indexOf(u.name)<0)return R.jsx(R.Fragment,{})}})})},KA=({props:e})=>{var n,i;const t=A.useContext(ot);return R.jsx(Mt,{...e,children:(i=(n=t.sortableTreeData)._treeAddCollapseButton)==null?void 0:i.call(n)})},XA=({currentData:e,path:t,props:n})=>{const i=A.useContext(dt),a=A.useContext(ot),s=zn(n.attributes);return R.jsx(Mt,{...n,children:R.jsx(Op,{...s,children:Array.isArray(n.tabs)&&n.tabs.map((u,c)=>{var d;const f=ii({attrs:u.attributes,globalDataContext:i,templateContext:a,options:{normalizeBeforeEvaluation:!0}});return A.createElement(WE,{...f,key:c},R.jsx(ht,{currentData:((d=e==null?void 0:e[c])==null?void 0:d.content)??void 0,datafield:"content",path:(t??"")+"."+c+".content",props:u==null?void 0:u.content}))})})})};function JA({props:e,currentData:t,path:n,bsComponent:i}){var u;const a=zn(e.attributes);if((u=e.attributes)!=null&&u["data-visually-hidden"])debugger;if(!i)return null;const s=i;return R.jsx(Mt,{...e,children:R.jsx(s,{...a,children:e.content&&R.jsx(ht,{currentData:t.content??void 0,datafield:"content",path:n+".content",props:e.content})})})}const ac=(e,...t)=>t.length?ac(e=e.replace(ac.token||"$token",t.shift()),...t):e,ZA=({templateContexts:e},t,...n)=>{const i=n.map(a=>ut({globalDataContext:e.globalDataContext,templateContext:e.templateContext,valueToEvaluate:a}));return ac(t,...i)},QA=(e,t)=>{if(typeof t=="string")return t;if(Array.isArray(t)){const[n,...i]=t;return ZA(e,n,...i)}return""},eS=({props:e})=>{const t=A.useContext(dt),n=A.useContext(ot),{context:i="global",jsonPathPattern:a}=e,s=i==="template"?ot:dt,u=A.useContext(s);if(!a)return null;const c=QA({templateContexts:{globalDataContext:t,templateContext:n}},a),f=i==="root"?u.getRootContext().templateData:u.templateData;return Ip.query(f,c).length},tS=e=>{var c,f;const t=A.useContext(dt),n=A.useContext(ot),i={globalDataContext:t,templateContext:n},{contextToFilter:a="global",filters:s=[]}=e.props,u=d=>{if(!d)return!0;for(const h of s){const p=(h==null?void 0:h.subjectsWithProperty)??void 0;if(!p||!d.hasOwnProperty(p))continue;if(!Ri(h,i,new Map([["whenFilterableData",({condition:E})=>{const C=E.whenFilterableData.split(".");let m=d;for(const D of C){const F=parseInt(D);if(m=m[isNaN(F)?D:F],m===void 0)return}return m}]])))return!1}return!0};switch(a){case"template":return n.templateData=ws(n.templateData,u),n.templatePath=e.path,R.jsx(ot.Provider,{value:n,children:R.jsx(ht,{props:e.props.content,path:e.path+".content",datafield:"content",currentData:((c=e.currentData)==null?void 0:c.content)??void 0})});case"global":default:return t.templateData=ws(t.templateData,u),R.jsx(dt.Provider,{value:t,children:R.jsx(ht,{props:e.props.content,path:e.path+".content",datafield:"content",currentData:((f=e.currentData)==null?void 0:f.content)??void 0})})}},ws=(e,t)=>{if(Array.isArray(e)){const n={};return e.forEach((i,a)=>{t(i)&&(n[a]=ws(i,t))}),n}else if(typeof e=="object"&&e!==null){const n={};for(const i in e)if(e.hasOwnProperty(i)){if(!t(e[i]))continue;n[i]=ws(e[i],t)}return n}else return e},nS=({props:e,currentData:t,path:n})=>{const i=A.useContext(dt),a=A.useContext(ot),s=Array.isArray(e.delayedActions)?e.delayedActions:[],u={globalDataContext:i,templateContext:a};return A.useEffect(()=>{if(!e.interval)return;const c=setInterval(()=>{const f=rS(s,u);for(let d=0;d<f.length;++d){const h=f[d];if(!h)continue;const p=h.what&&(wi[h.what]??null);p&&p({args:h,globalDataContext:i,templateContext:a})}e.once&&clearInterval(c)},e.interval);return()=>clearInterval(c)},[i,a]),R.jsx(Mt,{...e,children:e.content&&R.jsx(ht,{props:e.content,currentData:(t==null?void 0:t.content)??void 0,datafield:"content",path:n+".content"})})},rS=(e,t)=>{const n=[];if(!Array.isArray(e))return n;for(const[,i]of e.entries()){const a=(i==null?void 0:i.what)??void 0;!a||!(wi[a]??void 0)||Ri(i,t)&&n.push(i)}return n},K0=A.createContext({pagination:{}}),iS=()=>{const{pagination:e}=A.useContext(K0);return e.PageControls?R.jsx(e.PageControls,{}):null},oS=({props:e,currentData:t,path:n})=>R.jsx(Mt,{...e,children:e.content&&R.jsx(ht,{props:e.content,currentData:(t==null?void 0:t.content)??void 0,datafield:"content",path:n+".content"})}),aS=({dataToPaginate:e=[],forcePaginationDisplay:t=!1,maxPageButtonsCount:n=5,pageMaxItemCount:i=10})=>{const[a,s]=A.useState(0),u=Math.floor(n/2),c=a*i,f=c+i,d=b=>Math.ceil(b.length/i);return{firstShownItemIndex:c,getPageCountForContent:d,maxShownItemIndexExcluded:f,PageControls:()=>{const b=d(e);return!t&&b<=1?null:R.jsxs(Lr,{children:[R.jsx(Lr.First,{disabled:a<=0,onClick:()=>{s(0)}}),R.jsx(Lr.Prev,{disabled:a<=0,onClick:()=>{s(a-1)}}),Math.min(a-u,b-n)>0?R.jsx(Lr.Ellipsis,{disabled:!0}):null,(()=>{const E=[];let x=Math.min(Math.max(0,b-n),Math.max(0,a-u)),C=n;const m=(D,F)=>{E.push(R.jsx(Lr.Item,{active:a===D,onClick:()=>{s(D)},children:D+1},n-F))};for(;C&&(m(x,C),++x,--C,!(x>=b)););return E})(),b>Math.max(u,a)+Math.ceil(n/2)?R.jsx(Lr.Ellipsis,{disabled:!0}):null,R.jsx(Lr.Next,{disabled:a+1>=b,onClick:()=>{s(a+1)}}),R.jsx(Lr.Last,{disabled:a+1>=b,onClick:()=>{s(b-1)}})]})},pageMaxItemCount:i,sliceVisibleContent:b=>Array.isArray(b)?b.slice(c,f):b}},sS=({props:e,currentData:t,path:n})=>{const i=A.useContext(dt),a=A.useContext(ot),s=(e==null?void 0:e.cardinality)??-1,u=(e==null?void 0:e.options)??[],c=(e==null?void 0:e.singleOption)??void 0,f=!!c,d=(e==null?void 0:e.content)??null,h=d&&ut({globalDataContext:i,templateContext:a,valueToEvaluate:d}),b=Object.entries(typeof h=="object"?h:t).map(([m,D])=>{const F=m;if(s>=1&&F>=s||!D||typeof D!="object")return null;let I,w,v;if(f)w=D,v=c;else{if(I=Object.keys(D)[0]??void 0,I===void 0)return null;w=Object.values(D)[0]??void 0,v=u[I]??void 0}if(v===void 0)return null;let S=(Ll(d)&&Pn({dataLocation:d,currentPath:a.templatePath,globalDataContext:i,templateContext:a})||n)+"."+F;return f||(S+="."+I),R.jsx(ht,{currentData:w,datafield:F,path:S,props:v},F)}),E=aS({dataToPaginate:b,...(e==null?void 0:e.paginationProps)??{}}),x=e!=null&&e.paginated?b.slice(E.firstShownItemIndex,E.maxShownItemIndexExcluded):b,C=R.jsxs(R.Fragment,{children:[(e==null?void 0:e.before)&&R.jsx(ht,{currentData:(t==null?void 0:t.before)??void 0,path:n+".before",datafield:"before",props:e==null?void 0:e.before}),x,(e==null?void 0:e.after)&&R.jsx(ht,{currentData:(t==null?void 0:t.after)??void 0,path:n+".after",datafield:"after",props:e==null?void 0:e.after})]});return R.jsx(Mt,{...e,children:e!=null&&e.paginated?R.jsx(K0.Provider,{value:{pagination:E},children:C}):C})};function ht({props:e,currentData:t,datafield:n,path:i}){const a=A.useContext(dt),s=A.useContext(ot),u={AccordionItem:fC,CheckBoxField:nC,Count:eS,DateField:aC,DataFilter:tS,DelayedActions:nS,FolderSortableTree:OA,FormatNumeral:IA,Html:Rl,LabelFromValue:FA,Modal:PA,NumberField:sC,PageControls:iS,Paragraph:kA,Phantom:oS,PreformattedMarkup:YA,SelectField:uC,SortableTreeItemCollapseButton:KA,Switch:sS,Tabs:XA,TextAreaField:lC,TextField:cC},c={BsAccordion:qa,BsAlert:pb,BsBadge:Eh,BsButton:Ch},{element:f}=a;if(t===void 0&&(t=""),e!=null&&e.type){let d,h;const p=[{registryId:"module",components:u},{registryId:"bootstrap",components:c}];for(;p.length;){const{registryId:b,components:E}=p.shift();if(h=E[e.type]??void 0,h!==void 0){d=b;break}}return h===void 0&&(h=Rl,d="module"),d==="bootstrap"?R.jsx(JA,{bsComponent:h,path:i,props:e,currentData:t,datafield:n}):(Rl===h&&(e.tag=e.tag??e.type),R.jsx(h,{path:i,props:e,currentData:t,datafield:n}))}if(e!=null&&e.load){let d;const h=(e==null?void 0:e.customDataLocation)??void 0;if(h)debugger;const p=h?ut({globalDataContext:a,templateContext:s,valueToEvaluate:h}):t,b=h?Pn({dataLocation:h,currentPath:i,globalDataContext:a,templateContext:s}):i;typeof e.load=="function"?d=e.load(p):d=f[e.load];const{load:E,customDataLocation:x,...C}=e;return d={...d,...C},e.keepTemplateContext?R.jsx(ht,{currentData:p,datafield:n,path:b,props:d}):R.jsx(ot.Provider,{value:{templateData:p,templatePath:b},children:R.jsx(ht,{currentData:p,datafield:n,path:b,props:d})})}return Array.isArray(e)?e.map((d,h)=>R.jsx(ht,{currentData:t[h]??void 0,datafield:h,path:i+"."+h,props:d??void 0},i+"."+h)):typeof e=="object"?Object.entries(e).map(([d,h])=>R.jsx(ht,{currentData:t[d]??void 0,datafield:d??void 0,path:i+"."+d,props:h},i+"."+d)):R.jsx(tC,{valueToEvaluate:t||(e??null)})}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function X0(e){return typeof e>"u"||e===null}function uS(e){return typeof e=="object"&&e!==null}function lS(e){return Array.isArray(e)?e:X0(e)?[]:[e]}function cS(e,t){var n,i,a,s;if(t)for(s=Object.keys(t),n=0,i=s.length;n<i;n+=1)a=s[n],e[a]=t[a];return e}function fS(e,t){var n="",i;for(i=0;i<t;i+=1)n+=e;return n}function dS(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var hS=X0,pS=uS,mS=lS,gS=fS,vS=dS,yS=cS,on={isNothing:hS,isObject:pS,toArray:mS,repeat:gS,isNegativeZero:vS,extend:yS};function J0(e,t){var n="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
101
101
|
|
|
102
|
-
`+e.mark.snippet),i+" "+n):i}function na(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=J0(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}na.prototype=Object.create(Error.prototype),na.prototype.constructor=na,na.prototype.toString=function(t){return this.name+": "+J0(this,t)};var yr=na;function sc(e,t,n,i,a){var s="",u="",
|
|
103
|
-
`+
|
|
104
|
-
`,
|
|
105
|
-
`,f=1;f<=t.linesAfter&&!(u+f>=a.length);f++)d=sc(e.buffer,i[u+f],a[u+f],e.position-(i[u]-i[u+f]),p),
|
|
106
|
-
`;return
|
|
107
|
-
\r`;function
|
|
108
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function
|
|
109
|
-
`,t-1))}function
|
|
102
|
+
`+e.mark.snippet),i+" "+n):i}function na(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=J0(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}na.prototype=Object.create(Error.prototype),na.prototype.constructor=na,na.prototype.toString=function(t){return this.name+": "+J0(this,t)};var yr=na;function sc(e,t,n,i,a){var s="",u="",c=Math.floor(a/2)-1;return i-t>c&&(s=" ... ",t=i-c+s.length),n-i>c&&(u=" ...",n=i+c-u.length),{str:s+e.slice(t,n).replace(/\t/g,"→")+u,pos:i-t+s.length}}function uc(e,t){return on.repeat(" ",t-e.length)+e}function bS(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,i=[0],a=[],s,u=-1;s=n.exec(e.buffer);)a.push(s.index),i.push(s.index+s[0].length),e.position<=s.index&&u<0&&(u=i.length-2);u<0&&(u=i.length-1);var c="",f,d,h=Math.min(e.line+t.linesAfter,a.length).toString().length,p=t.maxLength-(t.indent+h+3);for(f=1;f<=t.linesBefore&&!(u-f<0);f++)d=sc(e.buffer,i[u-f],a[u-f],e.position-(i[u]-i[u-f]),p),c=on.repeat(" ",t.indent)+uc((e.line-f+1).toString(),h)+" | "+d.str+`
|
|
103
|
+
`+c;for(d=sc(e.buffer,i[u],a[u],e.position,p),c+=on.repeat(" ",t.indent)+uc((e.line+1).toString(),h)+" | "+d.str+`
|
|
104
|
+
`,c+=on.repeat("-",t.indent+h+3+d.pos)+`^
|
|
105
|
+
`,f=1;f<=t.linesAfter&&!(u+f>=a.length);f++)d=sc(e.buffer,i[u+f],a[u+f],e.position-(i[u]-i[u+f]),p),c+=on.repeat(" ",t.indent)+uc((e.line+f+1).toString(),h)+" | "+d.str+`
|
|
106
|
+
`;return c.replace(/\n$/,"")}var xS=bS,ES=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],CS=["scalar","sequence","mapping"];function wS(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(i){t[String(i)]=n})}),t}function AS(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(ES.indexOf(n)===-1)throw new yr('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=wS(t.styleAliases||null),CS.indexOf(this.kind)===-1)throw new yr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Jt=AS;function Z0(e,t){var n=[];return e[t].forEach(function(i){var a=n.length;n.forEach(function(s,u){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(a=u)}),n[a]=i}),n}function SS(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function i(a){a.multi?(e.multi[a.kind].push(a),e.multi.fallback.push(a)):e[a.kind][a.tag]=e.fallback[a.tag]=a}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(i);return e}function lc(e){return this.extend(e)}lc.prototype.extend=function(t){var n=[],i=[];if(t instanceof Jt)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new yr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(s){if(!(s instanceof Jt))throw new yr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new yr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new yr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof Jt))throw new yr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var a=Object.create(lc.prototype);return a.implicit=(this.implicit||[]).concat(n),a.explicit=(this.explicit||[]).concat(i),a.compiledImplicit=Z0(a,"implicit"),a.compiledExplicit=Z0(a,"explicit"),a.compiledTypeMap=SS(a.compiledImplicit,a.compiledExplicit),a};var _S=lc,TS=new Jt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),OS=new Jt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),DS=new Jt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),IS=new _S({explicit:[TS,OS,DS]});function FS(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function PS(){return null}function kS(e){return e===null}var NS=new Jt("tag:yaml.org,2002:null",{kind:"scalar",resolve:FS,construct:PS,predicate:kS,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function RS(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function LS(e){return e==="true"||e==="True"||e==="TRUE"}function BS(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var MS=new Jt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:RS,construct:LS,predicate:BS,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function jS(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function $S(e){return 48<=e&&e<=55}function US(e){return 48<=e&&e<=57}function HS(e){if(e===null)return!1;var t=e.length,n=0,i=!1,a;if(!t)return!1;if(a=e[n],(a==="-"||a==="+")&&(a=e[++n]),a==="0"){if(n+1===t)return!0;if(a=e[++n],a==="b"){for(n++;n<t;n++)if(a=e[n],a!=="_"){if(a!=="0"&&a!=="1")return!1;i=!0}return i&&a!=="_"}if(a==="x"){for(n++;n<t;n++)if(a=e[n],a!=="_"){if(!jS(e.charCodeAt(n)))return!1;i=!0}return i&&a!=="_"}if(a==="o"){for(n++;n<t;n++)if(a=e[n],a!=="_"){if(!$S(e.charCodeAt(n)))return!1;i=!0}return i&&a!=="_"}}if(a==="_")return!1;for(;n<t;n++)if(a=e[n],a!=="_"){if(!US(e.charCodeAt(n)))return!1;i=!0}return!(!i||a==="_")}function WS(e){var t=e,n=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(n=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function qS(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!on.isNegativeZero(e)}var zS=new Jt("tag:yaml.org,2002:int",{kind:"scalar",resolve:HS,construct:WS,predicate:qS,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),GS=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function VS(e){return!(e===null||!GS.test(e)||e[e.length-1]==="_")}function YS(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var KS=/^[-+]?[0-9]+e/;function XS(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(on.isNegativeZero(e))return"-0.0";return n=e.toString(10),KS.test(n)?n.replace("e",".e"):n}function JS(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||on.isNegativeZero(e))}var ZS=new Jt("tag:yaml.org,2002:float",{kind:"scalar",resolve:VS,construct:YS,predicate:JS,represent:XS,defaultStyle:"lowercase"}),QS=IS.extend({implicit:[NS,MS,zS,ZS]}),e_=QS,Q0=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),em=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function t_(e){return e===null?!1:Q0.exec(e)!==null||em.exec(e)!==null}function n_(e){var t,n,i,a,s,u,c,f=0,d=null,h,p,b;if(t=Q0.exec(e),t===null&&(t=em.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],i=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,i,a));if(s=+t[4],u=+t[5],c=+t[6],t[7]){for(f=t[7].slice(0,3);f.length<3;)f+="0";f=+f}return t[9]&&(h=+t[10],p=+(t[11]||0),d=(h*60+p)*6e4,t[9]==="-"&&(d=-d)),b=new Date(Date.UTC(n,i,a,s,u,c,f)),d&&b.setTime(b.getTime()-d),b}function r_(e){return e.toISOString()}var i_=new Jt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:t_,construct:n_,instanceOf:Date,represent:r_});function o_(e){return e==="<<"||e===null}var a_=new Jt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:o_}),cc=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
107
|
+
\r`;function s_(e){if(e===null)return!1;var t,n,i=0,a=e.length,s=cc;for(n=0;n<a;n++)if(t=s.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}function u_(e){var t,n,i=e.replace(/[\r\n=]/g,""),a=i.length,s=cc,u=0,c=[];for(t=0;t<a;t++)t%4===0&&t&&(c.push(u>>16&255),c.push(u>>8&255),c.push(u&255)),u=u<<6|s.indexOf(i.charAt(t));return n=a%4*6,n===0?(c.push(u>>16&255),c.push(u>>8&255),c.push(u&255)):n===18?(c.push(u>>10&255),c.push(u>>2&255)):n===12&&c.push(u>>4&255),new Uint8Array(c)}function l_(e){var t="",n=0,i,a,s=e.length,u=cc;for(i=0;i<s;i++)i%3===0&&i&&(t+=u[n>>18&63],t+=u[n>>12&63],t+=u[n>>6&63],t+=u[n&63]),n=(n<<8)+e[i];return a=s%3,a===0?(t+=u[n>>18&63],t+=u[n>>12&63],t+=u[n>>6&63],t+=u[n&63]):a===2?(t+=u[n>>10&63],t+=u[n>>4&63],t+=u[n<<2&63],t+=u[64]):a===1&&(t+=u[n>>2&63],t+=u[n<<4&63],t+=u[64],t+=u[64]),t}function c_(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var f_=new Jt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:s_,construct:u_,predicate:c_,represent:l_}),d_=Object.prototype.hasOwnProperty,h_=Object.prototype.toString;function p_(e){if(e===null)return!0;var t=[],n,i,a,s,u,c=e;for(n=0,i=c.length;n<i;n+=1){if(a=c[n],u=!1,h_.call(a)!=="[object Object]")return!1;for(s in a)if(d_.call(a,s))if(!u)u=!0;else return!1;if(!u)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function m_(e){return e!==null?e:[]}var g_=new Jt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:p_,construct:m_}),v_=Object.prototype.toString;function y_(e){if(e===null)return!0;var t,n,i,a,s,u=e;for(s=new Array(u.length),t=0,n=u.length;t<n;t+=1){if(i=u[t],v_.call(i)!=="[object Object]"||(a=Object.keys(i),a.length!==1))return!1;s[t]=[a[0],i[a[0]]]}return!0}function b_(e){if(e===null)return[];var t,n,i,a,s,u=e;for(s=new Array(u.length),t=0,n=u.length;t<n;t+=1)i=u[t],a=Object.keys(i),s[t]=[a[0],i[a[0]]];return s}var x_=new Jt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:y_,construct:b_}),E_=Object.prototype.hasOwnProperty;function C_(e){if(e===null)return!0;var t,n=e;for(t in n)if(E_.call(n,t)&&n[t]!==null)return!1;return!0}function w_(e){return e!==null?e:{}}var A_=new Jt("tag:yaml.org,2002:set",{kind:"mapping",resolve:C_,construct:w_}),S_=e_.extend({implicit:[i_,a_],explicit:[f_,g_,x_,A_]}),Mr=Object.prototype.hasOwnProperty,As=1,tm=2,nm=3,Ss=4,fc=1,__=2,rm=3,T_=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,O_=/[\x85\u2028\u2029]/,D_=/[,\[\]\{\}]/,im=/^(?:!|!!|![a-z\-]+!)$/i,om=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function am(e){return Object.prototype.toString.call(e)}function rr(e){return e===10||e===13}function si(e){return e===9||e===32}function pn(e){return e===9||e===32||e===10||e===13}function Wi(e){return e===44||e===91||e===93||e===123||e===125}function I_(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function F_(e){return e===120?2:e===117?4:e===85?8:0}function P_(e){return 48<=e&&e<=57?e-48:-1}function sm(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
108
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function k_(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var um=new Array(256),lm=new Array(256),qi=0;qi<256;qi++)um[qi]=sm(qi)?1:0,lm[qi]=sm(qi);function N_(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||S_,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function cm(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=xS(n),new yr(t,n)}function _e(e,t){throw cm(e,t)}function _s(e,t){e.onWarning&&e.onWarning.call(null,cm(e,t))}var fm={YAML:function(t,n,i){var a,s,u;t.version!==null&&_e(t,"duplication of %YAML directive"),i.length!==1&&_e(t,"YAML directive accepts exactly one argument"),a=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),a===null&&_e(t,"ill-formed argument of the YAML directive"),s=parseInt(a[1],10),u=parseInt(a[2],10),s!==1&&_e(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=u<2,u!==1&&u!==2&&_s(t,"unsupported YAML version of the document")},TAG:function(t,n,i){var a,s;i.length!==2&&_e(t,"TAG directive accepts exactly two arguments"),a=i[0],s=i[1],im.test(a)||_e(t,"ill-formed tag handle (first argument) of the TAG directive"),Mr.call(t.tagMap,a)&&_e(t,'there is a previously declared suffix for "'+a+'" tag handle'),om.test(s)||_e(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{_e(t,"tag prefix is malformed: "+s)}t.tagMap[a]=s}};function jr(e,t,n,i){var a,s,u,c;if(t<n){if(c=e.input.slice(t,n),i)for(a=0,s=c.length;a<s;a+=1)u=c.charCodeAt(a),u===9||32<=u&&u<=1114111||_e(e,"expected valid JSON character");else T_.test(c)&&_e(e,"the stream contains non-printable characters");e.result+=c}}function dm(e,t,n,i){var a,s,u,c;for(on.isObject(n)||_e(e,"cannot merge mappings; the provided source object is unacceptable"),a=Object.keys(n),u=0,c=a.length;u<c;u+=1)s=a[u],Mr.call(t,s)||(t[s]=n[s],i[s]=!0)}function zi(e,t,n,i,a,s,u,c,f){var d,h;if(Array.isArray(a))for(a=Array.prototype.slice.call(a),d=0,h=a.length;d<h;d+=1)Array.isArray(a[d])&&_e(e,"nested arrays are not supported inside keys"),typeof a=="object"&&am(a[d])==="[object Object]"&&(a[d]="[object Object]");if(typeof a=="object"&&am(a)==="[object Object]"&&(a="[object Object]"),a=String(a),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(d=0,h=s.length;d<h;d+=1)dm(e,t,s[d],n);else dm(e,t,s,n);else!e.json&&!Mr.call(n,a)&&Mr.call(t,a)&&(e.line=u||e.line,e.lineStart=c||e.lineStart,e.position=f||e.position,_e(e,"duplicated mapping key")),a==="__proto__"?Object.defineProperty(t,a,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[a]=s,delete n[a];return t}function dc(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):_e(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function It(e,t,n){for(var i=0,a=e.input.charCodeAt(e.position);a!==0;){for(;si(a);)a===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),a=e.input.charCodeAt(++e.position);if(t&&a===35)do a=e.input.charCodeAt(++e.position);while(a!==10&&a!==13&&a!==0);if(rr(a))for(dc(e),a=e.input.charCodeAt(e.position),i++,e.lineIndent=0;a===32;)e.lineIndent++,a=e.input.charCodeAt(++e.position);else break}return n!==-1&&i!==0&&e.lineIndent<n&&_s(e,"deficient indentation"),i}function Ts(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||pn(n)))}function hc(e,t){t===1?e.result+=" ":t>1&&(e.result+=on.repeat(`
|
|
109
|
+
`,t-1))}function R_(e,t,n){var i,a,s,u,c,f,d,h,p=e.kind,b=e.result,E;if(E=e.input.charCodeAt(e.position),pn(E)||Wi(E)||E===35||E===38||E===42||E===33||E===124||E===62||E===39||E===34||E===37||E===64||E===96||(E===63||E===45)&&(a=e.input.charCodeAt(e.position+1),pn(a)||n&&Wi(a)))return!1;for(e.kind="scalar",e.result="",s=u=e.position,c=!1;E!==0;){if(E===58){if(a=e.input.charCodeAt(e.position+1),pn(a)||n&&Wi(a))break}else if(E===35){if(i=e.input.charCodeAt(e.position-1),pn(i))break}else{if(e.position===e.lineStart&&Ts(e)||n&&Wi(E))break;if(rr(E))if(f=e.line,d=e.lineStart,h=e.lineIndent,It(e,!1,-1),e.lineIndent>=t){c=!0,E=e.input.charCodeAt(e.position);continue}else{e.position=u,e.line=f,e.lineStart=d,e.lineIndent=h;break}}c&&(jr(e,s,u,!1),hc(e,e.line-f),s=u=e.position,c=!1),si(E)||(u=e.position+1),E=e.input.charCodeAt(++e.position)}return jr(e,s,u,!1),e.result?!0:(e.kind=p,e.result=b,!1)}function L_(e,t){var n,i,a;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=a=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(jr(e,i,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)i=e.position,e.position++,a=e.position;else return!0;else rr(n)?(jr(e,i,a,!0),hc(e,It(e,!1,t)),i=a=e.position):e.position===e.lineStart&&Ts(e)?_e(e,"unexpected end of the document within a single quoted scalar"):(e.position++,a=e.position);_e(e,"unexpected end of the stream within a single quoted scalar")}function B_(e,t){var n,i,a,s,u,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return jr(e,n,e.position,!0),e.position++,!0;if(c===92){if(jr(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),rr(c))It(e,!1,t);else if(c<256&&um[c])e.result+=lm[c],e.position++;else if((u=F_(c))>0){for(a=u,s=0;a>0;a--)c=e.input.charCodeAt(++e.position),(u=I_(c))>=0?s=(s<<4)+u:_e(e,"expected hexadecimal character");e.result+=k_(s),e.position++}else _e(e,"unknown escape sequence");n=i=e.position}else rr(c)?(jr(e,n,i,!0),hc(e,It(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Ts(e)?_e(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}_e(e,"unexpected end of the stream within a double quoted scalar")}function M_(e,t){var n=!0,i,a,s,u=e.tag,c,f=e.anchor,d,h,p,b,E,x=Object.create(null),C,m,D,F;if(F=e.input.charCodeAt(e.position),F===91)h=93,E=!1,c=[];else if(F===123)h=125,E=!0,c={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),F=e.input.charCodeAt(++e.position);F!==0;){if(It(e,!0,t),F=e.input.charCodeAt(e.position),F===h)return e.position++,e.tag=u,e.anchor=f,e.kind=E?"mapping":"sequence",e.result=c,!0;n?F===44&&_e(e,"expected the node content, but found ','"):_e(e,"missed comma between flow collection entries"),m=C=D=null,p=b=!1,F===63&&(d=e.input.charCodeAt(e.position+1),pn(d)&&(p=b=!0,e.position++,It(e,!0,t))),i=e.line,a=e.lineStart,s=e.position,Gi(e,t,As,!1,!0),m=e.tag,C=e.result,It(e,!0,t),F=e.input.charCodeAt(e.position),(b||e.line===i)&&F===58&&(p=!0,F=e.input.charCodeAt(++e.position),It(e,!0,t),Gi(e,t,As,!1,!0),D=e.result),E?zi(e,c,x,m,C,D,i,a,s):p?c.push(zi(e,null,x,m,C,D,i,a,s)):c.push(C),It(e,!0,t),F=e.input.charCodeAt(e.position),F===44?(n=!0,F=e.input.charCodeAt(++e.position)):n=!1}_e(e,"unexpected end of the stream within a flow collection")}function j_(e,t){var n,i,a=fc,s=!1,u=!1,c=t,f=0,d=!1,h,p;if(p=e.input.charCodeAt(e.position),p===124)i=!1;else if(p===62)i=!0;else return!1;for(e.kind="scalar",e.result="";p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)fc===a?a=p===43?rm:__:_e(e,"repeat of a chomping mode identifier");else if((h=P_(p))>=0)h===0?_e(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?_e(e,"repeat of an indentation width identifier"):(c=t+h-1,u=!0);else break;if(si(p)){do p=e.input.charCodeAt(++e.position);while(si(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!rr(p)&&p!==0)}for(;p!==0;){for(dc(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!u||e.lineIndent<c)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>c&&(c=e.lineIndent),rr(p)){f++;continue}if(e.lineIndent<c){a===rm?e.result+=on.repeat(`
|
|
110
110
|
`,s?1+f:f):a===fc&&s&&(e.result+=`
|
|
111
111
|
`);break}for(i?si(p)?(d=!0,e.result+=on.repeat(`
|
|
112
112
|
`,s?1+f:f)):d?(d=!1,e.result+=on.repeat(`
|
|
113
113
|
`,f+1)):f===0?s&&(e.result+=" "):e.result+=on.repeat(`
|
|
114
114
|
`,f):e.result+=on.repeat(`
|
|
115
|
-
`,s?1+f:f),s=!0,u=!0,f=0,n=e.position;!rr(p)&&p!==0;)p=e.input.charCodeAt(++e.position);jr(e,n,e.position,!1)}return!0}function hm(e,t){var n,i=e.tag,a=e.anchor,s=[],u,
|
|
116
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new
|
|
115
|
+
`,s?1+f:f),s=!0,u=!0,f=0,n=e.position;!rr(p)&&p!==0;)p=e.input.charCodeAt(++e.position);jr(e,n,e.position,!1)}return!0}function hm(e,t){var n,i=e.tag,a=e.anchor,s=[],u,c=!1,f;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),f=e.input.charCodeAt(e.position);f!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,_e(e,"tab characters must not be used in indentation")),!(f!==45||(u=e.input.charCodeAt(e.position+1),!pn(u))));){if(c=!0,e.position++,It(e,!0,-1)&&e.lineIndent<=t){s.push(null),f=e.input.charCodeAt(e.position);continue}if(n=e.line,Gi(e,t,nm,!1,!0),s.push(e.result),It(e,!0,-1),f=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&f!==0)_e(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=i,e.anchor=a,e.kind="sequence",e.result=s,!0):!1}function $_(e,t,n){var i,a,s,u,c,f,d=e.tag,h=e.anchor,p={},b=Object.create(null),E=null,x=null,C=null,m=!1,D=!1,F;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=p),F=e.input.charCodeAt(e.position);F!==0;){if(!m&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,_e(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),s=e.line,(F===63||F===58)&&pn(i))F===63?(m&&(zi(e,p,b,E,x,null,u,c,f),E=x=C=null),D=!0,m=!0,a=!0):m?(m=!1,a=!0):_e(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,F=i;else{if(u=e.line,c=e.lineStart,f=e.position,!Gi(e,n,tm,!1,!0))break;if(e.line===s){for(F=e.input.charCodeAt(e.position);si(F);)F=e.input.charCodeAt(++e.position);if(F===58)F=e.input.charCodeAt(++e.position),pn(F)||_e(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(zi(e,p,b,E,x,null,u,c,f),E=x=C=null),D=!0,m=!1,a=!1,E=e.tag,x=e.result;else if(D)_e(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=d,e.anchor=h,!0}else if(D)_e(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=d,e.anchor=h,!0}if((e.line===s||e.lineIndent>t)&&(m&&(u=e.line,c=e.lineStart,f=e.position),Gi(e,t,Ss,!0,a)&&(m?x=e.result:C=e.result),m||(zi(e,p,b,E,x,C,u,c,f),E=x=C=null),It(e,!0,-1),F=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&F!==0)_e(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&zi(e,p,b,E,x,null,u,c,f),D&&(e.tag=d,e.anchor=h,e.kind="mapping",e.result=p),D}function U_(e){var t,n=!1,i=!1,a,s,u;if(u=e.input.charCodeAt(e.position),u!==33)return!1;if(e.tag!==null&&_e(e,"duplication of a tag property"),u=e.input.charCodeAt(++e.position),u===60?(n=!0,u=e.input.charCodeAt(++e.position)):u===33?(i=!0,a="!!",u=e.input.charCodeAt(++e.position)):a="!",t=e.position,n){do u=e.input.charCodeAt(++e.position);while(u!==0&&u!==62);e.position<e.length?(s=e.input.slice(t,e.position),u=e.input.charCodeAt(++e.position)):_e(e,"unexpected end of the stream within a verbatim tag")}else{for(;u!==0&&!pn(u);)u===33&&(i?_e(e,"tag suffix cannot contain exclamation marks"):(a=e.input.slice(t-1,e.position+1),im.test(a)||_e(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),u=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),D_.test(s)&&_e(e,"tag suffix cannot contain flow indicator characters")}s&&!om.test(s)&&_e(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{_e(e,"tag name is malformed: "+s)}return n?e.tag=s:Mr.call(e.tagMap,a)?e.tag=e.tagMap[a]+s:a==="!"?e.tag="!"+s:a==="!!"?e.tag="tag:yaml.org,2002:"+s:_e(e,'undeclared tag handle "'+a+'"'),!0}function H_(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&_e(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!pn(n)&&!Wi(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&_e(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function W_(e){var t,n,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!pn(i)&&!Wi(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&_e(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),Mr.call(e.anchorMap,n)||_e(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],It(e,!0,-1),!0}function Gi(e,t,n,i,a){var s,u,c,f=1,d=!1,h=!1,p,b,E,x,C,m;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=u=c=Ss===n||nm===n,i&&It(e,!0,-1)&&(d=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),f===1)for(;U_(e)||H_(e);)It(e,!0,-1)?(d=!0,c=s,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):c=!1;if(c&&(c=d||a),(f===1||Ss===n)&&(As===n||tm===n?C=t:C=t+1,m=e.position-e.lineStart,f===1?c&&(hm(e,m)||$_(e,m,C))||M_(e,C)?h=!0:(u&&j_(e,C)||L_(e,C)||B_(e,C)?h=!0:W_(e)?(h=!0,(e.tag!==null||e.anchor!==null)&&_e(e,"alias node should not have any properties")):R_(e,C,As===n)&&(h=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):f===0&&(h=c&&hm(e,m))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&_e(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),p=0,b=e.implicitTypes.length;p<b;p+=1)if(x=e.implicitTypes[p],x.resolve(e.result)){e.result=x.construct(e.result),e.tag=x.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Mr.call(e.typeMap[e.kind||"fallback"],e.tag))x=e.typeMap[e.kind||"fallback"][e.tag];else for(x=null,E=e.typeMap.multi[e.kind||"fallback"],p=0,b=E.length;p<b;p+=1)if(e.tag.slice(0,E[p].tag.length)===E[p].tag){x=E[p];break}x||_e(e,"unknown tag !<"+e.tag+">"),e.result!==null&&x.kind!==e.kind&&_e(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+x.kind+'", not "'+e.kind+'"'),x.resolve(e.result,e.tag)?(e.result=x.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):_e(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||h}function q_(e){var t=e.position,n,i,a,s=!1,u;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(u=e.input.charCodeAt(e.position))!==0&&(It(e,!0,-1),u=e.input.charCodeAt(e.position),!(e.lineIndent>0||u!==37));){for(s=!0,u=e.input.charCodeAt(++e.position),n=e.position;u!==0&&!pn(u);)u=e.input.charCodeAt(++e.position);for(i=e.input.slice(n,e.position),a=[],i.length<1&&_e(e,"directive name must not be less than one character in length");u!==0;){for(;si(u);)u=e.input.charCodeAt(++e.position);if(u===35){do u=e.input.charCodeAt(++e.position);while(u!==0&&!rr(u));break}if(rr(u))break;for(n=e.position;u!==0&&!pn(u);)u=e.input.charCodeAt(++e.position);a.push(e.input.slice(n,e.position))}u!==0&&dc(e),Mr.call(fm,i)?fm[i](e,i,a):_s(e,'unknown document directive "'+i+'"')}if(It(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,It(e,!0,-1)):s&&_e(e,"directives end mark is expected"),Gi(e,e.lineIndent-1,Ss,!1,!0),It(e,!0,-1),e.checkLineBreaks&&O_.test(e.input.slice(t,e.position))&&_s(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ts(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,It(e,!0,-1));return}if(e.position<e.length-1)_e(e,"end of the stream or a document separator is expected");else return}function z_(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
116
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new N_(e,t),i=e.indexOf("\0");for(i!==-1&&(n.position=i,_e(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)q_(n);return n.documents}function G_(e,t){var n=z_(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new yr("expected a single document in the stream, but found more")}}var V_=G_,Y_={load:V_},K_=Y_.load;function X_({dataFetchMethod:e,dataUrl:t,headersForData:n,plugins:i,debugMode:a,DebugModeContentWrapper:s,DebugModeDataWrapper:u,DebugModeRootWrapper:c}){const[f,d]=A.useReducer((q,V)=>{switch(V.type){case"setData":return{updateId:0,realCurrentData:V.data};case"updateData":return v(q,V.path,V.value,V.updateMode);default:return q}},{updateId:0,realCurrentData:{}}),[h,p]=A.useState(0),[b,E]=A.useState({}),[x,C]=A.useState({}),[m,D]=A.useState([]),[F,I]=A.useState();A.useEffect(()=>{t&&(typeof e=="string"&&e.toLowerCase()==="post"?yt.post(t,{headers:n}).then(q=>{I(q.data)}):yt.get(t,{headers:n}).then(q=>{I(q.data)}))},[t,n]),A.useEffect(()=>{if(!F)return;let q=F;if(typeof q!="object")try{q=JSON.parse(F)}catch{try{q=K_(F)}catch{console.log("Tried to load app data but the content could not be parsed as JSON nor YAML.");return}}E(q.templates??q.listForms),!q.templates&&q.listForms&&console.log("'listForms' needs to be renamed to 'templates'. The support for 'listForms' will be removed in the next releases of reactive-json."),d({type:"setData",data:q.data}),C(q.renderView),D(Object.keys(q.renderView))},[F]);const w=(q,V,ue=void 0)=>{let ne=V.replace("data.","");d({type:"updateData",path:ne,value:q,updateMode:ue})};function v(q,V,ue,ne=void 0){const te=V.split(".");let le=q.realCurrentData;for(let xe=0,he=te.length;xe<he;xe++){const fe=te[xe];if(xe===he-1){if(ne==="remove"&&Array.isArray(le))le.splice(fe,1);else if(ne==="move")if(ue.increment){if(!Array.isArray(le))return q;const Ie=Math.min(le.length,Math.max(0,parseInt(fe)+parseInt(ue.increment)));if(Ie===parseInt(fe))return q;const M=le.splice(fe,1);if(M.length<1)return q;le.splice(Ie,0,M[0])}else return q;else if(ue===void 0)delete le[fe];else{if(Fr.isEqual(ue,le[fe]))return q;ne==="add"?(le[fe]===void 0&&(le[fe]=[]),le[fe].push(ue)):le[fe]=ue}return{updateId:(q.updateId??0)%(Number.MAX_SAFE_INTEGER-1)+1,realCurrentData:q.realCurrentData}}if(le.hasOwnProperty(fe)){(typeof le[fe]!="object"||le[fe]===null)&&(le[fe]={}),le=le[fe];continue}le[fe]={},le=le[fe]}throw new Error("Could not update data.")}if(!F)return null;const S=m.map(q=>R.jsx(ht,{datafield:q,props:x[q],path:"data."+q,currentData:f.realCurrentData[q]},q));function O(q){var V;if(!q)return!1;if(typeof q=="boolean")return q;if(typeof q!="string")return!0;switch((V=q==null?void 0:q.toLowerCase())==null?void 0:V.trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return q.length>0}}const B=O(a),G=R.jsx(Nv,{children:R.jsxs(Rv,{value:{element:b,headersForData:n,setRawAppData:I,templateData:f.realCurrentData,templatePath:"data",updateData:w},children:[R.jsx(ot.Provider,{value:{templateData:f.realCurrentData,templatePath:"data"},children:B&&s?R.jsx(s,{children:S}):S}),B?u&&R.jsx(u,{children:JSON.stringify(f.realCurrentData,null," ")}):null]})});return B&&s?R.jsx(c,{children:G}):G}function J_(e){const t={action:[],element:[],hook:[],reaction:[],utility:[]};return e.forEach(n=>{for(const[i,a]in Object.entries(n))t.hasOwnProperty(i)||(t[i]=[]),t[i].push(a)}),t}lr.ReactiveJsonRoot=X_,lr.mergeComponentCollections=J_,Object.defineProperty(lr,Symbol.toStringTag,{value:"Module"})});
|